PageSourceSearch

https://www.jaaar.com/betakiosk/dist/assets/js/vendor-1601103097.js

js jaaar.com collected 2026-10-02 12:11:09 UTC 838,857 bytes, 1 lines download raw bytes

vendor: 44,651 bytes, line 1
1!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(w,e){"use strict";var t=[],k=w.document,n=Object.getPrototypeOf,s=t.slice,m=t.concat,l=t.push,o=t.indexOf,i={},r=i.toString,g=i.hasOwnProperty,a=g.toString,c=a.call(Object),v={},b=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},y=function(e){return null!=e&&e===e.window},u={type:!0,src:!0,noModule:!0};function x(e,t,i){var n,o=(t=t||k).createElement("script");if(o.text=e,i)for(n in u)i[n]&&(o[n]=i[n]);t.head.appendChild(o).parentNode.removeChild(o)}function T(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?i[r.call(e)]||"object":typeof e}var C=function(e,t){return new C.fn.init(e,t)},d=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function h(e){var t=!!e&&"length"in e&&e.length,i=T(e);return!b(e)&&!y(e)&&("array"===i||0===t||"number"==typeof t&&0<t&&t-1 in e)}C.fn=C.prototype={jquery:"3.3.1",constructor:C,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=C.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return C.each(this,e)},map:function(i){return this.pushStack(C.map(this,function(e,t){return i.call(e,t,e)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,i=+e+(e<0?t:0);return this.pushStack(0<=i&&i<t?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:l,sort:t.sort,splice:t.splice},C.extend=C.fn.extend=function(){var e,t,i,n,o,r,a=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[s]||{},s++),"object"==typeof a||b(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)i=a[t],a!==(n=e[t])&&(c&&n&&(C.isPlainObject(n)||(o=Array.isArray(n)))?(r=o?(o=!1,i&&Array.isArray(i)?i:[]):i&&C.isPlainObject(i)?i:{},a[t]=C.extend(c,r,n)):void 0!==n&&(a[t]=n));return a},C.extend({expando:"jQuery"+("3.3.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,i;return!(!e||"[object Object]"!==r.call(e)||(t=n(e))&&("function"!=typeof(i=g.call(t,"constructor")&&t.constructor)||a.call(i)!==c))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e){x(e)},each:function(e,t){var i,n=0;if(h(e))for(i=e.length;n<i&&!1!==t.call(e[n],n,e[n]);n++);else for(n in e)if(!1===t.call(e[n],n,e[n]))break;return e},trim:function(e){return null==e?"":(e+"").replace(d,"")},makeArray:function(e,t){var i=t||[];return null!=e&&(h(Object(e))?C.merge(i,"string"==typeof e?[e]:e):l.call(i,e)),i},inArray:function(e,t,i){return null==t?-1:o.call(t,e,i)},merge:function(e,t){for(var i=+t.length,n=0,o=e.length;n<i;n++)e[o++]=t[n];return e.length=o,e},grep:function(e,t,i){for(var n=[],o=0,r=e.length,a=!i;o<r;o++)!t(e[o],o)!==a&&n.push(e[o]);return n},map:function(e,t,i){var n,o,r=0,a=[];if(h(e))for(n=e.length;r<n;r++)null!=(o=t(e[r],r,i))&&a.push(o);else for(r in e)null!=(o=t(e[r],r,i))&&a.push(o);return m.apply([],a)},guid:1,support:v}),"function"==typeof Symbol&&(C.fn[Symbol.iterator]=t[Symbol.iterator]),C.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){i["[object "+t+"]"]=t.toLowerCase()});var p=function(i){var e,p,x,r,o,f,d,m,T,l,c,S,w,a,k,g,s,u,v,C="sizzle"+1*new Date,b=i.document,M=0,n=0,h=ae(),y=ae(),P=ae(),A=function(e,t){return e===t&&(c=!0),0},E={}.hasOwnProperty,t=[],D=t.pop,O=t.push,L=t.push,I=t.slice,R=function(e,t){for(var i=0,n=e.length;i<n;i++)if(e[i]===t)return i;return-1},H="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",N="[\\x20\\t\\r\\n\\f]",B="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",G="\\["+N+"*("+B+")(?:"+N+"*([*^$|!~]?=)"+N+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+B+"))|)"+N+"*\\]",F=":("+B+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+G+")*)|.*)\\)|)",_=new RegExp(N+"+","g"),j=new RegExp("^"+N+"+|((?:^|[^\\\\])(?:\\\\.)*)"+N+"+$","g"),z=new RegExp("^"+N+"*,"+N+"*"),V=new RegExp("^"+N+"*([>+~]|"+N+")"+N+"*"),W=new RegExp("="+N+"*([^\\]'\"]*?)"+N+"*\\]","g"),X=new RegExp(F),q=new RegExp("^"+B+"$"),U={ID:new RegExp("^#("+B+")"),CLASS:new RegExp("^\\.("+B+")"),TAG:new RegExp("^("+B+"|[*])"),ATTR:new RegExp("^"+G),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+N+"*(even|odd|(([+-]|)(\\d*)n|)"+N+"*(?:([+-]|)"+N+"*(\\d+)|))"+N+"*\\)|)","i"),bool:new RegExp("^(?:"+H+")$","i"),needsContext:new RegExp("^"+N+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+N+"*((?:-\\d)?\\d*)"+N+"*\\)|)(?=[^-]|$)","i")},Y=/^(?:input|select|textarea|button)$/i,$=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Q=/[+~]/,J=new RegExp("\\\\([\\da-f]{1,6}"+N+"?|("+N+")|.)","ig"),ee=function(e,t,i){var n="0x"+t-65536;return n!=n||i?t:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},te=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ne=function(){S()},oe=be(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{L.apply(t=I.call(b.childNodes),b.childNodes),t[b.childNodes.length].nodeType}catch(i){L={apply:t.length?function(e,t){O.apply(e,I.call(t))}:function(e,t){for(var i=e.length,n=0;e[i++]=t[n++];);e.length=i-1}}}function re(e,t,i,n){var o,r,a,s,l,c,u,d=t&&t.ownerDocument,h=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==h&&9!==h&&11!==h)return i;if(!n&&((t?t.ownerDocument||t:b)!==w&&S(t),t=t||w,k)){if(11!==h&&(l=Z.exec(e)))if(o=l[1]){if(9===h){if(!(a=t.getElementById(o)))return i;if(a.id===o)return i.push(a),i}else if(d&&(a=d.getElementById(o))&&v(t,a)&&a.id===o)return i.push(a),i}else{if(l[2])return L.apply(i,t.getElementsByTagName(e)),i;if((o=l[3])&&p.getElementsByClassName&&t.getElementsByClassName)return L.apply(i,t.getElementsByClassName(o)),i}if(p.qsa&&!P[e+" "]&&(!g||!g.test(e))){if(1!==h)d=t,u=e;else if("object"!==t.nodeName.toLowerCase()){for((s=t.getAttribute("id"))?s=s.replace(te,ie):t.setAttribute("id",s=C),r=(c=f(e)).length;r--;)c[r]="#"+s+" "+ve(c[r]);u=c.join(","),d=Q.test(e)&&me(t.parentNode)||t}if(u)try{return L.apply(i,d.querySelectorAll(u)),i}catch(e){}finally{s===C&&t.removeAttribute("id")}}}return m(e.replace(j,"$1"),t,i,n)}function ae(){var n=[];return function e(t,i){return n.push(t+" ")>x.cacheLength&&delete e[n.shift()],e[t+" "]=i}}function se(e){return e[C]=!0,e}function le(e){var t=w.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ce(e,t){for(var i=e.split("|"),n=i.length;n--;)x.attrHandle[i[n]]=t}function ue(e,t){var i=t&&e,n=i&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(n)return n;if(i)for(;i=i.nextSibling;)if(i===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(i){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===i}}function pe(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&oe(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function fe(a){return se(function(r){return r=+r,se(function(e,t){for(var i,n=a([],e.length,r),o=n.length;o--;)e[i=n[o]]&&(e[i]=!(t[i]=e[i]))})})}function me(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in p=re.support={},o=re.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},S=re.setDocument=function(e){var t,i,n=e?e.ownerDocument||e:b;return n!==w&&9===n.nodeType&&n.documentElement&&(a=(w=n).documentElement,k=!o(w),b!==w&&(i=w.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",ne,!1):i.attachEvent&&i.attachEvent("onunload",ne)),p.attributes=le(function(e){return e.className="i",!e.getAttribute("className")}),p.getElementsByTagName=le(function(e){return e.appendChild(w.createComment("")),!e.getElementsByTagName("*").length}),p.getElementsByClassName=K.test(w.getElementsByClassName),p.getById=le(function(e){return a.appendChild(e).id=C,!w.getElementsByName||!w.getElementsByName(C).length}),p.getById?(x.filter.ID=function(e){var t=e.replace(J,ee);return function(e){return e.getAttribute("id")===t}},x.find.ID=function(e,t){if(void 0!==t.getElementById&&k){var i=t.getElementById(e);return i?[i]:[]}}):(x.filter.ID=function(e){var i=e.replace(J,ee);return function(e){var t=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===i}},x.find.ID=function(e,t){if(void 0!==t.getElementById&&k){var i,n,o,r=t.getElementById(e);if(r){if((i=r.getAttributeNode("id"))&&i.value===e)return[r];for(o=t.getElementsByName(e),n=0;r=o[n++];)if((i=r.getAttributeNode("id"))&&i.value===e)return[r]}return[]}}),x.find.TAG=p.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):p.qsa?t.querySelectorAll(e):void 0}:function(e,t){var i,n=[],o=0,r=t.getElementsByTagName(e);if("*"!==e)return r;for(;i=r[o++];)1===i.nodeType&&n.push(i);return n},x.find.CLASS=p.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&k)return t.getElementsByClassName(e)},s=[],g=[],(p.qsa=K.test(w.querySelectorAll))&&(le(function(e){a.appendChild(e).innerHTML="<a id='"+C+"'></a><select id='"+C+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+N+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+N+"*(?:value|"+H+")"),e.querySelectorAll("[id~="+C+"-]").length||g.push("~="),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+C+"+*").length||g.push(".#.+[+~]")}),le(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=w.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+N+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(p.matchesSelector=K.test(u=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&le(function(e){p.disconnectedMatch=u.call(e,"*"),u.call(e,"[s!='']:x"),s.push("!=",F)}),g=g.length&&new RegExp(g.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),v=t||K.test(a.contains)?function(e,t){var i=9===e.nodeType?e.documentElement:e,n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},A=t?function(e,t){if(e===t)return c=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!p.sortDetached&&t.compareDocumentPosition(e)===i?e===w||e.ownerDocument===b&&v(b,e)?-1:t===w||t.ownerDocument===b&&v(b,t)?1:l?R(l,e)-R(l,t):0:4&i?-1:1)}:function(e,t){if(e===t)return c=!0,0;var i,n=0,o=e.parentNode,r=t.parentNode,a=[e],s=[t];if(!o||!r)return e===w?-1:t===w?1:o?-1:r?1:l?R(l,e)-R(l,t):0;if(o===r)return ue(e,t);for(i=e;i=i.parentNode;)a.unshift(i);for(i=t;i=i.parentNode;)s.unshift(i);for(;a[n]===s[n];)n++;return n?ue(a[n],s[n]):a[n]===b?-1:s[n]===b?1:0}),w},re.matches=function(e,t){return re(e,null,null,t)},re.matchesSelector=function(e,t){if((e.ownerDocument||e)!==w&&S(e),t=t.replace(W,"='$1']"),p.matchesSelector&&k&&!P[t+" "]&&(!s||!s.test(t))&&(!g||!g.test(t)))try{var i=u.call(e,t);if(i||p.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){}return 0<re(t,w,null,[e]).length},re.contains=function(e,t){return(e.ownerDocument||e)!==w&&S(e),v(e,t)},re.attr=function(e,t){(e.ownerDocument||e)!==w&&S(e);var i=x.attrHandle[t.toLowerCase()],n=i&&E.call(x.attrHandle,t.toLowerCase())?i(e,t,!k):void 0;return void 0!==n?n:p.attributes||!k?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},re.escape=function(e){return(e+"").replace(te,ie)},re.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},re.uniqueSort=function(e){var t,i=[],n=0,o=0;if(c=!p.detectDuplicates,l=!p.sortStable&&e.slice(0),e.sort(A),c){for(;t=e[o++];)t===e[o]&&(n=i.push(o));for(;n--;)e.splice(i[n],1)}return l=null,e},r=re.getText=function(e){var t,i="",n=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)i+=r(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[n++];)i+=r(t);return i},(x=re.selectors={cacheLength:50,createPseudo:se,match:U,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(J,ee),e[3]=(e[3]||e[4]||e[5]||"").replace(J,ee),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||re.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&re.error(e[0]),e},PSEUDO:function(e){var t,i=!e[6]&&e[2];return U.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&X.test(i)&&(t=f(i,!0))&&(t=i.indexOf(")",i.length-t)-i.length)&&(e[0]=e[0].slice(0,t),e[2]=i.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(J,ee).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=h[e+" "];return t||(t=new RegExp("(^|"+N+")"+e+"("+N+"|$)"))&&h(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(i,n,o){return function(e){var t=re.attr(e,i);return null==t?"!="===n:!n||(t+="","="===n?t===o:"!="===n?t!==o:"^="===n?o&&0===t.indexOf(o):"*="===n?o&&-1<t.indexOf(o):"$="===n?o&&t.slice(-o.length)===o:"~="===n?-1<(" "+t.replace(_," ")+" ").indexOf(o):"|="===n&&(t===o||t.slice(0,o.length+1)===o+"-"))}},CHILD:function(f,e,t,m,g){var v="nth"!==f.slice(0,3),b="last"!==f.slice(-4),y="of-type"===e;return 1===m&&0===g?function(e){return!!e.parentNode}:function(e,t,i){var n,o,r,a,s,l,c=v!==b?"nextSibling":"previousSibling",u=e.parentNode,d=y&&e.nodeName.toLowerCase(),h=!i&&!y,p=!1;if(u){if(v){for(;c;){for(a=e;a=a[c];)if(y?a.nodeName.toLowerCase()===d:1===a.nodeType)return!1;l=c="only"===f&&!l&&"nextSibling"}return!0}if(l=[b?u.firstChild:u.lastChild],b&&h){for(p=(s=(n=(o=(r=(a=u)[C]||(a[C]={}))[a.uniqueID]||(r[a.uniqueID]={}))[f]||[])[0]===M&&n[1])&&n[2],a=s&&u.childNodes[s];a=++s&&a&&a[c]||(p=s=0)||l.pop();)if(1===a.nodeType&&++p&&a===e){o[f]=[M,s,p];break}}else if(h&&(p=s=(n=(o=(r=(a=e)[C]||(a[C]={}))[a.uniqueID]||(r[a.uniqueID]={}))[f]||[])[0]===M&&n[1]),!1===p)for(;(a=++s&&a&&a[c]||(p=s=0)||l.pop())&&((y?a.nodeName.toLowerCase()!==d:1!==a.nodeType)||!++p||(h&&((o=(r=a[C]||(a[C]={}))[a.uniqueID]||(r[a.uniqueID]={}))[f]=[M,p]),a!==e)););return(p-=g)===m||p%m==0&&0<=p/m}}},PSEUDO:function(e,r){var t,a=x.pseudos[e]||x.setFilters[e.toLowerCase()]||re.error("unsupported pseudo: "+e);return a[C]?a(r):1<a.length?(t=[e,e,"",r],x.setFilters.hasOwnProperty(e.toLowerCase())?se(function(e,t){for(var i,n=a(e,r),o=n.length;o--;)e[i=R(e,n[o])]=!(t[i]=n[o])}):function(e){return a(e,0,t)}):a}},pseudos:{not:se(function(e){var n=[],o=[],s=d(e.replace(j,"$1"));return s[C]?se(function(e,t,i,n){for(var o,r=s(e,null,n,[]),a=e.length;a--;)(o=r[a])&&(e[a]=!(t[a]=o))}):function(e,t,i){return n[0]=e,s(n,null,i,o),n[0]=null,!o.pop()}}),has:se(function(t){return function(e){return 0<re(t,e).length}}),contains:se(function(t){return t=t.replace(J,ee),function(e){return-1<(e.textContent||e.innerText||r(e)).indexOf(t)}}),lang:se(function(i){return q.test(i||"")||re.error("unsupported lang: "+i),i=i.replace(J,ee).toLowerCase(),function(e){var t;do{if(t=k?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===i||0===t.indexOf(i+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=i.location&&i.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===a},focus:function(e){return e===w.activeElement&&(!w.hasFocus||w.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:pe(!1),disabled:pe(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!x.pseudos.empty(e)},header:function(e){return $.test(e.nodeName)},input:function(e){return Y.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:fe(function(){return[0]}),last:fe(function(e,t){return[t-1]}),eq:fe(function(e,t,i){return[i<0?i+t:i]}),even:fe(function(e,t){for(var i=0;i<t;i+=2)e.push(i);return e}),odd:fe(function(e,t){for(var i=1;i<t;i+=2)e.push(i);return e}),lt:fe(function(e,t,i){for(var n=i<0?i+t:i;0<=--n;)e.push(n);return e}),gt:fe(function(e,t,i){for(var n=i<0?i+t:i;++n<t;)e.push(n);return e})}}).pseudos.nth=x.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})x.pseudos[e]=de(e);for(e in{submit:!0,reset:!0})x.pseudos[e]=he(e);function ge(){}function ve(e){for(var t=0,i=e.length,n="";t<i;t++)n+=e[t].value;return n}function be(s,e,t){var l=e.dir,c=e.next,u=c||l,d=t&&"parentNode"===u,h=n++;return e.first?function(e,t,i){for(;e=e[l];)if(1===e.nodeType||d)return s(e,t,i);return!1}:function(e,t,i){var n,o,r,a=[M,h];if(i){for(;e=e[l];)if((1===e.nodeType||d)&&s(e,t,i))return!0}else for(;e=e[l];)if(1===e.nodeType||d)if(o=(r=e[C]||(e[C]={}))[e.uniqueID]||(r[e.uniqueID]={}),c&&c===e.nodeName.toLowerCase())e=e[l]||e;else{if((n=o[u])&&n[0]===M&&n[1]===h)return a[2]=n[2];if((o[u]=a)[2]=s(e,t,i))return!0}return!1}}function ye(o){return 1<o.length?function(e,t,i){for(var n=o.length;n--;)if(!o[n](e,t,i))return!1;return!0}:o[0]}function xe(e,t,i,n,o){for(var r,a=[],s=0,l=e.length,c=null!=t;s<l;s++)(r=e[s])&&(i&&!i(r,n,o)||(a.push(r),c&&t.push(s)));return a}function Te(p,f,m,g,v,e){return g&&!g[C]&&(g=Te(g)),v&&!v[C]&&(v=Te(v,e)),se(function(e,t,i,n){var o,r,a,s=[],l=[],c=t.length,u=e||function(e,t,i){for(var n=0,o=t.length;n<o;n++)re(e,t[n],i);return i}(f||"*",i.nodeType?[i]:i,[]),d=!p||!e&&f?u:xe(u,s,p,i,n),h=m?v||(e?p:c||g)?[]:t:d;if(m&&m(d,h,i,n),g)for(o=xe(h,l),g(o,[],i,n),r=o.length;r--;)(a=o[r])&&(h[l[r]]=!(d[l[r]]=a));if(e){if(v||p){if(v){for(o=[],r=h.length;r--;)(a=h[r])&&o.push(d[r]=a);v(null,h=[],o,n)}for(r=h.length;r--;)(a=h[r])&&-1<(o=v?R(e,a):s[r])&&(e[o]=!(t[o]=a))}}else h=xe(h===t?h.splice(c,h.length):h),v?v(null,t,h,n):L.apply(t,h)})}function Se(e){for(var o,t,i,n=e.length,r=x.relative[e[0].type],a=r||x.relative[" "],s=r?1:0,l=be(function(e){return e===o},a,!0),c=be(function(e){return-1<R(o,e)},a,!0),u=[function(e,t,i){var n=!r&&(i||t!==T)||((o=t).nodeType?l(e,t,i):c(e,t,i));return o=null,n}];s<n;s++)if(t=x.relative[e[s].type])u=[be(ye(u),t)];else{if((t=x.filter[e[s].type].apply(null,e[s].matches))[C]){for(i=++s;i<n&&!x.relative[e[i].type];i++);return Te(1<s&&ye(u),1<s&&ve(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(j,"$1"),t,s<i&&Se(e.slice(s,i)),i<n&&Se(e=e.slice(i)),i<n&&ve(e))}u.push(t)}return ye(u)}return ge.prototype=x.filters=x.pseudos,x.setFilters=new ge,f=re.tokenize=function(e,t){var i,n,o,r,a,s,l,c=y[e+" "];if(c)return t?0:c.slice(0);for(a=e,s=[],l=x.preFilter;a;){for(r in i&&!(n=z.exec(a))||(n&&(a=a.slice(n[0].length)||a),s.push(o=[])),i=!1,(n=V.exec(a))&&(i=n.shift(),o.push({value:i,type:n[0].replace(j," ")}),a=a.slice(i.length)),x.filter)!(n=U[r].exec(a))||l[r]&&!(n=l[r](n))||(i=n.shift(),o.push({value:i,type:r,matches:n}),a=a.slice(i.length));if(!i)break}return t?a.length:a?re.error(e):y(e,s).slice(0)},d=re.compile=function(e,t){var i,g,v,b,y,n,o=[],r=[],a=P[e+" "];if(!a){for(t||(t=f(e)),i=t.length;i--;)(a=Se(t[i]))[C]?o.push(a):r.push(a);(a=P(e,(g=r,v=o,b=0<v.length,y=0<g.length,n=function(e,t,i,n,o){var r,a,s,l=0,c="0",u=e&&[],d=[],h=T,p=e||y&&x.find.TAG("*",o),f=M+=null==h?1:Math.random()||.1,m=p.length;for(o&&(T=t===w||t||o);c!==m&&null!=(r=p[c]);c++){if(y&&r){for(a=0,t||r.ownerDocument===w||(S(r),i=!k);s=g[a++];)if(s(r,t||w,i)){n.push(r);break}o&&(M=f)}b&&((r=!s&&r)&&l--,e&&u.push(r))}if(l+=c,b&&c!==l){for(a=0;s=v[a++];)s(u,d,t,i);if(e){if(0<l)for(;c--;)u[c]||d[c]||(d[c]=D.call(n));d=xe(d)}L.apply(n,d),o&&!e&&0<d.length&&1<l+v.length&&re.uniqueSort(n)}return o&&(M=f,T=h),u},b?se(n):n))).selector=e}return a},m=re.select=function(e,t,i,n){var o,r,a,s,l,c="function"==typeof e&&e,u=!n&&f(e=c.selector||e);if(i=i||[],1===u.length){if(2<(r=u[0]=u[0].slice(0)).length&&"ID"===(a=r[0]).type&&9===t.nodeType&&k&&x.relative[r[1].type]){if(!(t=(x.find.ID(a.matches[0].replace(J,ee),t)||[])[0]))return i;c&&(t=t.parentNode),e=e.slice(r.shift().value.length)}for(o=U.needsContext.test(e)?0:r.length;o--&&(a=r[o],!x.relative[s=a.type]);)if((l=x.find[s])&&(n=l(a.matches[0].replace(J,ee),Q.test(r[0].type)&&me(t.parentNode)||t))){if(r.splice(o,1),!(e=n.length&&ve(r)))return L.apply(i,n),i;break}}return(c||d(e,u))(n,t,!k,i,!t||Q.test(e)&&me(t.parentNode)||t),i},p.sortStable=C.split("").sort(A).join("")===C,p.detectDuplicates=!!c,S(),p.sortDetached=le(function(e){return 1&e.compareDocumentPosition(w.createElement("fieldset"))}),le(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||ce("type|href|height|width",function(e,t,i){if(!i)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),p.attributes&&le(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ce("value",function(e,t,i){if(!i&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),le(function(e){return null==e.getAttribute("disabled")})||ce(H,function(e,t,i){var n;if(!i)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null}),re}(w);C.find=p,C.expr=p.selectors,C.expr[":"]=C.expr.pseudos,C.uniqueSort=C.unique=p.uniqueSort,C.text=p.getText,C.isXMLDoc=p.isXML,C.contains=p.contains,C.escapeSelector=p.escape;var f=function(e,t,i){for(var n=[],o=void 0!==i;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&C(e).is(i))break;n.push(e)}return n},S=function(e,t){for(var i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i},M=C.expr.match.needsContext;function P(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var A=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function E(e,i,n){return b(i)?C.grep(e,function(e,t){return!!i.call(e,t,e)!==n}):i.nodeType?C.grep(e,function(e){return e===i!==n}):"string"!=typeof i?C.grep(e,function(e){return-1<o.call(i,e)!==n}):C.filter(i,e,n)}C.filter=function(e,t,i){var n=t[0];return i&&(e=":not("+e+")"),1===t.length&&1===n.nodeType?C.find.matchesSelector(n,e)?[n]:[]:C.find.matches(e,C.grep(t,function(e){return 1===e.nodeType}))},C.fn.extend({find:function(e){var t,i,n=this.length,o=this;if("string"!=typeof e)return this.pushStack(C(e).filter(function(){for(t=0;t<n;t++)if(C.contains(o[t],this))return!0}));for(i=this.pushStack([]),t=0;t<n;t++)C.find(e,o[t],i);return 1<n?C.uniqueSort(i):i},filter:function(e){return this.pushStack(E(this,e||[],!1))},not:function(e){return this.pushStack(E(this,e||[],!0))},is:function(e){return!!E(this,"string"==typeof e&&M.test(e)?C(e):e||[],!1).length}});var D,O=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(C.fn.init=function(e,t,i){var n,o;if(!e)return this;if(i=i||D,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):b(e)?void 0!==i.ready?i.ready(e):e(C):C.makeArray(e,this);if(!(n="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:O.exec(e))||!n[1]&&t)return!t||t.jquery?(t||i).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof C?t[0]:t,C.merge(this,C.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:k,!0)),A.test(n[1])&&C.isPlainObject(t))for(n in t)b(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}return(o=k.getElementById(n[2]))&&(this[0]=o,this.length=1),this}).prototype=C.fn,D=C(k);var L=/^(?:parents|prev(?:Until|All))/,I={children:!0,contents:!0,next:!0,prev:!0};function R(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}C.fn.extend({has:function(e){var t=C(e,this),i=t.length;return this.filter(function(){for(var e=0;e<i;e++)if(C.contains(this,t[e]))return!0})},closest:function(e,t){var i,n=0,o=this.length,r=[],a="string"!=typeof e&&C(e);if(!M.test(e))for(;n<o;n++)for(i=this[n];i&&i!==t;i=i.parentNode)if(i.nodeType<11&&(a?-1<a.index(i):1===i.nodeType&&C.find.matchesSelector(i,e))){r.push(i);break}return this.pushStack(1<r.length?C.uniqueSort(r):r)},index:function(e){return e?"string"==typeof e?o.call(C(e),this[0]):o.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(C.uniqueSort(C.merge(this.get(),C(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),C.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return f(e,"parentNode")},parentsUntil:function(e,t,i){return f(e,"parentNode",i)},next:function(e){return R(e,"nextSibling")},prev:function(e){return R(e,"previousSibling")},nextAll:function(e){return f(e,"nextSibling")},prevAll:function(e){return f(e,"previousSibling")},nextUntil:function(e,t,i){return f(e,"nextSibling",i)},prevUntil:function(e,t,i){return f(e,"previousSibling",i)},siblings:function(e){return S((e.parentNode||{}).firstChild,e)},children:function(e){return S(e.firstChild)},contents:function(e){return P(e,"iframe")?e.contentDocument:(P(e,"template")&&(e=e.content||e),C.merge([],e.childNodes))}},function(n,o){C.fn[n]=function(e,t){var i=C.map(this,o,e);return"Until"!==n.slice(-5)&&(t=e),t&&"string"==typeof t&&(i=C.filter(t,i)),1<this.length&&(I[n]||C.uniqueSort(i),L.test(n)&&i.reverse()),this.pushStack(i)}});var H=/[^\x20\t\r\n\f]+/g;function N(e){return e}function B(e){throw e}function G(e,t,i,n){var o;try{e&&b(o=e.promise)?o.call(e).done(t).fail(i):e&&b(o=e.then)?o.call(e,t,i):t.apply(void 0,[e].slice(n))}catch(e){i.apply(void 0,[e])}}C.Callbacks=function(n){var e,i;n="string"==typeof n?(e=n,i={},C.each(e.match(H)||[],function(e,t){i[t]=!0}),i):C.extend({},n);var o,t,r,a,s=[],l=[],c=-1,u=function(){for(a=a||n.once,r=o=!0;l.length;c=-1)for(t=l.shift();++c<s.length;)!1===s[c].apply(t[0],t[1])&&n.stopOnFalse&&(c=s.length,t=!1);n.memory||(t=!1),o=!1,a&&(s=t?[]:"")},d={add:function(){return s&&(t&&!o&&(c=s.length-1,l.push(t)),function i(e){C.each(e,function(e,t){b(t)?n.unique&&d.has(t)||s.push(t):t&&t.length&&"string"!==T(t)&&i(t)})}(arguments),t&&!o&&u()),this},remove:function(){return C.each(arguments,function(e,t){for(var i;-1<(i=C.inArray(t,s,i));)s.splice(i,1),i<=c&&c--}),this},has:function(e){return e?-1<C.inArray(e,s):0<s.length},empty:function(){return s&&(s=[]),this},disable:function(){return a=l=[],s=t="",this},disabled:function(){return!s},lock:function(){return a=l=[],t||o||(s=t=""),this},locked:function(){return!!a},fireWith:function(e,t){return a||(t=[e,(t=t||[]).slice?t.slice():t],l.push(t),o||u()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!r}};return d},C.extend({Deferred:function(e){var r=[["notify","progress",C.Callbacks("memory"),C.Callbacks("memory"),2],["resolve","done",C.Callbacks("once memory"),C.Callbacks("once memory"),0,"resolved"],["reject","fail",C.Callbacks("once memory"),C.Callbacks("once memory"),1,"rejected"]],o="pending",a={state:function(){return o},always:function(){return s.done(arguments).fail(arguments),this},catch:function(e){return a.then(null,e)},pipe:function(){var o=arguments;return C.Deferred(function(n){C.each(r,function(e,t){var i=b(o[t[4]])&&o[t[4]];s[t[1]](function(){var e=i&&i.apply(this,arguments);e&&b(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[t[0]+"With"](this,i?[e]:arguments)})}),o=null}).promise()},then:function(t,i,n){var l=0;function c(o,r,a,s){return function(){var i=this,n=arguments,e=function(){var e,t;if(!(o<l)){if((e=a.apply(i,n))===r.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,b(t)?s?t.call(e,c(l,r,N,s),c(l,r,B,s)):(l++,t.call(e,c(l,r,N,s),c(l,r,B,s),c(l,r,N,r.notifyWith))):(a!==N&&(i=void 0,n=[e]),(s||r.resolveWith)(i,n))}},t=s?e:function(){try{e()}catch(e){C.Deferred.exceptionHook&&C.Deferred.exceptionHook(e,t.stackTrace),l<=o+1&&(a!==B&&(i=void 0,n=[e]),r.rejectWith(i,n))}};o?t():(C.Deferred.getStackHook&&(t.stackTrace=C.Deferred.getStackHook()),w.setTimeout(t))}}return C.Deferred(function(e){r[0][3].add(c(0,e,b(n)?n:N,e.notifyWith)),r[1][3].add(c(0,e,b(t)?t:N)),r[2][3].add(c(0,e,b(i)?i:B))}).promise()},promise:function(e){return null!=e?C.extend(e,a):a}},s={};return C.each(r,function(e,t){var i=t[2],n=t[5];a[t[1]]=i.add,n&&i.add(function(){o=n},r[3-e][2].disable,r[3-e][3].disable,r[0][2].lock,r[0][3].lock),i.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?void 0:this,arguments),this},s[t[0]+"With"]=i.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){var i=arguments.length,t=i,n=Array(t),o=s.call(arguments),r=C.Deferred(),a=function(t){return function(e){n[t]=this,o[t]=1<arguments.length?s.call(arguments):e,--i||r.resolveWith(n,o)}};if(i<=1&&(G(e,r.done(a(t)).resolve,r.reject,!i),"pending"===r.state()||b(o[t]&&o[t].then)))return r.then();for(;t--;)G(o[t],a(t),r.reject);return r.promise()}});var F=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;C.Deferred.exceptionHook=function(e,t){w.console&&w.console.warn&&e&&F.test(e.name)&&w.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},C.readyException=function(e){w.setTimeout(function(){throw e})};var _=C.Deferred();function j(){k.removeEventListener("DOMContentLoaded",j),w.removeEventListener("load",j),C.ready()}C.fn.ready=function(e){return _.then(e).catch(function(e){C.readyException(e)}),this},C.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--C.readyWait:C.isReady)||((C.isReady=!0)!==e&&0<--C.readyWait||_.resolveWith(k,[C]))}}),C.ready.then=_.then,"complete"===k.readyState||"loading"!==k.readyState&&!k.documentElement.doScroll?w.setTimeout(C.ready):(k.addEventListener("DOMContentLoaded",j),w.addEventListener("load",j));var z=function(e,t,i,n,o,r,a){var s=0,l=e.length,c=null==i;if("object"===T(i))for(s in o=!0,i)z(e,t,s,i[s],!0,r,a);else if(void 0!==n&&(o=!0,b(n)||(a=!0),c&&(t=a?(t.call(e,n),null):(c=t,function(e,t,i){return c.call(C(e),i)})),t))for(;s<l;s++)t(e[s],i,a?n:n.call(e[s],s,t(e[s],i)));return o?e:c?t.call(e):l?t(e[0],i):r},V=/^-ms-/,W=/-([a-z])/g;function X(e,t){return t.toUpperCase()}function q(e){return e.replace(V,"ms-").replace(W,X)}var U=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function Y(){this.expando=C.expando+Y.uid++}Y.uid=1,Y.prototype={cache:function(e){var t=e[this.expando];return t||(t={},U(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,i){var n,o=this.cache(e);if("string"==typeof t)o[q(t)]=i;else for(n in t)o[q(n)]=t[n];return o},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][q(t)]},access:function(e,t,i){return void 0===t||t&&"string"==typeof t&&void 0===i?this.get(e,t):(this.set(e,t,i),void 0!==i?i:t)},remove:function(e,t){var i,n=e[this.expando];if(void 0!==n){if(void 0!==t){i=(t=Array.isArray(t)?t.map(q):(t=q(t))in n?[t]:t.match(H)||[]).length;for(;i--;)delete n[t[i]]}(void 0===t||C.isEmptyObject(n))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!C.isEmptyObject(t)}};var $=new Y,K=new Y,Z=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Q=/[A-Z]/g;function J(e,t,i){var n,o;if(void 0===i&&1===e.nodeType)if(n="data-"+t.replace(Q,"-$&").toLowerCase(),"string"==typeof(i=e.getAttribute(n))){try{i="true"===(o=i)||"false"!==o&&("null"===o?null:o===+o+""?+o:Z.test(o)?JSON.parse(o):o)}catch(e){}K.set(e,t,i)}else i=void 0;return i}C.extend({hasData:function(e){return K.hasData(e)||$.hasData(e)},data:function(e,t,i){return K.access(e,t,i)},removeData:function(e,t){K.remove(e,t)},_data:function(e,t,i){return $.access(e,t,i)},_removeData:function(e,t){$.remove(e,t)}}),C.fn.extend({data:function(i,e){var t,n,o,r=this[0],a=r&&r.attributes;if(void 0!==i)return"object"==typeof i?this.each(function(){K.set(this,i)}):z(this,function(e){var t;if(r&&void 0===e){if(void 0!==(t=K.get(r,i)))return t;if(void 0!==(t=J(r,i)))return t}else this.each(function(){K.set(this,i,e)})},null,e,1<arguments.length,null,!0);if(this.length&&(o=K.get(r),1===r.nodeType&&!$.get(r,"hasDataAttrs"))){for(t=a.length;t--;)a[t]&&0===(n=a[t].name).indexOf("data-")&&(n=q(n.slice(5)),J(r,n,o[n]));$.set(r,"hasDataAttrs",!0)}return o},removeData:function(e){return this.each(function(){K.remove(this,e)})}}),C.extend({queue:function(e,t,i){var n;if(e)return t=(t||"fx")+"queue",n=$.get(e,t),i&&(!n||Array.isArray(i)?n=$.access(e,t,C.makeArray(i)):n.push(i)),n||[]},dequeue:function(e,t){t=t||"fx";var i=C.queue(e,t),n=i.length,o=i.shift(),r=C._queueHooks(e,t);"inprogress"===o&&(o=i.shift(),n--),o&&("fx"===t&&i.unshift("inprogress"),delete r.stop,o.call(e,function(){C.dequeue(e,t)},r)),!n&&r&&r.empty.fire()},_queueHooks:function(e,t){var i=t+"queueHooks";return $.get(e,i)||$.access(e,i,{empty:C.Callbacks("once memory").add(function(){$.remove(e,[t+"queue",i])})})}}),C.fn.extend({queue:function(t,i){var e=2;return"string"!=typeof t&&(i=t,t="fx",e--),arguments.length<e?C.queue(this[0],t):void 0===i?this:this.each(function(){var e=C.queue(this,t,i);C._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&C.dequeue(this,t)})},dequeue:function(e){return this.each(function(){C.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var i,n=1,o=C.Deferred(),r=this,a=this.length,s=function(){--n||o.resolveWith(r,[r])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(i=$.get(r[a],e+"queueHooks"))&&i.empty&&(n++,i.empty.add(s));return s(),o.promise(t)}});var ee=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,te=new RegExp("^(?:([+-])=|)("+ee+")([a-z%]*)$","i"),ie=["Top","Right","Bottom","Left"],ne=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&C.contains(e.ownerDocument,e)&&"none"===C.css(e,"display")},oe=function(e,t,i,n){var o,r,a={};for(r in t)a[r]=e.style[r],e.style[r]=t[r];for(r in o=i.apply(e,n||[]),t)e.style[r]=a[r];return o};function re(e,t,i,n){var o,r,a=20,s=n?function(){return n.cur()}:function(){return C.css(e,t,"")},l=s(),c=i&&i[3]||(C.cssNumber[t]?"":"px"),u=(C.cssNumber[t]||"px"!==c&&+l)&&te.exec(C.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;a--;)C.style(e,t,u+c),(1-r)*(1-(r=s()/l||.5))<=0&&(a=0),u/=r;u*=2,C.style(e,t,u+c),i=i||[]}return i&&(u=+u||+l||0,o=i[1]?u+(i[1]+1)*i[2]:+i[2],n&&(n.unit=c,n.start=u,n.end=o)),o}var ae={};function se(e,t){for(var i,n,o=[],r=0,a=e.length;r<a;r++)(n=e[r]).style&&(i=n.style.display,t?("none"===i&&(o[r]=$.get(n,"display")||null,o[r]||(n.style.display="")),""===n.style.display&&ne(n)&&(o[r]=(d=c=l=void 0,c=(s=n).ownerDocument,u=s.nodeName,(d=ae[u])||(l=c.body.appendChild(c.createElement(u)),d=C.css(l,"display"),l.parentNode.removeChild(l),"none"===d&&(d="block"),ae[u]=d)))):"none"!==i&&(o[r]="none",$.set(n,"display",i)));var s,l,c,u,d;for(r=0;r<a;r++)null!=o[r]&&(e[r].style.display=o[r]);return e}C.fn.extend({show:function(){return se(this,!0)},hide:function(){return se(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ne(this)?C(this).show():C(this).hide()})}});var le=/^(?:checkbox|radio)$/i,ce=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,ue=/^$|^module$|\/(?:java|ecma)script/i,de={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function he(e,t){var i;return i=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&P(e,t)?C.merge([e],i):i}function pe(e,t){for(var i=0,n=e.length;i<n;i++)$.set(e[i],"globalEval",!t||$.get(t[i],"globalEval"))}de.optgroup=de.option,de.tbody=de.tfoot=de.colgroup=de.caption=de.thead,de.th=de.td;var fe,me,ge=/<|&#?\w+;/;function ve(e,t,i,n,o){for(var r,a,s,l,c,u,d=t.createDocumentFragment(),h=[],p=0,f=e.length;p<f;p++)if((r=e[p])||0===r)if("object"===T(r))C.merge(h,r.nodeType?[r]:r);else if(ge.test(r)){for(a=a||d.appendChild(t.createElement("div")),s=(ce.exec(r)||["",""])[1].toLowerCase(),l=de[s]||de._default,a.innerHTML=l[1]+C.htmlPrefilter(r)+l[2],u=l[0];u--;)a=a.lastChild;C.merge(h,a.childNodes),(a=d.firstChild).textContent=""}else h.push(t.createTextNode(r));for(d.textContent="",p=0;r=h[p++];)if(n&&-1<C.inArray(r,n))o&&o.push(r);else if(c=C.contains(r.ownerDocument,r),a=he(d.appendChild(r),"script"),c&&pe(a),i)for(u=0;r=a[u++];)ue.test(r.type||"")&&i.push(r);return d}fe=k.createDocumentFragment().appendChild(k.createElement("div")),(me=k.createElement("input")).setAttribute("type","radio"),me.setAttribute("checked","checked"),me.setAttribute("name","t"),fe.appendChild(me),v.checkClone=fe.cloneNode(!0).cloneNode(!0).lastChild.checked,fe.innerHTML="<textarea>x</textarea>",v.noCloneChecked=!!fe.cloneNode(!0).lastChild.defaultValue;var be=k.documentElement,ye=/^key/,xe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Te=/^([^.]*)(?:\.(.+)|)/;function Se(){return!0}function we(){return!1}function ke(){try{return k.activeElement}catch(e){}}function Ce(e,t,i,n,o,r){var a,s;if("object"==typeof t){for(s in"string"!=typeof i&&(n=n||i,i=void 0),t)Ce(e,s,i,n,t[s],r);return e}if(null==n&&null==o?(o=i,n=i=void 0):null==o&&("string"==typeof i?(o=n,n=void 0):(o=n,n=i,i=void 0)),!1===o)o=we;else if(!o)return e;return 1===r&&(a=o,(o=function(e){return C().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=C.guid++)),e.each(function(){C.event.add(this,t,o,n,i)})}C.event={global:{},add:function(t,e,i,n,o){var r,a,s,l,c,u,d,h,p,f,m,g=$.get(t);if(g)for(i.handler&&(i=(r=i).handler,o=r.selector),o&&C.find.matchesSelector(be,o),i.guid||(i.guid=C.guid++),(l=g.events)||(l=g.events={}),(a=g.handle)||(a=g.handle=function(e){return void 0!==C&&C.event.triggered!==e.type?C.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(H)||[""]).length;c--;)p=m=(s=Te.exec(e[c])||[])[1],f=(s[2]||"").split(".").sort(),p&&(d=C.event.special[p]||{},p=(o?d.delegateType:d.bindType)||p,d=C.event.special[p]||{},u=C.extend({type:p,origType:m,data:n,handler:i,guid:i.guid,selector:o,needsContext:o&&C.expr.match.needsContext.test(o),namespace:f.join(".")},r),(h=l[p])||((h=l[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(t,n,f,a)||t.addEventListener&&t.addEventListener(p,a)),d.add&&(d.add.call(t,u),u.handler.guid||(u.handler.guid=i.guid)),o?h.splice(h.delegateCount++,0,u):h.push(u),C.event.global[p]=!0)},remove:function(e,t,i,n,o){var r,a,s,l,c,u,d,h,p,f,m,g=$.hasData(e)&&$.get(e);if(g&&(l=g.events)){for(c=(t=(t||"").match(H)||[""]).length;c--;)if(p=m=(s=Te.exec(t[c])||[])[1],f=(s[2]||"").split(".").sort(),p){for(d=C.event.special[p]||{},h=l[p=(n?d.delegateType:d.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=r=h.length;r--;)u=h[r],!o&&m!==u.origType||i&&i.guid!==u.guid||s&&!s.test(u.namespace)||n&&n!==u.selector&&("**"!==n||!u.selector)||(h.splice(r,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(e,u));a&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,f,g.handle)||C.removeEvent(e,p,g.handle),delete l[p])}else for(p in l)C.event.remove(e,p+t[c],i,n,!0);C.isEmptyObject(l)&&$.remove(e,"handle events")}},dispatch:function(e){var t,i,n,o,r,a,s=C.event.fix(e),l=new Array(arguments.length),c=($.get(this,"events")||{})[s.type]||[],u=C.event.special[s.type]||{};for(l[0]=s,t=1;t<arguments.length;t++)l[t]=arguments[t];if(s.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,s)){for(a=C.event.handlers.call(this,s,c),t=0;(o=a[t++])&&!s.isPropagationStopped();)for(s.currentTarget=o.elem,i=0;(r=o.handlers[i++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!s.rnamespace.test(r.namespace)||(s.handleObj=r,s.data=r.data,void 0!==(n=((C.event.special[r.origType]||{}).handle||r.handler).apply(o.elem,l))&&!1===(s.result=n)&&(s.preventDefault(),s.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,s),s.result}},handlers:function(e,t){var i,n,o,r,a,s=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&1<=e.button))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(r=[],a={},i=0;i<l;i++)void 0===a[o=(n=t[i]).selector+" "]&&(a[o]=n.needsContext?-1<C(o,this).index(c):C.find(o,this,null,[c]).length),a[o]&&r.push(n);r.length&&s.push({elem:c,handlers:r})}return c=this,l<t.length&&s.push({elem:c,handlers:t.slice(l)}),s},addProp:function(t,e){Object.defineProperty(C.Event.prototype,t,{enumerable:!0,configurable:!0,get:b(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[C.expando]?e:new C.Event(e)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==ke()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===ke()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&P(this,"input"))return this.click(),!1},_default:function(e){return P(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},C.removeEvent=function(e,t,i){e.removeEventListener&&e.removeEventListener(t,i)},C.Event=function(e,t){if(!(this instanceof C.Event))return new C.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Se:we,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&C.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[C.expando]=!0},C.Event.prototype={constructor:C.Event,isDefaultPrevented:we,isPropagationStopped:we,isImmediatePropagationStopped:we,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Se,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Se,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Se,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},C.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&ye.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&xe.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},C.event.addProp),C.each({mouseenter:"mouseover",mouseleave:"mou
1seout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,o){C.event.special[e]={delegateType:o,bindType:o,handle:function(e){var t,i=e.relatedTarget,n=e.handleObj;return i&&(i===this||C.contains(this,i))||(e.type=n.origType,t=n.handler.apply(this,arguments),e.type=o),t}}}),C.fn.extend({on:function(e,t,i,n){return Ce(this,e,t,i,n)},one:function(e,t,i,n){return Ce(this,e,t,i,n,1)},off:function(e,t,i){var n,o;if(e&&e.preventDefault&&e.handleObj)return n=e.handleObj,C(e.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"!=typeof e)return!1!==t&&"function"!=typeof t||(i=t,t=void 0),!1===i&&(i=we),this.each(function(){C.event.remove(this,e,i,t)});for(o in e)this.off(o,t,e[o]);return this}});var Me=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Pe=/<script|<style|<link/i,Ae=/checked\s*(?:[^=]|=\s*.checked.)/i,Ee=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function De(e,t){return P(e,"table")&&P(11!==t.nodeType?t:t.firstChild,"tr")&&C(e).children("tbody")[0]||e}function Oe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Le(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ie(e,t){var i,n,o,r,a,s,l,c;if(1===t.nodeType){if($.hasData(e)&&(r=$.access(e),a=$.set(t,r),c=r.events))for(o in delete a.handle,a.events={},c)for(i=0,n=c[o].length;i<n;i++)C.event.add(t,o,c[o][i]);K.hasData(e)&&(s=K.access(e),l=C.extend({},s),K.set(t,l))}}function Re(i,n,o,r){n=m.apply([],n);var e,t,a,s,l,c,u=0,d=i.length,h=d-1,p=n[0],f=b(p);if(f||1<d&&"string"==typeof p&&!v.checkClone&&Ae.test(p))return i.each(function(e){var t=i.eq(e);f&&(n[0]=p.call(this,e,t.html())),Re(t,n,o,r)});if(d&&(t=(e=ve(n,i[0].ownerDocument,!1,i,r)).firstChild,1===e.childNodes.length&&(e=t),t||r)){for(s=(a=C.map(he(e,"script"),Oe)).length;u<d;u++)l=e,u!==h&&(l=C.clone(l,!0,!0),s&&C.merge(a,he(l,"script"))),o.call(i[u],l,u);if(s)for(c=a[a.length-1].ownerDocument,C.map(a,Le),u=0;u<s;u++)l=a[u],ue.test(l.type||"")&&!$.access(l,"globalEval")&&C.contains(c,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?C._evalUrl&&C._evalUrl(l.src):x(l.textContent.replace(Ee,""),c,l))}return i}function He(e,t,i){for(var n,o=t?C.filter(t,e):e,r=0;null!=(n=o[r]);r++)i||1!==n.nodeType||C.cleanData(he(n)),n.parentNode&&(i&&C.contains(n.ownerDocument,n)&&pe(he(n,"script")),n.parentNode.removeChild(n));return e}C.extend({htmlPrefilter:function(e){return e.replace(Me,"<$1></$2>")},clone:function(e,t,i){var n,o,r,a,s,l,c,u=e.cloneNode(!0),d=C.contains(e.ownerDocument,e);if(!(v.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||C.isXMLDoc(e)))for(a=he(u),n=0,o=(r=he(e)).length;n<o;n++)s=r[n],l=a[n],void 0,"input"===(c=l.nodeName.toLowerCase())&&le.test(s.type)?l.checked=s.checked:"input"!==c&&"textarea"!==c||(l.defaultValue=s.defaultValue);if(t)if(i)for(r=r||he(e),a=a||he(u),n=0,o=r.length;n<o;n++)Ie(r[n],a[n]);else Ie(e,u);return 0<(a=he(u,"script")).length&&pe(a,!d&&he(e,"script")),u},cleanData:function(e){for(var t,i,n,o=C.event.special,r=0;void 0!==(i=e[r]);
vendor: 16,244 bytes, line 1
1r++)if(U(i)){if(t=i[$.expando]){if(t.events)for(n in t.events)o[n]?C.event.remove(i,n):C.removeEvent(i,n,t.handle);i[$.expando]=void 0}i[K.expando]&&(i[K.expando]=void 0)}}}),C.fn.extend({detach:function(e){return He(this,e,!0)},remove:function(e){return He(this,e)},text:function(e){return z(this,function(e){return void 0===e?C.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Re(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||De(this,e).appendChild(e)})},prepend:function(){return Re(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=De(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Re(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Re(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(C.cleanData(he(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return C.clone(this,e,t)})},html:function(e){return z(this,function(e){var t=this[0]||{},i=0,n=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Pe.test(e)&&!de[(ce.exec(e)||["",""])[1].toLowerCase()]){e=C.htmlPrefilter(e);try{for(;i<n;i++)1===(t=this[i]||{}).nodeType&&(C.cleanData(he(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var i=[];return Re(this,arguments,function(e){var t=this.parentNode;C.inArray(this,i)<0&&(C.cleanData(he(this)),t&&t.replaceChild(e,this))},i)}}),C.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){C.fn[e]=function(e){for(var t,i=[],n=C(e),o=n.length-1,r=0;r<=o;r++)t=r===o?this:this.clone(!0),C(n[r])[a](t),l.apply(i,t.get());return this.pushStack(i)}});var Ne=new RegExp("^("+ee+")(?!px)[a-z%]+$","i"),Be=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=w),t.getComputedStyle(e)},Ge=new RegExp(ie.join("|"),"i");function Fe(e,t,i){var n,o,r,a,s=e.style;return(i=i||Be(e))&&(""!==(a=i.getPropertyValue(t)||i[t])||C.contains(e.ownerDocument,e)||(a=C.style(e,t)),!v.pixelBoxStyles()&&Ne.test(a)&&Ge.test(t)&&(n=s.width,o=s.minWidth,r=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=i.width,s.width=n,s.minWidth=o,s.maxWidth=r)),void 0!==a?a+"":a}function _e(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(l){s.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",be.appendChild(s).appendChild(l);var e=w.getComputedStyle(l);i="1%"!==e.top,a=12===t(e.marginLeft),l.style.right="60%",r=36===t(e.right),n=36===t(e.width),l.style.position="absolute",o=36===l.offsetWidth||"absolute",be.removeChild(s),l=null}}function t(e){return Math.round(parseFloat(e))}var i,n,o,r,a,s=k.createElement("div"),l=k.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle="content-box"===l.style.backgroundClip,C.extend(v,{boxSizingReliable:function(){return e(),n},pixelBoxStyles:function(){return e(),r},pixelPosition:function(){return e(),i},reliableMarginLeft:function(){return e(),a},scrollboxSize:function(){return e(),o}}))}();var je=/^(none|table(?!-c[ea]).+)/,ze=/^--/,Ve={position:"absolute",visibility:"hidden",display:"block"},We={letterSpacing:"0",fontWeight:"400"},Xe=["Webkit","Moz","ms"],qe=k.createElement("div").style;function Ue(e){var t=C.cssProps[e];return t||(t=C.cssProps[e]=function(e){if(e in qe)return e;for(var t=e[0].toUpperCase()+e.slice(1),i=Xe.length;i--;)if((e=Xe[i]+t)in qe)return e}(e)||e),t}function Ye(e,t,i){var n=te.exec(t);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):t}function $e(e,t,i,n,o,r){var a="width"===t?1:0,s=0,l=0;if(i===(n?"border":"content"))return 0;for(;a<4;a+=2)"margin"===i&&(l+=C.css(e,i+ie[a],!0,o)),n?("content"===i&&(l-=C.css(e,"padding"+ie[a],!0,o)),"margin"!==i&&(l-=C.css(e,"border"+ie[a]+"Width",!0,o))):(l+=C.css(e,"padding"+ie[a],!0,o),"padding"!==i?l+=C.css(e,"border"+ie[a]+"Width",!0,o):s+=C.css(e,"border"+ie[a]+"Width",!0,o));return!n&&0<=r&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-r-l-s-.5))),l}function Ke(e,t,i){var n=Be(e),o=Fe(e,t,n),r="border-box"===C.css(e,"boxSizing",!1,n),a=r;if(Ne.test(o)){if(!i)return o;o="auto"}return a=a&&(v.boxSizingReliable()||o===e.style[t]),("auto"===o||!parseFloat(o)&&"inline"===C.css(e,"display",!1,n))&&(o=e["offset"+t[0].toUpperCase()+t.slice(1)],a=!0),(o=parseFloat(o)||0)+$e(e,t,i||(r?"border":"content"),a,n,o)+"px"}function Ze(e,t,i,n,o){return new Ze.prototype.init(e,t,i,n,o)}C.extend({cssHooks:{opacity:{get:function(e,t){if(t){var i=Fe(e,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,i,n){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,r,a,s=q(t),l=ze.test(t),c=e.style;if(l||(t=Ue(s)),a=C.cssHooks[t]||C.cssHooks[s],void 0===i)return a&&"get"in a&&void 0!==(o=a.get(e,!1,n))?o:c[t];"string"==(r=typeof i)&&(o=te.exec(i))&&o[1]&&(i=re(e,t,o),r="number"),null!=i&&i==i&&("number"===r&&(i+=o&&o[3]||(C.cssNumber[s]?"":"px")),v.clearCloneStyle||""!==i||0!==t.indexOf("background")||(c[t]="inherit"),a&&"set"in a&&void 0===(i=a.set(e,i,n))||(l?c.setProperty(t,i):c[t]=i))}},css:function(e,t,i,n){var o,r,a,s=q(t);return ze.test(t)||(t=Ue(s)),(a=C.cssHooks[t]||C.cssHooks[s])&&"get"in a&&(o=a.get(e,!0,i)),void 0===o&&(o=Fe(e,t,n)),"normal"===o&&t in We&&(o=We[t]),""===i||i?(r=parseFloat(o),!0===i||isFinite(r)?r||0:o):o}}),C.each(["height","width"],function(e,s){C.cssHooks[s]={get:function(e,t,i){if(t)return!je.test(C.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Ke(e,s,i):oe(e,Ve,function(){return Ke(e,s,i)})},set:function(e,t,i){var n,o=Be(e),r="border-box"===C.css(e,"boxSizing",!1,o),a=i&&$e(e,s,i,r,o);return r&&v.scrollboxSize()===o.position&&(a-=Math.ceil(e["offset"+s[0].toUpperCase()+s.slice(1)]-parseFloat(o[s])-$e(e,s,"border",!1,o)-.5)),a&&(n=te.exec(t))&&"px"!==(n[3]||"px")&&(e.style[s]=t,t=C.css(e,s)),Ye(0,t,a)}}}),C.cssHooks.marginLeft=_e(v.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Fe(e,"marginLeft"))||e.getBoundingClientRect().left-oe(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),C.each({margin:"",padding:"",border:"Width"},function(o,r){C.cssHooks[o+r]={expand:function(e){for(var t=0,i={},n="string"==typeof e?e.split(" "):[e];t<4;t++)i[o+ie[t]+r]=n[t]||n[t-2]||n[0];return i}},"margin"!==o&&(C.cssHooks[o+r].set=Ye)}),C.fn.extend({css:function(e,t){return z(this,function(e,t,i){var n,o,r={},a=0;if(Array.isArray(t)){for(n=Be(e),o=t.length;a<o;a++)r[t[a]]=C.css(e,t[a],!1,n);return r}return void 0!==i?C.style(e,t,i):C.css(e,t)},e,t,1<arguments.length)}}),((C.Tween=Ze).prototype={constructor:Ze,init:function(e,t,i,n,o,r){this.elem=e,this.prop=i,this.easing=o||C.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=n,this.unit=r||(C.cssNumber[i]?"":"px")},cur:function(){var e=Ze.propHooks[this.prop];return e&&e.get?e.get(this):Ze.propHooks._default.get(this)},run:function(e){var t,i=Ze.propHooks[this.prop];return this.options.duration?this.pos=t=C.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):Ze.propHooks._default.set(this),this}}).init.prototype=Ze.prototype,(Ze.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=C.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){C.fx.step[e.prop]?C.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[C.cssProps[e.prop]]&&!C.cssHooks[e.prop]?e.elem[e.prop]=e.now:C.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=Ze.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},C.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},C.fx=Ze.prototype.init,C.fx.step={};var Qe,Je,et,tt,it=/^(?:toggle|show|hide)$/,nt=/queueHooks$/;function ot(){Je&&(!1===k.hidden&&w.requestAnimationFrame?w.requestAnimationFrame(ot):w.setTimeout(ot,C.fx.interval),C.fx.tick())}function rt(){return w.setTimeout(function(){Qe=void 0}),Qe=Date.now()}function at(e,t){var i,n=0,o={height:e};for(t=t?1:0;n<4;n+=2-t)o["margin"+(i=ie[n])]=o["padding"+i]=e;return t&&(o.opacity=o.width=e),o}function st(e,t,i){for(var n,o=(lt.tweeners[t]||[]).concat(lt.tweeners["*"]),r=0,a=o.length;r<a;r++)if(n=o[r].call(i,t,e))return n}function lt(r,e,t){var i,a,n=0,o=lt.prefilters.length,s=C.Deferred().always(function(){delete l.elem}),l=function(){if(a)return!1;for(var e=Qe||rt(),t=Math.max(0,c.startTime+c.duration-e),i=1-(t/c.duration||0),n=0,o=c.tweens.length;n<o;n++)c.tweens[n].run(i);return s.notifyWith(r,[c,i,t]),i<1&&o?t:(o||s.notifyWith(r,[c,1,0]),s.resolveWith(r,[c]),!1)},c=s.promise({elem:r,props:C.extend({},e),opts:C.extend(!0,{specialEasing:{},easing:C.easing._default},t),originalProperties:e,originalOptions:t,startTime:Qe||rt(),duration:t.duration,tweens:[],createTween:function(e,t){var i=C.Tween(r,c.opts,e,t,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(i),i},stop:function(e){var t=0,i=e?c.tweens.length:0;if(a)return this;for(a=!0;t<i;t++)c.tweens[t].run(1);return e?(s.notifyWith(r,[c,1,0]),s.resolveWith(r,[c,e])):s.rejectWith(r,[c,e]),this}}),u=c.props;for(function(e,t){var i,n,o,r,a;for(i in e)if(o=t[n=q(i)],r=e[i],Array.isArray(r)&&(o=r[1],r=e[i]=r[0]),i!==n&&(e[n]=r,delete e[i]),(a=C.cssHooks[n])&&"expand"in a)for(i in r=a.expand(r),delete e[n],r)i in e||(e[i]=r[i],t[i]=o);else t[n]=o}(u,c.opts.specialEasing);n<o;n++)if(i=lt.prefilters[n].call(c,r,u,c.opts))return b(i.stop)&&(C._queueHooks(c.elem,c.opts.queue).stop=i.stop.bind(i)),i;return C.map(u,st,c),b(c.opts.start)&&c.opts.start.call(r,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),C.fx.timer(C.extend(l,{elem:r,anim:c,queue:c.opts.queue})),c}C.Animation=C.extend(lt,{tweeners:{"*":[function(e,t){var i=this.createTween(e,t);return re(i.elem,e,te.exec(t),i),i}]},tweener:function(e,t){for(var i,n=0,o=(e=b(e)?(t=e,["*"]):e.match(H)).length;n<o;n++)i=e[n],lt.tweeners[i]=lt.tweeners[i]||[],lt.tweeners[i].unshift(t)},prefilters:[function(e,t,i){var n,o,r,a,s,l,c,u,d="width"in t||"height"in t,h=this,p={},f=e.style,m=e.nodeType&&ne(e),g=$.get(e,"fxshow");for(n in i.queue||(null==(a=C._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,h.always(function(){h.always(function(){a.unqueued--,C.queue(e,"fx").length||a.empty.fire()})})),t)if(o=t[n],it.test(o)){if(delete t[n],r=r||"toggle"===o,o===(m?"hide":"show")){if("show"!==o||!g||void 0===g[n])continue;m=!0}p[n]=g&&g[n]||C.style(e,n)}if((l=!C.isEmptyObject(t))||!C.isEmptyObject(p))for(n in d&&1===e.nodeType&&(i.overflow=[f.overflow,f.overflowX,f.overflowY],null==(c=g&&g.display)&&(c=$.get(e,"display")),"none"===(u=C.css(e,"display"))&&(c?u=c:(se([e],!0),c=e.style.display||c,u=C.css(e,"display"),se([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===C.css(e,"float")&&(l||(h.done(function(){f.display=c}),null==c&&(u=f.display,c="none"===u?"":u)),f.display="inline-block")),i.overflow&&(f.overflow="hidden",h.always(function(){f.overflow=i.overflow[0],f.overflowX=i.overflow[1],f.overflowY=i.overflow[2]})),l=!1,p)l||(g?"hidden"in g&&(m=g.hidden):g=$.access(e,"fxshow",{display:c}),r&&(g.hidden=!m),m&&se([e],!0),h.done(function(){for(n in m||se([e]),$.remove(e,"fxshow"),p)C.style(e,n,p[n])})),l=st(m?g[n]:0,n,h),n in g||(g[n]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?lt.prefilters.unshift(e):lt.prefilters.push(e)}}),C.speed=function(e,t,i){var n=e&&"object"==typeof e?C.extend({},e):{complete:i||!i&&t||b(e)&&e,duration:e,easing:i&&t||t&&!b(t)&&t};return C.fx.off?n.duration=0:"number"!=typeof n.duration&&(n.duration in C.fx.speeds?n.duration=C.fx.speeds[n.duration]:n.duration=C.fx.speeds._default),null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){b(n.old)&&n.old.call(this),n.queue&&C.dequeue(this,n.queue)},n},C.fn.extend({fadeTo:function(e,t,i,n){return this.filter(ne).css("opacity",0).show().end().animate({opacity:t},e,i,n)},animate:function(t,e,i,n){var o=C.isEmptyObject(t),r=C.speed(e,i,n),a=function(){var e=lt(this,C.extend({},t),r);(o||$.get(this,"finish"))&&e.stop(!0)};return a.finish=a,o||!1===r.queue?this.each(a):this.queue(r.queue,a)},stop:function(o,e,r){var a=function(e){var t=e.stop;delete e.stop,t(r)};return"string"!=typeof o&&(r=e,e=o,o=void 0),e&&!1!==o&&this.queue(o||"fx",[]),this.each(function(){var e=!0,t=null!=o&&o+"queueHooks",i=C.timers,n=$.get(this);if(t)n[t]&&n[t].stop&&a(n[t]);else for(t in n)n[t]&&n[t].stop&&nt.test(t)&&a(n[t]);for(t=i.length;t--;)i[t].elem!==this||null!=o&&i[t].queue!==o||(i[t].anim.stop(r),e=!1,i.splice(t,1));!e&&r||C.dequeue(this,o)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=$.get(this),i=t[a+"queue"],n=t[a+"queueHooks"],o=C.timers,r=i?i.length:0;for(t.finish=!0,C.queue(this,a,[]),n&&n.stop&&n.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===a&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<r;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete t.finish})}}),C.each(["toggle","show","hide"],function(e,n){var o=C.fn[n];C.fn[n]=function(e,t,i){return null==e||"boolean"==typeof e?o.apply(this,arguments):this.animate(at(n,!0),e,t,i)}}),C.each({slideDown:at("show"),slideUp:at("hide"),slideToggle:at("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,n){C.fn[e]=function(e,t,i){return this.animate(n,e,t,i)}}),C.timers=[],C.fx.tick=function(){var e,t=0,i=C.timers;for(Qe=Date.now();t<i.length;t++)(e=i[t])()||i[t]!==e||i.splice(t--,1);i.length||C.fx.stop(),Qe=void 0},C.fx.timer=function(e){C.timers.push(e),C.fx.start()},C.fx.interval=13,C.fx.start=function(){Je||(Je=!0,ot())},C.fx.stop=function(){Je=null},C.fx.speeds={slow:600,fast:200,_default:400},C.fn.delay=function(n,e){return n=C.fx&&C.fx.speeds[n]||n,e=e||"fx",this.queue(e,function(e,t){var i=w.setTimeout(e,n);t.stop=function(){w.clearTimeout(i)}})},et=k.createElement("input"),tt=k.createElement("select").appendChild(k.createElement("option")),et.type="checkbox",v.checkOn=""!==et.value,v.optSelected=tt.selected,(et=k.createElement("input")).value="t",et.type="radio",v.radioValue="t"===et.value;var ct,ut=C.expr.attrHandle;C.fn.extend({attr:function(e,t){return z(this,C.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){C.removeAttr(this,e)})}}),C.extend({attr:function(e,t,i){var n,o,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===e.getAttribute?C.prop(e,t,i):(1===r&&C.isXMLDoc(e)||(o=C.attrHooks[t.toLowerCase()]||(C.expr.match.bool.test(t)?ct:void 0)),void 0!==i?null===i?void C.removeAttr(e,t):o&&"set"in o&&void 0!==(n=o.set(e,i,t))?n:(e.setAttribute(t,i+""),i):o&&"get"in o&&null!==(n=o.get(e,t))?n:null==(n=C.find.attr(e,t))?void 0:n)},attrHooks:{type:{set:function(e,t){if(!v.radioValue&&"radio"===t&&P(e,"input")){var i=e.value;return e.setAttribute("type",t),i&&(e.value=i),t}}}},removeAttr:function(e,t){var i,n=0,o=t&&t.match(H);if(o&&1===e.nodeType)for(;i=o[n++];)e.removeAttribute(i)}}),ct={set:function(e,t,i){return!1===t?C.removeAttr(e,i):e.setAttribute(i,i),i}},C.each(C.expr.match.bool.source.match(/\w+/g),function(e,t){var a=ut[t]||C.find.attr;ut[t]=function(e,t,i){var n,o,r=t.toLowerCase();
vendor: 4,662 bytes, line 1
1return i||(o=ut[r],ut[r]=n,n=null!=a(e,t,i)?r:null,ut[r]=o),n}});var dt=/^(?:input|select|textarea|button)$/i,ht=/^(?:a|area)$/i;function pt(e){return(e.match(H)||[]).join(" ")}function ft(e){return e.getAttribute&&e.getAttribute("class")||""}function mt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(H)||[]}C.fn.extend({prop:function(e,t){return z(this,C.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[C.propFix[e]||e]})}}),C.extend({prop:function(e,t,i){var n,o,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&C.isXMLDoc(e)||(t=C.propFix[t]||t,o=C.propHooks[t]),void 0!==i?o&&"set"in o&&void 0!==(n=o.set(e,i,t))?n:e[t]=i:o&&"get"in o&&null!==(n=o.get(e,t))?n:e[t]},propHooks:{tabIndex:{get:function(e){var t=C.find.attr(e,"tabindex");return t?parseInt(t,10):dt.test(e.nodeName)||ht.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(C.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),C.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){C.propFix[this.toLowerCase()]=this}),C.fn.extend({addClass:function(t){var e,i,n,o,r,a,s,l=0;if(b(t))return this.each(function(e){C(this).addClass(t.call(this,e,ft(this)))});if((e=mt(t)).length)for(;i=this[l++];)if(o=ft(i),n=1===i.nodeType&&" "+pt(o)+" "){for(a=0;r=e[a++];)n.indexOf(" "+r+" ")<0&&(n+=r+" ");o!==(s=pt(n))&&i.setAttribute("class",s)}return this},removeClass:function(t){var e,i,n,o,r,a,s,l=0;if(b(t))return this.each(function(e){C(this).removeClass(t.call(this,e,ft(this)))});if(!arguments.length)return this.attr("class","");if((e=mt(t)).length)for(;i=this[l++];)if(o=ft(i),n=1===i.nodeType&&" "+pt(o)+" "){for(a=0;r=e[a++];)for(;-1<n.indexOf(" "+r+" ");)n=n.replace(" "+r+" "," ");o!==(s=pt(n))&&i.setAttribute("class",s)}return this},toggleClass:function(o,t){var r=typeof o,a="string"===r||Array.isArray(o);return"boolean"==typeof t&&a?t?this.addClass(o):this.removeClass(o):b(o)?this.each(function(e){C(this).toggleClass(o.call(this,e,ft(this),t),t)}):this.each(function(){var e,t,i,n;if(a)for(t=0,i=C(this),n=mt(o);e=n[t++];)i.hasClass(e)?i.removeClass(e):i.addClass(e);else void 0!==o&&"boolean"!==r||((e=ft(this))&&$.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===o?"":$.get(this,"__className__")||""))})},hasClass:function(e){var t,i,n=0;for(t=" "+e+" ";i=this[n++];)if(1===i.nodeType&&-1<(" "+pt(ft(i))+" ").indexOf(t))return!0;return!1}});var gt=/\r/g;C.fn.extend({val:function(i){var n,e,o,t=this[0];return arguments.length?(o=b(i),this.each(function(e){var t;1===this.nodeType&&(null==(t=o?i.call(this,e,C(this).val()):i)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=C.map(t,function(e){return null==e?"":e+""})),(n=C.valHooks[this.type]||C.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&void 0!==n.set(this,t,"value")||(this.value=t))})):t?(n=C.valHooks[t.type]||C.valHooks[t.nodeName.toLowerCase()])&&"get"in n&&void 0!==(e=n.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(gt,""):null==e?"":e:void 0}}),C.extend({valHooks:{option:{get:function(e){var t=C.find.attr(e,"value");return null!=t?t:pt(C.text(e))}},select:{get:function(e){var t,i,n,o=e.options,r=e.selectedIndex,a="select-one"===e.type,s=a?null:[],l=a?r+1:o.length;for(n=r<0?l:a?r:0;n<l;n++)if(((i=o[n]).selected||n===r)&&!i.disabled&&(!i.parentNode.disabled||!P(i.parentNode,"optgroup"))){if(t=C(i).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var i,n,o=e.options,r=C.makeArray(t),a=o.length;a--;)((n=o[a]).selected=-1<C.inArray(C.valHooks.option.get(n),r))&&(i=!0);return i||(e.selectedIndex=-1),r}}}}),C.each(["radio","checkbox"],function(){C.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<C.inArray(C(e).val(),t)}},v.checkOn||(C.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),v.focusin="onfocusin"in w;var vt=/^(?:focusinfocus|focusoutblur)$/,bt=function(e){e.stopPropagation()};C.extend(C.event,{trigger:function(e,t,i,n){var o,r,a,s,l,c,u,d,h=[i||k],p=g.call(e,"type")?e.type:e,f=g.call(e,"namespace")?e.namespace.split("."):[];if(r=d=a=i=i||k,3!==i.nodeType&&8!==i.nodeType&&!vt.test(p+C.event.triggered)&&(-1<p.indexOf(".")&&(p=(f=p.split(".")).shift(),f.sort()),l=p.indexOf(":")<0&&"on"+p,(e=e[C.expando]?e:new C.Event(p,"object"==typeof e&&e)).isTrigger=n?2:3,e.namespace=f.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+f.
vendor: 11,769 bytes, line 1
1join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),t=null==t?[e]:C.makeArray(t,[e]),u=C.event.special[p]||{},n||!u.trigger||!1!==u.trigger.apply(i,t))){if(!n&&!u.noBubble&&!y(i)){for(s=u.delegateType||p,vt.test(s+p)||(r=r.parentNode);r;r=r.parentNode)h.push(r),a=r;a===(i.ownerDocument||k)&&h.push(a.defaultView||a.parentWindow||w)}for(o=0;(r=h[o++])&&!e.isPropagationStopped();)d=r,e.type=1<o?s:u.bindType||p,(c=($.get(r,"events")||{})[e.type]&&$.get(r,"handle"))&&c.apply(r,t),(c=l&&r[l])&&c.apply&&U(r)&&(e.result=c.apply(r,t),!1===e.result&&e.preventDefault());return e.type=p,n||e.isDefaultPrevented()||u._default&&!1!==u._default.apply(h.pop(),t)||!U(i)||l&&b(i[p])&&!y(i)&&((a=i[l])&&(i[l]=null),C.event.triggered=p,e.isPropagationStopped()&&d.addEventListener(p,bt),i[p](),e.isPropagationStopped()&&d.removeEventListener(p,bt),C.event.triggered=void 0,a&&(i[l]=a)),e.result}},simulate:function(e,t,i){var n=C.extend(new C.Event,i,{type:e,isSimulated:!0});C.event.trigger(n,null,t)}}),C.fn.extend({trigger:function(e,t){return this.each(function(){C.event.trigger(e,t,this)})},triggerHandler:function(e,t){var i=this[0];if(i)return C.event.trigger(e,t,i,!0)}}),v.focusin||C.each({focus:"focusin",blur:"focusout"},function(i,n){var o=function(e){C.event.simulate(n,e.target,C.event.fix(e))};C.event.special[n]={setup:function(){var e=this.ownerDocument||this,t=$.access(e,n);t||e.addEventListener(i,o,!0),$.access(e,n,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this,t=$.access(e,n)-1;t?$.access(e,n,t):(e.removeEventListener(i,o,!0),$.remove(e,n))}}});var yt=w.location,xt=Date.now(),Tt=/\?/;C.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new w.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||C.error("Invalid XML: "+e),t};var St=/\[\]$/,wt=/\r?\n/g,kt=/^(?:submit|button|image|reset|file)$/i,Ct=/^(?:input|select|textarea|keygen)/i;function Mt(i,e,n,o){var t;if(Array.isArray(e))C.each(e,function(e,t){n||St.test(i)?o(i,t):Mt(i+"["+("object"==typeof t&&null!=t?e:"")+"]",t,n,o)});else if(n||"object"!==T(e))o(i,e);else for(t in e)Mt(i+"["+t+"]",e[t],n,o)}C.param=function(e,t){var i,n=[],o=function(e,t){var i=b(t)?t():t;n[n.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==i?"":i)};if(Array.isArray(e)||e.jquery&&!C.isPlainObject(e))C.each(e,function(){o(this.name,this.value)});else for(i in e)Mt(i,e[i],t,o);return n.join("&")},C.fn.extend({serialize:function(){return C.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=C.prop(this,"elements");return e?C.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!C(this).is(":disabled")&&Ct.test(this.nodeName)&&!kt.test(e)&&(this.checked||!le.test(e))}).map(function(e,t){var i=C(this).val();return null==i?null:Array.isArray(i)?C.map(i,function(e){return{name:t.name,value:e.replace(wt,"\r\n")}}):{name:t.name,value:i.replace(wt,"\r\n")}}).get()}});var Pt=/%20/g,At=/#.*$/,Et=/([?&])_=[^&]*/,Dt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ot=/^(?:GET|HEAD)$/,Lt=/^\/\//,It={},Rt={},Ht="*/".concat("*"),Nt=k.createElement("a");function Bt(r){return function(e,t){"string"!=typeof e&&(t=e,e="*");var i,n=0,o=e.toLowerCase().match(H)||[];if(b(t))for(;i=o[n++];)"+"===i[0]?(i=i.slice(1)||"*",(r[i]=r[i]||[]).unshift(t)):(r[i]=r[i]||[]).push(t)}}function Gt(t,o,r,a){var s={},l=t===Rt;function c(e){var n;return s[e]=!0,C.each(t[e]||[],function(e,t){var i=t(o,r,a);return"string"!=typeof i||l||s[i]?l?!(n=i):void 0:(o.dataTypes.unshift(i),c(i),!1)}),n}return c(o.dataTypes[0])||!s["*"]&&c("*")}function Ft(e,t){var i,n,o=C.ajaxSettings.flatOptions||{};for(i in t)void 0!==t[i]&&((o[i]?e:n||(n={}))[i]=t[i]);return n&&C.extend(!0,e,n),e}Nt.href=yt.href,C.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:yt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(yt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ht,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":C.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Ft(Ft(e,C.ajaxSettings),t):Ft(C.ajaxSettings,e)},ajaxPrefilter:Bt(It),ajaxTransport:Bt(Rt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var u,d,h,i,p,n,f,m,o,r,g=C.ajaxSetup({},t),v=g.context||g,b=g.context&&(v.nodeType||v.jquery)?C(v):C.event,y=C.Deferred(),x=C.Callbacks("once memory"),T=g.statusCode||{},a={},s={},l="canceled",S={readyState:0,getResponseHeader:function(e){var t;if(f){if(!i)for(i={};t=Dt.exec(h);)i[t[1].toLowerCase()]=t[2];t=i[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return f?h:null},setRequestHeader:function(e,t){return null==f&&(e=s[e.toLowerCase()]=s[e.toLowerCase()]||e,a[e]=t),this},overrideMimeType:function(e){return null==f&&(g.mimeType=e),this},statusCode:function(e){var t;if(e)if(f)S.always(e[S.status]);else for(t in e)T[t]=[T[t],e[t]];return this},abort:function(e){var t=e||l;return u&&u.abort(t),c(0,t),this}};if(y.promise(S),g.url=((e||g.url||yt.href)+"").replace(Lt,yt.protocol+"//"),g.type=t.method||t.type||g.method||g.type,g.dataTypes=(g.dataType||"*").toLowerCase().match(H)||[""],null==g.crossDomain){n=k.createElement("a");try{n.href=g.url,n.href=n.href,g.crossDomain=Nt.protocol+"//"+Nt.host!=n.protocol+"//"+n.host}catch(e){g.crossDomain=!0}}if(g.data&&g.processData&&"string"!=typeof g.data&&(g.data=C.param(g.data,g.traditional)),Gt(It,g,t,S),f)return S;for(o in(m=C.event&&g.global)&&0==C.active++&&C.event.trigger("ajaxStart"),g.type=g.type.toUpperCase(),g.hasContent=!Ot.test(g.type),d=g.url.replace(At,""),g.hasContent?g.data&&g.processData&&0===(g.contentType||"").indexOf("application/x-www-form-urlencoded")&&(g.data=g.data.replace(Pt,"+")):(r=g.url.slice(d.length),g.data&&(g.processData||"string"==typeof g.data)&&(d+=(Tt.test(d)?"&":"?")+g.data,delete g.data),!1===g.cache&&(d=d.replace(Et,"$1"),r=(Tt.test(d)?"&":"?")+"_="+xt+++r),g.url=d+r),g.ifModified&&(C.lastModified[d]&&S.setRequestHeader("If-Modified-Since",C.lastModified[d]),C.etag[d]&&S.setRequestHeader("If-None-Match",C.etag[d])),(g.data&&g.hasContent&&!1!==g.contentType||t.contentType)&&S.setRequestHeader("Content-Type",g.contentType),S.setRequestHeader("Accept",g.dataTypes[0]&&g.accepts[g.dataTypes[0]]?g.accepts[g.dataTypes[0]]+("*"!==g.dataTypes[0]?", "+Ht+"; q=0.01":""):g.accepts["*"]),g.headers)S.setRequestHeader(o,g.headers[o]);if(g.beforeSend&&(!1===g.beforeSend.call(v,S,g)||f))return S.abort();if(l="abort",x.add(g.complete),S.done(g.success),S.fail(g.error),u=Gt(Rt,g,t,S)){if(S.readyState=1,m&&b.trigger("ajaxSend",[S,g]),f)return S;g.async&&0<g.timeout&&(p=w.setTimeout(function(){S.abort("timeout")},g.timeout));try{f=!1,u.send(a,c)}catch(e){if(f)throw e;c(-1,e)}}else c(-1,"No Transport");function c(e,t,i,n){var o,r,a,s,l,c=t;f||(f=!0,p&&w.clearTimeout(p),u=void 0,h=n||"",S.readyState=0<e?4:0,o=200<=e&&e<300||304===e,i&&(s=function(e,t,i){for(var n,o,r,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=e.mimeType||t.getResponseHeader("Content-Type"));if(n)for(o in s)if(s[o]&&s[o].test(n)){l.unshift(o);break}if(l[0]in i)r=l[0];else{for(o in i){if(!l[0]||e.converters[o+" "+l[0]]){r=o;break}a||(a=o)}r=r||a}if(r)return r!==l[0]&&l.unshift(r),i[r]}(g,S,i)),s=function(e,t,i,n){var o,r,a,s,l,c={},u=e.dataTypes.slice();if(u[1])for(a in e.converters)c[a.toLowerCase()]=e.converters[a];for(r=u.shift();r;)if(e.responseFields[r]&&(i[e.responseFields[r]]=t),!l&&n&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=r,r=u.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(a=c[l+" "+r]||c["* "+r]))for(o in c)if((s=o.split(" "))[1]===r&&(a=c[l+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[o]:!0!==c[o]&&(r=s[0],u.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+r}}}return{state:"success",data:t}}(g,s,S,o),o?(g.ifModified&&((l=S.getResponseHeader("Last-Modified"))&&(C.lastModified[d]=l),(l=S.getResponseHeader("etag"))&&(C.etag[d]=l)),204===e||"HEAD"===g.type?c="nocontent":304===e?c="notmodified":(c=s.state,r=s.data,o=!(a=s.error))):(a=c,!e&&c||(c="error",e<0&&(e=0))),S.status=e,S.statusText=(t||c)+"",o?y.resolveWith(v,[r,c,S]):y.rejectWith(v,[S,c,a]),S.statusCode(T),T=void 0,m&&b.trigger(o?"ajaxSuccess":"ajaxError",[S,g,o?r:a]),x.fireWith(v,[S,c]),m&&(b.trigger("ajaxComplete",[S,g]),--C.active||C.event.trigger("ajaxStop")))}return S},getJSON:function(e,t,i){return C.get(e,t,i,"json")},getScript:function(e,t){return C.get(e,void 0,t,"script")}}),C.each(["get","post"],function(e,o){C[o]=function(e,t,i,n){return b(t)&&(n=n||i,i=t,t=void 0),C.ajax(C.extend({url:e,type:o,dataType:n,data:t,success:i},C.isPlainObject(e)&&e))}}),C._evalUrl=function(e){return C.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},C.fn.extend({wrapAll:function(e){var t;return this[0]&&(b(e)&&(e=e.call(this[0])),t=C(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(i){return b(i)?this.each(function(e){C(this).wrapInner(i.call(this,e))}):this.each(function(){var e=C(this),t=e.contents();t.length?t.wrapAll(i):e.append(i)})},wrap:function(t){var i=b(t);return this.each(function(e){C(this).wrapAll(i?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){C(this).replaceWith(this.childNodes)}),this}}),C.expr.pseudos.hidden=function(e){return!C.expr.pseudos.visible(e)},C.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},C.ajaxSettings.xhr=function(){try{return new w.XMLHttpRequest}catch(e){}};var _t={0:200,1223:204},jt=C.ajaxSettings.xhr();v.cors=!!jt&&"withCredentials"in jt,v.ajax=jt=!!jt,C.ajaxTransport(function(o){var r,a;if(v.cors||jt&&!o.crossDomain)return{send:function(e,t){var i,n=o.xhr();if(n.open(o.type,o.url,o.async,o.username,o.password),o.xhrFields)for(i in o.xhrFields)n[i]=o.xhrFields[i];for(i in o.mimeType&&n.overrideMimeType&&n.overrideMimeType(o.mimeType),o.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)n.setRequestHeader(i,e[i]);r=function(e){return function(){r&&(r=a=n.onload=n.onerror=n.onabort=n.ontimeout=n.onreadystatechange=null,"abort"===e?n.abort():"error"===e?"number"!=typeof n.status?t(0,"error"):t(n.status,n.statusText):t(_t[n.status]||n.status,n.statusText,"text"!==(n.responseType||"text")||"string"!=typeof n.responseText?{binary:n.response}:{text:n.responseText},n.getAllResponseHeaders()))}},n.onload=r(),a=n.onerror=n.ontimeout=r("error"),void 0!==n.onabort?n.onabort=a:n.onreadystatechange=function(){4===n.readyState&&w.setTimeout(function(){r&&a()})},r=r("abort");try{n.send(o.hasContent&&o.data||null)}catch(e){if(r)throw e}},abort:function(){r&&r()}}}),C.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),C.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return C.globalEval(e),e}}}),C.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),C.ajaxTransport("script",function(i){var n,o;if(i.crossDomain)return{send:function(e,t){n=C("<script>
1").prop({charset:i.scriptCharset,src:i.url}).on("load error",o=function(e){n.remove(),o=null,e&&t("error"===e.type?404:200,e.type)}),k.head.appendChild(n[0])},abort:function(){o&&o()}}});var zt,Vt=[],Wt=/(=)\?(?=&|$)|\?\?/;C.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Vt.pop()||C.expando+"_"+xt++;return this[e]=!0,e}}),C.ajaxPrefilter("json jsonp",function(e,t,i){var n,o,r,a=!1!==e.jsonp&&(Wt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Wt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return n=e.jsonpCallback=b(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Wt,"$1"+n):!1!==e.jsonp&&(e.url+=(Tt.test(e.url)?"&":"?")+e.jsonp+"="+n),e.converters["script json"]=function(){return r||C.error(n+" was not called"),r[0]},e.dataTypes[0]="json",o=w[n],w[n]=function(){r=arguments},i.always(function(){void 0===o?C(w).removeProp(n):w[n]=o,e[n]&&(e.jsonpCallback=t.jsonpCallback,Vt.push(n)),r&&b(o)&&o(r[0]),r=o=void 0}),"script"}),v.createHTMLDocument=((zt=k.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===zt.childNodes.length),C.parseHTML=function(e,t,i){return"string"!=typeof e?[]:("boolean"==typeof t&&(i=t,t=!1),t||(v.createHTMLDocument?((n=(t=k.implementation.createHTMLDocument("")).createElement("base")).href=k.location.href,t.head.appendChild(n)):t=k),r=!i&&[],(o=A.exec(e))?[t.createElement(o[1])]:(o=ve([e],t,r),r&&r.length&&C(r).remove(),C.merge([],o.childNodes)));var n,o,r},C.fn.load=function(e,t,i){var n,o,r,a=this,s=e.indexOf(" ");return-1<s&&(n=pt(e.slice(s)),e=e.slice(0,s)),b(t)?(i=t,t=void 0):t&&"object"==typeof t&&(o="POST"),0<a.length&&C.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done(function(e){r=arguments,a.html(n?C("<div>").append(C.parseHTML(e)).find(n):e)}).always(i&&function(e,t){a.each(function(){i.apply(this,r||[e.responseText,t,e])})}),this},C.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){C.fn[t]=function(e){return this.on(t,e)}}),C.expr.pseudos.animated=function(t){return C.grep(C.timers,function(e){return t===e.elem}).length},C.offset={setOffset:function(e,t,i){var n,o,r,a,s,l,c=C.css(e,"position"),u=C(e),d={};"static"===c&&(e.style.position="relative"),s=u.offset(),r=C.css(e,"top"),l=C.css(e,"left"),o=("absolute"===c||"fixed"===c)&&-1<(r+l).indexOf("auto")?(a=(n=u.position()).top,n.left):(a=parseFloat(r)||0,parseFloat(l)||0),b(t)&&(t=t.call(e,i,C.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+o),"using"in t?t.using.call(e,d):u.css(d)}},C.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){C.offset.setOffset(this,t,e)});var e,i,n=this[0];return n?n.getClientRects().length?(e=n.getBoundingClientRect(),i=n.ownerDocument.defaultView,{top:e.top+i.pageYOffset,left:e.left+i.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,i,n=this[0],o={top:0,left:0};if("fixed"===C.css(n,"position"))t=n.getBoundingClientRect();else{for(t=this.offset(),i=n.ownerDocument,e=n.offsetParent||i.documentElement;e&&(e===i.body||e===i.documentElement)&&"static"===C.css(e,"position");)e=e.parentNode;e&&e!==n&&1===e.nodeType&&((o=C(e).offset()).top+=C.css(e,"borderTopWidth",!0),o.left+=C.css(e,"borderLeftWidth",!0))}return{top:t.top-o.top-C.css(n,"marginTop",!0),left:t.left-o.left-C.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===C.css(e,"position");)e=e.offsetParent;return e||be})}}),C.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,o){var r="pageYOffset"===o;C.fn[t]=function(e){return z(this,function(e,t,i){var n;if(y(e)?n=e:9===e.nodeType&&(n=e.defaultView),void 0===i)return n?n[o]:e[t];n?n.scrollTo(r?n.pageXOffset:i,r?i:n.pageYOffset):e[t]=i},t,e,arguments.length)}}),C.each(["top","left"],function(e,i){C.cssHooks[i]=_e(v.pixelPosition,function(e,t){if(t)return t=Fe(e,i),Ne.test(t)?C(e).position()[i]+"px":t})}),C.each({Height:"height",Width:"width"},function(a,s){C.each({padding:"inner"+a,content:s,"":"outer"+a},function(n,r){C.fn[r]=function(e,t){var i=arguments.length&&(n||"boolean"!=typeof e),o=n||(!0===e||!0===t?"margin":"border");return z(this,function(e,t,i){var n;return y(e)?0===r.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(n=e.documentElement,Math.max(e.body["scroll"+a],n["scroll"+a],e.body["offset"+a],n["offset"+a],n["client"+a])):void 0===i?C.css(e,t,o):C.style(e,t,i,o)},s,i?e:void 0,i)}})}),C.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,i){C.fn[i]=function(e,t){return 0<arguments.length?this.on(i,null,e,t):this.trigger(i)}}),C.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),C.fn.extend({bind:function(e,t,i){return this.on(e,null,t,i)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,i,n){return this.on(t,e,i,n)},undelegate:function(e,t,i){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",i)}}),C.proxy=function(e,t){var i,n,o;if("string"==typeof t&&(i=e[t],t=e,e=i),b(e))return n=s.call(arguments,2),(o=function(){return e.apply(t||this,n.concat(s.call(arguments)))}).guid=e.guid=e.guid||C.guid++,o},C.holdReady=function(e){e?C.readyWait++:C.ready(!0)},C.isArray=Array.isArray,C.parseJSON=JSON.parse,C.nodeName=P,C.isFunction=b,C.isWindow=y,C.camelCase=q,C.type=T,C.now=Date.now,C.isNumeric=function(e){var t=C.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},"function"==typeof define&&define.amd&&define("jquery",[],function(){return C});var Xt=w.jQuery,qt=w.$;return C.noConflict=function(e){return w.$===C&&(w.$=qt),e&&w.jQuery===C&&(w.jQuery=Xt),C},e||(w.jQuery=w.$=C),C}),function(e,d){(function(e){if("undefined"!=typeof module&&module.exports)return function(e){module.exports=e()};if("function"==typeof define&&define.amd)return define;if("undefined"!=typeof window)return function(e){window.MobileDetect=e()};throw new Error("unknown environment")})()(function(){"use strict";function t(e,t){return null!=e&&null!=t&&e.toLowerCase()===t.toLowerCase()}function i(e,t){var i,n,o=e.length;if(!o||!t)return!1;for(i=t.toLowerCase(),n=0;n<o;++n)if(i===e[n].toLowerCase())return!0;return!1}function s(e){for(var t in e)u.call(e,t)&&(e[t]=new RegExp(e[t],"i"))}function a(e,t){this.ua=(e||"").substr(0,500),this._cache={},this.maxPhoneWidth=t||600}var l,c={mobileDetectRules:{phones:{iPhone:"\\biPhone\\b|\\biPod\\b",BlackBerry:"BlackBerry|\\bBB10\\b|rim[0-9]+",HTC:"HTC|HTC.*(Sensation|Evo|Vision|Explorer|6800|8100|8900|A7272|S510e|C110e|Legend|Desire|T8282)|APX515CKT|Qtek9090|APA9292KT|HD_mini|Sensation.*Z710e|PG86100|Z715e|Desire.*(A8181|HD)|ADR6200|ADR6400L|ADR6425|001HT|Inspire 4G|Android.*\\bEVO\\b|T-Mobile G1|Z520m|Android [0-9.]+; Pixel",Nexus:"Nexus One|Nexus S|Galaxy.*Nexus|Android.*Nexus.*Mobile|Nexus 4|Nexus 5
vendor: 5,742 bytes, line 1
1|Nexus 6",Dell:"Dell[;]? (Streak|Aero|Venue|Venue Pro|Flash|Smoke|Mini 3iX)|XCD28|XCD35|\\b001DL\\b|\\b101DL\\b|\\bGS01\\b",Motorola:"Motorola|DROIDX|DROID BIONIC|\\bDroid\\b.*Build|Android.*Xoom|HRI39|MOT-|A1260|A1680|A555|A853|A855|A953|A955|A956|Motorola.*ELECTRIFY|Motorola.*i1|i867|i940|MB200|MB300|MB501|MB502|MB508|MB511|MB520|MB525|MB526|MB611|MB612|MB632|MB810|MB855|MB860|MB861|MB865|MB870|ME501|ME502|ME511|ME525|ME600|ME632|ME722|ME811|ME860|ME863|ME865|MT620|MT710|MT716|MT720|MT810|MT870|MT917|Motorola.*TITANIUM|WX435|WX445|XT300|XT301|XT311|XT316|XT317|XT319|XT320|XT390|XT502|XT530|XT531|XT532|XT535|XT603|XT610|XT611|XT615|XT681|XT701|XT702|XT711|XT720|XT800|XT806|XT860|XT862|XT875|XT882|XT883|XT894|XT901|XT907|XT909|XT910|XT912|XT928|XT926|XT915|XT919|XT925|XT1021|\\bMoto E\\b|XT1068|XT1092|XT1052",Samsung:"\\bSamsung\\b|SM-G950F|SM-G955F|SM-G9250|GT-19300|SGH-I337|BGT-S5230|GT-B2100|GT-B2700|GT-B2710|GT-B3210|GT-B3310|GT-B3410|GT-B3730|GT-B3740|GT-B5510|GT-B5512|GT-B5722|GT-B6520|GT-B7300|GT-B7320|GT-B7330|GT-B7350|GT-B7510|GT-B7722|GT-B7800|GT-C3010|GT-C3011|GT-C3060|GT-C3200|GT-C3212|GT-C3212I|GT-C3262|GT-C3222|GT-C3300|GT-C3300K|GT-C3303|GT-C3303K|GT-C3310|GT-C3322|GT-C3330|GT-C3350|GT-C3500|GT-C3510|GT-C3530|GT-C3630|GT-C3780|GT-C5010|GT-C5212|GT-C6620|GT-C6625|GT-C6712|GT-E1050|GT-E1070|GT-E1075|GT-E1080|GT-E1081|GT-E1085|GT-E1087|GT-E1100|GT-E1107|GT-E1110|GT-E1120|GT-E1125|GT-E1130|GT-E1160|GT-E1170|GT-E1175|GT-E1180|GT-E1182|GT-E1200|GT-E1210|GT-E1225|GT-E1230|GT-E1390|GT-E2100|GT-E2120|GT-E2121|GT-E2152|GT-E2220|GT-E2222|GT-E2230|GT-E2232|GT-E2250|GT-E2370|GT-E2550|GT-E2652|GT-E3210|GT-E3213|GT-I5500|GT-I5503|GT-I5700|GT-I5800|GT-I5801|GT-I6410|GT-I6420|GT-I7110|GT-I7410|GT-I7500|GT-I8000|GT-I8150|GT-I8160|GT-I8190|GT-I8320|GT-I8330|GT-I8350|GT-I8530|GT-I8700|GT-I8703|GT-I8910|GT-I9000|GT-I9001|GT-I9003|GT-I9010|GT-I9020|GT-I9023|GT-I9070|GT-I9082|GT-I9100|GT-I9103|GT-I9220|GT-I9250|GT-I9300|GT-I9305|GT-I9500|GT-I9505|GT-M3510|GT-M5650|GT-M7500|GT-M7600|GT-M7603|GT-M8800|GT-M8910|GT-N7000|GT-S3110|GT-S3310|GT-S3350|GT-S3353|GT-S3370|GT-S3650|GT-S3653|GT-S3770|GT-S3850|GT-S5210|GT-S5220|GT-S5229|GT-S5230|GT-S5233|GT-S5250|GT-S5253|GT-S5260|GT-S5263|GT-S5270|GT-S5300|GT-S5330|GT-S5350|GT-S5360|GT-S5363|GT-S5369|GT-S5380|GT-S5380D|GT-S5560|GT-S5570|GT-S5600|GT-S5603|GT-S5610|GT-S5620|GT-S5660|GT-S5670|GT-S5690|GT-S5750|GT-S5780|GT-S5830|GT-S5839|GT-S6102|GT-S6500|GT-S7070|GT-S7200|GT-S7220|GT-S7230|GT-S7233|GT-S7250|GT-S7500|GT-S7530|GT-S7550|GT-S7562|GT-S7710|GT-S8000|GT-S8003|GT-S8500|GT-S8530|GT-S8600|SCH-A310|SCH-A530|SCH-A570|SCH-A610|SCH-A630|SCH-A650|SCH-A790|SCH-A795|SCH-A850|SCH-A870|SCH-A890|SCH-A930|SCH-A950|SCH-A970|SCH-A990|SCH-I100|SCH-I110|SCH-I400|SCH-I405|SCH-I500|SCH-I510|SCH-I515|SCH-I600|SCH-I730|SCH-I760|SCH-I770|SCH-I830|SCH-I910|SCH-I920|SCH-I959|SCH-LC11|SCH-N150|SCH-N300|SCH-R100|SCH-R300|SCH-R351|SCH-R400|SCH-R410|SCH-T300|SCH-U310|SCH-U320|SCH-U350|SCH-U360|SCH-U365|SCH-U370|SCH-U380|SCH-U410|SCH-U430|SCH-U450|SCH-U460|SCH-U470|SCH-U490|SCH-U540|SCH-U550|SCH-U620|SCH-U640|SCH-U650|SCH-U660|SCH-U700|SCH-U740|SCH-U750|SCH-U810|SCH-U820|SCH-U900|SCH-U940|SCH-U960|SCS-26UC|SGH-A107|SGH-A117|SGH-A127|SGH-A137|SGH-A157|SGH-A167|SGH-A177|SGH-A187|SGH-A197|SGH-A227|SGH-A237|SGH-A257|SGH-A437|SGH-A517|SGH-A597|SGH-A637|SGH-A657|SGH-A667|SGH-A687|SGH-A697|SGH-A707|SGH-A717|SGH-A727|SGH-A737|SGH-A747|SGH-A767|SGH-A777|SGH-A797|SGH-A817|SGH-A827|SGH-A837|SGH-A847|SGH-A867|SGH-A877|SGH-A887|SGH-A897|SGH-A927|SGH-B100|SGH-B130|SGH-B200|SGH-B220|SGH-C100|SGH-C110|SGH-C120|SGH-C130|SGH-C140|SGH-C160|SGH-C170|SGH-C180|SGH-C200|SGH-C207|SGH-C210|SGH-C225|SGH-C230|SGH-C417|SGH-C450|SGH-D307|SGH-D347|SGH-D357|SGH-D407|SGH-D415|SGH-D780|SGH-D807|SGH-D980|SGH-E105|SGH-E200|SGH-E315|SGH-E316|SGH-E317|SGH-E335|SGH-E590|SGH-E635|SGH-E715|SGH-E890|SGH-F300|SGH-F480|SGH-I200|SGH-I300|SGH-I320|SGH-I550|SGH-I577|SGH-I600|SGH-I607|SGH-I617|SGH-I627|SGH-I637|SGH-I677|SGH-I700|SGH-I717|SGH-I727|SGH-i747M|SGH-I777|SGH-I780|SGH-I827|SGH-I847|SGH-I857|SGH-I896|SGH-I897|SGH-I900|SGH-I907|SGH-I917|SGH-I927|SGH-I937|SGH-I997|SGH-J150|SGH-J200|SGH-L170|SGH-L700|SGH-M110|SGH-M150|SGH-M200|SGH-N105|SGH-N500|SGH-N600|SGH-N620|SGH-N625|SGH-N700|SGH-N710|SGH-P107|SGH-P207|SGH-P300|SGH-P310|SGH-P520|SGH-P735|SGH-P777|SGH-Q105|SGH-R210|SGH-R220|SGH-R225|SGH-S105|SGH-S307|SGH-T109|SGH-T119|SGH-T139|SGH-T209|SGH-T219|SGH-T229|SGH-T239|SGH-T249|SGH-T259|SGH-T309|SGH-T319|SGH-T329|SGH-T339|SGH-T349|SGH-T359|SGH-T369|SGH-T379|SGH-T409|SGH-T429|SGH-T439|SGH-T459|SGH-T469|SGH-T479|SGH-T499|SGH-T509|SGH-T519|SGH-T539|SGH-T559|SGH-T589|SGH-T609|SGH-T619|SGH-T629|SGH-T639|SGH-T659|SGH-T669|SGH-T679|SGH-T709|SGH-T719|SGH-T729|SGH-T739|SGH-T746|SGH-T749|SGH-T759|SGH-T769|SGH-T809|SGH-T819|SGH-T839|SGH-T919|SGH-T929|SGH-T939|SGH-T959|SGH-T989|SGH-U100|SGH-U200|SGH-U800|SGH-V205|SGH-V206|SGH-X100|SGH-X105|SGH-X120|SGH-X140|SGH-X426|SGH-X427|SGH-X475|SGH-X495|SGH-X497|SGH-X507|SGH-X600|SGH-X610|SGH-X620|SGH-X630|SGH-X700|SGH-X820|SGH-X890|SGH-Z130|SGH-Z150|SGH-Z170|SGH-ZX10|SGH-ZX20|SHW-M110|SPH-A120|SPH-A400|SPH-A420|SPH-A460|SPH-A500|SPH-A560|SPH-A600|SPH-A620|SPH-A660|SPH-A700|SPH-A740|SPH-A760|SPH-A790|SPH-A800|SPH-A820|SPH-A840|SPH-A880|SPH-A900|SPH-A940|SPH-A960|SPH-D600|SPH-D700|SPH-D710|SPH-D720|SPH-I300|SPH-I325|SPH-I330|SPH-I350|SPH-I500|SPH-I600|SPH-I700|SPH-L700|SPH-M100|SPH-M220|SPH-M240|SPH-M300|SPH-M305|SPH-M320|SPH-M330|SPH-M350|SPH-M360|SPH-M370|SPH-M380|SPH-M510|SPH-M540|SPH-M550|SPH-M560|SPH-M570|SPH-M580|SPH-M610|SPH-M620|SPH-M630|SPH-M800|SPH-M810|SPH-M850|SPH-M900|SPH-M910|SPH-M920|SPH-M930|SPH-N100|SPH-N200|SPH-N240|SPH-N300|SPH-N400|SPH-Z400|SWC-E100|SCH-i909|GT-N7100|GT-N7105|SCH-I535|SM-N900A|SGH-I317|SGH-T999L|GT-S5360B|GT-
vendor: 26,121 bytes, line 1
1I8262|GT-S6802|GT-S6312|GT-S6310|GT-S5312|GT-S5310|GT-I9105|GT-I8510|GT-S6790N|SM-G7105|SM-N9005|GT-S5301|GT-I9295|GT-I9195|SM-C101|GT-S7392|GT-S7560|GT-B7610|GT-I5510|GT-S7582|GT-S7530E|GT-I8750|SM-G9006V|SM-G9008V|SM-G9009D|SM-G900A|SM-G900D|SM-G900F|SM-G900H|SM-G900I|SM-G900J|SM-G900K|SM-G900L|SM-G900M|SM-G900P|SM-G900R4|SM-G900S|SM-G900T|SM-G900V|SM-G900W8|SHV-E160K|SCH-P709|SCH-P729|SM-T2558|GT-I9205|SM-G9350|SM-J120F|SM-G920F|SM-G920V|SM-G930F|SM-N910C|SM-A310F|GT-I9190|SM-J500FN|SM-G903F|SM-J330F",LG:"\\bLG\\b;|LG[- ]?(C800|C900|E400|E610|E900|E-900|F160|F180K|F180L|F180S|730|855|L160|LS740|LS840|LS970|LU6200|MS690|MS695|MS770|MS840|MS870|MS910|P500|P700|P705|VM696|AS680|AS695|AX840|C729|E970|GS505|272|C395|E739BK|E960|L55C|L75C|LS696|LS860|P769BK|P350|P500|P509|P870|UN272|US730|VS840|VS950|LN272|LN510|LS670|LS855|LW690|MN270|MN510|P509|P769|P930|UN200|UN270|UN510|UN610|US670|US740|US760|UX265|UX840|VN271|VN530|VS660|VS700|VS740|VS750|VS910|VS920|VS930|VX9200|VX11000|AX840A|LW770|P506|P925|P999|E612|D955|D802|MS323|M257)",Sony:"SonyST|SonyLT|SonyEricsson|SonyEricssonLT15iv|LT18i|E10i|LT28h|LT26w|SonyEricssonMT27i|C5303|C6902|C6903|C6906|C6943|D2533",Asus:"Asus.*Galaxy|PadFone.*Mobile",NokiaLumia:"Lumia [0-9]{3,4}",Micromax:"Micromax.*\\b(A210|A92|A88|A72|A111|A110Q|A115|A116|A110|A90S|A26|A51|A35|A54|A25|A27|A89|A68|A65|A57|A90)\\b",Palm:"PalmSource|Palm",Vertu:"Vertu|Vertu.*Ltd|Vertu.*Ascent|Vertu.*Ayxta|Vertu.*Constellation(F|Quest)?|Vertu.*Monika|Vertu.*Signature",Pantech:"PANTECH|IM-A850S|IM-A840S|IM-A830L|IM-A830K|IM-A830S|IM-A820L|IM-A810K|IM-A810S|IM-A800S|IM-T100K|IM-A725L|IM-A780L|IM-A775C|IM-A770K|IM-A760S|IM-A750K|IM-A740S|IM-A730S|IM-A720L|IM-A710K|IM-A690L|IM-A690S|IM-A650S|IM-A630K|IM-A600S|VEGA PTL21|PT003|P8010|ADR910L|P6030|P6020|P9070|P4100|P9060|P5000|CDM8992|TXT8045|ADR8995|IS11PT|P2030|P6010|P8000|PT002|IS06|CDM8999|P9050|PT001|TXT8040|P2020|P9020|P2000|P7040|P7000|C790",Fly:"IQ230|IQ444|IQ450|IQ440|IQ442|IQ441|IQ245|IQ256|IQ236|IQ255|IQ235|IQ245|IQ275|IQ240|IQ285|IQ280|IQ270|IQ260|IQ250",Wiko:"KITE 4G|HIGHWAY|GETAWAY|STAIRWAY|DARKSIDE|DARKFULL|DARKNIGHT|DARKMOON|SLIDE|WAX 4G|RAINBOW|BLOOM|SUNSET|GOA(?!nna)|LENNY|BARRY|IGGY|OZZY|CINK FIVE|CINK PEAX|CINK PEAX 2|CINK SLIM|CINK SLIM 2|CINK +|CINK KING|CINK PEAX|CINK SLIM|SUBLIM",iMobile:"i-mobile (IQ|i-STYLE|idea|ZAA|Hitz)",SimValley:"\\b(SP-80|XT-930|SX-340|XT-930|SX-310|SP-360|SP60|SPT-800|SP-120|SPT-800|SP-140|SPX-5|SPX-8|SP-100|SPX-8|SPX-12)\\b",Wolfgang:"AT-B24D|AT-AS50HD|AT-AS40W|AT-AS55HD|AT-AS45q2|AT-B26D|AT-AS50Q",Alcatel:"Alcatel",Nintendo:"Nintendo (3DS|Switch)",Amoi:"Amoi",INQ:"INQ",GenericPhone:"Tapatalk|PDA;|SAGEM|\\bmmp\\b|pocket|\\bpsp\\b|symbian|Smartphone|smartfon|treo|up.browser|up.link|vodafone|\\bwap\\b|nokia|Series40|Series60|S60|SonyEricsson|N900|MAUI.*WAP.*Browser"},tablets:{iPad:"iPad|iPad.*Mobile",NexusTablet:"Android.*Nexus[\\s]+(7|9|10)",GoogleTablet:"Android.*Pixel C",SamsungTablet:"SAMSUNG.*Tablet|Galaxy.*Tab|SC-01C|GT-P1000|GT-P1003|GT-P1010|GT-P3105|GT-P6210|GT-P6800|GT-P6810|GT-P7100|GT-P7300|GT-P7310|GT-P7500|GT-P7510|SCH-I800|SCH-I815|SCH-I905|SGH-I957|SGH-I987|SGH-T849|SGH-T859|SGH-T869|SPH-P100|GT-P3100|GT-P3108|GT-P3110|GT-P5100|GT-P5110|GT-P6200|GT-P7320|GT-P7511|GT-N8000|GT-P8510|SGH-I497|SPH-P500|SGH-T779|SCH-I705|SCH-I915|GT-N8013|GT-P3113|GT-P5113|GT-P8110|GT-N8010|GT-N8005|GT-N8020|GT-P1013|GT-P6201|GT-P7501|GT-N5100|GT-N5105|GT-N5110|SHV-E140K|SHV-E140L|SHV-E140S|SHV-E150S|SHV-E230K|SHV-E230L|SHV-E230S|SHW-M180K|SHW-M180L|SHW-M180S|SHW-M180W|SHW-M300W|SHW-M305W|SHW-M380K|SHW-M380S|SHW-M380W|SHW-M430W|SHW-M480K|SHW-M480S|SHW-M480W|SHW-M485W|SHW-M486W|SHW-M500W|GT-I9228|SCH-P739|SCH-I925|GT-I9200|GT-P5200|GT-P5210|GT-P5210X|SM-T311|SM-T310|SM-T310X|SM-T210|SM-T210R|SM-T211|SM-P600|SM-P601|SM-P605|SM-P900|SM-P901|SM-T217|SM-T217A|SM-T217S|SM-P6000|SM-T3100|SGH-I467|XE500|SM-T110|GT-P5220|GT-I9200X|GT-N5110X|GT-N5120|SM-P905|SM-T111|SM-T2105|SM-T315|SM-T320|SM-T320X|SM-T321|SM-T520|SM-T525|SM-T530NU|SM-T230NU|SM-T330NU|SM-T900|XE500T1C|SM-P605V|SM-P905V|SM-T337V|SM-T537V|SM-T707V|SM-T807V|SM-P600X|SM-P900X|SM-T210X|SM-T230|SM-T230X|SM-T325|GT-P7503|SM-T531|SM-T330|SM-T530|SM-T705|SM-T705C|SM-T535|SM-T331|SM-T800|SM-T700|SM-T537|SM-T807|SM-P907A|SM-T337A|SM-T537A|SM-T707A|SM-T807A|SM-T237|SM-T807P|SM-P607T|SM-T217T|SM-T337T|SM-T807T|SM-T116NQ|SM-T116BU|SM-P550|SM-T350|SM-T550|SM-T9000|SM-P9000|SM-T705Y|SM-T805|GT-P3113|SM-T710|SM-T810|SM-T815|SM-T360|SM-T533|SM-T113|SM-T335|SM-T715|SM-T560|SM-T670|SM-T677|SM-T377|SM-T567|SM-T357T|SM-T555|SM-T561|SM-T713|SM-T719|SM-T813|SM-T819|SM-T580|SM-T355Y?|SM-T280|SM-T817A|SM-T820|SM-W700|SM-P580|SM-T587|SM-P350|SM-P555M|SM-P355M|SM-T113NU|SM-T815Y|SM-T585|SM-T285|SM-T825|SM-W708|SM-T835",Kindle:"Kindle|Silk.*Accelerated|Android.*\\b(KFOT|KFTT|KFJWI|KFJWA|KFOTE|KFSOWI|KFTHWI|KFTHWA|KFAPWI|KFAPWA|WFJWAE|KFSAWA|KFSAWI|KFASWI|KFARWI|KFFOWI|KFGIWI|KFMEWI)\\b|Android.*Silk/[0-9.]+ like Chrome/[0-9.]+ (?!Mobile)",SurfaceTablet:"Windows NT [0-9.]+; ARM;.*(Tablet|ARMBJS)",HPTablet:"HP Slate (7|8|10)|HP ElitePad 900|hp-tablet|EliteBook.*Touch|HP 8|Slate 21|HP SlateBook 10",AsusTablet:"^.*PadFone((?!Mobile).)*$|Transformer|TF101|TF101G|TF300T|TF300TG|TF300TL|TF700T|TF700KL|TF701T|TF810C|ME171|ME301T|ME302C|ME371MG|ME370T|ME372MG|ME172V|ME173X|ME400C|Slider SL101|\\bK00F\\b|\\bK00C\\b|\\bK00E\\b|\\bK00L\\b|TX201LA|ME176C|ME102A|\\bM80TA\\b|ME372CL|ME560CG|ME372CG|ME302KL| K010 | K011 | K017 | K01E |ME572C|ME103K|ME170C|ME171C|\\bME70C\\b|ME581C|ME581CL|ME8510C|ME181C|P01Y|PO1MA|P01Z|\\bP027\\b|\\bP024\\b|\\bP00C\\b",BlackBerryTablet:"PlayBook|RIM Tablet",HTCtablet:"HTC_Flyer_P512|HTC Flyer|HTC Jetstream|HTC-P715a|HTC EVO View 4G|PG41200|PG09410",MotorolaTablet:"xoom|sholest|MZ615|MZ605|MZ505|MZ601|MZ602|MZ603|MZ604|MZ606|MZ607|MZ608|MZ609|MZ615|MZ616|MZ617",NookTablet:"Android.*Nook|NookColor|nook browser|BNRV200|BNRV200A|BNTV250|BNTV250A|BNTV400|BNTV600|LogicPD Zoom2",AcerTablet:"Android.*; \\b(A100|A101|A110|A200|A210|A211|A500|A501|A510|A511|A700|A701|W500|W500P|W501|W501P|W510|W511|W700|G100|G100W|B1-A71|B1-710|B1-711|A1-810|A1-811|A1-830)\\b|W3-810|\\bA3-A10\\b|\\bA3-A11\\b|\\bA3-A20\\b|\\bA3-A30",ToshibaTablet:"Android.*(AT100|AT105|AT200|AT205|AT270|AT275|AT300|AT305|AT1S5|AT500|AT570|AT700|AT830)|TOSHIBA.*FOLIO",LGTablet:"\\bL-06C|LG-V909|LG-V900|LG-V700|LG-V510|LG-V500|LG-V410|LG-V400|LG-VK810\\b",FujitsuTablet:"Android.*\\b(F-01D|F-02F|F-05E|F-10D|M532|Q572)\\b",PrestigioTablet:"PMP3170B|PMP3270B|PMP3470B|PMP7170B|PMP3370B|PMP3570C|PMP5870C|PMP3670B|PMP5570C|PMP5770D|PMP3970B|PMP3870C|PMP5580C|PMP5880D|PMP5780D|PMP5588C|PMP7280C|PMP7280C3G|PMP7280|PMP7880D|PMP5597D|PMP5597|PMP7100D|PER3464|PER3274|PER3574|PER3884|PER5274|PER5474|PMP5097CPRO|PMP5097|PMP7380D|PMP5297C|PMP5297C_QUAD|PMP812E|PMP812E3G|PMP812F|PMP810E|PMP880TD|PMT3017|PMT3037|PMT3047|PMT3057|PMT7008|PMT5887|PMT5001|PMT5002",LenovoTablet:"Lenovo TAB|Idea(Tab|Pad)( A1|A10| K1|)|ThinkPad([ ]+)?Tablet|YT3-850M|YT3-X90L|YT3-X90F|YT3-X90X|Lenovo.*(S2109|S2110|S5000|S6000|K3011|A3000|A3500|A1000|A2107|A2109|A1107|A5500|A7600|B6000|B8000|B8080)(-|)(FL|F|HV|H|)|TB-X103F|TB-X304F|TB-X304L|TB-8703F|Tab2A7-10F|TB2-X30L",DellTablet:"Venue 11|Venue 8|Venue 7|Dell Streak 10|Dell Streak 7",YarvikTablet:"Android.*\\b(TAB210|TAB211|TAB224|TAB250|TAB260|TAB264|TAB310|TAB360|TAB364|TAB410|TAB411|TAB420|TAB424|TAB450|TAB460|TAB461|TAB464|TAB465|TAB467|TAB468|TAB07-100|TAB07-101|TAB07-150|TAB07-151|TAB07-152|TAB07-200|TAB07-201-3G|TAB07-210|TAB07-211|TAB07-212|TAB07-214|TAB07-220|TAB07-400|TAB07-485|TAB08-150|TAB08-200|TAB08-201-3G|TAB08-201-30|TAB09-100|TAB09-211|TAB09-410|TAB10-150|TAB10-201|TAB10-211|TAB10-400|TAB10-410|TAB13-201|TAB274EUK|TAB275EUK|TAB374EUK|TAB462EUK|TAB474EUK|TAB9-200)\\b",MedionTablet:"Android.*\\bOYO\\b|LIFE.*(P9212|P9514|P9516|S9512)|LIFETAB",ArnovaTablet:"97G4|AN10G2|AN7bG3|AN7fG3|AN8G3|AN8cG3|AN7G3|AN9G3|AN7dG3|AN7dG3ST|AN7dG3ChildPad|AN10bG3|AN10bG3DT|AN9G2",IntensoTablet:"INM8002KP|INM1010FP|INM805ND|Intenso Tab|TAB1004",IRUTablet:"M702pro",MegafonTablet:"MegaFon V9|\\bZTE V9\\b|Android.*\\bMT7A\\b",EbodaTablet:"E-Boda (Supreme|Impresspeed|Izzycomm|Essential)",AllViewTablet:"Allview.*(Viva|Alldro|City|Speed|All TV|Frenzy|Quasar|Shine|TX1|AX1|AX2)",ArchosTablet:"\\b(101G9|80G9|A101IT)\\b|Qilive 97R|Archos5|\\bARCHOS (70|79|80|90|97|101|FAMILYPAD|)(b|c|)(G10| Cobalt| TITANIUM(HD|)| Xenon| Neon|XSK| 2| XS 2| PLATINUM| CARBON|GAMEPAD)\\b",AinolTablet:"NOVO7|NOVO8|NOVO10|Novo7Aurora|Novo7Basic|NOVO7PALADIN|novo9-Spark",NokiaLumiaTablet:"Lumia 2520",SonyTablet:"Sony.*Tablet|Xperia Tablet|Sony Tablet S|SO-03E|SGPT12|SGPT13|SGPT114|SGPT121|SGPT122|SGPT123|SGPT111|SGPT112|SGPT113|SGPT131|SGPT132|SGPT133|SGPT211|SGPT212|SGPT213|SGP311|SGP312|SGP321|EBRD1101|EBRD1102|EBRD1201|SGP351|SGP341|SGP511|SGP512|SGP521|SGP541|SGP551|SGP621|SGP641|SGP612|SOT31|SGP771|SGP611|SGP612|SGP712",PhilipsTablet:"\\b(PI2010|PI3000|PI3100|PI3105|PI3110|PI3205|PI3210|PI3900|PI4010|PI7000|PI7100)\\b",CubeTablet:"Android.*(K8GT|U9GT|U10GT|U16GT|U17GT|U18GT|U19GT|U20GT|U23GT|U30GT)|CUBE U8GT",CobyTablet:"MID1042|MID1045|MID1125|MID1126|MID7012|MID7014|MID7015|MID7034|MID7035|MID7036|MID7042|MID7048|MID7127|MID8042|MID8048|MID8127|MID9042|MID9740|MID9742|MID7022|MID7010",MIDTablet:"M9701|M9000|M9100|M806|M1052|M806|T703|MID701|MID713|MID710|MID727|MID760|MID830|MID728|MID933|MID125|MID810|MID732|MID120|MID930|MID800|MID731|MID900|MID100|MID820|MID735|MID980|MID130|MID833|MID737|MID960|MID135|MID860|MID736|MID140|MID930|MID835|MID733|MID4X10",MSITablet:"MSI \\b(Primo 73K|Primo 73L|Primo 81L|Primo 77|Primo 93|Primo 75|Primo 76|Primo 73|Primo 81|Primo 91|Primo 90|Enjoy 71|Enjoy 7|Enjoy 10)\\b",SMiTTablet:"Android.*(\\bMID\\b|MID-560|MTV-T1200|MTV-PND531|MTV-P1101|MTV-PND530)",RockChipTablet:"Android.*(RK2818|RK2808A|RK2918|RK3066)|RK2738|RK2808A",FlyTablet:"IQ310|Fly Vision",bqTablet:"Android.*(bq)?.*(Elcano|Curie|Edison|Maxwell|Kepler|Pascal|Tesla|Hypatia|Platon|Newton|Livingstone|Cervantes|Avant|Aquaris ([E|M]10|M8))|Maxwell.*Lite|Maxwell.*Plus",HuaweiTablet:"MediaPad|MediaPad 7 Youth|IDEOS S7|S7-201c|S7-202u|S7-101|S7-103|S7-104|S7-105|S7-106|S7-201|S7-Slim|M2-A01L|BAH-L09|BAH-W09",NecTablet:"\\bN-06D|\\bN-08D",PantechTablet:"Pantech.*P4100",BronchoTablet:"Broncho.*(N701|N708|N802|a710)",VersusTablet:"TOUCHPAD.*[78910]|\\bTOUCHTAB\\b",ZyncTablet:"z1000|Z99 2G|z99|z930|z999|z990|z909|Z919|z900",PositivoTablet:"TB07STA|TB10STA|TB07FTA|TB10FTA",NabiTablet:"Android.*\\bNabi",KoboTablet:"Kobo Touch|\\bK080\\b|\\bVox\\b Build|\\bArc\\b Build",DanewTablet:"DSlide.*\\b(700|701R|702|703R|704|802|970|971|972|973|974|1010|1012)\\b",TexetTablet:"NaviPad|TB-772A|TM-7045|TM-7055|TM-9750|TM-7016|TM-7024|TM-7026|TM-7041|TM-7043|TM-7047|TM-8041|TM-9741|TM-9747|TM-9748|TM-9751|TM-7022|TM-7021|TM-7020|TM-7011|TM-7010|TM-7023|TM-7025|TM-7037W|TM-7038W|TM-7027W|TM-9720|TM-9725|TM-9737W|TM-1020|TM-9738W|TM-9740|TM-9743W|TB-807A|TB-771A|TB-727A|TB-725A|TB-719A|TB-823A|TB-805A|TB-723A|TB-715A|TB-707A|TB-705A|TB-709A|TB-711A|TB-890HD|TB-880HD|TB-790HD|TB-780HD|TB-770HD|TB-721HD|TB-710HD|TB-434HD|TB-860HD|TB-840HD|TB-760HD|TB-750HD|TB-740HD|TB-730HD|TB-722HD|TB-720HD|TB-700HD|TB-500HD|TB-470HD|TB-431HD|TB-430HD|TB-506|TB-504|TB-446|TB-436|TB-416|TB-146SE|TB-126SE",PlaystationTablet:"Playstation.*(Portable|Vita)",TrekstorTablet:"ST10416-1|VT10416-1|ST70408-1|ST702xx-1|ST702xx-2|ST80208|ST97216|ST70104-2|VT10416-2|ST10216-2A|SurfTab",PyleAudioTablet:"\\b(PTBL10CEU|PTBL10C|PTBL72BC|PTBL72BCEU|PTBL7CEU|PTBL7C|PTBL92BC|PTBL92BCEU|PTBL9CEU|PTBL9CUK|PTBL9C)\\b",AdvanTablet:"Android.* \\b(E3A|T3X|T5C|T5B|T3E|T3C|T3B|T1J|T1F|T2A|T1H|T1i|E1C|T1-E|T5-A|T4|E1-B|T2Ci|T1-B|T1-D|O1-A|E1-A|T1-A|T3A|T4i)\\b ",DanyTechTablet:"Genius Tab G3|Genius Tab S2|Genius Tab Q3|Genius Tab G4|Genius Tab Q4|Genius Tab G-II|Genius TAB GII|Genius TAB GIII|Genius Tab S1",GalapadTablet:"Android.*\\bG1\\b(?!\\))",MicromaxTablet:"Funbook|Micromax.*\\b(P250|P560|P360|P362|P600|P300|P350|P500|P275)\\b",KarbonnTablet:"Android.*\\b(A39|A37|A34|ST8|ST10|ST7|Smart Tab3|Smart Tab2)\\b",AllFineTablet:"Fine7 Genius|Fine7 Shine|Fine7 Air|Fine8 Style|Fine9 More|Fine10 Joy|Fine11 Wide",PROSCANTablet:"\\b(PEM63|PLT1023G|PLT1041|PLT1044|PLT1044G|PLT1091|PLT4311|PLT4311PL|PLT4315|PLT7030|PLT7033|PLT7033D|PLT7035|PLT7035D|PLT7044K|PLT7045K|PLT7045KB|PLT7071KG|PLT7072|PLT7223G|PLT7225G|PLT7777G|PLT7810K|PLT7849G|PLT7851G|PLT7852G|PLT8015|PLT8031|PLT8034|PLT8036|PLT8080K|PLT8082|PLT8088|PLT8223G|PLT8234G|PLT8235G|PLT8816K|PLT9011|PLT9045K|PLT9233G|PLT9735|PLT9760G|PLT9770G)\\b",YONESTablet:"BQ1078|BC1003|BC1077|RK9702|BC9730|BC9001|IT9001|BC7008|BC7010|BC708|BC728|BC7012|BC7030|BC7027|BC7026",ChangJiaTablet:"TPC7102|TPC7103|TPC7105|TPC7106|TPC7107|TPC7201|TPC7203|TPC7205|TPC7210|TPC7708|TPC7709|TPC7712|TPC7110|TPC8101|TPC8103|TPC8105|TPC8106|TPC8203|TPC8205|TPC8503|TPC9106|TPC9701|TPC97101|TPC97103|TPC97105|TPC97106|TPC97111|TPC97113|TPC97203|TPC97603|TPC97809|TPC97205|TPC10101|TPC10103|TPC10106|TPC10111|TPC10203|TPC10205|TPC10503",GUTablet:"TX-A1301|TX-M9002|Q702|kf026",PointOfViewTablet:"TAB-P506|TAB-navi-7-3G-M|TAB-P517|TAB-P-527|TAB-P701|TAB-P703|TAB-P721|TAB-P731N|TAB-P741|TAB-P825|TAB-P905|TAB-P925|TAB-PR945|TAB-PL1015|TAB-P1025|TAB-PI1045|TAB-P1325|TAB-PROTAB[0-9]+|TAB-PROTAB25|TAB-PROTAB26|TAB-PROTAB27|TAB-PROTAB26XL|TAB-PROTAB2-IPS9|TAB-PROTAB30-IPS9|TAB-PROTAB25XXL|TAB-PROTAB26-IPS10|TAB-PROTAB30-IPS10",OvermaxTablet:"OV-(SteelCore|NewBase|Basecore|Baseone|Exellen|Quattor|EduTab|Solution|ACTION|BasicTab|TeddyTab|MagicTab|Stream|TB-08|TB-09)|Qualcore 1027",HCLTablet:"HCL.*Tablet|Connect-3G-2.0|Connect-2G-2.0|ME Tablet U1|ME Tablet U2|ME Tablet G1|ME Tablet X1|ME Tablet Y2|ME Tablet Sync",DPSTablet:"DPS Dream 9|DPS Dual 7",VistureTablet:"V97 HD|i75 3G|Visture V4( HD)?|Visture V5( HD)?|Visture V10",CrestaTablet:"CTP(-)?810|CTP(-)?818|CTP(-)?828|CTP(-)?838|CTP(-)?888|CTP(-)?978|CTP(-)?980|CTP(-)?987|CTP(-)?988|CTP(-)?989",MediatekTablet:"\\bMT8125|MT8389|MT8135|MT8377\\b",ConcordeTablet:"Concorde([ ]+)?Tab|ConCorde ReadMan",GoCleverTablet:"GOCLEVER TAB|A7GOCLEVER|M1042|M7841|M742|R1042BK|R1041|TAB A975|TAB A7842|TAB A741|TAB A741L|TAB M723G|TAB M721|TAB A1021|TAB I921|TAB R721|TAB I720|TAB T76|TAB R70|TAB R76.2|TAB R106|TAB R83.2|TAB M813G|TAB I721|GCTA722|TAB I70|TAB I71|TAB S73|TAB R73|TAB R74|TAB R93|TAB R75|TAB R76.1|TAB A73|TAB A93|TAB A93.2|TAB T72|TAB R83|TAB R974|TAB R973|TAB A101|TAB A103|TAB A104|TAB A104.2|R105BK|M713G|A972BK|TAB A971|TAB R974.2|TAB R104|TAB R83.3|TAB A1042",ModecomTablet:"FreeTAB 9000|FreeTAB 7.4|FreeTAB 7004|FreeTAB 7800|FreeTAB 2096|FreeTAB 7.5|FreeTAB 1014|FreeTAB 1001 |FreeTAB 8001|FreeTAB 9706|FreeTAB 9702|FreeTAB 7003|FreeTAB 7002|FreeTAB 1002|FreeTAB 7801|FreeTAB 1331|FreeTAB 1004|FreeTAB 8002|FreeTAB 8014|FreeTAB 9704|FreeTAB 1003",VoninoTablet:"\\b(Argus[ _]?S|Diamond[ _]?79HD|Emerald[ _]?78E|Luna[ _]?70C|Onyx[ _]?S|Onyx[ _]?Z|Orin[ _]?HD|Orin[ _]?S|Otis[ _]?S|SpeedStar[ _]?S|Magnet[ _]?M9|Primus[ _]?94[ _]?3G|Primus[ _]?94HD|Primus[ _]?QS|Android.*\\bQ8\\b|Sirius[ _]?EVO[ _]?QS|Sirius[ _]?QS|Spirit[ _]?S)\\b",ECSTablet:"V07OT2|TM105A|S10OT1|TR10CS1",StorexTablet:"eZee[_']?(Tab|Go)[0-9]+|TabLC7|Looney Tunes Tab",VodafoneTablet:"SmartTab([ ]+)?[0-9]+|SmartTabII10|SmartTabII7|VF-1497",EssentielBTablet:"Smart[ ']?TAB[ ]+?[0-9]+|Family[ ']?TAB2",RossMoorTablet:"RM-790|RM-997|RMD-878G|RMD-974R|RMT-705A|RMT-701|RME-601|RMT-501|RMT-711",iMobileTablet:"i-mobile i-note",TolinoTablet:"tolino tab [0-9.]+|tolino shine",AudioSonicTablet:"\\bC-22Q|T7-QC|T-17B|T-17P\\b",AMPETablet:"Android.* A78 ",SkkTablet:"Android.* (SKYPAD|PHOENIX|CYCLOPS)",TecnoTablet:"TECNO P9|TECNO DP8D",JXDTablet:"Android.* \\b(F3000|A3300|JXD5000|JXD3000|JXD2000|JXD300B|JXD300|S5800|S7800|S602b|S5110b|S7300|S5300|S602|S603|S5100|S5110|S601|S7100a|P3000F|P3000s|P101|P200s|P1000m|P200m|P9100|P1000s|S6600b|S908|P1000|P300|S18|S6600|S9100)\\b",iJoyTablet:"Tablet (Spirit 7|Essentia|Galatea|Fusion|Onix 7|Landa|Titan|Scooby|Deox|Stella|Themis|Argon|Unique 7|Sygnus|Hexen|Finity 7|Cream|Cream X2|Jade|Neon 7|Neron 7|Kandy|Scape|Saphyr 7|Rebel|Biox|Rebel|Rebel 8GB|Myst|Draco 7|Myst|Tab7-004|Myst|Tadeo Jones|Tablet Boing|Arrow|Draco Dual Cam|Aurix|Mint|Amity|Revolution|Finity 9|Neon 9|T9w|Amity 4GB Dual Cam|Stone 4GB|Stone 8GB|Andromeda|Silken|X2|Andromeda II|Halley|Flame|Saphyr 9,7|Touch 8|Planet|Triton|Unique 10|Hexen 10|Memphis 4GB|Memphis 8GB|Onix 10)",FX2Tablet:"FX2 PAD7|FX2 PAD10",XoroTablet:"KidsPAD 701|PAD[ ]?712|PAD[ ]?714|PAD[ ]?716|PAD[ ]?717|PAD[ ]?718|PAD[ ]?720|PAD[ ]?721|PAD[ ]?722|PAD[ ]?790|PAD[ ]?792|PAD[ ]?900|PAD[ ]?9715D|PAD[ ]?9716DR|PAD[ ]?9718DR|PAD[ ]?9719QR|PAD[ ]?9720QR|TelePAD1030|Telepad1032|TelePAD730|TelePAD731|TelePAD732|TelePAD735Q|TelePAD830|TelePAD9730|TelePAD795|MegaPAD 1331|MegaPAD 1851|MegaPAD 2151",ViewsonicTablet:"ViewPad 10pi|ViewPad 10e|ViewPad 10s|ViewPad E72|ViewPad7|ViewPad E100|ViewPad 7e|ViewSonic VB733|VB100a",VerizonTablet:"QTAQZ3|QTAIR7|QTAQTZ3|QTASUN1|QTASUN2|QTAXIA1",OdysTablet:"LOOX|XENO10|ODYS[ -](Space|EVO|Xpress|NOON)|\\bXELIO\\b|Xelio10Pro|XELIO7PHONETAB|XELIO10EXTREME|XELIOPT2|NEO_QUAD10",CaptivaTablet:"CAPTIVA PAD",IconbitTablet:"NetTAB|NT-3702|NT-3702S|NT-3702S|NT-3603P|NT-3603P|NT-0704S|NT-0704S|NT-3805C|NT-3805C|NT-0806C|NT-0806C|NT-0909T|NT-0909T|NT-0907S|NT-0907S|NT-0902S|NT-0902S",TeclastTablet:"T98 4G|\\bP80\\b|\\bX90HD\\b|X98 Air|X98 Air 3G|\\bX89\\b|P80 3G|\\bX80h\\b|P98 Air|\\bX89HD\\b|P98 3G|\\bP90HD\\b|P89 3G|X98 3G|\\bP70h\\b|P79HD 3G|G18d 3G|\\bP79HD\\b|\\bP89s\\b|\\bA88\\b|\\bP10HD\\b|\\bP19HD\\b|G18 3G|\\bP78HD\\b|\\bA78\\b|\\bP75\\b|G17s 3G|G17h 3G|\\bP85t\\b|\\bP90\\b|\\bP11\\b|\\bP98t\\b|\\bP98HD\\b|\\bG18d\\b|\\bP85s\\b|\\bP11HD\\b|\\bP88s\\b|\\bA80HD\\b|\\bA80se\\b|\\bA10h\\b|\\bP89\\b|\\bP78s\\b|\\bG18\\b|\\bP85\\b|\\bA70h\\b|\\bA70\\b|\\bG17\\b|\\bP18\\b|\\bA80s\\b|\\bA11s\\b|\\bP88HD\\b|\\bA80h\\b|\\bP76s\\b|\\bP76h\\b|\\bP98\\b|\\bA10HD\\b|\\bP78\\b|\\bP88\\b|\\bA11\\b|\\bA10t\\b|\\bP76a\\b|\\bP76t\\b|\\bP76e\\b|\\bP85HD\\b|\\bP85a\\b|\\bP86\\b|\\bP75HD\\b|\\bP76v\\b|\\bA12\\b|\\bP75a\\b|\\bA15\\b|\\bP76Ti\\b|\\bP81HD\\b|\\bA10\\b|\\bT760VE\\b|\\bT720HD\\b|\\bP76\\b|\\bP73\\b|\\bP71\\b|\\bP72\\b|\\bT720SE\\b|\\bC520Ti\\b|\\bT760\\b|\\bT720VE\\b|T720-3GE|T720-WiFi",OndaTablet:"\\b(V975i|Vi30|VX530|V701|Vi60|V701s|Vi50|V801s|V719|Vx610w|VX610W|V819i|Vi10|VX580W|Vi10|V711s|V813|V811|V820w|V820|Vi20|V711|VI30W|V712|V891w|V972|V819w|V820w|Vi60|V820w|V711|V813s|V801|V819|V975s|V801|V819|V819|V818|V811|V712|V975m|V101w|V961w|V812|V818|V971|V971s|V919|V989|V116w|V102w|V973|Vi40)\\b[\\s]+|V10 \\b4G\\b",JaytechTablet:"TPC-PA762",BlaupunktTablet:"Endeavour 800NG|Endeavour 1010",DigmaTablet:"\\b(iDx10|iDx9|iDx8|iDx7|iDxD7|iDxD8|iDsQ8|iDsQ7|iDsQ8|iDsD10|iDnD7|3TS804H|iDsQ11|iDj7|iDs10)\\b",EvolioTablet:"ARIA_Mini_wifi|Aria[ _]Mini|Evolio X10|Evolio X7|Evolio X8|\\bEvotab\\b|\\bNeura\\b",LavaTablet:"QPAD E704|\\bIvoryS\\b|E-TAB IVORY|\\bE-TAB\\b",AocTablet:"MW0811|MW0812|MW0922|MTK8382|MW1031|MW0831|MW0821|MW0931|MW0712",MpmanTablet:"MP11 OCTA|MP10 OCTA|MPQC1114|MPQC1004|MPQC994|MPQC974|MPQC973|MPQC804|MPQC784|MPQC780|\\bMPG7\\b|MPDCG75|MPDCG71|MPDC1006|MP101DC|MPDC9000|MPDC905|MPDC706HD|MPDC706|MPDC705|MPDC110|MPDC100|MPDC99|MPDC97|MPDC88|MPDC8|MPDC77|MP709|MID701|MID711|MID170|MPDC703|MPQC1010",CelkonTablet:"CT695|CT888|CT[\\s]?910|CT7 Tab|CT9 Tab|CT3 Tab|CT2 Tab|CT1 Tab|C820|C720|\\bCT-1\\b",WolderTablet:"miTab \\b(DIAMOND|SPACE|BROOKLYN|NEO|FLY|MANHATTAN|FUNK|EVOLUTION|SKY|GOCAR|IRON|GENIUS|POP|MINT|EPSILON|BROADWAY|JUMP|HOP|LEGEND|NEW AGE|LINE|ADVANCE|FEEL|FOLLOW|LIKE|LINK|LIVE|THINK|FREEDOM|CHICAGO|CLEVELAND|BALTIMORE-GH|IOWA|BOSTON|SEATTLE|PHOENIX|DALLAS|IN 101|MasterChef)\\b",MediacomTablet:"M-MPI10C3G|M-SP10EG|M-SP10EGP|M-SP10HXAH|M-SP7HXAH|M-SP10HXBH|M-SP8HXAH|M-SP8MXA",MiTablet:"\\bMI PAD\\b|\\bHM NOTE 1W\\b",NibiruTablet:"Nibiru M1|Nibiru Jupiter One",NexoTablet:"NEXO NOVA|NEXO 10|NEXO AVIO|NEXO FREE|NEXO GO|NEXO EVO|NEXO 3G|NEXO SMART|NEXO KIDDO|NEXO MOBI",LeaderTablet:"TBLT10Q|TBLT10I|TBL-10WDKB|TBL-10WDKBO2013|TBL-W230V2|TBL-W450|TBL-W500|SV572|TBLT7I|TBA-AC7-8G|TBLT79|TBL-8W16|TBL-10W32|TBL-10WKB|TBL-W100",UbislateTablet:"UbiSlate[\\s]?7C",PocketBookTablet:"Pocketbook",KocasoTablet:"\\b(TB-1207)\\b",HisenseTablet:"\\b(F5281|E2371)\\b",Hudl:"Hudl HT7S3|Hudl 2",TelstraTablet:"T-Hub2",GenericTablet:"Android.*\\b97D\\b|Tablet(?!.*PC)|BNTV250A|MID-WCDMA|LogicPD Zoom2|\\bA7EB\\b|CatNova8|A1_07|CT704|CT1002|\\bM721\\b|rk30sdk|\\bEVOTAB\\b|M758A|ET904|ALUMIUM10|Smartfren Tab|Endeavour 1010|Tablet-PC-4|Tagi Tab|\\bM6pro\\b|CT1020W|arc 10HD|\\bTP750\\b|\\bQTAQZ3\\b|WVT101|TM1088|KT107"},oss:{AndroidOS:"Android",BlackBerryOS:"blackberry|\\bBB10\\b|rim tablet os",PalmOS:"PalmOS|avantgo|blazer|elaine|hiptop|palm|plucker|xiino",SymbianOS:"Symbian|SymbOS|Series60|Series40|SYB-[0-9]+|\\bS60\\b",WindowsMobileOS:"Windows CE.*(PPC|Smartphone|Mobile|[0-9]{3}x[0-9]{3})|Window Mobile|Windows Phone [0-9.]+|WCE;",WindowsPhoneOS:"Windows Phone 10.0|Windows Phone 8.1|Windows Phone 8.0|Windows Phone OS|XBLWP7|ZuneWP7|Windows NT 6.[23]; ARM;",iOS:"\\biPhone.*Mobile|\\biPod|\\biPad|AppleCoreMedia",MeeGoOS:"MeeGo",MaemoOS:"Maemo",JavaOS:"J2ME/|\\bMIDP\\b|\\bCLDC\\b",webOS:"webOS|hpwOS",badaOS:"\\bBada\\b",BREWOS:"BREW"},uas:{Chrome:"\\bCrMo\\b|CriOS|Android.*Chrome/[.0-9]* (Mobile)?",Dolfin:"\\bDolfin\\b",Opera:"Opera.*Mini|Opera.*Mobi|Android.*Opera|Mobile.*OPR/[0-9.]+$|Coast/[0-9.]+",Skyfire:"Skyfire",Edge:"Mobile Safari/[.0-9]* Edge",IE:"IEMobile|MSIEMobile",Firefox:"fennec|firefox.*maemo|(Mobile|Tablet).*Firefox|Firefox.*Mobile|FxiOS",Bolt:"bolt",TeaShark:"teashark",Blazer:"Blazer",Safari:"Version.*Mobile.*Safari|Safari.*Mobile|MobileSafari",WeChat:"\\bMicroMessenger\\b",UCBrowser:"UC.*Browser|UCWEB",baiduboxapp:"baiduboxapp",baidubrowser:"baidubrowser",DiigoBrowser:"DiigoBrowser",Puffin:"Puffin",Mercury:"\\bMercury\\b",ObigoBrowser:"Obigo",NetFront:"NF-Browser",GenericBrowser:"NokiaBrowser|OviBrowser|OneBrowser|TwonkyBeamBrowser|SEMC.*Browser|FlyFlow|Minimo|NetFront|Novarra-Vision|MQQBrowser|MicroMessenger",PaleMoon:"Android.*PaleMoon|Mobile.*PaleMoon"},props:{Mobile:"Mobile/[VER]",Build:"Build/[VER]",Version:"Version/[VER]",VendorID:"VendorID/[VER]",iPad:"iPad.*CPU[a-z ]+[VER]",iPhone:"iPhone.*CPU[a-z ]+[VER]",iPod:"iPod.*CPU[a-z ]+[VER]",Kindle:"Kindle/[VER]",Chrome:["Chrome/[VER]","CriOS/[VER]","CrMo/[VER]"],Coast:["Coast/[VER]"],Dolfin:"Dolfin/[VER]",Firefox:["Firefox/[VER]","FxiOS/[VER]"],Fennec:"Fennec/[VER]",Edge:"Edge/[VER]",IE:["IEMobile/[VER];","IEMobile [VER]","MSIE [VER];","Trident/[0-9.]+;.*rv:[VER]"],NetFront:"NetFront/[VER]",NokiaBrowser:"NokiaBrowser/[VER]",Opera:[" OPR/[VER]","Opera Mini/[VER]","Version/[VER]"],"Opera Mini":"Opera Mini/[VER]","Opera Mobi":"Version/[VER]",UCBrowser:["UCWEB[VER]","UC.*Browser/[VER]"],MQQBrowser:"MQQBrowser/[VER]",MicroMessenger:"MicroMessenger/[VER]",baiduboxapp:"baiduboxapp/[VER]",baidubrowser:"baidubrowser/[VER]",SamsungBrowser:"SamsungBrowser/[VER]",Iron:"Iron/[VER]",Safari:["Version/[VER]","Safari/[VER]"],Skyfire:"Skyfire/[VER]",Tizen:"Tizen/[VER]",Webkit:"webkit[ /][VER]",PaleMoon:"PaleMoon/[VER]",Gecko:"Gecko/[VER]",Trident:"Trident/[VER]",Presto:"Presto/[VER]",Goanna:"Goanna/[VER]",iOS:" \\bi?OS\\b [VER][ ;]{1}",Android:"Android [VER]",BlackBerry:["BlackBerry[\\w]+/[VER]","BlackBerry.*Version/[VER]","Version/[VER]"],BREW:"BREW [VER]",Java:"Java/[VER]","Windows Phone OS":["Windows Phone OS [VER]","Windows Phone [VER]"],"Windows Phone":"Windows Phone [VER]","Windows CE":"Windows CE/[VER]","Windows NT":"Windows NT [VER]",Symbian:["SymbianOS/[VER]","Symbian/[VER]"],webOS:["webOS/[VER]","hpwOS/[VER];"]},utils:{Bot:"Googlebot|facebookexternalhit|AdsBot-Google|Google Keyword Suggestion|Facebot|YandexBot|YandexMobileBot|bingbot|ia_archiver|AhrefsBot|Ezooms|GSLFbot|WBSearchBot|Twitterbot|TweetmemeBot|Twikle|PaperLiBot|Wotbox|UnwindFetchor|Exabot|MJ12bot|YandexImages|TurnitinBot|Pingdom",MobileBot:"Googlebot-Mobile|AdsBot-Google-Mobile|YahooSeeker/M1A1-R2D2",DesktopMode:"WPDesktop",TV:"SonyDTV|HbbTV",WebKit:"(webkit)[ /]([\\w.]+)",Console:"\\b(Nintendo|Nintendo WiiU|Nintendo 3DS|Nintendo Switch|PLAYSTATION|Xbox)\\b",Watch:"SM-V700"}},detectMobileBrowsers:{fullPattern:/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,shortPattern:/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,tabletPattern:/android|ipad|playbook|silk/i}},
vendor: 2,610 bytes, line 1
1u=Object.prototype.hasOwnProperty;return c.FALLBACK_PHONE="UnknownPhone",c.FALLBACK_TABLET="UnknownTablet",c.FALLBACK_MOBILE="UnknownMobile",l="isArray"in Array?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},function(){var e,t,i,n,o,r,a=c.mobileDetectRules;for(e in a.props)if(u.call(a.props,e)){for(t=a.props[e],l(t)||(t=[t]),o=t.length,n=0;n<o;++n)0<=(r=(i=t[n]).indexOf("[VER]"))&&(i=i.substring(0,r)+"([\\w._\\+]+)"+i.substring(r+5)),t[n]=new RegExp(i,"i");a.props[e]=t}s(a.oss),s(a.phones),s(a.tablets),s(a.uas),s(a.utils),a.oss0={WindowsPhoneOS:a.oss.WindowsPhoneOS,WindowsMobileOS:a.oss.WindowsMobileOS}}(),c.findMatch=function(e,t){for(var i in e)if(u.call(e,i)&&e[i].test(t))return i;return null},c.findMatches=function(e,t){var i=[];for(var n in e)u.call(e,n)&&e[n].test(t)&&i.push(n);return i},c.getVersionStr=function(e,t){var i,n,o,r,a=c.mobileDetectRules.props;if(u.call(a,e))for(o=(i=a[e]).length,n=0;n<o;++n)if(null!==(r=i[n].exec(t)))return r[1];return null},c.getVersion=function(e,t){var i=c.getVersionStr(e,t);return i?c.prepareVersionNo(i):NaN},c.prepareVersionNo=function(e){var t;return 1===(t=e.split(/[a-z._ \/\-]/i)).length&&(e=t[0]),1<t.length&&(e=t[0]+".",t.shift(),e+=t.join("")),Number(e)},c.isMobileFallback=function(e){return c.detectMobileBrowsers.fullPattern.test(e)||c.detectMobileBrowsers.shortPattern.test(e.substr(0,4))},c.isTabletFallback=function(e){return c.detectMobileBrowsers.tabletPattern.test(e)},c.prepareDetectionCache=function(e,t,i){var n,o,r;if(e.mobile===d)return(o=c.findMatch(c.mobileDetectRules.tablets,t))?(e.mobile=e.tablet=o,void(e.phone=null)):(n=c.findMatch(c.mobileDetectRules.phones,t))?(e.mobile=e.phone=n,void(e.tablet=null)):void(c.isMobileFallback(t)?(r=a.isPhoneSized(i))===d?(e.mobile=c.FALLBACK_MOBILE,e.tablet=e.phone=null):r?(e.mobile=e.phone=c.FALLBACK_PHONE,e.tablet=null):(e.mobile=e.tablet=c.FALLBACK_TABLET,e.phone=null):c.isTabletFallback(t)?(e.mobile=e.tablet=c.FALLBACK_TABLET,e.phone=null):e.mobile=e.tablet=e.phone=null)},c.mobileGrade=function(e){var t=null!==e.mobile();return e.os("iOS")&&4.3<=e.version("iPad")||e.os("iOS")&&3.1<=e.version("iPhone")||e.os("iOS")&&3.1<=e.version("iPod")||2.1<e.version("Android")&&e.is("Webkit")||7<=e.version("Windows Phone OS")||e.is("BlackBerry")&&6<=e.version("BlackBerry")||e.match("Playbook.*Tablet")||1.4<=e.version("webOS")&&e.match("Palm|Pre|Pixi")||e.match("hp.*TouchPad")||e.is("Firefox")&&12<=e.version("Firefox")||e.is("Chrome")&&e.is("AndroidOS")&&4<=e.version("Android")||e.is("Skyfire")&&4.1<=e.version("Skyfire")&&e.is("AndroidOS")&&2.3
1<=e.version("Android")||e.is("Opera")&&11<e.version("Opera Mobi")&&e.is("AndroidOS")||e.is("MeeGoOS")||e.is("Tizen")||e.is("Dolfin")&&2<=e.version("Bada")||(e.is("UC Browser")||e.is("Dolfin"))&&2.3<=e.version("Android")||e.match("Kindle Fire")||e.is("Kindle")&&3<=e.version("Kindle")||e.is("AndroidOS")&&e.is("NookTablet")||11<=e.version("Chrome")&&!t||5<=e.version("Safari")&&!t||4<=e.version("Firefox")&&!t||7<=e.version("MSIE")&&!t||10<=e.version("Opera")&&!t?"A":e.os("iOS")&&e.version("iPad")<4.3||e.os("iOS")&&e.version("iPhone")<3.1||e.os("iOS")&&e.version("iPod")<3.1||e.is("Blackberry")&&5<=e.version("BlackBerry")&&e.version("BlackBerry")<6||5<=e.version("Opera Mini")&&e.version("Opera Mini")<=6.5&&(2.3<=e.version("Android")||e.is("iOS"))||e.match("NokiaN8|NokiaC7|N97.*Series60|Symbian/3")||11<=e.version("Opera Mobi")&&e.is("SymbianOS")?"B":(e.version("BlackBerry")<5||e.match("MSIEMobile|Windows CE.*Mobile")||e.version("Windows Mobile"),"C")},c.detectOS=function(e){return c.findMatch(c.mobileDetectRules.oss0,e)||c.findMatch(c.mobileDetectRules.oss,e)},c.getDeviceSmallerSide=function(){return window.screen.width<window.screen.height?window.screen.width:window.screen.height},a.prototype={constructor:a,mobile:function(){return c.prepareDetectionCache(this._cache,this.ua,this.maxPhoneWidth),this._cache.mobile},phone:function(){return c.prepareDetectionCache(this._cache,this.ua,this.maxPhoneWidth),this._cache.phone},tablet:function(){return c.prepareDetectionCache(this._cache,this.ua,this.maxPhoneWidth),this._cache.tablet},userAgent:function(){return this._cache.userAgent===d&&(this._cache.userAgent=c.findMatch(c.mobileDetectRules.uas,this.ua)),this._cache.userAgent},userAgents:function(){return this._cache.userAgents===d&&(this._cache.userAgents=c.findMatches(c.mobileDetectRules.uas,this.ua)),this._cache.userAgents},os:function(){return this._cache.os===d&&(this._cache.os=c.detectOS(this.ua)),this._cache.os},version:function(e){return c.getVersion(e,this.ua)},versionStr:function(e){return c.getVersionStr(e,this.ua)},is:function(e){return i(this.userAgents(),e)||t(e,this.os())||t(e,this.phone())||t(e,this.tablet())||i(c.findMatches(c.mobileDetectRules.utils,this.ua),e)},match:function(e){return e instanceof RegExp||(e=new RegExp(e,"i")),e.test(this.ua)},isPhoneSized:function(e){return a.isPhoneSized(e||this.maxPhoneWidth)},mobileGrade:function(){return this._cache.grade===d&&(this._cache.grade=c.mobileGrade(this)),this._cache.grade}},a.isPhoneSized="undefined"!=typeof window&&window.screen?function(e){return e<0?d:c.getDeviceSmallerSide()<=e}:function(){},a._impl=c,a.version="1.4.3 2018-09-08",a})}(),function(e,t){"object"==typeof module&&module.exports?(t.default=t,module.exports=e.document?t(e):t):"function"==typeof define&&define.amd?define("highcharts/highcharts",function(){return t(e)}):(e.Highcharts&&e.Highcharts.error(16,!0),e.Highcharts=t(e))}("undefined"!=typeof window?window:this,function(l){function e(e,t,i,n){e.hasOwnProperty(t)||(e[t]=n.apply(null,i))}var t={};return e(t,"parts/Globals.js",[],function(){var e=void 0===l?"undefined"!=typeof window?window:{}:l,t=e.document,i=e.navigator&&e.navigator.userAgent||"",n=t&&t.createElementNS&&!!t.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,o=/(edge|msie|trident)/i.test(i)&&!e.opera,r=-1!==i.indexOf("Firefox"),a=-1!==i.indexOf("Chrome"),s=r&&parseInt(i.split("Firefox/")[1],10)<4;return{product:"Highcharts",version:"7.1.3",deg2rad:2*Math.PI/360,doc:t,hasBidiBug:s,hasTouch:!!l.TouchEvent,isMS:o,isWebKit:-1!==i.indexOf("AppleWebKit"),isFirefox:r,isChrome:a,isSafari:!a&&-1!==i.indexOf("Safari"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(i),SVG_NS:"http://www.w3.org/2000/svg",chartCount:0,seriesTypes:{},symbolSizes:{},svg:n,win:e,marginNames:["plotTop","marginRight","marginBottom","plotLeft"],noop:function(){},charts:[],dateFormats:{}}}),e(t,"parts/Utilities.js",[t["parts/Globals.js"]],function(d){function c(e,t){return parseInt(e,t||10)}function o(e){return"string"==typeof e}function n(e){return"[object Array]"===(e=Object.prototype.toString.call(e))||"[object Array Iterator]"===e}function u(e,t){return!(!e||"object"!=typeof e||t&&n(e))}function r(e){return u(e)&&"number"==typeof e.nodeType}function a(e){var t=e&&e.constructor;return!(!u(e,!0)||r(e)||!t||!t.name||"Object"===t.name)}function v(e){return"number"==typeof e&&!isNaN(e)&&e<1/0&&-1/0<e}function s(e){return null!=e}function h(e,t,i){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.call(i||e[n],e[n],n,e)}d.timers=[];var e,t,i=d.charts,l=d.doc,p=d.win;return d.error=function(e,t,i){var n=v(e)?"Highcharts error #"+e+": www.highcharts.com/errors/"+e:e,o=function(){if(t)throw Error(n);p.console&&console.log(n)};i?d.fireEvent(i,"displayError",{code:e,message:n},o):o()},d.Fx=function(e,t,i){this.options=t,this.elem=e,this.prop=i},d.Fx.prototype={dSetter:function(){var e=this.paths[0],t=this.paths[1],i=[],n=this.now,o=e.length;if(1===n)i=this.toD;else if(o===t.length&&n<1)for(;o--;){var r=parseFloat(e[o]);i[o]=isNaN(r)?t[o]:n*parseFloat(""+(t[o]-r))+r}else i=t;this.elem.attr("d",i,null,!0)},update:function(){var e=this.elem,t=this.prop,i=this.now,n=this.options.step;this[t+"Setter"]?this[t+"Setter"]():e.attr?e.element&&e.attr(t,i,null,!0):e.style[t]=i+this.unit,n&&n.call(e,i,this)},run:function(e,t,i){var n=this,o=n.options,r=function(e){return!r.stopped&&n.step(e)},a=p.requestAnimationFrame||function(e){setTimeout(e,13)},s=function(){for(var e=0;e<d.timers.length;e++)d.timers[e]()||d.timers.splice(e--,1);d.timers.length&&a(s)};e!==t||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=e,this.end=t,this.unit=i,this.now=this.start,this.pos=0,r.elem=this.elem,r.prop=this.prop,r()&&1===d.timers.push(r)&&a(s)):(delete o.curAnim[this.prop],o.complete&&0===Object.keys(o.curAnim).length&&o.complete.call(this.elem))},step:function(e){var t=+new Date,i=this.options,n=this.elem,o=i.complete,r=i.duration,a=i.curAnim;if(n.attr&&!n.element)e=!1;else if(e||t>=r+this.startTime){this.now=this.end,this.pos=1,this.update();var s=a[this.prop]=!0;h(a,function(e){!0!==e&&(s=!1)}),s&&o&&o.call(n),e=!1}else this.pos=i.easing((t-this.startTime)/r),this.now=this.start+(this.end-this.start)*this.pos,this.update(),e=!0;return e},initPath:function(e,t,i){function n(e){for(s=e.length;s--;){var t="M"===e[s]||"L"===e[s],i=/[a-zA-Z]/.test(e[s+3]);t&&i&&e.splice(s+1,0,e[s+1],e[s+2],e[s+1],e[s+2])}}function o(e,t){for(;e.length<g;){e[0]=t[g-e.length];var i=e.slice(0,d);[].splice.apply(e,[0,0].concat(i)),h&&(i=e.slice(e.length-d),[].splice.apply(e,[e.length,0].c
1oncat(i)),s--)}e[0]="M"}function r(e,t){for(var i=(g-e.length)/d;0<i&&i--;)(a=e.slice().splice(e.length/p-d,d*p))[0]=t[g-d-i*d],u&&(a[d-6]=a[d-2],a[d-5]=a[d-1]),[].splice.apply(e,[e.length/p,0].concat(a)),h&&i--}t=t||"";var a,s,l=e.startX,c=e.endX,u=-1<t.indexOf("C"),d=u?7:3;t=t.split(" "),i=i.slice();var h=e.isArea,p=h?2:1;if(u&&(n(t),n(i)),l&&c){for(s=0;s<l.length;s++){if(l[s]===c[0]){var f=s;break}if(l[0]===c[c.length-l.length+s]){f=s;var m=!0;break}if(l[l.length-1]===c[c.length-l.length+s]){f=l.length-s;break}}void 0===f&&(t=[])}if(t.length&&v(f)){var g=i.length+f*p*d;m?(o(t,i),r(i,t)):(o(i,t),r(t,i))}return[t,i]},fillSetter:function(){d.Fx.prototype.strokeSetter.apply(this,arguments)},strokeSetter:function(){this.elem.attr(this.prop,d.color(this.start).tweenTo(d.color(this.end),this.pos),null,!0)}},d.merge=function(){var e,t=arguments,i={},o=function(i,n){return"object"!=typeof i&&(i={}),h(n,function(e,t){!u(e,!0)||a(e)||r(e)?i[t]=n[t]:i[t]=o(i[t]||{},e)}),i};!0===t[0]&&(i=t[1],t=Array.prototype.slice.call(t,2));var n=t.length;for(e=0;e<n;e++)i=o(i,t[e]);return i},d.attr=function(i,e,t){var n;return o(e)?s(t)?i.setAttribute(e,t):i&&i.getAttribute&&((n=i.getAttribute(e))||"class"!==e||(n=i.getAttribute(e+"Name"))):s(e)&&u(e)&&h(e,function(e,t){i.setAttribute(t,e)}),n},d.syncTimeout=function(e,t,i){if(t)return setTimeout(e,t,i);e.call(0,i)},d.clearTimeout=function(e){s(e)&&clearTimeout(e)},d.extend=function(e,t){var i;for(i in e||(e={}),t)e[i]=t[i];return e},d.pick=function(){var e,t=arguments,i=t.length;for(e=0;e<i;e++){var n=t[e];if(null!=n)return n}},d.css=function(e,t){d.isMS&&!d.svg&&t&&void 0!==t.opacity&&(t.filter="alpha(opacity="+100*t.opacity+")"),d.extend(e.style,t)},d.createElement=function(e,t,i,n,o){e=l.createElement(e);var r=d.css;return t&&d.extend(e,t),o&&r(e,{padding:"0",border:"none",margin:"0"}),i&&r(e,i),n&&n.appendChild(e),e},d.extendClass=function(e,t){var i=function(){};return i.prototype=new e,d.extend(i.prototype,t),i},d.pad=function(e,t,i){return Array((t||2)+1-String(e).replace("-","").length).join(i||"0")+e},d.relativeLength=function(e,t,i){return/%$/.test(e)?t*parseFloat(e)/100+(i||0):parseFloat(e)},d.wrap=function(e,t,n){var o=e[t];e[t]=function(){var e=Array.prototype.slice.call(arguments),t=arguments,i=this;return i.proceed=function(){o.apply(i,arguments.length?arguments:t)},e.unshift(o),e=n.apply(this,e),i.proceed=null,e}},d.datePropsToTimestamps=function(i){h(i,function(e,t){u(e)&&"function"==typeof e.getTime?i[t]=e.getTime():(u(e)||n(e))&&d.datePropsToTimestamps(e)})},d.formatSingle=function(e,t,i){var n=d.defaultOptions.lang;return/f$/.test(e)?(i=(i=e.match(/\.([0-9])/))?i[1]:-1,null!==t&&(t=d.numberFormat(t,i,n.decimalPoint,-1<e.indexOf(",")?
1n.thousandsSep:""))):t=(i||d.time).dateFormat(e,t),t},d.format=function(e,t,i){for(var n,o,r,a,s,l="{",c=!1,u=[];e&&-1!==(l=e.indexOf(l));){if(n=e.slice(0,l),c){for(a=(o=(n=n.split(":")).shift().split(".")).length,s=t,r=0;r<a;r++)s&&(s=s[o[r]]);n.length&&(s=d.formatSingle(n.join(":"),s,i)),u.push(s)}else u.push(n);e=e.slice(l+1),l=(c=!c)?"}":"{"}return u.push(e),u.join("")},d.getMagnitude=function(e){return Math.pow(10,Math.floor(Math.log(e)/Math.LN10))},d.normalizeTickInterval=function(e,t,i,n,o){var r=e,a=e/(i=d.pick(i,1));for(t||(t=o?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===n&&(1===i?t=t.filter(function(e){return 0==e%1}):i<=.1&&(t=[1/i]))),n=0;n<t.length&&(r=t[n],!(o&&e<=r*i||!o&&a<=(t[n]+(t[n+1]||t[n]))/2));n++);return d.correctFloat(r*i,-Math.round(Math.log(.001)/Math.LN10))},d.stableSort=function(e,i){var n,t,o=e.length;for(t=0;t<o;t++)e[t].safeI=t;for(e.sort(function(e,t){return 0===(n=i(e,t))?e.safeI-t.safeI:n}),t=0;t<o;t++)delete e[t].safeI},d.arrayMin=function(e){for(var t=e.length,i=e[0];t--;)e[t]<i&&(i=e[t]);return i},d.arrayMax=function(e){for(var t=e.length,i=e[0];t--;)e[t]>i&&(i=e[t]);return i},d.destroyObjectProperties=function(i,n){h(i,function(e,t){e&&e!==n&&e.destroy&&e.destroy(),delete i[t]})},d.discardElement=function(e){var t=d.garbageBin;t||(t=d.createElement("div")),e&&t.appendChild(e),t.innerHTML=""},d.correctFloat=function(e,t){return parseFloat(e.toPrecision(t||14))},d.setAnimation=function(e,t){t.renderer.globalAnimation=d.pick(e,t.options.chart.animation,!0)},d.animObject=function(e){return u(e)?d.merge(e):{duration:e?500:0}},d.timeUnits={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},d.numberFormat=function(e,t,i,n){e=+e||0,t=+t;var o=d.defaultOptions.lang,r=(e.toString().split(".")[1]||"").split("e")[0].length,a=e.toString().split("e");if(-1===t)t=Math.min(r,20);else if(v(t)){if(t&&a[1]&&a[1]<0){var s=t+ +a[1];0<=s?(a[0]=(+a[0]).toExponential(s).split("e")[0],t=s):(a[0]=a[0].split(".")[0]||0,e=t<20?(a[0]*Math.pow(10,a[1])).toFixed(t):0,a[1]=0)}}else t=2;var l=(Math.abs(a[1]?a[0]:e)+Math.pow(10,-Math.max(t,r)-1)).toFixed(t);return s=3<(r=String(c(l))).length?r.length%3:0,i=d.pick(i,o.decimalPoint),n=d.pick(n,o.thousandsSep),e=(e<0?"-":"")+(s?r.substr(0,s)+n:""),e+=r.substr(s).replace(/(\d{3})(?=\d)/g,"$1"+n),t&&(e+=i+l.slice(-t)),a[1]&&0!=+e&&(e+="e"+a[1]),e},Math.easeInOutSine=function(e){return-.5*(Math.cos(Math.PI*e)-1)},d.getStyle=function(e,t,i){return"width"===t?(t=Math.min(e.offsetWidth,e.scrollWidth),(i=e.getBoundingClientRect&&e.getBoundingClientRect().width)<t&&t-1<=i&&(t=Math.floor(i)),Math.max(0,t-d.getStyle(e,"padding-left")-d.getStyle(e,"padding-right"))):"height"===t?Math.max(0,Math.min(e.offsetHeight,e.scrollHeight)-d.getStyle(e,"padding-top")-d.getStyle(e,"padding-bottom")):(p.getComputedStyle||d.error(27,!0),(e=p.getComputedStyle(e,void 0))&&(e=e.getPropertyValue(t),d.pick(i,"opacity"!==t)&&(e=c(e))),e)},d.inArray=function(e,t,i){return t.indexOf(e,i)},d.find=Array.prototype.find?function(e,t){return e.find(t)}:function(e,t){var i,n=e.length;for(i=0;i<n;i++)if(t(e[i],i))return e[i]},d.keys=Object.keys,d.offset=function(e){var t=l.documentElement;return{top:(e=e.parentElement||e.parentNode?e.getBoundingClientRect():{top:0,left:0}).top+(p.pageYOffset||t.scrollTop)-(t.clientTop||0),left:e.left+(p.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}},d.stop=function(e,t){for(var i=d.timers.length;i--;)d.timers[i].elem!==e||t&&t!==d.timers[i].prop||(d.timers[i].stopped=!0)},h({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(t,e){d[e]=function(e){return Array.prototype[t].apply(e,[].slice.call(arguments,1))}}),d.addEvent=function(e,t,i,n){void 0===n&&(n={});var o=e.addEventListener||d.addEventListenerPolyfill,r="function"==typeof e&&e.prototype?e.prototype.protoEvents=e.prototype.protoEvents||{}:e.hcEvents=e.hcEvents||{};return d.Point&&e instanceof d.Point&&e.series&&e.series.chart&&(e.series.chart.runTrackerClick=!0),o&&o.call(e,t,i,!1),r[t]||(r[t]=[]),r[t].push({fn:i,order:"number"==typeof n.order?n.order:1/0}),r[t].sort(function(e,t){return e.order-t.order}),function(){d.removeEvent(e,t,i)}},d.removeEvent=function(o,r,i){function a(e,t){var i=o.removeEventListener||d.removeEventListenerPolyfill;i&&i.call(o,e,t,!1)}function n(i){var n;if(o.nodeName){if(r){var e={};e[r]=!0}else e=i;h(e,function(e,t){if(i[t])for(n=i[t].length;n--;)a(t,i[t][n].fn)})}}var s;["protoEvents","hcEvents"].forEach(function(e){var t=o[e];t&&(r?(s=t[r]||[],i?(t[r]=s.filter(function(e){return i!==e.fn}),a(r,i)):(n(t),t[r]=[])):(n(t),o[e]={}))})},d.fireEvent=function(r,e,a,t){var s;if(a=a||{},l.createEvent&&(r.dispatchEvent||r.fireEvent)){var i=l.createEvent("Events");i.initEvent(e,!0,!0),d.extend(i,a),r.dispatchEvent?r.dispatchEvent(i):r.fireEvent(e,i)}else a.target||d.extend(a,{preventDefault:function(){a.defaultPrevented=!0},target:r,type:e}),function(e,t){void 0===e&&(e=[]),void 0===t&&(t=[]);var i=0,n=0,o=e.length+t.length;for(s=0;s<o;s++)!1===(e[i]?t[n]?e[i].order<=t[n].order?e[i++]:t[n++]:e[i++]:t[n++]).fn.call(r,a)&&a.preventDefault()}(r.protoEvents&&r.protoEvents[e],r.hcEvents&&r.hcEvents[e]);t&&!a.defaultPrevented&&t.call(r,a)},d.animate=function(i,n,o){var r,a,s,l="";if(!u(o)){var e=arguments;o={duration:e[2],easing:e[3],complete:e[4]}}v(o.duration)||(o.duration=400),o.easing="function"==typeof o.easing?o.easing:Math[o.easing]||Math.easeInOutSine,o.curAnim=d.merge(n),h(n,function(e,t){d.stop(i,t),s=new d.Fx(i,o,t),a=null,"d"===t?(s.paths=s.initPath(i,i.d,n.d),s.toD=n.d,r=0,a=1):i.attr?r=i.attr(t):(r=parseFloat(d.getStyle(i,t))||0,"opacity"!==t&&(l="px")),a||(a=e),a&&a.match&&a.match("px")&&(a=a.replace(/px/g,"")),s.run(r,a,l)})},d.seriesType=function(e,t,i,n,o){var r=d.getOptions(),a=d.seriesTypes;return r.plotOptions[e]=d.merge(r.plotOptions[t],i),a[e]=d.extendClass(a[t]||function(){},n),a[e].prototype.type=e,o&&(a[e].prototype.pointClass=d.extendClass(d.Point,o)),a[e]},d.uniqueKey=(e=Math.random().toString(36).substring(2,9),t=0,function(){return"highcharts-"+e+"-"+t++}),d.isFunction=function(e){return"function"==typeof e},p.jQuery&&(p.jQuery.fn.highcharts=function(){var e=[].slice.call(arguments);if(this[0])return e[0]?(new(d[o(e[0])?e.shift():"Chart"])(this[0],e[0],e[1]),this):i[d.attr(this[0],"data-highcharts-chart")]}),{defined:s,erase:function(e,t){for(var i=e.length;i--;)if(e[i]===t){e.splice(i,1);break}},isArray:n,isClass:a,isDOMElement:r,isNumber:v,isObject:u,isString:o,objectEach:h,pInt:c,splat:function(e){return n(e)?e:[e]}}}),e(t,"parts/Color.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],function(r,e){var o=e.isNumber,n=e.pInt,a=r.merge;r.Color=function(e){if(!(this instanceof r.Color))return new r.Color(e);this.init(e)},r.Color.prototype={parsers:[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(e){return[n(e[1]),n(e[2]),n(e[3]),parseFloat(e[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(e){return[n(e[1]),n(e[2]),n(e[3]),1]}}],names:{white:"#ffffff",black:"#000000"},init:function(e){var t,i;if((this.input=e=this.names[e&&e.toLowerCase?e.toLowerCase():""]||e)&&e.stops)this.stops=e.stops.map(function(e){return new r.Color(e[1])});else{if(e&&e.charAt&&"#"===e.charAt()){var n=e.length;e=parseInt(e.substr(1),16),7===n?t=[(16711680&e)>>16,(65280&e)>>8,255&e,1]:4===n&&(t=[(3840&e)>>4|(3840&e)>>8,(240&e)>>4|240&e,(15&e)<<4|15&e,1])}if(!t)for(i=this.parsers.length;i--&&!t;){var o=this.parsers[i];(n=o.regex.exec(e))&&(t=o.parse(n))}}this.rgba=t||[]},get:function(i){var e=this.input,t=this.rgba;if(this.stops){var n=a(e);n.stops=[].concat(n.stops),this.stops.forEach(function(e,t){n.stops[t]=[n.stops[t][0],e.get(i)]})}else n=t&&o(t[0])?"rgb"===i||!i&&1===t[3]?"rgb("+t[0]+","+t[1]+","+t[2]+")":"a"===i?t[3]:"rgba("+t.join(",")+")":e;return n},brighten:function(t){var e,i=this.rgba;if(this.stops)this.stops.forEach(function(e){e.brighten(t)});else if(o(t)&&0!==t)for(e=0;e<3;e++)i[e]+=n(255*t),i[e]<0&&(i[e]=0),255<i[e]&&(i[e]=255);return this},setOpacity:function(e){return this.rgba[3]=e,this},tweenTo:function(e,t){var i=this.rgba,n=e.rgba;return t=n.length&&i&&i.length?((e=1!==n[3]||1!==i[3])?"rgba(":"rgb(")+Math.round(n[0]+(i[0]-n[0])*(1-t))+","+Math.round(n[1]+(i[1]-n[1])*(1-t))+","+Math.round(n[2]+(i[2]-n[2])*(1-t))+(e?","+(n[3]+(i[3]-n[3])*(1-t)):"")+")":e.input||"none"}},r.color=function(e){return new r.Color(e)}}),e(t,"parts/SvgRenderer.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],function(v,e){var I=e.defined,u=e.erase,b=e.isArray,R=e.isNumber,s=e.isObject,d=e.isString,C=e.objectEach,M=e.pInt,t=e.splat,y=v.addEvent,o=v.animate,P=v.attr,m=v.charts,i=v.color,A=v.css,g=v.createElement,f=v.deg2rad,n=v.destroyObjectProperties,E=v.doc,H=v.extend,r
1=v.hasTouch,c=v.isFirefox,x=v.isMS,h=v.isWebKit,N=v.merge,p=v.noop,D=v.pick,B=v.removeEvent,T=v.stop,O=v.svg,L=v.SVG_NS,S=v.symbolSizes,w=v.win,G=v.SVGElement=function(){return this};H(G.prototype,{opacity:1,SVG_NS:L,textProps:"direction fontSize fontWeight fontFamily fontStyle color lineHeight width textAlign textDecoration textOverflow textOutline cursor".split(" "),init:function(e,t){this.element="span"===t?g(t):E.createElementNS(this.SVG_NS,t),this.renderer=e,v.fireEvent(this,"afterInit")},animate:function(e,t,i){var n=v.animObject(D(t,this.renderer.globalAnimation,!0));return D(E.hidden,E.msHidden,E.webkitHidden,!1)&&(n.duration=0),0!==n.duration?(i&&(n.complete=i),o(this,e,n)):(this.attr(e,void 0,i),C(e,function(e,t){n.step&&n.step.call(this,e,{prop:t,pos:1})},this)),this},complexColor:function(e,t,i){var n,o,r,a,s,l,c,u,d,h,p,f,m=this.renderer,g=[];v.fireEvent(this.renderer,"complexColor",{args:arguments},function(){e.radialGradient?o="radialGradient":e.linearGradient&&(o="linearGradient"),o&&(r=e[o],s=m.gradients,c=e.stops,h=i.radialReference,b(r)&&(e[o]=r={x1:r[0],y1:r[1],x2:r[2],y2:r[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===o&&h&&!I(r.gradientUnits)&&(r=N(a=r,m.getRadialAttr(h,a),{gradientUnits:"userSpaceOnUse"})),C(r,function(e,t){"id"!==t&&g.push(t,e)}),C(c,function(e){g.push(e)}),g=g.join(","),s[g]?p=s[g].attr("id"):(r.id=p=v.uniqueKey(),s[g]=l=m.createElement(o).attr(r).add(m.defs),l.radAttr=a,l.stops=[],c.forEach(function(e){d=0===e[1].indexOf("rgba")?(n=v.color(e[1]),u=n.get("rgb"),n.get("a")):(u=e[1],1),e=m.createElement("stop").attr({offset:e[0],"stop-color":u,"stop-opacity":d}).add(l),l.stops.push(e)})),f="url("+m.url+"#"+p+")",i.setAttribute(t,f),i.gradient=g,e.toString=function(){return f})})},applyTextOutline:function(e){var i,n=this.element;-1!==e.indexOf("contrast")&&(e=e.replace(/contrast/g,this.renderer.getContrast(n.style.fill)));var o=(e=e.split(" "))[e.length-1];if((i=e[0])&&"none"!==i&&v.svg){this.fakeTS=!0,e=[].slice.call(n.getElementsByTagName("tspan")),this.ySetter=this.xSetter,i=i.replace(/(^[\d\.]+)(.*?)$/g,function(e,t,i){return 2*t+i}),this.removeTextOutline(e);var r=n.firstChild;e.forEach(function(e,t){0===t&&(e.setAttribute("x",n.getAttribute("x")),t=n.getAttribute("y"),e.setAttribute("y",t||0),null===t&&n.setAttribute("y",0)),e=e.cloneNode(1),P(e,{class:"highcharts-text-outline",fill:o,stroke:o,"stroke-width":i,"stroke-linejoin":"round"}),n.insertBefore(e,r)})}},removeTextOutline:function(e){for(var t,i=e.length;i--;)"highcharts-text-outline"===(t=e[i]).getAttribute("class")&&u(e,this.element.removeChild(t))},symbolCustomAttribs:"x y width height r start end innerR anchorX anchorY roun
1ded".split(" "),attr:function(i,e,t,n){var o,r,a,s=this.element,l=this,c=this.symbolCustomAttribs;if("string"==typeof i&&void 0!==e){var u=i;(i={})[u]=e}return"string"==typeof i?l=(this[i+"Getter"]||this._defaultGetter).call(this,i,s):(C(i,function(e,t){r=!1,n||T(this,t),this.symbolName&&-1!==v.inArray(t,c)&&(o||(this.symbolAttr(i),o=!0),r=!0),!this.rotation||"x"!==t&&"y"!==t||(this.doTransform=!0),r||((a=this[t+"Setter"]||this._defaultSetter).call(this,e,t,s),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(t)&&this.updateShadows(t,e,a))},this),this.afterSetters()),t&&t.call(this),l},afterSetters:function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},updateShadows:function(e,t,i){for(var n=this.shadows,o=n.length;o--;)i.call(n[o],"height"===e?Math.max(t-(n[o].cutHeight||0),0):"d"===e?this.d:t,e,n[o])},addClass:function(e,t){var i=this.attr("class")||"";return t||(e=(e||"").split(/ /g).reduce(function(e,t){return-1===i.indexOf(t)&&e.push(t),e},i?[i]:[]).join(" ")),e!==i&&this.attr("class",e),this},hasClass:function(e){return-1!==(this.attr("class")||"").split(" ").indexOf(e)},removeClass:function(e){return this.attr("class",(this.attr("class")||"").replace(e,""))},symbolAttr:function(t){var i=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(e){i[e]=D(t[e],i[e])}),i.attr({d:i.renderer.symbols[i.symbolName](i.x,i.y,i.width,i.height,i)})},clip:function(e){return this.attr("clip-path",e?"url("+this.renderer.url+"#"+e.id+")":"none")},crisp:function(e,t){t=t||e.strokeWidth||0;var i=Math.round(t)%2/2;return e.x=Math.floor(e.x||this.x||0)+i,e.y=Math.floor(e.y||this.y||0)+i,e.width=Math.floor((e.width||this.width||0)-2*i),e.height=Math.floor((e.height||this.height||0)-2*i),I(e.strokeWidth)&&(e.strokeWidth=t),e},css:function(e){var i=this.styles,n={},t=this.element,o="",r=!i,a=["textOutline","textOverflow","width"];if(e&&e.color&&(e.fill=e.color),i&&C(e,function(e,t){e!==i[t]&&(n[t]=e,r=!0)}),r){if(i&&(e=H(i,n)),e)if(null===e.width||"auto"===e.width)delete this.textWidth;else if("text"===t.nodeName.toLowerCase()&&e.width)var s=this.textWidth=M(e.width);if(this.styles=e,s&&!O&&this.renderer.forExport&&delete e.width,t.namespaceURI===this.SVG_NS){var l=function(e,t){return"-"+t.toLowerCase()};C(e,function(e,t){-1===a.indexOf(t)&&(o+=t.replace(/([A-Z])/g,l)+":"+e+";")}),o&&P(t,"style",o)}else A(t,e);this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),e&&e.textOutline&&this.applyTextOutline(e.textOutline))}return this},getStyle:function(e){return w.getComputedStyle(this.element||this,"").getPropertyValue(e)},strokeWidth:function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var e=this.getStyle("stroke-width");if(e.indexOf("px")===e.length-2)e=M(e);else{var t=E.createElementNS(L,"rect");P(t,{width:e,"stroke-width":0}),this.element.parentNode.appendChild(t),e=t.getBBox().width,t.parentNode.removeChild(t)}return e},on:function(e,t){var i=this,n=i.element;return r&&"click"===e?(n.ontouchstart=function(e){i.touchEventFired=Date.now(),e.preventDefault(),t.call(n,e)},n.onclick=function(e){(-1===w.navigator.userAgent.indexOf("Android")||1100<Date.now()-(i.touchEventFired||0))&&t.call(n,e)}):n["on"+e]=t,this},setRadialReference:function(e){var t=this.renderer.gradients[this.element.gradient];return this.element.radialReference=e,t&&t.radAttr&&t.animate(this.renderer.getRadialAttr(e,t.radAttr)),this},translate:function(e,t){return this.attr({translateX:e,translateY:t})},invert:function(e){return this.inverted=e,this.updateTransform(),this},updateTransform:function(){var e=this.translateX||0,t=this.translateY||0,i=this.scaleX,n=this.scaleY,o=this.inverted,r=this.rotation,a=this.matrix,s=this.element;o&&(e+=this.width,t+=this.height),e=["translate("+e+","+t+")"],I(a)&&e.push("matrix("+a.join(",")+")"),o?e.push("rotate(90) scale(-1,1)"):r&&e.push("rotate("+r+" "+D(this.rotationOriginX,s.getAttribute("x"),0)+" "+D(this.rotationOriginY,s.getAttribute("y")||0)+")"),(I(i)||I(n))&&e.push("scale("+D(i,1)+" "+D(n,1)+")"),e.length&&s.setAttribute("transform",e.join(" "))},toFront:function(){var e=this.element;return e.parentNode.appendChild(e),this},align:function(e,t,i){var n,o,r,a={},s=this.renderer,l=s.alignedObjects;e?(this.alignOptions=e,this.alignByTranslate=t,(!i||d(i))&&(this.alignTo=n=i||"renderer",u(l,this),l.push(this),i=null)):(e=this.alignOptions,t=this.alignByTranslate,n=this.alignTo),i=D(i,s[n],s),n=e.align,s=e.verticalAlign,l=(i.x||0)+(e.x||0);var c=(i.y||0)+(e.y||0);return"right"===n?o=1:"center"===n&&(o=2),o&&(l+=(i.width-(e.width||0))/o),a[t?"translateX":"x"]=Math.round(l),"bottom"===s?r=1:"middle"===s&&(r=2),r&&(c+=(i.height-(e.height||0))/r),a[t?"translateY":"y"]=Math.round(c),this[this.placed?"animate":"attr"](a),this.placed=!0,this.alignAttr=a,this},getBBox:function(e,t){var i,n,o=this.renderer,r=this.element,a=this.styles,s=this.textStr,l=o.cache,c=o.cacheKeys,u=r.namespaceURI===this.SVG_NS,d=(t=D(t,this.rotation))*f,h=o.styledMode?r&&G.prototype.getStyle.call(r,"font-size"):a&&a.fontSize;if(I(s)){var p=s.toString();-1===p.indexOf("<")&&(p=p.replace(/[0-9]/g,"0")),p+=["",t||0,h,this.textWidth,a&&a.textOverflow].join()}if(p&&!e&&(i=l[p]),!i){if(u||o.forExport){try{(n=this.fakeTS&&function(t){[].forEach.call(r.querySelectorAll(".highcharts-text-outline"),function(e){e.style.display=t})})&&n("none"),i=r.getBBox?H({},r.getBBox()):{width:r.offsetWidth,height:r.offsetHeight},n&&n("")}catch(e){}(!i||i.width<0)&&(i={width:0,height:0})}else i=this.htmlGetBBox();if(o.isSVG&&(e=i.width,o=i.height,u&&(i.height=o={"11px,17":14,"13px,20":16}[a&&a.fontSize+","+Math.round(o)]||o),t&&(i.width=Math.abs(o*Math.sin(d))+Math.abs(e*Math.cos(d)),i.height=Math.abs(o*Math.cos(d))+Math.abs(e*Math.sin(d)))),p&&0<i.height){for(;250<c.length;)delete l[c.shift()];l[p]||c.push(p),l[p]=i}}return i},show:function(e){return this.attr({visibility:e?"inherit":"visible"})},hide:function(e){return e?this.attr({y:-9999}):this.attr({visibility:"hidden"}),this},fadeOut:function(e){var t=this;t.animate({opacity:0}
1,{duration:e||150,complete:function(){t.attr({y:-9999})}})},add:function(e){var t=this.renderer,i=this.element;if(e&&(this.parentGroup=e),this.parentInverted=e&&e.inverted,void 0!==this.textStr&&t.buildText(this),this.added=!0,!e||e.handleZ||this.zIndex)var n=this.zIndexSetter();return n||(e?e.element:t.box).appendChild(i),this.onAdd&&this.onAdd(),this},safeRemoveChild:function(e){var t=e.parentNode;t&&t.removeChild(e)},destroy:function(){var i=this,e=i.element||{},t=i.renderer,n=t.isSVG&&"SPAN"===e.nodeName&&i.parentGroup,o=e.ownerSVGElement,r=i.clipPath;if(e.onclick=e.onmouseout=e.onmouseover=e.onmousemove=e.point=null,T(i),r&&o&&([].forEach.call(o.querySelectorAll("[clip-path],[CLIP-PATH]"),function(e){-1<e.getAttribute("clip-path").indexOf(r.element.id)&&e.removeAttribute("clip-path")}),i.clipPath=r.destroy()),i.stops){for(o=0;o<i.stops.length;o++)i.stops[o]=i.stops[o].destroy();i.stops=null}for(i.safeRemoveChild(e),t.styledMode||i.destroyShadows();n&&n.div&&0===n.div.childNodes.length;)e=n.parentGroup,i.safeRemoveChild(n.div),delete n.div,n=e;i.alignTo&&u(t.alignedObjects,i),C(i,function(e,t){i[t]&&i[t].parentGroup===i&&i[t].destroy&&i[t].destroy(),delete i[t]})},shadow:function(e,t,i){var n,o=[],r=this.element;if(e){if(!this.shadows){var a=D(e.width,3),s=(e.opacity||.15)/a,l=this.parentInverted?"(-1,-1)":"("+D(e.offsetX,1)+", "+D(e.offsetY,1)+")";for(n=1;n<=a;n++){var c=r.cloneNode(0),u=2*a+1-2*n;P(c,{stroke:e.color||"#000000","stroke-opacity":s*n,"stroke-width":u,transform:"translate"+l,fill:"none"}),c.setAttribute("class",(c.getAttribute("class")||"")+" highcharts-shadow"),i&&(P(c,"height",Math.max(P(c,"height")-u,0)),c.cutHeight=u),t?t.element.appendChild(c):r.parentNode&&r.parentNode.insertBefore(c,r),o.push(c)}this.shadows=o}}else this.destroyShadows();return this},destroyShadows:function(){(this.shadows||[]).forEach(function(e){this.safeRemoveChild(e)},this),this.shadows=void 0},xGetter:function(e){return"circle"===this.element.nodeName&&("x"===e?e="cx":"y"===e&&(e="cy")),this._defaultGetter(e)},_defaultGetter:function(e){return e=D(this[e+"Value"],this[e],this.element?this.element.getAttribute(e):null,0),/^[\-0-9\.]+$/.test(e)&&(e=parseFloat(e)),e},dSetter:function(e,t,i){e&&e.join&&(e=e.join(" ")),/(NaN| {2}|^$)/.test(e)&&(e="M 0 0"),this[t]!==e&&(i.setAttribute(t,e),this[t]=e)},dashstyleSetter:function(e){var t,i=this["stroke-width"];if("inherit"===i&&(i=1),e=e&&e.toLowerCase()){for(t=(e=e.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",")).length;t--;)e[t]=M(e[t])*i;e=e.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",e)}},alignSetter:function(e){var t={left:"start",center:"middle",right:"end"};t[e]&&(this.alignValue=e,this.element.setAttribute("text-anchor",t[e]))},opacitySetter:function(e,t,i){this[t]=e,i.setAttribute(t,e)},titleSetter:function(e){var t=this.element.getElementsByTagName("title")[0];t||(t=E.createElementNS(this.SVG_NS,"title"),this.element.appendChild(t)),t.firstChild&&t.removeChild(t.firstChild),t.appendChild(E.createTextNode(String(D(e,"")).replace(/<[^>]*>/g,"").replace(/&lt;/g,"<").replace(/&gt;/g,">")))},textSetter:function(e){e!==this.textStr&&(delete this.bBox,delete this.textPxLength,this.textStr=e,this.added&&this.renderer.buildText(this))},setTextPath:function(e,t){var i=this.element,n={textAnchor:"text-anchor"},o=!1,r=this.textPathWrapper,a=!r,s=(t=N(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},t)).attributes;if(e&&t&&t.enabled){this.options&&this.options.padding&&(s.dx=-this.options.padding),r||(this.textPathWrapper=r=this.renderer.createElement("textPath"),o=!0);var l=r.element;if((t=e.element.getAttribute("id"))||e.element.setAttribute("id",t=v.uniqueKey()),a)for(e=i.getElementsByTagName("tspan");e.length;)e[0].setAttribute("y",0),l.appendChild(e[0]);o&&r.add({element:this.text?this.text.element:i}),l.setAttributeNS("http://www.w3.org/1999/xlink","href",this.renderer.url+"#"+t),I(s.dy)&&(l.parentNode.setAttribute("dy",s.dy),delete s.dy),I(s.dx)&&(l.parentNode.setAttribute("dx",s.dx),delete s.dx),C(s,function(e,t){l.setAttribute(n[t]||t,e)}),i.removeAttribute("transform"),this.removeTextOutline.call(r,[].slice.call(i.getElementsByTagName("tspan"))),this.text&&!this.renderer.styledMode&&this.attr({fill:"none","stroke-width":0}),this.applyTextOutline=this.updateTransform=p}else r&&(delete this.updateTransform,delete this.applyTextOutline,this.destroyTextPath(i,e));return this},destroyTextPath:function(e,t){var i;for(t.element.setAttribute("id",""),i=this.textPathWrapper.element.childNodes;i.length;)e.firstChild.appendChild(i[0]);e.firstChild.removeChild(this.textPathWrapper.element),delete t.textPathWrapper},fillSetter:function(e,t,i){"string"==typeof e?i.setAttribute(t,e):e&&this.complexColor(e,t,i)},visibilitySetter:function(e,t,i){"inherit"===e?i.removeAttribute(t):this[t]!==e&&i.setAttribute(t,e),this[t]=e},zIndexSetter:function(e,t){var i=this.renderer,n=this.parentGroup,o=(n||i).element||i.box,r=this.element,a=!1;i=o===i.box;var s,l=this.added;if(I(e)?(r.setAttribute("data-z-index",e),e=+e,this[t]===e&&(l=!1)):I(this[t])&&r.removeAttribute("data-z-index"),this[t]=e,l){for((e=this.zIndex)&&n&&(n.handleZ=!0),s=(t=o.childNodes).length-1;0<=s&&!a;s--){l=(n=t[s]).getAttribute("data-z-index");var c=!I(l);n!==r&&(e<0&&c&&!i&&!s?(o.insertBefore(r,t[s]),a=!0):(M(l)<=e||c&&(!I(e)||0<=e))&&(o.insertBefore(r,t[s+1]||null),a=!0))}a||(o.insertBefore(r,t[i?3:0]||null),a=!0)}return a},_defaultSetter:function(e,t,i){i.setAttribute(t,e)}}),G.prototype.yGetter=G.prototype.xGetter,G.prototype.translateXSetter=G.prototype.translateYSetter=G.prototype.rotationSetter=G.prototype.verticalAlignSetter=G.prototype.rotationOriginXSetter=G.prototype.rotationOriginYSetter=G.prototype.scaleXSetter=G.prototype.scaleYSetter=G.prototype.matrixSetter=function(e,t){this[t]=e,this.doTransform=!0},G.prototype["stroke-widthSetter"]=G.prototype.strokeSetter=function(e,t,i){this[t]=e,this.stroke&&this["stroke-width"]?(G.prototype.fillSetter.call(this,this.stroke,"stroke",i),i.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===t&&0===e&&this.hasStroke?(i.removeAttribute("stroke"),this.hasStroke=!1):this.renderer.styledMode&&this["stroke-width"]&&(i.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0)},e=v.SVGRenderer=function(){this.init.apply(this,arguments)},H(e.prototype,{Element:G,SVG_NS:L,init:function(e,t,i,n,o,r,a){var s,l=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"});a||l.css(this.getStyle(n)),n=l.element,e.appendChild(n),P(e,"dir","ltr"),-1===e.innerHTML.indexOf("xmlns")&&P(n,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=n,this.boxWrapper=l,this.alignedObjects=[],this.url=(c||h)&&E.getElementsByTagName("base").length?w.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20"):"",this.createElement("desc").add().element.appendChild(E.createTextNode("Created with Highcharts 7.1.3")),this.defs=this.createElement("defs").add(),this.allowHTML=r,this.forExport=o,this.styledMode=a,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(t,i,!1),c&&e.getBoundingClientRect&&((t=function(){A(e,{left
1:0,top:0}),s=e.getBoundingClientRect(),A(e,{left:Math.ceil(s.left)-s.left+"px",top:Math.ceil(s.top)-s.top+"px"})})(),this.unSubPixelFix=y(w,"resize",t))},definition:function(e){var a=this;return function n(e,o){var r;return t(e).forEach(function(e){var t=a.createElement(e.tagName),i={};C(e,function(e,t){"tagName"!==t&&"children"!==t&&"textContent"!==t&&(i[t]=e)}),t.attr(i),t.add(o||a.defs),e.textContent&&t.element.appendChild(E.createTextNode(e.textContent)),n(e.children||[],t),r=t}),r}(e)},getStyle:function(e){return this.style=H({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},e)},setStyle:function(e){this.boxWrapper.css(this.getStyle(e))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var e=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),n(this.gradients||{}),this.gradients=null,e&&(this.defs=e.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null},createElement:function(e){var t=new this.Element;return t.init(this,e),t},draw:p,getRadialAttr:function(e,t){return{cx:e[0]-e[2]/2+t.cx*e[2],cy:e[1]-e[2]/2+t.cy*e[2],r:t.r*e[2]}},truncate:function(i,n,o,r,a,e,s){var t,l,c=this,u=i.rotation,d=r?1:0,h=(o||r).length,p=h,f=[],m=function(e){n.firstChild&&n.removeChild(n.firstChild),e&&n.appendChild(E.createTextNode(e))},g=function(e,t){if(void 0===f[t=t||e])if(n.getSubStringLength)try{f[t]=a+n.getSubStringLength(0,r?t+1:t)}catch(e){}else c.getSpanWidth&&(m(s(o||r,e)),f[t]=a+c.getSpanWidth(i,n));return f[t]};i.rotation=0;var v=g(n.textContent.length);if(l=e<a+v){for(;d<=h;)p=Math.ceil((d+h)/2),r&&(t=s(r,p)),v=g(p,t&&t.length-1),d===h?d=h+1:e<v?h=p-1:d=p;0===h?m(""):o&&h===o.length-1||m(t||s(o||r,p))}return r&&r.splice(0,p),i.actualWidth=v,i.rotation=u,l},escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},buildText:function(d){var h,p,f=d.element,m=this,g=m.forExport,e=D(d.textStr,"").toString(),t=-1!==e.indexOf("<"),i=f.childNodes,v=P(f,"x"),n=d.styles,b=d.textWidth,o=n&&n.lineHeight,r=n&&n.textOutline,y=n&&"ellipsis"===n.textOverflow,x=n&&"nowrap"===n.whiteSpace,T=n&&n.fontSize,a=i.length;n=b&&!d.added&&this.box;var S=function(e){var t;return m.styledMode||(t=/(px|em)$/.test(e&&e.style.fontSize)?e.style.fontSize:T||m.style.fontSize||12),o?M(o):m.fontMetrics(t,e.getAttribute("style")?e:f).h},w=function(i,n){return C(m.escapes,function(e,t){n&&-1!==n.indexOf(e)||(i=i.toString().replace(new RegExp(e,"g"),t))}),i},k=function(e,t){var i=e.indexOf("<");if(-1!==(i=(e=e.substring(i,e.indexOf(">")-i)).indexOf(t+"="))&&(i=i+t.length+1,'"'===(t=e.charAt(i))||"'"===t))return(e=e.substring(i+1)).substring(0,e.indexOf(t))},s=/<br.*?>/g,l=[e,y,x,o,r,T,b].join();if(l!==d.textCache){for(d.textCache=l;a--;)f.removeChild(i[a]);t||r||y||b||-1!==e.indexOf(" ")&&(!x||s.test(e))?(n&&n.appendChild(f),(e=(e=t?(e=m.styledMode?e.replace(/<(b|strong)>/g,'<span class="highcharts-strong">').replace(/<(i|em)>/g,'<span class="highcharts-emphasized">'):e.replace(/<(b|strong)>/g,'<span style="font-weight:bold">').replace(/<(i|em)>/g,'<span style="font-style:italic">')).replace(/<a/g,"<span").replace(/<\/(b|strong|i|em|a)>/g,"</span>").split(s):[e]).filter(function(e){return""!==e})).forEach(function(e,s){var l=0,c=0,u=(e=e.replace(/^\s+|\s+$/g,"").replace(/<span/g,"|||<span").replace(/<\/span>/g,"</span>|||")).split("|||");u.forEach(function(e){if(""!==e||1===u.length){var t,i,n={},o=E.createElementNS(m.SVG_NS,"tspan");if((t=k(e,"class"))&&P(o,"class",t),(t=k(e,"style"))&&(t=t.replace(/(;| |^)color([ :])/,"$1fill$2"),P(o,"style",t)),(i=k(e,"href"))&&!g&&(P(o,"onclick",'location.href="'+i+'"'),P(o,"class","highcharts-anchor"),m.styledMode||A(o,{cursor:"pointer"}))," "!==(e=w(e.replace(/<[a-zA-Z\/](.|\n)*?>/g,"")||" "))){if(o.appendChild(E.createTextNode(e)),l?n.dx=0:s&&null!==v&&(n.x=v),P(o,n),f.appendChild(o),!l&&p&&(!O&&g&&A(o,{display:"block"}),P(o,"dy",S(o))),b){var r=e.replace(/([^\^])-/g,"$1- ").split(" ");n=!x&&(1<u.length||s||1<r.length),i=0;var a=S(o);if(y)h=m.truncate(d,o,e,void 0,0,Math.max(0,b-parseInt(T||12,10)),function(e,t){return e.substring(0,t)+"…"});else if(n)for(;r.length;)r.length&&!x&&0<i&&(o=E.createElementNS(L,"tspan"),P(o,{dy:a,x:v}),t&&P(o,"style",t),o.appendChild(E.createTextNode(r.join(" ").replace(/- /g,"-"))),f.appendChild(o)),m.truncate(d,o,null,r,0===i?c:0,b,function(e,t){return r.slice(0,t).join(" ").replace(/- /g,"-")}),c=d.actualWidth,i++}l++}}}),p=p||f.childNodes.length}),y&&h&&d.attr("title",w(d.textStr,["&lt;","&gt;"])),n&&n.removeChild(f),r&&d.applyTextOutline&&d.applyTextOutline(r)):f.a
1ppendChild(E.createTextNode(w(e)))}},getContrast:function(e){return(e=i(e).rgba)[0]*=1,e[1]*=1.2,e[2]*=.5,459<e[0]+e[1]+e[2]?"#000000":"#FFFFFF"},button:function(e,t,i,n,o,r,a,s,l,c){var u=this.label(e,t,i,l,null,null,c,null,"button"),d=0,h=this.styledMode;if(u.attr(N({padding:8,r:2},o)),!h){var p=(o=N({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontWeight:"normal"}},o)).style;delete o.style;var f=(r=N(o,{fill:"#e6e6e6"},r)).style;delete r.style;var m=(a=N(o,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},a)).style;delete a.style;var g=(s=N(o,{style:{color:"#cccccc"}},s)).style;delete s.style}return y(u.element,x?"mouseover":"mouseenter",function(){3!==d&&u.setState(1)}),y(u.element,x?"mouseout":"mouseleave",function(){3!==d&&u.setState(d)}),u.setState=function(e){1!==e&&(u.state=d=e),u.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][e||0]),h||u.attr([o,r,a,s][e||0]).css([p,f,m,g][e||0])},h||u.attr(o).css(H({cursor:"default"},p)),u.on("click",function(e){3!==d&&n.call(u,e)})},crispLine:function(e,t){return e[1]===e[4]&&(e[1]=e[4]=Math.round(e[1])-t%2/2),e[2]===e[5]&&(e[2]=e[5]=Math.round(e[2])+t%2/2),e},path:function(e){var t=this.styledMode?{}:{fill:"none"};return b(e)?t.d=e:s(e)&&H(t,e),this.createElement("path").attr(t)},circle:function(e,t,i){return e=s(e)?e:void 0===e?{}:{x:e,y:t,r:i},(t=this.createElement("circle")).xSetter=t.ySetter=function(e,t,i){i.setAttribute("c"+t,e)},t.attr(e)},arc:function(e,t,i,n,o,r){return s(e)?(t=(n=e).y,i=n.r,e=n.x):n={innerR:n,start:o,end:r},(e=this.symbol("arc",e,t,i,i,n)).r=i,e},rect:function(e,t,i,n,o,r){o=s(e)?e.r:o;var a=this.createElement("rect");return e=s(e)?e:void 0===e?{}:{x:e,y:t,width:Math.max(i,0),height:Math.max(n,0)},this.styledMode||(void 0!==r&&(e.strokeWidth=r,e=a.crisp(e)),e.fill="none"),o&&(e.r=o),a.rSetter=function(e,t,i){a.r=e,P(i,{rx:e,ry:e})},a.rGetter=function(){return a.r},a.attr(e)},setSize:function(e,t,i){var n=this.alignedObjects,o=n.length;for(this.width=e,this.height=t,this.boxWrapper.animate({width:e,height:t},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:D(i,!0)?void 0:0});o--;)n[o].align()},g:function(e){var t=this.createElement("g");return e?t.attr({class:"highcharts-"+e}):t},image:function(t,e,i,n,o,r){var a={preserveAspectRatio:"none"},s=function(e,t){e.setAttributeNS?e.setAttributeNS("http://www.w3.org/1999/xlink","href",t):e.setAttribute("hc-svg-href",t)},l=function(e){s(c.element,t),r.call(c,e)};1<arguments.length&&H(a,{x:e,y:i,width:n,height:o});var c=this.createElement("image").attr(a);return r?(s(c.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),a=new w.Image,y(a,"load",l),a.src=t,a.complete&&l({})):s(c.element,t),c},symbol:function(e,t,i,n,o,r){var a=this,s=/^url\((.*?)\)$/,l=s.test(e),c=!l&&(this.symbols[e]?e:"circle"),u=c&&this.symbols[c],d=I(t)&&u&&u.call(this.symbols,Math.round(t),Math.round(i),n,o,r);if(u){var h=this.path(d);a.styledMode||h.attr("fill","none"),H(h,{symbolName:c,x:t,y:i,width:n,height:o}),r&&H(h,r)}else if(l){var p=e.match(s)[1];(h=this.image(p)).imgwidth=D(S[p]&&S[p].width,r&&r.width),h.imgheight=D(S[p]&&S[p].height,r&&r.height);var f=function(){h.attr({width:h.width,height:h.height})};["width","height"].forEach(function(e){h[e+"Setter"]=function(e,t){var i={},n=this["img"+t],o="width"===t?"translateX":"translateY";this[t]=e,I(n)&&(r&&"within"===r.backgroundSize&&this.width&&this.height&&(n=Math.round(n*Math.min(this.width/this.imgwidth,this.height/this.imgheight))),this.element&&this.element.setAttribute(t,n),this.alignByTranslate||(i[o]=((this[t]||0)-n)/2,this.attr(i)))}}),I(t)&&h.attr({x:t,y:i}),h.isImg=!0,I(h.imgwidth)&&I(h.imgheight)?f():(h.attr({width:0,height:0}),g("img",{onload:function(){var e=m[a.chartIndex];0===this.width&&(A(this,{position:"absolute",top:"-999em"}),E.body.appendChild(this)),S[p]={width:this.width,height:this.height},h.imgwidth=this.width,h.imgheight=this.height,h.element&&f(),this.parentNode&&this.parentNode.removeChild(this),a.imgCount--,!a.imgCount&&e&&e.onload&&e.onload()},src:p}),this.imgCount++)}return h},symbols:{circle:function(e,t,i,n){return this.arc(e+i/2,t+n/2,i/2,n/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},square:function(e,t,i,n){return["M",e,t,"L",e+i,t,e+i,t+n,e,t+n,"Z"]},triangle:function(e,t,i,n){return["M",e+i/2,t,"L",e+i,t+n,e,t+n,"Z"]},"triangle-down":function(e,t,i,n){return["M",e,t,"L",e+i,t,e+i/2,t+n,"Z"]},diamond:function(e,t,i,n){return["M",e+i/2,t,"L",e+i,t+n/2,e+i/2,t+n,e,t+n/2,"Z"]},arc:function(e,t,i,n,o){var r=o.start,a=o.r||i,s=o.r||n||i,l=o.end-.001;i=o.innerR,n=D(o.open,Math.abs(o.end-o.start-2*Math.PI)<.001);var c=Math.cos(r),u=Math.sin(r),d=Math.cos(l);return l=Math.sin(l),o=["M",e+a*c,t+s*u,"A",a,s,0,r=o.end-r-Math.PI<.001?0:1,D(o.clockwise,1),e+a*d,t+s*l],I(i)&&o.push(n?"M":"L",e+i*d,t+i*l,"A",i,i,0,r,0,e+i*c,t+i*u),o.push(n?"":"Z"),o},callout:function(e,t,i,n,o){var r=Math.min(o&&o.r||0,i,n),a=r+6,s=o&&o.anchorX;o=o&&o.anchorY;var l=["M",e+r,t,"L",e+i-r,t,"C",e+i,t,e+i,t,e+i,t+r,"L",e+i,t+n-r,"C",e+i,t+n,e+i,t+n,e+i-r,t+n,"L",e+r,t+n,"C",e,t+n,e,t+n,e,t+n-r,"L",e,t+r,"C",e,t,e,t,e+r,t];return s&&i<s?t+a<o&&o<t+n-a?l.splice(13,3,"L",e+i,o-6,e+i+6,o,e+i,o+6,e+i,t+n-r):l.splice(13,3,"L",e+i,n/2,s,o,e+i,n/2,e+i,t+n-r):s&&s<0?t+a<o&&o<t+n-a?l.splice(33,3,"L",e,o+6,e-6,o,e,o-6,e,t+r):l.splice(33,3,"L",e,n/2,s,o,e,n/2,e,t+r):o&&n<o&&e+a<s&&s<e+i-a?l.splice(23,3,"L",s+6,t+n,s,t+n+6,s-6,t+n,e+r,t+n):o&&o<0&&e+a<s&&s<e+i-a&&l.splice(3,3,"L",s-6,t,s,t-6,s+6,t,i-r,t),l}},clipRect:function(e,t,i,n){var o=v.uniqueKey()+"-",r=this.createElement("clipPath").attr({id:o}).add(this.defs);return(e=this.rect(e,t,i,n,0).add(r)).id=o,e.clipPath=r,e.count=0,e},text:function(e,t,i,n){var o={};return!n||!this.allowHTML&&this.forExport?(o.x=Math.round(t||0),i&&(o.y=Math.round(i)),I(e)&&(o.text=e),e=this.createElement("text").attr(o),n||(e.xSetter=function(e,t,i){var n,o=i.getElementsByTagName("tspan"),r=i.getAttribute(t);for(n=0;n<o.length;n++){var a=o[n];a.getAttribute(t)===r&&a.setAttribute(t,e)}i.setAttribute(t,e)}),e):this.html(e,t,i)},fontMetrics:function(e,t){return e=!this.styledMode&&/px/.test(e)||!w.getComputedStyle?e||t&&t.style&&t.style.fontSize||this.style&&this.style.fontSize:t&&G.prototype.getStyle.call(t,"font-size"),{h:t=(e=/px/.test(e)?M(e):12)<24?e+3:Math.round(1.2*e),b:Math.round(.8*t),f:e}},rotCorr:function(e,t,i){var n=e;return t&&i&&(n=Math.max(n*Math.cos(t*f),4)),{x:-e/3*Math.sin(t*f),y:n}},label:function(e,t,i,n,o,r,a,s,l){var c,u,d,h,p,f,m,g,v,b=this,y=b.styledMode,x=b.g("button"!==l&&"label"),T=x.text=b.text("",0,0,a).attr({zIndex:1}),S=0,w=3,k=0,C={},M=/^url\((.*?)\)$/.test(n),P=y||M,A=function(){return y?c.strokeWidth()%2/2:(g?parseInt(g,10):0)%2/2};l&&x.addClass("highcharts-"+l);var E=function(){var e=T.element.style,t={};u=(void 0===d||void 0===h||m)&&I(T.textStr)&&T.getBBox(),x.width=(d||u.width||0)+2*w+k,x.height=(h||u.height||0)+2*w,v=w+Math.min(b.fontMetrics(e&&e.fontSize,T).b,u?u.height:1/0),P&&(c||(x.box=c=b.symbols[n]||M?b.symbol(n):b.rect(),c.addClass(("button"===l?"":"highcharts-label-box")+(l?" highcharts-"+l+"-box":"")),c.add(x),e=A(),t.x=e,t.y=(s?-v:0)+e),t.width=Math.round(x.width),t.height=Math.round(x.height),c.attr(H(t,C)),C={})},D=function(){var e=k+w,t=s?0:v;I(d)&&u&&("center"===m||"right"===m)&&(e+={center:.5,right:1}[m]*(d-u.width)),e===T.x&&t===T.y||(T.attr("x",e),T.hasBoxWidthChanged&&(u=T.getBBox(!0),E()),void 0!==t&&T.attr("y",t)),T.x=e,T.y=t},O=function(e,t){c?c.attr(e,t):C[e]=t};x.onAdd=function(){T.add(x),x.attr({text:e||0===e?e:"",x:t,y:i}),c&&I(o)&&x.attr({anchorX:o,anchorY:r})},x.widthSetter=function(e){d=R(e)?e:null},x.heightSetter=function(e){h=e},x["text-alignSetter"]=function(e){m=e},x.paddingSetter=function(e){I(e)&&e!==w&&(w=x.padding=e,D())},x.paddingLeftSetter=function(e){I(e)&&e!==k&&(k=e,D())},x.alignSetter=function(e){(e={left:0,center:.5,right:1}[e])!==S&&(S=e,u&&x.attr({x:p}))},x.textSetter=function(e){void 0!==e&&T.attr({text:e}),E(),D()},x["stroke-widthSetter"]=function(e,t){e&&(P=!0),g=this["stroke-width"]=e,O(t,e)},y?x.rSetter=function(e,t){O(t,e)}:x.strokeSetter=x.fillSetter=x.rSetter=function(e,t){"r"!==t&&("fill"===t&&e&&(P=!0),x[t]=e),O(t,e)},x.anchorXSetter=function(e,t){o=x.anchorX=e,O(t,Math.round(e)-A()-p)},x.anchorYSetter=function(e,t){r=x.anchorY=e,O(t,e-f)},x.xSetter=function(e){x.x=e,S&&(e-=S*((d||u.width)+2*w),x["forceAnimate:x"]=!0),p=Math.round(e),x.attr("translateX",p)},x.ySetter=function(e){f=x.y=Math.round(e),x.attr("translateY",f)};var L=x.css;return a={css:function(t){if(t){var i={};t=N(t),x.textProps.forEach(function(e){void 0!==t[e]&&(i[e]=t[e],delete t[e])}),T.css(i),"width"in i&&E(),"fontSize"in i&&(E(),D())}return L.call(x,t)},getBBox:function(){return{width:u.width+2*w,height:u.height+2*w,x:u.x-w,y:u.y-w}},destroy:function(){B(x.element,"mouseenter"),B(x.element,"mouseleave"),T&&(T=T.destroy()),c&&(c=c.destroy()),G.prototype.destroy.call(x),x=b=E=D=O=null}},y||(a.shadow=function(e){return e&&(E(),c&&c.shadow(e)),x}
1),H(x,a)}}),v.Renderer=e}),e(t,"parts/Html.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],function(s,e){var p=e.defined,f=e.pInt,u=s.attr,d=s.createElement,m=s.css,h=s.extend,r=s.isFirefox,t=s.isMS,i=s.isWebKit,g=s.pick,v=s.SVGElement;e=s.SVGRenderer;var n=s.win;h(v.prototype,{htmlCss:function(e){var t="SPAN"===this.element.tagName&&e&&"width"in e,i=g(t&&e.width,void 0);if(t){delete e.width,this.textWidth=i;var n=!0}return e&&"ellipsis"===e.textOverflow&&(e.whiteSpace="nowrap",e.overflow="hidden"),this.styles=h(this.styles,e),m(this.element,e),n&&this.htmlUpdateTransform(),this},htmlGetBBox:function(){var e=this.element;return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var t=this.renderer,i=this.element,n=this.translateX||0,o=this.translateY||0,e=this.x||0,r=this.y||0,a=this.textAlign||"left",s={left:0,center:.5,right:1}[a],l=this.styles,c=l&&l.whiteSpace;if(m(i,{marginLeft:n,marginTop:o}),!t.styledMode&&this.shadows&&this.shadows.forEach(function(e){m(e,{marginLeft:n+1,marginTop:o+1})}),this.inverted&&[].forEach.call(i.childNodes,function(e){t.invertChild(e,i)}),"SPAN"===i.tagName){l=this.rotation;var u,d=this.textWidth&&f(this.textWidth),h=[l,a,i.innerHTML,this.textWidth,this.textAlign].join();(u=d!==this.oldTextWidth)&&!(u=d>this.oldTextWidth)&&((u=this.textPxLength)||(m(i,{width:"",whiteSpace:c||"nowrap"}),u=i.offsetWidth),u=d<u),u&&(/[ \-]/.test(i.textContent||i.innerText)||"ellipsis"===i.style.textOverflow)?(m(i,{width:d+"px",display:"block",whiteSpace:c||"normal"}),this.oldTextWidth=d,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1,h!==this.cTT&&(c=t.fontMetrics(i.style.fontSize,i).b,!p(l)||l===(this.oldRotation||0)&&a===this.oldAlign||this.setSpanRotation(l,s,c),this.getSpanCorrection(!p(l)&&this.textPxLength||i.offsetWidth,c,s,l,a)),m(i,{left:e+(this.xCorr||0)+"px",top:r+(this.yCorr||0)+"px"}),this.cTT=h,this.oldRotation=l,this.oldAlign=a}}else this.alignOnAdd=!0},setSpanRotation:function(e,t,i){var n={},o=this.renderer.getTransformKey();n[o]=n.transform="rotate("+e+"deg)",n[o+(r?"Origin":"-origin")]=n.transformOrigin=100*t+"% "+i+"px",m(this.element,n)},getSpanCorrection:function(e,t,i){this.xCorr=-e*i,this.yCorr=-t}}),h(e.prototype,{getTransformKey:function(){return t&&!/Edge/.test(n.navigator.userAgent)?"-ms-transform":i?"-webkit-transform":r?"MozTransform":n.opera?"-o-transform":""},html:function(e,t,i){var l=this.createElement("span"),n=l.element,o=l.renderer,r=o.isSVG,c=function(r,a){["opacity","visibility"].forEach(function(o){r[o+"Setter"]=function(e,t,i){var n=r.div?r.div.style:a;v.prototype[o+"Setter"].call(this,e,t,i),n&&(n[t]=e)}}),r.addedSetters=!0},a=s.charts[o.chartIndex];return a=a&&a.styledMode,l.textSetter=function(e){e!==n.innerHTML&&(delete this.bBox,delete this.oldTextWidth),this.textStr=e,n.innerHTML=g(e,""),l.doTransform=!0},r&&c(l,l.element.style),l.xSetter=l.ySetter=l.alignSetter=l.rotationSetter=function(e,t){"align"===t&&(t="textAlign"),l[t]=e,l.doTransform=!0},l.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},l.attr({text:e,x:Math.round(t),y:Math.round(i)}).css({position:"absolute"}),a||l.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),n.style.whiteSpace="nowrap",l.css=l.htmlCss,r&&(l.add=function(e){var r=o.box.parentNode,a=[];if(this.parentGroup=e){var s=e.div;if(!s){for(;e;)a.push(e),e=e.parentGroup;a.reverse().forEach(function(i){function e(e,t){i[t]=e,"translateX"===t?o.left=e+"px":o.top=e+"px",i.doTransform=!0}var t=u(i.element,"class");t&&(t={className:t});var n,o=(s=i.div=i.div||d("div",t,{position:"absolute",left:(i.translateX||0)+"px",top:(i.translateY||0)+"px",display:i.display,opacity:i.opacity,pointerEvents:i.styles&&i.styles.pointerEvents},s||r)).style;h(i,{classSetter:(n=s,function(e){this.element.setAttribute("class",e),n.className=e}),on:function(){return a[0].div&&l.on.apply({element:a[0].div},arguments),i},translateXSetter:e,translateYSetter:e}),i.addedSetters||c(i)})}}else s=r;return s.appendChild(n),l.added=!0,l.alignOnAdd&&l.htmlUpdateTransform(),l}),l}})}),e(t,"parts/Time.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],function(f,e){var m=e.defined,t=e.isObject,g=e.objectEach,i=e.splat,v=f.extend,n=f.merge,b=f.pick,y=f.timeUnits,r=f.win;f.Time=function(e){this.update(e,!1)},f.Time.prototype={defaultOptions:{},update:function(e){var t=b(e&&e.useUTC,!0),o=this;this.options=e=n(!0,this.options||{},e),this.Date=e.Date||r.Date||Date,this.timezoneOffset=(this.useUTC=t)&&e.timezoneOffset,this.getTimezoneOffset=this.timezoneOffsetFunction(),(this.variableTimezone=!(t&&!e.getTimezoneOffset&&!e.timezone))||this.timezoneOffset?(this.get=function(e,t){var i=t.getTime(),n=i-o.getTimezoneOffset(t);return t.setTime(n),e=t["getUTC"+e](),t.setTime(i),e},this.set=function(e,t,i){if("Milliseconds"===e||"Seconds"===e||"Minutes"===e&&0==t.getTimezoneOffset()%60)t["set"+e](i);else{var n=o.getTimezoneOffset(t);n=t.getTime()-n,t.setTime(n),t["setUTC"+e](i),e=o.getTimezoneOffset(t),n=t.getTime()+e,t.setTime(n)}}):this.set=t?(this.get=function(e,t){return t["getUTC"+e]()},function(e,t,i){return t["setUTC"+e](i)}):(this.get=function(e,t){return t["get"+e]()},function(e,t,i){return t["set"+e](i)})},makeTime:function(e,t,i,n,o,r){if(this.useUTC){var a=this.Date.UTC.apply(0,arguments),s=this.getTimezoneOffset(a);a+=s;var l=this.getTimezoneOffset(a);s!==l?a+=l-s:s-36e5!==this.getTimezoneOffset(a-36e5)||f.isSafari||(a-=36e5)}else a=new this.Date(e,t,b(i,1),b(n,0),b(o,0),b(r,0)).getTime();return a},timezoneOffsetFunction:function(){var e=this,t=this.options,i=r.moment;if(!this.useUTC)return function(e){return 6e4*new Date(e).getTimezoneOffset()};if(t.timezone){if(i)return function(e){return 6e4*-i.tz(e,t.timezone).utcOffset()};f.error(25)}return this.useUTC&&t.getTimezoneOffset?function(e){return 6e4*t.getTimezoneOffset(e)}:function(){return 6e4*(e.timezoneOffset||0)}},dateFormat:function(i,n,e){if(!m(n)||isNaN(n))return f.defaultOptions.lang.invali
1dDate||"";i=f.pick(i,"%Y-%m-%d %H:%M:%S");var o=this,t=new this.Date(n),r=this.get("Hours",t),a=this.get("Day",t),s=this.get("Date",t),l=this.get("Month",t),c=this.get("FullYear",t),u=f.defaultOptions.lang,d=u.weekdays,h=u.shortWeekdays,p=f.pad;return t=f.extend({a:h?h[a]:d[a].substr(0,3),A:d[a],d:p(s),e:p(s,2," "),w:a,b:u.shortMonths[l],B:u.months[l],m:p(l+1),o:l+1,y:c.toString().substr(2,2),Y:c,H:p(r),k:r,I:p(r%12||12),l:r%12||12,M:p(o.get("Minutes",t)),p:r<12?"AM":"PM",P:r<12?"am":"pm",S:p(t.getSeconds()),L:p(Math.floor(n%1e3),3)},f.dateFormats),g(t,function(e,t){for(;-1!==i.indexOf("%"+t);)i=i.replace("%"+t,"function"==typeof e?e.call(o,n):e)}),e?i.substr(0,1).toUpperCase()+i.substr(1):i},resolveDTLFormat:function(e){return t(e,!0)?e:{main:(e=i(e))[0],from:e[1],to:e[2]}},getTimeTicks:function(e,t,i,n){var o,r=this,a=[],s={},l=new r.Date(t),c=e.unitRange,u=e.count||1;if(n=b(n,1),m(t)){if(r.set("Milliseconds",l,c>=y.second?0:u*Math.floor(r.get("Milliseconds",l)/u)),c>=y.second&&r.set("Seconds",l,c>=y.minute?0:u*Math.floor(r.get("Seconds",l)/u)),c>=y.minute&&r.set("Minutes",l,c>=y.hour?0:u*Math.floor(r.get("Minutes",l)/u)),c>=y.hour&&r.set("Hours",l,c>=y.day?0:u*Math.floor(r.get("Hours",l)/u)),c>=y.day&&r.set("Date",l,c>=y.month?1:Math.max(1,u*Math.floor(r.get("Date",l)/u))),c>=y.month){r.set("Month",l,c>=y.year?0:u*Math.floor(r.get("Month",l)/u));var d=r.get("FullYear",l)}c>=y.year&&r.set("FullYear",l,d-d%u),c===y.week&&(d=r.get("Day",l),r.set("Date",l,r.get("Date",l)-d+n+(d<n?-7:0))),d=r.get("FullYear",l),n=r.get("Month",l);var h=r.get("Date",l),p=r.get("Hours",l);for(t=l.getTime(),r.variableTimezone&&(o=i-t>4*y.month||r.getTimezoneOffset(t)!==r.getTimezoneOffset(i)),t=l.getTime(),l=1;t<i;)a.push(t),t=c===y.year?r.makeTime(d+l*u,0):c===y.month?r.makeTime(d,n+l*u):!o||c!==y.day&&c!==y.week?o&&c===y.hour&&1<u?r.makeTime(d,n,h,p+l*u):t+c*u:r.makeTime(d,n,h+l*u*(c===y.day?1:7)),l++;a.push(t),c<=y.hour&&a.length<1e4&&a.forEach(function(e){0==e%18e5&&"000000000"===r.dateFormat("%H%M%S%L",e)&&(s[e]="day")})}return a.info=v(e,{higherRanks:s,totalRange:c*u}),a}}}),e(t,"parts/Options.js",[t["parts/Globals.js"]],function(n){var e=n.color,t=n.merge;n.defaultOptions={colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" "),symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:n.Time.prototype.defaultOptions,chart:{styledMode:!1,borderRadius:0,colorCount:10,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"},title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",alignColumns:!0,layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:n.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",padding:8,snap:n.isTouchDevice?25:10,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:e("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,style:{color:"#333333",cursor:"default",fontSize:"12px",pointerEvents:"none",whiteSpace:"nowrap"}},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}},n.setOptions=function(e){return n.defaultOptions=t(!0,n.defaultOptions,e),n.time.update(t(n.defaultOptions.global,n.defaultOptions.time),!1),n.defaultOptions},n.getOptions=function(){return n.defaultOptions},n.defaultPlotOptions=n.defaultOptions.plotOptions,n.time=new n.Time(t(n.defaultOptions.global,n.defaultOptions.time)),n.dateFormat=function(e,t,i){return n.time.dateFormat(e,t,i)}}),e(t,"parts/Tick.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],function(g,e){var v=e.defined,h=e.isNumber,b=g.correctFloat,t=g.destroyObjectProperties,y=g.fireEvent,x=g.merge,T=g.pick,S=g.deg2rad;g.Tick=function(e,t,i,n,o){this.axis=e,this.pos=t,this.type=i||"",this.isNewLabel=this.isNew=!0,this.parameters=o||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,i||n||this.addLabel()},g.Tick.prototype={addLabel:function(){var e=this,t=e.axis,i=t.options,n=t.chart,o=t.categories,r
1=t.names,a=e.pos,s=T(e.options&&e.options.labels,i.labels),l=t.tickPositions,c=a===l[0],u=a===l[l.length-1];o=this.parameters.category||(o?T(o[a],r[a],a):a);var d,h,p=e.label;if(l=l.info,t.isDatetimeAxis&&l)var f=n.time.resolveDTLFormat(i.dateTimeLabelFormats[!i.grid&&l.higherRanks[a]||l.unitName]),m=f.main;e.isFirst=c,e.isLast=u,e.formatCtx={axis:t,chart:n,isFirst:c,isLast:u,dateTimeLabelFormat:m,tickPositionInfo:l,value:t.isLog?b(t.lin2log(o)):o,pos:a},i=t.labelFormatter.call(e.formatCtx,this.formatCtx),(h=f&&f.list)&&(e.shortenLabel=function(){for(d=0;d<h.length;d++)if(p.attr({text:t.labelFormatter.call(g.extend(e.formatCtx,{dateTimeLabelFormat:h[d]}))}),p.getBBox().width<t.getSlotWidth(e)-2*T(s.padding,5))return;p.attr({text:""})}),v(p)?p&&p.textStr!==i&&(!p.textWidth||s.style&&s.style.width||p.styles.width||p.css({width:null}),p.attr({text:i}),p.textPxLength=p.getBBox().width):((e.label=p=v(i)&&s.enabled?n.renderer.text(i,0,0,s.useHTML).add(t.labelGroup):null)&&(n.styledMode||p.css(x(s.style)),p.textPxLength=p.getBBox().width),e.rotation=0)},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},handleOverflow:function(e){var t=this.axis,i=t.options.labels,n=e.x,o=t.chart.chartWidth,r=t.chart.spacing,a=T(t.labelLeft,Math.min(t.pos,r[3]));r=T(t.labelRight,Math.max(t.isRadial?0:t.pos+t.len,o-r[1]));var s,l=this.label,c=this.rotation,u={left:0,center:.5,right:1}[t.labelAlign||l.attr("align")],d=l.getBBox().width,h=t.getSlotWidth(this),p=h,f=1,m={};c||"justify"!==T(i.overflow,"justify")?c<0&&n-u*d<a?s=Math.round(n/Math.cos(c*S)-a):0<c&&r<n+u*d&&(s=Math.round((o-n)/Math.cos(c*S))):(o=n+(1-u)*d,n-u*d<a?p=e.x+p*(1-u)-a:r<o&&(p=r-e.x+p*u,f=-1),(p=Math.min(h,p))<h&&"center"===t.labelAlign&&(e.x+=f*(h-p-u*(h-Math.min(d,p)))),(p<d||t.autoRotation&&(l.styles||{}).width)&&(s=p)),s&&(this.shortenLabel?this.shortenLabel():(m.width=Math.floor(s),(i.style||{}).textOverflow||(m.textOverflow="ellipsis"),l.css(m)))},getPosition:function(e,t,i,n){var o=this.axis,r=o.chart,a=n&&r.oldChartHeight||r.chartHeight;return(e={x:e?g.correctFloat(o.translate(t+i,null,null,n)+o.transB):o.left+o.offset+(o.opposite?(n&&r.oldChartWidth||r.chartWidth)-o.right-o.left:0),y:e?a-o.bottom+o.offset-(o.opposite?o.height:0):g.correctFloat(a-o.translate(t+i,null,null,n)-o.transB)}).y=Math.max(Math.min(e.y,1e5),-1e5),y(this,"afterGetPosition",{pos:e}),e},getLabelPosition:function(e,t,i,n,o,r,a,s){var l=this.axis,c=l.transA,u=l.reversed,d=l.staggerLines,h=l.tickRotCorr||{x:0,y:0},p=o.y,f=n||l.reserveSpaceDefault?0:-l.labelOffset*("center"===l.labelAlign?.5:1),m={};return v(p)||(p=0===l.side?i.rotation?-8:-i.getBBox().height:2===l.side?h.y+8:Math.cos(i.rotation*S)*(h.y-i.getBBox(!1,0).height/2)),e=e+o.x+f+h.x-(r&&n?r*c*(u?-1:1):0),t=t+p-(r&&!n?r*c*(u?1:-1):0),d&&(i=a/(s||1)%d,l.opposite&&(i=d-i-1),t+=l.labelOffset/d*i),m.x=e,m.y=Math.round(t),y(this,"afterGetLabelPosition",{pos:m,tickmarkOffset:r,index:a}),m},getMarkPath:function(e,t,i,n,o,r){return r.crispLine(["M",e,t,"L",e+(o?0:-i),t+(o?i:0)],n)},renderGridLine:function(e,t,i){var n=this.axis,o=n.options,r=this.gridLine,a={},s=this.pos,l=this.type,c=T(this.tickmarkOffset,n.tickmarkOffset),u=n.chart.renderer,d=l?l+"Grid":"grid",h=o[d+"LineWidth"],p=o[d+"LineColor"];o=o[d+"LineDashStyle"],r||(n.chart.styledMode||(a.stroke=p,a["stroke-width"]=h,o&&(a.dashstyle=o)),l||(a.zIndex=1),e&&(t=0),this.gridLine=r=u.path().attr(a).addClass("highcharts-"+(l?l+"-":"")+"grid-line").add(n.gridGroup)),r&&(i=n.getPlotLinePath({value:s+c,lineWidth:r.strokeWidth()*i,force:"pass",old:e}))&&r[e||this.isNew?"attr":"animate"]({d:i,opacity:t})},renderMark:function(e,t,i){var n=this.axis,o=n.options,r=n.chart.renderer,a=this.type,s=a?a+"Tick":"tick",l=n.tickSize(s),c=this.mark,u=!c,d=e.x;e=e.y;var h=T(o[s+"Width"],!a&&n.isXAxis?1:0);o=o[s+"Color"],l&&(n.opposite&&(l[0]=-l[0]),u&&(this.mark=c=r.path().addClass("highcharts-"+(a?a+"-":"")+"tick").add(n.axisGroup),n.chart.styledMode||c.attr({stroke:o,"stroke-width":h})),c[u?"attr":"animate"]({d:this.getMarkPath(d,e,l[0],c.strokeWidth()*i,n.horiz,r),opacity:t}))},renderLabel:function(e,t,i,n){var o=this.axis,r=o.horiz,a=o.options,s=this.label,l=a.labels,c=l.step;o=T(this.tickmarkOffset,o.tickmarkOffset);var u=!0,d=e.x;e=e.y,s&&h(d)&&(s.xy=e=this.getLabelPosition(d,e,s,r,l,o,n,c),this.isFirst&&!this.isLast&&!T(a.showFirstLabel,1)||this.isLast&&!this.isFirst&&!T(a.showLastLabel,1)?u=!1:!r||l.step||l.rotation||t||0===i||this.handleOverflow(e),c&&n%c&&(u=!1),u&&h(e.y)?(e.opacity=i,s[this.isNewLabel?"attr":"animate"](e),this.isNewLabel=!1):(s.attr("y",-9999),this.isNewLabel=!0))},render:function(e,t,i){var n=this.axis,o=n.horiz,r=this.pos,a=T(this.tickmarkOffset,n.tickmarkOffset);a=(r=this.getPosition(o,r,a,t)).x;var s=r.y;n=o&&a===n.pos+n.len||!o&&s===n.pos?-1:1,i=T(i,1),this.isActive=!0,this.renderGridLine(t,i,n),this.renderMark(r,i,n),this.renderLabel(r,t,i,e),this.isNew=!1,g.fireEvent(this,"afterRe
1nder")},destroy:function(){t(this,this.axis)}}}),e(t,"parts/Axis.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],function(y,e){var T=e.defined,r=e.isArray,x=e.isNumber,g=e.isString,S=e.objectEach,a=e.splat,s=y.addEvent,b=y.animObject,u=y.arrayMax,d=y.arrayMin,l=y.color,w=y.correctFloat,h=y.defaultOptions,p=y.deg2rad,c=y.destroyObjectProperties,f=y.extend,k=y.fireEvent,m=y.format,C=y.getMagnitude,v=y.merge,M=y.normalizeTickInterval,P=y.pick,A=y.removeEvent,E=y.seriesTypes,D=y.syncTimeout,O=y.Tick;return e=function(){this.init.apply(this,arguments)},y.extend(e.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,labels:{enabled:!0,indentation:10,x:0,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,minorTickLength:2,minorTickPosition:"outside",minPadding:.01,showEmpty:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",style:{color:"#666666"}},type:"linear",minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",tickColor:"#ccd6eb"},defaultYAxisOptions:{endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){return y.numberFormat(this.total,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},init:function(e,t){var i=t.isX,n=this;n.chart=e,n.horiz=e.inverted&&!n.isZAxis?!i:i,n.isXAxis=i,n.coll=n.coll||(i?"xAxis":"yAxis"),k(this,"init",{userOptions:t}),n.opposite=t.opposite,n.side=t.side||(n.horiz?n.opposite?0:2:n.opposite?1:3),n.setOptions(t);var o=this.options,r=o.type;n.labelFormatter=o.labels.formatter||n.defaultLabelFormatter,n.userOptions=t,n.minPixelPadding=0,n.reversed=o.reversed,n.visible=!1!==o.visible,n.zoomEnabled=!1!==o.zoomEnabled,n.hasNames="category"===r||!0===o.categories,n.categories=o.categories||n.hasNames,n.names||(n.names=[],n.names.keys={}),n.plotLinesAndBandsGroups={},n.isLog="logarithmic"===r,n.isDatetimeAxis="datetime"===r,n.positiveValuesOnly=n.isLog&&!n.allowNegativeLog,n.isLinked=T(o.linkedTo),n.ticks={},n.labelEdge=[],n.minorTicks={},n.plotLinesAndBands=[],n.alternateBands={},n.len=0,n.minRange=n.userMinRange=o.minRange||o.maxZoom,n.range=o.range,n.offset=o.offset||0,n.stacks={},n.oldStacks={},n.stacksTouched=0,n.max=null,n.min=null,n.crosshair=P(o.crosshair,a(e.options.tooltip.crosshairs)[i?0:1],!1),t=n.options.events,-1===e.axes.indexOf(n)&&(i?e.axes.splice(e.xAxis.length,0,n):e.axes.push(n),e[n.coll].push(n)),n.series=n.series||[],e.inverted&&!n.isZAxis&&i&&void 0===n.reversed&&(n.reversed=!0),S(t,function(e,t){y.isFunction(e)&&s(n,t,e)}),n.lin2log=o.linearToLogConverter||n.lin2log,n.isLog&&(n.val2lin=n.log2lin,n.lin2val=n.lin2log),k(this,"afterInit")},setOptions:function(e){this.options=v(this.defaultOptions,"yAxis"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],v(h[this.coll],e)),k(this,"afterSetOptions",{userOptions:e})},defaultLabelFormatter:function(){var e=this.axis,t=this.value,i=e.chart.time,n=e.categories,o=this.dateTimeLabelFormat,r=h.lang,a=r.numericSymbols;r=r.numericSymbolMagnitude||1e3;var s=a&&a.length,l=e.options.labels.format;if(e=e.isLog?Math.abs(t):e.tickInterval,l)var c=m(l,this,i);else if(n)c=t;else if(o)c=i.dateFormat(o,t);else if(s&&1e3<=e)for(;s--&&void 0===c;)(i=Math.pow(r,s+1))<=e&&0==10*t%i&&null!==a[s]&&0!==t&&(c=y.numberFormat(t/i,-1)+a[s]);return void 0===c&&(c=1e4<=Math.abs(t)?y.numberFormat(t,-1):y.numberFormat(t,-1,void 0,"")),c},getSeriesExtremes:function(){var r,a=this,s=a.chart;k(this,"getSeriesExtremes",null,function(){a.hasVisibleSeries=!1,a.dataMin=a.dataMax=a.threshold=null,a.softThreshold=!a.isXAxis,a.buildStacks&&a.buildStacks(),a.series.forEac
1h(function(e){if(e.visible||!s.options.chart.ignoreHiddenSeries){var t=e.options,i=t.threshold;if(a.hasVisibleSeries=!0,a.positiveValuesOnly&&i<=0&&(i=null),a.isXAxis){if((t=e.xData).length){var n=(r=e.getXExtremes(t)).min,o=r.max;x(n)||n instanceof Date||(t=t.filter(x),n=(r=e.getXExtremes(t)).min,o=r.max),t.length&&(a.dataMin=Math.min(P(a.dataMin,n),n),a.dataMax=Math.max(P(a.dataMax,o),o))}}else e.getExtremes(),o=e.dataMax,n=e.dataMin,T(n)&&T(o)&&(a.dataMin=Math.min(P(a.dataMin,n),n),a.dataMax=Math.max(P(a.dataMax,o),o)),T(i)&&(a.threshold=i),(!t.softThreshold||a.positiveValuesOnly)&&(a.softThreshold=!1)}})}),k(this,"afterGetSeriesExtremes")},translate:function(e,t,i,n,o,r){var a=this.linkedParent||this,s=1,l=0,c=n?a.oldTransA:a.transA;n=n?a.oldMin:a.min;var u=a.minPixelPadding;return o=(a.isOrdinal||a.isBroken||a.isLog&&o)&&a.lin2val,c||(c=a.transA),i&&(s*=-1,l=a.len),a.reversed&&(l-=(s*=-1)*(a.sector||a.len)),t?(e=(e*s+l-u)/c+n,o&&(e=a.lin2val(e))):(o&&(e=a.val2lin(e)),e=x(n)?s*(e-n)*c+l+s*u+(x(r)?c*r:0):void 0),e},toPixels:function(e,t){return this.translate(e,!1,!this.horiz,null,!0)+(t?0:this.pos)},toValue:function(e,t){return this.translate(e-(t?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(e){var t,i,n,o,r,a=this,s=a.chart,l=a.left,c=a.top,u=e.old,d=e.value,h=e.translatedValue,p=e.lineWidth,f=e.force,m=u&&s.oldChartHeight||s.chartHeight,g=u&&s.oldChartWidth||s.chartWidth,v=a.transB,b=function(e,t,i){return("pass"!==f&&e<t||i<e)&&(f?e=Math.min(Math.max(t,e),i):r=!0),e};return e={value:d,lineWidth:p,old:u,force:f,acrossPanes:e.acrossPanes,translatedValue:h},k(this,"getPlotLinePath",e,function(e){h=P(h,a.translate(d,null,null,u)),h=Math.min(Math.max(-1e5,h),1e5),t=n=Math.round(h+v),i=o=Math.round(m-h-v),x(h)?a.horiz?(i=c,o=m-a.bottom,t=n=b(t,l,l+a.width)):(t=l,n=g-a.right,i=o=b(i,c,c+a.height)):f=!(r=!0),e.path=r&&!f?null:s.renderer.crispLine(["M",t,i,"L",n,o],p||1)}),e.path},getLinearTickPositions:function(e,t,i){var n=w(Math.floor(t/e)*e);i=w(Math.ceil(i/e)*e);var o,r=[];if(w(n+e)===n&&(o=20),this.single)return[t];for(t=n;t<=i&&(r.push(t),(t=w(t+e,o))!==a);)var a=t;return r},getMinorTickInterval:function(){var e=this.options;return!0===e.minorTicks?P(e.minorTickInterval,"auto"):!1===e.minorTicks?null:e.minorTickInterval},getMinorTickPositions:function(){var n=this,e=n.options,t=n.tickPositions,o=n.minorTickInterval,r=[],i=n.pointRangePadding||0,a=n.min-i,s=(i=n.max+i)-a;if(s&&s/o<n.len/3)if(n.isLog)this.paddedTicks.forEach(function(e,t,i){t&&r.push.apply(r,n.getLogTickPositions(o,i[t-1],i[t],!0))});else if(n.isDatetimeAxis&&"auto"===this.getMinorTickInterval())r=r.concat(n.getTimeTicks(n.normalizeTimeTickInterval(o),a,i,e.startOfWeek));else for(e=a+(t[0]-a)%o;e<=i&&e!==r[0];e+=o)r.push(e);return 0!==r.length&&n.trimTicks(r),r},adjustForMinRange:function(){var t,i,n,o,e=this.options,r=this.min,a=this.max;if(this.isXAxis&&void 0===this.minRange&&!this.isLog&&(T(e.min)||T(e.max)?this.minRange=null:(this.series.forEach(function(e){for(o=e.xData,i=e.xIncrement?1:o.length-1;0<i;i--)n=o[i]-o[i-1],(void 0===t||n<t)&&(t=n)}),this.minRange=Math.min(5*t,this.dataMax-this.dataMin))),a-r<this.minRange){var s=this.dataMax-this.dataMin>=this.minRange,l=this.minRange,c=(l-a+r)/2;c=[r-c,P(e.min,r-c)],s&&(c[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),a=[(r=u(c))+l,P(e.max,r+l)],s&&(a[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),(a=d(a))-r<l&&(c[0]=a-l,c[1]=P(e.min,a-l),r=u(c))}this.min=r,this.max=a},getClosest:function(){var n;return this.categories?n=1:this.series.forEach(function(e){var t=e.closestPointRange,i=e.visible||!e.chart.options.chart.ignoreHiddenSeries;!e.noSharedTooltip&&T(t)&&i&&(n=T(n)?Math.min(n,t):t)}),n},nameToX:function(e){var t=r(this.categories),i=t?this.categories:this.names,n=e.options.x;if(e.series.requireSorting=!1,T(n)||(n=!1===this.options.uniqueNames?e.series.autoIncrement():t?i.indexOf(e.name):P(i.keys[e.name],-1)),-1===n){if(!t)var o=i.length}else o=n;return void 0!==o&&(this.names[o]=e.name,this.names.keys[e.name]=o),o},updateNames:function(){var o=this,t=this.names;
10<t.length&&(Object.keys(t.keys).forEach(function(e){delete t.keys[e]}),t.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(n){n.xIncrement=null,n.points&&!n.isDirtyData||(o.max=Math.max(o.max,n.xData.length-1),n.processData(),n.generatePoints()),n.data.forEach(function(e,t){if(e&&e.options&&void 0!==e.name){var i=o.nameToX(e);void 0!==i&&i!==e.x&&(e.x=i,n.xData[t]=i)}})}))},setAxisTranslation:function(e){var n=this,t=n.max-n.min,o=n.axisPointRange||0,r=0,a=0,i=n.linkedParent,s=!!n.categories,l=n.transA,c=n.isXAxis;if(c||s||o){var u=n.getClosest();i?(r=i.minPointOffset,a=i.pointRangePadding):n.series.forEach(function(e){var t=s?1:c?P(e.options.pointRange,u,0):n.axisPointRange||0,i=e.options.pointPlacement;o=Math.max(o,t),n.single&&!s||(e=E.xrange&&e instanceof E.xrange?!c:c,r=Math.max(r,e&&g(i)?0:t/2),a=Math.max(a,e&&"on"===i?0:t))}),i=n.ordinalSlope&&u?n.ordinalSlope/u:1,n.minPointOffset=r*=i,n.pointRangePadding=a*=i,n.pointRange=Math.min(o,t),c&&(n.closestPointRange=u)}e&&(n.oldTransA=l),n.translationSlope=n.transA=l=n.staticScale||n.len/(t+a||1),n.transB=n.horiz?n.left:n.bottom,n.minPixelPadding=l*r,k(this,"afterSetAxisTranslation")},minFromRange:function(){return this.max-this.range},setTickInterval:function(e){var t=this,i=t.chart,n=t.options,o=t.isLog,r=t.isDatetimeAxis,a=t.isXAxis,s=t.isLinked,l=n.maxPadding,c=n.minPadding,u=n.tickInterval,d=n.tickPixelInterval,h=t.categories,p=x(t.threshold)?t.threshold:null,f=t.softThreshold;r||h||s||this.getTickAmount();var m=P(t.userMin,n.min),g=P(t.userMax,n.max);if(s){t.linkedParent=i[t.coll][n.linkedTo];var v=t.linkedParent.getExtremes();t.min=P(v.min,v.dataMin),t.max=P(v.max,v.dataMax),n.type!==t.linkedParent.options.type&&y.error(11,1,i)}else{if(!f&&T(p))if(t.dataMin>=p)v=p,c=0;else if(t.dataMax<=p){var b=p;l=0}t.min=P(m,v,t.dataMin),t.max=P(g,b,t.dataMax)}o&&(t.positiveValuesOnly&&!e&&Math.min(t.min,P(t.dataMin,t.min))<=0&&y.error(10,1,i),t.min=w(t.log2lin(t.min),15),t.max=w(t.log2lin(t.max),15)),t.range&&T(t.max)&&(t.userMin=t.min=m=Math.max(t.dataMin,t.minFromRange()),t.userMax=g=t.max,t.range=null),k(t,"foundExtremes"),t.beforePadding&&t.beforePadding(),t.adjustForMinRange(),!(h||t.axisPointRange||t.usePercentage||s)&&T(t.min)&&T(t.max)&&(i=t.max-t.min)&&(!T(m)&&c&&(t.min-=i*c),!T(g)&&l&&(t.max+=i*l)),x(n.softMin)&&!x(t.userMin)&&n.softMin<t.min&&(t.min=m=n.softMin),x(n.softMax)&&!x(t.userMax)&&n.softMax>t.max&&(t.max=g=n.softMax),x(n.floor)&&(t.min=Math.min(Math.max(t.min,n.floor),Number.MAX_VALUE)),x(n.ceiling)&&(t.max=Math.max(Math.min(t.max,n.ceiling),P(t.userMax,-Number.MAX_VALUE))),f&&T(t.dataMin)&&(p=p||0,!T(m)&&t.min<p&&t.dataMin>=p?t.min=t.options.minRange?Math.min(p,t.max-t.minRange):p:!T(g)&&t.max>p&&t.dataMax<=p&&(t.max=t.options.minRange?Math.max(p,t.min+t.minRange):p)),t.tickInterval=t.min===t.max||void 0===t.min||void 0===t.max?1:s&&!u&&d===t.linkedParent.options.tickPixelInterval?u=t.linkedParent.tickInterval:P(u,this.tickAmount?(t.max-t.min)/Math.max(this.tickAmount-1,1):void 0,h?1:(t.max-t.min)*d/Math.max(t.len,d)),a&&!e&&t.series.forEach(function(e){e.processData(t.min!==t.oldMin||t.max!==t.oldMax)}),t.setAxisTranslation(!0),t.beforeSetTickPositions&&t.beforeSetTickPositions(),t.postProcessTickInterval&&(t.tickInterval=t.postProcessTickInterval(t.tickInterval)),t.pointRange&&!u&&(t.tickInterval=Math.max(t.pointRange,t.tickInterval)),e=P(n.minTickInterval,t.isDatetimeAxis&&t.closestPointRange),!u&&t.tickInterval<e&&(t.tickInterval=e),r||o||u||(t.tickInterval=M(t.tickInterval,null,C(t.tickInterval),P(n.allowDecimals,!(.5<t.tickInterval&&t.tickInterval<5&&1e3<t.max&&t.max<9999)),!!this.tickAmount)),this.tickAmount||(t.tickInterval=t.unsquish()),this.setTickPositions()},setTickPositions:function(){var e=this.options,t=e.tickPositions,i=this.getMinorTickInterval(),n=e.tickPositioner,o=e.startOnTick,r=e.endOnTick;this.tickmarkOffset=this.categories&&"between"===e.tickmarkPlacement&&1===this.tickInterval?.5:0,this.minorTickInterval="auto"===i&&this.tickInterval?this.tickInterval/5:i,this.single=this.min===this.max&&T(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==e.allowDecimals),this.tickPositions=i=t&&t.slice(),!i&&(!this.ordinalPositions&&(this.max-this.min)/this.tickInterval>Math.max(2*this.len,200)?(i=[this.min,this.max],y.error(19,!1,this.chart)):i=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,e.units),this.min,this.max,e.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),i.length>this.len&&((i=[i[0],i.pop()])[0]===i[1]&&(i.length=1)),this.tickPositions=i,n&&(n=n.apply(this,[this.min,this.max])))&&
1(this.tickPositions=i=n),this.paddedTicks=i.slice(0),this.trimTicks(i,o,r),this.isLinked||(this.single&&i.length<2&&!this.categories&&(this.min-=.5,this.max+=.5),t||n||this.adjustTickAmount()),k(this,"afterSetTickPositions")},trimTicks:function(e,t,i){var n=e[0],o=e[e.length-1],r=this.minPointOffset||0;if(k(this,"trimTicks"),!this.isLinked){if(t&&-1/0!==n)this.min=n;else for(;this.min-r>e[0];)e.shift();if(i)this.max=o;else for(;this.max+r<e[e.length-1];)e.pop();0===e.length&&T(n)&&!this.options.tickPositions&&e.push((o+n)/2)}},alignToOthers:function(){var i,n={},e=this.options;return!1===this.chart.options.chart.alignTicks||!1===e.alignTicks||!1===e.startOnTick||!1===e.endOnTick||this.isLog||this.chart[this.coll].forEach(function(e){var t=e.options;t=[e.horiz?t.left:t.top,t.width,t.height,t.pane].join(),e.series.length&&(n[t]?i=!0:n[t]=1)}),i},getTickAmount:function(){var e=this.options,t=e.tickAmount,i=e.tickPixelInterval;!T(e.tickInterval)&&this.len<i&&!this.isRadial&&!this.isLog&&e.startOnTick&&e.endOnTick&&(t=2),!t&&this.alignToOthers()&&(t=Math.ceil(this.len/i)+1),t<4&&(this.finalTickAmt=t,t=5),this.tickAmount=t},adjustTickAmount:function(){var e,t=this.options,i=this.tickInterval,n=this.tickPositions,o=this.tickAmount,r=this.finalTickAmt,a=n&&n.length,s=P(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(a<o){for(e=this.min;n.length<o;)n.length%2||e===s?n.push(w(n[n.length-1]+i)):n.unshift(w(n[0]-i));this.transA*=(a-1)/(o-1),this.min=t.startOnTick?n[0]:Math.min(this.min,n[0]),this.max=t.endOnTick?n[n.length-1]:Math.max(this.max,n[n.length-1])}else o<a&&(this.tickInterval*=2,this.setTickPositions());if(T(r)){for(i=t=n.length;i--;)(3===r&&1==i%2||r<=2&&0<i&&i<t-1)&&n.splice(i,1);this.finalTickAmt=void 0}}},setScale:function(){var e,t=this.series.some(function(e){return e.isDirtyData||e.isDirty||e.xAxis.isDirty});this.oldMin=this.min,this.oldMax=this.max,this.oldAxisLength=this.len,this.setAxisSize(),(e=this.len!==this.oldAxisLength)||t||this.isLinked||this.forceRedraw||this.userMin!==this.oldUserMin||this.userMax!==this.oldUserMax||this.alignToOthers()?(this.resetStacks&&this.resetStacks(),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.oldUserMin=this.userMin,this.oldUserMax=this.userMax,this.isDirty||(this.isDirty=e||this.min!==this.oldMin||this.max!==this.oldMax)):this.cleanStacks&&this.cleanStacks(),k(this,"afterSetScale")},setExtremes:function(e,t,i,n,o){var r=this,a=r.chart;i=P(i,!0),r.series.forEach(function(e){delete e.kdTree}),o=f(o,{min:e,max:t}),k(r,"setExtremes",o,function(){r.userMin=e,r.userMax=t,r.eventArgs=o,i&&a.redraw(n)})},zoom:function(e,t){var n=this.dataMin,o=this.dataMax,i=this.options,r=Math.min(n,P(i.min,n)),a=Math.max(o,P(i.max,o));return k(this,"zoom",e={newMin:e,newMax:t},function(e){var t=e.newMin,i=e.newMax;t===this.min&&i===this.max||(this.allowZoomOutside||(T(n)&&(t<r&&(t=r),a<t&&(t=a)),T(o)&&(i<r&&(i=r),a<i&&(i=a))),this.displayBtn=void 0!==t||void 0!==i,this.setExtremes(t,i,!1,void 0,{trigger:"zoom"})),e.zoomed=!0}
1),e.zoomed},setAxisSize:function(){var e=this.chart,t=this.options,i=t.offsets||[0,0,0,0],n=this.horiz,o=this.width=Math.round(y.relativeLength(P(t.width,e.plotWidth-i[3]+i[1]),e.plotWidth)),r=this.height=Math.round(y.relativeLength(P(t.height,e.plotHeight-i[0]+i[2]),e.plotHeight)),a=this.top=Math.round(y.relativeLength(P(t.top,e.plotTop+i[0]),e.plotHeight,e.plotTop));t=this.left=Math.round(y.relativeLength(P(t.left,e.plotLeft+i[3]),e.plotWidth,e.plotLeft)),this.bottom=e.chartHeight-r-a,this.right=e.chartWidth-o-t,this.len=Math.max(n?o:r,0),this.pos=n?t:a},getExtremes:function(){var e=this.isLog;return{min:e?w(this.lin2log(this.min)):this.min,max:e?w(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(e){var t=this.isLog,i=t?this.lin2log(this.min):this.min;return t=t?this.lin2log(this.max):this.max,null===e||-1/0===e?e=i:1/0===e?e=t:e<i?e=i:t<e&&(e=t),this.translate(e,0,1,0,1)},autoLabelAlign:function(e){var t=(P(e,0)-90*this.side+720)%360;return k(this,"autoLabelAlign",e={align:"center"},function(e){15<t&&t<165?e.align="right":195<t&&t<345&&(e.align="left")}),e.align},tickSize:function(e){var t=this.options,i=t[e+"Length"],n=P(t[e+"Width"],"tick"===e&&this.isXAxis&&!this.categories?1:0);if(n&&i){"inside"===t[e+"Position"]&&(i=-i);var o=[i,n]}return k(this,"afterTickSize",e={tickSize:o}),e.tickSize},labelMetrics:function(){var e=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[e]&&this.ticks[e].label)},unsquish:function(){var i,n,e,t=this.options.labels,o=this.horiz,r=this.tickInterval,a=r,s=this.len/(((this.categories?1:0)+this.max-this.min)/r),l=t.rotation,c=this.labelMetrics(),u=Number.MAX_VALUE,d=this.max-this.min,h=function(e){var t=e/(s||1);return t=1<t?Math.ceil(t):1,d<t*r&&1/0!==e&&1/0!==s&&(t=Math.ceil(d/r)),w(t*r)};return o?(e=!t.staggerLines&&!t.step&&(T(l)?[l]:s<P(t.autoRotationLimit,80)&&t.autoRotation))&&e.forEach(function(e){if(e===l||e&&-90<=e&&e<=90){var t=(n=h(Math.abs(c.h/Math.sin(p*e))))+Math.abs(e/360);t<u&&(u=t,i=e,a=n)}}):t.step||(a=h(c.h)),this.autoRotation=e,this.labelRotation=P(i,l),a},getSlotWidth:function(e){var t=this.chart,i=this.horiz,n=this.options.labels,o=Math.max(this.tickPositions.length-(this.categories?0:1),1),r=t.margin[3];return e&&e.slotWidth||i&&(n.step||0)<2&&!n.rotation&&(this.staggerLines||1)*this.len/o||!i&&(n.style&&parseInt(n.style.width,10)||r&&r-t.spacing[3]||.33*t.chartWidth)},renderUnsquish:function(){var e=this.chart,t=e.renderer,i=this.tickPositions,o=this.ticks,n=this.options.labels,r=n&&n.style||{},a=this.horiz,s=this.getSlotWidth(),l=Math.max(1,Math.round(s-2*(n.padding||5))),c={},u=this.labelMetrics(),d=n.style&&n.style.textOverflow,h=0;if(g(n.rotation)||(c.rotation=n.rotation||0),i.forEach(function(e){(e=o[e])&&e.label&&e.label.textPxLength>h&&(h=e.label.textPxLength)}),this.maxLabelLength=h,this.autoRotation)l<h&&h>u.h?c.rotation=this.labelRotation:this.labelRotation=0;else if(s){var p=l;if(!d){var f="clip";for(l=i.length;!a&&l--;){var m=i[l];(m=o[m].label)&&(m.styles&&"ellipsis"===m.styles.textOverflow?m.css({textOverflow:"clip"}):m.textPxLength>s&&m.css({width:s+"px"}),m.getBBox().height>this.len/i.length-(u.h-u.f)&&(m.specificTextOverflow="ellipsis"))}}}c.rotation&&(p=h>.5*e.chartHeight?.33*e.chartHeight:h,d||(f="ellipsis")),(this.labelAlign=n.align||this.autoLabelAlign(this.labelRotation))&&(c.align=this.labelAlign),i.forEac
1h(function(e){var t=(e=o[e])&&e.label,i=r.width,n={};t&&(t.attr(c),e.shortenLabel?e.shortenLabel():p&&!i&&"nowrap"!==r.whiteSpace&&(p<t.textPxLength||"SPAN"===t.element.tagName)?(n.width=p,d||(n.textOverflow=t.specificTextOverflow||f),t.css(n)):t.styles&&t.styles.width&&!n.width&&!i&&t.css({width:null}),delete t.specificTextOverflow,e.rotation=c.rotation)},this),this.tickRotCorr=t.rotCorr(u.b,this.labelRotation||0,0!==this.side)},hasData:function(){return this.series.some(function(e){return e.hasData()})||this.options.showEmpty&&T(this.min)&&T(this.max)},addTitle:function(e){var t,i=this.chart.renderer,n=this.horiz,o=this.opposite,r=this.options.title,a=this.chart.styledMode;this.axisTitle||((t=r.textAlign)||(t=(n?{low:"left",middle:"center",high:"right"}:{low:o?"right":"left",middle:"center",high:o?"left":"right"})[r.align]),this.axisTitle=i.text(r.text,0,0,r.useHTML).attr({zIndex:7,rotation:r.rotation||0,align:t}).addClass("highcharts-axis-title"),a||this.axisTitle.css(v(r.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),a||r.style.width||this.isRadial||this.axisTitle.css({width:this.len}),this.axisTitle[e?"show":"hide"](e)},generateTick:function(e){var t=this.ticks;t[e]?t[e].addLabel():t[e]=new O(this,e)},getOffset:function(){var e,i=this,t=i.chart,n=t.renderer,o=i.options,r=i.tickPositions,a=i.ticks,s=i.horiz,l=i.side,c=t.inverted&&!i.isZAxis?[1,0,3,2][l]:l,u=0,d=0,h=o.title,p=o.labels,f=0,m=t.axisOffset;t=t.clipOffset;var g=[-1,1,1,-1][l],v=o.className,b=i.axisParent,y=i.hasData();if(i.showAxis=e=y||P(o.showEmpty,!0),i.staggerLines=i.horiz&&p.staggerLines,i.axisGroup||(i.gridGroup=n.g("grid").attr({zIndex:o.gridZIndex||1}).addClass("highcharts-"+this.coll.toLowerCase()+"-grid "+(v||"")).add(b),i.axisGroup=n.g("axis").attr({zIndex:o.zIndex||2}).addClass("highcharts-"+this.coll.toLowerCase()+" "+(v||"")).add(b),i.labelGroup=n.g("axis-labels").attr({zIndex:p.zIndex||7}).addClass("highcharts-"+i.coll.toLowerCase()+"-labels "+(v||"")).add(b)),y||i.isLinked?(r.forEach(function(e,t){i.generateTick(e,t)}),i.renderUnsquish(),i.reserveSpaceDefault=0===l||2===l||{1:"left",3:"right"}[l]===i.labelAlign,P(p.reserveSpace,"center"===i.labelAlign||null,i.reserveSpaceDefault)&&r.forEach(function(e){f=Math.max(a[e].getLabelSize(),f)}),i.staggerLines&&(f*=i.staggerLines),i.labelOffset=f*(i.opposite?-1:1)):S(a,function(e,t){e.destroy(),delete a[t]}),h&&h.text&&!1!==h.enabled&&(i.addTitle(e),e&&!1!==h.reserveSpace)){i.titleOffset=u=i.axisTitle.getBBox()[s?"height":"width"];var x=h.offset;d=T(x)?0:P(h.margin,s?5:10)}i.renderLine(),i.offset=g*P(o.offset,m[l]?m[l]+(o.margin||0):0),i.tickRotCorr=i.tickRotCorr||{x:0,y:0},n=0===l?-i.labelMetrics().h:2===l?i.tickRotCorr.y:0,d=Math.abs(f)+d,f&&(d=d-n+g*(s?P(p.y,i.tickRotCorr.y+8*g):p.x)),i.axisTitleMargin=P(x,d),i.getMaxLabelDimensions&&(i.maxLabelDimensions=i.getMaxLabelDimensions(a,r)),s=this.tickSize("tick"),m[l]=Math.max(m[l],i.axisTitleMargin+u+g*i.offset,d,r&&r.length&&s?s[0]+g*i.offset:0),o=o.offset?0:2*Math.floor(i.axisLine.strokeWidth()/2),t[c]=Math.max(t[c],o),k(this,"afterGetOffset")},getLinePath:function(e){var t=this.chart,i=this.opposite,n=this.offset,o=this.horiz,r=this.left+(i?this.width:0)+n;return n=t.chartHeight-this.bottom-(i?this.height:0)+n,i&&(e*=-1),t.renderer.crispLine(["M",o?this.left:r,o?n:this.top,"L",o?t.chartWidth-this.right:r,o?n:t.chartHeight-this.bottom],e)},renderLine:function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))},getTitlePosition:function(){var e=this.horiz,t=this.left,i=this.top,n=this.len,o=this.options.title,r=e?t:i,a=this.opposite,s=this.offset,l=o.x||0,c=o.y||0,u=this.axisTitle,d=this.chart.renderer.fontMetrics(o.style&&o.style.fontSize,u);return u=Math.max(u.getBBox(null,0).height-d.h-1,0),n={low:r+(e?0:n),middle:r+n/2,high:r+(e?n:0)}[o.align],t=(e?i+this.height:t)+(e?1:-1)*(a?-1:1)*this.axisTitleMargin+[-u,u,d.f,-u][this.side],e={x:e?n+l:t+(a?this.width:0)+s+l,y:e?t+c-(a?this.height:0)+s:n+c},k(this,"afterGetTitlePosition",{titlePosition:e}),e},renderMinorTick:function(e){var t=this.chart.hasRendered&&x(this.oldMin),i=this.minorTicks;i[e]||(i[e]=new O(this,e,"minor")),t&&i[e].isNew&&i[e].render(null,!0),i[e].render(null,!1,1)},renderTick:function(e,t){var i=this.isLinked,n=this.ticks,o=this.chart.hasRendered&&x(this.oldMin);(!i||e>=this.min&&e<=this.max)&&(n[e]||(n[e]=new O(this,e)),o&&n[e].isNew&&n[e].render(t,!0,-1),n[e].render(t))},render:function(){var i,n,o=this,r=o.chart,e=o.options,a=o.isLog,t=o.isLinked,s=o.tickPositions,l=o.axisTitle,c=o.ticks,u=o.minorTicks,d=o.alternateBands,h=e.stackLabels,p=e.alternateGridColor,f=o.tickmarkOffset,m=o.axisLine,g=o.showAxis,v=b(r.renderer.globalAnimation);
1o.labelEdge.length=0,o.overlap=!1,[c,u,d].forEach(function(e){S(e,function(e){e.isActive=!1})}),(o.hasData()||t)&&(o.minorTickInterval&&!o.categories&&o.getMinorTickPositions().forEach(function(e){o.renderMinorTick(e)}),s.length&&(s.forEach(function(e,t){o.renderTick(e,t)}),f&&(0===o.min||o.single)&&(c[-1]||(c[-1]=new O(o,-1,null,!0)),c[-1].render(-1))),p&&s.forEach(function(e,t){n=void 0!==s[t+1]?s[t+1]+f:o.max-f,0==t%2&&e<o.max&&n<=o.max+(r.polar?-f:f)&&(d[e]||(d[e]=new y.PlotLineOrBand(o)),i=e+f,d[e].options={from:a?o.lin2log(i):i,to:a?o.lin2log(n):n,color:p},d[e].render(),d[e].isActive=!0)}),o._addedPlotLB||((e.plotLines||[]).concat(e.plotBands||[]).forEach(function(e){o.addPlotBandOrLine(e)}),o._addedPlotLB=!0)),[c,u,d].forEach(function(e){var t,i=[],n=v.duration;S(e,function(e,t){e.isActive||(e.render(t,!1,0),e.isActive=!1,i.push(t))}),D(function(){for(t=i.length;t--;)e[i[t]]&&!e[i[t]].isActive&&(e[i[t]].destroy(),delete e[i[t]])},e!==d&&r.hasRendered&&n?n:0)}),m&&(m[m.isPlaced?"animate":"attr"]({d:this.getLinePath(m.strokeWidth())}),m.isPlaced=!0,m[g?"show":"hide"](g)),l&&g&&(e=o.getTitlePosition(),x(e.y)?(l[l.isNew?"attr":"animate"](e),l.isNew=!1):(l.attr("y",-9999),l.isNew=!0)),h&&h.enabled&&o.renderStackTotals(),o.isDirty=!1,k(this,"afterRender")},redraw:function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(e){e.render()})),this.series.forEach(function(e){e.isDirty=!0})},keepProps:"extKey hcEvents names series userMax userMin".split(" "),destroy:function(e){var t,i=this,n=i.stacks,o=i.plotLinesAndBands;if(k(this,"destroy",{keepEvents:e}),e||A(i),S(n,function(e,t){c(e),n[t]=null}),[i.ticks,i.minorTicks,i.alternateBands].forEach(function(e){c(e)}),o)for(e=o.length;e--;)o[e].destroy();for(t in"stackTotalGroup axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(e){i[e]&&(i[e]=i[e].destroy())}),i.plotLinesAndBandsGroups)i.plotLinesAndBandsGroups[t]=i.plotLinesAndBandsGroups[t].destroy();S(i,function(e,t){-1===i.keepProps.indexOf(t)&&delete i[t]})},drawCrosshair:function(e,t){var i,n,o=this.crosshair,r=P(o.snap,!0),a=this.cross;if(k(this,"drawCrosshair",{e:e,point:t}),e||(e=this.cross&&this.cross.e),this.crosshair&&!1!==(T(t)||!r)){if(r?T(t)&&(n=P(t.crosshairPos,this.isXAxis?t.plotX:this.len-t.plotY)):n=e&&(this.horiz?e.chartX-this.pos:this.len-e.chartY+this.pos),T(n)&&(i=this.getPlotLinePath({value:t&&(this.isXAxis?t.x:P(t.stackY,t.y)),translatedValue:n})||null),!T(i))return void this.hideCrosshair();r=this.categories&&!this.isRadial,a||(this.cross=a=this.chart.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(r?"category ":"thin ")+o.className).attr({zIndex:P(o.zIndex,2)}).add(),this.chart.styledMode||(a.attr({stroke:o.color||(r?l("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":P(o.width,1)}).css({"pointer-events":"none"}),o.dashStyle&&a.attr({dashstyle:o.dashStyle}))),a.show().attr({d:i}),r&&!o.width&&a.attr({"stroke-width":this.transA}),this.cross.e=e}else this.hideCrosshair();k(this,"afterDrawCrosshair",{e:e,point:t})},hideCrosshair:function(){this.cross&&this.cross.hide(),k(this,"afterHideCrosshair")}}),y.Axis=e}),e(t,"parts/DateTimeAxis.js",[t["parts/Globals.js"]],function(e){var t=e.Axis,a=e.getMagnitude,s=e.normalizeTickInterval,l=e.timeUnits;t.prototype.getTimeTicks=function(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)},t.prototype.normalizeTimeTickInterval=function(e,t){var i=t||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]];t=i[i.length-1];var n,o=l[t[0]],r=t[1];for(n=0;n<i.length&&(t=i[n],o=l[t[0]],r=t[1],!(i[n+1]&&e<=(o*r[r.length-1]+l[i[n+1][0]])/2));n++);return o===l.year&&e<5*o&&(r=[1,2,5]),{unitRange:o,count:e=s(e/o,r,"year"===t[0]?Math.max(a(e/o),1):1),unitName:t[0]}}}),e(t,"parts/LogarithmicAxis.js",[t["parts/Globals.js"]],function(e){var t=e.Axis,h=e.getMagnitude,p=e.normalizeTickInterval,f=e.pick;t.prototype.getLogTickPositions=function(e,t,i,n){var o=this.options,r=this.len,a=[];if(n||(this._minorAutoInterval=null),.5<=e)e=Math.round(e),a=this.getLinearTickPositions(e,t,i);else if(.08<=e){var s,l;for(r=Math.floor(t),o=.3<e?[1,2,4]:.15<e?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];r<i+1&&!l;r++){var c=o.length;for(s=0;s<c&&!l;s++){var u=this.log2lin(this.lin2log(r)*o[s]);t<u&&(!n||d<=i)&&void 0!==d&&a.push(d),i<d&&(l=!0);var d=u}}}else t=this.lin2log(t),i=this.lin2log(i),e=n?this.getMinorTickInterval():o.tickInterval,e=f("auto"===e?null:e,this._minorAutoInterval,o.tickPixelInterval/(n?5:1)*(i-t)/((n?r/this.tickPositions.length:r)||1)),e=p(e,null,h(e)),a=this.getLinearTickPositions(e,t,i).map(this.log2lin),n||(this._minorAutoInterval=e/5);return n||(this.tickInterval=e),a},t.prototype.log2lin=function(e){return Math.log(e)/Math.LN10},t.prototype.lin2log=function(e){return Math.pow(10,e)}}),e(t,"parts/PlotLineOrBand.js",[t["parts/Globals.js"],t["parts/Axis.js"],t["parts/Utilities.js"]],function(x,e,t){var T=t.defined,r=t.erase,S=t.objectEach,a=x.arrayMax,s=x.arrayMin,i=x.destroyObjectProperties,w=x.merge,k=x.pick;x.PlotLineOrBand=function(e,t){this.axis=e,t&&(this.options=t,this.id=t.id)},x.PlotLineOrBand.prototype={render:function(){x.fireEvent(this,"render");var i=this,e=i.axis,t=e.horiz,n=i.options,o=n.label,r=i.label,a=n.to,s=n.from,l=n.value,c=T(s)&&T(a),u=T(l),d=i.svgElem,h=!d,p=[],f=n.color,m=k(n.zIndex,0),g=n.events;
1p={class:"highcharts-plot-"+(c?"band ":"line ")+(n.className||"")};var v={},b=e.chart.renderer,y=c?"bands":"lines";if(e.isLog&&(s=e.log2lin(s),a=e.log2lin(a),l=e.log2lin(l)),e.chart.styledMode||(u?(p.stroke=f||"#999999",p["stroke-width"]=k(n.width,1),n.dashStyle&&(p.dashstyle=n.dashStyle)):c&&(p.fill=f||"#e6ebf5",n.borderWidth&&(p.stroke=n.borderColor,p["stroke-width"]=n.borderWidth))),y+="-"+(v.zIndex=m),(f=e.plotLinesAndBandsGroups[y])||(e.plotLinesAndBandsGroups[y]=f=b.g("plot-"+y).attr(v).add()),h&&(i.svgElem=d=b.path().attr(p).add(f)),u)p=e.getPlotLinePath({value:l,lineWidth:d.strokeWidth(),acrossPanes:n.acrossPanes});else{if(!c)return;p=e.getPlotBandPath(s,a,n)}return(h||!d.d)&&p&&p.length?(d.attr({d:p}),g&&S(g,function(e,t){d.on(t,function(e){g[t].apply(i,[e])})})):d&&(p?(d.show(!0),d.animate({d:p})):d.d&&(d.hide(),r&&(i.label=r=r.destroy()))),o&&(T(o.text)||T(o.formatter))&&p&&p.length&&0<e.width&&0<e.height&&!p.isFlat?(o=w({align:t&&c&&"center",x:t?!c&&4:10,verticalAlign:!t&&c&&"middle",y:t?c?16:10:c?6:-4,rotation:t&&!c&&90},o),this.renderLabel(o,p,c,m)):r&&r.hide(),i},renderLabel:function(e,t,i,n){var o=this.label,r=this.axis.chart.renderer;o||((o={align:e.textAlign||e.align,rotation:e.rotation,class:"highcharts-plot-"+(i?"band":"line")+"-label "+(e.className||"")}).zIndex=n,n=this.getLabelText(e),this.label=o=r.text(n,0,0,e.useHTML).attr(o).add(),this.axis.chart.styledMode||o.css(e.style)),r=t.xBounds||[t[1],t[4],i?t[6]:t[1]],t=t.yBounds||[t[2],t[5],i?t[7]:t[2]],i=s(r),n=s(t),o.align(e,!1,{x:i,y:n,width:a(r)-i,height:a(t)-n}),o.show(!0)},getLabelText:function(e){return T(e.formatter)?e.formatter.call(this):e.text},destroy:function(){r(this.axis.plotLinesAndBands,this),delete this.axis,i(this)}},x.extend(e.prototype,{getPlotBandPath:function(e,t){var i=this.getPlotLinePath({value:t,force:!0,acrossPanes:this.options.acrossPanes}),n=this.getPlotLinePath({value:e,force:!0,acrossPanes:this.options.acrossPanes}),o=[],r=this.horiz,a=1;if(e=e<this.min&&t<this.min||e>this.max&&t>this.max,n&&i){if(e){var s=n.toString()===i.toString();a=0}for(e=0;e<n.length;e+=6)r&&i[e+1]===n[e+1]?(i[e+1]+=a,i[e+4]+=a):r||i[e+2]!==n[e+2]||(i[e+2]+=a,i[e+5]+=a),o.push("M",n[e+1],n[e+2],"L",n[e+4],n[e+5],i[e+4],i[e+5],i[e+1],i[e+2],"z"),o.isFlat=s}return o},addPlotBand:function(e){return this.addPlotBandOrLine(e,"plotBands")},addPlotLine:function(e){return this.addPlotBandOrLine(e,"plotLines")},addPlotBandOrLine:function(e,t){var i=new x.PlotLineOrBand(this,e).render(),n=this.userOptions;return i&&(t&&(n[t]=n[t]||[],n[t].push(e)),this.plotLinesAndBands.push(i)),i},removePlotBandOrLine:function(t){for(var e=this.plotLinesAndBands,i=this.options,n=this.userOptions,o=e.length;o--;)e[o].id===t&&e[o].destroy();[i.plotLines||[],n.plotLines||[],i.plotBands||[],n.plotBands||[]].forEach(function(e){for(o=e.length;o--;)e[o].id===t&&r(e,e[o])})},removePlotBand:function(e){this.removePlotBandOrLine(e)},removePlotLine:function(e){this.removePlotBandOrLine(e)}})}),e(t,"parts/Tooltip.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],function(v,e){var s=e.defined,c=e.isNumber,t=e.isString,d=e.splat,T=v.doc,l=v.extend,u=v.format,i=v.merge,S=v.pick,n=v.syncTimeout,h=v.timeUnits;v.Tooltip=function(){this.init.apply(this,arguments)},v.Tooltip.prototype={init:function(e,t){this.chart=e,this.options=t,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.split=t.split&&!e.inverted,this.shared=t.shared||this.split,this.outside=S(t.outside,!(!e.scrollablePixelsX&&!e.scrollablePixelsY))&&!this.split},cleanSplit:function(i){this.chart.series.forEach(function(e){var t=e&&e.tt;t&&(!t.isActive||i?e.tt=t.destroy():t.isActive=!1)})},applyFilter:function(){var e=this.chart;e.renderer.definition({tagName:"filter",id:"drop-shadow-"+e.index,opacity:.5,children:[{tagName:"feGaussianBlur",in:"SourceAlpha",stdDeviation:1},{tagName:"feOffset",dx:1,dy:1},{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",type:"linear",slope:.3}]},{tagName:"feMerge",children:[{tagName:"feMergeNode"},{tagName:"feMergeNode",in:"SourceGraphic"}]}]}),e.renderer.definition({tagName:"style",textContent:".highcharts-tooltip-"+e.index+"{filter:url(#drop-shadow-"+e.index+")}"})},getLabel:function(){var i,n=this,e=this.chart.renderer,t=this.chart.styledMode,o=this.options,r="tooltip"+(s(o.className)?" "+o.className:"");if(!this.label){if(this.outside&&(this.container=i=v.doc.createElement("div"),i.className="highcharts-tooltip-container",v.css(i,{position:"absolute",top:"1px",pointerEvents:o.style&&o.style.pointerEvents,zIndex:3}),v.doc.body.appendChild(i),this.renderer=e=new v.Renderer(i,0,0)),this.split?this.label=e.g(r):(this.label=e.label("",0,0,o.shape||"callout",null,null,o.useHTML,null,r).attr({padding:o.padding,r:o.borderRadius}),t||this.label.attr({fill:o.backgroundColor,"stroke-width":o.borderWidth}).css(o.style).shadow(o.shadow)),t&&(this.applyFilter(),this.label.addClass("highcharts-tooltip-"+this.chart.index)),this.outside){var a={x:this.label.xSetter,y:this.label.ySetter};this.label.xSetter=function(e,t){a[t].call(this.label,n.distance),i.style.left=e+"px"},this.label.ySetter=function(e,t){a[t].call(this.label,n.distance),i.style.top=e+"px"}}this.label.attr({zIndex:8}).add()}return this.label},update:function(e){this.destroy(),i(!0,this.chart.options.tooltip.userOptions,e),this.init(this.chart,i(!0,this.options,e))},destroy:function(){this.label&&(this.label=this.label.destroy()),this.split&&this.tt&&(this.cleanSplit(this.chart,!0),this.tt
1=this.tt.destroy()),this.renderer&&(this.renderer=this.renderer.destroy(),v.discardElement(this.container)),v.clearTimeout(this.hideTimer),v.clearTimeout(this.tooltipTimeout)},move:function(e,t,i,n){var o=this,r=o.now,a=!1!==o.options.animation&&!o.isHidden&&(1<Math.abs(e-r.x)||1<Math.abs(t-r.y)),s=o.followPointer||1<o.len;l(r,{x:a?(2*r.x+e)/3:e,y:a?(r.y+t)/2:t,anchorX:s?void 0:a?(2*r.anchorX+i)/3:i,anchorY:s?void 0:a?(r.anchorY+n)/2:n}),o.getLabel().attr(r),a&&(v.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){o&&o.move(e,t,i,n)},32))},hide:function(e){var t=this;v.clearTimeout(this.hideTimer),e=S(e,this.options.hideDelay,500),this.isHidden||(this.hideTimer=n(function(){t.getLabel()[e?"fadeOut":"hide"](),t.isHidden=!0},e))},getAnchor:function(e,t){var i,n,o=this.chart,r=o.pointer,a=o.inverted,s=o.plotTop,l=o.plotLeft,c=0,u=0;return e=d(e),(e=this.followPointer&&t?(void 0===t.chartX&&(t=r.normalize(t)),[t.chartX-o.plotLeft,t.chartY-s]):e[0].tooltipPos?e[0].tooltipPos:(e.forEach(function(e){i=e.series.yAxis,n=e.series.xAxis,c+=e.plotX+(!a&&n?n.left-l:0),u+=(e.plotLow?(e.plotLow+e.plotHigh)/2:e.plotY)+(!a&&i?i.top-s:0)}),c/=e.length,u/=e.length,[a?o.plotWidth-u:c,this.shared&&!a&&1<e.length&&t?t.chartY-s:a?o.plotHeight-c:u])).map(Math.round)},getPosition:function(i,n,o){var r,a=this.chart,h=this.distance,p={},f=a.inverted&&o.h||0,s=this.outside,l=s?T.documentElement.clientWidth-2*h:a.chartWidth,c=s?Math.max(T.body.scrollHeight,T.documentElement.scrollHeight,T.body.offsetHeight,T.documentElement.offsetHeight,T.documentElement.clientHeight):a.chartHeight,u=a.pointer.chartPosition,t=a.containerScaling,m=function(e){return t?e*t.scaleX:e},g=function(e){return t?e*t.scaleY:e},e=function(e){var t="x"===e;return[e,t?l:c,t?i:n].concat(s?[t?m(i):g(n),t?u.left-h+m(o.plotX+a.plotLeft):u.top-h+g(o.plotY+a.plotTop),0,t?l:c]:[t?i:n,t?o.plotX+a.plotLeft:o.plotY+a.plotTop,t?a.plotLeft:a.plotTop,t?a.plotLeft+a.plotWidth:a.plotTop+a.plotHeight])},d=e("y"),v=e("x"),b=!this.followPointer&&S(o.ttBelow,!a.inverted==!!o.negative),y=function(e){var t=d;d=v,v=t,r=e},x=function(){!1!==function(e,t,i,n,o,r,a){var s="y"===e?g(h):m(h),l=(i-n)/2,c=n<o-h,u=o+h+n<t,d=o-s-i+l;if(o=o+s-l,b&&u)p[e]=o;else if(!b&&c)p[e]=d;else if(c)p[e]=Math.min(a-n,d-f<0?d:d-f);else{if(!u)return!1;p[e]=Math.max(r,t<o+f+i?o:o+f)}}.apply(0,d)?!1!==function(e,t,i,n,o){var r;return o<h||t-h<o?r=!1:p[e]=o<i/2?1:t-n/2<o?t-n-2:o-i/2,r}.apply(0,v)||r||(y(!0),x()):r?p.x=p.y=0:(y(!0),x())};return(a.inverted||1<this.len)&&y(),x(),p},defaultFormatter:function(e){var t=this.points||d(this),i=[e.tooltipFooterHeaderFormatter(t[0])];return(i=i.concat(e.bodyFormatter(t))).push(e.tooltipFooterHeaderFormatter(t[0],!0)),i},refresh:function(e,t){var i=this.chart,n=this.options,o=e,r={},a=[],s=n.formatter||this.defaultFormatter;r=this.shared;var l=i.styledMode;if(n.enabled){v.clearTimeout(this.hideTimer),this.followPointer=d(o)[0].series.tooltipOptions.followPointer;var c=this.getAnchor(o,t);t=c[0];var u=c[1];!r||o.series&&o.series.noSharedTooltip?r=o.getLabelConfig():(i.pointer.applyInactiveState(o),o.forEach(function(e){e.setState("hover"),a.push(e.getLabelConfig())}),(r={x:o[0].category,y:o[0].y}).points=a,o=o[0]),this.len=a.length,s=s.call(r,this),r=o.series,this.distance=S(r.tooltipOptions.distance,16),!1===s?this.hide():(i=this.getLabel(),this.isHidden&&i.attr({opacity:1}).show(),this.split?this.renderSplit(s,d(e)):(n.style.width&&!l||i.css({width:this.chart.spacingBox.width}),i.attr({text:s&&s.join?s.join(""):s}),i.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-"+S(o.colorIndex,r.colorIndex)),l||i.attr({stroke:n.borderColor||o.color||r.color||"#666666"}),this.updatePosition({plotX:t,plotY:u,negative:o.negative,ttBelow:o.ttBelow,h:c[2]||0})),this.isHidden=!1),v.fireEvent(this,"refresh")}},renderSplit:function(e,a){var s,l=this,c=[],u=this.chart,d=u.renderer,h=!0,p=this.options,f=0,m=this.getLabel(),g=u.plotTop;t(e)&&(e=[!1,e]),e.slice(0,a.length+1).forEach(function(e,t){if(!1!==e&&""!==e){var i=(t=a[t-1]||{isHeader:!0,plotX:a[0].plotX,plotY:u.plotHeight}).series||l,n=i.tt,o=t.series||{},r="highcharts-color-"+S(t.colorIndex,o.colorIndex,"none");n||(n={padding:p.padding,r:p.borderRadius},u.styledMode||(n.fill=p.backgroundColor,n["stroke-width"]=p.borderWidth),i.tt=n=d.label(null,null,null,(t.isHeader?p.headerShape:p.shape)||"callout",null,null,p.useHTML).addClass("highcharts-tooltip-box "+r).attr(n).add(m)),n.isActive=!0,n.attr({text:e}),u.styledMode||n.css(p.style).shadow(p.shadow).attr({stroke:p.borderColor||t.color||o.color||"#333333"}),r=(e=n.getBBox()).width+n.strokeWidth(),(e=t.isHeader?(f=e.height,u.xAxis[0].opposite&&(s=!0,g-=f),Math.max(0,Math.min(t.plotX+u.plotLeft-r/2,u.chartWidth+(u.scrollablePixelsX?u.scrollablePixelsX-u.marginRight:0)-r))):t.plotX+u.plotLeft-S(p.distance,16)-r)<0&&(h=!1),o=t.isHeader?s?-f:u.plotHeight+f:(o=o.yAxis).pos-g
1+Math.max(0,Math.min(t.plotY||0,o.len)),c.push({target:o,rank:t.isHeader?1:0,size:i.tt.getBBox().height+1,point:t,x:e,tt:n})}}),this.cleanSplit(),p.positioner&&c.forEach(function(e){var t=p.positioner.call(l,e.tt.getBBox().width,e.size,e.point);e.x=t.x,e.align=0,e.target=t.y,e.rank=S(t.rank,e.rank)}),v.distribute(c,u.plotHeight+f),c.forEach(function(e){var t=e.point,i=t.series,n=i&&i.yAxis;e.tt.attr({visibility:void 0===e.pos?"hidden":"inherit",x:h||t.isHeader||p.positioner?e.x:t.plotX+u.plotLeft+l.distance,y:e.pos+g,anchorX:t.isHeader?t.plotX+u.plotLeft:t.plotX+i.xAxis.pos,anchorY:t.isHeader?u.plotTop+u.plotHeight/2:n.pos+Math.max(0,Math.min(t.plotY,n.len))})})},updatePosition:function(e){var t=this.chart,i=this.getLabel(),n=(this.options.positioner||this.getPosition).call(this,i.width,i.height,e),o=e.plotX+t.plotLeft;if(e=e.plotY+t.plotTop,this.outside){var r=(this.options.borderWidth||0)+2*this.distance;this.renderer.setSize(i.width+r,i.height+r,!1),(i=t.containerScaling)&&(v.css(this.container,{transform:"scale("+i.scaleX+", "+i.scaleY+")"}),o*=i.scaleX,e*=i.scaleY),o+=t.pointer.chartPosition.left-n.x,e+=t.pointer.chartPosition.top-n.y}this.move(Math.round(n.x),Math.round(n.y||0),o,e)},getDateFormat:function(e,t,i,n){var o=this.chart.time,r=o.dateFormat("%m-%d %H:%M:%S.%L",t),a={millisecond:15,second:12,minute:9,hour:6,day:3},s="millisecond";for(l in h){if(e===h.week&&+o.dateFormat("%w",t)===i&&"00:00:00.000"===r.substr(6)){var l="week";break}if(h[l]>e){l=s;break}if(a[l]&&r.substr(a[l])!=="01-01 00:00:00.000".substr(a[l]))break;"week"!==l&&(s=l)}if(l)var c=o.resolveDTLFormat(n[l]).main;return c},getXDateFormat:function(e,t,i){t=t.dateTimeLabelFormats;var n=i&&i.closestPointRange;return(n?this.getDateFormat(n,e.x,i.options.startOfWeek,t):t.day)||t.year},tooltipFooterHeaderFormatter:function(t,e){var i=e?"footer":"header",n=t.series,o=n.tooltipOptions,r=o.xDateFormat,a=n.xAxis,s=a&&"datetime"===a.options.type&&c(t.key),l=o[i+"Format"];return e={isFooter:e,labelConfig:t},v.fireEvent(this,"headerFormatter",e,function(e){s&&!r&&(r=this.getXDateFormat(t,o,a)),s&&r&&(t.point&&t.point.tooltipDateKeys||["key"]).forEac
1h(function(e){l=l.replace("{point."+e+"}","{point."+e+":"+r+"}")}),n.chart.styledMode&&(l=this.styledModeFormat(l)),e.text=u(l,{point:t,series:n},this.chart.time)}),e.text},bodyFormatter:function(e){return e.map(function(e){var t=e.series.tooltipOptions;return(t[(e.point.formatPrefix||"point")+"Formatter"]||e.point.tooltipFormatter).call(e.point,t[(e.point.formatPrefix||"point")+"Format"]||"")})},styledModeFormat:function(e){return e.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex}"')}}}),e(t,"parts/Pointer.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],function(l,e){var p=e.defined,i=e.isNumber,c=e.isObject,t=e.objectEach,u=e.splat,d=l.addEvent,n=l.attr,h=l.charts,g=l.color,f=l.css,m=l.extend,v=l.find,b=l.fireEvent,o=l.offset,y=l.pick,r=l.Tooltip;l.Pointer=function(e,t){this.init(e,t)},l.Pointer.prototype={init:function(e,t){this.options=t,this.chart=e,this.runChartClick=t.chart.events&&!!t.chart.events.click,this.pinchDown=[],this.lastValidTouch={},r&&(e.tooltip=new r(e,t.tooltip),this.followTouchMove=y(t.tooltip.followTouchMove,!0)),this.setDOMEvents()},zoomOption:function(e){var t=this.chart,i=t.options.chart,n=i.zoomType||"";t=t.inverted,/touch/.test(e.type)&&(n=y(i.pinchType,n)),this.zoomX=e=/x/.test(n),this.zoomY=n=/y/.test(n),this.zoomHor=e&&!t||n&&t,this.zoomVert=n&&!t||e&&t,this.hasZoom=e||n},normalize:function(e,t){var i=e.touches?e.touches.length?e.touches.item(0):e.changedTouches[0]:e;t||(this.chartPosition=t=o(this.chart.container));var n=i.pageX-t.left;return t=i.pageY-t.top,(i=this.chart.containerScaling)&&(n/=i.scaleX,t/=i.scaleY),m(e,{chartX:Math.round(n),chartY:Math.round(t)})},getCoordinates:function(t){var i={xAxis:[],yAxis:[]};return this.chart.axes.forEach(function(e){i[e.isXAxis?"xAxis":"yAxis"].push({axis:e,value:e.toValue(t[e.horiz?"chartX":"chartY"])})}),i},findNearestKDPoint:function(e,o,r){var a;return e.forEach(function(e){var t=!(e.noSharedTooltip&&o)&&e.options.findNearestPointBy.indexOf("y")<0;if(e=e.searchPoint(r,t),(t=c(e,!0))&&!(t=!c(a,!0))){t=a.distX-e.distX;var i=a.dist-e.dist,n=(e.series.group&&e.series.group.zIndex)-(a.series.group&&a.series.group.zIndex);t=0<(0!==t&&o?t:0!==i?i:0!==n?n:a.series.index>e.series.index?-1:1)}t&&(a=e)}),a},getPointFromEvent:function(e){e=e.target;for(var t;e&&!t;)t=e.point,e=e.parentNode;return t},getChartCoordinatesFromPoint:function(e,t){var i=e.series,n=i.xAxis;i=i.yAxis;var o=y(e.clientX,e.plotX),r=e.shapeArgs;return n&&i?t?{chartX:n.len+n.pos-o,chartY:i.len+i.pos-e.plotY}:{chartX:o+n.pos,chartY:e.plotY+i.pos}:r&&r.x&&r.y?{chartX:r.x,chartY:r.y}:void 0},getHoverData:function(e,t,i,n,o,r){var a,s=[];n=!(!n||!e);var l=t&&!t.stickyTracking?[t]:i.filter(function(e){return e.visible&&!(!o&&e.directTouch)&&y(e.options.enableMouseTracking,!0)&&e.stickyTracking});return t=(a=n?e:this.findNearestKDPoint(l,o,r))&&a.series,a&&(o&&!t.noSharedTooltip?(l=i.filter(function(e){return e.visible&&!(!o&&e.directTouch)&&y(e.options.enableMouseTracking,!0)&&!e.noSharedTooltip})).forEach(function(e){var t=v(e.points,function(e){return e.x===a.x&&!e.isNull});c(t)&&(e.chart.isBoosting&&(t=e.getPoint(t)),s.push(t))}):s.push(a)),{hoverPoint:a,hoverSeries:t,hoverPoints:s}},runPointActions:function(n,e){var t=this.chart,i=t.tooltip&&t.tooltip.options.enabled?t.tooltip:void 0,o=!!i&&i.shared,r=e||t.hoverPoint,a=r&&r.series||t.hoverSeries;r=(a=this.getHoverData(r,a,t.series,"touchmove"!==n.type&&(!!e||a&&a.directTouch&&this.isDirectTouch),o,n)).hoverPoint;var s=a.hoverPoints;if(e=(a=a.hoverSeries)&&a.tooltipOptions.followPointer,o=o&&a&&!a.noSharedTooltip,r&&(r!==t.hoverPoint||i&&i.isHidden)){if((t.hoverPoints||[]).forEach(function(e){-1===s.indexOf(e)&&e.setState()}),t.hoverSeries!==a&&a.onMouseOver(),this.applyInactiveState(s),(s||[]).forEach(function(e){e.setState("hover")}),t.hoverPoint&&t.hoverPoint.firePointEvent("mouseOut"),!r.series)return;r.firePointEvent("mouseOver"),t.hoverPoints=s,t.hoverPoint=r,i&&i.refresh(o?s:r,n)}else e&&i&&!i.isHidden&&(r=i.getAnchor([{}],n),i.updatePosition({plotX:r[0],plotY:r[1]}));this.unDocMouseMove||(this.unDocMouseMove=d(t.container.ownerDocument,"mousemove",function(e){var t=h[l.hoverChartIndex];t&&t.pointer.onDocumentMouseMove(e)}
1)),t.axes.forEach(function(t){var e=y(t.crosshair.snap,!0),i=e?l.find(s,function(e){return e.series[t.coll]===t}):void 0;i||!e?t.drawCrosshair(n,i):t.hideCrosshair()})},applyInactiveState:function(e){var t,i=[];(e||[]).forEach(function(e){t=e.series,i.push(t),t.linkedParent&&i.push(t.linkedParent),t.linkedSeries&&(i=i.concat(t.linkedSeries)),t.navigatorSeries&&i.push(t.navigatorSeries)}),this.chart.series.forEach(function(e){-1===i.indexOf(e)?e.setState("inactive",!0):e.options.inactiveOtherPoints&&e.setAllPointsToState("inactive")})},reset:function(t,e){var i=this.chart,n=i.hoverSeries,o=i.hoverPoint,r=i.hoverPoints,a=i.tooltip,s=a&&a.shared?r:o;t&&s&&u(s).forEach(function(e){e.series.isCartesian&&void 0===e.plotX&&(t=!1)}),t?a&&s&&u(s).length&&(a.refresh(s),a.shared&&r?r.forEach(function(e){e.setState(e.state,!0),e.series.isCartesian&&(e.series.xAxis.crosshair&&e.series.xAxis.drawCrosshair(null,e),e.series.yAxis.crosshair&&e.series.yAxis.drawCrosshair(null,e))}):o&&(o.setState(o.state,!0),i.axes.forEach(function(e){e.crosshair&&e.drawCrosshair(null,o)}))):(o&&o.onMouseOut(),r&&r.forEach(function(e){e.setState()}),n&&n.onMouseOut(),a&&a.hide(e),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),i.axes.forEach(function(e){e.hideCrosshair()}),this.hoverX=i.hoverPoints=i.hoverPoint=null)},scaleGroups:function(t,i){var n,o=this.chart;o.series.forEach(function(e){n=t||e.getPlotBox(),e.xAxis&&e.xAxis.zoomEnabled&&e.group&&(e.group.attr(n),e.markerGroup&&(e.markerGroup.attr(n),e.markerGroup.clip(i?o.clipRect:null)),e.dataLabelsGroup&&e.dataLabelsGroup.attr(n))}),o.clipRect.attr(i||o.clipBox)},dragStart:function(e){var t=this.chart;t.mouseIsDown=e.type,t.cancelClick=!1,t.mouseDownX=this.mouseDownX=e.chartX,t.mouseDownY=this.mouseDownY=e.chartY},drag:function(e){var t=this.chart,i=t.options.chart,n=e.chartX,o=e.chartY,r=this.zoomHor,a=this.zoomVert,s=t.plotLeft,l=t.plotTop,c=t.plotWidth,u=t.plotHeight,d=this.selectionMarker,h=this.mouseDownX,p=this.mouseDownY,f=i.panKey&&e[i.panKey+"Key"];if((!d||!d.touch)&&(n<s?n=s:s+c<n&&(n=s+c),o<l?o=l:l+u<o&&(o=l+u),this.hasDragged=Math.sqrt(Math.pow(h-n,2)+Math.pow(p-o,2)),10<this.hasDragged)){var m=t.isInsidePlot(h-s,p-l);t.hasCartesianSeries&&(this.zoomX||this.zoomY)&&m&&!f&&!d&&(this.selectionMarker=d=t.renderer.rect(s,l,r?1:c,a?1:u,0).attr({class:"highcharts-selection-marker",zIndex:7}).add(),t.styledMode||d.attr({fill:i.selectionMarkerFill||g("#335cad").setOpacity(.25).get()})),d&&r&&(n-=h,d.attr({width:Math.abs(n),x:(0<n?0:n)+h})),d&&a&&(n=o-p,d.attr({height:Math.abs(n),y:(0<n?0:n)+p})),m&&!d&&i.panning&&t.pan(e,i.panning)}},drop:function(o){var r=this,t=this.chart,a=this.hasPinched;if(this.selectionMarker){var s,l={originalEvent:o,xAxis:[],yAxis:[]},e=this.selectionMarker,c=e.attr?e.attr("x"):e.x,u=e.attr?e.attr("y"):e.y,d=e.attr?e.attr("width"):e.width,h=e.attr?e.attr("height"):e.height;(this.hasDragged||a)&&(t.axes.forEach(function(e){if(e.zoomEnabled&&p(e.min)&&(a||r[{xAxis:"zoomX",yAxis:"zoomY"}[e.coll]])){var t=e.horiz,i="touchend"===o.type?e.minPixelPadding:0,n=e.toValue((t?c:u)+i);t=e.toValue((t?c+d:u+h)-i),l[e.coll].push({axis:e,min:Math.min(n,t),max:Math.max(n,t)}),s=!0}}),s&&b(t,"selection",l,function(e){t.zoom(m(e,a?{animation:!1}:null))})),i(t.index)&&(this.selectionMarker=this.selectionMarker.destroy()),a&&this.scaleGroups()}t&&i(t.index)&&(f(t.container,{cursor:t._cursor}),t.cancelClick=10<this.hasDragged,t.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},onContainerMouseDown:function(e){2!==(e=this.normalize(e)).button&&(this.zoomOption(e),e.preventDefault&&e.preventDefault(),this.dragStart(e))},onDocumentMouseUp:function(e){h[l.hoverChartIndex]&&h[l.hoverChartIndex].pointer.drop(e)},onDocumentMouseMove:function(e){var t=this.chart,i=this.chartPosition;e=this.normalize(e,i),!i||this.inClass(e.target,"highcharts-tracker")||t.isInsidePlot(e.chartX-t.plotLeft,e.chartY-t.plotTop)||this.reset()},onContainerMouseLeave:function(e){var t=h[l.hoverChartIndex];t&&(e.relatedTarget||e.toElement)&&(t.pointer.reset(),t.pointer.chartPosition=null)},onContainerMouseMove:function(e){var t=this.chart;p(l.hoverChartIndex)&&h[l.hoverChartIndex]&&h[l.hoverChartIndex].mouseIsDown||(l.hoverChartIndex=t.index),(e=this.normalize(e)).preventDefault||(e.returnValue=!1),"mousedown"===t.mouseIsDown&&this.drag(e),!this.inClass(e.target,"highcharts-tracker")&&!t.isInsidePlot(e.chartX-t.plotLeft,e.chartY-t.plotTop)||t.openMenu||this.runPointActions(e)},inClass:function(e,t){for(var i;e;){if(i=n(e,"class")){if(-1!==i.indexOf(t))return!0;
1if(-1!==i.indexOf("highcharts-container"))return!1}e=e.parentNode}},onTrackerMouseOut:function(e){var t=this.chart.hoverSeries;e=e.relatedTarget||e.toElement,this.isDirectTouch=!1,!t||!e||t.stickyTracking||this.inClass(e,"highcharts-tooltip")||this.inClass(e,"highcharts-series-"+t.index)&&this.inClass(e,"highcharts-tracker")||t.onMouseOut()},onContainerClick:function(e){var t=this.chart,i=t.hoverPoint,n=t.plotLeft,o=t.plotTop;e=this.normalize(e),t.cancelClick||(i&&this.inClass(e.target,"highcharts-tracker")?(b(i.series,"click",m(e,{point:i})),t.hoverPoint&&i.firePointEvent("click",e)):(m(e,this.getCoordinates(e)),t.isInsidePlot(e.chartX-n,e.chartY-o)&&b(t,"click",e)))},setDOMEvents:function(){var t=this,e=t.chart.container,i=e.ownerDocument;e.onmousedown=function(e){t.onContainerMouseDown(e)},e.onmousemove=function(e){t.onContainerMouseMove(e)},e.onclick=function(e){t.onContainerClick(e)},this.unbindContainerMouseLeave=d(e,"mouseleave",t.onContainerMouseLeave),l.unbindDocumentMouseUp||(l.unbindDocumentMouseUp=d(i,"mouseup",t.onDocumentMouseUp)),l.hasTouch&&(d(e,"touchstart",function(e){t.onContainerTouchStart(e)}),d(e,"touchmove",function(e){t.onContainerTouchMove(e)}),l.unbindDocumentTouchEnd||(l.unbindDocumentTouchEnd=d(i,"touchend",t.onDocumentTouchEnd)))},destroy:function(){var i=this;i.unDocMouseMove&&i.unDocMouseMove(),this.unbindContainerMouseLeave(),l.chartCount||(l.unbindDocumentMouseUp&&(l.unbindDocumentMouseUp=l.unbindDocumentMouseUp()),l.unbindDocumentTouchEnd&&(l.unbindDocumentTouchEnd=l.unbindDocumentTouchEnd())),clearInterval(i.tooltipTimeout),t(i,function(e,t){i[t]=null})}}}),e(t,"parts/TouchPointer.js",[t["parts/Globals.js"]],function(o){var t=o.charts,h=o.extend,p=o.noop,f=o.pick;h(o.Pointer.prototype,{pinchTranslate:function(e,t,i,n,o,r){this.zoomHor&&this.pinchTranslateDirection(!0,e,t,i,n,o,r),this.zoomVert&&this.pinchTranslateDirection(!1,e,t,i,n,o,r)},pinchTranslateDirection:function(e,t,i,n,o,r,a,s){var l,c,u=this.chart,d=e?"x":"y",h=e?"X":"Y",p="chart"+h,f=e?"width":"height",m=u["plot"+(e?"Left":"Top")],g=s||1,v=u.inverted,b=u.bounds[e?"h":"v"],y=1===t.length,x=t[0][p],T=i[0][p],S=!y&&t[1][p],w=!y&&i[1][p];if((i=function(){!y&&20<Math.abs(x-S)&&(g=s||Math.abs(T-w)/Math.abs(x-S)),c=(m-T)/g+x,l=u["plot"+(e?"Width":"Height")]/g})(),(t=c)<b.min){t=b.min;var k=!0}else t+l>b.max&&(t=b.max-l,k=!0);k?(T-=.8*(T-a[d][0]),y||(w-=.8*(w-a[d][1])),i()):a[d]=[T,w],v||(r[d]=c-m,r[f]=l),r=v?1/g:g,o[f]=l,o[d]=t,n[v?e?"scaleY":"scaleX":"scale"+h]=g,n["translate"+h]=r*m+(T-r*x)},pinch:function(e){var t=this,a=t.chart,i=t.pinchDown,n=e.touches,o=n.length,r=t.lastValidTouch,s=t.hasZoom,l=t.selectionMarker,c={},u=1===o&&(t.inClass(e.target,"highcharts-tracker")&&a.runTrackerClick||t.runChartClick),d={};1<o&&(t.initiated=!0),s&&t.initiated&&!u&&e.preventDefault(),[].map.call(n,function(e){return t.normalize(e)}),"touchstart"===e.type?([].forEach.call(n,function(e,t){i[t]={chartX:e.chartX,chartY:e.chartY}}),r.x=[i[0].chartX,i[1]&&i[1].chartX],r.y=[i[0].chartY,i[1]&&i[1].chartY],a.axes.forEach(function(e){if(e.zoomEnabled){var t=a.bounds[e.horiz?"h":"v"],i=e.minPixelPadding,n=e.toPixels(Math.min(f(e.options.min,e.dataMin),e.dataMin)),o=e.toPixels(Math.max(f(e.options.max,e.dataMax),e.dataMax)),r=Math.max(n,o);t.min=Math.min(e.pos,Math.min(n,o)-i),t.max=Math.max(e.pos+e.len,r+i)}}),t.res=!0):t.followTouchMove&&1===o?this.runPointActions(t.normalize(e)):i.length&&(l||(t.selectionMarker=l=h({destroy:p,touch:!0},a.plotBox)),t.pinchTranslate(i,n,c,l,d,r),t.hasPinched=s,t.scaleGroups(c,d),t.res&&(t.res=!1,this.reset(!1,0)))},touch:function(e,t){var i=this.chart;if(i.index!==o.hoverChartIndex&&this.onContainerMouseLeave({relatedTarget:!0}),o.hoverChartIndex=i.index,1===e.touches.length)if(e=this.normalize(e),i.isInsidePlot(e.chartX-i.plotLeft,e.chartY-i.plotTop)&&!i.openMenu){if(t&&this.runPointActions(e),"touchmove"===e.type)var n=!!(t=this.pinchDown)[0]&&4<=Math.sqrt(Math.pow(t[0].chartX-e.chartX,2)+Math.pow(t[0].chartY-e.chartY,2));f(n,!0)&&this.pinch(e)}else t&&this.reset();else 2===e.touches.length&&this.pinch(e)},onContainerTouchStart:function(e){this.zoomOption(e),this.touch(e,!0)},onContainerTouchMove:function(e){this.touch(e)},onDocumentTouchEnd:function(e){t[o.hoverChartIndex]&&t[o.hoverChartIndex].pointer.drop(e)}})}),e(t,"parts/MSPointer.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],function(r,e){var a=e.objectEach,t=r.addEvent,s=r.charts,n=r.css,i=r.doc;e=r.extend;var l=r.noop,o=r.Pointer,c=r.removeEvent,u=r.win,d=r.wrap;if(!r.hasTouch&&(u.PointerEvent||u.MSPointerEvent)){var h={},p=!!u.PointerEvent,f=function(e,t,i,n){var o;"touch"!==e.pointerType&&e.pointerType!==e.MSPOINTER_TYPE_TOUCH||!s[r.hoverChartIndex]||(n(e),(n=s[r.hoverChartIndex].pointer)[t]({type:i,target:e.currentTarget,preventDefault:l,touches:(o=[],o.item=function(e){return this[e]},a(h,function(e){o.push({pageX:e.pageX,pageY:e.pageY,target:e.target})}),o)}))};e(o.prototype,{onContainerPointerDown:function(e){f(e,"onContainerTouchStart","touchstart",function(e){h[e.pointerId]={pageX:e.pageX,pageY:e.pageY,target:e.currentTarget}})},onContainerPointerMove:function(e){f(e,"onContainerTouchMove","touchmove",function(e){h[e.pointerId]={pageX:e.pageX,pageY:e.pageY},h[e.pointerId].target||(h[e.pointerId].target=e.currentTarget)})},onDocumentPointerUp:function(e){f(e,"onDocumentTouchEnd","touchend",function(e){delete h[e.pointerId]})},batchMSEvents:function(e){e(this.chart.container,p?"pointerdown":"MSPointerDown",this.onContainerPointerDown),e(this.chart.container,p?"pointermove":"MSPointerMove",this.onContainerPointerMove),e(i,p?"pointerup":"MSPointerUp",this.onDocumentPointerUp)}}),d(o.prototype,"init",function(e,t,i){e.call(this,t,i),this.hasZoom&&n(t.container,{"-ms-touch-action":"none","touch-action":"none"})}),d(o.prototype,"setDOMEvents",function(e){e.apply(this),(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(t)}),d(o.prototype,"destroy",function(e){this.batchMSEvents(c),e.call(this)})}}),e(t,"parts/Legend.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],function(c,e){var u=e.defined,s=e.isNumber,i=c.addEvent,l=c.css,n=c.discardElement,d=c.fireEvent;e=c.isFirefox;var h=c.marginNames,g=c.merge,y=c.pick,p=c.setAnimation,f=c.stableSort,t=c.win,o=c.wrap;c.Legend=function(e,t){this.init(e,t)},c.Legend.prototype={init:function(e,t){this.chart=e,this.setOptions(t),t.enabled&&(this.render(),i(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=i(this.chart,"render",function(){this.legend.proximatePositions(),this.legend.positionItems()}):this.unchartrender&&this.unchartrender())},setOptions:function(e){var t=y(e.padding,8);this.options=e,this.chart.styledMode||(this.itemStyle=e.itemStyle,this.itemHiddenStyle=g(this.itemStyle,e.itemHiddenStyle)),this.itemMarginTop=e.itemMarginTop||0,this.padding=t,this.initialItemY=t-5,this.symbolWi
1dth=y(e.symbolWidth,16),this.pages=[],this.proximate="proximate"===e.layout&&!this.chart.inverted},update:function(e,t){var i=this.chart;this.setOptions(g(!0,this.options,e)),this.destroy(),i.isDirtyLegend=i.isDirtyBox=!0,y(t,!0)&&i.redraw(),d(this,"afterUpdate")},colorizeItem:function(e,t){if(e.legendGroup[t?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var i=this.options,n=e.legendItem,o=e.legendLine,r=e.legendSymbol,a=this.itemHiddenStyle.color;i=t?i.itemStyle.color:a;var s=t&&e.color||a,l=e.options&&e.options.marker,c={fill:s};n&&n.css({fill:i,color:i}),o&&o.attr({stroke:s}),r&&(l&&r.isMarker&&(c=e.pointAttribs(),t||(c.stroke=c.fill=a)),r.attr(c))}d(this,"afterColorizeItem",{item:e,visible:t})},positionItems:function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},positionItem:function(e){var t=this.options,i=t.symbolPadding;t=!t.rtl;var n=e._legendItemPos,o=n[0];n=n[1];var r=e.checkbox;(e=e.legendGroup)&&e.element&&e[u(e.translateY)?"animate":"attr"]({translateX:t?o:this.legendWidth-o-2*i-4,translateY:n}),r&&(r.x=o,r.y=n)},destroyItem:function(t){var e=t.checkbox;["legendItem","legendLine","legendSymbol","legendGroup"].forEach(function(e){t[e]&&(t[e]=t[e].destroy())}),e&&n(t.checkbox)},destroy:function(){function t(e){this[e]&&(this[e]=this[e].destroy())}
1this.getAllItems().forEach(function(e){["legendItem","legendGroup"].forEach(t,e)}),"clipRect up down pager nav box title group".split(" ").forEach(t,this),this.display=null},positionCheckboxes:function(){var n=this.group&&this.group.alignAttr,o=this.clipHeight||this.legendHeight,r=this.titleHeight;if(n){var a=n.translateY;this.allItems.forEach(function(e){var t=e.checkbox;if(t){var i=a+r+t.y+(this.scrollOffset||0)+3;l(t,{left:n.translateX+e.checkboxOffset+t.x-20+"px",top:i+"px",display:this.proximate||a-6<i&&i<a+o-6?"":"none"})}},this)}},renderTitle:function(){var e=this.options,t=this.padding,i=e.title,n=0;i.text&&(this.title||(this.title=this.chart.renderer.label(i.text,t-3,t-4,null,null,null,e.useHTML,null,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(i.style),this.title.add(this.group)),i.width||this.title.css({width:this.maxLegendWidth+"px"}),n=(e=this.title.getBBox()).height,this.offsetWidth=e.width,this.contentGroup.attr({translateY:n})),this.titleHeight=n},setText:function(e){var t=this.options;e.legendItem.attr({text:t.labelFormat?c.format(t.labelFormat,e,this.chart.time):t.labelFormatter.call(e)})},renderItem:function(e){var t=this.chart,i=t.renderer,n=this.options,o=this.symbolWidth,r=n.symbolPadding,a=this.itemStyle,s=this.itemHiddenStyle,l="horizontal"===n.layout?y(n.itemDistance,20):0,c=!n.rtl,u=e.legendItem,d=!e.series,h=!d&&e.series.drawLegendSymbol?e.series:e,p=h.options;l=o+r+l+((p=this.createCheckboxForItem&&p&&p.showCheckbox)?20:0);var f=n.useHTML,m=e.options.className;u||(e.legendGroup=i.g("legend-item").addClass("highcharts-"+h.type+"-series highcharts-color-"+e.colorIndex+(m?" "+m:"")+(d?" highcharts-series-"+e.index:"")).attr({zIndex:1}).add(this.scrollGroup),e.legendItem=u=i.text("",c?o+r:-r,this.baseline||0,f),t.styledMode||u.css(g(e.visible?a:s)),u.attr({align:c?"left":"right",zIndex:2}).add(e.legendGroup),this.baseline||(this.fontMetrics=i.fontMetrics(t.styledMode?12:a.fontSize,u),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,u.attr("y",this.baseline)),this.symbolHeight=n.symbolHeight||this.fontMetrics.f,h.drawLegendSymbol(this,e),this.setItemEvents&&this.setItemEvents(e,u,f)),p&&!e.checkbox&&this.createCheckboxForItem(e),this.colorizeItem(e,e.visible),!t.styledMode&&a.width||u.css({width:(n.itemWidth||this.widthOption||t.spacingBox.width)-l}),this.setText(e),t=u.getBBox(),e.itemWidth=e.checkboxOffset=n.itemWidth||e.legendItemWidth||t.width+l,this.maxItemWidth=Math.max(this.maxItemWidth,e.itemWidth),this.totalItemWidth+=e.itemWidth,this.itemHeight=e.itemHeight=Math.round(e.legendItemHeight||t.height||this.symbolHeight)},layoutItem:function(e){var t=this.options,i=this.padding,n="horizontal"===t.layout,o=e.itemHeight,r=t.itemMarginBottom||0,a=this.itemMarginTop,s=n?y(t.itemDistance,20):0,l=this.maxLegendWidth;t=t.alignColumns&&this.totalItemWidth>l?this.maxItemWidth:e.itemWidth,n&&this.itemX-i+t>l&&(this.itemX=i,this.lastLineHeight&&(this.itemY+=a+this.lastLineHeight+r),this.lastLineHeight=0),this.lastItemY=a+this.itemY+r,this.lastLineHeight=Math.max(o,this.lastLineHeight),e._legendItemPos=[this.itemX,this.itemY],n?this.itemX+=t:(this.itemY+=a+o+r,this.lastLineHeight=o),this.offsetWidth=this.widthOption||Math.max((n?this.itemX-i-(e.checkbox?0:s):t)+i,this.offsetWidth)},getAllItems:function(){var i=[];return this.chart.series.forEach(function(e){var t=e&&e.options;e&&y(t.showInLegend,!u(t.linkedTo)&&void 0,!0)&&(i=i.concat(e.legendItems||("point"===t.legendType?e.data:e)))}),d(this,"afterGetAllItems",{allItems:i}),i},getAlignment:function(){var e=this.options;return this.proximate?e.align.charAt(0)+"tv":e.floating?"":e.align.charAt(0)+e.verticalAlign.charAt(0)+e.layout.charAt(0)},adjustMargins:function(i,n){var o=this.chart,r=this.options,a=this.getAlignment(),e=o.options.title.margin,s=void 0!==e?o.titleOffset[0]+e:0,l=void 0!==e?o.titleOffset[2]+e:0;a&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEac
1h(function(e,t){e.test(a)&&!u(i[t])&&(o[h[t]]=Math.max(o[h[t]],o.legend[(t+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][t]*r[t%2?"x":"y"]+y(r.margin,12)+n[t]+(0===t&&(0===o.titleOffset[0]?0:s))+(2===t&&(0===o.titleOffset[2]?0:l))))})},proximatePositions:function(){var o=this.chart,r=[],a="left"===this.options.align;this.allItems.forEach(function(e){var t=a;if(e.yAxis&&e.points){e.xAxis.options.reversed&&(t=!t);var i=c.find(t?e.points:e.points.slice(0).reverse(),function(e){return s(e.plotY)});t=e.legendGroup.getBBox().height;var n=e.yAxis.top-o.plotTop;e.visible?(i=i?i.plotY:e.yAxis.height,i+=n-.3*t):i=n+e.yAxis.height,r.push({target:i,size:t,item:e})}},this),c.distribute(r,o.plotHeight),r.forEach(function(e){e.item._legendItemPos[1]=o.plotTop-o.spacing[0]+e.pos})},render:function(){var e,t=this.chart,i=t.renderer,n=this.group,o=this.box,r=this.options,a=this.padding;this.itemX=a,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,this.widthOption=c.relativeLength(r.width,t.spacingBox.width-a);var s=t.spacingBox.width-2*a-r.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(s/=2),this.maxLegendWidth=this.widthOption||s,n||(this.group=n=i.g("legend").attr({zIndex:7}).add(),this.contentGroup=i.g().attr({zIndex:1}).add(n),this.scrollGroup=i.g().add(this.contentGroup)),this.renderTitle(),s=this.getAllItems(),f(s,function(e,t){return(e.options&&e.options.legendIndex||0)-(t.options&&t.options.legendIndex||0)}),r.reversed&&s.reverse(),this.allItems=s,this.display=e=!!s.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,s.forEach(this.renderItem,this),s.forEac
1h(this.layoutItem,this),s=(this.widthOption||this.offsetWidth)+a;var l=this.lastItemY+this.lastLineHeight+this.titleHeight;l=this.handleOverflow(l),l+=a,o||(this.box=o=i.rect().addClass("highcharts-legend-box").attr({r:r.borderRadius}).add(n),o.isNew=!0),t.styledMode||o.attr({stroke:r.borderColor,"stroke-width":r.borderWidth||0,fill:r.backgroundColor||"none"}).shadow(r.shadow),0<s&&0<l&&(o[o.isNew?"attr":"animate"](o.crisp.call({},{x:0,y:0,width:s,height:l},o.strokeWidth())),o.isNew=!1),o[e?"show":"hide"](),t.styledMode&&"none"===n.getStyle("display")&&(s=l=0),this.legendWidth=s,this.legendHeight=l,e&&(i=t.options.title.margin,a=(o=t.spacingBox).y,/(lth|ct|rth)/.test(this.getAlignment())&&0<t.titleOffset[0]?a+=t.titleOffset[0]+i:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<t.titleOffset[2]&&(a-=t.titleOffset[2]+i),a!==o.y&&(o=g(o,{y:a})),n.align(g(r,{width:s,height:l,verticalAlign:this.proximate?"top":r.verticalAlign}),!0,o)),this.proximate||this.positionItems(),d(this,"afterRender")},handleOverflow:function(e){var t=this,i=this.chart,n=i.renderer,o=this.options,r=o.y,a=this.padding;r=i.spacingBox.height+("top"===o.verticalAlign?-r:r)-a;var s,l,c=o.maxHeight,u=this.clipRect,d=o.navigation,h=y(d.animation,!0),p=d.arrowSize||12,f=this.nav,m=this.pages,g=this.allItems,v=function(e){"number"==typeof e?u.attr({height:e}):u&&(t.clipRect=u.destroy(),t.contentGroup.clip()),t.contentGroup.div&&(t.contentGroup.div.style.clip=e?"rect("+a+"px,9999px,"+(a+e)+"px,0)":"auto")},b=function(e){return t[e]=n.circle(0,0,1.3*p).translate(p/2,p/2).add(f),i.styledMode||t[e].attr("fill","rgba(0,0,0,0.0001)"),t[e]};return"horizontal"!==o.layout||"middle"===o.verticalAlign||o.floating||(r/=2),c&&(r=Math.min(r,c)),m.length=0,r<e&&!1!==d.enabled?(this.clipHeight=s=Math.max(r-20-this.titleHeight-a,0),this.currentPage=y(this.currentPage,1),this.fullHeight=e,g.forEach(function(e,t){var i=e._legendItemPos[1],n=Math.round(e.legendItem.getBBox().height),o=m.length;(!o||i-m[o-1]>s&&(l||i)!==m[o-1])&&(m.push(l||i),o++),e.pageIx=o-1,l&&(g[t-1].pageIx=o-1),t===g.length-1&&i+n-m[o-1]>s&&i!==l&&(m.push(i),e.pageIx=o),i!==l&&(l=i)}),u||(u=t.clipRect=n.clipRect(0,a,9999,0),t.contentGroup.clip(u)),v(s),f||(this.nav=f=n.g().attr({zIndex:1}).add(this.group),this.up=n.symbol("triangle",0,0,p,p).add(f),b("upTracker").on("click",function(){t.scroll(-1,h)}),this.pager=n.text("",15,10).addClass("highcharts-legend-navigation"),i.styledMode||this.pager.css(d.style),this.pager.add(f),this.down=n.symbol("triangle-down",0,0,p,p).add(f),b("downTracker").on("click",function(){t.scroll(1,h)})),t.scroll(0),e=r):f&&(v(),this.nav=f.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),e},scroll:function(e,t){var i=this.pages,n=i.length,o=this.currentPage+e;e=this.clipHeight;var r=this.options.navigation,a=this.pager,s=this.padding;n<o&&(o=n),0<o&&(void 0!==t&&p(t,this.chart),this.nav.attr({translateX:s,translateY:e+this.padding+7+this.titleHeight,visibility:"visible"}),[this.up,this.upTracker].forEach(function(e){e.attr({class:1===o?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),a.attr({text:o+"/"+n}),[this.down,this.downTracker].forEach(function(e){e.attr({x:18+this.pager.getBBox().width,class:o===n?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),this.chart.styledMode||(this.up.attr({fill:1===o?r.inactiveColor:r.activeColor}),this.upTracker.css({cursor:1===o?"default":"pointer"}),this.down.attr({fill:o===n?r.inactiveColor:r.activeColor}),this.downTracker.css({cursor:o===n?"default":"pointer"})),this.scrollOffset=-i[o-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=o,this.positionCheckboxes())}},c.LegendSymbolMixin={drawRectangle:function(e,t){var i=e.symbolHeight,n=e.options.squareSymbol;t.legendSymbol=this.chart.renderer.rect(n?(e.symbolWidth-i)/2:0,e.baseline-i+1,n?i:e.symbolWidth,i,y(e.options.symbolRadius,i/2)).addClass("highcharts-point").attr({zIndex:3}).add(t.legendGroup)},drawLineMarker:function(e){var t=this.options,i=t.marker,n=e.symbolWidth,o=e.symbolHeight,r=o/2,a=this.chart.renderer,s=this.legendGroup;e=e.baseline-Math.round(.3*e.fontMetrics.b);var l={};this.chart.styledMode||(l={"stroke-width":t.lineWidth||0},t.dashStyle&&(l.dashstyle=t.dashStyle)),this.legendLine=a.path(["M",0,e,"L",n,e]).addClass("highcharts-graph").attr(l).add(s),i&&!1!==i.enabled&&n&&(t=Math.min(y(i.radius,r),r),0===this.symbol.indexOf("url")&&(i=g(i,{width:o,height:o}),t=0),this.legendSymbol=i=a.symbol(this.symbol,n/2-t,e-t,2*t,2*t,i).addClass("highcharts-point").add(s),i.isMarker=!0)}},(/Trident\/7\.0/.test(t.navigator&&t.navigator.userAgent)||e)&&o(c.Legend.prototype,"positionItem",function(e,t){var i=this,n=function(){t._legendItemPos&&e.call(i,t)};n(),i.bubbleLegend||setTimeout(n)})}),e(t,"parts/Chart.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],function(m,e){var a=e.defined,s=e.erase,i=e.isArray,l=e.isNumber,c=e.isObject,u=e.isString,d=e.objectEach,h=e.pInt,n=e.splat,p=m.addEvent,f=m.animate,g=m.animObject,v=m.attr,b=m.doc,o=m.Axis,y=m.createElement,x=m.defaultOptions,T=m.discardElement,S=m.charts,w=m.css,k=m.extend,r
1=m.find,C=m.fireEvent,M=m.Legend,t=m.marginNames,P=m.merge,A=m.Pointer,E=m.pick,D=m.removeEvent,O=m.seriesTypes,L=m.syncTimeout,I=m.win,R=m.Chart=function(){this.getArgs.apply(this,arguments)};m.chart=function(e,t,i){return new R(e,t,i)},k(R.prototype,{callbacks:[],getArgs:function(){var e=[].slice.call(arguments);(u(e[0])||e[0].nodeName)&&(this.renderTo=e.shift()),this.init(e[0],e[1])},init:function(n,o){var r,a=n.series,s=n.plotOptions||{};C(this,"init",{args:arguments},function(){n.series=null,r=P(x,n),d(r.plotOptions,function(e,t){c(e)&&(e.tooltip=s[t]&&P(s[t].tooltip)||void 0)}),r.tooltip.userOptions=n.chart&&n.chart.forExport&&n.tooltip.userOptions||n.tooltip,r.series=n.series=a,this.userOptions=n;var e=r.chart,t=e.events;this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=o,this.isResizing=0,this.options=r,this.axes=[],this.series=[],this.time=n.time&&Object.keys(n.time).length?new m.Time(n.time):m.time,this.styledMode=e.styledMode,this.hasCartesianSeries=e.showAxes;var i=this;i.index=S.length,S.push(i),m.chartCount++,t&&d(t,function(e,t){m.isFunction(e)&&p(i,t,e)}),i.xAxis=[],i.yAxis=[],i.pointCount=i.colorCounter=i.symbolCounter=0,C(i,"afterInit"),i.firstRender()})},initSeries:function(e){var t=this.options.chart;return(t=O[e.type||t.type||t.defaultSeriesType])||m.error(17,!0,this),(t=new t).init(this,e),t},orderSeries:function(e){var t=this.series;for(e=e||0;e<t.length;e++)t[e]&&(t[e].index=e,t[e].name=t[e].getName())},isInsidePlot:function(e,t,i){var n=i?t:e;return e=i?e:t,0<=n&&n<=this.plotWidth&&0<=e&&e<=this.plotHeight},redraw:function(e){C(this,"beforeRedraw");var t=this.axes,i=this.series,n=this.pointer,o=this.legend,r=this.userOptions.legend,a=this.isDirtyLegend,s=this.hasCartesianSeries,l=this.isDirtyBox,c=this.renderer,u=c.isHidden(),d=[];for(this.setResponsive&&this.setResponsive(!1),m.setAnimation(e,this),u&&this.temporaryDisplay(),this.layOutTitles(),e=i.length;e--;){var h=i[e];if(h.options.stacking){var p=!0;if(h.isDirty){var f=!0;break}}}if(f)for(e=i.length;e--;)(h=i[e]).options.stacking&&(h.isDirty=!0);i.forEach(function(e){e.isDirty&&("point"===e.options.legendType?(e.updateTotals&&e.updateTotals(),a=!0):r&&(r.labelFormatter||r.labelFormat)&&(a=!0)),e.isDirtyData&&C(e,"updatedData")}),a&&o&&o.options.enabled&&(o.render(),this.isDirtyLegend=!1),p&&this.getStacks(),s&&t.forEach(function(e){e.updateNames(),e.setScale()}),this.getMargins(),s&&(t.forEach(function(e){e.isDirty&&(l=!0)}),t.forEach(function(e){var t=e.min+","+e.max;e.extKey!==t&&(e.extKey=t,d.push(function(){C(e,"afterSetExtremes",k(e.eventArgs,e.getExtremes())),delete e.eventArgs})),(l||p)&&e.redraw()})),l&&this.drawChartBox(),C(this,"predraw"),i.forEach(function(e){(l||e.isDirty)&&e.visible&&e.redraw(),e.isDirtyData=!1}),n&&n.reset(!0),c.draw(),C(this,"redraw"),C(this,"render"),u&&this.temporaryDisplay(!0),d.forEach(function(e){e.call()})},get:function(t){function e(e){return e.id===t||e.options&&e.options.id===t}var i,n=this.series,o=r(this.axes,e)||r(this.series,e);for(i=0;!o&&i<n.length;i++)o=r(n[i].points||[],e);return o},getAxes:function(){var t=this,e=this.options,i=e.xAxis=n(e.xAxis||{});e=e.yAxis=n(e.yAxis||{}),C(this,"getAxes"),i.forEach(function(e,t){e.index=t,e.isX=!0}),e.forEach(function(e,t){e.index=t}),i.concat(e).forEach(function(e){new o(t,e)}),C(this,"afterGetAxes")},getSelectedPoints:function(){var t=[];return this.series.forEach(function(e){t=t.concat((e[e.hasGroupedData?"points":"data"]||[]).filter(function(e){return E(e.selectedStaging,e.selected)}))}),t}
1,getSelectedSeries:function(){return this.series.filter(function(e){return e.selected})},setTitle:function(e,t,i){var r=this,n=r.options,a=r.styledMode;[["title",e,n.title=P(!a&&{style:{color:"#333333",fontSize:n.isStock?"16px":"18px"}},n.title,e)],["subtitle",t,n=n.subtitle=P(!a&&{style:{color:"#666666"}},n.subtitle,t)]].forEach(function(e,t){var i=e[0],n=r[i],o=e[1];e=e[2],n&&o&&(r[i]=n=n.destroy()),e&&!n&&(r[i]=r.renderer.text(e.text,0,0,e.useHTML).attr({align:e.align,class:"highcharts-"+i,zIndex:e.zIndex||4}).add(),r[i].update=function(e){r.setTitle(!t&&e,t&&e)},a||r[i].css(e.style))}),r.layOutTitles(i)},layOutTitles:function(e){var a=[0,0,0],s=this.renderer,l=this.spacingBox;["title","subtitle"].forEach(function(e){var t=this[e],i=this.options[e],n="title"===e?-3:i.verticalAlign?0:a[0]+2;if(e="subtitle"===e&&"bottom"===i.verticalAlign,t){if(!this.styledMode)var o=i.style.fontSize;o=s.fontMetrics(o,t).b,t.css({width:(i.width||l.width+i.widthAdjust)+"px"});var r=t.getBBox(i.useHTML).height;t.align(k({y:e?o:n+o,height:r},i),!1,"spacingBox"),i.floating||(i.verticalAlign?e&&(a[2]=r):a[0]=Math.ceil(a[0]+r))}},this);var t=!this.titleOffset||this.titleOffset.join(",")!==a.join(",");this.titleOffset=a,!this.isDirtyBox&&t&&(this.isDirtyBox=this.isDirtyLegend=t,this.hasRendered&&E(e,!0)&&this.isDirtyBox&&this.redraw())},getChartSize:function(){var e=this.options.chart,t=e.width;e=e.height;var i=this.renderTo;a(t)||(this.containerWidth=m.getStyle(i,"width")),a(e)||(this.containerHeight=m.getStyle(i,"height")),this.chartWidth=Math.max(0,t||this.containerWidth||600),this.chartHeight=Math.max(0,m.relativeLength(e,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))},temporaryDisplay:function(e){var t=this.renderTo;if(e)for(;t&&t.style;)t.hcOrigStyle&&(m.css(t,t.hcOrigStyle),delete t.hcOrigStyle),t.hcOrigDetached&&(b.body.removeChild(t),t.hcOrigDetached=!1),t=t.parentNode;else for(;t&&t.style&&(b.body.contains(t)||t.parentNode||(t.hcOrigDetached=!0,b.body.appendChild(t)),("none"===m.getStyle(t,"display",!1)||t.hcOricDetached)&&(t.hcOrigStyle={display:t.style.display,height:t.style.height,overflow:t.style.overflow},e={display:"block",overflow:"hidden"},t!==this.renderTo&&(e.height=0),m.css(t,e),t.offsetWidth||t.style.setProperty("display","block","important")),(t=t.parentNode)!==b.body););},setClassName:function(e){this.container.className="highcharts-container "+(e||"")},getContainer:function(){var e,t,i=this.options,n=i.chart,o=this.renderTo,r=m.uniqueKey();o||(this.renderTo=o=n.renderTo),u(o)&&(this.renderTo=o=b.getElementById(o)),o||m.error(13,!0,this);var a=h(v(o,"data-highcharts-chart"));l(a)&&S[a]&&S[a].hasRendered&&S[a].destroy(),v(o,"data-highcharts-chart",this.index),o.innerHTML="",n.skipClone||o.offsetWidth||this.temporaryDisplay(),this.getChartSize(),a=this.chartWidth;var s=this.chartHeight;if(w(o,{overflow:"hidden"}),this.styledMode||(e=k({position:"relative",overflow:"hidden",width:a+"px",height:s+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)"},n.style)),this.container=o=y("div",{id:r},e,o),this._cursor=o.style.cursor,this.renderer=new(m[n.renderer]||m.Renderer)(o,a,s,null,n.forExport,i.exporting&&i.exporting.allowHTML,this.styledMode),this.setClassName(n.className),this.styledMode)for(t in i.defs)this.renderer.definition(i.defs[t]);else this.renderer.setStyle(n.style);this.renderer.chartIndex=this.index,C(this,"afterGetContainer")},getMargins:function(e){var t=this.spacing,i=this.margin,n=this.titleOffset;this.resetMargins(),n[0]&&!a(i[0])&&(this.plotTop=Math.max(this.plotTop,n[0]+this.options.title.margin+t[0])),n[2]&&!a(i[2])&&(this.marginBottom=Math.max(this.marginBottom,n[2]+this.options.title.margin+t[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(i,t),C(this,"getMargins"),e||this.getAxisMargins()},getAxisMargins:function(){var i=this,n=i.axisOffset=[0,0,0,0],o=i.margin;i.hasCartesianSeries&&i.axes.forEach(function(e){e.visible&&e.getOffset()}),t.forEach(function(e,t){a(o[t])||(i[e]+=n[t])}),i.setChartSize()},reflow:function(e){var t=this,i=t.options.chart,n=t.renderTo,o=a(i.width)&&a(i.height),r=i.width||m.getStyle(n,"width");
1i=i.height||m.getStyle(n,"height"),n=e?e.target:I,o||t.isPrinting||!r||!i||n!==I&&n!==b||(r===t.containerWidth&&i===t.containerHeight||(m.clearTimeout(t.reflowTimeout),t.reflowTimeout=L(function(){t.container&&t.setSize(void 0,void 0,!1)},e?100:0)),t.containerWidth=r,t.containerHeight=i)},setReflow:function(e){var t=this;!1===e||this.unbindReflow?!1===e&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=p(I,"resize",function(e){t.reflow(e)}),p(this,"destroy",this.unbindReflow))},setSize:function(e,t,i){var n=this,o=n.renderer;if(n.isResizing+=1,m.setAnimation(i,n),n.oldChartHeight=n.chartHeight,n.oldChartWidth=n.chartWidth,void 0!==e&&(n.options.chart.width=e),void 0!==t&&(n.options.chart.height=t),n.getChartSize(),!n.styledMode){var r=o.globalAnimation;(r?f:w)(n.container,{width:n.chartWidth+"px",height:n.chartHeight+"px"},r)}n.setChartSize(!0),o.setSize(n.chartWidth,n.chartHeight,i),n.axes.forEach(function(e){e.isDirty=!0,e.setScale()}),n.isDirtyLegend=!0,n.isDirtyBox=!0,n.layOutTitles(),n.getMargins(),n.redraw(i),n.oldChartHeight=null,C(n,"resize"),L(function(){n&&C(n,"endResize",null,function(){--n.isResizing})},g(r).duration)},setChartSize:function(e){var t,i,n,o,r=this.inverted,a=this.renderer,s=this.chartWidth,l=this.chartHeight,c=this.options.chart,u=this.spacing,d=this.clipOffset;this.plotLeft=t=Math.round(this.plotLeft),this.plotTop=i=Math.round(this.plotTop),this.plotWidth=n=Math.max(0,Math.round(s-t-this.marginRight)),this.plotHeight=o=Math.max(0,Math.round(l-i-this.marginBottom)),this.plotSizeX=r?o:n,this.plotSizeY=r?n:o,this.plotBorderWidth=c.plotBorderWidth||0,this.spacingBox=a.spacingBox={x:u[3],y:u[0],width:s-u[3]-u[1],height:l-u[0]-u[2]},this.plotBox=a.plotBox={x:t,y:i,width:n,height:o},s=2*Math.floor(this.plotBorderWidth/2),r=Math.ceil(Math.max(s,d[3])/2),a=Math.ceil(Math.max(s,d[0])/2),this.clipBox={x:r,y:a,width:Math.floor(this.plotSizeX-Math.max(s,d[1])/2-r),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(s,d[2])/2-a))},e||this.axes.forEach(function(e){e.setAxisSize(),e.setAxisTranslation()}),C(this,"afterSetChartSize",{skipAxes:e})},resetMargins:function(){C(this,"resetMargins");var o=this,r=o.options.chart;["margin","spacing"].forEach(function(i){var e=r[i],n=c(e)?e:[e,e,e,e];["Top","Right","Bottom","Left"].forEach(function(e,t){o[i][t]=E(r[i+e],n[t])})}),t.forEach(function(e,t){o[e]=E(o.margin[t],o.spacing[t])}),o.axisOffset=[0,0,0,0],o.clipOffset=[0,0,0,0]},drawChartBox:function(){var e,t=this.options.chart,i=this.renderer,n=this.chartWidth,o=this.chartHeight,r=this.chartBackground,a=this.plotBackgroun
1d,s=this.plotBorder,l=this.styledMode,c=this.plotBGImage,u=t.backgroundColor,d=t.plotBackgroundColor,h=t.plotBackgroundImage,p=this.plotLeft,f=this.plotTop,m=this.plotWidth,g=this.plotHeight,v=this.plotBox,b=this.clipRect,y=this.clipBox,x="animate";if(r||(this.chartBackground=r=i.rect().addClass("highcharts-background").add(),x="attr"),l)var T=e=r.strokeWidth();else e=(T=t.borderWidth||0)+(t.shadow?8:0),u={fill:u||"none"},(T||r["stroke-width"])&&(u.stroke=t.borderColor,u["stroke-width"]=T),r.attr(u).shadow(t.shadow);r[x]({x:e/2,y:e/2,width:n-e-T%2,height:o-e-T%2,r:t.borderRadius}),x="animate",a||(x="attr",this.plotBackground=a=i.rect().addClass("highcharts-plot-background").add()),a[x](v),l||(a.attr({fill:d||"none"}).shadow(t.plotShadow),h&&(c?c.animate(v):this.plotBGImage=i.image(h,p,f,m,g).add())),b?b.animate({width:y.width,height:y.height}):this.clipRect=i.clipRect(y),x="animate",s||(x="attr",this.plotBorder=s=i.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),l||s.attr({stroke:t.plotBorderColor,"stroke-width":t.plotBorderWidth||0,fill:"none"}),s[x](s.crisp({x:p,y:f,width:m,height:g},-s.strokeWidth())),this.isDirtyBox=!1,C(this,"afterDrawChartBox")},propFromSeries:function(){var t,i,n,o=this,r=o.options.chart,a=o.options.series;["inverted","angular","polar"].forEach(function(e){for(t=O[r.type||r.defaultSeriesType],n=r[e]||t&&t.prototype[e],i=a&&a.length;!n&&i--;)(t=O[a[i].type])&&t.prototype[e]&&(n=!0);o[e]=n})},linkSeries:function(){var i=this,e=i.series;e.forEach(function(e){e.linkedSeries.length=0}),e.forEach(function(e){var t=e.options.linkedTo;u(t)&&(t=":previous"===t?i.series[e.index-1]:i.get(t))&&t.linkedParent!==e&&(t.linkedSeries.push(e),e.linkedParent=t,e.visible=E(e.options.visible,t.options.visible,e.visible))}),C(this,"afterLinkSeries")},renderSeries:function(){this.series.forEach(function(e){e.translate(),e.render()})},renderLabels:function(){var o=this,r=o.options.labels;r.items&&r.items.forEach(function(e){var t=k(r.style,e.style),i=h(t.left)+o.plotLeft,n=h(t.top)+o.plotTop+12;delete t.left,delete t.top,o.renderer.text(e.html,i,n).attr({zIndex:2}).css(t).add()})},render:function(){var e=this.axes,t=this.renderer,i=this.options,n=0;this.setTitle(),this.legend=new M(this,i.legend),this.getStacks&&this.getStacks(),this.getMargins(!0),this.setChartSize(),i=this.plotWidth,e.some(function(e){if(e.horiz&&e.visible&&e.options.labels.enabled&&e.series.length)return n=21,!0});var o=this.plotHeight=Math.max(this.plotHeight-n,0);e.forEach(function(e){e.setScale()}),this.getAxisMargins();var r=1.1<i/this.plotWidth,a=1.05<o/this.plotHeight;(r||a)&&(e.forEach(function(e){(e.horiz&&r||!e.horiz&&a)&&e.setTickInterval(!0)}),this.getMargins()),this.drawChartBox(),this.hasCartesianSeries&&e.forEach(function(e){e.visible&&e.render()}),this.seriesGroup||(this.seriesGroup=t.g("series-group").attr({zIndex:3}).add()),this.renderSeries(),this.renderLabels(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.updateContainerScaling(),this.hasRendered=!0},addCredits:function(e){var t=this;(e=P(!0,this.options.credits,e)).enabled&&!this.credits&&(this.credits=this.renderer.text(e.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){e.href&&(I.location.href=e.href)}).attr({align:e.position.align,zIndex:8}),t.styledMode||this.credits.css(e.style),this.credits.add().align(e.position),this.credits.update=function(e){t.credits=t.credits.destroy(),t.addCredits(e)})},updateContainerScaling:function(){var e=this.container;if(e.offsetWidth&&e.offsetHeight&&e.getBoundingClientRect){var t=e.getBoundingClientRect(),i=t.width/e.offsetWidth;e=t.height/e.offsetHeight,1!==i||1!==e?this.containerScaling={scaleX:i,scaleY:e}:delete this.containerScaling}},destroy:function(){var e,i=this,t=i.axes,n=i.series,o=i.container,r=o&&o.parentNode;for(C(i,"destroy"),i.renderer.forExport?s(S,i):S[i.index]=void 0,m.chartCount--,i.renderTo.removeAttribute("data-highcharts-chart"),D(i),e=t.length;e--;)t[e]=t[e].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),e=n.length;e--;)n[e]=n[e].destroy();
1"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(e){var t=i[e];t&&t.destroy&&(i[e]=t.destroy())}),o&&(o.innerHTML="",D(o),r&&T(o)),d(i,function(e,t){delete i[t]})},firstRender:function(){var t=this,e=t.options;t.isReadyToRender&&!t.isReadyToRender()||(t.getContainer(),t.resetMargins(),t.setChartSize(),t.propFromSeries(),t.getAxes(),(i(e.series)?e.series:[]).forEach(function(e){t.initSeries(e)}),t.linkSeries(),C(t,"beforeRender"),A&&(t.pointer=new A(t,e)),t.render(),!t.renderer.imgCount&&t.onload&&t.onload(),t.temporaryDisplay(!0))},onload:function(){this.callbacks.concat([this.callback]).forEach(function(e){e&&void 0!==this.index&&e.apply(this,[this])},this),C(this,"load"),C(this,"render"),a(this.index)&&this.setReflow(this.options.chart.reflow),this.onload=null}})}),e(t,"parts/ScrollablePlotArea.js",[t["parts/Globals.js"]],function(a){var s=a.addEvent,e=a.Chart;s(e,"afterSetChartSize",function(e){var t=this.options.chart.scrollablePlotArea,i=t&&t.minWidth;if(t=t&&t.minHeight,!this.renderer.forExport){if(i){if(this.scrollablePixelsX=i=Math.max(0,i-this.chartWidth)){this.plotWidth+=i,this.inverted?(this.clipBox.height+=i,this.plotBox.height+=i):(this.clipBox.width+=i,this.plotBox.width+=i);var o={1:{name:"right",value:i}}}}else t&&(this.scrollablePixelsY=i=Math.max(0,t-this.chartHeight))&&(this.plotHeight+=i,this.inverted?(this.clipBox.width+=i,this.plotBox.width+=i):(this.clipBox.height+=i,this.plotBox.height+=i),o={2:{name:"bottom",value:i}});o&&!e.skipAxes&&this.axes.forEach(function(n){o[n.side]?n.getPlotLinePath=function(){var e=o[n.side].name,t=this[e];this[e]=t-o[n.side].value;var i=a.Axis.prototype.getPlotLinePath.apply(this,arguments);return this[e]=t,i}:(n.setAxisSize(),n.setAxisTranslation())})}}),s(e,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()}),e.prototype.setUpScrolling=function(){var e={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(e.overflowX="auto"),this.scrollablePixelsY&&(e.overflowY="auto"),this.scrollingContainer=a.createElement("div",{className:"highcharts-scrolling"},e,this.renderTo),this.innerContainer=a.createElement("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},e.prototype.moveFixedElements=function(){var e,t=this.container,i=this.fixedRenderer,n=".highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-reset-zoom .highcharts-subtitle .highcharts-title .highcharts-legend-checkbox".split(" ");this.scrollablePixelsX&&!this.inverted?e=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted?e=".highcharts-xaxis":this.scrollablePixelsY&&!this.inverted?e=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(e=".highcharts-yaxis"),n.push(e,e+"-labels"),n.forEach(function(e){[].forEach.call(t.querySelectorAll(e),function(e){(e.namespaceURI===i.SVG_NS?i.box:i.box.parentNode).appendChild(e),e.style.pointerEvents="auto"})})},e.prototype.applyFixed=function(){var e,t=!this.fixedDiv,i=this.options.chart.scrollablePlotArea;t?(this.fixedDiv=a.createElement("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:2},null,!0),this.renderTo.insertBefore(this.fixedDiv,this.renderTo.firstChild),this.renderTo.style.overflow="visible",this.fixedRenderer=e=new a.Renderer(this.fixedDiv,this.chartWidth,this.chartHeight),this.scrollableMask=e.path().attr({fill:a.color(this.options.chart.backgroundColor||"#fff").setOpacity(a.pick(i.opacity,.85)).get(),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),this.moveFixedElements(),s(this,"afterShowResetZoom",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),e=this.chartWidth+(this.scrollablePixelsX||0);var n=this.chartHeight+(this.scrollablePixelsY||0);a.stop(this.container),this.container.style.width=e+"px",this.container.style.height=n+"px",this.renderer.boxWrapper.attr({width:e,height:n,viewBox:[0,0,e,n].join(" ")}
1),this.chartBackground.attr({width:e,height:n}),this.scrollablePixelsY&&(this.scrollingContainer.style.height=this.chartHeight+"px"),t&&(i.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*i.scrollPositionX),i.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*i.scrollPositionY)),n=this.axisOffset,t=this.plotTop-n[0]-1,i=this.plotLeft-n[3]-1,e=this.plotTop+this.plotHeight+n[2]+1,n=this.plotLeft+this.plotWidth+n[1]+1;var o=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),r=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);t=this.scrollablePixelsX?["M",0,t,"L",this.plotLeft-1,t,"L",this.plotLeft-1,e,"L",0,e,"Z","M",o,t,"L",this.chartWidth,t,"L",this.chartWidth,e,"L",o,e,"Z"]:this.scrollablePixelsY?["M",i,0,"L",i,this.plotTop-1,"L",n,this.plotTop-1,"L",n,0,"Z","M",i,r,"L",i,this.chartHeight,"L",n,this.chartHeight,"L",n,r,"Z"]:["M",0,0],"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:t})}}),e(t,"parts/Point.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],function(l,e){var o,n=e.defined,r=e.erase,c=e.isArray,u=e.isNumber,a=e.isObject,s=l.extend,d=l.fireEvent,h=l.format,p=l.pick,f=l.uniqueKey,m=l.removeEvent;l.Point=o=function(){},l.Point.prototype={init:function(e,t,i){return this.series=e,this.applyOptions(t,i),this.id=n(this.id)?this.id:f(),this.resolveColor(),e.chart.pointCount++,d(this,"afterInit"),this},resolveColor:function(){var e=this.series,t=e.chart.options.chart.colorCount,i=e.chart.styledMode;i||this.options.color||(this.color=e.color),e.options.colorByPoint?(i||(t=e.options.colors||e.chart.options.colors,this.color=this.color||t[e.colorCounter],t=t.length),i=e.colorCounter,e.colorCounter++,e.colorCounter===t&&(e.colorCounter=0)):i=e.colorIndex,this.colorIndex=p(this.colorIndex,i)},applyOptions:function(e,t){var i=this.series,n=i.options.pointValKey||i.pointValKey;return e=o.prototype.optionsToObject.call(this,e),s(this,e),this.options=this.options?s(this.options,e):e,e.group&&delete this.group,e.dataLabels&&delete this.dataLabels,n&&(this.y=this[n]),this.formatPrefix=(this.isNull=p(this.isValid&&!this.isValid(),null===this.x||!u(this.y)))?"null":"point",this.selected&&(this.state="select"),"name"in this&&void 0===t&&i.xAxis&&i.xAxis.hasNames&&(this.x=i.xAxis.nameToX(this)),void 0===this.x&&i&&(this.x=void 0===t?i.autoIncrement(this):t),this},setNestedProperty:function(e,o,t){return t.split(".").reduce(function(e,t,i,n){return e[t]=n.length-1===i?o:a(e[t],!0)?e[t]:{},e[t]},e),e},optionsToObject:function(e){var t={},i=this.series,n=i.options.keys,o=n||i.pointArrayMap||["y"],r=o.length,a=0,s=0;if(u(e)||null===e)t[o[0]]=e;else if(c(e))for(!n&&e.length>r&&("string"===(i=typeof e[0])?t.name=e[0]:"number"===i&&(t.x=e[0]),a++);s<r;)n&&void 0===e[a]||(0<o[s].indexOf(".")?l.Point.prototype.setNestedProperty(t,e[a],o[s]):t[o[s]]=e[a]),a++,s++;else"object"==typeof e&&((t=e).dataLabels&&(i._hasPointLabels=!0),e.marker&&(i._hasPointMarkers=!0));return t},getClassName:function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(void 0!==this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")},getZone:function(){var e=this.series,t=e.zones;e=e.zoneAxis||"y";var i,n=0;for(i=t[n];this[e]>=i.value;)i=t[++n];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=i&&i.color&&!this.options.color?i.color:this.nonZonedColor,i},destroy:function(){var e,t=this.series.chart,i=t.hoverPoints;for(e in t.pointCount--,i&&(this.setState(),r(i,this),i.length||(t.hoverPoints=null)),this===t.hoverPoint&&this.onMouseOut(),(this.graphic||this.dataLabel||this.dataLabels)&&(m(this),this.destroyElements()),this.legendItem&&t.legend.destroyItem(this),this)this[e]=null},destroyElements:function(i){var e,n=this,t=[];for((i=i||{graphic:1,dataLabel:1}).graphic&&t.push("graphic","shadowGroup"),i.dataLabel&&t.push("dataLabel","dataLabelUpper","connector"),e=t.length;e--;){var o=t[e];n[o]&&(n[o]=n[o].destroy())}["dataLabel","connector"].forEach(function(e){var t=e+"s";i[e]&&n[t]&&(n[t].forEach(function(e){e.element&&e.destroy()}),delete n[t])})},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(t){var e=this.series,i=e.tooltipOptions,n=p(i.valueDecimals,""),o=i.valuePrefix||"",r=i.valueSuffix||"";return e.chart.styledMode&&(t=e.chart.tooltip.styledModeFormat(t)),(e.pointArrayMap||["y"]).forEac
1h(function(e){e="{point."+e,(o||r)&&(t=t.replace(RegExp(e+"}","g"),o+e+"}"+r)),t=t.replace(RegExp(e+"}","g"),e+":,."+n+"f}")}),h(t,{point:this,series:this.series},e.chart.time)},firePointEvent:function(e,t,i){var n=this,o=this.series.options;(o.point.events[e]||n.options&&n.options.events&&n.options.events[e])&&this.importEvents(),"click"===e&&o.allowPointSelect&&(i=function(e){n.select&&n.select(null,e.ctrlKey||e.metaKey||e.shiftKey)}),d(this,e,t,i)},visible:!0}}),e(t,"parts/Series.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],function(x,e){var C=e.defined,l=e.erase,M=e.isArray,P=e.isNumber,T=e.isString,c=e.objectEach,f=e.splat,a=x.addEvent,u=x.animObject,p=x.arrayMax,m=x.arrayMin,A=x.correctFloat,d=x.defaultOptions,t=x.defaultPlotOptions,g=x.extend,E=x.fireEvent,h=x.merge,D=x.pick,v=x.removeEvent,b=x.SVGElement,y=x.syncTimeout,S=x.win;x.Series=x.seriesType("line",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1e3},events:{},marker:{lineWidth:0,lineColor:"#ffffff",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{align:"center",formatter:function(){return null===this.y?"":x.numberFormat(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"},{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,isCartesian:!0,parallelArrays:["x","y"],pointClass:x.Point,requireSorting:!0,sorted:!0,init:function(e,t){E(this,"init",{options:t});var i,n=this,o=e.series;this.eventOptions=this.eventOptions||{},n.chart=e,n.options=t=n.setOptions(t),n.linkedSeries=[],n.bindAxes(),g(n,{name:t.name,state:"",visible:!1!==t.visible,selected:!0===t.selected});var r=t.events;c(r,function(e,t){x.isFunction(e)&&n.eventOptions[t]!==e&&(x.isFunction(n.eventOptions[t])&&v(n,t,n.eventOptions[t]),n.eventOptions[t]=e,a(n,t,e))}),(r&&r.click||t.point&&t.point.events&&t.point.events.click||t.allowPointSelect)&&(e.runTrackerClick=!0),n.getColor(),n.getSymbol(),n.parallelArrays.forEach(function(e){n[e+"Data"]||(n[e+"Data"]=[])}),n.points||n.data||n.setData(t.data,!1),n.isCartesian&&(e.hasCartesianSeries=!0),o.length&&(i=o[o.length-1]),n._i=D(i&&i._i,-1)+1,e.orderSeries(this.insert(o)),E(this,"afterInit")},insert:function(e){var t,i=this.options.index;if(P(i)){for(t=e.length;t--;)if(i>=D(e[t].options.index,e[t]._i)){e.splice(t+1,0,this);break}-1===t&&e.unshift(this),t+=1}else e.push(this);return D(t,e.length-1)},bindAxes:function(){var i,n=this,o=n.options,e=n.chart;E(this,"bindAxes",null,function(){(n.axisTypes||[]).forEach(function(t){e[t].forEach(function(e){i=e.options,(o[t]===i.index||void 0!==o[t]&&o[t]===i.id||void 0===o[t]&&0===i.index)&&(n.insert(e.series),(n[t]=e).isDirty=!0)}),n[t]||n.optionalAxis===t||x.error(18,!0,e)})})},updateParallelArrays:function(i,n){var o=i.series,t=arguments,e=P(n)?function(e){var t="y"===e&&o.toYData?o.toYData(i):i[e];o[e+"Data"][n]=t}:function(e){Array.prototype[n].apply(o[e+"Data"],Array.prototype.slice.call(t,2))};o.parallelArrays.forEach(e)},hasData:function(){return this.visible&&void 0!==this.dataMax&&void 0!==this.dataMin||this.visible&&this.yData&&0<this.yData.length},autoIncrement:function(){var e,t=this.options,i=this.xIncrement,n=t.pointIntervalUnit,o=this.chart.time;return i=D(i,t.pointStart,0),this.pointInterval=e=D(this.pointInterval,t.pointInterval,1),n&&(t=new o.Date(i),"day"===n?o.set("Date",t,o.get("Date",t)+e):"month"===n?o.set("Month",t,o.get("Month",t)+e):"year"===n&&o.set("FullYear",t,o.get("FullYear",t)+e),e=t.getTime()-i),this.xIncrement=i+e,i},setOptions:function(e){var t=this.chart,i=t.options,n=i.plotOptions,o=t.userOptions||{};e=h(e),t=t.styledMode;var r={plotOptions:n,userOptions:e};E(this,"setOptions",r);var a=r.plotOptions[this.type],s=o.plotOptions||{};return this.userOptions=r.userOptions,o=h(a,n.series,o.plotOptions&&o.plotOptions[this.type],e),this.tooltipOptions=h(d.tooltip,d.plotOptions.series&&d.plotOptions.series.tooltip,d.plotOptions[this.type].tooltip,i.tooltip.userOptions,n.series&&n.series.tooltip,n[this.type].tooltip,e.tooltip),this.stickyTracking=D(e.stickyTracking,s[this.type]&&s[this.type].stickyTracking,s.series&&s.series.stickyTracking,!(!this.tooltipOptions.shared||this.noSharedTooltip)||o.stickyTracking),null===a.marker&&delete o.marker,this.zoneAxis=o.zoneAxis,i=this.zones=(o.zones||[]).slice(),!o.negativeColor&&!o.negativeFillColor||o.zones||(n={value:o[this.zoneAxis+"Threshold"]||o.threshold||0,className:"highcharts-negative"},t||(n.color=o.negativeColor,n.fillColor=o.negativeFillColor),i.push(n)),i.length&&C(i[i.length-1].value)&&i.push(t?{}:{color:this.color,fillColor:this.fillColor}),E(this,"afterSetOptions",{options:o}),o},getName:function(){return D(this.options.name,"Series "+(this.index+1))},getCyclic:function(e,t,i){var n=this.chart,o=this.userOptions,r=e+"Index",a=e+"Counter",s=i?i.length:D(n.options.chart[e+"Count"],n[e+"Count"]);if(!t){var l=D(o[r],o["_"+r]);C(l)||(n.series.length||(n[a]=0),o["_"+r]=l=n[a]%s,n[a]+=1),i&&(t=i[l])}void 0!==l&&(this[r]=l),this[e]=t},getColor:function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.options.color=null:this.getCyclic("color",this.options.color||t[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)},findPointIndex:function(e,t){var i=e.id;e=e.x;var n,o=this.points;if(i){var r=(i=this.chart.get(i))&&i.index;void 0!==r&&(n=!0)}return void 0===r&&P(e)&&(r=this.xData.indexOf(e,t)),-1!==r&&void 0!==r&&this.cropped&&(r=r>=this.cropStart?r-this.cropStart:r),!n&&o[r]&&o[r].touched&&(r=void 0),r},drawLegendSymbol:x.LegendSymbolMixin.drawLineMarker,updateData:function(e){var o,t,r,a=this.options,s=this.points,l=[],c=this.requireSorting,u=e.length===s.length,i=!0;if(this.xIncrement=null,e.forEach(function(e,t){var i=C(e)&&this.pointClass.prototype.optionsToObject.call({series:this},e)||{},n=i.x;(i.id||P(n))&&(-1===(n=this.findPointIndex(i,r))||void 0===n?l.push(e):s[n]&&e!==a.data[n]?(s[n].update(e,!1,null,!1),s[n].touched=!0,c&&(r=n+1)):s[n]&&(s[n].touched=!0),(!u||t!==n||this.hasDerivedData)&&(o=!0))},this),o)for(e=s.length;e--;)(t=s[e])&&!t.touched&&t.remove(!1);else u?e.forEach(function(e,t){s[t].update&&e!==s[t].y&&s[t].update(e,!1,null,!1)}):i=!1;
1return s.forEach(function(e){e&&(e.touched=!1)}),!!i&&(l.forEach(function(e){this.addPoint(e,!1,null,null,!1)},this),!0)},setData:function(e,t,i,n){var o,r,a=this,s=a.points,l=s&&s.length||0,c=a.options,u=a.chart,d=null,h=a.xAxis,p=c.turboThreshold,f=this.xData,m=this.yData,g=(o=a.pointArrayMap)&&o.length,v=c.keys,b=0,y=1;if(o=(e=e||[]).length,t=D(t,!0),!1!==n&&o&&l&&!a.cropped&&!a.hasGroupedData&&a.visible&&!a.isSeriesBoosting&&(r=this.updateData(e)),!r){if(a.xIncrement=null,a.colorCounter=0,this.parallelArrays.forEach(function(e){a[e+"Data"].length=0}),p&&p<o){for(i=0;null===d&&i<o;)d=e[i],i++;if(P(d))for(i=0;i<o;i++)f[i]=this.autoIncrement(),m[i]=e[i];else if(M(d))if(g)for(i=0;i<o;i++)d=e[i],f[i]=d[0],m[i]=d.slice(1,g+1);else for(v&&(b=0<=(b=v.indexOf("x"))?b:0,y=0<=(y=v.indexOf("y"))?y:1),i=0;i<o;i++)d=e[i],f[i]=d[b],m[i]=d[y];else x.error(12,!1,u)}else for(i=0;i<o;i++)void 0!==e[i]&&(d={series:a},a.pointClass.prototype.applyOptions.apply(d,[e[i]]),a.updateParallelArrays(d,i));for(m&&T(m[0])&&x.error(14,!0,u),a.data=[],a.options.data=a.userOptions.data=e,i=l;i--;)s[i]&&s[i].destroy&&s[i].destroy();h&&(h.minRange=h.userMinRange),a.isDirty=u.isDirtyBox=!0,a.isDirtyData=!!s,i=!1}"point"===c.legendType&&(this.processData(),this.generatePoints()),t&&u.redraw(i)},processData:function(e){var t=this.xData,i=this.yData,n=t.length,o=0,r=this.xAxis,a=this.options,s=a.cropThreshold,l=this.getExtremesFromAll||a.getExtremesFromAll,c=this.isCartesian;a=r&&r.val2lin;var u=r&&r.isLog,d=this.requireSorting;if(c&&!this.isDirty&&!r.isDirty&&!this.yAxis.isDirty&&!e)return!1;if(r)var h=(e=r.getExtremes()).min,p=e.max;if(c&&this.sorted&&!l&&(!s||s<n||this.forceCrop))if(t[n-1]<h||t[0]>p)t=[],i=[];else if(this.yData&&(t[0]<h||t[n-1]>p)){t=(o=this.cropData(this.xData,this.yData,h,p)).xData,i=o.yData,o=o.start;var f=!0}for(s=t.length||1;--s;)if(0<(n=u?a(t[s])-a(t[s-1]):t[s]-t[s-1])&&(void 0===m||n<m))var m=n;else n<0&&d&&(x.error(15,!1,this.chart),d=!1);this.cropped=f,this.cropStart=o,this.processedXData=t,this.processedYData=i,this.closestPointRange=this.basePointRange=m},cropData:function(e,t,i,n,o){var r,a=e.length,s=0,l=a;for(o=D(o,this.cropShoulder),r=0;r<a;r++)if(e[r]>=i){s=Math.max(0,r-o);break}for(i=r;i<a;i++)if(e[i]>n){l=i+o;break}return{xData:e.slice(s,l),yData:t.slice(s,l),start:s,end:l}},generatePoints:function(){var e,t=this.options,i=t.data,n=this.data,o=this.processedXData,r=this.processedYData,a=this.pointClass,s=o.length,l=this.cropStart||0,c=this.hasGroupedData;t=t.keys;var u,d=[];for(n||c||((n=[]).length=i.length,n=this.data=n),t&&c&&(this.options.keys=!1),u=0;u<s;u++){var h=l+u;if(c){var p=(new a).init(this,[o[u]].concat(f(r[u])));p.dataGroup=this.groupMap[u],p.dataGroup.options&&(p.options=p.dataGroup.options,g(p,p.dataGroup.options),delete p.dataLabels)}else(p=n[h])||void 0===i[h]||(n[h]=p=(new a).init(this,i[h],o[u]));p&&(p.index=h,d[u]=p)}if(this.options.keys=t,n&&(s!==(e=n.length)||c))for(u=0;u<e;u++)u!==l||c||(u+=s),n[u]&&(n[u].destroyElements(),n[u].plotX=void 0);this.data=n,this.points=d,E(this,"afterGeneratePoints")},getXExtremes:function(e){return{min:m(e),max:p(e)}},getExtremes:function(e){var t,i=this.yAxis,n=this.processedXData,o=[],r=0,a=this.xAxis.getExtremes(),s=a.min,l=a.max,c=this.requireSorting?this.cropShoulder:0;for(a=(e=e||this.stackedYData||this.processedYData||[]).length,t=0;t<a;t++){var u=n[t],d=e[t],h=(P(d)||M(d))&&(!i.positiveValuesOnly||d.length||0<d);if(u=this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||(n[t+c]||u)>=s&&(n[t-c]||u)<=l,h&&u)if(h=d.length)for(;h--;)P(d[h])&&(o[r++]=d[h]);else o[r++]=d}this.dataMin=m(o),this.dataMax=p(o),E(this,"afterGetExtremes")},translate:function(){this.processedXData||this.processData(),this.generatePoints();var e,t,i=this.options,n=i.stacking,o=this.xAxis,r=o.categories,a=this.yAxis,s=this.points,l=s.length,c=!!this.modifyValue,u=this.pointPlacementToXValue(),d=P(u),h=i.threshold,p=i.startFromThreshold?h:0,f=this.zoneAxis||"y",m=Number.MAX_VALUE;for(e=0;e<l;e++){var g=s[e],v=g.x,b=g.y,y=g.low,x=n&&a.stacks[(this.negStacks&&b<(p?0:h)?"-":"")+this.stackKey];if(a.positiveValuesOnly&&null!==b&&b<=0&&(g.isNull=!0),g.plotX=t=A(Math.min(Math.max(-1e5,o.translate(v,0,0,0,1,u,"flags"===this.type)),1e5)),n&&this.visible&&x&&x[v]){var T=this.getStackIndicator(T,v,this.index);if(!g.isNull)var S=x[v],w=S.points[T.key]}if(M(w)&&(y=w[0],b=w[1],y===p&&T.key===x[v].base&&(y=D(P(h)&&h,a.min)),a.positiveValuesOnly&&y<=0&&(y=null),g.total=g.stackTotal=S.total,g.percentage=S.total&&g.y/S.total*100,g.stackY=b,S.setOffset(this.pointXOffset||0,this.barW||0)),g.yBottom=C(y)?Math.min(Math.max(-1e5,a.translate(y,0,1,0,1)),1e5):null,c&&(b=this.modifyValue(b,g)),g.plotY=b="number"==typeof b&&1/0!==b?Math.min(Math.max(-1e5,a.translate(b,0,1,0,1)),1e5):void 0,g.isInside=void 0!==b&&0<=b&&b<=a.len&&0<=t&&t<=o.len,g.clientX=d?A(o.translate(v,0,0,0,1,u)):t,g.negative=g[f]<(i[f+"Threshold"]||h||0),g.category=r&&void 0!==r[g.x]?r[g.x]:g.x,!g.isNull){void 0!==k&&(m=Math.min(m,Math.abs(t-k)));var k=t}g.zone=this.zones.length&&g.getZone()}this.closestPointRangePx=m,E(this,"afterTranslate")},getValidPoints:function(e,t,i){var n=this.chart;return(e||this.points||[]).filter(function(e){return!(t&&!n.isInsidePlot(e.plotX,e.plotY,n.inverted))&&(i||!e.isNull)})},getClipBox:function(e,t){var i=this.options,n=this.chart,o=n.inverted,r=this.xAxis,a=r&&this.yAxis;return e&&!1===i.clip&&a?e=o?{y:-n.chartWidth+a.len+a.pos,height:n.chartWidth,width:n.chartHe
1ight,x:-n.chartHeight+r.len+r.pos}:{y:-a.pos,height:n.chartHeight,width:n.chartWidth,x:-r.pos}:(e=this.clipBox||n.clipBox,t&&(e.width=n.plotSizeX,e.x=0)),t?{width:e.width,x:e.x}:e},setClip:function(e){var t=this.chart,i=this.options,n=t.renderer,o=t.inverted,r=this.clipBox,a=this.getClipBox(e),s=this.sharedClipKey||["_sharedClip",e&&e.duration,e&&e.easing,a.height,i.xAxis,i.yAxis].join(),l=t[s],c=t[s+"m"];l||(e&&(a.width=0,o&&(a.x=t.plotSizeX+(!1!==i.clip?0:t.plotTop)),t[s+"m"]=c=n.clipRect(o?t.plotSizeX+99:-99,o?-t.plotLeft:-t.plotTop,99,o?t.chartWidth:t.chartHeight)),t[s]=l=n.clipRect(a),l.count={length:0}),e&&!l.count[this.index]&&(l.count[this.index]=!0,l.count.length+=1),(!1!==i.clip||e)&&(this.group.clip(e||r?l:t.clipRect),this.markerGroup.clip(c),this.sharedClipKey=s),e||(l.count[this.index]&&(delete l.count[this.index],--l.count.length),0===l.count.length&&s&&t[s]&&(r||(t[s]=t[s].destroy()),t[s+"m"]&&(t[s+"m"]=t[s+"m"].destroy())))},animate:function(e){var t=this.chart,i=u(this.options.animation);if(e)this.setClip(i);else{var n=this.sharedClipKey;e=t[n];var o=this.getClipBox(i,!0);e&&e.animate(o,i),t[n+"m"]&&t[n+"m"].animate({width:o.width+99,x:o.x-(t.inverted?0:99)},i),this.animate=null}},afterAnimate:function(){this.setClip(),E(this,"afterAnimate"),this.finishedAnimating=!0},drawPoints:function(){var e,t=this.points,i=this.chart,n=this.options.marker,o=this[this.specialGroup]||this.markerGroup,r=this.xAxis,a=D(n.enabled,!(r&&!r.isRadial)||null,this.closestPointRangePx>=n.enabledThreshold*n.radius);if(!1!==n.enabled||this._hasPointMarkers)for(r=0;r<t.length;r++){var s=t[r],l=(e=s.graphic)?"animate":"attr",c=s.marker||{},u=!!s.marker,d=a&&void 0===c.enabled||c.enabled,h=!1!==s.isInside;if(d&&!s.isNull){d=D(c.symbol,this.symbol);var p=this.markerAttribs(s,s.selected&&"select");e?e[h?"show":"hide"](h).animate(p):h&&(0<p.width||s.hasImage)&&(s.graphic=e=i.renderer.symbol(d,p.x,p.y,p.width,p.height,u?c:n).add(o)),e&&!i.styledMode&&e[l](this.pointAttribs(s,s.selected&&"select")),e&&e.addClass(s.getClassName(),!0)}else e&&(s.graphic=e.destroy())}},markerAttribs:function(e,t){var i=this.options.marker,n=e.marker||{},o=n.symbol||i.symbol,r=D(n.radius,i.radius);return t&&(i=i.states[t],t=n.states&&n.states[t],r=D(t&&t.radius,i&&i.radius,r+(i&&i.radiusPlus||0))),e.hasImage=o&&0===o.indexOf("url"),e.hasImage&&(r=0),e={x:Math.floor(e.plotX)-r,y:e.plotY-r},r&&(e.width=e.height=2*r),e},pointAttribs:function(e,t){var i=this.options.marker,n=e&&e.options,o=n&&n.marker||{},r=this.color,a=n&&n.color,s=e&&e.color;n=D(o.lineWidth,i.lineWidth);var l=e&&e.zone&&e.zone.color;return e=1,r=a||l||s||r,a=o.fillColor||i.fillColor||r,r=o.lineColor||i.lineColor||r,t=t||"normal",i=i.states[t],t=o.states&&o.states[t]||{},n=D(t.lineWidth,i.lineWidth,n+D(t.lineWidthPlus,i.lineWidthPlus,0)),a=t.fillColor||i.fillColor||a,{stroke:r=t.lineColor||i.lineColor||r,"stroke-width":n,fill:a,opacity:e=D(t.opacity,i.opacity,e)}}
1,destroy:function(i){var e,t,n,o=this,r=o.chart,a=/AppleWebKit\/533/.test(S.navigator.userAgent),s=o.data||[];for(E(o,"destroy"),i||v(o),(o.axisTypes||[]).forEach(function(e){(n=o[e])&&n.series&&(l(n.series,o),n.isDirty=n.forceRedraw=!0)}),o.legendItem&&o.chart.legend.destroyItem(o),e=s.length;e--;)(t=s[e])&&t.destroy&&t.destroy();o.points=null,x.clearTimeout(o.animationTimeout),c(o,function(e,t){e instanceof b&&!e.survive&&e[a&&"group"===t?"hide":"destroy"]()}),r.hoverSeries===o&&(r.hoverSeries=null),l(r.series,o),r.orderSeries(),c(o,function(e,t){i&&"hcEvents"===t||delete o[t]})},getGraphPath:function(r,a,s){var e,l,c=this,u=c.options,d=u.step,h=[],p=[];return(e=(r=r||c.points).reversed)&&r.reverse(),(d={right:1,center:2}[d]||d&&3)&&e&&(d=4-d),!u.connectNulls||a||s||(r=this.getValidPoints(r)),r.forEach(function(e,t){var i=e.plotX,n=e.plotY,o=r[t-1];(e.leftCliff||o&&o.rightCliff)&&!s&&(l=!0),l=e.isNull&&!C(a)&&0<t?!u.connectNulls:!(!e.isNull||a)||(0===t||l?t=["M",e.plotX,e.plotY]:c.getPointSpline?t=c.getPointSpline(r,e,t):d?(t=1===d?["L",o.plotX,n]:2===d?["L",(o.plotX+i)/2,o.plotY,"L",(o.plotX+i)/2,n]:["L",i,o.plotY]).push("L",i,n):t=["L",i,n],p.push(e.x),d&&(p.push(e.x),2===d&&p.push(e.x)),h.push.apply(h,t),!1)}),h.xMap=p,c.graphPath=h},drawGraph:function(){var r=this,a=this.options,s=(this.gappedPath||this.getGraphPath).call(this),l=this.chart.styledMode,e=[["graph","highcharts-graph"]];l||e[0].push(a.lineColor||this.color||"#cccccc",a.dashStyle),(e=r.getZonesGraphs(e)).forEach(function(e,t){var i=e[0],n=r[i],o=n?"animate":"attr";n?(n.endX=r.preventGraphAnimation?null:s.xMap,n.animate({d:s})):s.length&&(r[i]=n=r.chart.renderer.path(s).addClass(e[1]).attr({zIndex:1}).add(r.group)),n&&!l&&(i={stroke:e[2],"stroke-width":a.lineWidth,fill:r.fillGraph&&r.color||"none"},e[3]?i.dashstyle=e[3]:"square"!==a.linecap&&(i["stroke-linecap"]=i["stroke-linejoin"]="round"),n[o](i).shadow(t<2&&a.shadow)),n&&(n.startX=s.xMap,n.isArea=s.isArea)})},getZonesGraphs:function(i){return this.zones.forEach(function(e,t){t=["zone-graph-"+t,"highcharts-graph highcharts-zone-graph-"+t+" "+(e.className||"")],this.chart.styledMode||t.push(e.color||this.color,e.dashStyle||this.options.dashStyle),i.push(t)},this),i},applyZones:function(){var i,n,o,r,a,s,l=this,c=this.chart,u=c.renderer,e=this.zones,d=this.clips||[],h=this.graph,p=this.area,f=Math.max(c.chartWidth,c.chartHeight),m=this[(this.zoneAxis||"y")+"Axis"],g=c.inverted,v=!1;if(e.length&&(h||p)&&m&&void 0!==m.min){var b=m.reversed,y=m.horiz;h&&!this.showLine&&h.hide(),p&&p.hide();var x=m.getExtremes();e.forEach(function(e,t){i=b?y?c.plotWidth:0:y?0:m.toPixels(x.min)||0,i=Math.min(Math.max(D(n,i),0),f),n=Math.min(Math.max(Math.round(m.toPixels(D(e.value,x.max),!0)||0),0),f),v&&(i=n=m.toPixels(x.max)),r=Math.abs(i-n),a=Math.min(i,n),s=Math.max(i,n),m.isXAxis?(o={x:g?s:a,y:0,width:r,height:f},y||(o.x=c.plotHeight-o.x)):(o={x:0,y:g?s:a,width:f,height:r},y&&(o.y=c.plotWidth-o.y)),g&&u.isVML&&(o=m.isXAxis?{x:0,y:b?a:s,height:o.width,width:c.chartWidth}:{x:o.y-c.plotLeft-c.spacingBox.x,y:0,width:o.height,height:c.chartHeight}),d[t]?d[t].animate(o):d[t]=u.clipRect(o),h&&l["zone-graph-"+t].clip(d[t]),p&&l["zone-area-"+t].clip(d[t]),v=e.value>x.max,l.resetZones&&0===n&&(n=void 0)}),this.clips=d}else l.visible&&(h&&h.show(!0),p&&p.show(!0))},invertGroups:function(t){function e(){["group","markerGroup"].forEach(function(e){i[e]&&(n.renderer.isVML&&i[e].attr({width:i.yAxis.len,height:i.xAxis.len}),i[e].width=i.yAxis.len,i[e].height=i.xAxis.len,i[e].invert(t))})}var i=this,n=i.chart;if(i.xAxis){var o=a(n,"resize",e);a(i,"destroy",o),e(),i.invertGroups=e}},plotGroup:function(e,t,i,n,o){var r=this[e],a=!r;return a&&(this[e]=r=this.chart.renderer.g().attr({zIndex:n||.1}).add(o)),r.addClass("highcharts-"+t+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(C(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(r.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),r.attr({visibility:i})[a?"attr":"animate"](this.getPlotBox()),r},getPlotBox:function(){var e=this.chart,t=this.xAxis,i=this.yAxis;return e.inverted&&(t=i,i=this.xAxis),{translateX:t?t.left:e.plotLeft,translateY:i?i.top:e.plotTop,scaleX:1,scaleY:1}},render:function(){var e=this,t=e.chart,i=e.options,n=!!e.animate&&t.renderer.isSVG&&u(i.animation).duration,o=e.visible?"inherit":"hidden",r=i.zIndex,a=e.hasRendered,s=t.seriesGroup,l=t.inverted;E(this,"render");var c=e.plotGroup("group","series",o,r,s);e.markerGroup=e.plotGroup("markerGroup","markers",o,r,s),n&&e.animate(!0),c.inverted=!(!e.isCartesian&&!e.invertable)&&l,e.drawGraph&&(e.drawGraph(),e.applyZones()),e.visible&&e.drawPoints(),e.drawDataLabels&&e.drawDataLabels(),e.redrawPoints&&e.redrawPoints(),e.drawTracker&&!1!==e.options.enableMouseTracking&&e.drawTracker(),e.invertGroups(l),!1===i.clip||e.sharedCl
1ipKey||a||c.clip(t.clipRect),n&&e.animate(),a||(e.animationTimeout=y(function(){e.afterAnimate()},n)),e.isDirty=!1,e.hasRendered=!0,E(e,"afterRender")},redraw:function(){var e=this.chart,t=this.isDirty||this.isDirtyData,i=this.group,n=this.xAxis,o=this.yAxis;i&&(e.inverted&&i.attr({width:e.plotWidth,height:e.plotHeight}),i.animate({translateX:D(n&&n.left,e.plotLeft),translateY:D(o&&o.top,e.plotTop)})),this.translate(),this.render(),t&&delete this.kdTree},kdAxisArray:["clientX","plotY"],searchPoint:function(e,t){var i=this.xAxis,n=this.yAxis,o=this.chart.inverted;return this.searchKDTree({clientX:o?i.len-e.chartY+i.pos:e.chartX-i.pos,plotY:o?n.len-e.chartX+n.pos:e.chartY-n.pos},t,e)},buildKDTree:function(e){this.buildingKdTree=!0;var a=this,t=-1<a.options.findNearestPointBy.indexOf("y")?2:1;delete a.kdTree,y(function(){a.kdTree=function e(t,i,n){var o;if(o=t&&t.length){var r=a.kdAxisArray[i%n];return t.sort(function(e,t){return e[r]-t[r]}),{point:t[o=Math.floor(o/2)],left:e(t.slice(0,o),i+1,n),right:e(t.slice(o+1),i+1,n)}}}(a.getValidPoints(null,!a.directTouch),t,t),a.buildingKdTree=!1},a.options.kdNow||e&&"touchstart"===e.type?0:1)},searchKDTree:function(e,t,i){var u=this,d=this.kdAxisArray[0],h=this.kdAxisArray[1],p=t?"distX":"dist";if(t=-1<u.options.findNearestPointBy.indexOf("y")?2:1,this.kdTree||this.buildingKdTree||this.buildKDTree(i),this.kdTree)return function e(t,i,n,o){var r=i.point,a=u.kdAxisArray[n%o],s=r,l=C(t[d])&&C(r[d])?Math.pow(t[d]-r[d],2):null,c=C(t[h])&&C(r[h])?Math.pow(t[h]-r[h],2):null;return c=(l||0)+(c||0),r.dist=C(c)?Math.sqrt(c):Number.MAX_VALUE,r.distX=C(l)?Math.sqrt(l):Number.MAX_VALUE,l=(a=t[a]-r[a])<0?"right":"left",i[c=a<0?"left":"right"]&&(s=(c=e(t,i[c],n+1,o))[p]<s[p]?c:r),i[l]&&Math.sqrt(a*a)<s[p]&&(s=(t=e(t,i[l],n+1,o))[p]<s[p]?t:s),s}(e,this.kdTree,t,t)},pointPlacementToXValue:function(){var e=this.options.pointPlacement;return"between"===e&&(e=.5),P(e)&&(e*=D(this.options.pointRange||this.xAxis.pointRange)),e}})}),e(t,"parts/Stacking.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],function(T,e){var S=e.defined,o=e.objectEach;e=T.Axis;var t=T.Chart,w=T.correctFloat,i=T.destroyObjectProperties,r=T.format,k=T.pick,c=T.Series;T.StackItem=function(e,t,i,n,o){var r=e.chart.inverted;this.axis=e,this.isNegative=i,this.options=t=t||{},this.x=n,this.total=null,this.points={},this.stack=o,this.rightCliff=this.leftCliff=0,this.alignOptions={align:t.align||(r?i?"left":"right":"center"),verticalAlign:t.verticalAlign||(r?"middle":i?"bottom":"top"),y:t.y,x:t.x},this.textAlign=t.textAlign||(r?i?"right":"left":"center")},T.StackItem.prototype={destroy:function(){i(this,this.axis)},render:function(e){var t=this.axis.chart,i=this.options,n=i.format;n=n?r(n,this,t.time):i.formatter.call(this),this.label?this.label.attr({text:n,visibility:"hidden"}):(this.label=t.renderer.label(n,null,null,i.shape,null,null,i.useHTML,!1,"stack-labels"),n={text:n,align:this.textAlign,rotation:i.rotation,padding:k(i.padding,0),visibility:"hidden"},this.label.attr(n),t.styledMode||this.label.css(i.style),this.label.added||this.label.add(e)),this.label.labelrank=t.plotHeight},setOffset:function(e,t,i,n){var o=this.axis,r=o.chart;if(n=o.translate(o.usePercentage?100:n||this.total,0,0,0,1),i=o.translate(i||0),i=S(n)&&Math.abs(n-i),e=r.xAxis[0].translate(this.x)+e,o=S(n)&&this.getStackBox(r,this,e,n,t,i,o),t=this.label,e=this.isNegative,n="justify"===k(this.options.overflow,"justify"),t&&o){var a=t.getBBox(),s=r.inverted?e?a.width:0:a.width/2,l=r.inverted?a.height/2:e?-4:a.height+4;t.align(this.alignOptions,null,o),i=t.alignAttr,t.show(),i.y-=l,n&&(i.x-=s,c.prototype.justifyDataLabel.call(this.axis,t,this.alignOptions,i,a,o),i.x+=s),t.alignAttr=i,t.attr({x:i.x,y:i.y}),k(!n&&this.options.crop,!0)&&((r=r.isInsidePlot(t.alignAttr.x-a.width/2,t.alignAttr.y)&&r.isInsidePlot(t.alignAttr.x+(r.inverted?e?-a.width:a.width:a.width/2),t.alignAttr.y+a.height))||t.hide())}},getStackBox:function(e,t,i,n,o,r,a){var s=t.axis.reversed,l=e.inverted;return e=a.height+a.pos-(l?e.plotLeft:e.plotTop),t=t.isNegative&&!s||!t.isNegative&&s,{x:l?t?n:n-r:i,y:l?e-i-o:t?e-n-r:e-n,width:l?r:o,height:l?o:r}}},t.prototype.getStacks=function(){var i=this,n=i.inverted;i.yAxis.forEach(function(e){e.stacks&&e.hasVisibleSeries&&(e.oldStacks=e.stacks)}
1),i.series.forEach(function(e){var t=e.xAxis&&e.xAxis.options||{};!e.options.stacking||!0!==e.visible&&!1!==i.options.chart.ignoreHiddenSeries||(e.stackKey=[e.type,k(e.options.stack,""),n?t.top:t.left,n?t.height:t.width].join())})},e.prototype.buildStacks=function(){var e,t=this.series,i=k(this.options.reversedStacks,!0),n=t.length;if(!this.isXAxis){for(this.usePercentage=!1,e=n;e--;)t[i?e:n-e-1].setStackedPoints();for(e=0;e<n;e++)t[e].modifyStacks()}},e.prototype.renderStackTotals=function(){var e=this.chart,t=e.renderer,i=this.stacks,n=this.stackTotalGroup;n||(this.stackTotalGroup=n=t.g("stack-labels").attr({visibility:"visible",zIndex:6}).add()),n.translate(e.plotLeft,e.plotTop),o(i,function(e){o(e,function(e){e.render(n)})})},e.prototype.resetStacks=function(){var n=this,e=n.stacks;n.isXAxis||o(e,function(i){o(i,function(e,t){e.touched<n.stacksTouched?(e.destroy(),delete i[t]):(e.total=null,e.cumulative=null)})})},e.prototype.cleanStacks=function(){if(!this.isXAxis){if(this.oldStacks)var e=this.stacks=this.oldStacks;o(e,function(e){o(e,function(e){e.cumulative=e.total})})}},c.prototype.setStackedPoints=function(){if(this.options.stacking&&(!0===this.visible||!1===this.chart.options.chart.ignoreHiddenSeries)){var e=this.processedXData,t=this.processedYData,i=[],n=t.length,o=this.options,r=o.threshold,a=k(o.startFromThreshold&&r,0),s=o.stack;o=o.stacking;var l,c,u=this.stackKey,d="-"+u,h=this.negStacks,p=this.yAxis,f=p.stacks,m=p.oldStacks;for(p.stacksTouched+=1,c=0;c<n;c++){var g=e[c],v=t[c],b=this.getStackIndicator(b,g,this.index),y=b.key,x=(l=h&&v<(a?0:r))?d:u;f[x]||(f[x]={}),f[x][g]||(m[x]&&m[x][g]?(f[x][g]=m[x][g],f[x][g].total=null):f[x][g]=new T.StackItem(p,p.options.stackLabels,l,g,s)),x=f[x][g],null!==v?(x.points[y]=x.points[this.index]=[k(x.cumulative,a)],S(x.cumulative)||(x.base=y),x.touched=p.stacksTouched,0<b.index&&!1===this.singleStacks&&(x.points[y][0]=x.points[this.index+","+g+",0"][0])):x.points[y]=x.points[this.index]=null,"percent"===o?(l=l?u:d,h&&f[l]&&f[l][g]?(l=f[l][g],x.total=l.total=Math.max(l.total,x.total)+Math.abs(v)||0):x.total=w(x.total+(Math.abs(v)||0))):x.total=w(x.total+(v||0)),x.cumulative=k(x.cumulative,a)+(v||0),null!==v&&(x.points[y].push(x.cumulative),i[c]=x.cumulative)}"percent"===o&&(p.usePercentage=!0),this.stackedYData=i,p.oldStacks={}}},c.prototype.modifyStacks=function(){var o,r=this,e=r.stackKey,a=r.yAxis.stacks,s=r.processedXData,l=r.options.stacking;r[l+"Stacker"]&&[e,"-"+e].forEach(function(e){for(var t,i,n=s.length;n--;)t=s[n],o=r.getStackIndicator(o,t,r.index,e),(i=(t=a[e]&&a[e][t])&&t.points[o.key])&&r[l+"Stacker"](i,t,n)})},c.prototype.percentStacker=function(e,t,i){t=t.total?100/t.total:0,e[0]=w(e[0]*t),e[1]=w(e[1]*t),this.stackedYData[i]=e[1]},c.prototype.getStackIndicator=function(e,t,i,n){return!S(e)||e.x!==t||n&&e.key!==n?e={x:t,index:0,key:n}:e.index++,e.key=[i,t,e.index].join(),e}}),e(t,"parts/Dynamics.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],function(m,e){var h=e.defined,r=e.erase,a=e.isArray,p=e.isNumber,d=e.isObject,f=e.isString,g=e.objectEach,v=e.splat,s=m.addEvent,l=m.animate,c=m.Axis;e=m.Chart;var u=m.createElement,b=m.css,y=m.extend,x=m.fireEvent,T=m.merge,S=m.pick,t=m.Point,i=m.Series,w=m.seriesTypes,k=m.setAnimation;m.cleanRecursively=function(i,n){var o={};return g(i,function(e,t){d(i[t],!0)&&!i.nodeType&&n[t]?(e=m.cleanRecursively(i[t],n[t]),Object.keys(e).length&&(o[t]=e)):(d(i[t])||i[t]!==n[t])&&(o[t]=i[t])}),o},y(e.prototype,{addSeries:function(e,t,i){var n,o=this;return e&&(t=S(t,!0),x(o,"addSeries",{options:e},function(){n=o.initSeries(e),o.isDirtyLegend=!0,o.linkSeries(),x(o,"afterAddSeries",{series:n}),t&&o.redraw(i)})),n},addAxis:function(e,t,i,n){var o=t?"xAxis":"yAxis",r=this.options;return e=T(e,{index:this[o].length,isX:t}),t=new c(this,e),r[o]=v(r[o]||{}),r[o].push(e),S(i,!0)&&this.redraw(n),t},showLoading:function(e){var t=this,i=t.options,n=t.loadingDiv,o=i.loading,r=function(){n&&b(n,{left:t.plotLeft+"px",top:t.plotTop+"px",width:t.plotWidth+"px",height:t.plotHeight+"px"})};n||(t.loadingDiv=n=u("div",{className:"highcharts-loading highcharts-loading-hidden"},null,t.container),t.loadingSpan=u("span",{className:"highcharts-loading-inner"}
1,null,n),s(t,"redraw",r)),n.className="highcharts-loading",t.loadingSpan.innerHTML=S(e,i.lang.loading,""),t.styledMode||(b(n,y(o.style,{zIndex:10})),b(t.loadingSpan,o.labelStyle),t.loadingShown||(b(n,{opacity:0,display:""}),l(n,{opacity:o.style.opacity||.5},{duration:o.showDuration||0}))),t.loadingShown=!0,r()},hideLoading:function(){var e=this.options,t=this.loadingDiv;t&&(t.className="highcharts-loading highcharts-loading-hidden",this.styledMode||l(t,{opacity:0},{duration:e.loading.hideDuration||100,complete:function(){b(t,{display:"none"})}})),this.loadingShown=!1},propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" "),collectionsWithUpdate:"xAxis yAxis zAxis series colorAxis pane".split(" "),update:function(e,t,o,i){var n,r,a,s=this,l={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle"},c=e.isResponsiveOptions,u=[];if(x(s,"update",{options:e}),c||s.setResponsive(!1,!0),e=m.cleanRecursively(e,s.options),T(!0,s.userOptions,e),n=e.chart){if(T(!0,s.options.chart,n),"className"in n&&s.setClassName(n.className),"reflow"in n&&s.setReflow(n.reflow),"inverted"in n||"polar"in n||"type"in n){s.propFromSeries();var d=!0}"alignTicks"in n&&(d=!0),g(n,function(e,t){-1!==s.propsRequireUpdateSeries.indexOf("chart."+t)&&(r=!0),-1!==s.propsRequireDirtyBox.indexOf(t)&&(s.isDirtyBox=!0),c||-1===s.propsRequireReflow.indexOf(t)||(a=!0)}),!s.styledMode&&"style"in n&&s.renderer.setStyle(n.style)}!s.styledMode&&e.colors&&(this.options.colors=e.colors),e.plotOptions&&T(!0,this.options.plotOptions,e.plotOptions),e.time&&this.time===m.time&&(this.time=new m.Time(e.time)),g(e,function(e,t){s[t]&&"function"==typeof s[t].update?s[t].update(e,!1):"function"==typeof s[l[t]]&&s[l[t]](e),"chart"!==t&&-1!==s.propsRequireUpdateSeries.indexOf(t)&&(r=!0)}),this.collectionsWithUpdate.forEach(function(i){if(e[i]){if("series"===i){var n=[];
1s[i].forEach(function(e,t){e.options.isInternal||n.push(S(e.options.index,t))})}v(e[i]).forEach(function(e,t){(t=h(e.id)&&s.get(e.id)||s[i][n?n[t]:t])&&t.coll===i&&(t.update(e,!1),o&&(t.touched=!0)),!t&&o&&s.collectionsWithInit[i]&&(s.collectionsWithInit[i][0].apply(s,[e].concat(s.collectionsWithInit[i][1]||[]).concat([!1])).touched=!0)}),o&&s[i].forEach(function(e){e.touched||e.options.isInternal?delete e.touched:u.push(e)})}}),u.forEach(function(e){e.remove&&e.remove(!1)}),d&&s.axes.forEach(function(e){e.update({},!1)}),r&&s.series.forEach(function(e){e.update({},!1)}),e.loading&&T(!0,s.options.loading,e.loading),d=n&&n.width,n=n&&n.height,f(n)&&(n=m.relativeLength(n,d||s.chartWidth)),a||p(d)&&d!==s.chartWidth||p(n)&&n!==s.chartHeight?s.setSize(d,n,i):S(t,!0)&&s.redraw(i),x(s,"afterUpdate",{options:e,redraw:t,animation:i})},setSubtitle:function(e){this.setTitle(void 0,e)}}),e.prototype.collectionsWithInit={xAxis:[e.prototype.addAxis,[!0]],yAxis:[e.prototype.addAxis,[!1]],series:[e.prototype.addSeries]},y(t.prototype,{update:function(e,t,i,n){function o(){a.applyOptions(e),null===a.y&&l&&(a.graphic=l.destroy()),d(e,!0)&&(l&&l.element&&e&&e.marker&&void 0!==e.marker.symbol&&(a.graphic=l.destroy()),e&&e.dataLabels&&a.dataLabel&&(a.dataLabel=a.dataLabel.destroy()),a.connector&&(a.connector=a.connector.destroy())),r=a.index,s.updateParallelArrays(a,r),u.data[r]=d(u.data[r],!0)||d(e,!0)?a.options:S(e,u.data[r]),s.isDirty=s.isDirtyData=!0,!s.fixedBox&&s.hasCartesianSeries&&(c.isDirtyBox=!0),"point"===u.legendType&&(c.isDirtyLegend=!0),t&&c.redraw(i)}var r,a=this,s=a.series,l=a.graphic,c=s.chart,u=s.options;t=S(t,!0),!1===n?o():a.firePointEvent("update",{options:e},o)},remove:function(e,t){this.series.removePoint(this.series.data.indexOf(this),e,t)}}),y(i.prototype,{addPoint:function(e,t,i,n,o){var r=this.options,a=this.data,s=this.chart,l=this.xAxis;l=l&&l.hasNames&&l.names;var c,u=r.data,d=this.xData;t=S(t,!0);var h={series:this};this.pointClass.prototype.applyOptions.apply(h,[e]);var p=h.x,f=d.length;if(this.requireSorting&&p<d[f-1])for(c=!0;f&&d[f-1]>p;)f--;this.updateParallelArrays(h,"splice",f,0,0),this.updateParallelArrays(h,f),l&&h.name&&(l[p]=h.name),u.splice(f,0,e),c&&(this.data.splice(f,0,null),this.processData()),"point"===r.legendType&&this.generatePoints(),i&&(a[0]&&a[0].remove?a[0].remove(!1):(a.shift(),this.updateParallelArrays(h,"shift"),u.shift())),!1!==o&&x(this,"addPoint",{point:h}),this.isDirtyData=this.isDirty=!0,t&&s.redraw(n)},removePoint:function(e,t,i){var n=this,o=n.data,r=o[e],a=n.points,s=n.chart,l=function(){a&&a.length===o.length&&a.splice(e,1),o.splice(e,1),n.options.data.splice(e,1),n.updateParallelArrays(r||{series:n},"splice",e,1),r&&r.destroy(),n.isDirty=!0,n.isDirtyData=!0,t&&s.redraw()};k(i,s),t=S(t,!0),r?r.firePointEvent("remove",null,l):l()},remove:function(e,t,i,n){function o(){r.destroy(n),r.remove=null,a.isDirtyLegend=a.isDirtyBox=!0,a.linkSeries(),S(e,!0)&&a.redraw(t)}var r=this,a=r.chart;!1!==i?x(r,"remove",null,o):o()},update:function(t,e){t=m.cleanRecursively(t,this.userOptions),x(this,"update",{options:t});var i,n=this,o=n.chart,r=n.userOptions,a=n.initialType||n.type,s=t.type||r.type||o.options.chart.type,l=!(this.hasDerivedData||t.dataGrouping||s&&s!==this.type||void 0!==t.pointStart||t.pointInterval||t.pointIntervalUnit||t.keys),c=w[a].prototype,u=["group","markerGroup","dataLabelsGroup","transformGroup"],d=["eventOptions","navigatorSeries","baseSeries"],h=n.finishedAnimating&&{animation:!1},p={};for(i in l&&(d.push("data","isDirtyData","points","processedXData","processedYData","xIncrement","_hasPointMarkers","_hasPointLabels","mapMap","mapData","minY","maxY","minX","maxX"),!1!==t.visible&&d.push("area","graph"),n.parallelArrays.forEach(function(e){d.push(e+"Data")}),t.data&&this.setData(t.data,!1)),t=T(r,h,{index:void 0===r.index?n.index:r.index,pointStart:S(r.pointStart,n.xData[0])},!l&&{data:n.options.data},t),l&&t.data&&(t.data=n.options.data),(d=u.concat(d)).forEach(function(e){d[e]=n[e],delete n[e]}),n.remove(!1,null,!1,!0),c)n[i]=void 0;if(w[s||a]?y(n,w[s||a].prototype):m.error(17,!0,o),d.forEach(function(e){n[e]=d[e]}),n.init(o,t),l&&this.points){var f=n.options;!1===f.visible?(p.graphic=1,p.dataLabel=1):n._hasPointLabels||(s=f.marker,c=f.dataLabels,s&&(!1===s.enabled||"symbol"in s)&&(p.graphic=1),c&&!1===c.enabled&&(p.dataLabel=1)),this.points.forEac
1h(function(e){e&&e.series&&(e.resolveColor(),Object.keys(p).length&&e.destroyElements(p),!1===f.showInLegend&&e.legendItem&&o.legend.destroyItem(e))},this)}t.zIndex!==r.zIndex&&u.forEach(function(e){n[e]&&n[e].attr({zIndex:t.zIndex})}),n.initialType=a,o.linkSeries(),x(this,"afterUpdate"),S(e,!0)&&o.redraw(!!l&&void 0)},setName:function(e){this.name=this.options.name=this.userOptions.name=e,this.chart.isDirtyLegend=!0}}),y(c.prototype,{update:function(e,t){var i=this.chart,n=e&&e.events||{};e=T(this.userOptions,e),i.options[this.coll].indexOf&&(i.options[this.coll][i.options[this.coll].indexOf(this.userOptions)]=e),g(i.options[this.coll].events,function(e,t){void 0===n[t]&&(n[t]=void 0)}),this.destroy(!0),this.init(i,y(e,{events:n})),i.isDirtyBox=!0,S(t,!0)&&i.redraw()},remove:function(e){for(var t=this.chart,i=this.coll,n=this.series,o=n.length;o--;)n[o]&&n[o].remove(!1);r(t.axes,this),r(t[i],this),a(t.options[i])?t.options[i].splice(this.options.index,1):delete t.options[i],t[i].forEach(function(e,t){e.options.index=e.userOptions.index=t}),this.destroy(),t.isDirtyBox=!0,S(e,!0)&&t.redraw()},setTitle:function(e,t){this.update({title:e},t)},setCategories:function(e,t){this.update({categories:e},t)}})}),e(t,"parts/AreaSeries.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],function(a,e){var r=e.objectEach,l=a.color,v=a.pick,b=a.Series;(e=a.seriesType)("area","line",{softThreshold:!1,threshold:0},{singleStacks:!1,getStackPoints:function(e){var l,t=[],c=[],i=this.xAxis,n=this.yAxis,u=n.stacks[this.stackKey],d={},h=this.index,o=n.series,p=o.length,f=v(n.options.reversedStacks,!0)?1:-1;if(e=e||this.points,this.options.stacking){for(l=0;l<e.length;l++)e[l].leftNull=e[l].rightNull=null,d[e[l].x]=e[l];r(u,function(e,t){null!==e.total&&c.push(t)}),c.sort(function(e,t){return e-t});var m=o.map(function(e){return e.visible});c.forEach(function(o,r){var a,s,e=0;if(d[o]&&!d[o].isNull)t.push(d[o]),[-1,1].forEach(function(e){var t=1===e?"rightNull":"leftNull",i=0,n=u[c[r+e]];if(n)for(l=h;0<=l&&l<p;)(a=n.points[l])||(l===h?d[o][t]=!0:m[l]&&(s=u[o].points[l])&&(i-=s[1]-s[0])),l+=f;d[o][1===e?"rightCliff":"leftCliff"]=i});else{for(l=h;0<=l&&l<p;){if(a=u[o].points[l]){e=a[1];break}l+=f}e=n.translate(e,0,1,0,1),t.push({isNull:!0,plotX:i.translate(o,0,0,0,1),x:o,plotY:e,yBottom:e})}})}return t},getGraphPath:function(s){var e,t=b.prototype.getGraphPath,i=this.options,l=i.stacking,c=this.yAxis,u=[],d=[],h=this.index,p=c.stacks[this.stackKey],f=i.threshold,m=Math.round(c.getThreshold(i.threshold));i=a.pick(i.connectNulls,"percent"===l);var n=function(e,t,i){var n=s[e];e=l&&p[n.x].points[h];var o=n[i+"Null"]||0;if(i=n[i+"Cliff"]||0,n=!0,i||o){var r=(o?e[0]:e[1])+i,a=e[0]+i;n=!!o}else!l&&s[t]&&s[t].isNull&&(r=a=f);void 0!==r&&(d.push({plotX:g,plotY:null===r?m:c.getThreshold(r),isNull:n,isCliff:!0}),u.push({plotX:g,plotY:null===a?m:c.getThreshold(a),doCurve:!1}))};for(s=s||this.points,l&&(s=this.getStackPoints(s)),e=0;e<s.length;e++){var o=s[e].isNull,g=v(s[e].rectPlotX,s[e].plotX),r=v(s[e].yBottom,m);o&&!i||(i||n(e,e-1,"left"),o&&!l&&i||(d.push(s[e]),u.push({x:e,plotX:g,plotY:r})),i||n(e,e+1,"right"))}return e=t.call(this,d,!0,!0),u.reversed=!0,(o=t.call(this,u,!0,!0)).length&&(o[0]="L"),o=e.concat(o),t=t.call(this,d,!1,i),o.xMap=e.xMap,this.areaPath=o,t},drawGraph:function(){this.areaPath=[],b.prototype.drawGraph.apply(this);var r=this,a=this.areaPath,s=this.options,i=[["area","highcharts-area",this.color,s.fillColor]];this.zones.forEach(function(e,t){i.push(["zone-area-"+t,"highcharts-area highcharts-zone-area-"+t+" "+e.className,e.color||r.color,e.fillColor||s.fillColor])}
1),i.forEach(function(e){var t=e[0],i=r[t],n=i?"animate":"attr",o={};i?(i.endX=r.preventGraphAnimation?null:a.xMap,i.animate({d:a})):(o.zIndex=0,(i=r[t]=r.chart.renderer.path(a).addClass(e[1]).add(r.group)).isArea=!0),r.chart.styledMode||(o.fill=v(e[3],l(e[2]).setOpacity(v(s.fillOpacity,.75)).get())),i[n](o),i.startX=a.xMap,i.shiftUnit=s.step?2:1})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle})}),e(t,"parts/SplineSeries.js",[t["parts/Globals.js"]],function(e){var d=e.pick;(e=e.seriesType)("spline","line",{},{getPointSpline:function(e,t,i){var n=t.plotX,o=t.plotY,r=e[i-1];if(i=e[i+1],r&&!r.isNull&&!1!==r.doCurve&&!t.isCliff&&i&&!i.isNull&&!1!==i.doCurve&&!t.isCliff){e=r.plotY;var a=i.plotX;i=i.plotY;var s=0,l=(1.5*n+r.plotX)/2.5,c=(1.5*o+e)/2.5,u=(1.5*o+i)/2.5;(a=(1.5*n+a)/2.5)!==l&&(s=(u-c)*(a-n)/(a-l)+o-u),u+=s,e<(c+=s)&&o<c?u=2*o-(c=Math.max(e,o)):c<e&&c<o&&(u=2*o-(c=Math.min(e,o))),i<u&&o<u?c=2*o-(u=Math.max(i,o)):u<i&&u<o&&(c=2*o-(u=Math.min(i,o))),t.rightContX=a,t.rightContY=u}return t=["C",d(r.rightContX,r.plotX),d(r.rightContY,r.plotY),d(l,n),d(c,o),n,o],r.rightContX=r.rightContY=null,t}})}),e(t,"parts/AreaSplineSeries.js",[t["parts/Globals.js"]],function(e){var t=e.seriesTypes.area.prototype;(0,e.seriesType)("areaspline","spline",e.defaultPlotOptions.area,{getStackPoints:t.getStackPoints,getGraphPath:t.getGraphPath,drawGraph:t.drawGraph,drawLegendSymbol:e.LegendSymbolMixin.drawRectangle})}),e(t,"parts/ColumnSeries.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],function(e,t){var x=t.defined,c=t.isNumber,l=e.animObject,d=e.color,u=e.extend,h=e.merge,T=e.pick,n=e.Series;t=e.seriesType;var p=e.svg;t("column","line",{borderRadius:0,crisp:!0,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:null,verticalAlign:null,y:null},softThreshold:!1,startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"},{cropShoulder:0,directTouch:!0,trackerGroups:["group","dataLabelsGroup"],negStacks:!0,init:function(){n.prototype.init.apply(this,arguments);var t=this,e=t.chart;e.hasRendered&&e.series.forEach(function(e){e.type===t.type&&(e.isDirty=!0)})},getColumnMetrics:function(){var o=this,e=o.options,t=o.xAxis,r=o.yAxis,i=t.options.reversedStacks;i=t.reversed&&!i||!t.reversed&&i;var a,s={},l=0;!1===e.grouping?l=1:o.chart.series.forEach(function(e){var t=e.yAxis,i=e.options;if(e.type===o.type&&(e.visible||!o.chart.options.chart.ignoreHiddenSeries)&&r.len===t.len&&r.pos===t.pos){if(i.stacking){a=e.stackKey,void 0===s[a]&&(s[a]=l++);var n=s[a]}else!1!==i.grouping&&(n=l++);e.columnIndex=n}});var n=Math.min(Math.abs(t.transA)*(t.ordinalSlope||e.pointRange||t.closestPointRange||t.tickInterval||1),t.len),c=n*e.groupPadding,u=(n-2*c)/(l||1);return e=Math.min(e.maxPointWidth||t.len,T(e.pointWidth,u*(1-2*e.pointPadding))),o.columnMetrics={width:e,offset:(u-e)/2+(c+((o.columnIndex||0)+(i?1:0))*u-n/2)*(i?-1:1)},o.columnMetrics},crispCol:function(e,t,i,n){var o=this.chart,r=this.borderWidth,a=-(r%2?.5:0);return r=r%2?.5:1,o.inverted&&o.renderer.isVML&&(r+=1),this.options.crisp&&(i=Math.round(e+i)+a,i-=e=Math.round(e)+a),n=Math.round(t+n)+r,a=Math.abs(t)<=.5&&.5<n,n-=t=Math.round(t)+r,a&&n&&(--t,n+=1),{x:e,y:t,width:i,height:n}},translate:function(){var c=this,u=c.chart,e=c.options,t=c.dense=c.closestPointRange*c.xAxis.transA<2;t=c.borderWidth=T(e.borderWidth,t?0:1);var d=c.yAxis,h=e.threshold,p=c.translatedThreshold=d.getThreshold(h),f=T(e.minPointLength,5),i=c.getColumnMetrics(),m=i.width,g=c.barW=Math.max(m,1+2*t),v=c.pointXOffset=i.offset,b=c.dataMin,y=c.dataMax;u.inverted&&(p-=.5),e.pointPadding&&(g=Math.ceil(g)),n.prototype.translate.apply(c),c.points.forEach(function(e){var t=T(e.yBottom,p),i=999+Math.abs(t),n=m;i=Math.min(Math.max(-i,e.plotY),d.len+i);var o=e.plotX+v,r=g,a=Math.min(i,t),s=Math.max(i,t)-a;if(f&&Math.abs(s)<f){s=f;var l=!d.reversed&&!e.negative||d.reversed&&e.negative;e.y===h&&c.dataMax<=h&&d.min<h&&b!==y&&(l=!l),a=Math.abs(a-p)>f?t-f:p-(l?f:0)}x(e.options.pointWidth)&&(n=r=Math.ceil(e.options.pointWidth),o-=Math.round((n-m)/2)),e.barX=o,e.pointWidth=n,e.tooltipPos=u.inverted?[d.len+d.pos-u.plotLeft-i,c.xAxis.len-o-r/2,s]:[o+r/2,i+d.pos-u.plotTop,s],e.shapeType=c.pointClass.prototype.shapeType||"rect",e.shapeArgs=c.crispCol.apply(c,e.isNull?[o,p,r,0]:[o,a,r,s])})},getSymbol:e.noop,drawLegendSymbol:e.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},pointAttribs:function(e,t){var i=this.options,n=this.pointAttrToOptions||{},o=n.stroke||"borderColor",r=n["stroke-width"]||"borderWidth",a=e&&e.color||this.color,s=e&&e[o]||i[o]||this.color||a,l=e&&e[r]||i[r]||this[r]||0;n=e&&e.options.dashStyle||i.dashStyle;var c=T(i.opacity,1);if(e&&this.zones.length){var u=e.getZone();a=e.options.color||u&&(u.color||e.nonZonedColor)||this.color,u&&(s=u.borderColor||s,n=u.dashStyle||n,l=u.borderWidth||l)}return t&&(t=(e=h(i.states[t],e.options.states&&e.options.states[t]||{})).brightness,a=e.color||void 0!==t&&d(a).brighten(e.brightness).get()||a,s=e[o]||s,l=e[r]||l,
1n=e.dashStyle||n,c=T(e.opacity,c)),o={fill:a,stroke:s,"stroke-width":l,opacity:c},n&&(o.dashstyle=n),o},drawPoints:function(){var n,o=this,r=this.chart,a=o.options,s=r.renderer,l=a.animationLimit||250;o.points.forEach(function(e){var t=e.graphic,i=t&&r.pointCount<l?"animate":"attr";c(e.plotY)&&null!==e.y?(n=e.shapeArgs,t&&t.element.nodeName!==e.shapeType&&(t=t.destroy()),t?t[i](h(n)):e.graphic=t=s[e.shapeType](n).add(e.group||o.group),a.borderRadius&&t[i]({r:a.borderRadius}),r.styledMode||t[i](o.pointAttribs(e,e.selected&&"select")).shadow(!1!==e.allowShadow&&a.shadow,null,a.stacking&&!a.borderRadius),t.addClass(e.getClassName(),!0)):t&&(e.graphic=t.destroy())})},animate:function(e){var i=this,n=this.yAxis,t=i.options,o=this.chart.inverted,r={},a=o?"translateX":"translateY";if(p)if(e)r.scaleY=.001,e=Math.min(n.pos+n.len,Math.max(n.pos,n.toPixels(t.threshold))),o?r.translateX=e-n.len:r.translateY=e,i.clipBox&&i.setClip(),i.group.attr(r);else{var s=i.group.attr(a);i.group.animate({scaleY:1},u(l(i.options.animation),{step:function(e,t){r[a]=s+t.pos*(n.pos-s),i.group.attr(r)}})),i.animate=null}},remove:function(){var t=this,e=t.chart;e.hasRendered&&e.series.forEach(function(e){e.type===t.type&&(e.isDirty=!0)}),n.prototype.remove.apply(t,arguments)}})}),e(t,"parts/BarSeries.js",[t["parts/Globals.js"]],function(e){(e=e.seriesType)("bar","column",null,{inverted:!0})}),e(t,"parts/ScatterSeries.js",[t["parts/Globals.js"]],function(e){var t=e.Series;(0,e.seriesType)("scatter","line",{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">●</span> <span style="font-size: 10px"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}},{sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1,drawGraph:function(){this.options.lineWidth&&t.prototype.drawGraph.call(this)},applyJitter:function(){var l=this,c=this.options.jitter,u=this.points.length;c&&this.points.forEach(function(a,s){["x","y"].forEach(function(e,t){var i="plot"+e.toUpperCase();if(c[e]&&!a.isNull){var n=l[e+"Axis"],o=c[e]*n.transA;if(n&&!n.isLog){var r=Math.max(0,a[i]-o);n=Math.min(n.len,a[i]+o),t=1e4*Math.sin(s+t*u),a[i]=r+(n-r)*(t-Math.floor(t)),"x"===e&&(a.clientX=a.plotX)}}})})}}),e.addEvent(t,"afterTranslate",function(){this.applyJitter&&this.applyJitter()})}),e(t,"mixins/centered-series.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],function(e,t){var i=t.isNumber,n=e.deg2rad,l=e.pick,c=e.relativeLength;e.CenteredSeriesMixin={getCenter:function(){var e=this.options,t=this.chart,i=2*(e.slicedOffset||0),n=t.plotWidth-2*i;t=t.plotHeight-2*i;var o=e.center;o=[l(o[0],"50%"),l(o[1],"50%"),e.size||"100%",e.innerSize||0];var r,a=Math.min(n,t);for(r=0;r<4;++r){var s=o[r];e=r<2||2===r&&/%$/.test(s),o[r]=c(s,[n,t,a,o[2]][r])+(e?i:0)}return o[3]>o[2]&&(o[3]=o[2]),o},getStartAndEndRadians:function(e,t){return e=i(e)?e:0,t=i(t)&&e<t&&t-e<360?t:e+360,{start:n*(e+-90),end:n*(t+-90)}}}}),e(t,"parts/PieSeries.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],function(g,e){var o=e.defined,t=e.isNumber,i=g.addEvent,v=(e=g.CenteredSeriesMixin).getStartAndEndRadians,d=g.merge,n=g.noop,b=g.pick,r=g.Point,a=g.Series,s=g.seriesType,l=g.setAnimation;s("pie","line",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0,connectorShape:"fixedOffset",crookDistance:"70%"},ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],axisTypes:[],pointAttribs:g.seriesTypes.column.prototype.pointAttribs,animate:function(e){var n=this,t=n.points,o=n.startAngleRad;e||(t.forEach(function(e){var t=e.graphic,i=e.shapeArgs;t&&(t.attr({r:e.startR||n.center[3]/2,start:o,end:o}),t.animate({r:i.r,start:i.start,end:i.end},n.options.animation))}),n.animate=null)},hasData:function(){return!!this.processedXData.length},updateTotals:function(){var e,t=0,i=this.points,n=i.length,o=this.options.ignoreHiddenPoint;for(e=0;e<n;e++){var r=i[e];t+=o&&!r.visible?0:r.isNull?0:r.y}for(this.total=t,e=0;e<n;e++)(r=i[e]).percentage=0<t&&(r.visible||!o)?r.y/t*100:0,r.total=t},generatePoints:function(){a.prototype.generatePoints.call(this),this.updateTotals()},getX:function(e,t,i){var n=this.center,o=this.radii?this.radii[i.index]:n[2]/2;return n[0]+(t?-1:1)*Math.cos(Math.asin(Math.max(Math.min((e-n[1])/(o+i.labelDistance),1),-1)))*(o+i.labelDistance)+(0<i.labelDistance?(t?-1:1)*this.options.dataLabels.padding:0)},translate:function(e){this.generatePoints();var t=0,i=this.options,n=i.slicedOffset,o=n+(i.borderWidth||0),r=v(i.startAngle,i.endAngle),a=this.startAngleRad=r.start;r=(this.endAngleRad=r.end)-a;var s=this.points,l=i.dataLabels.distance;i=i.ignoreHiddenPoint;var c,u=s.length;for(e||(this.center=e=this.getCenter()),c=0;c<u;c++){var d=s[c],h=a+t*r;i&&!d.visible||(t+=d.percentage/100);var p=a+t*r;d.shapeType="arc",d.shapeArgs={x:e[0],y:e[1],r:e[2]/2,innerR:e[3]/2,start:Math.round(1e3*h)/1e3,end:Math.round(1e3*p)/1e3},d.labelDistance=b(d.options.dataLabels&&d.options.dataLabels.distance,l),d.labelDistance=g.relativeLength(d.labelDistance,d.shapeArgs.r),this.maxLabelDistance=Math.max(this.maxLabelDistance||0,d.labelDistance),(p=(p+h)/2)>1.5*Math.PI?p-=2*Math.PI:p<-Math.PI/2&&(p+=2*Math.PI),d.slicedTranslation={translateX:Math.round(Math.cos(p)*n),translateY:Math.round(Math.sin(p)*n)};var f=Math.cos(p)*e[2]/2,m=Math.sin(p)*e[2]/2;d.tooltipPos=[e[0]+.7*f,e[1]+.7*m],d.half=p<-Math.PI/2||p>
1Math.PI/2?1:0,d.angle=p,h=Math.min(o,d.labelDistance/5),d.labelPosition={natural:{x:e[0]+f+Math.cos(p)*d.labelDistance,y:e[1]+m+Math.sin(p)*d.labelDistance},final:{},alignment:d.labelDistance<0?"center":d.half?"right":"left",connectorPosition:{breakAt:{x:e[0]+f+Math.cos(p)*h,y:e[1]+m+Math.sin(p)*h},touchingSliceAt:{x:e[0]+f,y:e[1]+m}}}}},drawGraph:null,redrawPoints:function(){var n,o,r,a,s=this,l=s.chart,c=l.renderer,u=s.options.shadow;!u||s.shadowGroup||l.styledMode||(s.shadowGroup=c.g("shadow").attr({zIndex:-1}).add(s.group)),s.points.forEach(function(e){var t={};if(o=e.graphic,!e.isNull&&o){if(a=e.shapeArgs,n=e.getTranslate(),!l.styledMode){var i=e.shadowGroup;u&&!i&&(i=e.shadowGroup=c.g("shadow").add(s.shadowGroup)),i&&i.attr(n),r=s.pointAttribs(e,e.selected&&"select")}e.delayedRendering?(o.setRadialReference(s.center).attr(a).attr(n),l.styledMode||o.attr(r).attr({"stroke-linejoin":"round"}).shadow(u,i),e.delayedRendering=!1):(o.setRadialReference(s.center),l.styledMode||d(!0,t,r),d(!0,t,a,n),o.animate(t)),o.attr({visibility:e.visible?"inherit":"hidden"}),o.addClass(e.getClassName())}else o&&(e.graphic=o.destroy())})},drawPoints:function(){var t=this.chart.renderer;this.points.forEach(function(e){e.graphic||(e.graphic=t[e.shapeType](e.shapeArgs).add(e.series.group),e.delayedRendering=!0)})},searchPoint:n,sortByAngle:function(e,i){e.sort(function(e,t){return void 0!==e.angle&&(t.angle-e.angle)*i})},drawLegendSymbol:g.LegendSymbolMixin.drawRectangle,getCenter:e.getCenter,getSymbol:n},{init:function(){r.prototype.init.apply(this,arguments);var t=this;t.name=b(t.name,"Slice");var e=function(e){t.slice("select"===e.type)};return i(t,"select",e),i(t,"unselect",e),t},isValid:function(){return t(this.y)&&0<=this.y},setVisible:function(t,e){var i=this,n=i.series,o=n.chart,r=n.options.ignoreHiddenPoint;e=b(e,r),t!==i.visible&&(i.visible=i.options.visible=t=void 0===t?!i.visible:t,n.options.data[n.data.indexOf(i)]=i.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(e){i[e]&&i[e][t?"show":"hide"](!0)}),i.legendItem&&o.legend.colorizeItem(i,t),t||"hover"!==i.state||i.setState(""),r&&(n.isDirty=!0),e&&o.redraw())},slice:function(e,t,i){var n=this.series;l(i,n.chart),b(t,!0),this.sliced=this.options.sliced=o(e)?e:!this.sliced,n.options.data[n.data.indexOf(this)]=this.options,this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(e){var t=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(t.x,t.y,t.r+e,t.r+e,{innerR:t.r-1,start:t.start,end:t.end})},connectorShapes:{fixedOffset:function(e,t,i){var n=t.breakAt;return t=t.touchingSliceAt,["M",e.x,e.y].concat(i.softConnector?["C",e.x+("left"===e.alignment?-5:5),e.y,2*n.x-t.x,2*n.y-t.y,n.x,n.y]:["L",n.x,n.y]).concat(["L",t.x,t.y])},straight:function(e,t){return t=t.touchingSliceAt,["M",e.x,e.y,"L",t.x,t.y]},crookedLine:function(e,t,i){t=t.touchingSliceAt;var n=this.series,o=n.center[0],r=n.chart.plotWidth,a=n.chart.plotLeft;n=e.alignment;var s=this.shapeArgs.r;return i=g.relativeLength(i.crookDistance,1),o=["L",i="left"===n?o+s+(r+a-o-s)*(1-i):a+(o-s)*i,e.y],("left"===n?i>e.x||i<t.x:i<e.x||i>t.x)&&(o=[]),["M",e.x,e.y].concat(o).concat(["L",t.x,t.y])}},getConnectorPath:function(){var e=this.labelPosition,t=this.series.options.dataLabels,i=t.connectorShape,n=this.connectorShapes;return n[i]&&(i=n[i]),i.call(this,{x:e.final.x,y:e.final.y,alignment:e.alignment},e.connectorPosition,t)}})}),e(t,"parts/DataLabels.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],function(A,e){var E=e.defined,s=e.isArray,x=e.objectEach,l=e.splat,a=A.arrayMax,m=A.extend,T=A.format,D=A.merge;e=A.noop;var O=A.pick,c=A.relativeLength,L=A.Series,t=A.seriesTypes,u=A.stableSort;A.distribute=function(e,i,n){function t(e,t){return e.target-t.target}var o,r=!0,a=e,s=[],l=0,c=a.reducedLen||i;for(o=e.length;o--;)l+=e[o].size;if(c<l){for(u(e,function(e,t){return(t.rank||0)-(e.rank||0)}),l=o=0;l<=c;)l+=e[o].size,o++;s=e.splice(o-1,e.length)}for(u(e,t),e=e.map(function(e){return{size:e.size,targets:[e.target],align:O(e.align,.5)}});r;){for(o=e.length;o--;)r=e[o],l=(Math.min.apply(0,r.targets)+Math.max.apply(0,r.targets))/2,r.pos=Math.min(Math.max(0,l-r.size*r.align),i-r.size);for(o=e.length,r=!1;o--;)0<o&&e[o-1].pos+e[o-1].size>e[o].pos&&(e[o-1].size+=e[o].size,e[o-1].targets=e[o-1].targets.concat(e[o].targets),e[o-1].align=.5,e[o-1].pos+e[o-1].size>i&&(e[o-1].pos=i-e[o-1].size),e.splice(o,1),r=!0)}a.push.apply(a,s),o=0,e.some(function(e){var t=0;if(e.targets.some(function(){if(a[o].pos=e.pos+t,Math.abs(a[o].pos-a[o].target)>
1n)return a.slice(0,o+1).forEach(function(e){delete e.pos}),a.reducedLen=(a.reducedLen||i)-.1*i,a.reducedLen>.1*i&&A.distribute(a,i,n),!0;t+=a[o].size,o++}))return!0}),u(a,t)},L.prototype.drawDataLabels=function(){function e(t,i){var e,n=[];if(s(t)&&!s(i))n=t.map(function(e){return D(e,i)});else if(s(i)&&!s(t))n=i.map(function(e){return D(t,e)});else if(s(t)||s(i))for(e=Math.max(t.length,i.length);e--;)n[e]=D(t[e],i[e]);else n=D(t,i);return n}var m=this,g=m.chart,v=m.options,t=v.dataLabels,i=m.points,n=m.hasRendered||0,o=A.animObject(v.animation).duration,r=Math.min(o,200),a=!g.renderer.forExport&&O(t.defer,0<r),b=g.renderer;if(t=e(e(g.options.plotOptions&&g.options.plotOptions.series&&g.options.plotOptions.series.dataLabels,g.options.plotOptions&&g.options.plotOptions[m.type]&&g.options.plotOptions[m.type].dataLabels),t),A.fireEvent(this,"drawDataLabels"),s(t)||t.enabled||m._hasPointLabels){var y=m.plotGroup("dataLabelsGroup","data-labels",a&&!n?"hidden":"inherit",t.zIndex||6);a&&(y.attr({opacity:+n}),n||setTimeout(function(){var e=m.dataLabelsGroup;e&&(m.visible&&y.show(!0),e[v.animation?"animate":"attr"]({opacity:1},{duration:r}))},o-r)),i.forEach(function(f){l(e(t,f.dlOptions||f.options&&f.options.dataLabels)).forEach(function(e,t){var i,n,o,r=e.enabled&&(!f.isNull||f.dataLabelOnNull)&&(i=f,!(o=(n=e).filter)||(n=o.operator,i=i[o.property],o=o.value,">"===n&&o<i||"<"===n&&i<o||">="===n&&o<=i||"<="===n&&i<=o||"=="===n&&i==o||"==="===n&&i===o)),a=f.dataLabels?f.dataLabels[t]:f.dataLabel,s=f.connectors?f.connectors[t]:f.connector,l=O(e.distance,f.labelDistance),c=!a;if(r){var u=f.getLabelConfig(),d=O(e[f.formatPrefix+"Format"],e.format);u=E(d)?T(d,u,g.time):(e[f.formatPrefix+"Formatter"]||e.formatter).call(u,e),d=e.style;var h=e.rotation;g.styledMode||(d.color=O(e.color,d.color,m.color,"#000000"),"contrast"===d.color&&(f.contrastColor=b.getContrast(f.color||m.color),d.color=!E(l)&&e.inside||l<0||v.stacking?f.contrastColor:"#000000"),v.cursor&&(d.cursor=v.cursor));var p={r:e.borderRadius||0,rotation:h,padding:e.padding,zIndex:1};g.styledMode||(p.fill=e.backgroundColor,p.stroke=e.borderColor,p["stroke-width"]=e.borderWidth),x(p,function(e,t){void 0===e&&delete p[t]})}!a||r&&E(u)?r&&E(u)&&(a?p.text=u:(f.dataLabels=f.dataLabels||[],a=f.dataLabels[t]=h?b.text(u,0,-9999).addClass("highcharts-data-label"):b.label(u,0,-9999,e.shape,null,null,e.useHTML,null,"data-label"),t||(f.dataLabel=a),a.addClass(" highcharts-data-label-color-"+f.colorIndex+" "+(e.className||"")+(e.useHTML?" highcharts-tracker":""))),a.options=e,a.attr(p),g.styledMode||a.css(d).shadow(e.shadow),a.added||a.add(y),e.textPath&&!e.useHTML&&a.setTextPath(f.getDataLabelPath&&f.getDataLabelPath(a)||f.graphic,e.textPath),m.alignDataLabel(f,a,e,null,c)):(f.dataLabel=f.dataLabel&&f.dataLabel.destroy(),f.dataLabels&&(1===f.dataLabels.length?delete f.dataLabels:delete f.dataLabels[t]),t||delete f.dataLabel,s&&(f.connector=f.connector.destroy(),f.connectors&&(1===f.connectors.length?delete f.connectors:delete f.connectors[t])))})})}A.fireEvent(this,"afterDrawDataLabels")},L.prototype.alignDataLabel=function(e,t,i,n,o){var r=this.chart,a=this.isCartesian&&r.inverted,s=O(e.dlBox&&e.dlBox.centerX,e.plotX,-9999),l=O(e.plotY,-9999),c=t.getBBox(),u=i.rotation,d=i.align,h=this.visible&&(e.series.forceDL||r.isInsidePlot(s,Math.round(l),a)||n&&r.isInsidePlot(s,a?n.x+1:n.y+n.height-1,a)),p="justify"===O(i.overflow,"justify");if(h){var f=r.renderer.fontMetrics(r.styledMode?void 0:i.style.fontSize,t).b;n=m({x:a?this.yAxis.len-l:s,y:Math.round(a?this.xAxis.len-s:l),width:0,height:0},n),m(i,{width:c.width,height:c.height}),u?(p=!1,s=r.renderer.rotCorr(f,u),s={x:n.x+i.x+n.width/2+s.x,y:n.y+i.y+{top:0,middle:.5,bottom:1}[i.verticalAlign]*n.height},t[o?"attr":"animate"](s).attr({align:d}),l=180<(l=(u+720)%360)&&l<360,"left"===d?s.y-=l?c.height:0:"center"===d?(s.x-=c.width/2,s.y-=c.height/2):"right"===d&&(s.x-=c.width,s.y-=l?0:c.height),t.placed=!0,t.alignAttr=s):(t.align(i,null,n),s=t.alignAttr),p&&0<=n.height?this.justifyDataLabel(t,i,s,c,n,o):O(i.crop,!0)&&(h=r.isInsidePlot(s.x,s.y)&&r.isInsidePlot(s.x+c.width,s.y+c.height)),i.shape&&!u&&t[o?"attr":"animate"]({anchorX:a?r.plotWidth-e.plotY:e.plotX,anchorY:a?r.plotHeight-e.plotX:e.plotY})}h||(t.hide(!0),t.placed=!1)},L.prototype.justifyDataLabel=function(e,t,i,n,o,r){var a=this.chart,s=t.align,l=t.verticalAlign,c=e.box?0:e.padding||0,u=i.x+c;if(u<0){"right"===s?(t.align="left",t.inside=!0):t.x=-u;var d=!0}return(u=i.x+n.width-c)>a.plotWidth&&("left"===s?(t.align="right",t.inside=!0):t.x=a.plotWidth-u,d=!0),(u=i.y+c)<0&&("bottom"===l?(t.verticalAlign="top",t.inside=!0):t.y=-u,d=!0),(u=i.y+n.height-c)>a.plotHeight&&("top"===l?(t.verticalAlign="bottom",t.inside=!0):t.y=a.plotHeight-u,d=!0),d&&(e.placed=!r,e.align(t,null,o)),d},t.pie&&(t.pie.prototype.dataLabelPositioners={radialDistributionY:function(e){return e.top+e.distributeBox.pos},radialDistributionX:function(e,t,i,n){return e.getX(i<t.top+2||i>t.bottom-2?n:i,t.half,t)},justify:function(e,t,i){return i[0]+(e.half?-1:1)*(t+e.labelDistance)},alignToPlotEdges:function(e,t,i,n){return e=e.getBBox().width,t?e+n:i-e-n},alignToConnectors:function(e,t,i,n){var o,r=0;return e.forEach(function(e){o=e.dataLabel.getBBox().width,r<o&&(r=o)}),t?r+n:i-r-n}},t.pie.prototype.drawDataLabels=function(){var s,i,n,l,c,u,d,h,p,f,m,o,g=this,e=g.data,v=g.chart,b=g.options.dataLabels,y=b.connectorPadding,x=v.plotWidth,T=v.plotHeight,S=v.plotLeft,t=Math.round(v.chartWidth/3),w=g.center,k=w[2]/2,C=w[1],r=[[],[]],M=[0,0,0,0],P=g.dataLabelPositioners;g.visible&&(b.enabled||g._hasPointLabels)&&(e.forEach(function(e){e.dataLabel&&e.visible&&e.dataLabel.shortened&&(e.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),e.dataLabel.shortened=!1)}),L.prototype.drawDataLabels.apply(g),e.forEach(function(e){e.dataLabel&&(e.visible?(r[e.half].push(e),e.dataLabel._pos=null,!E(b.style.width)&&!E(e.options.dataLabels&&e.options.dataLabels.style&&e.options.dataLabels.style.width)&&e.dataLabel.getBBox().width>t&&(e.dataLabel.css({width:.7*t}),e.dataLabel.shortened=!0)):(e.dataLabel=e.dataLabel.destroy(),e.dataLabels&&1===e.dataLabels.length&&delete e.dataLabels))}),r.forEach(function(e,t){var i,n=e.length,o=[];if(n){if(g.sortByAngle(e,t-.5),0<g.maxLabelDistance){var r=Math.max(0,C-k-g.maxLabelDistance),a=Math.min(C+k+g.maxLabelDistance,v.plotHeight);e.forEach(function(e){0<e.labelDistance&&e.dataLabel&&(e.top=Math.max(0,C-k-e.labelDistance),e.bottom=Math.min(C+k+e.labelDistance,v.plotHeight),i=e.dataLabel.getBBox().height||21,e.distributeBox={target:e.labelPosition.natural.y-e.top+i/2,size:i,rank:e.y},o.push(e.distributeBox))}),r=a+i-r,A.distribute(o,r,r/5)}for(m=0;m<n;
1m++){if(s=e[m],u=s.labelPosition,l=s.dataLabel,f=!1===s.visible?"hidden":"inherit",p=r=u.natural.y,o&&E(s.distributeBox)&&(void 0===s.distributeBox.pos?f="hidden":(d=s.distributeBox.size,p=P.radialDistributionY(s))),delete s.positionIndex,b.justify)h=P.justify(s,k,w);else switch(b.alignTo){case"connectors":h=P.alignToConnectors(e,t,x,S);break;case"plotEdges":h=P.alignToPlotEdges(l,t,x,S);break;default:h=P.radialDistributionX(g,s,p,r)}l._attr={visibility:f,align:u.alignment},l._pos={x:h+b.x+({left:y,right:-y}[u.alignment]||0),y:p+b.y-10},u.final.x=h,u.final.y=p,O(b.crop,!0)&&(c=l.getBBox().width,r=null,h-c<y&&1===t?(r=Math.round(c-h+y),M[3]=Math.max(r,M[3])):x-y<h+c&&0===t&&(r=Math.round(h+c-x+y),M[1]=Math.max(r,M[1])),p-d/2<0?M[0]=Math.max(Math.round(d/2-p),M[0]):T<p+d/2&&(M[2]=Math.max(Math.round(p+d/2-T),M[2])),l.sideOverflow=r)}}}),0===a(M)||this.verifyDataLabelOverflow(M))&&(this.placeDataLabels(),this.points.forEach(function(e){var t;(o=D(b,e.options.dataLabels),i=O(o.connectorWidth,1))&&(n=e.connector,(l=e.dataLabel)&&l._pos&&e.visible&&0<e.labelDistance?(f=l._attr.visibility,(t=!n)&&(e.connector=n=v.renderer.path().addClass("highcharts-data-label-connector  highcharts-color-"+e.colorIndex+(e.className?" "+e.className:"")).add(g.dataLabelsGroup),v.styledMode||n.attr({"stroke-width":i,stroke:o.connectorColor||e.color||"#666666"})),n[t?"attr":"animate"]({d:e.getConnectorPath()}),n.attr("visibility",f)):n&&(e.connector=n.destroy()))}))},t.pie.prototype.placeDataLabels=function(){this.points.forEach(function(e){var t,i=e.dataLabel;i&&e.visible&&((t=i._pos)?(i.sideOverflow&&(i._attr.width=Math.max(i.getBBox().width-i.sideOverflow,0),i.css({width:i._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),i.shortened=!0),i.attr(i._attr),i[i.moved?"animate":"attr"](t),i.moved=!0):i&&i.attr({y:-9999})),delete e.distributeBox},this)},t.pie.prototype.alignDataLabel=e,t.pie.prototype.verifyDataLabelOverflow=function(e){var t=this.center,i=this.options,n=i.center,o=i.minSize||80,r=null!==i.size;if(!r){if(null!==n[0])var a=Math.max(t[2]-Math.max(e[1],e[3]),o);else a=Math.max(t[2]-e[1]-e[3],o),t[0]+=(e[3]-e[1])/2;null!==n[1]?a=Math.max(Math.min(a,t[2]-Math.max(e[0],e[2])),o):(a=Math.max(Math.min(a,t[2]-e[0]-e[2]),o),t[1]+=(e[0]-e[2])/2),a<t[2]?(t[2]=a,t[3]=Math.min(c(i.innerSize||0,a),a),this.translate(t),this.drawDataLabels&&this.drawDataLabels()):r=!0}return r}),t.column&&(t.column.prototype.alignDataLabel=function(e,t,i,n,o){var r=this.chart.inverted,a=e.series,s=e.dlBox||e.shapeArgs,l=O(e.below,e.plotY>O(this.translatedThreshold,a.yAxis.len)),c=O(i.inside,!!this.options.stacking);s&&((n=D(s)).y<0&&(n.height+=n.y,n.y=0),0<(s=n.y+n.height-a.yAxis.len)&&(n.height-=s),r&&(n={x:a.yAxis.len-n.y-n.height,y:a.xAxis.len-n.x-n.width,width:n.height,height:n.width}),c||(r?(n.x+=l?0:n.width,n.width=0):(n.y+=l?n.height:0,n.height=0))),i.align=O(i.align,!r||c?"center":l?"right":"left"),i.verticalAlign=O(i.verticalAlign,r||c?"middle":l?"top":"bottom"),L.prototype.alignDataLabel.call(this,e,t,i,n,o),i.inside&&e.contrastColor&&t.css({color:e.contrastColor})})}),e(t,"modules/overlapping-datalabels.src.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],function(e,t){var o=t.isArray,i=t.objectEach;t=e.Chart;var r=e.pick,n=e.addEvent,u=e.fireEvent;n(t,"render",function(){var n=[];(this.labelCollectors||[]).forEach(function(e){n=n.concat(e())}),(this.yAxis||[]).forEach(function(e){e.options.stackLabels&&!e.options.stackLabels.allowOverlap&&i(e.stacks,function(e){i(e,function(e){n.push(e.label)})})}),(this.series||[]).forEach(function(e){var t=e.options.dataLabels;e.visible&&(!1!==t.enabled||e._hasPointLabels)&&e.points.forEach(function(i){i.visible&&(o(i.dataLabels)?i.dataLabels:i.dataLabel?[i.dataLabel]:[]).forEach(function(e){var t=e.options;e.labelrank=r(t.labelrank,i.labelrank,i.shapeArgs&&i.shapeArgs.height),t.allowOverlap||n.push(e)})})}),this.hideOverlappingLabels(n)}),t.prototype.hideOverlappingLabels=function(e){var t,i,n,o=this,r=e.length,a=o.renderer,s=function(e){var t=e.box?0:e.padding||0,i=0;if(e&&(!e.alignAttr||e.placed)){var n=e.alignAttr||{x:e.attr("x"),y:e.attr("y")},o=e.parentGroup;return e.width||(i=e.getBBox(),e.width=i.width,e.height=i.height,i=a.fontMetrics(null,e.element).h),{x:n.x+(o.translateX||0)+t,y:n.y+(o.translateY||0)+t-i,width:e.width-2*t,height:e.height-2*t}}};for(i=0;i<r;i++)(t=e[i])&&(t.oldOpacity=t.opacity,t.newOpacity=1,t.absoluteBox=s(t));for(e.sort(function(e,t){return(t.labelrank||0)-(e.labelrank||0)}),i=0;i<r;i++){var l=(s=e[i])&&s.absoluteBox;for(t=i+1;t<r;++t){var c=(n=e[t])&&n.absoluteBox;!l||!c||s===n||0===s.newOpacity||0===n.newOpacity||c.x>l.x+l.width||c.x+c.width<l.x||c.y>l.y+l.height||c.y+c.height<l.y||((s.labelrank<n.labelrank?s:n).newOpacity=0)}}e.forEach(function(e){var t;if(e){var i=e.newOpacity;
1e.oldOpacity!==i&&(e.alignAttr&&e.placed?(i?e.show(!0):t=function(){e.hide(!0),e.placed=!1},e.alignAttr.opacity=i,e[e.isOld?"animate":"attr"](e.alignAttr,null,t),u(o,"afterHideOverlappingLabels")):e.attr({opacity:i})),e.isOld=!0}})}}),e(t,"parts/Interaction.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],function(n,e){var d=e.defined,r=e.isArray,i=e.isObject,t=e.objectEach,o=n.addEvent;e=n.Chart;var a=n.createElement,s=n.css,l=n.defaultOptions,v=n.defaultPlotOptions,b=n.extend,y=n.fireEvent,p=n.hasTouch,c=n.Legend,u=n.merge,x=n.pick,h=n.Point,f=n.Series,m=n.seriesTypes,g=n.svg,T=n.TrackerMixin={drawTrackerPoint:function(){var e,t=this,i=t.chart,n=i.pointer,o=function(e){var t=n.getPointFromEvent(e);void 0!==t&&(n.isDirectTouch=!0,t.onMouseOver(e))};t.points.forEach(function(t){e=r(t.dataLabels)?t.dataLabels:t.dataLabel?[t.dataLabel]:[],t.graphic&&(t.graphic.element.point=t),e.forEach(function(e){e.div?e.div.point=t:e.element.point=t})}),t._hasTracking||(t.trackerGroups.forEach(function(e){t[e]&&(t[e].addClass("highcharts-tracker").on("mouseover",o).on("mouseout",function(e){n.onTrackerMouseOut(e)}),p&&t[e].on("touchstart",o),!i.styledMode&&t.options.cursor&&t[e].css(s).css({cursor:t.options.cursor}))}),t._hasTracking=!0),y(this,"afterDrawTracker")},drawTrackerGraph:function(){var e,t=this,i=t.options,n=i.trackByArea,o=[].concat(n?t.areaPath:t.graphPath),r=o.length,a=t.chart,s=a.pointer,l=a.renderer,c=a.options.tooltip.snap,u=t.tracker,d=function(){a.hoverSeries!==t&&t.onMouseOver()},h="rgba(192,192,192,"+(g?1e-4:.002)+")";if(r&&!n)for(e=r+1;e--;)"M"===o[e]&&o.splice(e+1,0,o[e+1]-c,o[e+2],"L"),(e&&"M"===o[e]||e===r)&&o.splice(e,0,"L",o[e-2]+c,o[e-1]);u?u.attr({d:o}):t.graph&&(t.tracker=l.path(o).attr({visibility:t.visible?"visible":"hidden",zIndex:2}).addClass(n?"highcharts-tracker-area":"highcharts-tracker-line").add(t.group),a.styledMode||t.tracker.attr({"stroke-linejoin":"round",stroke:h,fill:n?h:"none","stroke-width":t.graph.strokeWidth()+(n?0:2*c)}),[t.tracker,t.markerGroup].forEach(function(e){e.addClass("highcharts-tracker").on("mouseover",d).on("mouseout",function(e){s.onTrackerMouseOut(e)}),i.cursor&&!a.styledMode&&e.css({cursor:i.cursor}),p&&e.on("touchstart",d)})),y(this,"afterDrawTracker")}};m.column&&(m.column.prototype.drawTracker=T.drawTrackerPoint),m.pie&&(m.pie.prototype.drawTracker=T.drawTrackerPoint),m.scatter&&(m.scatter.prototype.drawTracker=T.drawTrackerPoint),b(c.prototype,{setItemEvents:function(i,e,t){var n=this,o=n.chart.renderer.boxWrapper,r=i instanceof h,a="highcharts-legend-"+(r?"point":"series")+"-active",s=n.chart.styledMode;(t?e:i.legendGroup).on("mouseover",function(){i.visible&&n.allItems.forEach(function(e){i!==e&&e.setState("inactive",!r)}),i.setState("hover"),i.visible&&o.addClass(a),s||e.css(n.options.itemHoverStyle)}).on("mouseout",function(){n.chart.styledMode||e.css(u(i.visible?n.itemStyle:n.itemHiddenStyle)),n.allItems.forEach(function(e){i!==e&&e.setState("",!r)}),o.removeClass(a),i.setState()}).on("click",function(e){var t=function(){i.setVisible&&i.setVisible(),n.allItems.forEach(function(e){i!==e&&e.setState(i.visible?"inactive":"",!r)})};o.removeClass(a),e={browserEvent:e},i.firePointEvent?i.firePointEvent("legendItemClick",e,t):y(i,"legendItemClick",e,t)})},createCheckboxForItem:function(t){t.checkbox=a("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:t.selected,defaultChecked:t.selected},this.options.itemCheckboxStyle,this.chart.container),o(t.checkbox,"click",function(e){y(t.series||t,"checkboxClick",{checked:e.target.checked,item:t},function(){t.select()})})}}),b(e.prototype,{showResetZoom:function(){function e(){t.zoomOut()}var t=this,i=l.lang,n=t.options.chart.resetZoomButton,o=n.theme,r=o.states,a="chart"===n.relativeTo||"spaceBox"===n.relativeTo?null:"plotBox";y(this,"beforeShowResetZoom",null,function(){t.resetZoomButton=t.renderer.button(i.resetZoom,null,null,e,o,r&&r.hover).attr({align:n.position.align,title:i.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(n.position,!1,a)}),y(this,"afterShowResetZoom")},zoomOut:function(){y(this,"selection",{resetSelection:!0}
1,this.zoom)},zoom:function(e){var a,s=this,l=s.pointer,c=!1,u=s.inverted?l.mouseDownX:l.mouseDownY;!e||e.resetSelection?(s.axes.forEach(function(e){a=e.zoom()}),l.initiated=!1):e.xAxis.concat(e.yAxis).forEach(function(e){var t=e.axis,i=s.inverted?t.left:t.top,n=s.inverted?i+t.width:i+t.height,o=t.isXAxis,r=!1;(!o&&i<=u&&u<=n||o||!d(u))&&(r=!0),l[o?"zoomX":"zoomY"]&&r&&(a=t.zoom(e.min,e.max),t.displayBtn&&(c=!0))});var t=s.resetZoomButton;c&&!t?s.showResetZoom():!c&&i(t)&&(s.resetZoomButton=t.destroy()),a&&s.redraw(x(s.options.chart.animation,e&&e.animation,s.pointCount<100))},pan:function(c,e){var u,d=this,t=d.hoverPoints;y(this,"pan",{originalEvent:c},function(){t&&t.forEach(function(e){e.setState()}),("xy"===e?[1,0]:[1]).forEach(function(e){var t=(e=d[e?"xAxis":"yAxis"][0]).horiz,i=c[t?"chartX":"chartY"],n=d[t=t?"mouseDownX":"mouseDownY"],o=(e.pointRange||0)/2,r=e.reversed&&!d.inverted||!e.reversed&&d.inverted?-1:1,a=e.getExtremes(),s=e.toValue(n-i,!0)+o*r,l=(r=e.toValue(n+e.len-i,!0)-o*r)<s;n=l?r:s,s=l?s:r,0<(l=(r=Math.min(a.dataMin,o?a.min:e.toValue(e.toPixels(a.min)-e.minPixelPadding)))-n)&&(s+=l,n=r),0<(l=s-(o=Math.max(a.dataMax,o?a.max:e.toValue(e.toPixels(a.max)+e.minPixelPadding))))&&(s=o,n-=l),e.series.length&&n!==a.min&&s!==a.max&&(e.setExtremes(n,s,!1,!1,{trigger:"pan"}),u=!0),d[t]=i}),u&&d.redraw(!1),s(d.container,{cursor:"move"})})}}),b(h.prototype,{select:function(e,t){var i=this,n=i.series,o=n.chart;this.selectedStaging=e=x(e,!i.selected),i.firePointEvent(e?"select":"unselect",{accumulate:t},function(){i.selected=i.options.selected=e,n.options.data[n.data.indexOf(i)]=i.options,i.setState(e&&"select"),t||o.getSelectedPoints().forEac
1h(function(e){var t=e.series;e.selected&&e!==i&&(e.selected=e.options.selected=!1,t.options.data[t.data.indexOf(e)]=e.options,e.setState(o.hoverPoints&&t.options.inactiveOtherPoints?"inactive":""),e.firePointEvent("unselect"))})}),delete this.selectedStaging},onMouseOver:function(e){var t=this.series.chart,i=t.pointer;e=e?i.normalize(e):i.getChartCoordinatesFromPoint(this,t.inverted),i.runPointActions(e,this)},onMouseOut:function(){var e=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(e.hoverPoints||[]).forEach(function(e){e.setState()}),e.hoverPoints=e.hoverPoint=null},importEvents:function(){if(!this.hasImportedEvents){var i=this,e=u(i.series.options.point,i.options).events;i.events=e,t(e,function(e,t){n.isFunction(e)&&o(i,t,e)}),this.hasImportedEvents=!0}},setState:function(e,t){var i,n=this.series,o=this.state,r=n.options.states[e||"normal"]||{},a=v[n.type].marker&&n.options.marker,s=a&&!1===a.enabled,l=a&&a.states&&a.states[e||"normal"]||{},c=!1===l.enabled,u=n.stateMarkerGraphic,d=this.marker||{},h=n.chart,p=n.halo,f=a&&n.markerAttribs;if(!((e=e||"")===this.state&&!t||this.selected&&"select"!==e||!1===r.enabled||e&&(c||s&&!1===l.enabled)||e&&d.states&&d.states[e]&&!1===d.states[e].enabled)){if(this.state=e,f&&(i=n.markerAttribs(this,e)),this.graphic){if(o&&this.graphic.removeClass("highcharts-point-"+o),e&&this.graphic.addClass("highcharts-point-"+e),!h.styledMode){var m=n.pointAttribs(this,e),g=x(h.options.chart.animation,r.animation);n.options.inactiveOtherPoints&&((this.dataLabels||[]).forEach(function(e){e&&e.animate({opacity:m.opacity},g)}),this.connector&&this.connector.animate({opacity:m.opacity},g)),this.graphic.animate(m,g)}i&&this.graphic.animate(i,x(h.options.chart.animation,l.animation,a.animation)),u&&u.hide()}else e&&l&&(o=d.symbol||n.symbol,u&&u.currentSymbol!==o&&(u=u.destroy()),u?u[t?"animate":"attr"]({x:i.x,y:i.y}):o&&(n.stateMarkerGraphic=u=h.renderer.symbol(o,i.x,i.y,i.width,i.height).add(n.markerGroup),u.currentSymbol=o),!h.styledMode&&u&&u.attr(n.pointAttribs(this,e))),u&&(u[e&&this.isInside?"show":"hide"](),u.element.point=this);e=r.halo,r=(u=this.graphic||u)&&u.visibility||"inherit",e&&e.size&&"hidden"!==r?(p||(n.halo=p=h.renderer.path().add(u.parentGroup)),p.show()[t?"animate":"attr"]({d:this.haloPath(e.size)}),p.attr({class:"highcharts-halo highcharts-color-"+x(this.colorIndex,n.colorIndex)+(this.className?" "+this.className:""),visibility:r,zIndex:-1}),p.point=this,h.styledMode||p.attr(b({fill:this.color||n.color,"fill-opacity":e.opacity},e.attributes))):p&&p.point&&p.point.haloPath&&p.animate({d:p.point.haloPath(0)},null,p.hide),y(this,"afterSetState")}},haloPath:function(e){return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX)-e,this.plotY-e,2*e,2*e)}}),b(f.prototype,{onMouseOver:function(){var e=this.chart,t=e.hoverSeries;t&&t!==this&&t.onMouseOut(),this.options.events.mouseOver&&y(this,"mouseOver"),this.setState("hover"),e.hoverSeries=this},onMouseOut:function(){var e=this.options,t=this.chart,i=t.tooltip,n=t.hoverPoint;t.hoverSeries=null,n&&n.onMouseOut(),this&&e.events.mouseOut&&y(this,"mouseOut"),!i||this.stickyTracking||i.shared&&!this.noSharedTooltip||i.hide(),t.series.forEach(function(e){e.setState("",!0)})},setState:function(t,e){var i=this,n=i.options,o=i.graph,r=n.inactiveOtherPoints,a=n.states,s=n.lineWidth,l=n.opacity,c=x(a[t||"normal"]&&a[t||"normal"].animation,i.chart.options.chart.animation);if(n=0,t=t||"",i.state!==t&&([i.group,i.markerGroup,i.dataLabelsGroup].forEach(function(e){e&&(i.state&&e.removeClass("highcharts-series-"+i.state),t&&e.addClass("highcharts-series-"+t))}),i.state=t,!i.chart.styledMode)){if(a[t]&&!1===a[t].enabled)return;if(t&&(s=a[t].lineWidth||s+(a[t].lineWidthPlus||0),l=x(a[t].opacity,l)),o&&!o.dashstyle)for(a={"stroke-width":s},o.animate(a,c);i["zone-graph-"+n];)i["zone-graph-"+n].attr(a),n+=1;r||[i.group,i.markerGroup,i.dataLabelsGroup,i.labelBySeries].forEach(function(e){e&&e.animate({opacity:l},c)})}e&&r&&i.points&&i.setAllPointsToState(t)}
1,setAllPointsToState:function(t){this.points.forEach(function(e){e.setState&&e.setState(t)})},setVisible:function(t,e){var i=this,n=i.chart,o=i.legendItem,r=n.options.chart.ignoreHiddenSeries,a=i.visible,s=(i.visible=t=i.options.visible=i.userOptions.visible=void 0===t?!a:t)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(e){i[e]&&i[e][s]()}),n.hoverSeries!==i&&(n.hoverPoint&&n.hoverPoint.series)!==i||i.onMouseOut(),o&&n.legend.colorizeItem(i,t),i.isDirty=!0,i.options.stacking&&n.series.forEach(function(e){e.options.stacking&&e.visible&&(e.isDirty=!0)}),i.linkedSeries.forEach(function(e){e.setVisible(t,!1)}),r&&(n.isDirtyBox=!0),y(i,s),!1!==e&&n.redraw()},show:function(){this.setVisible(!0)},hide:function(){this.setVisible(!1)},select:function(e){this.selected=e=this.options.selected=void 0===e?!this.selected:e,this.checkbox&&(this.checkbox.checked=e),y(this,e?"select":"unselect")},drawTracker:T.drawTrackerGraph})}),e(t,"parts/Responsive.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],function(r,e){var l=e.isArray,c=e.isObject,u=e.objectEach,d=e.splat;e=r.Chart;var n=r.pick;e.prototype.setResponsive=function(e,t){var i=this.options.responsive,n=[],o=this.currentResponsive;
1!t&&i&&i.rules&&i.rules.forEach(function(e){void 0===e._id&&(e._id=r.uniqueKey()),this.matchResponsiveRule(e,n)},this),(t=r.merge.apply(0,n.map(function(t){return r.find(i.rules,function(e){return e._id===t}).chartOptions}))).isResponsiveOptions=!0,(n=n.toString()||void 0)!==(o&&o.ruleIds)&&(o&&this.update(o.undoOptions,e,!0),n?((o=this.currentOptions(t)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:n,mergedOptions:t,undoOptions:o},this.update(t,e,!0)):this.currentResponsive=void 0)},e.prototype.matchResponsiveRule=function(e,t){var i=e.condition;(i.callback||function(){return this.chartWidth<=n(i.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=n(i.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=n(i.minWidth,0)&&this.chartHeight>=n(i.minHeight,0)}).call(this)&&t.push(e._id)},e.prototype.currentOptions=function(e){var s=this,t={};return function i(e,n,o,r){var a;u(e,function(e,t){if(!r&&-1<s.collectionsWithUpdate.indexOf(t))for(e=d(e),o[t]=[],a=0;a<e.length;a++)n[t][a]&&(o[t][a]={},i(e[a],n[t][a],o[t][a],r+1));else c(e)?(o[t]=l(e)?[]:{},i(e,n[t]||{},o[t],r+1)):o[t]=void 0===n[t]?null:n[t]})}(e,this.options,t,0),t}}),e(t,"masters/highcharts.src.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],function(e,t){return(0,e.extend)(e,{defined:t.defined,erase:t.erase,isArray:t.isArray,isClass:t.isClass,isDOMElement:t.isDOMElement,isNumber:t.isNumber,isObject:t.isObject,isString:t.isString,objectEach:t.objectEach,pInt:t.pInt,splat:t.splat}),e}),(t["masters/highcharts.src.js"]._modules=t)["masters/highcharts.src.js"]}),function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.persianDate=t():e.persianDate=t()}(this,function(){return function(i){function n(e){if(o[e])return o[e].exports;var t=o[e]={i:e,l:!1,exports:{}};return i[e].call(t.exports,t,t.exports,n),t.l=!0,t.exports}var o={};return n.m=i,n.c=o,n.i=function(e){return e},n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=8)}([function(e,t,i){"use strict";var n=function(){function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}}(),o=i(4).durationUnit,r=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return n(e,[{key:"toPersianDigit",value:function(e){var r=1<arguments.length&&void 0!==arguments[1]&&arguments[1];return e.toString().replace(/\d+/g,function(e){var t=[],i=[],n=void 0,o=void 0;for(n=0;n<e.length;n+=1)t.push(e.charCodeAt(n));for(o=0;o<t.length;o+=1)i.push(String.fromCharCode(t[o]+(r&&!0===r?1584:1728)));return i.join("")})}},{key:"leftZeroFill",value:function(e,t){for(var i=e+"";i.length<t;)i="0"+i;return i}},{key:"normalizeDuration",value:function(){var e=void 0,t=void 0;return"string"==typeof arguments[0]?(e=arguments[0],t=arguments[1]):(t=arguments[0],e=arguments[1]),-1<o.year.indexOf(e)?e="year":-1<o.month.indexOf(e)?e="month":-1<o.day.indexOf(e)?e="day":-1<o.hour.indexOf(e)?e="hour":-1<o.minute.indexOf(e)?e="minute":-1<o.second.indexOf(e)?e="second":-1<o.millisecond.indexOf(e)&&(e="millisecond"),{unit:e,value:t}}},{key:"absRound",value:function(e){return e<0?Math.ceil(e):Math.floor(e)}},{key:"absFloor",value:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)}}]),e}();e.exports=r},function(t,e,i){"use strict";var n=function(){function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}}(),o=i(10),a=i(2),r=i(0),f=i(5),s=(new r).toPersianDigit,x=(new r).leftZeroFill,m=(new r).normalizeDuration,l=i(7),c=i(6),u=function(){function r(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),this.calendarType=r.calendarType,this.localType=r.localType,this.leapYearMode=r.leapYearMode,this.algorithms=new a(this),this.version="1.0.5",this._utcMode=!1,"fa"!==this.localType?this.formatPersian=!1:this.formatPersian="_default",this.setup(e),this.ON=this.algorithms.ON,this}return n(r,[{key:"setup",value:function(e){if(o.isDate(e))this._gDateToCalculators(e);else if(o.isArray(e))this.algorithmsCalc([e[0],e[1]?e[1]:1,e[2]?e[2]:1,e[3],e[4],e[5],e[6]?e[6]:0]);else if(o.isNumber(e)){var t=new Date(e);this._gDateToCalculators(t)}else if(e instanceof r)this.algorithmsCalc([e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]);else if(e&&"/Date("===e.substring(0,6)){var i=new Date(parseInt(e.substr(6)));this._gDateToCalculators(i)}else{var n=new Date;this._gDateToCalculators(n)}}},{key:"_getSyncedClass",value:function(e){return new(r.toCalendar(this.calendarType).toLocale(this.localType).toLeapYearMode(this.leapYearMode))(e)}},{key:"_gDateToCalculators",value:function(e){this.algorithms.calcGregorian([e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()])}},{key:"rangeName",value:function(){var e=this.calendarType;return"fa"===this.localType?"persian"===e?l.persian:l.gregorian:"persian"===e?c.persian:c.gregorian}},{key:"toLeapYearMode",value:function(e){return"astronomical"===(this.leapYearMode=e)&&"persian"==this.calendarType?this.leapYearMode="astronomical":"algorithmic"===e&&"persian"==this.calendarType&&(this.leapYearMode="algorithmic"),this.algorithms.updateFromGregorian(),this}},{key:"toCalendar",value:function(e){return this.calendarType=e,this.algorithms.updateFromGregorian(),this}},{key:"toLocale",value:function(e){return this.localType=e,"fa"!==this.localType?this.formatPersian=!1:this.formatPersian="_default",this}},{key:"_locale",value:function(){var e=this.calendarType;return"fa"===this.localType?"persian"===e?l.persian:l.gregorian:"persian"===e?c.persian:c.gregorian}},{key:"_weekName",value:function(e){return this._locale().weekdays[e-1]}},{key:"_weekNameShort",value:function(e){return this._locale().weekdaysShort[e-1]}},{key:"_weekNameMin",value:function(e){return this._locale().weekdaysMin[e-1]}},{key:"_dayName",value:function(e){return this._locale().persianDaysName[e-1]}},{key:"_monthName",value:function(e){return this._locale().months[e-1]}},{key:"_monthNameShort",value:function(e){return this._locale().monthsShort[e-1]}},{key:"isPersianDate",value:function(e){return e instanceof r}},{key:"clone",value:function(){return this._getSyncedClass(this.ON.gDate)}},{key:"algorithmsCalc",value:function(e){return this.isPersianDate(e)&&(e=[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]),"persian"===this.calendarType&&"algorithmic"==this.leapYearMode?this.algorithms.calcPersian(e):"persian"===this.calendarType&&"astronomical"==this.leapYearMode?this.algorithms.calcPersiana(e):"gregorian"===this.calendarType?(e[1]=e[1]-1,this.algorithms.calcGregorian(e)):void 0}},{key:"calendar",value:function(){var e=void 0;return"persian"==this.calendarType?"astronomical"==this.leapYearMode?e="persianAstro":"algorithmic"==this.leapYearMode&&(e="persianAlgo"):e="gregorian",this.ON[e]}},{key:"duration",value:function(e,t){return new f(e,t)}},{key:"isDuration",value:function(e){return e instanceof f}},{key:"years",value:function(e){return this.year(e)}},{key:"year",value:function(e){return e||0===e?(this.algorithmsCalc([e,this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]),this):this.calendar(
vendor: 11,831 bytes, line 1
1).year}},{key:"month",value:function(e){return e||0===e?(this.algorithmsCalc([this.year(),e,this.date()]),this):this.calendar().month+1}},{key:"days",value:function(){return this.day()}},{key:"day",value:function(){return this.calendar().weekday}},{key:"dates",value:function(e){return this.date(e)}},{key:"date",value:function(e){return e||0===e?(this.algorithmsCalc([this.year(),this.month(),e]),this):this.calendar().day}},{key:"hour",value:function(e){return this.hours(e)}},{key:"hours",value:function(e){return e||0===e?(this.algorithmsCalc([this.year(),this.month(),this.date(),e]),this):this.ON.gDate.getHours()}},{key:"minute",value:function(e){return this.minutes(e)}},{key:"minutes",value:function(e){return e||0===e?(this.algorithmsCalc([this.year(),this.month(),this.date(),this.hour(),e]),this):this.ON.gDate.getMinutes()}},{key:"second",value:function(e){return this.seconds(e)}},{key:"seconds",value:function(e){return e||0===e?(this.algorithmsCalc([this.year(),this.month(),this.date(),this.hour(),this.minute(),e]),this):this.ON.gDate.getSeconds()}},{key:"millisecond",value:function(e){return this.milliseconds(e)}},{key:"milliseconds",value:function(e){return e||0===e?(this.algorithmsCalc([this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),e]),this):this.ON.gregorian.millisecond}},{key:"unix",value:function(e){var t;if(e)return this._getSyncedClass(1e3*e);var i=this.ON.gDate.valueOf().toString();return t=i.substring(0,i.length-3),parseInt(t)}},{key:"valueOf",value:function(){return this.ON.gDate.valueOf()}},{key:"getFirstWeekDayOfMonth",value:function(e,t){return this._getSyncedClass([e,t,1]).day()}},{key:"diff",value:function(e,t,i){var n=e,o=this.ON.gDate-n.toDate()-0,r=this.year()-n.year(),a=this.month()-n.month(),s=-1*(this.date()-n.date()),l=void 0;return(l="months"===t||"month"===t?12*r+a+s/30:"years"===t||"year"===t?r+(a+s/30)/12:"seconds"===t||"second"===t?o/1e3:"minutes"===t||"minute"===t?o/6e4:"hours"===t||"hour"===t?o/36e5:"days"===t||"day"===t?o/864e5:"weeks"===t||"week"===t?o/6048e5:o)<0&&(l*=-1),i?l:Math.round(l)}},{key:"startOf",value:function(e){var t=r.toCalendar(this.calendarType).toLocale(this.localType);switch(e){case"years":case"year":return new t([this.year(),1,1]);case"months":case"month":return new t([this.year(),this.month(),1]);case"days":case"day":return new t([this.year(),this.month(),this.date(),0,0,0]);case"hours":case"hour":return new t([this.year(),this.month(),this.date(),this.hours(),0,0]);case"minutes":case"minute":return new t([this.year(),this.month(),this.date(),this.hours(),this.minutes(),0]);case"seconds":case"second":return new t([this.year(),this.month(),this.date(),this.hours(),this.minutes(),this.seconds()]);case"weeks":case"week":return new t([this.year(),this.month(),this.date()-(this.calendar().weekday-1)]);default:return this.clone()}}},{key:"endOf",value:function(e){var t=r.toCalendar(this.calendarType).toLocale(this.localType);switch(e){case"years":case"year":var i=this.isLeapYear()?30:29;return new t([this.year(),12,i,23,59,59]);case"months":case"month":var n=this.daysInMonth(this.year(),this.month());return new t([this.year(),this.month(),n,23,59,59]);case"days":case"day":return new t([this.year(),this.month(),this.date(),23,59,59]);case"hours":case"hour":return new t([this.year(),this.month(),this.date(),this.hours(),59,59]);case"minutes":case"minute":return new t([this.year(),this.month(),this.date(),this.hours(),this.minutes(),59]);case"seconds":case"second":return new t([this.year(),this.month(),this.date(),this.hours(),this.minutes(),this.seconds()]);case"weeks":case"week":var o=this.calendar().weekday;return new t([this.year(),this.month(),this.date()+(7-o)]);default:return this.clone()}}},{key:"sod",value:function(){return this.startOf("day")}},{key:"eod",value:function(){return this.endOf("day")}},{key:"zone",value:function(e){return e||0===e?(this.ON.zone=e,this):this.ON.zone}},{key:"local",value:function(){var e=void 0;if(this._utcMode){var t=new Date(this.toDate()).getTimezoneOffset(),i=60*t*1e3;e=t<0?this.valueOf()-i:this.valueOf()+i,this.toCalendar(r.calendarType);var n=new Date(e);return this._gDateToCalculators(n),this._utcMode=!1,this.zone(t),this}return this}},{key:"utc",value:function(e){var t;if(e)return this._getSyncedClass(e).utc();if(this._utcMode)return this;var i=60*this.zone()*1e3;t=this.zone()<0?this.valueOf()+i:this.valueOf()-i;var n=new Date(t),o=this._getSyncedClass(n);return this.algorithmsCalc(o),this._utcMode=!0,this.zone(0),this}},{key:"isUtc",value:function(){return this._utcMode}},{key:"isDST",value:function(){var e=this.month(),t=this.date();return 1==e&&1<t||6==e&&t<31||e<6&&2<=e}},{key:"isLeapYear",value:function(e){return void 0===e&&(e=this.year()),"persian"==this.calendarType&&"algorithmic"===this.leapYearMode?this.algorithms.leap_persian(e):"persian"==this.calendarType&&"astronomical"===this.leapYearMode?this.algorithms.leap_persiana(e):"gregorian"==this.calendarType?this.algorithms.leap_gregorian(e):void 0}},{key:"daysInMonth",value:function(e,t){var i=e||this.year(),n=t||this.month();return"persian"===this.calendarType?n<1||12<n?0:n<7?31:n<12?30:this.isLeapYear(i)?30:29:"gregorian"===this.calendarType?new Date(i,n,0).getDate():void 0}},{key:"toDate",value:function(){return this.ON.gDate}},{key:"toArray",value:function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]}},{key:"formatNumber",value:function(){var e=void 0;return"_default"===this.formatPersian?e=void 0!==t&&void 0!==t.exports?!1!==this.formatPersian:!1!==window.formatPersian:!0===this.formatPersian?e=!0:!1===this.formatPersian?e=!1:Error('Invalid Config "formatPersian" !!'),e}},{key:"format",value:function(e){function t(e){switch(e){case"a":return b?12<=v.hour?"ب ظ":"ق ظ":12<=v.hour?"PM":"AM";case"H":return y(v.hour);case"HH":return y(x(v.hour,2));case"h":return y(v.hour%12);case"hh":return y(x(v.hour%12,2));case"m":case"mm":return y(x(v.minute,2));case"s":return y(v.second);case"ss":return y(x(v.second,2));case"D":return y(x(v.date));case"DD":return y(x(v.date,2));case"DDD":var t=g.startOf("year");return y(x(g.diff(t,"days"),3));case"DDDD":var i=g.startOf("year");return y(x(g.diff(i,"days"),3));case"d":return y(g.calendar().weekday);case"ddd":return g._weekNameShort(g.calendar().weekday);case"dddd":return g._weekName(g.calendar().weekday);case"ddddd":return g._dayName(g.calendar().day);case"dddddd":return g._weekNameMin(g.calendar().weekday);case"w":var n=g.startOf("year"),o=parseInt(g.diff(n,"days")/7)+1;return y(o);case"ww":var r=g.startOf("year"),a=x(parseInt(g.diff(r,"days")/7)+1,2);return y(a);case"M":return y(v.month);case"MM":return y(x(v.month,2));case"MMM":return g._monthNameShort(v.month);case"MMMM":return g._monthName(v.month);case"YY":var s=v.year.toString().split("");return y(s[2]+s[3]);case"YYYY":return y(v.year);case"Z":var l="+",c=Math.round(v.timezone/60),u=v.timezone%60;u<0&&(u*=-1),c<0&&(l="-",c*=-1);var d=l+x(c,2)+":"+x(u,2);return y(d);case"ZZ":var h="+",p=Math.round(v.timezone/60),f=v.timezone%60;f<0&&(f*=-1),p<0&&(h="-",p*=-1);var m=h+x(p,2)+""+x(f,2);return y(m);case"X":return g.unix();case"LT":return g.format("H:m a");case"L":return g.format("YYYY/MM/DD");case"l":return g.format("YYYY/M/D");case"LL":return g.format("MMMM DD YYYY");case"ll":return g.format("MMM DD YYYY");case"LLL":return g.format("MMMM YYYY DD   H:m  a");case"lll":return g.format("MMM YYYY DD   H:m  a");case"LLLL":return g.format("dddd D MMMM YYYY  H:m  a");case"llll":return g.format("ddd D MMM YYYY  H:m  a")}}var g=this,i=/([[^[]*])|(\\)?(Mo|MM?M?M?|Do|DD?D?D?|dddddd?|ddddd?|dddd?|do?|w[o|w]?|YYYY|YY|a|A|hh?|HH?|mm?|ss?|SS?S?|zz?|ZZ?|X|LT|ll?l?l?|LL?L?L?)/g,v={year:g.year(),month:g.month(),hour:g.hours(),minute:g.minutes(),second:g.seconds(),date:g.date(),timezone:g.zone(),unix:g.unix()},b=g.formatNumber(),y=function(e){return b?s(e):e};return e?e.replace(i,t):"YYYY-MM-DD HH:mm:ss a".replace(i,t)}},{key:"add",value:function(e,t){var i=new f(e,t)._data,n=m(e,t).unit;if(t=m(e,t).value,"year"===n||"month"===n){if(0<i.years){var o=this.year()+i.years;this.year(o)}if(0<i.months){var r=this.date(),a=this.month()+i.months,s=this.daysInMonth(this.year(),a);s<=r&&(r=s),this.date(r),this.month(a)}}if("day"===n){var l=this.hour(),c=this.valueOf()+24*t*60*60*1e3;return this.unix(c/1e3).hour(l)}if("hour"===n){var u=this.valueOf()+60*t*60*1e3;return this.unix(u/1e3)}if("minute"===n){var d=this.valueOf()+60*t*1e3;return this.unix(d/1e3)}if("second"===n){var h=this.valueOf()+1e3*t;return this.unix(h/1e3)}if("millisecond"!==n)return this._getSyncedClass(this.valueOf());var p=this.valueOf()+t;return this.unix(p/1e3)}},{key:"subtract",value:function(e,t){var i=new f(e,t)._data,n=m(e,t).unit;if(t=m(e,t).value,"year"===n||"month"===n){if(0<i.years){var o=this.year()-i.years;this.year(o)}if(0<i.months){var r=this.date(),a=this.month()-i.months;this.month(a);var s=this.daysInMonth(this.year(),this.month());s<r&&(r=s),this.date(r)}}if("day"===n){var l=this.hour(),c=this.valueOf()-24*t*60*60*1e3;return this.unix(c/1e3).hour(l)}if("hour"===n){var u=this.valueOf()-60*t*60*1e3;return this.unix(u/1e3)}if("minute"===n){var d=this.valueOf()-60*t*1e3;return this.unix(d/1e3)}if("second"===n){var h=this.valueOf()-1e3*t;return this.unix(h/1e3)}if("millisecond"!==n)return this._getSyncedClass(this.valueOf());var p=this.valueOf()-t;return this.unix(p/1e3)}},{key:"isSameDay",value:function(e){return this&&e&&this.date()==e.date()&&this.year()==e.year()&&this.month()==e.month()}},{key:"isSameMonth",value:function(e){return this&&e&&this.year()==this.year()&&this.month()==e.month()}}],[{key:"rangeName",value:function(){var e=r.calendarType;return"fa"===r.localType?"persian"===e?l.persian:l.gregorian:"persian"===e?c.persian:c.gregorian}},{key:"toLeapYearMode",value:function(e){var t=r;return t.leapYearMode=e,t}},{key:"toCalendar",value:function(e){var t=r;return t.calendarType=e,t}},{key:"toLocale",value:function(e){var t=r;return t.localType=e,"fa"!==t.localType?t.formatPersian=!1:t.formatPersian="_default",t}},{key:"isPersianDate",value:function(e){return e instanceof r}},{key:"duration",value:function(e,t){return new f(e,t)}},{key:"isDuration",value:function(e){return e instanceof f}},{key:"unix",value:function(e){return e?new r(1e3*e):(new r).unix()}},{key:"getFirstWeekDayOfMonth",value:function(e,t){return new r([e,t,1]).day()}},{key:"utc",value:function(e){return e?new r(e).utc():(new r).utc()}},{key:"isSameDay",value:function(e,t){return e&&t&&e.date()==t.date()&&e.year()==t.year()&&e.month()==t.month()}},{key:"isSameMonth",value:function(e,t){return e&&t&&e.year()==t.year()&&e.month()==t.month()}}]),r}();t.exports=u},function(e,t,i){"use strict";var n=function(){function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}}(),o=i(3),r=i(9),a=function(){function t(e){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,t),this.parent=e,this.ASTRO=new o,this.ON=new r,this.J0000=1721424.5,this.J1970=2440587.5,this.JMJD=2400000.5,this.NormLeap=[!1,!0],this.GREGORIAN_EPOCH=1721425.5,this.PERSIAN_EPOCH=1948320.5}return n(t,[{key:"leap_gregorian",value:function(e){return e%4==0&&!(e%100==0&&e%400!=0)}},{key:"gregorian_to_jd",value:function(e,t,i){return this.GREGORIAN_EPOCH-1+365*(e-1)+Math.floor((e-1)/4)+-Math.floor((e-1)/100)+Math.floor((e-1)/400)+Math.floor((367*t-362)/12+(t<=2?0:this.leap_gregorian(e)?-1:-2)+i)}},{key:"jd_to_gregorian",value:function(e){var t,i,n,o,r,a,s,l,c,u,d,h,p=void 0;return i=(t=Math.floor(e-.5)+.5)-this.GREGORIAN_EPOCH,n=Math.floor(i/146097),o=this.ASTRO.mod(i,146097),r=M
1ath.floor(o/36524),a=this.ASTRO.mod(o,36524),s=Math.floor(a/1461),l=this.ASTRO.mod(a,1461),p=400*n+100*r+4*s+(c=Math.floor(l/365)),4!==r&&4!==c&&p++,u=t-this.gregorian_to_jd(p,1,1),d=t<this.gregorian_to_jd(p,3,1)?0:this.leap_gregorian(p)?1:2,[p,h=Math.floor((12*(u+d)+373)/367),t-this.gregorian_to_jd(p,h,1)+1]}},{key:"tehran_equinox",value:function(e){var t;return(t=this.ASTRO.equinox(e,0))-this.ASTRO.deltat(e)/86400+this.ASTRO.equationOfTime(t)+52.5/360}},{key:"tehran_equinox_jd",value:function(e){var t;return t=this.tehran_equinox(e),Math.floor(t)}},{key:"persiana_year",value:function(e){var t=this.jd_to_gregorian(e)[0]-2,i=void 0,n=void 0;for(i=this.tehran_equinox_jd(t);e<i;)t--,i=this.tehran_equinox_jd(t);for(n=i-1;!(i<=e&&e<n);)i=n,t++,n=this.tehran_equinox_jd(t);return[Math.round((i-this.PERSIAN_EPOCH)/this.ASTRO.TropicalYear)+1,i]}},{key:"jd_to_persiana",value:function(e){var t,i,n,o,r;return e=Math.floor(e)+.5,t=(n=this.persiana_year(e))[0],o=n[1],Math.floor((e-o)/30)+1,[t,i=(r=Math.floor(e)-this.persiana_to_jd(t,1,1)+1)<=186?Math.ceil(r/31):Math.ceil((r-6)/30),Math.floor(e)-this.persiana_to_jd(t,i,1)+1]}},{key:"persiana_to_jd",value:function(e,t,i){var n=void 0,o=void 0;for(o=this.PERSIAN_EPOCH-1+this.ASTRO.TropicalYear*(e-1-1),n=[e-1,0];n[0]<e;)o=(n=this.persiana_year(o))[1]+(this.ASTRO.TropicalYear+2);return n[1]+(t<=7?31*(t-1):30*(t-1)+6)+(i-1)}},{key:"leap_persiana",value:function(e){return 365<this.persiana_to_jd(e+1,1,1)-this.persiana_to_jd(e,1,1)}},{key:"leap_persian",value:function(e){return 682*((e-(0<e?474:473))%2820+474+38)%2816<682}},{key:"persian_to_jd",value:function(e,t,i){var n,o;return n=e-(0<=e?474:473),o=474+this.ASTRO.mod(n,2820),i+(t<=7?31*(t-1):30*(t-1)+6)+Math.floor((682*o-110)/2816)+365*(o-1)+1029983*Math.floor(n/2820)+(this.PERSIAN_EPOCH-1)}},{key:"jd_to_persian",value:function(e){var t,i,n,o,r,a=void 0,s=void 0,l=void 0;return i=(e=Math.floor(e)+.5)-this.persian_to_jd(475,1,1),n=Math.floor(i/1029983),(a=(1029982===(o=this.ASTRO.mod(i,1029983))?2820:(s=Math.floor(o/366),l=this.ASTRO.mod(o,366),Math.floor((2134*s+2816*l+2815)/1028522)+s+1))+2820*n+474)<=0&&a--,[a,t=(r=e-this.persian_to_jd(a,1,1)+1)<=186?Math.ceil(r/31):Math.ceil((r-6)/30),e-this.persian_to_jd(a,t,1)+1]}},{key:"gWeekDayToPersian",value:function(e){return e+2===8?1:e+2===7?7:e+2}},{key:"updateFromGregorian",value:function(){var e,t,i,n,o,r=void 0,a=void 0;t=this.ON.gregorian.year,i=this.ON.gregorian.month,n=this.ON.gregorian.day,this.ON.gDate=new Date(t,i,n,this.ON.gregorian.hour,this.ON.gregorian.minute,this.ON.gregorian.second,this.ON.gregorian.millisecond),!1===this.parent._utcMode&&(this.ON.zone=this.ON.gDate.getTimezoneOffset()),this.ON.gregorian.year=this.ON.gDate.getFullYear(),this.ON.gregorian.month=this.ON.gDate.getMonth(),this.ON.gregorian.day=this.ON.gDate.getDate(),e=this.gregorian_to_jd(t,i+1,n)+Math.floor(.5)/86400,this.ON.julianday=e,this.ON.modifiedjulianday=e-this.JMJD,r=this.ASTRO.jwday(e),this.ON.gregorian.weekday=r+1,this.ON.gregorian.leap=this.NormLeap[this.leap_gregorian(t)?1:0],r=this.ASTRO.jwday(e),"persian"==this.parent.calendarType&&"algorithmic"==this.parent.leapYearMode&&(a=this.jd_to_persian(e),this.ON.persian.year=a[0],this.ON.persian.month=a[1]-1,this.ON.persian.day=a[2],this.ON.persian.weekday=this.gWeekDayToPersian(r),this.ON.persian.leap=this.NormLeap[this.leap_persian(a[0])?1:0]),"persian"==this.parent.calendarType&&"astronomical"==this.parent.leapYearMode&&(a=this.jd_to_persiana(e),this.ON.persianAstro.year=a[0],this.ON.persianAstro.month=a[1]-1,this.ON.persianAstro.day=a[2],this.ON.persianAstro.weekday=this.gWeekDayToPersian(r),this.ON.persianAstro.leap=this.NormLeap[this.leap_persiana(a[0])?1:0]),null!==this.ON.gregserial.day&&(this.ON.gregserial.day=e-this.J0000),o=864e5*(e-this.J1970),this.ON.unixtime=Math.round(o/1e3)}},{key:"calcGregorian",value:function(e){(e[0]||0===e[0])&&(this.ON.gregorian.year=e[0]),(e[1]||0===e[1])&&(this.ON.gregorian.month=e[1]),(e[2]||0===e[2])&&(this.ON.gregorian.day=e[2]),(e[3]||0===e[3])&&(this.ON.gregorian.hour=e[3]),(e[4]||0===e[4])&&(this.ON.gregorian.minute=e[4]),(e[5]||0===e[5])&&(this.ON.gregorian.second=e[5]),(e[6]||0===e[6])&&(this.ON.gregorian.millisecond=e[6]),this.updateFromGregorian()}},{key:"calcJulian",value:function(){var e,t;e=this.ON.julianday,t=this.jd_to_gregorian(e),this.ON.gregorian.year=t[0],this.ON.gregorian.month=t[1]-1,this.ON.gregorian.day=t[2],this.updateFromGregorian()}},{key:"setJulian",value:function(e){this.ON.julianday=e,this.calcJulian()}},{key:"calcPersian",value:function(e){e[0]&&(this.ON.persian.year=e[0]),e[1]&&(this.ON.persian.month=e[1]),e[2]&&(this.ON.persian.day=e[2]),e[3]&&(this.ON.gregorian.hour=e[3]),e[4]&&(this.ON.gregorian.minute=e[4]),e[5]&&(this.ON.gregorian.second=e[5]),e[6]&&(this.ON.gregorian.millisecond=e[6]),this.setJulian(this.persian_to_jd(this.ON.persian.year,this.ON.persian.month,this.ON.persian.day))}},{key:"calcPersiana",value:function(e){e[0]&&(this.ON.persianAstro.year=e[0]),e[1]&&(this.ON.persianAstro.month=e[1]),e[2]&&(this.ON.persianAstro.day=e[2]),e[3]&&(this.ON.gregorian.hour=e[3]),e[4]&&(this.ON.gregorian.minute=e[4]),e[5]&&(this.ON.gregorian.second=e[5]),e[6]&&(this.ON.gregorian.millisecond=e[6]),this.setJulian(this.persiana_to_jd(this.ON.persianAstro.year,this.ON.persianAstro.month,this.ON.persianAstro.day+.5))}}]),t}();e.exports=a},function(e,t,i){"use strict";var n=function(){function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}}(),o=function(){function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.J2000=2451545,this.JulianCentury=36525,this.JulianMillennium=10*this.JulianCentury,this.TropicalYear=365.24219878,this.oterms=[-4680.93,-1.55,1999.25,-51.38,-249.67,-39.05,7.12,27.87,5.79,2.45],this.nutArgMult=[0,0,0,0,1,-2,0,0,2,2,0,0,0,2,2,0,0,0,0,2,0,1,0,0,0,0,0,1,0,0,-2,1,0,2,2,0,0,0,2,1,0,0,1,2,2,
vendor: 5,549 bytes, line 1
1-2,-1,0,2,2,-2,0,1,0,0,-2,0,0,2,1,0,0,-1,2,2,2,0,0,0,0,0,0,1,0,1,2,0,-1,2,2,0,0,-1,0,1,0,0,1,2,1,-2,0,2,0,0,0,0,-2,2,1,2,0,0,2,2,0,0,2,2,2,0,0,2,0,0,-2,0,1,2,2,0,0,0,2,0,-2,0,0,2,0,0,0,-1,2,1,0,2,0,0,0,2,0,-1,0,1,-2,2,0,2,2,0,1,0,0,1,-2,0,1,0,1,0,-1,0,0,1,0,0,2,-2,0,2,0,-1,2,1,2,0,1,2,2,0,1,0,2,2,-2,1,1,0,0,0,-1,0,2,2,2,0,0,2,1,2,0,1,0,0,-2,0,2,2,2,-2,0,1,2,1,2,0,-2,0,1,2,0,0,0,1,0,-1,1,0,0,-2,-1,0,2,1,-2,0,0,0,1,0,0,2,2,1,-2,0,2,0,1,-2,1,0,2,1,0,0,1,-2,0,-1,0,1,0,0,-2,1,0,0,0,1,0,0,0,0,0,0,1,2,0,-1,-1,1,0,0,0,1,1,0,0,0,-1,1,2,2,2,-1,-1,2,2,0,0,-2,2,2,0,0,3,2,2,2,-1,0,2,2],this.nutArgCoeff=[-171996,-1742,92095,89,-13187,-16,5736,-31,-2274,-2,977,-5,2062,2,-895,5,1426,-34,54,-1,712,1,-7,0,-517,12,224,-6,-386,-4,200,0,-301,0,129,-1,217,-5,-95,3,-158,0,0,0,129,1,-70,0,123,0,-53,0,63,0,0,0,63,1,-33,0,-59,0,26,0,-58,-1,32,0,-51,0,27,0,48,0,0,0,46,0,-24,0,-38,0,16,0,-31,0,13,0,29,0,0,0,29,0,-12,0,26,0,0,0,-22,0,0,0,21,0,-10,0,17,-1,0,0,16,0,-8,0,-16,1,7,0,-15,0,9,0,-13,0,7,0,-12,0,6,0,11,0,0,0,-10,0,5,0,-8,0,3,0,7,0,-3,0,-7,0,0,0,-7,0,3,0,-7,0,3,0,6,0,0,0,6,0,-3,0,6,0,-3,0,-6,0,3,0,-6,0,3,0,5,0,0,0,-5,0,3,0,-5,0,3,0,-5,0,3,0,4,0,0,0,4,0,0,0,4,0,0,0,-4,0,0,0,-4,0,0,0,-4,0,0,0,3,0,0,0,-3,0,0,0,-3,0,0,0,-3,0,0,0,-3,0,0,0,-3,0,0,0,-3,0,0,0,-3,0,0,0],this.deltaTtab=[121,112,103,95,88,82,77,72,68,63,60,56,53,51,48,46,44,42,40,38,35,33,31,29,26,24,22,20,18,16,14,12,11,10,9,8,7,7,7,7,7,7,8,8,9,9,9,9,9,10,10,10,10,10,10,10,10,11,11,11,11,11,12,12,12,12,13,13,13,14,14,14,14,15,15,15,15,15,16,16,16,16,16,16,16,16,15,15,14,13,13.1,12.5,12.2,12,12,12,12,12,12,11.9,11.6,11,10.2,9.2,8.2,7.1,6.2,5.6,5.4,5.3,5.4,5.6,5.9,6.2,6.5,6.8,7.1,7.3,7.5,7.6,7.7,7.3,6.2,5.2,2.7,1.4,-1.2,-2.8,-3.8,-4.8,-5.5,-5.3,-5.6,-5.7,-5.9,-6,-6.3,-6.5,-6.2,-4.7,-2.8,-.1,2.6,5.3,7.7,10.4,13.3,16,18.2,20.2,21.1,22.4,23.5,23.8,24.3,24,23.9,23.9,23.7,24,24.3,25.3,26.2,27.3,28.2,29.1,30,30.7,31.4,32.2,33.1,34,35,36.5,38.3,40.2,42.2,44.5,46.5,48.5,50.5,52.2,53.8,54.9,55.8,56.9,58.3,60,61.6,63,65,66.6],this.EquinoxpTerms=[485,324.96,1934.136,203,337.23,32964.467,199,342.08,20.186,182,27.85,445267.112,156,73.14,45036.886,136,171.52,22518.443,77,222.54,65928.934,74,296.72,3034.906,70,243.58,9037.513,58,119.81,33718.147,52,297.17,150.678,50,21.02,2281.226,45,247.54,29929.562,44,325.15,31555.956,29,60.93,4443.417,18,155.12,67555.328,17,288.79,4562.452,16,198.04,62894.029,14,199.76,31436.921,12,95.39,14577.848,12,287.11,31931.756,12,320.81,34777.259,9,227.73,1222.114,8,15.45,16859.074],this.JDE0tab1000=[new Array(1721139.29189,365242.1374,.06134,.00111,-71e-5),new Array(1721233.25401,365241.72562,-.05323,.00907,25e-5),new Array(1721325.70455,365242.49558,-.11677,-.00297,74e-5),new Array(1721414.39987,365242.88257,-.00769,-.00933,-6e-5)],this.JDE0tab2000=[new Array(2451623.80984,365242.37404,.05169,-.00411,-57e-5),new Array(2451716.56767,365241.62603,.00325,.00888,-3e-4),new Array(2451810.21715,365242.01767,-.11575,.00337,78e-5),new Array(2451900.05952,365242.74049,-.06223,-.00823,32e-5)]}return n(e,[{key:"dtr",value:function(e){return e*Math.PI/180}},{key:"rtd",value:function(e){return 180*e/Math.PI}},{key:"fixangle",value:function(e){return e-360*Math.floor(e/360)}},{key:"fixangr",value:function(e){return e-2*Math.PI*Math.floor(e/(2*Math.PI))}},{key:"dsin",value:function(e){return Math.sin(this.dtr(e))}},{key:"dcos",value:function(e){return Math.cos(this.dtr(e))}},{key:"mod",value:function(e,t){return e-t*Math.floor(e/t)}},{key:"jwday",value:function(e){return this.mod(Math.floor(e+1.5),7)}},{key:"obliqeq",value:function(e){var t,i,n,o;if(n=i=(e-this.J2000)/(100*this.JulianCentury),t=23.43929111111111,Math.abs(i)<1)for(o=0;o<10;o++)t+=this.oterms[o]/3600*n,n*=i;return t}},{key:"nutation",value:function(e){var t,i,n,o,r,a,s=(e-2451545)/36525,l=[],c=0,u=0;for(o=s*(n=s*s),l[0]=this.dtr(297.850363+445267.11148*s-.0019142*n+o/189474),l[1]=this.dtr(357.52772+35999.05034*s-1603e-7*n-o/3e5),l[2]=this.dtr(134.96298+477198.867398*s+.0086972*n+o/56250),l[3]=this.dtr(93.27191+483202.017538*s-.0036825*n+o/327270),l[4]=this.dtr(125.04452-1934.136261*s+.0020708*n+o/45e4),t=0;t<5;t++)l[t]=this.fixangr(l[t]);for(r=s/10,t=0;t<63;t++){for(i=a=0;i<5;i++)0!==this.nutArgMult[5*t+i]&&(a+=this.nutArgMult[5*t+i]*l[i]);c+=(this.nutArgCoeff[4*t+0]+this.nutArgCoeff[4*t+1]*r)*Math.sin(a),u+=(this.nutArgCoeff[4*t+2]+this.nutArgCoeff[4*t+3]*r)*Math.cos(a)}return[c/36e6,u/36e6]}},{key:"deltat",value:function(e){var t,i,n,o;return 1620<=e&&e<=2e3?(i=(e-1620)/2-(n=Math.floor((e-1620)/2)),t=this.deltaTtab[n]+(this.deltaTtab[n+1]-this.deltaTtab[n])*i):(o=(e-2e3)/100,e<948?t=2177+497*o+44.1*o*o:(t=102+102*o+25.3*o*o,2e3<e&&e<2100&&(t+=.37*(e-2100)))),t}},{key:"equinox",value:function(e,t){var i,n,o,r,a=void 0,s=void 0,l=void 0,c=void 0,u=void 0;for(u=e<1e3?(l=this.JDE0tab1000,e/1e3):(l=this.JDE0tab2000,(e-2e3)/1e3),r=35999.373*(o=((n=l[t][0]+l[t][1]*u+l[t][2]*u*u+l[t][3]*u*u*u+l[t][4]*u*u*u*u)-2451545)/36525)-2.47,i=1+.0334*this.dcos(r)+7e-4*this.dcos(2*r),a=s=c=0;a<24;a++)c+=this.EquinoxpTerms[s]*this.dcos(this.EquinoxpTerms[s+1]+this.EquinoxpTerms[s+2]*o),s+=3;return n+1e-5*c/i}},{key:"sunpos",value:function(e){var t,i,n,o,r,a,s,l,c,u,d,h,p=void 0,f=void 0,m=void 0,g=void 0;return p=280.46646+36000.76983*(t=(e-this.J2000)/this.JulianCentury)+3032e-7*(i=t*t),p=this.fixangle(p),f=357.52911+35999.05029*t+-1537e-7*i,f=this.fixangle(f),n=.016708634+-42037e-9*t+-1.267e-7*i,r=p+(o=(1.914602+-.004817*t+-14e-6*i)*this.dsin(f)+(.019993-101e-6*t)*this.dsin(2*f)+289e-6*this.dsin(3*f)),a=f+o,s=1.000001018*(1-n*n)/(1+n*this.dcos(a)),l=125.04-1934.136
vendor: 6,119 bytes, line 1
1*t,c=r+-.00569+-.00478*this.dsin(l),u=(d=this.obliqeq(e))+.00256*this.dcos(l),m=this.rtd(Math.atan2(this.dcos(d)*this.dsin(r),this.dcos(r))),m=this.fixangle(m),h=this.rtd(Math.asin(this.dsin(d)*this.dsin(r))),g=this.rtd(Math.atan2(this.dcos(u)*this.dsin(c),this.dcos(c))),[p,f,n,o,r,a,s,c,m,h,g=this.fixangle(g),this.rtd(Math.asin(this.dsin(u)*this.dsin(c)))]}},{key:"equationOfTime",value:function(e){var t,i,n,o,r=void 0,a=void 0;return a=280.4664567+360007.6982779*(o=(e-this.J2000)/this.JulianMillennium)+.03032028*o*o+o*o*o/49931+-o*o*o*o/15300+-o*o*o*o*o/2e6,a=this.fixangle(a),t=this.sunpos(e)[10],i=this.nutation(e)[0],n=this.obliqeq(e)+this.nutation(e)[1],r=a+-.0057183+-t+i*this.dcos(n),(r-=20*Math.floor(r/20))/1440}}]),e}();e.exports=o},function(e,t,i){"use strict";e.exports={durationUnit:{year:["y","years","year"],month:["M","months","month"],day:["d","days","day"],hour:["h","hours","hour"],minute:["m","minutes","minute"],second:["s","second","seconds"],millisecond:["ms","milliseconds","millisecond"],week:["w","","weeks","week"]}}},function(e,t,i){"use strict";var n=function(){function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}}(),o=i(0),f=(new o).normalizeDuration,m=(new o).absRound,g=(new o).absFloor,r=function(){function p(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p);var i,n={},o=this._data={},r=f(e,t);n[r.unit]=r.value,i=n.milliseconds||n.millisecond||n.ms||0;var a=n.years||n.year||n.y||0,s=n.months||n.month||n.M||0,l=n.weeks||n.w||n.week||0,c=n.days||n.d||n.day||0,u=n.hours||n.hour||n.h||0,d=n.minutes||n.minute||n.m||0,h=n.seconds||n.second||n.s||0;return this._milliseconds=i+1e3*h+6e4*d+36e5*u,this._days=c+7*l,this._months=s+12*a,o.milliseconds=i%1e3,h+=g(i/1e3),o.seconds=h%60,d+=m(h/60),o.minutes=d%60,u+=m(d/60),o.hours=u%24,c+=m(u/24),c+=7*l,o.days=c%30,s+=m(c/30),o.months=s%12,a+=m(s/12),o.years=a,this}return n(p,[{key:"valueOf",value:function(){return this._milliseconds+864e5*this._days+2592e6*this._months}}]),p}();e.exports=r},function(e,t,i){"use strict";e.exports={gregorian:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekdaysMin:["Su","Mo","Tu","We","Th","Fr","Sa"]},persian:{months:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthsShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],weekdays:["Saturday","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekdaysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],persianDaysName:["Urmazd","Bahman","Ordibehesht","Shahrivar","Sepandarmaz","Khurdad","Amordad","Dey-be-azar","Azar","Aban","Khorshid","Mah","Tir","Gush","Dey-be-mehr","Mehr","Sorush","Rashn","Farvardin","Bahram","Ram","Bad","Dey-be-din","Din","Ord","Ashtad","Asman","Zamyad","Mantre-sepand","Anaram","Ziadi"]}}},function(e,t,i){"use strict";e.exports={gregorian:{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_")},persian:{months:["فروردین","اردیبهشت","خرداد","تیر","مرداد","شهریور","مهر","آبان","آذر","دی","بهمن","اسفند"],monthsShort:["فرو","ارد","خرد","تیر","مرد","شهر","مهر","آبا","آذر","دی","بهم","اسف"],weekdays:["شنبه","یکشنبه","دوشنبه","سه شنبه","چهار شنبه","پنج‌شنبه","جمعه"],weekdaysShort:["ش","ی","د","س","چ","پ","ج"],weekdaysMin:["ش","ی","د","س","چ","پ","ج"],persianDaysName:["اورمزد","بهمن","اوردیبهشت","شهریور","سپندارمذ","خورداد","امرداد","دی به آذز","آذز","آبان","خورشید","ماه","تیر","گوش","دی به مهر","مهر","سروش","رشن","فروردین","بهرام","رام","باد","دی به دین","دین","ارد","اشتاد","آسمان","زامیاد","مانتره سپند","انارام","زیادی"]}}},function(e,t,i){"use strict";var n=i(1);n.calendarType="persian",n.leapYearMode="astronomical",n.localType="fa",e.exports=n},function(e,t,i){"use strict";e.exports=function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.gDate=null,this.modifiedjulianday=0,this.julianday=0,this.gregserial={day:0},this.zone=0,this.gregorian={year:0,month:0,day:0,hour:0,minute:0,second:0,millisecond:0,weekday:0,unix:0,leap:0},this.juliancalendar={year:0,month:0,day:0,leap:0,weekday:0},this.islamic={year:0,month:0,day:0,leap:0,weekday:0},this.persianAlgo=this.persian={year:0,month:0,day:0,leap:0,weekday:0},this.persianAstro={year:0,month:0,day:0,leap:0,weekday:0},this.isoweek={year:0,week:0,day:0},this.isoday={year:0,day:0}}},function(e,t,i){"use strict";e.exports={isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},isNumber:function(e){return"number"==typeof e},isDate:function(e){return e instanceof Date}}}])}),function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exp
1orts.persianDatepicker=t():e.persianDatepicker=t()}(this,function(){return function(i){function n(e){if(o[e])return o[e].exports;var t=o[e]={i:e,l:!1,exports:{}};return i[e].call(t.exports,t,t.exports,n),t.l=!0,t.exports}var o={};return n.m=i,n.c=o,n.i=function(e){return e},n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=5)}([function(e,t,i){"use strict";var n,o,r={debounce:function(n,o,r){var a;return function(){var e=this,t=arguments,i=r&&!a;clearTimeout(a),a=setTimeout(function(){a=null,r||n.apply(e,t)},o),i&&n.apply(e,t)}},log:function(e){console.log(e)},isMobile:(o=!1,n=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(n)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(n.substr(0,4)))&&(o=!0),o),debug:function(e,t){window.persianDatepickerDebug&&(e.constructor.name?console.log("Debug: "+e.constructor.name+" : "+t):console.log("Debug: "+t))},delay:function(e,t){clearTimeout(window.datepickerTimer),window.datepickerTimer=setTimeout(e,t)}};e.exports=r},function(e,t,i){"use strict";e.exports='\n<div id="plotId" class="datepicker-plot-area {{cssClass}}">\n    {{#navigator.enabled}}\n        <div data-navigator class="datepicker-navigator">\n            <div class="pwt-btn pwt-btn-next">{{navigator.text.btnNextText}}</div>\n            <div class="pwt-btn pwt-btn-switch">{{navigator.switch.text}}</div>\n            <div class="pwt-btn pwt-btn-prev">{{navigator.text.btnPrevText}}</div>\n        </div>\n    {{/navigator.enabled}}\n    <div class="datepicker-grid-view" >\n    {{#days.enabled}}\n        {{#days.viewMode}}\n        <div class="datepicker-day-view" >    \n            <div class="month-grid-box">\n                <div class="header">\n                    <div class="title"></div>\n                    <div class="header-row">\n                        {{#weekdays.list}}\n                            <div class="header-row-cell">{{.}}</div>\n                        {{/weekdays.list}}\n                    </div>\n                </div>    \n                <table cellspacing="0" class="table-days">\n                    <tbody>\n                        {{#days.list}}\n                           \n                            <tr>\n                                {{#.}}\n                                    {{#enabled}}\n                                        <td data-date="{{dataDate}}" data-unix="{{dataUnix}}" >
1\n                                            <span  class="{{#otherMonth}}other-month{{/otherMonth}}">{{title}}</span>\n                                            {{#altCalendarShowHint}}\n                                            <i  class="alter-calendar-day">{{alterCalTitle}}</i>\n                                            {{/altCalendarShowHint}}\n                                        </td>\n                                    {{/enabled}}\n                                    {{^enabled}}\n                                        <td data-date="{{dataDate}}" data-unix="{{dataUnix}}" class="disabled">\n                                            <span class="{{#otherMonth}}other-month{{/otherMonth}}">{{title}}</span>\n                                            {{#altCalendarShowHint}}\n                                            <i  class="alter-calendar-day">{{alterCalTitle}}</i>\n                                            {{/altCalendarShowHint}}\n                                        </td>\n                                    {{/enabled}}\n                                    \n                                {{/.}}\n                            </tr>\n                        {{/days.list}}\n                    </tbody>\n                </table>\n            </div>\n        </div>\n        {{/days.viewMode}}\n    {{/days.enabled}}\n    \n    {{#month.enabled}}\n        {{#month.viewMode}}\n            <div class="datepicker-month-view">\n                {{#month.list}}\n                    {{#enabled}}               \n                        <div data-month="{{dataMonth}}" class="month-item {{#selected}}selected{{/selected}}">{{title}}</small></div>\n                    {{/enabled}}\n                    {{^enabled}}               \n                        <div data-month="{{dataMonth}}" class="month-item month-item-disable {{#selected}}selected{{/selected}}">{{title}}</small></div>\n                    {{/enabled}}\n                {{/month.list}}\n            </div>\n        {{/month.viewMode}}\n    {{/month.enabled}}\n    \n    {{#year.enabled }}\n        {{#year.viewMode }}\n            <div class="datepicker-year-view" >\n                {{#year.list}}\n                    {{#enabled}}\n                        <div data-year="{{dataYear}}" class="year-item {{#selected}}selected{{/selected}}">{{title}}</div>\n                    {{/enabled}}\n                    {{^enabled}}\n                        <div data-year="{{dataYear}}" class="year-item year-item-disable {{#selected}}selected{{/selected}}">{{title}}</div>\n                    {{/enabled}}                    \n                {{/year.list}}\n            </div>\n        {{/year.viewMode }}\n    {{/year.enabled }}\n    \n    </div>\n    {{#time}}\n    {{#enabled}}\n    <div class="datepicker-time-view">\n        {{#hour.enabled}}\n            <div class="hour time-segment" data-time-key="hour">\n                <div class="up-btn" data-time-key="hour">▲</div>\n                <input value="{{hour.title}}" type="text" placeholder="hour" class="hour-input">\n                <div class="down-btn" data-time-key="hour">▼</div>                    \n            </div>       \n            <div class="divider">\n                <span>:</span>\n            </div>\n        {{/hour.enabled}}\n        {{#minute.enabled}}\n            <div class="minute time-segment" data-time-key="minute" >\n                <div class="up-btn" data-time-key="minute">▲</div>\n                <input disabled value="{{minute.title}}" type="text" placeholder="minute" class="minute-input">\n                <div class="down-btn" data-time-key="minute">▼</div>\n            </div>        \n            <div class="divider second-divider">\n                <span>:</span>\n            </div>\n        {{/minute.enabled}}\n        {{#second.enabled}}\n            <div class="second time-segment" data-time-key="second"  >\n                <div class="up-btn" data-time-key="second" >▲</div>\n                <input disabled value="{{second.title}}"  type="text" placeholder="second" class="second-input">\n                <div class="down-btn" data-time-key="second" >▼</div>\n            </div>\n            <div class="divider meridian-divider"></div>\n            <div class="divider meridian-divider"></div>\n        {{/second.enabled}}\n        {{#meridian.enabled}}\n            <div class="meridian time-segment" data-time-key="meridian" >\n                <div class="up-btn" data-time-key="meridian">▲</div>\n                <input disabled value="{{meridian.title}}" type="text" class="meridian-input">\n                <div class="down-btn" data-time-key="meridian">▼</div>\n            </div>\n        {{/meridian.enabled}}\n    </div>\n    {{/enabled}}\n    {{/time}}\n    \n    {{#toolbox}}\n    {{#enabled}}\n    <div class="toolbox">\n        {{#toolbox.submitButton.enabled}}\n            <div class="pwt-btn-submit">{{submitButtonText}}</div>\n        {{/toolbox.submitButton.enabled}}        \n        {{#toolbox.todayButton.enabled}}\n            <div class="pwt-btn-today">{{todayButtonText}}</div>\n        {{/toolbox.todayButton.enabled}}        \n        {{#toolbox.calendarSwitch.enabled}}\n            <div class="pwt-btn-calendar">{{calendarSwitchText}}</div>\n        {{/toolbox.calendarSwitch.enabled}}\n    </div>\n    {{/enabled}}\n    {{^enabled}}\n        {{#onlyTimePicker}}\n        <div class="toolbox">\n            <div class="pwt-btn-submit">{{submitButtonText}}</div>\n        </div>\n        {{/onlyTimePicker}}\n    {{/enabled}}\n    {{/toolbox}}\n</div>\n'},function(e,t,i){"use strict";var n=function(){function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}}(),o=i(11),r=i(12),a=i(13),s=i(6),l=i(3),c=i(7),u=i(8),d=i(10),h=function(){function i(e,t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),this.components(e,t)}
vendor: 42,847 bytes, line 1
1return n(i,[{key:"components",value:function(e,t){return this.initialUnix=null,this.inputElement=e,this.options=new u(t,this),this.PersianDate=new d(this),this.state=new o(this),this.api=new l(this),this.input=new s(this,e),this.view=new a(this),this.toolbox=new r(this),this.updateInput=function(e){this.input.update(e)},this.state.setViewDateTime("unix",this.input.getOnInitState()),this.state.setSelectedDateTime("unix",this.input.getOnInitState()),this.view.render(),this.navigator=new c(this),this.api}}]),i}();e.exports=h},function(e,t,i){"use strict";var n=function(){function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}}(),o=function(){function t(e){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,t),this.model=e}return n(t,[{key:"show",value:function(){return this.model.view.show(),this.model.options.onShow(this.model),this.model}},{key:"getState",value:function(){return this.model.state}},{key:"hide",value:function(){return this.model.view.hide(),this.model.options.onHide(this.model),this.model}},{key:"toggle",value:function(){return this.model.view.toggle(),this.model.options.onToggle(this.model),this.model}},{key:"destroy",value:function(){this.model&&(this.model.view.destroy(),this.model.options.onDestroy(this.model),delete this.model)}},{key:"setDate",value:function(e){return this.model.state.setSelectedDateTime("unix",e),this.model.state.setViewDateTime("unix",e),this.model.state.setSelectedDateTime("unix",e),this.model.view.render(this.view),this.model.options.onSet(e),this.model}},{key:"options",get:function(){return this.model.options},set:function(e){var t=$.extend(!0,this.model.options,e);this.model.view.destroy(),this.model.components(this.model.inputElement,t)}}]),t}();e.exports=o},function(e,t,i){"use strict";var n=i(0),o={calendarType:"persian",calendar:{persian:{locale:"fa",showHint:!1,leapYearMode:"algorithmic"},gregorian:{locale:"en",showHint:!1}},responsive:!0,inline:!1,initialValue:!0,initialValueType:"gregorian",persianDigit:!0,viewMode:"day",format:"LLLL",formatter:function(e){return this.model.PersianDate.date(e).format(this.format)},altField:!1,altFormat:"unix",altFieldFormatter:function(e){var t=this.altFormat.toLowerCase();return"gregorian"===t||"g"===t?new Date(e):"unix"===t||"u"===t?e:this.model.PersianDate.date(e).format(this.altFormat)},minDate:null,maxDate:null,navigator:{enabled:!0,scroll:{enabled:!0},text:{btnNextText:"<",btnPrevText:">"},onNext:function(e){n.debug(e,"Event: onNext")},onPrev:function(e){n.debug(e,"Event: onPrev")},onSwitch:function(e){n.debug(e,"dayPicker Event: onSwitch")}},toolbox:{enabled:!0,text:{btnToday:"امروز"},submitButton:{enabled:n.isMobile,text:{fa:"تایید",en:"submit"},onSubmit:function(e){n.debug(e,"dayPicker Event: onSubmit")}},todayButton:{enabled:!0,text:{fa:"امروز",en:"today"},onToday:function(e){n.debug(e,"dayPicker Event: onToday")}},calendarSwitch:{enabled:!0,format:"MMMM",onSwitch:function(e){n.debug(e,"dayPicker Event: onSwitch")}},onToday:function(e){n.debug(e,"dayPicker Event: onToday")}},onlyTimePicker:!1,onlySelectOnDate:!0,checkDate:function(){return!0},checkMonth:function(){return!0},checkYear:function(){return!0},timePicker:{enabled:!1,step:1,hour:{enabled:!0,step:null},minute:{enabled:!0,step:null},second:{enabled:!0,step:null},meridian:{enabled:!1}},dayPicker:{enabled:!0,titleFormat:"YYYY MMMM",titleFormatter:function(e,t){return this.model.PersianDate.date([e,t]).format(this.model.options.dayPicker.titleFormat)},onSelect:function(e){n.debug(this,"dayPicker Event: onSelect : "+e)}},monthPicker:{enabled:!0,titleFormat:"YYYY",titleFormatter:function(e){return this.model.PersianDate.date(e).format(this.model.options.monthPicker.titleFormat)},onSelect:function(e){n.debug(this,"monthPicker Event: onSelect : "+e)}},yearPicker:{enabled:!0,titleFormat:"YYYY",titleFormatter:function(e){var t=12*parseInt(e/12,10),i=this.model.PersianDate.date([t]),n=this.model.PersianDate.date([t+11]);return i.format(this.model.options.yearPicker.titleFormat)+"-"+n.format(this.model.options.yearPicker.titleFormat)},onSelect:function(e){n.debug(this,"yearPicker Event: onSelect : "+e)}},onSelect:function(e){n.debug(this,"datepicker Event: onSelect : "+e)},onSet:function(e){n.debug(this,"datepicker Event: onSet : "+e)},position:"auto",onShow:function(e){n.debug(e,"Event: onShow ")},onHide:function(e){n.debug(e,"Event: onHide ")},onToggle:function(e){n.debug(e,"Event: onToggle ")},onDestroy:function(e){n.debug(e,"Event: onDestroy ")},autoClose:!1,template:null,observer:!1,inputDelay:800};e.exports=o},function(e,t,i){"use strict";var a,s=i(2);(a=jQuery).fn.persianDatepicker=a.fn.pDatepicker=function(n){var o=Array.prototype.slice.call(arguments),r=this;return this||a.error("Invalid selector"),a(this).each(function(){var e=o.concat([]),t=a(this).data("datepicker"),i=null;t&&"string"==typeof e[0]?(i=e[0],t[i](e[0])):r.pDatePicker=new s(this,n)}),a(this).data("datepicker",r.pDatePicker),r.pDatePicker}},function(e,t,i){"use strict";var n=function(){function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}}(),l=i(0),s=i(9),o=function(){function i(e,t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),this.model=e,this._firstUpdate=!0,this.elem=t,this.model.options.observer&&this.observe(),this.addInitialClass(),this.initialUnix=null,0==this.model.options.inline&&this._attachInputElementEvents(),this}return n(i,[{key:"addInitialClass",value:function(){$(this.elem).addClass("pwt-datepicker-input-element")}},{key:"parseInput",value:function(e){var t=new s;if(void 0!==t.parse(e)){var i=this.model.PersianDate.date(t.parse(e)).valueOf();this.model.state.setSelectedDateTime("unix",i),this.model.state.setViewDateTime("unix",i),this.model.view.render()}}},{key:"observe",value:function(){var n=this;$(n.elem).bind("paste",function(e){l.delay(function(){n.parseInput(e.target.value)},60)});var o=void 0,r=n.model.options.inputDelay,a=!1,s=[17,91];$(document).keydown(function(e){0<$.inArray(e.keyCode,s)&&(a=!0)}).keyup(function(e){0<$.inArray(e.keyCode,s)&&(a=!1)}),$(n.elem).bind("keyup",function(e){var t=$(this),i=!1;(8===e.keyCode||e.keyCode<105&&96<e.keyCode||e.keyCode<58&&47<e.keyCode||a&&(86==e.keyCode||0<$.inArray(e.keyCode,s)))&&(i=!0),i&&(clearTimeout(o),o=setTimeout(function(){var e;e=t,n.parseInput(e.val())},r))}),$(n.elem).on("keydown",function(){clearTimeout(o)})}},{key:"_attachInputElementEvents",value:function(){var i=this,t=function e(t){$(t.target).is(i.elem)||$(t.target).is(i.model.view.$container)||0!=$(t.target).closest("#"+i.model.view.$container.attr("id")).length||$(t.target).is($(i.elem).children())||(i.model.api.hide(),$("body").unbind("click",e))};$(this.elem).on("focus click",l.debounce(function(e){return i.model.api.show(),!1===i.model.state.ui.isInline&&$("body").unbind("click",t).bind("click",t),l.isMobile&&$(this).blur(),e.stopPropagation(),!1},200))}},{key:"getInputPosition",value:function(){return $(this.elem).offset()}},{key:"getInputSize",value:function(){return{width:$(this.elem).outerWidth(),height:$(this.elem).outerHeight()}}},{key:"_updateAltField",value:function(e){var t=this.model.options.altFieldFormatter(e);$(this.model.options.altField).val(t)}},{key:"_updateInputField",value:function(e){var t=this.model.options.formatter(e);$(this.elem).val()!=t&&$(this.elem).val(t)}},{key:"update",value:function(e){0==this.model.options.initialValue&&this._firstUpdate?this._firstUpdate=!1:(this._updateInputField(e),this._updateAltField(e))}},{key:"getOnInitState",value:function(){var e=null,t=$(this.elem),i=void 0;if((i="INPUT"===t[0].nodeName?t[0].getAttribute("value"):t.data("date"))&&i.match("^([0-1][0-9]|2[0-3]):([0-5][0-9])(?::([0-5][0-9]))?$")){var n=i.split(":"),o=new Date;o.setHours(n[0]),o.setMinutes(n[1]),n[2]?o.setSeconds(n[2]):o.setSeconds(0),this.initialUnix=o.valueOf()}else{if("persian"===this.model.options.initialValueType&&i){var r=new s,a=new persianDate(r.parse(i)).valueOf();e=new Date(a).valueOf()}else i&&(e=new Date(i).valueOf());this.initialUnix=e&&"undefined"!=e?e:(new Date).valueOf()}return this.initialUnix}}]),i}();e.exports=o},function(e,t,i){"use strict";var n=function(){function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}}(),r=i(14),o=function(){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.model=e,this.liveAttach(),this._attachEvents(),this}return n(t,[{key:"liveAttach",value:function(){if(this.model.options.navigator.scroll.enabled){var o=this,e=$("#"+o.model.view.id+" .datepicker-grid-view")[0];r(e).wheel(function(e,t){0<t?o.model.state.navigate("next"):o.model.state.navigate("prev"),o.model.view.render(),e.preventDefault()}),this.model.options.timePicker.enabled&&$("#"+o.model.view.id+" .time-segment").each(function(){r(this).wheel(function(e,t){var i=$(e.target),n=i.data("time-key")?i.data("time-key"):i.parents("[data-time-key]").data("time-key");n&&(0<t?o.timeUp(n):o.timeDown(n)),o.model.view.render(),e.preventDefault()})})}}},{key:"timeUp",value:function(e){if(null!=this.model.options.timePicker[e]){var t=void 0,i=void 0,n=this;"meridian"==e?(t=12,i="PM"==this.model.state.view.meridian?this.model.PersianDate.date(this.model.state.selected.unixDate).add("hour",t).valueOf():this.model.PersianDate.date(this.model.state.selected.unixDate).subtract("hour",t).valueOf(),this.model.state.meridianToggle()):(t=this.model.options.timePicker[e].step,i=this.model.PersianDate.date(this.model.state.selected.unixDate).add(e,t).valueOf()),this.model.state.setViewDateTime("unix",i),this.model.state.setSelectedDateTime("unix",i),this.model.view.renderTimePartial(),clearTimeout(this.scrollDelayTimeDown),this.scrollDelayTimeUp=setTimeout(function(){n.model.view.markSelectedDay()},300)}}},{key:"timeDown",value:function(e){if(null!=this.model.options.timePicker[e]){var t=void 0,i=void 0,n=this;"meridian"==e?(t=12,i="AM"==this.model.state.view.meridian?this.model.PersianDate.date(this.model.state.selected.unixDate).add("hour",t).valueOf():this.model.PersianDate.date(this.model.state.selected.unixDate).subtract("hour",t).valueOf(),this.model.state.meridianToggle()):(t=this.model.options.timePicker[e].step,i=this.model.PersianDate.date(this.model.state.selected.unixDate).subtract(e,t).valueOf()),this.model.state.setViewDateTime("unix",i),this.model.state.setSelectedDateTime("unix",i),this.model.view.renderTimePartial(),clearTimeout(this.scrollDelayTimeDown),this.scrollDelayTimeDown=setTimeout(function(){n.model.view.markSelectedDay()},300)}}},{key:"_attachEvents",value:function(){var i=this;this.model.options.navigator.enabled&&$(document).on("click","#"+i.model.view.id+" .pwt-btn",function(){$(this).is(".pwt-btn-next")?(i.model.state.navigate("next"),i.model.view.render(),i.model.options.navigator.onNext(i.model)):$(this).is(".pwt-btn-switch")?(i.model.state.switchViewMode(),i.model.view.render(),i.model.options.navigator.onSwitch(i.model)):$(this).is(".pwt-btn-prev")&&(i.model.state.navigate("prev"),i.model.view.render(),i.model.options.navigator.onPrev(i.model))}),this.model.options.timePicker.enabled&&($(document).on("click","#"+i.model.view.id+" .up-btn",function(){var e=$(this).data("time-key");i.timeUp(e),i.model.options.onSelect(i.model.state.selected.unix)}),$(document).on("click","#"+i.model.view.id+" .down-btn",function(){var e=$(this).data("time-key");i.timeDown(e),i.model.options.onSelect(i.model.state.selected.unix)})),this.model.options.dayPicker.enabled&&$(document).on("click","#"+i.model.view.id+" .datepicker-day-view td:not(.disabled)",function(){var e,t=$(this).data("unix");i.model.state.setSelectedDateTime("unix",t),e=i.model.state.selected.month!==i.model.state.view.month,i.model.state.setViewDateTime("unix",i.model.state.selected.unixDate),i.model.options.autoClose&&(i.model.view.hide(),i.model.options.onHide(i)),e?i.model.view.render():i.model.view.markSelectedDay(),i.model.options.dayPicker.onSelect(t),i.model.options.onSelect(t)}),this.model.options.monthPicker.enabled&&$(document).on("click","#"+i.model.view.id+" .datepicker-month-view .month-item:not(.month-item-disable)",function(){var e=$(this).data("month");i.model.state.switchViewModeTo("day"),i.model.options.onlySelectOnDate||(i.model.state.setSelectedDateTime("month",e),i.model.options.autoClose&&(i.model.view.hide(),i.model.options.onHide(i))),i.model.state.setViewDateTime("month",e),i.model.view.render(),i.model.options.monthPicker.onSelect(e),i.model.options.onSelect(i.model.state.selected.unix)}),this.model.options.yearPicker.enabled&&$(document).on("click","#"+i.model.view.id+" .datepicker-year-view .year-item:not(.year-item-disable)",function(){var e=$(this).data("year");i.model.state.switchViewModeTo("month"),i.model.options.onlySelectOnDate||(i.model.state.setSelectedDateTime("year",e),i.model.options.autoClose&&(i.model.view.hide(),i.model.options.onHide(i))),i.model.state.setViewDateTime("year",e),i.model.view.render(),i.model.options.yearPicker.onSelect(e),i.model.options.onSelect(i.model.state.selected.unix)})}}]),t}();e.exports=o},function(e,t,i){"use strict";var n=function(){function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}}(),o=i(4),r=i(1),a=function(){function i(e,t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),this.model=t,this._compatibility($.extend(!0,this,o,e))}return n(i,[{key:"_compatibility",value:function(e){e.inline&&(e.toolbox.submitButton.enabled=!1),e.template||(e.template=r),persianDate.toCalendar(e.calendarType),persianDate.toLocale(e.calendar[e.calendarType].locale),e.onlyTimePicker&&(e.dayPicker.enabled=!1,e.monthPicker.enabled=!1,e.yearPicker.enabled=!1,e.navigator.enabled=!1,e.toolbox.enabled=!1,e.timePicker.enabled=!0),null===e.timePicker.hour.step&&(e.timePicker.hour.step=e.timePicker.step),null===e.timePicker.minute.step&&(e.timePicker.minute.step=e.timePicker.step),null===e.timePicker.second.step&&(e.timePicker.second.step=e.timePicker.step),!1===e.dayPicker.enabled&&(e.onlySelectOnDate=!1),e._viewModeList=[],e.dayPicker.enabled&&e._viewModeList.push("day"),e.monthPicker.enabled&&e._viewModeList.push("month"),e.yearPicker.enabled&&e._viewModeList.push("year")}}]),i}();e.exports=a},function(e,t,i){"use strict";var n=function(){function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}}(),o=function(){function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.pattern={jalali:/^[1-4]\d{3}(\/|-|\.)((0?[1-6](\/|-|\.)((3[0-1])|([1-2][0-9])|(0?[1-9])))|((1[0-2]|(0?[7-9]))(\/|-|\.)(30|([1-2][0-9])|(0?[1-9]))))$/g}}return n(e,[{key:"parse",value:function(e){var t=new RegExp(this.pattern.jalali);return String.prototype.toEnglishDigits=function(){var t="۰".charCodeAt(0);return this.replace(/[۰-۹]/g,function(e){return e.charCodeAt(0)-t})},e=e.toEnglishDigits(),t.test(e)?e.split(/\/|-|\,|\./).map(Number):void 0}}]),e}();e.exports=o},function(e,t,i){"use strict";var n=function(){function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}}(),o=function(){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.model=e,this.model.options.calendar_=this.model.options.calendarType,this.model.options.locale_=this.model.options.calendar[this.model.options.calendarType].locale,this}return n(t,[{key:"date",value:function(e){window.inspdCount||0===window.inspdCount?window.inspdCount++:window.inspdCount=0;var t=void 0;return t=persianDate.toCalendar(this.model.options.calendar_),this.model.options.calendar[this.model.options.calendarType].leapYearMode&&t.toLeapYearMode(this.model.options.calendar[this.model.options.calendarType].leapYearMode),new t(e).toLocale(this.model.options.locale_)}}]),t}();e.exports=o},function(e,t,i){"use strict";var n=function(){function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}}(),o=function(){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.model=e,this.filetredDate=this.model.options.minDate||this.model.options.maxDate,this.viewModeList=this.model.options._viewModeList,this.viewMode=0<this.viewModeList.indexOf(e.options.viewMode)?e.options.viewMode:this.viewModeList[0],this.viewModeIndex=0<this.viewModeList.indexOf(e.options.viewMode)?this.viewModeList.indexOf(e.options.viewMode):0,this.filterDate={start:{year:0,month:0,date:0,hour:0,minute:0,second:0,unixDate:0},end:{year:0,month:0,date:0,hour:0,minute:0,second:0,unixDate:0}},this.view={year:0,month:0,date:0,hour:0,minute:0,second:0,unixDate:0,dateObject:null,meridian:"AM"},this.selected={year:0,month:0,date:0,hour:0,hour12:0,minute:0,second:0,unixDate:0,dateObject:null},this.ui={isOpen:!1,isInline:this.model.options.inline},this._setFilterDate(this.model.options.minDate,this.model.options.maxDate),this}return n(t,[{key:"_setFilterDate",value:function(e,t){var i=this;e||(e=-2e15),t||(t=2e15);var n=i.model.PersianDate.date(e);i.filterDate.start.unixDate=e,i.filterDate.start.hour=n.hour(),i.filterDate.start.minute=n.minute(),i.filterDate.start.second=n.second(),i.filterDate.start.month=n.month(),i.filterDate.start.date=n.date(),i.filterDate.start.year=n.year();var o=i.model.PersianDate.date(t);i.filterDate.end.unixDate=t,i.filterDate.end.hour=o.hour(),i.filterDate.end.minute=o.minute(),i.filterDate.end.second=o.second(),i.filterDate.end.month=o.month(),i.filterDate.end.date=o.date(),i.filterDate.end.year=o.year()}},{key:"navigate",value:function(e){if("next"==e){if("year"==this.viewMode&&this.setViewDateTime("year",this.view.year+12),"month"==this.viewMode){var t=this.view.year+1;0===t&&(t=1),this.setViewDateTime("year",t)}if("day"==this.viewMode){var i=this.view.year+1;0===i&&(i=1),this.view.month+1==13?(this.setViewDateTime("year",i),this.setViewDateTime("month",1)):this.setViewDateTime("month",this.view.month+1)}}else{if("year"==this.viewMode&&this.setViewDateTime("year",this.view.year-12),"month"==this.viewMode){var n=this.view.year-1;0===n&&(n=-1),this.setViewDateTime("year",n)}if("day"==this.viewMode)if(this.view.month-1<=0){var o=this.view.year-1;0===o&&(o=-1),this.setViewDateTime("year",o),this.setViewDateTime("month",12)}else this.setViewDateTime("month",this.view.month-1)}}},{key:"switchViewMode",value:function(){return this.viewModeIndex=this.viewModeIndex+1>=this.viewModeList.length?0:this.viewModeIndex+1,this.viewMode=this.viewModeList[this.viewModeIndex]?this.viewModeList[this.viewModeIndex]:this.viewModeList[0],this._setViewDateTimeUnix(),this}},{key:"switchViewModeTo",value:function(e){0<=this.viewModeList.indexOf(e)&&(this.viewMode=e,this.viewModeIndex=this.viewModeList.indexOf(e))}},{key:"setSelectedDateTime",value:function(e,t){switch(e){case"unix":this.selected.unixDate=t;var i=this.model.PersianDate.date(t);this.selected.year=i.year(),this.selected.month=i.month(),this.selected.date=i.date(),this.selected.hour=i.hour(),this.selected.hour12=i.format("hh"),this.selected.minute=i.minute(),this.selected.second=i.second();break;case"year":this.selected.year=t;break;case"month":this.selected.month=t;break;case"date":this.selected.date=t;break;case"hour":this.selected.hour=t;break;case"minute":this.selected.minute=t;break;case"second":this.selected.second=t}return this._updateSelectedUnix(),this}},{key:"_updateSelectedUnix",value:function(){return this.selected.dateObject=this.model.PersianDate.date([this.selected.year,this.selected.month,this.selected.date,this.view.hour,this.view.minute,this.view.second]),this.selected.unixDate=this.selected.dateObject.valueOf(),this.model.updateInput(this.selected.unixDate),this}},{key:"_setViewDateTimeUnix",value:function(){return this.view.dateObject=this.model.PersianDate.date([this.view.year,this.view.month,this.view.date,this.view.hour,this.view.minute,this.view.second]),this.view.year=this.view.dateObject.year(),this.view.month=this.view.dateObject.month(),this.view.date=this.view.dateObject.date(),this.view.hour=this.view.dateObject.hour(),this.view.hour12=this.view.dateObject.format("hh"),this.view.minute=this.view.dateObject.minute(),this.view.second=this.view.dateObject.second(),this.view.unixDate=this.view.dateObject.valueOf(),this}},{key:"setViewDateTime",value:function(e,t){switch(e){case"unix":var i=this.model.PersianDate.date(t);this.view.year=i.year(),this.view.month=i.month(),this.view.date=i.date(),this.view.hour=i.hour(),this.view.minute=i.minute(),this.view.second=i.second();break;case"year":this.view.year=t;break;case"month":this.view.month=t;break;case"date":this.view.date=t;break;case"hour":this.view.hour=t;break;case"minute":this.view.minute=t;break;case"second":this.view.second=t}return this._setViewDateTimeUnix(),this}},{key:"meridianToggle",value:function(){"AM"===this.view.meridian?this.view.meridian="PM":"PM"===this.view.meridian&&(this.view.meridian="AM")}}]),t}();e.exports=o},function(e,t,i){"use strict";var n=function(){function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}}(),o=function(){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.model=e,this._attachEvents(),this}return n(t,[{key:"_toggleCalendartype",value:function(){"persian"==this.model.options.calendar_?(this.model.options.calendar_="gregorian",this.model.options.locale_=this.model.options.calendar.gregorian.locale):(this.model.options.calendar_="persian",this.model.options.locale_=this.model.options.calendar.persian.locale)}},{key:"_attachEvents",value:function(){var e=this;$(document).on("click","#"+e.model.view.id+" .pwt-btn-today",function(){e.model.state.setSelectedDateTime("unix",(new Date).valueOf()),e.model.state.setViewDateTime("unix",(new Date).valueOf()),e.model.view.reRender(),e.model.options.toolbox.onToday(e.model),e.model.options.toolbox.todayButton.onToday(e.model)}),$(document).on("click","#"+e.model.view.id+" .pwt-btn-calendar",function(){e._toggleCalendartype(),e.model.state.setSelectedDateTime("unix",e.model.state.selected.unixDate),e.model.state.setViewDateTime("unix",e.model.state.view.unixDate),e.model.view.render(),e.model.options.toolbox.calendarSwitch.onSwitch(e.model)}),$(document).on("click","#"+e.model.view.id+" .pwt-btn-submit",function(){e.model.view.hide(),e.model.options.toolbox.submitButton.onSubmit(e.model),e.model.options.onHide(this)})}}]),t}();e.exports=o},function(e,t,i){"use strict";var P=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!t||i.length!==t);n=!0);}catch(e){o=!0,r=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw r}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},n=function(){function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}}(),o=i(1),r=i(0),a=i(15),s=function(){function t(e){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,t),this.yearsViewCount=12,this.model=e,this.rendered=null,this.$container=null,this.id="persianDateInstance-"+parseInt(1e3*Math.random(100));return this.model.state.ui.isInline?this.$container=$('<div  id="'+this.id+'" class="datepicker-container-inline"></div>').appendTo(this.model.inputElement):(this.$container=$('<div  id="'+this.id+'" class="datepicker-container"></div>').appendTo("body"),this.hide(),this.setPickerBoxPosition(),this.addCompatibilityClass()),this}return n(t,[{key:"addCompatibilityClass",value:function(){r.isMobile&&this.model.options.responsive&&this.$container.addClass("pwt-mobile-view")}},{key:"destroy",value:function(){this.$container.remove()}},{key:"setPickerBoxPosition",value:function(){var e=this.model.input.getInputPosition(),t=this.model.input.getInputSize();if(r.isMobile&&this.model.options.responsive)return!1;"auto"===this.model.options.position?this.$container.css({left:e.left+"px",top:t.height+e.top+"px"}):this.$container.css({left:this.model.options.position[1]+e.left+"px",top:this.model.options.position[0]+e.top+"px"})}},{key:"show",value:function(){this.$container.removeClass("pwt-hide"),this.setPickerBoxPosition()}},{key:"hide",value:function(){this.$container.addClass("pwt-hide")}},{key:"toggle",value:function(){this.$container.toggleClass("pwt-hide")}},{key:"_getNavSwitchText",value:function(e){var t=void 0;return"day"==this.model.state.viewMode?t=this.model.options.dayPicker.titleFormatter.call(this,e.year,e.month):"month"==this.model.state.viewMode?t=this.model.options.monthPicker.titleFormatter.call(this,e.dateObject.valueOf()):"year"==this.model.state.viewMode&&(t=this.model.options.yearPicker.titleFormatter.call(this,e.year)),t}},{key:"checkYearAccess",value:function(e){if(this.model.state.filetredDate){var t=this.model.state.filterDate.start.year,i=this.model.state.filterDate.end.year;if(t&&e<t)return!1;if(i&&i<e)return!1}return this.model.options.checkYear(e)}},{key:"_getYearViewModel",value:function(t){var i=this,e=this.model.options.yearPicker.enabled;if(!e)return{enabled:!1};var n=[].concat(function(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}(Array(this.yearsViewCount).keys())).map(function(e){return e+parseInt(t.year/i.yearsViewCount)*i.yearsViewCount}),o=[],r=this.model.PersianDate.date(),a=!0,s=!1,l=void 0;try{for(var c,u=n[Symbol.iterator]();!(a=(c=u.next()).done);a=!0){var d=c.value;r.year([d]),o.push({title:r.format("YYYY"),enabled:this.checkYearAccess(d),dataYear:d,selected:this.model.state.selected.year==d})}}catch(t){s=!0,l=t}finally{try{!a&&u.return&&u.return()}finally{if(s)throw l}}return{enabled:e,viewMode:"year"==this.model.state.viewMode,list:o}}},{key:"checkMonthAccess",value:function(e){e+=1;var t=this.model.state.view.year;if(this.model.state.filetredDate){var i=this.model.state.filterDate.start.month,n=this.model.state.filterDate.end.month,o=this.model.state.filterDate.start.year,r=this.model.state.filterDate.end.year;if(i&&n&&(t==r&&n<e||r<t)||t==o&&e<i||t<o)return!1;if(n&&(t==r&&n<e||r<t))return!1;if(i&&(t==o&&e<i||t<o))return!1}return this.model.options.checkMonth(e,t)}},{key:"_getMonthViewModel",value:function(){var e=this.model.options.monthPicker.enabled;if(!e)return{enabled:!1};var t=[],i=!0,n=!1,o=void 0;try{for(var r,a=this.model.PersianDate.date().rangeName().months.entries()[Symbol.iterator]();!(i=(r=a.next()).done);i=!0){var s=P(r.value,2),l=s[0],c=s[1];t.push({title:c,enabled:this.checkMonthAccess(l),year:this.model.state.view.year,dataMonth:l+1,selected:this.model.state.selected.year==this.model.state.view.year&&this.model.state.selected.month==l+1})}}catch(e){n=!0,o=e}finally{try{!i&&a.return&&a.return()}finally{if(n)throw o}}return{enabled:e,viewMode:"month"==this.model.state.viewMode,list:t}}},{key:"checkDayAccess",value:function(e){var t=this;if(t.minDate=this.model.options.minDate,t.maxDate=this.model.options.maxDate,t.model.state.filetredDate)if(t.minDate&&t.maxDate){if(t.minDate=t.model.PersianDate.date(t.minDate).startOf("day").valueOf(),t.maxDate=t.model.PersianDate.date(t.maxDate).endOf("day").valueOf(),!(e>=t.minDate&&e<=t.maxDate))return!1}else if(t.minDate){if(t.minDate=t.model.PersianDate.date(t.minDate).startOf("day").valueOf(),e<=t.minDate)return!1}else if(t.maxDate&&(t.maxDate=t.model.PersianDate.date(t.maxDate).endOf("day").valueOf(),e>=t.maxDate))return!1;return t.model.options.checkDate(e)}},{key:"_getDayViewModel",value:function(){if("day"!=this.model.state.viewMode)return[];var e=this.model.options.dayPicker.enabled;if(!e)return{enabled:!1};var t=this.model.state.view.month,i=this.model.state.view.year,n=this.model.PersianDate.date(),o=n.daysInMonth(i,t),r=n.getFirstWeekDayOfMonth(i,t)-1,a=[],s=0,l=0,c=this._getAnotherCalendar(),u=this.model.PersianDate.date(),d=!0,h=!1,p=void 0;try{for(var f,m=[["null","null","null","null","null","null","null"],["null","null","null","null","null","null","null"],["null","null","null","null","null","null","null"],["null","null","null","null","null","null","null"],["null","null","null","null","null","null","null"],["null","null","null","null","null","null","null"]].entries()[Symbol.iterator]();!(d=(f=m.next()).done);d=!0){var g=P(f.value,2),v=g[0],b=g[1];a[v]=[];var y=!0,x=!1,T=void 0;try{for(var S,w=b.entries()[Symbol.iterator]();!(y=(S=w.next()).done);y=!0){var k=P(S.value,1)[0],C=void 0,M=void 0;M=0===v&&k<r?(C=u.unix(this.model.state.view.dateObject.startOf("month").valueOf()/1e3).subtract("days",r-k),!0):0===v&&r<=k||v<=5&&s<o?(s+=1,C=u.year(this.model.state.view.year).month(this.model.state.view.month).date(s),!1):(l+=1,C=u.unix(this.model.state.view.dateObject.endOf("month").valueOf()/1e3).add("days",l),!0),a[v].push({title:C.format("D"),alterCalTitle:new persianDate(C.valueOf()).toCalendar(c[0]).toLocale(c[1]).format("D"),dataDate:[C.year(),C.month(),C.date()].join(","),dataUnix:C.valueOf(),otherMonth:M,enabled:this.checkDayAccess(C.valueOf())})}}catch(e){x=!0,T=e}finally{try{!y&&w.return&&w.return()}finally{if(x)throw T}}}}catch(e){h=!0,p=e}finally{try{!d&&m.return&&m.return()}finally{if(h)throw p}}return{enabled:e,viewMode:"day"==this.model.state.viewMode,list:a}}},{key:"markSelectedDay",value:function(){var e=this.model.state.selected;this.$container.find(".table-days td").each(function(){$(this).data("date")==[e.year,e.month,e.date].join(",")?$(this).addClass("selected"):$(this).removeClass("selected")})}},{key:"markToday",value:function(){var e=new persianDate;this.$container.find(".table-days td").each(function(){$(this).data("date")==[e.year(),e.month(),e.date()].join(",")?$(this).addClass("today"):$(this).removeClass("today")})}},{key:"_getTimeViewModel",value:function(){var e=this.model.options.timePicker.enabled;if(!e)return{enabled:!1};return{enabled:e,hour:{title:this.model.options.timePicker.meridian.enabled?this.model.state.view.dateObject.format("hh"):this.model.state.view.dateObject.format("HH"),enabled:this.model.options.timePicker.hour.enabled},minute:{title:this.model.state.view.dateObject.format("mm"),enabled:this.model.options.timePicker.minute.enabled},second:{title:this.model.state.view.dateObject.format("ss"),enabled:this.model.options.timePicker.second.enabled},meridian:{title:this.model.state.view.dateObject.format("a"),enabled:this.model.options.timePicker.meridian.enabled}}}},{key:"_getWeekViewModel",value:function(){return{enabled:!0,list:this.model.PersianDate.date().rangeName().weekdaysMin}}},{key:"getCssClass",value:function(){return[this.model.state.ui.isInline?"datepicker-plot-area-inline-view":"",this.model.options.timePicker.meridian.enabled?"":"datepicker-state-no-meridian",this.model.options.onlyTimePicker?"datepicker-state-only-time":"",this.model.options.timePicker.second.enabled?"":"datepicker-state-no-second","gregorian"==this.model.options.calendar_?"datepicker-gregorian":"datepicker-persian"].join(" ")}},{key:"getViewModel",value:function(e){var t=this._getAnotherCalendar();return{plotId:"",navigator:{enabled:this.model.options.navigator.enabled,switch:{enabled:!0,text:this._getNavSwitchText(e)},text:this.model.options.navigator.text},selected:this.model.state.selected,time:this._getTimeViewModel(e),days:this._getDayViewModel(e),weekdays:this._getWeekViewModel(e),month:this._getMonthViewModel(e),year:this._getYearViewModel(e),toolbox:this.model.options.toolbox,cssClass:this.getCssClass(),onlyTimePicker:this.model.options.onlyTimePicker,altCalendarShowHint:this.model.options.calendar[t[0]].showHint,calendarSwitchText:this.model.state.view.dateObject.toCalendar(t[0]).toLocale(t[1]).format(this.model.options.toolbox.calendarSwitch.format),todayButtonText:this._getButtonText().todayButtontext,submitButtonText:this._getButtonText().submitButtonText}}},{key:"_getButtonText",value:function(){var e={};return"fa"==this.model.options.locale_?(e.todayButtontext=this.model.options.toolbox.todayButton.text.fa,e.submitButtonText=this.model.options.toolbox.submitButton.text.fa):"en"==this.model.options.locale_&&(e.todayButtontext=this.model.options.toolbox.todayButton.text.en,e.submitButtonText=this.model.options.toolbox.submitButton.text.en),e}},{key:"_getAnotherCalendar",value:function(){var e=void 0,t=void 0;return t="persian"==this.model.options.calendar_?(e="gregorian",this.model.options.calendar.gregorian.locale):(e="persian",this.model.options.calendar.persian.locale),[e,t]}},{key:"renderTimePartial",value:function(){var e=this._getTimeViewModel(this.model.state.view);this.$container.find('[data-time-key="hour"] input').val(e.hour.title),this.$container.find('[data-time-key="minute"] input').val(e.minute.title),this.$container.find('[data-time-key="second"] input').val(e.second.title),this.$container.find('[data-time-key="meridian"] input').val(e.meridian.title)}},{key:"render",value:function(e){e||(e=this.model.state.view),r.debug(this,"render"),a.parse(o),this.rendered=$(a.render(this.model.options.template,this.getViewModel(e))),this.$container.empty().append(this.rendered),this.markSelectedDay(),this.markToday(),this.afterRender()}},{key:"reRender",value:function(){var e=this.model.state.view;this.render(e)}},{key:"afterRender",value:function(){this.model.navigator&&this.model.navigator.liveAttach()}}]),t}();e.exports=s},function(t,e,i){!function(r,e){"use strict";var s,l,u=function(e){return new u.Instance(e)};u.SUPPORT="wheel",u.ADD_EVENT="addEventListener",u.REMOVE_EVENT="removeEventListener",u.PREFIX="",u.READY=!1,u.Instance=function(e){return u.READY||(u.normalise.browser(),u.READY=!0),this.element=e,this.handlers=[],this},u.Instance.prototype={wheel:function(e,t){return u.event.add(this,u.SUPPORT,e,t),"DOMMouseScroll"===u.SUPPORT&&u.event.add(this,"MozMousePixelScroll",e,t),this},unwheel:function(e,t){return void 0===e&&(e=this.handlers.slice(-1)[0])&&(e=e.original),u.event.remove(this,u.SUPPORT,e,t),"DOMMouseScroll"===u.SUPPORT&&u.event.remove(this,"MozMousePixelScroll",e,t),this}},u.event={add:function(e,t,i,n){var o=i;i=function(e){e||(e=r.event);var t=u.normalise.event(e),i=u.normalise.delta(e);return o(t,i[0],i[1],i[2])},e.element[u.ADD_EVENT](u.PREFIX+t,i,n||!1),e.handlers.push({original:o,normalised:i})},remove:function(e,t,i,n){for(var o,r=i,a={},s=0,l=e.handlers.length;s<l;++s)a[e.handlers[s].original]=e.handlers[s];for(var c in i=(o=a[r]).normalised,e.element[u.REMOVE_EVENT](u.PREFIX+t,i,n||!1),e.handlers)if(e.handlers[c]==o){e.handlers.splice(c,1);break}}},u.normalise={browser:function(){"onwheel"in e||9<=e.documentMode||(u.SUPPORT=void 0!==e.onmousewheel?"mousewheel":"DOMMouseScroll"),r.addEventListener||(u.ADD_EVENT="attachEvent",u.REMOVE_EVENT="detachEvent",u.PREFIX="on")},event:function(e){var t={originalEvent:e,target:e.target||e.srcElement,type:"wheel",deltaMode:"MozMousePixelScroll"===e.type?0:1,deltaX:0,delatZ:0,preventDefault:function(){e.preventDefault?e.preventDefault():e.returnValue=!1},stopPropagation:function(){e.stopPropagation?e.stopPropagation():e.cancelBubble=!1}};return e.wheelDelta&&(t.deltaY=-.025*e.wheelDelta),e.wheelDeltaX&&(t.deltaX=-.025*e.wheelDeltaX),e.detail&&(t.deltaY=e.detail),t},delta:function(e){var t,i=0,n=0,o=0,r=0,a=0;return e.deltaY&&(i=o=-1*e.deltaY),e.deltaX&&(i=-1*(n=e.deltaX)),e.wheelDelta&&(i=e.wheelDelta),e.wheelDeltaY&&(o=e.wheelDeltaY),e.wheelDeltaX&&(n=-1*e.wheelDeltaX),e.detail&&(i=-1*e.detail),0===i?[0,0,0]:(r=Math.abs(i),(!s||r<s)&&(s=r),a=Math.max(Math.abs(o),Math.abs(n)),(!l||a<l)&&(l=a),t=0<i?"floor":"ceil",[i=Math[t](i/s),n=Math[t](n/l),o=Math[t](o/l)])}},"function"==typeof r.define&&r.define.amd?r.define("hamster",[],function(){return u}):t.exports=u}(window,window.document)},function(e,t,i){var n,o,r,a;a=function(x){function c(e){return"function"==typeof e}function T(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function s(e,t){return null!=e&&"object"==typeof e&&t in e}function S(e){return t=o,i=e,!n.call(t,i);var t,i}function w(e){this.string=e,this.tail=e,this.pos=0}function r(e,t){this.view=e,this.cache={".":this.view},this.parent=t}function e(){this.cache={}}var t=Object.prototype.toString,k=Array.isArray||function(e){return"[object Array]"===t.call(e)},n=RegExp.prototype.test,o=/\S/,i={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"},C=/\s*/,M=/\s+/,P=/\s*=/,A=/\s*\}/,E=/#|\^|\/|>|\{|&|=|!/;w.prototype.eos=function(){return""===this.tail},w.prototype.scan=function(e){var t=this.tail.match(e);if(!t||0!==t.index)return"";var i=t[0];return this.tail=this.tail.substring(i.length),this.pos+=i.length,i},w.prototype.scanUntil=function(e){var t,i=this.tail.search(e);switch(i){case-1:t=this.tail,this.tail="";break;case 0:t="";break;default:t=this.tail.substring(0,i),this.tail=this.tail.substring(i)}return this.pos+=t.length,t},r.prototype.push=function(e){return new r(e,this)},r.prototype.lookup=function(e){var t,i=this.cache;if(i.hasOwnProperty(e))t=i[e];else{for(var n,o,r=this,a=!1;r;){if(0<e.indexOf("."))for(t=r.view,n=e.split("."),o=0;null!=t&&o<n.length;)o===n.length-1&&(a=s(t,n[o])),t=t[n[o++]];else t=r.view[e],a=s(r.view,e);if(a)break;r=r.parent}i[e]=t}return c(t)&&(t=t.call(this.view)),t},e.prototype.clearCache=function(){this.cache={}},e.prototype.parse=function(e,t){var i=this.cache,n=i[e];return null==n&&(n=i[e]=function(e,t){function i(e){if("string"==typeof e&&(e=e.split(M,2)),!k(e)||2!==e.length)throw new Error("Invalid tags: "+e);n=new RegExp(T(e[0])+"\\s*"),o=new RegExp("\\s*"+T(e[1])),r=new RegExp("\\s*"+T("}"+e[1]))}if(!e)return[];var n,o,r,a=[],s=[],l=[],c=!1,u=!1;i(t||x.tags);for(var d,h,p,f,m,g,v=new w(e);!v.eos();){if(d=v.pos,p=v.scanUntil(n))for(var b=0,y=p.length;b<y;++b)S(f=p.charAt(b))?l.push(s.length):u=!0,s.push(["text",f,d,d+1]),d+=1,"\n"===f&&function(){if(c&&!u)for(;l.length;)delete s[l.pop()];else l=[];u=c=!1}();if(!v.scan(n))break;if(c=!0,h=v.scan(E)||"name",v.scan(C),"="===h?(p=v.scanUntil(P),v.scan(P),v.scanUntil(o)):"{"===h?(p=v.scanUntil(r),v.scan(A),v.scanUntil(o),h="&"):p=v.scanUntil(o),!v.scan(o))throw new Error("Unclosed tag at "+v.pos);if(m=[h,p,d,v.pos],s.push(m),"#"===h||"^"===h)a.push(m);else if("/"===h){if(!(g=a.pop()))throw new Error('Unopened section "'+p+'" at '+d);if(g[1]!==p)throw new Error('Unclosed section "'+g[1]+'" at '+d)}else"name"===h||"{"===h||"&"===h?u=!0:"="===h&&i(p)}if(g=a.pop())throw new Error('Unclosed section "'+g[1]+'" at '+v.pos);return function(e){for(var t,i=[],n=i,o=[],r=0,a=e.length;r<a;++r)switch(t=e[r],t[0]){case"#":case"^":n.push(t),o.push(t),n=t[4]=[];break;case"/":o.pop()[5]=t[2],n=0<o.length?o[o.length-1][4]:i;break;default:n.push(t)}return i}(function(e){for(var t,i,n=[],o=0,r=e.length;o<r;++o)(t=e[o])&&("text"===t[0]&&i&&"text"===i[0]?(i[1]+=t[1],i[3]=t[3]):(n.push(t),i=t));return n}(s))}(e,t)),n},e.prototype.render=function(e,t,i){var n=this.parse(e),o=t instanceof r?t:new r(t);return this.renderTokens(n,o,i,e)},e.prototype.renderTokens=function(e,t,i,n){for(var o,r,a,s="",l=0,c=e.length;l<c;++l)a=void 0,"#"===(r=(o=e[l])[0])?a=this.renderSection(o,t,i,n):"^"===r?a=this.renderInverted(o,t,i,n):">"===r?a=this.renderPartial(o,t,i,n):"&"===r?a=this.unescapedValue(o,t):"name"===r?a=this.escapedValue(o,t):"text"===r&&(a=this.rawValue(o)),void 0!==a&&(s+=a);return s},e.prototype.renderSection=function(e,t,i,n){var o=this,r="",a=t.lookup(e[1]);if(a){if(k(a))for(var s=0,l=a.length;s<l;++s)r+=this.renderTokens(e[4],t.push(a[s]),i,n);else if("object"==typeof a||"string"==typeof a||"number"==typeof a)r+=this.renderTokens(e[4],t.push(a),i,n);else if(c(a)){if("string"!=typeof n)throw new Error("Cannot use higher-order sections without the original template");null!=(a=a.call(t.view,n.slice(e[3],e[5]),function(e){return o.render(e,t,i)}))&&(r+=a)}else r+=this.renderTokens(e[4],t,i,n);return r}},e.prototype.renderInverted=function(e,t,i,n){var o=t.lookup(e[1]);if(!o||k(o)&&0===o.length)return this.renderTokens(e[4],t,i,n)},e.prototype.renderPartial=function(e,t,i){if(i){var n=c(i)?i(e[1]):i[e[1]];return null!=n?this.renderTokens(this.parse(n),t,i,n):void 0}},e.prototype.unescapedValue=function(e,t){var i=t.lookup(e[1]);if(null!=i)return i},e.prototype.escapedValue=function(e,t){var i=t.lookup(e[1]);if(null!=i)return x.escape(i)},e.prototype.rawValue=function(e){return e[1]},x.name="mustache.js",x.version="2.3.0",x.tags=["{{","}}"];var a=new e;return x.clearCache=function(){return a.clearCache()},x.parse=function(e,t){return a.parse(e,t)},x.render=function(e,t,i){if("string"!=typeof e)throw new TypeError('Invalid template! Template should be a "string" but "'+(k(n=e)?"array":typeof n)+'" was given as the first argument for mustache#render(template, view, partials)');var n;return a.render(e,t,i)},x.to_html=function(e,t,i,n){var o=x.render(e,t,i);if(!c(n))return o;n(o)},x.escape=function(e){return String(e).replace(/[&<>"'`=\/]/g,function(e){return i[e]})},x.Scanner=w,x.Context=r,x.Writer=e,x},"object"==typeof t&&t&&"string"!=typeof t.nodeName?a(t):(o=[t],void 0!==(r="function"==typeof(n=a)?n.apply(t,o):n)&&(e.exports=r))}])}),function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exp
vendor: 10,039 bytes, line 1
1orts.Handlebars=t():e.Handlebars=t()}(this,function(){return function(i){function n(e){if(o[e])return o[e].exports;var t=o[e]={exports:{},id:e,loaded:!1};return i[e].call(t.exports,t,t.exports,n),t.loaded=!0,t.exports}var o={};return n.m=i,n.c=o,n.p="",n(0)}([function(e,t,i){"use strict";function n(){var i=h();return i.compile=function(e,t){return l.compile(e,t,i)},i.precompile=function(e,t){return l.precompile(e,t,i)},i.AST=a.default,i.Compiler=l.Compiler,i.JavaScriptCompiler=c.default,i.Parser=s.parser,i.parse=s.parse,i}var o=i(1).default;t.__esModule=!0;var r=o(i(2)),a=o(i(35)),s=i(36),l=i(41),c=o(i(42)),u=o(i(39)),d=o(i(34)),h=r.default.create,p=n();p.create=n,d.default(p),p.Visitor=u.default,p.default=p,t.default=p,e.exports=t.default},function(e,t){"use strict";t.default=function(e){return e&&e.__esModule?e:{default:e}},t.__esModule=!0},function(e,t,i){"use strict";function n(){var t=new a.HandlebarsEnvironment;return c.extend(t,a),t.SafeString=s.default,t.Exception=l.default,t.Utils=c,t.escapeExpression=c.escapeExpression,t.VM=u,t.template=function(e){return u.template(e,t)},t}var o=i(3).default,r=i(1).default;t.__esModule=!0;var a=o(i(4)),s=r(i(21)),l=r(i(6)),c=o(i(5)),u=o(i(22)),d=r(i(34)),h=n();h.create=n,d.default(h),h.default=h,t.default=h,e.exports=t.default},function(e,t){"use strict";t.default=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t},t.__esModule=!0},function(e,t,i){"use strict";function n(e,t,i){this.helpers=e||{},this.partials=t||{},this.decorators=i||{},s.registerDefaultHelpers(this),l.registerDefaultDecorators(this)}var o=i(1).default;t.__esModule=!0,t.HandlebarsEnvironment=n;var r=i(5),a=o(i(6)),s=i(10),l=i(18),c=o(i(20));t.VERSION="4.0.12";t.COMPILER_REVISION=7;t.REVISION_CHANGES={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0"};var u="[object Object]";n.prototype={constructor:n,logger:c.default,log:c.default.log,registerHelper:function(e,t){if(r.toString.call(e)===u){if(t)throw new a.default("Arg not supported with multiple helpers");r.extend(this.helpers,e)}else this.helpers[e]=t},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,t){if(r.toString.call(e)===u)r.extend(this.partials,e);else{if(void 0===t)throw new a.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=t}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,t){if(r.toString.call(e)===u){if(t)throw new a.default("Arg not supported with multiple decorators");r.extend(this.decorators,e)}else this.decorators[e]=t},unregisterDecorator:function(e){delete this.decorators[e]}};var d=c.default.log;t.log=d,t.createFrame=r.createFrame,t.logger=c.default},function(e,t){"use strict";function i(e){return o[e]}function n(e){for(var t=1;t<arguments.length;t++)for(var i in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],i)&&(e[i]=arguments[t][i]);return e}t.__esModule=!0,t.extend=n,t.indexOf=function(e,t){for(var i=0,n=e.length;i<n;i++)if(e[i]===t)return i;return-1},t.escapeExpression=function(e){if("string"!=typeof e){if(e&&e.toHTML)return e.toHTML();if(null==e)return"";if(!e)return e+"";e=""+e}return a.test(e)?e.replace(r,i):e},t.isEmpty=function(e){return!e&&0!==e||!(!c(e)||0!==e.length)},t.createFrame=function(e){var t=n({},e);return t._parent=e,t},t.blockParams=function(e,t){return e.path=t,e},t.appendContextPath=function(e,t){return(e?e+".":"")+t};var o={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},r=/[&<>"'`=]/g,a=/[&<>"'`=]/,s=Object.prototype.toString;t.toString=s;var l=function(e){return"function"==typeof e};l(/x/)&&(t.isFunction=l=function(e){return"function"==typeof e&&"[object Function]"===s.call(e)}),t.isFunction=l;var c=Array.isArray||function(e){return!(!e||"object"!=typeof e)&&"[object Array]"===s.call(e)};t.isArray=c},function(e,t,i){"use strict";function s(e,t){var i=t&&t.loc,n=void 0,o=void 0;i&&(e+=" - "+(n=i.start.line)+":"+(o=i.start.column));for(var r=Error.prototype.constructor.call(this,e),a=0;a<c.length;a++)this[c[a]]=r[c[a]];Error.captureStackTrace&&Error.captureStackTrace(this,s);try{i&&(this.lineNumber=n,l?Object.defineProperty(this,"column",{value:o,enumerable:!0}):this.column=o)}catch(e){}}var l=i(7).default;t.__esModule=!0;var c=["description","fileName","lineNumber","message","name","number","stack"];s.prototype=new Error,t.default=s,e.exports=t.default},function(e,t,i){e.exports={default:i(8),__esModule:!0}},function(e,t,i){var n=i(9);e.exports=function(e,t,i){return n.setDesc(e,t,i)}},function(e,t){var i=Object;e.exports={create:i.create,getProto:i.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:i.getOwnPropertyDescriptor,setDesc:i.defineProperty,setDescs:i.defineProperties,getKeys:i.keys,getNames:i.getOwnPropertyNames,getSymbols:i.getOwnPropertySymbols,each:[].forEach}},function(e,t,i){"use strict";var n=i(1).default;t.__esModule=!0,t.registerDefaultHelpers=function(e){o.default(e),r.default(e),a.default(e),s.default(e),l.default(e),c.default(e),u.default(e)};var o=n(i(11)),r=n(i(12)),a=n(i(13)),s=n(i(14)),l=n(i(15)),c=n(i(16)),u=n(i(17))},function(e,t,i){"use strict";t.__esModule=!0;var a=i(5);t.default=function(r){r.registerHelper("blockHelperMissing",function(e,t){var i=t.inverse,n=t.fn;if(!0===e)return n(this);if(!1===e||null==e)return i(this);if(a.isArray(e))return 0<e.length?(t.ids&&(t.ids=[t.name]),r.helpers.each(e,t)):i(this);if(t.data&&t.ids){var o=a.createFrame(t.data);o.contextPath=a.appendContextPath(t.data.contextPath,t.name),t={data:o}}return n(e,t)})},e.exports=t.default},function(e,t,i){"use strict";var n=i(1).default;t.__esModule=!0;var h=i(5),p=n(i(6));t.default=function(e){e.registerHelper("each",function(n,e){function t(e,t,i){s&&(s.key=e,s.index=t,s.first=0===t,s.last=!!i,l&&(s.contextPath=l+e)),a+=o(n[e],{data:s,blockParams:h.blockParams([n[e],e],[l+e,null])})}if(!e)throw new p.default("Must pass iterator to #each");var o=e.fn,i=e.inverse,r=0,a="",s=void 0,l=void 0;if(e.data&&e.ids&&(l=h.appendContextPath(e.data.contextPath,e.ids[0])+"."),h.isFunction(n)&&(n=n.call(this)),e.data&&(s=h.createFrame(e.data)),n&&"object"==typeof n)if(h.isArray(n))for(var c=n.length;r<c;r++)r in n&&t(r,r,r===n.length-1);else{var u=void 0;for(var d in n)n.hasOwnProperty(d)&&(void 0!==u&&t(u,r-1),u=d,r++);void 0!==u&&t(u,r-1,!0)}return 0===r&&(a=i(this)),a})},e.exports=t.default},function(e,t,i){"use strict";var n=i(1).default;t.__esModule=!0;var o=n(i(6));t.default=function(e){e.registerHelper("helperMissing",function(){if(1!==arguments.length)throw new o.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},e.exports=t.default},function(e,t,i){"use strict";t.__esModule=!0;var n=i(5);t.default=function(i){i.registerHelper("if",function(e,t){return n.isFunction(e)&&(e=e.call(this)),!t.hash.includeZero&&!e||n.isEmpty(e)?t.inverse(this):t.fn(this)}),i.registerHelper("unless",function(e,t){return i.helpers.if.call(this,e,{fn:t.inverse,inverse:t.fn,hash:t.hash})})},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(o){o.registerHelper("log",function(){for(var e=[void 0],t=arguments[arguments.length-1],i=0;i<arguments.length-1;i++)e.push(arguments[i]);var n=1;null!=t.hash.level?n=t.hash.level:t.data&&null!=t.data.level&&(n=t.data.level),e[0]=n,o.log.apply(o,e)})},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(e){e.registerHelper("lookup",function(e,t){return e&&e[t]})},e.exports=t.default},function(e,t,i){"use strict";t.__esModule=!0;var o=i(5);t.default=function(e){e.registerHelper("with",function(e,t){o.isFunction(e)&&(e=e.call(this));var i=t.fn;if(o.isEmpty(e))return t.inverse(this);var n=t.data;return t.data&&t.ids&&((n=o.createFrame(t.data)).contextPath=o.appendContextPath(t.data.contextPath,t.ids[0])),i(e,{data:n,blockParams:o.blockParams([e],[n&&n.contextPath])})})},e.exports=t.default},function(e,t,i){"use strict";var n=i(1).default;t.__esModule=!0,t.registerDefaultDecorators=function(e){o.default(e)};var o=n(i(19))},function(e,t,i){"use strict";t.__esModule=!0;var s=i(5);t.default=function(e){e.registerDecorator("inline",function(o,r,a,e){var t=o;return r.partials||(r.partials={},t=function(e,t){var i=a.partials;a.partials=s.extend({},i,r.partials);var n=o(e,t);return a.partials=i,n}),r.partials[e.args[0]]=e.fn,t})},e.exports=t.default},function(e,t,i){"use strict";t.__esModule=!0;var n=i(5),r={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(e){if("string"==typeof e){var t=n.indexOf(r.methodMap,e.toLowerCase());e=0<=t?t:parseInt(e,10)}return e},log:function(e){if(e=r.lookupLevel(e),"undefined"!=typeof console&&r.lookupLevel(r.level)<=e){var t=r.methodMap[e];console[t]||(t="log");for(var i=arguments.length,n=Array(1<i?i-1:0),o=1;o<i;o++)n[o-1]=arguments[o];console[t].apply(console,n)}}};t.default=r,e.exports=t.default},function(e,t){"use strict";function i(e){this.string=e}t.__esModule=!0,i.prototype.toString=i.prototype.toHTML=function(){return""+this.string},t.default=i,e.exports=t.default},function(e,t,i){"use strict";function d(n,e,o,r,t,a,s){function i(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],i=s;return!s||e==s[0]||e===n.nullContext&&null===s[0]||(i=[e].concat(s)),o(n,e,n.helpers,n.partials,t.data||r,a&&[t.blockParams].concat(a),i)}return(i=h(o,i,n,s,r,a)).program=e,i.depth=s?s.length:0,i.blockParams=t||0,i}function a(){return""}function h(e,t,i,n,o,r){if(e.decorator){var a={};t=e.decorator(t,a,i,n&&n[0],o,r,n),p.extend(t,a)}return t}var n=i(23).default,o=i(3).default,r=i(1).default;t.__esModule=!0,t.checkRevision=function(e){var t=e&&e[0]||1,i=m.COMPILER_REVISION;if(t!==i){if(t<i){var n=m.REVISION_CHANGES[i],o=m.REVISION_CHANGES[t];throw new f.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your prec
1ompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+o+").")}throw new f.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")}},t.template=function(l,s){function c(e){function t(e){return""+l.main(u,e,u.helpers,u.partials,r,s,a)}var i,n,o=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=o.data;c._setup(o),!o.partial&&l.useData&&(i=e,(n=r)&&"root"in n||((n=n?m.createFrame(n):{}).root=i),r=n);var a=void 0,s=l.useBlockParams?[]:void 0;return l.useDepths&&(a=o.depths?e!=o.depths[0]?[e].concat(o.depths):o.depths:[e]),(t=h(l.main,t,u,o.depths||[],r,s))(e,o)}if(!s)throw new f.default("No environment passed to template");if(!l||!l.main)throw new f.default("Unknown template object: "+typeof l);l.main.decorator=l.main_d,s.VM.checkRevision(l.compiler);var u={strict:function(e,t){if(!(t in e))throw new f.default('"'+t+'" not defined in '+e);return e[t]},lookup:function(e,t){for(var i=e.length,n=0;n<i;n++)if(e[n]&&null!=e[n][t])return e[n][t]},lambda:function(e,t){return"function"==typeof e?e.call(t):e},escapeExpression:p.escapeExpression,invokePartial:function(e,t,i){i.hash&&(t=p.extend({},t,i.hash),i.ids&&(i.ids[0]=!0)),e=s.VM.resolvePartial.call(this,e,t,i);var n=s.VM.invokePartial.call(this,e,t,i);if(null==n&&s.compile&&(i.partials[i.name]=s.compile(e,l.compilerOptions,s),n=i.partials[i.name](t,i)),null==n)throw new f.default("The partial "+i.name+" could not be compiled when running in runtime-only mode");if(i.indent){for(var o=n.split("\n"),r=0,a=o.length;r<a&&(o[r]||r+1!==a);r++)o[r]=i.indent+o[r];n=o.join("\n")}return n},fn:function(e){var t=l[e];return t.decorator=l[e+"_d"],t},programs:[],program:function(e,t,i,n,o){var r=this.programs[e],a=this.fn(e);return t||o||n||i?r=d(this,e,a,t,i,n,o):r||(r=this.programs[e]=d(this,e,a)),r},data:function(e,t){for(;e&&t--;)e=e._parent;return e},merge:function(e,t){var i=e||t;return e&&t&&e!==t&&(i=p.extend({},t,e)),i},nullContext:n({}),noop:s.VM.noop,compilerInfo:l.compiler};return c.isTop=!0,c._setup=function(e){e.partial?(u.helpers=e.helpers,u.partials=e.partials,u.decorators=e.decorators):(u.helpers=u.merge(e.helpers,s.helpers),l.usePartial&&(u.partials=u.merge(e.partials,s.partials)),(l.usePartial||l.useDecorators)&&(u.decorators=u.merge(e.decorators,s.decorators)))},c._child=function(e,t,i,n){if(l.useBlockParams&&!i)throw new f.default("must pass block params");if(l.useDepths&&!n)throw new f.default("must pass parent depths");return d(u,e,l[e],t,0,i,n)},c},t.wrapProgram=d,t.resolvePartial=function(e,t,i){return e?e.call||i.name||(i.name=e,e=i.partials[e]):e="@partial-block"===i.name?i.data["partial-block"]:i.partials[i.name],e},t.invokePartial=function(e,t,n){var o=n.data&&n.data["partial-block"];n.partial=!0,n.ids&&(n.data.contextPath=n.ids[0]||n.data.contextPath);var r=void 0;if(n.fn&&n.fn!==a&&function(){n.data=m.createFrame(n.data);var i=n.fn;r=n.data["partial-block"]=function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return t.data=m.createFrame(t.data),t.data["partial-block"]=o,i(e,t)},i.partials&&(n.partials=p.extend({},n.partials,i.partials))}(),void 0===e&&r&&(e=r),void 0===e)throw new f.default("The partial "+n.name+" could not be found");if(e instanceof Function)return e(t,n)},t.noop=a;var p=o(i(5)),f=r(i(6)),m=i(4)},function(e,t,i){e.exports={default:i(24),__esModule:!0}},function(e,t,i){i(25),e.exports=i(30).Object.seal},function(e,t,i){var n=i(26);i(27)("seal",function(t){return function(e){return t&&n(e)?t(e):e}})},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,i){var o=i(28),r=i(30),a=i(33);e.exports=function(e,t){var i=(r.Object||{})[e]||Object[e],n={};n[e]=t(i),o(o.S+o.F*a(function(){i(1)}),"Object",n)}},function(e,t,i){var f=i(29),m=i(30),g=i(31),v="prototype",b=function(e,t,i){var n,o,r,a=e&b.F,s=e&b.G,l=e&b.S,c=e&b.P,u=e&b.B,d=e&b.W,h=s?m:m[t]||(m[t]={}),p=s?f:l?f[t]:(f[t]||{})[v];for(n in s&&(i=t),i)(o=!a&&p&&n in p)&&n in h||(r=o?p[n]:i[n],h[n]=s&&"function"!=typeof p[n]?i[n]:u&&o?g(r,f):d&&p[n]==r?function(t){var e=function(e){return this instanceof t?new t(e):t(e)};return e[v]=t[v],e}(r):c&&"function"==typeof r?g(Function.call,r):r,c&&((h[v]||(h[v]={}))[n]=r))};b.F=1,b.G=2,b.S=4,b.P=8,b.B=16,b.W=32,e.exports=b},function(e,t){var i=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},function(e,t){var i=e.exports={version:"1.2.6"};"number"==typeof __e&&(__e=i)},function(e,t,i){var r=i(32);e.exports=function(n,o,e){if(r(n),void 0===o)return n;switch(e){case 1:return function(e){return n.call(o,e)};case 2:return function(e,t){return n.call(o,e,t)};case 3:return function(e,t,i){return n.call(o,e,t,i)}}return function(){return n.apply(o,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){(function(n){"use strict";t.__esModule=!0,t.default=function(e){var t=void 0!==n?n:window,i=t.Handlebars;e.noConflict=function(){return t.Handlebars===e&&(t.Handlebars=i),e}},e.exports=t.default}).call(t,function(){return this}())},function(e,t){"use strict";t.__esModule=!0;var i={helpers:{helperExpression:function(e){return"SubExpression"===e.type||("MustacheStatement"===e.type||"BlockStatement"===e.type)&&!!(e.params&&e.params.length||e.hash)},scopedId:function(e){return/^\.|this\b/.test(e.original)},simpleId:function(e){return 1===e.parts.length&&!i.helpers.scopedId(e)&&!e.depth}}};t.default=i,e.exports=t.default},function(e,t,i){"use strict";var n=i(1).default,o=i(3).default;t.__esModule=!0,t.parse=function(e,t){return"Program"===e.type?e:((r.default.yy=c).locInfo=function(e){return new c.SourceLocation(t&&t.srcName,e)},new a.default(t).accept(r.default.parse(e)))};var r=n(i(37)),a=n(i(38)),s=o(i(40)),l=i(5);t.parser=r.default;var c={};l.extend(c,s)},function(e,t){"use strict";t.__esModule=!0;var i=function(){function e(){this.yy={}}var t={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition_plus0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sex
vendor: 8,375 bytes, line 1
1pr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,1],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function(e,t,i,n,o,r,a){var s=r.length-1;switch(o){case 1:return r[s-1];case 2:this.$=n.prepareProgram(r[s]);break;case 3:case 4:case 5:case 6:case 7:case 8:this.$=r[s];break;case 9:this.$={type:"CommentStatement",value:n.stripComment(r[s]),strip:n.stripFlags(r[s],r[s]),loc:n.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:r[s],value:r[s],loc:n.locInfo(this._$)};break;case 11:this.$=n.prepareRawBlock(r[s-2],r[s-1],r[s],this._$);break;case 12:this.$={path:r[s-3],params:r[s-2],hash:r[s-1]};break;case 13:this.$=n.prepareBlock(r[s-3],r[s-2],r[s-1],r[s],!1,this._$);break;case 14:this.$=n.prepareBlock(r[s-3],r[s-2],r[s-1],r[s],!0,this._$);break;case 15:this.$={open:r[s-5],path:r[s-4],params:r[s-3],hash:r[s-2],blockParams:r[s-1],strip:n.stripFlags(r[s-5],r[s])};break;case 16:case 17:this.$={path:r[s-4],params:r[s-3],hash:r[s-2],blockParams:r[s-1],strip:n.stripFlags(r[s-5],r[s])};break;case 18:this.$={strip:n.stripFlags(r[s-1],r[s-1]),program:r[s]};break;case 19:var l=n.prepareBlock(r[s-2],r[s-1],r[s],r[s],!1,this._$),c=n.prepareProgram([l],r[s-1].loc);c.chained=!0,this.$={strip:r[s-2].strip,program:c,chain:!0};break;case 20:this.$=r[s];break;case 21:this.$={path:r[s-1],strip:n.stripFlags(r[s-2],r[s])};break;case 22:case 23:this.$=n.prepareMustache(r[s-3],r[s-2],r[s-1],r[s-4],n.stripFlags(r[s-4],r[s]),this._$);break;case 24:this.$={type:"PartialStatement",name:r[s-3],params:r[s-2],hash:r[s-1],indent:"",strip:n.stripFlags(r[s-4],r[s]),loc:n.locInfo(this._$)};break;case 25:this.$=n.preparePartialBlock(r[s-2],r[s-1],r[s],this._$);break;case 26:this.$={path:r[s-3],params:r[s-2],hash:r[s-1],strip:n.stripFlags(r[s-4],r[s])};break;case 27:case 28:this.$=r[s];break;case 29:this.$={type:"SubExpression",path:r[s-3],params:r[s-2],hash:r[s-1],loc:n.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:r[s],loc:n.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:n.id(r[s-2]),value:r[s],loc:n.locInfo(this._$)};break;case 32:this.$=n.id(r[s-1]);break;case 33:case 34:this.$=r[s];break;case 35:this.$={type:"StringLiteral",value:r[s],original:r[s],loc:n.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(r[s]),original:Number(r[s]),loc:n.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:"true"===r[s],original:"true"===r[s],loc:n.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:n.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:n.locInfo(this._$)};break;case 40:case 41:this.$=r[s];break;case 42:this.$=n.preparePath(!0,r[s],this._$);break;case 43:this.$=n.preparePath(!1,r[s],this._$);break;case 44:r[s-2].push({part:n.id(r[s]),original:r[s],separator:r[s-1]}),this.$=r[s-2];break;case 45:this.$=[{part:n.id(r[s]),original:r[s]}];break;case 46:this.$=[];break;case 47:r[s-1].push(r[s]);break;case 48:this.$=[r[s]];break;case 49:r[s-1].push(r[s]);break;case 50:this.$=[];break;case 51:r[s-1].push(r[s]);break;case 58:this.$=[];break;case 59:r[s-1].push(r[s]);break;case 64:this.$=[];break;case 65:r[s-1].push(r[s]);break;case 70:this.$=[];break;case 71:r[s-1].push(r[s]);break;case 78:this.$=[];break;case 79:r[s-1].push(r[s]);break;case 82:this.$=[];break;case 83:r[s-1].push(r[s]);break;case 86:this.$=[];break;case 87:r[s-1].push(r[s]);break;case 90:this.$=[];break;case 91:r[s-1].push(r[s]);break;case 94:this.$=[];break;case 95:r[s-1].push(r[s]);break;case 98:this.$=[r[s]];break;case 99:r[s-1].push(r[s]);break;case 100:this.$=[r[s]];break;case 101:r[s-1].push(r[s])}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{13:40,15:[1,20],17:39},{20:42,56:41,64:43,65:[1,44],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:45,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:48,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:42,56:49,64:43,65:[1,44],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:50,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37
vendor: 4,137 bytes, line 1
1],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,51]},{72:[1,35],86:52},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:53,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:54,38:56,39:[1,58],43:57,44:[1,59],45:55,47:[2,54]},{28:60,43:61,44:[1,59],47:[2,56]},{13:63,15:[1,20],18:[1,62]},{15:[2,48],18:[2,48]},{33:[2,86],57:64,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:65,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:66,47:[1,67]},{30:68,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:69,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:70,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:71,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:75,33:[2,80],50:72,63:73,64:76,65:[1,44],69:74,70:77,71:78,72:[1,79],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,80]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,51]},{20:75,53:81,54:[2,84],63:82,64:76,65:[1,44],69:83,70:77,71:78,72:[1,79],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:84,47:[1,67]},{47:[2,55]},{4:85,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:86,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:87,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:88,47:[1,67]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:75,33:[2,88],58:89,63:90,64:76,65:[1,44],69:91,70:77,71:78,72:[1,79],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:92,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:93,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:75,31:94,33:[2,60],63:95,64:76,65:[1,44],69:96,70:77,71:78,72:[1,79],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:75,33:[2,66],36:97,63:98,64:76,65:[1,44],69:99,70:77,71:78,72:[1,79],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:75,22:100,23:[2,52],63:101,64:76,65:[1,44],69:102,70:77,71:78,72:[1,79],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:75,33:[2,92],62:103,63:104,64:76,65:[1,44],69:105,70:77,71:78,72:[1,79],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,106]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]}
vendor: 5,504 bytes, line 1
1,{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:107,72:[1,108],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,109],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,110]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:56,39:[1,58],43:57,44:[1,59],45:112,46:111,47:[2,76]},{33:[2,70],40:113,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,114]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:75,63:116,64:76,65:[1,44],67:115,68:[2,96],69:117,70:77,71:78,72:[1,79],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,118]},{32:119,33:[2,62],74:120,75:[1,121]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:122,74:123,75:[1,121]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,124]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,125]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,109]},{20:75,63:126,64:76,65:[1,44],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:75,33:[2,72],41:127,63:128,64:76,65:[1,44],69:129,70:77,71:78,72:[1,79],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,130]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,131]},{33:[2,63]},{72:[1,133],76:132},{33:[1,134]},{33:[2,69]},{15:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:135,74:136,75:[1,121]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,138],77:[1,137]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,139]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],55:[2,55],57:[2,20],61:[2,57],74:[2,81],83:[2,85],87:[2,18],91:[2,89],102:[2,53],105:[2,93],111:[2,19],112:[2,77],117:[2,97],120:[2,63],123:[2,69],124:[2,12],136:[2,75],137:[2,32]},parseError:function(e,t){throw new Error(e)},parse:function(e){var t=this,i=[0],n=[null],o=[],r=this.table,a="",s=0,l=0,c=0;this.lexer.setInput(e),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,void 0===(this.yy.parser=this).lexer.yylloc&&(this.lexer.yylloc={});var u=this.lexer.yylloc;o.push(u);var d,h=this.lexer.options&&this.lexer.options.ranges;"function"==typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var p,f,m,g,v,b,y,x,T,S={};;){if(m=i[i.length-1],void 0===(g=this.defaultActions[m]?this.defaultActions[m]:(null!=p||(d=void 0,"number"!=typeof(d=t.lexer.lex()||1)&&(d=t.symbols_[d]||d),p=d),r[m]&&r[m][p]))||!g.length||!g[0]){var w="";if(!c){for(b in T=[],r[m])this.terminals_[b]&&2<b&&T.push("'"+this.terminals_[b]+"'");w=this.lexer.showPosition?"Parse error on line "+(s+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+T.join(", ")+", got '"+(this.terminals_[p]||p)+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==p?"end of input":"'"+(this.terminals_[p]||p)+"'"),this.parseError(w,{text:this.lexer.match,token:this.terminals_[p]||p,line:this.lexer.yylineno,loc:u,expected:T})}}if(g[0]instanceof Array&&1<g.length)throw new Error("Parse Error: multiple actions possible at state: "+m+", token: "+p);switch(g[0]){case 1:i.push(p),n.push(this.lexer.yytext),o.push(this.lexer.yylloc),i.push(g[1]),p=null,f?(p=f,f=null):(l=this.lexer.yyleng,a=this.lexer.yytext,s=this.lexer.yylineno,u=this.lexer.yylloc,0<c&&
vendor: 28,459 bytes, line 1
1c--);break;case 2:if(y=this.productions_[g[1]][1],S.$=n[n.length-y],S._$={first_line:o[o.length-(y||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(y||1)].first_column,last_column:o[o.length-1].last_column},h&&(S._$.range=[o[o.length-(y||1)].range[0],o[o.length-1].range[1]]),void 0!==(v=this.performAction.call(S,a,l,s,this.yy,g[1],n,o)))return v;y&&(i=i.slice(0,-1*y*2),n=n.slice(0,-1*y),o=o.slice(0,-1*y)),i.push(this.productions_[g[1]][0]),n.push(S.$),o.push(S._$),x=r[i[i.length-2]][i[i.length-1]],i.push(x);break;case 3:return!0}}return!0}},i={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e){return this._input=e,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,i=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t-1),this.offset-=t;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var o=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===n.length?this.yylloc.first_column:0)+n[n.length-i.length].length-i[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[o[0],o[0]+this.yyleng-t]),this},more:function(){return this._more=!0,this},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(20<e.length?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(20<e.length?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},next:function(){if(this.done)return this.EOF;var e,t,i,n,o;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),a=0;a<r.length&&(!(i=this._input.match(this.rules[r[a]]))||t&&!(i[0].length>t[0].length)||(t=i,n=a,this.options.flex));a++);return t?((o=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=o.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:o?o[o.length-1].length-o[o.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,r[n],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),e||void 0):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return void 0!==e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(e){this.begin(e)},options:{},performAction:function(e,i,t,n){function o(e,t){return i.yytext=i.yytext.substr(e,i.yyleng-t)}switch(t){case 0:if("\\\\"===i.yytext.slice(-2)?(o(0,1),this.begin("mu")):"\\"===i.yytext.slice(-1)?(o(0,1),this.begin("emu")):this.begin("mu"),i.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;case 3:return this.begin("raw"),15;case 4:return this.popState(),"raw"===this.conditionStack[this.conditionStack.length-1]?15:(i.yytext=i.yytext.substr(5,i.yyleng-9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:case 16:return this.popState(),44;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(i.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;case 23:return 48;case 24:return 73;case 25:case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;case 30:return this.popState(),33;case 31:return i.yytext=o(1,2).replace(/\\"/g,'"'),80;case 32:return i.yytext=o(1,2).replace(/\\'/g,"'"),80;case 33:return 85;case 34:case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return i.yytext=i.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},rules:[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]*?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],conditions:{mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}}};return t.lexer=i,new((e.prototype=t).Parser=e)}();t.default=i,e.exports=t.default},function(e,t,i){"use strict";function n(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];this.options=e}function p(e,t,i){void 0===t&&(t=e.length);var n=e[t-1],o=e[t-2];return n?"ContentStatement"===n.type?(o||!i?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(n.original):void 0:i}function f(e,t,i){void 0===t&&(t=-1);var n=e[t+1],o=e[t+2];return n?"ContentStatement"===n.type?(o||!i?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(n.original):void 0:i}function m(e,t,i){var n=e[null==t?0:t+1];if(n&&"ContentStatement"===n.type&&(i||!n.rightStripped)){var o=n.value;n.value=n.value.replace(i?/^\s+/:/^[ \t]*\r?\n?/,""),n.rightStripped=n.value!==o}}function g(e,t,i){var n=e[null==t?e.length-1:t-1];if(n&&"ContentStatement"===n.type&&(i||!n.leftStripped)){var o=n.value;return n.value=n.value.replace(i?/\s+$/:/[ \t]+$/,""),n.leftStripped=n.value!==o,n.leftStripped}}var o=i(1).default;t.__esModule=!0;var r=o(i(39));(n.prototype=new r.default).Program=function(e){var t=!this.options.ignoreStandalone,i=!this.isRootSeen;this.isRootSeen=!0;for(var n=e.body,o=0,r=n.length;o<r;o++){var a=n[o],s=this.accept(a);if(s){var l=p(n,o,i),c=f(n,o,i),u=s.openStandalone&&l,d=s.closeStandalone&&c,h=s.inlineStandalone&&l&&c;s.close&&m(n,o,!0),s.open&&g(n,o,!0),t&&h&&(m(n,o),g(n,o)&&"PartialStatement"===a.type&&(a.indent=/([ \t]+$)/.exec(n[o-1].original)[1])),t&&u&&(m((a.program||a.inverse).body),g(n,o)),t&&d&&(m(n,o),g((a.inverse||a.program).body))}}return e},n.prototype.BlockStatement=n.prototype.DecoratorBlock=n.prototype.PartialBlockStatement=function(e){this.accept(e.program),this.accept(e.inverse);var t=e.program||e.inverse,i=e.program&&e.inverse,n=i,o=i;if(i&&i.chained)for(n=i.body[0].program;o.chained;)o=o.body[o.body.length-1].program;var r={open:e.openStrip.open,close:e.closeStrip.close,openStandalone:f(t.body),closeStandalone:p((n||t).body)};if(e.openStrip.close&&m(t.body,null,!0),i){var a=e.inverseStrip;a.open&&g(t.body,null,!0),a.close&&m(n.body,null,!0),e.closeStrip.open&&g(o.body,null,!0),!this.options.ignoreStandalone&&p(t.body)&&f(n.body)&&(g(t.body),m(n.body))}else e.closeStrip.open&&g(t.body,null,!0);return r},n.prototype.Decorator=n.prototype.MustacheStatement=function(e){return e.strip},n.prototype.PartialStatement=n.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}},t.default=n,e.exports=t.default},function(e,t,i){"use strict";function n(){this.parents=[]}function o(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}function r(e){o.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}function a(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}var s=i(1).default;t.__esModule=!0;var l=s(i(6));n.prototype={constructor:n,mutating:!1,acceptKey:function(e,t){var i=this.accept(e[t]);if(this.mutating){if(i&&!n.prototype[i.type])throw new l.default('Unexpected node type "'+i.type+'" found when accepting '+t+" on "+e.type);e[t]=i}},acceptRequired:function(e,t){if(this.acceptKey(e,t),!e[t])throw new l.default(e.type+" requires "+t)},acceptArray:function(e){for(var t=0,i=e.length;t<i;t++)this.acceptKey(e,t),e[t]||(e.splice(t,1),t--,i--)},accept:function(e){if(e){if(!this[e.type])throw new l.default("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var t=this[e.type](e);return this.current=this.parents.shift(),!this.mutating||t?t:!1!==t?e:void 0}},Program:function(e){this.acceptArray(e.body)},MustacheStatement:o,Decorator:o,BlockStatement:r,DecoratorBlock:r,PartialStatement:a,PartialBlockStatement:function(e){a.call(this,e),this.acceptKey(e,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:o,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(e){this.acceptArray(e.pairs)},HashPair:function(e){this.acceptRequired(e,"value")}},t.default=n,e.exports=t.default},function(e,t,i){"use strict";function c(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var i={loc:e.path.loc};throw new u.default(e.path.original+" doesn't match "+t,i)}}var n=i(1).default;t.__esModule=!0,t.SourceLocation=function(e,t){this.source=e,this.start={line:t.first_line,column:t.first_column},this.end={line:t.last_line,column:t.last_column}},t.id=function(e){return/^\[.*\]$/.test(e)?e.substr(1,e.length-2):e},t.stripFlags=function(e,t){return{open:"~"===e.charAt(2),close:"~"===t.charAt(t.length-3)}},t.stripComment=function(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")},t.preparePath=function(e,t,i){i=this.locInfo(i);for(var n=e?"@":"",o=[],r=0,a=0,s=t.length;a<s;a++){var l=t[a].part,c=t[a].original!==l;if(n+=(t[a].separator||"")+l,c||".."!==l&&"."!==l&&"this"!==l)o.push(l);else{if(0<o.length)throw new u.default("Invalid path: "+n,{loc:i});".."===l&&r++}}return{type:"PathExpression",data:e,depth:r,parts:o,original:n,loc:i}},t.prepareMustache=function(e,t,i,n,o,r){var a=n.charAt(3)||n.charAt(2),s="{"!==a&&"&"!==a;return{type:/\*/.test(n)?"Decorator":"MustacheStatement",path:e,params:t,hash:i,escaped:s,strip:o,loc:this.locInfo(r)}},t.prepareRawBlock=function(e,t,i,n){c(e,i);var o={type:"Program",body:t,strip:{},loc:n=this.locInfo(n)};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:o,openStrip:{},inverseStrip:{},closeStrip:{},loc:n}},t.prepareBlock=function(e,t,i,n,o,r){n&&n.path&&c(e,n);var a=/\*/.test(e.open);t.blockParams=e.blockParams;var s=void 0,l=void 0;if(i){if(a)throw new u.default("Unexpected inverse block on decorator",i);i.chain&&(i.program.body[0].closeStrip=n.strip),l=i.strip,s=i.program}return o&&(o=s,s=t,t=o),{type:a?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:s,openStrip:e.strip,inverseStrip:l,closeStrip:n&&n.strip,loc:this.locInfo(r)}},t.prepareProgram=function(e,t){if(!t&&e.length){var i=e[0].loc,n=e[e.length-1].loc;i&&n&&(t={source:i.source,start:{line:i.start.line,column:i.start.column},end:{line:n.end.line,column:n.end.column}})}return{type:"Program",body:e,strip:{},loc:t}},t.preparePartialBlock=function(e,t,i,n){return c(e,i),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:i&&i.strip,loc:this.locInfo(n)}};var u=n(i(6))},function(e,t,i){"use strict";function n(){}function r(e,t){if(e===t)return!0;if(c.isArray(e)&&c.isArray(t)&&e.length===t.length){for(var i=0;i<e.length;i++)if(!r(e[i],t[i]))return!1;return!0}}function o(e){if(!e.path.parts){var t=e.path;e.path={type:"PathExpression",data:!1,depth:0,parts:[t.original+""],original:t.original+"",loc:t.loc}}}var a=i(1).default;t.__esModule=!0,t.Compiler=n,t.precompile=function(e,t,i){if(null==e||"string"!=typeof e&&"Program"!==e.type)throw new l.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e);"data"in(t=t||{})||(t.data=!0),t.compat&&(t.useDepths=!0);var n=i.parse(e,t),o=(new i.Compiler).compile(n,t);return(new i.JavaScriptCompiler).compile(o,t)},t.compile=function(n,o,r){function a(){var e=r.parse(n,o),t=(new r.Compiler).compile(e,o),i=(new r.JavaScriptCompiler).compile(t,o,void 0,!0);return r.template(i)}function e(e,t){return s||(s=a()),s.call(this,e,t)}if(void 0===o&&(o={}),null==n||"string"!=typeof n&&"Program"!==n.type)throw new l.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+n);"data"in(o=c.extend({},o))||(o.data=!0),o.compat&&(o.useDepths=!0);var s=void 0;return e._setup=function(e){return s||(s=a()),s._setup(e)},e._child=function(e,t,i,n){return s||(s=a()),s._child(e,t,i,n)},e};var l=a(i(6)),c=i(5),s=a(i(35)),u=[].slice;n.prototype={compiler:n,equals:function(e){var t=this.opcodes.length;if(e.opcodes.length!==t)return!1;for(var i=0;i<t;i++){var n=this.opcodes[i],o=e.opcodes[i];if(n.opcode!==o.opcode||!r(n.args,o.args))return!1}t=this.children.length;for(i=0;i<t;i++)if(!this.children[i].equals(e.children[i]))return!1;return!0},guid:0,compile:function(e,t){this.sourceNode=[],this.opcodes=[],this.children=[],this.options=t,this.stringParams=t.stringParams,this.trackIds=t.trackIds,t.blockParams=t.blockParams||[];var i=t.knownHelpers;if(t.knownHelpers={helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},i)for(var n in i)this.options.knownHelpers[n]=i[n];return this.accept(e)},compileProgram:function(e){var t=(new this.compiler).compile(e,this.options),i=this.guid++;return this.usePartial=this.usePartial||t.usePartial,this.children[i]=t,this.useDepths=this.useDepths||t.useDepths,i},accept:function(e){if(!this[e.type])throw new l.default("Unknown type: "+e.type,e);this.sourceNode.unshift(e);var t=this[e.type](e);return this.sourceNode.shift(),t},Program:function(e){this.options.blockParams.unshift(e.blockParams);for(var t=e.body,i=t.length,n=0;n<i;n++)this.accept(t[n]);return this.options.blockParams.shift(),this.isSimple=1===i,this.blockParams=e.blockParams?e.blockParams.length:0,this},BlockStatement:function(e){o(e);var t=e.program,i=e.inverse;t=t&&this.compileProgram(t),i=i&&this.compileProgram(i);var n=this.classifySexpr(e);"helper"===n?this.helperSexpr(e,t,i):"simple"===n?(this.simpleSexpr(e),this.opcode("pushProgram",t),this.opcode("pushProgram",i),this.opcode("emptyHash"),this.opcode("blockValue",e.path.original)):(this.ambiguousSexpr(e,t,i),this.opcode("pushProgram",t),this.opcode("pushProgram",i),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(e){var t=e.program&&this.compileProgram(e.program),i=this.setupFullMustacheParams(e,t,void 0),n=e.path;this.useDecorators=!0,this.opcode("registerDecorator",i.length,n.original)},PartialStatement:function(e){this.usePartial=!0;var t=e.program;t&&(t=this.compileProgram(e.program));var i=e.params;if(1<i.length)throw new l.default("Unsupported number of partial arguments: "+i.length,e);i.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):i.push({type:"PathExpression",parts:[],depth:0}));var n=e.name.original,o="SubExpression"===e.name.type;o&&this.accept(e.name),this.setupFullMustacheParams(e,t,void 0,!0);var r=e.indent||"";this.options.preventIndent&&r&&(this.opcode("appendContent",r),r=""),this.opcode("invokePartial",o,n,r),this.opcode("append")},PartialBlockStatement:function(e){this.PartialStatement(e)},MustacheStatement:function(e){this.SubExpression(e),e.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(e){this.DecoratorBlock(e)},ContentStatement:function(e){e.value&&this.opcode("appendContent",e.value)},CommentStatement:function(){},SubExpression:function(e){o(e);var t=this.classifySexpr(e);"simple"===t?this.simpleSexpr(e):"helper"===t?this.helperSexpr(e):this.ambiguousSexpr(e)},ambiguousSexpr:function(e,t,i){var n=e.path,o=n.parts[0],r=null!=t||null!=i;this.opcode("getContext",n.depth),this.opcode("pushProgram",t),this.opcode("pushProgram",i),n.strict=!0,this.accept(n),this.opcode("invokeAmbiguous",o,r)},simpleSexpr:function(e){var t=e.path;t.strict=!0,this.accept(t),this.opcode("resolvePossibleLambda")},helperSexpr:function(e,t,i){var n=this.setupFullMustacheParams(e,t,i),o=e.path,r=o.parts[0];if(this.options.knownHelpers[r])this.opcode("invokeKnownHelper",n.length,r);else{if(this.options.knownHelpersOnly)throw new l.default("You specified knownHelpersOnly, but used the unknown helper "+r,e);o.strict=!0,o.falsy=!0,this.accept(o),this.opcode("invokeHelper",n.length,o.original,s.default.helpers.simpleId(o))}},PathExpression:function(e){this.addDepth(e.depth),this.opcode("getContext",e.depth);var t=e.parts[0],i=s.default.helpers.scopedId(e),n=!e.depth&&!i&&this.blockParamIndex(t);n?this.opcode("lookupBlockParam",n,e.parts):t?e.data?(this.options.data=!0,this.opcode("lookupData",e.depth,e.parts,e.strict)):this.opcode("lookupOnContext",e.parts,e.falsy,e.strict,i):this.opcode("pushContext")},StringLiteral:function(e){this.opcode("pushString",e.value)},NumberLiteral:function(e){this.opcode("pushLiteral",e.value)},BooleanLiteral:function(e){this.opcode("pushLiteral",e.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(e){var t=e.pairs,i=0,n=t.length;for(this.opcode("pushHash");i<n;i++)this.pushParam(t[i].value);for(;i--;)this.opcode("assignToHash",t[i].key);this.opcode("popHash")},opcode:function(e){this.opcodes.push({opcode:e,args:u.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(e){e&&(this.useDepths=!0)},classifySexpr:function(e){var t=s.default.helpers.simpleId(e.path),i=t&&!!this.blockParamIndex(e.path.parts[0]),n=!i&&s.default.helpers.helperExpression(e),o=!i&&(n||t);if(o&&!n){var r=e.path.parts[0],a=this.options;a.knownHelpers[r]?n=!0:a.knownHelpersOnly&&(o=!1)}return n?"helper":o?"ambiguous":"simple"},pushParams:function(e){for(var t=0,i=e.length;t<i;t++)this.pushParam(e[t])},pushParam:function(e){var t=null!=e.value?e.value:e.original||"";if(this.stringParams)t.replace&&(t=t.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),e.depth&&this.addDepth(e.depth),this.opcode("getContext",e.depth||0),this.opcode("pushStringParam",t,e.type),"SubExpression"===e.type&&this.accept(e);else{if(this.trackIds){var i=void 0;if(!e.parts||s.default.helpers.scopedId(e)||e.depth||(i=this.blockParamIndex(e.parts[0])),i){var n=e.parts.slice(1).join(".");this.opcode("pushId","BlockParam",i,n)}else(t=e.original||t).replace&&(t=t.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",e.type,t)}this.accept(e)}},setupFullMustacheParams:function(e,t,i,n){var o=e.params;return this.pushParams(o),this.opcode("pushProgram",t),this.opcode("pushProgram",i),e.hash?this.accept(e.hash):this.opcode("emptyHash",n),o},blockParamIndex:function(e){for(var t=0,i=this.options.blockParams.length;t<i;t++){var n=this.options.blockParams[t],o=n&&c.indexOf(n,e);if(n&&0<=o)return[t,o]}}}},function(e,t,i){"use strict";function l(e){this.value=e}function o(){}var n=i(1).default;t.__esModule=!0;var r=i(4),f=n(i(6)),a=i(5),s=n(i(43));o.prototype={nameLookup:function(e,t){return o.isValidJavaScriptVariableName(t)?[e,".",t]:[e,"[",JSON.stringify(t),"]"]},depthedLookup:function(e){return[this.aliasable("container.lookup"),'(depths, "',e,'")']},compilerInfo:function(){var e=r.COMPILER_REVISION;return[e,r.REVISION_CHANGES[e]]},appendToBuffer:function(e,t,i){return a.isArray(e)||(e=[e]),e=this.source.wrap(e,t),this.environment.isSimple?["return ",e,";"]:i?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},initializeBuffer:function(){return this.quotedString("")},compile:function(e,t,i,n){this.environment=e,this.options=t,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!n,this.name=this.environment.name,this.isChild=!!i,this.context=i||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,t),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var o=e.opcodes,r=void 0,a=void 0,s=void 0,l=void 0;for(s=0,l=o.length;s<l;s++)r=o[s],this.source.currentLocation=r.loc,a=a||r.loc,this[r.opcode].apply(this,r.args);if(this.source.currentLocation=a,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new f.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend("var decorators = container.decorators;\n"),this.decorators.push("return fn;"),this.decorators=n?Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend("function(fn, props, container, depth0, data, blockParams, depths) {\n"),this.decorators.push("}\n"),this.decorators.merge()));var c=this.createFunctionContext(n);if(this.isChild)return c;var u={compiler:this.compilerInfo(),main:c};this.decorators&&(u.main_d=this.decorators,u.useDecorators=!0);var d=this.context,h=d.programs,p=d.decorators;for(s=0,l=h.length;s<l;s++)h[s]&&(u[s]=h[s],p[s]&&(u[s+"_d"]=p[s],u.useDecorators=!0));return this.environment.usePartial&&(u.usePartial=!0),this.options.data&&(u.useData=!0),this.useDepths&&(u.useDepths=!0),this.useBlockParams&&(u.useBlockParams=!0),this.options.compat&&(u.compat=!0),n?u.compilerOptions=this.options:(u.compiler=JSON.stringify(u.compiler),this.source.currentLocation={start:{line:1,column:0}},u=this.objectLiteral(u),t.srcName?(u=u.toStringWithSourceMap({file:t.destName})).map=u.map&&u.map.toString():u=u.toString()),u},preamble:function(){this.lastContext=0,this.source=new s.default(this.options.srcName),this.decorators=new s.default(this.options.srcName)},createFunctionContext:function(e){var t="",i=this.stackVars.concat(this.registers.list);0<i.length&&(t+=", "+i.join(", "));var n=0;for(var o in this.aliases){var r=this.aliases[o];this.aliases.hasOwnProperty(o)&&r.children&&1<r.referenceCount&&(t+=", alias"+ ++n+"="+o,r.children[0]="alias"+n)}var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var s=this.mergeSource(t);return e?(a.push(s),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),") {\n  ",s,"}"])},mergeSource:function(e){var t=this.environment.isSimple,i=!this.forceBuffer,n=void 0,o=void 0,r=void 0,a=void 0;return this.source.each(function(e){e.appendToBuffer?(r?e.prepend("  + "):r=e,a=e):(r&&(o?r.prepend("buffer += "):n=!0,a.add(";"),r=a=void 0),o=!0,t||(i=!1))}),i?r?(r.prepend("return "),a.add(";")):o||this.source.push('return "";'):(e+=", buffer = "+(n?"":this.initializeBuffer()),r?(r.prepend("return buffer + "),a.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(n?"":";\n")),this.source.merge()},blockValue:function(e){var t=this.aliasable("helpers.blockHelperMissing"),i=[this.contextName(0)];this.setupHelperArgs(e,0,i);var n=this.popStack();i.splice(1,0,n),this.push(this.source.functionCall(t,"call",i))},ambiguousBlockValue:function(){var e=this.aliasable("helpers.blockHelperMissing"),t=[this.contextName(0)];this.setupHelperArgs("",0,t,!0),this.flushInline();var i=this.topStack();t.splice(1,0,i),this.pushSource(["if (!",this.lastHelper,") { ",i," = ",this.source.functionCall(e,"call",t),"}"])},appendContent:function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},append:function(){if(this.isInline())this.replaceStack(function(e){return[" != null ? ",e,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(e){this.lastContext=e},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(e,t,i,n){var o=0;n||!this.options.compat||this.lastContext?this.pushContext():this.push(this.depthedLookup(e[o++])),this.resolvePath("context",e,o,t,i)},lookupBlockParam:function(e,t){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",t,1)},lookupData:function(e,t,i){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",t,0,!0,i)},resolvePath:function(i,n,o,r,e){var a=this;if(this.options.strict||this.options.assumeObjects)this.push(function(e,t,i,n){var o=t.popStack(),r=0,a=i.length;for(e&&a--;r<a;r++)o=t.nameLookup(o,i[r],n);return e?[t.aliasable("container.strict"),"(",o,", ",t.quotedString(i[r]),")"]:o}(this.options.strict&&e,this,n,i));else for(var t=n.length;o<t;o++)this.replaceStack(function(e){var t=a.nameLookup(e,n[o],i);return r?[" && ",t]:[" != null ? ",t," : ",e]})},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(e,t){this.pushContext(),this.pushString(t),"SubExpression"!==t&&("string"==typeof e?this.pushString(e):this.pushStackLiteral(e))},emptyHash:function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:[],types:[],contexts:[],ids:[]}},popHash:function(){var e=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(e.ids)),this.stringParams&&(this.push(this.objectLiteral(e.contexts)),this.push(this.objectLiteral(e.types))),this.push(this.objectLiteral(e.values))},pushString:function(e){this.pushStackLiteral(this.quotedString(e))},pushLiteral:function(e){this.pushStackLiteral(e)},pushProgram:function(e){null!=e?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},registerDecorator:function(e,t){var i=this.nameLookup("decorators",t,"decorator"),n=this.setupHelperArgs(t,e);this.decorators.push(["fn = ",this.decorators.functionCall(i,"",["f
1n","props","container",n])," || fn;"])},invokeHelper:function(e,t,i){var n=this.popStack(),o=this.setupHelper(e,t),r=i?[o.name," || "]:"",a=["("].concat(r,n);this.options.strict||a.push(" || ",this.aliasable("helpers.helperMissing")),a.push(")"),this.push(this.source.functionCall(a,"call",o.callParams))},invokeKnownHelper:function(e,t){var i=this.setupHelper(e,t);this.push(this.source.functionCall(i.name,"call",i.callParams))},invokeAmbiguous:function(e,t){this.useRegister("helper");var i=this.popStack();this.emptyHash();var n=this.setupHelper(0,e,t),o=["(","(helper = ",this.lastHelper=this.nameLookup("helpers",e,"helper")," || ",i,")"];this.options.strict||(o[0]="(helper = ",o.push(" != null ? helper : ",this.aliasable("helpers.helperMissing"))),this.push(["(",o,n.paramsInit?["),(",n.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",n.callParams)," : helper))"])},invokePartial:function(e,t,i){var n=[],o=this.setupParams(t,1,n);e&&(t=this.popStack(),delete o.name),i&&(o.indent=JSON.stringify(i)),o.helpers="helpers",o.partials="partials",o.decorators="container.decorators",e?n.unshift(t):n.unshift(this.nameLookup("partials",t,"partial")),this.options.compat&&(o.depths="depths"),o=this.objectLiteral(o),n.push(o),this.push(this.source.functionCall("container.invokePartial","",n))},assignToHash:function(e){var t=this.popStack(),i=void 0,n=void 0,o=void 0;this.trackIds&&(o=this.popStack()),this.stringParams&&(n=this.popStack(),i=this.popStack());var r=this.hash;i&&(r.contexts[e]=i),n&&(r.types[e]=n),o&&(r.ids[e]=o),r.values[e]=t},pushId:function(e,t,i){"BlockParam"===e?this.pushStackLiteral("blockParams["+t[0]+"].path["+t[1]+"]"+(i?" + "+JSON.stringify("."+i):"")):"PathExpression"===e?this.pushString(t):"SubExpression"===e?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:o,compileChildren:function(e,t){for(var i=e.children,n=void 0,o=void 0,r=0,a=i.length;r<a;r++){n=i[r],o=new this.compiler;var s=this.matchExistingProgram(n);if(null==s){this.context.programs.push("");var l=this.context.programs.length;n.index=l,n.name="program"+l,this.context.programs[l]=o.compile(n,t,this.context,!this.precompile),this.context.decorators[l]=o.decorators,this.context.environments[l]=n,this.useDepths=this.useDepths||o.useDepths,this.useBlockParams=this.useBlockParams||o.useBlockParams,n.useDepths=this.useDepths,n.useBlockParams=this.useBlockParams}else n.index=s.index,n.name="program"+s.index,this.useDepths=this.useDepths||s.useDepths,this.useBlockParams=this.useBlockParams||s.useBlockParams}},matchExistingProgram:function(e){for(var t=0,i=this.context.environments.length;t<i;t++){var n=this.context.environments[t];if(n&&n.equals(e))return n}},programExpression:function(e){var t=this.environment.children[e],i=[t.index,"data",t.blockParams];return(this.useBlockParams||this.useDepths)&&i.push("blockParams"),this.useDepths&&i.push("depths"),"container.program("+i.join(", ")+")"},useRegister:function(e){this.registers[e]||(this.registers[e]=!0,this.registers.list.push(e))},push:function(e){return e instanceof l||(e=this.source.wrap(e)),this.inlineStack.push(e),e},pushStackLiteral:function(e){this.push(new l(e))},pushSource:function(e){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),e&&this.source.push(e)},replaceStack:function(e){var t=["("],i=void 0,n=void 0,o=void 0;if(!this.isInline())throw new f.default("replaceStack on non-inline");var r=this.popStack(!0);if(r instanceof l)t=["(",i=[r.value]],o=!0;else{n=!0;var a=this.incrStack();t=["((",this.push(a)," = ",r,")"],i=this.topStack()}var s=e.call(this,i);o||this.popStack(),n&&this.stackSlot--,this.push(t.concat(s,")"))},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var e=this.inlineStack;this.inlineStack=[];for(var t=0,i=e.length;t<i;t++){var n=e[t];if(n instanceof l)this.compileStack.push(n);else{var o=this.incrStack();this.pushSource([o," = ",n,";"]),this.compileStack.push(o)}}},isInline:function(){return this.inlineStack.length},popStack:function(e){var t=this.isInline(),i=(t?this.inlineStack:this.compileStack).pop();if(!e&&i instanceof l)return i.value;if(!t){if(!this.stackSlot)throw new f.default("Invalid stack pop");this.stackSlot--}return i},topStack:function(){var e=this.isInline()?this.inlineStack:this.compileStack,t=e[e.length-1];return t instanceof l?t.value:t},contextName:function(e){return this.useDepths&&e?"depths["+e+"]":"depth"+e},quotedString:function(e){return this.source.quotedString(e)}
1,objectLiteral:function(e){return this.source.objectLiteral(e)},aliasable:function(e){var t=this.aliases[e];return t?t.referenceCount++:((t=this.aliases[e]=this.source.wrap(e)).aliasable=!0,t.referenceCount=1),t},setupHelper:function(e,t,i){var n=[];return{params:n,paramsInit:this.setupHelperArgs(t,e,n,i),name:this.nameLookup("helpers",t,"helper"),callParams:[this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})")].concat(n)}},setupParams:function(e,t,i){var n={},o=[],r=[],a=[],s=!i,l=void 0;s&&(i=[]),n.name=this.quotedString(e),n.hash=this.popStack(),this.trackIds&&(n.hashIds=this.popStack()),this.stringParams&&(n.hashTypes=this.popStack(),n.hashContexts=this.popStack());var c=this.popStack(),u=this.popStack();(u||c)&&(n.fn=u||"container.noop",n.inverse=c||"container.noop");for(var d=t;d--;)l=this.popStack(),i[d]=l,this.trackIds&&(a[d]=this.popStack()),this.stringParams&&(r[d]=this.popStack(),o[d]=this.popStack());return s&&(n.args=this.source.generateArray(i)),this.trackIds&&(n.ids=this.source.generateArray(a)),this.stringParams&&(n.types=this.source.generateArray(r),n.contexts=this.source.generateArray(o)),this.options.data&&(n.data="data"),this.useBlockParams&&(n.blockParams="blockParams"),n},setupHelperArgs:function(e,t,i,n){var o=this.setupParams(e,t,i);return o=this.objectLiteral(o),n?(this.useRegister("options"),i.push("options"),["options=",o]):i?(i.push(o),""):o}},function(){for(var e="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),t=o.RESERVED_WORDS={},i=0,n=e.length;i<n;i++)t[e[i]]=!0}(),o.isValidJavaScriptVariableName=function(e){return!o.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)},t.default=o,e.exports=t.default},function(e,t,i){"use strict";function r(e,t,i){if(a.isArray(e)){for(var n=[],o=0,r=e.length;o<r;o++)n.push(t.wrap(e[o],i));return n}return"boolean"==typeof e||"number"==typeof e?e+"":e}function n(e){this.srcFile=e,this.source=[]}t.__esModule=!0;var a=i(5),o=void 0;o||((o=function(e,t,i,n){this.src="",n&&this.add(n)}).prototype={add:function(e){a.isArray(e)&&(e=e.join("")),this.src+=e},prepend:function(e){a.isArray(e)&&(e=e.join("")),this.src=e+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}}),n.prototype={isEmpty:function(){return!this.source.length},prepend:function(e,t){this.source.unshift(this.wrap(e,t))},push:function(e,t){this.source.push(this.wrap(e,t))},merge:function(){var t=this.empty();return this.each(function(e){t.add(["  ",e,"\n"])}),t},each:function(e){for(var t=0,i=this.source.length;t<i;t++)e(this.source[t])},empty:function(){var e=this.currentLocation||{start:{}};return new o(e.start.line,e.start.column,this.srcFile)},wrap:function(e){var t=arguments.length<=1||void 0===arguments[1]?this.currentLocation||{start:{}}:arguments[1];return e instanceof o?e:(e=r(e,this,t),new o(t.start.line,t.start.column,this.srcFile,e))},functionCall:function(e,t,i){return i=this.generateList(i),this.wrap([e,t?"."+t+"(":"(",i,")"])},quotedString:function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(e){var t=[];for(var i in e)if(e.hasOwnProperty(i)){var n=r(e[i],this);"undefined"!==n&&t.push([this.quotedString(i),":",n])}var o=this.generateList(t);return o.prepend("{"),o.add("}"),o},generateList:function(e){for(var t=this.empty(),i=0,n=e.length;i<n;i++)i&&t.add(","),t.add(r(e[i],this));return t},generateArray:function(e){var t=this.generateList(e);return t.prepend("["),t.add("]"),t}},t.default=n,e.exports=t.default}])}),function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.PhotoSwipe=t()}(this,function(){"use strict";return function(p,n,e,t){var f={features:null,bind:function(e,t,i,n){var o=(n?"remove":"add")+"EventListener";t=t.split(" ");for(var r=0;r<t.length;r++)t[r]&&e[o](t[r],i,!1)},isArray:function(e){return e instanceof Array},createEl:function(e,t){var i=document.createElement(t||"div");return e&&(i.className=e),i},getScrollY:function(){var e=window.pageYOffset;return void 0!==e?e:document.documentElement.scrollTop},unbind:function(e,t,i){f.bind(e,t,i,!0)},removeClass:function(e,t){var i=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(i," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")},addClass:function(e,t){f.hasClass(e,t)||(e.className+=(e.className?" ":"")+t)},hasClass:function(e,t){return e.className&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(e.className)},getChildByClass:function(e,t){for(var i=e.firstChild;i;){if(f.hasClass(i,t))return i;i=i.nextSibling}},arraySearch:function(e,t,i){for(var n=e.length;n--;)if(e[n][i]===t)return n;return-1},extend:function(e,t,i){for(var n in t)if(t.hasOwnProperty(n)){if(i&&e.hasOwnProperty(n))continue;e[n]=t[n]}},easing:{sine:{out:function(e){return Math.sin(e*(Math.PI/2))},inOut:function(e){return-(Math.cos(Math.PI*e)-1)/2}},cubic:{out:function(e){return--e*e*e+1}}},detectFeatures:function(){if(f.features)return f.features;var e=f.createEl().style,t="",i={};if(i.oldIE=document.all&&!document.addEventListener,i.touch="ontouchstart"in window,window.requestAnimationFrame&&(i.raf=window.requestAnimationFrame,i.caf=window.cancelAnimationFrame),i.pointerEvent=!!window.PointerEvent||navigator.msPointerEnabled,!i.pointerEvent){var n=navigator.userAgent;if(/iP(hone|od)/.test(navigator.platform)){var o=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);o&&0<o.length&&1<=(o=parseInt(o[1],10))&&o<8&&(i.isOldIOSPhone=!0)}
1var r=n.match(/Android\s([0-9\.]*)/),a=r?r[1]:0;1<=(a=parseFloat(a))&&(a<4.4&&(i.isOldAndroid=!0),i.androidVersion=a),i.isMobileOpera=/opera mini|opera mobi/i.test(n)}for(var s,l,c=["transform","perspective","animationName"],u=["","webkit","Moz","ms","O"],d=0;d<4;d++){t=u[d];for(var h=0;h<3;h++)s=c[h],l=t+(t?s.charAt(0).toUpperCase()+s.slice(1):s),!i[s]&&l in e&&(i[s]=l);t&&!i.raf&&(t=t.toLowerCase(),i.raf=window[t+"RequestAnimationFrame"],i.raf&&(i.caf=window[t+"CancelAnimationFrame"]||window[t+"CancelRequestAnimationFrame"]))}if(!i.raf){var p=0;i.raf=function(e){var t=(new Date).getTime(),i=Math.max(0,16-(t-p)),n=window.setTimeout(function(){e(t+i)},i);return p=t+i,n},i.caf=function(e){clearTimeout(e)}}return i.svg=!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,f.features=i}};f.detectFeatures(),f.features.oldIE&&(f.bind=function(e,t,i,n){t=t.split(" ");for(var o,r=(n?"detach":"attach")+"Event",a=function(){i.handleEvent.call(i)},s=0;s<t.length;s++)if(o=t[s])if("object"==typeof i&&i.handleEvent){if(n){if(!i["oldIE"+o])return!1}else i["oldIE"+o]=a;e[r]("on"+o,i["oldIE"+o])}else e[r]("on"+o,i)});var m=this,g={allowPanToNext:!0,spacing:.12,bgOpacity:1,mouseUsed:!1,loop:!0,pinchToClose:!0,closeOnScroll:!0,closeOnVerticalDrag:!0,verticalDragRange:.75,hideAnimationDuration:333,showAnimationDuration:333,showHideOpacity:!1,focus:!0,escKey:!0,arrowKeys:!0,mainScrollEndFriction:.35,panEndFriction:.35,isClickableElement:function(e){return"A"===e.tagName},getDoubleTapZoom:function(e,t){return e?1:t.initialZoomLevel<.7?1:1.33},maxSpreadZoom:1.33,modal:!0,scaleMode:"fit"};f.extend(g,t);var l,o,r,v,a,s,c,u,d,b,h,y,x,T,S,w,k,C,M,P,A,E,D,O,L,I,R,H,N,B,G,F,_,j,z,V,W,X,q,U,Y,$,i,K,Z,Q,J,ee,te,ie,ne,oe,re,ae,se,le,ce={x:0,y:0},ue={x:0,y:0},de={x:0,y:0},he={},pe=0,fe={},me={x:0,y:0},ge=0,ve=!0,be=[],ye={},xe=!1,Te=function(e,t){f.extend(m,t.publicMethods),be.push(e)},Se=function(e){var t=jt();return t-1<e?e-t:e<0?t+e:e},we={},ke=function(e,t){return we[e]||(we[e]=[]),we[e].push(t)},Ce=function(e){var t=we[e];if(t){var i=Array.prototype.slice.call(arguments);i.shift();for(var n=0;n<t.length;n++)t[n].apply(m,i)}},Me=function(){return(new Date).getTime()},Pe=function(e){ae=e,m.bg.style.opacity=e*g.bgOpacity},Ae=function(e,t,i,n,o){(!xe||o&&o!==m.currItem)&&(n/=o?o.fitRatio:m.currItem.fitRatio),e[E]=y+t+"px, "+i+"px"+x+" scale("+n+")"},Ee=function(e){te&&(e&&(b>m.currItem.fitRatio?xe||(Kt(m.currItem,!1,!0),xe=!0):xe&&(Kt(m.currItem),xe=!1)),Ae(te,de.x,de.y,b))},De=function(e){e.container&&Ae(e.container.style,e.initialPosition.x,e.initialPosition.y,e.initialZoomLevel,e)},Oe=function(e,t){t[E]=y+e+"px, 0px"+x},Le=function(e,t){if(!g.loop&&t){var i=v+(me.x*pe-e)/me.x,n=Math.round(e-ut.x);(i<0&&0<n||i>=jt()-1&&n<0)&&(e=ut.x+n*g.mainScrollEndFriction)}ut.x=e,Oe(e,a)},Ie=function(e,t){var i=dt[e]-fe[e];return ue[e]+ce[e]+i-i*(t/h)},Re=function(e,t){e.x=t.x,e.y=t.y,t.id&&(e.id=t.id)},He=function(e){e.x=Math.round(e.x),e.y=Math.round(e.y)},Ne=null,Be=function(){Ne&&(f.unbind(document,"mousemove",Be),f.addClass(p,"pswp--has_mouse"),g.mouseUsed=!0,Ce("mouseUsed")),Ne=setTimeout(function(){Ne=null},100)},Ge=function(e,t){var i=qt(m.currItem,he,e);return t&&(ee=i),i},Fe=function(e){return e||(e=m.currItem),e.initialZoomLevel},_e=function(e){return e||(e=m.currItem),0<e.w?g.maxSpreadZoom:1},je=function(e,t,i,n){return n===m.currItem.initialZoomLevel?(i[e]=m.currItem.initialPosition[e],!0):(i[e]=Ie(e,n),i[e]>t.min[e]?(i[e]=t.min[e],!0):i[e]<t.max[e]&&(i[e]=t.max[e],!0))},ze=function(e){var t="";g.escKey&&27===e.keyCode?t="close":g.arrowKeys&&(37===e.keyCode?t="prev":39===e.keyCode&&(t="next")),t&&(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey||(e.preventDefault?e.preventDefault():e.returnValue=!1,m[t]()))},Ve=function(e){e&&($||Y||ie||W)&&(e.preventDefault(),e.stopPropagation())},We=function(){m.setScrollOffset(0,f.getScrollY())},Xe={},qe=0,Ue=function(e){Xe[e]&&(Xe[e].raf&&I(Xe[e].raf),qe--,delete Xe[e])},Ye=function(e){Xe[e]&&Ue(e),Xe[e]||(qe++,Xe[e]={})},$e=function(){for(var e in Xe)Xe.hasOwnProperty(e)&&Ue(e)},Ke=function(e,t,i,n,o,r,a){var s,l=Me();Ye(e);var c=function(){if(Xe[e]){if(s=Me()-l,n<=s)return Ue(e),r(i),void(a&&a());r((i-t)*o(s/n)+t),Xe[e].raf=L(c)}};c()},Ze={shout:Ce,listen:ke,viewportSize:he,options:g,isMainScrollAnimating:function(){return ie},getZoomLevel:function(){return b},getCurrentIndex:function(){return v},isDragging:function(){return q},isZooming:function(){return Q},setScrollOffset:function(e,t){fe.x=e,B=fe.y=t,Ce("updateScrollOffset",fe)},applyZoomPan:function(e,t,i,n){de.x=t,de.y=i,b=e,Ee(n)},init:function(){if(!l&&!o){var e;m.framework=f,m.template=p,m.bg=f.getChildByClass(p,"pswp__bg"),R=p.className,l=!0,G=f.detectFeatures(),L=G.raf,I=G.caf,E=G.transform,N=G.oldIE,m.scrollWrap=f.getChildByClass(p,"pswp__scroll-wrap"),m.container=f.getChildByClass(m.scrollWrap,"pswp__container"),a=m.container.style,m.itemHolders=w=[{el:m.container.children[0],wrap:0,index:-1},{el:m.container.children[1],wrap:0,index:-1},{el:m.container.children[2],wrap:0,index:-1}],w[0].el.style.display=w[2].el.style.display="none",function(){if(E){var e=G.perspective&&!O;return y="translate"+(e?"3d(":"("),x=G.perspective?", 0px)":")"}E="left",f.addClass(p,"pswp--ie"),Oe=function(e,t){t.left=e+"px"},De=function(e){var t=1<e.fitRatio?1:e.fitRatio,i=e.container.style,n=t*e.w,o=t*e.h;i.width=n+"px",i.height=o+"px",i.left=e.initialPosition.x+"px",i.top=e.initialPosition.y+"px"},Ee=function(){if(te){var e=te,t=m.currItem,i=1<t.fitRatio?1:t.fitRatio,n=i*t.w,o=i*t.h;e.width=n+"px",e.height=o+"px",e.left=de.x+"px",e.top=de.y+"px"}}}(),d={resize:m.updateSize,orientationchange:function(){clearTimeout(F),F=setTimeout(function(){he.x!==m.scrollWrap.clientWidth&&m.updateSize()},500)},scroll:We,keydown:ze,click:Ve};var t=G.isOldIOSPhone||G.isOldAndroid||G.isMobileOpera;for(G.animationName&&G.transform&&!t||(g.showAnimationDuration=g.hideAnimationDuration=0),e=0;e<be.length;e++)m["init"+be[e]]();n&&(m.ui=new n(m,f)).init(),Ce("firstUpdate"),v=v||g.index||0,(isNaN(v)||v<0||v>
1=jt())&&(v=0),m.currItem=_t(v),(G.isOldIOSPhone||G.isOldAndroid)&&(ve=!1),p.setAttribute("aria-hidden","false"),g.modal&&(ve?p.style.position="fixed":(p.style.position="absolute",p.style.top=f.getScrollY()+"px")),void 0===B&&(Ce("initialLayout"),B=H=f.getScrollY());var i="pswp--open ";for(g.mainClass&&(i+=g.mainClass+" "),g.showHideOpacity&&(i+="pswp--animate_opacity "),i+=O?"pswp--touch":"pswp--notouch",i+=G.animationName?" pswp--css_animation":"",i+=G.svg?" pswp--svg":"",f.addClass(p,i),m.updateSize(),s=-1,ge=null,e=0;e<3;e++)Oe((e+s)*me.x,w[e].el.style);N||f.bind(m.scrollWrap,u,m),ke("initialZoomInEnd",function(){m.setContent(w[0],v-1),m.setContent(w[2],v+1),w[0].el.style.display=w[2].el.style.display="block",g.focus&&p.focus(),f.bind(document,"keydown",m),G.transform&&f.bind(m.scrollWrap,"click",m),g.mouseUsed||f.bind(document,"mousemove",Be),f.bind(window,"resize scroll orientationchange",m),Ce("bindEvents")}),m.setContent(w[1],v),m.updateCurrItem(),Ce("afterInit"),ve||(T=setInterval(function(){qe||q||Q||b!==m.currItem.initialZoomLevel||m.updateSize()},1e3)),f.addClass(p,"pswp--visible")}},close:function(){l&&(o=!(l=!1),Ce("close"),f.unbind(window,"resize scroll orientationchange",m),f.unbind(window,"scroll",d.scroll),f.unbind(document,"keydown",m),f.unbind(document,"mousemove",Be),G.transform&&f.unbind(m.scrollWrap,"click",m),q&&f.unbind(window,c,m),clearTimeout(F),Ce("unbindEvents"),zt(m.currItem,null,!0,m.destroy))},destroy:function(){Ce("destroy"),Nt&&clearTimeout(Nt),p.setAttribute("aria-hidden","true"),p.className=R,T&&clearInterval(T),f.unbind(m.scrollWrap,u,m),f.unbind(window,"scroll",m),ft(),$e(),we=null},panTo:function(e,t,i){i||(e>ee.min.x?e=ee.min.x:e<ee.max.x&&(e=ee.max.x),t>ee.min.y?t=ee.min.y:t<ee.max.y&&(t=ee.max.y)),de.x=e,de.y=t,Ee()},handleEvent:function(e){e=e||window.event,d[e.type]&&d[e.type](e)},goTo:function(e){var t=(e=Se(e))-v;ge=t,v=e,m.currItem=_t(v),pe-=t,Le(me.x*pe),$e(),ie=!1,m.updateCurrItem()},next:function(){m.goTo(v+1)},prev:function(){m.goTo(v-1)},updateCurrZoomItem:function(e){if(e&&Ce("beforeChange",0),w[1].el.children.length){var t=w[1].el.children[0];te=f.hasClass(t,"pswp__zoom-wrap")?t.style:null}else te=null;ee=m.currItem.bounds,h=b=m.currItem.initialZoomLevel,de.x=ee.center.x,de.y=ee.center.y,e&&Ce("afterChange")},invalidateCurrItems:function(){S=!0;for(var e=0;e<3;e++)w[e].item&&(w[e].item.needsUpdate=!0)},updateCurrItem:function(e){if(0!==ge){var t,i=Math.abs(ge);if(!(e&&i<2)){m.currItem=_t(v),xe=!1,Ce("beforeChange",ge),3<=i&&(s+=ge+(0<ge?-3:3),i=3);for(var n=0;n<i;n++)0<ge?(t=w.shift(),w[2]=t,Oe((++s+2)*me.x,t.el.style),m.setContent(t,v-i+n+1+1)):(t=w.pop(),w.unshift(t),Oe(--s*me.x,t.el.style),m.setContent(t,v+i-n-1-1));if(te&&1===Math.abs(ge)){var o=_t(k);o.initialZoomLevel!==b&&(qt(o,he),Kt(o),De(o))}ge=0,m.updateCurrZoomItem(),k=v,Ce("afterChange")}}},updateSize:function(e){if(!ve&&g.modal){var t=f.getScrollY();if(B!==t&&(p.style.top=t+"px",B=t),!e&&ye.x===window.innerWidth&&ye.y===window.innerHeight)return;ye.x=window.innerWidth,ye.y=window.innerHeight,p.style.height=ye.y+"px"}if(he.x=m.scrollWrap.clientWidth,he.y=m.scrollWrap.clientHeight,We(),me.x=he.x+Math.round(he.x*g.spacing),me.y=he.y,Le(me.x*pe),Ce("beforeResize"),void 0!==s){for(var i,n,o,r=0;r<3;r++)i=w[r],Oe((r+s)*me.x,i.el.style),o=v+r-1,g.loop&&2<jt()&&(o=Se(o)),(n=_t(o))&&(S||n.needsUpdate||!n.bounds)?(m.cleanSlide(n),m.setContent(i,o),1===r&&(m.currItem=n,m.updateCurrZoomItem(!0)),n.needsUpdate=!1):-1===i.index&&0<=o&&m.setContent(i,o),n&&n.container&&(qt(n,he),Kt(n),De(n));S=!1}h=b=m.currItem.initialZoomLevel,(ee=m.currItem.bounds)&&(de.x=ee.center.x,de.y=ee.center.y,Ee(!0)),Ce("resize")},zoomTo:function(t,e,i,n,o){e&&(h=b,dt.x=Math.abs(e.x)-de.x,dt.y=Math.abs(e.y)-de.y,Re(ue,de));var r=Ge(t,!1),a={};je("x",r,a,t),je("y",r,a,t);var s=b,l=de.x,c=de.y;He(a);var u=function(e){de.y=1===e?(b=t,de.x=a.x,a.y):(b=(t-s)*e+s,de.x=(a.x-l)*e+l,(a.y-c)*e+c),o&&o(e),Ee(1===e)};i?Ke("customZoomTo",0,1,i,n||f.easing.sine.inOut,u):u(1)}},Qe={},Je={},et={},tt={},it={},nt=[],ot={},rt=[],at={},st=0,lt={x:0,y:0},ct=0,ut={x:0,y:0},dt={x:0,y:0},ht={x:0,y:0},pt=function(e,t){return at.x=Math.abs(e.x-t.x),at.y=Math.abs(e.y-t.y),Math.sqrt(at.x*at.x+at.y*at.y)},ft=function(){i&&(I(i),i=null)},mt=function(){q&&(i=L(mt),Et())},gt=function(e,t){return!(!e||e===document)&&!(e.getAttribute("class")&&-1<e.getAttribute("class").indexOf("pswp__scroll-wrap"))&&(t(e)?e:gt(e.parentNode,t))},vt={},bt=function(e,t){return vt.prevent=!gt(e.target,g.isClickableElement),Ce("preventDragEvent",e,t,vt),vt.prevent},yt=function(e,t){return t.x=e.pageX,t.y=e.pageY,t.id=e.identifier,t},xt=function(e,t,i){i.x=.5*(e.x+t.x),i.y=.5*(e.y+t.y)},Tt=function(){var e=de.y-m.currItem.initialPosition.y;return 1-Math.abs(e/(he.y/2))},St={},wt={},kt=[],Ct=function(e){for(;0<kt.length;)kt.pop();return D?(le=0,nt.forEach(function(e){0===le?kt[0]=e:1===le&&(kt[1]=e),le++})):-1<e.type.indexOf("touch")?e.touches&&0<e.touches.length&&(kt[0]=yt(e.touches[0],St),1<e.touches.length&&(kt[1]=yt(e.touches[1],wt))):(St.x=e.pageX,St.y=e.pageY,St.id="",kt[0]=St),kt},Mt=function(e,t){var i,n,o,r,a=de[e]+t[e],s=0<t[e],l=ut.x+t.x,c=ut.x-ot.x;return i=a>ee.min[e]||a<ee.max[e]?g.panEndFriction:1,a=de[e]+t[e]*i,!g.allowPanToNext&&b!==m.currItem.initialZoomLevel||(te?"h"!==ne||"x"!==e||Y||(s?(a>ee.min[e]&&(i=g.panEndFriction,ee.min[e],n=ee.min[e]-ue[e]),(n<=0||c<0)&&1<jt()?(r=l,c<0&&l>ot.x&&(r=ot.x)):ee.min.x!==ee.max.x&&(o=a)):(a<ee.max[e]&&(i=g.panEndFriction,ee.max[e],n=ue[e]-ee.max[e]),(n<=0||0<c)&&1<jt()?(r=l,0<c&&l<ot.x&&(r=ot.x)):ee.min.x!==ee.max.x&&(o=a))):r=l,"x"!==e)?void(ie||K||b>m.currItem.fitRatio&&(de[e]+=t[e]*i)):(void 0!==r&&(Le(r,!0),K=r!==ot.x),ee.min.x!==ee.max.x&&(void 0!==o?de.x=o:K||(de.x+=t.x*i)),void 0!==r)},Pt=function(e){if(!("mousedown"===e.type&&0<e.button)){if(Ft)return void e.preventDefault();if(!X||"mousedown"!==e.type){if(bt(e,!0)&&e.preventDefault(),Ce("pointerDown"),D){var t=f.arraySearch(nt,e.pointerId,"id");t<0&&(t=nt.length),nt[t]={x:e.pageX,y:e.pageY,id:e.pointerId}}var i=Ct(e),n=i.length;Z=null,$e(),q&&1!==n||(q=oe=!0,f.bind(window,c,m),V=se=re=W=K=$=U=Y=!1,ne=null,Ce("firstTouchStart",i),Re(ue,de),ce.x=ce.y=0,Re(tt,i[0]),Re(it,tt),ot.x=me.x*pe,rt=[{x:tt.x,y:tt.y}],j=_=Me(),Ge(b,!0),ft(),mt()),!Q&&1<n&&!ie&&!K&&(h=b,Q=U=!(Y=!1),ce.y=ce.x=0,Re(ue,de),Re(Qe,i[0]),Re(Je,i[1]),xt(Qe,Je,ht),dt.x=Math.abs(ht.x)-de.x,dt.y=Math.abs(ht.y)-de.y,J=pt
1(Qe,Je))}}},At=function(e){if(e.preventDefault(),D){var t=f.arraySearch(nt,e.pointerId,"id");if(-1<t){var i=nt[t];i.x=e.pageX,i.y=e.pageY}}if(q){var n=Ct(e);if(ne||$||Q)Z=n;else if(ut.x!==me.x*pe)ne="h";else{var o=Math.abs(n[0].x-tt.x)-Math.abs(n[0].y-tt.y);10<=Math.abs(o)&&(ne=0<o?"h":"v",Z=n)}}},Et=function(){if(Z){var e=Z.length;if(0!==e)if(Re(Qe,Z[0]),et.x=Qe.x-tt.x,et.y=Qe.y-tt.y,Q&&1<e){if(tt.x=Qe.x,tt.y=Qe.y,!et.x&&!et.y&&(l=Z[1],c=Je,l.x===c.x&&l.y===c.y))return;Re(Je,Z[1]),Y||(Y=!0,Ce("zoomGestureStarted"));var t=pt(Qe,Je),i=Rt(t);i>m.currItem.initialZoomLevel+m.currItem.initialZoomLevel/15&&(se=!0);var n=1,o=Fe(),r=_e();if(i<o)if(g.pinchToClose&&!se&&h<=m.currItem.initialZoomLevel){var a=1-(o-i)/(o/1.2);Pe(a),Ce("onPinchClose",a),re=!0}else 1<(n=(o-i)/o)&&(n=1),i=o-n*(o/3);else r<i&&(1<(n=(i-r)/(6*o))&&(n=1),i=r+n*o);n<0&&(n=0),xt(Qe,Je,lt),ce.x+=lt.x-ht.x,ce.y+=lt.y-ht.y,Re(ht,lt),de.x=Ie("x",i),de.y=Ie("y",i),V=b<i,b=i,Ee()}else{if(!ne)return;if(oe&&(oe=!1,10<=Math.abs(et.x)&&(et.x-=Z[0].x-it.x),10<=Math.abs(et.y)&&(et.y-=Z[0].y-it.y)),tt.x=Qe.x,tt.y=Qe.y,0===et.x&&0===et.y)return;if("v"===ne&&g.closeOnVerticalDrag&&"fit"===g.scaleMode&&b===m.currItem.initialZoomLevel){ce.y+=et.y,de.y+=et.y;var s=Tt();return W=!0,Ce("onVerticalDrag",s),Pe(s),void Ee()}(function(e,t,i){if(50<e-j){var n=2<rt.length?rt.shift():{};n.x=t,n.y=i,rt.push(n),j=e}})(Me(),Qe.x,Qe.y),$=!0,ee=m.currItem.bounds,Mt("x",et)||(Mt("y",et),He(de),Ee())}}var l,c},Dt=function(e){if(G.isOldAndroid){if(X&&"mouseup"===e.type)return;-1<e.type.indexOf("touch")&&(clearTimeout(X),X=setTimeout(function(){X=0},600))}var t;if(Ce("pointerUp"),bt(e,!1)&&e.preventDefault(),D){var i=f.arraySearch(nt,e.pointerId,"id");-1<i&&(t=nt.splice(i,1)[0],navigator.msPointerEnabled?(t.type={4:"mouse",2:"touch",3:"pen"}[e.pointerType],t.type||(t.type=e.pointerType||"mouse")):t.type=e.pointerType||"mouse")}var n,o=Ct(e),r=o.length;if("mouseup"===e.type&&(r=0),2===r)return!(Z=null);1===r&&Re(it,o[0]),0!==r||ne||ie||(t||("mouseup"===e.type?t={x:e.pageX,y:e.pageY,type:"mouse"}:e.changedTouches&&e.changedTouches[0]&&(t={x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY,type:"touch"})),Ce("touchRelease",e,t));var a=-1;if(0===r&&(q=!1,f.unbind(window,c,m),ft(),Q?a=0:-1!==ct&&(a=Me()-ct)),ct=1===r?Me():-1,n=-1!==a&&a<150?"zoom":"swipe",Q&&r<2&&(Q=!1,1===r&&(n="zoomPointerUp"),Ce("zoomGestureEnded")),Z=null,$||Y||ie||W)if($e(),z||(z=Ot()),z.calculateSwipeSpeed("x"),W)if(Tt()<g.verticalDragRange)m.close();else{var s=de.y,l=ae;Ke("verticalDrag",0,1,300,f.easing.cubic.out,function(e){de.y=(m.currItem.initialPosition.y-s)*e+s,Pe((1-l)*e+l),Ee()}),Ce("onVerticalDrag",1)}else{if((K||ie)&&0===r){if(It(n,z))return;n="zoomPointerUp"}if(!ie)return"swipe"!==n?void Ht():void(!K&&b>m.currItem.fitRatio&&Lt(z))}},Ot=function(){var t,i,n={lastFlickOffset:{},lastFlickDist:{},lastFlickSpeed:{},slowDownRatio:{},slowDownRatioReverse:{},speedDecelerationRatio:{},speedDecelerationRatioAbs:{},distanceOffset:{},backAnimDestination:{},backAnimStarted:{},calculateSwipeSpeed:function(e){i=1<rt.length?(t=Me()-j+50,rt[rt.length-2][e]):(t=Me()-_,it[e]),n.lastFlickOffset[e]=tt[e]-i,n.lastFlickDist[e]=Math.abs(n.lastFlickOffset[e]),20<n.lastFlickDist[e]?n.lastFlickSpeed[e]=n.lastFlickOffset[e]/t:n.lastFlickSpeed[e]=0,Math.abs(n.lastFlickSpeed[e])<.1&&(n.lastFlickSpeed[e]=0),n.slowDownRatio[e]=.95,n.slowDownRatioReverse[e]=1-n.slowDownRatio[e],n.speedDecelerationRatio[e]=1},calculateOverBoundsAnimOffset:function(t,e){n.backAnimStarted[t]||(de[t]>ee.min[t]?n.backAnimDestination[t]=ee.min[t]:de[t]<ee.max[t]&&(n.backAnimDestination[t]=ee.max[t]),void 0!==n.backAnimDestination[t]&&(n.slowDownRatio[t]=.7,n.slowDownRatioReverse[t]=1-n.slowDownRatio[t],n.speedDecelerationRatioAbs[t]<.05&&(n.lastFlickSpeed[t]=0,n.backAnimStarted[t]=!0,Ke("bounceZoomPan"+t,de[t],n.backAnimDestination[t],e||300,f.easing.sine.out,function(e){de[t]=e,Ee()}))))},calculateAnimOffset:function(e){n.backAnimStarted[e]||(n.speedDecelerationRatio[e]=n.speedDecelerationRatio[e]*(n.slowDownRatio[e]+n.slowDownRatioReverse[e]-n.slowDownRatioReverse[e]*n.timeDiff/10),n.speedDecelerationRatioAbs[e]=Math.abs(n.lastFlickSpeed[e]*n.speedDecelerationRatio[e]),n.distanceOffset[e]=n.lastFlickSpeed[e]*n.speedDecelerationRatio[e]*n.timeDiff,de[e]+=n.distanceOffset[e])},panAnimLoop:function(){if(Xe.zoomPan&&(Xe.zoomPan.raf=L(n.panAnimLoop),n.now=Me(),n.timeDiff=n.now-n.lastNow,n.lastNow=n.now,n.calculateAnimOffset("x"),n.calculateAnimOffset("y"),Ee(),n.calculateOverBoundsAnimOffset("x"),n.calculateOverBoundsAnimOffset("y"),n.speedDecelerationRatioAbs.x<.05&&n.speedDecelerationRatioAbs.y<.05))return de.x=Math.round(de.x),de.y=Math.round(de.y),Ee(),void Ue("zoomPan")}};return n},Lt=function(e){return e.calculateSwipeSpeed("y"),ee=m.currItem.bounds,e.backAnimDestination={},e.backAnimStarted={},Math.abs(e.lastFlickSpeed.x)<=.05&&Math.abs(e.lastFlickSpeed.y)<=.05?(e.speedDecelerationRatioAbs.x=e.speedDecelerationRatioAbs.y=0,e.calculateOverBoundsAnimOffset("x"),e.calculateOverBoundsAnimOffset("y"),!0):(Ye("zoomPan"),e.lastNow=Me(),void e.panAnimLoop())},It=function(e,t){var i,n,o;if(ie||(st=v),"swipe"===e){var r=tt.x-it.x,a=t.lastFlickDist.x<10;30<r&&(a||20<t.lastFlickOffset.x)?n=-1:r<-30&&(a||t.lastFlickOffset.x<-20)&&(n=1)}n&&((v+=n)<0?(v=g.loop?jt()-1:0,o=!0):v>=jt()&&(v=g.loop?0:jt()-1,o=!0),o&&!g.loop||(ge+=n,pe-=n,i=!0));var s,l=me.x*pe,c=Math.abs(l-ut.x);return s=i||l>ut.x==0<t.lastFlickSpeed.x?(s=0<Math.abs(t.lastFlickSpeed.x)?c/Math.abs(t.lastFlickSpeed.x):333,s=Math.min(s,400),Math.max(s,250)):333,st===v&&(i=!1),ie=!0,Ce("mainScrollAnimStart"),Ke("mainScroll",ut.x,l,s,f.easing.cubic.out,Le,function(){$e(),ie=!1,st=-1,(i||st!==v)&&m.updateCurrItem(),Ce("mainScrollAnimComplete")}
1),i&&m.updateCurrItem(!0),i},Rt=function(e){return 1/J*e*h},Ht=function(){var e=b,t=Fe(),i=_e();b<t?e=t:i<b&&(e=i);var n,o=ae;return re&&!V&&!se&&b<t?m.close():(re&&(n=function(e){Pe((1-o)*e+o)}),m.zoomTo(e,0,200,f.easing.cubic.out,n)),!0};Te("Gestures",{publicMethods:{initGestures:function(){var e=function(e,t,i,n,o){C=e+t,M=e+i,P=e+n,A=o?e+o:""};(D=G.pointerEvent)&&G.touch&&(G.touch=!1),D?navigator.msPointerEnabled?e("MSPointer","Down","Move","Up","Cancel"):e("pointer","down","move","up","cancel"):G.touch?(e("touch","start","move","end","cancel"),O=!0):e("mouse","down","move","up"),c=M+" "+P+" "+A,u=C,D&&!O&&(O=1<navigator.maxTouchPoints||1<navigator.msMaxTouchPoints),m.likelyTouchDevice=O,d[C]=Pt,d[M]=At,d[P]=Dt,A&&(d[A]=d[P]),G.touch&&(u+=" mousedown",c+=" mousemove mouseup",d.mousedown=d[C],d.mousemove=d[M],d.mouseup=d[P]),O||(g.allowPanToNext=!1)}}});var Nt,Bt,Gt,Ft,_t,jt,zt=function(a,e,s,t){var l;Nt&&clearTimeout(Nt),Gt=Ft=!0,a.initialLayout?(l=a.initialLayout,a.initialLayout=null):l=g.getThumbBoundsFn&&g.getThumbBoundsFn(v);var c,u,d=s?g.hideAnimationDuration:g.showAnimationDuration,h=function(){Ue("initialZoom"),s?(m.template.removeAttribute("style"),m.bg.removeAttribute("style")):(Pe(1),e&&(e.style.display="block"),f.addClass(p,"pswp--animated-in"),Ce("initialZoom"+(s?"OutEnd":"InEnd"))),t&&t(),Ft=!1};if(!d||!l||void 0===l.x)return Ce("initialZoom"+(s?"Out":"In")),b=a.initialZoomLevel,Re(de,a.initialPosition),Ee(),p.style.opacity=s?0:1,Pe(1),void(d?setTimeout(function(){h()},d):h());c=r,u=!m.currItem.src||m.currItem.loadError||g.showHideOpacity,a.miniImg&&(a.miniImg.style.webkitBackfaceVisibility="hidden"),s||(b=l.w/a.w,de.x=l.x,de.y=l.y-H,m[u?"template":"bg"].style.opacity=.001,Ee()),Ye("initialZoom"),s&&!c&&f.removeClass(p,"pswp--animated-in"),u&&(s?f[(c?"remove":"add")+"Class"](p,"pswp--animate_opacity"):setTimeout(function(){f.addClass(p,"pswp--animate_opacity")},30)),Nt=setTimeout(function(){if(Ce("initialZoom"+(s?"Out":"In")),s){var t=l.w/a.w,i=de.x,n=de.y,o=b,r=ae,e=function(e){de.y=1===e?(b=t,de.x=l.x,l.y-B):(b=(t-o)*e+o,de.x=(l.x-i)*e+i,(l.y-B-n)*e+n),Ee(),u?p.style.opacity=1-e:Pe(r-e*r)};c?Ke("initialZoom",0,1,d,f.easing.cubic.out,e,h):(e(1),Nt=setTimeout(h,d+20))}else b=a.initialZoomLevel,Re(de,a.initialPosition),Ee(),Pe(1),u?p.style.opacity=1:Pe(1),Nt=setTimeout(h,d+20)},s?25:90)},Vt={},Wt=[],Xt={index:0,errorMsg:'<div class="pswp__error-msg"><a href="%url%" target="_blank">The image</a> could not be loaded.</div>',forceProgressiveLoading:!1,preload:[1,1],getNumItemsFn:function(){return Bt.length}},qt=function(e,t,i){if(!e.src||e.loadError)return e.w=e.h=0,e.initialZoomLevel=e.fitRatio=1,e.bounds={center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}},e.initialPosition=e.bounds.center,e.bounds;var n,o,r,a,s=!i;if(s&&(e.vGap||(e.vGap={top:0,bottom:0}),Ce("parseVerticalMargin",e)),Vt.x=t.x,Vt.y=t.y-e.vGap.top-e.vGap.bottom,s){var l=Vt.x/e.w,c=Vt.y/e.h;e.fitRatio=l<c?l:c;var u=g.scaleMode;"orig"===u?i=1:"fit"===u&&(i=e.fitRatio),1<i&&(i=1),e.initialZoomLevel=i,e.bounds||(e.bounds={center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}})}return i?(o=(n=e).w*i,r=e.h*i,(a=n.bounds).center.x=Math.round((Vt.x-o)/2),a.center.y=Math.round((Vt.y-r)/2)+n.vGap.top,a.max.x=o>Vt.x?Math.round(Vt.x-o):a.center.x,a.max.y=r>Vt.y?Math.round(Vt.y-r)+n.vGap.top:a.center.y,a.min.x=o>Vt.x?0:a.center.x,a.min.y=r>Vt.y?n.vGap.top:a.center.y,s&&i===e.initialZoomLevel&&(e.initialPosition=e.bounds.center),e.bounds):void 0},Ut=function(e,t,i,n,o,r){t.loadError||n&&(t.imageAppended=!0,Kt(t,n,t===m.currItem&&xe),i.appendChild(n),r&&setTimeout(function(){t&&t.loaded&&t.placeholder&&(t.placeholder.style.display="none",t.placeholder=null)},500))},Yt=function(e){e.loading=!0,e.loaded=!1;var t=e.img=f.createEl("pswp__img","img"),i=function(){e.loading=!1,e.loaded=!0,e.loadComplete?e.loadComplete(e):e.img=null,t.onload=t.onerror=null,t=null};return t.onload=i,t.onerror=function(){e.loadError=!0,i()},t.src=e.src,t},$t=function(e,t){if(e.src&&e.loadError&&e.container)return t&&(e.container.innerHTML=""),e.container.innerHTML=g.errorMsg.replace("%url%",e.
1src),!0},Kt=function(e,t,i){if(e.src){t||(t=e.container.lastChild);var n=i?e.w:Math.round(e.w*e.fitRatio),o=i?e.h:Math.round(e.h*e.fitRatio);e.placeholder&&!e.loaded&&(e.placeholder.style.width=n+"px",e.placeholder.style.height=o+"px"),t.style.width=n+"px",t.style.height=o+"px"}},Zt=function(){if(Wt.length){for(var e,t=0;t<Wt.length;t++)(e=Wt[t]).holder.index===e.index&&Ut(e.index,e.item,e.baseDiv,e.img,0,e.clearPlaceholder);Wt=[]}};Te("Controller",{publicMethods:{lazyLoadItem:function(e){e=Se(e);var t=_t(e);t&&(!t.loaded&&!t.loading||S)&&(Ce("gettingData",e,t),t.src&&Yt(t))},initController:function(){f.extend(g,Xt,!0),m.items=Bt=e,_t=m.getItemAt,jt=g.getNumItemsFn,g.loop,jt()<3&&(g.loop=!1),ke("beforeChange",function(e){var t,i=g.preload,n=null===e||0<=e,o=Math.min(i[0],jt()),r=Math.min(i[1],jt());for(t=1;t<=(n?r:o);t++)m.lazyLoadItem(v+t);for(t=1;t<=(n?o:r);t++)m.lazyLoadItem(v-t)}),ke("initialLayout",function(){m.currItem.initialLayout=g.getThumbBoundsFn&&g.getThumbBoundsFn(v)}),ke("mainScrollAnimComplete",Zt),ke("initialZoomInEnd",Zt),ke("destroy",function(){for(var e,t=0;t<Bt.length;t++)(e=Bt[t]).container&&(e.container=null),e.placeholder&&(e.placeholder=null),e.img&&(e.img=null),e.preloader&&(e.preloader=null),e.loadError&&(e.loaded=e.loadError=!1);Wt=null})},getItemAt:function(e){return 0<=e&&void 0!==Bt[e]&&Bt[e]},allowProgressiveImg:function(){return g.forceProgressiveLoading||!O||g.mouseUsed||1200<screen.width},setContent:function(t,i){g.loop&&(i=Se(i));var e=m.getItemAt(t.index);e&&(e.container=null);var n,o=m.getItemAt(i);if(o){Ce("gettingData",i,o),t.index=i;var r=(t.item=o).container=f.createEl("pswp__zoom-wrap");if(!o.src&&o.html&&(o.html.tagName?r.appendChild(o.html):r.innerHTML=o.html),$t(o),qt(o,he),!o.src||o.loadError||o.loaded)o.src&&!o.loadError&&((n=f.createEl("pswp__img","img")).style.opacity=1,n.src=o.src,Kt(o,n),Ut(0,o,r,n));else{if(o.loadComplete=function(e){if(l){if(t&&t.index===i){if($t(e,!0))return e.loadComplete=e.img=null,qt(e,he),De(e),void(t.index===v&&m.updateCurrZoomItem());e.imageAppended?!Ft&&e.placeholder&&(e.placeholder.style.display="none",e.placeholder=null):G.transform&&(ie||Ft)?Wt.push({item:e,baseDiv:r,img:e.img,index:i,holder:t,clearPlaceholder:!0}):Ut(0,e,r,e.img,0,!0)}e.loadComplete=null,e.img=null,Ce("imageLoadComplete",i,e)}},f.features.transform){var a="pswp__img pswp__img--placeholder";a+=o.msrc?"":" pswp__img--placeholder--blank";var s=f.createEl(a,o.msrc?"img":"");o.msrc&&(s.src=o.msrc),Kt(o,s),r.appendChild(s),o.placeholder=s}o.loading||Yt(o),m.allowProgressiveImg()&&(!Gt&&G.transform?Wt.push({item:o,baseDiv:r,img:o.img,index:i,holder:t}):Ut(0,o,r,o.img,0,!0))}Gt||i!==v?De(o):(te=r.style,zt(o,n||o.img)),t.el.innerHTML="",t.el.appendChild(r)}else t.el.innerHTML=""},cleanSlide:function(e){e.img&&(e.img.onload=e.img.onerror=null),e.loaded=e.loading=e.img=e.imageAppended=!1}}});var Qt,Jt,ei={},ti=function(e,t,i){var n=document.createEvent("CustomEvent"),o={origEvent:e,target:e.target,releasePoint:t,pointerType:i||"touch"};n.initCustomEvent("pswpTap",!0,!0,o),e.target.dispatchEvent(n)};Te("Tap",{publicMethods:{initTap:function(){ke("firstTouchStart",m.onTapStart),ke("touchRelease",m.onTapRelease),ke("destroy",function(){ei={},Qt=null})},onTapStart:function(e){1<e.length&&(clearTimeout(Qt),Qt=null)},onTapRelease:function(e,t){if(t&&!$&&!U&&!qe){var i=t;if(Qt&&(clearTimeout(Qt),Qt=null,n=i,o=ei,Math.abs(n.x-o.x)<25&&Math.abs(n.y-o.y)<25))return void Ce("doubleTap",i);if("mouse"===t.type)return void ti(e,t,"mouse");if("BUTTON"===e.target.tagName.toUpperCase()||f.hasClass(e.target,"pswp__single-tap"))return void ti(e,t);Re(ei,i),Qt=setTimeout(function(){ti(e,t),Qt=null},300)}var n,o}}}),Te("DesktopZoom",{publicMethods:{initDesktopZoom:function(){N||(O?ke("mouseUsed",function(){m.setupDesktopZoom()}):m.setupDesktopZoom(!0))},setupDesktopZoom:function(e){Jt={};var t="wheel mousewheel DOMMouseScroll";ke("bindEvents",function(){f.bind(p,t,m.handleMouseWheel)}),ke("unbindEvents",function(){Jt&&f.unbind(p,t,m.handleMouseWheel)}),m.mouseZoomedIn=!1;var i,n=function(){m.mouseZoomedIn&&(f.removeClass(p,"pswp--zoomed-in"),m.mouseZoomedIn=!1),b<1?f.addClass(p,"pswp--zoom-allowed"):f.removeClass(p,"pswp--zoom-allowed"),o()},o=function(){i&&(f.removeClass(p,"pswp--dragging"),i=!1)};ke("resize",n),ke("afterChange",n),ke("pointerDown",function(){m.mouseZoomedIn&&(i=!0,f.addClass(p,"pswp--dragging"))}),ke("pointerUp",o),e||n()},handleMouseWheel:function(e){if(b<=m.currItem.fitRatio)return g.modal&&(!g.closeOnScroll||qe||q?e.preventDefault():E&&2<Math.abs(e.deltaY)&&(r=!0,m.close())),!0;if(e.stopPropagation(),Jt.x=0,"deltaX"in e)1===e.deltaMode?(Jt.x=18*e.deltaX,Jt.y=18*e.deltaY):(Jt.x=e.deltaX,Jt.y=e.deltaY);else if("wheelDelta"in e)e.wheelDeltaX&&(Jt.x=-.16*e.wheelDeltaX),e.wheelDeltaY?Jt.y=-.16*e.wheelDeltaY:Jt.y=-.16*e.wheelDelta;else{if(!("detail"in e))return;Jt.y=e.detail}Ge(b,!0);var t=de.x-Jt.x,i=de.y-Jt.y;(g.modal||t<=ee.min.x&&t>=ee.max.x&&i<=ee.min.y&&i>=ee.max.y)&&e.preventDefault(),m.panTo(t,i)},toggleDesktopZoom:function(e){e=e||{x:he.x/2+fe.x,y:he.y/2+fe.y};var t=g.getDoubleTapZoom(!0,m.currItem),i=b===t;m.mouseZoomedIn=!i,m.zoomTo(i?m.currItem.initialZoomLevel:t,e,333),f[(i?"remove":"add")+"Class"](p,"pswp--zoomed-in")}}});var ii,ni,oi,ri,ai,si,li,ci,ui,di,hi,pi,fi={history:!0,galleryUID:1},mi=function(){return hi.hash.substring(1)},gi=function(){ii&&clearTimeout(ii),oi&&clearTimeout(oi)},vi=function(){var e=mi(),t={};if(e.length<5)return t;var i,n=e.split("&");for(i=0;i<n.length;i++)if(n[i]){var o=n[i].split("=");o.length<2||(t[o[0]]=o[1])}if(g.galleryPIDs){var r=t.pid;for(i=t.pid=0;i<Bt.length;i++)if(Bt[i].pid===r){t.pid=i;break}}else t.pid=parseInt(t.pid,10)-1;return t.pid<0&&(t.pid=0),t},bi=function(){if(oi&&clearTimeout(oi),qe||q)oi=setTimeout(bi,500);else{ri?clearTimeout(ni):ri=!0;var e=v+1,t=_t(v);t.hasOwnProperty("pid")&&(e=t.pid);var i=li+"&gid="+g.galleryUID+"&pid="+e;ci||-1===hi.hash.indexOf(i)&&(di=!0);var n=hi.href.split("#")[0]+"#"+i;pi?"#"+i!==window.location.hash&&history[ci?"replaceState":"pushState"]("",document.title,n):ci?hi.replace(n):hi.hash=i,ci=!0,ni=setTimeout(function(){ri=!1},60)}};Te("History",{publicMethods:{initHistory:function(){if(f.extend(g,fi,!0),g.history){hi=window.location,ci=ui=di=!1,li=mi(),pi="pushState"in history,-1<li.indexOf("gid=")&&(li=(li=li.split("&gid=")[0]).split("?gid=")[0]),ke("afterChange",m.updateURL),ke("unbindEvents",function(){f.unbind(window,"hashchange",m.onHashChange)});var e=function(){si=!0,ui||(di?history.back():li?hi.hash=li:pi?history.pushState("",document.title,hi.pathname+hi.search):hi.hash=""),gi()};ke("unbindEvents",function(){r&&e()}),ke("destroy",function(){si||e()}),ke("firstUpdate",function(){v=vi().pid});var t=li.indexOf("pid=");
1-1<t&&"&"===(li=li.substring(0,t)).slice(-1)&&(li=li.slice(0,-1)),setTimeout(function(){l&&f.bind(window,"hashchange",m.onHashChange)},40)}},onHashChange:function(){return mi()===li?(ui=!0,void m.close()):void(ri||(ai=!0,m.goTo(vi().pid),ai=!1))},updateURL:function(){gi(),ai||(ci?ii=setTimeout(bi,800):bi())}}}),f.extend(m,Ze)}}),function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.PhotoSwipeUI_Default=t()}(this,function(){"use strict";return function(o,s){var i,l,r,a,t,n,c,u,d,e,h,p,f,m,g,v,b,y,x=this,T=!1,S=!0,w=!0,k={barsSize:{top:44,bottom:"auto"},closeElClasses:["item","caption","zoom-wrap","ui","top-bar"],timeToIdle:4e3,timeToIdleOutside:1e3,loadingIndicatorDelay:1e3,addCaptionHTMLFn:function(e,t){return e.title?(t.children[0].innerHTML=e.title,!0):(t.children[0].innerHTML="",!1)},closeEl:!0,captionEl:!0,fullscreenEl:!0,zoomEl:!0,shareEl:!0,counterEl:!0,arrowEl:!0,preloaderEl:!0,tapToClose:!1,tapToToggleControls:!0,clickToCloseNonZoomable:!0,shareButtons:[{id:"facebook",label:"Share on Facebook",url:"https://www.facebook.com/sharer/sharer.php?u={{url}}"},{id:"twitter",label:"Tweet",url:"https://twitter.com/intent/tweet?text={{text}}&url={{url}}"},{id:"pinterest",label:"Pin it",url:"http://www.pinterest.com/pin/create/button/?url={{url}}&media={{image_url}}&description={{text}}"},{id:"download",label:"Download image",url:"{{raw_image_url}}",download:!0}],getImageURLForShare:function(){return o.currItem.src||""},getPageURLForShare:function(){return window.location.href},getTextForShare:function(){return o.currItem.title||""},indexIndicatorSep:" / ",fitControlsWidth:1200},C=function(e){if(v)return!0;e=e||window.event,g.timeToIdle&&g.mouseUsed&&!d&&R();for(var t,i,n=(e.target||e.srcElement).getAttribute("class")||"",o=0;o<G.length;o++)(t=G[o]).onTap&&-1<n.indexOf("pswp__"+t.name)&&(t.onTap(),i=!0);if(i){e.stopPropagation&&e.stopPropagation(),v=!0;var r=s.features.isOldAndroid?600:30;setTimeout(function(){v=!1},r)}},M=function(e,t,i){s[(i?"add":"remove")+"Class"](e,"pswp__"+t)},P=function(){var e=1===g.getNumItemsFn();e!==m&&(M(l,"ui--one-slide",e),m=e)},A=function(){M(c,"share-modal--hidden",w)},E=function(){return(w=!w)?(s.removeClass(c,"pswp__share-modal--fade-in"),setTimeout(function(){w&&A()},300)):(A(),setTimeout(function(){w||s.addClass(c,"pswp__share-modal--fade-in")},30)),w||O(),!1},D=function(e){var t=(e=e||window.event).target||e.srcElement;return o.shout("shareLinkClick",e,t),!(!t.href||!t.hasAttribute("download")&&(window.open(t.href,"pswp_share","scrollbars=yes,resizable=yes,toolbar=no,location=yes,width=550,height=420,top=100,left="+(window.screen?Math.round(screen.width/2-275):100)),w||E(),1))},O=function(){for(var e,t,i,n,o="",r=0;r<g.shareButtons.length;r++)e=g.shareButtons[r],t=g.getImageURLForShare(e),i=g.getPageURLForShare(e),n=g.getTextForShare(e),o+='<a href="'+e.url.replace("{{url}}",encodeURIComponent(i)).replace("{{image_url}}",encodeURIComponent(t)).replace("{{raw_image_url}}",t).replace("{{text}}",encodeURIComponent(n))+'" target="_blank" class="pswp__share--'+e.id+'"'+(e.download?"download":"")+">"+e.label+"</a>",g.parseShareButtonOut&&(o=g.parseShareButtonOut(e,o));c.children[0].innerHTML=o,c.children[0].onclick=D},L=function(e){for(var t=0;t<g.closeElClasses.length;t++)if(s.hasClass(e,"pswp__"+g.closeElClasses[t]))return!0},I=0,R=function(){clearTimeout(y),I=0,d&&x.setIdle(!1)},H=function(e){var t=(e=e||window.event).relatedTarget||e.toElement;t&&"HTML"!==t.nodeName||(clearTimeout(y),y=setTimeout(function(){x.setIdle(!0)},g.timeToIdleOutside))},N=function(e){p!==e&&(M(h,"preloader--active",!e),p=e)},B=function(e){var t=e.vGap;if(!o.likelyTouchDevice||g.mouseUsed||screen.width>g.fitControlsWidth){var i=g.barsSize;if(g.captionEl&&"auto"===i.bottom)if(a||((a=s.createEl("pswp__caption pswp__caption--fake")).appendChild(s.createEl("pswp__caption__center")),l.insertBefore(a,r),s.addClass(l,"pswp__ui--fit")),g.addCaptionHTMLFn(e,a,!0)){var n=a.clientHeight;t.bottom=parseInt(n,10)||44}else t.bottom=i.top;else t.bottom="auto"===i.bottom?0:i.bottom;t.top=i.top}else t.top=t.bottom=0},G=[{name:"caption",option:"captionEl",onInit:function(e){r=e}},{name:"share-modal",option:"shareEl",onInit:function(e){c=e},onTap:function(){E()}},{name:"button--share",option:"shareEl",onInit:function(e){n=e},onTap:function(){E()}}
1,{name:"button--zoom",option:"zoomEl",onTap:o.toggleDesktopZoom},{name:"counter",option:"counterEl",onInit:function(e){t=e}},{name:"button--close",option:"closeEl",onTap:o.close},{name:"button--arrow--left",option:"arrowEl",onTap:o.prev},{name:"button--arrow--right",option:"arrowEl",onTap:o.next},{name:"button--fs",option:"fullscreenEl",onTap:function(){i.isFullscreen()?i.exit():i.enter()}},{name:"preloader",option:"preloaderEl",onInit:function(e){h=e}}];x.init=function(){var t;s.extend(o.options,k,!0),g=o.options,l=s.getChildByClass(o.scrollWrap,"pswp__ui"),(e=o.listen)("onVerticalDrag",function(e){S&&e<.95?x.hideControls():!S&&.95<=e&&x.showControls()}),e("onPinchClose",function(e){S&&e<.9?(x.hideControls(),t=!0):t&&!S&&.9<e&&x.showControls()}),e("zoomGestureEnded",function(){(t=!1)&&!S&&x.showControls()}),e("beforeChange",x.update),e("doubleTap",function(e){var t=o.currItem.initialZoomLevel;o.getZoomLevel()!==t?o.zoomTo(t,e,333):o.zoomTo(g.getDoubleTapZoom(!1,o.currItem),e,333)}),e("preventDragEvent",function(e,t,i){var n=e.target||e.srcElement;n&&n.getAttribute("class")&&-1<e.type.indexOf("mouse")&&(0<n.getAttribute("class").indexOf("__caption")||/(SMALL|STRONG|EM)/i.test(n.tagName))&&(i.prevent=!1)}),e("bindEvents",function(){s.bind(l,"pswpTap click",C),s.bind(o.scrollWrap,"pswpTap",x.onGlobalTap),o.likelyTouchDevice||s.bind(o.scrollWrap,"mouseover",x.onMouseOver)}),e("unbindEvents",function(){w||E(),b&&clearInterval(b),s.unbind(document,"mouseout",H),s.unbind(document,"mousemove",R),s.unbind(l,"pswpTap click",C),s.unbind(o.scrollWrap,"pswpTap",x.onGlobalTap),s.unbind(o.scrollWrap,"mouseover",x.onMouseOver),i&&(s.unbind(document,i.eventK,x.updateFullscreen),i.isFullscreen()&&(g.hideAnimationDuration=0,i.exit()),i=null)}),e("destroy",function(){g.captionEl&&(a&&l.removeChild(a),s.removeClass(r,"pswp__caption--empty")),c&&(c.children[0].onclick=null),s.removeClass(l,"pswp__ui--over-close"),s.addClass(l,"pswp__ui--hidden"),x.setIdle(!1)}),g.showAnimationDuration||s.removeClass(l,"pswp__ui--hidden"),e("initialZoomIn",function(){g.showAnimationDuration&&s.removeClass(l,"pswp__ui--hidden")}),e("initialZoomOut",function(){s.addClass(l,"pswp__ui--hidden")}),e("parseVerticalMargin",B),function(){var o,r,a,e=function(e){if(e)for(var t=e.length,i=0;i<t;i++){o=e[i],r=o.className;for(var n=0;n<G.length;n++)a=G[n],-1<r.indexOf("pswp__"+a.name)&&(g[a.option]?(s.removeClass(o,"pswp__element--disabled"),a.onInit&&a.onInit(o)):s.addClass(o,"pswp__element--disabled"))}};e(l.children);var t=s.getChildByClass(l,"pswp__top-bar");t&&e(t.children)}(),g.shareEl&&n&&c&&(w=!0),P(),g.timeToIdle&&e("mouseUsed",function(){s.bind(document,"mousemove",R),s.bind(document,"mouseout",H),b=setInterval(function(){2==++I&&x.setIdle(!0)},g.timeToIdle/2)}),g.fullscreenEl&&!s.features.isOldAndroid&&(i||(i=x.getFullscreenAPI()),i?(s.bind(document,i.eventK,x.updateFullscreen),x.updateFullscreen(),s.addClass(o.template,"pswp--supports-fs")):s.removeClass(o.template,"pswp--supports-fs")),g.preloaderEl&&(N(!0),e("beforeChange",function(){clearTimeout(f),f=setTimeout(function(){o.currItem&&o.currItem.loading?(!o.allowProgressiveImg()||o.currItem.img&&!o.currItem.img.naturalWidth)&&N(!1):N(!0)},g.loadingIndicatorDelay)}),e("imageLoadComplete",function(e,t){o.currItem===t&&N(!0)}))},x.setIdle=function(e){M(l,"ui--idle",d=e)},x.update=function(){T=!(!S||!o.currItem||(x.updateIndexIndicator(),g.captionEl&&(g.addCaptionHTMLFn(o.currItem,r),M(r,"caption--empty",!o.currItem.title)),0)),w||E(),P()},x.updateFullscreen=function(e){e&&setTimeout(function(){o.setScrollOffset(0,s.getScrollY())},50),s[(i.isFullscreen()?"add":"remove")+"Class"](o.template,"pswp--fs")},x.updateIndexIndicator=function(){g.counterEl&&(t.innerHTML=o.getCurrentIndex()+1+g.indexIndicatorSep+g.getNumItemsFn())},x.onGlobalTap=function(e){var t=(e=e||window.event).target||e.srcElement;if(!v)if(e.detail&&"mouse"===e.detail.pointerType){if(L(t))return void o.close();s.hasClass(t,"pswp__img")&&(1===o.getZoomLevel()&&o.getZoomLevel()<=o.currItem.fitRatio?g.clickToCloseNonZoomable&&o.close():o.toggleDesktopZoom(e.detail.releasePoint))}else if(g.tapToToggleControls&&(S?x.hideControls():x.showControls()),g.tapToClose&&(s.hasClass(t,"pswp__img")||L(t)))return void o.
1close()},x.onMouseOver=function(e){var t=(e=e||window.event).target||e.srcElement;M(l,"ui--over-close",L(t))},x.hideControls=function(){s.addClass(l,"pswp__ui--hidden"),S=!1},x.showControls=function(){S=!0,T||x.update(),s.removeClass(l,"pswp__ui--hidden")},x.supportsFullscreen=function(){var e=document;return!!(e.exitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen||e.msExitFullscreen)},x.getFullscreenAPI=function(){var e,t=document.documentElement,i="fullscreenchange";return t.requestFullscreen?e={enterK:"requestFullscreen",exitK:"exitFullscreen",elementK:"fullscreenElement",eventK:i}:t.mozRequestFullScreen?e={enterK:"mozRequestFullScreen",exitK:"mozCancelFullScreen",elementK:"mozFullScreenElement",eventK:"moz"+i}:t.webkitRequestFullscreen?e={enterK:"webkitRequestFullscreen",exitK:"webkitExitFullscreen",elementK:"webkitFullscreenElement",eventK:"webkit"+i}:t.msRequestFullscreen&&(e={enterK:"msRequestFullscreen",exitK:"msExitFullscreen",elementK:"msFullscreenElement",eventK:"MSFullscreenChange"}),e&&(e.enter=function(){return u=g.closeOnScroll,g.closeOnScroll=!1,"webkitRequestFullscreen"!==this.enterK?o.template[this.enterK]():void o.template[this.enterK](Element.ALLOW_KEYBOARD_INPUT)},e.exit=function(){return g.closeOnScroll=u,document[this.exitK]()},e.isFullscreen=function(){return document[this.elementK]}),e}}}),function(m,g,v,b){m.site=m.fn.site=function(e){var s,l,n=(new Date).getTime(),o=[],t=e,i="string"==typeof t,c=[].slice.call(arguments,1),u=m.isPlainObject(e)?m.extend(!0,{},m.site.settings,e):m.extend({},m.site.settings),r=u.namespace,d=u.error,a="module-"+r,h=m(v),p=this,f=h.data(a);return s={initialize:function(){s.instantiate()},instantiate:function(){s.verbose("Storing instance of site",s),f=s,h.data(a,s)},normalize:function(){s.fix.console(),s.fix.requestAnimationFrame()},fix:{console:function(){s.debug("Normalizing window.console"),console!==b&&console.log!==b||(s.verbose("Console not available, normalizing events"),s.disable.console()),void 0!==console.group&&void 0!==console.groupEnd&&void 0!==console.groupCollapsed||(s.verbose("Console group not available, normalizing events"),g.console.group=function(){},g.console.groupEnd=function(){},g.console.groupCollapsed=function(){}),void 0===console.markTimeline&&(s.verbose("Mark timeline not available, normalizing events"),g.console.markTimeline=function(){})},consoleClear:function(){s.debug("Disabling programmatic console clearing"),g.console.clear=function(){}},requestAnimationFrame:function(){s.debug("Normalizing requestAnimationFrame"),g.requestAnimationFrame===b&&(s.debug("RequestAnimationFrame not available, normalizing event"),g.requestAnimationFrame=g.requestAnimationFrame||g.mozRequestAnimationFrame||g.webkitRequestAnimationFrame||g.msRequestAnimationFrame||function(e){setTimeout(e,0)})}},moduleExists:function(e){return m.fn[e]!==b&&m.fn[e].settings!==b},enabled:{modules:function(e){var i=[];return e=e||u.modules,m.each(e,function(e,t){s.moduleExists(t)&&i.push(t)}),i}},disabled:{modules:function(e){var i=[];return e=e||u.modules,m.each(e,function(e,t){s.moduleExists(t)||i.push(t)}),i}},change:{setting:function(o,r,e,a){e="string"==typeof e?"all"===e?u.modules:[e]:e||u.modules,a=a===b||a,m.each(e,function(e,t){var i,n=!s.moduleExists(t)||m.fn[t].settings.namespace||!1;s.moduleExists(t)&&(s.verbose("Changing default setting",o,r,t),m.fn[t].settings[o]=r,a&&n&&0<(i=m(":data(module-"+n+")")).length&&(s.verbose("Modifying existing settings",i),i[t]("setting",o,r)))})},settings:function(n,e,o){e="string"==typeof e?[e]:e||u.modules,o=o===b||o,m.each(e,function(e,t){var i;s.moduleExists(t)&&(s.verbose("Changing default setting",n,t),m.extend(!0,m.fn[t].settings,n),o&&r&&0<(i=m(":data(module-"+r+")")).length&&(s.verbose("Modifying existing settings",i),i[t]("setting",n)))})}},enable:{console:function(){s.console(!0)},debug:function(e,t){e=e||u.modules,s.debug("Enabling debug for modules",e),s.change.setting("debug",!0,e,t)},verbose:function(e,t){e=e||u.modules,s.debug("Enabling verbose debug for modules",e),s.change.setting("verbose",!0,e,t)}},disable:{console:function(){s.console(!1)},debug:function(e,t){e=e||u.modules,s.debug("Disabling debug for modules",e),s.change.setting("debug",!1,e,t)}
vendor: 4,517 bytes, line 1
1,verbose:function(e,t){e=e||u.modules,s.debug("Disabling verbose debug for modules",e),s.change.setting("verbose",!1,e,t)}},console:function(e){if(e){if(f.cache.console===b)return void s.error(d.console);s.debug("Restoring console function"),g.console=f.cache.console}else s.debug("Disabling console function"),f.cache.console=g.console,g.console={clear:function(){},error:function(){},group:function(){},groupCollapsed:function(){},groupEnd:function(){},info:function(){},log:function(){},markTimeline:function(){},warn:function(){}}},destroy:function(){s.verbose("Destroying previous site for",h),h.removeData(a)},cache:{},setting:function(e,t){if(m.isPlainObject(e))m.extend(!0,u,e);else{if(t===b)return u[e];u[e]=t}},internal:function(e,t){if(m.isPlainObject(e))m.extend(!0,s,e);else{if(t===b)return s[e];s[e]=t}},debug:function(){u.debug&&(u.performance?s.performance.log(arguments):(s.debug=Function.prototype.bind.call(console.info,console,u.name+":"),s.debug.apply(console,arguments)))},verbose:function(){u.verbose&&u.debug&&(u.performance?s.performance.log(arguments):(s.verbose=Function.prototype.bind.call(console.info,console,u.name+":"),s.verbose.apply(console,arguments)))},error:function(){s.error=Function.prototype.bind.call(console.error,console,u.name+":"),s.error.apply(console,arguments)},performance:{log:function(e){var t,i;u.performance&&(i=(t=(new Date).getTime())-(n||t),n=t,o.push({Element:p,Name:e[0],Arguments:[].slice.call(e,1)||"","Execution Time":i})),clearTimeout(s.performance.timer),s.performance.timer=setTimeout(s.performance.display,500)},display:function(){var e=u.name+":",i=0;n=!1,clearTimeout(s.performance.timer),m.each(o,function(e,t){i+=t["Execution Time"]}),e+=" "+i+"ms",(console.group!==b||console.table!==b)&&0<o.length&&(console.groupCollapsed(e),console.table?console.table(o):m.each(o,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),o=[]}},invoke:function(n,e,t){var o,r,i,a=f;return e=e||c,t=p||t,"string"==typeof n&&a!==b&&(n=n.split(/[\. ]/),o=n.length-1,m.each(n,function(e,t){var i=e!=o?t+n[e+1].charAt(0).toUpperCase()+n[e+1].slice(1):n;if(m.isPlainObject(a[i])&&e!=o)a=a[i];else{if(a[i]!==b)return r=a[i],!1;if(!m.isPlainObject(a[t])||e==o)return a[t]!==b?r=a[t]:s.error(d.method,n),!1;a=a[t]}})),m.isFunction(r)?i=r.apply(t,e):r!==b&&(i=r),m.isArray(l)?l.push(i):l!==b?l=[l,i]:i!==b&&(l=i),r}},i?(f===b&&s.initialize(),s.invoke(t)):(f!==b&&s.destroy(),s.initialize()),l!==b?l:this},m.site.settings={name:"Site",namespace:"site",error:{console:"Console cannot be restored, most likely it was overwritten outside of module",method:"The method you called is not defined."},debug:!1,verbose:!1,performance:!0,modules:["accordion","api","checkbox","dimmer","dropdown","embed","form","modal","nag","popup","rating","shape","sidebar","state","sticky","tab","transition","visit","visibility"],siteNamespace:"site",namespaceStub:{cache:{},config:{},sections:{},section:{},utilities:{}}},m.extend(m.expr[":"],{data:m.expr.createPseudo?m.expr.createPseudo(function(t){return function(e){return!!m.data(e,t)}}):function(e,t,i){return!!m.data(e,i[3])}})}(jQuery,window,document),function(D,e,O,L){"use strict";e=void 0!==e&&e.Math==Math?e:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),D.fn.form=function(x){var T,S=D(this),w=S.selector||"",k=(new Date).getTime(),C=[],M=x,P=arguments[1],A="string"==typeof M,E=[].slice.call(arguments,1);return S.each(function(){var i,l,t,e,d,c,u,h,p,n,s,o,r,a,f,m,g=D(this),v=this,b=[],y=!1;(m={initialize:function(){m.get.settings(),A?(f===L&&m.instantiate(),m.invoke(M)):(f!==L&&f.invoke("destroy"),m.verbose("Initializing form validation",g,d),m.bindEvents(),m.set.defaults(),m.instantiate())},instantiate:function(){m.verbose("Storing instance of module",m),f=m,g.data(r,m)},destroy:function(){m.verbose("Destroying previous module",f),m.removeEvents(),g.removeData(r)},refresh:function(){m.verbose("Refreshing selector cache"),i=g.find(h.field),l=g.find(h.group),t=g.find(h.message),g.find(h.prompt),e=g.find(h.submit),g.find(h.clear),g.find(h.reset)},submit:function(){m.verbose("Submitting form",g),g.submit()},attachEvents:function(e,t){t=t||"submit",D(e).on("click"+a,function(e){m[t](),e.preventDefault()})},bindEvents:function(){m.verbose("Attaching form events"),g.on("submit"+a,m.validate.form).on("blur"+a,h.field,m.event.field.blur).on("click"+a,h.submit,m.submit).on("click"+a,h.reset,m.reset).on("click"+a,h.clear,m.clear),d.keyboardShortcuts&&g.on("key
1down"+a,h.field,m.event.field.keydown),i.each(function(){var e=D(this),t=e.prop("type"),i=m.get.changeEvent(t,e);D(this).on(i+a,m.event.field.change)})},clear:function(){i.each(function(){var e=D(this),t=e.parent(),i=e.closest(l),n=i.find(h.prompt),o=e.data(u.defaultValue)||"",r=t.is(h.uiCheckbox),a=t.is(h.uiDropdown);i.hasClass(p.error)&&(m.verbose("Resetting error on field",i),i.removeClass(p.error),n.remove()),a?(m.verbose("Resetting dropdown value",t,o),t.dropdown("clear")):r?e.prop("checked",!1):(m.verbose("Resetting field value",e,o),e.val(""))})},reset:function(){i.each(function(){var e=D(this),t=e.parent(),i=e.closest(l),n=i.find(h.prompt),o=e.data(u.defaultValue),r=t.is(h.uiCheckbox),a=t.is(h.uiDropdown),s=i.hasClass(p.error);o!==L&&(s&&(m.verbose("Resetting error on field",i),i.removeClass(p.error),n.remove()),a?(m.verbose("Resetting dropdown value",t,o),t.dropdown("restore defaults")):r?(m.verbose("Resetting checkbox value",t,o),e.prop("checked",o)):(m.verbose("Resetting field value",e,o),e.val(o)))})},determine:{isValid:function(){var i=!0;return D.each(c,function(e,t){m.validate.field(t,e,!0)||(i=!1)}),i}},is:{bracketedRule:function(e){return e.type&&e.type.match(d.regExp.bracket)},shorthandFields:function(e){var t=e[Object.keys(e)[0]];return m.is.shorthandRules(t)},shorthandRules:function(e){return"string"==typeof e||D.isArray(e)},empty:function(e){return!e||0===e.length||(e.is('input[type="checkbox"]')?!e.is(":checked"):m.is.blank(e))},blank:function(e){return""===D.trim(e.val())},valid:function(e){var i=!0;return e?(m.verbose("Checking if field is valid",e),m.validate.field(c[e],e,!1)):(m.verbose("Checking if form is valid"),D.each(c,function(e,t){m.is.valid(e)||(i=!1)}),i)}},removeEvents:function(){g.off(a),i.off(a),e.off(a),i.off(a)},event:{field:{keydown:function(e){var t=D(this),i=e.which,n=t.is(h.input),o=t.is(h.checkbox),r=0<t.closest(h.uiDropdown).length;27==i&&(m.verbose("Escape key pressed blurring field"),t.blur()),e.ctrlKey||13!=i||!n||r||o||(y||(t.one("keyup"+a,m.event.field.keyup),m.submit(),m.debug("Enter pressed on input submitting form")),y=!0)},keyup:function(){y=!1},blur:function(e){var t=D(this),i=t.closest(l),n=m.get.validation(t);i.hasClass(p.error)?(m.debug("Revalidating field",t,n),n&&m.validate.field(n)):"blur"==d.on&&n&&m.validate.field(n)},change:function(e){var t=D(this),i=t.closest(l),n=m.get.validation(t);n&&("change"==d.on||i.hasClass(p.error)&&d.revalidate)&&(clearTimeout(m.timer),m.timer=setTimeout(function(){m.debug("Revalidating field",t,m.get.validation(t)),m.validate.field(n)},d.delay))}}},get:{ancillaryValue:function(e){return!(!e.type||!e.value&&!m.is.bracketedRule(e))&&(e.value!==L?e.value:e.type.match(d.regExp.bracket)[1]+"")},ruleName:function(e){return m.is.bracketedRule(e)?e.type.replace(e.type.match(d.regExp.bracket)[0],""):e.type},changeEvent:function(e,t){return"checkbox"==e||"radio"==e||"hidden"==e||t.is("select")?"change":m.get.inputEvent()},inputEvent:function(){return O.createElement("input").oninput!==L?"input":O.createElement("input").onpropertychange!==L?"propertychange":"keyup"},fieldsFromShorthand:function(e){var n={};return D.each(e,function(i,e){"string"==typeof e&&(e=[e]),n[i]={rules:[]},D.each(e,function(e,t){n[i].rules.push({type:t})})}),n},prompt:function(e,t){var i,n,o=m.get.ruleName(e),r=m.get.ancillaryValue(e),a=m.get.field(t.identifier),s=a.val(),l=D.isFunction(e.prompt)?e.prompt(s):e.prompt||d.prompt[o]||d.text.unspecifiedRule,c=-1!==l.search("{value}"),u=-1!==l.search("{name}");return c&&(l=l.replace("{value}",a.val())),u&&(n=1==(i=a.closest(h.group).find("label").eq(0)).length?i.text():a.prop("placeholder")||d.text.unspecifiedField,l=l.replace("{name}",n)),l=(l=l.replace("{identifier}",t.identifier)).replace("{ruleValue}",r),e.prompt||m.verbose("Using default validation prompt for type",l,o),l},settings:function(){if(D.isPlainObject(x)){var e=Object.keys(x);0<e.length&&x[e[0]].identifier!==L&&x[e[0]].rules!==L?(d=D.extend(!0,{},D.fn.form.settings,P),c=D.extend({},D.fn.form.settings.defaults,x),m.error(d.error.oldSyntax,v),m.verbose("Extending settings from legacy parameters",c,d)):(x.fields&&m.is.shorthandFields(x.fields)&&(x.fields=m.get.fieldsFromShorthand(x.fields)),d=D.extend(!0,{},D.fn.form.settings,x),c=D.extend({},D.fn.form.settings.defaults,d.fields),m.verbose("Extending settings",c,d))}else d=D.fn.form.settings,c=D.fn.form.settings.defaults,m.verbose("Using default form validation",c,d);o=d.namespace,u=d.metadata,h=d.selector,p=d.className,n=d.regExp,s=d.error,r="module-"+o,a="."+o,f=g.data(r),m.refresh()},field:function(e){return m.verbose("Finding field with identifier",e),e=m.escape.string(e),0<i.filter("#"+e).length?i.filter("#"+e):0<i.filter('[name="'+e+'"]').length?i.filter('[name="'+e+'"]'):0<i.filter('[name="'+e+'[]"]').length?i.filter('[name="'+e+'[]"]'):0<i.filter("[data-"+u.validate+'="'+e+'"]').length?i.filter("[data-"+u.validate+'="'+e+'"]'):D("<input/>")},fields:function(e){var i=D();return D.each(e,function(e,t){i=i.add(m.get.field(t))}),i},validation:function(i){var n,o;return!!c&&(D.each(c,function(e,t){o=t.identifier||e,m.get.field(o)[0]==i[0]&&(t.identifier=o,n=t)}),n||!1)},value:function(e){var t=[];return t.push(e),m.get.values.call(v,t)[e]},values:function(e){var t=D.isArray(e)?m.get.fields(e):i,c={};return t.each(function(e,t){var i=D(t),n=(i.prop("type"),i.prop("name")),o=i.val(),r=i.is(h.checkbox),a=i.is(h.radio),s=-1!==n.indexOf("[]"),l=!!r&&i.is(":checked");
vendor: 4,393 bytes, line 1
1n&&(s?(n=n.replace("[]",""),c[n]||(c[n]=[]),r?l?c[n].push(o||!0):c[n].push(!1):c[n].push(o)):a?c[n]!==L&&0!=c[n]||(c[n]=!!l&&(o||!0)):c[n]=r?!!l&&(o||!0):o)}),c}},has:{field:function(e){return m.verbose("Checking for existence of a field with identifier",e),"string"!=typeof(e=m.escape.string(e))&&m.error(s.identifier,e),0<i.filter("#"+e).length||0<i.filter('[name="'+e+'"]').length||0<i.filter("[data-"+u.validate+'="'+e+'"]').length}},escape:{string:function(e){return(e=String(e)).replace(n.escape,"\\$&")}},add:{rule:function(e,t){m.add.field(e,t)},field:function(i,e){var n={};m.is.shorthandRules(e)?(e=D.isArray(e)?e:[e],n[i]={rules:[]},D.each(e,function(e,t){n[i].rules.push({type:t})})):n[i]=e,c=D.extend({},c,n),m.debug("Adding rules",n,c)},fields:function(e){var t;t=e&&m.is.shorthandFields(e)?m.get.fieldsFromShorthand(e):e,c=D.extend({},c,t)},prompt:function(e,t){var i=m.get.field(e).closest(l),n=i.children(h.prompt),o=0!==n.length;t="string"==typeof t?[t]:t,m.verbose("Adding field error state",e),i.addClass(p.error),d.inline&&(o||(n=d.templates.prompt(t)).appendTo(i),n.html(t[0]),o?m.verbose("Inline errors are disabled, no inline error added",e):d.transition&&D.fn.transition!==L&&g.transition("is supported")?(m.verbose("Displaying error with css transition",d.transition),n.transition(d.transition+" in",d.duration)):(m.verbose("Displaying error with fallback javascript animation"),n.fadeIn(d.duration)))},errors:function(e){m.debug("Adding form error messages",e),m.set.error(),t.html(d.templates.error(e))}},remove:{rule:function(i,e){var n=D.isArray(e)?e:[e];if(e==L)return m.debug("Removed all rules"),void(c[i].rules=[]);c[i]!=L&&D.isArray(c[i].rules)&&D.each(c[i].rules,function(e,t){-1!==n.indexOf(t.type)&&(m.debug("Removed rule",t.type),c[i].rules.splice(e,1))})},field:function(e){var t=D.isArray(e)?e:[e];D.each(t,function(e,t){m.remove.rule(t)})},rules:function(e,i){D.isArray(e)?D.each(fields,function(e,t){m.remove.rule(t,i)}):m.remove.rule(e,i)},fields:function(e){m.remove.field(e)},prompt:function(e){var t=m.get.field(e).closest(l),i=t.children(h.prompt);t.removeClass(p.error),d.inline&&i.is(":visible")&&(m.verbose("Removing prompt for field",e),d.transition&&D.fn.transition!==L&&g.transition("is supported")?i.transition(d.transition+" out",d.duration,function(){i.remove()}):i.fadeOut(d.duration,function(){i.remove()}))}},set:{success:function(){g.removeClass(p.error).addClass(p.success)},defaults:function(){i.each(function(){var e=D(this),t=0<e.filter(h.checkbox).length?e.is(":checked"):e.val();e.data(u.defaultValue,t)})},error:function(){g.removeClass(p.success).addClass(p.error)},value:function(e,t){var i={};return i[e]=t,m.set.values.call(v,i)},values:function(e){D.isEmptyObject(e)||D.each(e,function(e,t){var i,n=m.get.field(e),o=n.parent(),r=D.isArray(t),a=o.is(h.uiCheckbox),s=o.is(h.uiDropdown),l=n.is(h.radio)&&a;0<n.length&&(r&&a?(m.verbose("Selecting multiple",t,n),o.checkbox("uncheck"),D.each(t,function(e,t){i=n.filter('[value="'+t+'"]'),o=i.parent(),0<i.length&&o.checkbox("check")})):l?(m.verbose("Selecting radio value",t,n),n.filter('[value="'+t+'"]').parent(h.uiCheckbox).checkbox("check")):a?(m.verbose("Setting checkbox value",t,o),!0===t?o.checkbox("check"):o.checkbox("uncheck")):s?(m.verbose("Setting dropdown value",t,o),o.dropdown("set selected",t)):(m.verbose("Setting field value",t,n),n.val(t)))})}},validate:{form:function(e,t){var i=m.get.values();if(y)return!1;if(b=[],m.determine.isValid()){if(m.debug("Form has no validation errors, submitting"),m.set.success(),!0!==t)return d.onSuccess.call(v,e,i)}else if(m.debug("Form has errors"),m.set.error(),d.inline||m.add.errors(b),g.data("moduleApi")!==L&&e.stopImmediatePropagation(),!0!==t)return d.onFailure.call(v,b,i)},field:function(i,e,t){t=t===L||t,"string"==typeof i&&(m.verbose("Validating field",i),i=c[e=i]);var n=i.identifier||e,o=m.get.field(n),r=!!i.depends&&m.get.field(i.depends),a=!0,s=[];return i.identifier||(m.debug("Using field name as identifier",n),i.identifier=n),o.prop("disabled")?(m.debug("Field is disabled. Skipping",n),a=!0):i.optional&&m.is.blank(o)?(m.debug("Field is optional and blank. Skipping",n),a=!0):i.depends&&m.is.empty(r)?(m.debug("Field depends on another value that is not present or empty. Skipping",r),a=!0):i.rules!==L&&D.each(i.rules,function(e,t){m.has.field(n)&&!m.validate.rule(i,t)&&(m.debug("Field is invali
1d",n,t.type),s.push(m.get.prompt(t,i)),a=!1)}),a?(t&&(m.remove.prompt(n,s),d.onValid.call(o)),!0):(t&&(b=b.concat(s),m.add.prompt(n,s),d.onInvalid.call(o,s)),!1)},rule:function(e,t){var i=m.get.field(e.identifier),n=(t.type,i.val()),o=m.get.ancillaryValue(t),r=m.get.ruleName(t),a=d.rules[r];if(D.isFunction(a))return n=n===L||""===n||null===n?"":D.trim(n+""),a.call(i,n,o);m.error(s.noRule,r)}},setting:function(e,t){if(D.isPlainObject(e))D.extend(!0,d,e);else{if(t===L)return d[e];d[e]=t}},internal:function(e,t){if(D.isPlainObject(e))D.extend(!0,m,e);else{if(t===L)return m[e];m[e]=t}},debug:function(){!d.silent&&d.debug&&(d.performance?m.performance.log(arguments):(m.debug=Function.prototype.bind.call(console.info,console,d.name+":"),m.debug.apply(console,arguments)))},verbose:function(){!d.silent&&d.verbose&&d.debug&&(d.performance?m.performance.log(arguments):(m.verbose=Function.prototype.bind.call(console.info,console,d.name+":"),m.verbose.apply(console,arguments)))},error:function(){d.silent||(m.error=Function.prototype.bind.call(console.error,console,d.name+":"),m.error.apply(console,arguments))},performance:{log:function(e){var t,i;d.performance&&(i=(t=(new Date).getTime())-(k||t),k=t,C.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:v,"Execution Time":i})),clearTimeout(m.performance.timer),m.performance.timer=setTimeout(m.performance.display,500)},display:function(){var e=d.name+":",i=0;k=!1,clearTimeout(m.performance.timer),D.each(C,function(e,t){i+=t["Execution Time"]}),e+=" "+i+"ms",w&&(e+=" '"+w+"'"),1<S.length&&(e+=" ("+S.length+")"),(console.group!==L||console.table!==L)&&0<C.length&&(console.groupCollapsed(e),console.table?console.table(C):D.each(C,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),C=[]}},invoke:function(n,e,t){var o,r,i,a=f;return e=e||E,t=v||t,"string"==typeof n&&a!==L&&(n=n.split(/[\. ]/),o=n.length-1,D.each(n,function(e,t){var i=e!=o?t+n[e+1].charAt(0).toUpperCase()+n[e+1].slice(1):n;if(D.isPlainObject(a[i])&&e!=o)a=a[i];else{if(a[i]!==L)return r=a[i],!1;if(!D.isPlainObject(a[t])||e==o)return a[t]!==L&&(r=a[t]),!1;a=a[t]}})),D.isFunction(r)?i=r.apply(t,e):r!==L&&(i=r),D.isArray(T)?T.push(i):T!==L?T=[T,i]:i!==L&&(T=i),r}}).initialize()}),T!==L?T:this},D.fn.form.settings={name:"Form",namespace:"form",debug:!1,verbose:!1,performance:!0,fields:!1,keyboardShortcuts:!0,on:"submit",inline:!1,delay:200,revalidate:!0,transition:"scale",duration:200,onValid:function(){},onInvalid:function(){},onSuccess:function(){return!0},onFailure:function(){return!1},metadata:{defaultValue:"default",validate:"validate"}
vendor: 6,036 bytes, line 1
1,regExp:{htmlID:/^[a-zA-Z][\w:.-]*$/g,bracket:/\[(.*)\]/i,decimal:/^\d+\.?\d*$/,email:/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,escape:/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,flags:/^\/(.*)\/(.*)?/,integer:/^\-?\d+$/,number:/^\-?\d*(\.\d+)?$/,url:/(https?:\/\/(?:www\.|(?!www))[^\s\.]+\.[^\s]{2,}|www\.[^\s]+\.[^\s]{2,})/i},text:{unspecifiedRule:"Please enter a valid value",unspecifiedField:"This field"},prompt:{empty:"{name} must have a value",checked:"{name} must be checked",email:"{name} must be a valid e-mail",url:"{name} must be a valid url",regExp:"{name} is not formatted correctly",integer:"{name} must be an integer",decimal:"{name} must be a decimal number",number:"{name} must be set to a number",is:'{name} must be "{ruleValue}"',isExactly:'{name} must be exactly "{ruleValue}"',not:'{name} cannot be set to "{ruleValue}"',notExactly:'{name} cannot be set to exactly "{ruleValue}"',contain:'{name} must contain "{ruleValue}"',containExactly:'{name} must contain exactly "{ruleValue}"',doesntContain:'{name} cannot contain  "{ruleValue}"',doesntContainExactly:'{name} cannot contain exactly "{ruleValue}"',minLength:"{name} must be at least {ruleValue} characters",length:"{name} must be at least {ruleValue} characters",exactLength:"{name} must be exactly {ruleValue} characters",maxLength:"{name} cannot be longer than {ruleValue} characters",match:"{name} must match {ruleValue} field",different:"{name} must have a different value than {ruleValue} field",creditCard:"{name} must be a valid credit card number",minCount:"{name} must have at least {ruleValue} choices",exactCount:"{name} must have exactly {ruleValue} choices",maxCount:"{name} must have {ruleValue} or less choices"},selector:{checkbox:'input[type="checkbox"], input[type="radio"]',clear:".clear",field:"input, textarea, select",group:".field",input:"input",message:".error.message",prompt:".prompt.label",radio:'input[type="radio"]',reset:'.reset:not([type="reset"])',submit:'.submit:not([type="submit"])',uiCheckbox:".ui.checkbox",uiDropdown:".ui.dropdown"},className:{error:"error",label:"ui prompt label",pressed:"down",success:"success"},error:{identifier:"You must specify a string identifier for each field",method:"The method you called is not defined.",noRule:"There is no rule matching the one you specified",oldSyntax:"Starting in 2.0 forms now only take a single settings object. Validation settings converted to new syntax automatically."},templates:{error:function(e){var i='<ul class="list">';return D.each(e,function(e,t){i+="<li>"+t+"</li>"}),D(i+="</ul>")},prompt:function(e){return D("<div/>").addClass("ui basic red pointing prompt label").html(e[0])}},rules:{empty:function(e){return!(e===L||""===e||D.isArray(e)&&0===e.length)},checked:function(){return 0<D(this).filter(":checked").length},email:function(e){return D.fn.form.settings.regExp.email.test(e)},url:function(e){return D.fn.form.settings.regExp.url.test(e)},regExp:function(e,t){if(t instanceof RegExp)return e.match(t);var i,n=t.match(D.fn.form.settings.regExp.flags);return n&&(t=2<=n.length?n[1]:t,i=3<=n.length?n[2]:""),e.match(new RegExp(t,i))},integer:function(e,t){var i,n,o,r=D.fn.form.settings.regExp.integer;return t&&-1===["",".."].indexOf(t)&&(-1==t.indexOf("..")?r.test(t)&&(i=n=t-0):(o=t.split("..",2),r.test(o[0])&&(i=o[0]-0),r.test(o[1])&&(n=o[1]-0))),r.test(e)&&(i===L||i<=e)&&(n===L||e<=n)},decimal:function(e){return D.fn.form.settings.regExp.decimal.test(e)},number:function(e){return D.fn.form.settings.regExp.number.test(e)},is:function(e,t){return t="string"==typeof t?t.toLowerCase():t,(e="string"==typeof e?e.toLowerCase():e)==t},isExactly:function(e,t){return e==t},not:function(e,t){return(e="string"==typeof e?e.toLowerCase():e)!=("string"==typeof t?t.toLowerCase():t)},notExactly:function(e,t){return e!=t},contains:function(e,t){return t=t.replace(D.fn.form.settings.regExp.escape,"\\$&"),-1!==e.search(new RegExp(t,"i"))},containsExactly:function(e,t){return t=t.replace(D.fn.form.settings.regExp.escape,"\\$&"),-1!==e.search(new RegExp(t))},doesntContain:function(e,t){return t=t.replace(D.fn.form.settings.regExp.escape,"\\$&"),-1===e.search(new RegExp(t,"i"))},doesntContainExactly:function(e,t){return t=t.replace(D.fn.form.settings.regExp.escape,"\\$&"),-1===e.search(new RegExp(t))},minLength:function(e,t){return e!==L&&e.length>=t},length:function(e,t){return e!==L&&e.length>=t},exactLength:function(e,t){return e!==L&&e.length==t},maxLength:function(e,t){return e!==L&&e.length<=t},match:function(e,t){var i;return D(this),0<D('[data-validate="'+t+'"]').length?i=D('[data-validate="'+t+'"]').val():0<D("#"+t).length?i=D("#"+t).val():0<D('[name="'+t+'"]').length?i=D('[name="'+t+'"]').val():0<D('[name="'+t+'[]"]').length&&(i=D('[name="'+t+'[]"]')),i!==L&&e.toString()==i.toString()},different:function(e,t){var i;return D(this),0<D('[data-validate="'+t+'"]').length?i=D('[data-validate="'+t+'"]').val():0<D("#"+t).length?i=D("#"+t).val():0<D('[name="'+t+'"]').length?i=D('[name="'+t+'"]').val():0<D('[name="'+t+'[]"]').length&&(i=D('[name="'+t+'[]"]')),i!==L&&e.toString()!==i.toString()},creditCard:function(i,e){var t,n,o={visa:{pattern:/^4/,length:[16]},amex:{pattern:/^3[47]/,length:[15]},mastercard:{pattern:/^5[1-5]/,length:[16]},discover:{pattern:/^(6011|622(12[6-9]|1[3-9][0-9]|[2-8][0-9]{2}|9[0-1][0-9]|92[0-5]|64[4-9])|65)/,length:[16]},unionPay:{pattern:/^(62|88)/,length:[16,17,18,19]},jcb:{pattern:/^35(2[89]|[3-8][0-9])/,length:[16]},maestro:{pattern:/^(5018|5020|5038|6304|6759|676[1-3])/,length:[12,13,14,15,16,17,18,19]},dinersClub:{pattern:/^(30[0-5]|^36)/,length:[14]},laser:{pattern:/^(6304|670[69]|6771)/,length:[16,17,18,19]},visaElectron:{pattern:/^(4026|417500|4508|4844|491(3|7))/,length:[16]}},r={},a=!1,s="string"==typeof e&&e.split(",");if("string"==typeof i&&0!==i.length){if(i=i.replace(/[\-]/g,""),s&&(D.each(s,function(e,t){(n=o[t])&&(r={length:-1!==D.inArray(i.length,n.length),pattern:-1!==i.search(n.pattern)}).length&&r.pattern&&(a=!0)}
vendor: 21,235 bytes, line 1
1),!a))return!1;if((t={number:-1!==D.inArray(i.length,o.unionPay.length),pattern:-1!==i.search(o.unionPay.pattern)}).number&&t.pattern)return!0;for(var l=i.length,c=0,u=[[0,1,2,3,4,5,6,7,8,9],[0,2,4,6,8,1,3,5,7,9]],d=0;l--;)d+=u[c][parseInt(i.charAt(l),10)],c^=1;return d%10==0&&0<d}},minCount:function(e,t){return 0==t||(1==t?""!==e:e.split(",").length>=t)},exactCount:function(e,t){return 0==t?""===e:1==t?""!==e&&-1===e.search(","):e.split(",").length==t},maxCount:function(e,t){return 0!=t&&(1==t?-1===e.search(","):e.split(",").length<=t)}}}}(jQuery,window,document),function(w,k,e,C){"use strict";k=void 0!==k&&k.Math==Math?k:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),w.fn.accordion=function(r){var v,a=w(this),b=(new Date).getTime(),y=[],x=r,T="string"==typeof x,S=[].slice.call(arguments,1);return k.requestAnimationFrame||k.mozRequestAnimationFrame||k.webkitRequestAnimationFrame||k.msRequestAnimationFrame,a.each(function(){var e,c,u=w.isPlainObject(r)?w.extend(!0,{},w.fn.accordion.settings,r):w.extend({},w.fn.accordion.settings),d=u.className,t=u.namespace,h=u.selector,s=u.error,i="."+t,n="module-"+t,o=a.selector||"",p=w(this),f=p.find(h.title),m=p.find(h.content),l=this,g=p.data(n);c={initialize:function(){c.debug("Initializing",p),c.bind.events(),u.observeChanges&&c.observeChanges(),c.instantiate()},instantiate:function(){g=c,p.data(n,c)},destroy:function(){c.debug("Destroying previous instance",p),p.off(i).removeData(n)},refresh:function(){f=p.find(h.title),m=p.find(h.content)},observeChanges:function(){"MutationObserver"in k&&((e=new MutationObserver(function(e){c.debug("DOM tree modified, updating selector cache"),c.refresh()})).observe(l,{childList:!0,subtree:!0}),c.debug("Setting up mutation observer",e))},bind:{events:function(){c.debug("Binding delegated events"),p.on(u.on+i,h.trigger,c.event.click)}},event:{click:function(){c.toggle.call(this)}},toggle:function(e){var t=e!==C?"number"==typeof e?f.eq(e):w(e).closest(h.title):w(this).closest(h.title),i=t.next(m),n=i.hasClass(d.animating),o=i.hasClass(d.active),r=o&&!n,a=!o&&n;c.debug("Toggling visibility of content",t),r||a?u.collapsible?c.close.call(t):c.debug("Cannot close accordion content collapsing is disabled"):c.open.call(t)},open:function(e){var t=e!==C?"number"==typeof e?f.eq(e):w(e).closest(h.title):w(this).closest(h.title),i=t.next(m),n=i.hasClass(d.animating);i.hasClass(d.active)||n?c.debug("Accordion already open, skipping",i):(c.debug("Opening accordion content",t),u.onOpening.call(i),u.onChanging.call(i),u.exclusive&&c.closeOthers.call(t),t.addClass(d.active),i.stop(!0,!0).addClass(d.animating),u.animateChildren&&(w.fn.transition!==C&&p.transition("is supported")?i.children().transition({animation:"fade in",queue:!1,useFailSafe:!0,debug:u.debug,verbose:u.verbose,duration:u.duration}):i.children().stop(!0,!0).animate({opacity:1},u.duration,c.resetOpacity)),i.slideDown(u.duration,u.easing,function(){i.removeClass(d.animating).addClass(d.active),c.reset.display.call(this),u.onOpen.call(this),u.onChange.call(this)}))},close:function(e){var t=e!==C?"number"==typeof e?f.eq(e):w(e).closest(h.title):w(this).closest(h.title),i=t.next(m),n=i.hasClass(d.animating),o=i.hasClass(d.active);!o&&(o||!n)||o&&n||(c.debug("Closing accordion content",i),u.onClosing.call(i),u.onChanging.call(i),t.removeClass(d.active),i.stop(!0,!0).addClass(d.animating),u.animateChildren&&(w.fn.transition!==C&&p.transition("is supported")?i.children().transition({animation:"fade out",queue:!1,useFailSafe:!0,debug:u.debug,verbose:u.verbose,duration:u.duration}):i.children().stop(!0,!0).animate({opacity:0},u.duration,c.resetOpacity)),i.slideUp(u.duration,u.easing,function(){i.removeClass(d.animating).removeClass(d.active),c.reset.display.call(this),u.onClose.call(this),u.onChange.call(this)}))},closeOthers:function(e){var t,i,n,o=e!==C?f.eq(e):w(this).closest(h.title),r=o.parents(h.content).prev(h.title),a=o.closest(h.accordion),s=h.title+"."+d.active+":visible",l=h.content+"."+d.active+":visible";n=u.closeNested?(t=a.find(s).not(r)).next(m):(t=a.find(s).not(r),i=a.find(l).find(s).not(r),(t=t.not(i)).next(m)),0<t.length&&(c.debug("Exclusive enabled, closing other content",t),t.removeClass(d.active),n.removeClass(d.animating).stop(!0,!0),u.animateChildren&&(w.fn.transition!==C&&p.transition("is supported")?n.children().transition({animation:"fade out",useFailSafe:!0,debug:u.debug,verbose:u.verbose,duration:u.duration}):n.children().stop(!0,!0).animate({opacity:0},u.duration,c.resetOpacity)),n.slideUp(u.duration,u.easing,function(){w(this).removeClass(d.active),c.reset.display.call(this)}))},reset:{display:function(){c.verbose("Removing inline display from element",this),w(this).css("display",""),""===w(this).attr("style")&&w(this).attr("style","").removeAttr("style")},opacity:function(){c.verbose("Removing inline opacity from element",this),w(this).css("opacity",""),""===w(this).attr("style")&&w(this).attr("style","").removeAttr("style")}},setting:function(e,t){if(c.debug("Changing setting",e,t),w.isPlainObject(e))w.extend(!0,u,e);else{if(t===C)return u[e];w.isPlainObject(u[e])?w.extend(!0,u[e],t):u[e]=t}},internal:function(e,t){if(c.debug("Changing internal",e,t),t===C)return c[e];w.isPlainObject(e)?w.extend(!0,c,e):c[e]=t},debug:function(){!u.silent&&u.debug&&(u.performance?c.performance.log(arguments):(c.debug=Function.prototype.bind.call(console.info,console,u.name+":"),c.debug.apply(console,arguments)))},verbose:function(){!u.silent&&u.verbose&&u.debug&&(u.performance?c.performance.log(arguments):(c.verbose=Function.prototype.bind.call(console.info,console,u.name+":"),c.verbose.apply(console,arguments)))},error:function(){u.silent||(c.error=Function.prototype.bind.call(console.error,console,u.name+":"),c.error.apply(console,arguments))},performance:{log:function(e){var t,i;u.performance&&(i=(t=(new Date).getTime())-(b||t),b=t,y.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:l,"Execution Time":i})),clearTimeout(c.performance.timer),c.performance.timer=setTimeout(c.performance.display,500)},display:function(){var e=u.name+":",i=0;b=!1,clearTimeout(c.performance.timer),w.each(y,function(e,t){i+=t["Execution Time"]}),e+=" "+i+"ms",o&&(e+=" '"+o+"'"),(console.group!==C||console.table!==C)&&0<y.length&&(console.groupCollapsed(e),console.table?console.table(y):w.each(y,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),y=[]}},invoke:function(n,e,t){var o,r,i,a=g;return e=e||S,t=l||t,"string"==typeof n&&a!==C&&(n=n.split(/[\. ]/),o=n.length-1,w.each(n,function(e,t){var i=e!=o?t+n[e+1].charAt(0).toUpperCase()+n[e+1].slice(1):n;if(w.isPlainObject(a[i])&&e!=o)a=a[i];else{if(a[i]!==C)return r=a[i],!1;if(!w.isPlainObject(a[t])||e==o)return a[t]!==C?r=a[t]:c.error(s.method,n),!1;a=a[t]}})),w.isFunction(r)?i=r.apply(t,e):r!==C&&(i=r),w.isArray(v)?v.push(i):v!==C?v=[v,i]:i!==C&&(v=i),r}},T?(g===C&&c.initialize(),c.invoke(x)):(g!==C&&g.invoke("destroy"),c.initialize())}),v!==C?v:this},w.fn.accordion.settings={name:"Accordion",namespace:"accordion",silent:!1,debug:!1,verbose:!1,performance:!0,on:"click",observeChanges:!0,exclusive:!0,collapsible:!0,closeNested:!1,animateChildren:!0,duration:350,easing:"easeOutQuad",onOpening:function(){},onClosing:function(){},onChanging:function(){},onOpen:function(){},onClose:function(){},onChange:function(){},error:{method:"The method you called is not defined"},className:{active:"active",animating:"animating"},selector:{accordion:".accordion",title:".title",trigger:".title",content:".content"}},w.extend(w.easing,{easeOutQuad:function(e,t,i,n,o){return-n*(t/=o)*(t-2)+i}})}(jQuery,window,document),function(C,M,P,A){"use strict";M=void 0!==M&&M.Math==Math?M:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),C.fn.checkbox=function(v){var b,e=C(this),y=e.selector||"",x=(new Date).getTime(),T=[],S=v,w="string"==typeof S,k=[].slice.call(arguments,1);return e.each(function(){var e,s,n=C.extend(!0,{},C.fn.checkbox.settings,v),t=n.className,i=n.namespace,o=n.selector,l=n.error,r="."+i,a="module-"+i,c=C(this),u=C(this).children(o.label),d=C(this).children(o.input),h=d[0],p=!1,f=!1,m=c.data(a),g=this;s={initialize:function(){s.verbose("Initializing checkbox",n),s.create.label(),s.bind.events(),s.set.tabbable(),s.hide.input(),s.observeChanges(),s.instantiate(),s.setup()},instantiate:function(){s.verbose("Storing instance of module",s),m=s,c.data(a,s)},destroy:function(){s.verbose("Destroying module"),s.unbind.events(),s.show.input(),c.removeData(a)},fix:{reference:function(){c.is(o.input)&&(s.debug("Behavior called on <input> adjusting invoked element"),c=c.closest(o.checkbox),s.refresh())}},setup:function(){s.set.initialLoad(),s.is.indeterminate()?(s.debug("Initial value is indeterminate"),s.indeterminate()):s.is.checked()?(s.debug("Initial value is checked"),s.check()):(s.debug("Initial value is unchecked"),s.uncheck()),s.remove.initialLoad()},refresh:function(){u=c.children(o.label),d=c.children(o.input),h=d[0]},hide:{input:function(){s.verbose("Modifying <input> z-index to be unselectable"),d.addClass(t.hidden)}},show:{input:function(){s.verbose("Modifying <input> z-index to be selectable"),d.removeClass(t.hidden)}},observeChanges:function(){"MutationObserver"in M&&((e=new MutationObserver(function(e){s.debug("DOM tree modified, updating selector cache"),s.refresh()})).observe(g,{childList:!0,subtree:!0}),s.debug("Setting up mutation observer",e))},attachEvents:function(e,t){var i=C(e);t=C.isFunction(s[t])?s[t]:s.toggle,0<i.length?(s.debug("Attaching checkbox events to element",e,t),i.on("click"+r,t)):s.error(l.notFound)},event:{click:function(e){var t=C(e.target);t.is(o.input)?s.verbose("Using default check action on initialized checkbox"):t.is(o.link)?s.debug("Clicking link inside checkbox, skipping toggle"):(s.toggle(),d.focus(),e.preventDefault())},keydown:function(e){var t=e.which;f=27==t?(s.verbose("Escape key pressed blurring field"),d.blur(),!0):!(e.ctrlKey||32!=t&&13!=t||(s.verbose("Enter/space key pressed, toggling checkbox"),s.toggle(),0))},keyup:function(e){f&&e.preventDefault()}},check:function(){s.should.allowCheck()&&(s.debug("Checking checkbox",d),s.set.checked(),s.should.ignoreCallbacks()||(n.onChecked.call(h),n.onChange.call(h)))},uncheck:function(){s.should.allowUncheck()&&(s.debug("Unchecking checkbox"),s.set.unchecked(),s.should.ignoreCallbacks()||(n.onUnchecked.call(h),n.onChange.call(h)))},indeterminate:function(){s.should.allowIndeterminate()?s.debug("Checkbox is already indeterminate"):(s.debug("Making checkbox indeterminate"),s.set.indeterminate(),s.should.ignoreCallbacks()||(n.onIndeterminate.call(h),n.onChange.call(h)))},determinate:function(){s.should.allowDeterminate()?s.debug("Checkbox is already determinate"):(s.debug("Making checkbox determinate"),s.set.determinate(),s.should.ignoreCallbacks()||(n.onDeterminate.call(h),n.onChange.call(h)))},enable:function(){s.is.enabled()?s.debug("Checkbox is already enabled"):(s.debug("Enabling checkbox"),s.set.enabled(),n.onEnable.call(h),n.onEnabled.call(h))},disable:function(){s.is.disabled()?s.debug("Checkbox is already disabled"):(s.debug("Disabling checkbox"),s.set.disabled(),n.onDisable.call(h),n.onDisabled.call(h))},get:{radios:function(){var e=s.get.name();return C('input[name="'+e+'"]').closest(o.checkbox)},otherRadios:function(){return s.get.radios().not(c)},name:function(){return d.attr("name")}},is:{initialLoad:function(){return p},radio:function(){return d.hasClass(t.radio)||"radio"==d.attr("type")},indeterminate:function(){return d.prop("indeterminate")!==A&&d.prop("indeterminate")},checked:function(){return d.prop("checked")!==A&&d.prop("checked")},disabled:function(){return d.prop("disabled")!==A&&d.prop("disabled")},enabled:function(){return!s.is.disabled()},determinate:function(){return!s.is.indeterminate()},unchecked:function(){return!s.is.checked()}},should:{allowCheck:function(){return s.is.determinate()&&s.is.checked()&&!s.should.forceCallbacks()?(s.debug("Should not allow check, checkbox is already checked"),!1):!1!==n.beforeChecked.apply(h)||(s.debug("Should not allow check, beforeChecked cancelled"),!1)},allowUncheck:function(){return s.is.determinate()&&s.is.unchecked()&&!s.should.forceCallbacks()?(s.debug("Should not allow uncheck, checkbox is already unchecked"),!1):!1!==n.beforeUnchecked.apply(h)||(s.debug("Should not allow uncheck, beforeUnchecked cancelled"),!1)},allowIndeterminate:function(){return s.is.indeterminate()&&!s.should.forceCallbacks()?(s.debug("Should not allow indeterminate, checkbox is already indeterminate"),!1):!1!==n.beforeIndeterminate.apply(h)||(s.debug("Should not allow indeterminate, beforeIndeterminate cancelled"),!1)},allowDeterminate:function(){return s.is.determinate()&&!s.should.forceCallbacks()?(s.debug("Should not allow determinate, checkbox is already determinate"),!1):!1!==n.beforeDeterminate.apply(h)||(s.debug("Should not allow determinate, beforeDeterminate cancelled"),!1)},forceCallbacks:function(){return s.is.initialLoad()&&n.fireOnInit},ignoreCallbacks:function(){return p&&!n.fireOnInit}},can:{change:function(){return!(c.hasClass(t.disabled)||c.hasClass(t.readOnly)||d.prop("disabled")||d.prop("readonly"))},uncheck:function(){return"boolean"==typeof n.uncheckable?n.uncheckable:!s.is.radio()}},set:{initialLoad:function(){p=!0},checked:function(){s.verbose("Setting class to checked"),c.removeClass(t.indeterminate).addClass(t.checked),s.is.radio()&&s.uncheckOthers(),s.is.indeterminate()||!s.is.checked()?(s.verbose("Setting state to checked",h),d.prop("indeterminate",!1).prop("checked",!0),s.trigger.change()):s.debug("Input is already checked, skipping input property change")},unchecked:function(){s.verbose("Removing checked class"),c.removeClass(t.indeterminate).removeClass(t.checked),s.is.indeterminate()||!s.is.unchecked()?(s.debug("Setting state to unchecked"),d.prop("indeterminate",!1).prop("checked",!1),s.trigger.change()):s.debug("Input is already unchecked")},indeterminate:function(){s.verbose("Setting class to indeterminate"),c.addClass(t.indeterminate),s.is.indeterminate()?s.debug("Input is already indeterminate, skipping input property change"):(s.debug("Setting state to indeterminate"),d.prop("indeterminate",!0),s.trigger.change())},determinate:function(){s.verbose("Removing indeterminate class"),c.removeClass(t.indeterminate),s.is.determinate()?s.debug("Input is already determinate, skipping input property change"):(s.debug("Setting state to determinate"),d.prop("indeterminate",!1))},disabled:function(){s.verbose("Setting class to disabled"),c.addClass(t.disabled),s.is.disabled()?s.debug("Input is already disabled, skipping input property change"):(s.debug("Setting state to disabled"),d.prop("disabled","disabled"),s.trigger.change())},enabled:function(){s.verbose("Removing disabled class"),c.removeClass(t.disabled),s.is.enabled()?s.debug("Input is already enabled, skipping input property change"):(s.debug("Setting state to enabled"),d.prop("disabled",!1),s.trigger.change())},tabbable:function(){s.verbose("Adding tabindex to checkbox"),d.attr("tabindex")===A&&d.attr("tabindex",0)}},remove:{initialLoad:function(){p=!1}},trigger:{change:function(){var e=P.createEvent("HTMLEvents"),t=d[0];t&&(s.verbose("Triggering native change event"),e.initEvent("change",!0,!1),t.dispatchEvent(e))}},create:{label:function(){0<d.prevAll(o.label).length?(d.prev(o.label).detach().insertAfter(d),s.debug("Moving existing label",u)):s.has.label()||(u=C("<label>").insertAfter(d),s.debug("Creating label",u))}},has:{label:function(){return 0<u.length}},bind:{events:function(){s.verbose("Attaching checkbox events"),c.on("click"+r,s.event.click).on("keydown"+r,o.input,s.event.keydown).on("keyup"+r,o.input,s.event.keyup)}},unbind:{events:function(){s.debug("Removing events"),c.off(r)}},uncheckOthers:function(){var e=s.get.otherRadios();s.debug("Unchecking other radios",e),e.removeClass(t.checked)},toggle:function(){s.can.change()?s.is.indeterminate()||s.is.unchecked()?(s.debug("Currently unchecked"),s.check()):s.is.checked()&&s.can.uncheck()&&(s.debug("Currently checked"),s.uncheck()):s.is.radio()||s.debug("Checkbox is read-only or disabled, ignoring toggle")},setting:function(e,t){if(s.debug("Changing setting",e,t),C.isPlainObject(e))C.extend(!0,n,e);else{if(t===A)return n[e];C.isPlainObject(n[e])?C.extend(!0,n[e],t):n[e]=t}},internal:function(e,t){if(C.isPlainObject(e))C.extend(!0,s,e);else{if(t===A)return s[e];s[e]=t}},debug:function(){!n.silent&&n.debug&&(n.performance?s.performance.log(arguments):(s.debug=Function.prototype.bind.call(console.info,console,n.name+":"),s.debug.apply(console,arguments)))},verbose:function(){!n.silent&&n.verbose&&n.debug&&(n.performance?s.performance.log(arguments):(s.verbose=Function.prototype.bind.call(console.info,console,n.name+":"),s.verbose.apply(console,arguments)))},error:function(){n.silent||(s.error=Function.prototype.bind.call(console.error,console,n.name+":"),s.error.apply(console,arguments))},performance:{log:function(e){var t,i;n.performance&&(i=(t=(new Date).getTime())-(x||t),x=t,T.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:g,"Execution Time":i})),clearTimeout(s.performance.timer),s.performance.timer=setTimeout(s.performance.display,500)},display:function(){var e=n.name+":",i=0;x=!1,clearTimeout(s.performance.timer),C.each(T,function(e,t){i+=t["Execution Time"]}),e+=" "+i+"ms",y&&(e+=" '"+y+"'"),(console.group!==A||console.table!==A)&&0<T.length&&(console.groupCollapsed(e),console.table?console.table(T):C.each(T,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),T=[]}},invoke:function(n,e,t){var o,r,i,a=m;return e=e||k,t=g||t,"string"==typeof n&&a!==A&&(n=n.split(/[\. ]/),o=n.length-1,C.each(n,function(e,t){var i=e!=o?t+n[e+1].charAt(0).toUpperCase()+n[e+1].slice(1):n;if(C.isPlainObject(a[i])&&e!=o)a=a[i];else{if(a[i]!==A)return r=a[i],!1;if(!C.isPlainObject(a[t])||e==o)return a[t]!==A?r=a[t]:s.error(l.method,n),!1;a=a[t]}})),C.isFunction(r)?i=r.apply(t,e):r!==A&&(i=r),C.isArray(b)?b.push(i):b!==A?b=[b,i]:i!==A&&(b=i),r}},w?(m===A&&s.initialize(),s.invoke(S)):(m!==A&&m.invoke("destroy"),s.initialize())}),b!==A?b:this},C.fn.checkbox.settings={name:"Checkbox",namespace:"checkbox",silent:!1,debug:!1,verbose:!0,performance:!0,uncheckable:"auto",fireOnInit:!1,onChange:function(){},beforeChecked:function(){},beforeUnchecked:function(){},beforeDeterminate:function(){},beforeIndeterminate:function(){},onChecked:function(){},onUnchecked:function(){},onDeterminate:function(){},onIndeterminate:function(){},onEnable:function(){},onDisable:function(){},onEnabled:function(){},onDisabled:function(){},className:{checked:"checked",indeterminate:"indeterminate",disabled:"disabled",hidden:"hidden",radio:"radio",readOnly:"read-only"},error:{method:"The method you called is not defined"},selector:{checkbox:".ui.checkbox",label:"label, .box",input:'input[type="checkbox"], input[type="radio"]',link:"a[href]"}}}(jQuery,window,document),function(w,e,k,C){"use strict";e=void 0!==e&&e.Math==Math?e:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),w.fn.dimmer=function(m){var g,v=w(this),b=(new Date).getTime(),y=[],x=m,T="string"==typeof x,S=[].slice.call(arguments,1);return v.each(function(){var r,t,s,a=w.isPlainObject(m)?w.extend(!0,{},w.fn.dimmer.settings,m):w.extend({},w.fn.dimmer.settings),i=a.selector,e=a.namespace,n=a.className,l=a.error,o="."+e,c="module-"+e,u=v.selector||"",d="ontouchstart"in k.documentElement?"touchstart":"click",h=w(this),p=this,f=h.data(c);(s={preinitialize:function(){r=s.is.dimmer()?(t=h.parent(),h):(t=h,s.has.dimmer()?a.dimmerName?t.find(i.dimmer).filter("."+a.dimmerName):t.find(i.dimmer):s.create())},initialize:function(){s.debug("Initializing dimmer",a),s.bind.events(),s.set.dimmable(),s.instantiate()},instantiate:function(){s.verbose("Storing instance of module",s),f=s,h.data(c,f)},destroy:function(){s.verbose("Destroying previous module",r),s.unbind.events(),s.remove.variation(),t.off(o)},bind:{events:function(){"hover"==a.on?t.on("mouseenter"+o,s.show).on("mouseleave"+o,s.hide):"click"==a.on&&t.on(d+o,s.toggle),s.is.page()&&(s.debug("Setting as a page dimmer",t),s.set.pageDimmer()),s.is.closable()&&(s.verbose("Adding dimmer close event",r),t.on(d+o,i.dimmer,s.event.click))}},unbind:{events:function(){h.removeData(c),t.off(o)}},event:{click:function(e){s.verbose("Determining if event occured on dimmer",e),(0===r.find(e.target).length||w(e.target).is(i.content))&&(s.hide(),e.stopImmediatePropagation())}},addContent:function(e){var t=w(e);s.debug("Add content to dimmer",t),t.parent()[0]!==r[0]&&t.detach().appendTo(r)},create:function(){var e=w(a.template.dimmer());return a.dimmerName&&(s.debug("Creating named dimmer",a.dimmerName),e.addClass(a.dimmerName)),e.appendTo(t),e},show:function(e){e=w.isFunction(e)?e:function(){},s.debug("Showing dimmer",r,a),s.set.variation(),s.is.dimmed()&&!s.is.animating()||!s.is.enabled()?s.debug("Dimmer is already shown or disabled"):(s.animate.show(e),a.onShow.call(p),a.onChange.call(p))},hide:function(e){e=w.isFunction(e)?e:function(){},s.is.dimmed()||s.is.animating()?(s.debug("Hiding dimmer",r),s.animate.hide(e),a.on
vendor: 4,365 bytes, line 1
1Hide.call(p),a.onChange.call(p)):s.debug("Dimmer is not visible")},toggle:function(){s.verbose("Toggling dimmer visibility",r),s.is.dimmed()?s.hide():s.show()},animate:{show:function(e){e=w.isFunction(e)?e:function(){},a.useCSS&&w.fn.transition!==C&&r.transition("is supported")?(a.useFlex?(s.debug("Using flex dimmer"),s.remove.legacy()):(s.debug("Using legacy non-flex dimmer"),s.set.legacy()),"auto"!==a.opacity&&s.set.opacity(),r.transition({displayType:a.useFlex?"flex":"block",animation:a.transition+" in",queue:!1,duration:s.get.duration(),useFailSafe:!0,onStart:function(){s.set.dimmed()},onComplete:function(){s.set.active(),e()}})):(s.verbose("Showing dimmer animation with javascript"),s.set.dimmed(),"auto"==a.opacity&&(a.opacity=.8),r.stop().css({opacity:0,width:"100%",height:"100%"}).fadeTo(s.get.duration(),a.opacity,function(){r.removeAttr("style"),s.set.active(),e()}))},hide:function(e){e=w.isFunction(e)?e:function(){},a.useCSS&&w.fn.transition!==C&&r.transition("is supported")?(s.verbose("Hiding dimmer with css"),r.transition({displayType:a.useFlex?"flex":"block",animation:a.transition+" out",queue:!1,duration:s.get.duration(),useFailSafe:!0,onStart:function(){s.remove.dimmed()},onComplete:function(){s.remove.variation(),s.remove.active(),e()}})):(s.verbose("Hiding dimmer with javascript"),s.remove.dimmed(),r.stop().fadeOut(s.get.duration(),function(){s.remove.active(),r.removeAttr("style"),e()}))}},get:{dimmer:function(){return r},duration:function(){return"object"==typeof a.duration?s.is.active()?a.duration.hide:a.duration.show:a.duration}},has:{dimmer:function(){return a.dimmerName?0<h.find(i.dimmer).filter("."+a.dimmerName).length:0<h.find(i.dimmer).length}},is:{active:function(){return r.hasClass(n.active)},animating:function(){return r.is(":animated")||r.hasClass(n.animating)},closable:function(){return"auto"==a.closable?"hover"!=a.on:a.closable},dimmer:function(){return h.hasClass(n.dimmer)},dimmable:function(){return h.hasClass(n.dimmable)},dimmed:function(){return t.hasClass(n.dimmed)},disabled:function(){return t.hasClass(n.disabled)},enabled:function(){return!s.is.disabled()},page:function(){return t.is("body")},pageDimmer:function(){return r.hasClass(n.pageDimmer)}},can:{show:function(){return!r.hasClass(n.disabled)}},set:{opacity:function(e){var t=r.css("background-color"),i=t.split(","),n=i&&3==i.length,o=i&&4==i.length;e=0===a.opacity?0:a.opacity||e,t=n||o?(i[3]=e+")",i.join(",")):"rgba(0, 0, 0, "+e+")",s.debug("Setting opacity to",e),r.css("background-color",t)},legacy:function(){r.addClass(n.legacy)},active:function(){r.addClass(n.active)},dimmable:function(){t.addClass(n.dimmable)},dimmed:function(){t.addClass(n.dimmed)},pageDimmer:function(){r.addClass(n.pageDimmer)},disabled:function(){r.addClass(n.disabled)},variation:function(e){(e=e||a.variation)&&r.addClass(e)}},remove:{active:function(){r.removeClass(n.active)},legacy:function(){r.removeClass(n.legacy)},dimmed:function(){t.removeClass(n.dimmed)},disabled:function(){r.removeClass(n.disabled)},variation:function(e){(e=e||a.variation)&&r.removeClass(e)}},setting:function(e,t){if(s.debug("Changing setting",e,t),w.isPlainObject(e))w.extend(!0,a,e);else{if(t===C)return a[e];w.isPlainObject(a[e])?w.extend(!0,a[e],t):a[e]=t}},internal:function(e,t){if(w.isPlainObject(e))w.extend(!0,s,e);else{if(t===C)return s[e];s[e]=t}},debug:function(){!a.silent&&a.debug&&(a.performance?s.performance.log(arguments):(s.debug=Function.prototype.bind.call(console.info,console,a.name+":"),s.debug.apply(console,arguments)))},verbose:function(){!a.silent&&a.verbose&&a.debug&&(a.performance?s.performance.log(arguments):(s.verbose=Function.prototype.bind.call(console.info,console,a.name+":"),s.verbose.apply(console,arguments)))},error:function(){a.silent||(s.error=Function.prototype.bind.call(console.error,console,a.name+":"),s.error.apply(console,arguments))},performance:{log:function(e){var t,i;a.performance&&(i=(t=(new Date).getTime())-(b||t),b=t,y.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:p,"Execution Time":i})),clearTimeout(s.performance.timer),s.performance.timer=setTimeout(s.performance.display,500)},display:function(){var e=a.name+":",i=0;b=!1,clearTimeout(s.performance.timer),w.each(y,function(e,t){i+=t["Execution Time"]}),e+=" "+i+"ms",u&&(e+=" '"+u+"'"),1<v.length&&(e+=" ("+v.length+")"),(console.group!==C||
vendor: 5,242 bytes, line 1
1console.table!==C)&&0<y.length&&(console.groupCollapsed(e),console.table?console.table(y):w.each(y,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),y=[]}},invoke:function(n,e,t){var o,r,i,a=f;return e=e||S,t=p||t,"string"==typeof n&&a!==C&&(n=n.split(/[\. ]/),o=n.length-1,w.each(n,function(e,t){var i=e!=o?t+n[e+1].charAt(0).toUpperCase()+n[e+1].slice(1):n;if(w.isPlainObject(a[i])&&e!=o)a=a[i];else{if(a[i]!==C)return r=a[i],!1;if(!w.isPlainObject(a[t])||e==o)return a[t]!==C?r=a[t]:s.error(l.method,n),!1;a=a[t]}})),w.isFunction(r)?i=r.apply(t,e):r!==C&&(i=r),w.isArray(g)?g.push(i):g!==C?g=[g,i]:i!==C&&(g=i),r}}).preinitialize(),T?(f===C&&s.initialize(),s.invoke(x)):(f!==C&&f.invoke("destroy"),s.initialize())}),g!==C?g:this},w.fn.dimmer.settings={name:"Dimmer",namespace:"dimmer",silent:!1,debug:!1,verbose:!1,performance:!0,useFlex:!0,dimmerName:!1,variation:!1,closable:"auto",useCSS:!0,transition:"fade",on:!1,opacity:"auto",duration:{show:500,hide:500},onChange:function(){},onShow:function(){},onHide:function(){},error:{method:"The method you called is not defined."},className:{active:"active",animating:"animating",dimmable:"dimmable",dimmed:"dimmed",dimmer:"dimmer",disabled:"disabled",hide:"hide",legacy:"legacy",pageDimmer:"page",show:"show"},selector:{dimmer:"> .ui.dimmer",content:".ui.dimmer > .content, .ui.dimmer > .content > .center"},template:{dimmer:function(){return w("<div />").attr("class","ui dimmer")}}}}(jQuery,window,document),function(Y,$,K,Z){"use strict";$=void 0!==$&&$.Math==Math?$:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),Y.fn.dropdown=function(B){var G,F=Y(this),_=Y(K),j=F.selector||"",z="ontouchstart"in K.documentElement,V=(new Date).getTime(),W=[],X=B,q="string"==typeof X,U=[].slice.call(arguments,1);return F.each(function(i){var e,t,n,o,r,a,s,f,m=Y.isPlainObject(B)?Y.extend(!0,{},Y.fn.dropdown.settings,B):Y.extend({},Y.fn.dropdown.settings),g=m.className,c=m.message,l=m.fields,v=m.keys,b=m.metadata,u=m.namespace,d=m.regExp,y=m.selector,h=m.error,p=m.templates,x="."+u,T="module-"+u,S=Y(this),w=Y(m.context),k=S.find(y.text),C=S.find(y.search),M=S.find(y.sizer),P=S.find(y.input),A=S.find(y.icon),E=0<S.prev().find(y.text).length?S.prev().find(y.text):S.prev(),D=S.children(y.menu),O=D.find(y.item),L=!1,I=!1,R=!1,H=this,N=S.data(T);f={initialize:function(){f.debug("Initializing dropdown",m),f.is.alreadySetup()?f.setup.reference():(f.setup.layout(),m.values&&f.change.values(m.values),f.refreshData(),f.save.defaults(),f.restore.selected(),f.create.id(),f.bind.events(),f.observeChanges(),f.instantiate())},instantiate:function(){f.verbose("Storing instance of dropdown",f),N=f,S.data(T,f)},destroy:function(){f.verbose("Destroying previous dropdown",S),f.remove.tabbable(),S.off(x).removeData(T),D.off(x),_.off(o),f.disconnect.menuObserver(),f.disconnect.selectObserver()},observeChanges:function(){"MutationObserver"in $&&(a=new MutationObserver(f.event.select.mutation),s=new MutationObserver(f.event.menu.mutation),f.debug("Setting up mutation observer",a,s),f.observe.select(),f.observe.menu())},disconnect:{menuObserver:function(){s&&s.disconnect()},selectObserver:function(){a&&a.disconnect()}},observe:{select:function(){f.has.input()&&a.observe(S[0],{childList:!0,subtree:!0})},menu:function(){f.has.menu()&&s.observe(D[0],{childList:!0,subtree:!0})}},create:{id:function(){r=(Math.random().toString(16)+"000000000").substr(2,8),o="."+r,f.verbose("Creating unique id for element",r)},userChoice:function(e){var i,n,o;return!!(e=e||f.get.userValues())&&(e=Y.isArray(e)?e:[e],Y.each(e,function(e,t){!1===f.get.item(t)&&(o=m.templates.addition(f.add.variables(c.addResult,t)),n=Y("<div />").html(o).attr("data-"+b.value,t).attr("data-"+b.text,t).addClass(g.addition).addClass(g.item),m.hideAdditions&&n.addClass(g.hidden),i=i===Z?n:i.add(n),f.verbose("Creating user choices for value",t,n))}),i)},userLabels:function(e){var t=f.get.userValues();t&&(f.debug("Adding user labels",t),Y.each(t,function(e,t){f.verbose("Adding custom user value"),f.add.label(t,t)}))},menu:function(){D=Y("<div />").addClass(g.menu).appendTo(S)},sizer:function(){M=Y("<span />").addClass(g.sizer).insertAfter(C)}},search:function(e){e=e!==Z?e:f.get.query(),f.verbose("Searching for query",e),f.has.minCharacters(e)?f.filter(e):f.hide()},select:{firstUnfiltered:function(){f.verbose("Selecting first non-filtered element"),f.remove.selectedItem(),O.not(y.unselectable).not(y.addition+y.hidden).eq(0).addClass(g.selected)},nextAvailable:function(e){var t=(e=e.eq(0)).nextAll(y.item).not(y.unselectable).eq(0),i=e.prevAll(y.item).not(y.unselectable).eq(0);0<t.length?(f.verbose("Moving selection to",t),t.addClass(g.selected)):(f.verbose("Moving selection to",i),i.addClass(g.selected))}},setup:{api:function(){var e={debug:m.debug,urlData:{value:f.get.value(),query:f.get.query()},on:!1};f.verbose("First request, initializing API"),S.api(e)},layout:function(){S.is("select")&&(f.setup.select(),f.setup.returnedObject()),f.has.menu()||f.create.menu(),f.is.search()&&!f.has.search()&&(f.verbose("Adding search input"),C=Y("<input />").addClass(g.search).prop("autocomplete","off").insertBefore(k)),f.is.multiple()&&f.is.searchSelection()&&
vendor: 6,529 bytes, line 1
1!f.has.sizer()&&f.create.sizer(),m.allowTab&&f.set.tabbable()},select:function(){var e=f.get.selectValues();f.debug("Dropdown initialized on a select",e),S.is("select")&&(P=S),0<P.parent(y.dropdown).length?(f.debug("UI dropdown already exists. Creating dropdown menu only"),S=P.closest(y.dropdown),f.has.menu()||f.create.menu(),D=S.children(y.menu),f.setup.menu(e)):(f.debug("Creating entire dropdown from select"),S=Y("<div />").attr("class",P.attr("class")).addClass(g.selection).addClass(g.dropdown).html(p.dropdown(e)).insertBefore(P),P.hasClass(g.multiple)&&!1===P.prop("multiple")&&(f.error(h.missingMultiple),P.prop("multiple",!0)),P.is("[multiple]")&&f.set.multiple(),P.prop("disabled")&&(f.debug("Disabling dropdown"),S.addClass(g.disabled)),P.removeAttr("class").detach().prependTo(S)),f.refresh()},menu:function(e){D.html(p.menu(e,l)),O=D.find(y.item)},reference:function(){f.debug("Dropdown behavior was called on select, replacing with closest dropdown"),S=S.parent(y.dropdown),N=S.data(T),H=S.get(0),f.refresh(),f.setup.returnedObject()},returnedObject:function(){var e=F.slice(0,i),t=F.slice(i+1);F=e.add(S).add(t)}},refresh:function(){f.refreshSelectors(),f.refreshData()},refreshItems:function(){O=D.find(y.item)},refreshSelectors:function(){f.verbose("Refreshing selector cache"),k=S.find(y.text),C=S.find(y.search),P=S.find(y.input),A=S.find(y.icon),E=0<S.prev().find(y.text).length?S.prev().find(y.text):S.prev(),D=S.children(y.menu),O=D.find(y.item)},refreshData:function(){f.verbose("Refreshing cached metadata"),O.removeData(b.text).removeData(b.value)},clearData:function(){f.verbose("Clearing metadata"),O.removeData(b.text).removeData(b.value),S.removeData(b.defaultText).removeData(b.defaultValue).removeData(b.placeholderText)},toggle:function(){f.verbose("Toggling menu visibility"),f.is.active()?f.hide():f.show()},show:function(e){if(e=Y.isFunction(e)?e:function(){},!f.can.show()&&f.is.remote()&&(f.debug("No API results retrieved, searching before show"),f.queryRemote(f.get.query(),f.show)),f.can.show()&&!f.is.active()){if(f.debug("Showing dropdown"),!f.has.message()||f.has.maxSelections()||f.has.allResultsFiltered()||f.remove.message(),f.is.allFiltered())return!0;!1!==m.onShow.call(H)&&f.animate.show(function(){f.can.click()&&f.bind.intent(),f.has.menuSearch()&&f.focusSearch(),f.set.visible(),e.call(H)})}},hide:function(e){e=Y.isFunction(e)?e:function(){},f.is.active()&&!f.is.animatingOutward()&&(f.debug("Hiding dropdown"),!1!==m.onHide.call(H)&&f.animate.hide(function(){f.remove.visible(),e.call(H)}))},hideOthers:function(){f.verbose("Finding other dropdowns to hide"),F.not(S).has(y.menu+"."+g.visible).dropdown("hide")},hideMenu:function(){f.verbose("Hiding menu  instantaneously"),f.remove.active(),f.remove.visible(),D.transition("hide")},hideSubMenus:function(){var e=D.children(y.item).find(y.menu);f.verbose("Hiding sub menus",e),e.transition("hide")},bind:{events:function(){z&&f.bind.touchEvents(),f.bind.keyboardEvents(),f.bind.inputEvents(),f.bind.mouseEvents()},touchEvents:function(){f.debug("Touch device detected binding additional touch events"),f.is.searchSelection()||f.is.single()&&S.on("touchstart"+x,f.event.test.toggle),D.on("touchstart"+x,y.item,f.event.item.mouseenter)},keyboardEvents:function(){f.verbose("Binding keyboard events"),S.on("keydown"+x,f.event.keydown),f.has.search()&&S.on(f.get.inputEvent()+x,y.search,f.event.input),f.is.multiple()&&_.on("keydown"+o,f.event.document.keydown)},inputEvents:function(){f.verbose("Binding input change events"),S.on("change"+x,y.input,f.event.change)},mouseEvents:function(){f.verbose("Binding mouse events"),f.is.multiple()&&S.on("click"+x,y.label,f.event.label.click).on("click"+x,y.remove,f.event.remove.click),f.is.searchSelection()?(S.on("mousedown"+x,f.event.mousedown).on("mouseup"+x,f.event.mouseup).on("mousedown"+x,y.menu,f.event.menu.mousedown).on("mouseup"+x,y.menu,f.event.menu.mouseup).on("click"+x,y.icon,f.event.icon.click).on("focus"+x,y.search,f.event.search.focus).on("click"+x,y.search,f.event.search.focus).on("blur"+x,y.search,f.event.search.blur).on("click"+x,y.text,f.event.text.focus),f.is.multiple()&&S.on("click"+x,f.event.click)):("click"==m.on?S.on("click"+x,f.event.test.toggle):"hover"==m.on?S.on("mouseenter"+x,f.delay.show).on("mouseleave"+x,f.delay.hide):S.on(m.on+x,f.toggle),S.on("click"+x,y.icon,f.event.icon.click).on("mousedown"+x,f.event.mousedown).on("mouseup"+x,f.event.mouseup).on("focus"+x,f.event.focus),f.has.menuSearch()?S.on("blur"+x,y.search,f.event.search.blur):S.on("blur"+x,f.event.blur)),D.on("mouseenter"+x,y.item,f.event.item.mouseenter).on("mouseleave"+x,y.item,f.event.item.mouseleave).on("click"+x,y.item,f.event.item.click)},intent:function(){f.verbose("Binding hide intent event to document"),z&&_.on("touchstart"+o,f.event.test.touch).on("touchmove"+o,f.event.test.touch),_.on("click"+o,f.event.test.hide)}},unbind:{intent:function(){f.verbose("Removing hide intent event from document"),z&&_.off("touchstart"+o).off("touchmove"+o),_.off("click"+o)}},filter:function(e){var t=e!==Z?e:f.get.query(),i=function(){f.is.multiple()&&f.filterActive(),(e||!e&&0==f.get.activeItem().length)&&f.select.firstUnfiltered(),f.has.allResultsFiltered()?m.onNoResults.call(H,t)?m.allowAdditions?m.hideAdditions&&(f.verbose("User addition with no menu, setting empty style"),f.set.empty(),f.hideMenu()):(f.verbose("All items filtered, showing message",t),f.add.message(c.noResults)):(f.verbose("All items filtered, hiding dropdown",t),f.hideMenu()):(f.remove.empty(),f.remove.message()),m.allowAdditions&&f.add.userSuggestion(e),f.is.searchSelection()&&f.can.show()&&f.is.focusedOnSearch()&&f.show()};m.useLabels&&f.has.maxSelections()||(m.apiSettings?f.can.useAPI()?f.queryRemote(t,function(){m.filterRemoteData&&f.filterItems(t),i()}):f.error(h.noAPI):(f.filterItems(t),i()))},queryRemote:function(e,i){var t={errorDuration:!1,cache:"local",throttle:m.throttle,urlData:{query:e},onError:function(){f.add.message(c.serverError),i()},onFailure:function(){f.add.message(c.serverError),i()},onSuccess:function(e){var t=e[l.remoteValues];Y.isArray(t)&&0<t.length?(f.remove.message(),f.setup.menu({values:e[l.remoteValues]})):f.add.message(c.noResults),i()}};S.api("get request")||f.setup.api(),t=Y.extend(!0,{},t,m.apiSettings),S.api("setting",t).api("query")},filterItems:function(e){var n=e!==Z?e:f.get.query(),o=null,t=f.escape.string(n),r=new RegExp("^"+t,"igm");f.has.query()&&(o=[],f.verbose("Searching for matching values",n),O.each(function(){var e,t,i=Y(this);
vendor: 4,365 bytes, line 1
1if("both"==m.match||"text"==m.match){if(-1!==(e=String(f.get.choiceText(i,!1))).search(r))return o.push(this),!0;if("exact"===m.fullTextSearch&&f.exactSearch(n,e))return o.push(this),!0;if(!0===m.fullTextSearch&&f.fuzzySearch(n,e))return o.push(this),!0}if("both"==m.match||"value"==m.match){if(-1!==(t=String(f.get.choiceValue(i,e))).search(r))return o.push(this),!0;if("exact"===m.fullTextSearch&&f.exactSearch(n,t))return o.push(this),!0;if(!0===m.fullTextSearch&&f.fuzzySearch(n,t))return o.push(this),!0}})),f.debug("Showing only matched items",n),f.remove.filteredItem(),o&&O.not(o).addClass(g.filtered)},fuzzySearch:function(e,t){var i=t.length,n=e.length;if(e=e.toLowerCase(),t=t.toLowerCase(),i<n)return!1;if(n===i)return e===t;e:for(var o=0,r=0;o<n;o++){for(var a=e.charCodeAt(o);r<i;)if(t.charCodeAt(r++)===a)continue e;return!1}return!0},exactSearch:function(e,t){return e=e.toLowerCase(),-1<(t=t.toLowerCase()).indexOf(e)},filterActive:function(){m.useLabels&&O.filter("."+g.active).addClass(g.filtered)},focusSearch:function(e){f.has.search()&&!f.is.focusedOnSearch()&&(e?(S.off("focus"+x,y.search),C.focus(),S.on("focus"+x,y.search,f.event.search.focus)):C.focus())},forceSelection:function(){var e=O.not(g.filtered).filter("."+g.selected).eq(0),t=O.not(g.filtered).filter("."+g.active).eq(0),i=0<e.length?e:t;if(0<i.length&&!f.is.multiple())return f.debug("Forcing partial selection to selected item",i),void f.event.item.click.call(i,{},!0);m.allowAdditions&&f.set.selected(f.get.query()),f.remove.searchTerm()},change:{values:function(e){m.allowAdditions||f.clear(),f.debug("Creating dropdown with specified values",e),f.setup.menu({values:e}),Y.each(e,function(e,t){if(1==t.selected)return f.debug("Setting initial selection to",t.value),f.set.selected(t.value),!0})}},event:{change:function(){R||(f.debug("Input changed, updating selection"),f.set.selected())},focus:function(){m.showOnFocus&&!L&&f.is.hidden()&&!t&&f.show()},blur:function(e){t=K.activeElement===this,L||t||(f.remove.activeLabel(),f.hide())},mousedown:function(){f.is.searchSelection()?n=!0:L=!0},mouseup:function(){f.is.searchSelection()?n=!1:L=!1},click:function(e){Y(e.target).is(S)&&(f.is.focusedOnSearch()?f.show():f.focusSearch())},search:{focus:function(){L=!0,f.is.multiple()&&f.remove.activeLabel(),m.showOnFocus&&f.search()},blur:function(e){t=K.activeElement===this,f.is.searchSelection()&&!n&&(I||t||(m.forceSelection&&f.forceSelection(),f.hide())),n=!1}},icon:{click:function(e){A.hasClass(g.clear)?f.clear():f.can.click()&&f.toggle()}},text:{focus:function(e){L=!0,f.focusSearch()}},input:function(e){(f.is.multiple()||f.is.searchSelection())&&f.set.filtered(),clearTimeout(f.timer),f.timer=setTimeout(f.search,m.delay.search)},label:{click:function(e){var t=Y(this),i=S.find(y.label),n=i.filter("."+g.active),o=t.nextAll("."+g.active),r=t.prevAll("."+g.active),a=0<o.length?t.nextUntil(o).add(n).add(t):t.prevUntil(r).add(n).add(t);e.shiftKey?(n.removeClass(g.active),a.addClass(g.active)):e.ctrlKey?t.toggleClass(g.active):(n.removeClass(g.active),t.addClass(g.active)),m.onLabelSelect.apply(this,i.filter("."+g.active))}},remove:{click:function(){var e=Y(this).parent();e.hasClass(g.active)?f.remove.activeLabels():f.remove.activeLabels(e)}},test:{toggle:function(e){var t=f.is.multiple()?f.show:f.toggle;f.is.bubbledLabelClick(e)||f.is.bubbledIconClick(e)||f.determine.eventOnElement(e,t)&&e.preventDefault()},touch:function(e){f.determine.eventOnElement(e,function(){"touchstart"==e.type?f.timer=setTimeout(function(){f.hide()},m.delay.touch):"touchmove"==e.type&&clearTimeout(f.timer)}),e.stopPropagation()},hide:function(e){f.determine.eventInModule(e,f.hide)}},select:{mutation:function(e){f.debug("<select> modified, recreating menu");var i=!1;Y.each(e,function(e,t){if(Y(t.target).is("select")||Y(t.addedNodes).is("select"))return i=!0}),i&&(f.disconnect.selectObserver(),f.refresh(),f.setup.select(),f.set.selected(),f.observe.select())}},menu:{mutation:function(e){var t=e[0],i=t.addedNodes?Y(t.addedNodes[0]):Y(!1),n=t.removedNodes?Y(t.removedNodes[0]):Y(!1),o=i.add(n),r=o.is(y.addition)||0<o.closest(y.addition).length,a=o.is(y.message)||0<o.closest(y.message).length;r||a?(f.debug("Updating item selector cache"),f.refreshItems()):(f.debug("Menu modified, updating selector cache"),f.refresh())},mousedown:function(){I=!0},mouseup:function(){I=!1}}
vendor: 17,458 bytes, line 1
1,item:{mouseenter:function(e){var t=Y(e.target),i=Y(this),n=i.children(y.menu),o=i.siblings(y.item).children(y.menu),r=0<n.length;!(0<n.find(t).length)&&r&&(clearTimeout(f.itemTimer),f.itemTimer=setTimeout(function(){f.verbose("Showing sub-menu",n),Y.each(o,function(){f.animate.hide(!1,Y(this))}),f.animate.show(!1,n)},m.delay.show),e.preventDefault())},mouseleave:function(e){var t=Y(this).children(y.menu);0<t.length&&(clearTimeout(f.itemTimer),f.itemTimer=setTimeout(function(){f.verbose("Hiding sub-menu",t),f.animate.hide(!1,t)},m.delay.hide))},click:function(e,t){var i=Y(this),n=Y(e?e.target:""),o=i.find(y.menu),r=f.get.choiceText(i),a=f.get.choiceValue(i,r),s=0<o.length,l=0<o.find(n).length;f.has.menuSearch()&&Y(K.activeElement).blur(),l||s&&!m.allowCategorySelection||(f.is.searchSelection()&&(m.allowAdditions&&f.remove.userAddition(),f.remove.searchTerm(),f.is.focusedOnSearch()||1==t||f.focusSearch(!0)),m.useLabels||(f.remove.filteredItem(),f.set.scrollPosition(i)),f.determine.selectAction.call(this,r,a))}},document:{keydown:function(e){var t=e.which;if(f.is.inObject(t,v)){var i=S.find(y.label),n=i.filter("."+g.active),o=(n.data(b.value),i.index(n)),r=i.length,a=0<n.length,s=1<n.length,l=0===o,c=o+1==r,u=f.is.searchSelection(),d=f.is.focusedOnSearch(),h=f.is.focused(),p=d&&0===f.get.caretPosition();if(u&&!a&&!d)return;t==v.leftArrow?!h&&!p||a?a&&(e.shiftKey?f.verbose("Adding previous label to selection"):(f.verbose("Selecting previous label"),i.removeClass(g.active)),l&&!s?n.addClass(g.active):n.prev(y.siblingLabel).addClass(g.active).end(),e.preventDefault()):(f.verbose("Selecting previous label"),i.last().addClass(g.active)):t==v.rightArrow?(h&&!a&&i.first().addClass(g.active),a&&(e.shiftKey?f.verbose("Adding next label to selection"):(f.verbose("Selecting next label"),i.removeClass(g.active)),c?u?d?i.removeClass(g.active):f.focusSearch():s?n.next(y.siblingLabel).addClass(g.active):n.addClass(g.active):n.next(y.siblingLabel).addClass(g.active),e.preventDefault())):t==v.deleteKey||t==v.backspace?a?(f.verbose("Removing active labels"),c&&u&&!d&&f.focusSearch(),n.last().next(y.siblingLabel).addClass(g.active),f.remove.activeLabels(n),e.preventDefault()):p&&!a&&t==v.backspace&&(f.verbose("Removing last label on input backspace"),n=i.last().addClass(g.active),f.remove.activeLabels(n)):n.removeClass(g.active)}}},keydown:function(e){var t=e.which;if(f.is.inObject(t,v)){var i,n=O.not(y.unselectable).filter("."+g.selected).eq(0),o=D.children("."+g.active).eq(0),r=0<n.length?n:o,a=0<r.length?r.siblings(":not(."+g.filtered+")").addBack():D.children(":not(."+g.filtered+")"),s=r.children(y.menu),l=r.closest(y.menu),c=l.hasClass(g.visible)||l.hasClass(g.animating)||0<l.parent(y.menu).length,u=0<s.length,d=0<r.length,h=0<r.not(y.unselectable).length,p=t==v.delimiter&&m.allowAdditions&&f.is.multiple();if(m.allowAdditions&&m.hideAdditions&&(t==v.enter||p)&&h&&(f.verbose("Selecting item from keyboard shortcut",r),f.event.item.click.call(r,e),f.is.searchSelection()&&f.remove.searchTerm()),f.is.visible()){if((t==v.enter||p)&&(t==v.enter&&d&&u&&!m.allowCategorySelection?(f.verbose("Pressed enter on unselectable category, opening sub menu"),t=v.rightArrow):h&&(f.verbose("Selecting item from keyboard shortcut",r),f.event.item.click.call(r,e),f.is.searchSelection()&&f.remove.searchTerm()),e.preventDefault()),d&&(t==v.leftArrow&&l[0]!==D[0]&&(f.verbose("Left key pressed, closing sub-menu"),f.animate.hide(!1,l),r.removeClass(g.selected),l.closest(y.item).addClass(g.selected),e.preventDefault()),t==v.rightArrow&&u&&(f.verbose("Right key pressed, opening sub-menu"),f.animate.show(!1,s),r.removeClass(g.selected),s.find(y.item).eq(0).addClass(g.selected),e.preventDefault())),t==v.upArrow){if(i=d&&c?r.prevAll(y.item+":not("+y.unselectable+")").eq(0):O.eq(0),a.index(i)<0)return f.verbose("Up key pressed but reached top of current menu"),void e.preventDefault();f.verbose("Up key pressed, changing active item"),r.removeClass(g.selected),i.addClass(g.selected),f.set.scrollPosition(i),m.selectOnKeydown&&f.is.single()&&f.set.selectedItem(i),e.preventDefault()}if(t==v.downArrow){if(0===(i=d&&c?i=r.nextAll(y.item+":not("+y.unselectable+")").eq(0):O.eq(0)).length)return f.verbose("Down key pressed but reached bottom of current menu"),void e.preventDefault();f.verbose("Down key pressed, changing active item"),O.removeClass(g.selected),i.addClass(g.selected),f.set.scrollPosition(i),m.selectOnKeydown&&f.is.single()&&f.set.selectedItem(i),e.preventDefault()}t==v.pageUp&&(f.scrollPage("up"),e.preventDefault()),t==v.pageDown&&(f.scrollPage("down"),e.preventDefault()),t==v.escape&&(f.verbose("Escape key pressed, closing dropdown"),f.hide())}else p&&e.preventDefault(),t!=v.downArrow||f.is.visible()||(f.verbose("Down key pressed, showing dropdown"),f.show(),e.preventDefault())}else f.has.search()||f.set.selectedLetter(String.fromCharCode(t))}},trigger:{change:function(){var e=K.createEvent("HTMLEvents"),t=P[0];t&&(f.verbose("Triggering native change event"),e.initEvent("change",!0,!1),t.dispatchEvent(e))}},determine:{selectAction:function(e,t){f.verbose("Determining action",m.action),Y.isFunction(f.action[m.action])?(f.verbose("Triggering preset action",m.action,e,t),f.action[m.action].call(H,e,t,this)):Y.isFunction(m.action)?(f.verbose("Triggering user action",m.action,e,t),m.action.call(H,e,t,this)):f.error(h.action,m.action)},eventInModule:function(e,t){var i=Y(e.target),n=0<i.closest(K.documentElement).length,o=0<i.closest(S).length;return t=Y.isFunction(t)?t:function(){},n&&!o?(f.verbose("Triggering event",t),t(),!0):(f.verbose("Event occurred in dropdown, canceling callback"),!1)},eventOnElement:function(e,t){var i=Y(e.target),n=i.closest(y.siblingLabel),o=K.body.contains(e.target),r=0===S.find(n).length,a=0===i.closest(D).length;return t=Y.isFunction(t)?t:function(){},o&&r&&a?(f.verbose("Triggering event",t),t(),!0):(f.verbose("Event occurred in dropdown menu, canceling callback"),!1)}},action:{nothing:function(){},activate:function(e,t,i){if(t=t!==Z?t:e,f.can.activate(Y(i))){if(f.set.selected(t,Y(i)),f.is.multiple()&&!f.is.allFiltered())return;f.hideAndClear()}},select:function(e,t,i){if(t=t!==Z?t:e,f.can.activate(Y(i))){if(f.set.value(t,e,Y(i)),f.is.multiple()&&!f.is.allFiltered())return;f.hideAndClear()}},combo:function(e,t,i){t=t!==Z?t:e,f.set.selected(t,Y(i)),f.hideAndClear()},hide:function(e,t,i){f.set.value(t,e,Y(i)),f.hideAndClear()}},get:{id:function(){return r},defaultText:function(){return S.data(b.defaultText)},defaultValue:function(){return S.data(b.defaultValue)},placeholderText:function(){return"auto"!=m.placeholder&&"string"==typeof m.placeholder?m.placeholder:S.data(b.placeholderText)||""},text:function(){return k.text()},query:function(){return Y.trim(C.val())},searchWidth:function(e){return e=e!==Z?e:C.val(),M.text(e),Math.ceil(M.width()+1)},selectionCount:function(){var e=f.get.values();return f.is.multiple()?Y.isArray(e)?e.length:0:""!==f.get.value()?1:0},transition:function(e){return"auto"==m.transition?f.is.upward(e)?"slide up":"slide down":m.transition},userValues:function(){var e=f.get.values();return!!e&&(e=Y.isArray(e)?e:[e],Y.grep(e,function(e){return!1===f.get.item(e)}))},uniqueArray:function(i){return Y.grep(i,function(e,t){return Y.inArray(e,i)===t})},caretPosition:function(){var e,t,i=C.get(0);return"selectionStart"in i?i.selectionStart:K.selection?(i.focus(),t=(e=K.selection.createRange()).text.length,e.moveStart("character",-i.value.length),e.text.length-t):void 0},value:function(){var e=0<P.length?P.val():S.data(b.value),t=Y.isArray(e)&&1===e.length&&""===e[0];return e===Z||t?"":e},values:function(){var e=f.get.value();return""===e?"":!f.has.selectInput()&&f.is.multiple()?"string"==typeof e?e.split(m.delimiter):"":e},remoteValues:function(){var e=f.get.values(),n=!1;return e&&("string"==typeof e&&(e=[e]),Y.each(e,function(e,t){var i=f.read.remoteData(t);f.verbose("Restoring value from session data",i,t),i&&(n||(n={}),n[t]=i)})),n},choiceText:function(e,t){if(t=t!==Z?t:m.preserveHTML,e)return 0<e.find(y.menu).length&&(f.verbose("Retrieving text of element with sub-menu"),(e=e.clone()).find(y.menu).remove(),e.find(y.menuIcon).remove()),e.data(b.text)!==Z?e.data(b.text):t?Y.trim(e.html()):Y.trim(e.text())},choiceValue:function(e,t){return t=t||f.get.choiceText(e),!!e&&(e.data(b.value)!==Z?String(e.data(b.value)):"string"==typeof t?Y.trim(t.toLowerCase()):String(t))},inputEvent:function(){var e=C[0];return!!e&&(e.oninput!==Z?"input":e.onpropertychange!==Z?"propertychange":"keyup")},selectValues:function(){var o={values:[]};return S.find("option").each(function(){var e=Y(this),t=e.html(),i=e.attr("disabled"),n=e.attr("value")!==Z?e.attr("value"):t;"auto"===m.placeholder&&""===n?o.placeholder=t:o.values.push({name:t,value:n,disabled:i})}),m.placeholder&&"auto"!==m.placeholder&&(f.debug("Setting placeholder value to",m.placeholder),o.placeholder=m.placeholder),m.sortSelect?(o.values.sort(function(e,t){return e.name>t.name?1:-1}),f.debug("Retrieved and sorted values from select",o)):f.debug("Retrieved values from select",o),o},activeItem:function(){return O.filter("."+g.active)},selectedItem:function(){var e=O.not(y.unselectable).filter("."+g.selected);return 0<e.length?e:O.eq(0)},itemWithAdditions:function(e){var t=f.get.item(e),i=f.create.userChoice(e);return i&&0<i.length&&(t=0<t.length?t.add(i):i),t},item:function(n,o){var e,r,a=!1;return n=n!==Z?n:f.get.values()!==Z?f.get.values():f.get.text(),e=r?0<n.length:n!==Z&&null!==n,r=f.is.multiple()&&Y.isArray(n),o=""===n||0===n||o||!1,e&&O.each(function(){var e=Y(this),t=f.get.choiceText(e),i=f.get.choiceValue(e,t);if(null!==i&&i!==Z)if(r)-1===Y.inArray(String(i),n)&&-1===Y.inArray(t,n)||(a=a?a.add(e):e);else if(o){if(f.verbose("Ambiguous dropdown value using strict type check",e,n),i===n||t===n)return a=e,!0}else if(String(i)==String(n)||t==n)return f.verbose("Found select item by value",i,n),a=e,!0}),a}},check:{maxSelections:function(e){return!m.maxSelections||((e=e!==Z?e:f.get.selectionCount())>=m.maxSelections?(f.debug("Maximum selection count reached"),m.useLabels&&(O.addClass(g.filtered),f.add.message(c.maxSelections)),!0):(f.verbose("No longer at maximum selection count"),f.remove.message(),f.remove.filteredItem(),f.is.searchSelection()&&f.filterItems(),!1))}},restore:{defaults:function(){f.clear(),f.restore.defaultText(),f.restore.defaultValue()},defaultText:function(){var e=f.get.defaultText();e===f.get.placeholderText?(f.debug("Restoring default placeholder text",e),f.set.placeholderText(e)):(f.debug("Restoring default text",e),f.set.text(e))},placeholderText:function(){f.set.placeholderText()},defaultValue:function(){var e=f.get.defaultValue();e!==Z&&(f.debug("Restoring default value",e),""!==e?(f.set.value(e),f.set.selected()):(f.remove.activeItem(),f.remove.selectedItem()))},labels:function(){m.allowAdditions&&(m.useLabels||(f.error(h.labels),m.useLabels=!0),f.debug("Restoring selected values"),f.create.userLabels()),f.check.maxSelections()},selected:function(){f.restore.values(),f.is.multiple()?(f.debug("Restoring previously selected values and labels"),f.restore.labels()):f.debug("Restoring previously selected values")},values:function(){f.set.initialLoad(),m.apiSettings&&m.saveRemoteData&&f.get.remoteValues()?f.restore.remoteValues():f.set.selected(),f.remove.initialLoad()},remoteValues:function(){var e=f.get.remoteValues();f.debug("Recreating selected from session data",e),e&&(f.is.single()?Y.each(e,function(e,t){f.set.text(t)}):Y.each(e,function(e,t){f.add.label(e,t)}))}},read:{remoteData:function(e){var t;if($.Storage!==Z)return(t=sessionStorage.getItem(e))!==Z&&t;f.error(h.noStorage)}},save:{defaults:function(){f.save.defaultText(),f.save.placeholderText(),f.save.defaultValue()},defaultValue:function(){var e=f.get.value();f.verbose("Saving default value as",e),S.data(b.defaultValue,e)},defaultText:function(){var e=f.get.text();f.verbose("Saving default text as",e),S.data(b.defaultText,e)},placeholderText:function(){var e;!1!==m.placeholder&&k.hasClass(g.placeholder)&&(e=f.get.text(),f.verbose("Saving placeholder text as",e),S.data(b.placeholderText,e))},remoteData:function(e,t){$.Storage!==Z?(f.verbose("Saving remote data to session storage",t,e),sessionStorage.setItem(t,e)):f.error(h.noStorage)}},clear:function(){f.is.multiple()&&m.useLabels?f.remove.labels():(f.remove.activeItem(),f.remove.selectedItem()),f.set.placeholderText(),f.clearValue()},clearValue:function(){f.set.value("")},scrollPage:function(e,t){var i,n,o=t||f.get.selectedItem(),r=o.closest(y.menu),a=r.outerHeight(),s=r.scrollTop(),l=O.eq(0).outerHeight(),c=Math.floor(a/l),u=(r.prop("scrollHeight"),"up"==e?s-l*c:s+l*c),d=O.not(y.unselectable);n="up"==e?d.index(o)-c:d.index(o)+c,0<(i=("up"==e?0<=n:n<d.length)?d.eq(n):"up"==e?d.first():d.last()).length&&(f.debug("Scrolling page",e,i),o.removeClass(g.selected),i.addClass(g.selected),m.selectOnKeydown&&f.is.single()&&f.set.selectedItem(i),r.scrollTop(u))},set:{filtered:function(){var e=f.is.multiple(),t=f.is.searchSelection(),i=e&&t,n=t?f.get.query():"",o="string"==typeof n&&0<n.length,r=f.get.searchWidth(),a=""!==n;e&&o&&(f.verbose("Adjusting input width",r,m.glyphWidth),C.css("width",r)),o||i&&a?(f.verbose("Hiding placeholder text"),k.addClass(g.filtered)):(!e||i&&!a)&&(f.verbose("Showing placeholder text"),k.removeClass(g.filtered))},empty:function(){S.addClass(g.empty)},loading:function(){S.addClass(g.loading)},placeholderText:function(e){e=e||f.get.placeholderText(),f.debug("Setting placeholder text",e),f.set.text(e),k.addClass(g.placeholder)},tabbable:function(){f.is.searchSelection()?(f.debug("Added tabindex to searchable dropdown"),C.val("").attr("tabindex",0),D.attr("tabindex",-1)):(f.debug("Added tabindex to dropdown"),S.attr("tabindex")===Z&&(S.attr("tabindex",0),D.attr("tabindex",-1)))},initialLoad:function(){f.verbose("Setting initial load"),e=!0},activeItem:function(e){m.allowAdditions&&0<e.filter(y.addition).length?e.addClass(g.filtered):e.addClass(g.active)},partialSearch:function(e){var t=f.get.query().length;C.val(e.substr(0,t))},scrollPosition:function(e,t){var i,n,o,r,a,s;i=(e=e||f.get.selectedItem()).closest(y.menu),n=e&&0<e.length,t=t!==Z&&t,e&&0<i.length&&n&&(e.position().top,i.addClass(g.loading),o=(r=i.scrollTop())-i.offset().top+e.offset().top,t||(s=r+i.height()<o+5,a=o-5<r),f.debug("Scrolling to active item",o),(t||a||s)&&i.scrollTop(o),i.removeClass(g.loading))},text:function(e){"select"!==m.action&&("combo"==m.action?(f.debug("Changing combo button text",e,E),m.preserveHTML?E.html(e):E.text(e)):(e!==f.get.placeholderText()&&k.removeClass(g.placeholder),f.debug("Changing text",e,k),k.removeClass(g.filtered),m.preserveHTML?k.html(e):k.text(e)))},selectedItem:function(e){var t=f.get.choiceValue(e),i=f.get.choiceText(e,!1),n=f.get.choiceText(e,!0);f.debug("Setting user selection to item",e),f.remove.activeItem(),f.set.partialSearch(i),f.set.activeItem(e),f.set.selected(t,e),f.set.text(n)},selectedLetter:function(e){var t,i=O.filter("."+g.selected),n=0<i.length&&f.has.firstLetter(i,e),o=!1;n&&(t=i.nextAll(O).eq(0),f.has.firstLetter(t,e)&&(o=t)),o||O.each(function(){if(f.has.firstLetter(Y(this),e))return o=Y(this),!1}),o&&(f.verbose("Scrolling to next value with letter",e),f.set.scrollPosition(o),i.removeClass(g.selected),o.addClass(g.selected),m.selectOnKeydown&&f.is.single()&&f.set.selectedItem(o))},direction:function(e){"auto"==m.direction?(f.remove.upward(),f.can.openDownward(e)?f.remove.upward(e):f.set.upward(e),f.is.leftward(e)||f.can.openRightward(e)||f.set.leftward(e)):"upward"==m.direction&&f.set.upward(e)},upward:function(e){(e||S).addClass(g.upward)},leftward:function(e){(e||D).addClass(g.leftward)},value:function(e,t,i){var n=f.escape.value(e),o=0<P.length,r=f.get.values(),a=e!==Z?String(e):e;if(o){if(!m.allowReselection&&a==r&&(f.verbose("Skipping value update already same value",e,r),!f.is.initialLoad()))return;f.is.single()&&f.has.selectInput()&&f.can.extendSelect()&&(f.debug("Adding user option",e),f.add.optionValue(e)),f.debug("Updating input value",n,r),R=!0,P.val(n),!1===m.fireOnInit&&f.is.initialLoad()?f.debug("Input native change event ignored on initial load"):f.trigger.change(),R=!1}else f.verbose("Storing value in metadata",n,P),n!==r&&S.data(b.value,a);f.is.single()&&m.clearable&&(n?f.set.clearable():f.remove.clearable()),!1===m.fireOnInit&&f.is.initialLoad()?f.verbose("No callback on initial load",m.onChange):m.onChange.call(H,e,t,i)},active:function(){S.addClass(g.active)},multiple:function(){S.addClass(g.multiple)},visible:function(){S.addClass(g.visible)},exactly:function(e,t){f.debug("Setting selected to exact values"),f.clear(),f.set.selected(e,t)},selected:function(e,s){var l=f.is.multiple();(s=m.allowAdditions?s||f.get.itemWithAdditions(e):s||f.get.item(e))&&(f.debug("Setting selected menu item to",s),f.is.multiple()&&f.remove.searchWidth(),f.is.single()?(f.remove.activeItem(),f.remove.selectedItem()):m.useLabels&&f.remove.selectedItem(),s.each(function(){var e=Y(this),t=f.get.choiceText(e),i=f.get.choiceValue(e,t),n=e.hasClass(g.filtered),o=e.hasClass(g.active),r=e.hasClass(g.addition),a=l&&1==s.length;l?!o||r?(m.apiSettings&&m.saveRemoteData&&f.save.remoteData(t,i),m.useLabels?(f.add.label(i,t,a),f.add.value(i,t,e),f.set.activeItem(e),f.filterActive(),f.select.nextAvailable(s)):(f.add.value(i,t,e),f.set.text(f.add.variables(c.count)),f.set.activeItem(e))):n||(f.debug("Selected active value, remov
1ing label"),f.remove.selected(i)):(m.apiSettings&&m.saveRemoteData&&f.save.remoteData(t,i),f.set.text(t),f.set.value(i,t,e),e.addClass(g.active).addClass(g.selected))}))},clearable:function(){A.addClass(g.clear)}},add:{label:function(e,t,i){var n,o=f.is.searchSelection()?C:k,r=f.escape.value(e);m.ignoreCase&&(r=r.toLowerCase()),n=Y("<a />").addClass(g.label).attr("data-"+b.value,r).html(p.label(r,t)),n=m.onLabelCreate.call(n,r,t),f.has.label(e)?f.debug("User selection already exists, skipping",r):(m.label.variation&&n.addClass(m.label.variation),!0===i?(f.debug("Animating in label",n),n.addClass(g.hidden).insertBefore(o).transition(m.label.transition,m.label.duration)):(f.debug("Adding selection label",n),n.insertBefore(o)))},message:function(e){var t=D.children(y.message),i=m.templates.message(f.add.variables(e));0<t.length?t.html(i):t=Y("<div/>").html(i).addClass(g.message).appendTo(D)},optionValue:function(e){var t=f.escape.value(e);0<P.find('option[value="'+f.escape.string(t)+'"]').length||(f.disconnect.selectObserver(),f.is.single()&&(f.verbose("Removing previous user addition"),P.find("option."+g.addition).remove()),Y("<option/>").prop("value",t).addClass(g.addition).html(e).appendTo(P),f.verbose("Adding user addition as an <option>",e),f.observe.select())},userSuggestion:function(e){var t,i=D.children(y.addition),n=f.get.item(e),o=n&&n.not(y.addition).length,r=0<i.length;m.useLabels&&f.has.maxSelections()||(""===e||o?i.remove():(r?(i.data(b.value,e).data(b.text,e).attr("data-"+b.value,e).attr("data-"+b.text,e).removeClass(g.filtered),m.hideAdditions||(t=m.templates.addition(f.add.variables(c.addResult,e)),i.html(t)),f.verbose("Replacing user suggestion with new value",i)):((i=f.create.userChoice(e)).prependTo(D),f.verbose("Adding item choice to menu corresponding with user choice addition",i)),m.hideAdditions&&!f.is.allFiltered()||i.addClass(g.selected).siblings().removeClass(g.selected),f.refreshItems()))},variables:function(e,t){var i,n,o=-1!==e.search("{count}"),r=-1!==e.search("{maxCount}"),a=-1!==e.search("{term}");return f.verbose("Adding templated variables to message",e),o&&(i=f.get.selectionCount(),e=e.replace("{count}",i)),r&&(i=f.get.selectionCount(),e=e.replace("{maxCount}",m.maxSelections)),a&&(n=t||f.get.query(),e=e.replace("{term}",n)),e},value:function(e,t,i){var n,o=f.get.values();f.has.value(e)?f.debug("Value already selected"):""!==e?(n=Y.isArray(o)?(n=o.concat([e]),f.get.uniqueArray(n)):[e],f.has.selectInput()?f.can.extendSelect()&&(f.debug("Adding value to select",e,n,P),f.add.optionValue(e)):(n=n.join(m.delimiter),f.debug("Setting hidden input to delimited value",n,P)),!1===m.fireOnInit&&f.is.initialLoad()?f.verbose("Skipping onadd callback on initial load",m.onAdd):m.onAdd.call(H,e,t,i),f.set.value(n,e,t,i),f.check.maxSelections()):f.debug("Cannot select blank values from multiselect")}},remove:{active:function(){S.removeClass(g.active)},activeLabel:function(){S.find(y.label).removeClass(g.active)},empty:function(){S.removeClass(g.empty)},loading:function(){S.removeClass(g.loading)},initialLoad:function(){e=!1},upward:function(e){(e||S).removeClass(g.upward)},leftward:function(e){(e||D).removeClass(g.leftward)},visible:function(){S.removeClass(g.visible)},activeItem:function(){O.removeClass(g.active)},filteredItem:function(){m.useLabels&&f.has.maxSelections()||(m.useLabels&&f.is.multiple()?O.not("."+g.active).removeClass(g.filtered):O.removeClass(g.filtered),f.remove.empty())},optionValue:function(e){var t=f.escape.value(e),i=P.find('option[value="'+f.escape.string(t)+'"]');0<i.length&&i.hasClass(g.addition)&&(a&&(a.disconnect(),f.verbose("Temporarily disconnecting mutation observer")),i.remove(),f.verbose("Removing user addition as an <option>",t),a&&a.observe(P[0],{childList:!0,subtree:!0}))},message:function(){D.children(y.message).remove()},searchWidth:function(){C.css("width","")},searchTerm:function(){f.verbose("Cleared search term"),C.val(""),f.set.filtered()},userAddition:function(){O.filter(y.addition).remove()},selected:function(e,t){if(!(t=m.allowAdditions?t||f.get.itemWithAdditions(e):t||f.get.item(e)))return!1;t.each(function(){var e=Y(this),t=f.get.choiceText(e),i=f.get.choiceValue(e,t);f.is.multiple()?m.useLabels?(f.remove.value(i,t,e),f.remove.label(i)):(f.remove.value(i,t,e),0===f.get.selectionCount()?f.set.placeholderText():f.set.text(f.add.variables(c.count))):f.remove.value(i,t,e),e.removeClass(g.filtered).removeClass(g.active),m.useLabels&&e.removeClass(g.selected)})},selectedItem:function(){O.removeClass(g.selected)},value:function(e,t,i){var n,o=f.get.values();f.has.selectInput()?(f.verbose("Input is <select> removing selected option",e),n=f.remove.arrayValue(e,o),f.remove.optionValue(e)):(f.verbose("Removing from delimited values",e),n=(n=f.remove.arrayValue(e,o)).join(m.delimiter)),!1===m.fireOnInit&&f.is.initialLoad()?f.verbose("No callback on initial load",m.onRemove):m.onRemove.call(H,e,t,i),f.set.value(n,t,i),f.check.maxSelections()},arrayValue:function(t,e){return Y.isArray(e)||(e=[e]),e=Y.grep(e,function(e){return t!=e}),f.verbose("Removed value from delimited string",t,e),e},label:function(e,t){var i=S.find(y.label).filter("[data-"+b.value+'="'+f.escape.string(e)+'"]');f.verbose("Removing label",i),i.remove()},activeLabels:function(e){e=e||S.find(y.label).filter("."+g.active),f.verbose("Removing active label selections",e),f.remove.labels(e)},labels:function(e){e=e||S.find(y.label),f.verbose("Removing labels",e),e.each(function(){var e=Y(this),t=e.data(b.value),i=t!==Z?String(t):t,n=f.is.userValue(i);!1!==m.onLabelRemove.call(e,t)?(f.remove.message(),n?(f.remove.value(i),f.remove.label(i)):f.remove.selected(i)):f.debug("Label remove callback cancelled removal")})},tabbable:function(){f.is.searchSelection()?(f.debug("Searchable dropdown initialized"),C.removeAttr("tabindex")):(f.debug("Simple selection dropdown initialized"),S.removeAttr("tabindex")),D.removeAttr("tabindex")},clearable:function(){A.removeClass(g.clear)}},has:{menuSearch:function(){return f.has.search()&&0<C.closest(D).length},search:function(){return 0<C.length},sizer:function(){return 0<M.length},selectInput:function(){return P.is("select")},minCharacters:function(e){return!m.minCharacters||(e=e!==Z?String(e):String(f.get.query())).length>=m.minCharacters},firstLetter:function(e,t){var i;return!(!e||0===e.length||"string"!=typeof t)&&(i=f.get.choiceText(e,!1),(t=t.toLowerCase())==String(i).charAt(0).toLowerCase())},input:function(){return 0<P.length},items:function(){return 0<O.length},menu:function(){return 0<D.length},message:function(){return 0!==D.children(y.message).length},label:function(e){var t=f.escape.value(e),i=S.find(y.label);return m.ignoreCase&&(t=t.toLowerCase()),0<i.filter("[data-"+b.value+'="'+f.escape.string(t)+'"]').length},maxSelections:function(){return m.maxSelections&&f.get.selectionCount()>=m.maxSelections},allResultsFiltered:function(){var e=O.not(y.addition);return e.filter(y.unselectable).length===e.length},userSuggestion:function(){return 0<D.children(y.addition).length},query:function(){return""!==f.get.query()},value:function(e){return m.ignoreCase?f.has.valueIgnoringCase(e):f.has.valueMatchingCase(e)},valueMatchingCase:function(e){var t=f.get.values();return!!(Y.isArray(t)?t&&-1!==Y.inArray(e,t):t==e)},valueIgnoringCase:function(i){var e=f.get.values(),n=!1;return Y.isArray(e)||(e=[e]),Y.each(e,function(e,t){if(String(i).toLowerCase()==String(t).toLowerCase())return!(n=!0)}),n}},is:{active:function(){return S.hasClass(g.active)},animatingInward:function(){return D.transition("is inward")},animatingOutward:function(){return D.transition("is outward")},bubbledLabelClick:function(e){return Y(e.target).is("select, input")&&0<S.closest("label").length}
vendor: 3,323 bytes, line 1
1,bubbledIconClick:function(e){return 0<Y(e.target).closest(A).length},alreadySetup:function(){return S.is("select")&&S.parent(y.dropdown).data(T)!==Z&&0===S.prev().length},animating:function(e){return e?e.transition&&e.transition("is animating"):D.transition&&D.transition("is animating")},leftward:function(e){return(e||D).hasClass(g.leftward)},disabled:function(){return S.hasClass(g.disabled)},focused:function(){return K.activeElement===S[0]},focusedOnSearch:function(){return K.activeElement===C[0]},allFiltered:function(){return(f.is.multiple()||f.has.search())&&!(0==m.hideAdditions&&f.has.userSuggestion())&&!f.has.message()&&f.has.allResultsFiltered()},hidden:function(e){return!f.is.visible(e)},initialLoad:function(){return e},inObject:function(i,e){var n=!1;return Y.each(e,function(e,t){if(t==i)return n=!0}),n},multiple:function(){return S.hasClass(g.multiple)},remote:function(){return m.apiSettings&&f.can.useAPI()},single:function(){return!f.is.multiple()},selectMutation:function(e){var i=!1;return Y.each(e,function(e,t){if(t.target&&Y(t.target).is("select"))return i=!0}),i},search:function(){return S.hasClass(g.search)},searchSelection:function(){return f.has.search()&&1===C.parent(y.dropdown).length},selection:function(){return S.hasClass(g.selection)},userValue:function(e){return-1!==Y.inArray(e,f.get.userValues())},upward:function(e){return(e||S).hasClass(g.upward)},visible:function(e){return e?e.hasClass(g.visible):D.hasClass(g.visible)},verticallyScrollableContext:function(){var e=w.get(0)!==$&&w.css("overflow-y");return"auto"==e||"scroll"==e},horizontallyScrollableContext:function(){var e=w.get(0)!==$&&w.css("overflow-X");return"auto"==e||"scroll"==e}},can:{activate:function(e){return!!m.useLabels||!f.has.maxSelections()||!(!f.has.maxSelections()||!e.hasClass(g.active))},openDownward:function(e){var t,i,n,o=e||D;return o.addClass(g.loading),i={context:{offset:w.get(0)===$?{top:0,left:0}:w.offset(),scrollTop:w.scrollTop(),height:w.outerHeight()},menu:{offset:o.offset(),height:o.outerHeight()}},f.is.verticallyScrollableContext()&&(i.menu.offset.top+=i.context.scrollTop),n=(t={above:i.context.scrollTop<=i.menu.offset.top-i.context.offset.top-i.menu.height,below:i.context.scrollTop+i.context.height>=i.menu.offset.top-i.context.offset.top+i.menu.height}).below?(f.verbose("Dropdown can fit in context downward",t),!0):t.below||t.above?(f.verbose("Dropdown cannot fit below, opening upward",t),!1):(f.verbose("Dropdown cannot fit in either direction, favoring downward",t),!0),o.removeClass(g.loading),n},openRightward:function(e){var t,i,n=e||D,o=!0;return n.addClass(g.loading),i={context:{offset:w.get(0)===$?{top:0,left:0}:w.offset(),scrollLeft:w.scrollLeft(),width:w.outerWidth()},menu:{offset:n.offset(),width:n.outerWidth()}},f.is.horizontallyScrollableContext()&&(i.menu.offset.left+=i.context.scrollLeft),(t=i.menu.offset.left-i.context.offset.left+i.menu.width>=i.context.scrollLeft+i.context.width)&&(f.verbose("Dropdown cannot fit in context rightward",t),o=!1),n.removeClass(g.loading),o},click:function(){return z||"click"==m.on},extendSelect:function(){return m.allowAdditions||m.apiSettings},show:function(){return!f.is.disabled()&&(f.has.items()||f.has.message())},useAPI:function(){return Y.fn.api!==Z}},animate:{show:function(e,t){var i,n=t||D,o=t?function(){}
vendor: 3,804 bytes, line 1
1:function(){f.hideSubMenus(),f.hideOthers(),f.set.active()};e=Y.isFunction(e)?e:function(){},f.verbose("Doing menu show animation",n),f.set.direction(t),i=f.get.transition(t),f.is.selection()&&f.set.scrollPosition(f.get.selectedItem(),!0),(f.is.hidden(n)||f.is.animating(n))&&("none"==i?(o(),n.transition("show"),e.call(H)):Y.fn.transition!==Z&&S.transition("is supported")?n.transition({animation:i+" in",debug:m.debug,verbose:m.verbose,duration:m.duration,queue:!0,onStart:o,onComplete:function(){e.call(H)}}):f.error(h.noTransition,i))},hide:function(e,t){var i=t||D,n=(m.duration,t?function(){}:function(){f.can.click()&&f.unbind.intent(),f.remove.active()}),o=f.get.transition(t);e=Y.isFunction(e)?e:function(){},(f.is.visible(i)||f.is.animating(i))&&(f.verbose("Doing menu hide animation",i),"none"==o?(n(),i.transition("hide"),e.call(H)):Y.fn.transition!==Z&&S.transition("is supported")?i.transition({animation:o+" out",duration:m.duration,debug:m.debug,verbose:m.verbose,queue:!1,onStart:n,onComplete:function(){e.call(H)}}):f.error(h.transition))}},hideAndClear:function(){f.remove.searchTerm(),f.has.maxSelections()||(f.has.search()?f.hide(function(){f.remove.filteredItem()}):f.hide())},delay:{show:function(){f.verbose("Delaying show event to ensure user intent"),clearTimeout(f.timer),f.timer=setTimeout(f.show,m.delay.show)},hide:function(){f.verbose("Delaying hide event to ensure user intent"),clearTimeout(f.timer),f.timer=setTimeout(f.hide,m.delay.hide)}},escape:{value:function(e){var t=Y.isArray(e),i="string"==typeof e,n=!i&&!t,o=i&&-1!==e.search(d.quote),r=[];return n||!o?e:(f.debug("Encoding quote values for use in select",e),t?(Y.each(e,function(e,t){r.push(t.replace(d.quote,"&quot;"))}),r):e.replace(d.quote,"&quot;"))},string:function(e){return(e=String(e)).replace(d.escape,"\\$&")}},setting:function(e,t){if(f.debug("Changing setting",e,t),Y.isPlainObject(e))Y.extend(!0,m,e);else{if(t===Z)return m[e];Y.isPlainObject(m[e])?Y.extend(!0,m[e],t):m[e]=t}},internal:function(e,t){if(Y.isPlainObject(e))Y.extend(!0,f,e);else{if(t===Z)return f[e];f[e]=t}},debug:function(){!m.silent&&m.debug&&(m.performance?f.performance.log(arguments):(f.debug=Function.prototype.bind.call(console.info,console,m.name+":"),f.debug.apply(console,arguments)))},verbose:function(){!m.silent&&m.verbose&&m.debug&&(m.performance?f.performance.log(arguments):(f.verbose=Function.prototype.bind.call(console.info,console,m.name+":"),f.verbose.apply(console,arguments)))},error:function(){m.silent||(f.error=Function.prototype.bind.call(console.error,console,m.name+":"),f.error.apply(console,arguments))},performance:{log:function(e){var t,i;m.performance&&(i=(t=(new Date).getTime())-(V||t),V=t,W.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:H,"Execution Time":i})),clearTimeout(f.performance.timer),f.performance.timer=setTimeout(f.performance.display,500)},display:function(){var e=m.name+":",i=0;V=!1,clearTimeout(f.performance.timer),Y.each(W,function(e,t){i+=t["Execution Time"]}),e+=" "+i+"ms",j&&(e+=" '"+j+"'"),(console.group!==Z||console.table!==Z)&&0<W.length&&(console.groupCollapsed(e),console.table?console.table(W):Y.each(W,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),W=[]}},invoke:function(n,e,t){var o,r,i,a=N;return e=e||U,t=H||t,"string"==typeof n&&a!==Z&&(n=n.split(/[\. ]/),o=n.length-1,Y.each(n,function(e,t){var i=e!=o?t+n[e+1].charAt(0).toUpperCase()+n[e+1].slice(1):n;if(Y.isPlainObject(a[i])&&e!=o)a=a[i];else{if(a[i]!==Z)return r=a[i],!1;if(!Y.isPlainObject(a[t])||e==o)return a[t]!==Z?r=a[t]:f.error(h.method,n),!1;a=a[t]}})),Y.isFunction(r)?i=r.apply(t,e):r!==Z&&(i=r),Y.isArray(G)?G.push(i):G!==Z?G=[G,i]:i!==Z&&(G=i),r}},q?(N===Z&&f.initialize(),f.invoke(X)):(N!==Z&&N.invoke("destroy"),f.initialize())}),G!==Z?G:F}
vendor: 4,168 bytes, line 1
1,Y.fn.dropdown.settings={silent:!1,debug:!1,verbose:!1,performance:!0,on:"click",action:"activate",values:!1,clearable:!1,apiSettings:!1,selectOnKeydown:!0,minCharacters:0,filterRemoteData:!1,saveRemoteData:!0,throttle:200,context:$,direction:"auto",keepOnScreen:!0,match:"both",fullTextSearch:!1,placeholder:"auto",preserveHTML:!0,sortSelect:!1,forceSelection:!0,allowAdditions:!1,ignoreCase:!1,hideAdditions:!0,maxSelections:!1,useLabels:!0,delimiter:",",showOnFocus:!0,allowReselection:!1,allowTab:!0,allowCategorySelection:!1,fireOnInit:!1,transition:"auto",duration:200,glyphWidth:1.037,label:{transition:"scale",duration:200,variation:!1},delay:{hide:300,show:200,search:20,touch:50},onChange:function(e,t,i){},onAdd:function(e,t,i){},onRemove:function(e,t,i){},onLabelSelect:function(e){},onLabelCreate:function(e,t){return Y(this)},onLabelRemove:function(e){return!0},onNoResults:function(e){return!0},onShow:function(){},onHide:function(){},name:"Dropdown",namespace:"dropdown",message:{addResult:"Add <b>{term}</b>",count:"{count} selected",maxSelections:"Max {maxCount} selections",noResults:"No results found.",serverError:"There was an error contacting the server"},error:{action:"You called a dropdown action that was not defined",alreadySetup:"Once a select has been initialized behaviors must be called on the created ui dropdown",labels:"Allowing user additions currently requires the use of labels.",missingMultiple:"<select> requires multiple property to be set to correctly preserve multiple values",method:"The method you called is not defined.",noAPI:"The API module is required to load resources remotely",noStorage:"Saving remote data requires session storage",noTransition:"This module requires ui transitions <https://github.com/Semantic-Org/UI-Transition>"},regExp:{escape:/[-[\]{}()*+?.,\\^$|#\s]/g,quote:/"/g},metadata:{defaultText:"defaultText",defaultValue:"defaultValue",placeholderText:"placeholder",text:"text",value:"value"},fields:{remoteValues:"results",values:"values",disabled:"disabled",name:"name",value:"value",text:"text"},keys:{backspace:8,delimiter:188,deleteKey:46,enter:13,escape:27,pageUp:33,pageDown:34,leftArrow:37,upArrow:38,rightArrow:39,downArrow:40},selector:{addition:".addition",dropdown:".ui.dropdown",hidden:".hidden",icon:"> .dropdown.icon",input:'> input[type="hidden"], > select',item:".item",label:"> .label",remove:"> .label > .delete.icon",siblingLabel:".label",menu:".menu",message:".message",menuIcon:".dropdown.icon",search:"input.search, .menu > .search > input, .menu input.search",sizer:"> input.sizer",text:"> .text:not(.icon)",unselectable:".disabled, .filtered"},className:{active:"active",addition:"addition",animating:"animating",clear:"clear",disabled:"disabled",empty:"empty",dropdown:"ui dropdown",filtered:"filtered",hidden:"hidden transition",item:"item",label:"ui label",loading:"loading",menu:"menu",message:"message",multiple:"multiple",placeholder:"default",sizer:"sizer",search:"search",selected:"selected",selection:"selection",upward:"upward",leftward:"left",visible:"visible"}},Y.fn.dropdown.settings.templates={dropdown:function(e){var t=e.placeholder||!1,i=(e.values,"");return i+='<i class="dropdown icon"></i>',e.placeholder?i+='<div class="default text">'+t+"</div>":i+='<div class="text"></div>',i+='<div class="menu">',Y.each(e.values,function(e,t){i+=t.disabled?'<div class="disabled item" data-value="'+t.value+'">'+t.name+"</div>":'<div class="item" data-value="'+t.value+'">'+t.name+"</div>"}),i+="</div>"},menu:function(e,o){var t=e[o.values]||{},r="";return Y.each(t,function(e,t){var i=t[o.text]?'data-text="'+t[o.text]+'"':"",n=t[o.disabled]?"disabled ":"";r+='<div class="'+n+'item" data-value="'+t[o.value]+'"'+i+">",r+=t[o.name],r+="</div>"}),r},label:function(e,t){return t+'<i class="delete icon"></i>'},message:function(e){return e},addition:function(e){return e}}}(jQuery,window,document),function(k,C,e,M){"use strict";C=void 0!==C&&C.Math==Math?C:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),k.fn.embed=function(m){var g,v=k(this),b=v.selector||"",y=(new Date).getTime(),x=[],T=m,S="string"==typeof T,w=[].slice.call(arguments,1
vendor: 4,351 bytes, line 1
1);return v.each(function(){var s,n=k.isPlainObject(m)?k.extend(!0,{},k.fn.embed.settings,m):k.extend({},k.fn.embed.settings),e=n.selector,t=n.className,o=n.sources,l=n.error,r=n.metadata,i=n.namespace,a=n.templates,c="."+i,u="module-"+i,d=(k(C),k(this)),h=(d.find(e.placeholder),d.find(e.icon),d.find(e.embed)),p=this,f=d.data(u);s={initialize:function(){s.debug("Initializing embed"),s.determine.autoplay(),s.create(),s.bind.events(),s.instantiate()},instantiate:function(){s.verbose("Storing instance of module",s),f=s,d.data(u,s)},destroy:function(){s.verbose("Destroying previous instance of embed"),s.reset(),d.removeData(u).off(c)},refresh:function(){s.verbose("Refreshing selector cache"),d.find(e.placeholder),d.find(e.icon),h=d.find(e.embed)},bind:{events:function(){s.has.placeholder()&&(s.debug("Adding placeholder events"),d.on("click"+c,e.placeholder,s.createAndShow).on("click"+c,e.icon,s.createAndShow))}},create:function(){s.get.placeholder()?s.createPlaceholder():s.createAndShow()},createPlaceholder:function(e){var t=s.get.icon(),i=s.get.url();s.generate.embed(i),e=e||s.get.placeholder(),d.html(a.placeholder(e,t)),s.debug("Creating placeholder for embed",e,t)},createEmbed:function(e){s.refresh(),e=e||s.get.url(),h=k("<div/>").addClass(t.embed).html(s.generate.embed(e)).appendTo(d),n.onCreate.call(p,e),s.debug("Creating embed object",h)},changeEmbed:function(e){h.html(s.generate.embed(e))},createAndShow:function(){s.createEmbed(),s.show()},change:function(e,t,i){s.debug("Changing video to ",e,t,i),d.data(r.source,e).data(r.id,t),i?d.data(r.url,i):d.removeData(r.url),s.has.embed()?s.changeEmbed():s.create()},reset:function(){s.debug("Clearing embed and showing placeholder"),s.remove.data(),s.remove.active(),s.remove.embed(),s.showPlaceholder(),n.onReset.call(p)},show:function(){s.debug("Showing embed"),s.set.active(),n.onDisplay.call(p)},hide:function(){s.debug("Hiding embed"),s.showPlaceholder()},showPlaceholder:function(){s.debug("Showing placeholder image"),s.remove.active(),n.onPlaceholderDisplay.call(p)},get:{id:function(){return n.id||d.data(r.id)},placeholder:function(){return n.placeholder||d.data(r.placeholder)},icon:function(){return n.icon?n.icon:d.data(r.icon)!==M?d.data(r.icon):s.determine.icon()},source:function(e){return n.source?n.source:d.data(r.source)!==M?d.data(r.source):s.determine.source()},type:function(){var e=s.get.source();return o[e]!==M&&o[e].type},url:function(){return n.url?n.url:d.data(r.url)!==M?d.data(r.url):s.determine.url()}},determine:{autoplay:function(){s.should.autoplay()&&(n.autoplay=!0)},source:function(i){var n=!1;return(i=i||s.get.url())&&k.each(o,function(e,t){if(-1!==i.search(t.domain))return n=e,!1}),n},icon:function(){var e=s.get.source();return o[e]!==M&&o[e].icon},url:function(){var e,t=n.id||d.data(r.id),i=n.source||d.data(r.source);return(e=o[i]!==M&&o[i].url.replace("{id}",t))&&d.data(r.url,e),e}},set:{active:function(){d.addClass(t.active)}},remove:{data:function(){d.removeData(r.id).removeData(r.icon).removeData(r.placeholder).removeData(r.source).removeData(r.url)},active:function(){d.removeClass(t.active)},embed:function(){h.empty()}},encode:{parameters:function(e){var t,i=[];for(t in e)i.push(encodeURIComponent(t)+"="+encodeURIComponent(e[t]));return i.join("&amp;")}},generate:{embed:function(e){s.debug("Generating embed html");var t,i,n=s.get.source();return(e=s.get.url(e))?(i=s.generate.parameters(n),t=a.iframe(e,i)):s.error(l.noURL,d),t},parameters:function(e,t){var i=o[e]&&o[e].parameters!==M?o[e].parameters(n):{};return(t=t||n.parameters)&&(i=k.extend({},i,t)),i=n.onEmbed(i),s.encode.parameters(i)}},has:{embed:function(){return 0<h.length},placeholder:function(){return n.placeholder||d.data(r.placeholder)}},should:{autoplay:function(){return"auto"===n.autoplay?n.placeholder||d.data(r.placeholder)!==M:n.autoplay}},is:{video:function(){return"video"==s.get.type()}},setting:function(e,t){if(s.debug("Changing setting",e,t),k.isPlainObject(e))k.extend(!0,n,e);else{if(t===M)return n[e];k.isPlainObject(n[e])?k.extend(!0,n[e],t):n[e]=t}},internal:function(e,t){if(k.isPlainObject(e))k.extend(!0,s,e);else{if(t===M)return s[e];s[e]=t}},debug:function(){!n.silent&&n.debug&&(n.performance?s.performance.log(arguments):(s.debug=Function.prototype.bind.call(console.info,console,n.name+":"),s.debug.apply(console,arguments)))}
vendor: 4,879 bytes, line 1
1,verbose:function(){!n.silent&&n.verbose&&n.debug&&(n.performance?s.performance.log(arguments):(s.verbose=Function.prototype.bind.call(console.info,console,n.name+":"),s.verbose.apply(console,arguments)))},error:function(){n.silent||(s.error=Function.prototype.bind.call(console.error,console,n.name+":"),s.error.apply(console,arguments))},performance:{log:function(e){var t,i;n.performance&&(i=(t=(new Date).getTime())-(y||t),y=t,x.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:p,"Execution Time":i})),clearTimeout(s.performance.timer),s.performance.timer=setTimeout(s.performance.display,500)},display:function(){var e=n.name+":",i=0;y=!1,clearTimeout(s.performance.timer),k.each(x,function(e,t){i+=t["Execution Time"]}),e+=" "+i+"ms",b&&(e+=" '"+b+"'"),1<v.length&&(e+=" ("+v.length+")"),(console.group!==M||console.table!==M)&&0<x.length&&(console.groupCollapsed(e),console.table?console.table(x):k.each(x,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),x=[]}},invoke:function(n,e,t){var o,r,i,a=f;return e=e||w,t=p||t,"string"==typeof n&&a!==M&&(n=n.split(/[\. ]/),o=n.length-1,k.each(n,function(e,t){var i=e!=o?t+n[e+1].charAt(0).toUpperCase()+n[e+1].slice(1):n;if(k.isPlainObject(a[i])&&e!=o)a=a[i];else{if(a[i]!==M)return r=a[i],!1;if(!k.isPlainObject(a[t])||e==o)return a[t]!==M?r=a[t]:s.error(l.method,n),!1;a=a[t]}})),k.isFunction(r)?i=r.apply(t,e):r!==M&&(i=r),k.isArray(g)?g.push(i):g!==M?g=[g,i]:i!==M&&(g=i),r}},S?(f===M&&s.initialize(),s.invoke(T)):(f!==M&&f.invoke("destroy"),s.initialize())}),g!==M?g:this},k.fn.embed.settings={name:"Embed",namespace:"embed",silent:!1,debug:!1,verbose:!1,performance:!0,icon:!1,source:!1,url:!1,id:!1,autoplay:"auto",color:"#444444",hd:!0,brandedUI:!1,parameters:!1,onDisplay:function(){},onPlaceholderDisplay:function(){},onReset:function(){},onCreate:function(e){},onEmbed:function(e){return e},metadata:{id:"id",icon:"icon",placeholder:"placeholder",source:"source",url:"url"},error:{noURL:"No URL specified",method:"The method you called is not defined"},className:{active:"active",embed:"embed"},selector:{embed:".embed",placeholder:".placeholder",icon:".icon"},sources:{youtube:{name:"youtube",type:"video",icon:"video play",domain:"youtube.com",url:"//www.youtube.com/embed/{id}",parameters:function(e){return{autohide:!e.brandedUI,autoplay:e.autoplay,color:e.color||M,hq:e.hd,jsapi:e.api,modestbranding:!e.brandedUI}}},vimeo:{name:"vimeo",type:"video",icon:"video play",domain:"vimeo.com",url:"//player.vimeo.com/video/{id}",parameters:function(e){return{api:e.api,autoplay:e.autoplay,byline:e.brandedUI,color:e.color||M,portrait:e.brandedUI,title:e.brandedUI}}}},templates:{iframe:function(e,t){var i=e;return t&&(i+="?"+t),'<iframe src="'+i+'" width="100%" height="100%" frameborder="0" scrolling="no" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>'},placeholder:function(e,t){var i="";return t&&(i+='<i class="'+t+' icon"></i>'),e&&(i+='<img class="placeholder" src="'+e+'">'),i}},api:!1,onPause:function(){},onPlay:function(){},onStop:function(){}}}(jQuery,window,document),function(R,H,N,B){"use strict";H=void 0!==H&&H.Math==Math?H:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),R.fn.modal=function(S){var w,e=R(this),k=R(H),C=R(N),M=R("body"),P=e.selector||"",A=(new Date).getTime(),E=[],D=S,O="string"==typeof D,L=[].slice.call(arguments,1),I=H.requestAnimationFrame||H.mozRequestAnimationFrame||H.webkitRequestAnimationFrame||H.msRequestAnimationFrame||function(e){setTimeout(e,0)};return e.each(function(){var i,n,e,o,r,t,a,s,l,c=R.isPlainObject(S)?R.extend(!0,{},R.fn.modal.settings,S):R.extend({},R.fn.modal.settings),u=c.selector,d=c.className,h=c.namespace,p=c.error,f="."+h,m="module-"+h,g=R(this),v=R(c.context),b=g.find(u.close),y=this,x=g.data(m),T=!1;l={initialize:function(){l.verbose("Initializing dimmer",v),l.create.id(),l.create.dimmer(),l.refreshModals(),l.bind.events(),c.observeChanges&&l.observeChanges(),l.instantiate()},instantiate:function(){l.verbose("Storing instance of modal"),x=l,g.data(m,x)},create:{dimmer:function(){var e={debug:c.debug,variation:!c.centered&&"top aligned",dimmerName:"modals"},t=R.extend(!0,e,c.dimmerSettings);R.fn.dimmer!==B?(l.debug("Creating dimmer"),o=v.dimmer(t),c.detachable?(l.verbose("Modal is detachable, moving content into dimmer"),o.dimmer("add content",g)):l.set.undetached(),r=o.dimmer("get dimmer")):l.error(p.dimmer)},id:function(){a=(Math.random().toString(16)+"000000000").substr(2,8),t="."+a,l.verbose("Creating unique id for element",a)}},destroy:function(){l.verbose("Destroying previous modal"),g.removeData(m).off(f),k.off(t),r.off(t),b.off(f),v.dimmer("destroy")},observeChanges:function(){"MutationObserver"in H&&((s=new MutationObserver(function(e){l.debug("DOM tree modified, refreshing"),l.refresh()})).observe(y,{childList:!0,subtree:!0}
vendor: 9,533 bytes, line 1
1),l.debug("Setting up mutation observer",s))},refresh:function(){l.remove.scrolling(),l.cacheSizes(),l.can.useFlex()||l.set.modalOffset(),l.set.screenHeight(),l.set.type()},refreshModals:function(){n=g.siblings(u.modal),i=n.add(g)},attachEvents:function(e,t){var i=R(e);t=R.isFunction(l[t])?l[t]:l.toggle,0<i.length?(l.debug("Attaching modal events to element",e,t),i.off(f).on("click"+f,t)):l.error(p.notFound,e)},bind:{events:function(){l.verbose("Attaching events"),g.on("click"+f,u.close,l.event.close).on("click"+f,u.approve,l.event.approve).on("click"+f,u.deny,l.event.deny),k.on("resize"+t,l.event.resize)},scrollLock:function(){o.get(0).addEventListener("touchmove",l.event.preventScroll,{passive:!1})}},unbind:{scrollLock:function(){o.get(0).removeEventListener("touchmove",l.event.preventScroll,{passive:!1})}},get:{id:function(){return(Math.random().toString(16)+"000000000").substr(2,8)}},event:{approve:function(){T||!1===c.onApprove.call(y,R(this))?l.verbose("Approve callback returned false cancelling hide"):(T=!0,l.hide(function(){T=!1}))},preventScroll:function(e){e.preventDefault()},deny:function(){T||!1===c.onDeny.call(y,R(this))?l.verbose("Deny callback returned false cancelling hide"):(T=!0,l.hide(function(){T=!1}))},close:function(){l.hide()},click:function(e){if(c.closable){var t=0<R(e.target).closest(u.modal).length,i=R.contains(N.documentElement,e.target);!t&&i&&l.is.active()&&(l.debug("Dimmer clicked, hiding all modals"),l.remove.clickaway(),c.allowMultiple?l.hide():l.hideAll())}else l.verbose("Dimmer clicked but closable setting is disabled")},debounce:function(e,t){clearTimeout(l.timer),l.timer=setTimeout(e,t)},keyboard:function(e){27==e.which&&(c.closable?(l.debug("Escape key pressed hiding modal"),l.hide()):l.debug("Escape key pressed, but closable is set to false"),e.preventDefault())},resize:function(){o.dimmer("is active")&&(l.is.animating()||l.is.active())&&I(l.refresh)}},toggle:function(){l.is.active()||l.is.animating()?l.hide():l.show()},show:function(e){e=R.isFunction(e)?e:function(){},l.refreshModals(),l.set.dimmerSettings(),l.set.dimmerStyles(),l.showModal(e)},hide:function(e){e=R.isFunction(e)?e:function(){},l.refreshModals(),l.hideModal(e)},showModal:function(e){e=R.isFunction(e)?e:function(){},l.is.animating()||!l.is.active()?(l.showDimmer(),l.cacheSizes(),l.can.useFlex()?l.remove.legacy():(l.set.legacy(),l.set.modalOffset(),l.debug("Using non-flex legacy modal positioning.")),l.set.screenHeight(),l.set.type(),l.set.clickaway(),!c.allowMultiple&&l.others.active()?l.hideOthers(l.showModal):(c.allowMultiple&&c.detachable&&g.detach().appendTo(r),c.onShow.call(y),c.transition&&R.fn.transition!==B&&g.transition("is supported")?(l.debug("Showing modal with css animations"),g.transition({debug:c.debug,animation:c.transition+" in",queue:c.queue,duration:c.duration,useFailSafe:!0,onComplete:function(){c.onVisible.apply(y),c.keyboardShortcuts&&l.add.keyboardShortcuts(),l.save.focus(),l.set.active(),c.autofocus&&l.set.autofocus(),e()}})):l.error(p.noTransition))):l.debug("Modal is already visible")},hideModal:function(e,t){e=R.isFunction(e)?e:function(){},l.debug("Hiding modal"),!1!==c.onHide.call(y,R(this))?(l.is.animating()||l.is.active())&&(c.transition&&R.fn.transition!==B&&g.transition("is supported")?(l.remove.active(),g.transition({debug:c.debug,animation:c.transition+" out",queue:c.queue,duration:c.duration,useFailSafe:!0,onStart:function(){l.others.active()||t||l.hideDimmer(),c.keyboardShortcuts&&l.remove.keyboardShortcuts()},onComplete:function(){c.onHidden.call(y),l.remove.dimmerStyles(),l.restore.focus(),e()}})):l.error(p.noTransition)):l.verbose("Hide callback returned false cancelling hide")},showDimmer:function(){o.dimmer("is animating")||!o.dimmer("is active")?(l.debug("Showing dimmer"),o.dimmer("show")):l.debug("Dimmer already visible")},hideDimmer:function(){o.dimmer("is animating")||o.dimmer("is active")?(l.unbind.scrollLock(),o.dimmer("hide",function(){l.remove.clickaway(),l.remove.screenHeight()})):l.debug("Dimmer is not visible cannot hide")},hideAll:function(e){var t=i.filter("."+d.active+", ."+d.animating);e=R.isFunction(e)?e:function(){},0<t.length&&(l.debug("Hiding all visible modals"),l.hideDimmer(),t.modal("hide modal",e))},hideOthers:function(e){var t=n.filter("."+d.active+", ."+d.animating);e=R.isFunction(e)?e:function(){},0<t.length&&(l.debug("Hiding other modals",n),t.modal("hide modal",e,!0))},others:{active:function(){return 0<n.filter("."+d.active).length},animating:function(){return 0<n.filter("."+d.animating).length}},add:{keyboardShortcuts:function(){l.verbose("Adding keyboard shortcuts"),C.on("keyup"+f,l.event.keyboard)}},save:{focus:function(){0<R(N.activeElement).closest(g).length||(e=R(N.activeElement).blur())}},restore:{focus:function(){e&&0<e.length&&e.focus()}},remove:{active:function(){g.removeClass(d.active)},legacy:function(){g.removeClass(d.legacy)},clickaway:function(){r.off("click"+t)},dimmerStyles:function(){r.removeClass(d.inverted),o.removeClass(d.blurring)},bodyStyle:function(){""===M.attr("style")&&(l.verbose("Removing style attribute"),M.removeAttr("style"))},screenHeight:function(){l.debug("Removing page height"),M.css("height","")},keyboardShortcuts:function(){l.verbose("Removing keyboard shortcuts"),C.off("keyup"+f)},scrolling:function(){o.removeClass(d.scrolling),g.removeClass(d.scrolling)}},cacheSizes:function(){g.addClass(d.loading);var e=g.prop("scrollHeight"),t=g.outerWidth(),i=g.outerHeight();l.cache!==B&&0===i||(l.cache={pageHeight:R(N).outerHeight(),width:t,height:i+c.offset,scrollHeight:e+c.offset,contextHeight:"body"==c.context?R(H).height():o.height()},l.cache.topOffset=-l.cache.height/2),g.removeClass(d.loading),l.debug("Caching modal and container sizes",l.cache)},can:{useFlex:function(){return"auto"==c.useFlex?c.detachable&&!l.is.ie():c.useFlex},fit:function(){var e=l.cache.contextHeight,t=l.cache.contextHeight/2,i=l.cache.topOffset,n=l.cache.scrollHeight,o=l.cache.height,r=c.padding;return o<n?t+i+n+r<e:o+2*r<e}},is:{active:function(){return g.hasClass(d.active)},ie:function(){return!H.ActiveXObject&&"ActiveXObject"in H||"ActiveXObject"in H},animating:function(){return g.transition("is supported")?g.transition("is animating"):g.is(":visible")},scrolling:function(){return o.hasClass(d.scrolling)},modernBrowser:function(){return!(H.ActiveXObject||"ActiveXObject"in H)}},set:{autofocus:function(){var e=g.find("[tabindex], :input").filter(":visible"),t=e.filter("[autofocus]"),i=0<t.length?t.first():e.first();0<i.length&&i.focus()},clickaway:function(){r.on("click"+t,l.event.click)},dimmerSettings:function(){if(R.fn.dimmer!==B){var e={debug:c.debug,dimmerName:"modals",closable:"auto",useFlex:l.can.useFlex(),variation:!c.centered&&"top aligned",duration:{show:c.duration,hide:c.duration}},t=R.extend(!0,e,c.dimmerSettings);c.inverted&&(t.variation=t.variation!==B?t.variation+" inverted":"inverted"),v.dimmer("setting",t)}else l.error(p.dimmer)},dimmerStyles:function(){c.inverted?r.addClass(d.inverted):r.removeClass(d.inverted),c.blurring?o.addClass(d.blurring):o.removeClass(d.blurring)},modalOffset:function(){var e=l.cache.width,t=l.cache.height;g.css({marginTop:c.centered&&l.can.fit()?-t/2:0,marginLeft:-e/2}),l.verbose("Setting modal offset for legacy mode")},screenHeight:function(){l.can.fit()?M.css("height",""):(l.debug("Modal is taller than page content, resizing page height"),M.css("height",l.cache.height+2*c.padding))},active:function(){g.addClass(d.active)},scrolling:function(){o.addClass(d.scrolling),g.addClass(d.scrolling),l.unbind.scrollLock()},legacy:function(){g.addClass(d.legacy)},type:function(){l.can.fit()?(l.verbose("Modal fits on screen"),l.others.active()||l.others.animating()||(l.remove.scrolling(),l.bind.scrollLock())):(l.verbose("Modal cannot fit on screen setting to scrolling"),l.set.scrolling())},undetached:function(){o.addClass(d.undetached)}},setting:function(e,t){if(l.debug("Changing setting",e,t),R.isPlainObject(e))R.extend(!0,c,e);else{if(t===B)return c[e];R.isPlainObject(c[e])?R.extend(!0,c[e],t):c[e]=t}},internal:function(e,t){if(R.isPlainObject(e))R.extend(!0,l,e);else{if(t===B)return l[e];l[e]=t}},debug:function(){!c.silent&&c.debug&&(c.performance?l.performance.log(arguments):(l.debug=Function.prototype.bind.call(console.info,console,c.name+":"),l.debug.apply(console,arguments)))},verbose:function(){!c.silent&&c.verbose&&c.debug&&(c.performance?l.performance.log(arguments):(l.verbose=Function.prototype.bind.call(console.info,console,c.name+":"),l.verbose.apply(console,arguments)))},error:function(){c.silent||(l.error=Function.prototype.bind.call(console.error,console,c.name+":"),l.error.apply(console,arguments))},performance:{log:function(e){var t,i;c.performance&&(i=(t=(new Date).getTime())-(A||t),A=t,E.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:y,"Execution Time":i})),clearTimeout(l.performance.timer),l.performance.timer=setTimeout(l.performance.display,500)},display:function(){var e=c.name+":",i=0;A=!1,clearTimeout(l.performance.timer),R.each(E,function(e,t){i+=t["Execution Time"]}),e+=" "+i+"ms",P&&(e+=" '"+P+"'"),(console.group!==B||console.table!==B)&&0<E.length&&(console.groupCollapsed(e),console.table?console.table(E):R.each(E,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),E=[]}},invoke:function(n,e,t){var o,r,i,a=x;return e=e||L,t=y||t,"string"==typeof n&&a!==B&&(n=n.split(/[\. ]/),o=n.length-1,R.each(n,function(e,t){var i=e!=o?t+n[e+1].charAt(0).toUpperCase()+n[e+1].slice(1):n;
vendor: 11,690 bytes, line 1
1if(R.isPlainObject(a[i])&&e!=o)a=a[i];else{if(a[i]!==B)return r=a[i],!1;if(!R.isPlainObject(a[t])||e==o)return a[t]!==B&&(r=a[t]),!1;a=a[t]}})),R.isFunction(r)?i=r.apply(t,e):r!==B&&(i=r),R.isArray(w)?w.push(i):w!==B?w=[w,i]:i!==B&&(w=i),r}},O?(x===B&&l.initialize(),l.invoke(D)):(x!==B&&x.invoke("destroy"),l.initialize())}),w!==B?w:this},R.fn.modal.settings={name:"Modal",namespace:"modal",useFlex:"auto",offset:0,silent:!1,debug:!1,verbose:!1,performance:!0,observeChanges:!1,allowMultiple:!1,detachable:!0,closable:!0,autofocus:!0,inverted:!1,blurring:!1,centered:!0,dimmerSettings:{closable:!1,useCSS:!0},keyboardShortcuts:!0,context:"body",queue:!1,duration:500,transition:"scale",padding:50,onShow:function(){},onVisible:function(){},onHide:function(){return!0},onHidden:function(){},onApprove:function(){return!0},onDeny:function(){return!0},selector:{close:"> .close",approve:".actions .positive, .actions .approve, .actions .ok",deny:".actions .negative, .actions .deny, .actions .cancel",modal:".ui.modal"},error:{dimmer:"UI Dimmer, a required component is not included in this page",method:"The method you called is not defined.",notFound:"The element you specified could not be found"},className:{active:"active",animating:"animating",blurring:"blurring",inverted:"inverted",legacy:"legacy",loading:"loading",scrolling:"scrolling",undetached:"undetached"}}}(jQuery,window,document),function(y,x,e,T){"use strict";x=void 0!==x&&x.Math==Math?x:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),y.fn.nag=function(d){var h,e=y(this),p=e.selector||"",f=(new Date).getTime(),m=[],g=d,v="string"==typeof g,b=[].slice.call(arguments,1);return e.each(function(){var s,n=y.isPlainObject(d)?y.extend(!0,{},y.fn.nag.settings,d):y.extend({},y.fn.nag.settings),e=(n.className,n.selector),l=n.error,t=n.namespace,i="."+t,o=t+"-module",r=y(this),a=(r.find(e.close),n.context?y(n.context):y("body")),c=this,u=r.data(o);x.requestAnimationFrame||x.mozRequestAnimationFrame||x.webkitRequestAnimationFrame||x.msRequestAnimationFrame,s={initialize:function(){s.verbose("Initializing element"),r.on("click"+i,e.close,s.dismiss).data(o,s),n.detachable&&r.parent()[0]!==a[0]&&r.detach().prependTo(a),0<n.displayTime&&setTimeout(s.hide,n.displayTime),s.show()},destroy:function(){s.verbose("Destroying instance"),r.removeData(o).off(i)},show:function(){s.should.show()&&!r.is(":visible")&&(s.debug("Showing nag",n.animation.show),"fade"==n.animation.show?r.fadeIn(n.duration,n.easing):r.slideDown(n.duration,n.easing))},hide:function(){s.debug("Showing nag",n.animation.hide),"fade"==n.animation.show?r.fadeIn(n.duration,n.easing):r.slideUp(n.duration,n.easing)},onHide:function(){s.debug("Removing nag",n.animation.hide),r.remove(),n.onHide&&n.onHide()},dismiss:function(e){n.storageMethod&&s.storage.set(n.key,n.value),s.hide(),e.stopImmediatePropagation(),e.preventDefault()},should:{show:function(){return n.persist?(s.debug("Persistent nag is set, can show nag"),!0):s.storage.get(n.key)!=n.value.toString()?(s.debug("Stored value is not set, can show nag",s.storage.get(n.key)),!0):(s.debug("Stored value is set, cannot show nag",s.storage.get(n.key)),!1)}},get:{storageOptions:function(){var e={};return n.expires&&(e.expires=n.expires),n.domain&&(e.domain=n.domain),n.path&&(e.path=n.path),e}},clear:function(){s.storage.remove(n.key)},storage:{set:function(e,t){var i=s.get.storageOptions();if("localstorage"==n.storageMethod&&x.localStorage!==T)x.localStorage.setItem(e,t),s.debug("Value stored using local storage",e,t);else if("sessionstorage"==n.storageMethod&&x.sessionStorage!==T)x.sessionStorage.setItem(e,t),s.debug("Value stored using session storage",e,t);else{if(y.cookie===T)return void s.error(l.noCookieStorage);y.cookie(e,t,i),s.debug("Value stored using cookie",e,t,i)}},get:function(e,t){var i;return"localstorage"==n.storageMethod&&x.localStorage!==T?i=x.localStorage.getItem(e):"sessionstorage"==n.storageMethod&&x.sessionStorage!==T?i=x.sessionStorage.getItem(e):y.cookie!==T?i=y.cookie(e):s.error(l.noCookieStorage),"undefined"!=i&&"null"!=i&&i!==T&&null!==i||(i=T),i},remove:function(e){var t=s.get.storageOptions();"localstorage"==n.storageMethod&&x.localStorage!==T?x.localStorage.removeItem(e):"sessionstorage"==n.storageMethod&&x.sessionStorage!==T?x.sessionStorage.removeItem(e):y.cookie!==T?y.removeCookie(e,t):s.error(l.noStorage)}},setting:function(e,t){if(s.debug("Changing setting",e,t),y.isPlainObject(e))y.extend(!0,n,e);else{if(t===T)return n[e];y.isPlainObject(n[e])?y.extend(!0,n[e],t):n[e]=t}},internal:function(e,t){if(y.isPlainObject(e))y.extend(!0,s,e);else{if(t===T)return s[e];s[e]=t}},debug:function(){!n.silent&&n.debug&&(n.performance?s.performance.log(arguments):(s.debug=Function.prototype.bind.call(console.info,console,n.name+":"),s.debug.apply(console,arguments)))},verbose:function(){!n.silent&&n.verbose&&n.debug&&(n.performance?s.performance.log(arguments):(s.verbose=Function.prototype.bind.call(console.info,console,n.name+":"),s.verbose.apply(console,arguments)))},error:function(){n.silent||(s.error=Function.prototype.bind.call(console.error,console,n.name+":"),s.error.apply(console,arguments))},performance:{log:function(e){var t,i;n.performance&&(i=(t=(new Date).getTime())-(f||t),f=t,m.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:c,"Execution Time":i})),clearTimeout(s.performance.timer),s.performance.timer=setTimeout(s.performance.display,500)},display:function(){var e=n.name+":",i=0;f=!1,clearTimeout(s.performance.timer),y.each(m,function(e,t){i+=t["Execution Time"]}),e+=" "+i+"ms",p&&(e+=" '"+p+"'"),(console.group!==T||console.table!==T)&&0<m.length&&(console.groupCollapsed(e),console.table?console.table(m):y.each(m,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),m=[]}},invoke:function(n,e,t){var o,r,i,a=u;return e=e||b,t=c||t,"string"==typeof n&&a!==T&&(n=n.split(/[\. ]/),o=n.length-1,y.each(n,function(e,t){var i=e!=o?t+n[e+1].charAt(0).toUpperCase()+n[e+1].slice(1):n;if(y.isPlainObject(a[i])&&e!=o)a=a[i];else{if(a[i]!==T)return r=a[i],!1;if(!y.isPlainObject(a[t])||e==o)return a[t]!==T?r=a[t]:s.error(l.method,n),!1;a=a[t]}})),y.isFunction(r)?i=r.apply(t,e):r!==T&&(i=r),y.isArray(h)?h.push(i):h!==T?h=[h,i]:i!==T&&(h=i),r}},v?(u===T&&s.initialize(),s.invoke(g)):(u!==T&&u.invoke("destroy"),s.initialize())}),h!==T?h:this},y.fn.nag.settings={name:"Nag",silent:!1,debug:!1,verbose:!1,performance:!0,namespace:"Nag",persist:!1,displayTime:0,animation:{show:"slide",hide:"slide"},context:!1,detachable:!1,expires:30,domain:!1,path:"/",storageMethod:"cookie",key:"nag",value:"dismiss",error:{noCookieStorage:"$.cookie is not included. A storage solution is required.",noStorage:"Neither $.cookie or store is defined. A storage solution is required for storing state",method:"The method you called is not defined."},className:{bottom:"bottom",fixed:"fixed"},selector:{close:".close.icon"},speed:500,easing:"easeOutQuad",onHide:function(){}},y.extend(y.easing,{easeOutQuad:function(e,t,i,n,o){return-n*(t/=o)*(t-2)+i}})}(jQuery,window,document),function(H,N,B,G){"use strict";N=void 0!==N&&N.Math==Math?N:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),H.fn.popup=function(k){var C,e=H(this),M=H(B),P=H(N),A=H("body"),E=e.selector||"",D=(new Date).getTime(),O=[],L=k,I="string"==typeof L,R=[].slice.call(arguments,1);return e.each(function(){var u,c,e,t,i,d,h=H.isPlainObject(k)?H.extend(!0,{},H.fn.popup.settings,k):H.extend({},H.fn.popup.settings),o=h.selector,p=h.className,f=h.error,m=h.metadata,n=h.namespace,r="."+h.namespace,a="module-"+n,g=H(this),s=H(h.context),l=H(h.scrollContext),v=H(h.boundary),b=h.target?H(h.target):g,y=0,x=!1,T=!1,S=this,w=g.data(a);d={initialize:function(){d.debug("Initializing",g),d.createID(),d.bind.events(),!d.exists()&&h.preserve&&d.create(),h.observeChanges&&d.observeChanges(),d.instantiate()},instantiate:function(){d.verbose("Storing instance",d),w=d,g.data(a,w)},observeChanges:function(){"MutationObserver"in N&&((e=new MutationObserver(d.event.documentChanged)).observe(B,{childList:!0,subtree:!0}),d.debug("Setting up mutation observer",e))},refresh:function(){h.popup?u=H(h.popup).eq(0):h.inline&&(u=b.nextAll(o.popup).eq(0),h.popup=u),h.popup?(u.addClass(p.loading),c=d.get.offsetParent(),u.removeClass(p.loading),h.movePopup&&d.has.popup()&&d.get.offsetParent(u)[0]!==c[0]&&(d.debug("Moving popup to the same offset parent as target"),u.detach().appendTo(c))):c=h.inline?d.get.offsetParent(b):d.has.popup()?d.get.offsetParent(u):A,c.is("html")&&c[0]!==A[0]&&(d.debug("Setting page as offset parent"),c=A),d.get.variation()&&d.set.variation()},reposition:function(){d.refresh(),d.set.position()},destroy:function(){d.debug("Destroying previous module"),e&&e.disconnect(),u&&!h.preserve&&d.removePopup(),clearTimeout(d.hideTimer),clearTimeout(d.showTimer),d.unbind.close(),d.unbind.events(),g.removeData(a)},event:{start:function(e){var t=H.isPlainObject(h.delay)?h.delay.show:h.delay;clearTimeout(d.hideTimer),T||(d.showTimer=setTimeout(d.show,t))},end:function(){var e=H.isPlainObject(h.delay)?h.delay.hide:h.delay;clearTimeout(d.showTimer),d.hideTimer=setTimeout(d.hide,e)},touchstart:function(e){T=!0,d.show()},resize:function(){d.is.visible()&&d.set.position()},documentChanged:function(e){[].forEach.call(e,function(e){e.removedNodes&&[].forEach.call(e.removedNodes,function(e){(e==S||0<H(e).find(S).length)&&(d.debug("Element removed from DOM, tearing down events"),d.destroy())})})},hideGracefully:function(e){var t=H(e.target),i=H.contains(B.documentElement,e.target),n=0<t.closest(o.popup).length;e&&!n&&i?(d.debug("Click occurred outside popup hiding popup"),d.hide()):d.debug("Click was inside popup, keeping popup open")}},create:function(){var e=d.get.html(),t=d.get.title(),i=d.get.content();e||i||t?(d.debug("Creating pop-up html"),e||(e=h.templates.popup({title:t,content:i})),u=H("<div/>").addClass(p.popup).data(m.activator,g).html(e),h.inline?(d.verbose("Inserting popup element inline",u),u.insertAfter(g)):(d.verbose("Appending popup element to body",u),u.appendTo(s)),d.refresh(),d.set.variation(),h.hoverable&&d.bind.popup(),h.onCreate.call(u,S)):0!==b.next(o.popup).length?(d.verbose("Pre-existing popup found"),h.inline=!0,h.popup=b.next(o.popup).data(m.activator,g),d.refresh(),h.hoverable&&d.bind.popup()):h.popup?(H(h.popup).data(m.activator,g),d.verbose("Used popup specified in settings"),d.refresh(),h.hoverable&&d.bind.popup()):d.debug("No content specified skipping display",S)},createID:function(){i=(Math.random().toString(16)+"000000000").substr(2,8),t="."+i,d.verbose("Creating unique id for element",i)},toggle:function(){d.debug("Toggling pop-up"),d.is.hidden()?(d.debug("Popup is hidden, showing pop-up"),d.unbind.close(),d.show()):(d.debug("Popup is visible, hiding pop-up"),d.hide())},show:function(e){if(e=e||function(){},d.debug("Showing pop-up",h.transition),d.is.hidden()&&(!d.is.active()||!d.is.dropdown())){if(d.exists()||d.create(),!1===h.onShow.call(u,S))return void d.debug("onShow callback returned false, cancelling popup animation");h.preserve||h.popup||d.refresh(),u&&d.set.position()&&(d.save.conditions(),h.exclusive&&d.hideAll(),d.animate.show(e))}},hide:function(e){if(e=e||function(){},d.is.visible()||d.is.animating()){if(!1===h.onHide.call(u,S))return void d.debug("onHide callback returned false, cancelling popup animation");d.remove.visible(),d.unbind.close(),d.restore.conditions(),d.animate.hide(e)}},hideAll:function(){H(o.popup).filter("."+p.popupVisible).each(function(){H(this).data(m.activator).popup("hide")})},exists:function(){return!!u&&(h.inline||h.popup?d.has.popup():1<=u.closest(s).length)}
vendor: 3,805 bytes, line 1
1,removePopup:function(){d.has.popup()&&!h.popup&&(d.debug("Removing popup",u),u.remove(),u=G,h.onRemove.call(u,S))},save:{conditions:function(){d.cache={title:g.attr("title")},d.cache.title&&g.removeAttr("title"),d.verbose("Saving original attributes",d.cache.title)}},restore:{conditions:function(){return d.cache&&d.cache.title&&(g.attr("title",d.cache.title),d.verbose("Restoring original attributes",d.cache.title)),!0}},supports:{svg:function(){return"undefined"==typeof SVGGraphicsElement}},animate:{show:function(e){e=H.isFunction(e)?e:function(){},h.transition&&H.fn.transition!==G&&g.transition("is supported")?(d.set.visible(),u.transition({animation:h.transition+" in",queue:!1,debug:h.debug,verbose:h.verbose,duration:h.duration,onComplete:function(){d.bind.close(),e.call(u,S),h.onVisible.call(u,S)}})):d.error(f.noTransition)},hide:function(e){e=H.isFunction(e)?e:function(){},d.debug("Hiding pop-up"),!1!==h.onHide.call(u,S)?h.transition&&H.fn.transition!==G&&g.transition("is supported")?u.transition({animation:h.transition+" out",queue:!1,duration:h.duration,debug:h.debug,verbose:h.verbose,onComplete:function(){d.reset(),e.call(u,S),h.onHidden.call(u,S)}}):d.error(f.noTransition):d.debug("onHide callback returned false, cancelling popup animation")}},change:{content:function(e){u.html(e)}},get:{html:function(){return g.removeData(m.html),g.data(m.html)||h.html},title:function(){return g.removeData(m.title),g.data(m.title)||h.title},content:function(){return g.removeData(m.content),g.data(m.content)||h.content||g.attr("title")},variation:function(){return g.removeData(m.variation),g.data(m.variation)||h.variation},popup:function(){return u},popupOffset:function(){return u.offset()},calculations:function(){var e,t=d.get.offsetParent(u),i=b[0],n=v[0]==N,o=h.inline||h.popup&&h.movePopup?b.position():b.offset(),r=n?{top:0,left:0}:v.offset(),a={},s=n?{top:P.scrollTop(),left:P.scrollLeft()}:{top:0,left:0};if(a={target:{element:b[0],width:b.outerWidth(),height:b.outerHeight(),top:o.top,left:o.left,margin:{}},popup:{width:u.outerWidth(),height:u.outerHeight()},parent:{width:c.outerWidth(),height:c.outerHeight()},screen:{top:r.top,left:r.left,scroll:{top:s.top,left:s.left},width:v.width(),height:v.height()}},t.get(0)!==c.get(0)){var l=t.offset();a.target.top-=l.top,a.target.left-=l.left,a.parent.width=t.outerWidth(),a.parent.height=t.outerHeight()}return h.setFluidWidth&&d.is.fluid()&&(a.container={width:u.parent().outerWidth()},a.popup.width=a.container.width),a.target.margin.top=h.inline?parseInt(N.getComputedStyle(i).getPropertyValue("margin-top"),10):0,a.target.margin.left=h.inline?d.is.rtl()?parseInt(N.getComputedStyle(i).getPropertyValue("margin-right"),10):parseInt(N.getComputedStyle(i).getPropertyValue("margin-left"),10):0,e=a.screen,a.boundary={top:e.top+e.scroll.top,bottom:e.top+e.scroll.top+e.height,left:e.left+e.scroll.left,right:e.left+e.scroll.left+e.width},a},id:function(){return i},startEvent:function(){return"hover"==h.on?"mouseenter":"focus"==h.on&&"focus"},scrollEvent:function(){return"scroll"},endEvent:function(){return"hover"==h.on?"mouseleave":"focus"==h.on&&"blur"},distanceFromBoundary:function(e,t){var i,n,o={};return i=(t=t||d.get.calculations()).popup,n=t.boundary,e&&(o={top:e.top-n.top,left:e.left-n.left,right:n.right-(e.left+i.width),bottom:n.bottom-(e.top+i.height)},d.verbose("Distance from boundaries determined",e,o)),o},offsetParent:function(e){var t=(e!==G?e[0]:b[0]).parentNode,i=H(t);if(t)for(var n="none"===i.css("transform"),o="static"===i.css("position"),r=i.is("body");t&&!r&&o&&n;)t=t.parentNode,n="none"===(i=H(t)).css("transform"),o="static"===i.css("position"),r=i.is("body");return i&&0<i.length?i:H()},positions:function(){return{"top left":!1,"top center":!1,"top right":!1,"bottom left":!1,"bottom center"
vendor: 6,761 bytes, line 1
1:!1,"bottom right":!1,"left center":!1,"right center":!1}},nextPosition:function(e){var t=e.split(" "),i=t[0],n=t[1],o="top"==i||"bottom"==i,r=!1,a=!1,s=!1;return x||(d.verbose("All available positions available"),x=d.get.positions()),d.debug("Recording last position tried",e),x[e]=!0,"opposite"===h.prefer&&(s=(s=[{top:"bottom",bottom:"top",left:"right",right:"left"}[i],n]).join(" "),r=!0===x[s],d.debug("Trying opposite strategy",s)),"adjacent"===h.prefer&&o&&(s=(s=[i,{left:"center",center:"right",right:"left"}[n]]).join(" "),a=!0===x[s],d.debug("Trying adjacent strategy",s)),(a||r)&&(d.debug("Using backup position",s),s={"top left":"top center","top center":"top right","top right":"right center","right center":"bottom right","bottom right":"bottom center","bottom center":"bottom left","bottom left":"left center","left center":"top left"}[e]),s}},set:{position:function(e,t){if(0!==b.length&&0!==u.length){var i,n,o,r,a,s,l,c;if(t=t||d.get.calculations(),e=e||g.data(m.position)||h.position,i=g.data(m.offset)||h.offset,n=h.distanceAway,o=t.target,r=t.popup,a=t.parent,d.should.centerArrow(t)&&(d.verbose("Adjusting offset to center arrow on small target element"),"top left"!=e&&"bottom left"!=e||(i+=o.width/2,i-=h.arrowPixelsFromEdge),"top right"!=e&&"bottom right"!=e||(i-=o.width/2,i+=h.arrowPixelsFromEdge)),0===o.width&&0===o.height&&!d.is.svg(o.element))return d.debug("Popup target is hidden, no action taken"),!1;switch(h.inline&&(d.debug("Adding margin to calculation",o.margin),"left center"==e||"right center"==e?(i+=o.margin.top,n+=-o.margin.left):"top left"==e||"top center"==e||"top right"==e?(i+=o.margin.left,n-=o.margin.top):(i+=o.margin.left,n+=o.margin.top)),d.debug("Determining popup position from calculations",e,t),d.is.rtl()&&(e=e.replace(/left|right/g,function(e){return"left"==e?"right":"left"}),d.debug("RTL: Popup position updated",e)),y==h.maxSearchDepth&&"string"==typeof h.lastResort&&(e=h.lastResort),e){case"top left":s={top:"auto",bottom:a.height-o.top+n,left:o.left+i,right:"auto"};break;case"top center":s={bottom:a.height-o.top+n,left:o.left+o.width/2-r.width/2+i,top:"auto",right:"auto"};break;case"top right":s={bottom:a.height-o.top+n,right:a.width-o.left-o.width-i,top:"auto",left:"auto"};break;case"left center":s={top:o.top+o.height/2-r.height/2+i,right:a.width-o.left+n,left:"auto",bottom:"auto"};break;case"right center":s={top:o.top+o.height/2-r.height/2+i,left:o.left+o.width+n,bottom:"auto",right:"auto"};break;case"bottom left":s={top:o.top+o.height+n,left:o.left+i,bottom:"auto",right:"auto"};break;case"bottom center":s={top:o.top+o.height+n,left:o.left+o.width/2-r.width/2+i,bottom:"auto",right:"auto"};break;case"bottom right":s={top:o.top+o.height+n,right:a.width-o.left-o.width-i,left:"auto",bottom:"auto"}}if(s===G&&d.error(f.invalidPosition,e),d.debug("Calculated popup positioning values",s),u.css(s).removeClass(p.position).addClass(e).addClass(p.loading),l=d.get.popupOffset(),c=d.get.distanceFromBoundary(l,t),d.is.offstage(c,e)){if(d.debug("Position is outside viewport",e),y<h.maxSearchDepth)return y++,e=d.get.nextPosition(e),d.debug("Trying new position",e),!!u&&d.set.position(e,t);if(!h.lastResort)return d.debug("Popup could not find a position to display",u),d.error(f.cannotPlace,S),d.remove.attempts(),d.remove.loading(),d.reset(),h.onUnplaceable.call(u,S),!1;d.debug("No position found, showing with last position")}return d.debug("Position is on stage",e),d.remove.attempts(),d.remove.loading(),h.setFluidWidth&&d.is.fluid()&&d.set.fluidWidth(t),!0}d.error(f.notFound)},fluidWidth:function(e){e=e||d.get.calculations(),d.debug("Automatically setting element width to parent width",e.parent.width),u.css("width",e.container.width)},variation:function(e){(e=e||d.get.variation())&&d.has.popup()&&(d.verbose("Adding variation to popup",e),u.addClass(e))},visible:function(){g.addClass(p.visible)}},remove:{loading:function(){u.removeClass(p.loading)},variation:function(e){(e=e||d.get.variation())&&(d.verbose("Removing variation",e),u.removeClass(e))},visible:function(){g.removeClass(p.visible)},attempts:function(){d.verbose("Resetting all searched positions"),y=0,x=!1}},bind:{events:function(){d.debug("Binding popup events to module"),"click"==h.on&&g.on("click"+r,d.toggle),"hover"==h.on&&g.on("touchstart"+r,d.event.touchstart),d.get.startEvent()&&g.on(d.get.startEvent()+r,d.event.start).on(d.get.endEvent()+r,d.event.end),h.target&&d.debug("Target set to element",b),P.on("resize"+t,d.event.resize)},popup:function(){d.verbose("Allowing hover events on popup to prevent closing"),u&&d.has.popup()&&u.on("mouseenter"+r,d.event.start).on("mouseleave"+r,d.event.end)},close:function(){(!0===h.hideOnScroll||"auto"==h.hideOnScroll&&"click"!=h.on)&&d.bind.closeOnScroll(),d.is.closable()?d.bind.clickaway():"hover"==h.on&&T&&d.bind.touchClose()},closeOnScroll:function(){d.verbose("Binding scroll close event to document"),l.one(d.get.scrollEvent()+t,d.event.hideGracefully)},touchClose:function(){d.verbose("Binding popup touchclose event to document"),M.on("touchstart"+t,function(e){d.verbose("Touched away from popup"),d.event.hideGracefully.call(S,e)})},clickaway:function(){d.verbose("Binding popup close event to document"),M.on("click"+t,function(e){d.verbose("Clicked away from popup"),d.event.hideGracefully.call(S,e)})}},unbind:{events:function(){P.off(t),g.off(r)},close:function(){M.off(t),l.off(t)}},has:{popup:function(){return u&&0<u.length}},should:{centerArrow:function(e){return!d.is.basic()&&e.target.width<=2*h.arrowPixelsFromEdge}},is:{closable:function(){return"auto"==h.closable?"hover"!=h.on:h.closable},offstage:function(e,i){var n=[];return H.each(e,function(e,t){t<-h.jitter&&(d.debug("Position exceeds allowable distance from edge",e,t,i),n.push(e))}),0<n.length},svg:function(e){return d.supports.svg()&&e instanceof SVGGraphicsElement},basic:function(){return g.hasClass(p.basic)},active:function(){return g.hasClass(p.active)},animating:function(){return u!==G&&u.hasClass(p.animating)},fluid:function(){return u!==G&&u.hasClass(p.fluid)},visible:function(){return u!==G&&u.hasClass(p.popupVisible)},dropdown:function(){return g.hasClass(p.dropdown)},hidden:function(){return!d.is.visible()},rtl:function(){return"rtl"==g.css("direction")}},reset:function(){d.remove.visible(),h.preserve?H.fn.transition!==G&&u.transition("remove transition"):d.removePopup()},setting:function(e,t){if(H.isPlainObject(e))H.extend(!0,h,e);else{if(t===G)return h[e];h[e]=t}},internal:function(e,t){if(H.isPlainObject(e))H.extend(!0,d,e);else{if(t===G)return d[e];d[e]=t}},debug:function(){!h.silent&&h.debug&&(h.performance?d.performance.log(arguments):(d.debug=Function.prototype.bind.call(console.info,console,h.name+":"),d.debug.apply(console,arguments)))}
vendor: 9,613 bytes, line 1
1,verbose:function(){!h.silent&&h.verbose&&h.debug&&(h.performance?d.performance.log(arguments):(d.verbose=Function.prototype.bind.call(console.info,console,h.name+":"),d.verbose.apply(console,arguments)))},error:function(){h.silent||(d.error=Function.prototype.bind.call(console.error,console,h.name+":"),d.error.apply(console,arguments))},performance:{log:function(e){var t,i;h.performance&&(i=(t=(new Date).getTime())-(D||t),D=t,O.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:S,"Execution Time":i})),clearTimeout(d.performance.timer),d.performance.timer=setTimeout(d.performance.display,500)},display:function(){var e=h.name+":",i=0;D=!1,clearTimeout(d.performance.timer),H.each(O,function(e,t){i+=t["Execution Time"]}),e+=" "+i+"ms",E&&(e+=" '"+E+"'"),(console.group!==G||console.table!==G)&&0<O.length&&(console.groupCollapsed(e),console.table?console.table(O):H.each(O,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),O=[]}},invoke:function(n,e,t){var o,r,i,a=w;return e=e||R,t=S||t,"string"==typeof n&&a!==G&&(n=n.split(/[\. ]/),o=n.length-1,H.each(n,function(e,t){var i=e!=o?t+n[e+1].charAt(0).toUpperCase()+n[e+1].slice(1):n;if(H.isPlainObject(a[i])&&e!=o)a=a[i];else{if(a[i]!==G)return r=a[i],!1;if(!H.isPlainObject(a[t])||e==o)return a[t]!==G&&(r=a[t]),!1;a=a[t]}})),H.isFunction(r)?i=r.apply(t,e):r!==G&&(i=r),H.isArray(C)?C.push(i):C!==G?C=[C,i]:i!==G&&(C=i),r}},I?(w===G&&d.initialize(),d.invoke(L)):(w!==G&&w.invoke("destroy"),d.initialize())}),C!==G?C:this},H.fn.popup.settings={name:"Popup",silent:!1,debug:!1,verbose:!1,performance:!0,namespace:"popup",observeChanges:!0,onCreate:function(){},onRemove:function(){},onShow:function(){},onVisible:function(){},onHide:function(){},onUnplaceable:function(){},onHidden:function(){},on:"hover",boundary:N,addTouchEvents:!0,position:"top left",variation:"",movePopup:!0,target:!1,popup:!1,inline:!1,preserve:!1,hoverable:!1,content:!1,html:!1,title:!1,closable:!0,hideOnScroll:"auto",exclusive:!1,context:"body",scrollContext:N,prefer:"opposite",lastResort:!1,arrowPixelsFromEdge:20,delay:{show:50,hide:70},setFluidWidth:!0,duration:200,transition:"scale",distanceAway:0,jitter:2,offset:0,maxSearchDepth:15,error:{invalidPosition:"The position you specified is not a valid position",cannotPlace:"Popup does not fit within the boundaries of the viewport",method:"The method you called is not defined.",noTransition:"This module requires ui transitions <https://github.com/Semantic-Org/UI-Transition>",notFound:"The target or popup you specified does not exist on the page"},metadata:{activator:"activator",content:"content",html:"html",offset:"offset",position:"position",title:"title",variation:"variation"},className:{active:"active",basic:"basic",animating:"animating",dropdown:"dropdown",fluid:"fluid",loading:"loading",popup:"ui popup",position:"top left center bottom right",visible:"visible",popupVisible:"visible"},selector:{popup:".ui.popup"},templates:{escape:function(e){var t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"};return/[&<>"'`]/.test(e)?e.replace(/[&<>"'`]/g,function(e){return t[e]}):e},popup:function(e){var t="",i=H.fn.popup.settings.templates.escape;return typeof e!==G&&(typeof e.title!==G&&e.title&&(e.title=i(e.title),t+='<div class="header">'+e.title+"</div>"),typeof e.content!==G&&e.content&&(e.content=i(e.content),t+='<div class="content">'+e.content+"</div>")),t}}}}(jQuery,window,document),function(k,e,C,M){"use strict";void 0!==(e=void 0!==e&&e.Math==Math?e:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")())&&e.Math==Math||("undefined"!=typeof self&&self.Math==Math?self:Function("return this")()),k.fn.progress=function(g){var v,e=k(this),b=e.selector||"",y=(new Date).getTime(),x=[],T=g,S="string"==typeof T,w=[].slice.call(arguments,1);return e.each(function(){var s,n=k.isPlainObject(g)?k.extend(!0,{},k.fn.progress.settings,g):k.extend({},k.fn.progress.settings),t=n.className,i=n.metadata,e=n.namespace,o=n.selector,l=n.error,r="."+e,a="module-"+e,c=k(this),u=k(this).find(o.bar),d=k(this).find(o.progress),h=k(this).find(o.label),p=this,f=c.data(a),m=!1;s={initialize:function(){s.debug("Initializing progress bar",n),s.set.duration(),s.set.transitionEvent(),s.read.metadata(),s.read.settings(),s.instantiate()},instantiate:function(){s.verbose("Storing instance of progress",s),f=s,c.data(a,s)},destroy:function(){s.verbose("Destroying previous progress for",c),clearInterval(f.interval),s.remove.state(),c.removeData(a),f=M},reset:function(){s.remove.nextValue(),s.update.progress(0)},complete:function(){(s.percent===M||s.percent<100)&&(s.remove.progressPoll(),s.set.percent(100))},read:{metadata:function(){var e={percent:c.data(i.percent),total:c.data(i.total),value:c.data(i.value)};e.percent&&(s.debug("Current percent value set from metadata",e.percent),s.set.percent(e.percent)),e.total&&(s.debug("Total value set from metadata",e.total),s.set.total(e.total)),e.value&&(s.debug("Current value set from metadata",e.value),s.set.value(e.value),s.set.progress(e.value))},settings:function(){!1!==n.total&&(s.debug("Current total set in settings",n.total),s.set.total(n.total)),!1!==n.value&&(s.debug("Current value set in settings",n.value),s.set.value(n.value),s.set.progress(s.value)),!1!==n.percent&&(s.debug("Current percent set in settings",n.percent),s.set.percent(n.percent))}},bind:{transitionEnd:function(t){var e=s.get.transitionEnd();u.one(e+r,function(e){clearTimeout(s.failSafeTimer),t.call(this,e)}),s.failSafeTimer=setTimeout(function(){u.triggerHandler(e)},n.duration+n.failSafeDelay),s.verbose("Adding fail safe timer",s.timer)}},increment:function(e){var t,i;s.has.total()?i=(t=s.get.value())+(e=e||1):(i=(t=s.get.percent())+(e=e||s.get.randomValue()),s.debug("Incrementing percentage by",t,i)),i=s.get.normalizedValue(i),s.set.progress(i)},decrement:function(e){var t,i;s.get.total()?(i=(t=s.get.value())-(e=e||1),s.debug("Decrementing value by",e,t)):(i=(t=s.get.percent())-(e=e||s.get.randomValue()),s.debug("Decrementing percentage by",e,t)),i=s.get.normalizedValue(i),s.set.progress(i)},has:{progressPoll:function(){return s.progressPoll},total:function(){return!1!==s.get.total()}},get:{text:function(e){var t=s.value||0,i=s.total||0,n=m?s.get.displayPercent():s.percent||0,o=0<s.total?i-t:100-n;return e=(e=e||"").replace("{value}",t).replace("{total}",i).replace("{left}",o).replace("{percent}",n),s.verbose("Adding variables to progress bar text",e),e},normalizedValue:function(e){if(e<0)return s.debug("Value cannot decrement below 0"),0;if(s.has.total()){if(e>s.total)return s.debug("Value cannot increment above total",s.total),s.total}else if(100<e)return s.debug("Value cannot increment above 100 percent"),100;return e},updateInterval:function(){return"auto"==n.updateInterval?n.duration:n.updateInterval},randomValue:function(){return s.debug("Generating random increment percentage"),Math.floor(Math.random()*n.random.max+n.random.min)},numericValue:function(e){return"string"==typeof e?""!==e.replace(/[^\d.]/g,"")&&+e.replace(/[^\d.]/g,""):e},transitionEnd:function(){var e,t=C.createElement("element"),i={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(e in i)if(t.style[e]!==M)return i[e]},displayPercent:function(){var e=u.width(),t=c.width(),i=parseInt(u.css("min-width"),10)<e?e/t*100:s.percent;return 0<n.precision?Math.round(i*(10*n.precision))/(10*n.precision):Math.round(i)},percent:function(){return s.percent||0},value:function(){return s.nextValue||s.value||0},total:function(){return s.total||!1}},create:{progressPoll:function(){s.progressPoll=setTimeout(function(){s.update.toNextValue(),s.remove.progressPoll()},s.get.updateInterval())}},is:{complete:function(){return s.is.success()||s.is.warning()||s.is.error()},success:function(){return c.hasClass(t.success)},warning:function(){return c.hasClass(t.warning)},error:function(){return c.hasClass(t.error)},active:function(){return c.hasClass(t.active)},visible:function(){return c.is(":visible")}},remove:{progressPoll:function(){s.verbose("Removing progress poll timer"),s.progressPoll&&(clearTimeout(s.progressPoll),delete s.progressPoll)},nextValue:function(){s.verbose("Removing progress value stored for next update"),delete s.nextValue},state:function(){s.verbose("Removing stored state"),delete s.total,delete s.percent,delete s.value},active:function(){s.verbose("Removing active state"),c.removeClass(t.active)},success:function(){s.verbose("Removing success state"),c.removeClass(t.success)},warning:function(){s.verbose("Removing warning state"),c.removeClass(t.warning)},error:function(){s.verbose("Removing error state"),c.removeClass(t.error)}},set:{barWidth:function(e){100<e?s.error(l.tooHigh,e):e<0?s.error(l.tooLow,e):(u.css("width",e+"%"),c.attr("data-percent",parseInt(e,10)))},duration:function(e){e="number"==typeof(e=e||n.duration)?e+"ms":e,s.verbose("Setting progress bar transition duration",e),u.css({"transition-duration":e})},percent:function(e){e="string"==typeof e?+e.replace("%",""):e,e=0<n.precision?Math.round(e*(10*n.precision))/(10*n.precision):Math.round(e),s.percent=e,s.has.total()||(s.value=0<n.precision?Math.round(e/100*s.total*(10*n.precision))/(10*n.precision):Math.round(e/100*s.total*10)/10,n.limitValues&&(s.value=100<s.value?100:s.value<0?0:s.value)),s.set.barWidth(e),s.set.labelInterval(),s.set.labels(),n.onChange.call(p,e,s.value,s.total)},labelInterval:function(){clearInterval(s.interval),s.bind.transitionEnd(function(){s.verbose("Bar finished animating, remov
1ing continuous label updates"),clearInterval(s.interval),m=!1,s.set.labels()}),m=!0,s.interval=setInterval(function(){k.contains(C.documentElement,p)||(clearInterval(s.interval),m=!1),s.set.labels()},n.framerate)},labels:function(){s.verbose("Setting both bar progress and outer label text"),s.set.barLabel(),s.set.state()},label:function(e){(e=e||"")&&(e=s.get.text(e),s.verbose("Setting label to text",e),h.text(e))},state:function(e){100===(e=e!==M?e:s.percent)?n.autoSuccess&&!(s.is.warning()||s.is.error()||s.is.success())?(s.set.success(),s.debug("Automatically triggering success at 100%")):(s.verbose("Reached 100% removing active state"),s.remove.active(),s.remove.progressPoll()):0<e?(s.verbose("Adjusting active progress bar label",e),s.set.active()):(s.remove.active(),s.set.label(n.text.active))},barLabel:function(e){e!==M?d.text(s.get.text(e)):"ratio"==n.label&&s.total?(s.verbose("Adding ratio to bar label"),d.text(s.get.text(n.text.ratio))):"percent"==n.label&&(s.verbose("Adding percentage to bar label"),d.text(s.get.text(n.text.percent)))},active:function(e){e=e||n.text.active,s.debug("Setting active state"),n.showActivity&&!s.is.active()&&c.addClass(t.active),s.remove.warning(),s.remove.error(),s.remove.success(),(e=n.onLabelUpdate("active",e,s.value,s.total))&&s.set.label(e),s.bind.transitionEnd(function(){n.onActive.call(p,s.value,s.total)})},success:function(e){e=e||n.text.success||n.text.active,s.debug("Setting success state"),c.addClass(t.success),s.remove.active(),s.remove.warning(),s.remove.error(),s.complete(),e=n.text.success?n.onLabelUpdate("success",e,s.value,s.total):n.onLabelUpdate("active",e,s.value,s.total),s.set.label(e),s.bind.transitionEnd(function(){n.onSuccess.call(p,s.total)})},warning:function(e){e=e||n.text.warning,s.debug("Setting warning state"),c.addClass(t.warning),s.remove.active(),s.remove.success(),s.remove.error(),s.complete(),(e=n.onLabelUpdate("warning",e,s.value,s.total))&&s.set.label(e),s.bind.transitionEnd(function(){n.onWarning.call(p,s.value,s.total)})},error:function(e){e=e||n.text.error,s.debug("Setting error state"),c.addClass(t.error),s.remove.active(),s.remove.success(),s.remove.warning(),s.complete(),(e=n.onLabelUpdate("error",e,s.value,s.total))&&s.set.label(e),s.bind.transitionEnd(function(){n.onError.call(p,s.value,s.total)})},transitionEvent:function(){s.get.transitionEnd()},total:function(e){s.total=e},value:function(e){s.value=e},progress:function(e){s.has.progressPoll()?(s.debug("Updated within interval, setting next update to use new value",e),s.set.nextValue(e)):(s.debug("First update in progress update interval, immediately updating",e),s.update.progress(e),s.create.progressPoll())},nextValue:function(e){s.nextValue=e}},update:{toNextValue:function(){var e=s.nextValue;e&&(s.debug("Update interval complete using last updated value",e),s.update.progress(e),s.remove.nextValue())},progress:function(e){var t;!1===(e=s.get.numericValue(e))&&s.error(l.nonNumeric,e),e=s.get.normalizedValue(e),s.has.total()?(s.set.value(e),t=e/s.total*100,s.debug("Calculating percent complete from total",t)):(t=e,s.debug("Setting value to exact percentage value",t)),s.set.percent(t)}},setting:function(e,t){if(s.debug("Changing setting",e,t),k.isPlainObject(e))k.extend(!0,n,e);else{if(t===M)return n[e];k.isPlainObject(n[e])?k.extend(!0,n[e],t):n[e]=t}},internal:function(e,t){if(k.isPlainObject(e))k.extend(!0,s,e);else{if(t===M)return s[e];s[e]=t}},debug:function(){!n.silent&&n.debug&&(n.performance?s.performance.log(arguments):(s.debug=Function.prototype.bind.call(console.info,console,n.name+":"),s.debug.apply(console,arguments)))},verbose:function(){!n.silent&&n.verbose&&n.debug&&(n.performance?s.performance.log(arguments):(s.verbose=Function.prototype.bind.call(console.info,console,n.name+":"),s.verbose.apply(console,arguments)))},error:function(){n.silent||(s.error=Function.prototype.bind.call(console.error,console,n.name+":"),s.error.apply(console,arguments))},performance:{log:function(e){var t,i;n.performance&&(i=(t=(new Date).getTime())-(y||t),y=t,x.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:p,"Execution Time":i})),clearTimeout(s.performance.timer),s.performance.timer=setTimeout(s.performance.display,500)},display:function(){var e=n.name+":",i=0;y=!1,clearTimeout(s.performance.timer),k.each(x,function(e,t){i+=t["Execution Time"]}),e+=" "+i+"ms",b&&(e+=" '"+b+"'"),(console.group!==M||console.table!==M)&&0<x.length&&(console.groupCollapsed(e),console.table?console.table(x):k.each(x,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),x=[]}},invoke:function(n,e,t){var o,r,i,a=f;return e=e||w,t=p||t,"string"==typeof n&&a!==M&&(n=n.split(/[\. ]/),o=n.length-1,k.each(n,function(e,t){var i=e!=o?t+n[e+1].charAt(0).toUpperCase()+n[e+1].slice(1):n;
vendor: 9,952 bytes, line 1
1if(k.isPlainObject(a[i])&&e!=o)a=a[i];else{if(a[i]!==M)return r=a[i],!1;if(!k.isPlainObject(a[t])||e==o)return a[t]!==M?r=a[t]:s.error(l.method,n),!1;a=a[t]}})),k.isFunction(r)?i=r.apply(t,e):r!==M&&(i=r),k.isArray(v)?v.push(i):v!==M?v=[v,i]:i!==M&&(v=i),r}},S?(f===M&&s.initialize(),s.invoke(T)):(f!==M&&f.invoke("destroy"),s.initialize())}),v!==M?v:this},k.fn.progress.settings={name:"Progress",namespace:"progress",silent:!1,debug:!1,verbose:!1,performance:!0,random:{min:2,max:5},duration:300,updateInterval:"auto",autoSuccess:!0,showActivity:!0,limitValues:!0,label:"percent",precision:0,framerate:1e3/30,percent:!1,total:!1,value:!1,failSafeDelay:100,onLabelUpdate:function(e,t,i,n){return t},onChange:function(e,t,i){},onSuccess:function(e){},onActive:function(e,t){},onError:function(e,t){},onWarning:function(e,t){},error:{method:"The method you called is not defined.",nonNumeric:"Progress value is non numeric",tooHigh:"Value specified is above 100%",tooLow:"Value specified is below 0%"},regExp:{variable:/\{\$*[A-z0-9]+\}/g},metadata:{percent:"percent",total:"total",value:"value"},selector:{bar:"> .bar",label:"> .label",progress:".bar > .progress"},text:{active:!1,error:!1,success:!1,warning:!1,percent:"{percent}%",ratio:"{value} of {total}"},className:{active:"active",error:"error",success:"success",warning:"warning"}}}(jQuery,window,document),function(S,e,t,w){"use strict";e=void 0!==e&&e.Math==Math?e:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),S.fn.rating=function(p){var f,m=S(this),g=m.selector||"",v=(new Date).getTime(),b=[],y=p,x="string"==typeof y,T=[].slice.call(arguments,1);return m.each(function(){var e,n,o=S.isPlainObject(p)?S.extend(!0,{},S.fn.rating.settings,p):S.extend({},S.fn.rating.settings),t=o.namespace,r=o.className,i=o.metadata,a=o.selector,s=(o.error,"."+t),l="module-"+t,c=this,u=S(this).data(l),d=S(this),h=d.find(a.icon);n={initialize:function(){n.verbose("Initializing rating module",o),0===h.length&&n.setup.layout(),o.interactive?n.enable():n.disable(),n.set.initialLoad(),n.set.rating(n.get.initialRating()),n.remove.initialLoad(),n.instantiate()},instantiate:function(){n.verbose("Instantiating module",o),u=n,d.data(l,n)},destroy:function(){n.verbose("Destroying previous instance",u),n.remove.events(),d.removeData(l)},refresh:function(){h=d.find(a.icon)},setup:{layout:function(){var e=n.get.maxRating(),t=S.fn.rating.settings.templates.icon(e);n.debug("Generating icon html dynamically"),d.html(t),n.refresh()}},event:{mouseenter:function(){var e=S(this);e.nextAll().removeClass(r.selected),d.addClass(r.selected),e.addClass(r.selected).prevAll().addClass(r.selected)},mouseleave:function(){d.removeClass(r.selected),h.removeClass(r.selected)},click:function(){var e=S(this),t=n.get.rating(),i=h.index(e)+1;("auto"==o.clearable?1===h.length:o.clearable)&&t==i?n.clearRating():n.set.rating(i)}},clearRating:function(){n.debug("Clearing current rating"),n.set.rating(0)},bind:{events:function(){n.verbose("Binding events"),d.on("mouseenter"+s,a.icon,n.event.mouseenter).on("mouseleave"+s,a.icon,n.event.mouseleave).on("click"+s,a.icon,n.event.click)}},remove:{events:function(){n.verbose("Removing events"),d.off(s)},initialLoad:function(){e=!1}},enable:function(){n.debug("Setting rating to interactive mode"),n.bind.events(),d.removeClass(r.disabled)},disable:function(){n.debug("Setting rating to read-only mode"),n.remove.events(),d.addClass(r.disabled)},is:{initialLoad:function(){return e}},get:{initialRating:function(){return d.data(i.rating)!==w?(d.removeData(i.rating),d.data(i.rating)):o.initialRating},maxRating:function(){return d.data(i.maxRating)!==w?(d.removeData(i.maxRating),d.data(i.maxRating)):o.maxRating},rating:function(){var e=h.filter("."+r.active).length;return n.verbose("Current rating retrieved",e),e}},set:{rating:function(e){var t=0<=e-1?e-1:0,i=h.eq(t);d.removeClass(r.selected),h.removeClass(r.selected).removeClass(r.active),0<e&&(n.verbose("Setting current rating to",e),i.prevAll().addBack().addClass(r.active)),n.is.initialLoad()||o.onRate.call(c,e)},initialLoad:function(){e=!0}},setting:function(e,t){if(n.debug("Changing setting",e,t),S.isPlainObject(e))S.extend(!0,o,e);else{if(t===w)return o[e];S.isPlainObject(o[e])?S.extend(!0,o[e],t):o[e]=t}},internal:function(e,t){if(S.isPlainObject(e))S.extend(!0,n,e);else{if(t===w)return n[e];n[e]=t}},debug:function(){!o.silent&&o.debug&&(o.performance?n.performance.log(arguments):(n.debug=Function.prototype.bind.call(console.info,console,o.name+":"),n.debug.apply(console,arguments)))},verbose:function(){!o.silent&&o.verbose&&o.debug&&(o.performance?n.performance.log(arguments):(n.verbose=Function.prototype.bind.call(console.info,console,o.name+":"),n.verbose.apply(console,arguments)))},error:function(){o.silent||(n.error=Function.prototype.bind.call(console.error,console,o.name+":"),n.error.apply(console,arguments))},performance:{log:function(e){var t,i;o.performance&&(i=(t=(new Date).getTime())-(v||t),v=t,b.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:c,"Execution Time":i})),clearTimeout(n.performance.timer),n.performance.timer=setTimeout(n.performance.display,500)},display:function(){var e=o.name+":",i=0;v=!1,clearTimeout(n.performance.timer),S.each(b,function(e,t){i+=t["Execution Time"]}),e+=" "+i+"ms",g&&(e+=" '"+g+"'"),1<m.length&&(e+=" ("+m.length+")"),(console.group!==w||console.table!==w)&&0<b.length&&(console.groupCollapsed(e),console.table?console.table(b):S.each(b,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),b=[]}},invoke:function(n,e,t){var o,r,i,a=u;return e=e||T,t=c||t,"string"==typeof n&&a!==w&&(n=n.split(/[\. ]/),o=n.length-1,S.each(n,function(e,t){var i=e!=o?t+n[e+1].charAt(0).toUpperCase()+n[e+1].slice(1):n;if(S.isPlainObject(a[i])&&e!=o)a=a[i];else{if(a[i]!==w)return r=a[i],!1;if(!S.isPlainObject(a[t])||e==o)return a[t]!==w&&(r=a[t]),!1;a=a[t]}})),S.isFunction(r)?i=r.apply(t,e):r!==w&&(i=r),S.isArray(f)?f.push(i):f!==w?f=[f,i]:i!==w&&(f=i),r}},x?(u===w&&n.initialize(),n.invoke(y)):(u!==w&&u.invoke("destroy"),n.initialize())}),f!==w?f:this},S.fn.rating.settings={name:"Rating",namespace:"rating",slent:!1,debug:!1,verbose:!1,performance:!0,initialRating:0,interactive:!0,maxRating:4,clearable:"auto",fireOnInit:!1,onRate:function(e){},error:{method:"The method you called is not defined",noMaximum:"No maximum rating specified. Cannot generate HTML automatically"},metadata:{rating:"rating",maxRating:"maxRating"},className:{active:"active",disabled:"disabled",selected:"selected",loading:"loading"},selector:{icon:".icon"},templates:{icon:function(e){for(var t=1,i="";t<=e;)i+='<i class="icon"></i>',t++;return i}}}}(jQuery,window,document),function(E,D,O,L){"use strict";D=void 0!==D&&D.Math==Math?D:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),E.fn.search=function(l){var T,S=E(this),w=S.selector||"",k=(new Date).getTime(),C=[],M=l,P="string"==typeof M,A=[].slice.call(arguments,1);return E(this).each(function(){var c,u=E.isPlainObject(l)?E.extend(!0,{},E.fn.search.settings,l):E.extend({},E.fn.search.settings),d=u.className,h=u.metadata,p=u.regExp,r=u.fields,f=u.selector,m=u.error,e=u.namespace,n="."+e,t=e+"-module",g=E(this),v=g.find(f.prompt),i=g.find(f.searchButton),o=g.find(f.results),a=g.find(f.result),b=(g.find(f.category),this),s=g.data(t),y=!1,x=!1;c={initialize:function(){c.verbose("Initializing module"),c.get.settings(),c.determine.searchFields(),c.bind.events(),c.set.type(),c.create.results(),c.instantiate()},instantiate:function(){c.verbose("Storing instance of module",c),s=c,g.data(t,c)},destroy:function(){c.verbose("Destroying instance"),g.off(n).removeData(t)},refresh:function(){c.debug("Refreshing selector cache"),v=g.find(f.prompt),i=g.find(f.searchButton),g.find(f.category),o=g.find(f.results),a=g.find(f.result)},refreshResults:function(){o=g.find(f.results),a=g.find(f.result)},bind:{events:function(){c.verbose("Binding events to search"),u.automatic&&(g.on(c.get.inputEvent()+n,f.prompt,c.event.input),v.attr("autocomplete","off")),g.on("focus"+n,f.prompt,c.event.focus).on("blur"+n,f.prompt,c.event.blur).on("keydown"+n,f.prompt,c.handleKeyboard).on("click"+n,f.searchButton,c.query).on("mousedown"+n,f.results,c.event.result.mousedown).on("mouseup"+n,f.results,c.event.result.mouseup).on("click"+n,f.result,c.event.result.click)}},determine:{searchFields:function(){l&&l.searchFields!==L&&(u.searchFields=l.searchFields)}},event:{input:function(){u.searchDelay?(clearTimeout(c.timer),c.timer=setTimeout(function(){c.is.focused()&&c.query()},u.searchDelay)):c.query()},focus:function(){c.set.focus(),u.searchOnFocus&&c.has.minimumCharacters()&&c.query(function(){c.can.show()&&c.showResults()})},blur:function(e){var t=O.activeElement===this,i=function(){c.cancel.query(),c.remove.focus(),c.timer=setTimeout(c.hideResults,u.hideDelay)};t||(x=!1,c.resultsClicked?(c.debug("Determining if user action caused search to close"),g.one("click.close"+n,f.results,function(e){c.is.inMessage(e)||y?v.focus():(y=!1,c.is.animating()||c.is.hidden()||i())})):(c.debug("Input blurred without user action, closing results"),i()))},result:{mousedown:function(){c.resultsClicked=!0},mouseup:function(){c.resultsClicked=!1},click:function(e){c.debug("Search result selected");var t=E(this),i=t.find(f.title).eq(0),n=t.is("a[href]")?t:t.find("a[href]").eq(0),o=n.attr("href")||!1,r=n.attr("target")||!1,a=(i.html(),0<i.length&&i.text()),s=c.get.results(),l=t.data(h.result)||c.get.result(a,s);if(E.isFunction(u.onSelect)&&!1===u.onSelect.call(b,l,s))return c.debug("Custom onSelect callback cancelled default select action"),void(y=!0);c.hideResults(),a&&c.set.value(a),o&&(c.verbose("Opening search link found in result",n),"_blank"==r||e.ctrlKey?D.open(o):D.location.href=o)}}},handleKeyboard:function(e){var t,i=g.find(f.result),n=g.find(f.category),o=i.filter("."+d.active),r=i.index(o),a=i.length,s=0<o.length,l=e.which;
vendor: 9,059 bytes, line 1
1if(27==l&&(c.verbose("Escape key pressed, blurring search field"),c.hideResults(),x=!0),c.is.visible())if(13==l){if(c.verbose("Enter key pressed, selecting active result"),0<i.filter("."+d.active).length)return c.event.result.click.call(i.filter("."+d.active),e),e.preventDefault(),!1}else 38==l&&s?(c.verbose("Up key pressed, changing active result"),t=r-1<0?r:r-1,n.removeClass(d.active),i.removeClass(d.active).eq(t).addClass(d.active).closest(n).addClass(d.active),e.preventDefault()):40==l&&(c.verbose("Down key pressed, changing active result"),t=a<=r+1?r:r+1,n.removeClass(d.active),i.removeClass(d.active).eq(t).addClass(d.active).closest(n).addClass(d.active),e.preventDefault());else 13==l&&(c.verbose("Enter key pressed, executing query"),c.query(),c.set.buttonPressed(),v.one("keyup",c.remove.buttonFocus))},setup:{api:function(t,i){var e={debug:u.debug,on:!1,cache:u.cache,action:"search",urlData:{query:t},onSuccess:function(e){c.parse.response.call(b,e,t),i()},onFailure:function(){c.displayMessage(m.serverError),i()},onAbort:function(e){},onError:c.error};E.extend(!0,e,u.apiSettings),c.verbose("Setting up API request",e),g.api(e)}},can:{useAPI:function(){return E.fn.api!==L},show:function(){return c.is.focused()&&!c.is.visible()&&!c.is.empty()},transition:function(){return u.transition&&E.fn.transition!==L&&g.transition("is supported")}},is:{animating:function(){return o.hasClass(d.animating)},hidden:function(){return o.hasClass(d.hidden)},inMessage:function(e){if(e.target){var t=E(e.target);return E.contains(O.documentElement,e.target)&&0<t.closest(f.message).length}},empty:function(){return""===o.html()},visible:function(){return 0<o.filter(":visible").length},focused:function(){return 0<v.filter(":focus").length}},get:{settings:function(){E.isPlainObject(l)&&l.searchFullText&&(u.fullTextSearch=l.searchFullText,c.error(u.error.oldSearchSyntax,b))},inputEvent:function(){var e=v[0];return e!==L&&e.oninput!==L?"input":e!==L&&e.onpropertychange!==L?"propertychange":"keyup"},value:function(){return v.val()},results:function(){return g.data(h.results)},result:function(i,e){var n=["title","id"],o=!1;return i=i!==L?i:c.get.value(),e=e!==L?e:c.get.results(),"category"===u.type?(c.debug("Finding result that matches",i),E.each(e,function(e,t){if(E.isArray(t.results)&&(o=c.search.object(i,t.results,n)[0]))return!1})):(c.debug("Finding result in results object",i),o=c.search.object(i,e,n)[0]),o||!1}},select:{firstResult:function(){c.verbose("Selecting first result"),a.first().addClass(d.active)}},set:{focus:function(){g.addClass(d.focus)},loading:function(){g.addClass(d.loading)},value:function(e){c.verbose("Setting search input value",e),v.val(e)},type:function(e){e=e||u.type,"category"==u.type&&g.addClass(u.type)},buttonPressed:function(){i.addClass(d.pressed)}},remove:{loading:function(){g.removeClass(d.loading)},focus:function(){g.removeClass(d.focus)},buttonPressed:function(){i.removeClass(d.pressed)}},query:function(e){e=E.isFunction(e)?e:function(){};var t=c.get.value(),i=c.read.cache(t);e=e||function(){},c.has.minimumCharacters()?(i?(c.debug("Reading result from cache",t),c.save.results(i.results),c.addResults(i.html),c.inject.id(i.results),e()):(c.debug("Querying for",t),E.isPlainObject(u.source)||E.isArray(u.source)?(c.search.local(t),e()):c.can.useAPI()?c.search.remote(t,e):(c.error(m.source),e())),u.onSearchQuery.call(b,t)):c.hideResults()},search:{local:function(e){var t,i=c.search.object(e,u.content);c.set.loading(),c.save.results(i),c.debug("Returned full local search results",i),0<u.maxResults&&(c.debug("Using specified max results",i),i=i.slice(0,u.maxResults)),"category"==u.type&&(i=c.create.categoryResults(i)),t=c.generateResults({results:i}),c.remove.loading(),c.addResults(t),c.inject.id(i),c.write.cache(e,{html:t,results:i})},remote:function(e,t){t=E.isFunction(t)?t:function(){},g.api("is loading")&&g.api("abort"),c.setup.api(e,t),g.api("query")},object:function(n,t,e){var r=[],a=[],s=[],i=n.toString().replace(p.escape,"\\$&"),o=new RegExp(p.beginsWith+i,"i"),l=function(e,t){var i=-1==E.inArray(t,r),n=-1==E.inArray(t,s),o=-1==E.inArray(t,a);i&&n&&o&&e.push(t)};return t=t||u.source,e=e!==L?e:u.searchFields,E.isArray(e)||(e=[e]),t===L||!1===t?(c.error(m.source),[]):(E.each(e,function(e,i){E.each(t,function(e,t){"string"==typeof t[i]&&(-1!==t[i].search(o)?l(r,t):"exact"===u.fullTextSearch&&c.exactSearch(n,t[i])?l(a,t):1==u.fullTextSearch&&c.fuzzySearch(n,t[i])&&l(s,t))})}),E.merge(a,s),E.merge(r,a),r)}},exactSearch:function(e,t){return e=e.toLowerCase(),-1<(t=t.toLowerCase()).indexOf(e)},fuzzySearch:function(e,t){var i=t.length,n=e.length;if("string"!=typeof e)return!1;if(e=e.toLowerCase(),t=t.toLowerCase(),i<n)return!1;if(n===i)return e===t;e:for(var o=0,r=0;o<n;o++){for(var a=e.charCodeAt(o);r<i;)if(t.charCodeAt(r++)===a)continue e;return!1}return!0},parse:{response:function(e,t){var i=c.generateResults(e);c.verbose("Parsing server response",e),e!==L&&t!==L&&e[r.results]!==L&&(c.addResults(i),c.inject.id(e[r.results]),c.write.cache(t,{html:i,results:e[r.results]}),c.save.results(e[r.results]))}},cancel:{query:function(){c.can.useAPI()&&g.api("abort")}},has:{minimumCharacters:function(){return c.get.value().length>=u.minCharacters},results:function(){return 0!==o.length&&""!=o.html()}},clear:{cache:function(e){var t=g.data(h.cache);e?e&&t&&t[e]&&(c.debug("Removing value from cache",e),delete t[e],g.data(h.cache,t)):(c.debug("Clearing cache",e),g.removeData(h.cache))}},read:{cache:function(e){var t=g.data(h.cache);return!!u.cache&&(c.verbose("Checking cache for generated html for query",e),"object"==typeof t&&t[e]!==L&&t[e])}},create:{categoryResults:function(e){var i={};return E.each(e,function(e,t){t.category&&(i[t.category]===L?(c.verbose("Creating new category of results",t.category),i[t.category]={name:t.category,results:[t]}):i[t.category].results.push(t))}),i},id:function(e,t){var i,n=e+1;return t!==L?(i=String.fromCharCode(97+t)+n,c.verbose("Creating category result id",i)):(i=n,c.verbose("Creating result id",i)),i},results:function(){0===o.length&&(o=E("<div />").addClass(d.results).appendTo(g))}},inject:{result:function(e,t,i){c.verbose("Injecting result into results");var n=i!==L?o.children().eq(i).children(f.results).first().children(f.result).eq(t):o.children(f.result).eq(t);c.verbose("Injecting results metadata",n),n.data(h.result,e)},id:function(n){c.debug("Injecting unique ids into results");var o=0,r=0;return"category"===u.type?E.each(n,function(e,n){r=0,E.each(n.results,function(e,t){var i=n.results[e];i.id===L&&(i.id=c.create.id(r,o)),c.inject.result(i,r,o),r++}),o++}):E.each(n,function(e,t){var i=n[e];i.id===L&&(i.id=c.create.id(r)),c.inject.result(i,r),r++}),n}},save:{results:function(e){c.verbose("Saving current search results to metadata",e),g.data(h.results,e)}},write:{cache:function(e,t){var i=g.data(h.cache)!==L?g.data(h.cache):{};u.cache&&(c.verbose("Writing generated html to cache",e,t),i[e]=t,g.data(h.cache,i))}},addResults:function(e){if(E.isFunction(u.onResultsAdd)&&!1===u.onResultsAdd.call(o,e))return c.debug("onResultsAdd callback cancelled default action"),!1;e?(o.html(e),c.refreshResults(),u.selectFirstResult&&c.select.firstResult(),c.showResults()):c.hideResults(function(){o.empty()})},showResults:function(e){e=E.isFunction(e)?e:function(){},x||!c.is.visible()&&c.has.results()&&(c.can.transition()?(c.debug("Showing results with css animations"),o.transition({animation:u.transition+" in",debug:u.debug,verbose:u.verbose,duration:u.duration,onComplete:function(){e()},queue:!0})):(c.debug("Showing results with javascript"),o.stop().fadeIn(u.duration,u.easing)),u.onResultsOpen.call(o))},hideResults:function(e){e=E.isFunction(e)?e:function(){},c.is.visible()&&(c.can.transition()?(c.debug("Hiding results with css animations"),o.transition({animation:u.transition+" out",debug:u.debug,verbose:u.verbose,duration:u.duration,onComplete:function(){e()},queue:!0})):(c.debug("Hiding results with javascript"),o.stop().fadeOut(u.duration,u.easing)),u.onResultsClose.call(o))},generateResults:function(e){c.debug("Generating html from response",e);var t=u.templates[u.type],i=E.isPlainObject(e[r.results])&&!E.isEmptyObject(e[r.results]),n=E.isArray(e[r.results])&&0<e[r.results].length,o="";return i||n?(0<u.maxResults&&(i?"standard"==u.type&&c.error(m.maxResults):e[r.results]=e[r.results].slice(0,u.maxResults)),E.isFunction(t)?o=t(e,r):c.error(m.noTemplate,!1)):u.showNoResults&&(o=c.displayMessage(m.noResults,"empty")),u.onResults.call(b,e),o},displayMessage:function(e,t){return t=t||"standard",c.debug("Displaying message",e,t),c.addResults(u.templates.message(e,t)),u.templates.message(e,t)},setting:function(e,t){if(E.isPlainObject(e))E.extend(!0,u,e);else{if(t===L)return u[e];u[e]=t}},internal:function(e,t){if(E.isPlainObject(e))E.extend(!0,c,e);else{if(t===L)return c[e];c[e]=t}},debug:function(){!u.silent&&u.debug&&(u.performance?c.performance.log(arguments):(c.debug=Function.prototype.bind.call(console.info,console,u.name+":"),c.debug.apply(console,arguments)))}
vendor: 4,091 bytes, line 1
1,verbose:function(){!u.silent&&u.verbose&&u.debug&&(u.performance?c.performance.log(arguments):(c.verbose=Function.prototype.bind.call(console.info,console,u.name+":"),c.verbose.apply(console,arguments)))},error:function(){u.silent||(c.error=Function.prototype.bind.call(console.error,console,u.name+":"),c.error.apply(console,arguments))},performance:{log:function(e){var t,i;u.performance&&(i=(t=(new Date).getTime())-(k||t),k=t,C.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:b,"Execution Time":i})),clearTimeout(c.performance.timer),c.performance.timer=setTimeout(c.performance.display,500)},display:function(){var e=u.name+":",i=0;k=!1,clearTimeout(c.performance.timer),E.each(C,function(e,t){i+=t["Execution Time"]}),e+=" "+i+"ms",w&&(e+=" '"+w+"'"),1<S.length&&(e+=" ("+S.length+")"),(console.group!==L||console.table!==L)&&0<C.length&&(console.groupCollapsed(e),console.table?console.table(C):E.each(C,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),C=[]}},invoke:function(n,e,t){var o,r,i,a=s;return e=e||A,t=b||t,"string"==typeof n&&a!==L&&(n=n.split(/[\. ]/),o=n.length-1,E.each(n,function(e,t){var i=e!=o?t+n[e+1].charAt(0).toUpperCase()+n[e+1].slice(1):n;if(E.isPlainObject(a[i])&&e!=o)a=a[i];else{if(a[i]!==L)return r=a[i],!1;if(!E.isPlainObject(a[t])||e==o)return a[t]!==L&&(r=a[t]),!1;a=a[t]}})),E.isFunction(r)?i=r.apply(t,e):r!==L&&(i=r),E.isArray(T)?T.push(i):T!==L?T=[T,i]:i!==L&&(T=i),r}},P?(s===L&&c.initialize(),c.invoke(M)):(s!==L&&s.invoke("destroy"),c.initialize())}),T!==L?T:this},E.fn.search.settings={name:"Search",namespace:"search",silent:!1,debug:!1,verbose:!1,performance:!0,type:"standard",minCharacters:1,selectFirstResult:!1,apiSettings:!1,source:!1,searchOnFocus:!0,searchFields:["title","description"],displayField:"",fullTextSearch:"exact",automatic:!0,hideDelay:0,searchDelay:200,maxResults:7,cache:!0,showNoResults:!0,transition:"scale",duration:200,easing:"easeOutExpo",onSelect:!1,onResultsAdd:!1,onSearchQuery:function(e){},onResults:function(e){},onResultsOpen:function(){},onResultsClose:function(){},className:{animating:"animating",active:"active",empty:"empty",focus:"focus",hidden:"hidden",loading:"loading",results:"results",pressed:"down"},error:{source:"Cannot search. No source used, and Semantic API module was not included",noResults:"Your search returned no results",logging:"Error in debug logging, exiting.",noEndpoint:"No search endpoint was specified",noTemplate:"A valid template name was not specified.",oldSearchSyntax:"searchFullText setting has been renamed fullTextSearch for consistency, please adjust your settings.",serverError:"There was an issue querying the server.",maxResults:"Results must be an array to use maxResults setting",method:"The method you called is not defined."},metadata:{cache:"cache",results:"results",result:"result"},regExp:{escape:/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,beginsWith:"(?:s|^)"},fields:{categories:"results",categoryName:"name",categoryResults:"results",description:"description",image:"image",price:"price",results:"results",title:"title",url:"url",action:"action",actionText:"text",actionURL:"url"},selector:{prompt:".prompt",searchButton:".search.button",results:".results",message:".results > .message",category:".category",result:".result",title:".title, .name"},templates:{escape:function(e){var t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"};return/[&<>"'`]/.test(e)?e.replace(/[&<>"'`]/g,function(e){return t[e]}):e},message:function(e,t){var i="";return e!==L&&t!==L&&(i+='<div class="message '+t+'">',i+="empty"==t?'<div class="header">No Results</div class="header"><div class="description">'+e+'</div class="description">':' <div class="description">'+e+"</div>",i+="</div>"),i},category:function(e,i){var n="";return E.fn.search.settings.templates.escape,e[i.categoryResults]!==L&&(E.each(e[i.categoryResults],function(e,t){t[i.results]!==L&&0<t.results.length&&(n+='<div class="category">',t[i.categoryName]!==L&&(n+='<div class="name">'+t[i.categoryName]+"</div>"),n+='<div class="results">
1',E.each(t.results,function(e,t){t[i.url]?n+='<a class="result" href="'+t[i.url]+'">':n+='<a class="result">',t[i.image]!==L&&(n+='<div class="image"> <img src="'+t[i.image]+'"></div>'),n+='<div class="content">',t[i.price]!==L&&(n+='<div class="price">'+t[i.price]+"</div>"),t[i.title]!==L&&(n+='<div class="title">'+t[i.title]+"</div>"),t[i.description]!==L&&(n+='<div class="description">'+t[i.description]+"</div>"),n+="</div>",n+="</a>"}),n+="</div>",n+="</div>")}),e[i.action]&&(n+='<a href="'+e[i.action][i.actionURL]+'" class="action">'+e[i.action][i.actionText]+"</a>"),n)},standard:function(e,i){var n="";return e[i.results]!==L&&(E.each(e[i.results],function(e,t){t[i.url]?n+='<a class="result" href="'+t[i.url]+'">':n+='<a class="result">',t[i.image]!==L&&(n+='<div class="image"> <img src="'+t[i.image]+'"></div>'),n+='<div class="content">',t[i.price]!==L&&(n+='<div class="price">'+t[i.price]+"</div>"),t[i.title]!==L&&(n+='<div class="title">'+t[i.title]+"</div>"),t[i.description]!==L&&(n+='<div class="description">'+t[i.description]+"</div>"),n+="</div>",n+="</a>"}),e[i.action]&&(n+='<a href="'+e[i.action][i.actionURL]+'" class="action">'+e[i.action][i.actionText]+"</a>"),n)}}}}(jQuery,window,document),function(M,e,P,A){"use strict";e=void 0!==e&&e.Math==Math?e:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),M.fn.shape=function(v){var b,y=M(this),x=(M("body"),(new Date).getTime()),T=[],S=v,w="string"==typeof S,k=[].slice.call(arguments,1),C=e.requestAnimationFrame||e.mozRequestAnimationFrame||e.webkitRequestAnimationFrame||e.msRequestAnimationFrame||function(e){setTimeout(e,0)};return y.each(function(){var n,o,r,t=y.selector||"",a=M.isPlainObject(v)?M.extend(!0,{},M.fn.shape.settings,v):M.extend({},M.fn.shape.settings),e=a.namespace,s=a.selector,i=a.error,l=a.className,c="."+e,u="module-"+e,d=M(this),h=d.find(s.sides),p=d.find(s.side),f=!1,m=this,g=d.data(u);r={initialize:function(){r.verbose("Initializing module for",m),r.set.defaultSide(),r.instantiate()},instantiate:function(){r.verbose("Storing instance of module",r),g=r,d.data(u,g)},destroy:function(){r.verbose("Destroying previous module for",m),d.removeData(u).off(c)},refresh:function(){r.verbose("Refreshing selector cache for",m),d=M(m),h=M(this).find(s.shape),p=M(this).find(s.side)},repaint:function(){r.verbose("Forcing repaint event"),(h[0]||P.createElement("div")).offsetWidth},animate:function(e,t){r.verbose("Animating box with properties",e),t=t||function(e){r.verbose("Executing animation callback"),e!==A&&e.stopPropagation(),r.reset(),r.set.active()},a.beforeChange.call(o[0]),r.get.transitionEvent()?(r.verbose("Starting CSS animation"),d.addClass(l.animating),h.css(e).one(r.get.transitionEvent(),t),r.set.duration(a.duration),C(function(){d.addClass(l.animating),n.addClass(l.hidden)})):t()},queue:function(e){r.debug("Queueing animation of",e),h.one(r.get.transitionEvent(),function(){r.debug("Executing queued animation"),setTimeout(function(){d.shape(e)},0)})},reset:function(){r.verbose("Animating states reset"),d.removeClass(l.animating).attr("style","").removeAttr("style"),h.attr("style","").removeAttr("style"),p.attr("style","").removeAttr("style").removeClass(l.hidden),o.removeClass(l.animating).attr("style","").removeAttr("style")},is:{complete:function(){return p.filter("."+l.active)[0]==o[0]},animating:function(){return d.hasClass(l.animating)}},set:{defaultSide:function(){n=d.find("."+a.className.active),o=0<n.next(s.side).length?n.next(s.side):d.find(s.side).first(),f=!1,r.verbose("Active side set to",n),r.verbose("Next side set to",o)},duration:function(e){e="number"==typeof(e=e||a.duration)?e+"ms":e,r.verbose("Setting animation duration",e),(a.duration||0===a.duration)&&h.add(p).css({"-webkit-transition-duration":e,"-moz-transition-duration":e,"-ms-transition-duration":e,"-o-transition-duration":e,"transition-duration":e})},currentStageSize:function(){var e=d.find("."+a.className.active),t=e.outerWidth(!0),i=e.outerHeight(!0);d.css({width:t,height:i})},stageSize:function(){var e=d.clone().addClass(l.loading),t=e.find("."+a.className.active),i=f?e.find(s.side).eq(f):0<t.next(s.side).length?t.next(s.side):e.find(s.side).first(),n="next"==a.width?i.outerWidth(!0):"initial"==a.width?d.width():a.width,o="next"==a.height?i.outerHeight(!0):"initial"==a.height?d.height():a.height;t.removeClass(l.active),i.addClass(l.active),e.insertAfter(d),e.remove(),"auto"!=a.width&&(d.css("width",n+a.jitter),r.verbose("Specifying width during animation",n)),"auto"!=a.height&&(d.css("height",o+a.jitter),r.verbose("Specifying height during animation",o))},nextSide:function(e){f=e,o=p.filter(e),f=p.index(o),0===o.length&&(r.set.defaultSide(),r.error(i.side)),r.verbose("Next side manually set to",o)},active:function(){r.verbose("Setting new side to active",o),p.removeClass(l.active),o.addClass(l.active),a.onChange.call(o[0]),r.set.defaultSide()}},flip:{up:function(){if(!r.is.complete()||r.is.animating()||a.allowRepeats)if(r.is.animating())r.queue("flip up");else{r.debug("Flipping up",o);var e=r.get.transform.up();r.set.stageSize(),r.stage.above(),r.animate(e)}else r.debug("Side already visible",o)},down:function(){if(!r.is.complete()||r.is.animating()||a.allowRepeats)if(r.is.animating())r.queue("flip down");else{r.debug("Flipping down",o);var e=r.get.transform.down();r.set.stageSize(),r.stage.below(),r.animate(e)}else r.debug("Side already visible",o)},left:function(){if(!r.is.complete()||r.is.animating()||a.allowRepeats)if(r.is.animating())r.queue("flip left");else{r.debug("Flipping left",o);var e=r.get.transform.left();r.set.stageSize(),r.stage.left(),r.animate(e)}else r.debug("Side already visible",o)},right:function(){if(!r.is.complete()||r.is.animating()||a.allowRepeats)if(r.is.animating())r.queue("flip right");else{r.debug("Flipping right",o);var e=r.get.transform.right();r.set.stageSize(),r.stage.right(),r.animate(e)}else r.debug("Side already visible",o)}
vendor: 5,263 bytes, line 1
1,over:function(){!r.is.complete()||r.is.animating()||a.allowRepeats?r.is.animating()?r.queue("flip over"):(r.debug("Flipping over",o),r.set.stageSize(),r.stage.behind(),r.animate(r.get.transform.over())):r.debug("Side already visible",o)},back:function(){!r.is.complete()||r.is.animating()||a.allowRepeats?r.is.animating()?r.queue("flip back"):(r.debug("Flipping back",o),r.set.stageSize(),r.stage.behind(),r.animate(r.get.transform.back())):r.debug("Side already visible",o)}},get:{transform:{up:function(){return{transform:"translateY("+-(n.outerHeight(!0)-o.outerHeight(!0))/2+"px) translateZ("+-n.outerHeight(!0)/2+"px) rotateX(-90deg)"}},down:function(){return{transform:"translateY("+-(n.outerHeight(!0)-o.outerHeight(!0))/2+"px) translateZ("+-n.outerHeight(!0)/2+"px) rotateX(90deg)"}},left:function(){return{transform:"translateX("+-(n.outerWidth(!0)-o.outerWidth(!0))/2+"px) translateZ("+-n.outerWidth(!0)/2+"px) rotateY(90deg)"}},right:function(){return{transform:"translateX("+-(n.outerWidth(!0)-o.outerWidth(!0))/2+"px) translateZ("+-n.outerWidth(!0)/2+"px) rotateY(-90deg)"}},over:function(){return{transform:"translateX("+-(n.outerWidth(!0)-o.outerWidth(!0))/2+"px) rotateY(180deg)"}},back:function(){return{transform:"translateX("+-(n.outerWidth(!0)-o.outerWidth(!0))/2+"px) rotateY(-180deg)"}}},transitionEvent:function(){var e,t=P.createElement("element"),i={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(e in i)if(t.style[e]!==A)return i[e]},nextSide:function(){return 0<n.next(s.side).length?n.next(s.side):d.find(s.side).first()}},stage:{above:function(){var e={origin:(n.outerHeight(!0)-o.outerHeight(!0))/2,depth:{active:o.outerHeight(!0)/2,next:n.outerHeight(!0)/2}};r.verbose("Setting the initial animation position as above",o,e),h.css({transform:"translateZ(-"+e.depth.active+"px)"}),n.css({transform:"rotateY(0deg) translateZ("+e.depth.active+"px)"}),o.addClass(l.animating).css({top:e.origin+"px",transform:"rotateX(90deg) translateZ("+e.depth.next+"px)"})},below:function(){var e={origin:(n.outerHeight(!0)-o.outerHeight(!0))/2,depth:{active:o.outerHeight(!0)/2,next:n.outerHeight(!0)/2}};r.verbose("Setting the initial animation position as below",o,e),h.css({transform:"translateZ(-"+e.depth.active+"px)"}),n.css({transform:"rotateY(0deg) translateZ("+e.depth.active+"px)"}),o.addClass(l.animating).css({top:e.origin+"px",transform:"rotateX(-90deg) translateZ("+e.depth.next+"px)"})},left:function(){var e=n.outerWidth(!0),t=o.outerWidth(!0),i={origin:(e-t)/2,depth:{active:t/2,next:e/2}};r.verbose("Setting the initial animation position as left",o,i),h.css({transform:"translateZ(-"+i.depth.active+"px)"}),n.css({transform:"rotateY(0deg) translateZ("+i.depth.active+"px)"}),o.addClass(l.animating).css({left:i.origin+"px",transform:"rotateY(-90deg) translateZ("+i.depth.next+"px)"})},right:function(){var e=n.outerWidth(!0),t=o.outerWidth(!0),i={origin:(e-t)/2,depth:{active:t/2,next:e/2}};r.verbose("Setting the initial animation position as left",o,i),h.css({transform:"translateZ(-"+i.depth.active+"px)"}),n.css({transform:"rotateY(0deg) translateZ("+i.depth.active+"px)"}),o.addClass(l.animating).css({left:i.origin+"px",transform:"rotateY(90deg) translateZ("+i.depth.next+"px)"})},behind:function(){var e=n.outerWidth(!0),t=o.outerWidth(!0),i={origin:(e-t)/2,depth:{active:t/2,next:e/2}};r.verbose("Setting the initial animation position as behind",o,i),n.css({transform:"rotateY(0deg)"}),o.addClass(l.animating).css({left:i.origin+"px",transform:"rotateY(-180deg)"})}},setting:function(e,t){if(r.debug("Changing setting",e,t),M.isPlainObject(e))M.extend(!0,a,e);else{if(t===A)return a[e];M.isPlainObject(a[e])?M.extend(!0,a[e],t):a[e]=t}},internal:function(e,t){if(M.isPlainObject(e))M.extend(!0,r,e);else{if(t===A)return r[e];r[e]=t}},debug:function(){!a.silent&&a.debug&&(a.performance?r.performance.log(arguments):(r.debug=Function.prototype.bind.call(console.info,console,a.name+":"),r.debug.apply(console,arguments)))},verbose:function(){!a.silent&&a.verbose&&a.debug&&(a.performance?r.performance.log(arguments):(r.verbose=Function.prototype.bind.call(console.info,console,a.name+":"),r.verbose.apply(console,arguments)))},error:function(){a.silent||(r.error=Function.prototype.bind.call(console.error,console,a.name+":"),r.error.apply(console,arguments))},performance:{log:function(e){var t,i;a.performance&&(i=(t=(new Date).getTime())-(x||t),x=t,T.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:m,"Execution Time":i})),clearTimeout(r.performance.timer),r.performance.timer=setTimeout(r.performance.display,500)},display:function(){var e=a.name+":",i=0;x=!1,clearTimeout(r.performance.timer),M.each(T,function(e,t){i+=t["Execution Time"]}),e+=" "+i+"ms",t&&(e+=" '"+t+"'"),1<y.length&&(e+=" ("+y.length+")"),(console.group!==A||console.table!==A)&&0<T.length&&(console.groupCollapsed(e),console.table?console.table(T):M.each(T,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),T=[]}},invoke:function(n,e,t){var o,r,i,a=g;return e=e||k,t=m||t,"string"==typeof n&&a!==A&&(n=n.split(/[\. ]/),o=n.length-1,M.each(n,function(e,t){var i=e!=o?t+n[e+1].charAt(0).toUpperCase()+n[e+1].slice(1):n;
vendor: 6,388 bytes, line 1
1if(M.isPlainObject(a[i])&&e!=o)a=a[i];else{if(a[i]!==A)return r=a[i],!1;if(!M.isPlainObject(a[t])||e==o)return a[t]!==A&&(r=a[t]),!1;a=a[t]}})),M.isFunction(r)?i=r.apply(t,e):r!==A&&(i=r),M.isArray(b)?b.push(i):b!==A?b=[b,i]:i!==A&&(b=i),r}},w?(g===A&&r.initialize(),r.invoke(S)):(g!==A&&g.invoke("destroy"),r.initialize())}),b!==A?b:this},M.fn.shape.settings={name:"Shape",silent:!1,debug:!1,verbose:!1,jitter:0,performance:!0,namespace:"shape",width:"initial",height:"initial",beforeChange:function(){},onChange:function(){},allowRepeats:!1,duration:!1,error:{side:"You tried to switch to a side that does not exist.",method:"The method you called is not defined"},className:{animating:"animating",hidden:"hidden",loading:"loading",active:"active"},selector:{sides:".sides",side:".side"}}}(jQuery,window,document),function(I,R,H,N){"use strict";R=void 0!==R&&R.Math==Math?R:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),I.fn.sidebar=function(x){var T,e=I(this),S=I(R),w=I(H),k=I("html"),C=I("head"),M=e.selector||"",P=(new Date).getTime(),A=[],E=x,D="string"==typeof E,O=[].slice.call(arguments,1),L=R.requestAnimationFrame||R.mozRequestAnimationFrame||R.webkitRequestAnimationFrame||R.msRequestAnimationFrame||function(e){setTimeout(e,0)};return e.each(function(){var a,s,e,t,l,c,u=I.isPlainObject(x)?I.extend(!0,{},I.fn.sidebar.settings,x):I.extend({},I.fn.sidebar.settings),i=u.selector,r=u.className,n=u.namespace,o=u.regExp,d=u.error,h="."+n,p="module-"+n,f=I(this),m=I(u.context),g=f.children(i.sidebar),v=(m.children(i.fixed),m.children(i.pusher)),b=this,y=f.data(p);c={initialize:function(){c.debug("Initializing sidebar",x),c.create.id(),l=c.get.transitionEvent(),u.delaySetup?L(c.setup.layout):c.setup.layout(),L(function(){c.setup.cache()}),c.instantiate()},instantiate:function(){c.verbose("Storing instance of module",c),y=c,f.data(p,c)},create:{id:function(){e=(Math.random().toString(16)+"000000000").substr(2,8),s="."+e,c.verbose("Creating unique id for element",e)}},destroy:function(){c.verbose("Destroying previous module for",f),f.off(h).removeData(p),c.is.ios()&&c.remove.ios(),m.off(s),S.off(s),w.off(s)},event:{clickaway:function(e){var t=0<v.find(e.target).length||v.is(e.target),i=m.is(e.target);t&&(c.verbose("User clicked on dimmed page"),c.hide()),i&&(c.verbose("User clicked on dimmable context (scaled out page)"),c.hide())},touch:function(e){},containScroll:function(e){b.scrollTop<=0&&(b.scrollTop=1),b.scrollTop+b.offsetHeight>=b.scrollHeight&&(b.scrollTop=b.scrollHeight-b.offsetHeight-1)},scroll:function(e){0===I(e.target).closest(i.sidebar).length&&e.preventDefault()}},bind:{clickaway:function(){c.verbose("Adding clickaway events to context",m),u.closable&&m.on("click"+s,c.event.clickaway).on("touchend"+s,c.event.clickaway)},scrollLock:function(){u.scrollLock&&(c.debug("Disabling page scroll"),S.on("DOMMouseScroll"+s,c.event.scroll)),c.verbose("Adding events to contain sidebar scroll"),w.on("touchmove"+s,c.event.touch),f.on("scroll"+h,c.event.containScroll)}},unbind:{clickaway:function(){c.verbose("Removing clickaway events from context",m),m.off(s)},scrollLock:function(){c.verbose("Removing scroll lock from page"),w.off(s),S.off(s),f.off("scroll"+h)}},add:{inlineCSS:function(){var e,t=c.cache.width||f.outerWidth(),i=c.cache.height||f.outerHeight(),n=c.is.rtl(),o=c.get.direction(),r={left:t,right:-t,top:i,bottom:-i};n&&(c.verbose("RTL detected, flipping widths"),r.left=-t,r.right=t),e="<style>","left"===o||"right"===o?(c.debug("Adding CSS rules for animation distance",t),e+=" .ui.visible."+o+".sidebar ~ .fixed, .ui.visible."+o+".sidebar ~ .pusher {   -webkit-transform: translate3d("+r[o]+"px, 0, 0);           transform: translate3d("+r[o]+"px, 0, 0); }"):"top"!==o&&"bottom"!=o||(e+=" .ui.visible."+o+".sidebar ~ .fixed, .ui.visible."+o+".sidebar ~ .pusher {   -webkit-transform: translate3d(0, "+r[o]+"px, 0);           transform: translate3d(0, "+r[o]+"px, 0); }"),c.is.ie()&&("left"===o||"right"===o?(c.debug("Adding CSS rules for animation distance",t),e+=" body.pushable > .ui.visible."+o+".sidebar ~ .pusher:after {   -webkit-transform: translate3d("+r[o]+"px, 0, 0);           transform: translate3d("+r[o]+"px, 0, 0); }"):"top"!==o&&"bottom"!=o||(e+=" body.pushable > .ui.visible."+o+".sidebar ~ .pusher:after {   -webkit-transform: translate3d(0, "+r[o]+"px, 0);           transform: translate3d(0, "+r[o]+"px, 0); }"),e+=" body.pushable > .ui.visible.left.sidebar ~ .ui.visible.right.sidebar ~ .pusher:after, body.pushable > .ui.visible.right.sidebar ~ .ui.visible.left.sidebar ~ .pusher:after {   -webkit-transform: translate3d(0px, 0, 0);           transform: translate3d(0px, 0, 0); }"),a=I(e+="</style>").appendTo(C),c.debug("Adding sizing css to head",a)}},refresh:function(){c.verbose("Refreshing selector cache"),m=I(u.context),g=m.children(i.sidebar),v=m.children(i.pusher),m.children(i.fixed),c.clear.cache()},refreshSidebars:function(){c.verbose("Refreshing other sidebars"),g=m.children(i.sidebar)},repaint:function(){c.verbose("Forcing repaint event"),b.style.display="none",b.offsetHeight,b.scrollTop=b.scrollTop,b.style.display=""},setup:{cache:function(){c.cache={width:f.outerWidth(),height:f.outerHeight(),rtl:"rtl"==f.css("direction")}},layout:function(){0===m.children(i.pusher).length&&(c.debug("Adding wrapper element for sidebar"),c.error(d.pusher),v=I('<div class="pusher" />'),m.children().not(i.omitted).not(g).wrapAll(v),c.refresh()),0!==f.nextAll(i.pusher).length&&f.nextAll(i.pusher)[0]===v[0]||(c.debug("Moved sidebar to correct parent element"),c.error(d.movedSidebar,b),f.detach().prependTo(m),c.refresh()),c.clear.cache(),c.set.pushable(),c.set.direction()}},attachEvents:function(e,t){var i=I(e);t=I.isFunction(c[t])?c[t]:c.toggle,0<i.length?(c.debug("Attaching sidebar events to element",e,t),i.on("click"+h,t)):c.error(d.notFound,e)},show:function(e){if(e=I.isFunction(e)?e:function(){},c.is.hidden()){if(c.refreshSidebars(),u.overlay&&(c.error(d.overlay),u.transition="overlay"),c.refresh(),c.othersActive())if(c.debug("Other sidebars currently visible"),u.exclusive){if("overlay"!=u.transition)return void c.hideOthers(c.show);c.hideOthers()}else u.transition="overlay";c.pushPage(function(){e.call(b),u.onShow.call(b)}),u.onChange.call(b),u.onVisible.call(b)}else c.debug("Sidebar is already visible")},hide:function(e){e=I.isFunction(e)?e:function(){}
vendor: 4,815 bytes, line 1
1,(c.is.visible()||c.is.animating())&&(c.debug("Hiding sidebar",e),c.refreshSidebars(),c.pullPage(function(){e.call(b),u.onHidden.call(b)}),u.onChange.call(b),u.onHide.call(b))},othersAnimating:function(){return 0<g.not(f).filter("."+r.animating).length},othersVisible:function(){return 0<g.not(f).filter("."+r.visible).length},othersActive:function(){return c.othersVisible()||c.othersAnimating()},hideOthers:function(e){var t=g.not(f).filter("."+r.visible),i=t.length,n=0;e=e||function(){},t.sidebar("hide",function(){++n==i&&e()})},toggle:function(){c.verbose("Determining toggled direction"),c.is.hidden()?c.show():c.hide()},pushPage:function(t){var e,i,n,o=c.get.transition(),r="overlay"===o||c.othersActive()?f:v;t=I.isFunction(t)?t:function(){},"scale down"==u.transition&&c.scrollToTop(),c.set.transition(o),c.repaint(),e=function(){c.bind.clickaway(),c.add.inlineCSS(),c.set.animating(),c.set.visible()},i=function(){c.set.dimmed()},n=function(e){e.target==r[0]&&(r.off(l+s,n),c.remove.animating(),c.bind.scrollLock(),t.call(b))},r.off(l+s),r.on(l+s,n),L(e),u.dimPage&&!c.othersVisible()&&L(i)},pullPage:function(t){var e,i,n=c.get.transition(),o="overlay"==n||c.othersActive()?f:v;t=I.isFunction(t)?t:function(){},c.verbose("Removing context push state",c.get.direction()),c.unbind.clickaway(),c.unbind.scrollLock(),e=function(){c.set.transition(n),c.set.animating(),c.remove.visible(),u.dimPage&&!c.othersVisible()&&v.removeClass(r.dimmed)},i=function(e){e.target==o[0]&&(o.off(l+s,i),c.remove.animating(),c.remove.transition(),c.remove.inlineCSS(),("scale down"==n||u.returnScroll&&c.is.mobile())&&c.scrollBack(),t.call(b))},o.off(l+s),o.on(l+s,i),L(e)},scrollToTop:function(){c.verbose("Scrolling to top of page to avoid animation issues"),t=I(R).scrollTop(),f.scrollTop(0),R.scrollTo(0,0)},scrollBack:function(){c.verbose("Scrolling back to original page position"),R.scrollTo(0,t)},clear:{cache:function(){c.verbose("Clearing cached dimensions"),c.cache={}}},set:{ios:function(){k.addClass(r.ios)},pushed:function(){m.addClass(r.pushed)},pushable:function(){m.addClass(r.pushable)},dimmed:function(){v.addClass(r.dimmed)},active:function(){f.addClass(r.active)},animating:function(){f.addClass(r.animating)},transition:function(e){e=e||c.get.transition(),f.addClass(e)},direction:function(e){e=e||c.get.direction(),f.addClass(r[e])},visible:function(){f.addClass(r.visible)},overlay:function(){f.addClass(r.overlay)}},remove:{inlineCSS:function(){c.debug("Removing inline css styles",a),a&&0<a.length&&a.remove()},ios:function(){k.removeClass(r.ios)},pushed:function(){m.removeClass(r.pushed)},pushable:function(){m.removeClass(r.pushable)},active:function(){f.removeClass(r.active)},animating:function(){f.removeClass(r.animating)},transition:function(e){e=e||c.get.transition(),f.removeClass(e)},direction:function(e){e=e||c.get.direction(),f.removeClass(r[e])},visible:function(){f.removeClass(r.visible)},overlay:function(){f.removeClass(r.overlay)}},get:{direction:function(){return f.hasClass(r.top)?r.top:f.hasClass(r.right)?r.right:f.hasClass(r.bottom)?r.bottom:r.left},transition:function(){var e,t=c.get.direction();return e=c.is.mobile()?"auto"==u.mobileTransition?u.defaultTransition.mobile[t]:u.mobileTransition:"auto"==u.transition?u.defaultTransition.computer[t]:u.transition,c.verbose("Determined transition",e),e},transitionEvent:function(){var e,t=H.createElement("element"),i={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(e in i)if(t.style[e]!==N)return i[e]}},is:{ie:function(){return!R.ActiveXObject&&"ActiveXObject"in R||"ActiveXObject"in R},ios:function(){var e=navigator.userAgent,t=e.match(o.ios),i=e.match(o.mobileChrome);return!(!t||i||(c.verbose("Browser was found to be iOS",e),0))},mobile:function(){var e=navigator.userAgent;return e.match(o.mobile)?(c.verbose("Browser was found to be mobile",e),!0):(c.verbose("Browser is not mobile, using regular transition",e),!1)},hidden:function(){return!c.is.visible()},visible:function(){return f.hasClass(r.visible)},open:function(){return c.is.visible()},closed:function(){return c.is.hidden()},vertical:function(){return f.hasClass(r.top)},animating:function(){return m.hasClass(r.animating)},rtl:function(){return c.cache.rtl===N&&(c.cache.rtl="rtl"==f.css("direction")),c.cache.rtl}},setting:function(e,t){if(c.debug("Changing setting",e,t),I.isPlainObject(e))I.extend(!0,u,e);else{if(t===N)return u[e];I.isPlainObject(u[e])?I.extend(!0,u[e],t):u[e]=t}},internal:function(e,t){if(I.isPlainObject(e))I.extend(!0,c,e);else{if(t===N)return c[e];c[e]=t}},debug:function(){!u.silent&&u.debug&&(u.performance?c.performance.log(arguments):(c.debug=Function.prototype.bind.call(console.info,console,u.name+":"),c.debug.apply(console,arguments)))}
vendor: 6,664 bytes, line 1
1,verbose:function(){!u.silent&&u.verbose&&u.debug&&(u.performance?c.performance.log(arguments):(c.verbose=Function.prototype.bind.call(console.info,console,u.name+":"),c.verbose.apply(console,arguments)))},error:function(){u.silent||(c.error=Function.prototype.bind.call(console.error,console,u.name+":"),c.error.apply(console,arguments))},performance:{log:function(e){var t,i;u.performance&&(i=(t=(new Date).getTime())-(P||t),P=t,A.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:b,"Execution Time":i})),clearTimeout(c.performance.timer),c.performance.timer=setTimeout(c.performance.display,500)},display:function(){var e=u.name+":",i=0;P=!1,clearTimeout(c.performance.timer),I.each(A,function(e,t){i+=t["Execution Time"]}),e+=" "+i+"ms",M&&(e+=" '"+M+"'"),(console.group!==N||console.table!==N)&&0<A.length&&(console.groupCollapsed(e),console.table?console.table(A):I.each(A,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),A=[]}},invoke:function(n,e,t){var o,r,i,a=y;return e=e||O,t=b||t,"string"==typeof n&&a!==N&&(n=n.split(/[\. ]/),o=n.length-1,I.each(n,function(e,t){var i=e!=o?t+n[e+1].charAt(0).toUpperCase()+n[e+1].slice(1):n;if(I.isPlainObject(a[i])&&e!=o)a=a[i];else{if(a[i]!==N)return r=a[i],!1;if(!I.isPlainObject(a[t])||e==o)return a[t]!==N?r=a[t]:c.error(d.method,n),!1;a=a[t]}})),I.isFunction(r)?i=r.apply(t,e):r!==N&&(i=r),I.isArray(T)?T.push(i):T!==N?T=[T,i]:i!==N&&(T=i),r}},D?(y===N&&c.initialize(),c.invoke(E)):(y!==N&&c.invoke("destroy"),c.initialize())}),T!==N?T:this},I.fn.sidebar.settings={name:"Sidebar",namespace:"sidebar",silent:!1,debug:!1,verbose:!1,performance:!0,transition:"auto",mobileTransition:"auto",defaultTransition:{computer:{left:"uncover",right:"uncover",top:"overlay",bottom:"overlay"},mobile:{left:"uncover",right:"uncover",top:"overlay",bottom:"overlay"}},context:"body",exclusive:!1,closable:!0,dimPage:!0,scrollLock:!1,returnScroll:!1,delaySetup:!1,duration:500,onChange:function(){},onShow:function(){},onHide:function(){},onHidden:function(){},onVisible:function(){},className:{active:"active",animating:"animating",dimmed:"dimmed",ios:"ios",pushable:"pushable",pushed:"pushed",right:"right",top:"top",left:"left",bottom:"bottom",visible:"visible"},selector:{fixed:".fixed",omitted:"script, link, style, .ui.modal, .ui.dimmer, .ui.nag, .ui.fixed",pusher:".pusher",sidebar:".ui.sidebar"},regExp:{ios:/(iPad|iPhone|iPod)/g,mobileChrome:/(CriOS)/g,mobile:/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|(hpw|web)OS|Fennec|Minimo|Opera M(obi|ini)|Blazer|Dolfin|Dolphin|Skyfire|Zune/g},error:{method:"The method you called is not defined.",pusher:"Had to add pusher element. For optimal performance make sure body content is inside a pusher element",movedSidebar:"Had to move sidebar. For optimal performance make sure sidebar and pusher are direct children of your body tag",overlay:"The overlay setting is no longer supported, use animation: overlay",notFound:"There were no elements that matched the specified selector"}}}(jQuery,window,document),function(C,M,P,A){"use strict";M=void 0!==M&&M.Math==Math?M:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),C.fn.sticky=function(v){var b,e=C(this),y=e.selector||"",x=(new Date).getTime(),T=[],S=v,w="string"==typeof S,k=[].slice.call(arguments,1);return e.each(function(){var n,o,e,t,d,h=C.isPlainObject(v)?C.extend(!0,{},C.fn.sticky.settings,v):C.extend({},C.fn.sticky.settings),i=h.className,r=h.namespace,a=h.error,s="."+r,l="module-"+r,c=C(this),u=C(M),p=C(h.scrollContext),f=(c.selector,c.data(l)),m=M.requestAnimationFrame||M.mozRequestAnimationFrame||M.webkitRequestAnimationFrame||M.msRequestAnimationFrame||function(e){setTimeout(e,0)},g=this;d={initialize:function(){d.determineContainer(),d.determineContext(),d.verbose("Initializing sticky",h,n),d.save.positions(),d.checkErrors(),d.bind.events(),h.observeChanges&&d.observeChanges(),d.instantiate()},instantiate:function(){d.verbose("Storing instance of module",d),f=d,c.data(l,d)},destroy:function(){d.verbose("Destroying previous instance"),d.reset(),e&&e.disconnect(),t&&t.disconnect(),u.off("load"+s,d.event.load).off("resize"+s,d.event.resize),p.off("scrollchange"+s,d.event.scrollchange),c.removeData(l)},observeChanges:function(){"MutationObserver"in M&&(e=new MutationObserver(d.event.documentChanged),t=new MutationObserver(d.event.changed),e.observe(P,{childList:!0,subtree:!0}),t.observe(g,{childList:!0,subtree:!0}),t.observe(o[0],{childList:!0,subtree:!0}),d.debug("Setting up mutation observer",t))},determineContainer:function(){n=h.container?C(h.container):c.offsetParent()},determineContext:function(){0!==(o=h.context?C(h.context):n).length||d.error(a.invalidContext,h.context,c)},checkErrors:function(){if(d.is.hidden()&&d.error(a.visible,c),d.cache.element.height>d.cache.context.height)return d.reset(),void d.error(a.elementSize,c)},bind:{events:function(){u.on("load"+s,d.event.load).on("resize"+s,d.event.resize),p.off("scroll"+s).on("scroll"+s,d.event.scroll).on("scrollchange"+s,d.event.scrollchange)}},event:{changed:function(e){clearTimeout(d.timer),d.timer=setTimeout(function(){d.verbose("DOM tree modified, updating sticky menu",e),d.refresh()},100)},documentChanged:function(e){[].forEach.call(e,function(e){e.removedNodes&&[].forEach.call(e.removedNodes,function(e){(e==g||0<C(e).find(g).length)&&(d.debug("Element removed from DOM, tearing down events"),d.destroy())})})},load:function(){d.verbose("Page contents finished loading"),m(d.refresh)},resize:function(){d.verbose("Window resized"),m(d.refresh)},scroll:function(){m(function(){p.triggerHandler("scrollchange"+s,p.scrollTop())})},scrollchange:function(e,t){d.stick(t),h.onScroll.call(g)}},refresh:function(e){d.reset(),h.context||d.determineContext(),e&&d.determineContainer(),d.save.positions(),d.stick(),h.onReposition.call(g)},supports:{sticky:function(){var e=C("<div/>");return e[0],e.addClass(i.supported),e.css("position").match("sticky")}},save:{lastScroll:function(e){d.lastScroll=e},elementScroll:function(e){d.elementScroll=e},positions:function(){var e={height:p.height()},t={margin:{top:parseInt(c.css("margin-top"),10),bottom:parseInt(c.css("margin-bottom"),10)},offset:c.offset(),width:c.outerWidth(),height:c.outerHeight()},i={offset:o.offset(),height:o.outerHeight()};n.outerHeight(),d.is.standardScroll()||(d.debug("Non-standard scroll. Removing scroll offset from element offset"),e.top=p.scrollTop(),e.left=p.scrollLeft(),t.offset.top+=e.top,i.offset.top+=e.top,t.offset.left+=e.left,i.offset.left+=e.left),d.cache={fits:t.height+h.offset<=e.height,sameHeight:t.height==i.height,scrollC
vendor: 8,152 bytes, line 1
1ontext:{height:e.height},element:{margin:t.margin,top:t.offset.top-t.margin.top,left:t.offset.left,width:t.width,height:t.height,bottom:t.offset.top+t.height},context:{top:i.offset.top,height:i.height,bottom:i.offset.top+i.height}},d.set.containerSize(),d.stick(),d.debug("Caching element positions",d.cache)}},get:{direction:function(e){var t="down";return e=e||p.scrollTop(),d.lastScroll!==A&&(d.lastScroll<e?t="down":d.lastScroll>e&&(t="up")),t},scrollChange:function(e){return e=e||p.scrollTop(),d.lastScroll?e-d.lastScroll:0},currentElementScroll:function(){return d.elementScroll?d.elementScroll:d.is.top()?Math.abs(parseInt(c.css("top"),10))||0:Math.abs(parseInt(c.css("bottom"),10))||0},elementScroll:function(e){e=e||p.scrollTop();var t=d.cache.element,i=d.cache.scrollContext,n=d.get.scrollChange(e),o=t.height-i.height+h.offset,r=d.get.currentElementScroll(),a=r+n;return d.cache.fits||a<0?0:o<a?o:a}},remove:{lastScroll:function(){delete d.lastScroll},elementScroll:function(e){delete d.elementScroll},minimumSize:function(){n.css("min-height","")},offset:function(){c.css("margin-top","")}},set:{offset:function(){d.verbose("Setting offset on element",h.offset),c.css("margin-top",h.offset)},containerSize:function(){var e=n.get(0).tagName;"HTML"===e||"body"==e?d.determineContainer():Math.abs(n.outerHeight()-d.cache.context.height)>h.jitter&&(d.debug("Context has padding, specifying exact height for container",d.cache.context.height),n.css({height:d.cache.context.height}))},minimumSize:function(){var e=d.cache.element;n.css("min-height",e.height)},scroll:function(e){d.debug("Setting scroll on element",e),d.elementScroll!=e&&(d.is.top()&&c.css("bottom","").css("top",-e),d.is.bottom()&&c.css("top","").css("bottom",e))},size:function(){0!==d.cache.element.height&&0!==d.cache.element.width&&(g.style.setProperty("width",d.cache.element.width+"px","important"),g.style.setProperty("height",d.cache.element.height+"px","important"))}},is:{standardScroll:function(){return p[0]==M},top:function(){return c.hasClass(i.top)},bottom:function(){return c.hasClass(i.bottom)},initialPosition:function(){return!d.is.fixed()&&!d.is.bound()},hidden:function(){return!c.is(":visible")},bound:function(){return c.hasClass(i.bound)},fixed:function(){return c.hasClass(i.fixed)}},stick:function(e){var t=e||p.scrollTop(),i=d.cache,n=i.fits,o=i.sameHeight,r=i.element,a=i.scrollContext,s=i.context,l=d.is.bottom()&&h.pushing?h.bottomOffset:h.offset,c=(e={top:t+l,bottom:t+l+a.height},d.get.direction(e.top),n?0:d.get.elementScroll(e.top)),u=!n;0!==r.height&&!o&&(d.is.initialPosition()?e.top>=s.bottom?(d.debug("Initial element position is bottom of container"),d.bindBottom()):e.top>r.top&&(r.height+e.top-c>=s.bottom?(d.debug("Initial element position is bottom of container"),d.bindBottom()):(d.debug("Initial element position is fixed"),d.fixTop())):d.is.fixed()?d.is.top()?e.top<=r.top?(d.debug("Fixed element reached top of container"),d.setInitialPosition()):r.height+e.top-c>=s.bottom?(d.debug("Fixed element reached bottom of container"),d.bindBottom()):u&&(d.set.scroll(c),d.save.lastScroll(e.top),d.save.elementScroll(c)):d.is.bottom()&&(e.bottom-r.height<=r.top?(d.debug("Bottom fixed rail has reached top of container"),d.setInitialPosition()):e.bottom>=s.bottom?(d.debug("Bottom fixed rail has reached bottom of container"),d.bindBottom()):u&&(d.set.scroll(c),d.save.lastScroll(e.top),d.save.elementScroll(c))):d.is.bottom()&&(e.top<=r.top?(d.debug("Jumped from bottom fixed to top fixed, most likely used home/end button"),d.setInitialPosition()):h.pushing?d.is.bound()&&e.bottom<=s.bottom&&(d.debug("Fixing bottom attached element to bottom of browser."),d.fixBottom()):d.is.bound()&&e.top<=s.bottom-r.height&&(d.debug("Fixing bottom attached element to top of browser."),d.fixTop())))},bindTop:function(){d.debug("Binding element to top of parent container"),d.remove.offset(),c.css({left:"",top:"",marginBottom:""}).removeClass(i.fixed).removeClass(i.bottom).addClass(i.bound).addClass(i.top),h.onTop.call(g),h.onUnstick.call(g)},bindBottom:function(){d.debug("Binding element to bottom of parent container"),d.remove.offset(),c.css({left:"",top:""}).removeClass(i.fixed).removeClass(i.top).addClass(i.bound).addClass(i.bottom),h.onBottom.call(g),h.onUnstick.call(g)},setInitialPosition:function(){d.debug("Returning to initial position"),d.unfix(),d.unbind()},fixTop:function(){d.debug("Fixing element to top of page"),h.setSize&&d.set.size(),d.set.minimumSize(),d.set.offset(),c.css({left:d.cache.element.left,bottom:"",marginBottom:""}).removeClass(i.bound).removeClass(i.bottom).addClass(i.fixed).addClass(i.top),h.onStick.call(g)},fixBottom:function(){d.debug("Sticking element to bottom of page"),h.setSize&&d.set.size(),d.set.minimumSize(),d.set.offset(),c.css({left:d.cache.element.left,bottom:"",marginBottom:""}).removeClass(i.bound).removeClass(i.top).addClass(i.fixed).addClass(i.bottom),h.onStick.call(g)},unbind:function(){d.is.bound()&&(d.debug("Removing container bound position on element"),d.remove.offset(),c.removeClass(i.bound).removeClass(i.top).removeClass(i.bottom))},unfix:function(){d.is.fixed()&&(d.debug("Removing fixed position on element"),d.remove.minimumSize(),d.remove.offset(),c.removeClass(i.fixed).removeClass(i.top).removeClass(i.bottom),h.onUnstick.call(g))},reset:function(){d.debug("Resetting elements position"),d.unbind(),d.unfix(),d.resetCSS(),d.remove.offset(),d.remove.lastScroll()},resetCSS:function(){c.css({width:"",height:""}),n.css({height:""})},setting:function(e,t){if(C.isPlainObject(e))C.extend(!0,h,e);else{if(t===A)return h[e];h[e]=t}},internal:function(e,t){if(C.isPlainObject(e))C.extend(!0,d,e);else{if(t===A)return d[e];d[e]=t}},debug:function(){!h.silent&&h.debug&&(h.performance?d.performance.log(arguments):(d.debug=Function.prototype.bind.call(console.info,console,h.name+":"),d.debug.apply(console,arguments)))},verbose:function(){!h.silent&&h.verbose&&h.debug&&(h.performance?d.performance.log(arguments):(d.verbose=Function.prototype.bind.call(console.info,console,h.name+":"),d.verbose.apply(console,arguments)))},error:function(){h.silent||(d.error=Function.prototype.bind.call(console.error,console,h.name+":"),d.error.apply(console,arguments))},performance:{log:function(e){var t,i;h.performance&&(i=(t=(new Date).getTime())-(x||t),x=t,T.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:g,"Execution Time":i})),clearTimeout(d.performance.timer),d.performance.timer=setTimeout(d.performance.display,0)},display:function(){var e=h.name+":",i=0;x=!1,clearTimeout(d.performance.timer),C.each(T,function(e,t){i+=t["Execution Time"]}),e+=" "+i+"ms",y&&(e+=" '"+y+"'"),(console.group!==A||console.table!==A)&&0<T.length&&(console.groupCollapsed(e),console.table?console.table(T):C.each(T,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),T=[]}},invoke:function(n,e,t){var o,r,i,a=f;return e=e||k,t=g||t,"string"==typeof n&&a!==A&&(n=n.split(/[\. ]/),o=n.length-1,C.each(n,function(e,t){var i=e!=o?t+n[e+1].charAt(0).toUpperCase()+n[e+1].slice(1):n;if(C.isPlainObject(a[i])&&e!=o)a=a[i];else{if(a[i]!==A)return r=a[i],!1;if(!C.isPlainObject(a[t])||e==o)return a[t]!==A&&(r=a[t]),!1;a=a[t]}})),C.isFunction(r)?i=r.apply(t,e):r!==A&&(i=r),C.isArray(b)?b.push(i):b!==A?b=[b,i]:i!==A&&(b=i),r}},w?(f===A&&d.initialize(),d.invoke(S)):(f!==A&&f.invoke("destroy"),d.initialize())}),b!==A?b:this},C.fn.sticky.settings={name:"Sticky",namespace:"sticky",silent:!1,debug:!1,verbose:!0,performance:!0,pushing:!1,context:!1,container:!1,scrollContext:M,offset:0,bottomOffset:0,jitter:5,setSize:!0,observeChanges:!1,onReposition:function(){},onScroll:function(){},onStick:function(){},onUnstick:function(){},onTop:function(){},onBottom:function(){},error:{container:"Sticky element must be inside a relative container",visible:"Element is hidden, you must call refresh after element becomes visible. Use silent setting to surpress this warning in production.",method:"The method you called is not defined.",invalidContext:"Context specified does not exist",elementSize:"Sticky element is larger than its container, cannot create sticky."}
vendor: 5,814 bytes, line 1
1,className:{bound:"bound",fixed:"fixed",supported:"native",top:"top",bottom:"bottom"}}}(jQuery,window,document),function(E,D,O,L){"use strict";D=void 0!==D&&D.Math==Math?D:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),E.fn.tab=function(a){var c,u=E.isFunction(this)?E(D):E(this),d=u.selector||"",h=(new Date).getTime(),p=[],f=a,M="string"==typeof f,P=[].slice.call(arguments,1),A=!1;return u.each(function(){var m,r,g,v,b,y,x=E.isPlainObject(a)?E.extend(!0,{},E.fn.tab.settings,a):E.extend({},E.fn.tab.settings),T=x.className,S=x.metadata,t=x.selector,w=x.error,e="."+x.namespace,i="module-"+x.namespace,k=E(this),n={},C=!0,o=0,s=this,l=k.data(i);b={initialize:function(){b.debug("Initializing tab menu item",k),b.fix.callbacks(),b.determineTabs(),b.debug("Determining tabs",x.context,r),x.auto&&b.set.auto(),b.bind.events(),x.history&&!A&&(b.initializeHistory(),A=!0),b.instantiate()},instantiate:function(){b.verbose("Storing instance of module",b),l=b,k.data(i,b)},destroy:function(){b.debug("Destroying tabs",k),k.removeData(i).off(e)},bind:{events:function(){E.isWindow(s)||(b.debug("Attaching tab activation events to element",k),k.on("click"+e,b.event.click))}},determineTabs:function(){var e;"parent"===x.context?(0<k.closest(t.ui).length?(e=k.closest(t.ui),b.verbose("Using closest UI element as parent",e)):e=k,m=e.parent(),b.verbose("Determined parent element for creating context",m)):x.context?(m=E(x.context),b.verbose("Using selector for tab context",x.context,m)):m=E("body"),x.childrenOnly?(r=m.children(t.tabs),b.debug("Searching tab context children for tabs",m,r)):(r=m.find(t.tabs),b.debug("Searching tab context for tabs",m,r))},fix:{callbacks:function(){E.isPlainObject(a)&&(a.onTabLoad||a.onTabInit)&&(a.onTabLoad&&(a.onLoad=a.onTabLoad,delete a.onTabLoad,b.error(w.legacyLoad,a.onLoad)),a.onTabInit&&(a.onFirstLoad=a.onTabInit,delete a.onTabInit,b.error(w.legacyInit,a.onFirstLoad)),x=E.extend(!0,{},E.fn.tab.settings,a))}},initializeHistory:function(){if(b.debug("Initializing page state"),E.address===L)return b.error(w.state),!1;if("state"==x.historyType){if(b.debug("Using HTML5 to manage state"),!1===x.path)return b.error(w.path),!1;E.address.history(!0).state(x.path)}E.address.bind("change",b.event.history.change)},event:{click:function(e){var t=E(this).data(S.tab);t!==L?(x.history?(b.verbose("Updating page state",e),E.address.value(t)):(b.verbose("Changing tab",e),b.changeTab(t)),e.preventDefault()):b.debug("No tab specified")},history:{change:function(e){var t=e.pathNames.join("/")||b.get.initialPath(),i=x.templates.determineTitle(t)||!1;b.performance.display(),b.debug("History change event",t,e),y=e,t!==L&&b.changeTab(t),i&&E.address.title(i)}}},refresh:function(){g&&(b.debug("Refreshing tab",g),b.changeTab(g))},cache:{read:function(e){return e!==L&&n[e]},add:function(e,t){e=e||g,b.debug("Adding cached content for",e),n[e]=t},remove:function(e){e=e||g,b.debug("Removing cached content for",e),delete n[e]}},set:{auto:function(){var e="string"==typeof x.path?x.path.replace(/\/$/,"")+"/{$tab}":"/{$tab}";b.verbose("Setting up automatic tab retrieval from server",e),E.isPlainObject(x.apiSettings)?x.apiSettings.url=e:x.apiSettings={url:e}},loading:function(e){var t=b.get.tabElement(e);t.hasClass(T.loading)||(b.verbose("Setting loading state for",t),t.addClass(T.loading).siblings(r).removeClass(T.active+" "+T.loading),0<t.length&&x.onRequest.call(t[0],e))},state:function(e){E.address.value(e)}},changeTab:function(d){var h=D.history&&D.history.pushState&&x.ignoreFirstLoad&&C,p=x.auto||E.isPlainObject(x.apiSettings),f=p&&!h?b.utilities.pathToArray(d):b.get.defaultPathArray(d);d=b.utilities.arrayToPath(f),E.each(f,function(e,t){var i,n,o,r,a=f.slice(0,e+1),s=b.utilities.arrayToPath(a),l=b.is.tab(s),c=e+1==f.length,u=b.get.tabElement(s);if(b.verbose("Looking for tab",t),l){if(b.verbose("Tab was found",t),g=s,v=b.utilities.filterArray(f,a),c?r=!0:(n=f.slice(0,e+2),o=b.utilities.arrayToPath(n),(r=!b.is.tab(o))&&b.verbose("Tab parameters found",n)),r&&p)return h?(b.debug("Ignoring remote content on first tab load",s),C=!1,b.cache.add(d,u.html()),b.activate.all(s),x.onFirstLoad.call(u[0],s,v,y),x.onLoad.call(u[0],s,v,y)):(b.activate.navigation(s),b.fetch.content(s,d)),!1;b.debug("Opened local tab",s),b.activate.all(s),b.cache.read(s)||(b.cache.add(s,!0),b.debug("First time tab loaded calling tab init"),x.onFirstLoad.call(u[0],s,v,y)),x.onLoad.call(u[0],s,v,y)}else{if(-1!=d.search("/")||""===d)return b.error(w.missingTab,k,m,s),!1;if(s=(i=E("#"+d+', a[name="'+d+'"]')).closest("[data-tab]").data(S.tab),u=b.get.tabElement(s),i&&0<i.length&&s)return b.debug("Anchor link used, opening parent tab",u,i),u.hasClass(T.active)||setTimeout(function(){b.scrollTo(i)},0),b.activate.all(s),b.cache.read(s)||(b.cache.add(s,!0),b.debug("First time tab loaded calling tab init"),x.onFirstLoad.call(u[0],s,v,y)),x.onLoad.call(u[0],s,v,y),!1}})},scrollTo:function(e){var t=!!(e&&0<e.length)&&e.offset().top;!1!==t&&(b.debug("Forcing scroll to an in-page link in a hidden tab",t,e),E(O).scrollTop(t))},update:{content:function(e,t,i){var n=b.get.tabElement(e),o=n[0];i=i!==L?i:x.evaluateScripts,"string"==typeof x.cacheType&&"dom"==x.cacheType.toLowerCase()&&"string"!=typeof t?n.empty().append(E(t).clone(!0)):i?(b.debug("Updating HTML and evaluating inline scripts",e,t),n.html(t)):(b.debug("Updating HTML",e,t),o.innerHTML=t)}},fetch:{content:function(t,i){var e,n,o=b.get.tabElement(t),r={dataType:"html",encodeParameters:!1,on:"now",cache:x.alwaysRefresh,headers:{"X-Remote":!0},onSuccess:function(e){"response"==x.cacheType&&b.cache.add(i,e),b.update.content(t,e),t==g?(b.debug("Content loaded",t),b.activate.tab(t)):b.debug("Content loaded in background",t),x.onFirstLoad.call(o[0],t,v,y),x.onLoad.call(o[0],t,v,y),x.loadOnce?b.cac
vendor: 4,161 bytes, line 1
1he.add(i,!0):"string"==typeof x.cacheType&&"dom"==x.cacheType.toLowerCase()&&0<o.children().length?setTimeout(function(){var e=o.children().clone(!0);e=e.not("script"),b.cache.add(i,e)},0):b.cache.add(i,o.html())},urlData:{tab:i}},a=o.api("get request")||!1,s=a&&"pending"===a.state();i=i||t,n=b.cache.read(i),x.cache&&n?(b.activate.tab(t),b.debug("Adding cached content",i),x.loadOnce||("once"==x.evaluateScripts?b.update.content(t,n,!1):b.update.content(t,n)),x.onLoad.call(o[0],t,v,y)):s?(b.set.loading(t),b.debug("Content is already loading",i)):E.api!==L?(e=E.extend(!0,{},x.apiSettings,r),b.debug("Retrieving remote content",i,e),b.set.loading(t),o.api(e)):b.error(w.api)}},activate:{all:function(e){b.activate.tab(e),b.activate.navigation(e)},tab:function(e){var t=b.get.tabElement(e),i="siblings"==x.deactivate?t.siblings(r):r.not(t),n=t.hasClass(T.active);b.verbose("Showing tab content for",t),n||(t.addClass(T.active),i.removeClass(T.active+" "+T.loading),0<t.length&&x.onVisible.call(t[0],e))},navigation:function(e){var t=b.get.navElement(e),i="siblings"==x.deactivate?t.siblings(u):u.not(t),n=t.hasClass(T.active);b.verbose("Activating tab navigation for",t,e),n||(t.addClass(T.active),i.removeClass(T.active+" "+T.loading))}},deactivate:{all:function(){b.deactivate.navigation(),b.deactivate.tabs()},navigation:function(){u.removeClass(T.active)},tabs:function(){r.removeClass(T.active+" "+T.loading)}},is:{tab:function(e){return e!==L&&0<b.get.tabElement(e).length}},get:{initialPath:function(){return u.eq(0).data(S.tab)||r.eq(0).data(S.tab)},path:function(){return E.address.value()},defaultPathArray:function(e){return b.utilities.pathToArray(b.get.defaultPath(e))},defaultPath:function(e){var t=u.filter("[data-"+S.tab+'^="'+e+'/"]').eq(0).data(S.tab)||!1;if(t){if(b.debug("Found default tab",t),o<x.maxDepth)return o++,b.get.defaultPath(t);b.error(w.recursion)}else b.debug("No default tabs found for",e,r);return o=0,e},navElement:function(e){return e=e||g,u.filter("[data-"+S.tab+'="'+e+'"]')},tabElement:function(e){var t,i,n,o;return e=e||g,n=b.utilities.pathToArray(e),o=b.utilities.last(n),t=r.filter("[data-"+S.tab+'="'+e+'"]'),i=r.filter("[data-"+S.tab+'="'+o+'"]'),0<t.length?t:i},tab:function(){return g}},utilities:{filterArray:function(e,t){return E.grep(e,function(e){return-1==E.inArray(e,t)})},last:function(e){return!!E.isArray(e)&&e[e.length-1]},pathToArray:function(e){return e===L&&(e=g),"string"==typeof e?e.split("/"):[e]},arrayToPath:function(e){return!!E.isArray(e)&&e.join("/")}},setting:function(e,t){if(b.debug("Changing setting",e,t),E.isPlainObject(e))E.extend(!0,x,e);else{if(t===L)return x[e];E.isPlainObject(x[e])?E.extend(!0,x[e],t):x[e]=t}},internal:function(e,t){if(E.isPlainObject(e))E.extend(!0,b,e);else{if(t===L)return b[e];b[e]=t}},debug:function(){!x.silent&&x.debug&&(x.performance?b.performance.log(arguments):(b.debug=Function.prototype.bind.call(console.info,console,x.name+":"),b.debug.apply(console,arguments)))},verbose:function(){!x.silent&&x.verbose&&x.debug&&(x.performance?b.performance.log(arguments):(b.verbose=Function.prototype.bind.call(console.info,console,x.name+":"),b.verbose.apply(console,arguments)))},error:function(){x.silent||(b.error=Function.prototype.bind.call(console.error,console,x.name+":"),b.error.apply(console,arguments))},performance:{log:function(e){var t,i;x.performance&&(i=(t=(new Date).getTime())-(h||t),h=t,p.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:s,"Execution Time":i})),clearTimeout(b.performance.timer),b.performance.timer=setTimeout(b.performance.display,500)},display:function(){var e=x.name+":",i=0;h=!1,clearTimeout(b.performance.timer),E.each(p,function(e,t){i+=t["Execution Time"]}),e+=" "+i+"ms",d&&(e+=" '"+d+"'"),(console.group!==L||console.table!==L)&&0<p.length&&(console.groupCollapsed(e),console.table?console.table(p):E.each(p,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),p=[]}},invoke:function(n,e,t){var o,r,i,a=l;return e=e||P,t=s||t,"string"==typeof n&&a!==L&&(n=n.split(/[\. ]/),o=n.length-1,E.each(n,function(e,t){var i=e!=o?t+n[e+1].charAt(0).toUpperCase()+n[e+1].slice(1):n;
vendor: 5,153 bytes, line 1
1if(E.isPlainObject(a[i])&&e!=o)a=a[i];else{if(a[i]!==L)return r=a[i],!1;if(!E.isPlainObject(a[t])||e==o)return a[t]!==L?r=a[t]:b.error(w.method,n),!1;a=a[t]}})),E.isFunction(r)?i=r.apply(t,e):r!==L&&(i=r),E.isArray(c)?c.push(i):c!==L?c=[c,i]:i!==L&&(c=i),r}},M?(l===L&&b.initialize(),b.invoke(f)):(l!==L&&l.invoke("destroy"),b.initialize())}),c!==L?c:this},E.tab=function(){E(D).tab.apply(this,arguments)},E.fn.tab.settings={name:"Tab",namespace:"tab",silent:!1,debug:!1,verbose:!1,performance:!0,auto:!1,history:!1,historyType:"hash",path:!1,context:!1,childrenOnly:!1,maxDepth:25,deactivate:"siblings",alwaysRefresh:!1,cache:!0,loadOnce:!1,cacheType:"response",ignoreFirstLoad:!1,apiSettings:!1,evaluateScripts:"once",onFirstLoad:function(e,t,i){},onLoad:function(e,t,i){},onVisible:function(e,t,i){},onRequest:function(e,t,i){},templates:{determineTitle:function(e){}},error:{api:"You attempted to load content without API module",method:"The method you called is not defined",missingTab:"Activated tab cannot be found. Tabs are case-sensitive.",noContent:"The tab you specified is missing a content url.",path:"History enabled, but no path was specified",recursion:"Max recursive depth reached",legacyInit:"onTabInit has been renamed to onFirstLoad in 2.0, please adjust your code.",legacyLoad:"onTabLoad has been renamed to onLoad in 2.0. Please adjust your code",state:"History requires Asual's Address library <https://github.com/asual/jquery-address>"},metadata:{tab:"tab",loaded:"loaded",promise:"promise"},className:{loading:"loading",active:"active"},selector:{tabs:".ui.tab",ui:".ui"}}}(jQuery,window,document),function(T,e,S,w){"use strict";e=void 0!==e&&e.Math==Math?e:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),T.fn.transition=function(){var c,a=T(this),f=a.selector||"",m=(new Date).getTime(),g=[],v=arguments,b=v[0],y=[].slice.call(arguments,1),x="string"==typeof b;return e.requestAnimationFrame||e.mozRequestAnimationFrame||e.webkitRequestAnimationFrame||e.msRequestAnimationFrame,a.each(function(n){var u,s,t,d,i,o,e,r,h,p=T(this),l=this;(h={initialize:function(){u=h.get.settings.apply(l,v),d=u.className,t=u.error,i=u.metadata,r="."+u.namespace,e="module-"+u.namespace,s=p.data(e)||h,o=h.get.animationEndEvent(),x&&(x=h.invoke(b)),!1===x&&(h.verbose("Converted arguments into settings object",u),u.interval?h.delay(u.animate):h.animate(),h.instantiate())},instantiate:function(){h.verbose("Storing instance of module",h),s=h,p.data(e,s)},destroy:function(){h.verbose("Destroying previous module for",l),p.removeData(e)},refresh:function(){h.verbose("Refreshing display type on next animation"),delete h.displayType},forceRepaint:function(){h.verbose("Forcing element repaint");var e=p.parent(),t=p.next();0===t.length?p.detach().appendTo(e):p.detach().insertBefore(t)},repaint:function(){h.verbose("Repainting element"),l.offsetWidth},delay:function(e){var t,i=h.get.animationDirection();i||(i=h.can.transition()?h.get.direction():"static"),e=e!==w?e:u.interval,t="auto"==u.reverse&&i==d.outward||1==u.reverse?(a.length-n)*u.interval:n*u.interval,h.debug("Delaying animation by",t),setTimeout(h.animate,t)},animate:function(e){if(u=e||u,!h.is.supported())return h.error(t.support),!1;if(h.debug("Preparing animation",u.animation),h.is.animating()){if(u.queue)return!u.allowRepeats&&h.has.direction()&&h.is.occurring()&&!0!==h.queuing?h.debug("Animation is currently occurring, preventing queueing same animation",u.animation):h.queue(u.animation),!1;if(!u.allowRepeats&&h.is.occurring())return h.debug("Animation is already occurring, will not execute repeated animation",u.animation),!1;h.debug("New animation started, completing previous early",u.animation),s.complete()}h.can.animate()?h.set.animating(u.animation):h.error(t.noAnimation,u.animation,l)},reset:function(){h.debug("Resetting animation to beginning conditions"),h.remove.animationCallbacks(),h.restore.conditions(),h.remove.animating()},queue:function(e){h.debug("Queueing animation of",e),h.queuing=!0,p.one(o+".queue"+r,function(){h.queuing=!1,h.repaint(),h.animate.apply(this,u)})},complete:function(e){h.debug("Animation complete",u.animation),h.remove.completeCallback(),h.remove.failSafe(),h.is.looping()||(h.is.outward()?(h.verbose("Animation is outward, hiding element"),h.restore.conditions(),h.hide()):h.is.inward()?(h.verbose("Animation is outward, showing element"),h.restore.conditions(),h.show()):(h.verbose("Static animation completed"),h.restore.conditions(),u.onComplete.call(l)))},force:{visible:function(){var e=p.attr("style"),t=h.get.userStyle(),i=h.get.displayType(),n=t+"display: "+i+" !important;",o=p.css("display"),r=e===w||""===e;o!==i?(h.verbose("Overriding default display to show element",i),p.attr("style",n)):r&&p.removeAttr("style")},hidden:function(){var e=p.attr("style"),t=p.css("display"),i=e===w||""===e;"none"===t||h.is.hidden()?i&&p.removeAttr("style"):(h.verbose("Overriding default display to hide element"),p.css("display","none"))}},has:{direction:function(e){var i=!1;return"string"==typeof(e=e||u.animation)&&(e=e.split(" "),T.each(e,function(e,t){t!==d.inward&&t!==d.outward||(i=!0)})),i}
vendor: 7,081 bytes, line 1
1,inlineDisplay:function(){var e=p.attr("style")||"";return T.isArray(e.match(/display.*?;/,""))}},set:{animating:function(e){var t;h.remove.completeCallback(),e=e||u.animation,t=h.get.animationClass(e),h.save.animation(t),h.force.visible(),h.remove.hidden(),h.remove.direction(),h.start.animation(t)},duration:function(e,t){((t="number"==typeof(t=t||u.duration)?t+"ms":t)||0===t)&&(h.verbose("Setting animation duration",t),p.css({"animation-duration":t}))},direction:function(e){(e=e||h.get.direction())==d.inward?h.set.inward():h.set.outward()},looping:function(){h.debug("Transition set to loop"),p.addClass(d.looping)},hidden:function(){p.addClass(d.transition).addClass(d.hidden)},inward:function(){h.debug("Setting direction to inward"),p.removeClass(d.outward).addClass(d.inward)},outward:function(){h.debug("Setting direction to outward"),p.removeClass(d.inward).addClass(d.outward)},visible:function(){p.addClass(d.transition).addClass(d.visible)}},start:{animation:function(e){e=e||h.get.animationClass(),h.debug("Starting tween",e),p.addClass(e).one(o+".complete"+r,h.complete),u.useFailSafe&&h.add.failSafe(),h.set.duration(u.duration),u.onStart.call(l)}},save:{animation:function(e){h.cache||(h.cache={}),h.cache.animation=e},displayType:function(e){"none"!==e&&p.data(i.displayType,e)},transitionExists:function(e,t){T.fn.transition.exists[e]=t,h.verbose("Saving existence of transition",e,t)}},restore:{conditions:function(){var e=h.get.currentAnimation();e&&(p.removeClass(e),h.verbose("Removing animation class",h.cache)),h.remove.duration()}},add:{failSafe:function(){var e=h.get.duration();h.timer=setTimeout(function(){p.triggerHandler(o)},e+u.failSafeDelay),h.verbose("Adding fail safe timer",h.timer)}},remove:{animating:function(){p.removeClass(d.animating)},animationCallbacks:function(){h.remove.queueCallback(),h.remove.completeCallback()},queueCallback:function(){p.off(".queue"+r)},completeCallback:function(){p.off(".complete"+r)},display:function(){p.css("display","")},direction:function(){p.removeClass(d.inward).removeClass(d.outward)},duration:function(){p.css("animation-duration","")},failSafe:function(){h.verbose("Removing fail safe timer",h.timer),h.timer&&clearTimeout(h.timer)},hidden:function(){p.removeClass(d.hidden)},visible:function(){p.removeClass(d.visible)},looping:function(){h.debug("Transitions are no longer looping"),h.is.looping()&&(h.reset(),p.removeClass(d.looping))},transition:function(){p.removeClass(d.visible).removeClass(d.hidden)}},get:{settings:function(e,t,i){return"object"==typeof e?T.extend(!0,{},T.fn.transition.settings,e):"function"==typeof i?T.extend({},T.fn.transition.settings,{animation:e,onComplete:i,duration:t}):"string"==typeof t||"number"==typeof t?T.extend({},T.fn.transition.settings,{animation:e,duration:t}):"object"==typeof t?T.extend({},T.fn.transition.settings,t,{animation:e}):"function"==typeof t?T.extend({},T.fn.transition.settings,{animation:e,onComplete:t}):T.extend({},T.fn.transition.settings,{animation:e})},animationClass:function(e){var t=e||u.animation,i=h.can.transition()&&!h.has.direction()?h.get.direction()+" ":"";return d.animating+" "+d.transition+" "+i+t},currentAnimation:function(){return!(!h.cache||h.cache.animation===w)&&h.cache.animation},currentDirection:function(){return h.is.inward()?d.inward:d.outward},direction:function(){return h.is.hidden()||!h.is.visible()?d.inward:d.outward},animationDirection:function(e){var i;return"string"==typeof(e=e||u.animation)&&(e=e.split(" "),T.each(e,function(e,t){t===d.inward?i=d.inward:t===d.outward&&(i=d.outward)})),i||!1},duration:function(e){return!1===(e=e||u.duration)&&(e=p.css("animation-duration")||0),"string"==typeof e?-1<e.indexOf("ms")?parseFloat(e):1e3*parseFloat(e):e},displayType:function(e){return e=e===w||e,u.displayType?u.displayType:(e&&p.data(i.displayType)===w&&h.can.transition(!0),p.data(i.displayType))},userStyle:function(e){return(e=e||p.attr("style")||"").replace(/display.*?;/,"")},transitionExists:function(e){return T.fn.transition.exists[e]},animationStartEvent:function(){var e,t=S.createElement("div"),i={animation:"animationstart",OAnimation:"oAnimationStart",MozAnimation:"mozAnimationStart",WebkitAnimation:"webkitAnimationStart"};for(e in i)if(t.style[e]!==w)return i[e];return!1},animationEndEvent:function(){var e,t=S.createElement("div"),i={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"mozAnimationEnd",WebkitAnimation:"webkitAnimationEnd"};for(e in i)if(t.style[e]!==w)return i[e];return!1}},can:{transition:function(e){var t,i,n,o,r,a,s=u.animation,l=h.get.transitionExists(s),c=h.get.displayType(!1);if(l===w||e){if(h.verbose("Determining whether animation exists"),t=p.attr("class"),i=p.prop("tagName"),o=(n=T("<"+i+" />").addClass(t).insertAfter(p)).addClass(s).removeClass(d.inward).removeClass(d.outward).addClass(d.animating).addClass(d.transition).css("animationName"),r=n.addClass(d.inward).css("animationName"),c||(c=n.attr("class",t).removeAttr("style").removeClass(d.hidden).removeClass(d.visible).show().css("display"),h.verbose("Determining final display state",c),h.save.displayType(c)),n.remove(),o!=r)h.debug("Direction exists for animation",s),a=!0;else{if("none"==o||!o)return void h.debug("No animation defined in css",s);h.debug("Static animation found",s,c),a=!1}h.save.transitionExists(s,a)}return l!==w?l:a},animate:function(){return h.can.transition()!==w}},is:{animating:function(){return p.hasClass(d.animating)},inward:function(){return p.hasClass(d.inward)},outward:function(){return p.hasClass(d.outward)},looping:function(){return p.hasClass(d.looping)},occurring:function(e){return e="."+(e=e||u.animation).replace(" ","."),0<p.filter(e).length},visible:function(){return p.is(":visible")},hidden:function(){return"hidden"===p.css("visibility")},supported:function(){return!1!==o}},hide:function(){h.verbose("Hiding element"),h.is.animating()&&h.reset(),l.blur(),h.remove.display(),h.remove.visible(),h.set.hidden(),h.force.hidden(),u.onHide.call(l),u.onComplete.call(l)},show:function(e){h.verbose("Showing element",e),h.remove.hidden(),h.set.visible(),h.force.visible(),u.onShow.call(l),u.onComplete.call(l)},toggle:function(){h.is.visible()?h.hide():h.show()},stop:function(){h.debug("Stopping current animation"),p.triggerHandler(o)},stopAll:function(){h.debug("Stopping all animation"),h.remove.queueCallback(),p.triggerHandler(o)},clear:{queue:function(){h.debug("Clearing animation queue"),h.remove.queueCallback()}},enable:function(){h.verbose("Starting animation"),p.removeClass(d.disabled)},disable:function(){h.debug("Stopping animation"),p.addClass(d.disabled)},setting:function(e,t){if(h.debug("Changing setting",e,t),T.isPlainObject(e))T.extend(!0,u,e);else{if(t===w)return u[e];T.isPlainObject(u[e])?T.extend(!0,u[e],t):u[e]=t}},internal:function(e,t){if(T.isPlainObject(e))T.extend(!0,h,e);else{if(t===w)return h[e];h[e]=t}},debug:function(){!u.silent&&u.debug&&(u.performance?h.performance.log(arguments):(h.debug=Function.prototype.bind.call(console.info,console,u.name+":"),h.debug.apply(console,arguments)))}
vendor: 5,699 bytes, line 1
1,verbose:function(){!u.silent&&u.verbose&&u.debug&&(u.performance?h.performance.log(arguments):(h.verbose=Function.prototype.bind.call(console.info,console,u.name+":"),h.verbose.apply(console,arguments)))},error:function(){u.silent||(h.error=Function.prototype.bind.call(console.error,console,u.name+":"),h.error.apply(console,arguments))},performance:{log:function(e){var t,i;u.performance&&(i=(t=(new Date).getTime())-(m||t),m=t,g.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:l,"Execution Time":i})),clearTimeout(h.performance.timer),h.performance.timer=setTimeout(h.performance.display,500)},display:function(){var e=u.name+":",i=0;m=!1,clearTimeout(h.performance.timer),T.each(g,function(e,t){i+=t["Execution Time"]}),e+=" "+i+"ms",f&&(e+=" '"+f+"'"),1<a.length&&(e+=" ("+a.length+")"),(console.group!==w||console.table!==w)&&0<g.length&&(console.groupCollapsed(e),console.table?console.table(g):T.each(g,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),g=[]}},invoke:function(n,e,t){var o,r,i,a=s;return e=e||y,t=l||t,"string"==typeof n&&a!==w&&(n=n.split(/[\. ]/),o=n.length-1,T.each(n,function(e,t){var i=e!=o?t+n[e+1].charAt(0).toUpperCase()+n[e+1].slice(1):n;if(T.isPlainObject(a[i])&&e!=o)a=a[i];else{if(a[i]!==w)return r=a[i],!1;if(!T.isPlainObject(a[t])||e==o)return a[t]!==w&&(r=a[t]),!1;a=a[t]}})),T.isFunction(r)?i=r.apply(t,e):r!==w&&(i=r),T.isArray(c)?c.push(i):c!==w?c=[c,i]:i!==w&&(c=i),r!==w&&r}}).initialize()}),c!==w?c:this},T.fn.transition.exists={},T.fn.transition.settings={name:"Transition",silent:!1,debug:!1,verbose:!1,performance:!0,namespace:"transition",interval:0,reverse:"auto",onStart:function(){},onComplete:function(){},onShow:function(){},onHide:function(){},useFailSafe:!0,failSafeDelay:100,allowRepeats:!1,displayType:!1,animation:"fade",duration:!1,queue:!0,metadata:{displayType:"display"},className:{animating:"animating",disabled:"disabled",hidden:"hidden",inward:"in",loading:"loading",looping:"looping",outward:"out",transition:"transition",visible:"visible"},error:{noAnimation:"Element is no longer attached to DOM. Unable to animate.  Use silent setting to surpress this warning in production.",repeated:"That animation is already occurring, cancelling repeated animation",method:"The method you called is not defined",support:"This browser does not support CSS animations"}}}(jQuery,window,document),function(A,E,e,D){"use strict";E=void 0!==E&&E.Math==Math?E:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),A.api=A.fn.api=function(x){var T,e=A.isFunction(this)?A(E):A(this),S=e.selector||"",w=(new Date).getTime(),k=[],C=x,M="string"==typeof C,P=[].slice.call(arguments,1);return e.each(function(){var r,a,i,e,s,l,c=A.isPlainObject(x)?A.extend(!0,{},A.fn.api.settings,x):A.extend({},A.fn.api.settings),t=c.namespace,n=c.metadata,o=c.selector,u=c.error,d=c.className,h="."+t,p="module-"+t,f=A(this),m=f.closest(o.form),g=c.stateContext?A(c.stateContext):f,v=this,b=g[0],y=f.data(p);l={initialize:function(){M||l.bind.events(),l.instantiate()},instantiate:function(){l.verbose("Storing instance of module",l),y=l,f.data(p,y)},destroy:function(){l.verbose("Destroying previous module for",v),f.removeData(p).off(h)},bind:{events:function(){var e=l.get.event();e?(l.verbose("Attaching API events to element",e),f.on(e+h,l.event.trigger)):"now"==c.on&&(l.debug("Querying API endpoint immediately"),l.query())}},decode:{json:function(e){if(e!==D&&"string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}},read:{cachedResponse:function(e){var t;if(E.Storage!==D)return t=sessionStorage.getItem(e),l.debug("Using cached response",e,t),l.decode.json(t);l.error(u.noStorage)}},write:{cachedResponse:function(e,t){t&&""===t?l.debug("Response empty, not caching",t):E.Storage!==D?(A.isPlainObject(t)&&(t=JSON.stringify(t)),sessionStorage.setItem(e,t),l.verbose("Storing cached response for url",e,t)):l.error(u.noStorage)}},query:function(){if(l.is.disabled())l.debug("Element is disabled API request aborted");else{if(l.is.loading()){if(!c.interruptRequests)return void l.debug("Cancelling request, previous request is still pending");l.debug("Interrupting previous request"),l.abort()}if(c.defaultData&&A.extend(!0,c.urlData,l.get.defaultData()),c.serializeForm&&(c.data=l.add.formData(c.data)),!1===(a=l.get.settings()))return l.cancelled=!0,void l.error(u.beforeSend);if(l.cancelled=!1,(i=l.get.templatedURL())||l.is.mocked()){if((i=l.add.urlData(i))||l.is.mocked()){if(a.url=c.base+i,r=A.extend(!0,{},c,{type:c.method||c.type,data:e,url:c.base+i,beforeSend:c.beforeXHR,success:function(){},failure:function(){},complete:function(){}}),l.debug("Querying URL",r.url),l.verbose("Using AJAX settings",r),"local"===c.cache&&l.read.cachedResponse(i))return l.debug("Response returned from local cache"),l.request=l.create.request(),void l.request.resolveWith(b,[l.read.cachedResponse(i)]);c.throttle?c.throttleFirstRequest||l.timer?(l.debug("Throttling request",c.throttle),clearTimeout(l.timer),l.timer=setTimeout(function(){l.timer&&delete l.timer,l.debug("Sending throttled request",e,r.method),l.send.request()},c.throttle)):(l.debug("Sending request",e,r.method),l.send.request(),l.timer=setTimeout(function(){},c.throttle)):(l.debug("Sending request",e,r.method),l.send.request())}}else l.error(u.missingURL)}},should:{removeError:function(){return!0===c.hideError||"auto"===c.hideError&&!l.is.form()}},is:{disabled:function(){return 0<f.filter(o.disabled).length},expectingJSON:function(){return"json"===c.dataType||"jsonp"===c.dataType},form:function(){return f.is("form")||g.is("form")},mocked:function(){return c.mockResponse||c.mockResponseAsync||c.response||c.responseAsync}
vendor: 9,331 bytes, line 1
1,input:function(){return f.is("input")},loading:function(){return!!l.request&&"pending"==l.request.state()},abortedRequest:function(e){return e&&e.readyState!==D&&0===e.readyState?(l.verbose("XHR request determined to be aborted"),!0):(l.verbose("XHR request was not aborted"),!1)},validResponse:function(e){return l.is.expectingJSON()&&A.isFunction(c.successTest)?(l.debug("Checking JSON returned success",c.successTest,e),c.successTest(e)?(l.debug("Response passed success test",e),!0):(l.debug("Response failed success test",e),!1)):(l.verbose("Response is not JSON, skipping validation",c.successTest,e),!0)}},was:{cancelled:function(){return l.cancelled||!1},succesful:function(){return l.request&&"resolved"==l.request.state()},failure:function(){return l.request&&"rejected"==l.request.state()},complete:function(){return l.request&&("resolved"==l.request.state()||"rejected"==l.request.state())}},add:{urlData:function(o,r){var e,t;return o&&(e=o.match(c.regExp.required),t=o.match(c.regExp.optional),r=r||c.urlData,e&&(l.debug("Looking for required URL variables",e),A.each(e,function(e,t){var i=-1!==t.indexOf("$")?t.substr(2,t.length-3):t.substr(1,t.length-2),n=A.isPlainObject(r)&&r[i]!==D?r[i]:f.data(i)!==D?f.data(i):g.data(i)!==D?g.data(i):r[i];if(n===D)return l.error(u.requiredParameter,i,o),o=!1;l.verbose("Found required variable",i,n),n=c.encodeParameters?l.get.urlEncodedValue(n):n,o=o.replace(t,n)})),t&&(l.debug("Looking for optional URL variables",e),A.each(t,function(e,t){var i=-1!==t.indexOf("$")?t.substr(3,t.length-4):t.substr(2,t.length-3),n=A.isPlainObject(r)&&r[i]!==D?r[i]:f.data(i)!==D?f.data(i):g.data(i)!==D?g.data(i):r[i];o=n!==D?(l.verbose("Optional variable Found",i,n),o.replace(t,n)):(l.verbose("Optional variable not found",i),-1!==o.indexOf("/"+t)?o.replace("/"+t,""):o.replace(t,""))}))),o},formData:function(e){var t=A.fn.serializeObject!==D,i=t?m.serializeObject():m.serialize();return e=e||c.data,A.isPlainObject(e)?t?(l.debug("Extending existing data with form data",e,i),A.extend(!0,{},e,i)):(l.error(u.missingSerialize),l.debug("Cant extend data. Replacing data with form data",e,i),i):(l.debug("Adding form data",i),i)}},send:{request:function(){l.set.loading(),l.request=l.create.request(),l.is.mocked()?l.mockedXHR=l.create.mockedXHR():l.xhr=l.create.xhr(),c.onRequest.call(b,l.request,l.xhr)}},event:{trigger:function(e){l.query(),"submit"!=e.type&&"click"!=e.type||e.preventDefault()},xhr:{always:function(){},done:function(e,t,i){var n=this,o=(new Date).getTime()-s,r=c.loadingDuration-o,a=!!A.isFunction(c.onResponse)&&(l.is.expectingJSON()?c.onResponse.call(n,A.extend(!0,{},e)):c.onResponse.call(n,e));r=0<r?r:0,a&&(l.debug("Modified API response in onResponse callback",c.onResponse,a,e),e=a),0<r&&l.debug("Response completed early delaying state change by",r),setTimeout(function(){l.is.validResponse(e)?l.request.resolveWith(n,[e,i]):l.request.rejectWith(n,[i,"invalid"])},r)},fail:function(e,t,i){var n=this,o=(new Date).getTime()-s,r=c.loadingDuration-o;0<(r=0<r?r:0)&&l.debug("Response completed early delaying state change by",r),setTimeout(function(){l.is.abortedRequest(e)?l.request.rejectWith(n,[e,"aborted",i]):l.request.rejectWith(n,[e,"error",t,i])},r)}},request:{done:function(e,t){l.debug("Successful API Response",e),"local"===c.cache&&i&&(l.write.cachedResponse(i,e),l.debug("Saving server response locally",l.cache)),c.onSuccess.call(b,e,f,t)},complete:function(e,t){var i,n;l.was.succesful()?(n=e,i=t):(i=e,n=l.get.responseFromXHR(i)),l.remove.loading(),c.onComplete.call(b,n,f,i)},fail:function(e,t,i){var n=l.get.responseFromXHR(e),o=l.get.errorFromRequest(n,t,i);if("aborted"==t)return l.debug("XHR Aborted (Most likely caused by page navigation or CORS Policy)",t,i),c.onAbort.call(b,t,f,e),!0;"invalid"==t?l.debug("JSON did not pass success test. A server-side error has most likely occurred",n):"error"==t&&e!==D&&(l.debug("XHR produced a server error",t,i),200!=e.status&&i!==D&&""!==i&&l.error(u.statusMessage+i,r.url),c.onError.call(b,o,f,e)),c.errorDuration&&"aborted"!==t&&(l.debug("Adding error state"),l.set.error(),l.should.removeError()&&setTimeout(l.remove.error,c.errorDuration)),l.debug("API Request failed",o,e),c.onFailure.call(b,n,f,e)}}},create:{request:function(){return A.Deferred().always(l.event.request.complete).done(l.event.request.done).fail(l.event.request.fail)},mockedXHR:function(){var e,t,i,n=c.mockResponse||c.response,o=c.mockResponseAsync||c.responseAsync;return i=A.Deferred().always(l.event.xhr.complete).done(l.event.xhr.done).fail(l.event.xhr.fail),n?(t=A.isFunction(n)?(l.debug("Using specified synchronous callback",n),n.call(b,a)):(l.debug("Using settings specified response",n),n),i.resolveWith(b,[t,!1,{responseText:t}])):A.isFunction(o)&&(e=function(e){l.debug("Async callback returned response",e),e?i.resolveWith(b,[e,!1,{responseText:e}]):i.rejectWith(b,[{responseText:e},!1,!1])},l.debug("Using specified async response callback",o),o.call(b,a,e)),i},xhr:function(){var e;return e=A.ajax(r).always(l.event.xhr.always).done(l.event.xhr.done).fail(l.event.xhr.fail),l.verbose("Created server request",e,r),e}},set:{error:function(){l.verbose("Adding error state to element",g),g.addClass(d.error)},loading:function(){l.verbose("Adding loading state to element",g),g.addClass(d.loading),s=(new Date).getTime()}},remove:{error:function(){l.verbose("Removing error state from element",g),g.removeClass(d.error)},loading:function(){l.verbose("Removing loading state from element",g),g.removeClass(d.loading)}},get:{responseFromXHR:function(e){return!!A.isPlainObject(e)&&(l.is.expectingJSON()?l.decode.json(e.responseText):e.responseText)},errorFromRequest:function(e,t,i){return A.isPlainObject(e)&&e.error!==D?e.error:c.error[t]!==D?c.error[t]:i},request:function(){return l.request||!1},xhr:function(){return l.xhr||!1},settings:function(){var e;return(e=c.beforeSend.call(b,c))&&(e.success!==D&&(l.debug("Legacy success callback detected",e),l.error(u.legacyParameters,e.success),e.onSuccess=e.success),e.failure!==D&&(l.debug("Legacy failure callback detected",e),l.error(u.legacyParameters,e.failure),e.onFailure=e.failure),e.complete!==D&&(l.debug("Legacy complete callback detected",e),l.error(u.legacyParameters,e.complete),e.onComplete=e.complete)),e===D&&l.error(u.noReturnedValue),!1===e?e:e!==D?A.extend(!0,{},e):A.extend(!0,{},c)},urlEncodedValue:function(e){var t=E.decodeURIComponent(e),i=E.encodeURIComponent(e);return t!==e?(l.debug("URL value is already encoded, avoiding double encoding",e),e):(l.verbose("Encoding value using encodeURIComponent",e,i),i)},defaultData:function(){var e={};return A.isWindow(v)||(l.is.input()?e.value=f.val():l.is.form()||(e.text=f.text())),e},event:function(){return A.isWindow(v)||"now"==c.on?(l.debug("API called without element, no events attached"),!1):"auto"==c.on?f.is("input")?v.oninput!==D?"input":v.onpropertychange!==D?"propertychange":"keyup":f.is("form")?"submit":"click":c.on},templatedURL:function(e){if(e=e||f.data(n.action)||c.action||!1,i=f.data(n.url)||c.url||!1)return l.debug("Using specified url",i),i;if(e){if(l.debug("Looking up url for action",e,c.api),c.api[e]===D&&!l.is.mocked())return void l.error(u.missingAction,c.action,c.api);i=c.api[e]}else l.is.form()&&(i=f.attr("action")||g.attr("action")||!1,l.debug("No url or action specified, defaulting to form action",i));return i}},abort:function(){var e=l.get.xhr();e&&"resolved"!==e.state()&&(l.debug("Cancelling API request"),e.abort())},reset:function(){l.remove.error(),l.remove.loading()},setting:function(e,t){if(l.debug("Changing setting",e,t),A.isPlainObject(e))A.extend(!0,c,e);else{if(t===D)return c[e];A.isPlainObject(c[e])?A.extend(!0,c[e],t):c[e]=t}},internal:function(e,t){if(A.isPlainObject(e))A.extend(!0,l,e);else{if(t===D)return l[e];l[e]=t}},debug:function(){!c.silent&&c.debug&&(c.performance?l.performance.log(arguments):(l.debug=Function.prototype.bind.call(console.info,console,c.name+":"),l.debug.apply(console,arguments)))},verbose:function(){!c.silent&&c.verbose&&c.debug&&(c.performance?l.performance.log(arguments):(l.verbose=Function.prototype.bind.call(console.info,console,c.name+":"),l.verbose.apply(console,arguments)))},error:function(){c.silent||(l.error=Function.prototype.bind.call(console.error,console,c.name+":"),l.error.apply(console,arguments))},performance:{log:function(e){var t,i;c.performance&&(i=(t=(new Date).getTime())-(w||t),w=t,k.push({Name:e[0],Arguments:[].slice.call(e,1)||"","Execution Time":i})),clearTimeout(l.performance.timer),l.performance.timer=setTimeout(l.performance.display,500)},display:function(){var e=c.name+":",i=0;w=!1,clearTimeout(l.performance.timer),A.each(k,function(e,t){i+=t["Execution Time"]}),e+=" "+i+"ms",S&&(e+=" '"+S+"'"),(console.group!==D||console.table!==D)&&0<k.length&&(console.groupCollapsed(e),console.table?console.table(k):A.each(k,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),k=[]}},invoke:function(n,e,t){var o,r,i,a=y;return e=e||P,t=v||t,"string"==typeof n&&a!==D&&(n=n.split(/[\. ]/),o=n.length-1,A.each(n,function(e,t){var i=e!=o?t+n[e+1].charAt(0).toUpperCase()+n[e+1].slice(1):n;if(A.isPlainObject(a[i])&&e!=o)a=a[i];else{if(a[i]!==D)return r=a[i],!1;if(!A.isPlainObject(a[t])||e==o)return a[t]!==D?r=a[t]:l.error(u.method,n),!1;a=a[t]}}
vendor: 5,228 bytes, line 1
1)),A.isFunction(r)?i=r.apply(t,e):r!==D&&(i=r),A.isArray(T)?T.push(i):T!==D?T=[T,i]:i!==D&&(T=i),r}},M?(y===D&&l.initialize(),l.invoke(C)):(y!==D&&y.invoke("destroy"),l.initialize())}),T!==D?T:this},A.api.settings={name:"API",namespace:"api",debug:!1,verbose:!1,performance:!0,api:{},cache:!0,interruptRequests:!0,on:"auto",stateContext:!1,loadingDuration:0,hideError:"auto",errorDuration:2e3,encodeParameters:!0,action:!1,url:!1,base:"",urlData:{},defaultData:!0,serializeForm:!1,throttle:0,throttleFirstRequest:!0,method:"get",data:{},dataType:"json",mockResponse:!1,mockResponseAsync:!1,response:!1,responseAsync:!1,beforeSend:function(e){return e},beforeXHR:function(e){},onRequest:function(e,t){},onResponse:!1,onSuccess:function(e,t){},onComplete:function(e,t){},onFailure:function(e,t){},onError:function(e,t){},onAbort:function(e,t){},successTest:!1,error:{beforeSend:"The before send function has aborted the request",error:"There was an error with your request",exitConditions:"API Request Aborted. Exit conditions met",JSONParse:"JSON could not be parsed during error handling",legacyParameters:"You are using legacy API success callback names",method:"The method you called is not defined",missingAction:"API action used but no url was defined",missingSerialize:"jquery-serialize-object is required to add form data to an existing data object",missingURL:"No URL specified for api event",noReturnedValue:"The beforeSend callback must return a settings object, beforeSend ignored.",noStorage:"Caching responses locally requires session storage",parseError:"There was an error parsing your request",requiredParameter:"Missing a required URL parameter: ",statusMessage:"Server gave an error: ",timeout:"Your request timed out"},regExp:{required:/\{\$*[A-z0-9]+\}/g,optional:/\{\/\$*[A-z0-9]+\}/g},className:{loading:"loading",error:"error"},selector:{disabled:".disabled",form:"form"},metadata:{action:"action",url:"url"}}}(jQuery,window,document),function(A,E,D,O){"use strict";E=void 0!==E&&E.Math==Math?E:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),A.fn.visibility=function(b){var y,e=A(this),x=e.selector||"",T=(new Date).getTime(),S=[],w=b,k="string"==typeof w,C=[].slice.call(arguments,1),M=e.length,P=0;return e.each(function(){var e,t,i,s,o=A.isPlainObject(b)?A.extend(!0,{},A.fn.visibility.settings,b):A.extend({},A.fn.visibility.settings),n=o.className,r=o.namespace,l=o.error,a=o.metadata,c="."+r,u="module-"+r,d=A(E),h=A(this),p=A(o.context),f=(h.selector,h.data(u)),m=E.requestAnimationFrame||E.mozRequestAnimationFrame||E.webkitRequestAnimationFrame||E.msRequestAnimationFrame||function(e){setTimeout(e,0)},g=this,v=!1;s={initialize:function(){s.debug("Initializing",o),s.setup.cache(),s.should.trackChanges()&&("image"==o.type&&s.setup.image(),"fixed"==o.type&&s.setup.fixed(),o.observeChanges&&s.observeChanges(),s.bind.events()),s.save.position(),s.is.visible()||s.error(l.visible,h),o.initialCheck&&s.checkVisibility(),s.instantiate()},instantiate:function(){s.debug("Storing instance",s),h.data(u,s),f=s},destroy:function(){s.verbose("Destroying previous module"),i&&i.disconnect(),t&&t.disconnect(),d.off("load"+c,s.event.load).off("resize"+c,s.event.resize),p.off("scroll"+c,s.event.scroll).off("scrollchange"+c,s.event.scrollchange),"fixed"==o.type&&(s.resetFixed(),s.remove.placeholder()),h.off(c).removeData(u)},observeChanges:function(){"MutationObserver"in E&&(t=new MutationObserver(s.event.contextChanged),i=new MutationObserver(s.event.changed),t.observe(D,{childList:!0,subtree:!0}),i.observe(g,{childList:!0,subtree:!0}),s.debug("Setting up mutation observer",i))},bind:{events:function(){s.verbose("Binding visibility events to scroll and resize"),o.refreshOnLoad&&d.on("load"+c,s.event.load),d.on("resize"+c,s.event.resize),p.off("scroll"+c).on("scroll"+c,s.event.scroll).on("scrollchange"+c,s.event.scrollchange)}},event:{changed:function(e){s.verbose("DOM tree modified, updating visibility calculations"),s.timer=setTimeout(function(){s.verbose("DOM tree modified, updating sticky menu"),s.refresh()},100)},contextChanged:function(e){[].forEach.call(e,function(e){e.removedNodes&&[].forEach.call(e.removedNodes,function(e){(e==g||0<A(e).find(g).length)&&(s.debug("Element removed from DOM, tearing down events"),s.destroy())})})},resize:function(){s.debug("Window resized"),o.refreshOnResize&&m(s.refresh)},load:function(){s.debug("Page finished loading"),m(s.refresh)},scroll:function(){o.throttle?(clearTimeout(s.timer),s.timer=setTimeout(function(){p.triggerHandler("scrollchange"+c,[p.scrollTop()])},o.throttle)):m(function(){p.triggerHandler("scrollchange"+c,[p.scrollTop()])})},scrollchange:function(e,t){s.checkVisibility(t)}},precache:function(e,t){e instanceof Array||(e=[e]);for(var i=e.length,n=0,o=[],r=D.createElement("img"),a=function(){++n>=e.length&&A.isFunction(t)&&t()};i--;)(r=D.createElement("img")).onload=a,r.onerror=a,r.src=e[i],o.push(r)},enableCallbacks:function(){s.debug("Allowing callbacks to occur"),v=!1},disableCallbacks:function(){s.debug("Disabling all callbacks temporarily"),v=!0},should:{trackChanges:function(){return k?(s.debug("One time query, no need to bind events"),!1):(s.debug("Callbacks being attached"),!0)}}
vendor: 12,112 bytes, line 1
1,setup:{cache:function(){s.cache={occurred:{},screen:{},element:{}}},image:function(){var e=h.data(a.src);e&&(s.verbose("Lazy loading image",e),o.once=!0,o.observeChanges=!1,o.onOnScreen=function(){s.debug("Image on screen",g),s.precache(e,function(){s.set.image(e,function(){++P==M&&o.onAllLoaded.call(this),o.onLoad.call(this)})})})},fixed:function(){s.debug("Setting up fixed"),o.once=!1,o.observeChanges=!1,o.initialCheck=!0,o.refreshOnLoad=!0,b.transition||(o.transition=!1),s.create.placeholder(),s.debug("Added placeholder",e),o.onTopPassed=function(){s.debug("Element passed, adding fixed position",h),s.show.placeholder(),s.set.fixed(),o.transition&&A.fn.transition!==O&&h.transition(o.transition,o.duration)},o.onTopPassedReverse=function(){s.debug("Element returned to position, removing fixed",h),s.hide.placeholder(),s.remove.fixed()}}},create:{placeholder:function(){s.verbose("Creating fixed position placeholder"),e=h.clone(!1).css("display","none").addClass(n.placeholder).insertAfter(h)}},show:{placeholder:function(){s.verbose("Showing placeholder"),e.css("display","block").css("visibility","hidden")}},hide:{placeholder:function(){s.verbose("Hiding placeholder"),e.css("display","none").css("visibility","")}},set:{fixed:function(){s.verbose("Setting element to fixed position"),h.addClass(n.fixed).css({position:"fixed",top:o.offset+"px",left:"auto",zIndex:o.zIndex}),o.onFixed.call(g)},image:function(e,t){if(h.attr("src",e),o.transition)if(A.fn.transition!==O){if(h.hasClass(n.visible))return void s.debug("Transition already occurred on this image, skipping animation");h.transition(o.transition,o.duration,t)}else h.fadeIn(o.duration,t);else h.show()}},is:{onScreen:function(){return s.get.elementCalculations().onScreen},offScreen:function(){return s.get.elementCalculations().offScreen},visible:function(){return!(!s.cache||!s.cache.element||0===s.cache.element.width&&0===s.cache.element.offset.top)},verticallyScrollableContext:function(){var e=p.get(0)!==E&&p.css("overflow-y");return"auto"==e||"scroll"==e},horizontallyScrollableContext:function(){var e=p.get(0)!==E&&p.css("overflow-x");return"auto"==e||"scroll"==e}},refresh:function(){s.debug("Refreshing constants (width/height)"),"fixed"==o.type&&s.resetFixed(),s.reset(),s.save.position(),o.checkOnRefresh&&s.checkVisibility(),o.onRefresh.call(g)},resetFixed:function(){s.remove.fixed(),s.remove.occurred()},reset:function(){s.verbose("Resetting all cached values"),A.isPlainObject(s.cache)&&(s.cache.screen={},s.cache.element={})},checkVisibility:function(e){s.verbose("Checking visibility of element",s.cache.element),!v&&s.is.visible()&&(s.save.scroll(e),s.save.calculations(),s.passed(),s.passingReverse(),s.topVisibleReverse(),s.bottomVisibleReverse(),s.topPassedReverse(),s.bottomPassedReverse(),s.onScreen(),s.offScreen(),s.passing(),s.topVisible(),s.bottomVisible(),s.topPassed(),s.bottomPassed(),o.onUpdate&&o.onUpdate.call(g,s.get.elementCalculations()))},passed:function(e,t){var i=s.get.elementCalculations();if(e&&t)o.onPassed[e]=t;else{if(e!==O)return s.get.pixelsPassed(e)>i.pixelsPassed;i.passing&&A.each(o.onPassed,function(e,t){i.bottomVisible||i.pixelsPassed>s.get.pixelsPassed(e)?s.execute(t,e):o.once||s.remove.occurred(t)})}},onScreen:function(e){var t=s.get.elementCalculations(),i=e||o.onOnScreen;if(e&&(s.debug("Adding callback for onScreen",e),o.onOnScreen=e),t.onScreen?s.execute(i,"onScreen"):o.once||s.remove.occurred("onScreen"),e!==O)return t.onOnScreen},offScreen:function(e){var t=s.get.elementCalculations(),i=e||o.onOffScreen;if(e&&(s.debug("Adding callback for offScreen",e),o.onOffScreen=e),t.offScreen?s.execute(i,"offScreen"):o.once||s.remove.occurred("offScreen"),e!==O)return t.onOffScreen},passing:function(e){var t=s.get.elementCalculations(),i=e||o.onPassing;if(e&&(s.debug("Adding callback for passing",e),o.onPassing=e),t.passing?s.execute(i,"passing"):o.once||s.remove.occurred("passing"),e!==O)return t.passing},topVisible:function(e){var t=s.get.elementCalculations(),i=e||o.onTopVisible,n="topVisible";if(e&&(s.debug("Adding callback for top visible",e),o.onTopVisible=e),t.topVisible?s.execute(i,n):o.once||s.remove.occurred(n),e===O)return t.topVisible},bottomVisible:function(e){var t=s.get.elementCalculations(),i=e||o.onBottomVisible,n="bottomVisible";if(e&&(s.debug("Adding callback for bottom visible",e),o.onBottomVisible=e),t.bottomVisible?s.execute(i,n):o.once||s.remove.occurred(n),e===O)return t.bottomVisible},topPassed:function(e){var t=s.get.elementCalculations(),i=e||o.onTopPassed;if(e&&(s.debug("Adding callback for top passed",e),o.onTopPassed=e),t.topPassed?s.execute(i,"topPassed"):o.once||s.remove.occurred("topPassed"),e===O)return t.topPassed},bottomPassed:function(e){var t=s.get.elementCalculations(),i=e||o.onBottomPassed,n="bottomPassed";if(e&&(s.debug("Adding callback for bottom passed",e),o.onBottomPassed=e),t.bottomPassed?s.execute(i,n):o.once||s.remove.occurred(n),e===O)return t.bottomPassed},passingReverse:function(e){var t=s.get.elementCalculations(),i=e||o.onPassingReverse,n="passingReverse";if(e&&(s.debug("Adding callback for passing reverse",e),o.onPassingReverse=e),t.passing?o.once||s.remove.occurred(n):s.get.occurred("passing")&&s.execute(i,n),e!==O)return!t.passing},topVisibleReverse:function(e){var t=s.get.elementCalculations(),i=e||o.onTopVisibleReverse,n="topVisibleReverse";if(e&&(s.debug("Adding callback for top visible reverse",e),o.onTopVisibleReverse=e),t.topVisible?o.once||s.remove.occurred(n):s.get.occurred("topVisible")&&s.execute(i,n),e===O)return!t.topVisible},bottomVisibleReverse:function(e){var t=s.get.elementCalculations(),i=e||o.onBottomVisibleReverse,n="bottomVisibleReverse";if(e&&(s.debug("Adding callback for bottom visible reverse",e),o.onBottomVisibleReverse=e),t.bottomVisible?o.once||s.remove.occurred(n):s.get.occurred("bottomVisible")&&s.execute(i,n),e===O)return!t.bottomVisible},topPassedReverse:function(e){var t=s.get.elementCalculations(),i=e||o.onTopPassedReverse,n="topPassedReverse";if(e&&(s.debug("Adding callback for top passed reverse",e),o.onTopPassedReverse=e),t.topPassed?o.once||s.remove.occurred(n):s.get.occurred("topPassed")&&s.execute(i,n),e===O)return!t.onTopPassed},bottomPassedReverse:function(e){var t=s.get.elementCalculations(),i=e||o.onBottomPassedReverse,n="bottomPassedReverse";if(e&&(s.debug("Adding callback for bottom passed reverse",e),o.onBottomPassedReverse=e),t.bottomPassed?o.once||s.remove.occurred(n):s.get.occurred("bottomPassed")&&s.execute(i,n),e===O)return!t.bottomPassed},execute:function(e,t){var i=s.get.elementCalculations(),n=s.get.screenCalculations();(e=e||!1)&&(o.continuous?(s.debug("Callback being called continuously",t,i),e.call(g,i,n)):s.get.occurred(t)||(s.debug("Conditions met",t,i),e.call(g,i,n))),s.save.occurred(t)},remove:{fixed:function(){s.debug("Removing fixed position"),h.removeClass(n.fixed).css({position:"",top:"",left:"",zIndex:""}),o.onUnfixed.call(g)},placeholder:function(){s.debug("Removing placeholder content"),e&&e.remove()},occurred:function(e){if(e){var t=s.cache.occurred;t[e]!==O&&!0===t[e]&&(s.debug("Callback can now be called again",e),s.cache.occurred[e]=!1)}else s.cache.occurred={}}},save:{calculations:function(){s.verbose("Saving all calculations necessary to determine positioning"),s.save.direction(),s.save.screenCalculations(),s.save.elementCalculations()},occurred:function(e){e&&(s.cache.occurred[e]!==O&&!0===s.cache.occurred[e]||(s.verbose("Saving callback occurred",e),s.cache.occurred[e]=!0))},scroll:function(e){e=e+o.offset||p.scrollTop()+o.offset,s.cache.scroll=e},direction:function(){var e,t=s.get.scroll(),i=s.get.lastScroll();return e=i<t&&i?"down":t<i&&i?"up":"static",s.cache.direction=e,s.cache.direction},elementPosition:function(){var e=s.cache.element,t=s.get.screenSize();return s.verbose("Saving element position"),e.fits=e.height<t.height,e.offset=h.offset(),e.width=h.outerWidth(),e.height=h.outerHeight(),s.is.verticallyScrollableContext()&&(e.offset.top+=p.scrollTop()-p.offset().top),s.is.horizontallyScrollableContext()&&(e.offset.left+=p.scrollLeft-p.offset().left),s.cache.element=e},elementCalculations:function(){var e=s.get.screenCalculations(),t=s.get.elementPosition();return o.includeMargin?(t.margin={},t.margin.top=parseInt(h.css("margin-top"),10),t.margin.bottom=parseInt(h.css("margin-bottom"),10),t.top=t.offset.top-t.margin.top,t.bottom=t.offset.top+t.height+t.margin.bottom):(t.top=t.offset.top,t.bottom=t.offset.top+t.height),t.topPassed=e.top>=t.top,t.bottomPassed=e.top>=t.bottom,t.topVisible=e.bottom>=t.top&&!t.topPassed,t.bottomVisible=e.bottom>=t.bottom&&!t.bottomPassed,t.pixelsPassed=0,t.percentagePassed=0,t.onScreen=(t.topVisible||t.passing)&&!t.bottomPassed,t.passing=t.topPassed&&!t.bottomPassed,t.offScreen=!t.onScreen,t.passing&&(t.pixelsPassed=e.top-t.top,t.percentagePassed=(e.top-t.top)/t.height),s.cache.element=t,s.verbose("Updated element calculations",t),t},screenCalculations:function(){var e=s.get.scroll();return s.save.direction(),s.cache.screen.top=e,s.cache.screen.bottom=e+s.cache.screen.height,s.cache.screen},screenSize:function(){s.verbose("Saving window position"),s.cache.screen={height:p.height()}},position:function(){s.save.screenSize(),s.save.elementPosition()}},get:{pixelsPassed:function(e){var t=s.get.elementCalculations();return-1<e.search("%")?t.height*(parseInt(e,10)/100):parseInt(e,10)},occurred:function(e){return s.cache.occurred!==O&&s.cache.occurred[e]||!1},direction:function(){return s.cache.direction===O&&s.save.direction(),s.cache.direction},elementPosition:function(){return s.cache.element===O&&s.save.elementPosition(),s.cache.element},elementCalculations:function(){return s.cache.element===O&&s.save.elementCalculations(),s.cache.element},screenCalculations:function(){return s.cache.screen===O&&s.save.screenCalculations(),s.cache.screen},screenSize:function(){return s.cache.screen===O&&s.save.screenSize(),s.cache.screen},scroll:function(){return s.cache.scroll===O&&s.save.scroll(),s.cache.scroll},lastScroll:function(){return s.cache.screen===O?(s.debug("First scroll event, no last scroll could be found"),!1):s.cache.screen.top}},setting:function(e,t){if(A.isPlainObject(e))A.extend(!0,o,e);else{if(t===O)return o[e];o[e]=t}},internal:function(e,t){if(A.isPlainObject(e))A.extend(!0,s,e);else{if(t===O)return s[e];s[e]=t}},debug:function(){!o.silent&&o.debug&&(o.performance?s.performance.log(arguments):(s.debug=Function.prototype.bind.call(console.info,console,o.name+":"),s.debug.apply(console,arguments)))},verbose:function(){!o.silent&&o.verbose&&o.debug&&(o.performance?s.performance.log(arguments):(s.verbose=Function.prototype.bind.call(console.info,console,o.name+":"),s.verbose.apply(console,arguments)))},error:function(){o.silent||(s.error=Function.prototype.bind.call(console.error,console,o.name+":"),s.error.apply(console,arguments))},performance:{log:function(e){var t,i;o.performance&&(i=(t=(new Date).getTime())-(T||t),T=t,S.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:g,"Execution Time":i})),clearTimeout(s.performance.timer),s.performance.timer=setTimeout(s.performance.display,500)},display:function(){var e=o.name+":",i=0;T=!1,clearTimeout(s.performance.timer),A.each(S,function(e,t){i+=t["Execution Time"]}),e+=" "+i+"ms",x&&(e+=" '"+x+"'"),(console.group!==O||console.table!==O)&&0<S.length&&(console.groupCollapsed(e),console.table?console.table(S):A.each(S,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),S=[]}},invoke:function(n,e,t){var o,r,i,a=f;return e=e||C,t=g||t,"string"==typeof n&&a!==O&&(n=n.split(/[\. ]/),o=n.length-1,A.each(n,function(e,t){var i=e!=o?t+n[e+1].charAt(0).toUpperCase()+n[e+1].slice(1):n;if(A.isPlainObject(a[i])&&e!=o)a=a[i];else{if(a[i]!==O)return r=a[i],!1;if(!A.isPlainObject(a[t])||e==o)return a[t]!==O?r=a[t]:s.error(l.method,n),!1;a=a[t]}})),A.isFunction(r)?i=r.apply(t,e):r!==O&&(i=r),A.isArray(y)?y.push(i):y!==O?y=[y,i]:i!==O&&(y=i),r}},k?(f===O&&s.initialize(),f.save.scroll(),f.save.calculations(),s.invoke(w)):(f!==O&&f.invoke("destroy"),s.initialize())}),y!==O?y:this},A
vendor: 928 bytes, line 1
1.fn.visibility.settings={name:"Visibility",namespace:"visibility",debug:!1,verbose:!1,performance:!0,observeChanges:!0,initialCheck:!0,refreshOnLoad:!0,refreshOnResize:!0,checkOnRefresh:!0,once:!0,continuous:!1,offset:0,includeMargin:!1,context:E,throttle:!1,type:!1,zIndex:"10",transition:"fade in",duration:1e3,onPassed:{},onOnScreen:!1,onOffScreen:!1,onPassing:!1,onTopVisible:!1,onBottomVisible:!1,onTopPassed:!1,onBottomPassed:!1,onPassingReverse:!1,onTopVisibleReverse:!1,onBottomVisibleReverse:!1,onTopPassedReverse:!1,onBottomPassedReverse:!1,onLoad:function(){},onAllLoaded:function(){},onFixed:function(){},onUnfixed:function(){},onUpdate:!1,onRefresh:function(){},metadata:{src:"src"},className:{fixed:"fixed",placeholder:"placeholder",visible:"visible"},error:{method:"The method you called is not defined.",visible:"Element is hidden, you must call refresh after element becomes visible"}}}(jQuery,window,document);

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.