vendor.js 2.3 MB

1
  1. var encode_version="www.jeeplus.org";if(function(e,t){"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(f,e){var t=[],u=t.slice,m=t.concat,o=t.push,s=t.indexOf,i={},n=i.toString,g=i.hasOwnProperty,v={},_=f.document,a="2.1.4",M=function(e,t){return new M.fn.init(e,t)},r=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,l=/^-ms-/,h=/-([\da-z])/gi,d=function(e,t){return t.toUpperCase()};function c(e){var t="length"in e&&e.length,i=M.type(e);return"function"!==i&&!M.isWindow(e)&&(!(1!==e.nodeType||!t)||("array"===i||0===t||"number"==typeof t&&0<t&&t-1 in e))}M.fn=M.prototype={jquery:a,constructor:M,selector:"",length:0,toArray:function(){return u.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:u.call(this)},pushStack:function(e){var t=M.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return M.each(this,e,t)},map:function(i){return this.pushStack(M.map(this,function(e,t){return i.call(e,t,e)}))},slice:function(){return this.pushStack(u.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(null)},push:o,sort:t.sort,splice:t.splice},M.extend=M.fn.extend=function(){var e,t,i,n,s,a,r=arguments[0]||{},o=1,l=arguments.length,h=!1;for("boolean"==typeof r&&(h=r,r=arguments[o]||{},o++),"object"==typeof r||M.isFunction(r)||(r={}),o===l&&(r=this,o--);o<l;o++)if(null!=(e=arguments[o]))for(t in e)i=r[t],r!==(n=e[t])&&(h&&n&&(M.isPlainObject(n)||(s=M.isArray(n)))?(s?(s=!1,a=i&&M.isArray(i)?i:[]):a=i&&M.isPlainObject(i)?i:{},r[t]=M.extend(h,a,n)):void 0!==n&&(r[t]=n));return r},M.extend({expando:"jQuery"+(a+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===M.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){return!M.isArray(e)&&0<=e-parseFloat(e)+1},isPlainObject:function(e){return"object"===M.type(e)&&!e.nodeType&&!M.isWindow(e)&&!(e.constructor&&!g.call(e.constructor.prototype,"isPrototypeOf"))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?i[n.call(e)]||"object":typeof e},globalEval:function(e){var t,i=eval;(e=M.trim(e))&&(1===e.indexOf("use strict")?((t=_.createElement("script")).text=e,_.head.appendChild(t).parentNode.removeChild(t)):i(e))},camelCase:function(e){return e.replace(l,"ms-").replace(h,d)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,i){var n=0,s=e.length,a=c(e);if(i){if(a)for(;n<s&&!1!==t.apply(e[n],i);n++);else for(n in e)if(!1===t.apply(e[n],i))break}else if(a)for(;n<s&&!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(r,"")},makeArray:function(e,t){var i=t||[];return null!=e&&(c(Object(e))?M.merge(i,"string"==typeof e?[e]:e):o.call(i,e)),i},inArray:function(e,t,i){return null==t?-1:s.call(t,e,i)},merge:function(e,t){for(var i=+t.length,n=0,s=e.length;n<i;n++)e[s++]=t[n];return e.length=s,e},grep:function(e,t,i){for(var n=[],s=0,a=e.length,r=!i;s<a;s++)!t(e[s],s)!==r&&n.push(e[s]);return n},map:function(e,t,i){var n,s=0,a=e.length,r=[];if(c(e))for(;s<a;s++)null!=(n=t(e[s],s,i))&&r.push(n);else for(s in e)null!=(n=t(e[s],s,i))&&r.push(n);return m.apply([],r)},guid:1,proxy:function(e,t){var i,n,s;return"string"==typeof t&&(i=e[t],t=e,e=i),M.isFunction(e)?(n=u.call(arguments,2),(s=function(){return e.apply(t||this,n.concat(u.call(arguments)))}).guid=e.guid=e.guid||M.guid++,s):void 0},now:Date.now,support:v}),M.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){i["[object "+t+"]"]=t.toLowerCase()});var p=function(i){var e,f,b,a,n,m,d,g,x,h,u,v,w,s,_,y,r,o,M,j="sizzle"+1*new Date,k=i.document,L=0,c=0,l=ae(),p=ae(),S=ae(),T=function(e,t){return e===t&&(u=!0),0},D={}.hasOwnProperty,t=[],C=t.pop,Y=t.push,E=t.push,H=t.slice,A=function(e,t){for(var i=0,n=e.length;i<n;i++)if(e[i]===t)return i;return-1},I="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",F="[\\x20\\t\\r\\n\\f]",$="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",P=$.replace("w","w#"),z="\\["+F+"*("+$+")(?:"+F+"*([*^$|!~]?=)"+F+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+P+"))|)"+F+"*\\]",N=":("+$+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+z+")*)|.*)\\)|)",O=new RegExp(F+"+","g"),R=new RegExp("^"+F+"+|((?:^|[^\\\\])(?:\\\\.)*)"+F+"+$","g"),W=new RegExp("^"+F+"*,"+F+"*"),V=new RegExp("^"+F+"*([>+~]|"+F+")"+F+"*"),B=new RegExp("="+F+"*([^\\]'\"]*?)"+F+"*\\]","g"),U=new RegExp(N),q=new RegExp("^"+P+"$"),G={ID:new RegExp("^#("+$+")"),CLASS:new RegExp("^\\.("+$+")"),TAG:new RegExp("^("+$.replace("w","w*")+")"),ATTR:new RegExp("^"+z),PSEUDO:new RegExp("^"+N),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+F+"*(even|odd|(([+-]|)(\\d*)n|)"+F+"*(?:([+-]|)"+F+"*(\\d+)|))"+F+"*\\)|)","i"),bool:new RegExp("^(?:"+I+")$","i"),needsContext:new RegExp("^"+F+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+F+"*((?:-\\d)?\\d*)"+F+"*\\)|)(?=[^-]|$)","i")},X=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Q=/[+~]/,ee=/'|\\/g,te=new RegExp("\\\\([\\da-f]{1,6}"+F+"?|("+F+")|.)","ig"),ie=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)},ne=function(){v()};try{E.apply(t=H.call(k.childNodes),k.childNodes),t[k.childNodes.length].nodeType}catch(e){E={apply:t.length?function(e,t){Y.apply(e,H.call(t))}:function(e,t){for(var i=e.length,n=0;e[i++]=t[n++];);e.length=i-1}}}function se(e,t,i,n){var s,a,r,o,l,h,u,d,c,p;if((t?t.ownerDocument||t:k)!==w&&v(t),i=i||[],o=(t=t||w).nodeType,"string"!=typeof e||!e||1!==o&&9!==o&&11!==o)return i;if(!n&&_){if(11!==o&&(s=Z.exec(e)))if(r=s[1]){if(9===o){if(!(a=t.getElementById(r))||!a.parentNode)return i;if(a.id===r)return i.push(a),i}else if(t.ownerDocument&&(a=t.ownerDocument.getElementById(r))&&M(t,a)&&a.id===r)return i.push(a),i}else{if(s[2])return E.apply(i,t.getElementsByTagName(e)),i;if((r=s[3])&&f.getElementsByClassName)return E.apply(i,t.getElementsByClassName(r)),i}if(f.qsa&&(!y||!y.test(e))){if(d=u=j,c=t,p=1!==o&&e,1===o&&"object"!==t.nodeName.toLowerCase()){for(h=m(e),(u=t.getAttribute("id"))?d=u.replace(ee,"\\$&"):t.setAttribute("id",d),d="[id='"+d+"'] ",l=h.length;l--;)h[l]=d+me(h[l]);c=Q.test(e)&&pe(t.parentNode)||t,p=h.join(",")}if(p)try{return E.apply(i,c.querySelectorAll(p)),i}catch(e){}finally{u||t.removeAttribute("id")}}}return g(e.replace(R,"$1"),t,i,n)}function ae(){var n=[];return function e(t,i){return n.push(t+" ")>b.cacheLength&&delete e[n.shift()],e[t+" "]=i}}function re(e){return e[j]=!0,e}function oe(e){var t=w.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function le(e,t){for(var i=e.split("|"),n=e.length;n--;)b.attrHandle[i[n]]=t}function he(e,t){var i=t&&e,n=i&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||1<<31)-(~e.sourceIndex||1<<31);if(n)return n;if(i)for(;i=i.nextSibling;)if(i===t)return-1;return e?1:-1}function ue(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function de(i){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===i}}function ce(r){return re(function(a){return a=+a,re(function(e,t){for(var i,n=r([],e.length,a),s=n.length;s--;)e[i=n[s]]&&(e[i]=!(t[i]=e[i]))})})}function pe(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in f=se.support={},n=se.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},v=se.setDocument=function(e){var t,i,l=e?e.ownerDocument||e:k;return l!==w&&9===l.nodeType&&l.documentElement?(s=(w=l).documentElement,(i=l.defaultView)&&i!==i.top&&(i.addEventListener?i.addEventListener("unload",ne,!1):i.attachEvent&&i.attachEvent("onunload",ne)),_=!n(l),f.attributes=oe(function(e){return e.className="i",!e.getAttribute("className")}),f.getElementsByTagName=oe(function(e){return e.appendChild(l.createComment("")),!e.getElementsByTagName("*").length}),f.getElementsByClassName=K.test(l.getElementsByClassName),f.getById=oe(function(e){return s.appendChild(e).id=j,!l.getElementsByName||!l.getElementsByName(j).length}),f.getById?(b.find.ID=function(e,t){if(void 0!==t.getElementById&&_){var i=t.getElementById(e);return i&&i.parentNode?[i]:[]}},b.filter.ID=function(e){var t=e.replace(te,ie);return function(e){return e.getAttribute("id")===t}}):(delete b.find.ID,b.filter.ID=function(e){var i=e.replace(te,ie);return function(e){var t=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===i}}),b.find.TAG=f.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):f.qsa?t.querySelectorAll(e):void 0}:function(e,t){var i,n=[],s=0,a=t.getElementsByTagName(e);if("*"===e){for(;i=a[s++];)1===i.nodeType&&n.push(i);return n}return a},b.find.CLASS=f.getElementsByClassName&&function(e,t){return _?t.getElementsByClassName(e):void 0},r=[],y=[],(f.qsa=K.test(l.querySelectorAll))&&(oe(function(e){s.appendChild(e).innerHTML="<a id='"+j+"'></a><select id='"+j+"-\f]' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&y.push("[*^$]="+F+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||y.push("\\["+F+"*(?:value|"+I+")"),e.querySelectorAll("[id~="+j+"-]").length||y.push("~="),e.querySelectorAll(":checked").length||y.push(":checked"),e.querySelectorAll("a#"+j+"+*").length||y.push(".#.+[+~]")}),oe(function(e){var t=l.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&y.push("name"+F+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||y.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),y.push(",.*:")})),(f.matchesSelector=K.test(o=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&oe(function(e){f.disconnectedMatch=o.call(e,"div"),o.call(e,"[s!='']:x"),r.push("!=",N)}),y=y.length&&new RegExp(y.join("|")),r=r.length&&new RegExp(r.join("|")),t=K.test(s.compareDocumentPosition),M=t||K.test(s.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},T=t?function(e,t){if(e===t)return u=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!f.sortDetached&&t.compareDocumentPosition(e)===i?e===l||e.ownerDocument===k&&M(k,e)?-1:t===l||t.ownerDocument===k&&M(k,t)?1:h?A(h,e)-A(h,t):0:4&i?-1:1)}:function(e,t){if(e===t)return u=!0,0;var i,n=0,s=e.parentNode,a=t.parentNode,r=[e],o=[t];if(!s||!a)return e===l?-1:t===l?1:s?-1:a?1:h?A(h,e)-A(h,t):0;if(s===a)return he(e,t);for(i=e;i=i.parentNode;)r.unshift(i);for(i=t;i=i.parentNode;)o.unshift(i);for(;r[n]===o[n];)n++;return n?he(r[n],o[n]):r[n]===k?-1:o[n]===k?1:0},l):w},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if((e.ownerDocument||e)!==w&&v(e),t=t.replace(B,"='$1']"),!(!f.matchesSelector||!_||r&&r.test(t)||y&&y.test(t)))try{var i=o.call(e,t);if(i||f.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){}return 0<se(t,w,null,[e]).length},se.contains=function(e,t){return(e.ownerDocument||e)!==w&&v(e),M(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!==w&&v(e);var i=b.attrHandle[t.toLowerCase()],n=i&&D.call(b.attrHandle,t.toLowerCase())?i(e,t,!_):void 0;return void 0!==n?n:f.attributes||!_?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,i=[],n=0,s=0;if(u=!f.detectDuplicates,h=!f.sortStable&&e.slice(0),e.sort(T),u){for(;t=e[s++];)t===e[s]&&(n=i.push(s));for(;n--;)e.splice(i[n],1)}return h=null,e},a=se.getText=function(e){var t,i="",n=0,s=e.nodeType;if(s){if(1===s||9===s||11===s){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)i+=a(e)}else if(3===s||4===s)return e.nodeValue}else for(;t=e[n++];)i+=a(t);return i},(b=se.selectors={cacheLength:50,createPseudo:re,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ie),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ie),"~="===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]||se.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]&&se.error(e[0]),e},PSEUDO:function(e){var t,i=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&U.test(i)&&(t=m(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(te,ie).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=l[e+" "];return t||(t=new RegExp("(^|"+F+")"+e+"("+F+"|$)"))&&l(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(i,n,s){return function(e){var t=se.attr(e,i);return null==t?"!="===n:!n||(t+="","="===n?t===s:"!="===n?t!==s:"^="===n?s&&0===t.indexOf(s):"*="===n?s&&-1<t.indexOf(s):"$="===n?s&&t.slice(-s.length)===s:"~="===n?-1<(" "+t.replace(O," ")+" ").indexOf(s):"|="===n&&(t===s||t.slice(0,s.length+1)===s+"-"))}},CHILD:function(p,e,t,f,m){var g="nth"!==p.slice(0,3),v="last"!==p.slice(-4),_="of-type"===e;return 1===f&&0===m?function(e){return!!e.parentNode}:function(e,t,i){var n,s,a,r,o,l,h=g!==v?"nextSibling":"previousSibling",u=e.parentNode,d=_&&e.nodeName.toLowerCase(),c=!i&&!_;if(u){if(g){for(;h;){for(a=e;a=a[h];)if(_?a.nodeName.toLowerCase()===d:1===a.nodeType)return!1;l=h="only"===p&&!l&&"nextSibling"}return!0}if(l=[v?u.firstChild:u.lastChild],v&&c){for(o=(n=(s=u[j]||(u[j]={}))[p]||[])[0]===L&&n[1],r=n[0]===L&&n[2],a=o&&u.childNodes[o];a=++o&&a&&a[h]||(r=o=0)||l.pop();)if(1===a.nodeType&&++r&&a===e){s[p]=[L,o,r];break}}else if(c&&(n=(e[j]||(e[j]={}))[p])&&n[0]===L)r=n[1];else for(;(a=++o&&a&&a[h]||(r=o=0)||l.pop())&&((_?a.nodeName.toLowerCase()!==d:1!==a.nodeType)||!++r||(c&&((a[j]||(a[j]={}))[p]=[L,r]),a!==e)););return(r-=m)===f||r%f==0&&0<=r/f}}},PSEUDO:function(e,a){var t,r=b.pseudos[e]||b.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return r[j]?r(a):1<r.length?(t=[e,e,"",a],b.setFilters.hasOwnProperty(e.toLowerCase())?re(function(e,t){for(var i,n=r(e,a),s=n.length;s--;)e[i=A(e,n[s])]=!(t[i]=n[s])}):function(e){return r(e,0,t)}):r}},pseudos:{not:re(function(e){var n=[],s=[],o=d(e.replace(R,"$1"));return o[j]?re(function(e,t,i,n){for(var s,a=o(e,null,n,[]),r=e.length;r--;)(s=a[r])&&(e[r]=!(t[r]=s))}):function(e,t,i){return n[0]=e,o(n,null,i,s),n[0]=null,!s.pop()}}),has:re(function(t){return function(e){return 0<se(t,e).length}}),contains:re(function(t){return t=t.replace(te,ie),function(e){return-1<(e.textContent||e.innerText||a(e)).indexOf(t)}}),lang:re(function(i){return q.test(i||"")||se.error("unsupported lang: "+i),i=i.replace(te,ie).toLowerCase(),function(e){var t;do{if(t=_?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===s},focus:function(e){return e===w.activeElement&&(!w.hasFocus||w.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},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!b.pseudos.empty(e)},header:function(e){return J.test(e.nodeName)},input:function(e){return X.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:ce(function(){return[0]}),last:ce(function(e,t){return[t-1]}),eq:ce(function(e,t,i){return[i<0?i+t:i]}),even:ce(function(e,t){for(var i=0;i<t;i+=2)e.push(i);return e}),odd:ce(function(e,t){for(var i=1;i<t;i+=2)e.push(i);return e}),lt:ce(function(e,t,i){for(var n=i<0?i+t:i;0<=--n;)e.push(n);return e}),gt:ce(function(e,t,i){for(var n=i<0?i+t:i;++n<t;)e.push(n);return e})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[e]=ue(e);for(e in{submit:!0,reset:!0})b.pseudos[e]=de(e);function fe(){}function me(e){for(var t=0,i=e.length,n="";t<i;t++)n+=e[t].value;return n}function ge(r,e,t){var o=e.dir,l=t&&"parentNode"===o,h=c++;return e.first?function(e,t,i){for(;e=e[o];)if(1===e.nodeType||l)return r(e,t,i)}:function(e,t,i){var n,s,a=[L,h];if(i){for(;e=e[o];)if((1===e.nodeType||l)&&r(e,t,i))return!0}else for(;e=e[o];)if(1===e.nodeType||l){if((n=(s=e[j]||(e[j]={}))[o])&&n[0]===L&&n[1]===h)return a[2]=n[2];if((s[o]=a)[2]=r(e,t,i))return!0}}}function ve(s){return 1<s.length?function(e,t,i){for(var n=s.length;n--;)if(!s[n](e,t,i))return!1;return!0}:s[0]}function _e(e,t,i,n,s){for(var a,r=[],o=0,l=e.length,h=null!=t;o<l;o++)(a=e[o])&&(!i||i(a,n,s))&&(r.push(a),h&&t.push(o));return r}function ye(p,f,m,g,v,e){return g&&!g[j]&&(g=ye(g)),v&&!v[j]&&(v=ye(v,e)),re(function(e,t,i,n){var s,a,r,o=[],l=[],h=t.length,u=e||function(e,t,i){for(var n=0,s=t.length;n<s;n++)se(e,t[n],i);return i}(f||"*",i.nodeType?[i]:i,[]),d=!p||!e&&f?u:_e(u,o,p,i,n),c=m?v||(e?p:h||g)?[]:t:d;if(m&&m(d,c,i,n),g)for(s=_e(c,l),g(s,[],i,n),a=s.length;a--;)(r=s[a])&&(c[l[a]]=!(d[l[a]]=r));if(e){if(v||p){if(v){for(s=[],a=c.length;a--;)(r=c[a])&&s.push(d[a]=r);v(null,c=[],s,n)}for(a=c.length;a--;)(r=c[a])&&-1<(s=v?A(e,r):o[a])&&(e[s]=!(t[s]=r))}}else c=_e(c===t?c.splice(h,c.length):c),v?v(null,t,c,n):E.apply(t,c)})}function be(e){for(var s,t,i,n=e.length,a=b.relative[e[0].type],r=a||b.relative[" "],o=a?1:0,l=ge(function(e){return e===s},r,!0),h=ge(function(e){return-1<A(s,e)},r,!0),u=[function(e,t,i){var n=!a&&(i||t!==x)||((s=t).nodeType?l(e,t,i):h(e,t,i));return s=null,n}];o<n;o++)if(t=b.relative[e[o].type])u=[ge(ve(u),t)];else{if((t=b.filter[e[o].type].apply(null,e[o].matches))[j]){for(i=++o;i<n&&!b.relative[e[i].type];i++);return ye(1<o&&ve(u),1<o&&me(e.slice(0,o-1).concat({value:" "===e[o-2].type?"*":""})).replace(R,"$1"),t,o<i&&be(e.slice(o,i)),i<n&&be(e=e.slice(i)),i<n&&me(e))}u.push(t)}return ve(u)}return fe.prototype=b.filters=b.pseudos,b.setFilters=new fe,m=se.tokenize=function(e,t){var i,n,s,a,r,o,l,h=p[e+" "];if(h)return t?0:h.slice(0);for(r=e,o=[],l=b.preFilter;r;){for(a in(!i||(n=W.exec(r)))&&(n&&(r=r.slice(n[0].length)||r),o.push(s=[])),i=!1,(n=V.exec(r))&&(i=n.shift(),s.push({value:i,type:n[0].replace(R," ")}),r=r.slice(i.length)),b.filter)!(n=G[a].exec(r))||l[a]&&!(n=l[a](n))||(i=n.shift(),s.push({value:i,type:a,matches:n}),r=r.slice(i.length));if(!i)break}return t?r.length:r?se.error(e):p(e,o).slice(0)},d=se.compile=function(e,t){var i,g,v,_,y,n,s=[],a=[],r=S[e+" "];if(!r){for(t||(t=m(e)),i=t.length;i--;)(r=be(t[i]))[j]?s.push(r):a.push(r);(r=S(e,(g=a,_=0<(v=s).length,y=0<g.length,n=function(e,t,i,n,s){var a,r,o,l=0,h="0",u=e&&[],d=[],c=x,p=e||y&&b.find.TAG("*",s),f=L+=null==c?1:Math.random()||.1,m=p.length;for(s&&(x=t!==w&&t);h!==m&&null!=(a=p[h]);h++){if(y&&a){for(r=0;o=g[r++];)if(o(a,t,i)){n.push(a);break}s&&(L=f)}_&&((a=!o&&a)&&l--,e&&u.push(a))}if(l+=h,_&&h!==l){for(r=0;o=v[r++];)o(u,d,t,i);if(e){if(0<l)for(;h--;)u[h]||d[h]||(d[h]=C.call(n));d=_e(d)}E.apply(n,d),s&&!e&&0<d.length&&1<l+v.length&&se.uniqueSort(n)}return s&&(L=f,x=c),u},_?re(n):n))).selector=e}return r},g=se.select=function(e,t,i,n){var s,a,r,o,l,h="function"==typeof e&&e,u=!n&&m(e=h.selector||e);if(i=i||[],1===u.length){if(2<(a=u[0]=u[0].slice(0)).length&&"ID"===(r=a[0]).type&&f.getById&&9===t.nodeType&&_&&b.relative[a[1].type]){if(!(t=(b.find.ID(r.matches[0].replace(te,ie),t)||[])[0]))return i;h&&(t=t.parentNode),e=e.slice(a.shift().value.length)}for(s=G.needsContext.test(e)?0:a.length;s--&&(r=a[s],!b.relative[o=r.type]);)if((l=b.find[o])&&(n=l(r.matches[0].replace(te,ie),Q.test(a[0].type)&&pe(t.parentNode)||t))){if(a.splice(s,1),!(e=n.length&&me(a)))return E.apply(i,n),i;break}}return(h||d(e,u))(n,t,!_,i,Q.test(e)&&pe(t.parentNode)||t),i},f.sortStable=j.split("").sort(T).join("")===j,f.detectDuplicates=!!u,v(),f.sortDetached=oe(function(e){return 1&e.compareDocumentPosition(w.createElement("div"))}),oe(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||le("type|href|height|width",function(e,t,i){return i?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),f.attributes&&oe(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||le("value",function(e,t,i){return i||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),oe(function(e){return null==e.getAttribute("disabled")})||le(I,function(e,t,i){var n;return i?void 0:!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null}),se}(f);M.find=p,M.expr=p.selectors,M.expr[":"]=M.expr.pseudos,M.unique=p.uniqueSort,M.text=p.getText,M.isXMLDoc=p.isXML,M.contains=p.contains;var y=M.expr.match.needsContext,b=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,x=/^.[^:#\[\.,]*$/;function w(e,i,n){if(M.isFunction(i))return M.grep(e,function(e,t){return!!i.call(e,t,e)!==n});if(i.nodeType)return M.grep(e,function(e){return e===i!==n});if("string"==typeof i){if(x.test(i))return M.filter(i,e,n);i=M.filter(i,e)}return M.grep(e,function(e){return 0<=s.call(i,e)!==n})}M.filter=function(e,t,i){var n=t[0];return i&&(e=":not("+e+")"),1===t.length&&1===n.nodeType?M.find.matchesSelector(n,e)?[n]:[]:M.find.matches(e,M.grep(t,function(e){return 1===e.nodeType}))},M.fn.extend({find:function(e){var t,i=this.length,n=[],s=this;if("string"!=typeof e)return this.pushStack(M(e).filter(function(){for(t=0;t<i;t++)if(M.contains(s[t],this))return!0}));for(t=0;t<i;t++)M.find(e,s[t],n);return(n=this.pushStack(1<i?M.unique(n):n)).selector=this.selector?this.selector+" "+e:e,n},filter:function(e){return this.pushStack(w(this,e||[],!1))},not:function(e){return this.pushStack(w(this,e||[],!0))},is:function(e){return!!w(this,"string"==typeof e&&y.test(e)?M(e):e||[],!1).length}});var j,k=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(M.fn.init=function(e,t){var i,n;if(!e)return this;if("string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:k.exec(e))||!i[1]&&t)return!t||t.jquery?(t||j).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof M?t[0]:t,M.merge(this,M.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:_,!0)),b.test(i[1])&&M.isPlainObject(t))for(i in t)M.isFunction(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(n=_.getElementById(i[2]))&&n.parentNode&&(this.length=1,this[0]=n),this.context=_,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):M.isFunction(e)?void 0!==j.ready?j.ready(e):e(M):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),M.makeArray(e,this))}).prototype=M.fn,j=M(_);var L=/^(?:parents|prev(?:Until|All))/,S={children:!0,contents:!0,next:!0,prev:!0};function T(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}M.extend({dir:function(e,t,i){for(var n=[],s=void 0!==i;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(s&&M(e).is(i))break;n.push(e)}return n},sibling:function(e,t){for(var i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i}}),M.fn.extend({has:function(e){var t=M(e,this),i=t.length;return this.filter(function(){for(var e=0;e<i;e++)if(M.contains(this,t[e]))return!0})},closest:function(e,t){for(var i,n=0,s=this.length,a=[],r=y.test(e)||"string"!=typeof e?M(e,t||this.context):0;n<s;n++)for(i=this[n];i&&i!==t;i=i.parentNode)if(i.nodeType<11&&(r?-1<r.index(i):1===i.nodeType&&M.find.matchesSelector(i,e))){a.push(i);break}return this.pushStack(1<a.length?M.unique(a):a)},index:function(e){return e?"string"==typeof e?s.call(M(e),this[0]):s.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(M.unique(M.merge(this.get(),M(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),M.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return M.dir(e,"parentNode")},parentsUntil:function(e,t,i){return M.dir(e,"parentNode",i)},next:function(e){return T(e,"nextSibling")},prev:function(e){return T(e,"previousSibling")},nextAll:function(e){return M.dir(e,"nextSibling")},prevAll:function(e){return M.dir(e,"previousSibling")},nextUntil:function(e,t,i){return M.dir(e,"nextSibling",i)},prevUntil:function(e,t,i){return M.dir(e,"previousSibling",i)},siblings:function(e){return M.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return M.sibling(e.firstChild)},contents:function(e){return e.contentDocument||M.merge([],e.childNodes)}},function(n,s){M.fn[n]=function(e,t){var i=M.map(this,s,e);return"Until"!==n.slice(-5)&&(t=e),t&&"string"==typeof t&&(i=M.filter(t,i)),1<this.length&&(S[n]||M.unique(i),L.test(n)&&i.reverse()),this.pushStack(i)}});var D,C=/\S+/g,Y={};function E(){_.removeEventListener("DOMContentLoaded",E,!1),f.removeEventListener("load",E,!1),M.ready()}M.Callbacks=function(s){var e,i;s="string"==typeof s?Y[s]||(i=Y[e=s]={},M.each(e.match(C)||[],function(e,t){i[t]=!0}),i):M.extend({},s);var t,n,a,r,o,l,h=[],u=!s.once&&[],d=function(e){for(t=s.memory&&e,n=!0,l=r||0,r=0,o=h.length,a=!0;h&&l<o;l++)if(!1===h[l].apply(e[0],e[1])&&s.stopOnFalse){t=!1;break}a=!1,h&&(u?u.length&&d(u.shift()):t?h=[]:c.disable())},c={add:function(){if(h){var e=h.length;!function n(e){M.each(e,function(e,t){var i=M.type(t);"function"===i?s.unique&&c.has(t)||h.push(t):t&&t.length&&"string"!==i&&n(t)})}(arguments),a?o=h.length:t&&(r=e,d(t))}return this},remove:function(){return h&&M.each(arguments,function(e,t){for(var i;-1<(i=M.inArray(t,h,i));)h.splice(i,1),a&&(i<=o&&o--,i<=l&&l--)}),this},has:function(e){return e?-1<M.inArray(e,h):!(!h||!h.length)},empty:function(){return h=[],o=0,this},disable:function(){return h=u=t=void 0,this},disabled:function(){return!h},lock:function(){return u=void 0,t||c.disable(),this},locked:function(){return!u},fireWith:function(e,t){return!h||n&&!u||(t=[e,(t=t||[]).slice?t.slice():t],a?u.push(t):d(t)),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!n}};return c},M.extend({Deferred:function(e){var a=[["resolve","done",M.Callbacks("once memory"),"resolved"],["reject","fail",M.Callbacks("once memory"),"rejected"],["notify","progress",M.Callbacks("memory")]],s="pending",r={state:function(){return s},always:function(){return o.done(arguments).fail(arguments),this},then:function(){var s=arguments;return M.Deferred(function(n){M.each(a,function(e,t){var i=M.isFunction(s[e])&&s[e];o[t[1]](function(){var e=i&&i.apply(this,arguments);e&&M.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[t[0]+"With"](this===r?n.promise():this,i?[e]:arguments)})}),s=null}).promise()},promise:function(e){return null!=e?M.extend(e,r):r}},o={};return r.pipe=r.then,M.each(a,function(e,t){var i=t[2],n=t[3];r[t[1]]=i.add,n&&i.add(function(){s=n},a[1^e][2].disable,a[2][2].lock),o[t[0]]=function(){return o[t[0]+"With"](this===o?r:this,arguments),this},o[t[0]+"With"]=i.fireWith}),r.promise(o),e&&e.call(o,o),o},when:function(e){var s,t,i,n=0,a=u.call(arguments),r=a.length,o=1!==r||e&&M.isFunction(e.promise)?r:0,l=1===o?e:M.Deferred(),h=function(t,i,n){return function(e){i[t]=this,n[t]=1<arguments.length?u.call(arguments):e,n===s?l.notifyWith(i,n):--o||l.resolveWith(i,n)}};if(1<r)for(s=new Array(r),t=new Array(r),i=new Array(r);n<r;n++)a[n]&&M.isFunction(a[n].promise)?a[n].promise().done(h(n,i,a)).fail(l.reject).progress(h(n,t,s)):--o;return o||l.resolveWith(i,a),l.promise()}}),M.fn.ready=function(e){return M.ready.promise().done(e),this},M.extend({isReady:!1,readyWait:1,holdReady:function(e){e?M.readyWait++:M.ready(!0)},ready:function(e){(!0===e?--M.readyWait:M.isReady)||((M.isReady=!0)!==e&&0<--M.readyWait||(D.resolveWith(_,[M]),M.fn.triggerHandler&&(M(_).triggerHandler("ready"),M(_).off("ready"))))}}),M.ready.promise=function(e){return D||(D=M.Deferred(),"complete"===_.readyState?setTimeout(M.ready):(_.addEventListener("DOMContentLoaded",E,!1),f.addEventListener("load",E,!1))),D.promise(e)},M.ready.promise();var H=M.access=function(e,t,i,n,s,a,r){var o=0,l=e.length,h=null==i;if("object"===M.type(i))for(o in s=!0,i)M.access(e,t,o,i[o],!0,a,r);else if(void 0!==n&&(s=!0,M.isFunction(n)||(r=!0),h&&(r?(t.call(e,n),t=null):(h=t,t=function(e,t,i){return h.call(M(e),i)})),t))for(;o<l;o++)t(e[o],i,r?n:n.call(e[o],o,t(e[o],i)));return s?e:h?t.call(e):l?t(e[0],i):a};function A(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=M.expando+A.uid++}M.acceptData=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType},A.uid=1,A.accepts=M.acceptData,A.prototype={key:function(t){if(!A.accepts(t))return 0;var i={},n=t[this.expando];if(!n){n=A.uid++;try{i[this.expando]={value:n},Object.defineProperties(t,i)}catch(e){i[this.expando]=n,M.extend(t,i)}}return this.cache[n]||(this.cache[n]={}),n},set:function(e,t,i){var n,s=this.key(e),a=this.cache[s];if("string"==typeof t)a[t]=i;else if(M.isEmptyObject(a))M.extend(this.cache[s],t);else for(n in t)a[n]=t[n];return a},get:function(e,t){var i=this.cache[this.key(e)];return void 0===t?i:i[t]},access:function(e,t,i){var n;return void 0===t||t&&"string"==typeof t&&void 0===i?void 0!==(n=this.get(e,t))?n:this.get(e,M.camelCase(t)):(this.set(e,t,i),void 0!==i?i:t)},remove:function(e,t){var i,n,s,a=this.key(e),r=this.cache[a];if(void 0===t)this.cache[a]={};else{M.isArray(t)?n=t.concat(t.map(M.camelCase)):(s=M.camelCase(t),t in r?n=[t,s]:n=(n=s)in r?[n]:n.match(C)||[]),i=n.length;for(;i--;)delete r[n[i]]}},hasData:function(e){return!M.isEmptyObject(this.cache[e[this.expando]]||{})},discard:function(e){e[this.expando]&&delete this.cache[e[this.expando]]}};var I=new A,F=new A,$=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,P=/([A-Z])/g;function z(e,t,i){var n;if(void 0===i&&1===e.nodeType)if(n="data-"+t.replace(P,"-$1").toLowerCase(),"string"==typeof(i=e.getAttribute(n))){try{i="true"===i||"false"!==i&&("null"===i?null:+i+""===i?+i:$.test(i)?M.parseJSON(i):i)}catch(e){}F.set(e,t,i)}else i=void 0;return i}M.extend({hasData:function(e){return F.hasData(e)||I.hasData(e)},data:function(e,t,i){return F.access(e,t,i)},removeData:function(e,t){F.remove(e,t)},_data:function(e,t,i){return I.access(e,t,i)},_removeData:function(e,t){I.remove(e,t)}}),M.fn.extend({data:function(n,e){var t,i,s,a=this[0],r=a&&a.attributes;if(void 0===n){if(this.length&&(s=F.get(a),1===a.nodeType&&!I.get(a,"hasDataAttrs"))){for(t=r.length;t--;)r[t]&&(0===(i=r[t].name).indexOf("data-")&&(i=M.camelCase(i.slice(5)),z(a,i,s[i])));I.set(a,"hasDataAttrs",!0)}return s}return"object"==typeof n?this.each(function(){F.set(this,n)}):H(this,function(t){var e,i=M.camelCase(n);if(a&&void 0===t){if(void 0!==(e=F.get(a,n)))return e;if(void 0!==(e=F.get(a,i)))return e;if(void 0!==(e=z(a,i,void 0)))return e}else this.each(function(){var e=F.get(this,i);F.set(this,i,t),-1!==n.indexOf("-")&&void 0!==e&&F.set(this,n,t)})},null,e,1<arguments.length,null,!0)},removeData:function(e){return this.each(function(){F.remove(this,e)})}}),M.extend({queue:function(e,t,i){var n;return e?(t=(t||"fx")+"queue",n=I.get(e,t),i&&(!n||M.isArray(i)?n=I.access(e,t,M.makeArray(i)):n.push(i)),n||[]):void 0},dequeue:function(e,t){t=t||"fx";var i=M.queue(e,t),n=i.length,s=i.shift(),a=M._queueHooks(e,t);"inprogress"===s&&(s=i.shift(),n--),s&&("fx"===t&&i.unshift("inprogress"),delete a.stop,s.call(e,function(){M.dequeue(e,t)},a)),!n&&a&&a.empty.fire()},_queueHooks:function(e,t){var i=t+"queueHooks";return I.get(e,i)||I.access(e,i,{empty:M.Callbacks("once memory").add(function(){I.remove(e,[t+"queue",i])})})}}),M.fn.extend({queue:function(t,i){var e=2;return"string"!=typeof t&&(i=t,t="fx",e--),arguments.length<e?M.queue(this[0],t):void 0===i?this:this.each(function(){var e=M.queue(this,t,i);M._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&M.dequeue(this,t)})},dequeue:function(e){return this.each(function(){M.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var i,n=1,s=M.Deferred(),a=this,r=this.length,o=function(){--n||s.resolveWith(a,[a])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";r--;)(i=I.get(a[r],e+"queueHooks"))&&i.empty&&(n++,i.empty.add(o));return o(),s.promise(t)}});var N,O,R=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,W=["Top","Right","Bottom","Left"],V=function(e,t){return e=t||e,"none"===M.css(e,"display")||!M.contains(e.ownerDocument,e)},B=/^(?:checkbox|radio)$/i;N=_.createDocumentFragment().appendChild(_.createElement("div")),(O=_.createElement("input")).setAttribute("type","radio"),O.setAttribute("checked","checked"),O.setAttribute("name","t"),N.appendChild(O),v.checkClone=N.cloneNode(!0).cloneNode(!0).lastChild.checked,N.innerHTML="<textarea>x</textarea>",v.noCloneChecked=!!N.cloneNode(!0).lastChild.defaultValue;var U="undefined";v.focusinBubbles="onfocusin"in f;var q=/^key/,G=/^(?:mouse|pointer|contextmenu)|click/,X=/^(?:focusinfocus|focusoutblur)$/,J=/^([^.]*)(?:\.(.+)|)$/;function K(){return!0}function Z(){return!1}function Q(){try{return _.activeElement}catch(e){}}M.event={global:{},add:function(t,e,i,n,s){var a,r,o,l,h,u,d,c,p,f,m,g=I.get(t);if(g)for(i.handler&&(i=(a=i).handler,s=a.selector),i.guid||(i.guid=M.guid++),(l=g.events)||(l=g.events={}),(r=g.handle)||(r=g.handle=function(e){return typeof M!==U&&M.event.triggered!==e.type?M.event.dispatch.apply(t,arguments):void 0}),h=(e=(e||"").match(C)||[""]).length;h--;)p=m=(o=J.exec(e[h])||[])[1],f=(o[2]||"").split(".").sort(),p&&(d=M.event.special[p]||{},p=(s?d.delegateType:d.bindType)||p,d=M.event.special[p]||{},u=M.extend({type:p,origType:m,data:n,handler:i,guid:i.guid,selector:s,needsContext:s&&M.expr.match.needsContext.test(s),namespace:f.join(".")},a),(c=l[p])||((c=l[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(t,n,f,r)||t.addEventListener&&t.addEventListener(p,r,!1)),d.add&&(d.add.call(t,u),u.handler.guid||(u.handler.guid=i.guid)),s?c.splice(c.delegateCount++,0,u):c.push(u),M.event.global[p]=!0)},remove:function(e,t,i,n,s){var a,r,o,l,h,u,d,c,p,f,m,g=I.hasData(e)&&I.get(e);if(g&&(l=g.events)){for(h=(t=(t||"").match(C)||[""]).length;h--;)if(p=m=(o=J.exec(t[h])||[])[1],f=(o[2]||"").split(".").sort(),p){for(d=M.event.special[p]||{},c=l[p=(n?d.delegateType:d.bindType)||p]||[],o=o[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=a=c.length;a--;)u=c[a],!s&&m!==u.origType||i&&i.guid!==u.guid||o&&!o.test(u.namespace)||n&&n!==u.selector&&("**"!==n||!u.selector)||(c.splice(a,1),u.selector&&c.delegateCount--,d.remove&&d.remove.call(e,u));r&&!c.length&&(d.teardown&&!1!==d.teardown.call(e,f,g.handle)||M.removeEvent(e,p,g.handle),delete l[p])}else for(p in l)M.event.remove(e,p+t[h],i,n,!0);M.isEmptyObject(l)&&(delete g.handle,I.remove(e,"events"))}},trigger:function(e,t,i,n){var s,a,r,o,l,h,u,d=[i||_],c=g.call(e,"type")?e.type:e,p=g.call(e,"namespace")?e.namespace.split("."):[];if(a=r=i=i||_,3!==i.nodeType&&8!==i.nodeType&&!X.test(c+M.event.triggered)&&(0<=c.indexOf(".")&&(c=(p=c.split(".")).shift(),p.sort()),l=c.indexOf(":")<0&&"on"+c,(e=e[M.expando]?e:new M.Event(c,"object"==typeof e&&e)).isTrigger=n?2:3,e.namespace=p.join("."),e.namespace_re=e.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),t=null==t?[e]:M.makeArray(t,[e]),u=M.event.special[c]||{},n||!u.trigger||!1!==u.trigger.apply(i,t))){if(!n&&!u.noBubble&&!M.isWindow(i)){for(o=u.delegateType||c,X.test(o+c)||(a=a.parentNode);a;a=a.parentNode)d.push(a),r=a;r===(i.ownerDocument||_)&&d.push(r.defaultView||r.parentWindow||f)}for(s=0;(a=d[s++])&&!e.isPropagationStopped();)e.type=1<s?o:u.bindType||c,(h=(I.get(a,"events")||{})[e.type]&&I.get(a,"handle"))&&h.apply(a,t),(h=l&&a[l])&&h.apply&&M.acceptData(a)&&(e.result=h.apply(a,t),!1===e.result&&e.preventDefault());return e.type=c,n||e.isDefaultPrevented()||u._default&&!1!==u._default.apply(d.pop(),t)||!M.acceptData(i)||l&&M.isFunction(i[c])&&!M.isWindow(i)&&((r=i[l])&&(i[l]=null),i[M.event.triggered=c](),M.event.triggered=void 0,r&&(i[l]=r)),e.result}},dispatch:function(e){e=M.event.fix(e);var t,i,n,s,a,r=[],o=u.call(arguments),l=(I.get(this,"events")||{})[e.type]||[],h=M.event.special[e.type]||{};if((o[0]=e).delegateTarget=this,!h.preDispatch||!1!==h.preDispatch.call(this,e)){for(r=M.event.handlers.call(this,e,l),t=0;(s=r[t++])&&!e.isPropagationStopped();)for(e.currentTarget=s.elem,i=0;(a=s.handlers[i++])&&!e.isImmediatePropagationStopped();)(!e.namespace_re||e.namespace_re.test(a.namespace))&&(e.handleObj=a,e.data=a.data,void 0!==(n=((M.event.special[a.origType]||{}).handle||a.handler).apply(s.elem,o))&&!1===(e.result=n)&&(e.preventDefault(),e.stopPropagation()));return h.postDispatch&&h.postDispatch.call(this,e),e.result}},handlers:function(e,t){var i,n,s,a,r=[],o=t.delegateCount,l=e.target;if(o&&l.nodeType&&(!e.button||"click"!==e.type))for(;l!==this;l=l.parentNode||this)if(!0!==l.disabled||"click"!==e.type){for(n=[],i=0;i<o;i++)void 0===n[s=(a=t[i]).selector+" "]&&(n[s]=a.needsContext?0<=M(s,this).index(l):M.find(s,this,null,[l]).length),n[s]&&n.push(a);n.length&&r.push({elem:l,handlers:n})}return o<t.length&&r.push({elem:this,handlers:t.slice(o)}),r},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var i,n,s,a=t.button;return null==e.pageX&&null!=t.clientX&&(n=(i=e.target.ownerDocument||_).documentElement,s=i.body,e.pageX=t.clientX+(n&&n.scrollLeft||s&&s.scrollLeft||0)-(n&&n.clientLeft||s&&s.clientLeft||0),e.pageY=t.clientY+(n&&n.scrollTop||s&&s.scrollTop||0)-(n&&n.clientTop||s&&s.clientTop||0)),e.which||void 0===a||(e.which=1&a?1:2&a?3:4&a?2:0),e}},fix:function(e){if(e[M.expando])return e;var t,i,n,s=e.type,a=e,r=this.fixHooks[s];for(r||(this.fixHooks[s]=r=G.test(s)?this.mouseHooks:q.test(s)?this.keyHooks:{}),n=r.props?this.props.concat(r.props):this.props,e=new M.Event(a),t=n.length;t--;)e[i=n[t]]=a[i];return e.target||(e.target=_),3===e.target.nodeType&&(e.target=e.target.parentNode),r.filter?r.filter(e,a):e},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==Q()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===Q()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&M.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(e){return M.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,i,n){var s=M.extend(new M.Event,i,{type:e,isSimulated:!0,originalEvent:{}});n?M.event.trigger(s,null,t):M.event.dispatch.call(t,s),s.isDefaultPrevented()&&i.preventDefault()}},M.removeEvent=function(e,t,i){e.removeEventListener&&e.removeEventListener(t,i,!1)},M.Event=function(e,t){return this instanceof M.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?K:Z):this.type=e,t&&M.extend(this,t),this.timeStamp=e&&e.timeStamp||M.now(),void(this[M.expando]=!0)):new M.Event(e,t)},M.Event.prototype={isDefaultPrevented:Z,isPropagationStopped:Z,isImmediatePropagationStopped:Z,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=K,e&&e.preventDefault&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=K,e&&e.stopPropagation&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=K,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}},M.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,s){M.event.special[e]={delegateType:s,bindType:s,handle:function(e){var t,i=e.relatedTarget,n=e.handleObj;return(!i||i!==this&&!M.contains(this,i))&&(e.type=n.origType,t=n.handler.apply(this,arguments),e.type=s),t}}}),v.focusinBubbles||M.each({focus:"focusin",blur:"focusout"},function(i,n){var s=function(e){M.event.simulate(n,e.target,M.event.fix(e),!0)};M.event.special[n]={setup:function(){var e=this.ownerDocument||this,t=I.access(e,n);t||e.addEventListener(i,s,!0),I.access(e,n,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this,t=I.access(e,n)-1;t?I.access(e,n,t):(e.removeEventListener(i,s,!0),I.remove(e,n))}}}),M.fn.extend({on:function(e,t,i,n,s){var a,r;if("object"==typeof e){for(r in"string"!=typeof t&&(i=i||t,t=void 0),e)this.on(r,t,i,e[r],s);return this}if(null==i&&null==n?(n=t,i=t=void 0):null==n&&("string"==typeof t?(n=i,i=void 0):(n=i,i=t,t=void 0)),!1===n)n=Z;else if(!n)return this;return 1===s&&(a=n,(n=function(e){return M().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=M.guid++)),this.each(function(){M.event.add(this,e,n,i,t)})},one:function(e,t,i,n){return this.on(e,t,i,n,1)},off:function(e,t,i){var n,s;if(e&&e.preventDefault&&e.handleObj)return n=e.handleObj,M(e.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof e){for(s in e)this.off(s,t,e[s]);return this}return(!1===t||"function"==typeof t)&&(i=t,t=void 0),!1===i&&(i=Z),this.each(function(){M.event.remove(this,e,i,t)})},trigger:function(e,t){return this.each(function(){M.event.trigger(e,t,this)})},triggerHandler:function(e,t){var i=this[0];return i?M.event.trigger(e,t,i,!0):void 0}});var ee=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,te=/<([\w:]+)/,ie=/<|&#?\w+;/,ne=/<(?:script|style|link)/i,se=/checked\s*(?:[^=]|=\s*.checked.)/i,ae=/^$|\/(?:java|ecma)script/i,re=/^true\/(.*)/,oe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,le={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function he(e,t){return M.nodeName(e,"table")&&M.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function ue(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function de(e){var t=re.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function ce(e,t){for(var i=0,n=e.length;i<n;i++)I.set(e[i],"globalEval",!t||I.get(t[i],"globalEval"))}function pe(e,t){var i,n,s,a,r,o,l,h;if(1===t.nodeType){if(I.hasData(e)&&(a=I.access(e),r=I.set(t,a),h=a.events))for(s in delete r.handle,r.events={},h)for(i=0,n=h[s].length;i<n;i++)M.event.add(t,s,h[s][i]);F.hasData(e)&&(o=F.access(e),l=M.extend({},o),F.set(t,l))}}function fe(e,t){var i=e.getElementsByTagName?e.getElementsByTagName(t||"*"):e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&M.nodeName(e,t)?M.merge([e],i):i}le.optgroup=le.option,le.tbody=le.tfoot=le.colgroup=le.caption=le.thead,le.th=le.td,M.extend({clone:function(e,t,i){var n,s,a,r,o,l,h,u=e.cloneNode(!0),d=M.contains(e.ownerDocument,e);if(!(v.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||M.isXMLDoc(e)))for(r=fe(u),n=0,s=(a=fe(e)).length;n<s;n++)o=a[n],l=r[n],void 0,"input"===(h=l.nodeName.toLowerCase())&&B.test(o.type)?l.checked=o.checked:("input"===h||"textarea"===h)&&(l.defaultValue=o.defaultValue);if(t)if(i)for(a=a||fe(e),r=r||fe(u),n=0,s=a.length;n<s;n++)pe(a[n],r[n]);else pe(e,u);return 0<(r=fe(u,"script")).length&&ce(r,!d&&fe(e,"script")),u},buildFragment:function(e,t,i,n){for(var s,a,r,o,l,h,u=t.createDocumentFragment(),d=[],c=0,p=e.length;c<p;c++)if((s=e[c])||0===s)if("object"===M.type(s))M.merge(d,s.nodeType?[s]:s);else if(ie.test(s)){for(a=a||u.appendChild(t.createElement("div")),r=(te.exec(s)||["",""])[1].toLowerCase(),o=le[r]||le._default,a.innerHTML=o[1]+s.replace(ee,"<$1></$2>")+o[2],h=o[0];h--;)a=a.lastChild;M.merge(d,a.childNodes),(a=u.firstChild).textContent=""}else d.push(t.createTextNode(s));for(u.textContent="",c=0;s=d[c++];)if((!n||-1===M.inArray(s,n))&&(l=M.contains(s.ownerDocument,s),a=fe(u.appendChild(s),"script"),l&&ce(a),i))for(h=0;s=a[h++];)ae.test(s.type||"")&&i.push(s);return u},cleanData:function(e){for(var t,i,n,s,a=M.event.special,r=0;void 0!==(i=e[r]);r++){if(M.acceptData(i)&&((s=i[I.expando])&&(t=I.cache[s]))){if(t.events)for(n in t.events)a[n]?M.event.remove(i,n):M.removeEvent(i,n,t.handle);I.cache[s]&&delete I.cache[s]}delete F.cache[i[F.expando]]}}}),M.fn.extend({text:function(e){return H(this,function(e){return void 0===e?M.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 this.domManip(arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||he(this,e).appendChild(e)})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=he(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){for(var i,n=e?M.filter(e,this):this,s=0;null!=(i=n[s]);s++)t||1!==i.nodeType||M.cleanData(fe(i)),i.parentNode&&(t&&M.contains(i.ownerDocument,i)&&ce(fe(i,"script")),i.parentNode.removeChild(i));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(M.cleanData(fe(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return M.clone(this,e,t)})},html:function(e){return H(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&&!ne.test(e)&&!le[(te.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(ee,"<$1></$2>");try{for(;i<n;i++)1===(t=this[i]||{}).nodeType&&(M.cleanData(fe(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var t=arguments[0];return this.domManip(arguments,function(e){t=this.parentNode,M.cleanData(fe(this)),t&&t.replaceChild(e,this)}),t&&(t.length||t.nodeType)?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(i,n){i=m.apply([],i);var e,t,s,a,r,o,l=0,h=this.length,u=this,d=h-1,c=i[0],p=M.isFunction(c);if(p||1<h&&"string"==typeof c&&!v.checkClone&&se.test(c))return this.each(function(e){var t=u.eq(e);p&&(i[0]=c.call(this,e,t.html())),t.domManip(i,n)});if(h&&(t=(e=M.buildFragment(i,this[0].ownerDocument,!1,this)).firstChild,1===e.childNodes.length&&(e=t),t)){for(a=(s=M.map(fe(e,"script"),ue)).length;l<h;l++)r=e,l!==d&&(r=M.clone(r,!0,!0),a&&M.merge(s,fe(r,"script"))),n.call(this[l],r,l);if(a)for(o=s[s.length-1].ownerDocument,M.map(s,de),l=0;l<a;l++)r=s[l],ae.test(r.type||"")&&!I.access(r,"globalEval")&&M.contains(o,r)&&(r.src?M._evalUrl&&M._evalUrl(r.src):M.globalEval(r.textContent.replace(oe,"")))}return this}}),M.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,r){M.fn[e]=function(e){for(var t,i=[],n=M(e),s=n.length-1,a=0;a<=s;a++)t=a===s?this:this.clone(!0),M(n[a])[r](t),o.apply(i,t.get());return this.pushStack(i)}});var me,ge={};function ve(e,t){var i,n=M(t.createElement(e)).appendTo(t.body),s=f.getDefaultComputedStyle&&(i=f.getDefaultComputedStyle(n[0]))?i.display:M.css(n[0],"display");return n.detach(),s}function _e(e){var t=_,i=ge[e];return i||("none"!==(i=ve(e,t))&&i||((t=(me=(me||M("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement))[0].contentDocument).write(),t.close(),i=ve(e,t),me.detach()),ge[e]=i),i}var ye=/^margin/,be=new RegExp("^("+R+")(?!px)[a-z%]+$","i"),xe=function(e){return e.ownerDocument.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):f.getComputedStyle(e,null)};function we(e,t,i){var n,s,a,r,o=e.style;return(i=i||xe(e))&&(r=i.getPropertyValue(t)||i[t]),i&&(""!==r||M.contains(e.ownerDocument,e)||(r=M.style(e,t)),be.test(r)&&ye.test(t)&&(n=o.width,s=o.minWidth,a=o.maxWidth,o.minWidth=o.maxWidth=o.width=r,r=i.width,o.width=n,o.minWidth=s,o.maxWidth=a)),void 0!==r?r+"":r}function Me(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}!function(){var t,i,n=_.documentElement,s=_.createElement("div"),a=_.createElement("div");if(a.style){function e(){a.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",a.innerHTML="",n.appendChild(s);var e=f.getComputedStyle(a,null);t="1%"!==e.top,i="4px"===e.width,n.removeChild(s)}a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle="content-box"===a.style.backgroundClip,s.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",s.appendChild(a),f.getComputedStyle&&M.extend(v,{pixelPosition:function(){return e(),t},boxSizingReliable:function(){return null==i&&e(),i},reliableMarginRight:function(){var e,t=a.appendChild(_.createElement("div"));return t.style.cssText=a.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",t.style.marginRight=t.style.width="0",a.style.width="1px",n.appendChild(s),e=!parseFloat(f.getComputedStyle(t,null).marginRight),n.removeChild(s),a.removeChild(t),e}})}}(),M.swap=function(e,t,i,n){var s,a,r={};for(a in t)r[a]=e.style[a],e.style[a]=t[a];for(a in s=i.apply(e,n||[]),t)e.style[a]=r[a];return s};var je=/^(none|table(?!-c[ea]).+)/,ke=new RegExp("^("+R+")(.*)$","i"),Le=new RegExp("^([+-])=("+R+")","i"),Se={position:"absolute",visibility:"hidden",display:"block"},Te={letterSpacing:"0",fontWeight:"400"},De=["Webkit","O","Moz","ms"];function Ce(e,t){if(t in e)return t;for(var i=t[0].toUpperCase()+t.slice(1),n=t,s=De.length;s--;)if((t=De[s]+i)in e)return t;return n}function Ye(e,t,i){var n=ke.exec(t);return n?Math.max(0,n[1]-(i||0))+(n[2]||"px"):t}function Ee(e,t,i,n,s){for(var a=i===(n?"border":"content")?4:"width"===t?1:0,r=0;a<4;a+=2)"margin"===i&&(r+=M.css(e,i+W[a],!0,s)),n?("content"===i&&(r-=M.css(e,"padding"+W[a],!0,s)),"margin"!==i&&(r-=M.css(e,"border"+W[a]+"Width",!0,s))):(r+=M.css(e,"padding"+W[a],!0,s),"padding"!==i&&(r+=M.css(e,"border"+W[a]+"Width",!0,s)));return r}function He(e,t,i){var n=!0,s="width"===t?e.offsetWidth:e.offsetHeight,a=xe(e),r="border-box"===M.css(e,"boxSizing",!1,a);if(s<=0||null==s){if(((s=we(e,t,a))<0||null==s)&&(s=e.style[t]),be.test(s))return s;n=r&&(v.boxSizingReliable()||s===e.style[t]),s=parseFloat(s)||0}return s+Ee(e,t,i||(r?"border":"content"),n,a)+"px"}function Ae(e,t){for(var i,n,s,a=[],r=0,o=e.length;r<o;r++)(n=e[r]).style&&(a[r]=I.get(n,"olddisplay"),i=n.style.display,t?(a[r]||"none"!==i||(n.style.display=""),""===n.style.display&&V(n)&&(a[r]=I.access(n,"olddisplay",_e(n.nodeName)))):(s=V(n),"none"===i&&s||I.set(n,"olddisplay",s?i:M.css(n,"display"))));for(r=0;r<o;r++)(n=e[r]).style&&(t&&"none"!==n.style.display&&""!==n.style.display||(n.style.display=t?a[r]||"":"none"));return e}function Ie(e,t,i,n,s){return new Ie.prototype.init(e,t,i,n,s)}M.extend({cssHooks:{opacity:{get:function(e,t){if(t){var i=we(e,"opacity");return""===i?"1":i}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(e,t,i,n){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var s,a,r,o=M.camelCase(t),l=e.style;return t=M.cssProps[o]||(M.cssProps[o]=Ce(l,o)),r=M.cssHooks[t]||M.cssHooks[o],void 0===i?r&&"get"in r&&void 0!==(s=r.get(e,!1,n))?s:l[t]:("string"===(a=typeof i)&&(s=Le.exec(i))&&(i=(s[1]+1)*s[2]+parseFloat(M.css(e,t)),a="number"),void(null!=i&&i==i&&("number"!==a||M.cssNumber[o]||(i+="px"),v.clearCloneStyle||""!==i||0!==t.indexOf("background")||(l[t]="inherit"),r&&"set"in r&&void 0===(i=r.set(e,i,n))||(l[t]=i))))}},css:function(e,t,i,n){var s,a,r,o=M.camelCase(t);return t=M.cssProps[o]||(M.cssProps[o]=Ce(e.style,o)),(r=M.cssHooks[t]||M.cssHooks[o])&&"get"in r&&(s=r.get(e,!0,i)),void 0===s&&(s=we(e,t,n)),"normal"===s&&t in Te&&(s=Te[t]),""===i||i?(a=parseFloat(s),!0===i||M.isNumeric(a)?a||0:s):s}}),M.each(["height","width"],function(e,s){M.cssHooks[s]={get:function(e,t,i){return t?je.test(M.css(e,"display"))&&0===e.offsetWidth?M.swap(e,Se,function(){return He(e,s,i)}):He(e,s,i):void 0},set:function(e,t,i){var n=i&&xe(e);return Ye(0,t,i?Ee(e,s,i,"border-box"===M.css(e,"boxSizing",!1,n),n):0)}}}),M.cssHooks.marginRight=Me(v.reliableMarginRight,function(e,t){return t?M.swap(e,{display:"inline-block"},we,[e,"marginRight"]):void 0}),M.each({margin:"",padding:"",border:"Width"},function(s,a){M.cssHooks[s+a]={expand:function(e){for(var t=0,i={},n="string"==typeof e?e.split(" "):[e];t<4;t++)i[s+W[t]+a]=n[t]||n[t-2]||n[0];return i}},ye.test(s)||(M.cssHooks[s+a].set=Ye)}),M.fn.extend({css:function(e,t){return H(this,function(e,t,i){var n,s,a={},r=0;if(M.isArray(t)){for(n=xe(e),s=t.length;r<s;r++)a[t[r]]=M.css(e,t[r],!1,n);return a}return void 0!==i?M.style(e,t,i):M.css(e,t)},e,t,1<arguments.length)},show:function(){return Ae(this,!0)},hide:function(){return Ae(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){V(this)?M(this).show():M(this).hide()})}}),((M.Tween=Ie).prototype={constructor:Ie,init:function(e,t,i,n,s,a){this.elem=e,this.prop=i,this.easing=s||"swing",this.options=t,this.start=this.now=this.cur(),this.end=n,this.unit=a||(M.cssNumber[i]?"":"px")},cur:function(){var e=Ie.propHooks[this.prop];return e&&e.get?e.get(this):Ie.propHooks._default.get(this)},run:function(e){var t,i=Ie.propHooks[this.prop];return this.options.duration?this.pos=t=M.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):Ie.propHooks._default.set(this),this}}).init.prototype=Ie.prototype,(Ie.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=M.css(e.elem,e.prop,""))&&"auto"!==t?t:0:e.elem[e.prop]},set:function(e){M.fx.step[e.prop]?M.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[M.cssProps[e.prop]]||M.cssHooks[e.prop])?M.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}}).scrollTop=Ie.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},M.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},M.fx=Ie.prototype.init,M.fx.step={};var Fe,$e,Pe,ze,Ne,Oe=/^(?:toggle|show|hide)$/,Re=new RegExp("^(?:([+-])=|)("+R+")([a-z%]*)$","i"),We=/queueHooks$/,Ve=[function(t,e,i){var n,s,a,r,o,l,h,u=this,d={},c=t.style,p=t.nodeType&&V(t),f=I.get(t,"fxshow");for(n in i.queue||(null==(o=M._queueHooks(t,"fx")).unqueued&&(o.unqueued=0,l=o.empty.fire,o.empty.fire=function(){o.unqueued||l()}),o.unqueued++,u.always(function(){u.always(function(){o.unqueued--,M.queue(t,"fx").length||o.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(i.overflow=[c.overflow,c.overflowX,c.overflowY],h=M.css(t,"display"),"inline"===("none"===h?I.get(t,"olddisplay")||_e(t.nodeName):h)&&"none"===M.css(t,"float")&&(c.display="inline-block")),i.overflow&&(c.overflow="hidden",u.always(function(){c.overflow=i.overflow[0],c.overflowX=i.overflow[1],c.overflowY=i.overflow[2]})),e)if(s=e[n],Oe.exec(s)){if(delete e[n],a=a||"toggle"===s,s===(p?"hide":"show")){if("show"!==s||!f||void 0===f[n])continue;p=!0}d[n]=f&&f[n]||M.style(t,n)}else h=void 0;if(M.isEmptyObject(d))"inline"===("none"===h?_e(t.nodeName):h)&&(c.display=h);else for(n in f?"hidden"in f&&(p=f.hidden):f=I.access(t,"fxshow",{}),a&&(f.hidden=!p),p?M(t).show():u.done(function(){M(t).hide()}),u.done(function(){var e;for(e in I.remove(t,"fxshow"),d)M.style(t,e,d[e])}),d)r=Ge(p?f[n]:0,n,u),n in f||(f[n]=r.start,p&&(r.end=r.start,r.start="width"===n||"height"===n?1:0))}],Be={"*":[function(e,t){var i=this.createTween(e,t),n=i.cur(),s=Re.exec(t),a=s&&s[3]||(M.cssNumber[e]?"":"px"),r=(M.cssNumber[e]||"px"!==a&&+n)&&Re.exec(M.css(i.elem,e)),o=1,l=20;if(r&&r[3]!==a)for(a=a||r[3],s=s||[],r=+n||1;r/=o=o||".5",M.style(i.elem,e,r+a),o!==(o=i.cur()/n)&&1!==o&&--l;);return s&&(r=i.start=+r||+n||0,i.unit=a,i.end=s[1]?r+(s[1]+1)*s[2]:+s[2]),i}]};function Ue(){return setTimeout(function(){Fe=void 0}),Fe=M.now()}function qe(e,t){var i,n=0,s={height:e};for(t=t?1:0;n<4;n+=2-t)s["margin"+(i=W[n])]=s["padding"+i]=e;return t&&(s.opacity=s.width=e),s}function Ge(e,t,i){for(var n,s=(Be[t]||[]).concat(Be["*"]),a=0,r=s.length;a<r;a++)if(n=s[a].call(i,t,e))return n}function Xe(a,e,t){var i,r,n=0,s=Ve.length,o=M.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var e=Fe||Ue(),t=Math.max(0,h.startTime+h.duration-e),i=1-(t/h.duration||0),n=0,s=h.tweens.length;n<s;n++)h.tweens[n].run(i);return o.notifyWith(a,[h,i,t]),i<1&&s?t:(o.resolveWith(a,[h]),!1)},h=o.promise({elem:a,props:M.extend({},e),opts:M.extend(!0,{specialEasing:{}},t),originalProperties:e,originalOptions:t,startTime:Fe||Ue(),duration:t.duration,tweens:[],createTween:function(e,t){var i=M.Tween(a,h.opts,e,t,h.opts.specialEasing[e]||h.opts.easing);return h.tweens.push(i),i},stop:function(e){var t=0,i=e?h.tweens.length:0;if(r)return this;for(r=!0;t<i;t++)h.tweens[t].run(1);return e?o.resolveWith(a,[h,e]):o.rejectWith(a,[h,e]),this}}),u=h.props;for(function(e,t){var i,n,s,a,r;for(i in e)if(s=t[n=M.camelCase(i)],a=e[i],M.isArray(a)&&(s=a[1],a=e[i]=a[0]),i!==n&&(e[n]=a,delete e[i]),(r=M.cssHooks[n])&&"expand"in r)for(i in a=r.expand(a),delete e[n],a)i in e||(e[i]=a[i],t[i]=s);else t[n]=s}(u,h.opts.specialEasing);n<s;n++)if(i=Ve[n].call(h,a,u,h.opts))return i;return M.map(u,Ge,h),M.isFunction(h.opts.start)&&h.opts.start.call(a,h),M.fx.timer(M.extend(l,{elem:a,anim:h,queue:h.opts.queue})),h.progress(h.opts.progress).done(h.opts.done,h.opts.complete).fail(h.opts.fail).always(h.opts.always)}M.Animation=M.extend(Xe,{tweener:function(e,t){M.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var i,n=0,s=e.length;n<s;n++)i=e[n],Be[i]=Be[i]||[],Be[i].unshift(t)},prefilter:function(e,t){t?Ve.unshift(e):Ve.push(e)}}),M.speed=function(e,t,i){var n=e&&"object"==typeof e?M.extend({},e):{complete:i||!i&&t||M.isFunction(e)&&e,duration:e,easing:i&&t||t&&!M.isFunction(t)&&t};return n.duration=M.fx.off?0:"number"==typeof n.duration?n.duration:n.duration in M.fx.speeds?M.fx.speeds[n.duration]:M.fx.speeds._default,(null==n.queue||!0===n.queue)&&(n.queue="fx"),n.old=n.complete,n.complete=function(){M.isFunction(n.old)&&n.old.call(this),n.queue&&M.dequeue(this,n.queue)},n},M.fn.extend({fadeTo:function(e,t,i,n){return this.filter(V).css("opacity",0).show().end().animate({opacity:t},e,i,n)},animate:function(t,e,i,n){var s=M.isEmptyObject(t),a=M.speed(e,i,n),r=function(){var e=Xe(this,M.extend({},t),a);(s||I.get(this,"finish"))&&e.stop(!0)};return r.finish=r,s||!1===a.queue?this.each(r):this.queue(a.queue,r)},stop:function(s,e,a){var r=function(e){var t=e.stop;delete e.stop,t(a)};return"string"!=typeof s&&(a=e,e=s,s=void 0),e&&!1!==s&&this.queue(s||"fx",[]),this.each(function(){var e=!0,t=null!=s&&s+"queueHooks",i=M.timers,n=I.get(this);if(t)n[t]&&n[t].stop&&r(n[t]);else for(t in n)n[t]&&n[t].stop&&We.test(t)&&r(n[t]);for(t=i.length;t--;)i[t].elem!==this||null!=s&&i[t].queue!==s||(i[t].anim.stop(a),e=!1,i.splice(t,1));(e||!a)&&M.dequeue(this,s)})},finish:function(r){return!1!==r&&(r=r||"fx"),this.each(function(){var e,t=I.get(this),i=t[r+"queue"],n=t[r+"queueHooks"],s=M.timers,a=i?i.length:0;for(t.finish=!0,M.queue(this,r,[]),n&&n.stop&&n.stop.call(this,!0),e=s.length;e--;)s[e].elem===this&&s[e].queue===r&&(s[e].anim.stop(!0),s.splice(e,1));for(e=0;e<a;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete t.finish})}}),M.each(["toggle","show","hide"],function(e,n){var s=M.fn[n];M.fn[n]=function(e,t,i){return null==e||"boolean"==typeof e?s.apply(this,arguments):this.animate(qe(n,!0),e,t,i)}}),M.each({slideDown:qe("show"),slideUp:qe("hide"),slideToggle:qe("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,n){M.fn[e]=function(e,t,i){return this.animate(n,e,t,i)}}),M.timers=[],M.fx.tick=function(){var e,t=0,i=M.timers;for(Fe=M.now();t<i.length;t++)(e=i[t])()||i[t]!==e||i.splice(t--,1);i.length||M.fx.stop(),Fe=void 0},M.fx.timer=function(e){M.timers.push(e),e()?M.fx.start():M.timers.pop()},M.fx.interval=13,M.fx.start=function(){$e||($e=setInterval(M.fx.tick,M.fx.interval))},M.fx.stop=function(){clearInterval($e),$e=null},M.fx.speeds={slow:600,fast:200,_default:400},M.fn.delay=function(n,e){return n=M.fx&&M.fx.speeds[n]||n,e=e||"fx",this.queue(e,function(e,t){var i=setTimeout(e,n);t.stop=function(){clearTimeout(i)}})},Pe=_.createElement("input"),ze=_.createElement("select"),Ne=ze.appendChild(_.createElement("option")),Pe.type="checkbox",v.checkOn=""!==Pe.value,v.optSelected=Ne.selected,ze.disabled=!0,v.optDisabled=!Ne.disabled,(Pe=_.createElement("input")).value="t",Pe.type="radio",v.radioValue="t"===Pe.value;var Je,Ke=M.expr.attrHandle;M.fn.extend({attr:function(e,t){return H(this,M.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){M.removeAttr(this,e)})}}),M.extend({attr:function(e,t,i){var n,s,a=e.nodeType;if(e&&3!==a&&8!==a&&2!==a)return typeof e.getAttribute===U?M.prop(e,t,i):(1===a&&M.isXMLDoc(e)||(t=t.toLowerCase(),n=M.attrHooks[t]||(M.expr.match.bool.test(t)?Je:void 0)),void 0===i?n&&"get"in n&&null!==(s=n.get(e,t))?s:null==(s=M.find.attr(e,t))?void 0:s:null!==i?n&&"set"in n&&void 0!==(s=n.set(e,i,t))?s:(e.setAttribute(t,i+""),i):void M.removeAttr(e,t))},removeAttr:function(e,t){var i,n,s=0,a=t&&t.match(C);if(a&&1===e.nodeType)for(;i=a[s++];)n=M.propFix[i]||i,M.expr.match.bool.test(i)&&(e[n]=!1),e.removeAttribute(i)},attrHooks:{type:{set:function(e,t){if(!v.radioValue&&"radio"===t&&M.nodeName(e,"input")){var i=e.value;return e.setAttribute("type",t),i&&(e.value=i),t}}}}}),Je={set:function(e,t,i){return!1===t?M.removeAttr(e,i):e.setAttribute(i,i),i}},M.each(M.expr.match.bool.source.match(/\w+/g),function(e,t){var a=Ke[t]||M.find.attr;Ke[t]=function(e,t,i){var n,s;return i||(s=Ke[t],Ke[t]=n,n=null!=a(e,t,i)?t.toLowerCase():null,Ke[t]=s),n}});var Ze=/^(?:input|select|textarea|button)$/i;M.fn.extend({prop:function(e,t){return H(this,M.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[M.propFix[e]||e]})}}),M.extend({propFix:{for:"htmlFor",class:"className"},prop:function(e,t,i){var n,s,a=e.nodeType;if(e&&3!==a&&8!==a&&2!==a)return(1!==a||!M.isXMLDoc(e))&&(t=M.propFix[t]||t,s=M.propHooks[t]),void 0!==i?s&&"set"in s&&void 0!==(n=s.set(e,i,t))?n:e[t]=i:s&&"get"in s&&null!==(n=s.get(e,t))?n:e[t]},propHooks:{tabIndex:{get:function(e){return e.hasAttribute("tabindex")||Ze.test(e.nodeName)||e.href?e.tabIndex:-1}}}}),v.optSelected||(M.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null}}),M.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){M.propFix[this.toLowerCase()]=this});var Qe=/[\t\r\n\f]/g;M.fn.extend({addClass:function(t){var e,i,n,s,a,r,o="string"==typeof t&&t,l=0,h=this.length;if(M.isFunction(t))return this.each(function(e){M(this).addClass(t.call(this,e,this.className))});if(o)for(e=(t||"").match(C)||[];l<h;l++)if(n=1===(i=this[l]).nodeType&&(i.className?(" "+i.className+" ").replace(Qe," "):" ")){for(a=0;s=e[a++];)n.indexOf(" "+s+" ")<0&&(n+=s+" ");r=M.trim(n),i.className!==r&&(i.className=r)}return this},removeClass:function(t){var e,i,n,s,a,r,o=0===arguments.length||"string"==typeof t&&t,l=0,h=this.length;if(M.isFunction(t))return this.each(function(e){M(this).removeClass(t.call(this,e,this.className))});if(o)for(e=(t||"").match(C)||[];l<h;l++)if(n=1===(i=this[l]).nodeType&&(i.className?(" "+i.className+" ").replace(Qe," "):"")){for(a=0;s=e[a++];)for(;0<=n.indexOf(" "+s+" ");)n=n.replace(" "+s+" "," ");r=t?M.trim(n):"",i.className!==r&&(i.className=r)}return this},toggleClass:function(s,t){var a=typeof s;return"boolean"==typeof t&&"string"===a?t?this.addClass(s):this.removeClass(s):this.each(M.isFunction(s)?function(e){M(this).toggleClass(s.call(this,e,this.className,t),t)}:function(){if("string"===a)for(var e,t=0,i=M(this),n=s.match(C)||[];e=n[t++];)i.hasClass(e)?i.removeClass(e):i.addClass(e);else(a===U||"boolean"===a)&&(this.className&&I.set(this,"__className__",this.className),this.className=this.className||!1===s?"":I.get(this,"__className__")||"")})},hasClass:function(e){for(var t=" "+e+" ",i=0,n=this.length;i<n;i++)if(1===this[i].nodeType&&0<=(" "+this[i].className+" ").replace(Qe," ").indexOf(t))return!0;return!1}});var et=/\r/g;M.fn.extend({val:function(i){var n,e,s,t=this[0];return arguments.length?(s=M.isFunction(i),this.each(function(e){var t;1===this.nodeType&&(null==(t=s?i.call(this,e,M(this).val()):i)?t="":"number"==typeof t?t+="":M.isArray(t)&&(t=M.map(t,function(e){return null==e?"":e+""})),(n=M.valHooks[this.type]||M.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&void 0!==n.set(this,t,"value")||(this.value=t))})):t?(n=M.valHooks[t.type]||M.valHooks[t.nodeName.toLowerCase()])&&"get"in n&&void 0!==(e=n.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(et,""):null==e?"":e:void 0}}),M.extend({valHooks:{option:{get:function(e){var t=M.find.attr(e,"value");return null!=t?t:M.trim(M.text(e))}},select:{get:function(e){for(var t,i,n=e.options,s=e.selectedIndex,a="select-one"===e.type||s<0,r=a?null:[],o=a?s+1:n.length,l=s<0?o:a?s:0;l<o;l++)if(!(!(i=n[l]).selected&&l!==s||(v.optDisabled?i.disabled:null!==i.getAttribute("disabled"))||i.parentNode.disabled&&M.nodeName(i.parentNode,"optgroup"))){if(t=M(i).val(),a)return t;r.push(t)}return r},set:function(e,t){for(var i,n,s=e.options,a=M.makeArray(t),r=s.length;r--;)((n=s[r]).selected=0<=M.inArray(n.value,a))&&(i=!0);return i||(e.selectedIndex=-1),a}}}}),M.each(["radio","checkbox"],function(){M.valHooks[this]={set:function(e,t){return M.isArray(t)?e.checked=0<=M.inArray(M(e).val(),t):void 0}},v.checkOn||(M.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),M.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,i){M.fn[i]=function(e,t){return 0<arguments.length?this.on(i,null,e,t):this.trigger(i)}}),M.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},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)}});var tt=M.now(),it=/\?/;M.parseJSON=function(e){return JSON.parse(e+"")},M.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return(!t||t.getElementsByTagName("parsererror").length)&&M.error("Invalid XML: "+e),t};var nt=/#.*$/,st=/([?&])_=[^&]*/,at=/^(.*?):[ \t]*([^\r\n]*)$/gm,rt=/^(?:GET|HEAD)$/,ot=/^\/\//,lt=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,ht={},ut={},dt="*/".concat("*"),ct=f.location.href,pt=lt.exec(ct.toLowerCase())||[];function ft(a){return function(e,t){"string"!=typeof e&&(t=e,e="*");var i,n=0,s=e.toLowerCase().match(C)||[];if(M.isFunction(t))for(;i=s[n++];)"+"===i[0]?(i=i.slice(1)||"*",(a[i]=a[i]||[]).unshift(t)):(a[i]=a[i]||[]).push(t)}}function mt(t,s,a,r){var o={},l=t===ut;function h(e){var n;return o[e]=!0,M.each(t[e]||[],function(e,t){var i=t(s,a,r);return"string"!=typeof i||l||o[i]?l?!(n=i):void 0:(s.dataTypes.unshift(i),h(i),!1)}),n}return h(s.dataTypes[0])||!o["*"]&&h("*")}function gt(e,t){var i,n,s=M.ajaxSettings.flatOptions||{};for(i in t)void 0!==t[i]&&((s[i]?e:n||(n={}))[i]=t[i]);return n&&M.extend(!0,e,n),e}M.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ct,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(pt[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":dt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":M.parseJSON,"text xml":M.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?gt(gt(e,M.ajaxSettings),t):gt(M.ajaxSettings,e)},ajaxPrefilter:ft(ht),ajaxTransport:ft(ut),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var u,d,c,i,p,n,f,s,m=M.ajaxSetup({},t),g=m.context||m,v=m.context&&(g.nodeType||g.jquery)?M(g):M.event,_=M.Deferred(),y=M.Callbacks("once memory"),b=m.statusCode||{},a={},r={},x=0,o="canceled",w={readyState:0,getResponseHeader:function(e){var t;if(2===x){if(!i)for(i={};t=at.exec(c);)i[t[1].toLowerCase()]=t[2];t=i[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===x?c:null},setRequestHeader:function(e,t){var i=e.toLowerCase();return x||(e=r[i]=r[i]||e,a[e]=t),this},overrideMimeType:function(e){return x||(m.mimeType=e),this},statusCode:function(e){var t;if(e)if(x<2)for(t in e)b[t]=[b[t],e[t]];else w.always(e[w.status]);return this},abort:function(e){var t=e||o;return u&&u.abort(t),l(0,t),this}};if(_.promise(w).complete=y.add,w.success=w.done,w.error=w.fail,m.url=((e||m.url||ct)+"").replace(nt,"").replace(ot,pt[1]+"//"),m.type=t.method||t.type||m.method||m.type,m.dataTypes=M.trim(m.dataType||"*").toLowerCase().match(C)||[""],null==m.crossDomain&&(n=lt.exec(m.url.toLowerCase()),m.crossDomain=!(!n||n[1]===pt[1]&&n[2]===pt[2]&&(n[3]||("http:"===n[1]?"80":"443"))===(pt[3]||("http:"===pt[1]?"80":"443")))),m.data&&m.processData&&"string"!=typeof m.data&&(m.data=M.param(m.data,m.traditional)),mt(ht,m,t,w),2===x)return w;for(s in(f=M.event&&m.global)&&0==M.active++&&M.event.trigger("ajaxStart"),m.type=m.type.toUpperCase(),m.hasContent=!rt.test(m.type),d=m.url,m.hasContent||(m.data&&(d=m.url+=(it.test(d)?"&":"?")+m.data,delete m.data),!1===m.cache&&(m.url=st.test(d)?d.replace(st,"$1_="+tt++):d+(it.test(d)?"&":"?")+"_="+tt++)),m.ifModified&&(M.lastModified[d]&&w.setRequestHeader("If-Modified-Since",M.lastModified[d]),M.etag[d]&&w.setRequestHeader("If-None-Match",M.etag[d])),(m.data&&m.hasContent&&!1!==m.contentType||t.contentType)&&w.setRequestHeader("Content-Type",m.contentType),w.setRequestHeader("Accept",m.dataTypes[0]&&m.accepts[m.dataTypes[0]]?m.accepts[m.dataTypes[0]]+("*"!==m.dataTypes[0]?", "+dt+"; q=0.01":""):m.accepts["*"]),m.headers)w.setRequestHeader(s,m.headers[s]);if(m.beforeSend&&(!1===m.beforeSend.call(g,w,m)||2===x))return w.abort();for(s in o="abort",{success:1,error:1,complete:1})w[s](m[s]);if(u=mt(ut,m,t,w)){w.readyState=1,f&&v.trigger("ajaxSend",[w,m]),m.async&&0<m.timeout&&(p=setTimeout(function(){w.abort("timeout")},m.timeout));try{x=1,u.send(a,l)}catch(e){if(!(x<2))throw e;l(-1,e)}}else l(-1,"No Transport");function l(e,t,i,n){var s,a,r,o,l,h=t;2!==x&&(x=2,p&&clearTimeout(p),u=void 0,c=n||"",w.readyState=0<e?4:0,s=200<=e&&e<300||304===e,i&&(o=function(e,t,i){for(var n,s,a,r,o=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=e.mimeType||t.getResponseHeader("Content-Type"));if(n)for(s in o)if(o[s]&&o[s].test(n)){l.unshift(s);break}if(l[0]in i)a=l[0];else{for(s in i){if(!l[0]||e.converters[s+" "+l[0]]){a=s;break}r||(r=s)}a=a||r}return a?(a!==l[0]&&l.unshift(a),i[a]):void 0}(m,w,i)),o=function(e,t,i,n){var s,a,r,o,l,h={},u=e.dataTypes.slice();if(u[1])for(r in e.converters)h[r.toLowerCase()]=e.converters[r];for(a=u.shift();a;)if(e.responseFields[a]&&(i[e.responseFields[a]]=t),!l&&n&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=a,a=u.shift())if("*"===a)a=l;else if("*"!==l&&l!==a){if(!(r=h[l+" "+a]||h["* "+a]))for(s in h)if((o=s.split(" "))[1]===a&&(r=h[l+" "+o[0]]||h["* "+o[0]])){!0===r?r=h[s]:!0!==h[s]&&(a=o[0],u.unshift(o[1]));break}if(!0!==r)if(r&&e.throws)t=r(t);else try{t=r(t)}catch(e){return{state:"parsererror",error:r?e:"No conversion from "+l+" to "+a}}}return{state:"success",data:t}}(m,o,w,s),s?(m.ifModified&&((l=w.getResponseHeader("Last-Modified"))&&(M.lastModified[d]=l),(l=w.getResponseHeader("etag"))&&(M.etag[d]=l)),204===e||"HEAD"===m.type?h="nocontent":304===e?h="notmodified":(h=o.state,a=o.data,s=!(r=o.error))):(r=h,(e||!h)&&(h="error",e<0&&(e=0))),w.status=e,w.statusText=(t||h)+"",s?_.resolveWith(g,[a,h,w]):_.rejectWith(g,[w,h,r]),w.statusCode(b),b=void 0,f&&v.trigger(s?"ajaxSuccess":"ajaxError",[w,m,s?a:r]),y.fireWith(g,[w,h]),f&&(v.trigger("ajaxComplete",[w,m]),--M.active||M.event.trigger("ajaxStop")))}return w},getJSON:function(e,t,i){return M.get(e,t,i,"json")},getScript:function(e,t){return M.get(e,void 0,t,"script")}}),M.each(["get","post"],function(e,s){M[s]=function(e,t,i,n){return M.isFunction(t)&&(n=n||i,i=t,t=void 0),M.ajax({url:e,type:s,dataType:n,data:t,success:i})}}),M._evalUrl=function(e){return M.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},M.fn.extend({wrapAll:function(t){var e;return M.isFunction(t)?this.each(function(e){M(this).wrapAll(t.call(this,e))}):(this[0]&&(e=M(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(i){return this.each(M.isFunction(i)?function(e){M(this).wrapInner(i.call(this,e))}:function(){var e=M(this),t=e.contents();t.length?t.wrapAll(i):e.append(i)})},wrap:function(t){var i=M.isFunction(t);return this.each(function(e){M(this).wrapAll(i?t.call(this,e):t)})},unwrap:function(){return this.parent().each(function(){M.nodeName(this,"body")||M(this).replaceWith(this.childNodes)}).end()}}),M.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0},M.expr.filters.visible=function(e){return!M.expr.filters.hidden(e)};var vt=/%20/g,_t=/\[\]$/,yt=/\r?\n/g,bt=/^(?:submit|button|image|reset|file)$/i,xt=/^(?:input|select|textarea|keygen)/i;function wt(i,e,n,s){var t;if(M.isArray(e))M.each(e,function(e,t){n||_t.test(i)?s(i,t):wt(i+"["+("object"==typeof t?e:"")+"]",t,n,s)});else if(n||"object"!==M.type(e))s(i,e);else for(t in e)wt(i+"["+t+"]",e[t],n,s)}M.param=function(e,t){var i,n=[],s=function(e,t){t=M.isFunction(t)?t():null==t?"":t,n[n.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=M.ajaxSettings&&M.ajaxSettings.traditional),M.isArray(e)||e.jquery&&!M.isPlainObject(e))M.each(e,function(){s(this.name,this.value)});else for(i in e)wt(i,e[i],t,s);return n.join("&").replace(vt,"+")},M.fn.extend({serialize:function(){return M.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=M.prop(this,"elements");return e?M.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!M(this).is(":disabled")&&xt.test(this.nodeName)&&!bt.test(e)&&(this.checked||!B.test(e))}).map(function(e,t){var i=M(this).val();return null==i?null:M.isArray(i)?M.map(i,function(e){return{name:t.name,value:e.replace(yt,"\r\n")}}):{name:t.name,value:i.replace(yt,"\r\n")}}).get()}}),M.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(e){}};var Mt=0,jt={},kt={0:200,1223:204},Lt=M.ajaxSettings.xhr();f.attachEvent&&f.attachEvent("onunload",function(){for(var e in jt)jt[e]()}),v.cors=!!Lt&&"withCredentials"in Lt,v.ajax=Lt=!!Lt,M.ajaxTransport(function(a){var r;return v.cors||Lt&&!a.crossDomain?{send:function(e,t){var i,n=a.xhr(),s=++Mt;if(n.open(a.type,a.url,a.async,a.username,a.password),a.xhrFields)for(i in a.xhrFields)n[i]=a.xhrFields[i];for(i in a.mimeType&&n.overrideMimeType&&n.overrideMimeType(a.mimeType),a.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)n.setRequestHeader(i,e[i]);r=function(e){return function(){r&&(delete jt[s],r=n.onload=n.onerror=null,"abort"===e?n.abort():"error"===e?t(n.status,n.statusText):t(kt[n.status]||n.status,n.statusText,"string"==typeof n.responseText?{text:n.responseText}:void 0,n.getAllResponseHeaders()))}},n.onload=r(),n.onerror=r("error"),r=jt[s]=r("abort");try{n.send(a.hasContent&&a.data||null)}catch(e){if(r)throw e}},abort:function(){r&&r()}}:void 0}),M.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return M.globalEval(e),e}}}),M.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),M.ajaxTransport("script",function(i){var n,s;if(i.crossDomain)return{send:function(e,t){n=M("<script>").prop({async:!0,charset:i.scriptCharset,src:i.url}).on("load error",s=function(e){n.remove(),s=null,e&&t("error"===e.type?404:200,e.type)}),_.head.appendChild(n[0])},abort:function(){s&&s()}}});var St=[],Tt=/(=)\?(?=&|$)|\?\?/;M.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=St.pop()||M.expando+"_"+tt++;return this[e]=!0,e}}),M.ajaxPrefilter("json jsonp",function(e,t,i){var n,s,a,r=!1!==e.jsonp&&(Tt.test(e.url)?"url":"string"==typeof e.data&&!(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Tt.test(e.data)&&"data");return r||"jsonp"===e.dataTypes[0]?(n=e.jsonpCallback=M.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,r?e[r]=e[r].replace(Tt,"$1"+n):!1!==e.jsonp&&(e.url+=(it.test(e.url)?"&":"?")+e.jsonp+"="+n),e.converters["script json"]=function(){return a||M.error(n+" was not called"),a[0]},e.dataTypes[0]="json",s=f[n],f[n]=function(){a=arguments},i.always(function(){f[n]=s,e[n]&&(e.jsonpCallback=t.jsonpCallback,St.push(n)),a&&M.isFunction(s)&&s(a[0]),a=s=void 0}),"script"):void 0}),M.parseHTML=function(e,t,i){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(i=t,t=!1),t=t||_;var n=b.exec(e),s=!i&&[];return n?[t.createElement(n[1])]:(n=M.buildFragment([e],t,s),s&&s.length&&M(s).remove(),M.merge([],n.childNodes))};var Dt=M.fn.load;M.fn.load=function(e,t,i){if("string"!=typeof e&&Dt)return Dt.apply(this,arguments);var n,s,a,r=this,o=e.indexOf(" ");return 0<=o&&(n=M.trim(e.slice(o)),e=e.slice(0,o)),M.isFunction(t)?(i=t,t=void 0):t&&"object"==typeof t&&(s="POST"),0<r.length&&M.ajax({url:e,type:s,dataType:"html",data:t}).done(function(e){a=arguments,r.html(n?M("<div>").append(M.parseHTML(e)).find(n):e)}).complete(i&&function(e,t){r.each(i,a||[e.responseText,t,e])}),this},M.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){M.fn[t]=function(e){return this.on(t,e)}}),M.expr.filters.animated=function(t){return M.grep(M.timers,function(e){return t===e.elem}).length};var Ct=f.document.documentElement;function Yt(e){return M.isWindow(e)?e:9===e.nodeType&&e.defaultView}M.offset={setOffset:function(e,t,i){var n,s,a,r,o,l,h=M.css(e,"position"),u=M(e),d={};"static"===h&&(e.style.position="relative"),o=u.offset(),a=M.css(e,"top"),l=M.css(e,"left"),("absolute"===h||"fixed"===h)&&-1<(a+l).indexOf("auto")?(r=(n=u.position()).top,s=n.left):(r=parseFloat(a)||0,s=parseFloat(l)||0),M.isFunction(t)&&(t=t.call(e,i,o)),null!=t.top&&(d.top=t.top-o.top+r),null!=t.left&&(d.left=t.left-o.left+s),"using"in t?t.using.call(e,d):u.css(d)}},M.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){M.offset.setOffset(this,t,e)});var e,i,n=this[0],s={top:0,left:0},a=n&&n.ownerDocument;return a?(e=a.documentElement,M.contains(e,n)?(typeof n.getBoundingClientRect!==U&&(s=n.getBoundingClientRect()),i=Yt(a),{top:s.top+i.pageYOffset-e.clientTop,left:s.left+i.pageXOffset-e.clientLeft}):s):void 0},position:function(){if(this[0]){var e,t,i=this[0],n={top:0,left:0};return"fixed"===M.css(i,"position")?t=i.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),M.nodeName(e[0],"html")||(n=e.offset()),n.top+=M.css(e[0],"borderTopWidth",!0),n.left+=M.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-M.css(i,"marginTop",!0),left:t.left-n.left-M.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||Ct;e&&!M.nodeName(e,"html")&&"static"===M.css(e,"position");)e=e.offsetParent;return e||Ct})}}),M.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,s){var a="pageYOffset"===s;M.fn[t]=function(e){return H(this,function(e,t,i){var n=Yt(e);return void 0===i?n?n[s]:e[t]:void(n?n.scrollTo(a?f.pageXOffset:i,a?i:f.pageYOffset):e[t]=i)},t,e,arguments.length,null)}}),M.each(["top","left"],function(e,i){M.cssHooks[i]=Me(v.pixelPosition,function(e,t){return t?(t=we(e,i),be.test(t)?M(e).position()[i]+"px":t):void 0})}),M.each({Height:"height",Width:"width"},function(a,r){M.each({padding:"inner"+a,content:r,"":"outer"+a},function(n,e){M.fn[e]=function(e,t){var i=arguments.length&&(n||"boolean"!=typeof e),s=n||(!0===e||!0===t?"margin":"border");return H(this,function(e,t,i){var n;return M.isWindow(e)?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?M.css(e,t,s):M.style(e,t,i,s)},r,i?e:void 0,i,null)}})}),M.fn.size=function(){return this.length},M.fn.andSelf=M.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return M});var Et=f.jQuery,Ht=f.$;return M.noConflict=function(e){return f.$===M&&(f.$=Ht),e&&f.jQuery===M&&(f.jQuery=Et),M},typeof e===U&&(f.jQuery=f.$=M),M}),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(e){"use strict";var t=jQuery.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher")}(),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(L){function e(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},L.extend(this._defaults,this.regional[""]),this.regional.en=L.extend(!0,{},this.regional[""]),this.regional["en-US"]=L.extend(!0,{},this.regional.en),this.dpDiv=i(L("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function i(e){var t="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.on("mouseout",t,function(){L(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&L(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&L(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",t,a)}function a(){L.datepicker._isDisabledDatepicker(v.inline?v.dpDiv.parent()[0]:v.input[0])||(L(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),L(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&L(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&L(this).addClass("ui-datepicker-next-hover"))}function d(e,t){for(var i in L.extend(e,t),t)null==t[i]&&(e[i]=t[i]);return e}function t(t){return function(){var e=this.element.val();t.apply(this,arguments),this._refresh(),e!==this.element.val()&&this._trigger("change")}}L.ui=L.ui||{},L.ui.version="1.12.1";var n,s,r=0,o=Array.prototype.slice;L.cleanData=(s=L.cleanData,function(e){var t,i,n;for(n=0;null!=(i=e[n]);n++)try{(t=L._data(i,"events"))&&t.remove&&L(i).triggerHandler("remove")}catch(e){}s(e)}),L.widget=function(e,i,t){var n,s,a,r={},o=e.split(".")[0],l=o+"-"+(e=e.split(".")[1]);return t||(t=i,i=L.Widget),L.isArray(t)&&(t=L.extend.apply(null,[{}].concat(t))),L.expr[":"][l.toLowerCase()]=function(e){return!!L.data(e,l)},L[o]=L[o]||{},n=L[o][e],s=L[o][e]=function(e,t){return this._createWidget?void(arguments.length&&this._createWidget(e,t)):new s(e,t)},L.extend(s,n,{version:t.version,_proto:L.extend({},t),_childConstructors:[]}),(a=new i).options=L.widget.extend({},a.options),L.each(t,function(t,a){return L.isFunction(a)?void(r[t]=function(){function n(){return i.prototype[t].apply(this,arguments)}function s(e){return i.prototype[t].apply(this,e)}return function(){var e,t=this._super,i=this._superApply;return this._super=n,this._superApply=s,e=a.apply(this,arguments),this._super=t,this._superApply=i,e}}()):void(r[t]=a)}),s.prototype=L.widget.extend(a,{widgetEventPrefix:n&&a.widgetEventPrefix||e},r,{constructor:s,namespace:o,widgetName:e,widgetFullName:l}),n?(L.each(n._childConstructors,function(e,t){var i=t.prototype;L.widget(i.namespace+"."+i.widgetName,s,t._proto)}),delete n._childConstructors):i._childConstructors.push(s),L.widget.bridge(e,s),s},L.widget.extend=function(e){for(var t,i,n=o.call(arguments,1),s=0,a=n.length;s<a;s++)for(t in n[s])i=n[s][t],n[s].hasOwnProperty(t)&&void 0!==i&&(e[t]=L.isPlainObject(i)?L.isPlainObject(e[t])?L.widget.extend({},e[t],i):L.widget.extend({},i):i);return e},L.widget.bridge=function(a,t){var r=t.prototype.widgetFullName||a;L.fn[a]=function(i){var e="string"==typeof i,n=o.call(arguments,1),s=this;return e?this.length||"instance"!==i?this.each(function(){var e,t=L.data(this,r);return"instance"===i?(s=t,!1):t?L.isFunction(t[i])&&"_"!==i.charAt(0)?(e=t[i].apply(t,n))!==t&&void 0!==e?(s=e&&e.jquery?s.pushStack(e.get()):e,!1):void 0:L.error("no such method '"+i+"' for "+a+" widget instance"):L.error("cannot call methods on "+a+" prior to initialization; attempted to call method '"+i+"'")}):s=void 0:(n.length&&(i=L.widget.extend.apply(null,[i].concat(n))),this.each(function(){var e=L.data(this,r);e?(e.option(i||{}),e._init&&e._init()):L.data(this,r,new t(i,this))})),s}},L.Widget=function(){},L.Widget._childConstructors=[],L.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(e,t){t=L(t||this.defaultElement||this)[0],this.element=L(t),this.uuid=r++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=L(),this.hoverable=L(),this.focusable=L(),this.classesElementLookup={},t!==this&&(L.data(t,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===t&&this.destroy()}}),this.document=L(t.style?t.ownerDocument:t.document||t),this.window=L(this.document[0].defaultView||this.document[0].parentWindow)),this.options=L.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:L.noop,_create:L.noop,_init:L.noop,destroy:function(){var i=this;this._destroy(),L.each(this.classesElementLookup,function(e,t){i._removeClass(t,e)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:L.noop,widget:function(){return this.element},option:function(e,t){var i,n,s,a=e;if(0===arguments.length)return L.widget.extend({},this.options);if("string"==typeof e)if(a={},e=(i=e.split(".")).shift(),i.length){for(n=a[e]=L.widget.extend({},this.options[e]),s=0;i.length-1>s;s++)n[i[s]]=n[i[s]]||{},n=n[i[s]];if(e=i.pop(),1===arguments.length)return void 0===n[e]?null:n[e];n[e]=t}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];a[e]=t}return this._setOptions(a),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return"classes"===e&&this._setOptionClasses(t),this.options[e]=t,"disabled"===e&&this._setOptionDisabled(t),this},_setOptionClasses:function(e){var t,i,n;for(t in e)n=this.classesElementLookup[t],e[t]!==this.options.classes[t]&&n&&n.length&&(i=L(n.get()),this._removeClass(n,t),i.addClass(this._classes({element:i,keys:t,classes:e,add:!0})))},_setOptionDisabled:function(e){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!e),e&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(s){function e(e,t){var i,n;for(n=0;e.length>n;n++)i=r.classesElementLookup[e[n]]||L(),i=s.add?L(L.unique(i.get().concat(s.element.get()))):L(i.not(s.element).get()),r.classesElementLookup[e[n]]=i,a.push(e[n]),t&&s.classes[e[n]]&&a.push(s.classes[e[n]])}var a=[],r=this;return s=L.extend({element:this.element,classes:this.options.classes||{}},s),this._on(s.element,{remove:"_untrackClassesElement"}),s.keys&&e(s.keys.match(/\S+/g)||[],!0),s.extra&&e(s.extra.match(/\S+/g)||[]),a.join(" ")},_untrackClassesElement:function(i){var n=this;L.each(n.classesElementLookup,function(e,t){-1!==L.inArray(i.target,t)&&(n.classesElementLookup[e]=L(t.not(i.target).get()))})},_removeClass:function(e,t,i){return this._toggleClass(e,t,i,!1)},_addClass:function(e,t,i){return this._toggleClass(e,t,i,!0)},_toggleClass:function(e,t,i,n){n="boolean"==typeof n?n:i;var s="string"==typeof e||null===e,a={extra:s?t:i,keys:s?e:t,element:s?this.element:e,add:n};return a.element.toggleClass(this._classes(a),n),this},_on:function(r,o,e){var l,h=this;"boolean"!=typeof r&&(e=o,o=r,r=!1),e?(o=l=L(o),this.bindings=this.bindings.add(o)):(e=o,o=this.element,l=this.widget()),L.each(e,function(e,t){function i(){return r||!0!==h.options.disabled&&!L(this).hasClass("ui-state-disabled")?("string"==typeof t?h[t]:t).apply(h,arguments):void 0}"string"!=typeof t&&(i.guid=t.guid=t.guid||i.guid||L.guid++);var n=e.match(/^([\w:-]*)\s*(.*)$/),s=n[1]+h.eventNamespace,a=n[2];a?l.on(s,a,i):o.on(s,i)})},_off:function(e,t){t=(t||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(t).off(t),this.bindings=L(this.bindings.not(e).get()),this.focusable=L(this.focusable.not(e).get()),this.hoverable=L(this.hoverable.not(e).get())},_delay:function(e,t){var i=this;return setTimeout(function(){return("string"==typeof e?i[e]:e).apply(i,arguments)},t||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(L(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(L(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(L(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(L(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,t,i){var n,s,a=this.options[e];if(i=i||{},(t=L.Event(t)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),t.target=this.element[0],s=t.originalEvent)for(n in s)n in t||(t[n]=s[n]);return this.element.trigger(t,i),!(L.isFunction(a)&&!1===a.apply(this.element[0],[t].concat(i))||t.isDefaultPrevented())}},L.each({show:"fadeIn",hide:"fadeOut"},function(a,r){L.Widget.prototype["_"+a]=function(t,e,i){"string"==typeof e&&(e={effect:e});var n,s=e?!0===e||"number"==typeof e?r:e.effect||r:a;"number"==typeof(e=e||{})&&(e={duration:e}),n=!L.isEmptyObject(e),e.complete=i,e.delay&&t.delay(e.delay),n&&L.effects&&L.effects.effect[s]?t[a](e):s!==a&&t[s]?t[s](e.duration,e.easing,i):t.queue(function(e){L(this)[a](),i&&i.call(t[0]),e()})}}),L.widget,function(){function w(e,t,i){return[parseFloat(e[0])*(l.test(e[0])?t/100:1),parseFloat(e[1])*(l.test(e[1])?i/100:1)]}function M(e,t){return parseInt(L.css(e,t),10)||0}var s,j=Math.max,k=Math.abs,n=/left|center|right/,a=/top|center|bottom/,r=/[\+\-]\d+(\.[\d]+)?%?/,o=/^\w+/,l=/%$/,h=L.fn.position;L.position={scrollbarWidth:function(){if(void 0!==s)return s;var e,t,i=L("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),n=i.children()[0];return L("body").append(i),e=n.offsetWidth,i.css("overflow","scroll"),e===(t=n.offsetWidth)&&(t=i[0].clientWidth),i.remove(),s=e-t},getScrollInfo:function(e){var t=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),i=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),n="scroll"===t||"auto"===t&&e.width<e.element[0].scrollWidth;return{width:"scroll"===i||"auto"===i&&e.height<e.element[0].scrollHeight?L.position.scrollbarWidth():0,height:n?L.position.scrollbarWidth():0}},getWithinInfo:function(e){var t=L(e||window),i=L.isWindow(t[0]),n=!!t[0]&&9===t[0].nodeType;return{element:t,isWindow:i,isDocument:n,offset:!i&&!n?L(e).offset():{left:0,top:0},scrollLeft:t.scrollLeft(),scrollTop:t.scrollTop(),width:t.outerWidth(),height:t.outerHeight()}}},L.fn.position=function(d){if(!d||!d.of)return h.apply(this,arguments);d=L.extend({},d);var c,p,f,m,g,e,t,i,v=L(d.of),_=L.position.getWithinInfo(d.within),y=L.position.getScrollInfo(_),b=(d.collision||"flip").split(" "),x={};return e=9===(i=(t=v)[0]).nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:L.isWindow(i)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()},v[0].preventDefault&&(d.at="left top"),p=e.width,f=e.height,m=e.offset,g=L.extend({},m),L.each(["my","at"],function(){var e,t,i=(d[this]||"").split(" ");1===i.length&&(i=n.test(i[0])?i.concat(["center"]):a.test(i[0])?["center"].concat(i):["center","center"]),i[0]=n.test(i[0])?i[0]:"center",i[1]=a.test(i[1])?i[1]:"center",e=r.exec(i[0]),t=r.exec(i[1]),x[this]=[e?e[0]:0,t?t[0]:0],d[this]=[o.exec(i[0])[0],o.exec(i[1])[0]]}),1===b.length&&(b[1]=b[0]),"right"===d.at[0]?g.left+=p:"center"===d.at[0]&&(g.left+=p/2),"bottom"===d.at[1]?g.top+=f:"center"===d.at[1]&&(g.top+=f/2),c=w(x.at,p,f),g.left+=c[0],g.top+=c[1],this.each(function(){var i,e,r=L(this),o=r.outerWidth(),l=r.outerHeight(),t=M(this,"marginLeft"),n=M(this,"marginTop"),s=o+t+M(this,"marginRight")+y.width,a=l+n+M(this,"marginBottom")+y.height,h=L.extend({},g),u=w(x.my,r.outerWidth(),r.outerHeight());"right"===d.my[0]?h.left-=o:"center"===d.my[0]&&(h.left-=o/2),"bottom"===d.my[1]?h.top-=l:"center"===d.my[1]&&(h.top-=l/2),h.left+=u[0],h.top+=u[1],i={marginLeft:t,marginTop:n},L.each(["left","top"],function(e,t){L.ui.position[b[e]]&&L.ui.position[b[e]][t](h,{targetWidth:p,targetHeight:f,elemWidth:o,elemHeight:l,collisionPosition:i,collisionWidth:s,collisionHeight:a,offset:[c[0]+u[0],c[1]+u[1]],my:d.my,at:d.at,within:_,elem:r})}),d.using&&(e=function(e){var t=m.left-h.left,i=t+p-o,n=m.top-h.top,s=n+f-l,a={target:{element:v,left:m.left,top:m.top,width:p,height:f},element:{element:r,left:h.left,top:h.top,width:o,height:l},horizontal:i<0?"left":0<t?"right":"center",vertical:s<0?"top":0<n?"bottom":"middle"};p<o&&p>k(t+i)&&(a.horizontal="center"),f<l&&f>k(n+s)&&(a.vertical="middle"),a.important=j(k(t),k(i))>j(k(n),k(s))?"horizontal":"vertical",d.using.call(this,e,a)}),r.offset(L.extend(h,{using:e}))})},L.ui.position={fit:{left:function(e,t){var i,n=t.within,s=n.isWindow?n.scrollLeft:n.offset.left,a=n.width,r=e.left-t.collisionPosition.marginLeft,o=s-r,l=r+t.collisionWidth-a-s;t.collisionWidth>a?0<o&&l<=0?(i=e.left+o+t.collisionWidth-a-s,e.left+=o-i):e.left=0<l&&o<=0?s:l<o?s+a-t.collisionWidth:s:0<o?e.left+=o:0<l?e.left-=l:e.left=j(e.left-r,e.left)},top:function(e,t){var i,n=t.within,s=n.isWindow?n.scrollTop:n.offset.top,a=t.within.height,r=e.top-t.collisionPosition.marginTop,o=s-r,l=r+t.collisionHeight-a-s;t.collisionHeight>a?0<o&&l<=0?(i=e.top+o+t.collisionHeight-a-s,e.top+=o-i):e.top=0<l&&o<=0?s:l<o?s+a-t.collisionHeight:s:0<o?e.top+=o:0<l?e.top-=l:e.top=j(e.top-r,e.top)}},flip:{left:function(e,t){var i,n,s=t.within,a=s.offset.left+s.scrollLeft,r=s.width,o=s.isWindow?s.scrollLeft:s.offset.left,l=e.left-t.collisionPosition.marginLeft,h=l-o,u=l+t.collisionWidth-r-o,d="left"===t.my[0]?-t.elemWidth:"right"===t.my[0]?t.elemWidth:0,c="left"===t.at[0]?t.targetWidth:"right"===t.at[0]?-t.targetWidth:0,p=-2*t.offset[0];h<0?((i=e.left+d+c+p+t.collisionWidth-r-a)<0||k(h)>i)&&(e.left+=d+c+p):0<u&&((0<(n=e.left-t.collisionPosition.marginLeft+d+c+p-o)||u>k(n))&&(e.left+=d+c+p))},top:function(e,t){var i,n,s=t.within,a=s.offset.top+s.scrollTop,r=s.height,o=s.isWindow?s.scrollTop:s.offset.top,l=e.top-t.collisionPosition.marginTop,h=l-o,u=l+t.collisionHeight-r-o,d="top"===t.my[1]?-t.elemHeight:"bottom"===t.my[1]?t.elemHeight:0,c="top"===t.at[1]?t.targetHeight:"bottom"===t.at[1]?-t.targetHeight:0,p=-2*t.offset[1];h<0?((n=e.top+d+c+p+t.collisionHeight-r-a)<0||k(h)>n)&&(e.top+=d+c+p):0<u&&((0<(i=e.top-t.collisionPosition.marginTop+d+c+p-o)||u>k(i))&&(e.top+=d+c+p))}},flipfit:{left:function(){L.ui.position.flip.left.apply(this,arguments),L.ui.position.fit.left.apply(this,arguments)},top:function(){L.ui.position.flip.top.apply(this,arguments),L.ui.position.fit.top.apply(this,arguments)}}}}(),L.ui.position,L.extend(L.expr[":"],{data:L.expr.createPseudo?L.expr.createPseudo(function(t){return function(e){return!!L.data(e,t)}}):function(e,t,i){return!!L.data(e,i[3])}}),L.fn.extend({disableSelection:(n="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(n+".ui-disableSelection",function(e){e.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}});var l,h="ui-effects-",c="ui-effects-style",p="ui-effects-animated",u=L;L.effects={effect:{}},function(u,d){function c(e,t,i){var n=g[t.type]||{};return null==e?i||!t.def?null:t.def:(e=n.floor?~~e:parseFloat(e),isNaN(e)?t.def:n.mod?(e+n.mod)%n.mod:e<0?0:e>n.max?n.max:e)}function o(r){var o=f(),l=o._rgba=[];return r=r.toLowerCase(),v(e,function(e,t){var i,n=t.re.exec(r),s=n&&t.parse(n),a=t.space||"rgba";return s?(i=o[a](s),o[m[a].cache]=i[m[a].cache],l=o._rgba=i._rgba,!1):d}),l.length?("0,0,0,0"===l.join()&&u.extend(l,h.transparent),o):h[r]}function l(e,t,i){return 6*(i=(i+1)%1)<1?e+6*(t-e)*i:2*i<1?t:3*i<2?e+6*(t-e)*(2/3-i):e}var h,p=/^([\-+])=\s*(\d+\.?\d*)/,e=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[e[1],e[2],e[3],e[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[2.55*e[1],2.55*e[2],2.55*e[3],e[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(e){return[e[1],e[2]/100,e[3]/100,e[4]]}}],f=u.Color=function(e,t,i,n){return new u.Color.fn.parse(e,t,i,n)},m={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},g={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},r=f.support={},t=u("<p>")[0],v=u.each;t.style.cssText="background-color:rgba(1,1,1,.5)",r.rgba=-1<t.style.backgroundColor.indexOf("rgba"),v(m,function(e,t){t.cache="_"+e,t.props.alpha={idx:3,type:"percent",def:1}}),f.fn=u.extend(f.prototype,{parse:function(s,e,t,i){if(s===d)return this._rgba=[null,null,null,null],this;(s.jquery||s.nodeType)&&(s=u(s).css(e),e=d);var a=this,n=u.type(s),r=this._rgba=[];return e!==d&&(s=[s,e,t,i],n="array"),"string"===n?this.parse(o(s)||h._default):"array"===n?(v(m.rgba.props,function(e,t){r[t.idx]=c(s[t.idx],t)}),this):"object"===n?(v(m,s instanceof f?function(e,t){s[t.cache]&&(a[t.cache]=s[t.cache].slice())}:function(e,i){var n=i.cache;v(i.props,function(e,t){if(!a[n]&&i.to){if("alpha"===e||null==s[e])return;a[n]=i.to(a._rgba)}a[n][t.idx]=c(s[e],t,!0)}),a[n]&&u.inArray(null,a[n].slice(0,3))<0&&(a[n][3]=1,i.from&&(a._rgba=i.from(a[n])))}),this):d},is:function(e){var s=f(e),a=!0,r=this;return v(m,function(e,t){var i,n=s[t.cache];return n&&(i=r[t.cache]||t.to&&t.to(r._rgba)||[],v(t.props,function(e,t){return null!=n[t.idx]?a=n[t.idx]===i[t.idx]:d})),a}),a},_space:function(){var i=[],n=this;return v(m,function(e,t){n[t.cache]&&i.push(e)}),i.pop()},transition:function(e,r){var o=f(e),t=o._space(),i=m[t],n=0===this.alpha()?f("transparent"):this,l=n[i.cache]||i.to(n._rgba),h=l.slice();return o=o[i.cache],v(i.props,function(e,t){var i=t.idx,n=l[i],s=o[i],a=g[t.type]||{};null!==s&&(null===n?h[i]=s:(a.mod&&(s-n>a.mod/2?n+=a.mod:n-s>a.mod/2&&(n-=a.mod)),h[i]=c((s-n)*r+n,t)))}),this[t](h)},blend:function(e){if(1===this._rgba[3])return this;var t=this._rgba.slice(),i=t.pop(),n=f(e)._rgba;return f(u.map(t,function(e,t){return(1-i)*n[t]+i*e}))},toRgbaString:function(){var e="rgba(",t=u.map(this._rgba,function(e,t){return null==e?2<t?1:0:e});return 1===t[3]&&(t.pop(),e="rgb("),e+t.join()+")"},toHslaString:function(){var e="hsla(",t=u.map(this.hsla(),function(e,t){return null==e&&(e=2<t?1:0),t&&t<3&&(e=Math.round(100*e)+"%"),e});return 1===t[3]&&(t.pop(),e="hsl("),e+t.join()+")"},toHexString:function(e){var t=this._rgba.slice(),i=t.pop();return e&&t.push(~~(255*i)),"#"+u.map(t,function(e){return 1===(e=(e||0).toString(16)).length?"0"+e:e}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),f.fn.parse.prototype=f.fn,m.hsla.to=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t,i,n=e[0]/255,s=e[1]/255,a=e[2]/255,r=e[3],o=Math.max(n,s,a),l=Math.min(n,s,a),h=o-l,u=o+l,d=.5*u;return t=l===o?0:n===o?60*(s-a)/h+360:s===o?60*(a-n)/h+120:60*(n-s)/h+240,i=0===h?0:d<=.5?h/u:h/(2-u),[Math.round(t)%360,i,d,null==r?1:r]},m.hsla.from=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t=e[0]/360,i=e[1],n=e[2],s=e[3],a=n<=.5?n*(1+i):n+i-n*i,r=2*n-a;return[Math.round(255*l(r,a,t+1/3)),Math.round(255*l(r,a,t)),Math.round(255*l(r,a,t-1/3)),s]},v(m,function(l,e){var i=e.props,r=e.cache,o=e.to,h=e.from;f.fn[l]=function(e){if(o&&!this[r]&&(this[r]=o(this._rgba)),e===d)return this[r].slice();var t,n=u.type(e),s="array"===n||"object"===n?e:arguments,a=this[r].slice();return v(i,function(e,t){var i=s["object"===n?e:t.idx];null==i&&(i=a[t.idx]),a[t.idx]=c(i,t)}),h?((t=f(h(a)))[r]=a,t):f(a)},v(i,function(r,o){f.fn[r]||(f.fn[r]=function(e){var t,i=u.type(e),n="alpha"===r?this._hsla?"hsla":"rgba":l,s=this[n](),a=s[o.idx];return"undefined"===i?a:("function"===i&&(e=e.call(this,a),i=u.type(e)),null==e&&o.empty?this:("string"===i&&((t=p.exec(e))&&(e=a+parseFloat(t[2])*("+"===t[1]?1:-1))),s[o.idx]=e,this[n](s)))})})}),f.hook=function(e){var t=e.split(" ");v(t,function(e,a){u.cssHooks[a]={set:function(e,t){var i,n,s="";if("transparent"!==t&&("string"!==u.type(t)||(i=o(t)))){if(t=f(i||t),!r.rgba&&1!==t._rgba[3]){for(n="backgroundColor"===a?e.parentNode:e;(""===s||"transparent"===s)&&n&&n.style;)try{s=u.css(n,"backgroundColor"),n=n.parentNode}catch(e){}t=t.blend(s&&"transparent"!==s?s:"_default")}t=t.toRgbaString()}try{e.style[a]=t}catch(e){}}},u.fx.step[a]=function(e){e.colorInit||(e.start=f(e.elem,a),e.end=f(e.end),e.colorInit=!0),u.cssHooks[a].set(e.elem,e.start.transition(e.end,e.pos))}})},f.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),u.cssHooks.borderColor={expand:function(i){var n={};return v(["Top","Right","Bottom","Left"],function(e,t){n["border"+t+"Color"]=i}),n}},h=u.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(u),function(){function r(e){var t,i,n=e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,null):e.currentStyle,s={};if(n&&n.length&&n[0]&&n[n[0]])for(i=n.length;i--;)"string"==typeof n[t=n[i]]&&(s[L.camelCase(t)]=n[t]);else for(t in n)"string"==typeof n[t]&&(s[t]=n[t]);return s}var a,s,o,l=["add","remove","toggle"],h={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};L.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(e,t){L.fx.step[t]=function(e){("none"!==e.end&&!e.setAttr||1===e.pos&&!e.setAttr)&&(u.style(e.elem,t,e.end),e.setAttr=!0)}}),L.fn.addBack||(L.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),L.effects.animateClass=function(s,e,t,i){var a=L.speed(e,t,i);return this.queue(function(){var e,i=L(this),t=i.attr("class")||"",n=a.children?i.find("*").addBack():i;n=n.map(function(){return{el:L(this),start:r(this)}}),(e=function(){L.each(l,function(e,t){s[t]&&i[t+"Class"](s[t])})})(),n=n.map(function(){return this.end=r(this.el[0]),this.diff=function(e,t){var i,n,s={};for(i in t)n=t[i],e[i]!==n&&(h[i]||(L.fx.step[i]||!isNaN(parseFloat(n)))&&(s[i]=n));return s}(this.start,this.end),this}),i.attr("class",t),n=n.map(function(){var e=this,t=L.Deferred(),i=L.extend({},a,{queue:!1,complete:function(){t.resolve(e)}});return this.el.animate(this.diff,i),t.promise()}),L.when.apply(L,n.get()).done(function(){e(),L.each(arguments,function(){var t=this.el;L.each(this.diff,function(e){t.css(e,"")})}),a.complete.call(i[0])})})},L.fn.extend({addClass:(o=L.fn.addClass,function(e,t,i,n){return t?L.effects.animateClass.call(this,{add:e},t,i,n):o.apply(this,arguments)}),removeClass:(s=L.fn.removeClass,function(e,t,i,n){return 1<arguments.length?L.effects.animateClass.call(this,{remove:e},t,i,n):s.apply(this,arguments)}),toggleClass:(a=L.fn.toggleClass,function(e,t,i,n,s){return"boolean"==typeof t||void 0===t?i?L.effects.animateClass.call(this,t?{add:e}:{remove:e},i,n,s):a.apply(this,arguments):L.effects.animateClass.call(this,{toggle:e},t,i,n)}),switchClass:function(e,t,i,n,s){return L.effects.animateClass.call(this,{add:t,remove:e},i,n,s)}})}(),function(){function u(e,t,i,n){return L.isPlainObject(e)&&(e=(t=e).effect),e={effect:e},null==t&&(t={}),L.isFunction(t)&&(n=t,i=null,t={}),("number"==typeof t||L.fx.speeds[t])&&(n=i,i=t,t={}),L.isFunction(i)&&(n=i,i=null),t&&L.extend(e,t),i=i||t.duration,e.duration=L.fx.off?0:"number"==typeof i?i:i in L.fx.speeds?L.fx.speeds[i]:L.fx.speeds._default,e.complete=n||t.complete,e}function i(e){return!(e&&"number"!=typeof e&&!L.fx.speeds[e])||("string"==typeof e&&!L.effects.effect[e]||(!!L.isFunction(e)||"object"==typeof e&&!e.effect))}function t(e,t){var i=t.outerWidth(),n=t.outerHeight(),s=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(e)||["",0,i,n,0];return{top:parseFloat(s[1])||0,right:"auto"===s[2]?i:parseFloat(s[2]),bottom:"auto"===s[3]?n:parseFloat(s[3]),left:parseFloat(s[4])||0}}var n,s,a,r;L.expr&&L.expr.filters&&L.expr.filters.animated&&(L.expr.filters.animated=(r=L.expr.filters.animated,function(e){return!!L(e).data(p)||r(e)})),!1!==L.uiBackCompat&&L.extend(L.effects,{save:function(e,t){for(var i=0,n=t.length;i<n;i++)null!==t[i]&&e.data(h+t[i],e[0].style[t[i]])},restore:function(e,t){for(var i,n=0,s=t.length;n<s;n++)null!==t[n]&&(i=e.data(h+t[n]),e.css(t[n],i))},setMode:function(e,t){return"toggle"===t&&(t=e.is(":hidden")?"show":"hide"),t},createWrapper:function(i){if(i.parent().is(".ui-effects-wrapper"))return i.parent();var n={width:i.outerWidth(!0),height:i.outerHeight(!0),float:i.css("float")},e=L("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),t={width:i.width(),height:i.height()},s=document.activeElement;try{s.id}catch(e){s=document.body}return i.wrap(e),(i[0]===s||L.contains(i[0],s))&&L(s).trigger("focus"),e=i.parent(),"static"===i.css("position")?(e.css({position:"relative"}),i.css({position:"relative"})):(L.extend(n,{position:i.css("position"),zIndex:i.css("z-index")}),L.each(["top","left","bottom","right"],function(e,t){n[t]=i.css(t),isNaN(parseInt(n[t],10))&&(n[t]="auto")}),i.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),i.css(t),e.css(n).show()},removeWrapper:function(e){var t=document.activeElement;return e.parent().is(".ui-effects-wrapper")&&(e.parent().replaceWith(e),(e[0]===t||L.contains(e[0],t))&&L(t).trigger("focus")),e}}),L.extend(L.effects,{version:"1.12.1",define:function(e,t,i){return i||(i=t,t="effect"),L.effects.effect[e]=i,L.effects.effect[e].mode=t,i},scaledDimensions:function(e,t,i){if(0===t)return{height:0,width:0,outerHeight:0,outerWidth:0};var n="horizontal"!==i?(t||100)/100:1,s="vertical"!==i?(t||100)/100:1;return{height:e.height()*s,width:e.width()*n,outerHeight:e.outerHeight()*s,outerWidth:e.outerWidth()*n}},clipToBox:function(e){return{width:e.clip.right-e.clip.left,height:e.clip.bottom-e.clip.top,left:e.clip.left,top:e.clip.top}},unshift:function(e,t,i){var n=e.queue();1<t&&n.splice.apply(n,[1,0].concat(n.splice(t,i))),e.dequeue()},saveStyle:function(e){e.data(c,e[0].style.cssText)},restoreStyle:function(e){e[0].style.cssText=e.data(c)||"",e.removeData(c)},mode:function(e,t){var i=e.is(":hidden");return"toggle"===t&&(t=i?"show":"hide"),(i?"hide"===t:"show"===t)&&(t="none"),t},getBaseline:function(e,t){var i,n;switch(e[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=e[0]/t.height}switch(e[1]){case"left":n=0;break;case"center":n=.5;break;case"right":n=1;break;default:n=e[1]/t.width}return{x:n,y:i}},createPlaceholder:function(e){var t,i=e.css("position"),n=e.position();return e.css({marginTop:e.css("marginTop"),marginBottom:e.css("marginBottom"),marginLeft:e.css("marginLeft"),marginRight:e.css("marginRight")}).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()),/^(static|relative)/.test(i)&&(i="absolute",t=L("<"+e[0].nodeName+">").insertAfter(e).css({display:/^(inline|ruby)/.test(e.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:e.css("marginTop"),marginBottom:e.css("marginBottom"),marginLeft:e.css("marginLeft"),marginRight:e.css("marginRight"),float:e.css("float")}).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).addClass("ui-effects-placeholder"),e.data(h+"placeholder",t)),e.css({position:i,left:n.left,top:n.top}),t},removePlaceholder:function(e){var t=h+"placeholder",i=e.data(t);i&&(i.remove(),e.removeData(t))},cleanUp:function(e){L.effects.restoreStyle(e),L.effects.removePlaceholder(e)},setTransition:function(n,e,s,a){return a=a||{},L.each(e,function(e,t){var i=n.cssUnit(t);0<i[0]&&(a[t]=i[0]*s+i[1])}),a}}),L.fn.extend({effect:function(){function e(e){function t(){L.isFunction(r)&&r.call(i[0]),L.isFunction(e)&&e()}var i=L(this);n.mode=l.shift(),!1===L.uiBackCompat||a?"none"===n.mode?(i[o](),t()):s.call(i[0],n,function(){i.removeData(p),L.effects.cleanUp(i),"hide"===n.mode&&i.hide(),t()}):(i.is(":hidden")?"hide"===o:"show"===o)?(i[o](),t()):s.call(i[0],n,t)}var n=u.apply(this,arguments),s=L.effects.effect[n.effect],a=s.mode,t=n.queue,i=t||"fx",r=n.complete,o=n.mode,l=[],h=function(e){var t=L(this),i=L.effects.mode(t,o)||a;t.data(p,!0),l.push(i),a&&("show"===i||i===a&&"hide"===i)&&t.show(),a&&"none"===i||L.effects.saveStyle(t),L.isFunction(e)&&e()};return L.fx.off||!s?o?this[o](n.duration,r):this.each(function(){r&&r.call(this)}):!1===t?this.each(h).each(e):this.queue(i,h).queue(i,e)},show:(a=L.fn.show,function(e){if(i(e))return a.apply(this,arguments);var t=u.apply(this,arguments);return t.mode="show",this.effect.call(this,t)}),hide:(s=L.fn.hide,function(e){if(i(e))return s.apply(this,arguments);var t=u.apply(this,arguments);return t.mode="hide",this.effect.call(this,t)}),toggle:(n=L.fn.toggle,function(e){if(i(e)||"boolean"==typeof e)return n.apply(this,arguments);var t=u.apply(this,arguments);return t.mode="toggle",this.effect.call(this,t)}),cssUnit:function(e){var i=this.css(e),n=[];return L.each(["em","px","%","pt"],function(e,t){0<i.indexOf(t)&&(n=[parseFloat(i),t])}),n},cssClip:function(e){return e?this.css("clip","rect("+e.top+"px "+e.right+"px "+e.bottom+"px "+e.left+"px)"):t(this.css("clip"),this)},transfer:function(e,t){var i=L(this),n=L(e.to),s="fixed"===n.css("position"),a=L("body"),r=s?a.scrollTop():0,o=s?a.scrollLeft():0,l=n.offset(),h={top:l.top-r,left:l.left-o,height:n.innerHeight(),width:n.innerWidth()},u=i.offset(),d=L("<div class='ui-effects-transfer'></div>").appendTo("body").addClass(e.className).css({top:u.top-r,left:u.left-o,height:i.innerHeight(),width:i.innerWidth(),position:s?"fixed":"absolute"}).animate(h,e.duration,e.easing,function(){d.remove(),L.isFunction(t)&&t()})}}),L.fx.step.clip=function(e){e.clipInit||(e.start=L(e.elem).cssClip(),"string"==typeof e.end&&(e.end=t(e.end,e.elem)),e.clipInit=!0),L(e.elem).cssClip({top:e.pos*(e.end.top-e.start.top)+e.start.top,right:e.pos*(e.end.right-e.start.right)+e.start.right,bottom:e.pos*(e.end.bottom-e.start.bottom)+e.start.bottom,left:e.pos*(e.end.left-e.start.left)+e.start.left})}}(),l={},L.each(["Quad","Cubic","Quart","Quint","Expo"],function(t,e){l[e]=function(e){return Math.pow(e,t+2)}}),L.extend(l,{Sine:function(e){return 1-Math.cos(e*Math.PI/2)},Circ:function(e){return 1-Math.sqrt(1-e*e)},Elastic:function(e){return 0===e||1===e?e:-Math.pow(2,8*(e-1))*Math.sin((80*(e-1)-7.5)*Math.PI/15)},Back:function(e){return e*e*(3*e-2)},Bounce:function(e){for(var t,i=4;((t=Math.pow(2,--i))-1)/11>e;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*t-2)/22-e,2)}}),L.each(l,function(e,t){L.easing["easeIn"+e]=t,L.easing["easeOut"+e]=function(e){return 1-t(1-e)},L.easing["easeInOut"+e]=function(e){return e<.5?t(2*e)/2:1-t(-2*e+2)/2}});var f,m;L.effects;L.effects.define("blind","hide",function(e,t){var i={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},n=L(this),s=e.direction||"up",a=n.cssClip(),r={clip:L.extend({},a)},o=L.effects.createPlaceholder(n);r.clip[i[s][0]]=r.clip[i[s][1]],"show"===e.mode&&(n.cssClip(r.clip),o&&o.css(L.effects.clipToBox(r)),r.clip=a),o&&o.animate(L.effects.clipToBox(r),e.duration,e.easing),n.animate(r,{queue:!1,duration:e.duration,easing:e.easing,complete:t})}),L.effects.define("bounce",function(e,t){var i,n,s,a=L(this),r=e.mode,o="hide"===r,l="show"===r,h=e.direction||"up",u=e.distance,d=e.times||5,c=2*d+(l||o?1:0),p=e.duration/c,f=e.easing,m="up"===h||"down"===h?"top":"left",g="up"===h||"left"===h,v=0,_=a.queue().length;for(L.effects.createPlaceholder(a),s=a.css(m),u||(u=a["top"===m?"outerHeight":"outerWidth"]()/3),l&&((n={opacity:1})[m]=s,a.css("opacity",0).css(m,g?2*-u:2*u).animate(n,p,f)),o&&(u/=Math.pow(2,d-1)),(n={})[m]=s;v<d;v++)(i={})[m]=(g?"-=":"+=")+u,a.animate(i,p,f).animate(n,p,f),u=o?2*u:u/2;o&&((i={opacity:0})[m]=(g?"-=":"+=")+u,a.animate(i,p,f)),a.queue(t),L.effects.unshift(a,_,c+1)}),L.effects.define("clip","hide",function(e,t){var i,n={},s=L(this),a=e.direction||"vertical",r="both"===a,o=r||"horizontal"===a,l=r||"vertical"===a;i=s.cssClip(),n.clip={top:l?(i.bottom-i.top)/2:i.top,right:o?(i.right-i.left)/2:i.right,bottom:l?(i.bottom-i.top)/2:i.bottom,left:o?(i.right-i.left)/2:i.left},L.effects.createPlaceholder(s),"show"===e.mode&&(s.cssClip(n.clip),n.clip=i),s.animate(n,{queue:!1,duration:e.duration,easing:e.easing,complete:t})}),L.effects.define("drop","hide",function(e,t){var i,n=L(this),s="show"===e.mode,a=e.direction||"left",r="up"===a||"down"===a?"top":"left",o="up"===a||"left"===a?"-=":"+=",l="+="===o?"-=":"+=",h={opacity:0};L.effects.createPlaceholder(n),i=e.distance||n["top"===r?"outerHeight":"outerWidth"](!0)/2,h[r]=o+i,s&&(n.css(h),h[r]=l+i,h.opacity=1),n.animate(h,{queue:!1,duration:e.duration,easing:e.easing,complete:t})}),L.effects.define("explode","hide",function(e,t){function i(){g.push(this),g.length===h*u&&(d.css({visibility:"visible"}),L(g).remove(),t())}var n,s,a,r,o,l,h=e.pieces?Math.round(Math.sqrt(e.pieces)):3,u=h,d=L(this),c="show"===e.mode,p=d.show().css("visibility","hidden").offset(),f=Math.ceil(d.outerWidth()/u),m=Math.ceil(d.outerHeight()/h),g=[];for(n=0;n<h;n++)for(r=p.top+n*m,l=n-(h-1)/2,s=0;s<u;s++)a=p.left+s*f,o=s-(u-1)/2,d.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-s*f,top:-n*m}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:f,height:m,left:a+(c?o*f:0),top:r+(c?l*m:0),opacity:c?0:1}).animate({left:a+(c?0:o*f),top:r+(c?0:l*m),opacity:c?1:0},e.duration||500,e.easing,i)}),L.effects.define("fade","toggle",function(e,t){var i="show"===e.mode;L(this).css("opacity",i?0:1).animate({opacity:i?1:0},{queue:!1,duration:e.duration,easing:e.easing,complete:t})}),L.effects.define("fold","hide",function(t,e){var i=L(this),n=t.mode,s="show"===n,a="hide"===n,r=t.size||15,o=/([0-9]+)%/.exec(r),l=!!t.horizFirst?["right","bottom"]:["bottom","right"],h=t.duration/2,u=L.effects.createPlaceholder(i),d=i.cssClip(),c={clip:L.extend({},d)},p={clip:L.extend({},d)},f=[d[l[0]],d[l[1]]],m=i.queue().length;o&&(r=parseInt(o[1],10)/100*f[a?0:1]),c.clip[l[0]]=r,p.clip[l[0]]=r,p.clip[l[1]]=0,s&&(i.cssClip(p.clip),u&&u.css(L.effects.clipToBox(p)),p.clip=d),i.queue(function(e){u&&u.animate(L.effects.clipToBox(c),h,t.easing).animate(L.effects.clipToBox(p),h,t.easing),e()}).animate(c,h,t.easing).animate(p,h,t.easing).queue(e),L.effects.unshift(i,m,4)}),L.effects.define("highlight","show",function(e,t){var i=L(this),n={backgroundColor:i.css("backgroundColor")};"hide"===e.mode&&(n.opacity=0),L.effects.saveStyle(i),i.css({backgroundImage:"none",backgroundColor:e.color||"#ffff99"}).animate(n,{queue:!1,duration:e.duration,easing:e.easing,complete:t})}),L.effects.define("size",function(s,t){var e,a,i,n=L(this),r=["fontSize"],o=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],l=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],h=s.mode,u="effect"!==h,d=s.scale||"both",c=s.origin||["middle","center"],p=n.css("position"),f=n.position(),m=L.effects.scaledDimensions(n),g=s.from||m,v=s.to||L.effects.scaledDimensions(n,0);L.effects.createPlaceholder(n),"show"===h&&(i=g,g=v,v=i),a={from:{y:g.height/m.height,x:g.width/m.width},to:{y:v.height/m.height,x:v.width/m.width}},("box"===d||"both"===d)&&(a.from.y!==a.to.y&&(g=L.effects.setTransition(n,o,a.from.y,g),v=L.effects.setTransition(n,o,a.to.y,v)),a.from.x!==a.to.x&&(g=L.effects.setTransition(n,l,a.from.x,g),v=L.effects.setTransition(n,l,a.to.x,v))),("content"===d||"both"===d)&&a.from.y!==a.to.y&&(g=L.effects.setTransition(n,r,a.from.y,g),v=L.effects.setTransition(n,r,a.to.y,v)),c&&(e=L.effects.getBaseline(c,m),g.top=(m.outerHeight-g.outerHeight)*e.y+f.top,g.left=(m.outerWidth-g.outerWidth)*e.x+f.left,v.top=(m.outerHeight-v.outerHeight)*e.y+f.top,v.left=(m.outerWidth-v.outerWidth)*e.x+f.left),n.css(g),("content"===d||"both"===d)&&(o=o.concat(["marginTop","marginBottom"]).concat(r),l=l.concat(["marginLeft","marginRight"]),n.find("*[width]").each(function(){var e=L(this),t=L.effects.scaledDimensions(e),i={height:t.height*a.from.y,width:t.width*a.from.x,outerHeight:t.outerHeight*a.from.y,outerWidth:t.outerWidth*a.from.x},n={height:t.height*a.to.y,width:t.width*a.to.x,outerHeight:t.height*a.to.y,outerWidth:t.width*a.to.x};a.from.y!==a.to.y&&(i=L.effects.setTransition(e,o,a.from.y,i),n=L.effects.setTransition(e,o,a.to.y,n)),a.from.x!==a.to.x&&(i=L.effects.setTransition(e,l,a.from.x,i),n=L.effects.setTransition(e,l,a.to.x,n)),u&&L.effects.saveStyle(e),e.css(i),e.animate(n,s.duration,s.easing,function(){u&&L.effects.restoreStyle(e)})})),n.animate(v,{queue:!1,duration:s.duration,easing:s.easing,complete:function(){var e=n.offset();0===v.opacity&&n.css("opacity",g.opacity),u||(n.css("position","static"===p?"relative":p).offset(e),L.effects.saveStyle(n)),t()}})}),L.effects.define("scale",function(e,t){var i=L(this),n=e.mode,s=parseInt(e.percent,10)||(0===parseInt(e.percent,10)?0:"effect"!==n?0:100),a=L.extend(!0,{from:L.effects.scaledDimensions(i),to:L.effects.scaledDimensions(i,s,e.direction||"both"),origin:e.origin||["middle","center"]},e);e.fade&&(a.from.opacity=1,a.to.opacity=0),L.effects.effect.size.call(this,a,t)}),L.effects.define("puff","hide",function(e,t){var i=L.extend(!0,{},e,{fade:!0,percent:parseInt(e.percent,10)||150});L.effects.effect.scale.call(this,i,t)}),L.effects.define("pulsate","show",function(e,t){var i=L(this),n=e.mode,s="show"===n,a=s||"hide"===n,r=2*(e.times||5)+(a?1:0),o=e.duration/r,l=0,h=1,u=i.queue().length;for((s||!i.is(":visible"))&&(i.css("opacity",0).show(),l=1);h<r;h++)i.animate({opacity:l},o,e.easing),l=1-l;i.animate({opacity:l},o,e.easing),i.queue(t),L.effects.unshift(i,u,r+1)}),L.effects.define("shake",function(e,t){var i=1,n=L(this),s=e.direction||"left",a=e.distance||20,r=e.times||3,o=2*r+1,l=Math.round(e.duration/o),h="up"===s||"down"===s?"top":"left",u="up"===s||"left"===s,d={},c={},p={},f=n.queue().length;for(L.effects.createPlaceholder(n),d[h]=(u?"-=":"+=")+a,c[h]=(u?"+=":"-=")+2*a,p[h]=(u?"-=":"+=")+2*a,n.animate(d,l,e.easing);i<r;i++)n.animate(c,l,e.easing).animate(p,l,e.easing);n.animate(c,l,e.easing).animate(d,l/2,e.easing).queue(t),L.effects.unshift(n,f,o+1)}),L.effects.define("slide","show",function(e,t){var i,n,s=L(this),a={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},r=e.mode,o=e.direction||"left",l="up"===o||"down"===o?"top":"left",h="up"===o||"left"===o,u=e.distance||s["top"===l?"outerHeight":"outerWidth"](!0),d={};L.effects.createPlaceholder(s),i=s.cssClip(),n=s.position()[l],d[l]=(h?-1:1)*u+n,d.clip=s.cssClip(),d.clip[a[o][1]]=d.clip[a[o][0]],"show"===r&&(s.cssClip(d.clip),s.css(l,d[l]),d.clip=i,d[l]=n),s.animate(d,{queue:!1,duration:e.duration,easing:e.easing,complete:t})}),!1!==L.uiBackCompat&&L.effects.define("transfer",function(e,t){L(this).transfer(e,t)}),L.ui.focusable=function(e,t){var i,n,s,a,r,o=e.nodeName.toLowerCase();return"area"===o?(n=(i=e.parentNode).name,!(!e.href||!n||"map"!==i.nodeName.toLowerCase())&&(0<(s=L("img[usemap='#"+n+"']")).length&&s.is(":visible"))):(/^(input|select|textarea|button|object)$/.test(o)?(a=!e.disabled)&&((r=L(e).closest("fieldset")[0])&&(a=!r.disabled)):a="a"===o&&e.href||t,a&&L(e).is(":visible")&&function(e){for(var t=e.css("visibility");"inherit"===t;)t=(e=e.parent()).css("visibility");return"hidden"!==t}(L(e)))},L.extend(L.expr[":"],{focusable:function(e){return L.ui.focusable(e,null!=L.attr(e,"tabindex"))}}),L.ui.focusable,L.fn.form=function(){return"string"==typeof this[0].form?this.closest("form"):L(this[0].form)},L.ui.formResetMixin={_formResetHandler:function(){var t=L(this);setTimeout(function(){var e=t.data("ui-form-reset-instances");L.each(e,function(){this.refresh()})})},_bindFormResetHandler:function(){if(this.form=this.element.form(),this.form.length){var e=this.form.data("ui-form-reset-instances")||[];e.length||this.form.on("reset.ui-form-reset",this._formResetHandler),e.push(this),this.form.data("ui-form-reset-instances",e)}},_unbindFormResetHandler:function(){if(this.form.length){var e=this.form.data("ui-form-reset-instances");e.splice(L.inArray(this,e),1),e.length?this.form.data("ui-form-reset-instances",e):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset")}}},"1.7"===L.fn.jquery.substring(0,3)&&(L.each(["Width","Height"],function(e,i){function n(e,t,i,n){return L.each(s,function(){t-=parseFloat(L.css(e,"padding"+this))||0,i&&(t-=parseFloat(L.css(e,"border"+this+"Width"))||0),n&&(t-=parseFloat(L.css(e,"margin"+this))||0)}),t}var s="Width"===i?["Left","Right"]:["Top","Bottom"],a=i.toLowerCase(),r={innerWidth:L.fn.innerWidth,innerHeight:L.fn.innerHeight,outerWidth:L.fn.outerWidth,outerHeight:L.fn.outerHeight};L.fn["inner"+i]=function(e){return void 0===e?r["inner"+i].call(this):this.each(function(){L(this).css(a,n(this,e)+"px")})},L.fn["outer"+i]=function(e,t){return"number"!=typeof e?r["outer"+i].call(this,e):this.each(function(){L(this).css(a,n(this,e,!0,t)+"px")})}}),L.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),L.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},L.ui.escapeSelector=(m=/([!"#$%&'()*+,.\/:;<=>?@[\]^`{|}~])/g,function(e){return e.replace(m,"\\$1")}),L.fn.labels=function(){var e,t,i,n,s;return this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(n=this.eq(0).parents("label"),(i=this.attr("id"))&&(s=(e=this.eq(0).parents().last()).add(e.length?e.siblings():this.siblings()),t="label[for='"+L.ui.escapeSelector(i)+"']",n=n.add(s.find(t).addBack(t))),this.pushStack(n))},L.fn.scrollParent=function(e){var t=this.css("position"),i="absolute"===t,n=e?/(auto|scroll|hidden)/:/(auto|scroll)/,s=this.parents().filter(function(){var e=L(this);return(!i||"static"!==e.css("position"))&&n.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))}).eq(0);return"fixed"!==t&&s.length?s:L(this[0].ownerDocument||document)},L.extend(L.expr[":"],{tabbable:function(e){var t=L.attr(e,"tabindex"),i=null!=t;return(!i||0<=t)&&L.ui.focusable(e,i)}}),L.fn.extend({uniqueId:(f=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++f)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&L(this).removeAttr("id")})}}),L.widget("ui.accordion",{version:"1.12.1",options:{active:0,animate:{},classes:{"ui-accordion-header":"ui-corner-top","ui-accordion-header-collapsed":"ui-corner-all","ui-accordion-content":"ui-corner-bottom"},collapsible:!1,event:"click",header:"> li > :first-child, > :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var e=this.options;this.prevShow=this.prevHide=L(),this._addClass("ui-accordion","ui-widget ui-helper-reset"),this.element.attr("role","tablist"),e.collapsible||!1!==e.active&&null!=e.active||(e.active=0),this._processPanels(),e.active<0&&(e.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():L()}},_createIcons:function(){var e,t,i=this.options.icons;i&&(e=L("<span>"),this._addClass(e,"ui-accordion-header-icon","ui-icon "+i.header),e.prependTo(this.headers),t=this.active.children(".ui-accordion-header-icon"),this._removeClass(t,i.header)._addClass(t,null,i.activeHeader)._addClass(this.headers,"ui-accordion-icons"))},_destroyIcons:function(){this._removeClass(this.headers,"ui-accordion-icons"),this.headers.children(".ui-accordion-header-icon").remove()},_destroy:function(){var e;this.element.removeAttr("role"),this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId(),this._destroyIcons(),e=this.headers.next().css("display","").removeAttr("role aria-hidden aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&e.css("height","")},_setOption:function(e,t){return"active"===e?void this._activate(t):("event"===e&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(t)),this._super(e,t),"collapsible"!==e||t||!1!==this.options.active||this._activate(0),void("icons"===e&&(this._destroyIcons(),t&&this._createIcons())))},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",e),this._toggleClass(null,"ui-state-disabled",!!e),this._toggleClass(this.headers.add(this.headers.next()),null,"ui-state-disabled",!!e)},_keydown:function(e){if(!e.altKey&&!e.ctrlKey){var t=L.ui.keyCode,i=this.headers.length,n=this.headers.index(e.target),s=!1;switch(e.keyCode){case t.RIGHT:case t.DOWN:s=this.headers[(n+1)%i];break;case t.LEFT:case t.UP:s=this.headers[(n-1+i)%i];break;case t.SPACE:case t.ENTER:this._eventHandler(e);break;case t.HOME:s=this.headers[0];break;case t.END:s=this.headers[i-1]}s&&(L(e.target).attr("tabIndex",-1),L(s).attr("tabIndex",0),L(s).trigger("focus"),e.preventDefault())}},_panelKeyDown:function(e){e.keyCode===L.ui.keyCode.UP&&e.ctrlKey&&L(e.currentTarget).prev().trigger("focus")},refresh:function(){var e=this.options;this._processPanels(),!1===e.active&&!0===e.collapsible||!this.headers.length?(e.active=!1,this.active=L()):!1===e.active?this._activate(0):this.active.length&&!L.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(e.active=!1,this.active=L()):this._activate(Math.max(0,e.active-1)):e.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var e=this.headers,t=this.panels;this.headers=this.element.find(this.options.header),this._addClass(this.headers,"ui-accordion-header ui-accordion-header-collapsed","ui-state-default"),this.panels=this.headers.next().filter(":not(.ui-accordion-content-active)").hide(),this._addClass(this.panels,"ui-accordion-content","ui-helper-reset ui-widget-content"),t&&(this._off(e.not(this.headers)),this._off(t.not(this.panels)))},_refresh:function(){var i,e=this.options,t=e.heightStyle,n=this.element.parent();this.active=this._findActive(e.active),this._addClass(this.active,"ui-accordion-header-active","ui-state-active")._removeClass(this.active,"ui-accordion-header-collapsed"),this._addClass(this.active.next(),"ui-accordion-content-active"),this.active.next().show(),this.headers.attr("role","tab").each(function(){var e=L(this),t=e.uniqueId().attr("id"),i=e.next(),n=i.uniqueId().attr("id");e.attr("aria-controls",n),i.attr("aria-labelledby",t)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(e.event),"fill"===t?(i=n.height(),this.element.siblings(":visible").each(function(){var e=L(this),t=e.css("position");"absolute"!==t&&"fixed"!==t&&(i-=e.outerHeight(!0))}),this.headers.each(function(){i-=L(this).outerHeight(!0)}),this.headers.next().each(function(){L(this).height(Math.max(0,i-L(this).innerHeight()+L(this).height()))}).css("overflow","auto")):"auto"===t&&(i=0,this.headers.next().each(function(){var e=L(this).is(":visible");e||L(this).show(),i=Math.max(i,L(this).css("height","").height()),e||L(this).hide()}).height(i))},_activate:function(e){var t=this._findActive(e)[0];t!==this.active[0]&&(t=t||this.active[0],this._eventHandler({target:t,currentTarget:t,preventDefault:L.noop}))},_findActive:function(e){return"number"==typeof e?this.headers.eq(e):L()},_setupEvents:function(e){var i={keydown:"_keydown"};e&&L.each(e.split(" "),function(e,t){i[t]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,i),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(e){var t,i,n=this.options,s=this.active,a=L(e.currentTarget),r=a[0]===s[0],o=r&&n.collapsible,l=o?L():a.next(),h=s.next(),u={oldHeader:s,oldPanel:h,newHeader:o?L():a,newPanel:l};e.preventDefault(),r&&!n.collapsible||!1===this._trigger("beforeActivate",e,u)||(n.active=!o&&this.headers.index(a),this.active=r?L():a,this._toggle(u),this._removeClass(s,"ui-accordion-header-active","ui-state-active"),n.icons&&(t=s.children(".ui-accordion-header-icon"),this._removeClass(t,null,n.icons.activeHeader)._addClass(t,null,n.icons.header)),r||(this._removeClass(a,"ui-accordion-header-collapsed")._addClass(a,"ui-accordion-header-active","ui-state-active"),n.icons&&(i=a.children(".ui-accordion-header-icon"),this._removeClass(i,null,n.icons.header)._addClass(i,null,n.icons.activeHeader)),this._addClass(a.next(),"ui-accordion-content-active")))},_toggle:function(e){var t=e.newPanel,i=this.prevShow.length?this.prevShow:e.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=t,this.prevHide=i,this.options.animate?this._animate(t,i,e):(i.hide(),t.show(),this._toggleComplete(e)),i.attr({"aria-hidden":"true"}),i.prev().attr({"aria-selected":"false","aria-expanded":"false"}),t.length&&i.length?i.prev().attr({tabIndex:-1,"aria-expanded":"false"}):t.length&&this.headers.filter(function(){return 0===parseInt(L(this).attr("tabIndex"),10)}).attr("tabIndex",-1),t.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(e,i,t){var n,s,a,r=this,o=0,l=e.css("box-sizing"),h=e.length&&(!i.length||e.index()<i.index()),u=this.options.animate||{},d=h&&u.down||u,c=function(){r._toggleComplete(t)};return"number"==typeof d&&(a=d),"string"==typeof d&&(s=d),s=s||d.easing||u.easing,a=a||d.duration||u.duration,i.length?e.length?(n=e.show().outerHeight(),i.animate(this.hideProps,{duration:a,easing:s,step:function(e,t){t.now=Math.round(e)}}),void e.hide().animate(this.showProps,{duration:a,easing:s,complete:c,step:function(e,t){t.now=Math.round(e),"height"!==t.prop?"content-box"===l&&(o+=t.now):"content"!==r.options.heightStyle&&(t.now=Math.round(n-i.outerHeight()-o),o=0)}})):i.animate(this.hideProps,a,s,c):e.animate(this.showProps,a,s,c)},_toggleComplete:function(e){var t=e.oldPanel,i=t.prev();this._removeClass(t,"ui-accordion-content-active"),this._removeClass(i,"ui-accordion-header-active")._addClass(i,"ui-accordion-header-collapsed"),t.length&&(t.parent()[0].className=t.parent()[0].className),this._trigger("activate",null,e)}}),L.ui.safeActiveElement=function(t){var i;try{i=t.activeElement}catch(e){i=t.body}return i||(i=t.body),i.nodeName||(i=t.body),i},L.widget("ui.menu",{version:"1.12.1",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(e){e.preventDefault()},"click .ui-menu-item":function(e){var t=L(e.target),i=L(L.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&t.not(".ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),t.has(".ui-menu").length?this.expand(e):!this.element.is(":focus")&&i.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(e){if(!this.previousFilter){var t=L(e.target).closest(".ui-menu-item"),i=L(e.currentTarget);t[0]===i[0]&&(this._removeClass(i.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(e,i))}},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(e,t){var i=this.active||this.element.find(this.options.items).eq(0);t||this.focus(e,i)},blur:function(e){this._delay(function(){!L.contains(this.element[0],L.ui.safeActiveElement(this.document[0]))&&this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(e){this._closeOnDocumentClick(e)&&this.collapseAll(e),this.mouseHandled=!1}})},_destroy:function(){var e=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),e.children().each(function(){var e=L(this);e.data("ui-menu-submenu-caret")&&e.remove()})},_keydown:function(e){var t,i,n,s,a=!0;switch(e.keyCode){case L.ui.keyCode.PAGE_UP:this.previousPage(e);break;case L.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case L.ui.keyCode.HOME:this._move("first","first",e);break;case L.ui.keyCode.END:this._move("last","last",e);break;case L.ui.keyCode.UP:this.previous(e);break;case L.ui.keyCode.DOWN:this.next(e);break;case L.ui.keyCode.LEFT:this.collapse(e);break;case L.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case L.ui.keyCode.ENTER:case L.ui.keyCode.SPACE:this._activate(e);break;case L.ui.keyCode.ESCAPE:this.collapse(e);break;default:a=!1,i=this.previousFilter||"",s=!1,n=96<=e.keyCode&&e.keyCode<=105?""+(e.keyCode-96):String.fromCharCode(e.keyCode),clearTimeout(this.filterTimer),n===i?s=!0:n=i+n,t=this._filterMenuItems(n),(t=s&&-1!==t.index(this.active.next())?this.active.nextAll(".ui-menu-item"):t).length||(n=String.fromCharCode(e.keyCode),t=this._filterMenuItems(n)),t.length?(this.focus(e,t),this.previousFilter=n,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}a&&e.preventDefault()},_activate:function(e){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(e):this.select(e))},refresh:function(){var e,t,i,n,s=this,a=this.options.icons.submenu,r=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),t=r.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var e=L(this),t=e.prev(),i=L("<span>").data("ui-menu-submenu-caret",!0);s._addClass(i,"ui-menu-icon","ui-icon "+a),t.attr("aria-haspopup","true").prepend(i),e.attr("aria-labelledby",t.attr("id"))}),this._addClass(t,"ui-menu","ui-widget ui-widget-content ui-front"),(e=r.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var e=L(this);s._isDivider(e)&&s._addClass(e,"ui-menu-divider","ui-widget-content")}),n=(i=e.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(i,"ui-menu-item")._addClass(n,"ui-menu-item-wrapper"),e.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!L.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(e,t){if("icons"===e){var i=this.element.find(".ui-menu-icon");this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,t.submenu)}this._super(e,t)},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",e+""),this._toggleClass(null,"ui-state-disabled",!!e)},focus:function(e,t){var i,n,s;this.blur(e,e&&"focus"===e.type),this._scrollIntoView(t),this.active=t.first(),n=this.active.children(".ui-menu-item-wrapper"),this._addClass(n,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",n.attr("id")),s=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(s,null,"ui-state-active"),e&&"keydown"===e.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(i=t.children(".ui-menu")).length&&e&&/^mouse/.test(e.type)&&this._startOpening(i),this.activeMenu=t.parent(),this._trigger("focus",e,{item:t})},_scrollIntoView:function(e){var t,i,n,s,a,r;this._hasScroll()&&(t=parseFloat(L.css(this.activeMenu[0],"borderTopWidth"))||0,i=parseFloat(L.css(this.activeMenu[0],"paddingTop"))||0,n=e.offset().top-this.activeMenu.offset().top-t-i,s=this.activeMenu.scrollTop(),a=this.activeMenu.height(),r=e.outerHeight(),n<0?this.activeMenu.scrollTop(s+n):a<n+r&&this.activeMenu.scrollTop(s+n-a+r))},blur:function(e,t){t||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",e,{item:this.active}),this.active=null)},_startOpening:function(e){clearTimeout(this.timer),"true"===e.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(e)},this.delay))},_open:function(e){var t=L.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(t)},collapseAll:function(t,i){clearTimeout(this.timer),this.timer=this._delay(function(){var e=i?this.element:L(t&&t.target).closest(this.element.find(".ui-menu"));e.length||(e=this.element),this._close(e),this.blur(t),this._removeClass(e.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=e},this.delay)},_close:function(e){e||(e=this.active?this.active.parent():this.element),e.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(e){return!L(e.target).closest(".ui-menu").length},_isDivider:function(e){return!/[^\-\u2014\u2013\s]/.test(e.text())},collapse:function(e){var t=this.active&&this.active.parent().closest(".ui-menu-item",this.element);t&&t.length&&(this._close(),this.focus(e,t))},expand:function(e){var t=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();t&&t.length&&(this._open(t.parent()),this._delay(function(){this.focus(e,t)}))},next:function(e){this._move("next","first",e)},previous:function(e){this._move("prev","last",e)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(e,t,i){var n;this.active&&(n="first"===e||"last"===e?this.active["first"===e?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[e+"All"](".ui-menu-item").eq(0)),n&&n.length&&this.active||(n=this.activeMenu.find(this.options.items)[t]()),this.focus(i,n)},nextPage:function(e){var t,i,n;return this.active?void(this.isLastItem()||(this._hasScroll()?(i=this.active.offset().top,n=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return(t=L(this)).offset().top-i-n<0}),this.focus(e,t)):this.focus(e,this.activeMenu.find(this.options.items)[this.active?"last":"first"]()))):void this.next(e)},previousPage:function(e){var t,i,n;return this.active?void(this.isFirstItem()||(this._hasScroll()?(i=this.active.offset().top,n=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return 0<(t=L(this)).offset().top-i+n}),this.focus(e,t)):this.focus(e,this.activeMenu.find(this.options.items).first()))):void this.next(e)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(e){this.active=this.active||L(e.target).closest(".ui-menu-item");var t={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,t)},_filterMenuItems:function(e){var t=e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),i=RegExp("^"+t,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return i.test(L.trim(L(this).children(".ui-menu-item-wrapper").text()))})}}),L.widget("ui.autocomplete",{version:"1.12.1",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var i,n,s,e=this.element[0].nodeName.toLowerCase(),t="textarea"===e,a="input"===e;this.isMultiLine=t||!a&&this._isContentEditable(this.element),this.valueMethod=this.element[t||a?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(e){if(this.element.prop("readOnly"))n=s=i=!0;else{n=s=i=!1;var t=L.ui.keyCode;switch(e.keyCode){case t.PAGE_UP:i=!0,this._move("previousPage",e);break;case t.PAGE_DOWN:i=!0,this._move("nextPage",e);break;case t.UP:i=!0,this._keyEvent("previous",e);break;case t.DOWN:i=!0,this._keyEvent("next",e);break;case t.ENTER:this.menu.active&&(i=!0,e.preventDefault(),this.menu.select(e));break;case t.TAB:this.menu.active&&this.menu.select(e);break;case t.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(e),e.preventDefault());break;default:n=!0,this._searchTimeout(e)}}},keypress:function(e){if(i)return i=!1,void((!this.isMultiLine||this.menu.element.is(":visible"))&&e.preventDefault());if(!n){var t=L.ui.keyCode;switch(e.keyCode){case t.PAGE_UP:this._move("previousPage",e);break;case t.PAGE_DOWN:this._move("nextPage",e);break;case t.UP:this._keyEvent("previous",e);break;case t.DOWN:this._keyEvent("next",e)}}},input:function(e){return s?(s=!1,void e.preventDefault()):void this._searchTimeout(e)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(e){return this.cancelBlur?void delete this.cancelBlur:(clearTimeout(this.searching),this.close(e),void this._change(e))}}),this._initSource(),this.menu=L("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,this.element[0]!==L.ui.safeActiveElement(this.document[0])&&this.element.trigger("focus")})},menufocus:function(e,t){var i,n;return this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent&&/^mouse/.test(e.originalEvent.type))?(this.menu.blur(),void this.document.one("mousemove",function(){L(e.target).trigger(e.originalEvent)})):(n=t.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",e,{item:n})&&e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(n.value),void((i=t.item.attr("aria-label")||n.value)&&L.trim(i).length&&(this.liveRegion.children().hide(),L("<div>").text(i).appendTo(this.liveRegion))))},menuselect:function(e,t){var i=t.item.data("ui-autocomplete-item"),n=this.previous;this.element[0]!==L.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=n,this._delay(function(){this.previous=n,this.selectedItem=i})),!1!==this._trigger("select",e,{item:i})&&this._value(i.value),this.term=this._value(),this.close(e),this.selectedItem=i}}),this.liveRegion=L("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(e,t){this._super(e,t),"source"===e&&this._initSource(),"appendTo"===e&&this.menu.element.appendTo(this._appendTo()),"disabled"===e&&t&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(e){var t=this.menu.element[0];return e.target===this.element[0]||e.target===t||L.contains(t,e.target)},_closeOnClickOutside:function(e){this._isEventTargetInWidget(e)||this.close()},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?L(e):this.document.find(e).eq(0)),e&&e[0]||(e=this.element.closest(".ui-front, dialog")),e.length||(e=this.document[0].body),e},_initSource:function(){var i,n,s=this;L.isArray(this.options.source)?(i=this.options.source,this.source=function(e,t){t(L.ui.autocomplete.filter(i,e.term))}):"string"==typeof this.options.source?(n=this.options.source,this.source=function(e,t){s.xhr&&s.xhr.abort(),s.xhr=L.ajax({url:n,data:e,dataType:"json",success:function(e){t(e)},error:function(){t([])}})}):this.source=this.options.source},_searchTimeout:function(n){clearTimeout(this.searching),this.searching=this._delay(function(){var e=this.term===this._value(),t=this.menu.element.is(":visible"),i=n.altKey||n.ctrlKey||n.metaKey||n.shiftKey;(!e||e&&!t&&!i)&&(this.selectedItem=null,this.search(null,n))},this.options.delay)},search:function(e,t){return e=null!=e?e:this._value(),this.term=this._value(),e.length<this.options.minLength?this.close(t):!1!==this._trigger("search",t)?this._search(e):void 0},_search:function(e){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:e},this._response())},_response:function(){var t=++this.requestIndex;return L.proxy(function(e){t===this.requestIndex&&this.__response(e),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")},this)},__response:function(e){e&&(e=this._normalize(e)),this._trigger("response",null,{content:e}),!this.options.disabled&&e&&e.length&&!this.cancelSearch?(this._suggest(e),this._trigger("open")):this._close()},close:function(e){this.cancelSearch=!0,this._close(e)},_close:function(e){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",e))},_change:function(e){this.previous!==this._value()&&this._trigger("change",e,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:L.map(e,function(e){return"string"==typeof e?{label:e,value:e}:L.extend({},e,{label:e.label||e.value,value:e.value||e.label})})},_suggest:function(e){var t=this.menu.element.empty();this._renderMenu(t,e),this.isNewMenu=!0,this.menu.refresh(),t.show(),this._resizeMenu(),t.position(L.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var e=this.menu.element;e.outerWidth(Math.max(e.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(i,e){var n=this;L.each(e,function(e,t){n._renderItemData(i,t)})},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-autocomplete-item",t)},_renderItem:function(e,t){return L("<li>").append(L("<div>").text(t.label)).appendTo(e)},_move:function(e,t){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(e)||this.menu.isLastItem()&&/^next/.test(e)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[e](t):void this.search(null,t)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(e,t){(!this.isMultiLine||this.menu.element.is(":visible"))&&(this._move(e,t),t.preventDefault())},_isContentEditable:function(e){if(!e.length)return!1;var t=e.prop("contentEditable");return"inherit"===t?this._isContentEditable(e.parent()):"true"===t}}),L.extend(L.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,t){var i=RegExp(L.ui.autocomplete.escapeRegex(t),"i");return L.grep(e,function(e){return i.test(e.label||e.value||e)})}}),L.widget("ui.autocomplete",L.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(e){return e+(1<e?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var t;this._superApply(arguments),this.options.disabled||this.cancelSearch||(t=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,this.liveRegion.children().hide(),L("<div>").text(t).appendTo(this.liveRegion))}}),L.ui.autocomplete;var g,v,_=/ui-corner-([a-z]){2,6}/g;L.widget("ui.controlgroup",{version:"1.12.1",defaultElement:"<div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar"),this.refresh()},_destroy:function(){this._callChildMethod("destroy"),this.childWidgets.removeData("ui-controlgroup-data"),this.element.removeAttr("role"),this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var r=this,o=[];L.each(this.options.items,function(s,e){var t,a={};return e?"controlgroupLabel"===s?((t=r.element.find(e)).each(function(){var e=L(this);e.children(".ui-controlgroup-label-contents").length||e.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")}),r._addClass(t,null,"ui-widget ui-widget-content ui-state-default"),void(o=o.concat(t.get()))):void(L.fn[s]&&(a=r["_"+s+"Options"]?r["_"+s+"Options"]("middle"):{classes:{}},r.element.find(e).each(function(){var e=L(this),t=e[s]("instance"),i=L.widget.extend({},a);if("button"!==s||!e.parent(".ui-spinner").length){t||(t=e[s]()[s]("instance")),t&&(i.classes=r._resolveClassesValues(i.classes,t)),e[s](i);var n=e[s]("widget");L.data(n[0],"ui-controlgroup-data",t||e[s]("instance")),o.push(n[0])}}))):void 0}),this.childWidgets=L(L.unique(o)),this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(t){this.childWidgets.each(function(){var e=L(this).data("ui-controlgroup-data");e&&e[t]&&e[t]()})},_updateCornerClass:function(e,t){var i=this._buildSimpleOptions(t,"label").classes.label;this._removeClass(e,null,"ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all"),this._addClass(e,null,i)},_buildSimpleOptions:function(e,t){var i="vertical"===this.options.direction,n={classes:{}};return n.classes[t]={middle:"",first:"ui-corner-"+(i?"top":"left"),last:"ui-corner-"+(i?"bottom":"right"),only:"ui-corner-all"}[e],n},_spinnerOptions:function(e){var t=this._buildSimpleOptions(e,"ui-spinner");return t.classes["ui-spinner-up"]="",t.classes["ui-spinner-down"]="",t},_buttonOptions:function(e){return this._buildSimpleOptions(e,"ui-button")},_checkboxradioOptions:function(e){return this._buildSimpleOptions(e,"ui-checkboxradio-label")},_selectmenuOptions:function(e){var t="vertical"===this.options.direction;return{width:!!t&&"auto",classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(t?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(t?"top":"left")},last:{"ui-selectmenu-button-open":t?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(t?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[e]}},_resolveClassesValues:function(i,n){var s={};return L.each(i,function(e){var t=n.options.classes[e]||"";t=L.trim(t.replace(_,"")),s[e]=(t+" "+i[e]).replace(/\s+/g," ")}),s},_setOption:function(e,t){return"direction"===e&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(e,t),"disabled"===e?void this._callChildMethod(t?"disable":"enable"):void this.refresh()},refresh:function(){var s,a=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction),"horizontal"===this.options.direction&&this._addClass(null,"ui-helper-clearfix"),this._initWidgets(),s=this.childWidgets,this.options.onlyVisible&&(s=s.filter(":visible")),s.length&&(L.each(["first","last"],function(e,t){var i=s[t]().data("ui-controlgroup-data");if(i&&a["_"+i.widgetName+"Options"]){var n=a["_"+i.widgetName+"Options"](1===s.length?"only":t);n.classes=a._resolveClassesValues(n.classes,i),i.element[i.widgetName](n)}else a._updateCornerClass(s[t](),t)}),this._callChildMethod("refresh"))}}),L.widget("ui.checkboxradio",[L.ui.formResetMixin,{version:"1.12.1",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var e,t,i=this,n=this._super()||{};return this._readType(),t=this.element.labels(),this.label=L(t[t.length-1]),this.label.length||L.error("No label found for checkboxradio widget"),this.originalLabel="",this.label.contents().not(this.element[0]).each(function(){i.originalLabel+=3===this.nodeType?L(this).text():this.outerHTML}),this.originalLabel&&(n.label=this.originalLabel),null!=(e=this.element[0].disabled)&&(n.disabled=e),n},_create:function(){var e=this.element[0].checked;this._bindFormResetHandler(),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled),this._setOption("disabled",this.options.disabled),this._addClass("ui-checkboxradio","ui-helper-hidden-accessible"),this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget"),"radio"===this.type&&this._addClass(this.label,"ui-checkboxradio-radio-label"),this.options.label&&this.options.label!==this.originalLabel?this._updateLabel():this.originalLabel&&(this.options.label=this.originalLabel),this._enhance(),e&&(this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active"),this.icon&&this._addClass(this.icon,null,"ui-state-hover")),this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus ui-visual-focus")}})},_readType:function(){var e=this.element[0].nodeName.toLowerCase();this.type=this.element[0].type,"input"===e&&/radio|checkbox/.test(this.type)||L.error("Can't create checkboxradio on element.nodeName="+e+" and element.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var e=this.element[0].name,t="input[name='"+L.ui.escapeSelector(e)+"']";return e?(this.form.length?L(this.form[0].elements).filter(t):L(t).filter(function(){return 0===L(this).form().length})).not(this.element):L([])},_toggleClasses:function(){var e=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",e),this.options.icon&&"checkbox"===this.type&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",e)._toggleClass(this.icon,null,"ui-icon-blank",!e),"radio"===this.type&&this._getRadioGroup().each(function(){var e=L(this).checkboxradio("instance");e&&e._removeClass(e.label,"ui-checkboxradio-checked","ui-state-active")})},_destroy:function(){this._unbindFormResetHandler(),this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(e,t){return"label"!==e||t?(this._super(e,t),"disabled"===e?(this._toggleClass(this.label,null,"ui-state-disabled",t),void(this.element[0].disabled=t)):void this.refresh()):void 0},_updateIcon:function(e){var t="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=L("<span>"),this.iconSpace=L("<span> </span>"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),"checkbox"===this.type?(t+=e?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,e?"ui-icon-blank":"ui-icon-check")):t+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",t),e||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):void 0!==this.icon&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)},_updateLabel:function(){var e=this.label.contents().not(this.element[0]);this.icon&&(e=e.not(this.icon[0])),this.iconSpace&&(e=e.not(this.iconSpace[0])),e.remove(),this.label.append(this.options.label)},refresh:function(){var e=this.element[0].checked,t=this.element[0].disabled;this._updateIcon(e),this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",e),null!==this.options.label&&this._updateLabel(),t!==this.options.disabled&&this._setOptions({disabled:t})}}]),L.ui.checkboxradio,L.widget("ui.button",{version:"1.12.1",defaultElement:"<button>",options:{classes:{"ui-button":"ui-corner-all"},disabled:null,icon:null,iconPosition:"beginning",label:null,showLabel:!0},_getCreateOptions:function(){var e,t=this._super()||{};return this.isInput=this.element.is("input"),null!=(e=this.element[0].disabled)&&(t.disabled=e),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(t.label=this.originalLabel),t},_create:function(){!this.option.showLabel&!this.options.icon&&(this.options.showLabel=!0),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled||!1),this.hasTitle=!!this.element.attr("title"),this.options.label&&this.options.label!==this.originalLabel&&(this.isInput?this.element.val(this.options.label):this.element.html(this.options.label)),this._addClass("ui-button","ui-widget"),this._setOption("disabled",this.options.disabled),this._enhance(),this.element.is("a")&&this._on({keyup:function(e){e.keyCode===L.ui.keyCode.SPACE&&(e.preventDefault(),this.element[0].click?this.element[0].click():this.element.trigger("click"))}})},_enhance:function(){this.element.is("button")||this.element.attr("role","button"),this.options.icon&&(this._updateIcon("icon",this.options.icon),this._updateTooltip())},_updateTooltip:function(){this.title=this.element.attr("title"),this.options.showLabel||this.title||this.element.attr("title",this.options.label)},_updateIcon:function(e,t){var i="iconPosition"!==e,n=i?this.options.iconPosition:t,s="top"===n||"bottom"===n;this.icon?i&&this._removeClass(this.icon,null,this.options.icon):(this.icon=L("<span>"),this._addClass(this.icon,"ui-button-icon","ui-icon"),this.options.showLabel||this._addClass("ui-button-icon-only")),i&&this._addClass(this.icon,null,t),this._attachIcon(n),s?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconSpace||(this.iconSpace=L("<span> </span>"),this._addClass(this.iconSpace,"ui-button-icon-space")),this._removeClass(this.icon,null,"ui-wiget-icon-block"),this._attachIconSpace(n))},_destroy:function(){this.element.removeAttr("role"),this.icon&&this.icon.remove(),this.iconSpace&&this.iconSpace.remove(),this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(e){this.icon[/^(?:end|bottom)/.test(e)?"before":"after"](this.iconSpace)},_attachIcon:function(e){this.element[/^(?:end|bottom)/.test(e)?"append":"prepend"](this.icon)},_setOptions:function(e){var t=void 0===e.showLabel?this.options.showLabel:e.showLabel,i=void 0===e.icon?this.options.icon:e.icon;t||i||(e.showLabel=!0),this._super(e)},_setOption:function(e,t){"icon"===e&&(t?this._updateIcon(e,t):this.icon&&(this.icon.remove(),this.iconSpace&&this.iconSpace.remove())),"iconPosition"===e&&this._updateIcon(e,t),"showLabel"===e&&(this._toggleClass("ui-button-icon-only",null,!t),this._updateTooltip()),"label"===e&&(this.isInput?this.element.val(t):(this.element.html(t),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition)))),this._super(e,t),"disabled"===e&&(this._toggleClass(null,"ui-state-disabled",t),(this.element[0].disabled=t)&&this.element.blur())},refresh:function(){var e=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("ui-button-disabled");e!==this.options.disabled&&this._setOptions({disabled:e}),this._updateTooltip()}}),!1!==L.uiBackCompat&&(L.widget("ui.button",L.ui.button,{options:{text:!0,icons:{primary:null,secondary:null}},_create:function(){this.options.showLabel&&!this.options.text&&(this.options.showLabel=this.options.text),!this.options.showLabel&&this.options.text&&(this.options.text=this.options.showLabel),this.options.icon||!this.options.icons.primary&&!this.options.icons.secondary?this.options.icon&&(this.options.icons.primary=this.options.icon):this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end"),this._super()},_setOption:function(e,t){return"text"===e?void this._super("showLabel",t):("showLabel"===e&&(this.options.text=t),"icon"===e&&(this.options.icons.primary=t),"icons"===e&&(t.primary?(this._super("icon",t.primary),this._super("iconPosition","beginning")):t.secondary&&(this._super("icon",t.secondary),this._super("iconPosition","end"))),void this._superApply(arguments))}}),L.fn.button=(g=L.fn.button,function(){return!this.length||this.length&&"INPUT"!==this[0].tagName||this.length&&"INPUT"===this[0].tagName&&"checkbox"!==this.attr("type")&&"radio"!==this.attr("type")?g.apply(this,arguments):(L.ui.checkboxradio||L.error("Checkboxradio widget missing"),0===arguments.length?this.checkboxradio({icon:!1}):this.checkboxradio.apply(this,arguments))}),L.fn.buttonset=function(){return L.ui.controlgroup||L.error("Controlgroup widget missing"),"option"===arguments[0]&&"items"===arguments[1]&&arguments[2]?this.controlgroup.apply(this,[arguments[0],"items.button",arguments[2]]):"option"===arguments[0]&&"items"===arguments[1]?this.controlgroup.apply(this,[arguments[0],"items.button"]):("object"==typeof arguments[0]&&arguments[0].items&&(arguments[0].items={button:arguments[0].items}),this.controlgroup.apply(this,arguments))}),L.ui.button,L.extend(L.ui,{datepicker:{version:"1.12.1"}}),L.extend(e.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(e){return d(this._defaults,e||{}),this},_attachDatepicker:function(e,t){var i,n,s;n="div"===(i=e.nodeName.toLowerCase())||"span"===i,e.id||(this.uuid+=1,e.id="dp"+this.uuid),(s=this._newInst(L(e),n)).settings=L.extend({},t||{}),"input"===i?this._connectDatepicker(e,s):n&&this._inlineDatepicker(e,s)},_newInst:function(e,t){return{id:e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:t,dpDiv:t?i(L("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(e,t){var i=L(e);t.append=L([]),t.trigger=L([]),i.hasClass(this.markerClassName)||(this._attachments(i,t),i.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(t),L.data(e,"datepicker",t),t.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,t){var i,n,s,a=this._get(t,"appendText"),r=this._get(t,"isRTL");t.append&&t.append.remove(),a&&(t.append=L("<span class='"+this._appendClass+"'>"+a+"</span>"),e[r?"before":"after"](t.append)),e.off("focus",this._showDatepicker),t.trigger&&t.trigger.remove(),("focus"===(i=this._get(t,"showOn"))||"both"===i)&&e.on("focus",this._showDatepicker),("button"===i||"both"===i)&&(n=this._get(t,"buttonText"),s=this._get(t,"buttonImage"),t.trigger=L(this._get(t,"buttonImageOnly")?L("<img/>").addClass(this._triggerClass).attr({src:s,alt:n,title:n}):L("<button type='button'></button>").addClass(this._triggerClass).html(s?L("<img/>").attr({src:s,alt:n,title:n}):n)),e[r?"before":"after"](t.trigger),t.trigger.on("click",function(){return L.datepicker._datepickerShowing&&L.datepicker._lastInput===e[0]?L.datepicker._hideDatepicker():(L.datepicker._datepickerShowing&&L.datepicker._lastInput!==e[0]&&L.datepicker._hideDatepicker(),L.datepicker._showDatepicker(e[0])),!1}))},_autoSize:function(e){if(this._get(e,"autoSize")&&!e.inline){var t,i,n,s,a=new Date(2009,11,20),r=this._get(e,"dateFormat");r.match(/[DM]/)&&(t=function(e){for(s=n=i=0;e.length>s;s++)e[s].length>i&&(i=e[s].length,n=s);return n},a.setMonth(t(this._get(e,r.match(/MM/)?"monthNames":"monthNamesShort"))),a.setDate(t(this._get(e,r.match(/DD/)?"dayNames":"dayNamesShort"))+20-a.getDay())),e.input.attr("size",this._formatDate(e,a).length)}},_inlineDatepicker:function(e,t){var i=L(e);i.hasClass(this.markerClassName)||(i.addClass(this.markerClassName).append(t.dpDiv),L.data(e,"datepicker",t),this._setDate(t,this._getDefaultDate(t),!0),this._updateDatepicker(t),this._updateAlternate(t),t.settings.disabled&&this._disableDatepicker(e),t.dpDiv.css("display","block"))},_dialogDatepicker:function(e,t,i,n,s){var a,r,o,l,h,u=this._dialogInst;return u||(this.uuid+=1,a="dp"+this.uuid,this._dialogInput=L("<input type='text' id='"+a+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),L("body").append(this._dialogInput),(u=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},L.data(this._dialogInput[0],"datepicker",u)),d(u.settings,n||{}),t=t&&t.constructor===Date?this._formatDate(u,t):t,this._dialogInput.val(t),this._pos=s?s.length?s:[s.pageX,s.pageY]:null,this._pos||(r=document.documentElement.clientWidth,o=document.documentElement.clientHeight,l=document.documentElement.scrollLeft||document.body.scrollLeft,h=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[r/2-100+l,o/2-150+h]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),u.settings.onSelect=i,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),L.blockUI&&L.blockUI(this.dpDiv),L.data(this._dialogInput[0],"datepicker",u),this},_destroyDatepicker:function(e){var t,i=L(e),n=L.data(e,"datepicker");i.hasClass(this.markerClassName)&&(t=e.nodeName.toLowerCase(),L.removeData(e,"datepicker"),"input"===t?(n.append.remove(),n.trigger.remove(),i.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):("div"===t||"span"===t)&&i.removeClass(this.markerClassName).empty(),v===n&&(v=null))},_enableDatepicker:function(t){var e,i,n=L(t),s=L.data(t,"datepicker");n.hasClass(this.markerClassName)&&("input"===(e=t.nodeName.toLowerCase())?(t.disabled=!1,s.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):("div"===e||"span"===e)&&((i=n.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=L.map(this._disabledInputs,function(e){return e===t?null:e}))},_disableDatepicker:function(t){var e,i,n=L(t),s=L.data(t,"datepicker");n.hasClass(this.markerClassName)&&("input"===(e=t.nodeName.toLowerCase())?(t.disabled=!0,s.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):("div"===e||"span"===e)&&((i=n.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=L.map(this._disabledInputs,function(e){return e===t?null:e}),this._disabledInputs[this._disabledInputs.length]=t)},_isDisabledDatepicker:function(e){if(!e)return!1;for(var t=0;this._disabledInputs.length>t;t++)if(this._disabledInputs[t]===e)return!0;return!1},_getInst:function(e){try{return L.data(e,"datepicker")}catch(e){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(e,t,i){var n,s,a,r,o=this._getInst(e);return 2===arguments.length&&"string"==typeof t?"defaults"===t?L.extend({},L.datepicker._defaults):o?"all"===t?L.extend({},o.settings):this._get(o,t):null:(n=t||{},"string"==typeof t&&((n={})[t]=i),void(o&&(this._curInst===o&&this._hideDatepicker(),s=this._getDateDatepicker(e,!0),a=this._getMinMaxDate(o,"min"),r=this._getMinMaxDate(o,"max"),d(o.settings,n),null!==a&&void 0!==n.dateFormat&&void 0===n.minDate&&(o.settings.minDate=this._formatDate(o,a)),null!==r&&void 0!==n.dateFormat&&void 0===n.maxDate&&(o.settings.maxDate=this._formatDate(o,r)),"disabled"in n&&(n.disabled?this._disableDatepicker(e):this._enableDatepicker(e)),this._attachments(L(e),o),this._autoSize(o),this._setDate(o,s),this._updateAlternate(o),this._updateDatepicker(o))))},_changeDatepicker:function(e,t,i){this._optionDatepicker(e,t,i)},_refreshDatepicker:function(e){var t=this._getInst(e);t&&this._updateDatepicker(t)},_setDateDatepicker:function(e,t){var i=this._getInst(e);i&&(this._setDate(i,t),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(e,t){var i=this._getInst(e);return i&&!i.inline&&this._setDateFromField(i,t),i?this._getDate(i):null},_doKeyDown:function(e){var t,i,n,s=L.datepicker._getInst(e.target),a=!0,r=s.dpDiv.is(".ui-datepicker-rtl");if(s._keyEvent=!0,L.datepicker._datepickerShowing)switch(e.keyCode){case 9:L.datepicker._hideDatepicker(),a=!1;break;case 13:return(n=L("td."+L.datepicker._dayOverClass+":not(."+L.datepicker._currentClass+")",s.dpDiv))[0]&&L.datepicker._selectDay(e.target,s.selectedMonth,s.selectedYear,n[0]),(t=L.datepicker._get(s,"onSelect"))?(i=L.datepicker._formatDate(s),t.apply(s.input?s.input[0]:null,[i,s])):L.datepicker._hideDatepicker(),!1;case 27:L.datepicker._hideDatepicker();break;case 33:L.datepicker._adjustDate(e.target,e.ctrlKey?-L.datepicker._get(s,"stepBigMonths"):-L.datepicker._get(s,"stepMonths"),"M");break;case 34:L.datepicker._adjustDate(e.target,e.ctrlKey?+L.datepicker._get(s,"stepBigMonths"):+L.datepicker._get(s,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&&L.datepicker._clearDate(e.target),a=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&&L.datepicker._gotoToday(e.target),a=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&&L.datepicker._adjustDate(e.target,r?1:-1,"D"),a=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&L.datepicker._adjustDate(e.target,e.ctrlKey?-L.datepicker._get(s,"stepBigMonths"):-L.datepicker._get(s,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&&L.datepicker._adjustDate(e.target,-7,"D"),a=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&&L.datepicker._adjustDate(e.target,r?-1:1,"D"),a=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&L.datepicker._adjustDate(e.target,e.ctrlKey?+L.datepicker._get(s,"stepBigMonths"):+L.datepicker._get(s,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&&L.datepicker._adjustDate(e.target,7,"D"),a=e.ctrlKey||e.metaKey;break;default:a=!1}else 36===e.keyCode&&e.ctrlKey?L.datepicker._showDatepicker(this):a=!1;a&&(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){var t,i,n=L.datepicker._getInst(e.target);return L.datepicker._get(n,"constrainInput")?(t=L.datepicker._possibleChars(L.datepicker._get(n,"dateFormat")),i=String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),e.ctrlKey||e.metaKey||i<" "||!t||-1<t.indexOf(i)):void 0},_doKeyUp:function(e){var t=L.datepicker._getInst(e.target);if(t.input.val()!==t.lastVal)try{L.datepicker.parseDate(L.datepicker._get(t,"dateFormat"),t.input?t.input.val():null,L.datepicker._getFormatConfig(t))&&(L.datepicker._setDateFromField(t),L.datepicker._updateAlternate(t),L.datepicker._updateDatepicker(t))}catch(e){}return!0},_showDatepicker:function(e){var t,i,n,s,a,r,o;("input"!==(e=e.target||e).nodeName.toLowerCase()&&(e=L("input",e.parentNode)[0]),L.datepicker._isDisabledDatepicker(e)||L.datepicker._lastInput===e)||(t=L.datepicker._getInst(e),L.datepicker._curInst&&L.datepicker._curInst!==t&&(L.datepicker._curInst.dpDiv.stop(!0,!0),t&&L.datepicker._datepickerShowing&&L.datepicker._hideDatepicker(L.datepicker._curInst.input[0])),!1!==(n=(i=L.datepicker._get(t,"beforeShow"))?i.apply(e,[e,t]):{})&&(d(t.settings,n),t.lastVal=null,L.datepicker._lastInput=e,L.datepicker._setDateFromField(t),L.datepicker._inDialog&&(e.value=""),L.datepicker._pos||(L.datepicker._pos=L.datepicker._findPos(e),L.datepicker._pos[1]+=e.offsetHeight),s=!1,L(e).parents().each(function(){return!(s|="fixed"===L(this).css("position"))}),a={left:L.datepicker._pos[0],top:L.datepicker._pos[1]},L.datepicker._pos=null,t.dpDiv.empty(),t.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),L.datepicker._updateDatepicker(t),a=L.datepicker._checkOffset(t,a,s),t.dpDiv.css({position:L.datepicker._inDialog&&L.blockUI?"static":s?"fixed":"absolute",display:"none",left:a.left+"px",top:a.top+"px"}),t.inline||(r=L.datepicker._get(t,"showAnim"),o=L.datepicker._get(t,"duration"),t.dpDiv.css("z-index",function(e){for(var t,i;e.length&&e[0]!==document;){if(("absolute"===(t=e.css("position"))||"relative"===t||"fixed"===t)&&(i=parseInt(e.css("zIndex"),10),!isNaN(i)&&0!==i))return i;e=e.parent()}return 0}(L(e))+1),L.datepicker._datepickerShowing=!0,L.effects&&L.effects.effect[r]?t.dpDiv.show(r,L.datepicker._get(t,"showOptions"),o):t.dpDiv[r||"show"](r?o:null),L.datepicker._shouldFocusInput(t)&&t.input.trigger("focus"),L.datepicker._curInst=t)))},_updateDatepicker:function(e){this.maxRows=4,(v=e).dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e);var t,i=this._getNumberOfMonths(e),n=i[1],s=e.dpDiv.find("."+this._dayOverClass+" a");0<s.length&&a.apply(s.get(0)),e.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),1<n&&e.dpDiv.addClass("ui-datepicker-multi-"+n).css("width",17*n+"em"),e.dpDiv[(1!==i[0]||1!==i[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),e.dpDiv[(this._get(e,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),e===L.datepicker._curInst&&L.datepicker._datepickerShowing&&L.datepicker._shouldFocusInput(e)&&e.input.trigger("focus"),e.yearshtml&&(t=e.yearshtml,setTimeout(function(){t===e.yearshtml&&e.yearshtml&&e.dpDiv.find("select.ui-datepicker-year:first").replaceWith(e.yearshtml),t=e.yearshtml=null},0))},_shouldFocusInput:function(e){return e.input&&e.input.is(":visible")&&!e.input.is(":disabled")&&!e.input.is(":focus")},_checkOffset:function(e,t,i){var n=e.dpDiv.outerWidth(),s=e.dpDiv.outerHeight(),a=e.input?e.input.outerWidth():0,r=e.input?e.input.outerHeight():0,o=document.documentElement.clientWidth+(i?0:L(document).scrollLeft()),l=document.documentElement.clientHeight+(i?0:L(document).scrollTop());return t.left-=this._get(e,"isRTL")?n-a:0,t.left-=i&&t.left===e.input.offset().left?L(document).scrollLeft():0,t.top-=i&&t.top===e.input.offset().top+r?L(document).scrollTop():0,t.left-=Math.min(t.left,t.left+n>o&&n<o?Math.abs(t.left+n-o):0),t.top-=Math.min(t.top,t.top+s>l&&s<l?Math.abs(s+r):0),t},_findPos:function(e){for(var t,i=this._getInst(e),n=this._get(i,"isRTL");e&&("hidden"===e.type||1!==e.nodeType||L.expr.filters.hidden(e));)e=e[n?"previousSibling":"nextSibling"];return[(t=L(e).offset()).left,t.top]},_hideDatepicker:function(e){var t,i,n,s,a=this._curInst;!a||e&&a!==L.data(e,"datepicker")||this._datepickerShowing&&(t=this._get(a,"showAnim"),i=this._get(a,"duration"),n=function(){L.datepicker._tidyDialog(a)},L.effects&&(L.effects.effect[t]||L.effects[t])?a.dpDiv.hide(t,L.datepicker._get(a,"showOptions"),i,n):a.dpDiv["slideDown"===t?"slideUp":"fadeIn"===t?"fadeOut":"hide"](t?i:null,n),t||n(),this._datepickerShowing=!1,(s=this._get(a,"onClose"))&&s.apply(a.input?a.input[0]:null,[a.input?a.input.val():"",a]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),L.blockUI&&(L.unblockUI(),L("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(e){e.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(e){if(L.datepicker._curInst){var t=L(e.target),i=L.datepicker._getInst(t[0]);(t[0].id!==L.datepicker._mainDivId&&0===t.parents("#"+L.datepicker._mainDivId).length&&!t.hasClass(L.datepicker.markerClassName)&&!t.closest("."+L.datepicker._triggerClass).length&&L.datepicker._datepickerShowing&&(!L.datepicker._inDialog||!L.blockUI)||t.hasClass(L.datepicker.markerClassName)&&L.datepicker._curInst!==i)&&L.datepicker._hideDatepicker()}},_adjustDate:function(e,t,i){var n=L(e),s=this._getInst(n[0]);this._isDisabledDatepicker(n[0])||(this._adjustInstDate(s,t+("M"===i?this._get(s,"showCurrentAtPos"):0),i),this._updateDatepicker(s))},_gotoToday:function(e){var t,i=L(e),n=this._getInst(i[0]);this._get(n,"gotoCurrent")&&n.currentDay?(n.selectedDay=n.currentDay,n.drawMonth=n.selectedMonth=n.currentMonth,n.drawYear=n.selectedYear=n.currentYear):(t=new Date,n.selectedDay=t.getDate(),n.drawMonth=n.selectedMonth=t.getMonth(),n.drawYear=n.selectedYear=t.getFullYear()),this._notifyChange(n),this._adjustDate(i)},_selectMonthYear:function(e,t,i){var n=L(e),s=this._getInst(n[0]);s["selected"+("M"===i?"Month":"Year")]=s["draw"+("M"===i?"Month":"Year")]=parseInt(t.options[t.selectedIndex].value,10),this._notifyChange(s),this._adjustDate(n)},_selectDay:function(e,t,i,n){var s,a=L(e);L(n).hasClass(this._unselectableClass)||this._isDisabledDatepicker(a[0])||((s=this._getInst(a[0])).selectedDay=s.currentDay=L("a",n).html(),s.selectedMonth=s.currentMonth=t,s.selectedYear=s.currentYear=i,this._selectDate(e,this._formatDate(s,s.currentDay,s.currentMonth,s.currentYear)))},_clearDate:function(e){var t=L(e);this._selectDate(t,"")},_selectDate:function(e,t){var i,n=L(e),s=this._getInst(n[0]);t=null!=t?t:this._formatDate(s),s.input&&s.input.val(t),this._updateAlternate(s),(i=this._get(s,"onSelect"))?i.apply(s.input?s.input[0]:null,[t,s]):s.input&&s.input.trigger("change"),s.inline?this._updateDatepicker(s):(this._hideDatepicker(),this._lastInput=s.input[0],"object"!=typeof s.input[0]&&s.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(e){var t,i,n,s=this._get(e,"altField");s&&(t=this._get(e,"altFormat")||this._get(e,"dateFormat"),i=this._getDate(e),n=this.formatDate(t,i,this._getFormatConfig(e)),L(s).val(n))},noWeekends:function(e){var t=e.getDay();return[0<t&&t<6,""]},iso8601Week:function(e){var t,i=new Date(e.getTime());return i.setDate(i.getDate()+4-(i.getDay()||7)),t=i.getTime(),i.setMonth(0),i.setDate(1),Math.floor(Math.round((t-i)/864e5)/7)+1},parseDate:function(i,a,e){if(null==i||null==a)throw"Invalid arguments";if(""===(a="object"==typeof a?""+a:a+""))return null;var n,t,s,r,o=0,l=(e?e.shortYearCutoff:null)||this._defaults.shortYearCutoff,h="string"!=typeof l?l:(new Date).getFullYear()%100+parseInt(l,10),u=(e?e.dayNamesShort:null)||this._defaults.dayNamesShort,d=(e?e.dayNames:null)||this._defaults.dayNames,c=(e?e.monthNamesShort:null)||this._defaults.monthNamesShort,p=(e?e.monthNames:null)||this._defaults.monthNames,f=-1,m=-1,g=-1,v=-1,_=!1,y=function(e){var t=i.length>n+1&&i.charAt(n+1)===e;return t&&n++,t},b=function(e){var t=y(e),i="@"===e?14:"!"===e?20:"y"===e&&t?4:"o"===e?3:2,n=RegExp("^\\d{"+("y"===e?i:1)+","+i+"}"),s=a.substring(o).match(n);if(!s)throw"Missing number at position "+o;return o+=s[0].length,parseInt(s[0],10)},x=function(e,t,i){var n=-1,s=L.map(y(e)?i:t,function(e,t){return[[t,e]]}).sort(function(e,t){return-(e[1].length-t[1].length)});if(L.each(s,function(e,t){var i=t[1];return a.substr(o,i.length).toLowerCase()===i.toLowerCase()?(n=t[0],o+=i.length,!1):void 0}),-1!==n)return n+1;throw"Unknown name at position "+o},w=function(){if(a.charAt(o)!==i.charAt(n))throw"Unexpected literal at position "+o;o++};for(n=0;i.length>n;n++)if(_)"'"!==i.charAt(n)||y("'")?w():_=!1;else switch(i.charAt(n)){case"d":g=b("d");break;case"D":x("D",u,d);break;case"o":v=b("o");break;case"m":m=b("m");break;case"M":m=x("M",c,p);break;case"y":f=b("y");break;case"@":f=(r=new Date(b("@"))).getFullYear(),m=r.getMonth()+1,g=r.getDate();break;case"!":f=(r=new Date((b("!")-this._ticksTo1970)/1e4)).getFullYear(),m=r.getMonth()+1,g=r.getDate();break;case"'":y("'")?w():_=!0;break;default:w()}if(a.length>o&&(s=a.substr(o),!/^\s+/.test(s)))throw"Extra/unparsed characters found in date: "+s;if(-1===f?f=(new Date).getFullYear():f<100&&(f+=(new Date).getFullYear()-(new Date).getFullYear()%100+(f<=h?0:-100)),-1<v)for(m=1,g=v;!(g<=(t=this._getDaysInMonth(f,m-1)));)m++,g-=t;if((r=this._daylightSavingAdjust(new Date(f,m-1,g))).getFullYear()!==f||r.getMonth()+1!==m||r.getDate()!==g)throw"Invalid date";return r},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:864e9*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925)),formatDate:function(i,e,t){if(!e)return"";var n,s=(t?t.dayNamesShort:null)||this._defaults.dayNamesShort,a=(t?t.dayNames:null)||this._defaults.dayNames,r=(t?t.monthNamesShort:null)||this._defaults.monthNamesShort,o=(t?t.monthNames:null)||this._defaults.monthNames,l=function(e){var t=i.length>n+1&&i.charAt(n+1)===e;return t&&n++,t},h=function(e,t,i){var n=""+t;if(l(e))for(;i>n.length;)n="0"+n;return n},u=function(e,t,i,n){return l(e)?n[t]:i[t]},d="",c=!1;if(e)for(n=0;i.length>n;n++)if(c)"'"!==i.charAt(n)||l("'")?d+=i.charAt(n):c=!1;else switch(i.charAt(n)){case"d":d+=h("d",e.getDate(),2);break;case"D":d+=u("D",e.getDay(),s,a);break;case"o":d+=h("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":d+=h("m",e.getMonth()+1,2);break;case"M":d+=u("M",e.getMonth(),r,o);break;case"y":d+=l("y")?e.getFullYear():(e.getFullYear()%100<10?"0":"")+e.getFullYear()%100;break;case"@":d+=e.getTime();break;case"!":d+=1e4*e.getTime()+this._ticksTo1970;break;case"'":l("'")?d+="'":c=!0;break;default:d+=i.charAt(n)}return d},_possibleChars:function(i){var n,e="",t=!1,s=function(e){var t=i.length>n+1&&i.charAt(n+1)===e;return t&&n++,t};for(n=0;i.length>n;n++)if(t)"'"!==i.charAt(n)||s("'")?e+=i.charAt(n):t=!1;else switch(i.charAt(n)){case"d":case"m":case"y":case"@":e+="0123456789";break;case"D":case"M":return null;case"'":s("'")?e+="'":t=!0;break;default:e+=i.charAt(n)}return e},_get:function(e,t){return void 0!==e.settings[t]?e.settings[t]:this._defaults[t]},_setDateFromField:function(e,t){if(e.input.val()!==e.lastVal){var i=this._get(e,"dateFormat"),n=e.lastVal=e.input?e.input.val():null,s=this._getDefaultDate(e),a=s,r=this._getFormatConfig(e);try{a=this.parseDate(i,n,r)||s}catch(e){n=t?"":n}e.selectedDay=a.getDate(),e.drawMonth=e.selectedMonth=a.getMonth(),e.drawYear=e.selectedYear=a.getFullYear(),e.currentDay=n?a.getDate():0,e.currentMonth=n?a.getMonth():0,e.currentYear=n?a.getFullYear():0,this._adjustInstDate(e)}},_getDefaultDate:function(e){return this._restrictMinMax(e,this._determineDate(e,this._get(e,"defaultDate"),new Date))},_determineDate:function(o,e,t){var i,n,s=null==e||""===e?t:"string"==typeof e?function(e){try{return L.datepicker.parseDate(L.datepicker._get(o,"dateFormat"),e,L.datepicker._getFormatConfig(o))}catch(e){}for(var t=(e.toLowerCase().match(/^c/)?L.datepicker._getDate(o):null)||new Date,i=t.getFullYear(),n=t.getMonth(),s=t.getDate(),a=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,r=a.exec(e);r;){switch(r[2]||"d"){case"d":case"D":s+=parseInt(r[1],10);break;case"w":case"W":s+=7*parseInt(r[1],10);break;case"m":case"M":n+=parseInt(r[1],10),s=Math.min(s,L.datepicker._getDaysInMonth(i,n));break;case"y":case"Y":i+=parseInt(r[1],10),s=Math.min(s,L.datepicker._getDaysInMonth(i,n))}r=a.exec(e)}return new Date(i,n,s)}(e):"number"==typeof e?isNaN(e)?t:(i=e,(n=new Date).setDate(n.getDate()+i),n):new Date(e.getTime());return(s=s&&"Invalid Date"==""+s?t:s)&&(s.setHours(0),s.setMinutes(0),s.setSeconds(0),s.setMilliseconds(0)),this._daylightSavingAdjust(s)},_daylightSavingAdjust:function(e){return e?(e.setHours(12<e.getHours()?e.getHours()+2:0),e):null},_setDate:function(e,t,i){var n=!t,s=e.selectedMonth,a=e.selectedYear,r=this._restrictMinMax(e,this._determineDate(e,t,new Date));e.selectedDay=e.currentDay=r.getDate(),e.drawMonth=e.selectedMonth=e.currentMonth=r.getMonth(),e.drawYear=e.selectedYear=e.currentYear=r.getFullYear(),s===e.selectedMonth&&a===e.selectedYear||i||this._notifyChange(e),this._adjustInstDate(e),e.input&&e.input.val(n?"":this._formatDate(e))},_getDate:function(e){return!e.currentYear||e.input&&""===e.input.val()?null:this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay))},_attachHandlers:function(e){var t=this._get(e,"stepMonths"),i="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map(function(){var e={prev:function(){L.datepicker._adjustDate(i,-t,"M")},next:function(){L.datepicker._adjustDate(i,+t,"M")},hide:function(){L.datepicker._hideDatepicker()},today:function(){L.datepicker._gotoToday(i)},selectDay:function(){return L.datepicker._selectDay(i,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return L.datepicker._selectMonthYear(i,this,"M"),!1},selectYear:function(){return L.datepicker._selectMonthYear(i,this,"Y"),!1}};L(this).on(this.getAttribute("data-event"),e[this.getAttribute("data-handler")])})},_generateHTML:function(e){var t,i,n,s,a,r,o,l,h,u,d,c,p,f,m,g,v,_,y,b,x,w,M,j,k,L,S,T,D,C,Y,E,H,A,I,F,$,P,z,N=new Date,O=this._daylightSavingAdjust(new Date(N.getFullYear(),N.getMonth(),N.getDate())),R=this._get(e,"isRTL"),W=this._get(e,"showButtonPanel"),V=this._get(e,"hideIfNoPrevNext"),B=this._get(e,"navigationAsDateFormat"),U=this._getNumberOfMonths(e),q=this._get(e,"showCurrentAtPos"),G=this._get(e,"stepMonths"),X=1!==U[0]||1!==U[1],J=this._daylightSavingAdjust(e.currentDay?new Date(e.currentYear,e.currentMonth,e.currentDay):new Date(9999,9,9)),K=this._getMinMaxDate(e,"min"),Z=this._getMinMaxDate(e,"max"),Q=e.drawMonth-q,ee=e.drawYear;if(Q<0&&(Q+=12,ee--),Z)for(t=this._daylightSavingAdjust(new Date(Z.getFullYear(),Z.getMonth()-U[0]*U[1]+1,Z.getDate())),t=K&&t<K?K:t;this._daylightSavingAdjust(new Date(ee,Q,1))>t;)--Q<0&&(Q=11,ee--);for(e.drawMonth=Q,e.drawYear=ee,i=this._get(e,"prevText"),i=B?this.formatDate(i,this._daylightSavingAdjust(new Date(ee,Q-G,1)),this._getFormatConfig(e)):i,n=this._canAdjustMonth(e,-1,ee,Q)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(R?"e":"w")+"'>"+i+"</span></a>":V?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(R?"e":"w")+"'>"+i+"</span></a>",s=this._get(e,"nextText"),s=B?this.formatDate(s,this._daylightSavingAdjust(new Date(ee,Q+G,1)),this._getFormatConfig(e)):s,a=this._canAdjustMonth(e,1,ee,Q)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+s+"'><span class='ui-icon ui-icon-circle-triangle-"+(R?"w":"e")+"'>"+s+"</span></a>":V?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+s+"'><span class='ui-icon ui-icon-circle-triangle-"+(R?"w":"e")+"'>"+s+"</span></a>",r=this._get(e,"currentText"),o=this._get(e,"gotoCurrent")&&e.currentDay?J:O,r=B?this.formatDate(r,o,this._getFormatConfig(e)):r,l=e.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(e,"closeText")+"</button>",h=W?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(R?l:"")+(this._isInRange(e,o)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+r+"</button>":"")+(R?"":l)+"</div>":"",u=parseInt(this._get(e,"firstDay"),10),u=isNaN(u)?0:u,d=this._get(e,"showWeek"),c=this._get(e,"dayNames"),p=this._get(e,"dayNamesMin"),f=this._get(e,"monthNames"),m=this._get(e,"monthNamesShort"),g=this._get(e,"beforeShowDay"),v=this._get(e,"showOtherMonths"),_=this._get(e,"selectOtherMonths"),y=this._getDefaultDate(e),b="",w=0;U[0]>w;w++){for(M="",this.maxRows=4,j=0;U[1]>j;j++){if(k=this._daylightSavingAdjust(new Date(ee,Q,e.selectedDay)),L=" ui-corner-all",S="",X){if(S+="<div class='ui-datepicker-group",1<U[1])switch(j){case 0:S+=" ui-datepicker-group-first",L=" ui-corner-"+(R?"right":"left");break;case U[1]-1:S+=" ui-datepicker-group-last",L=" ui-corner-"+(R?"left":"right");break;default:S+=" ui-datepicker-group-middle",L=""}S+="'>"}for(S+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+L+"'>"+(/all|left/.test(L)&&0===w?R?a:n:"")+(/all|right/.test(L)&&0===w?R?n:a:"")+this._generateMonthYearHeader(e,Q,ee,K,Z,0<w||0<j,f,m)+"</div><table class='ui-datepicker-calendar'><thead><tr>",T=d?"<th class='ui-datepicker-week-col'>"+this._get(e,"weekHeader")+"</th>":"",x=0;x<7;x++)T+="<th scope='col'"+(5<=(x+u+6)%7?" class='ui-datepicker-week-end'":"")+"><span title='"+c[D=(x+u)%7]+"'>"+p[D]+"</span></th>";for(S+=T+"</tr></thead><tbody>",C=this._getDaysInMonth(ee,Q),ee===e.selectedYear&&Q===e.selectedMonth&&(e.selectedDay=Math.min(e.selectedDay,C)),Y=(this._getFirstDayOfMonth(ee,Q)-u+7)%7,E=Math.ceil((Y+C)/7),H=X&&this.maxRows>E?this.maxRows:E,this.maxRows=H,A=this._daylightSavingAdjust(new Date(ee,Q,1-Y)),I=0;I<H;I++){for(S+="<tr>",F=d?"<td class='ui-datepicker-week-col'>"+this._get(e,"calculateWeek")(A)+"</td>":"",x=0;x<7;x++)$=g?g.apply(e.input?e.input[0]:null,[A]):[!0,""],z=(P=A.getMonth()!==Q)&&!_||!$[0]||K&&A<K||Z&&Z<A,F+="<td class='"+(5<=(x+u+6)%7?" ui-datepicker-week-end":"")+(P?" ui-datepicker-other-month":"")+(A.getTime()===k.getTime()&&Q===e.selectedMonth&&e._keyEvent||y.getTime()===A.getTime()&&y.getTime()===k.getTime()?" "+this._dayOverClass:"")+(z?" "+this._unselectableClass+" ui-state-disabled":"")+(P&&!v?"":" "+$[1]+(A.getTime()===J.getTime()?" "+this._currentClass:"")+(A.getTime()===O.getTime()?" ui-datepicker-today":""))+"'"+(P&&!v||!$[2]?"":" title='"+$[2].replace(/'/g,"&#39;")+"'")+(z?"":" data-handler='selectDay' data-event='click' data-month='"+A.getMonth()+"' data-year='"+A.getFullYear()+"'")+">"+(P&&!v?"&#xa0;":z?"<span class='ui-state-default'>"+A.getDate()+"</span>":"<a class='ui-state-default"+(A.getTime()===O.getTime()?" ui-state-highlight":"")+(A.getTime()===J.getTime()?" ui-state-active":"")+(P?" ui-priority-secondary":"")+"' href='#'>"+A.getDate()+"</a>")+"</td>",A.setDate(A.getDate()+1),A=this._daylightSavingAdjust(A);S+=F+"</tr>"}11<++Q&&(Q=0,ee++),M+=S+="</tbody></table>"+(X?"</div>"+(0<U[0]&&j===U[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}b+=M}return b+=h,e._keyEvent=!1,b},_generateMonthYearHeader:function(e,t,i,n,s,a,r,o){var l,h,u,d,c,p,f,m,g=this._get(e,"changeMonth"),v=this._get(e,"changeYear"),_=this._get(e,"showMonthAfterYear"),y="<div class='ui-datepicker-title'>",b="";if(a||!g)b+="<span class='ui-datepicker-month'>"+r[t]+"</span>";else{for(l=n&&n.getFullYear()===i,h=s&&s.getFullYear()===i,b+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",u=0;u<12;u++)(!l||u>=n.getMonth())&&(!h||s.getMonth()>=u)&&(b+="<option value='"+u+"'"+(u===t?" selected='selected'":"")+">"+o[u]+"</option>");b+="</select>"}if(_||(y+=b+(!a&&g&&v?"":"&#xa0;")),!e.yearshtml)if(e.yearshtml="",a||!v)y+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(d=this._get(e,"yearRange").split(":"),c=(new Date).getFullYear(),f=(p=function(e){var t=e.match(/c[+\-].*/)?i+parseInt(e.substring(1),10):e.match(/[+\-].*/)?c+parseInt(e,10):parseInt(e,10);return isNaN(t)?c:t})(d[0]),m=Math.max(f,p(d[1]||"")),f=n?Math.max(f,n.getFullYear()):f,m=s?Math.min(m,s.getFullYear()):m,e.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";f<=m;f++)e.yearshtml+="<option value='"+f+"'"+(f===i?" selected='selected'":"")+">"+f+"</option>";e.yearshtml+="</select>",y+=e.yearshtml,e.yearshtml=null}return y+=this._get(e,"yearSuffix"),_&&(y+=(!a&&g&&v?"":"&#xa0;")+b),y+"</div>"},_adjustInstDate:function(e,t,i){var n=e.selectedYear+("Y"===i?t:0),s=e.selectedMonth+("M"===i?t:0),a=Math.min(e.selectedDay,this._getDaysInMonth(n,s))+("D"===i?t:0),r=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(n,s,a)));e.selectedDay=r.getDate(),e.drawMonth=e.selectedMonth=r.getMonth(),e.drawYear=e.selectedYear=r.getFullYear(),("M"===i||"Y"===i)&&this._notifyChange(e)},_restrictMinMax:function(e,t){var i=this._getMinMaxDate(e,"min"),n=this._getMinMaxDate(e,"max"),s=i&&t<i?i:t;return n&&n<s?n:s},_notifyChange:function(e){var t=this._get(e,"onChangeMonthYear");t&&t.apply(e.input?e.input[0]:null,[e.selectedYear,e.selectedMonth+1,e])},_getNumberOfMonths:function(e){var t=this._get(e,"numberOfMonths");return null==t?[1,1]:"number"==typeof t?[1,t]:t},_getMinMaxDate:function(e,t){return this._determineDate(e,this._get(e,t+"Date"),null)},_getDaysInMonth:function(e,t){return 32-this._daylightSavingAdjust(new Date(e,t,32)).getDate()},_getFirstDayOfMonth:function(e,t){return new Date(e,t,1).getDay()},_canAdjustMonth:function(e,t,i,n){var s=this._getNumberOfMonths(e),a=this._daylightSavingAdjust(new Date(i,n+(t<0?t:s[0]*s[1]),1));return t<0&&a.setDate(this._getDaysInMonth(a.getFullYear(),a.getMonth())),this._isInRange(e,a)},_isInRange:function(e,t){var i,n,s=this._getMinMaxDate(e,"min"),a=this._getMinMaxDate(e,"max"),r=null,o=null,l=this._get(e,"yearRange");return l&&(i=l.split(":"),n=(new Date).getFullYear(),r=parseInt(i[0],10),o=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(r+=n),i[1].match(/[+\-].*/)&&(o+=n)),(!s||t.getTime()>=s.getTime())&&(!a||t.getTime()<=a.getTime())&&(!r||t.getFullYear()>=r)&&(!o||o>=t.getFullYear())},_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff");return{shortYearCutoff:t="string"!=typeof t?t:(new Date).getFullYear()%100+parseInt(t,10),dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,i,n){t||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);var s=t?"object"==typeof t?t:this._daylightSavingAdjust(new Date(n,i,t)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),s,this._getFormatConfig(e))}}),L.fn.datepicker=function(e){if(!this.length)return this;L.datepicker.initialized||(L(document).on("mousedown",L.datepicker._checkExternalClick),L.datepicker.initialized=!0),0===L("#"+L.datepicker._mainDivId).length&&L("body").append(L.datepicker.dpDiv);var t=Array.prototype.slice.call(arguments,1);return"string"!=typeof e||"isDisabled"!==e&&"getDate"!==e&&"widget"!==e?"option"===e&&2===arguments.length&&"string"==typeof arguments[1]?L.datepicker["_"+e+"Datepicker"].apply(L.datepicker,[this[0]].concat(t)):this.each(function(){"string"==typeof e?L.datepicker["_"+e+"Datepicker"].apply(L.datepicker,[this].concat(t)):L.datepicker._attachDatepicker(this,e)}):L.datepicker["_"+e+"Datepicker"].apply(L.datepicker,[this[0]].concat(t))},L.datepicker=new e,L.datepicker.initialized=!1,L.datepicker.uuid=(new Date).getTime(),L.datepicker.version="1.12.1",L.datepicker,L.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());var y=!1;L(document).on("mouseup",function(){y=!1}),L.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).on("click."+this.widgetName,function(e){return!0===L.data(e.target,t.widgetName+".preventClickEvent")?(L.removeData(e.target,t.widgetName+".preventClickEvent"),e.stopImmediatePropagation(),!1):void 0}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){if(!y){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(e),this._mouseDownEvent=e;var t=this,i=1===e.which,n=!("string"!=typeof this.options.cancel||!e.target.nodeName)&&L(e.target).closest(this.options.cancel).length;return i&&!n&&this._mouseCapture(e)&&(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){t.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(e),!this._mouseStarted)?e.preventDefault():(!0===L.data(e.target,this.widgetName+".preventClickEvent")&&L.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return t._mouseMove(e)},this._mouseUpDelegate=function(e){return t._mouseUp(e)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),y=!0)),!0}},_mouseMove:function(e){if(this._mouseMoved){if(L.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button)return this._mouseUp(e);if(!e.which)if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&L.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,y=!1,e.preventDefault()},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),L.ui.plugin={add:function(e,t,i){var n,s=L.ui[e].prototype;for(n in i)s.plugins[n]=s.plugins[n]||[],s.plugins[n].push([t,i[n]])},call:function(e,t,i,n){var s,a=e.plugins[t];if(a&&(n||e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType))for(s=0;a.length>s;s++)e.options[a[s][0]]&&a[s][1].apply(e.element,i)}},L.ui.safeBlur=function(e){e&&"body"!==e.nodeName.toLowerCase()&&L(e).trigger("blur")},L.widget("ui.draggable",L.ui.mouse,{version:"1.12.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(e,t){this._super(e,t),"handle"===e&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){return(this.helper||this.element).is(".ui-draggable-dragging")?void(this.destroyOnClear=!0):(this._removeHandleClassName(),void this._mouseDestroy())},_mouseCapture:function(e){var t=this.options;return!(this.helper||t.disabled||0<L(e.target).closest(".ui-resizable-handle").length)&&(this.handle=this._getHandle(e),!!this.handle&&(this._blurActiveElement(e),this._blockFrames(!0===t.iframeFix?"iframe":t.iframeFix),!0))},_blockFrames:function(e){this.iframeBlocks=this.document.find(e).map(function(){var e=L(this);return L("<div>").css("position","absolute").appendTo(e.parent()).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).offset(e.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(e){var t=L.ui.safeActiveElement(this.document[0]);L(e.target).closest(t).length||L.ui.safeBlur(t)},_mouseStart:function(e){var t=this.options;return this.helper=this._createHelper(e),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),L.ui.ddmanager&&(L.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=0<this.helper.parents().filter(function(){return"fixed"===L(this).css("position")}).length,this.positionAbs=this.element.offset(),this._refreshOffsets(e),this.originalPosition=this.position=this._generatePosition(e,!1),this.originalPageX=e.pageX,this.originalPageY=e.pageY,t.cursorAt&&this._adjustOffsetFromHelper(t.cursorAt),this._setContainment(),!1===this._trigger("start",e)?(this._clear(),!1):(this._cacheHelperProportions(),L.ui.ddmanager&&!t.dropBehaviour&&L.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),L.ui.ddmanager&&L.ui.ddmanager.dragStart(this,e),!0)},_refreshOffsets:function(e){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:e.pageX-this.offset.left,top:e.pageY-this.offset.top}},_mouseDrag:function(e,t){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e,!0),this.positionAbs=this._convertPositionTo("absolute"),!t){var i=this._uiHash();if(!1===this._trigger("drag",e,i))return this._mouseUp(new L.Event("mouseup",e)),!1;this.position=i.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",L.ui.ddmanager&&L.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var t=this,i=!1;return L.ui.ddmanager&&!this.options.dropBehaviour&&(i=L.ui.ddmanager.drop(this,e)),this.dropped&&(i=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!i||"valid"===this.options.revert&&i||!0===this.options.revert||L.isFunction(this.options.revert)&&this.options.revert.call(this.element,i)?L(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==t._trigger("stop",e)&&t._clear()}):!1!==this._trigger("stop",e)&&this._clear(),!1},_mouseUp:function(e){return this._unblockFrames(),L.ui.ddmanager&&L.ui.ddmanager.dragStop(this,e),this.handleElement.is(e.target)&&this.element.trigger("focus"),L.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new L.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(e){return!this.options.handle||!!L(e.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(e){var t=this.options,i=L.isFunction(t.helper),n=i?L(t.helper.apply(this.element[0],[e])):"clone"===t.helper?this.element.clone().removeAttr("id"):this.element;return n.parents("body").length||n.appendTo("parent"===t.appendTo?this.element[0].parentNode:t.appendTo),i&&n[0]===this.element[0]&&this._setPositionRelative(),n[0]===this.element[0]||/(fixed|absolute)/.test(n.css("position"))||n.css("position","absolute"),n},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),L.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_isRootNode:function(e){return/(html|body)/i.test(e.tagName)||e===this.document[0]},_getParentOffset:function(){var e=this.offsetParent.offset(),t=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==t&&L.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var e=this.element.position(),t=this._isRootNode(this.scrollParent[0]);return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+(t?0:this.scrollParent.scrollTop()),left:e.left-(parseInt(this.helper.css("left"),10)||0)+(t?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,t,i,n=this.options,s=this.document[0];return this.relativeContainer=null,n.containment?"window"===n.containment?void(this.containment=[L(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,L(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,L(window).scrollLeft()+L(window).width()-this.helperProportions.width-this.margins.left,L(window).scrollTop()+(L(window).height()||s.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):"document"===n.containment?void(this.containment=[0,0,L(s).width()-this.helperProportions.width-this.margins.left,(L(s).height()||s.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):n.containment.constructor===Array?void(this.containment=n.containment):("parent"===n.containment&&(n.containment=this.helper[0].parentNode),void((i=(t=L(n.containment))[0])&&(e=/(scroll|auto)/.test(t.css("overflow")),this.containment=[(parseInt(t.css("borderLeftWidth"),10)||0)+(parseInt(t.css("paddingLeft"),10)||0),(parseInt(t.css("borderTopWidth"),10)||0)+(parseInt(t.css("paddingTop"),10)||0),(e?Math.max(i.scrollWidth,i.offsetWidth):i.offsetWidth)-(parseInt(t.css("borderRightWidth"),10)||0)-(parseInt(t.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(i.scrollHeight,i.offsetHeight):i.offsetHeight)-(parseInt(t.css("borderBottomWidth"),10)||0)-(parseInt(t.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=t))):void(this.containment=null)},_convertPositionTo:function(e,t){t||(t=this.position);var i="absolute"===e?1:-1,n=this._isRootNode(this.scrollParent[0]);return{top:t.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.offset.scroll.top:n?0:this.offset.scroll.top)*i,left:t.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.offset.scroll.left:n?0:this.offset.scroll.left)*i}},_generatePosition:function(e,t){var i,n,s,a,r=this.options,o=this._isRootNode(this.scrollParent[0]),l=e.pageX,h=e.pageY;return o&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),t&&(this.containment&&(this.relativeContainer?(n=this.relativeContainer.offset(),i=[this.containment[0]+n.left,this.containment[1]+n.top,this.containment[2]+n.left,this.containment[3]+n.top]):i=this.containment,e.pageX-this.offset.click.left<i[0]&&(l=i[0]+this.offset.click.left),e.pageY-this.offset.click.top<i[1]&&(h=i[1]+this.offset.click.top),e.pageX-this.offset.click.left>i[2]&&(l=i[2]+this.offset.click.left),e.pageY-this.offset.click.top>i[3]&&(h=i[3]+this.offset.click.top)),r.grid&&(s=r.grid[1]?this.originalPageY+Math.round((h-this.originalPageY)/r.grid[1])*r.grid[1]:this.originalPageY,h=i?s-this.offset.click.top>=i[1]||s-this.offset.click.top>i[3]?s:s-this.offset.click.top>=i[1]?s-r.grid[1]:s+r.grid[1]:s,a=r.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/r.grid[0])*r.grid[0]:this.originalPageX,l=i?a-this.offset.click.left>=i[0]||a-this.offset.click.left>i[2]?a:a-this.offset.click.left>=i[0]?a-r.grid[0]:a+r.grid[0]:a),"y"===r.axis&&(l=this.originalPageX),"x"===r.axis&&(h=this.originalPageY)),{top:h-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:o?0:this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:o?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(e,t,i){return i=i||this._uiHash(),L.ui.plugin.call(this,e,[t,i,this],!0),/^(drag|start|stop)/.test(e)&&(this.positionAbs=this._convertPositionTo("absolute"),i.offset=this.positionAbs),L.Widget.prototype._trigger.call(this,e,t,i)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),L.ui.plugin.add("draggable","connectToSortable",{start:function(t,e,i){var n=L.extend({},e,{item:i.element});i.sortables=[],L(i.options.connectToSortable).each(function(){var e=L(this).sortable("instance");e&&!e.options.disabled&&(i.sortables.push(e),e.refreshPositions(),e._trigger("activate",t,n))})},stop:function(t,e,i){var n=L.extend({},e,{item:i.element});i.cancelHelperRemoval=!1,L.each(i.sortables,function(){var e=this;e.isOver?(e.isOver=0,i.cancelHelperRemoval=!0,e.cancelHelperRemoval=!1,e._storedCSS={position:e.placeholder.css("position"),top:e.placeholder.css("top"),left:e.placeholder.css("left")},e._mouseStop(t),e.options.helper=e.options._helper):(e.cancelHelperRemoval=!0,e._trigger("deactivate",t,n))})},drag:function(i,n,s){L.each(s.sortables,function(){var e=!1,t=this;t.positionAbs=s.positionAbs,t.helperProportions=s.helperProportions,t.offset.click=s.offset.click,t._intersectsWith(t.containerCache)&&(e=!0,L.each(s.sortables,function(){return this.positionAbs=s.positionAbs,this.helperProportions=s.helperProportions,this.offset.click=s.offset.click,this!==t&&this._intersectsWith(this.containerCache)&&L.contains(t.element[0],this.element[0])&&(e=!1),e})),e?(t.isOver||(t.isOver=1,s._parent=n.helper.parent(),t.currentItem=n.helper.appendTo(t.element).data("ui-sortable-item",!0),t.options._helper=t.options.helper,t.options.helper=function(){return n.helper[0]},i.target=t.currentItem[0],t._mouseCapture(i,!0),t._mouseStart(i,!0,!0),t.offset.click.top=s.offset.click.top,t.offset.click.left=s.offset.click.left,t.offset.parent.left-=s.offset.parent.left-t.offset.parent.left,t.offset.parent.top-=s.offset.parent.top-t.offset.parent.top,s._trigger("toSortable",i),s.dropped=t.element,L.each(s.sortables,function(){this.refreshPositions()}),s.currentItem=s.element,t.fromOutside=s),t.currentItem&&(t._mouseDrag(i),n.position=t.position)):t.isOver&&(t.isOver=0,t.cancelHelperRemoval=!0,t.options._revert=t.options.revert,t.options.revert=!1,t._trigger("out",i,t._uiHash(t)),t._mouseStop(i,!0),t.options.revert=t.options._revert,t.options.helper=t.options._helper,t.placeholder&&t.placeholder.remove(),n.helper.appendTo(s._parent),s._refreshOffsets(i),n.position=s._generatePosition(i,!0),s._trigger("fromSortable",i),s.dropped=!1,L.each(s.sortables,function(){this.refreshPositions()}))})}}),L.ui.plugin.add("draggable","cursor",{start:function(e,t,i){var n=L("body"),s=i.options;n.css("cursor")&&(s._cursor=n.css("cursor")),n.css("cursor",s.cursor)},stop:function(e,t,i){var n=i.options;n._cursor&&L("body").css("cursor",n._cursor)}}),L.ui.plugin.add("draggable","opacity",{start:function(e,t,i){var n=L(t.helper),s=i.options;n.css("opacity")&&(s._opacity=n.css("opacity")),n.css("opacity",s.opacity)},stop:function(e,t,i){var n=i.options;n._opacity&&L(t.helper).css("opacity",n._opacity)}}),L.ui.plugin.add("draggable","scroll",{start:function(e,t,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1)),i.scrollParentNotHidden[0]!==i.document[0]&&"HTML"!==i.scrollParentNotHidden[0].tagName&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(e,t,i){var n=i.options,s=!1,a=i.scrollParentNotHidden[0],r=i.document[0];a!==r&&"HTML"!==a.tagName?(n.axis&&"x"===n.axis||(i.overflowOffset.top+a.offsetHeight-e.pageY<n.scrollSensitivity?a.scrollTop=s=a.scrollTop+n.scrollSpeed:e.pageY-i.overflowOffset.top<n.scrollSensitivity&&(a.scrollTop=s=a.scrollTop-n.scrollSpeed)),n.axis&&"y"===n.axis||(i.overflowOffset.left+a.offsetWidth-e.pageX<n.scrollSensitivity?a.scrollLeft=s=a.scrollLeft+n.scrollSpeed:e.pageX-i.overflowOffset.left<n.scrollSensitivity&&(a.scrollLeft=s=a.scrollLeft-n.scrollSpeed))):(n.axis&&"x"===n.axis||(e.pageY-L(r).scrollTop()<n.scrollSensitivity?s=L(r).scrollTop(L(r).scrollTop()-n.scrollSpeed):L(window).height()-(e.pageY-L(r).scrollTop())<n.scrollSensitivity&&(s=L(r).scrollTop(L(r).scrollTop()+n.scrollSpeed))),n.axis&&"y"===n.axis||(e.pageX-L(r).scrollLeft()<n.scrollSensitivity?s=L(r).scrollLeft(L(r).scrollLeft()-n.scrollSpeed):L(window).width()-(e.pageX-L(r).scrollLeft())<n.scrollSensitivity&&(s=L(r).scrollLeft(L(r).scrollLeft()+n.scrollSpeed)))),!1!==s&&L.ui.ddmanager&&!n.dropBehaviour&&L.ui.ddmanager.prepareOffsets(i,e)}}),L.ui.plugin.add("draggable","snap",{start:function(e,t,i){var n=i.options;i.snapElements=[],L(n.snap.constructor!==String?n.snap.items||":data(ui-draggable)":n.snap).each(function(){var e=L(this),t=e.offset();this!==i.element[0]&&i.snapElements.push({item:this,width:e.outerWidth(),height:e.outerHeight(),top:t.top,left:t.left})})},drag:function(e,t,i){var n,s,a,r,o,l,h,u,d,c,p=i.options,f=p.snapTolerance,m=t.offset.left,g=m+i.helperProportions.width,v=t.offset.top,_=v+i.helperProportions.height;for(d=i.snapElements.length-1;0<=d;d--)l=(o=i.snapElements[d].left-i.margins.left)+i.snapElements[d].width,u=(h=i.snapElements[d].top-i.margins.top)+i.snapElements[d].height,g<o-f||l+f<m||_<h-f||u+f<v||!L.contains(i.snapElements[d].item.ownerDocument,i.snapElements[d].item)?(i.snapElements[d].snapping&&i.options.snap.release&&i.options.snap.release.call(i.element,e,L.extend(i._uiHash(),{snapItem:i.snapElements[d].item})),i.snapElements[d].snapping=!1):("inner"!==p.snapMode&&(n=f>=Math.abs(h-_),s=f>=Math.abs(u-v),a=f>=Math.abs(o-g),r=f>=Math.abs(l-m),n&&(t.position.top=i._convertPositionTo("relative",{top:h-i.helperProportions.height,left:0}).top),s&&(t.position.top=i._convertPositionTo("relative",{top:u,left:0}).top),a&&(t.position.left=i._convertPositionTo("relative",{top:0,left:o-i.helperProportions.width}).left),r&&(t.position.left=i._convertPositionTo("relative",{top:0,left:l}).left)),c=n||s||a||r,"outer"!==p.snapMode&&(n=f>=Math.abs(h-v),s=f>=Math.abs(u-_),a=f>=Math.abs(o-m),r=f>=Math.abs(l-g),n&&(t.position.top=i._convertPositionTo("relative",{top:h,left:0}).top),s&&(t.position.top=i._convertPositionTo("relative",{top:u-i.helperProportions.height,left:0}).top),a&&(t.position.left=i._convertPositionTo("relative",{top:0,left:o}).left),r&&(t.position.left=i._convertPositionTo("relative",{top:0,left:l-i.helperProportions.width}).left)),!i.snapElements[d].snapping&&(n||s||a||r||c)&&i.options.snap.snap&&i.options.snap.snap.call(i.element,e,L.extend(i._uiHash(),{snapItem:i.snapElements[d].item})),i.snapElements[d].snapping=n||s||a||r||c)}}),L.ui.plugin.add("draggable","stack",{start:function(e,t,i){var n,s=i.options,a=L.makeArray(L(s.stack)).sort(function(e,t){return(parseInt(L(e).css("zIndex"),10)||0)-(parseInt(L(t).css("zIndex"),10)||0)});a.length&&(n=parseInt(L(a[0]).css("zIndex"),10)||0,L(a).each(function(e){L(this).css("zIndex",n+e)}),this.css("zIndex",n+a.length))}}),L.ui.plugin.add("draggable","zIndex",{start:function(e,t,i){var n=L(t.helper),s=i.options;n.css("zIndex")&&(s._zIndex=n.css("zIndex")),n.css("zIndex",s.zIndex)},stop:function(e,t,i){var n=i.options;n._zIndex&&L(t.helper).css("zIndex",n._zIndex)}}),L.ui.draggable,L.widget("ui.resizable",L.ui.mouse,{version:"1.12.1",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(e){return parseFloat(e)||0},_isNumber:function(e){return!isNaN(parseFloat(e))},_hasScroll:function(e,t){if("hidden"===L(e).css("overflow"))return!1;var i=t&&"left"===t?"scrollLeft":"scrollTop",n=!1;return 0<e[i]||(e[i]=1,n=0<e[i],e[i]=0,n)},_create:function(){var e,t=this.options,i=this;this._addClass("ui-resizable"),L.extend(this,{_aspectRatio:!!t.aspectRatio,aspectRatio:t.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:t.helper||t.ghost||t.animate?t.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(L("<div class='ui-wrapper' style='overflow: hidden;'></div>").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,e={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(e),this.originalElement.css("margin",0),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css(e),this._proportionallyResize()),this._setupHandles(),t.autoHide&&L(this.element).on("mouseenter",function(){t.disabled||(i._removeClass("ui-resizable-autohide"),i._handles.show())}).on("mouseleave",function(){t.disabled||i.resizing||(i._addClass("ui-resizable-autohide"),i._handles.hide())}),this._mouseInit()},_destroy:function(){this._mouseDestroy();var e,t=function(e){L(e).removeData("resizable").removeData("ui-resizable").off(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(t(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),t(this.originalElement),this},_setOption:function(e,t){switch(this._super(e,t),e){case"handles":this._removeHandles(),this._setupHandles()}},_setupHandles:function(){var e,t,i,n,s,a=this.options,r=this;if(this.handles=a.handles||(L(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=L(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),i=this.handles.split(","),this.handles={},t=0;i.length>t;t++)n="ui-resizable-"+(e=L.trim(i[t])),s=L("<div>"),this._addClass(s,"ui-resizable-handle "+n),s.css({zIndex:a.zIndex}),this.handles[e]=".ui-resizable-"+e,this.element.append(s);this._renderAxis=function(e){var t,i,n,s;for(t in e=e||this.element,this.handles)this.handles[t].constructor===String?this.handles[t]=this.element.children(this.handles[t]).first().show():(this.handles[t].jquery||this.handles[t].nodeType)&&(this.handles[t]=L(this.handles[t]),this._on(this.handles[t],{mousedown:r._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(i=L(this.handles[t],this.element),s=/sw|ne|nw|se|n|s/.test(t)?i.outerHeight():i.outerWidth(),n=["padding",/ne|nw|n/.test(t)?"Top":/se|sw|s/.test(t)?"Bottom":/^e$/.test(t)?"Right":"Left"].join(""),e.css(n,s),this._proportionallyResize()),this._handles=this._handles.add(this.handles[t])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",function(){r.resizing||(this.className&&(s=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),r.axis=s&&s[1]?s[1]:"se")}),a.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._handles.remove()},_mouseCapture:function(e){var t,i,n=!1;for(t in this.handles)((i=L(this.handles[t])[0])===e.target||L.contains(i,e.target))&&(n=!0);return!this.options.disabled&&n},_mouseStart:function(e){var t,i,n,s=this.options,a=this.element;return this.resizing=!0,this._renderProxy(),t=this._num(this.helper.css("left")),i=this._num(this.helper.css("top")),s.containment&&(t+=L(s.containment).scrollLeft()||0,i+=L(s.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:t,top:i},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:a.width(),height:a.height()},this.originalSize=this._helper?{width:a.outerWidth(),height:a.outerHeight()}:{width:a.width(),height:a.height()},this.sizeDiff={width:a.outerWidth()-a.width(),height:a.outerHeight()-a.height()},this.originalPosition={left:t,top:i},this.originalMousePosition={left:e.pageX,top:e.pageY},this.aspectRatio="number"==typeof s.aspectRatio?s.aspectRatio:this.originalSize.width/this.originalSize.height||1,n=L(".ui-resizable-"+this.axis).css("cursor"),L("body").css("cursor","auto"===n?this.axis+"-resize":n),this._addClass("ui-resizable-resizing"),this._propagate("start",e),!0},_mouseDrag:function(e){var t,i,n=this.originalMousePosition,s=this.axis,a=e.pageX-n.left||0,r=e.pageY-n.top||0,o=this._change[s];return this._updatePrevProperties(),o&&(t=o.apply(this,[e,a,r]),this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(t=this._updateRatio(t,e)),t=this._respectSize(t,e),this._updateCache(t),this._propagate("resize",e),i=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),L.isEmptyObject(i)||(this._updatePrevProperties(),this._trigger("resize",e,this.ui()),this._applyChanges())),!1},_mouseStop:function(e){this.resizing=!1;var t,i,n,s,a,r,o,l=this.options,h=this;return this._helper&&(n=(i=(t=this._proportionallyResizeElements).length&&/textarea/i.test(t[0].nodeName))&&this._hasScroll(t[0],"left")?0:h.sizeDiff.height,s=i?0:h.sizeDiff.width,a={width:h.helper.width()-s,height:h.helper.height()-n},r=parseFloat(h.element.css("left"))+(h.position.left-h.originalPosition.left)||null,o=parseFloat(h.element.css("top"))+(h.position.top-h.originalPosition.top)||null,l.animate||this.element.css(L.extend(a,{top:o,left:r})),h.helper.height(h.size.height),h.helper.width(h.size.width),this._helper&&!l.animate&&this._proportionallyResize()),L("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var e={};return this.position.top!==this.prevPosition.top&&(e.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(e.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(e.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(e.height=this.size.height+"px"),this.helper.css(e),e},_updateVirtualBoundaries:function(e){var t,i,n,s,a,r=this.options;a={minWidth:this._isNumber(r.minWidth)?r.minWidth:0,maxWidth:this._isNumber(r.maxWidth)?r.maxWidth:1/0,minHeight:this._isNumber(r.minHeight)?r.minHeight:0,maxHeight:this._isNumber(r.maxHeight)?r.maxHeight:1/0},(this._aspectRatio||e)&&(t=a.minHeight*this.aspectRatio,n=a.minWidth/this.aspectRatio,i=a.maxHeight*this.aspectRatio,s=a.maxWidth/this.aspectRatio,t>a.minWidth&&(a.minWidth=t),n>a.minHeight&&(a.minHeight=n),a.maxWidth>i&&(a.maxWidth=i),a.maxHeight>s&&(a.maxHeight=s)),this._vBoundaries=a},_updateCache:function(e){this.offset=this.helper.offset(),this._isNumber(e.left)&&(this.position.left=e.left),this._isNumber(e.top)&&(this.position.top=e.top),this._isNumber(e.height)&&(this.size.height=e.height),this._isNumber(e.width)&&(this.size.width=e.width)},_updateRatio:function(e){var t=this.position,i=this.size,n=this.axis;return this._isNumber(e.height)?e.width=e.height*this.aspectRatio:this._isNumber(e.width)&&(e.height=e.width/this.aspectRatio),"sw"===n&&(e.left=t.left+(i.width-e.width),e.top=null),"nw"===n&&(e.top=t.top+(i.height-e.height),e.left=t.left+(i.width-e.width)),e},_respectSize:function(e){var t=this._vBoundaries,i=this.axis,n=this._isNumber(e.width)&&t.maxWidth&&t.maxWidth<e.width,s=this._isNumber(e.height)&&t.maxHeight&&t.maxHeight<e.height,a=this._isNumber(e.width)&&t.minWidth&&t.minWidth>e.width,r=this._isNumber(e.height)&&t.minHeight&&t.minHeight>e.height,o=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,h=/sw|nw|w/.test(i),u=/nw|ne|n/.test(i);return a&&(e.width=t.minWidth),r&&(e.height=t.minHeight),n&&(e.width=t.maxWidth),s&&(e.height=t.maxHeight),a&&h&&(e.left=o-t.minWidth),n&&h&&(e.left=o-t.maxWidth),r&&u&&(e.top=l-t.minHeight),s&&u&&(e.top=l-t.maxHeight),e.width||e.height||e.left||!e.top?e.width||e.height||e.top||!e.left||(e.left=null):e.top=null,e},_getPaddingPlusBorderDimensions:function(e){for(var t=0,i=[],n=[e.css("borderTopWidth"),e.css("borderRightWidth"),e.css("borderBottomWidth"),e.css("borderLeftWidth")],s=[e.css("paddingTop"),e.css("paddingRight"),e.css("paddingBottom"),e.css("paddingLeft")];t<4;t++)i[t]=parseFloat(n[t])||0,i[t]+=parseFloat(s[t])||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var e,t=0,i=this.helper||this.element;this._proportionallyResizeElements.length>t;t++)e=this._proportionallyResizeElements[t],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(e)),e.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProxy:function(){var e=this.element,t=this.options;this.elementOffset=e.offset(),this._helper?(this.helper=this.helper||L("<div style='overflow:hidden;'></div>"),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++t.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(e,t){return{width:this.originalSize.width+t}},w:function(e,t){var i=this.originalSize;return{left:this.originalPosition.left+t,width:i.width-t}},n:function(e,t,i){var n=this.originalSize;return{top:this.originalPosition.top+i,height:n.height-i}},s:function(e,t,i){return{height:this.originalSize.height+i}},se:function(e,t,i){return L.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,t,i]))},sw:function(e,t,i){return L.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,t,i]))},ne:function(e,t,i){return L.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,t,i]))},nw:function(e,t,i){return L.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,t,i]))}},_propagate:function(e,t){L.ui.plugin.call(this,e,[t,this.ui()]),"resize"!==e&&this._trigger(e,t,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),L.ui.plugin.add("resizable","animate",{stop:function(t){var i=L(this).resizable("instance"),e=i.options,n=i._proportionallyResizeElements,s=n.length&&/textarea/i.test(n[0].nodeName),a=s&&i._hasScroll(n[0],"left")?0:i.sizeDiff.height,r=s?0:i.sizeDiff.width,o={width:i.size.width-r,height:i.size.height-a},l=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,h=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null;i.element.animate(L.extend(o,h&&l?{top:h,left:l}:{}),{duration:e.animateDuration,easing:e.animateEasing,step:function(){var e={width:parseFloat(i.element.css("width")),height:parseFloat(i.element.css("height")),top:parseFloat(i.element.css("top")),left:parseFloat(i.element.css("left"))};n&&n.length&&L(n[0]).css({width:e.width,height:e.height}),i._updateCache(e),i._propagate("resize",t)}})}}),L.ui.plugin.add("resizable","containment",{start:function(){var i,n,e,t,s,a,r,o=L(this).resizable("instance"),l=o.options,h=o.element,u=l.containment,d=u instanceof L?u.get(0):/parent/.test(u)?h.parent().get(0):u;d&&(o.containerElement=L(d),/document/.test(u)||u===document?(o.containerOffset={left:0,top:0},o.containerPosition={left:0,top:0},o.parentData={element:L(document),left:0,top:0,width:L(document).width(),height:L(document).height()||document.body.parentNode.scrollHeight}):(i=L(d),n=[],L(["Top","Right","Left","Bottom"]).each(function(e,t){n[e]=o._num(i.css("padding"+t))}),o.containerOffset=i.offset(),o.containerPosition=i.position(),o.containerSize={height:i.innerHeight()-n[3],width:i.innerWidth()-n[1]},e=o.containerOffset,t=o.containerSize.height,s=o.containerSize.width,a=o._hasScroll(d,"left")?d.scrollWidth:s,r=o._hasScroll(d)?d.scrollHeight:t,o.parentData={element:d,left:e.left,top:e.top,width:a,height:r}))},resize:function(e){var t,i,n,s,a=L(this).resizable("instance"),r=a.options,o=a.containerOffset,l=a.position,h=a._aspectRatio||e.shiftKey,u={top:0,left:0},d=a.containerElement,c=!0;d[0]!==document&&/static/.test(d.css("position"))&&(u=o),l.left<(a._helper?o.left:0)&&(a.size.width=a.size.width+(a._helper?a.position.left-o.left:a.position.left-u.left),h&&(a.size.height=a.size.width/a.aspectRatio,c=!1),a.position.left=r.helper?o.left:0),l.top<(a._helper?o.top:0)&&(a.size.height=a.size.height+(a._helper?a.position.top-o.top:a.position.top),h&&(a.size.width=a.size.height*a.aspectRatio,c=!1),a.position.top=a._helper?o.top:0),n=a.containerElement.get(0)===a.element.parent().get(0),s=/relative|absolute/.test(a.containerElement.css("position")),n&&s?(a.offset.left=a.parentData.left+a.position.left,a.offset.top=a.parentData.top+a.position.top):(a.offset.left=a.element.offset().left,a.offset.top=a.element.offset().top),t=Math.abs(a.sizeDiff.width+(a._helper?a.offset.left-u.left:a.offset.left-o.left)),i=Math.abs(a.sizeDiff.height+(a._helper?a.offset.top-u.top:a.offset.top-o.top)),t+a.size.width>=a.parentData.width&&(a.size.width=a.parentData.width-t,h&&(a.size.height=a.size.width/a.aspectRatio,c=!1)),i+a.size.height>=a.parentData.height&&(a.size.height=a.parentData.height-i,h&&(a.size.width=a.size.height*a.aspectRatio,c=!1)),c||(a.position.left=a.prevPosition.left,a.position.top=a.prevPosition.top,a.size.width=a.prevSize.width,a.size.height=a.prevSize.height)},stop:function(){var e=L(this).resizable("instance"),t=e.options,i=e.containerOffset,n=e.containerPosition,s=e.containerElement,a=L(e.helper),r=a.offset(),o=a.outerWidth()-e.sizeDiff.width,l=a.outerHeight()-e.sizeDiff.height;e._helper&&!t.animate&&/relative/.test(s.css("position"))&&L(this).css({left:r.left-n.left-i.left,width:o,height:l}),e._helper&&!t.animate&&/static/.test(s.css("position"))&&L(this).css({left:r.left-n.left-i.left,width:o,height:l})}}),L.ui.plugin.add("resizable","alsoResize",{start:function(){var e=L(this).resizable("instance").options;L(e.alsoResize).each(function(){var e=L(this);e.data("ui-resizable-alsoresize",{width:parseFloat(e.width()),height:parseFloat(e.height()),left:parseFloat(e.css("left")),top:parseFloat(e.css("top"))})})},resize:function(e,i){var t=L(this).resizable("instance"),n=t.options,s=t.originalSize,a=t.originalPosition,r={height:t.size.height-s.height||0,width:t.size.width-s.width||0,top:t.position.top-a.top||0,left:t.position.left-a.left||0};L(n.alsoResize).each(function(){var e=L(this),n=L(this).data("ui-resizable-alsoresize"),s={},t=e.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];L.each(t,function(e,t){var i=(n[t]||0)+(r[t]||0);i&&0<=i&&(s[t]=i||null)}),e.css(s)})},stop:function(){L(this).removeData("ui-resizable-alsoresize")}}),L.ui.plugin.add("resizable","ghost",{start:function(){var e=L(this).resizable("instance"),t=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:t.height,width:t.width,margin:0,left:0,top:0}),e._addClass(e.ghost,"ui-resizable-ghost"),!1!==L.uiBackCompat&&"string"==typeof e.options.ghost&&e.ghost.addClass(this.options.ghost),e.ghost.appendTo(e.helper)},resize:function(){var e=L(this).resizable("instance");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=L(this).resizable("instance");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}}),L.ui.plugin.add("resizable","grid",{resize:function(){var e,t=L(this).resizable("instance"),i=t.options,n=t.size,s=t.originalSize,a=t.originalPosition,r=t.axis,o="number"==typeof i.grid?[i.grid,i.grid]:i.grid,l=o[0]||1,h=o[1]||1,u=Math.round((n.width-s.width)/l)*l,d=Math.round((n.height-s.height)/h)*h,c=s.width+u,p=s.height+d,f=i.maxWidth&&c>i.maxWidth,m=i.maxHeight&&p>i.maxHeight,g=i.minWidth&&i.minWidth>c,v=i.minHeight&&i.minHeight>p;i.grid=o,g&&(c+=l),v&&(p+=h),f&&(c-=l),m&&(p-=h),/^(se|s|e)$/.test(r)?(t.size.width=c,t.size.height=p):/^(ne)$/.test(r)?(t.size.width=c,t.size.height=p,t.position.top=a.top-d):/^(sw)$/.test(r)?(t.size.width=c,t.size.height=p,t.position.left=a.left-u):((p-h<=0||c-l<=0)&&(e=t._getPaddingPlusBorderDimensions(this)),0<p-h?(t.size.height=p,t.position.top=a.top-d):(p=h-e.height,t.size.height=p,t.position.top=a.top+s.height-p),0<c-l?(t.size.width=c,t.position.left=a.left-u):(c=l-e.width,t.size.width=c,t.position.left=a.left+s.width-c))}}),L.ui.resizable,L.widget("ui.dialog",{version:"1.12.1",options:{appendTo:"body",autoOpen:!0,buttons:[],classes:{"ui-dialog":"ui-corner-all","ui-dialog-titlebar":"ui-corner-all"},closeOnEscape:!0,closeText:"Close",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(e){var t=L(this).css(e).offset().top;t<0&&L(this).css("top",e.top-t)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),null==this.options.title&&null!=this.originalTitle&&(this.options.title=this.originalTitle),this.options.disabled&&(this.options.disabled=!1),this._createWrapper(),this.element.show().removeAttr("title").appendTo(this.uiDialog),this._addClass("ui-dialog-content","ui-widget-content"),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&L.fn.draggable&&this._makeDraggable(),this.options.resizable&&L.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var e=this.options.appendTo;return e&&(e.jquery||e.nodeType)?L(e):this.document.find(e||"body").eq(0)},_destroy:function(){var e,t=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().css(this.originalCss).detach(),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),(e=t.parent.children().eq(t.index)).length&&e[0]!==this.element[0]?e.before(this.element):t.parent.append(this.element)},widget:function(){return this.uiDialog},disable:L.noop,enable:L.noop,close:function(e){var t=this;this._isOpen&&!1!==this._trigger("beforeClose",e)&&(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||L.ui.safeBlur(L.ui.safeActiveElement(this.document[0])),this._hide(this.uiDialog,this.options.hide,function(){t._trigger("close",e)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(e,t){var i=!1,n=this.uiDialog.siblings(".ui-front:visible").map(function(){return+L(this).css("z-index")}).get(),s=Math.max.apply(null,n);return s>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",s+1),i=!0),i&&!t&&this._trigger("focus",e),i},open:function(){var e=this;return this._isOpen?void(this._moveToTop()&&this._focusTabbable()):(this._isOpen=!0,this.opener=L(L.ui.safeActiveElement(this.document[0])),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,function(){e._focusTabbable(),e._trigger("focus")}),this._makeFocusTarget(),void this._trigger("open"))},_focusTabbable:function(){var e=this._focusedElement;e||(e=this.element.find("[autofocus]")),e.length||(e=this.element.find(":tabbable")),e.length||(e=this.uiDialogButtonPane.find(":tabbable")),e.length||(e=this.uiDialogTitlebarClose.filter(":tabbable")),e.length||(e=this.uiDialog),e.eq(0).trigger("focus")},_keepFocus:function(e){function t(){var e=L.ui.safeActiveElement(this.document[0]);this.uiDialog[0]===e||L.contains(this.uiDialog[0],e)||this._focusTabbable()}e.preventDefault(),t.call(this),this._delay(t)},_createWrapper:function(){this.uiDialog=L("<div>").hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-content ui-front"),this._on(this.uiDialog,{keydown:function(e){if(this.options.closeOnEscape&&!e.isDefaultPrevented()&&e.keyCode&&e.keyCode===L.ui.keyCode.ESCAPE)return e.preventDefault(),void this.close(e);if(e.keyCode===L.ui.keyCode.TAB&&!e.isDefaultPrevented()){var t=this.uiDialog.find(":tabbable"),i=t.filter(":first"),n=t.filter(":last");e.target!==n[0]&&e.target!==this.uiDialog[0]||e.shiftKey?e.target!==i[0]&&e.target!==this.uiDialog[0]||!e.shiftKey||(this._delay(function(){n.trigger("focus")}),e.preventDefault()):(this._delay(function(){i.trigger("focus")}),e.preventDefault())}},mousedown:function(e){this._moveToTop(e)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var e;this.uiDialogTitlebar=L("<div>"),this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix"),this._on(this.uiDialogTitlebar,{mousedown:function(e){L(e.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}}),this.uiDialogTitlebarClose=L("<button type='button'></button>").button({label:L("<a>").text(this.options.closeText).html(),icon:"ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar),this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close"),this._on(this.uiDialogTitlebarClose,{click:function(e){e.preventDefault(),this.close(e)}}),e=L("<span>").uniqueId().prependTo(this.uiDialogTitlebar),this._addClass(e,"ui-dialog-title"),this._title(e),this.uiDialogTitlebar.prependTo(this.uiDialog),this.uiDialog.attr({"aria-labelledby":e.attr("id")})},_title:function(e){this.options.title?e.text(this.options.title):e.html("&#160;")},_createButtonPane:function(){this.uiDialogButtonPane=L("<div>"),this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix"),this.uiButtonSet=L("<div>").appendTo(this.uiDialogButtonPane),this._addClass(this.uiButtonSet,"ui-dialog-buttonset"),this._createButtons()},_createButtons:function(){var s=this,e=this.options.buttons;return this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),L.isEmptyObject(e)||L.isArray(e)&&!e.length?void this._removeClass(this.uiDialog,"ui-dialog-buttons"):(L.each(e,function(e,t){var i,n;t=L.isFunction(t)?{click:t,text:e}:t,t=L.extend({type:"button"},t),i=t.click,n={icon:t.icon,iconPosition:t.iconPosition,showLabel:t.showLabel,icons:t.icons,text:t.text},delete t.click,delete t.icon,delete t.iconPosition,delete t.showLabel,delete t.icons,"boolean"==typeof t.text&&delete t.text,L("<button></button>",t).button(n).appendTo(s.uiButtonSet).on("click",function(){i.apply(s.element[0],arguments)})}),this._addClass(this.uiDialog,"ui-dialog-buttons"),void this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){function s(e){return{position:e.position,offset:e.offset}}var a=this,r=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(e,t){a._addClass(L(this),"ui-dialog-dragging"),a._blockFrames(),a._trigger("dragStart",e,s(t))},drag:function(e,t){a._trigger("drag",e,s(t))},stop:function(e,t){var i=t.offset.left-a.document.scrollLeft(),n=t.offset.top-a.document.scrollTop();r.position={my:"left top",at:"left"+(0<=i?"+":"")+i+" top"+(0<=n?"+":"")+n,of:a.window},a._removeClass(L(this),"ui-dialog-dragging"),a._unblockFrames(),a._trigger("dragStop",e,s(t))}})},_makeResizable:function(){function a(e){return{originalPosition:e.originalPosition,originalSize:e.originalSize,position:e.position,size:e.size}}var r=this,o=this.options,e=o.resizable,t=this.uiDialog.css("position"),i="string"==typeof e?e:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:o.maxWidth,maxHeight:o.maxHeight,minWidth:o.minWidth,minHeight:this._minHeight(),handles:i,start:function(e,t){r._addClass(L(this),"ui-dialog-resizing"),r._blockFrames(),r._trigger("resizeStart",e,a(t))},resize:function(e,t){r._trigger("resize",e,a(t))},stop:function(e,t){var i=r.uiDialog.offset(),n=i.left-r.document.scrollLeft(),s=i.top-r.document.scrollTop();o.height=r.uiDialog.height(),o.width=r.uiDialog.width(),o.position={my:"left top",at:"left"+(0<=n?"+":"")+n+" top"+(0<=s?"+":"")+s,of:r.window},r._removeClass(L(this),"ui-dialog-resizing"),r._unblockFrames(),r._trigger("resizeStop",e,a(t))}}).css("position",t)},_trackFocus:function(){this._on(this.widget(),{focusin:function(e){this._makeFocusTarget(),this._focusedElement=L(e.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var e=this._trackingInstances(),t=L.inArray(this,e);-1!==t&&e.splice(t,1)},_trackingInstances:function(){var e=this.document.data("ui-dialog-instances");return e||(e=[],this.document.data("ui-dialog-instances",e)),e},_minHeight:function(){var e=this.options;return"auto"===e.height?e.minHeight:Math.min(e.minHeight,e.height)},_position:function(){var e=this.uiDialog.is(":visible");e||this.uiDialog.show(),this.uiDialog.position(this.options.position),e||this.uiDialog.hide()},_setOptions:function(e){var i=this,n=!1,s={};L.each(e,function(e,t){i._setOption(e,t),e in i.sizeRelatedOptions&&(n=!0),e in i.resizableRelatedOptions&&(s[e]=t)}),n&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",s)},_setOption:function(e,t){var i,n,s=this.uiDialog;"disabled"!==e&&(this._super(e,t),"appendTo"===e&&this.uiDialog.appendTo(this._appendTo()),"buttons"===e&&this._createButtons(),"closeText"===e&&this.uiDialogTitlebarClose.button({label:L("<a>").text(""+this.options.closeText).html()}),"draggable"===e&&((i=s.is(":data(ui-draggable)"))&&!t&&s.draggable("destroy"),!i&&t&&this._makeDraggable()),"position"===e&&this._position(),"resizable"===e&&((n=s.is(":data(ui-resizable)"))&&!t&&s.resizable("destroy"),n&&"string"==typeof t&&s.resizable("option","handles",t),n||!1===t||this._makeResizable()),"title"===e&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var e,t,i,n=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),n.minWidth>n.width&&(n.width=n.minWidth),e=this.uiDialog.css({height:"auto",width:n.width}).outerHeight(),t=Math.max(0,n.minHeight-e),i="number"==typeof n.maxHeight?Math.max(0,n.maxHeight-e):"none","auto"===n.height?this.element.css({minHeight:t,maxHeight:i,height:"auto"}):this.element.height(Math.max(0,n.height-e)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var e=L(this);return L("<div>").css({position:"absolute",width:e.outerWidth(),height:e.outerHeight()}).appendTo(e.parent()).offset(e.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(e){return!!L(e.target).closest(".ui-dialog").length||!!L(e.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var t=!0;this._delay(function(){t=!1}),this.document.data("ui-dialog-overlays")||this._on(this.document,{focusin:function(e){t||this._allowInteraction(e)||(e.preventDefault(),this._trackingInstances()[0]._focusTabbable())}}),this.overlay=L("<div>").appendTo(this._appendTo()),this._addClass(this.overlay,null,"ui-widget-overlay ui-front"),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1)}},_destroyOverlay:function(){if(this.options.modal&&this.overlay){var e=this.document.data("ui-dialog-overlays")-1;e?this.document.data("ui-dialog-overlays",e):(this._off(this.document,"focusin"),this.document.removeData("ui-dialog-overlays")),this.overlay.remove(),this.overlay=null}}}),!1!==L.uiBackCompat&&L.widget("ui.dialog",L.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super(),this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(e,t){"dialogClass"===e&&this.uiDialog.removeClass(this.options.dialogClass).addClass(t),this._superApply(arguments)}}),L.ui.dialog,L.widget("ui.droppable",{version:"1.12.1",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var e,t=this.options,i=t.accept;this.isover=!1,this.isout=!0,this.accept=L.isFunction(i)?i:function(e){return e.is(i)},this.proportions=function(){return arguments.length?void(e=arguments[0]):e||(e={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight})},this._addToManager(t.scope),t.addClasses&&this._addClass("ui-droppable")},_addToManager:function(e){L.ui.ddmanager.droppables[e]=L.ui.ddmanager.droppables[e]||[],L.ui.ddmanager.droppables[e].push(this)},_splice:function(e){for(var t=0;e.length>t;t++)e[t]===this&&e.splice(t,1)},_destroy:function(){var e=L.ui.ddmanager.droppables[this.options.scope];this._splice(e)},_setOption:function(e,t){if("accept"===e)this.accept=L.isFunction(t)?t:function(e){return e.is(t)};else if("scope"===e){var i=L.ui.ddmanager.droppables[this.options.scope];this._splice(i),this._addToManager(t)}this._super(e,t)},_activate:function(e){var t=L.ui.ddmanager.current;this._addActiveClass(),t&&this._trigger("activate",e,this.ui(t))},_deactivate:function(e){var t=L.ui.ddmanager.current;this._removeActiveClass(),t&&this._trigger("deactivate",e,this.ui(t))},_over:function(e){var t=L.ui.ddmanager.current;t&&(t.currentItem||t.element)[0]!==this.element[0]&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this._addHoverClass(),this._trigger("over",e,this.ui(t)))},_out:function(e){var t=L.ui.ddmanager.current;t&&(t.currentItem||t.element)[0]!==this.element[0]&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this._removeHoverClass(),this._trigger("out",e,this.ui(t)))},_drop:function(t,e){var i=e||L.ui.ddmanager.current,n=!1;return!(!i||(i.currentItem||i.element)[0]===this.element[0])&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var e=L(this).droppable("instance");return e.options.greedy&&!e.options.disabled&&e.options.scope===i.options.scope&&e.accept.call(e.element[0],i.currentItem||i.element)&&x(i,L.extend(e,{offset:e.element.offset()}),e.options.tolerance,t)?!(n=!0):void 0}),!n&&(!!this.accept.call(this.element[0],i.currentItem||i.element)&&(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",t,this.ui(i)),this.element)))},ui:function(e){return{draggable:e.currentItem||e.element,helper:e.helper,position:e.position,offset:e.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}});var b,x=L.ui.intersect=function(){function c(e,t,i){return t<=e&&e<t+i}return function(e,t,i,n){if(!t.offset)return!1;var s=(e.positionAbs||e.position.absolute).left+e.margins.left,a=(e.positionAbs||e.position.absolute).top+e.margins.top,r=s+e.helperProportions.width,o=a+e.helperProportions.height,l=t.offset.left,h=t.offset.top,u=l+t.proportions().width,d=h+t.proportions().height;switch(i){case"fit":return l<=s&&r<=u&&h<=a&&o<=d;case"intersect":return s+e.helperProportions.width/2>l&&u>r-e.helperProportions.width/2&&a+e.helperProportions.height/2>h&&d>o-e.helperProportions.height/2;case"pointer":return c(n.pageY,h,t.proportions().height)&&c(n.pageX,l,t.proportions().width);case"touch":return(h<=a&&a<=d||h<=o&&o<=d||a<h&&d<o)&&(l<=s&&s<=u||l<=r&&r<=u||s<l&&u<r);default:return!1}}}();!(L.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(e,t){var i,n,s=L.ui.ddmanager.droppables[e.options.scope]||[],a=t?t.type:null,r=(e.currentItem||e.element).find(":data(ui-droppable)").addBack();e:for(i=0;s.length>i;i++)if(!(s[i].options.disabled||e&&!s[i].accept.call(s[i].element[0],e.currentItem||e.element))){for(n=0;r.length>n;n++)if(r[n]===s[i].element[0]){s[i].proportions().height=0;continue e}s[i].visible="none"!==s[i].element.css("display"),s[i].visible&&("mousedown"===a&&s[i]._activate.call(s[i],t),s[i].offset=s[i].element.offset(),s[i].proportions({width:s[i].element[0].offsetWidth,height:s[i].element[0].offsetHeight}))}},drop:function(e,t){var i=!1;return L.each((L.ui.ddmanager.droppables[e.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&x(e,this,this.options.tolerance,t)&&(i=this._drop.call(this,t)||i),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,t)))}),i},dragStart:function(e,t){e.element.parentsUntil("body").on("scroll.droppable",function(){e.options.refreshPositions||L.ui.ddmanager.prepareOffsets(e,t)})},drag:function(a,r){a.options.refreshPositions&&L.ui.ddmanager.prepareOffsets(a,r),L.each(L.ui.ddmanager.droppables[a.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var e,t,i,n=x(a,this,this.options.tolerance,r),s=!n&&this.isover?"isout":n&&!this.isover?"isover":null;s&&(this.options.greedy&&(t=this.options.scope,(i=this.element.parents(":data(ui-droppable)").filter(function(){return L(this).droppable("instance").options.scope===t})).length&&((e=L(i[0]).droppable("instance")).greedyChild="isover"===s)),e&&"isover"===s&&(e.isover=!1,e.isout=!0,e._out.call(e,r)),this[s]=!0,this["isout"===s?"isover":"isout"]=!1,this["isover"===s?"_over":"_out"].call(this,r),e&&"isout"===s&&(e.isout=!1,e.isover=!0,e._over.call(e,r)))}})},dragStop:function(e,t){e.element.parentsUntil("body").off("scroll.droppable"),e.options.refreshPositions||L.ui.ddmanager.prepareOffsets(e,t)}})!==L.uiBackCompat&&L.widget("ui.droppable",L.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:function(){this._super(),this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super(),this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super(),this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super(),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}}),L.ui.droppable,L.widget("ui.progressbar",{version:"1.12.1",options:{classes:{"ui-progressbar":"ui-corner-all","ui-progressbar-value":"ui-corner-left","ui-progressbar-complete":"ui-corner-right"},max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.attr({role:"progressbar","aria-valuemin":this.min}),this._addClass("ui-progressbar","ui-widget ui-widget-content"),this.valueDiv=L("<div>").appendTo(this.element),this._addClass(this.valueDiv,"ui-progressbar-value","ui-widget-header"),this._refreshValue()},_destroy:function(){this.element.removeAttr("role aria-valuemin aria-valuemax aria-valuenow"),this.valueDiv.remove()},value:function(e){return void 0===e?this.options.value:(this.options.value=this._constrainedValue(e),void this._refreshValue())},_constrainedValue:function(e){return void 0===e&&(e=this.options.value),this.indeterminate=!1===e,"number"!=typeof e&&(e=0),!this.indeterminate&&Math.min(this.options.max,Math.max(this.min,e))},_setOptions:function(e){var t=e.value;delete e.value,this._super(e),this.options.value=this._constrainedValue(t),this._refreshValue()},_setOption:function(e,t){"max"===e&&(t=Math.max(this.min,t)),this._super(e,t)},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",e),this._toggleClass(null,"ui-state-disabled",!!e)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var e=this.options.value,t=this._percentage();this.valueDiv.toggle(this.indeterminate||e>this.min).width(t.toFixed(0)+"%"),this._toggleClass(this.valueDiv,"ui-progressbar-complete",null,e===this.options.max)._toggleClass("ui-progressbar-indeterminate",null,this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=L("<div>").appendTo(this.valueDiv),this._addClass(this.overlayDiv,"ui-progressbar-overlay"))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":e}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==e&&(this.oldValue=e,this._trigger("change")),e===this.options.max&&this._trigger("complete")}}),L.widget("ui.selectable",L.ui.mouse,{version:"1.12.1",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var n=this;this._addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){n.elementPos=L(n.element[0]).offset(),n.selectees=L(n.options.filter,n.element[0]),n._addClass(n.selectees,"ui-selectee"),n.selectees.each(function(){var e=L(this),t=e.offset(),i={left:t.left-n.elementPos.left,top:t.top-n.elementPos.top};L.data(this,"selectable-item",{element:this,$element:e,left:i.left,top:i.top,right:i.left+e.outerWidth(),bottom:i.top+e.outerHeight(),startselected:!1,selected:e.hasClass("ui-selected"),selecting:e.hasClass("ui-selecting"),unselecting:e.hasClass("ui-unselecting")})})},this.refresh(),this._mouseInit(),this.helper=L("<div>"),this._addClass(this.helper,"ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item"),this._mouseDestroy()},_mouseStart:function(i){var n=this,e=this.options;this.opos=[i.pageX,i.pageY],this.elementPos=L(this.element[0]).offset(),this.options.disabled||(this.selectees=L(e.filter,this.element[0]),this._trigger("start",i),L(e.appendTo).append(this.helper),this.helper.css({left:i.pageX,top:i.pageY,width:0,height:0}),e.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var e=L.data(this,"selectable-item");e.startselected=!0,i.metaKey||i.ctrlKey||(n._removeClass(e.$element,"ui-selected"),e.selected=!1,n._addClass(e.$element,"ui-unselecting"),e.unselecting=!0,n._trigger("unselecting",i,{unselecting:e.element}))}),L(i.target).parents().addBack().each(function(){var e,t=L.data(this,"selectable-item");return t?(e=!i.metaKey&&!i.ctrlKey||!t.$element.hasClass("ui-selected"),n._removeClass(t.$element,e?"ui-unselecting":"ui-selected")._addClass(t.$element,e?"ui-selecting":"ui-unselecting"),t.unselecting=!e,t.selecting=e,(t.selected=e)?n._trigger("selecting",i,{selecting:t.element}):n._trigger("unselecting",i,{unselecting:t.element}),!1):void 0}))},_mouseDrag:function(n){if(this.dragged=!0,!this.options.disabled){var e,s=this,a=this.options,r=this.opos[0],o=this.opos[1],l=n.pageX,h=n.pageY;return l<r&&(e=l,l=r,r=e),h<o&&(e=h,h=o,o=e),this.helper.css({left:r,top:o,width:l-r,height:h-o}),this.selectees.each(function(){var e=L.data(this,"selectable-item"),t=!1,i={};e&&e.element!==s.element[0]&&(i.left=e.left+s.elementPos.left,i.right=e.right+s.elementPos.left,i.top=e.top+s.elementPos.top,i.bottom=e.bottom+s.elementPos.top,"touch"===a.tolerance?t=!(i.left>l||r>i.right||i.top>h||o>i.bottom):"fit"===a.tolerance&&(t=i.left>r&&l>i.right&&i.top>o&&h>i.bottom),t?(e.selected&&(s._removeClass(e.$element,"ui-selected"),e.selected=!1),e.unselecting&&(s._removeClass(e.$element,"ui-unselecting"),e.unselecting=!1),e.selecting||(s._addClass(e.$element,"ui-selecting"),e.selecting=!0,s._trigger("selecting",n,{selecting:e.element}))):(e.selecting&&((n.metaKey||n.ctrlKey)&&e.startselected?(s._removeClass(e.$element,"ui-selecting"),e.selecting=!1,s._addClass(e.$element,"ui-selected"),e.selected=!0):(s._removeClass(e.$element,"ui-selecting"),e.selecting=!1,e.startselected&&(s._addClass(e.$element,"ui-unselecting"),e.unselecting=!0),s._trigger("unselecting",n,{unselecting:e.element}))),e.selected&&(n.metaKey||n.ctrlKey||e.startselected||(s._removeClass(e.$element,"ui-selected"),e.selected=!1,s._addClass(e.$element,"ui-unselecting"),e.unselecting=!0,s._trigger("unselecting",n,{unselecting:e.element})))))}),!1}},_mouseStop:function(t){var i=this;return this.dragged=!1,L(".ui-unselecting",this.element[0]).each(function(){var e=L.data(this,"selectable-item");i._removeClass(e.$element,"ui-unselecting"),e.unselecting=!1,e.startselected=!1,i._trigger("unselected",t,{unselected:e.element})}),L(".ui-selecting",this.element[0]).each(function(){var e=L.data(this,"selectable-item");i._removeClass(e.$element,"ui-selecting")._addClass(e.$element,"ui-selected"),e.selecting=!1,e.selected=!0,e.startselected=!0,i._trigger("selected",t,{selected:e.element})}),this._trigger("stop",t),this.helper.remove(),!1}}),L.widget("ui.selectmenu",[L.ui.formResetMixin,{version:"1.12.1",defaultElement:"<select>",options:{appendTo:null,classes:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"},disabled:null,icons:{button:"ui-icon-triangle-1-s"},position:{my:"left top",at:"left bottom",collision:"none"},width:!1,change:null,close:null,focus:null,open:null,select:null},_create:function(){var e=this.element.uniqueId().attr("id");this.ids={element:e,button:e+"-button",menu:e+"-menu"},this._drawButton(),this._drawMenu(),this._bindFormResetHandler(),this._rendered=!1,this.menuItems=L()},_drawButton:function(){var e,t=this,i=this._parseOption(this.element.find("option:selected"),this.element[0].selectedIndex);this.labels=this.element.labels().attr("for",this.ids.button),this._on(this.labels,{click:function(e){this.button.focus(),e.preventDefault()}}),this.element.hide(),this.button=L("<span>",{tabindex:this.options.disabled?-1:0,id:this.ids.button,role:"combobox","aria-expanded":"false","aria-autocomplete":"list","aria-owns":this.ids.menu,"aria-haspopup":"true",title:this.element.attr("title")}).insertAfter(this.element),this._addClass(this.button,"ui-selectmenu-button ui-selectmenu-button-closed","ui-button ui-widget"),e=L("<span>").appendTo(this.button),this._addClass(e,"ui-selectmenu-icon","ui-icon "+this.options.icons.button),this.buttonItem=this._renderButtonItem(i).appendTo(this.button),!1!==this.options.width&&this._resizeButton(),this._on(this.button,this._buttonEvents),this.button.one("focusin",function(){t._rendered||t._refreshMenu()})},_drawMenu:function(){var n=this;this.menu=L("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu}),this.menuWrap=L("<div>").append(this.menu),this._addClass(this.menuWrap,"ui-selectmenu-menu","ui-front"),this.menuWrap.appendTo(this._appendTo()),this.menuInstance=this.menu.menu({classes:{"ui-menu":"ui-corner-bottom"},role:"listbox",select:function(e,t){e.preventDefault(),n._setSelection(),n._select(t.item.data("ui-selectmenu-item"),e)},focus:function(e,t){var i=t.item.data("ui-selectmenu-item");null!=n.focusIndex&&i.index!==n.focusIndex&&(n._trigger("focus",e,{item:i}),n.isOpen||n._select(i,e)),n.focusIndex=i.index,n.button.attr("aria-activedescendant",n.menuItems.eq(i.index).attr("id"))}}).menu("instance"),this.menuInstance._off(this.menu,"mouseleave"),this.menuInstance._closeOnDocumentClick=function(){return!1},this.menuInstance._isDivider=function(){return!1}},refresh:function(){this._refreshMenu(),this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(this._getSelectedItem().data("ui-selectmenu-item")||{})),null===this.options.width&&this._resizeButton()},_refreshMenu:function(){var e,t=this.element.find("option");this.menu.empty(),this._parseOptions(t),this._renderMenu(this.menu,this.items),this.menuInstance.refresh(),this.menuItems=this.menu.find("li").not(".ui-selectmenu-optgroup").find(".ui-menu-item-wrapper"),this._rendered=!0,t.length&&(e=this._getSelectedItem(),this.menuInstance.focus(null,e),this._setAria(e.data("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(e){this.options.disabled||(this._rendered?(this._removeClass(this.menu.find(".ui-state-active"),null,"ui-state-active"),this.menuInstance.focus(null,this._getSelectedItem())):this._refreshMenu(),this.menuItems.length&&(this.isOpen=!0,this._toggleAttr(),this._resizeMenu(),this._position(),this._on(this.document,this._documentClick),this._trigger("open",e)))},_position:function(){this.menuWrap.position(L.extend({of:this.button},this.options.position))},close:function(e){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this.range=null,this._off(this.document),this._trigger("close",e))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderButtonItem:function(e){var t=L("<span>");return this._setText(t,e.label),this._addClass(t,"ui-selectmenu-text"),t},_renderMenu:function(n,e){var s=this,a="";L.each(e,function(e,t){var i;t.optgroup!==a&&(i=L("<li>",{text:t.optgroup}),s._addClass(i,"ui-selectmenu-optgroup","ui-menu-divider"+(t.element.parent("optgroup").prop("disabled")?" ui-state-disabled":"")),i.appendTo(n),a=t.optgroup),s._renderItemData(n,t)})},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-selectmenu-item",t)},_renderItem:function(e,t){var i=L("<li>"),n=L("<div>",{title:t.element.attr("title")});return t.disabled&&this._addClass(i,null,"ui-state-disabled"),this._setText(n,t.label),i.append(n).appendTo(e)},_setText:function(e,t){t?e.text(t):e.html("&#160;")},_move:function(e,t){var i,n,s=".ui-menu-item";this.isOpen?i=this.menuItems.eq(this.focusIndex).parent("li"):(i=this.menuItems.eq(this.element[0].selectedIndex).parent("li"),s+=":not(.ui-state-disabled)"),(n="first"===e||"last"===e?i["first"===e?"prevAll":"nextAll"](s).eq(-1):i[e+"All"](s).eq(0)).length&&this.menuInstance.focus(t,n)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex).parent("li")},_toggle:function(e){this[this.isOpen?"close":"open"](e)},_setSelection:function(){var e;this.range&&(window.getSelection?((e=window.getSelection()).removeAllRanges(),e.addRange(this.range)):this.range.select(),this.button.focus())},_documentClick:{mousedown:function(e){this.isOpen&&(L(e.target).closest(".ui-selectmenu-menu, #"+L.ui.escapeSelector(this.ids.button)).length||this.close(e))}},_buttonEvents:{mousedown:function(){var e;window.getSelection?(e=window.getSelection()).rangeCount&&(this.range=e.getRangeAt(0)):this.range=document.selection.createRange()},click:function(e){this._setSelection(),this._toggle(e)},keydown:function(e){var t=!0;switch(e.keyCode){case L.ui.keyCode.TAB:case L.ui.keyCode.ESCAPE:this.close(e),t=!1;break;case L.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(e);break;case L.ui.keyCode.UP:e.altKey?this._toggle(e):this._move("prev",e);break;case L.ui.keyCode.DOWN:e.altKey?this._toggle(e):this._move("next",e);break;case L.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(e):this._toggle(e);break;case L.ui.keyCode.LEFT:this._move("prev",e);break;case L.ui.keyCode.RIGHT:this._move("next",e);break;case L.ui.keyCode.HOME:case L.ui.keyCode.PAGE_UP:this._move("first",e);break;case L.ui.keyCode.END:case L.ui.keyCode.PAGE_DOWN:this._move("last",e);break;default:this.menu.trigger(e),t=!1}t&&e.preventDefault()}},_selectFocusedItem:function(e){var t=this.menuItems.eq(this.focusIndex).parent("li");t.hasClass("ui-state-disabled")||this._select(t.data("ui-selectmenu-item"),e)},_select:function(e,t){var i=this.element[0].selectedIndex;this.element[0].selectedIndex=e.index,this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(e)),this._setAria(e),this._trigger("select",t,{item:e}),e.index!==i&&this._trigger("change",t,{item:e}),this.close(t)},_setAria:function(e){var t=this.menuItems.eq(e.index).attr("id");this.button.attr({"aria-labelledby":t,"aria-activedescendant":t}),this.menu.attr("aria-activedescendant",t)},_setOption:function(e,t){if("icons"===e){var i=this.button.find("span.ui-icon");this._removeClass(i,null,this.options.icons.button)._addClass(i,null,t.button)}this._super(e,t),"appendTo"===e&&this.menuWrap.appendTo(this._appendTo()),"width"===e&&this._resizeButton()},_setOptionDisabled:function(e){this._super(e),this.menuInstance.option("disabled",e),this.button.attr("aria-disabled",e),this._toggleClass(this.button,null,"ui-state-disabled",e),this.element.prop("disabled",e),e?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0)},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?L(e):this.document.find(e).eq(0)),e&&e[0]||(e=this.element.closest(".ui-front, dialog")),e.length||(e=this.document[0].body),e},_toggleAttr:function(){this.button.attr("aria-expanded",this.isOpen),this._removeClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"closed":"open"))._addClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"open":"closed"))._toggleClass(this.menuWrap,"ui-selectmenu-open",null,this.isOpen),this.menu.attr("aria-hidden",!this.isOpen)},_resizeButton:function(){var e=this.options.width;return!1===e?void this.button.css("width",""):(null===e&&(e=this.element.show().outerWidth(),this.element.hide()),void this.button.outerWidth(e))},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){var e=this._super();return e.disabled=this.element.prop("disabled"),e},_parseOptions:function(e){var i=this,n=[];e.each(function(e,t){n.push(i._parseOption(L(t),e))}),this.items=n},_parseOption:function(e,t){var i=e.parent("optgroup");return{element:e,index:t,value:e.val(),label:e.text(),optgroup:i.attr("label")||"",disabled:i.prop("disabled")||e.prop("disabled")}},_destroy:function(){this._unbindFormResetHandler(),this.menuWrap.remove(),this.button.remove(),this.element.show(),this.element.removeUniqueId(),this.labels.attr("for",this.ids.element)}}]),L.widget("ui.slider",L.ui.mouse,{version:"1.12.1",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,t,i=this.options,n=this.element.find(".ui-slider-handle"),s=[];for(t=i.values&&i.values.length||1,n.length>t&&(n.slice(t).remove(),n=n.slice(0,t)),e=n.length;e<t;e++)s.push("<span tabindex='0'></span>");this.handles=n.add(L(s.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each(function(e){L(this).data("ui-slider-handle-index",e).attr("tabIndex",0)})},_createRange:function(){var e=this.options;e.range?(!0===e.range&&(e.values?e.values.length&&2!==e.values.length?e.values=[e.values[0],e.values[0]]:L.isArray(e.values)&&(e.values=e.values.slice(0)):e.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=L("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),("min"===e.range||"max"===e.range)&&this._addClass(this.range,"ui-slider-range-"+e.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(e){var t,i,n,s,a,r,o,l=this,h=this.options;return!h.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),t={x:e.pageX,y:e.pageY},i=this._normValueFromMouse(t),n=this._valueMax()-this._valueMin()+1,this.handles.each(function(e){var t=Math.abs(i-l.values(e));(t<n||n===t&&(e===l._lastChangedValue||l.values(e)===h.min))&&(n=t,s=L(this),a=e)}),!1!==this._start(e,a)&&(this._mouseSliding=!0,this._handleIndex=a,this._addClass(s,null,"ui-state-active"),s.trigger("focus"),r=s.offset(),o=!L(e.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=o?{left:0,top:0}:{left:e.pageX-r.left-s.width()/2,top:e.pageY-r.top-s.height()/2-(parseInt(s.css("borderTopWidth"),10)||0)-(parseInt(s.css("borderBottomWidth"),10)||0)+(parseInt(s.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,a,i),this._animateOff=!0))},_mouseStart:function(){return!0},_mouseDrag:function(e){var t={x:e.pageX,y:e.pageY},i=this._normValueFromMouse(t);return this._slide(e,this._handleIndex,i),!1},_mouseStop:function(e){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(e,this._handleIndex),this._change(e,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(e){var t,i,n,s,a;return"horizontal"===this.orientation?(t=this.elementSize.width,i=e.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(t=this.elementSize.height,i=e.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),1<(n=i/t)&&(n=1),n<0&&(n=0),"vertical"===this.orientation&&(n=1-n),s=this._valueMax()-this._valueMin(),a=this._valueMin()+n*s,this._trimAlignValue(a)},_uiHash:function(e,t,i){var n={handle:this.handles[e],handleIndex:e,value:void 0!==t?t:this.value()};return this._hasMultipleValues()&&(n.value=void 0!==t?t:this.values(e),n.values=i||this.values()),n},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(e,t){return this._trigger("start",e,this._uiHash(t))},_slide:function(e,t,i){var n,s=this.value(),a=this.values();this._hasMultipleValues()&&(n=this.values(t?0:1),s=this.values(t),2===this.options.values.length&&!0===this.options.range&&(i=0===t?Math.min(n,i):Math.max(n,i)),a[t]=i),i!==s&&(!1!==this._trigger("slide",e,this._uiHash(t,i,a))&&(this._hasMultipleValues()?this.values(t,i):this.value(i)))},_stop:function(e,t){this._trigger("stop",e,this._uiHash(t))},_change:function(e,t){this._keySliding||this._mouseSliding||(this._lastChangedValue=t,this._trigger("change",e,this._uiHash(t)))},value:function(e){return arguments.length?(this.options.value=this._trimAlignValue(e),this._refreshValue(),void this._change(null,0)):this._value()},values:function(e,t){var i,n,s;if(1<arguments.length)return this.options.values[e]=this._trimAlignValue(t),this._refreshValue(),void this._change(null,e);if(!arguments.length)return this._values();if(!L.isArray(e))return this._hasMultipleValues()?this._values(e):this.value();for(i=this.options.values,n=e,s=0;i.length>s;s+=1)i[s]=this._trimAlignValue(n[s]),this._change(null,s);this._refreshValue()},_setOption:function(e,t){var i,n=0;switch("range"===e&&!0===this.options.range&&("min"===t?(this.options.value=this._values(0),this.options.values=null):"max"===t&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),L.isArray(this.options.values)&&(n=this.options.values.length),this._super(e,t),e){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(t),this.handles.css("horizontal"===t?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),i=n-1;0<=i;i--)this._change(null,i);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(e){this._super(e),this._toggleClass(null,"ui-state-disabled",!!e)},_value:function(){var e=this.options.value;return this._trimAlignValue(e)},_values:function(e){var t,i,n;if(arguments.length)return t=this.options.values[e],this._trimAlignValue(t);if(this._hasMultipleValues()){for(i=this.options.values.slice(),n=0;i.length>n;n+=1)i[n]=this._trimAlignValue(i[n]);return i}return[]},_trimAlignValue:function(e){if(this._valueMin()>=e)return this._valueMin();if(e>=this._valueMax())return this._valueMax();var t=0<this.options.step?this.options.step:1,i=(e-this._valueMin())%t,n=e-i;return 2*Math.abs(i)>=t&&(n+=0<i?t:-t),parseFloat(n.toFixed(5))},_calculateNewMax:function(){var e=this.options.max,t=this._valueMin(),i=this.options.step;(e=Math.round((e-t)/i)*i+t)>this.options.max&&(e-=i),this.max=parseFloat(e.toFixed(this._precision()))},_precision:function(){var e=this._precisionOf(this.options.step);return null!==this.options.min&&(e=Math.max(e,this._precisionOf(this.options.min))),e},_precisionOf:function(e){var t=""+e,i=t.indexOf(".");return-1===i?0:t.length-i-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(e){"vertical"===e&&this.range.css({width:"",left:""}),"horizontal"===e&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var t,i,e,n,s,a=this.options.range,r=this.options,o=this,l=!this._animateOff&&r.animate,h={};this._hasMultipleValues()?this.handles.each(function(e){i=(o.values(e)-o._valueMin())/(o._valueMax()-o._valueMin())*100,h["horizontal"===o.orientation?"left":"bottom"]=i+"%",L(this).stop(1,1)[l?"animate":"css"](h,r.animate),!0===o.options.range&&("horizontal"===o.orientation?(0===e&&o.range.stop(1,1)[l?"animate":"css"]({left:i+"%"},r.animate),1===e&&o.range[l?"animate":"css"]({width:i-t+"%"},{queue:!1,duration:r.animate})):(0===e&&o.range.stop(1,1)[l?"animate":"css"]({bottom:i+"%"},r.animate),1===e&&o.range[l?"animate":"css"]({height:i-t+"%"},{queue:!1,duration:r.animate}))),t=i}):(e=this.value(),n=this._valueMin(),s=this._valueMax(),i=s!==n?(e-n)/(s-n)*100:0,h["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[l?"animate":"css"](h,r.animate),"min"===a&&"horizontal"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({width:i+"%"},r.animate),"max"===a&&"horizontal"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({width:100-i+"%"},r.animate),"min"===a&&"vertical"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({height:i+"%"},r.animate),"max"===a&&"vertical"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({height:100-i+"%"},r.animate))},_handleEvents:{keydown:function(e){var t,i,n,s=L(e.target).data("ui-slider-handle-index");switch(e.keyCode){case L.ui.keyCode.HOME:case L.ui.keyCode.END:case L.ui.keyCode.PAGE_UP:case L.ui.keyCode.PAGE_DOWN:case L.ui.keyCode.UP:case L.ui.keyCode.RIGHT:case L.ui.keyCode.DOWN:case L.ui.keyCode.LEFT:if(e.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(L(e.target),null,"ui-state-active"),!1===this._start(e,s)))return}switch(n=this.options.step,t=i=this._hasMultipleValues()?this.values(s):this.value(),e.keyCode){case L.ui.keyCode.HOME:i=this._valueMin();break;case L.ui.keyCode.END:i=this._valueMax();break;case L.ui.keyCode.PAGE_UP:i=this._trimAlignValue(t+(this._valueMax()-this._valueMin())/this.numPages);break;case L.ui.keyCode.PAGE_DOWN:i=this._trimAlignValue(t-(this._valueMax()-this._valueMin())/this.numPages);break;case L.ui.keyCode.UP:case L.ui.keyCode.RIGHT:if(t===this._valueMax())return;i=this._trimAlignValue(t+n);break;case L.ui.keyCode.DOWN:case L.ui.keyCode.LEFT:if(t===this._valueMin())return;i=this._trimAlignValue(t-n)}this._slide(e,s,i)},keyup:function(e){var t=L(e.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(e,t),this._change(e,t),this._removeClass(L(e.target),null,"ui-state-active"))}}}),L.widget("ui.sortable",L.ui.mouse,{version:"1.12.1",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(e,t,i){return t<=e&&e<t+i},_isFloating:function(e){return/left|right/.test(e.css("float"))||/inline|table-cell/.test(e.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(e,t){this._super(e,t),"handle"===e&&this._setHandleClassName()},_setHandleClassName:function(){var e=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),L.each(this.items,function(){e._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")})},_destroy:function(){this._mouseDestroy();for(var e=this.items.length-1;0<=e;e--)this.items[e].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(e,t){var i=null,n=!1,s=this;return!this.reverting&&(!this.options.disabled&&"static"!==this.options.type&&(this._refreshItems(e),L(e.target).parents().each(function(){return L.data(this,s.widgetName+"-item")===s?(i=L(this),!1):void 0}),L.data(e.target,s.widgetName+"-item")===s&&(i=L(e.target)),!!i&&(!(this.options.handle&&!t&&(L(this.options.handle,i).find("*").addBack().each(function(){this===e.target&&(n=!0)}),!n))&&(this.currentItem=i,this._removeCurrentsFromItems(),!0))))},_mouseStart:function(e,t,i){var n,s,a=this.options;if((this.currentContainer=this).refreshPositions(),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},L.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,a.cursorAt&&this._adjustOffsetFromHelper(a.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),a.containment&&this._setContainment(),a.cursor&&"auto"!==a.cursor&&(s=this.document.find("body"),this.storedCursor=s.css("cursor"),s.css("cursor",a.cursor),this.storedStylesheet=L("<style>*{ cursor: "+a.cursor+" !important; }</style>").appendTo(s)),a.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",a.opacity)),a.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",a.zIndex)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!i)for(n=this.containers.length-1;0<=n;n--)this.containers[n]._trigger("activate",e,this._uiHash(this));return L.ui.ddmanager&&(L.ui.ddmanager.current=this),L.ui.ddmanager&&!a.dropBehaviour&&L.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this._mouseDrag(e),!0},_mouseDrag:function(e){var t,i,n,s,a=this.options,r=!1;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY<a.scrollSensitivity?this.scrollParent[0].scrollTop=r=this.scrollParent[0].scrollTop+a.scrollSpeed:e.pageY-this.overflowOffset.top<a.scrollSensitivity&&(this.scrollParent[0].scrollTop=r=this.scrollParent[0].scrollTop-a.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX<a.scrollSensitivity?this.scrollParent[0].scrollLeft=r=this.scrollParent[0].scrollLeft+a.scrollSpeed:e.pageX-this.overflowOffset.left<a.scrollSensitivity&&(this.scrollParent[0].scrollLeft=r=this.scrollParent[0].scrollLeft-a.scrollSpeed)):(e.pageY-this.document.scrollTop()<a.scrollSensitivity?r=this.document.scrollTop(this.document.scrollTop()-a.scrollSpeed):this.window.height()-(e.pageY-this.document.scrollTop())<a.scrollSensitivity&&(r=this.document.scrollTop(this.document.scrollTop()+a.scrollSpeed)),e.pageX-this.document.scrollLeft()<a.scrollSensitivity?r=this.document.scrollLeft(this.document.scrollLeft()-a.scrollSpeed):this.window.width()-(e.pageX-this.document.scrollLeft())<a.scrollSensitivity&&(r=this.document.scrollLeft(this.document.scrollLeft()+a.scrollSpeed))),!1!==r&&L.ui.ddmanager&&!a.dropBehaviour&&L.ui.ddmanager.prepareOffsets(this,e)),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),t=this.items.length-1;0<=t;t--)if(n=(i=this.items[t]).item[0],(s=this._intersectsWithPointer(i))&&i.instance===this.currentContainer&&n!==this.currentItem[0]&&this.placeholder[1===s?"next":"prev"]()[0]!==n&&!L.contains(this.placeholder[0],n)&&("semi-dynamic"!==this.options.type||!L.contains(this.element[0],n))){if(this.direction=1===s?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(i))break;this._rearrange(e,i),this._trigger("change",e,this._uiHash());break}return this._contactContainers(e),L.ui.ddmanager&&L.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,t){if(e){if(L.ui.ddmanager&&!this.options.dropBehaviour&&L.ui.ddmanager.drop(this,e),this.options.revert){var i=this,n=this.placeholder.offset(),s=this.options.axis,a={};s&&"x"!==s||(a.left=n.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),s&&"y"!==s||(a.top=n.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,L(this.helper).animate(a,parseInt(this.options.revert,10)||500,function(){i._clear(e)})}else this._clear(e,t);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new L.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var e=this.containers.length-1;0<=e;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),L.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?L(this.domPosition.prev).after(this.currentItem):L(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(t){var e=this._getItemsAsjQuery(t&&t.connected),i=[];return t=t||{},L(e).each(function(){var e=(L(t.item||this).attr(t.attribute||"id")||"").match(t.expression||/(.+)[\-=_](.+)/);e&&i.push((t.key||e[1]+"[]")+"="+(t.key&&t.expression?e[1]:e[2]))}),!i.length&&t.key&&i.push(t.key+"="),i.join("&")},toArray:function(e){var t=this._getItemsAsjQuery(e&&e.connected),i=[];return e=e||{},t.each(function(){i.push(L(e.item||this).attr(e.attribute||"id")||"")}),i},_intersectsWith:function(e){var t=this.positionAbs.left,i=t+this.helperProportions.width,n=this.positionAbs.top,s=n+this.helperProportions.height,a=e.left,r=a+e.width,o=e.top,l=o+e.height,h=this.offset.click.top,u=this.offset.click.left,d="x"===this.options.axis||o<n+h&&n+h<l,c="y"===this.options.axis||a<t+u&&t+u<r,p=d&&c;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>e[this.floating?"width":"height"]?p:t+this.helperProportions.width/2>a&&r>i-this.helperProportions.width/2&&n+this.helperProportions.height/2>o&&l>s-this.helperProportions.height/2},_intersectsWithPointer:function(e){var t,i,n="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,e.top,e.height),s="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,e.left,e.width);return!!(n&&s)&&(t=this._getDragVerticalDirection(),i=this._getDragHorizontalDirection(),this.floating?"right"===i||"down"===t?2:1:t&&("down"===t?2:1))},_intersectsWithSides:function(e){var t=this._isOverAxis(this.positionAbs.top+this.offset.click.top,e.top+e.height/2,e.height),i=this._isOverAxis(this.positionAbs.left+this.offset.click.left,e.left+e.width/2,e.width),n=this._getDragVerticalDirection(),s=this._getDragHorizontalDirection();return this.floating&&s?"right"===s&&i||"left"===s&&!i:n&&("down"===n&&t||"up"===n&&!t)},_getDragVerticalDirection:function(){var e=this.positionAbs.top-this.lastPositionAbs.top;return 0!==e&&(0<e?"down":"up")},_getDragHorizontalDirection:function(){var e=this.positionAbs.left-this.lastPositionAbs.left;return 0!==e&&(0<e?"right":"left")},refresh:function(e){return this._refreshItems(e),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var e=this.options;return e.connectWith.constructor===String?[e.connectWith]:e.connectWith},_getItemsAsjQuery:function(e){function t(){r.push(this)}var i,n,s,a,r=[],o=[],l=this._connectWith();if(l&&e)for(i=l.length-1;0<=i;i--)for(n=(s=L(l[i],this.document[0])).length-1;0<=n;n--)(a=L.data(s[n],this.widgetFullName))&&a!==this&&!a.options.disabled&&o.push([L.isFunction(a.options.items)?a.options.items.call(a.element):L(a.options.items,a.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),a]);for(o.push([L.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):L(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),i=o.length-1;0<=i;i--)o[i][0].each(t);return L(r)},_removeCurrentsFromItems:function(){var i=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=L.grep(this.items,function(e){for(var t=0;i.length>t;t++)if(i[t]===e.item[0])return!1;return!0})},_refreshItems:function(e){this.items=[],this.containers=[this];var t,i,n,s,a,r,o,l,h=this.items,u=[[L.isFunction(this.options.items)?this.options.items.call(this.element[0],e,{item:this.currentItem}):L(this.options.items,this.element),this]],d=this._connectWith();if(d&&this.ready)for(t=d.length-1;0<=t;t--)for(i=(n=L(d[t],this.document[0])).length-1;0<=i;i--)(s=L.data(n[i],this.widgetFullName))&&s!==this&&!s.options.disabled&&(u.push([L.isFunction(s.options.items)?s.options.items.call(s.element[0],e,{item:this.currentItem}):L(s.options.items,s.element),s]),this.containers.push(s));for(t=u.length-1;0<=t;t--)for(a=u[t][1],i=0,l=(r=u[t][0]).length;i<l;i++)(o=L(r[i])).data(this.widgetName+"-item",a),h.push({item:o,instance:a,width:0,height:0,left:0,top:0})},refreshPositions:function(e){var t,i,n,s;for(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),t=this.items.length-1;0<=t;t--)(i=this.items[t]).instance!==this.currentContainer&&this.currentContainer&&i.item[0]!==this.currentItem[0]||(n=this.options.toleranceElement?L(this.options.toleranceElement,i.item):i.item,e||(i.width=n.outerWidth(),i.height=n.outerHeight()),s=n.offset(),i.left=s.left,i.top=s.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(t=this.containers.length-1;0<=t;t--)s=this.containers[t].element.offset(),this.containers[t].containerCache.left=s.left,this.containers[t].containerCache.top=s.top,this.containers[t].containerCache.width=this.containers[t].element.outerWidth(),this.containers[t].containerCache.height=this.containers[t].element.outerHeight();return this},_createPlaceholder:function(i){var n,s=(i=i||this).options;s.placeholder&&s.placeholder.constructor!==String||(n=s.placeholder,s.placeholder={element:function(){var e=i.currentItem[0].nodeName.toLowerCase(),t=L("<"+e+">",i.document[0]);return i._addClass(t,"ui-sortable-placeholder",n||i.currentItem[0].className)._removeClass(t,"ui-sortable-helper"),"tbody"===e?i._createTrPlaceholder(i.currentItem.find("tr").eq(0),L("<tr>",i.document[0]).appendTo(t)):"tr"===e?i._createTrPlaceholder(i.currentItem,t):"img"===e&&t.attr("src",i.currentItem.attr("src")),n||t.css("visibility","hidden"),t},update:function(e,t){(!n||s.forcePlaceholderSize)&&(t.height()||t.height(i.currentItem.innerHeight()-parseInt(i.currentItem.css("paddingTop")||0,10)-parseInt(i.currentItem.css("paddingBottom")||0,10)),t.width()||t.width(i.currentItem.innerWidth()-parseInt(i.currentItem.css("paddingLeft")||0,10)-parseInt(i.currentItem.css("paddingRight")||0,10)))}}),i.placeholder=L(s.placeholder.element.call(i.element,i.currentItem)),i.currentItem.after(i.placeholder),s.placeholder.update(i,i.placeholder)},_createTrPlaceholder:function(e,t){var i=this;e.children().each(function(){L("<td>&#160;</td>",i.document[0]).attr("colspan",L(this).attr("colspan")||1).appendTo(t)})},_contactContainers:function(e){var t,i,n,s,a,r,o,l,h,u,d=null,c=null;for(t=this.containers.length-1;0<=t;t--)if(!L.contains(this.currentItem[0],this.containers[t].element[0]))if(this._intersectsWith(this.containers[t].containerCache)){if(d&&L.contains(this.containers[t].element[0],d.element[0]))continue;d=this.containers[t],c=t}else this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",e,this._uiHash(this)),this.containers[t].containerCache.over=0);if(d)if(1===this.containers.length)this.containers[c].containerCache.over||(this.containers[c]._trigger("over",e,this._uiHash(this)),this.containers[c].containerCache.over=1);else{for(n=1e4,s=null,a=(h=d.floating||this._isFloating(this.currentItem))?"left":"top",r=h?"width":"height",u=h?"pageX":"pageY",i=this.items.length-1;0<=i;i--)L.contains(this.containers[c].element[0],this.items[i].item[0])&&this.items[i].item[0]!==this.currentItem[0]&&(o=this.items[i].item.offset()[a],l=!1,e[u]-o>this.items[i][r]/2&&(l=!0),n>Math.abs(e[u]-o)&&(n=Math.abs(e[u]-o),s=this.items[i],this.direction=l?"up":"down"));if(!s&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[c])return void(this.currentContainer.containerCache.over||(this.containers[c]._trigger("over",e,this._uiHash()),this.currentContainer.containerCache.over=1));s?this._rearrange(e,s,null,!0):this._rearrange(e,null,this.containers[c].element,!0),this._trigger("change",e,this._uiHash()),this.containers[c]._trigger("change",e,this._uiHash(this)),this.currentContainer=this.containers[c],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[c]._trigger("over",e,this._uiHash(this)),this.containers[c].containerCache.over=1}},_createHelper:function(e){var t=this.options,i=L.isFunction(t.helper)?L(t.helper.apply(this.element[0],[e,this.currentItem])):"clone"===t.helper?this.currentItem.clone():this.currentItem;return i.parents("body").length||L("parent"!==t.appendTo?t.appendTo:this.currentItem[0].parentNode)[0].appendChild(i[0]),i[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(!i[0].style.width||t.forceHelperSize)&&i.width(this.currentItem.width()),(!i[0].style.height||t.forceHelperSize)&&i.height(this.currentItem.height()),i},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),L.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&L.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&L.ui.ie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var e=this.currentItem.position();return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:e.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,t,i,n=this.options;"parent"===n.containment&&(n.containment=this.helper[0].parentNode),("document"===n.containment||"window"===n.containment)&&(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===n.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===n.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(n.containment)||(e=L(n.containment)[0],t=L(n.containment).offset(),i="hidden"!==L(e).css("overflow"),this.containment=[t.left+(parseInt(L(e).css("borderLeftWidth"),10)||0)+(parseInt(L(e).css("paddingLeft"),10)||0)-this.margins.left,t.top+(parseInt(L(e).css("borderTopWidth"),10)||0)+(parseInt(L(e).css("paddingTop"),10)||0)-this.margins.top,t.left+(i?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(L(e).css("borderLeftWidth"),10)||0)-(parseInt(L(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,t.top+(i?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(L(e).css("borderTopWidth"),10)||0)-(parseInt(L(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(e,t){t||(t=this.position);var i="absolute"===e?1:-1,n="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&L.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,s=/(html|body)/i.test(n[0].tagName);return{top:t.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():s?0:n.scrollTop())*i,left:t.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():s?0:n.scrollLeft())*i}},_generatePosition:function(e){var t,i,n=this.options,s=e.pageX,a=e.pageY,r="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&L.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,o=/(html|body)/i.test(r[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(e.pageX-this.offset.click.left<this.containment[0]&&(s=this.containment[0]+this.offset.click.left),e.pageY-this.offset.click.top<this.containment[1]&&(a=this.containment[1]+this.offset.click.top),e.pageX-this.offset.click.left>this.containment[2]&&(s=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(a=this.containment[3]+this.offset.click.top)),n.grid&&(t=this.originalPageY+Math.round((a-this.originalPageY)/n.grid[1])*n.grid[1],a=this.containment?t-this.offset.click.top>=this.containment[1]&&t-this.offset.click.top<=this.containment[3]?t:t-this.offset.click.top>=this.containment[1]?t-n.grid[1]:t+n.grid[1]:t,i=this.originalPageX+Math.round((s-this.originalPageX)/n.grid[0])*n.grid[0],s=this.containment?i-this.offset.click.left>=this.containment[0]&&i-this.offset.click.left<=this.containment[2]?i:i-this.offset.click.left>=this.containment[0]?i-n.grid[0]:i+n.grid[0]:i)),{top:a-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():o?0:r.scrollTop()),left:s-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():o?0:r.scrollLeft())}},_rearrange:function(e,t,i,n){i?i[0].appendChild(this.placeholder[0]):t.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?t.item[0]:t.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var s=this.counter;this._delay(function(){s===this.counter&&this.refreshPositions(!n)})},_clear:function(e,t){function i(t,i,n){return function(e){n._trigger(t,e,i._uiHash(i))}}this.reverting=!1;var n,s=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(n in this._storedCSS)("auto"===this._storedCSS[n]||"static"===this._storedCSS[n])&&(this._storedCSS[n]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!t&&s.push(function(e){this._trigger("receive",e,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||t||s.push(function(e){this._trigger("update",e,this._uiHash())}),this!==this.currentContainer&&(t||(s.push(function(e){this._trigger("remove",e,this._uiHash())}),s.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer)),s.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.currentContainer)))),n=this.containers.length-1;0<=n;n--)t||s.push(i("deactivate",this,this.containers[n])),this.containers[n].containerCache.over&&(s.push(i("out",this,this.containers[n])),this.containers[n].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,t||this._trigger("beforeStop",e,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!t){for(n=0;s.length>n;n++)s[n].call(this,e);this._trigger("stop",e,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===L.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(e){var t=e||this;return{helper:t.helper,placeholder:t.placeholder||L([]),position:t.position,originalPosition:t.originalPosition,offset:t.positionAbs,item:t.currentItem,sender:e?e.element:null}}}),L.widget("ui.spinner",{version:"1.12.1",defaultElement:"<input>",widgetEventPrefix:"spin",options:{classes:{"ui-spinner":"ui-corner-all","ui-spinner-down":"ui-corner-br","ui-spinner-up":"ui-corner-tr"},culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),""!==this.value()&&this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var n=this._super(),s=this.element;return L.each(["min","max","step"],function(e,t){var i=s.attr(t);null!=i&&i.length&&(n[t]=i)}),n},_events:{keydown:function(e){this._start(e)&&this._keydown(e)&&e.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(e){return this.cancelBlur?void delete this.cancelBlur:(this._stop(),this._refresh(),void(this.previous!==this.element.val()&&this._trigger("change",e)))},mousewheel:function(e,t){if(t){if(!this.spinning&&!this._start(e))return!1;this._spin((0<t?1:-1)*this.options.step,e),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(e)},100),e.preventDefault()}},"mousedown .ui-spinner-button":function(e){function t(){this.element[0]===L.ui.safeActiveElement(this.document[0])||(this.element.trigger("focus"),this.previous=i,this._delay(function(){this.previous=i}))}var i;i=this.element[0]===L.ui.safeActiveElement(this.document[0])?this.previous:this.element.val(),e.preventDefault(),t.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,t.call(this)}),!1!==this._start(e)&&this._repeat(null,L(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(e){return L(e.currentTarget).hasClass("ui-state-active")?!1!==this._start(e)&&void this._repeat(null,L(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e):void 0},"mouseleave .ui-spinner-button":"_stop"},_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap("<span>").parent().append("<a></a><a></a>")},_draw:function(){this._enhance(),this._addClass(this.uiSpinner,"ui-spinner","ui-widget ui-widget-content"),this._addClass("ui-spinner-input"),this.element.attr("role","spinbutton"),this.buttons=this.uiSpinner.children("a").attr("tabIndex",-1).attr("aria-hidden",!0).button({classes:{"ui-button":""}}),this._removeClass(this.buttons,"ui-corner-all"),this._addClass(this.buttons.first(),"ui-spinner-button ui-spinner-up"),this._addClass(this.buttons.last(),"ui-spinner-button ui-spinner-down"),this.buttons.first().button({icon:this.options.icons.up,showLabel:!1}),this.buttons.last().button({icon:this.options.icons.down,showLabel:!1}),this.buttons.height()>Math.ceil(.5*this.uiSpinner.height())&&0<this.uiSpinner.height()&&this.uiSpinner.height(this.uiSpinner.height())},_keydown:function(e){var t=this.options,i=L.ui.keyCode;switch(e.keyCode){case i.UP:return this._repeat(null,1,e),!0;case i.DOWN:return this._repeat(null,-1,e),!0;case i.PAGE_UP:return this._repeat(null,t.page,e),!0;case i.PAGE_DOWN:return this._repeat(null,-t.page,e),!0}return!1},_start:function(e){return!(!this.spinning&&!1===this._trigger("start",e))&&(this.counter||(this.counter=1),this.spinning=!0)},_repeat:function(e,t,i){e=e||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,t,i)},e),this._spin(t*this.options.step,i)},_spin:function(e,t){var i=this.value()||0;this.counter||(this.counter=1),i=this._adjustValue(i+e*this._increment(this.counter)),this.spinning&&!1===this._trigger("spin",t,{value:i})||(this._value(i),this.counter++)},_increment:function(e){var t=this.options.incremental;return t?L.isFunction(t)?t(e):Math.floor(e*e*e/5e4-e*e/500+17*e/200+1):1},_precision:function(){var e=this._precisionOf(this.options.step);return null!==this.options.min&&(e=Math.max(e,this._precisionOf(this.options.min))),e},_precisionOf:function(e){var t=""+e,i=t.indexOf(".");return-1===i?0:t.length-i-1},_adjustValue:function(e){var t,i,n=this.options;return i=e-(t=null!==n.min?n.min:0),e=t+(i=Math.round(i/n.step)*n.step),e=parseFloat(e.toFixed(this._precision())),null!==n.max&&e>n.max?n.max:null!==n.min&&n.min>e?n.min:e},_stop:function(e){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",e))},_setOption:function(e,t){var i,n,s;return"culture"===e||"numberFormat"===e?(i=this._parse(this.element.val()),this.options[e]=t,void this.element.val(this._format(i))):(("max"===e||"min"===e||"step"===e)&&"string"==typeof t&&(t=this._parse(t)),"icons"===e&&(n=this.buttons.first().find(".ui-icon"),this._removeClass(n,null,this.options.icons.up),this._addClass(n,null,t.up),s=this.buttons.last().find(".ui-icon"),this._removeClass(s,null,this.options.icons.down),this._addClass(s,null,t.down)),void this._super(e,t))},_setOptionDisabled:function(e){this._super(e),this._toggleClass(this.uiSpinner,null,"ui-state-disabled",!!e),this.element.prop("disabled",!!e),this.buttons.button(e?"disable":"enable")},_setOptions:t(function(e){this._super(e)}),_parse:function(e){return"string"==typeof e&&""!==e&&(e=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(e,10,this.options.culture):+e),""===e||isNaN(e)?null:e},_format:function(e){return""===e?"":window.Globalize&&this.options.numberFormat?Globalize.format(e,this.options.numberFormat,this.options.culture):e},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var e=this.value();return null!==e&&e===this._adjustValue(e)},_value:function(e,t){var i;""!==e&&(null!==(i=this._parse(e))&&(t||(i=this._adjustValue(i)),e=this._format(i))),this.element.val(e),this._refresh()},_destroy:function(){this.element.prop("disabled",!1).removeAttr("autocomplete role aria-valuemin aria-valuemax aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:t(function(e){this._stepUp(e)}),_stepUp:function(e){this._start()&&(this._spin((e||1)*this.options.step),this._stop())},stepDown:t(function(e){this._stepDown(e)}),_stepDown:function(e){this._start()&&(this._spin((e||1)*-this.options.step),this._stop())},pageUp:t(function(e){this._stepUp((e||1)*this.options.page)}),pageDown:t(function(e){this._stepDown((e||1)*this.options.page)}),value:function(e){return arguments.length?void t(this._value).call(this,e):this._parse(this.element.val())},widget:function(){return this.uiSpinner}}),!1!==L.uiBackCompat&&L.widget("ui.spinner",L.ui.spinner,{_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml())},_uiSpinnerHtml:function(){return"<span>"},_buttonHtml:function(){return"<a></a><a></a>"}}),L.ui.spinner,L.widget("ui.tabs",{version:"1.12.1",delay:300,options:{active:null,classes:{"ui-tabs":"ui-corner-all","ui-tabs-nav":"ui-corner-all","ui-tabs-panel":"ui-corner-bottom","ui-tabs-tab":"ui-corner-top"},collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:(b=/#.*$/,function(e){var t,i;t=e.href.replace(b,""),i=location.href.replace(b,"");try{t=decodeURIComponent(t)}catch(e){}try{i=decodeURIComponent(i)}catch(e){}return 1<e.hash.length&&t===i}),_create:function(){var t=this,e=this.options;this.running=!1,this._addClass("ui-tabs","ui-widget ui-widget-content"),this._toggleClass("ui-tabs-collapsible",null,e.collapsible),this._processTabs(),e.active=this._initialActive(),L.isArray(e.disabled)&&(e.disabled=L.unique(e.disabled.concat(L.map(this.tabs.filter(".ui-state-disabled"),function(e){return t.tabs.index(e)}))).sort()),this.active=!1!==this.options.active&&this.anchors.length?this._findActive(e.active):L(),this._refresh(),this.active.length&&this.load(e.active)},_initialActive:function(){var i=this.options.active,e=this.options.collapsible,n=location.hash.substring(1);return null===i&&(n&&this.tabs.each(function(e,t){return L(t).attr("aria-controls")===n?(i=e,!1):void 0}),null===i&&(i=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),(null===i||-1===i)&&(i=!!this.tabs.length&&0)),!1!==i&&(-1===(i=this.tabs.index(this.tabs.eq(i)))&&(i=!e&&0)),!e&&!1===i&&this.anchors.length&&(i=0),i},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):L()}},_tabKeydown:function(e){var t=L(L.ui.safeActiveElement(this.document[0])).closest("li"),i=this.tabs.index(t),n=!0;if(!this._handlePageNav(e)){switch(e.keyCode){case L.ui.keyCode.RIGHT:case L.ui.keyCode.DOWN:i++;break;case L.ui.keyCode.UP:case L.ui.keyCode.LEFT:n=!1,i--;break;case L.ui.keyCode.END:i=this.anchors.length-1;break;case L.ui.keyCode.HOME:i=0;break;case L.ui.keyCode.SPACE:return e.preventDefault(),clearTimeout(this.activating),void this._activate(i);case L.ui.keyCode.ENTER:return e.preventDefault(),clearTimeout(this.activating),void this._activate(i!==this.options.active&&i);default:return}e.preventDefault(),clearTimeout(this.activating),i=this._focusNextTab(i,n),e.ctrlKey||e.metaKey||(t.attr("aria-selected","false"),this.tabs.eq(i).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",i)},this.delay))}},_panelKeydown:function(e){this._handlePageNav(e)||e.ctrlKey&&e.keyCode===L.ui.keyCode.UP&&(e.preventDefault(),this.active.trigger("focus"))},_handlePageNav:function(e){return e.altKey&&e.keyCode===L.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):e.altKey&&e.keyCode===L.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(e,t){for(var i=this.tabs.length-1;-1!==L.inArray((i<e&&(e=0),e<0&&(e=i),e),this.options.disabled);)e=t?e+1:e-1;return e},_focusNextTab:function(e,t){return e=this._findNextTab(e,t),this.tabs.eq(e).trigger("focus"),e},_setOption:function(e,t){return"active"===e?void this._activate(t):(this._super(e,t),"collapsible"===e&&(this._toggleClass("ui-tabs-collapsible",null,t),t||!1!==this.options.active||this._activate(0)),"event"===e&&this._setupEvents(t),void("heightStyle"===e&&this._setupHeightStyle(t)))},_sanitizeSelector:function(e){return e?e.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var e=this.options,t=this.tablist.children(":has(a[href])");e.disabled=L.map(t.filter(".ui-state-disabled"),function(e){return t.index(e)}),this._processTabs(),!1!==e.active&&this.anchors.length?this.active.length&&!L.contains(this.tablist[0],this.active[0])?this.tabs.length===e.disabled.length?(e.active=!1,this.active=L()):this._activate(this._findNextTab(Math.max(0,e.active-1),!1)):e.active=this.tabs.index(this.active):(e.active=!1,this.active=L()),this._refresh()},_refresh:function(){this._setOptionDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"}),this.active.length?(this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._addClass(this.active,"ui-tabs-active","ui-state-active"),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var l=this,e=this.tabs,t=this.anchors,i=this.panels;this.tablist=this._getList().attr("role","tablist"),this._addClass(this.tablist,"ui-tabs-nav","ui-helper-reset ui-helper-clearfix ui-widget-header"),this.tablist.on("mousedown"+this.eventNamespace,"> li",function(e){L(this).is(".ui-state-disabled")&&e.preventDefault()}).on("focus"+this.eventNamespace,".ui-tabs-anchor",function(){L(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this.tabs=this.tablist.find("> li:has(a[href])").attr({role:"tab",tabIndex:-1}),this._addClass(this.tabs,"ui-tabs-tab","ui-state-default"),this.anchors=this.tabs.map(function(){return L("a",this)[0]}).attr({role:"presentation",tabIndex:-1}),this._addClass(this.anchors,"ui-tabs-anchor"),this.panels=L(),this.anchors.each(function(e,t){var i,n,s,a=L(t).uniqueId().attr("id"),r=L(t).closest("li"),o=r.attr("aria-controls");l._isLocal(t)?(s=(i=t.hash).substring(1),n=l.element.find(l._sanitizeSelector(i))):(i="#"+(s=r.attr("aria-controls")||L({}).uniqueId()[0].id),(n=l.element.find(i)).length||(n=l._createPanel(s)).insertAfter(l.panels[e-1]||l.tablist),n.attr("aria-live","polite")),n.length&&(l.panels=l.panels.add(n)),o&&r.data("ui-tabs-aria-controls",o),r.attr({"aria-controls":s,"aria-labelledby":a}),n.attr("aria-labelledby",a)}),this.panels.attr("role","tabpanel"),this._addClass(this.panels,"ui-tabs-panel","ui-widget-content"),e&&(this._off(e.not(this.tabs)),this._off(t.not(this.anchors)),this._off(i.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol, ul").eq(0)},_createPanel:function(e){return L("<div>").attr("id",e).data("ui-tabs-destroy",!0)},_setOptionDisabled:function(e){var t,i,n;for(L.isArray(e)&&(e.length?e.length===this.anchors.length&&(e=!0):e=!1),n=0;i=this.tabs[n];n++)t=L(i),!0===e||-1!==L.inArray(n,e)?(t.attr("aria-disabled","true"),this._addClass(t,null,"ui-state-disabled")):(t.removeAttr("aria-disabled"),this._removeClass(t,null,"ui-state-disabled"));this.options.disabled=e,this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!0===e)},_setupEvents:function(e){var i={};e&&L.each(e.split(" "),function(e,t){i[t]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(e){e.preventDefault()}}),this._on(this.anchors,i),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(e){var i,t=this.element.parent();"fill"===e?(i=t.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var e=L(this),t=e.css("position");"absolute"!==t&&"fixed"!==t&&(i-=e.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){i-=L(this).outerHeight(!0)}),this.panels.each(function(){L(this).height(Math.max(0,i-L(this).innerHeight()+L(this).height()))}).css("overflow","auto")):"auto"===e&&(i=0,this.panels.each(function(){i=Math.max(i,L(this).height("").height())}).height(i))},_eventHandler:function(e){var t=this.options,i=this.active,n=L(e.currentTarget).closest("li"),s=n[0]===i[0],a=s&&t.collapsible,r=a?L():this._getPanelForTab(n),o=i.length?this._getPanelForTab(i):L(),l={oldTab:i,oldPanel:o,newTab:a?L():n,newPanel:r};e.preventDefault(),n.hasClass("ui-state-disabled")||n.hasClass("ui-tabs-loading")||this.running||s&&!t.collapsible||!1===this._trigger("beforeActivate",e,l)||(t.active=!a&&this.tabs.index(n),this.active=s?L():n,this.xhr&&this.xhr.abort(),o.length||r.length||L.error("jQuery UI Tabs: Mismatching fragment identifier."),r.length&&this.load(this.tabs.index(n),e),this._toggle(e,l))},_toggle:function(e,t){function i(){s.running=!1,s._trigger("activate",e,t)}function n(){s._addClass(t.newTab.closest("li"),"ui-tabs-active","ui-state-active"),a.length&&s.options.show?s._show(a,s.options.show,i):(a.show(),i())}var s=this,a=t.newPanel,r=t.oldPanel;this.running=!0,r.length&&this.options.hide?this._hide(r,this.options.hide,function(){s._removeClass(t.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),n()}):(this._removeClass(t.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),r.hide(),n()),r.attr("aria-hidden","true"),t.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),a.length&&r.length?t.oldTab.attr("tabIndex",-1):a.length&&this.tabs.filter(function(){return 0===L(this).attr("tabIndex")}).attr("tabIndex",-1),a.attr("aria-hidden","false"),t.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(e){var t,i=this._findActive(e);i[0]!==this.active[0]&&(i.length||(i=this.active),t=i.find(".ui-tabs-anchor")[0],this._eventHandler({target:t,currentTarget:t,preventDefault:L.noop}))},_findActive:function(e){return!1===e?L():this.tabs.eq(e)},_getIndex:function(e){return"string"==typeof e&&(e=this.anchors.index(this.anchors.filter("[href$='"+L.ui.escapeSelector(e)+"']"))),e},_destroy:function(){this.xhr&&this.xhr.abort(),this.tablist.removeAttr("role").off(this.eventNamespace),this.anchors.removeAttr("role tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){L.data(this,"ui-tabs-destroy")?L(this).remove():L(this).removeAttr("role tabIndex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded")}),this.tabs.each(function(){var e=L(this),t=e.data("ui-tabs-aria-controls");t?e.attr("aria-controls",t).removeData("ui-tabs-aria-controls"):e.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(i){var e=this.options.disabled;!1!==e&&(void 0===i?e=!1:(i=this._getIndex(i),e=L.isArray(e)?L.map(e,function(e){return e!==i?e:null}):L.map(this.tabs,function(e,t){return t!==i?t:null})),this._setOptionDisabled(e))},disable:function(e){var t=this.options.disabled;if(!0!==t){if(void 0===e)t=!0;else{if(e=this._getIndex(e),-1!==L.inArray(e,t))return;t=L.isArray(t)?L.merge([e],t).sort():[e]}this._setOptionDisabled(t)}},load:function(e,n){e=this._getIndex(e);var s=this,i=this.tabs.eq(e),t=i.find(".ui-tabs-anchor"),a=this._getPanelForTab(i),r={tab:i,panel:a},o=function(e,t){"abort"===t&&s.panels.stop(!1,!0),s._removeClass(i,"ui-tabs-loading"),a.removeAttr("aria-busy"),e===s.xhr&&delete s.xhr};this._isLocal(t[0])||(this.xhr=L.ajax(this._ajaxSettings(t,n,r)),this.xhr&&"canceled"!==this.xhr.statusText&&(this._addClass(i,"ui-tabs-loading"),a.attr("aria-busy","true"),this.xhr.done(function(e,t,i){setTimeout(function(){a.html(e),s._trigger("load",n,r),o(i,t)},1)}).fail(function(e,t){setTimeout(function(){o(e,t)},1)})))},_ajaxSettings:function(e,i,n){var s=this;return{url:e.attr("href").replace(/#.*$/,""),beforeSend:function(e,t){return s._trigger("beforeLoad",i,L.extend({jqXHR:e,ajaxSettings:t},n))}}},_getPanelForTab:function(e){var t=L(e).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+t))}}),!1!==L.uiBackCompat&&L.widget("ui.tabs",L.ui.tabs,{_processTabs:function(){this._superApply(arguments),this._addClass(this.tabs,"ui-tab")}}),L.ui.tabs,L.widget("ui.tooltip",{version:"1.12.1",options:{classes:{"ui-tooltip":"ui-corner-all ui-widget-shadow"},content:function(){var e=L(this).attr("title")||"";return L("<a>").text(e).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,track:!1,close:null,open:null},_addDescribedBy:function(e,t){var i=(e.attr("aria-describedby")||"").split(/\s+/);i.push(t),e.data("ui-tooltip-id",t).attr("aria-describedby",L.trim(i.join(" ")))},_removeDescribedBy:function(e){var t=e.data("ui-tooltip-id"),i=(e.attr("aria-describedby")||"").split(/\s+/),n=L.inArray(t,i);-1!==n&&i.splice(n,1),e.removeData("ui-tooltip-id"),(i=L.trim(i.join(" ")))?e.attr("aria-describedby",i):e.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.liveRegion=L("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this.disabledTitles=L([])},_setOption:function(e,t){var i=this;this._super(e,t),"content"===e&&L.each(this.tooltips,function(e,t){i._updateContent(t.element)})},_setOptionDisabled:function(e){this[e?"_disable":"_enable"]()},_disable:function(){var n=this;L.each(this.tooltips,function(e,t){var i=L.Event("blur");i.target=i.currentTarget=t.element[0],n.close(i,!0)}),this.disabledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack().filter(function(){var e=L(this);return e.is("[title]")?e.data("ui-tooltip-title",e.attr("title")).removeAttr("title"):void 0}))},_enable:function(){this.disabledTitles.each(function(){var e=L(this);e.data("ui-tooltip-title")&&e.attr("title",e.data("ui-tooltip-title"))}),this.disabledTitles=L([])},open:function(e){var i=this,t=L(e?e.target:this.element).closest(this.options.items);t.length&&!t.data("ui-tooltip-id")&&(t.attr("title")&&t.data("ui-tooltip-title",t.attr("title")),t.data("ui-tooltip-open",!0),e&&"mouseover"===e.type&&t.parents().each(function(){var e,t=L(this);t.data("ui-tooltip-open")&&((e=L.Event("blur")).target=e.currentTarget=this,i.close(e,!0)),t.attr("title")&&(t.uniqueId(),i.parents[this.id]={element:this,title:t.attr("title")},t.attr("title",""))}),this._registerCloseHandlers(e,t),this._updateContent(t,e))},_updateContent:function(t,i){var e,n=this.options.content,s=this,a=i?i.type:null;return"string"==typeof n||n.nodeType||n.jquery?this._open(i,t,n):void((e=n.call(t[0],function(e){s._delay(function(){t.data("ui-tooltip-open")&&(i&&(i.type=a),this._open(i,t,e))})}))&&this._open(i,t,e))},_open:function(e,t,i){function n(e){l.of=e,a.is(":hidden")||a.position(l)}var s,a,r,o,l=L.extend({},this.options.position);if(i){if(s=this._find(t))return void s.tooltip.find(".ui-tooltip-content").html(i);t.is("[title]")&&(e&&"mouseover"===e.type?t.attr("title",""):t.removeAttr("title")),s=this._tooltip(t),a=s.tooltip,this._addDescribedBy(t,a.attr("id")),a.find(".ui-tooltip-content").html(i),this.liveRegion.children().hide(),(o=L("<div>").html(a.find(".ui-tooltip-content").html())).removeAttr("name").find("[name]").removeAttr("name"),o.removeAttr("id").find("[id]").removeAttr("id"),o.appendTo(this.liveRegion),this.options.track&&e&&/^mouse/.test(e.type)?(this._on(this.document,{mousemove:n}),n(e)):a.position(L.extend({of:t},this.options.position)),a.hide(),this._show(a,this.options.show),this.options.track&&this.options.show&&this.options.show.delay&&(r=this.delayedShow=setInterval(function(){a.is(":visible")&&(n(l.of),clearInterval(r))},L.fx.interval)),this._trigger("open",e,{tooltip:a})}},_registerCloseHandlers:function(e,i){var t={keyup:function(e){if(e.keyCode===L.ui.keyCode.ESCAPE){var t=L.Event(e);t.currentTarget=i[0],this.close(t,!0)}}};i[0]!==this.element[0]&&(t.remove=function(){this._removeTooltip(this._find(i).tooltip)}),e&&"mouseover"!==e.type||(t.mouseleave="close"),e&&"focusin"!==e.type||(t.focusout="close"),this._on(!0,i,t)},close:function(e){var t,i=this,n=L(e?e.currentTarget:this.element),s=this._find(n);return s?(t=s.tooltip,void(s.closing||(clearInterval(this.delayedShow),n.data("ui-tooltip-title")&&!n.attr("title")&&n.attr("title",n.data("ui-tooltip-title")),this._removeDescribedBy(n),s.hiding=!0,t.stop(!0),this._hide(t,this.options.hide,function(){i._removeTooltip(L(this))}),n.removeData("ui-tooltip-open"),this._off(n,"mouseleave focusout keyup"),n[0]!==this.element[0]&&this._off(n,"remove"),this._off(this.document,"mousemove"),e&&"mouseleave"===e.type&&L.each(this.parents,function(e,t){L(t.element).attr("title",t.title),delete i.parents[e]}),s.closing=!0,this._trigger("close",e,{tooltip:t}),s.hiding||(s.closing=!1)))):void n.removeData("ui-tooltip-open")},_tooltip:function(e){var t=L("<div>").attr("role","tooltip"),i=L("<div>").appendTo(t),n=t.uniqueId().attr("id");return this._addClass(i,"ui-tooltip-content"),this._addClass(t,"ui-tooltip","ui-widget ui-widget-content"),t.appendTo(this._appendTo(e)),this.tooltips[n]={element:e,tooltip:t}},_find:function(e){var t=e.data("ui-tooltip-id");return t?this.tooltips[t]:null},_removeTooltip:function(e){e.remove(),delete this.tooltips[e.attr("id")]},_appendTo:function(e){var t=e.closest(".ui-front, dialog");return t.length||(t=this.document[0].body),t},_destroy:function(){var s=this;L.each(this.tooltips,function(e,t){var i=L.Event("blur"),n=t.element;i.target=i.currentTarget=n[0],s.close(i,!0),L("#"+e).remove(),n.data("ui-tooltip-title")&&(n.attr("title")||n.attr("title",n.data("ui-tooltip-title")),n.removeData("ui-tooltip-title"))}),this.liveRegion.remove()}}),!1!==L.uiBackCompat&&L.widget("ui.tooltip",L.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var e=this._superApply(arguments);return this.options.tooltipClass&&e.tooltip.addClass(this.options.tooltipClass),e}}),L.ui.tooltip}),function(n){"use strict";n.fn.emulateTransitionEnd=function(e){var t=!1,i=this;n(this).one("bsTransitionEnd",function(){t=!0});return setTimeout(function(){t||n(i).trigger(n.support.transition.end)},e),this},n(function(){n.support.transition=function(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in t)if(void 0!==e.style[i])return{end:t[i]};return!1}(),n.support.transition&&(n.event.special.bsTransitionEnd={bindType:n.support.transition.end,delegateType:n.support.transition.end,handle:function(e){if(n(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}})})}(jQuery),function(a){"use strict";var t='[data-dismiss="alert"]',r=function(e){a(e).on("click",t,this.close)};r.VERSION="3.3.5",r.TRANSITION_DURATION=150,r.prototype.close=function(e){var t=a(this),i=t.attr("data-target");i||(i=(i=t.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,""));var n=a(i);function s(){n.detach().trigger("closed.bs.alert").remove()}e&&e.preventDefault(),n.length||(n=t.closest(".alert")),n.trigger(e=a.Event("close.bs.alert")),e.isDefaultPrevented()||(n.removeClass("in"),a.support.transition&&n.hasClass("fade")?n.one("bsTransitionEnd",s).emulateTransitionEnd(r.TRANSITION_DURATION):s())};var e=a.fn.alert;a.fn.alert=function(i){return this.each(function(){var e=a(this),t=e.data("bs.alert");t||e.data("bs.alert",t=new r(this)),"string"==typeof i&&t[i].call(e)})},a.fn.alert.Constructor=r,a.fn.alert.noConflict=function(){return a.fn.alert=e,this},a(document).on("click.bs.alert.data-api",t,r.prototype.close)}(jQuery),function(a){"use strict";var s=function(e,t){this.$element=a(e),this.options=a.extend({},s.DEFAULTS,t),this.isLoading=!1};function i(n){return this.each(function(){var e=a(this),t=e.data("bs.button"),i="object"==typeof n&&n;t||e.data("bs.button",t=new s(this,i)),"toggle"==n?t.toggle():n&&t.setState(n)})}s.VERSION="3.3.5",s.DEFAULTS={loadingText:"loading..."},s.prototype.setState=function(e){var t="disabled",i=this.$element,n=i.is("input")?"val":"html",s=i.data();e+="Text",null==s.resetText&&i.data("resetText",i[n]()),setTimeout(a.proxy(function(){i[n](null==s[e]?this.options[e]:s[e]),"loadingText"==e?(this.isLoading=!0,i.addClass(t).attr(t,t)):this.isLoading&&(this.isLoading=!1,i.removeClass(t).removeAttr(t))},this),0)},s.prototype.toggle=function(){var e=!0,t=this.$element.closest('[data-toggle="buttons"]');if(t.length){var i=this.$element.find("input");"radio"==i.prop("type")?(i.prop("checked")&&(e=!1),t.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==i.prop("type")&&(i.prop("checked")!==this.$element.hasClass("active")&&(e=!1),this.$element.toggleClass("active")),i.prop("checked",this.$element.hasClass("active")),e&&i.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var e=a.fn.button;a.fn.button=i,a.fn.button.Constructor=s,a.fn.button.noConflict=function(){return a.fn.button=e,this},a(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(e){var t=a(e.target);t.hasClass("btn")||(t=t.closest(".btn")),i.call(t,"toggle"),a(e.target).is('input[type="radio"]')||a(e.target).is('input[type="checkbox"]')||e.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(e){a(e.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(e.type))})}(jQuery),function(d){"use strict";var c=function(e,t){this.$element=d(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=t,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",d.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",d.proxy(this.pause,this)).on("mouseleave.bs.carousel",d.proxy(this.cycle,this))};function r(s){return this.each(function(){var e=d(this),t=e.data("bs.carousel"),i=d.extend({},c.DEFAULTS,e.data(),"object"==typeof s&&s),n="string"==typeof s?s:i.slide;t||e.data("bs.carousel",t=new c(this,i)),"number"==typeof s?t.to(s):n?t[n]():i.interval&&t.pause().cycle()})}c.VERSION="3.3.5",c.TRANSITION_DURATION=600,c.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},c.prototype.keydown=function(e){if(!/input|textarea/i.test(e.target.tagName)){switch(e.which){case 37:this.prev();break;case 39:this.next();break;default:return}e.preventDefault()}},c.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(d.proxy(this.next,this),this.options.interval)),this},c.prototype.getItemIndex=function(e){return this.$items=e.parent().children(".item"),this.$items.index(e||this.$active)},c.prototype.getItemForDirection=function(e,t){var i=this.getItemIndex(t);if(("prev"==e&&0===i||"next"==e&&i==this.$items.length-1)&&!this.options.wrap)return t;var n=(i+("prev"==e?-1:1))%this.$items.length;return this.$items.eq(n)},c.prototype.to=function(e){var t=this,i=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(e>this.$items.length-1||e<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){t.to(e)}):i==e?this.pause().cycle():this.slide(i<e?"next":"prev",this.$items.eq(e))},c.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&d.support.transition&&(this.$element.trigger(d.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},c.prototype.next=function(){if(!this.sliding)return this.slide("next")},c.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},c.prototype.slide=function(e,t){var i=this.$element.find(".item.active"),n=t||this.getItemForDirection(e,i),s=this.interval,a="next"==e?"left":"right",r=this;if(n.hasClass("active"))return this.sliding=!1;var o=n[0],l=d.Event("slide.bs.carousel",{relatedTarget:o,direction:a});if(this.$element.trigger(l),!l.isDefaultPrevented()){if(this.sliding=!0,s&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var h=d(this.$indicators.children()[this.getItemIndex(n)]);h&&h.addClass("active")}var u=d.Event("slid.bs.carousel",{relatedTarget:o,direction:a});return d.support.transition&&this.$element.hasClass("slide")?(n.addClass(e),n[0].offsetWidth,i.addClass(a),n.addClass(a),i.one("bsTransitionEnd",function(){n.removeClass([e,a].join(" ")).addClass("active"),i.removeClass(["active",a].join(" ")),r.sliding=!1,setTimeout(function(){r.$element.trigger(u)},0)}).emulateTransitionEnd(c.TRANSITION_DURATION)):(i.removeClass("active"),n.addClass("active"),this.sliding=!1,this.$element.trigger(u)),s&&this.cycle(),this}};var e=d.fn.carousel;d.fn.carousel=r,d.fn.carousel.Constructor=c,d.fn.carousel.noConflict=function(){return d.fn.carousel=e,this};var t=function(e){var t,i=d(this),n=d(i.attr("data-target")||(t=i.attr("href"))&&t.replace(/.*(?=#[^\s]+$)/,""));if(n.hasClass("carousel")){var s=d.extend({},n.data(),i.data()),a=i.attr("data-slide-to");a&&(s.interval=!1),r.call(n,s),a&&n.data("bs.carousel").to(a),e.preventDefault()}};d(document).on("click.bs.carousel.data-api","[data-slide]",t).on("click.bs.carousel.data-api","[data-slide-to]",t),d(window).on("load",function(){d('[data-ride="carousel"]').each(function(){var e=d(this);r.call(e,e.data())})})}(jQuery),function(r){"use strict";var o=function(e,t){this.$element=r(e),this.options=r.extend({},o.DEFAULTS,t),this.$trigger=r('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};function s(e){var t,i=e.attr("data-target")||(t=e.attr("href"))&&t.replace(/.*(?=#[^\s]+$)/,"");return r(i)}function l(n){return this.each(function(){var e=r(this),t=e.data("bs.collapse"),i=r.extend({},o.DEFAULTS,e.data(),"object"==typeof n&&n);!t&&i.toggle&&/show|hide/.test(n)&&(i.toggle=!1),t||e.data("bs.collapse",t=new o(this,i)),"string"==typeof n&&t[n]()})}o.VERSION="3.3.5",o.TRANSITION_DURATION=350,o.DEFAULTS={toggle:!0},o.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},o.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e,t=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(t&&t.length&&(e=t.data("bs.collapse"))&&e.transitioning)){var i=r.Event("show.bs.collapse");if(this.$element.trigger(i),!i.isDefaultPrevented()){t&&t.length&&(l.call(t,"hide"),e||t.data("bs.collapse",null));var n=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[n](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var s=function(){this.$element.removeClass("collapsing").addClass("collapse in")[n](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!r.support.transition)return s.call(this);var a=r.camelCase(["scroll",n].join("-"));this.$element.one("bsTransitionEnd",r.proxy(s,this)).emulateTransitionEnd(o.TRANSITION_DURATION)[n](this.$element[0][a])}}}},o.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=r.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var t=this.dimension();this.$element[t](this.$element[t]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var i=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!r.support.transition)return i.call(this);this.$element[t](0).one("bsTransitionEnd",r.proxy(i,this)).emulateTransitionEnd(o.TRANSITION_DURATION)}}},o.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},o.prototype.getParent=function(){return r(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(r.proxy(function(e,t){var i=r(t);this.addAriaAndCollapsedClass(s(i),i)},this)).end()},o.prototype.addAriaAndCollapsedClass=function(e,t){var i=e.hasClass("in");e.attr("aria-expanded",i),t.toggleClass("collapsed",!i).attr("aria-expanded",i)};var e=r.fn.collapse;r.fn.collapse=l,r.fn.collapse.Constructor=o,r.fn.collapse.noConflict=function(){return r.fn.collapse=e,this},r(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(e){var t=r(this);t.attr("data-target")||e.preventDefault();var i=s(t),n=i.data("bs.collapse")?"toggle":t.data();l.call(i,n)})}(jQuery),function(r){"use strict";var o='[data-toggle="dropdown"]',n=function(e){r(e).on("click.bs.dropdown",this.toggle)};function l(e){var t=e.attr("data-target");t||(t=(t=e.attr("href"))&&/#[A-Za-z]/.test(t)&&t.replace(/.*(?=#[^\s]*$)/,""));var i=t&&r(t);return i&&i.length?i:e.parent()}function a(n){n&&3===n.which||(r(".dropdown-backdrop").remove(),r(o).each(function(){var e=r(this),t=l(e),i={relatedTarget:this};t.hasClass("open")&&(n&&"click"==n.type&&/input|textarea/i.test(n.target.tagName)&&r.contains(t[0],n.target)||(t.trigger(n=r.Event("hide.bs.dropdown",i)),n.isDefaultPrevented()||(e.attr("aria-expanded","false"),t.removeClass("open").trigger("hidden.bs.dropdown",i))))}))}n.VERSION="3.3.5",n.prototype.toggle=function(e){var t=r(this);if(!t.is(".disabled, :disabled")){var i=l(t),n=i.hasClass("open");if(a(),!n){"ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length&&r(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(r(this)).on("click",a);var s={relatedTarget:this};if(i.trigger(e=r.Event("show.bs.dropdown",s)),e.isDefaultPrevented())return;t.trigger("focus").attr("aria-expanded","true"),i.toggleClass("open").trigger("shown.bs.dropdown",s)}return!1}},n.prototype.keydown=function(e){if(/(38|40|27|32)/.test(e.which)&&!/input|textarea/i.test(e.target.tagName)){var t=r(this);if(e.preventDefault(),e.stopPropagation(),!t.is(".disabled, :disabled")){var i=l(t),n=i.hasClass("open");if(!n&&27!=e.which||n&&27==e.which)return 27==e.which&&i.find(o).trigger("focus"),t.trigger("click");var s=i.find(".dropdown-menu li:not(.disabled):visible a");if(s.length){var a=s.index(e.target);38==e.which&&0<a&&a--,40==e.which&&a<s.length-1&&a++,~a||(a=0),s.eq(a).trigger("focus")}}}};var e=r.fn.dropdown;r.fn.dropdown=function(i){return this.each(function(){var e=r(this),t=e.data("bs.dropdown");t||e.data("bs.dropdown",t=new n(this)),"string"==typeof i&&t[i].call(e)})},r.fn.dropdown.Constructor=n,r.fn.dropdown.noConflict=function(){return r.fn.dropdown=e,this},r(document).on("click.bs.dropdown.data-api",a).on("click.bs.dropdown.data-api",".dropdown form",function(e){e.stopPropagation()}).on("click.bs.dropdown.data-api",o,n.prototype.toggle).on("keydown.bs.dropdown.data-api",o,n.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",n.prototype.keydown)}(jQuery),function(a){"use strict";var r=function(e,t){this.options=t,this.$body=a(document.body),this.$element=a(e),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,a.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};function o(n,s){return this.each(function(){var e=a(this),t=e.data("bs.modal"),i=a.extend({},r.DEFAULTS,e.data(),"object"==typeof n&&n);t||e.data("bs.modal",t=new r(this,i)),"string"==typeof n?t[n](s):i.show&&t.show(s)})}r.VERSION="3.3.5",r.TRANSITION_DURATION=300,r.BACKDROP_TRANSITION_DURATION=150,r.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},r.prototype.toggle=function(e){return this.isShown?this.hide():this.show(e)},r.prototype.show=function(i){var n=this,e=a.Event("show.bs.modal",{relatedTarget:i});this.$element.trigger(e),this.isShown||e.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',a.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){n.$element.one("mouseup.dismiss.bs.modal",function(e){a(e.target).is(n.$element)&&(n.ignoreBackdropClick=!0)})}),this.backdrop(function(){var e=a.support.transition&&n.$element.hasClass("fade");n.$element.parent().length||n.$element.appendTo(n.$body),n.$element.show().scrollTop(0),n.adjustDialog(),e&&n.$element[0].offsetWidth,n.$element.addClass("in"),n.enforceFocus();var t=a.Event("shown.bs.modal",{relatedTarget:i});e?n.$dialog.one("bsTransitionEnd",function(){n.$element.trigger("focus").trigger(t)}).emulateTransitionEnd(r.TRANSITION_DURATION):n.$element.trigger("focus").trigger(t)}))},r.prototype.hide=function(e){e&&e.preventDefault(),e=a.Event("hide.bs.modal"),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),a(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),a.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",a.proxy(this.hideModal,this)).emulateTransitionEnd(r.TRANSITION_DURATION):this.hideModal())},r.prototype.enforceFocus=function(){a(document).off("focusin.bs.modal").on("focusin.bs.modal",a.proxy(function(e){this.$element[0]===e.target||this.$element.has(e.target).length||this.$element.trigger("focus")},this))},r.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",a.proxy(function(e){27==e.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},r.prototype.resize=function(){this.isShown?a(window).on("resize.bs.modal",a.proxy(this.handleUpdate,this)):a(window).off("resize.bs.modal")},r.prototype.hideModal=function(){var e=this;this.$element.hide(),this.backdrop(function(){e.$body.removeClass("modal-open"),e.resetAdjustments(),e.resetScrollbar(),e.$element.trigger("hidden.bs.modal")})},r.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},r.prototype.backdrop=function(e){var t=this,i=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var n=a.support.transition&&i;if(this.$backdrop=a(document.createElement("div")).addClass("modal-backdrop "+i).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",a.proxy(function(e){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:e.target===e.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())},this)),n&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!e)return;n?this.$backdrop.one("bsTransitionEnd",e).emulateTransitionEnd(r.BACKDROP_TRANSITION_DURATION):e()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var s=function(){t.removeBackdrop(),e&&e()};a.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",s).emulateTransitionEnd(r.BACKDROP_TRANSITION_DURATION):s()}else e&&e()},r.prototype.handleUpdate=function(){this.adjustDialog()},r.prototype.adjustDialog=function(){var e=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},r.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},r.prototype.checkScrollbar=function(){var e=window.innerWidth;if(!e){var t=document.documentElement.getBoundingClientRect();e=t.right-Math.abs(t.left)}this.bodyIsOverflowing=document.body.clientWidth<e,this.scrollbarWidth=this.measureScrollbar()},r.prototype.setScrollbar=function(){var e=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",e+this.scrollbarWidth)},r.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},r.prototype.measureScrollbar=function(){var e=document.createElement("div");e.className="modal-scrollbar-measure",this.$body.append(e);var t=e.offsetWidth-e.clientWidth;return this.$body[0].removeChild(e),t};var e=a.fn.modal;a.fn.modal=o,a.fn.modal.Constructor=r,a.fn.modal.noConflict=function(){return a.fn.modal=e,this},a(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(e){var t=a(this),i=t.attr("href"),n=a(t.attr("data-target")||i&&i.replace(/.*(?=#[^\s]+$)/,"")),s=n.data("bs.modal")?"toggle":a.extend({remote:!/#/.test(i)&&i},n.data(),t.data());t.is("a")&&e.preventDefault(),n.one("show.bs.modal",function(e){e.isDefaultPrevented()||n.one("hidden.bs.modal",function(){t.is(":visible")&&t.trigger("focus")})}),o.call(n,s,this)})}(jQuery),function(m){"use strict";var g=function(e,t){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",e,t)};g.VERSION="3.3.5",g.TRANSITION_DURATION=150,g.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},g.prototype.init=function(e,t,i){if(this.enabled=!0,this.type=e,this.$element=m(t),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&m(m.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var n=this.options.trigger.split(" "),s=n.length;s--;){var a=n[s];if("click"==a)this.$element.on("click."+this.type,this.options.selector,m.proxy(this.toggle,this));else if("manual"!=a){var r="hover"==a?"mouseenter":"focusin",o="hover"==a?"mouseleave":"focusout";this.$element.on(r+"."+this.type,this.options.selector,m.proxy(this.enter,this)),this.$element.on(o+"."+this.type,this.options.selector,m.proxy(this.leave,this))}}this.options.selector?this._options=m.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},g.prototype.getDefaults=function(){return g.DEFAULTS},g.prototype.getOptions=function(e){return(e=m.extend({},this.getDefaults(),this.$element.data(),e)).delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},g.prototype.getDelegateOptions=function(){var i={},n=this.getDefaults();return this._options&&m.each(this._options,function(e,t){n[e]!=t&&(i[e]=t)}),i},g.prototype.enter=function(e){var t=e instanceof this.constructor?e:m(e.currentTarget).data("bs."+this.type);if(t||(t=new this.constructor(e.currentTarget,this.getDelegateOptions()),m(e.currentTarget).data("bs."+this.type,t)),e instanceof m.Event&&(t.inState["focusin"==e.type?"focus":"hover"]=!0),t.tip().hasClass("in")||"in"==t.hoverState)t.hoverState="in";else{if(clearTimeout(t.timeout),t.hoverState="in",!t.options.delay||!t.options.delay.show)return t.show();t.timeout=setTimeout(function(){"in"==t.hoverState&&t.show()},t.options.delay.show)}},g.prototype.isInStateTrue=function(){for(var e in this.inState)if(this.inState[e])return!0;return!1},g.prototype.leave=function(e){var t=e instanceof this.constructor?e:m(e.currentTarget).data("bs."+this.type);if(t||(t=new this.constructor(e.currentTarget,this.getDelegateOptions()),m(e.currentTarget).data("bs."+this.type,t)),e instanceof m.Event&&(t.inState["focusout"==e.type?"focus":"hover"]=!1),!t.isInStateTrue()){if(clearTimeout(t.timeout),t.hoverState="out",!t.options.delay||!t.options.delay.hide)return t.hide();t.timeout=setTimeout(function(){"out"==t.hoverState&&t.hide()},t.options.delay.hide)}},g.prototype.show=function(){var e=m.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var t=m.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!t)return;var i=this,n=this.tip(),s=this.getUID(this.type);this.setContent(),n.attr("id",s),this.$element.attr("aria-describedby",s),this.options.animation&&n.addClass("fade");var a="function"==typeof this.options.placement?this.options.placement.call(this,n[0],this.$element[0]):this.options.placement,r=/\s?auto?\s?/i,o=r.test(a);o&&(a=a.replace(r,"")||"top"),n.detach().css({top:0,left:0,display:"block"}).addClass(a).data("bs."+this.type,this),this.options.container?n.appendTo(this.options.container):n.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var l=this.getPosition(),h=n[0].offsetWidth,u=n[0].offsetHeight;if(o){var d=a,c=this.getPosition(this.$viewport);a="bottom"==a&&l.bottom+u>c.bottom?"top":"top"==a&&l.top-u<c.top?"bottom":"right"==a&&l.right+h>c.width?"left":"left"==a&&l.left-h<c.left?"right":a,n.removeClass(d).addClass(a)}var p=this.getCalculatedOffset(a,l,h,u);this.applyPlacement(p,a);var f=function(){var e=i.hoverState;i.$element.trigger("shown.bs."+i.type),i.hoverState=null,"out"==e&&i.leave(i)};m.support.transition&&this.$tip.hasClass("fade")?n.one("bsTransitionEnd",f).emulateTransitionEnd(g.TRANSITION_DURATION):f()}},g.prototype.applyPlacement=function(e,t){var i=this.tip(),n=i[0].offsetWidth,s=i[0].offsetHeight,a=parseInt(i.css("margin-top"),10),r=parseInt(i.css("margin-left"),10);isNaN(a)&&(a=0),isNaN(r)&&(r=0),e.top+=a,e.left+=r,m.offset.setOffset(i[0],m.extend({using:function(e){i.css({top:Math.round(e.top),left:Math.round(e.left)})}},e),0),i.addClass("in");var o=i[0].offsetWidth,l=i[0].offsetHeight;"top"==t&&l!=s&&(e.top=e.top+s-l);var h=this.getViewportAdjustedDelta(t,e,o,l);h.left?e.left+=h.left:e.top+=h.top;var u=/top|bottom/.test(t),d=u?2*h.left-n+o:2*h.top-s+l,c=u?"offsetWidth":"offsetHeight";i.offset(e),this.replaceArrow(d,i[0][c],u)},g.prototype.replaceArrow=function(e,t,i){this.arrow().css(i?"left":"top",50*(1-e/t)+"%").css(i?"top":"left","")},g.prototype.setContent=function(){var e=this.tip(),t=this.getTitle();e.find(".tooltip-inner")[this.options.html?"html":"text"](t),e.removeClass("fade in top bottom left right")},g.prototype.hide=function(e){var t=this,i=m(this.$tip),n=m.Event("hide.bs."+this.type);function s(){"in"!=t.hoverState&&i.detach(),t.$element.removeAttr("aria-describedby").trigger("hidden.bs."+t.type),e&&e()}if(this.$element.trigger(n),!n.isDefaultPrevented())return i.removeClass("in"),m.support.transition&&i.hasClass("fade")?i.one("bsTransitionEnd",s).emulateTransitionEnd(g.TRANSITION_DURATION):s(),this.hoverState=null,this},g.prototype.fixTitle=function(){var e=this.$element;(e.attr("title")||"string"!=typeof e.attr("data-original-title"))&&e.attr("data-original-title",e.attr("title")||"").attr("title","")},g.prototype.hasContent=function(){return this.getTitle()},g.prototype.getPosition=function(e){var t=(e=e||this.$element)[0],i="BODY"==t.tagName,n=t.getBoundingClientRect();null==n.width&&(n=m.extend({},n,{width:n.right-n.left,height:n.bottom-n.top}));var s=i?{top:0,left:0}:e.offset(),a={scroll:i?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},r=i?{width:m(window).width(),height:m(window).height()}:null;return m.extend({},n,a,r,s)},g.prototype.getCalculatedOffset=function(e,t,i,n){return"bottom"==e?{top:t.top+t.height,left:t.left+t.width/2-i/2}:"top"==e?{top:t.top-n,left:t.left+t.width/2-i/2}:"left"==e?{top:t.top+t.height/2-n/2,left:t.left-i}:{top:t.top+t.height/2-n/2,left:t.left+t.width}},g.prototype.getViewportAdjustedDelta=function(e,t,i,n){var s={top:0,left:0};if(!this.$viewport)return s;var a=this.options.viewport&&this.options.viewport.padding||0,r=this.getPosition(this.$viewport);if(/right|left/.test(e)){var o=t.top-a-r.scroll,l=t.top+a-r.scroll+n;o<r.top?s.top=r.top-o:l>r.top+r.height&&(s.top=r.top+r.height-l)}else{var h=t.left-a,u=t.left+a+i;h<r.left?s.left=r.left-h:u>r.right&&(s.left=r.left+r.width-u)}return s},g.prototype.getTitle=function(){var e=this.$element,t=this.options;return e.attr("data-original-title")||("function"==typeof t.title?t.title.call(e[0]):t.title)},g.prototype.getUID=function(e){for(;e+=~~(1e6*Math.random()),document.getElementById(e););return e},g.prototype.tip=function(){if(!this.$tip&&(this.$tip=m(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},g.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},g.prototype.enable=function(){this.enabled=!0},g.prototype.disable=function(){this.enabled=!1},g.prototype.toggleEnabled=function(){this.enabled=!this.enabled},g.prototype.toggle=function(e){var t=this;e&&((t=m(e.currentTarget).data("bs."+this.type))||(t=new this.constructor(e.currentTarget,this.getDelegateOptions()),m(e.currentTarget).data("bs."+this.type,t))),e?(t.inState.click=!t.inState.click,t.isInStateTrue()?t.enter(t):t.leave(t)):t.tip().hasClass("in")?t.leave(t):t.enter(t)},g.prototype.destroy=function(){var e=this;clearTimeout(this.timeout),this.hide(function(){e.$element.off("."+e.type).removeData("bs."+e.type),e.$tip&&e.$tip.detach(),e.$tip=null,e.$arrow=null,e.$viewport=null})};var e=m.fn.tooltip;m.fn.tooltip=function(n){return this.each(function(){var e=m(this),t=e.data("bs.tooltip"),i="object"==typeof n&&n;!t&&/destroy|hide/.test(n)||(t||e.data("bs.tooltip",t=new g(this,i)),"string"==typeof n&&t[n]())})},m.fn.tooltip.Constructor=g,m.fn.tooltip.noConflict=function(){return m.fn.tooltip=e,this}}(jQuery),function(s){"use strict";var a=function(e,t){this.init("popover",e,t)};if(!s.fn.tooltip)throw new Error("Popover requires tooltip.js");a.VERSION="3.3.5",a.DEFAULTS=s.extend({},s.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),((a.prototype=s.extend({},s.fn.tooltip.Constructor.prototype)).constructor=a).prototype.getDefaults=function(){return a.DEFAULTS},a.prototype.setContent=function(){var e=this.tip(),t=this.getTitle(),i=this.getContent();e.find(".popover-title")[this.options.html?"html":"text"](t),e.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof i?"html":"append":"text"](i),e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},a.prototype.hasContent=function(){return this.getTitle()||this.getContent()},a.prototype.getContent=function(){var e=this.$element,t=this.options;return e.attr("data-content")||("function"==typeof t.content?t.content.call(e[0]):t.content)},a.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var e=s.fn.popover;s.fn.popover=function(n){return this.each(function(){var e=s(this),t=e.data("bs.popover"),i="object"==typeof n&&n;!t&&/destroy|hide/.test(n)||(t||e.data("bs.popover",t=new a(this,i)),"string"==typeof n&&t[n]())})},s.fn.popover.Constructor=a,s.fn.popover.noConflict=function(){return s.fn.popover=e,this}}(jQuery),function(a){"use strict";function s(e,t){this.$body=a(document.body),this.$scrollElement=a(e).is(document.body)?a(window):a(e),this.options=a.extend({},s.DEFAULTS,t),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",a.proxy(this.process,this)),this.refresh(),this.process()}function t(n){return this.each(function(){var e=a(this),t=e.data("bs.scrollspy"),i="object"==typeof n&&n;t||e.data("bs.scrollspy",t=new s(this,i)),"string"==typeof n&&t[n]()})}s.VERSION="3.3.5",s.DEFAULTS={offset:10},s.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},s.prototype.refresh=function(){var e=this,n="offset",s=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),a.isWindow(this.$scrollElement[0])||(n="position",s=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var e=a(this),t=e.data("target")||e.attr("href"),i=/^#./.test(t)&&a(t);return i&&i.length&&i.is(":visible")&&[[i[n]().top+s,t]]||null}).sort(function(e,t){return e[0]-t[0]}).each(function(){e.offsets.push(this[0]),e.targets.push(this[1])})},s.prototype.process=function(){var e,t=this.$scrollElement.scrollTop()+this.options.offset,i=this.getScrollHeight(),n=this.options.offset+i-this.$scrollElement.height(),s=this.offsets,a=this.targets,r=this.activeTarget;if(this.scrollHeight!=i&&this.refresh(),n<=t)return r!=(e=a[a.length-1])&&this.activate(e);if(r&&t<s[0])return this.activeTarget=null,this.clear();for(e=s.length;e--;)r!=a[e]&&t>=s[e]&&(void 0===s[e+1]||t<s[e+1])&&this.activate(a[e])},s.prototype.activate=function(e){this.activeTarget=e,this.clear();var t=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',i=a(t).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active")),i.trigger("activate.bs.scrollspy")},s.prototype.clear=function(){a(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var e=a.fn.scrollspy;a.fn.scrollspy=t,a.fn.scrollspy.Constructor=s,a.fn.scrollspy.noConflict=function(){return a.fn.scrollspy=e,this},a(window).on("load.bs.scrollspy.data-api",function(){a('[data-spy="scroll"]').each(function(){var e=a(this);t.call(e,e.data())})})}(jQuery),function(o){"use strict";var r=function(e){this.element=o(e)};function t(i){return this.each(function(){var e=o(this),t=e.data("bs.tab");t||e.data("bs.tab",t=new r(this)),"string"==typeof i&&t[i]()})}r.VERSION="3.3.5",r.TRANSITION_DURATION=150,r.prototype.show=function(){var e=this.element,t=e.closest("ul:not(.dropdown-menu)"),i=e.data("target");if(i||(i=(i=e.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var n=t.find(".active:last a"),s=o.Event("hide.bs.tab",{relatedTarget:e[0]}),a=o.Event("show.bs.tab",{relatedTarget:n[0]});if(n.trigger(s),e.trigger(a),!a.isDefaultPrevented()&&!s.isDefaultPrevented()){var r=o(i);this.activate(e.closest("li"),t),this.activate(r,r.parent(),function(){n.trigger({type:"hidden.bs.tab",relatedTarget:e[0]}),e.trigger({type:"shown.bs.tab",relatedTarget:n[0]})})}}},r.prototype.activate=function(e,t,i){var n=t.find("> .active"),s=i&&o.support.transition&&(n.length&&n.hasClass("fade")||!!t.find("> .fade").length);function a(){n.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),e.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),s?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu").length&&e.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),i&&i()}n.length&&s?n.one("bsTransitionEnd",a).emulateTransitionEnd(r.TRANSITION_DURATION):a(),n.removeClass("in")};var e=o.fn.tab;o.fn.tab=t,o.fn.tab.Constructor=r,o.fn.tab.noConflict=function(){return o.fn.tab=e,this};var i=function(e){e.preventDefault(),t.call(o(this),"show")};o(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery),function(l){"use strict";var h=function(e,t){this.options=l.extend({},h.DEFAULTS,t),this.$target=l(this.options.target).on("scroll.bs.affix.data-api",l.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",l.proxy(this.checkPositionWithEventLoop,this)),this.$element=l(e),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};function i(n){return this.each(function(){var e=l(this),t=e.data("bs.affix"),i="object"==typeof n&&n;t||e.data("bs.affix",t=new h(this,i)),"string"==typeof n&&t[n]()})}h.VERSION="3.3.5",h.RESET="affix affix-top affix-bottom",h.DEFAULTS={offset:0,target:window},h.prototype.getState=function(e,t,i,n){var s=this.$target.scrollTop(),a=this.$element.offset(),r=this.$target.height();if(null!=i&&"top"==this.affixed)return s<i&&"top";if("bottom"==this.affixed)return null!=i?!(s+this.unpin<=a.top)&&"bottom":!(s+r<=e-n)&&"bottom";var o=null==this.affixed,l=o?s:a.top;return null!=i&&s<=i?"top":null!=n&&e-n<=l+(o?r:t)&&"bottom"},h.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(h.RESET).addClass("affix");var e=this.$target.scrollTop(),t=this.$element.offset();return this.pinnedOffset=t.top-e},h.prototype.checkPositionWithEventLoop=function(){setTimeout(l.proxy(this.checkPosition,this),1)},h.prototype.checkPosition=function(){if(this.$element.is(":visible")){var e=this.$element.height(),t=this.options.offset,i=t.top,n=t.bottom,s=Math.max(l(document).height(),l(document.body).height());"object"!=typeof t&&(n=i=t),"function"==typeof i&&(i=t.top(this.$element)),"function"==typeof n&&(n=t.bottom(this.$element));var a=this.getState(s,e,i,n);if(this.affixed!=a){null!=this.unpin&&this.$element.css("top","");var r="affix"+(a?"-"+a:""),o=l.Event(r+".bs.affix");if(this.$element.trigger(o),o.isDefaultPrevented())return;this.affixed=a,this.unpin="bottom"==a?this.getPinnedOffset():null,this.$element.removeClass(h.RESET).addClass(r).trigger(r.replace("affix","affixed")+".bs.affix")}"bottom"==a&&this.$element.offset({top:s-e-n})}};var e=l.fn.affix;l.fn.affix=i,l.fn.affix.Constructor=h,l.fn.affix.noConflict=function(){return l.fn.affix=e,this},l(window).on("load",function(){l('[data-spy="affix"]').each(function(){var e=l(this),t=e.data();t.offset=t.offset||{},null!=t.offsetBottom&&(t.offset.bottom=t.offsetBottom),null!=t.offsetTop&&(t.offset.top=t.offsetTop),i.call(e,t)})})}(jQuery),function(){function r(e,t){return e<t?-1:t<e?1:t<=e?0:NaN}function o(e){return null===e?NaN:+e}function l(e){return!isNaN(e)}function e(a){return{left:function(e,t,i,n){for(arguments.length<3&&(i=0),arguments.length<4&&(n=e.length);i<n;){var s=i+n>>>1;a(e[s],t)<0?i=s+1:n=s}return i},right:function(e,t,i,n){for(arguments.length<3&&(i=0),arguments.length<4&&(n=e.length);i<n;){var s=i+n>>>1;0<a(e[s],t)?n=s:i=s+1}return i}}}function h(e){return e.length}function t(e,t){for(var i in t)Object.defineProperty(e.prototype,i,{value:t[i],enumerable:!1})}function _(){this._=Object.create(null)}function i(e){return(e+="")===ia||e[0]===na?na+e:e}function n(e){return(e+="")[0]===na?e.slice(1):e}function s(e){return i(e)in this._}function a(e){return(e=i(e))in this._&&delete this._[e]}function u(){var e=[];for(var t in this._)e.push(n(t));return e}function d(){var e=0;for(var t in this._)++e;return e}function c(){for(var e in this._)return!1;return!0}function p(){this._=Object.create(null)}function f(t,i,n){return function(){var e=n.apply(i,arguments);return e===i?t:e}}function m(e,t){if(t in e)return t;t=t.charAt(0).toUpperCase()+t.slice(1);for(var i=0,n=sa.length;i<n;++i){var s=sa[i]+t;if(s in e)return s}}function v(){}function g(){}function y(s){function e(){for(var e,t=a,i=-1,n=t.length;++i<n;)(e=t[i].on)&&e.apply(this,arguments);return s}var a=[],r=new _;return e.on=function(e,t){var i,n=r.get(e);return arguments.length<2?n&&n.on:(n&&(n.on=null,a=a.slice(0,i=a.indexOf(n)).concat(a.slice(i+1)),r.remove(e)),t&&a.push(r.set(e,{on:t})),s)},e}function H(){Ws.event.preventDefault()}function b(){for(var e,t=Ws.event;e=t.sourceEvent;)t=e;return t}function A(s){for(var a=new g,e=0,t=arguments.length;++e<t;)a[arguments[e]]=y(a);return a.of=function(i,n){return function(e){try{var t=e.sourceEvent=Ws.event;e.target=s,Ws.event=e,a[e.type].apply(i,n)}finally{Ws.event=t}}},a}function x(e){return ra(e,da),e}function w(e){return"function"==typeof e?e:function(){return oa(e,this)}}function M(e){return"function"==typeof e?e:function(){return la(e,this)}}function j(t,i){return t=Ws.ns.qualify(t),null==i?t.local?function(){this.removeAttributeNS(t.space,t.local)}:function(){this.removeAttribute(t)}:"function"==typeof i?t.local?function(){var e=i.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}:function(){var e=i.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}:t.local?function(){this.setAttributeNS(t.space,t.local,i)}:function(){this.setAttribute(t,i)}}function k(e){return e.trim().replace(/\s+/g," ")}function L(e){return new RegExp("(?:^|\\s+)"+Ws.requote(e)+"(?:\\s+|$)","g")}function S(e){return(e+"").trim().split(/^|\s+/)}function T(i,n){var s=(i=S(i).map(D)).length;return"function"==typeof n?function(){for(var e=-1,t=n.apply(this,arguments);++e<s;)i[e](this,t)}:function(){for(var e=-1;++e<s;)i[e](this,n)}}function D(n){var s=L(n);return function(e,t){if(i=e.classList)return t?i.add(n):i.remove(n);var i=e.getAttribute("class")||"";t?(s.lastIndex=0,s.test(i)||e.setAttribute("class",k(i+" "+n))):e.setAttribute("class",k(i.replace(s," ")))}}function C(t,i,n){return null==i?function(){this.style.removeProperty(t)}:"function"==typeof i?function(){var e=i.apply(this,arguments);null==e?this.style.removeProperty(t):this.style.setProperty(t,e,n)}:function(){this.style.setProperty(t,i,n)}}function Y(t,i){return null==i?function(){delete this[t]}:"function"==typeof i?function(){var e=i.apply(this,arguments);null==e?delete this[t]:this[t]=e}:function(){this[t]=i}}function E(e){return"function"==typeof e?e:(e=Ws.ns.qualify(e)).local?function(){return this.ownerDocument.createElementNS(e.space,e.local)}:function(){return this.ownerDocument.createElementNS(this.namespaceURI,e)}}function I(){var e=this.parentNode;e&&e.removeChild(this)}function F(e){return{__data__:e}}function $(e){return function(){return ua(this,e)}}function P(e,t){for(var i=0,n=e.length;i<n;i++)for(var s,a=e[i],r=0,o=a.length;r<o;r++)(s=a[r])&&t(s,r,i);return e}function z(e){return ra(e,pa),e}function N(e){var t=e.__transition__;t&&++t.active}function O(s,t,i){function n(){var e=this[a];e&&(this.removeEventListener(s,e,e.$),delete this[a])}var a="__on"+s,e=s.indexOf("."),r=R;0<e&&(s=s.slice(0,e));var o=ma.get(s);return o&&(s=o,r=W),e?t?function(){var e=r(t,Bs(arguments));n.call(this),this.addEventListener(s,this[a]=e,e.$=i),e._=t}:n:t?v:function(){var e,t=new RegExp("^__on([^.]+)"+Ws.requote(s)+"$");for(var i in this)if(e=i.match(t)){var n=this[i];this.removeEventListener(e[1],n,n.$),delete this[i]}}}function R(i,n){return function(e){var t=Ws.event;Ws.event=e,n[0]=this.__data__;try{i.apply(this,n)}finally{Ws.event=t}}}function W(e,t){var i=R(e,t);return function(e){var t=e.relatedTarget;t&&(t===this||8&t.compareDocumentPosition(this))||i.call(this,e)}}function V(){var i=".dragsuppress-"+ ++va,n="click"+i,s=Ws.select(Gs).on("touchmove"+i,H).on("dragstart"+i,H).on("selectstart"+i,H);if(ga){var a=qs.style,r=a[ga];a[ga]="none"}return function(e){if(s.on(i,null),ga&&(a[ga]=r),e){var t=function(){s.on(n,null)};s.on(n,function(){H(),t()},!0),setTimeout(t,0)}}}function B(e,t){t.changedTouches&&(t=t.changedTouches[0]);var i=e.ownerSVGElement||e;if(i.createSVGPoint){var n=i.createSVGPoint();if(_a<0&&(Gs.scrollX||Gs.scrollY)){var s=(i=Ws.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important"))[0][0].getScreenCTM();_a=!(s.f||s.e),i.remove()}return _a?(n.x=t.pageX,n.y=t.pageY):(n.x=t.clientX,n.y=t.clientY),[(n=n.matrixTransform(e.getScreenCTM().inverse())).x,n.y]}var a=e.getBoundingClientRect();return[t.clientX-a.left-e.clientLeft,t.clientY-a.top-e.clientTop]}function U(){return Ws.event.changedTouches[0].identifier}function q(){return Ws.event.target}function G(){return Gs}function X(e){return 0<e?1:e<0?-1:0}function J(e,t,i){return(t[0]-e[0])*(i[1]-e[1])-(t[1]-e[1])*(i[0]-e[0])}function K(e){return 1<e?0:e<-1?xa:Math.acos(e)}function Z(e){return 1<e?ja:e<-1?-ja:Math.asin(e)}function Q(e){return((e=Math.exp(e))+1/e)/2}function ee(e){return(e=Math.sin(e/2))*e}function te(){}function ie(e,t,i){return this instanceof ie?(this.h=+e,this.s=+t,void(this.l=+i)):arguments.length<2?e instanceof ie?new ie(e.h,e.s,e.l):ge(""+e,ve,ie):new ie(e,t,i)}function ne(e,t,i){function n(e){return Math.round(255*(360<(t=e)?t-=360:t<0&&(t+=360),t<60?s+(a-s)*t/60:t<180?a:t<240?s+(a-s)*(240-t)/60:s));var t}var s,a;return e=isNaN(e)?0:(e%=360)<0?e+360:e,t=isNaN(t)?0:t<0?0:1<t?1:t,s=2*(i=i<0?0:1<i?1:i)-(a=i<=.5?i*(1+t):i+t-i*t),new ce(n(e+120),n(e),n(e-120))}function se(e,t,i){return this instanceof se?(this.h=+e,this.c=+t,void(this.l=+i)):arguments.length<2?e instanceof se?new se(e.h,e.c,e.l):le(e instanceof re?e.l:(e=_e((e=Ws.rgb(e)).r,e.g,e.b)).l,e.a,e.b):new se(e,t,i)}function ae(e,t,i){return isNaN(e)&&(e=0),isNaN(t)&&(t=0),new re(i,Math.cos(e*=ka)*t,Math.sin(e)*t)}function re(e,t,i){return this instanceof re?(this.l=+e,this.a=+t,void(this.b=+i)):arguments.length<2?e instanceof re?new re(e.l,e.a,e.b):e instanceof se?ae(e.h,e.c,e.l):_e((e=ce(e)).r,e.g,e.b):new re(e,t,i)}function oe(e,t,i){var n=(e+16)/116,s=n+t/500,a=n-i/200;return new ce(de(3.2404542*(s=he(s)*Aa)-1.5371385*(n=he(n)*Ia)-.4985314*(a=he(a)*Fa)),de(-.969266*s+1.8760108*n+.041556*a),de(.0556434*s-.2040259*n+1.0572252*a))}function le(e,t,i){return 0<e?new se(Math.atan2(i,t)*La,Math.sqrt(t*t+i*i),e):new se(NaN,NaN,e)}function he(e){return.206893034<e?e*e*e:(e-4/29)/7.787037}function ue(e){return.008856<e?Math.pow(e,1/3):7.787037*e+4/29}function de(e){return Math.round(255*(e<=.00304?12.92*e:1.055*Math.pow(e,1/2.4)-.055))}function ce(e,t,i){return this instanceof ce?(this.r=~~e,this.g=~~t,void(this.b=~~i)):arguments.length<2?e instanceof ce?new ce(e.r,e.g,e.b):ge(""+e,ce,ne):new ce(e,t,i)}function pe(e){return new ce(e>>16,255&e>>8,255&e)}function fe(e){return pe(e)+""}function me(e){return e<16?"0"+Math.max(0,e).toString(16):Math.min(255,e).toString(16)}function ge(e,t,i){var n,s,a,r=0,o=0,l=0;if(n=/([a-z]+)\((.*)\)/i.exec(e))switch(s=n[2].split(","),n[1]){case"hsl":return i(parseFloat(s[0]),parseFloat(s[1])/100,parseFloat(s[2])/100);case"rgb":return t(be(s[0]),be(s[1]),be(s[2]))}return(a=za.get(e))?t(a.r,a.g,a.b):(null==e||"#"!==e.charAt(0)||isNaN(a=parseInt(e.slice(1),16))||(4===e.length?(r=(3840&a)>>4,r|=r>>4,o=240&a,o|=o>>4,l=15&a,l|=l<<4):7===e.length&&(r=(16711680&a)>>16,o=(65280&a)>>8,l=255&a)),t(r,o,l))}function ve(e,t,i){var n,s,a=Math.min(e/=255,t/=255,i/=255),r=Math.max(e,t,i),o=r-a,l=(r+a)/2;return o?(s=l<.5?o/(r+a):o/(2-r-a),n=e==r?(t-i)/o+(t<i?6:0):t==r?(i-e)/o+2:(e-t)/o+4,n*=60):(n=NaN,s=0<l&&l<1?0:n),new ie(n,s,l)}function _e(e,t,i){var n=ue((.4124564*(e=ye(e))+.3575761*(t=ye(t))+.1804375*(i=ye(i)))/Aa),s=ue((.2126729*e+.7151522*t+.072175*i)/Ia);return re(116*s-16,500*(n-s),200*(s-ue((.0193339*e+.119192*t+.9503041*i)/Fa)))}function ye(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function be(e){var t=parseFloat(e);return"%"===e.charAt(e.length-1)?Math.round(2.55*t):t}function xe(e){return"function"==typeof e?e:function(){return e}}function we(e){return e}function Me(n){return function(e,t,i){return 2===arguments.length&&"function"==typeof t&&(i=t,t=null),je(e,t,n,i)}}function je(s,a,r,e){function t(){var e,t,i,n=u.status;if(!n&&((i=(t=u).responseType)&&"text"!==i?t.response:t.responseText)||200<=n&&n<300||304===n){try{e=r.call(o,u)}catch(e){return void l.error.call(o,e)}l.load.call(o,e)}else l.error.call(o,u)}var i,o={},l=Ws.dispatch("beforesend","progress","load","error"),h={},u=new XMLHttpRequest,d=null;return!Gs.XDomainRequest||"withCredentials"in u||!/^(http(s)?:)?\/\//.test(s)||(u=new XDomainRequest),"onload"in u?u.onload=u.onerror=t:u.onreadystatechange=function(){3<u.readyState&&t()},u.onprogress=function(e){var t=Ws.event;Ws.event=e;try{l.progress.call(o,u)}finally{Ws.event=t}},o.header=function(e,t){return e=(e+"").toLowerCase(),arguments.length<2?h[e]:(null==t?delete h[e]:h[e]=t+"",o)},o.mimeType=function(e){return arguments.length?(a=null==e?null:e+"",o):a},o.responseType=function(e){return arguments.length?(d=e,o):d},o.response=function(e){return r=e,o},["get","post"].forEach(function(e){o[e]=function(){return o.send.apply(o,[e].concat(Bs(arguments)))}}),o.send=function(e,t,i){if(2===arguments.length&&"function"==typeof t&&(i=t,t=null),u.open(e,s,!0),null==a||"accept"in h||(h.accept=a+",*/*"),u.setRequestHeader)for(var n in h)u.setRequestHeader(n,h[n]);return null!=a&&u.overrideMimeType&&u.overrideMimeType(a),null!=d&&(u.responseType=d),null!=i&&o.on("error",i).on("load",function(e){i(null,e)}),l.beforesend.call(o,u),u.send(null==t?null:t),o},o.abort=function(){return u.abort(),o},Ws.rebind(o,l,"on"),null==e?o:o.get(1===(i=e).length?function(e,t){i(null==e?t:null)}:i)}function ke(){var e=Le(),t=Se()-e;24<t?(isFinite(t)&&(clearTimeout(Wa),Wa=setTimeout(ke,t)),Ra=0):(Ra=1,Ba(ke))}function Le(){var e=Date.now();for(Va=Na;Va;)e>=Va.t&&(Va.f=Va.c(e-Va.t)),Va=Va.n;return e}function Se(){for(var e,t=Na,i=1/0;t;)t.f?t=e?e.n=t.n:Na=t.n:(t.t<i&&(i=t.t),t=(e=t).n);return Oa=e,i}function Te(e,t){return t-(e?Math.ceil(Math.log(e)/Math.LN10):1)}function De(e){return e+""}function Ce(){this._=new Date(1<arguments.length?Date.UTC.apply(this,arguments):arguments[0])}function Ye(n,a,r){function e(e){var t=n(e),i=s(t,1);return e-t<i-e?t:i}function o(e){return a(e=n(new Ja(e-1)),1),e}function s(e,t){return a(e=new Ja(+e),t),e}function l(e,t,i){var n=o(e),s=[];if(1<i)for(;n<t;)r(n)%i||s.push(new Date(+n)),a(n,1);else for(;n<t;)s.push(new Date(+n)),a(n,1);return s}(n.floor=n).round=e,n.ceil=o,n.offset=s,n.range=l;var t=n.utc=Ee(n);return(t.floor=t).round=Ee(e),t.ceil=Ee(o),t.offset=Ee(s),t.range=function(e,t,i){try{var n=new(Ja=Ce);return n._=e,l(n,t,i)}finally{Ja=Date}},n}function Ee(n){return function(e,t){try{var i=new(Ja=Ce);return i._=e,n(i,t)._}finally{Ja=Date}}}function He(e,t,i){var n=e<0?"-":"",s=(n?-e:e)+"",a=s.length;return n+(a<i?new Array(i-a+1).join(t)+s:s)}function Ae(e){return new RegExp("^(?:"+e.map(Ws.requote).join("|")+")","i")}function Ie(e){for(var t=new _,i=-1,n=e.length;++i<n;)t.set(e[i].toLowerCase(),i);return t}function Fe(e,t,i){Qa.lastIndex=0;var n=Qa.exec(t.slice(i,i+1));return n?(e.w=+n[0],i+n[0].length):-1}function $e(e,t,i){Qa.lastIndex=0;var n=Qa.exec(t.slice(i));return n?(e.U=+n[0],i+n[0].length):-1}function Pe(e,t,i){Qa.lastIndex=0;var n=Qa.exec(t.slice(i));return n?(e.W=+n[0],i+n[0].length):-1}function ze(e,t,i){Qa.lastIndex=0;var n=Qa.exec(t.slice(i,i+4));return n?(e.y=+n[0],i+n[0].length):-1}function Ne(e,t,i){Qa.lastIndex=0;var n,s=Qa.exec(t.slice(i,i+2));return s?(e.y=(n=+s[0])+(68<n?1900:2e3),i+s[0].length):-1}function Oe(e,t,i){return/^[+-]\d{4}$/.test(t=t.slice(i,i+5))?(e.Z=-t,i+5):-1}function Re(e,t,i){Qa.lastIndex=0;var n=Qa.exec(t.slice(i,i+2));return n?(e.m=n[0]-1,i+n[0].length):-1}function We(e,t,i){Qa.lastIndex=0;var n=Qa.exec(t.slice(i,i+2));return n?(e.d=+n[0],i+n[0].length):-1}function Ve(e,t,i){Qa.lastIndex=0;var n=Qa.exec(t.slice(i,i+3));return n?(e.j=+n[0],i+n[0].length):-1}function Be(e,t,i){Qa.lastIndex=0;var n=Qa.exec(t.slice(i,i+2));return n?(e.H=+n[0],i+n[0].length):-1}function Ue(e,t,i){Qa.lastIndex=0;var n=Qa.exec(t.slice(i,i+2));return n?(e.M=+n[0],i+n[0].length):-1}function qe(e,t,i){Qa.lastIndex=0;var n=Qa.exec(t.slice(i,i+2));return n?(e.S=+n[0],i+n[0].length):-1}function Ge(e,t,i){Qa.lastIndex=0;var n=Qa.exec(t.slice(i,i+3));return n?(e.L=+n[0],i+n[0].length):-1}function Xe(e){var t=e.getTimezoneOffset(),i=0<t?"-":"+",n=0|ta(t)/60,s=ta(t)%60;return i+He(n,"0",2)+He(s,"0",2)}function Je(e,t,i){er.lastIndex=0;var n=er.exec(t.slice(i,i+1));return n?i+n[0].length:-1}function Ke(n){for(var e=n.length,t=-1;++t<e;)n[t][0]=this(n[t][0]);return function(e){for(var t=0,i=n[t];!i[1](e);)i=n[++t];return i[0](e)}}function Ze(){}function Qe(e,t,i){var n=i.s=e+t,s=n-e,a=n-s;i.t=e-a+(t-s)}function et(e,t){e&&sr.hasOwnProperty(e.type)&&sr[e.type](e,t)}function tt(e,t,i){var n,s=-1,a=e.length-i;for(t.lineStart();++s<a;)n=e[s],t.point(n[0],n[1],n[2]);t.lineEnd()}function it(e,t){var i=-1,n=e.length;for(t.polygonStart();++i<n;)tt(e[i],t,1);t.polygonEnd()}function nt(){function i(e,t){t=t*ka/2+xa/4;var i=(e*=ka)-u,n=0<=i?1:-1,s=n*i,a=Math.cos(t),r=Math.sin(t),o=c*r,l=d*a+o*Math.cos(s),h=o*n*Math.sin(s);rr.add(Math.atan2(h,l)),u=e,d=a,c=r}var n,s,u,d,c;or.point=function(e,t){or.point=i,u=(n=e)*ka,d=Math.cos(t=(s=t)*ka/2+xa/4),c=Math.sin(t)},or.lineEnd=function(){i(n,s)}}function st(e){var t=e[0],i=e[1],n=Math.cos(i);return[n*Math.cos(t),n*Math.sin(t),Math.sin(i)]}function at(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function rt(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function ot(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function lt(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function ht(e){var t=Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}function ut(e){return[Math.atan2(e[1],e[0]),Z(e[2])]}function dt(e,t){return ta(e[0]-t[0])<ya&&ta(e[1]-t[1])<ya}function ct(e,t){e*=ka;var i=Math.cos(t*=ka);pt(i*Math.cos(e),i*Math.sin(e),Math.sin(t))}function pt(e,t,i){ur+=(e-ur)/++lr,dr+=(t-dr)/lr,cr+=(i-cr)/lr}function ft(){function n(e,t){e*=ka;var i=Math.cos(t*=ka),n=i*Math.cos(e),s=i*Math.sin(e),a=Math.sin(t),r=Math.atan2(Math.sqrt((r=l*a-h*s)*r+(r=h*n-o*a)*r+(r=o*s-l*n)*r),o*n+l*s+h*a);hr+=r,pr+=r*(o+(o=n)),fr+=r*(l+(l=s)),mr+=r*(h+(h=a)),pt(o,l,h)}var o,l,h;yr.point=function(e,t){e*=ka;var i=Math.cos(t*=ka);o=i*Math.cos(e),l=i*Math.sin(e),h=Math.sin(t),yr.point=n,pt(o,l,h)}}function mt(){yr.point=ct}function gt(){function n(e,t){e*=ka;var i=Math.cos(t*=ka),n=i*Math.cos(e),s=i*Math.sin(e),a=Math.sin(t),r=f*a-m*s,o=m*n-p*a,l=p*s-f*n,h=Math.sqrt(r*r+o*o+l*l),u=p*n+f*s+m*a,d=h&&-K(u)/h,c=Math.atan2(h,u);gr+=d*r,vr+=d*o,_r+=d*l,hr+=c,pr+=c*(p+(p=n)),fr+=c*(f+(f=s)),mr+=c*(m+(m=a)),pt(p,f,m)}var s,a,p,f,m;yr.point=function(e,t){s=e,a=t,yr.point=n,e*=ka;var i=Math.cos(t*=ka);p=i*Math.cos(e),f=i*Math.sin(e),m=Math.sin(t),pt(p,f,m)},yr.lineEnd=function(){n(s,a),yr.lineEnd=mt,yr.point=ct}}function vt(i,n){function e(e,t){return e=i(e,t),n(e[0],e[1])}return i.invert&&n.invert&&(e.invert=function(e,t){return(e=n.invert(e,t))&&i.invert(e[0],e[1])}),e}function _t(){return!0}function yt(e,t,i,n,o){var l=[],h=[];if(e.forEach(function(e){if(!((t=e.length-1)<=0)){var t,i=e[0],n=e[t];if(dt(i,n)){o.lineStart();for(var s=0;s<t;++s)o.point((i=e[s])[0],i[1]);return void o.lineEnd()}var a=new xt(i,e,null,!0),r=new xt(i,null,a,!1);a.o=r,l.push(a),h.push(r),r=new xt(n,null,a=new xt(n,e,null,!1),!0),a.o=r,l.push(a),h.push(r)}}),h.sort(t),bt(l),bt(h),l.length){for(var s=0,a=i,r=h.length;s<r;++s)h[s].e=a=!a;for(var u,d,c=l[0];;){for(var p=c,f=!0;p.v;)if((p=p.n)===c)return;u=p.z,o.lineStart();do{if(p.v=p.o.v=!0,p.e){if(f)for(s=0,r=u.length;s<r;++s)o.point((d=u[s])[0],d[1]);else n(p.x,p.n.x,1,o);p=p.n}else{if(f)for(s=(u=p.p.z).length-1;0<=s;--s)o.point((d=u[s])[0],d[1]);else n(p.x,p.p.x,-1,o);p=p.p}u=(p=p.o).z,f=!f}while(!p.v);o.lineEnd()}}}function bt(e){if(t=e.length){for(var t,i,n=0,s=e[0];++n<t;)s.n=i=e[n],i.p=s,s=i;s.n=i=e[0],i.p=s}}function xt(e,t,i,n){this.x=e,this.z=t,this.o=i,this.e=n,this.v=!1,this.n=this.p=null}function wt(_,y,b,x){return function(n,r){function t(e,t){var i=n(e,t);_(e=i[0],t=i[1])&&r.point(e,t)}function e(e,t){var i=n(e,t);c.point(i[0],i[1])}function i(){f.point=e,c.lineStart()}function s(){f.point=t,c.lineEnd()}function o(e,t){d.push([e,t]);var i=n(e,t);g.point(i[0],i[1])}function a(){g.lineStart(),d=[]}function l(){o(d[0][0],d[0][1]),g.lineEnd();var e,t=g.clean(),i=m.buffer(),n=i.length;if(d.pop(),u.push(d),d=null,n)if(1&t){var s,a=-1;if(0<(n=(e=i[0]).length-1)){for(v||(r.polygonStart(),v=!0),r.lineStart();++a<n;)r.point((s=e[a])[0],s[1]);r.lineEnd()}}else 1<n&&2&t&&i.push(i.pop().concat(i.shift())),h.push(i.filter(Mt))}var h,u,d,c=y(r),p=n.invert(x[0],x[1]),f={point:t,lineStart:i,lineEnd:s,polygonStart:function(){f.point=o,f.lineStart=a,f.lineEnd=l,h=[],u=[]},polygonEnd:function(){f.point=t,f.lineStart=i,f.lineEnd=s,h=Ws.merge(h);var e=function(e,t){var i=e[0],n=e[1],s=[Math.sin(i),-Math.cos(i),0],a=0,r=0;rr.reset();for(var o=0,l=t.length;o<l;++o){var h=t[o],u=h.length;if(u)for(var d=h[0],c=d[0],p=d[1]/2+xa/4,f=Math.sin(p),m=Math.cos(p),g=1;;){g===u&&(g=0);var v=(e=h[g])[0],_=e[1]/2+xa/4,y=Math.sin(_),b=Math.cos(_),x=v-c,w=0<=x?1:-1,M=w*x,j=xa<M,k=f*y;if(rr.add(Math.atan2(k*w*Math.sin(M),m*b+k*Math.cos(M))),a+=j?x+w*wa:x,j^i<=c^i<=v){var L=rt(st(d),st(e));ht(L);var S=rt(s,L);ht(S);var T=(j^0<=x?-1:1)*Z(S[2]);(T<n||n===T&&(L[0]||L[1]))&&(r+=j^0<=x?1:-1)}if(!g++)break;c=v,f=y,m=b,d=e}}return(a<-ya||a<ya&&rr<0)^1&r}(p,u);h.length?(v||(r.polygonStart(),v=!0),yt(h,kt,e,b,r)):e&&(v||(r.polygonStart(),v=!0),r.lineStart(),b(null,null,1,r),r.lineEnd()),v&&(r.polygonEnd(),v=!1),h=u=null},sphere:function(){r.polygonStart(),r.lineStart(),b(null,null,1,r),r.lineEnd(),r.polygonEnd()}},m=jt(),g=y(m),v=!1;return f}}function Mt(e){return 1<e.length}function jt(){var i,t=[];return{lineStart:function(){t.push(i=[])},point:function(e,t){i.push([e,t])},lineEnd:v,buffer:function(){var e=t;return t=[],i=null,e},rejoin:function(){1<t.length&&t.push(t.pop().concat(t.shift()))}}}function kt(e,t){return((e=e.x)[0]<0?e[1]-ja-ya:ja-e[1])-((t=t.x)[0]<0?t[1]-ja-ya:ja-t[1])}function Lt(u,d,c,p){return function(e){var t,i=e.a,n=e.b,s=i.x,a=i.y,r=0,o=1,l=n.x-s,h=n.y-a;if(t=u-s,l||!(0<t)){if(t/=l,l<0){if(t<r)return;t<o&&(o=t)}else if(0<l){if(o<t)return;r<t&&(r=t)}if(t=c-s,l||!(t<0)){if(t/=l,l<0){if(o<t)return;r<t&&(r=t)}else if(0<l){if(t<r)return;t<o&&(o=t)}if(t=d-a,h||!(0<t)){if(t/=h,h<0){if(t<r)return;t<o&&(o=t)}else if(0<h){if(o<t)return;r<t&&(r=t)}if(t=p-a,h||!(t<0)){if(t/=h,h<0){if(o<t)return;r<t&&(r=t)}else if(0<h){if(t<r)return;t<o&&(o=t)}return 0<r&&(e.a={x:s+r*l,y:a+r*h}),o<1&&(e.b={x:s+o*l,y:a+o*h}),e}}}}}}function St(b,x,w,M){function j(e,t){return ta(e[0]-b)<ya?0<t?0:3:ta(e[0]-w)<ya?0<t?2:1:ta(e[1]-x)<ya?0<t?1:0:0<t?3:2}function k(e,t){return L(e.x,t.x)}function L(e,t){var i=j(e,1),n=j(t,1);return i!==n?i-n:0===i?t[1]-e[1]:1===i?e[0]-t[0]:2===i?e[1]-t[1]:t[0]-e[0]}return function(s){function n(e,t,i,n){var s=0,a=0;if(null==e||(s=j(e,i))!==(a=j(t,i))||L(e,t)<0^0<i)for(;n.point(0===s||3===s?b:w,1<s?M:x),(s=(s+i+4)%4)!==a;);else n.point(t[0],t[1])}function a(e,t){return b<=e&&e<=w&&x<=t&&t<=M}function e(e,t){a(e,t)&&s.point(e,t)}function t(e,t){var i=a(e=Math.max(-xr,Math.min(xr,e)),t=Math.max(-xr,Math.min(xr,t)));if(u&&o.push([e,t]),m)l=e,h=t,m=!1,(d=i)&&(s.lineStart(),s.point(e,t));else if(i&&f)s.point(e,t);else{var n={a:{x:c,y:p},b:{x:e,y:t}};_(n)?(f||(s.lineStart(),s.point(n.a.x,n.a.y)),s.point(n.b.x,n.b.y),i||s.lineEnd(),g=!1):i&&(s.lineStart(),s.point(e,t),g=!1)}c=e,p=t,f=i}var r,u,o,l,h,d,c,p,f,m,g,v=s,i=jt(),_=Lt(b,x,w,M),y={point:e,lineStart:function(){y.point=t,u&&u.push(o=[]),f=!(m=!0),c=p=NaN},lineEnd:function(){r&&(t(l,h),d&&f&&i.rejoin(),r.push(i.buffer())),y.point=e,f&&s.lineEnd()},polygonStart:function(){s=i,r=[],u=[],g=!0},polygonEnd:function(){s=v,r=Ws.merge(r);var e=function(e){for(var t=0,i=u.length,n=e[1],s=0;s<i;++s)for(var a,r=1,o=u[s],l=o.length,h=o[0];r<l;++r)a=o[r],h[1]<=n?a[1]>n&&0<J(h,a,e)&&++t:a[1]<=n&&J(h,a,e)<0&&--t,h=a;return 0!==t}([b,M]),t=g&&e,i=r.length;(t||i)&&(s.polygonStart(),t&&(s.lineStart(),n(null,null,1,s),s.lineEnd()),i&&yt(r,k,e,n,s),s.polygonEnd()),r=u=o=null}};return y}}function Tt(e){var t=0,i=xa/3,n=Rt(e),s=n(t,i);return s.parallels=function(e){return arguments.length?n(t=e[0]*xa/180,i=e[1]*xa/180):[t/xa*180,i/xa*180]},s}function Dt(e,t){function i(e,t){var i=Math.sqrt(a-2*s*Math.sin(t))/s;return[i*Math.sin(e*=s),r-i*Math.cos(e)]}var n=Math.sin(e),s=(n+Math.sin(t))/2,a=1+n*(2*s-n),r=Math.sqrt(a)/s;return i.invert=function(e,t){var i=r-t;return[Math.atan2(e,i)/s,Z((a-(e*e+i*i)*s*s)/(2*s))]},i}function Ct(){function i(e,t){Mr+=r*e-a*t,a=e,r=t}var n,s,a,r;Tr.point=function(e,t){Tr.point=i,n=a=e,s=r=t},Tr.lineEnd=function(){i(n,s)}}function Yt(){function e(e,t){r.push("M",e,",",t,a)}function t(e,t){r.push("M",e,",",t),o.point=i}function i(e,t){r.push("L",e,",",t)}function n(){o.point=e}function s(){r.push("Z")}var a=Et(4.5),r=[],o={point:e,lineStart:function(){o.point=t},lineEnd:n,polygonStart:function(){o.lineEnd=s},polygonEnd:function(){o.lineEnd=n,o.point=e},pointRadius:function(e){return a=Et(e),o},result:function(){if(r.length){var e=r.join("");return r=[],e}}};return o}function Et(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}function Ht(e,t){ur+=e,dr+=t,++cr}function At(){function i(e,t){var i=e-a,n=t-r,s=Math.sqrt(i*i+n*n);pr+=s*(a+e)/2,fr+=s*(r+t)/2,mr+=s,Ht(a=e,r=t)}var a,r;Cr.point=function(e,t){Cr.point=i,Ht(a=e,r=t)}}function It(){Cr.point=Ht}function Ft(){function i(e,t){var i=e-a,n=t-r,s=Math.sqrt(i*i+n*n);pr+=s*(a+e)/2,fr+=s*(r+t)/2,mr+=s,gr+=(s=r*e-a*t)*(a+e),vr+=s*(r+t),_r+=3*s,Ht(a=e,r=t)}var n,s,a,r;Cr.point=function(e,t){Cr.point=i,Ht(n=a=e,s=r=t)},Cr.lineEnd=function(){i(n,s)}}function $t(i){function e(e,t){i.moveTo(e+r,t),i.arc(e,t,r,0,wa)}function t(e,t){i.moveTo(e,t),o.point=n}function n(e,t){i.lineTo(e,t)}function s(){o.point=e}function a(){i.closePath()}var r=4.5,o={point:e,lineStart:function(){o.point=t},lineEnd:s,polygonStart:function(){o.lineEnd=a},polygonEnd:function(){o.lineEnd=s,o.point=e},pointRadius:function(e){return r=e,o},result:v};return o}function Pt(D){function t(e){return(x?function(s){function e(e,t){e=D(e,t),s.point(e[0],e[1])}function t(){m=NaN,b.point=i,s.lineStart()}function i(e,t){var i=st([e,t]),n=D(e,t);C(m,g,f,v,_,y,m=n[0],g=n[1],f=e,v=i[0],_=i[1],y=i[2],x,s),s.point(m,g)}function n(){b.point=e,s.lineEnd()}function a(){t(),b.point=r,b.lineEnd=o}function r(e,t){i(l=e,t),h=m,u=g,d=v,c=_,p=y,b.point=i}function o(){C(m,g,f,v,_,y,h,u,l,d,c,p,x,s),(b.lineEnd=n)()}var l,h,u,d,c,p,f,m,g,v,_,y,b={point:e,lineStart:t,lineEnd:n,polygonStart:function(){s.polygonStart(),b.lineStart=a},polygonEnd:function(){s.polygonEnd(),b.lineStart=t}};return b}:function(i){return Nt(i,function(e,t){e=D(e,t),i.point(e[0],e[1])})})(e)}function C(e,t,i,n,s,a,r,o,l,h,u,d,c,p){var f=r-e,m=o-t,g=f*f+m*m;if(4*Y<g&&c--){var v=n+h,_=s+u,y=a+d,b=Math.sqrt(v*v+_*_+y*y),x=Math.asin(y/=b),w=ta(ta(y)-1)<ya||ta(i-l)<ya?(i+l)/2:Math.atan2(_,v),M=D(w,x),j=M[0],k=M[1],L=j-e,S=k-t,T=m*L-f*S;(Y<T*T/g||.3<ta((f*L+m*S)/g-.5)||n*h+s*u+a*d<E)&&(C(e,t,i,n,s,a,j,k,w,v/=b,_/=b,y,c,p),p.point(j,k),C(j,k,w,v,_,y,r,o,l,h,u,d,c,p))}}var Y=.5,E=Math.cos(30*ka),x=16;return t.precision=function(e){return arguments.length?(x=0<(Y=e*e)&&16,t):Math.sqrt(Y)},t}function zt(e){this.stream=e}function Nt(e,t){return{point:t,sphere:function(){e.sphere()},lineStart:function(){e.lineStart()},lineEnd:function(){e.lineEnd()},polygonStart:function(){e.polygonStart()},polygonEnd:function(){e.polygonEnd()}}}function Ot(e){return Rt(function(){return e})()}function Rt(e){function t(e){return[(e=o(e[0]*ka,e[1]*ka))[0]*c+l,h-e[1]*c]}function i(e){return(e=o.invert((e[0]-l)/c,(h-e[1])/c))&&[e[0]*La,e[1]*La]}function n(){o=vt(r=Ut(v,_,y),a);var e=a(m,g);return l=p-e[0]*c,h=f+e[1]*c,s()}function s(){return u&&(u.valid=!1,u=null),t}var a,r,o,l,h,u,d=Pt(function(e,t){return[(e=a(e,t))[0]*c+l,h-e[1]*c]}),c=150,p=480,f=250,m=0,g=0,v=0,_=0,y=0,b=br,x=we,w=null,M=null;return t.stream=function(e){return u&&(u.valid=!1),(u=Wt(b(r,d(x(e))))).valid=!0,u},t.clipAngle=function(e){return arguments.length?(b=null==e?(w=e,br):function(s){function p(e,t){return Math.cos(e)*Math.cos(t)>L}function f(e,t,i){var n=[1,0,0],s=rt(st(e),st(t)),a=at(s,s),r=s[0],o=a-r*r;if(!o)return!i&&e;var l=L*a/o,h=-L*r/o,u=rt(n,s),d=lt(n,l);ot(d,lt(s,h));var c=u,p=at(d,c),f=at(c,c),m=p*p-f*(at(d,d)-1);if(!(m<0)){var g=Math.sqrt(m),v=lt(c,(-p-g)/f);if(ot(v,d),v=ut(v),!i)return v;var _,y=e[0],b=t[0],x=e[1],w=t[1];b<y&&(_=y,y=b,b=_);var M=b-y,j=ta(M-xa)<ya;if(!j&&w<x&&(_=x,x=w,w=_),j||M<ya?j?0<x+w^v[1]<(ta(v[0]-y)<ya?x:w):x<=v[1]&&v[1]<=w:xa<M^(y<=v[0]&&v[0]<=b)){var k=lt(c,(-p+g)/f);return ot(k,d),[v,ut(k)]}}}function m(e,t){var i=g?s:xa-s,n=0;return e<-i?n|=1:i<e&&(n|=2),t<-i?n|=4:i<t&&(n|=8),n}var L=Math.cos(s),g=0<L,v=ta(L)>ya;return wt(p,function(o){var l,h,u,d,c;return{lineStart:function(){d=u=!1,c=1},point:function(e,t){var i,n=[e,t],s=p(e,t),a=g?s?0:m(e,t):s?m(e+(e<0?xa:-xa),t):0;if(!l&&(d=u=s)&&o.lineStart(),s!==u&&(i=f(l,n),(dt(l,i)||dt(n,i))&&(n[0]+=ya,n[1]+=ya,s=p(n[0],n[1]))),s!==u)c=0,s?(o.lineStart(),i=f(n,l),o.point(i[0],i[1])):(i=f(l,n),o.point(i[0],i[1]),o.lineEnd()),l=i;else if(v&&l&&g^s){var r;a&h||!(r=f(n,l,!0))||(c=0,g?(o.lineStart(),o.point(r[0][0],r[0][1]),o.point(r[1][0],r[1][1]),o.lineEnd()):(o.point(r[1][0],r[1][1]),o.lineEnd(),o.lineStart(),o.point(r[0][0],r[0][1])))}!s||l&&dt(l,n)||o.point(n[0],n[1]),l=n,u=s,h=a},lineEnd:function(){u&&o.lineEnd(),l=null},clean:function(){return c|(d&&u)<<1}}},Jt(s,6*ka),g?[0,-s]:[-xa,s-xa])}((w=+e)*ka),s()):w},t.clipExtent=function(e){return arguments.length?(x=(M=e)?St(e[0][0],e[0][1],e[1][0],e[1][1]):we,s()):M},t.scale=function(e){return arguments.length?(c=+e,n()):c},t.translate=function(e){return arguments.length?(p=+e[0],f=+e[1],n()):[p,f]},t.center=function(e){return arguments.length?(m=e[0]%360*ka,g=e[1]%360*ka,n()):[m*La,g*La]},t.rotate=function(e){return arguments.length?(v=e[0]%360*ka,_=e[1]%360*ka,y=2<e.length?e[2]%360*ka:0,n()):[v*La,_*La,y*La]},Ws.rebind(t,d,"precision"),function(){return a=e.apply(this,arguments),t.invert=a.invert&&i,n()}}function Wt(i){return Nt(i,function(e,t){i.point(e*ka,t*ka)})}function Vt(e,t){return[e,t]}function Bt(e,t){return[xa<e?e-wa:e<-xa?e+wa:e,t]}function Ut(e,t,i){return e?t||i?vt(Gt(e),Xt(t,i)):Gt(e):t||i?Xt(t,i):Bt}function qt(i){return function(e,t){return[xa<(e+=i)?e-wa:e<-xa?e+wa:e,t]}}function Gt(e){var t=qt(e);return t.invert=qt(-e),t}function Xt(e,t){function i(e,t){var i=Math.cos(t),n=Math.cos(e)*i,s=Math.sin(e)*i,a=Math.sin(t),r=a*o+n*l;return[Math.atan2(s*h-r*u,n*o-a*l),Z(r*h+s*u)]}var o=Math.cos(e),l=Math.sin(e),h=Math.cos(t),u=Math.sin(t);return i.invert=function(e,t){var i=Math.cos(t),n=Math.cos(e)*i,s=Math.sin(e)*i,a=Math.sin(t),r=a*h-s*u;return[Math.atan2(s*h+a*u,n*o+r*l),Z(r*o-n*l)]},i}function Jt(o,l){var h=Math.cos(o),u=Math.sin(o);return function(e,t,i,n){var s=i*l;null!=e?(e=Kt(h,e),t=Kt(h,t),(0<i?e<t:t<e)&&(e+=i*wa)):(e=o+i*wa,t=o-.5*s);for(var a,r=e;0<i?t<r:r<t;r-=s)n.point((a=ut([h,-u*Math.cos(r),-u*Math.sin(r)]))[0],a[1])}}function Kt(e,t){var i=st(t);i[0]-=e,ht(i);var n=K(-i[1]);return((-i[2]<0?-n:n)+2*Math.PI-ya)%(2*Math.PI)}function Zt(e,t,i){var n=Ws.range(e,t-ya,i).concat(t);return function(t){return n.map(function(e){return[t,e]})}}function Qt(e,t,i){var n=Ws.range(e,t-ya,i).concat(t);return function(t){return n.map(function(e){return[e,t]})}}function ei(e){return e.source}function ti(e){return e.target}function ii(a,r){function e(e,t){var i=Math.cos(e),n=Math.cos(t),s=a(i*n);return[s*n*Math.sin(e),s*Math.sin(t)]}return e.invert=function(e,t){var i=Math.sqrt(e*e+t*t),n=r(i),s=Math.sin(n),a=Math.cos(n);return[Math.atan2(e*s,i*a),Math.asin(i&&t*s/i)]},e}function ni(e,t){function i(e,t){0<r?t<-ja+ya&&(t=-ja+ya):ja-ya<t&&(t=ja-ya);var i=r/Math.pow(s(t),a);return[i*Math.sin(a*e),r-i*Math.cos(a*e)]}var n=Math.cos(e),s=function(e){return Math.tan(xa/4+e/2)},a=e===t?Math.sin(e):Math.log(n/Math.cos(t))/Math.log(s(t)/s(e)),r=n*Math.pow(s(e),a)/a;return a?(i.invert=function(e,t){var i=r-t,n=X(a)*Math.sqrt(e*e+i*i);return[Math.atan2(e,i)/a,2*Math.atan(Math.pow(r/n,1/a))-ja]},i):ai}function si(e,t){function i(e,t){var i=a-t;return[i*Math.sin(s*e),a-i*Math.cos(s*e)]}var n=Math.cos(e),s=e===t?Math.sin(e):(n-Math.cos(t))/(t-e),a=n/s+e;return ta(s)<ya?Vt:(i.invert=function(e,t){var i=a-t;return[Math.atan2(e,i)/s,a-X(s)*Math.sqrt(e*e+i*i)]},i)}function ai(e,t){return[e,Math.log(Math.tan(xa/4+t/2))]}function ri(e){var s,a=Ot(e),r=a.scale,o=a.translate,l=a.clipExtent;return a.scale=function(){var e=r.apply(a,arguments);return e===a?s?a.clipExtent(null):a:e},a.translate=function(){var e=o.apply(a,arguments);return e===a?s?a.clipExtent(null):a:e},a.clipExtent=function(e){var t=l.apply(a,arguments);if(t===a){if(s=null==e){var i=xa*r(),n=o();l([[n[0]-i,n[1]-i],[n[0]+i,n[1]+i]])}}else s&&(t=null);return t},a.clipExtent(null)}function oi(e,t){return[Math.log(Math.tan(xa/4+t/2)),-e]}function li(e){return e[0]}function hi(e){return e[1]}function ui(e){for(var t=e.length,i=[0,1],n=2,s=2;s<t;s++){for(;1<n&&J(e[i[n-2]],e[i[n-1]],e[s])<=0;)--n;i[n++]=s}return i.slice(0,n)}function di(e,t){return e[0]-t[0]||e[1]-t[1]}function ci(e,t,i){return(i[0]-t[0])*(e[1]-t[1])<(i[1]-t[1])*(e[0]-t[0])}function pi(e,t,i,n){var s=e[0],a=i[0],r=t[0]-s,o=n[0]-a,l=e[1],h=i[1],u=t[1]-l,d=n[1]-h,c=(o*(l-h)-d*(s-a))/(d*r-o*u);return[s+c*r,l+c*u]}function fi(e){var t=e[0],i=e[e.length-1];return!(t[0]-i[0]||t[1]-i[1])}function mi(){Hi(this),this.edge=this.site=this.circle=null}function gi(e){var t=Vr.pop()||new mi;return t.site=e,t}function vi(e){Li(e),Or.remove(e),Vr.push(e),Hi(e)}function _i(e){var t=e.circle,i=t.x,n=t.cy,s={x:i,y:n},a=e.P,r=e.N,o=[e];vi(e);for(var l=a;l.circle&&ta(i-l.circle.x)<ya&&ta(n-l.circle.cy)<ya;)a=l.P,o.unshift(l),vi(l),l=a;o.unshift(l),Li(l);for(var h=r;h.circle&&ta(i-h.circle.x)<ya&&ta(n-h.circle.cy)<ya;)r=h.N,o.push(h),vi(h),h=r;o.push(h),Li(h);var u,d=o.length;for(u=1;u<d;++u)h=o[u],l=o[u-1],Ci(h.edge,l.site,h.site,s);l=o[0],(h=o[d-1]).edge=Di(l.site,h.site,null,s),ki(l),ki(h)}function yi(e){for(var t,i,n,s,a=e.x,r=e.y,o=Or._;o;)if(n=bi(o,r)-a,ya<n)o=o.L;else{if(s=a-xi(o,r),!(ya<s)){-ya<n?(t=o.P,i=o):-ya<s?i=(t=o).N:t=i=o;break}if(!o.R){t=o;break}o=o.R}var l=gi(e);if(Or.insert(t,l),t||i){if(t===i)return Li(t),i=gi(t.site),Or.insert(l,i),l.edge=i.edge=Di(t.site,l.site),ki(t),void ki(i);if(!i)return void(l.edge=Di(t.site,l.site));Li(t),Li(i);var h=t.site,u=h.x,d=h.y,c=e.x-u,p=e.y-d,f=i.site,m=f.x-u,g=f.y-d,v=2*(c*g-p*m),_=c*c+p*p,y=m*m+g*g,b={x:(g*_-p*y)/v+u,y:(c*y-m*_)/v+d};Ci(i.edge,h,f,b),l.edge=Di(h,e,null,b),i.edge=Di(e,f,null,b),ki(t),ki(i)}}function bi(e,t){var i=e.site,n=i.x,s=i.y,a=s-t;if(!a)return n;var r=e.P;if(!r)return-1/0;var o=(i=r.site).x,l=i.y,h=l-t;if(!h)return o;var u=o-n,d=1/a-1/h,c=u/h;return d?(-c+Math.sqrt(c*c-2*d*(u*u/(-2*h)-l+h/2+s-a/2)))/d+n:(n+o)/2}function xi(e,t){var i=e.N;if(i)return bi(i,t);var n=e.site;return n.y===t?n.x:1/0}function wi(e){this.site=e,this.edges=[]}function Mi(e,t){return t.angle-e.angle}function ji(){Hi(this),this.x=this.y=this.arc=this.site=this.cy=null}function ki(e){var t=e.P,i=e.N;if(t&&i){var n=t.site,s=e.site,a=i.site;if(n!==a){var r=s.x,o=s.y,l=n.x-r,h=n.y-o,u=a.x-r,d=2*(l*(g=a.y-o)-h*u);if(!(-ba<=d)){var c=l*l+h*h,p=u*u+g*g,f=(g*c-h*p)/d,m=(l*p-u*c)/d,g=m+o,v=Br.pop()||new ji;v.arc=e,v.site=s,v.x=f+r,v.y=g+Math.sqrt(f*f+m*m),v.cy=g,e.circle=v;for(var _=null,y=Wr._;y;)if(v.y<y.y||v.y===y.y&&v.x<=y.x){if(!y.L){_=y.P;break}y=y.L}else{if(!y.R){_=y;break}y=y.R}Wr.insert(_,v),_||(Rr=v)}}}}function Li(e){var t=e.circle;t&&(t.P||(Rr=t.N),Wr.remove(t),Br.push(t),Hi(t),e.circle=null)}function Si(e,t){var i=e.b;if(i)return!0;var n,s,a=e.a,r=t[0][0],o=t[1][0],l=t[0][1],h=t[1][1],u=e.l,d=e.r,c=u.x,p=u.y,f=d.x,m=d.y,g=(c+f)/2,v=(p+m)/2;if(m===p){if(g<r||o<=g)return;if(f<c){if(a){if(a.y>=h)return}else a={x:g,y:l};i={x:g,y:h}}else{if(a){if(a.y<l)return}else a={x:g,y:h};i={x:g,y:l}}}else if(s=v-(n=(c-f)/(m-p))*g,n<-1||1<n)if(f<c){if(a){if(a.y>=h)return}else a={x:(l-s)/n,y:l};i={x:(h-s)/n,y:h}}else{if(a){if(a.y<l)return}else a={x:(h-s)/n,y:h};i={x:(l-s)/n,y:l}}else if(p<m){if(a){if(a.x>=o)return}else a={x:r,y:n*r+s};i={x:o,y:n*o+s}}else{if(a){if(a.x<r)return}else a={x:o,y:n*o+s};i={x:r,y:n*r+s}}return e.a=a,e.b=i,!0}function Ti(e,t){this.l=e,this.r=t,this.a=this.b=null}function Di(e,t,i,n){var s=new Ti(e,t);return zr.push(s),i&&Ci(s,e,t,i),n&&Ci(s,t,e,n),Nr[e.i].edges.push(new Yi(s,e,t)),Nr[t.i].edges.push(new Yi(s,t,e)),s}function Ci(e,t,i,n){e.a||e.b?e.l===i?e.b=n:e.a=n:(e.a=n,e.l=t,e.r=i)}function Yi(e,t,i){var n=e.a,s=e.b;this.edge=e,this.site=t,this.angle=i?Math.atan2(i.y-t.y,i.x-t.x):e.l===t?Math.atan2(s.x-n.x,n.y-s.y):Math.atan2(n.x-s.x,s.y-n.y)}function Ei(){this._=null}function Hi(e){e.U=e.C=e.L=e.R=e.P=e.N=null}function Ai(e,t){var i=t,n=t.R,s=i.U;s?s.L===i?s.L=n:s.R=n:e._=n,n.U=s,i.U=n,i.R=n.L,i.R&&(i.R.U=i),n.L=i}function Ii(e,t){var i=t,n=t.L,s=i.U;s?s.L===i?s.L=n:s.R=n:e._=n,n.U=s,i.U=n,i.L=n.R,i.L&&(i.L.U=i),n.R=i}function Fi(e){for(;e.L;)e=e.L;return e}function $i(e,t){var i,n,s,a=e.sort(Pi).pop();for(zr=[],Nr=new Array(e.length),Or=new Ei,Wr=new Ei;;)if(s=Rr,a&&(!s||a.y<s.y||a.y===s.y&&a.x<s.x))(a.x!==i||a.y!==n)&&(Nr[a.i]=new wi(a),yi(a),i=a.x,n=a.y),a=e.pop();else{if(!s)break;_i(s.arc)}t&&(function(e){for(var t,i=zr,n=Lt(e[0][0],e[0][1],e[1][0],e[1][1]),s=i.length;s--;)(!Si(t=i[s],e)||!n(t)||ta(t.a.x-t.b.x)<ya&&ta(t.a.y-t.b.y)<ya)&&(t.a=t.b=null,i.splice(s,1))}(t),function(e){for(var t,i,n,s,a,r,o,l,h,u,d=e[0][0],c=e[1][0],p=e[0][1],f=e[1][1],m=Nr,g=m.length;g--;)if((a=m[g])&&a.prepare())for(l=(o=a.edges).length,r=0;r<l;)n=(u=o[r].end()).x,s=u.y,t=(h=o[++r%l].start()).x,i=h.y,(ta(n-t)>ya||ta(s-i)>ya)&&(o.splice(r,0,new Yi((v=a.site,_=u,y=ta(n-d)<ya&&ya<f-s?{x:d,y:ta(t-d)<ya?i:f}:ta(s-f)<ya&&ya<c-n?{x:ta(i-f)<ya?t:c,y:f}:ta(n-c)<ya&&ya<s-p?{x:c,y:ta(t-c)<ya?i:p}:ta(s-p)<ya&&ya<n-d?{x:ta(i-p)<ya?t:d,y:p}:null,b=void 0,(b=new Ti(v,null)).a=_,b.b=y,zr.push(b),b),a.site,null)),++l);var v,_,y,b}(t));var r={cells:Nr,edges:zr};return Or=Wr=zr=Nr=null,r}function Pi(e,t){return t.y-e.y||t.x-e.x}function zi(e){return e.x}function Ni(e){return e.y}function Oi(e,t){e=Ws.rgb(e),t=Ws.rgb(t);var i=e.r,n=e.g,s=e.b,a=t.r-i,r=t.g-n,o=t.b-s;return function(e){return"#"+me(Math.round(i+a*e))+me(Math.round(n+r*e))+me(Math.round(s+o*e))}}function Ri(e,t){var i,n={},s={};for(i in e)i in t?n[i]=Bi(e[i],t[i]):s[i]=e[i];for(i in t)i in e||(s[i]=t[i]);return function(e){for(i in n)s[i]=n[i](e);return s}}function Wi(t,i){return t=+t,i=+i,function(e){return t*(1-e)+i*e}}function Vi(e,n){var t,i,s,a=qr.lastIndex=Gr.lastIndex=0,r=-1,o=[],l=[];for(e+="",n+="";(t=qr.exec(e))&&(i=Gr.exec(n));)(s=i.index)>a&&(s=n.slice(a,s),o[r]?o[r]+=s:o[++r]=s),(t=t[0])===(i=i[0])?o[r]?o[r]+=i:o[++r]=i:(o[++r]=null,l.push({i:r,x:Wi(t,i)})),a=Gr.lastIndex;return a<n.length&&(s=n.slice(a),o[r]?o[r]+=s:o[++r]=s),o.length<2?l[0]?(n=l[0].x,function(e){return n(e)+""}):function(){return n}:(n=l.length,function(e){for(var t,i=0;i<n;++i)o[(t=l[i]).i]=t.x(e);return o.join("")})}function Bi(e,t){for(var i,n=Ws.interpolators.length;0<=--n&&!(i=Ws.interpolators[n](e,t)););return i}function Ui(e,t){var i,n=[],s=[],a=e.length,r=t.length,o=Math.min(e.length,t.length);for(i=0;i<o;++i)n.push(Bi(e[i],t[i]));for(;i<a;++i)s[i]=e[i];for(;i<r;++i)s[i]=t[i];return function(e){for(i=0;i<o;++i)s[i]=n[i](e);return s}}function qi(t){return function(e){return 1-t(1-e)}}function Gi(t){return function(e){return.5*(e<.5?t(2*e):2-t(2-2*e))}}function Xi(e){return e*e}function Ji(e){return e*e*e}function Ki(e){if(e<=0)return 0;if(1<=e)return 1;var t=e*e,i=t*e;return 4*(e<.5?i:3*(e-t)+i-.75)}function Zi(e){return 1-Math.cos(e*ja)}function Qi(e){return Math.pow(2,10*(e-1))}function en(e){return 1-Math.sqrt(1-e*e)}function tn(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375}function nn(t,i){return i-=t,function(e){return Math.round(t+i*e)}}function sn(e){var t,i,n,s=[e.a,e.b],a=[e.c,e.d],r=rn(s),o=an(s,a),l=rn(((t=a)[0]+=(n=-o)*(i=s)[0],t[1]+=n*i[1],t))||0;s[0]*a[1]<a[0]*s[1]&&(s[0]*=-1,s[1]*=-1,r*=-1,o*=-1),this.rotate=(r?Math.atan2(s[1],s[0]):Math.atan2(-a[0],a[1]))*La,this.translate=[e.e,e.f],this.scale=[r,l],this.skew=l?Math.atan2(o,l)*La:0}function an(e,t){return e[0]*t[0]+e[1]*t[1]}function rn(e){var t=Math.sqrt(an(e,e));return t&&(e[0]/=t,e[1]/=t),t}function on(e,t){var n,s=[],a=[],i=Ws.transform(e),r=Ws.transform(t),o=i.translate,l=r.translate,h=i.rotate,u=r.rotate,d=i.skew,c=r.skew,p=i.scale,f=r.scale;return o[0]!=l[0]||o[1]!=l[1]?(s.push("translate(",null,",",null,")"),a.push({i:1,x:Wi(o[0],l[0])},{i:3,x:Wi(o[1],l[1])})):l[0]||l[1]?s.push("translate("+l+")"):s.push(""),h!=u?(180<h-u?u+=360:180<u-h&&(h+=360),a.push({i:s.push(s.pop()+"rotate(",null,")")-2,x:Wi(h,u)})):u&&s.push(s.pop()+"rotate("+u+")"),d!=c?a.push({i:s.push(s.pop()+"skewX(",null,")")-2,x:Wi(d,c)}):c&&s.push(s.pop()+"skewX("+c+")"),p[0]!=f[0]||p[1]!=f[1]?(n=s.push(s.pop()+"scale(",null,",",null,")"),a.push({i:n-4,x:Wi(p[0],f[0])},{i:n-2,x:Wi(p[1],f[1])})):(1!=f[0]||1!=f[1])&&s.push(s.pop()+"scale("+f+")"),n=a.length,function(e){for(var t,i=-1;++i<n;)s[(t=a[i]).i]=t.x(e);return s.join("")}}function ln(t,i){return i=(i-=t=+t)||1/i,function(e){return(e-t)/i}}function hn(t,i){return i=(i-=t=+t)||1/i,function(e){return Math.max(0,Math.min(1,(e-t)/i))}}function un(e){for(var t=e.source,i=e.target,n=function(e,t){if(e===t)return e;for(var i=dn(e),n=dn(t),s=i.pop(),a=n.pop(),r=null;s===a;)r=s,s=i.pop(),a=n.pop();return r}(t,i),s=[t];t!==n;)t=t.parent,s.push(t);for(var a=s.length;i!==n;)s.splice(a,0,i),i=i.parent;return s}function dn(e){for(var t=[],i=e.parent;null!=i;)t.push(e),i=(e=i).parent;return t.push(e),t}function cn(e){e.fixed|=2}function pn(e){e.fixed&=-7}function fn(e){e.fixed|=4,e.px=e.x,e.py=e.y}function mn(e){e.fixed&=-5}function gn(e,t){return Ws.rebind(e,t,"sort","children","value"),(e.nodes=e).links=wn,e}function vn(e,t){for(var i=[e];null!=(e=i.pop());)if(t(e),(s=e.children)&&(n=s.length))for(var n,s;0<=--n;)i.push(s[n])}function _n(e,t){for(var i=[e],n=[];null!=(e=i.pop());)if(n.push(e),(a=e.children)&&(s=a.length))for(var s,a,r=-1;++r<s;)i.push(a[r]);for(;null!=(e=n.pop());)t(e)}function yn(e){return e.children}function bn(e){return e.value}function xn(e,t){return t.value-e.value}function wn(e){return Ws.merge(e.map(function(t){return(t.children||[]).map(function(e){return{source:t,target:e}})}))}function Mn(e){return e.x}function jn(e){return e.y}function kn(e,t,i){e.y0=t,e.y=i}function Ln(e){return Ws.range(e.length)}function Sn(e){for(var t=-1,i=e[0].length,n=[];++t<i;)n[t]=0;return n}function Tn(e){for(var t,i=1,n=0,s=e[0][1],a=e.length;i<a;++i)(t=e[i][1])>s&&(n=i,s=t);return n}function Dn(e){return e.reduce(Cn,0)}function Cn(e,t){return e+t[1]}function Yn(e,t){return En(e,Math.ceil(Math.log(t.length)/Math.LN2+1))}function En(e,t){for(var i=-1,n=+e[0],s=(e[1]-n)/t,a=[];++i<=t;)a[i]=s*i+n;return a}function Hn(e){return[Ws.min(e),Ws.max(e)]}function An(e,t){return e.value-t.value}function In(e,t){var i=e._pack_next;(e._pack_next=t)._pack_prev=e,(t._pack_next=i)._pack_prev=t}function Fn(e,t){(e._pack_next=t)._pack_prev=e}function $n(e,t){var i=t.x-e.x,n=t.y-e.y,s=e.r+t.r;return i*i+n*n<.999*s*s}function Pn(e){function t(e){u=Math.min(e.x-e.r,u),d=Math.max(e.x+e.r,d),c=Math.min(e.y-e.r,c),p=Math.max(e.y+e.r,p)}if((i=e.children)&&(h=i.length)){var i,n,s,a,r,o,l,h,u=1/0,d=-1/0,c=1/0,p=-1/0;if(i.forEach(zn),(n=i[0]).x=-n.r,n.y=0,t(n),1<h&&((s=i[1]).x=s.r,s.y=0,t(s),2<h))for(On(n,s,a=i[2]),t(a),In(n,a),In(n._pack_prev=a,s),s=n._pack_next,r=3;r<h;r++){On(n,s,a=i[r]);var f=0,m=1,g=1;for(o=s._pack_next;o!==s;o=o._pack_next,m++)if($n(o,a)){f=1;break}if(1==f)for(l=n._pack_prev;l!==o._pack_prev&&!$n(l,a);l=l._pack_prev,g++);f?(m<g||m==g&&s.r<n.r?Fn(n,s=o):Fn(n=l,s),r--):(In(n,a),t(s=a))}var v=(u+d)/2,_=(c+p)/2,y=0;for(r=0;r<h;r++)(a=i[r]).x-=v,a.y-=_,y=Math.max(y,a.r+Math.sqrt(a.x*a.x+a.y*a.y));e.r=y,i.forEach(Nn)}}function zn(e){e._pack_next=e._pack_prev=e}function Nn(e){delete e._pack_next,delete e._pack_prev}function On(e,t,i){var n=e.r+i.r,s=t.x-e.x,a=t.y-e.y;if(n&&(s||a)){var r=t.r+i.r,o=s*s+a*a,l=.5+((n*=n)-(r*=r))/(2*o),h=Math.sqrt(Math.max(0,2*r*(n+o)-(n-=o)*n-r*r))/(2*o);i.x=e.x+l*s+h*a,i.y=e.y+l*a-h*s}else i.x=e.x+n,i.y=e.y}function Rn(e,t){return e.parent==t.parent?1:2}function Wn(e){var t=e.children;return t.length?t[0]:e.t}function Vn(e){var t,i=e.children;return(t=i.length)?i[t-1]:e.t}function Bn(e){return{x:e.x,y:e.y,dx:e.dx,dy:e.dy}}function Un(e,t){var i=e.x+t[3],n=e.y+t[0],s=e.dx-t[1]-t[3],a=e.dy-t[0]-t[2];return s<0&&(i+=s/2,s=0),a<0&&(n+=a/2,a=0),{x:i,y:n,dx:s,dy:a}}function qn(e){var t=e[0],i=e[e.length-1];return t<i?[t,i]:[i,t]}function Gn(e){return e.rangeExtent?e.rangeExtent():qn(e.range())}function Xn(e,t,i,n){var s=i(e[0],e[1]),a=n(t[0],t[1]);return function(e){return a(s(e))}}function Jn(e,t){var i,n=0,s=e.length-1,a=e[n],r=e[s];return r<a&&(i=n,n=s,s=i,i=a,a=r,r=i),e[n]=t.floor(a),e[s]=t.ceil(r),e}function Kn(i,e,t,n){var s=[],a=[],r=0,o=Math.min(i.length,e.length)-1;for(i[o]<i[0]&&(i=i.slice().reverse(),e=e.slice().reverse());++r<=o;)s.push(t(i[r-1],i[r])),a.push(n(e[r-1],e[r]));return function(e){var t=Ws.bisect(i,e,1,o)-1;return a[t](s[t](e))}}function Zn(e,t){return Ws.rebind(e,t,"range","rangeRound","interpolate","clamp")}function Qn(e,t){return Jn(e,(i=es(e,t)[2])?{floor:function(e){return Math.floor(e/i)*i},ceil:function(e){return Math.ceil(e/i)*i}}:ao);var i}function es(e,t){null==t&&(t=10);var i=qn(e),n=i[1]-i[0],s=Math.pow(10,Math.floor(Math.log(n/t)/Math.LN10)),a=t/n*s;return a<=.15?s*=10:a<=.35?s*=5:a<=.75&&(s*=2),i[0]=Math.ceil(i[0]/s)*s,i[1]=Math.floor(i[1]/s)*s+.5*s,i[2]=s,i}function ts(e,t){return Ws.range.apply(Ws,es(e,t))}function is(e,t,i){var n,s,a,r=es(e,t);if(i){var o=qa.exec(i);if(o.shift(),"s"===o[8]){var l=Ws.formatPrefix(Math.max(ta(r[0]),ta(r[1])));return o[7]||(o[7]="."+ns(l.scale(r[2]))),o[8]="f",i=Ws.format(o.join("")),function(e){return i(l.scale(e))+l.symbol}}o[7]||(o[7]="."+(n=o[8],a=ns((s=r)[2]),n in ro?Math.abs(a-ns(Math.max(ta(s[0]),ta(s[1]))))+ +("e"!==n):a-2*("%"===n))),i=o.join("")}else i=",."+ns(r[2])+"f";return Ws.format(i)}function ns(e){return-Math.floor(Math.log(e)/Math.LN10+.01)}function ss(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function as(){return 0}function rs(e){return e.innerRadius}function os(e){return e.outerRadius}function ls(e){return e.startAngle}function hs(e){return e.endAngle}function us(e){return e&&e.padAngle}function ds(e,t,i,n){return 0<(e-i)*t-(t-n)*e?0:1}function cs(e,t,i,n,s){var a=e[0]-t[0],r=e[1]-t[1],o=(s?n:-n)/Math.sqrt(a*a+r*r),l=o*r,h=-o*a,u=e[0]+l,d=e[1]+h,c=t[0]+l,p=t[1]+h,f=(u+c)/2,m=(d+p)/2,g=c-u,v=p-d,_=g*g+v*v,y=i-n,b=u*p-c*d,x=(v<0?-1:1)*Math.sqrt(y*y*_-b*b),w=(b*v-g*x)/_,M=(-b*g-v*x)/_,j=(b*v+g*x)/_,k=(-b*g+v*x)/_,L=w-f,S=M-m,T=j-f,D=k-m;return T*T+D*D<L*L+S*S&&(w=j,M=k),[[w-l,M-h],[w*i/y,M*i/y]]}function ps(h){function t(e){function t(){n.push("M",p(h(s),f))}for(var i,n=[],s=[],a=-1,r=e.length,o=xe(u),l=xe(d);++a<r;)c.call(this,i=e[a],a)?s.push([+o.call(this,i,a),+l.call(this,i,a)]):s.length&&(t(),s=[]);return s.length&&t(),n.length?n.join(""):null}var u=li,d=hi,c=_t,p=fs,i=p.key,f=.7;return t.x=function(e){return arguments.length?(u=e,t):u},t.y=function(e){return arguments.length?(d=e,t):d},t.defined=function(e){return arguments.length?(c=e,t):c},t.interpolate=function(e){return arguments.length?(i="function"==typeof e?p=e:(p=mo.get(e)||fs).key,t):i},t.tension=function(e){return arguments.length?(f=e,t):f},t}function fs(e){return e.join("L")}function ms(e){for(var t=0,i=e.length,n=e[0],s=[n[0],",",n[1]];++t<i;)s.push("V",(n=e[t])[1],"H",n[0]);return s.join("")}function gs(e){for(var t=0,i=e.length,n=e[0],s=[n[0],",",n[1]];++t<i;)s.push("H",(n=e[t])[0],"V",n[1]);return s.join("")}function vs(e,t){if(t.length<1||e.length!=t.length&&e.length!=t.length+2)return fs(e);var i=e.length!=t.length,n="",s=e[0],a=e[1],r=t[0],o=r,l=1;if(i&&(n+="Q"+(a[0]-2*r[0]/3)+","+(a[1]-2*r[1]/3)+","+a[0]+","+a[1],s=e[1],l=2),1<t.length){o=t[1],a=e[l],l++,n+="C"+(s[0]+r[0])+","+(s[1]+r[1])+","+(a[0]-o[0])+","+(a[1]-o[1])+","+a[0]+","+a[1];for(var h=2;h<t.length;h++,l++)a=e[l],o=t[h],n+="S"+(a[0]-o[0])+","+(a[1]-o[1])+","+a[0]+","+a[1]}if(i){var u=e[l];n+="Q"+(a[0]+2*o[0]/3)+","+(a[1]+2*o[1]/3)+","+u[0]+","+u[1]}return n}function _s(e,t){for(var i,n=[],s=(1-t)/2,a=e[0],r=e[1],o=1,l=e.length;++o<l;)i=a,a=r,r=e[o],n.push([s*(r[0]-i[0]),s*(r[1]-i[1])]);return n}function ys(e){if(e.length<3)return fs(e);var t=1,i=e.length,n=e[0],s=n[0],a=n[1],r=[s,s,s,(n=e[1])[0]],o=[a,a,a,n[1]],l=[s,",",a,"L",bs(_o,r),",",bs(_o,o)];for(e.push(e[i-1]);++t<=i;)n=e[t],r.shift(),r.push(n[0]),o.shift(),o.push(n[1]),xs(l,r,o);return e.pop(),l.push("L",n),l.join("")}function bs(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}function xs(e,t,i){e.push("C",bs(go,t),",",bs(go,i),",",bs(vo,t),",",bs(vo,i),",",bs(_o,t),",",bs(_o,i))}function ws(e,t){return(t[1]-e[1])/(t[0]-e[0])}function Ms(e){for(var t,i,n,s,a=[],r=function(e){for(var t=0,i=e.length-1,n=[],s=e[0],a=e[1],r=n[0]=ws(s,a);++t<i;)n[t]=(r+(r=ws(s=a,a=e[t+1])))/2;return n[t]=r,n}(e),o=-1,l=e.length-1;++o<l;)t=ws(e[o],e[o+1]),ta(t)<ya?r[o]=r[o+1]=0:9<(s=(i=r[o]/t)*i+(n=r[o+1]/t)*n)&&(s=3*t/Math.sqrt(s),r[o]=s*i,r[o+1]=s*n);for(o=-1;++o<=l;)s=(e[Math.min(l,o+1)][0]-e[Math.max(0,o-1)][0])/(6*(1+r[o]*r[o])),a.push([s||0,r[o]*s||0]);return a}function js(e){for(var t,i,n,s=-1,a=e.length;++s<a;)i=(t=e[s])[0],n=t[1]-ja,t[0]=i*Math.cos(n),t[1]=i*Math.sin(n);return e}function ks(f){function t(e){function t(){a.push("M",b(f(o),M),w,x(f(r.reverse()),M),"Z")}for(var i,n,s,a=[],r=[],o=[],l=-1,h=e.length,u=xe(m),d=xe(v),c=m===g?function(){return n}:xe(g),p=v===_?function(){return s}:xe(_);++l<h;)y.call(this,i=e[l],l)?(r.push([n=+u.call(this,i,l),s=+d.call(this,i,l)]),o.push([+c.call(this,i,l),+p.call(this,i,l)])):r.length&&(t(),r=[],o=[]);return r.length&&t(),a.length?a.join(""):null}var m=li,g=li,v=0,_=hi,y=_t,b=fs,i=b.key,x=b,w="L",M=.7;return t.x=function(e){return arguments.length?(m=g=e,t):g},t.x0=function(e){return arguments.length?(m=e,t):m},t.x1=function(e){return arguments.length?(g=e,t):g},t.y=function(e){return arguments.length?(v=_=e,t):_},t.y0=function(e){return arguments.length?(v=e,t):v},t.y1=function(e){return arguments.length?(_=e,t):_},t.defined=function(e){return arguments.length?(y=e,t):y},t.interpolate=function(e){return arguments.length?(i="function"==typeof e?b=e:(b=mo.get(e)||fs).key,x=b.reverse||b,w=b.closed?"M":"L",t):i},t.tension=function(e){return arguments.length?(M=e,t):M},t}function Ls(e){return e.radius}function Ss(e){return[e.x,e.y]}function Ts(){return 64}function Ds(){return"circle"}function Cs(e){var t=Math.sqrt(e/xa);return"M0,"+t+"A"+t+","+t+" 0 1,1 0,"+-t+"A"+t+","+t+" 0 1,1 0,"+t+"Z"}function Ys(e,t,i){return ra(e,jo),e.namespace=t,e.id=i,e}function Es(e,n,s,a){var r=e.id,o=e.namespace;return P(e,"function"==typeof s?function(e,t,i){e[o][r].tween.set(n,a(s.call(e,e.__data__,t,i)))}:(s=a(s),function(e){e[o][r].tween.set(n,s)}))}function Hs(e){return null==e&&(e=""),function(){this.textContent=e}}function As(e){return null==e?"__transition__":"__transition_"+e+"__"}function Is(u,d,c,p,e){var f=u[c]||(u[c]={active:0,count:0}),m=f[p];if(!m){var g=e.time;m=f[p]={tween:new _,time:g,delay:e.delay,duration:e.duration,ease:e.ease},e=null,++f.count,Ws.timer(function(e){function t(e){return f.active>p?s(!1):(f.active=p,m.event&&m.event.start.call(u,n,d),m.tween.forEach(function(e,t){(t=t.call(u,n,d))&&h.push(t)}),r=m.ease,a=m.duration,void Ws.timer(function(){return l.c=i(e||1)?_t:i,1},0,g))}function i(e){if(f.active!==p)return s(!1);for(var t=e/a,i=r(t),n=h.length;0<n;)h[--n].call(u,i);return 1<=t?s(!0):void 0}function s(e){return m.event&&m.event[e?"end":"interrupt"].call(u,n,d),--f.count?delete f[p]:delete u[c],1}var a,r,n=u.__data__,o=m.delay,l=Va,h=[];return l.t=o+g,o<=e?t(e-o):void(l.c=t)},0,g)}}function Fs(e,i,n){e.attr("transform",function(e){var t=i(e);return"translate("+(isFinite(t)?t:n(e))+",0)"})}function $s(e,i,n){e.attr("transform",function(e){var t=i(e);return"translate(0,"+(isFinite(t)?t:n(e))+")"})}function Ps(e){return e.toISOString()}function zs(t,s,e){function r(e){return t(e)}function o(e,t){var i=(e[1]-e[0])/t,n=Ws.bisect(Ho,i);return n==Ho.length?[s.year,es(e.map(function(e){return e/31536e6}),t)[2]]:n?s[i/Ho[n-1]<Ho[n]/i?n-1:n]:[Fo,es(e,t)[2]]}return r.invert=function(e){return Ns(t.invert(e))},r.domain=function(e){return arguments.length?(t.domain(e),r):t.domain().map(Ns)},r.nice=function(t,i){function n(e){return!isNaN(e)&&!t.range(e,Ns(+e+1),i).length}var e=r.domain(),s=qn(e),a=null==t?o(s,10):"number"==typeof t&&o(s,t);return a&&(t=a[0],i=a[1]),r.domain(Jn(e,1<i?{floor:function(e){for(;n(e=t.floor(e));)e=Ns(e-1);return e},ceil:function(e){for(;n(e=t.ceil(e));)e=Ns(+e+1);return e}}:t))},r.ticks=function(e,t){var i=qn(r.domain()),n=null==e?o(i,10):"number"==typeof e?o(i,e):!e.range&&[{range:e},t];return n&&(e=n[0],t=n[1]),e.range(i[0],Ns(+i[1]+1),t<1?1:t)},r.tickFormat=function(){return e},r.copy=function(){return zs(t.copy(),s,e)},Zn(r,t)}function Ns(e){return new Date(e)}function Os(e){return JSON.parse(e.responseText)}function Rs(e){var t=Us.createRange();return t.selectNode(Us.body),t.createContextualFragment(e.responseText)}var Ws={version:"3.5.0"};Date.now||(Date.now=function(){return+new Date});var Vs=[].slice,Bs=function(e){return Vs.call(e)},Us=document,qs=Us.documentElement,Gs=window;try{Bs(qs.childNodes)[0].nodeType}catch(e){Bs=function(e){for(var t=e.length,i=new Array(t);t--;)i[t]=e[t];return i}}try{Us.createElement("div").style.setProperty("opacity",0,"")}catch(e){var Xs=Gs.Element.prototype,Js=Xs.setAttribute,Ks=Xs.setAttributeNS,Zs=Gs.CSSStyleDeclaration.prototype,Qs=Zs.setProperty;Xs.setAttribute=function(e,t){Js.call(this,e,t+"")},Xs.setAttributeNS=function(e,t,i){Ks.call(this,e,t,i+"")},Zs.setProperty=function(e,t,i){Qs.call(this,e,t+"",i)}}Ws.ascending=r,Ws.descending=function(e,t){return t<e?-1:e<t?1:e<=t?0:NaN},Ws.min=function(e,t){var i,n,s=-1,a=e.length;if(1===arguments.length){for(;++s<a;)if(null!=(n=e[s])&&n<=n){i=n;break}for(;++s<a;)null!=(n=e[s])&&n<i&&(i=n)}else{for(;++s<a;)if(null!=(n=t.call(e,e[s],s))&&n<=n){i=n;break}for(;++s<a;)null!=(n=t.call(e,e[s],s))&&n<i&&(i=n)}return i},Ws.max=function(e,t){var i,n,s=-1,a=e.length;if(1===arguments.length){for(;++s<a;)if(null!=(n=e[s])&&n<=n){i=n;break}for(;++s<a;)null!=(n=e[s])&&i<n&&(i=n)}else{for(;++s<a;)if(null!=(n=t.call(e,e[s],s))&&n<=n){i=n;break}for(;++s<a;)null!=(n=t.call(e,e[s],s))&&i<n&&(i=n)}return i},Ws.extent=function(e,t){var i,n,s,a=-1,r=e.length;if(1===arguments.length){for(;++a<r;)if(null!=(n=e[a])&&n<=n){i=s=n;break}for(;++a<r;)null!=(n=e[a])&&(n<i&&(i=n),s<n&&(s=n))}else{for(;++a<r;)if(null!=(n=t.call(e,e[a],a))&&n<=n){i=s=n;break}for(;++a<r;)null!=(n=t.call(e,e[a],a))&&(n<i&&(i=n),s<n&&(s=n))}return[i,s]},Ws.sum=function(e,t){var i,n=0,s=e.length,a=-1;if(1===arguments.length)for(;++a<s;)l(i=+e[a])&&(n+=i);else for(;++a<s;)l(i=+t.call(e,e[a],a))&&(n+=i);return n},Ws.mean=function(e,t){var i,n=0,s=e.length,a=-1,r=s;if(1===arguments.length)for(;++a<s;)l(i=o(e[a]))?n+=i:--r;else for(;++a<s;)l(i=o(t.call(e,e[a],a)))?n+=i:--r;return r?n/r:void 0},Ws.quantile=function(e,t){var i=(e.length-1)*t+1,n=Math.floor(i),s=+e[n-1],a=i-n;return a?s+a*(e[n]-s):s},Ws.median=function(e,t){var i,n=[],s=e.length,a=-1;if(1===arguments.length)for(;++a<s;)l(i=o(e[a]))&&n.push(i);else for(;++a<s;)l(i=o(t.call(e,e[a],a)))&&n.push(i);return n.length?Ws.quantile(n.sort(r),.5):void 0};var ea=e(r);Ws.bisectLeft=ea.left,Ws.bisect=Ws.bisectRight=ea.right,Ws.bisector=function(i){return e(1===i.length?function(e,t){return r(i(e),t)}:i)},Ws.shuffle=function(e,t,i){(a=arguments.length)<3&&(i=e.length,a<2&&(t=0));for(var n,s,a=i-t;a;)s=0|Math.random()*a--,n=e[a+t],e[a+t]=e[s+t],e[s+t]=n;return e},Ws.permute=function(e,t){for(var i=t.length,n=new Array(i);i--;)n[i]=e[t[i]];return n},Ws.pairs=function(e){for(var t=0,i=e.length-1,n=e[0],s=new Array(i<0?0:i);t<i;)s[t]=[n,n=e[++t]];return s},Ws.zip=function(){if(!(n=arguments.length))return[];for(var e=-1,t=Ws.min(arguments,h),i=new Array(t);++e<t;)for(var n,s=-1,a=i[e]=new Array(n);++s<n;)a[s]=arguments[s][e];return i},Ws.transpose=function(e){return Ws.zip.apply(Ws,e)},Ws.keys=function(e){var t=[];for(var i in e)t.push(i);return t},Ws.values=function(e){var t=[];for(var i in e)t.push(e[i]);return t},Ws.entries=function(e){var t=[];for(var i in e)t.push({key:i,value:e[i]});return t},Ws.merge=function(e){for(var t,i,n,s=e.length,a=-1,r=0;++a<s;)r+=e[a].length;for(i=new Array(r);0<=--s;)for(t=(n=e[s]).length;0<=--t;)i[--r]=n[t];return i};var ta=Math.abs;Ws.range=function(e,t,i){if(arguments.length<3&&(i=1,arguments.length<2&&(t=e,e=0)),1/0==(t-e)/i)throw new Error("infinite range");var n,s=[],a=function(e){for(var t=1;e*t%1;)t*=10;return t}(ta(i)),r=-1;if(e*=a,t*=a,(i*=a)<0)for(;(n=e+i*++r)>t;)s.push(n/a);else for(;(n=e+i*++r)<t;)s.push(n/a);return s},Ws.map=function(e,t){var i=new _;if(e instanceof _)e.forEach(function(e,t){i.set(e,t)});else if(Array.isArray(e)){var n,s=-1,a=e.length;if(1===arguments.length)for(;++s<a;)i.set(s,e[s]);else for(;++s<a;)i.set(t.call(e,n=e[s],s),n)}else for(var r in e)i.set(r,e[r]);return i};var ia="__proto__",na="\0";t(_,{has:s,get:function(e){return this._[i(e)]},set:function(e,t){return this._[i(e)]=t},remove:a,keys:u,values:function(){var e=[];for(var t in this._)e.push(this._[t]);return e},entries:function(){var e=[];for(var t in this._)e.push({key:n(t),value:this._[t]});return e},size:d,empty:c,forEach:function(e){for(var t in this._)e.call(this,n(t),this._[t])}}),Ws.nest=function(){function d(i,e,n){if(n>=m.length)return p?p.call(f,e):c?e.sort(c):e;for(var t,s,a,r,o=-1,l=e.length,h=m[n++],u=new _;++o<l;)(r=u.get(t=h(s=e[o])))?r.push(s):u.set(t,[s]);return i?(s=i(),a=function(e,t){s.set(e,d(i,t,n))}):(s={},a=function(e,t){s[e]=d(i,t,n)}),u.forEach(a),s}var c,p,f={},m=[],t=[];return f.map=function(e,t){return d(t,e,0)},f.entries=function(e){return function i(e,n){if(n>=m.length)return e;var s=[],a=t[n++];return e.forEach(function(e,t){s.push({key:e,values:i(t,n)})}),a?s.sort(function(e,t){return a(e.key,t.key)}):s}(d(Ws.map,e,0),0)},f.key=function(e){return m.push(e),f},f.sortKeys=function(e){return t[m.length-1]=e,f},f.sortValues=function(e){return c=e,f},f.rollup=function(e){return p=e,f},f},Ws.set=function(e){var t=new p;if(e)for(var i=0,n=e.length;i<n;++i)t.add(e[i]);return t},t(p,{has:s,add:function(e){return this._[i(e+="")]=!0,e},remove:a,values:u,size:d,empty:c,forEach:function(e){for(var t in this._)e.call(this,n(t))}}),Ws.behavior={},Ws.rebind=function(e,t){for(var i,n=1,s=arguments.length;++n<s;)e[i=arguments[n]]=f(e,t,t[i]);return e};var sa=["webkit","ms","moz","Moz","o","O"];Ws.dispatch=function(){for(var e=new g,t=-1,i=arguments.length;++t<i;)e[arguments[t]]=y(e);return e},g.prototype.on=function(e,t){var i=e.indexOf("."),n="";if(0<=i&&(n=e.slice(i+1),e=e.slice(0,i)),e)return arguments.length<2?this[e].on(n):this[e].on(n,t);if(2===arguments.length){if(null==t)for(e in this)this.hasOwnProperty(e)&&this[e].on(n,null);return this}},Ws.event=null,Ws.requote=function(e){return e.replace(aa,"\\$&")};var aa=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,ra={}.__proto__?function(e,t){e.__proto__=t}:function(e,t){for(var i in t)e[i]=t[i]},oa=function(e,t){return t.querySelector(e)},la=function(e,t){return t.querySelectorAll(e)},ha=qs.matches||qs[m(qs,"matchesSelector")],ua=function(e,t){return ha.call(e,t)};"function"==typeof Sizzle&&(oa=function(e,t){return Sizzle(e,t)[0]||null},la=Sizzle,ua=Sizzle.matchesSelector),Ws.selection=function(){return fa};var da=Ws.selection.prototype=[];da.select=function(e){var t,i,n,s,a=[];e=w(e);for(var r=-1,o=this.length;++r<o;){a.push(t=[]),t.parentNode=(n=this[r]).parentNode;for(var l=-1,h=n.length;++l<h;)(s=n[l])?(t.push(i=e.call(s,s.__data__,l,r)),i&&"__data__"in s&&(i.__data__=s.__data__)):t.push(null)}return x(a)},da.selectAll=function(e){var t,i,n=[];e=M(e);for(var s=-1,a=this.length;++s<a;)for(var r=this[s],o=-1,l=r.length;++o<l;)(i=r[o])&&(n.push(t=Bs(e.call(i,i.__data__,o,s))),t.parentNode=i);return x(n)};var ca={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};Ws.ns={prefix:ca,qualify:function(e){var t=e.indexOf(":"),i=e;return 0<=t&&(i=e.slice(0,t),e=e.slice(t+1)),ca.hasOwnProperty(i)?{space:ca[i],local:e}:e}},da.attr=function(e,t){if(arguments.length<2){if("string"==typeof e){var i=this.node();return(e=Ws.ns.qualify(e)).local?i.getAttributeNS(e.space,e.local):i.getAttribute(e)}for(t in e)this.each(j(t,e[t]));return this}return this.each(j(e,t))},da.classed=function(e,t){if(arguments.length<2){if("string"==typeof e){var i=this.node(),n=(e=S(e)).length,s=-1;if(t=i.classList){for(;++s<n;)if(!t.contains(e[s]))return!1}else for(t=i.getAttribute("class");++s<n;)if(!L(e[s]).test(t))return!1;return!0}for(t in e)this.each(T(t,e[t]));return this}return this.each(T(e,t))},da.style=function(e,t,i){var n=arguments.length;if(n<3){if("string"!=typeof e){for(i in n<2&&(t=""),e)this.each(C(i,e[i],t));return this}if(n<2)return Gs.getComputedStyle(this.node(),null).getPropertyValue(e);i=""}return this.each(C(e,t,i))},da.property=function(e,t){if(arguments.length<2){if("string"==typeof e)return this.node()[e];for(t in e)this.each(Y(t,e[t]));return this}return this.each(Y(e,t))},da.text=function(t){return arguments.length?this.each("function"==typeof t?function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}:null==t?function(){this.textContent=""}:function(){this.textContent=t}):this.node().textContent},da.html=function(t){return arguments.length?this.each("function"==typeof t?function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}:null==t?function(){this.innerHTML=""}:function(){this.innerHTML=t}):this.node().innerHTML},da.append=function(e){return e=E(e),this.select(function(){return this.appendChild(e.apply(this,arguments))})},da.insert=function(e,t){return e=E(e),t=w(t),this.select(function(){return this.insertBefore(e.apply(this,arguments),t.apply(this,arguments)||null)})},da.remove=function(){return this.each(I)},da.data=function(e,f){function t(e,t){var i,n,s,a=e.length,r=t.length,o=Math.min(a,r),l=new Array(r),h=new Array(r),u=new Array(a);if(f){var d,c=new _,p=new Array(a);for(i=-1;++i<a;)c.has(d=f.call(n=e[i],n.__data__,i))?u[i]=n:c.set(d,n),p[i]=d;for(i=-1;++i<r;)(n=c.get(d=f.call(t,s=t[i],i)))?!0!==n&&((l[i]=n).__data__=s):h[i]=F(s),c.set(d,!0);for(i=-1;++i<a;)!0!==c.get(p[i])&&(u[i]=e[i])}else{for(i=-1;++i<o;)n=e[i],s=t[i],n?(n.__data__=s,l[i]=n):h[i]=F(s);for(;i<r;++i)h[i]=F(t[i]);for(;i<a;++i)u[i]=e[i]}h.update=l,h.parentNode=l.parentNode=u.parentNode=e.parentNode,m.push(h),g.push(l),v.push(u)}var i,n,s=-1,a=this.length;if(!arguments.length){for(e=new Array(a=(i=this[0]).length);++s<a;)(n=i[s])&&(e[s]=n.__data__);return e}var m=z([]),g=x([]),v=x([]);if("function"==typeof e)for(;++s<a;)t(i=this[s],e.call(i,i.parentNode.__data__,s));else for(;++s<a;)t(i=this[s],e);return g.enter=function(){return m},g.exit=function(){return v},g},da.datum=function(e){return arguments.length?this.property("__data__",e):this.property("__data__")},da.filter=function(e){var t,i,n,s=[];"function"!=typeof e&&(e=$(e));for(var a=0,r=this.length;a<r;a++){s.push(t=[]),t.parentNode=(i=this[a]).parentNode;for(var o=0,l=i.length;o<l;o++)(n=i[o])&&e.call(n,n.__data__,o,a)&&t.push(n)}return x(s)},da.order=function(){for(var e=-1,t=this.length;++e<t;)for(var i,n=this[e],s=n.length-1,a=n[s];0<=--s;)(i=n[s])&&(a&&a!==i.nextSibling&&a.parentNode.insertBefore(i,a),a=i);return this},da.sort=function(e){e=function(i){return arguments.length||(i=r),function(e,t){return e&&t?i(e.__data__,t.__data__):!e-!t}}.apply(this,arguments);for(var t=-1,i=this.length;++t<i;)this[t].sort(e);return this.order()},da.each=function(n){return P(this,function(e,t,i){n.call(e,e.__data__,t,i)})},da.call=function(e){var t=Bs(arguments);return e.apply(t[0]=this,t),this},da.empty=function(){return!this.node()},da.node=function(){for(var e=0,t=this.length;e<t;e++)for(var i=this[e],n=0,s=i.length;n<s;n++){var a=i[n];if(a)return a}return null},da.size=function(){var e=0;return P(this,function(){++e}),e};var pa=[];Ws.selection.enter=z,(Ws.selection.enter.prototype=pa).append=da.append,pa.empty=da.empty,pa.node=da.node,pa.call=da.call,pa.size=da.size,pa.select=function(e){for(var t,i,n,s,a,r=[],o=-1,l=this.length;++o<l;){n=(s=this[o]).update,r.push(t=[]),t.parentNode=s.parentNode;for(var h=-1,u=s.length;++h<u;)(a=s[h])?(t.push(n[h]=i=e.call(s.parentNode,a.__data__,h,o)),i.__data__=a.__data__):t.push(null)}return x(r)},pa.insert=function(e,t){return arguments.length<2&&(r=this,t=function(e,t,i){var n,s=r[i].update,a=s.length;for(i!=l&&(l=i,o=0),o<=t&&(o=t+1);!(n=s[o])&&++o<a;);return n}),da.insert.call(this,e,t);var r,o,l},da.transition=function(e){for(var t,i,n=bo||++ko,s=As(e),a=[],r=xo||{time:Date.now(),ease:Ki,delay:0,duration:250},o=-1,l=this.length;++o<l;){a.push(t=[]);for(var h=this[o],u=-1,d=h.length;++u<d;)(i=h[u])&&Is(i,u,s,n,r),t.push(i)}return Ys(a,s,n)},da.interrupt=function(e){var t=As(e);return this.each(function(){var e=this[t];e&&++e.active})},Ws.select=function(e){var t=["string"==typeof e?oa(e,Us):e];return t.parentNode=qs,x([t])},Ws.selectAll=function(e){var t=Bs("string"==typeof e?la(e,Us):e);return t.parentNode=qs,x([t])};var fa=Ws.select(qs);da.on=function(e,t,i){var n=arguments.length;if(n<3){if("string"!=typeof e){for(i in n<2&&(t=!1),e)this.each(O(i,e[i],t));return this}if(n<2)return(n=this.node()["__on"+e])&&n._;i=!1}return this.each(O(e,t,i))};var ma=Ws.map({mouseenter:"mouseover",mouseleave:"mouseout"});ma.forEach(function(e){"on"+e in Us&&ma.remove(e)});var ga="onselectstart"in Us?null:m(qs.style,"userSelect"),va=0;Ws.mouse=function(e){return B(e,b())};var _a=/WebKit/.test(Gs.navigator.userAgent)?-1:0;Ws.touch=function(e,t,i){if(arguments.length<3&&(i=t,t=b().changedTouches),t)for(var n,s=0,a=t.length;s<a;++s)if((n=t[s]).identifier===i)return B(e,n)},Ws.behavior.drag=function(){function t(){this.on("mousedown.drag",i).on("touchstart.drag",n)}function e(u,d,c,p,f){return function(){var n,e=Ws.event.target,s=this.parentNode,a=m.of(this,arguments),r=0,o=u(),t=".drag"+(null==o?"":"-"+o),i=Ws.select(c()).on(p+t,function(){var e,t,i=d(s,o);i&&(e=i[0]-h[0],t=i[1]-h[1],r|=e|t,a({type:"drag",x:(h=i)[0]+n[0],y:i[1]+n[1],dx:e,dy:t}))}).on(f+t,function(){d(s,o)&&(i.on(p+t,null).on(f+t,null),l(r&&Ws.event.target===e),a({type:"dragend"}))}),l=V(),h=d(s,o);g?n=[(n=g.apply(this,arguments)).x-h[0],n.y-h[1]]:n=[0,0],a({type:"dragstart"})}}var m=A(t,"drag","dragstart","dragend"),g=null,i=e(v,Ws.mouse,G,"mousemove","mouseup"),n=e(U,Ws.touch,q,"touchmove","touchend");return t.origin=function(e){return arguments.length?(g=e,t):g},Ws.rebind(t,m,"on")},Ws.touches=function(i,e){return arguments.length<2&&(e=b().touches),e?Bs(e).map(function(e){var t=B(i,e);return t.identifier=e.identifier,t}):[]};var ya=1e-6,ba=ya*ya,xa=Math.PI,wa=2*xa,Ma=wa-ya,ja=xa/2,ka=xa/180,La=180/xa,Sa=Math.SQRT2;Ws.interpolateZoom=function(e,t){function i(e){var t,i,n=e*v;if(g){var s=Q(m),a=l/(2*c)*(s*(i=Sa*n+m,((i=Math.exp(2*i))-1)/(i+1))-(t=m,((t=Math.exp(t))-1/t)/2));return[r+a*h,o+a*u,l*s/Q(Sa*n+m)]}return[r+e*h,o+e*u,l*Math.exp(Sa*n)]}var r=e[0],o=e[1],l=e[2],n=t[0],s=t[1],a=t[2],h=n-r,u=s-o,d=h*h+u*u,c=Math.sqrt(d),p=(a*a-l*l+4*d)/(2*l*2*c),f=(a*a-l*l-4*d)/(2*a*2*c),m=Math.log(Math.sqrt(p*p+1)-p),g=Math.log(Math.sqrt(f*f+1)-f)-m,v=(g||Math.log(a/l))/Sa;return i.duration=1e3*v,i},Ws.behavior.zoom=function(){function s(e){e.on(D,k).on(Ca+".zoom",i).on("dblclick.zoom",n).on(Y,L)}function o(e){return[(e[0]-T.x)/T.k,(e[1]-T.y)/T.k]}function b(e){T.k=Math.max(g[0],Math.min(g[1],e))}function x(e,t){var i;t=[(i=t)[0]*T.k+T.x,i[1]*T.k+T.y],T.x+=e[0]-t[0],T.y+=e[1]-t[1]}function w(e,t,i,n){e.__chart__={x:T.x,y:T.y,k:T.k},b(Math.pow(2,n)),x(h=t,i),e=Ws.select(e),0<v&&(e=e.transition().duration(v)),e.call(s.event)}function t(){c&&c.domain(d.range().map(function(e){return(e-T.x)/T.k}).map(d.invert)),f&&f.domain(p.range().map(function(e){return(e-T.y)/T.k}).map(p.invert))}function l(e){_++||e({type:"zoomstart"})}function M(e){t(),e({type:"zoom",scale:T.k,translate:[T.x,T.y]})}function j(e){--_||e({type:"zoomend"}),h=null}function k(){var e=this,t=Ws.event.target,i=E.of(e,arguments),n=0,s=Ws.select(Gs).on(y,function(){n=1,x(Ws.mouse(e),a),M(i)}).on(C,function(){s.on(y,null).on(C,null),r(n&&Ws.event.target===t),j(i)}),a=o(Ws.mouse(e)),r=V();N(e),l(i)}function L(){function u(){var e=Ws.touches(p);return h=T.k,e.forEach(function(e){e.identifier in m&&(m[e.identifier]=o(e))}),e}function e(){var e=Ws.event.target;Ws.select(e).on(v,d).on(_,c),y.push(e);for(var t=Ws.event.changedTouches,i=0,n=t.length;i<n;++i)m[t[i].identifier]=null;var s=u(),a=Date.now();if(1===s.length){if(a-S<500){var r=s[0];w(p,r,m[r.identifier],Math.floor(Math.log(T.k)/Math.LN2)+1),H()}S=a}else if(1<s.length){r=s[0];var o=s[1],l=r[0]-o[0],h=r[1]-o[1];g=l*l+h*h}}function d(){var e,t,i,n,s=Ws.touches(p);N(p);for(var a=0,r=s.length;a<r;++a,n=null)if(i=s[a],n=m[i.identifier]){if(t)break;e=i,t=n}if(n){var o=(o=i[0]-e[0])*o+(o=i[1]-e[1])*o,l=g&&Math.sqrt(o/g);e=[(e[0]+i[0])/2,(e[1]+i[1])/2],t=[(t[0]+n[0])/2,(t[1]+n[1])/2],b(l*h)}S=null,x(e,t),M(f)}function c(){if(Ws.event.touches.length){for(var e=Ws.event.changedTouches,t=0,i=e.length;t<i;++t)delete m[e[t].identifier];for(var n in m)return void u()}Ws.selectAll(y).on(s,null),a.on(D,k).on(Y,L),r(),j(f)}var h,p=this,f=E.of(p,arguments),m={},g=0,s=".zoom-"+Ws.event.changedTouches[0].identifier,v="touchmove"+s,_="touchend"+s,y=[],a=Ws.select(p),r=V();e(),l(f),a.on(D,null).on(Y,e)}function i(){var e=E.of(this,arguments);u?clearTimeout(u):(a=o(h=r||Ws.mouse(this)),N(this),l(e)),u=setTimeout(function(){u=null,j(e)},50),H(),b(Math.pow(2,.002*Ta())*T.k),x(h,a),M(e)}function n(){var e=Ws.mouse(this),t=Math.log(T.k)/Math.LN2;w(this,e,o(e),Ws.event.shiftKey?Math.ceil(t)-1:Math.floor(t)+1)}var a,h,r,u,S,d,c,p,f,T={x:0,y:0,k:1},m=[960,500],g=Da,v=250,_=0,D="mousedown.zoom",y="mousemove.zoom",C="mouseup.zoom",Y="touchstart.zoom",E=A(s,"zoomstart","zoom","zoomend");return s.event=function(e){e.each(function(){var o=E.of(this,arguments),t=T;bo?Ws.select(this).transition().each("start.zoom",function(){T=this.__chart__||{x:0,y:0,k:1},l(o)}).tween("zoom:zoom",function(){var n=m[0],e=m[1],s=h?h[0]:n/2,a=h?h[1]:e/2,r=Ws.interpolateZoom([(s-T.x)/T.k,(a-T.y)/T.k,n/T.k],[(s-t.x)/t.k,(a-t.y)/t.k,n/t.k]);return function(e){var t=r(e),i=n/t[2];this.__chart__=T={x:s-t[0]*i,y:a-t[1]*i,k:i},M(o)}}).each("interrupt.zoom",function(){j(o)}).each("end.zoom",function(){j(o)}):(this.__chart__=T,l(o),M(o),j(o))})},s.translate=function(e){return arguments.length?(T={x:+e[0],y:+e[1],k:T.k},t(),s):[T.x,T.y]},s.scale=function(e){return arguments.length?(T={x:T.x,y:T.y,k:+e},t(),s):T.k},s.scaleExtent=function(e){return arguments.length?(g=null==e?Da:[+e[0],+e[1]],s):g},s.center=function(e){return arguments.length?(r=e&&[+e[0],+e[1]],s):r},s.size=function(e){return arguments.length?(m=e&&[+e[0],+e[1]],s):m},s.duration=function(e){return arguments.length?(v=+e,s):v},s.x=function(e){return arguments.length?(d=(c=e).copy(),T={x:0,y:0,k:1},s):c},s.y=function(e){return arguments.length?(p=(f=e).copy(),T={x:0,y:0,k:1},s):f},Ws.rebind(s,E,"on")};var Ta,Da=[0,1/0],Ca="onwheel"in Us?(Ta=function(){return-Ws.event.deltaY*(Ws.event.deltaMode?120:1)},"wheel"):"onmousewheel"in Us?(Ta=function(){return Ws.event.wheelDelta},"mousewheel"):(Ta=function(){return-Ws.event.detail},"MozMousePixelScroll");(Ws.color=te).prototype.toString=function(){return this.rgb()+""};var Ya=(Ws.hsl=ie).prototype=new te;Ya.brighter=function(e){return e=Math.pow(.7,arguments.length?e:1),new ie(this.h,this.s,this.l/e)},Ya.darker=function(e){return e=Math.pow(.7,arguments.length?e:1),new ie(this.h,this.s,e*this.l)},Ya.rgb=function(){return ne(this.h,this.s,this.l)};var Ea=(Ws.hcl=se).prototype=new te;Ea.brighter=function(e){return new se(this.h,this.c,Math.min(100,this.l+Ha*(arguments.length?e:1)))},Ea.darker=function(e){return new se(this.h,this.c,Math.max(0,this.l-Ha*(arguments.length?e:1)))},Ea.rgb=function(){return ae(this.h,this.c,this.l).rgb()},Ws.lab=re;var Ha=18,Aa=.95047,Ia=1,Fa=1.08883,$a=re.prototype=new te;$a.brighter=function(e){return new re(Math.min(100,this.l+Ha*(arguments.length?e:1)),this.a,this.b)},$a.darker=function(e){return new re(Math.max(0,this.l-Ha*(arguments.length?e:1)),this.a,this.b)},$a.rgb=function(){return oe(this.l,this.a,this.b)};var Pa=(Ws.rgb=ce).prototype=new te;Pa.brighter=function(e){e=Math.pow(.7,arguments.length?e:1);var t=this.r,i=this.g,n=this.b;return t||i||n?(t&&t<30&&(t=30),i&&i<30&&(i=30),n&&n<30&&(n=30),new ce(Math.min(255,t/e),Math.min(255,i/e),Math.min(255,n/e))):new ce(30,30,30)},Pa.darker=function(e){return new ce((e=Math.pow(.7,arguments.length?e:1))*this.r,e*this.g,e*this.b)},Pa.hsl=function(){return ve(this.r,this.g,this.b)},Pa.toString=function(){return"#"+me(this.r)+me(this.g)+me(this.b)};var za=Ws.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});za.forEach(function(e,t){za.set(e,pe(t))}),Ws.functor=xe,Ws.xhr=Me(we),Ws.dsv=function(s,a){function r(e,t,i){arguments.length<3&&(i=t,t=null);var n=je(e,a,null==t?o:l(t),i);return n.row=function(e){return arguments.length?n.response(null==(t=e)?o:l(e)):t},n}function o(e){return r.parse(e.responseText)}function l(t){return function(e){return r.parse(e.responseText,t)}}function t(e){return e.map(h).join(s)}function h(e){return i.test(e)?'"'+e.replace(/\"/g,'""')+'"':e}var i=new RegExp('["'+s+"\n]"),c=s.charCodeAt(0);return r.parse=function(e,n){var s;return r.parseRows(e,function(e,t){if(s)return s(e,t-1);var i=new Function("d","return {"+e.map(function(e,t){return JSON.stringify(e)+": d["+t+"]"}).join(",")+"}");s=n?function(e,t){return n(i(e),t)}:i})},r.parseRows=function(s,e){function t(){if(l<=h)return o;if(a)return a=!1,r;var e=h;if(34===s.charCodeAt(e)){for(var t=e;t++<l;)if(34===s.charCodeAt(t)){if(34!==s.charCodeAt(t+1))break;++t}return h=t+2,13===(i=s.charCodeAt(t+1))?(a=!0,10===s.charCodeAt(t+2)&&++h):10===i&&(a=!0),s.slice(e+1,t).replace(/""/g,'"')}for(;h<l;){var i,n=1;if(10===(i=s.charCodeAt(h++)))a=!0;else if(13===i)a=!0,10===s.charCodeAt(h)&&(++h,++n);else if(i!==c)continue;return s.slice(e,h-n)}return s.slice(e)}for(var i,a,r={},o={},n=[],l=s.length,h=0,u=0;(i=t())!==o;){for(var d=[];i!==r&&i!==o;)d.push(i),i=t();e&&null==(d=e(d,u++))||n.push(d)}return n},r.format=function(e){if(Array.isArray(e[0]))return r.formatRows(e);var i=new p,n=[];return e.forEach(function(e){for(var t in e)i.has(t)||n.push(i.add(t))}),[n.map(h).join(s)].concat(e.map(function(t){return n.map(function(e){return h(t[e])}).join(s)})).join("\n")},r.formatRows=function(e){return e.map(t).join("\n")},r},Ws.csv=Ws.dsv(",","text/csv"),Ws.tsv=Ws.dsv("\t","text/tab-separated-values");var Na,Oa,Ra,Wa,Va,Ba=Gs[m(Gs,"requestAnimationFrame")]||function(e){setTimeout(e,17)};Ws.timer=function(e,t,i){var n=arguments.length;n<2&&(t=0),n<3&&(i=Date.now());var s={c:e,t:i+t,f:!1,n:null};Oa?Oa.n=s:Na=s,Oa=s,Ra||(Wa=clearTimeout(Wa),Ra=1,Ba(ke))},Ws.timer.flush=function(){Le(),Se()},Ws.round=function(e,t){return t?Math.round(e*(t=Math.pow(10,t)))/t:Math.round(e)};var Ua=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"].map(function(e,t){var i=Math.pow(10,3*ta(8-t));return{scale:8<t?function(e){return e/i}:function(e){return e*i},symbol:e}});Ws.formatPrefix=function(e,t){var i=0;return e&&(e<0&&(e*=-1),t&&(e=Ws.round(e,Te(e,t))),i=1+Math.floor(1e-12+Math.log(e)/Math.LN10),i=Math.max(-24,Math.min(24,3*Math.floor((i-1)/3)))),Ua[8+i/3]};var qa=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,Ga=Ws.map({b:function(e){return e.toString(2)},c:function(e){return String.fromCharCode(e)},o:function(e){return e.toString(8)},x:function(e){return e.toString(16)},X:function(e){return e.toString(16).toUpperCase()},g:function(e,t){return e.toPrecision(t)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},r:function(e,t){return(e=Ws.round(e,Te(e,t))).toFixed(Math.max(0,Math.min(20,Te(e*(1+1e-15),t))))}}),Xa=Ws.time={},Ja=Date;Ce.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){Ka.setUTCDate.apply(this._,arguments)},setDay:function(){Ka.setUTCDay.apply(this._,arguments)},setFullYear:function(){Ka.setUTCFullYear.apply(this._,arguments)},setHours:function(){Ka.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){Ka.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){Ka.setUTCMinutes.apply(this._,arguments)},setMonth:function(){Ka.setUTCMonth.apply(this._,arguments)},setSeconds:function(){Ka.setUTCSeconds.apply(this._,arguments)},setTime:function(){Ka.setTime.apply(this._,arguments)}};var Ka=Date.prototype;Xa.year=Ye(function(e){return(e=Xa.day(e)).setMonth(0,1),e},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e){return e.getFullYear()}),Xa.years=Xa.year.range,Xa.years.utc=Xa.year.utc.range,Xa.day=Ye(function(e){var t=new Ja(2e3,0);return t.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),t},function(e,t){e.setDate(e.getDate()+t)},function(e){return e.getDate()-1}),Xa.days=Xa.day.range,Xa.days.utc=Xa.day.utc.range,Xa.dayOfYear=function(e){var t=Xa.year(e);return Math.floor((e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach(function(e,i){i=7-i;var t=Xa[e]=Ye(function(e){return(e=Xa.day(e)).setDate(e.getDate()-(e.getDay()+i)%7),e},function(e,t){e.setDate(e.getDate()+7*Math.floor(t))},function(e){var t=Xa.year(e).getDay();return Math.floor((Xa.dayOfYear(e)+(t+i)%7)/7)-(t!==i)});Xa[e+"s"]=t.range,Xa[e+"s"].utc=t.utc.range,Xa[e+"OfYear"]=function(e){var t=Xa.year(e).getDay();return Math.floor((Xa.dayOfYear(e)+(t+i)%7)/7)}}),Xa.week=Xa.sunday,Xa.weeks=Xa.sunday.range,Xa.weeks.utc=Xa.sunday.utc.range,Xa.weekOfYear=Xa.sundayOfYear;var Za={"-":"",_:" ",0:"0"},Qa=/^\s*\d+/,er=/^%/;Ws.locale=function(e){return{numberFormat:(t=e,j=t.decimal,o=t.thousands,l=t.grouping,n=t.currency,k=l&&o?function(e,t){for(var i=e.length,n=[],s=0,a=l[0],r=0;0<i&&0<a&&(t<r+a+1&&(a=Math.max(1,t-r)),n.push(e.substring(i-=a,i+a)),!((r+=a+1)>t));)a=l[s=(s+1)%l.length];return n.reverse().join(o)}:we,function(e){var t=qa.exec(e),u=t[1]||" ",d=t[2]||">",c=t[3]||"-",i=t[4]||"",p=t[5],f=+t[6],m=t[7],g=t[8],v=t[9],_=1,y="",b="",x=!1,w=!0;switch(g&&(g=+g.substring(1)),(p||"0"===u&&"="===d)&&(p=u="0",d="="),v){case"n":m=!0,v="g";break;case"%":_=100,b="%",v="f";break;case"p":_=100,b="%",v="r";break;case"b":case"o":case"x":case"X":"#"===i&&(y="0"+v.toLowerCase());case"c":w=!1;case"d":x=!0,g=0;break;case"s":_=-1,v="r"}"$"===i&&(y=n[0],b=n[1]),"r"!=v||g||(v="g"),null!=g&&("g"==v?g=Math.max(1,Math.min(21,g)):("e"==v||"f"==v)&&(g=Math.max(0,Math.min(20,g)))),v=Ga.get(v)||De;var M=p&&m;return function(e){var t=b;if(x&&e%1)return"";var i=e<0||0===e&&1/e<0?(e=-e,"-"):"-"===c?"":c;if(_<0){var n=Ws.formatPrefix(e,g);e=n.scale(e),t=n.symbol+b}else e*=_;var s,a,r=(e=v(e,g)).lastIndexOf(".");if(r<0){var o=w?e.lastIndexOf("e"):-1;o<0?(s=e,a=""):(s=e.substring(0,o),a=e.substring(o))}else s=e.substring(0,r),a=j+e.substring(r+1);!p&&m&&(s=k(s,1/0));var l=y.length+s.length+a.length+(M?0:i.length),h=l<f?new Array(l=f-l+1).join(u):"";return M&&(s=k(h+s,h.length?f-a.length:1/0)),i+=y,e=s+a,("<"===d?i+e+h:">"===d?h+i+e:"^"===d?h.substring(0,l>>=1)+i+e+h.substring(l):i+(M?e:h+e))+t}}),timeFormat:function(e){function n(o){function e(e){for(var t,i,n,s=[],a=-1,r=0;++a<l;)37===o.charCodeAt(a)&&(s.push(o.slice(r,a)),null!=(i=Za[t=o.charAt(++a)])&&(t=o.charAt(++a)),(n=b[t])&&(t=n(e,null==i?"e"===t?" ":"0":i)),s.push(t),r=a+1);return s.push(o.slice(r,a)),s.join("")}var l=o.length;return e.parse=function(e){var t={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null};if(s(t,o,e,0)!=e.length)return null;"p"in t&&(t.H=t.H%12+12*t.p);var i=null!=t.Z&&Ja!==Ce,n=new(i?Ce:Ja);return"j"in t?n.setFullYear(t.y,0,t.j):"w"in t&&("W"in t||"U"in t)?(n.setFullYear(t.y,0,1),n.setFullYear(t.y,0,"W"in t?(t.w+6)%7+7*t.W-(n.getDay()+5)%7:t.w+7*t.U-(n.getDay()+6)%7)):n.setFullYear(t.y,t.m,t.d),n.setHours(t.H+(0|t.Z/100),t.M+t.Z%100,t.S,t.L),i?n._:n},e.toString=function(){return o},e}function s(e,t,i,n){for(var s,a,r,o=0,l=t.length,h=i.length;o<l;){if(h<=n)return-1;if(37===(s=t.charCodeAt(o++))){if(r=t.charAt(o++),!(a=x[r in Za?t.charAt(o++):r])||(n=a(e,i,n))<0)return-1}else if(s!=i.charCodeAt(n++))return-1}return n}var t=e.dateTime,i=e.date,a=e.time,r=e.periods,o=e.days,l=e.shortDays,h=e.months,u=e.shortMonths;n.multi=(n.utc=function(e){function t(e){try{var t=new(Ja=Ce);return t._=e,i(t)}finally{Ja=Date}}var i=n(e);return t.parse=function(e){try{Ja=Ce;var t=i.parse(e);return t&&t._}finally{Ja=Date}},t.toString=i.toString,t}).multi=Ke;var d=Ws.map(),c=Ae(o),p=Ie(o),f=Ae(l),m=Ie(l),g=Ae(h),v=Ie(h),_=Ae(u),y=Ie(u);r.forEach(function(e,t){d.set(e.toLowerCase(),t)});var b={a:function(e){return l[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return u[e.getMonth()]},B:function(e){return h[e.getMonth()]},c:n(t),d:function(e,t){return He(e.getDate(),t,2)},e:function(e,t){return He(e.getDate(),t,2)},H:function(e,t){return He(e.getHours(),t,2)},I:function(e,t){return He(e.getHours()%12||12,t,2)},j:function(e,t){return He(1+Xa.dayOfYear(e),t,3)},L:function(e,t){return He(e.getMilliseconds(),t,3)},m:function(e,t){return He(e.getMonth()+1,t,2)},M:function(e,t){return He(e.getMinutes(),t,2)},p:function(e){return r[+(12<=e.getHours())]},S:function(e,t){return He(e.getSeconds(),t,2)},U:function(e,t){return He(Xa.sundayOfYear(e),t,2)},w:function(e){return e.getDay()},W:function(e,t){return He(Xa.mondayOfYear(e),t,2)},x:n(i),X:n(a),y:function(e,t){return He(e.getFullYear()%100,t,2)},Y:function(e,t){return He(e.getFullYear()%1e4,t,4)},Z:Xe,"%":function(){return"%"}},x={a:function(e,t,i){f.lastIndex=0;var n=f.exec(t.slice(i));return n?(e.w=m.get(n[0].toLowerCase()),i+n[0].length):-1},A:function(e,t,i){c.lastIndex=0;var n=c.exec(t.slice(i));return n?(e.w=p.get(n[0].toLowerCase()),i+n[0].length):-1},b:function(e,t,i){_.lastIndex=0;var n=_.exec(t.slice(i));return n?(e.m=y.get(n[0].toLowerCase()),i+n[0].length):-1},B:function(e,t,i){g.lastIndex=0;var n=g.exec(t.slice(i));return n?(e.m=v.get(n[0].toLowerCase()),i+n[0].length):-1},c:function(e,t,i){return s(e,b.c.toString(),t,i)},d:We,e:We,H:Be,I:Be,j:Ve,L:Ge,m:Re,M:Ue,p:function(e,t,i){var n=d.get(t.slice(i,i+=2).toLowerCase());return null==n?-1:(e.p=n,i)},S:qe,U:$e,w:Fe,W:Pe,x:function(e,t,i){return s(e,b.x.toString(),t,i)},X:function(e,t,i){return s(e,b.X.toString(),t,i)},y:Ne,Y:ze,Z:Oe,"%":Je};return n}(e)};var t,j,o,l,n,k};var tr=Ws.locale({decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});Ws.format=tr.numberFormat,Ws.geo={},Ze.prototype={s:0,t:0,add:function(e){Qe(e,this.t,ir),Qe(ir.s,this.s,this),this.s?this.t+=ir.t:this.s=ir.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var ir=new Ze;Ws.geo.stream=function(e,t){e&&nr.hasOwnProperty(e.type)?nr[e.type](e,t):et(e,t)};var nr={Feature:function(e,t){et(e.geometry,t)},FeatureCollection:function(e,t){for(var i=e.features,n=-1,s=i.length;++n<s;)et(i[n].geometry,t)}},sr={Sphere:function(e,t){t.sphere()},Point:function(e,t){e=e.coordinates,t.point(e[0],e[1],e[2])},MultiPoint:function(e,t){for(var i=e.coordinates,n=-1,s=i.length;++n<s;)e=i[n],t.point(e[0],e[1],e[2])},LineString:function(e,t){tt(e.coordinates,t,0)},MultiLineString:function(e,t){for(var i=e.coordinates,n=-1,s=i.length;++n<s;)tt(i[n],t,0)},Polygon:function(e,t){it(e.coordinates,t)},MultiPolygon:function(e,t){for(var i=e.coordinates,n=-1,s=i.length;++n<s;)it(i[n],t)},GeometryCollection:function(e,t){for(var i=e.geometries,n=-1,s=i.length;++n<s;)et(i[n],t)}};Ws.geo.area=function(e){return ar=0,Ws.geo.stream(e,or),ar};var ar,rr=new Ze,or={sphere:function(){ar+=4*xa},point:v,lineStart:v,lineEnd:v,polygonStart:function(){rr.reset(),or.lineStart=nt},polygonEnd:function(){var e=2*rr;ar+=e<0?4*xa+e:e,or.lineStart=or.lineEnd=or.point=v}};Ws.geo.bounds=function(){function u(e,t){y.push(b=[c=e,f=e]),t<p&&(p=t),m<t&&(m=t)}function n(e,t){var i=st([e*ka,t*ka]);if(v){var n=rt(v,i),s=rt([n[1],-n[0],0],n);ht(s),s=ut(s);var a=e-g,r=0<a?1:-1,o=s[0]*La*r,l=180<ta(a);if(l^(r*g<o&&o<r*e)){var h=s[1]*La;m<h&&(m=h)}else if(l^(r*g<(o=(o+360)%360-180)&&o<r*e)){(h=-s[1]*La)<p&&(p=h)}else t<p&&(p=t),m<t&&(m=t);l?e<g?d(c,e)>d(c,f)&&(f=e):d(e,f)>d(c,f)&&(c=e):c<=f?(e<c&&(c=e),f<e&&(f=e)):g<e?d(c,e)>d(c,f)&&(f=e):d(e,f)>d(c,f)&&(c=e)}else u(e,t);v=i,g=e}function e(){x.point=n}function t(){b[0]=c,b[1]=f,x.point=u,v=null}function i(e,t){if(v){var i=e-g;_+=180<ta(i)?i+(0<i?360:-360):i}else r=e,o=t;or.point(e,t),n(e,t)}function s(){or.lineStart()}function a(){i(r,o),or.lineEnd(),ta(_)>ya&&(c=-(f=180)),b[0]=c,b[1]=f,v=null}function d(e,t){return(t-=e)<0?t+360:t}function l(e,t){return e[0]-t[0]}function h(e,t){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}var c,p,f,m,g,r,o,v,_,y,b,x={point:u,lineStart:e,lineEnd:t,polygonStart:function(){x.point=i,x.lineStart=s,x.lineEnd=a,_=0,or.polygonStart()},polygonEnd:function(){or.polygonEnd(),x.point=u,x.lineStart=e,x.lineEnd=t,rr<0?(c=-(f=180),p=-(m=90)):ya<_?m=90:_<-ya&&(p=-90),b[0]=c,b[1]=f}};return function(e){if(m=f=-(c=p=1/0),y=[],Ws.geo.stream(e,x),a=y.length){y.sort(l);for(var t=1,i=[o=y[0]];t<a;++t)h((s=y[t])[0],o)||h(s[1],o)?(d(o[0],s[1])>d(o[0],o[1])&&(o[1]=s[1]),d(s[0],o[1])>d(o[0],o[1])&&(o[0]=s[0])):i.push(o=s);for(var n,s,a,r=-1/0,o=(t=0,i[a=i.length-1]);t<=a;o=s,++t)s=i[t],(n=d(o[1],s[0]))>r&&(r=n,c=s[0],f=o[1])}return y=b=null,1/0===c||1/0===p?[[NaN,NaN],[NaN,NaN]]:[[c,p],[f,m]]}}(),Ws.geo.centroid=function(e){lr=hr=ur=dr=cr=pr=fr=mr=gr=vr=_r=0,Ws.geo.stream(e,yr);var t=gr,i=vr,n=_r,s=t*t+i*i+n*n;return s<ba&&(t=pr,i=fr,n=mr,hr<ya&&(t=ur,i=dr,n=cr),(s=t*t+i*i+n*n)<ba)?[NaN,NaN]:[Math.atan2(i,t)*La,Z(n/Math.sqrt(s))*La]};var lr,hr,ur,dr,cr,pr,fr,mr,gr,vr,_r,yr={sphere:v,point:ct,lineStart:ft,lineEnd:mt,polygonStart:function(){yr.lineStart=gt},polygonEnd:function(){yr.lineStart=ft}},br=wt(_t,function(d){var c,p=NaN,f=NaN,m=NaN;return{lineStart:function(){d.lineStart(),c=1},point:function(e,t){var i,n,s,a,r,o,l,h=0<e?xa:-xa,u=ta(e-p);ta(u-xa)<ya?(d.point(p,f=0<(f+t)/2?ja:-ja),d.point(m,f),d.lineEnd(),d.lineStart(),d.point(h,f),d.point(e,f),c=0):m!==h&&xa<=u&&(ta(p-m)<ya&&(p-=m*ya),ta(e-h)<ya&&(e-=h*ya),i=p,n=f,s=e,a=t,l=Math.sin(i-s),f=ta(l)>ya?Math.atan((Math.sin(n)*(o=Math.cos(a))*Math.sin(s)-Math.sin(a)*(r=Math.cos(n))*Math.sin(i))/(r*o*l)):(n+a)/2,d.point(m,f),d.lineEnd(),d.lineStart(),d.point(h,f),c=0),d.point(p=e,f=t),m=h},lineEnd:function(){d.lineEnd(),p=f=NaN},clean:function(){return 2-c}}},function(e,t,i,n){var s;if(null==e)s=i*ja,n.point(-xa,s),n.point(0,s),n.point(xa,s),n.point(xa,0),n.point(xa,-s),n.point(0,-s),n.point(-xa,-s),n.point(-xa,0),n.point(-xa,s);else if(ta(e[0]-t[0])>ya){var a=e[0]<t[0]?xa:-xa;s=i*a/2,n.point(-a,s),n.point(0,s),n.point(a,s)}else n.point(t[0],t[1])},[-xa,-xa/2]),xr=1e9;Ws.geo.clipExtent=function(){var t,i,n,s,a,r,o={stream:function(e){return a&&(a.valid=!1),(a=r(e)).valid=!0,a},extent:function(e){return arguments.length?(r=St(t=+e[0][0],i=+e[0][1],n=+e[1][0],s=+e[1][1]),a&&(a.valid=!1,a=null),o):[[t,i],[n,s]]}};return o.extent([[0,0],[960,500]])},(Ws.geo.conicEqualArea=function(){return Tt(Dt)}).raw=Dt,Ws.geo.albers=function(){return Ws.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},Ws.geo.albersUsa=function(){function s(e){var t=e[0],i=e[1];return n=null,a(t,i),n||(r(t,i),n)||o(t,i),n}var n,a,r,o,l=Ws.geo.albers(),h=Ws.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),u=Ws.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),d={point:function(e,t){n=[e,t]}};return s.invert=function(e){var t=l.scale(),i=l.translate(),n=(e[0]-i[0])/t,s=(e[1]-i[1])/t;return(.12<=s&&s<.234&&-.425<=n&&n<-.214?h:.166<=s&&s<.234&&-.214<=n&&n<-.115?u:l).invert(e)},s.stream=function(e){var i=l.stream(e),n=h.stream(e),s=u.stream(e);return{point:function(e,t){i.point(e,t),n.point(e,t),s.point(e,t)},sphere:function(){i.sphere(),n.sphere(),s.sphere()},lineStart:function(){i.lineStart(),n.lineStart(),s.lineStart()},lineEnd:function(){i.lineEnd(),n.lineEnd(),s.lineEnd()},polygonStart:function(){i.polygonStart(),n.polygonStart(),s.polygonStart()},polygonEnd:function(){i.polygonEnd(),n.polygonEnd(),s.polygonEnd()}}},s.precision=function(e){return arguments.length?(l.precision(e),h.precision(e),u.precision(e),s):l.precision()},s.scale=function(e){return arguments.length?(l.scale(e),h.scale(.35*e),u.scale(e),s.translate(l.translate())):l.scale()},s.translate=function(e){if(!arguments.length)return l.translate();var t=l.scale(),i=+e[0],n=+e[1];return a=l.translate(e).clipExtent([[i-.455*t,n-.238*t],[i+.455*t,n+.238*t]]).stream(d).point,r=h.translate([i-.307*t,n+.201*t]).clipExtent([[i-.425*t+ya,n+.12*t+ya],[i-.214*t-ya,n+.234*t-ya]]).stream(d).point,o=u.translate([i-.205*t,n+.212*t]).clipExtent([[i-.214*t+ya,n+.166*t+ya],[i-.115*t-ya,n+.234*t-ya]]).stream(d).point,s},s.scale(1070)};var wr,Mr,jr,kr,Lr,Sr,Tr={point:v,lineStart:v,lineEnd:v,polygonStart:function(){Mr=0,Tr.lineStart=Ct},polygonEnd:function(){Tr.lineStart=Tr.lineEnd=Tr.point=v,wr+=ta(Mr/2)}},Dr={point:function(e,t){e<jr&&(jr=e),Lr<e&&(Lr=e),t<kr&&(kr=t),Sr<t&&(Sr=t)},lineStart:v,lineEnd:v,polygonStart:v,polygonEnd:v},Cr={point:Ht,lineStart:At,lineEnd:It,polygonStart:function(){Cr.lineStart=Ft},polygonEnd:function(){Cr.point=Ht,Cr.lineStart=At,Cr.lineEnd=It}};Ws.geo.path=function(){function t(e){return e&&("function"==typeof l&&r.pointRadius(+l.apply(this,arguments)),o&&o.valid||(o=a(r)),Ws.geo.stream(e,o)),r.result()}function n(){return o=null,t}var s,i,a,r,o,l=4.5;return t.area=function(e){return wr=0,Ws.geo.stream(e,a(Tr)),wr},t.centroid=function(e){return ur=dr=cr=pr=fr=mr=gr=vr=_r=0,Ws.geo.stream(e,a(Cr)),_r?[gr/_r,vr/_r]:mr?[pr/mr,fr/mr]:cr?[ur/cr,dr/cr]:[NaN,NaN]},t.bounds=function(e){return Lr=Sr=-(jr=kr=1/0),Ws.geo.stream(e,a(Dr)),[[jr,kr],[Lr,Sr]]},t.projection=function(e){return arguments.length?(a=(s=e)?e.stream||(i=e,t=Pt(function(e,t){return i([e*La,t*La])}),function(e){return Wt(t(e))}):we,n()):s;var i,t},t.context=function(e){return arguments.length?(r=null==(i=e)?new Yt:new $t(e),"function"!=typeof l&&r.pointRadius(l),n()):i},t.pointRadius=function(e){return arguments.length?(l="function"==typeof e?e:(r.pointRadius(+e),+e),t):l},t.projection(Ws.geo.albersUsa()).context(null)},Ws.geo.transform=function(n){return{stream:function(e){var t=new zt(e);for(var i in n)t[i]=n[i];return t}}},zt.prototype={point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}},Ws.geo.projection=Ot,Ws.geo.projectionMutator=Rt,(Ws.geo.equirectangular=function(){return Ot(Vt)}).raw=Vt.invert=Vt,Ws.geo.rotation=function(t){function e(e){return(e=t(e[0]*ka,e[1]*ka))[0]*=La,e[1]*=La,e}return t=Ut(t[0]%360*ka,t[1]*ka,2<t.length?t[2]*ka:0),e.invert=function(e){return(e=t.invert(e[0]*ka,e[1]*ka))[0]*=La,e[1]*=La,e},e},Bt.invert=Vt,Ws.geo.circle=function(){function t(){var e="function"==typeof a?a.apply(this,arguments):a,i=Ut(-e[0]*ka,-e[1]*ka,0).invert,n=[];return s(null,null,1,{point:function(e,t){n.push(e=i(e,t)),e[0]*=La,e[1]*=La}}),{type:"Polygon",coordinates:[n]}}var i,s,a=[0,0],n=6;return t.origin=function(e){return arguments.length?(a=e,t):a},t.angle=function(e){return arguments.length?(s=Jt((i=+e)*ka,n*ka),t):i},t.precision=function(e){return arguments.length?(s=Jt(i*ka,(n=+e)*ka),t):n},t.angle(90)},Ws.geo.distance=function(e,t){var i,n=(t[0]-e[0])*ka,s=e[1]*ka,a=t[1]*ka,r=Math.sin(n),o=Math.cos(n),l=Math.sin(s),h=Math.cos(s),u=Math.sin(a),d=Math.cos(a);return Math.atan2(Math.sqrt((i=d*r)*i+(i=h*u-l*d*o)*i),l*u+h*d*o)},Ws.geo.graticule=function(){function t(){return{type:"MultiLineString",coordinates:e()}}function e(){return Ws.range(Math.ceil(a/g)*g,s,g).map(c).concat(Ws.range(Math.ceil(h/v)*v,l,v).map(p)).concat(Ws.range(Math.ceil(n/f)*f,i,f).filter(function(e){return ta(e%g)>ya}).map(u)).concat(Ws.range(Math.ceil(o/m)*m,r,m).filter(function(e){return ta(e%v)>ya}).map(d))}var i,n,s,a,r,o,l,h,u,d,c,p,f=10,m=f,g=90,v=360,_=2.5;return t.lines=function(){return e().map(function(e){return{type:"LineString",coordinates:e}})},t.outline=function(){return{type:"Polygon",coordinates:[c(a).concat(p(l).slice(1),c(s).reverse().slice(1),p(h).reverse().slice(1))]}},t.extent=function(e){return arguments.length?t.majorExtent(e).minorExtent(e):t.minorExtent()},t.majorExtent=function(e){return arguments.length?(a=+e[0][0],s=+e[1][0],h=+e[0][1],l=+e[1][1],s<a&&(e=a,a=s,s=e),l<h&&(e=h,h=l,l=e),t.precision(_)):[[a,h],[s,l]]},t.minorExtent=function(e){return arguments.length?(n=+e[0][0],i=+e[1][0],o=+e[0][1],r=+e[1][1],i<n&&(e=n,n=i,i=e),r<o&&(e=o,o=r,r=e),t.precision(_)):[[n,o],[i,r]]},t.step=function(e){return arguments.length?t.majorStep(e).minorStep(e):t.minorStep()},t.majorStep=function(e){return arguments.length?(g=+e[0],v=+e[1],t):[g,v]},t.minorStep=function(e){return arguments.length?(f=+e[0],m=+e[1],t):[f,m]},t.precision=function(e){return arguments.length?(_=+e,u=Zt(o,r,90),d=Qt(n,i,_),c=Zt(h,l,90),p=Qt(a,s,_),t):_},t.majorExtent([[-180,-90+ya],[180,90-ya]]).minorExtent([[-180,-80-ya],[180,80+ya]])},Ws.geo.greatArc=function(){function t(){return{type:"LineString",coordinates:[i||s.apply(this,arguments),n||a.apply(this,arguments)]}}var i,n,s=ei,a=ti;return t.distance=function(){return Ws.geo.distance(i||s.apply(this,arguments),n||a.apply(this,arguments))},t.source=function(e){return arguments.length?(i="function"==typeof(s=e)?null:e,t):s},t.target=function(e){return arguments.length?(n="function"==typeof(a=e)?null:e,t):a},t.precision=function(){return arguments.length?t:0},t},Ws.geo.interpolate=function(e,t){return i=e[0]*ka,n=e[1]*ka,s=t[0]*ka,a=t[1]*ka,r=Math.cos(n),o=Math.sin(n),l=Math.cos(a),h=Math.sin(a),u=r*Math.cos(i),d=r*Math.sin(i),c=l*Math.cos(s),p=l*Math.sin(s),f=2*Math.asin(Math.sqrt(ee(a-n)+r*l*ee(s-i))),m=1/Math.sin(f),(g=f?function(e){var t=Math.sin(e*=f)*m,i=Math.sin(f-e)*m,n=i*u+t*c,s=i*d+t*p,a=i*o+t*h;return[Math.atan2(s,n)*La,Math.atan2(a,Math.sqrt(n*n+s*s))*La]}:function(){return[i*La,n*La]}).distance=f,g;var i,n,s,a,r,o,l,h,u,d,c,p,f,m,g},Ws.geo.length=function(e){return Yr=0,Ws.geo.stream(e,Er),Yr};var Yr,Er={sphere:v,point:v,lineStart:function(){function i(e,t){var i=Math.sin(t*=ka),n=Math.cos(t),s=ta((e*=ka)-r),a=Math.cos(s);Yr+=Math.atan2(Math.sqrt((s=n*Math.sin(s))*s+(s=l*i-o*n*a)*s),o*i+l*n*a),r=e,o=i,l=n}var r,o,l;Er.point=function(e,t){r=e*ka,o=Math.sin(t*=ka),l=Math.cos(t),Er.point=i},Er.lineEnd=function(){Er.point=Er.lineEnd=v}},lineEnd:v,polygonStart:v,polygonEnd:v},Hr=ii(function(e){return Math.sqrt(2/(1+e))},function(e){return 2*Math.asin(e/2)});(Ws.geo.azimuthalEqualArea=function(){return Ot(Hr)}).raw=Hr;var Ar=ii(function(e){var t=Math.acos(e);return t&&t/Math.sin(t)},we);(Ws.geo.azimuthalEquidistant=function(){return Ot(Ar)}).raw=Ar,(Ws.geo.conicConformal=function(){return Tt(ni)}).raw=ni,(Ws.geo.conicEquidistant=function(){return Tt(si)}).raw=si;var Ir=ii(function(e){return 1/e},Math.atan);(Ws.geo.gnomonic=function(){return Ot(Ir)}).raw=Ir,ai.invert=function(e,t){return[e,2*Math.atan(Math.exp(t))-ja]},(Ws.geo.mercator=function(){return ri(ai)}).raw=ai;var Fr=ii(function(){return 1},Math.asin);(Ws.geo.orthographic=function(){return Ot(Fr)}).raw=Fr;var $r=ii(function(e){return 1/(1+e)},function(e){return 2*Math.atan(e)});(Ws.geo.stereographic=function(){return Ot($r)}).raw=$r,oi.invert=function(e,t){return[-t,2*Math.atan(Math.exp(e))-ja]},(Ws.geo.transverseMercator=function(){var e=ri(oi),t=e.center,i=e.rotate;return e.center=function(e){return e?t([-e[1],e[0]]):[(e=t())[1],-e[0]]},e.rotate=function(e){return e?i([e[0],e[1],2<e.length?e[2]+90:90]):[(e=i())[0],e[1],e[2]-90]},i([0,0,90])}).raw=oi,Ws.geom={},Ws.geom.hull=function(e){function t(e){if(e.length<3)return[];var t,i=xe(c),n=xe(p),s=e.length,a=[],r=[];for(t=0;t<s;t++)a.push([+i.call(this,e[t],t),+n.call(this,e[t],t),t]);for(a.sort(di),t=0;t<s;t++)r.push([a[t][0],-a[t][1]]);var o=ui(a),l=ui(r),h=l[0]===o[0],u=l[l.length-1]===o[o.length-1],d=[];for(t=o.length-1;0<=t;--t)d.push(e[a[o[t]][2]]);for(t=+h;t<l.length-u;++t)d.push(e[a[l[t]][2]]);return d}var c=li,p=hi;return arguments.length?t(e):(t.x=function(e){return arguments.length?(c=e,t):c},t.y=function(e){return arguments.length?(p=e,t):p},t)},Ws.geom.polygon=function(e){return ra(e,Pr),e};var Pr=Ws.geom.polygon.prototype=[];Pr.area=function(){for(var e,t=-1,i=this.length,n=this[i-1],s=0;++t<i;)e=n,n=this[t],s+=e[1]*n[0]-e[0]*n[1];return.5*s},Pr.centroid=function(e){var t,i,n=-1,s=this.length,a=0,r=0,o=this[s-1];for(arguments.length||(e=-1/(6*this.area()));++n<s;)t=o,o=this[n],i=t[0]*o[1]-o[0]*t[1],a+=(t[0]+o[0])*i,r+=(t[1]+o[1])*i;return[a*e,r*e]},Pr.clip=function(e){for(var t,i,n,s,a,r,o=fi(e),l=-1,h=this.length-fi(this),u=this[h-1];++l<h;){for(t=e.slice(),e.length=0,s=this[l],a=t[(n=t.length-o)-1],i=-1;++i<n;)ci(r=t[i],u,s)?(ci(a,u,s)||e.push(pi(a,r,u,s)),e.push(r)):ci(a,u,s)&&e.push(pi(a,r,u,s)),a=r;o&&e.push(e[0]),u=s}return e};var zr,Nr,Or,Rr,Wr,Vr=[],Br=[];wi.prototype.prepare=function(){for(var e,t=this.edges,i=t.length;i--;)(e=t[i].edge).b&&e.a||t.splice(i,1);return t.sort(Mi),t.length},Yi.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},Ei.prototype={insert:function(e,t){var i,n,s;if(e){if(t.P=e,t.N=e.N,e.N&&(e.N.P=t),e.N=t,e.R){for(e=e.R;e.L;)e=e.L;e.L=t}else e.R=t;i=e}else this._?(e=Fi(this._),t.P=null,(t.N=e).P=e.L=t,i=e):(t.P=t.N=null,this._=t,i=null);for(t.L=t.R=null,t.U=i,t.C=!0,e=t;i&&i.C;)i===(n=i.U).L?(s=n.R)&&s.C?(i.C=s.C=!1,n.C=!0,e=n):(e===i.R&&(Ai(this,i),i=(e=i).U),i.C=!1,n.C=!0,Ii(this,n)):(s=n.L)&&s.C?(i.C=s.C=!1,n.C=!0,e=n):(e===i.L&&(Ii(this,i),i=(e=i).U),i.C=!1,n.C=!0,Ai(this,n)),i=e.U;this._.C=!1},remove:function(e){e.N&&(e.N.P=e.P),e.P&&(e.P.N=e.N),e.N=e.P=null;var t,i,n,s=e.U,a=e.L,r=e.R;if(i=a?r?Fi(r):a:r,s?s.L===e?s.L=i:s.R=i:this._=i,a&&r?(n=i.C,i.C=e.C,((i.L=a).U=i)!==r?(s=i.U,i.U=e.U,e=i.R,s.L=e,(i.R=r).U=i):(i.U=s,e=(s=i).R)):(n=e.C,e=i),e&&(e.U=s),!n){if(e&&e.C)return void(e.C=!1);do{if(e===this._)break;if(e===s.L){if((t=s.R).C&&(t.C=!1,s.C=!0,Ai(this,s),t=s.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,Ii(this,t),t=s.R),t.C=s.C,s.C=t.R.C=!1,Ai(this,s),e=this._;break}}else if((t=s.L).C&&(t.C=!1,s.C=!0,Ii(this,s),t=s.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,Ai(this,t),t=s.L),t.C=s.C,s.C=t.L.C=!1,Ii(this,s),e=this._;break}t.C=!0,s=(e=s).U}while(!e.C);e&&(e.C=!1)}}},Ws.geom.voronoi=function(e){function t(s){var a=new Array(s.length),r=u[0][0],o=u[0][1],l=u[1][0],h=u[1][1];return $i(i(s),u).cells.forEach(function(e,t){var i=e.edges,n=e.site;(a[t]=i.length?i.map(function(e){var t=e.start();return[t.x,t.y]}):n.x>=r&&n.x<=l&&n.y>=o&&n.y<=h?[[r,h],[l,h],[l,o],[r,o]]:[]).point=s[t]}),a}function i(e){return e.map(function(e,t){return{x:Math.round(a(e,t)/ya)*ya,y:Math.round(r(e,t)/ya)*ya,i:t}})}var n=li,s=hi,a=n,r=s,u=Ur;return e?t(e):(t.links=function(t){return $i(i(t)).edges.filter(function(e){return e.l&&e.r}).map(function(e){return{source:t[e.l.i],target:t[e.r.i]}})},t.triangles=function(c){var p=[];return $i(i(c)).cells.forEach(function(e,t){for(var i,n=e.site,s=e.edges.sort(Mi),a=-1,r=s.length,o=s[r-1].edge,l=o.l===n?o.r:o.l;++a<r;)o,i=l,l=(o=s[a].edge).l===n?o.r:o.l,t<i.i&&t<l.i&&(u=i,d=l,((h=n).x-d.x)*(u.y-h.y)-(h.x-u.x)*(d.y-h.y)<0)&&p.push([c[t],c[i.i],c[l.i]]);var h,u,d}),p},t.x=function(e){return arguments.length?(a=xe(n=e),t):n},t.y=function(e){return arguments.length?(r=xe(s=e),t):s},t.clipExtent=function(e){return arguments.length?(u=null==e?Ur:e,t):u===Ur?null:u},t.size=function(e){return arguments.length?t.clipExtent(e&&[[0,0],e]):u===Ur?null:u&&u[1]},t)};var Ur=[[-1e6,-1e6],[1e6,1e6]];Ws.geom.delaunay=function(e){return Ws.geom.voronoi().triangles(e)},Ws.geom.quadtree=function(e,_,y,b,x){function t(e){function p(e,t,i,n,s,a,r,o){if(!isNaN(i)&&!isNaN(n))if(e.leaf){var l=e.x,h=e.y;if(null!=l)if(ta(l-i)+ta(h-n)<.01)d(e,t,i,n,s,a,r,o);else{var u=e.point;e.x=e.y=e.point=null,d(e,u,l,h,s,a,r,o),d(e,t,i,n,s,a,r,o)}else e.x=i,e.y=n,e.point=t}else d(e,t,i,n,s,a,r,o)}function d(e,t,i,n,s,a,r,o){var l=.5*(s+r),h=.5*(a+o),u=l<=i,d=h<=n,c=d<<1|u;e.leaf=!1,u?s=l:r=l,d?a=h:o=h,p(e=e.nodes[c]||(e.nodes[c]={leaf:!0,nodes:[],point:null,x:null,y:null}),t,i,n,s,a,r,o)}var t,i,n,s,a,r,o,l,h,u=xe(M),c=xe(k);if(null!=_)r=_,o=y,l=b,h=x;else if(l=h=-(r=o=1/0),i=[],n=[],a=e.length,w)for(s=0;s<a;++s)(t=e[s]).x<r&&(r=t.x),t.y<o&&(o=t.y),t.x>l&&(l=t.x),t.y>h&&(h=t.y),i.push(t.x),n.push(t.y);else for(s=0;s<a;++s){var f=+u(t=e[s],s),m=+c(t,s);f<r&&(r=f),m<o&&(o=m),l<f&&(l=f),h<m&&(h=m),i.push(f),n.push(m)}var g=l-r,v=h-o;v<g?h=o+g:l=r+v;var j={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(e){p(j,e,+u(e,++s),+c(e,s),r,o,l,h)}};if(j.visit=function(e){!function e(t,i,n,s,a,r){if(!t(i,n,s,a,r)){var o=.5*(n+a),l=.5*(s+r),h=i.nodes;h[0]&&e(t,h[0],n,s,o,l),h[1]&&e(t,h[1],o,s,a,l),h[2]&&e(t,h[2],n,l,o,r),h[3]&&e(t,h[3],o,l,a,r)}}(e,j,r,o,l,h)},j.find=function(e){return t=j,g=e[0],v=e[1],M=1/0,function e(t,i,n,s,a){if(!(b<i||x<n||s<_||a<y)){if(r=t.point){var r,o=g-r[0],l=v-r[1],h=o*o+l*l;if(h<M){var u=Math.sqrt(M=h);_=g-u,y=v-u,b=g+u,x=v+u,w=r}}for(var d=t.nodes,c=.5*(i+s),p=.5*(n+a),f=(p<=v)<<1|c<=g,m=f+4;f<m;++f)if(t=d[3&f])switch(3&f){case 0:e(t,i,n,c,p);break;case 1:e(t,c,n,s,p);break;case 2:e(t,i,p,c,a);break;case 3:e(t,c,p,s,a)}}}(t,_=r,y=o,b=l,x=h),w;var t,g,v,_,y,b,x,w,M},s=-1,null==_){for(;++s<a;)p(j,e[s],i[s],n[s],r,o,l,h);--s}else e.forEach(j.add);return i=n=e=t=null,j}var w,M=li,k=hi;return(w=arguments.length)?(M=zi,k=Ni,3===w&&(x=y,b=_,y=_=0),t(e)):(t.x=function(e){return arguments.length?(M=e,t):M},t.y=function(e){return arguments.length?(k=e,t):k},t.extent=function(e){return arguments.length?(null==e?_=y=b=x=null:(_=+e[0][0],y=+e[0][1],b=+e[1][0],x=+e[1][1]),t):null==_?null:[[_,y],[b,x]]},t.size=function(e){return arguments.length?(null==e?_=y=b=x=null:(_=y=0,b=+e[0],x=+e[1]),t):null==_?null:[b-_,x-y]},t)},Ws.interpolateRgb=Oi,Ws.interpolateObject=Ri,Ws.interpolateNumber=Wi,Ws.interpolateString=Vi;var qr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Gr=new RegExp(qr.source,"g");Ws.interpolate=Bi,Ws.interpolators=[function(e,t){var i=typeof t;return("string"===i?za.has(t)||/^(#|rgb\(|hsl\()/.test(t)?Oi:Vi:t instanceof te?Oi:Array.isArray(t)?Ui:"object"===i&&isNaN(t)?Ri:Wi)(e,t)}],Ws.interpolateArray=Ui;var Xr=function(){return we},Jr=Ws.map({linear:Xr,poly:function(t){return function(e){return Math.pow(e,t)}},quad:function(){return Xi},cubic:function(){return Ji},sin:function(){return Zi},exp:function(){return Qi},circle:function(){return en},elastic:function(t,i){var n;return arguments.length<2&&(i=.45),arguments.length?n=i/wa*Math.asin(1/t):(t=1,n=i/4),function(e){return 1+t*Math.pow(2,-10*e)*Math.sin((e-n)*wa/i)}},back:function(t){return t||(t=1.70158),function(e){return e*e*((t+1)*e-t)}},bounce:function(){return tn}}),Kr=Ws.map({in:we,out:qi,"in-out":Gi,"out-in":function(e){return Gi(qi(e))}});Ws.ease=function(e){var t,i=e.indexOf("-"),n=0<=i?e.slice(0,i):e,s=0<=i?e.slice(i+1):"in";return n=Jr.get(n)||Xr,s=Kr.get(s)||we,t=s(n.apply(null,Vs.call(arguments,1))),function(e){return e<=0?0:1<=e?1:t(e)}},Ws.interpolateHcl=function(e,t){e=Ws.hcl(e),t=Ws.hcl(t);var i=e.h,n=e.c,s=e.l,a=t.h-i,r=t.c-n,o=t.l-s;return isNaN(r)&&(r=0,n=isNaN(n)?t.c:n),isNaN(a)?(a=0,i=isNaN(i)?t.h:i):180<a?a-=360:a<-180&&(a+=360),function(e){return ae(i+a*e,n+r*e,s+o*e)+""}},Ws.interpolateHsl=function(e,t){e=Ws.hsl(e),t=Ws.hsl(t);var i=e.h,n=e.s,s=e.l,a=t.h-i,r=t.s-n,o=t.l-s;return isNaN(r)&&(r=0,n=isNaN(n)?t.s:n),isNaN(a)?(a=0,i=isNaN(i)?t.h:i):180<a?a-=360:a<-180&&(a+=360),function(e){return ne(i+a*e,n+r*e,s+o*e)+""}},Ws.interpolateLab=function(e,t){e=Ws.lab(e),t=Ws.lab(t);var i=e.l,n=e.a,s=e.b,a=t.l-i,r=t.a-n,o=t.b-s;return function(e){return oe(i+a*e,n+r*e,s+o*e)+""}},Ws.interpolateRound=nn,Ws.transform=function(e){var i=Us.createElementNS(Ws.ns.prefix.svg,"g");return(Ws.transform=function(e){if(null!=e){i.setAttribute("transform",e);var t=i.transform.baseVal.consolidate()}return new sn(t?t.matrix:Zr)})(e)},sn.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var Zr={a:1,b:0,c:0,d:1,e:0,f:0};Ws.interpolateTransform=on,Ws.layout={},Ws.layout.bundle=function(){return function(e){for(var t=[],i=-1,n=e.length;++i<n;)t.push(un(e[i]));return t}},Ws.layout.chord=function(){function e(){var e,t,i,n,s,a={},r=[],o=Ws.range(b),l=[];for(v=[],_=[],e=0,n=-1;++n<b;){for(t=0,s=-1;++s<b;)t+=y[n][s];r.push(t),l.push(Ws.range(b)),e+=t}for(x&&o.sort(function(e,t){return x(r[e],r[t])}),w&&l.forEach(function(e,i){e.sort(function(e,t){return w(y[i][e],y[i][t])})}),e=(wa-j*b)/e,t=0,n=-1;++n<b;){for(i=t,s=-1;++s<b;){var h=o[n],u=l[h][s],d=y[h][u],c=t,p=t+=d*e;a[h+"-"+u]={index:h,subindex:u,startAngle:c,endAngle:p,value:d}}_[h]={index:h,startAngle:i,endAngle:t,value:(t-i)/e},t+=j}for(n=-1;++n<b;)for(s=n-1;++s<b;){var f=a[n+"-"+s],m=a[s+"-"+n];(f.value||m.value)&&v.push(f.value<m.value?{source:m,target:f}:{source:f,target:m})}M&&g()}function g(){v.sort(function(e,t){return M((e.source.value+e.target.value)/2,(t.source.value+t.target.value)/2)})}var v,_,y,b,x,w,M,t={},j=0;return t.matrix=function(e){return arguments.length?(b=(y=e)&&y.length,v=_=null,t):y},t.padding=function(e){return arguments.length?(j=e,v=_=null,t):j},t.sortGroups=function(e){return arguments.length?(x=e,v=_=null,t):x},t.sortSubgroups=function(e){return arguments.length?(w=e,v=null,t):w},t.sortChords=function(e){return arguments.length?(M=e,v&&g(),t):M},t.chords=function(){return v||e(),v},t.groups=function(){return _||e(),_},t},Ws.layout.force=function(){function d(h){return function(e,t,i,n){if(e.point!==h){var s=e.cx-h.x,a=e.cy-h.y,r=n-t,o=s*s+a*a;if(r*r/w<o){if(o<b){var l=e.charge/o;h.px-=s*l,h.py-=a*l}return!0}if(e.point&&o&&o<b){l=e.pointCharge/o;h.px-=s*l,h.py-=a*l}}return!e.charge}}function e(e){e.px=Ws.event.x,e.py=Ws.event.y,a.resume()}var t,c,p,f,m,a={},g=Ws.dispatch("start","tick","end"),v=[1,1],_=.9,r=Qr,u=eo,y=-30,b=to,x=.1,w=.64,M=[],j=[];return a.tick=function(){if((c*=.99)<.005)return g.end({type:"end",alpha:c=0}),!0;var e,t,i,n,s,a,r,o,l,h=M.length,u=j.length;for(t=0;t<u;++t)n=(i=j[t]).source,(a=(o=(s=i.target).x-n.x)*o+(l=s.y-n.y)*l)&&(o*=a=c*f[t]*((a=Math.sqrt(a))-p[t])/a,l*=a,s.x-=o*(r=n.weight/(s.weight+n.weight)),s.y-=l*r,n.x+=o*(r=1-r),n.y+=l*r);if((r=c*x)&&(o=v[0]/2,l=v[1]/2,t=-1,r))for(;++t<h;)(i=M[t]).x+=(o-i.x)*r,i.y+=(l-i.y)*r;if(y)for(function e(t,i,n){var s=0,a=0;if(t.charge=0,!t.leaf)for(var r,o=t.nodes,l=o.length,h=-1;++h<l;)null!=(r=o[h])&&(e(r,i,n),t.charge+=r.charge,s+=r.charge*r.cx,a+=r.charge*r.cy);if(t.point){t.leaf||(t.point.x+=Math.random()-.5,t.point.y+=Math.random()-.5);var u=i*n[t.point.index];t.charge+=t.pointCharge=u,s+=u*t.point.x,a+=u*t.point.y}t.cx=s/t.charge,t.cy=a/t.charge}(e=Ws.geom.quadtree(M),c,m),t=-1;++t<h;)(i=M[t]).fixed||e.visit(d(i));for(t=-1;++t<h;)(i=M[t]).fixed?(i.x=i.px,i.y=i.py):(i.x-=(i.px-(i.px=i.x))*_,i.y-=(i.py-(i.py=i.y))*_);g.tick({type:"tick",alpha:c})},a.nodes=function(e){return arguments.length?(M=e,a):M},a.links=function(e){return arguments.length?(j=e,a):j},a.size=function(e){return arguments.length?(v=e,a):v},a.linkDistance=function(e){return arguments.length?(r="function"==typeof e?e:+e,a):r},a.distance=a.linkDistance,a.linkStrength=function(e){return arguments.length?(u="function"==typeof e?e:+e,a):u},a.friction=function(e){return arguments.length?(_=+e,a):_},a.charge=function(e){return arguments.length?(y="function"==typeof e?e:+e,a):y},a.chargeDistance=function(e){return arguments.length?(b=e*e,a):Math.sqrt(b)},a.gravity=function(e){return arguments.length?(x=+e,a):x},a.theta=function(e){return arguments.length?(w=e*e,a):Math.sqrt(w)},a.alpha=function(e){return arguments.length?(e=+e,c?c=0<e?e:0:0<e&&(g.start({type:"start",alpha:c=e}),Ws.timer(a.tick)),a):c},a.start=function(){function e(e,t){if(!l){for(l=new Array(h),a=0;a<h;++a)l[a]=[];for(a=0;a<r;++a){var i=j[a];l[i.source.index].push(i.target),l[i.target.index].push(i.source)}}for(var n,s=l[o],a=-1,r=s.length;++a<r;)if(!isNaN(n=s[a][e]))return n;return Math.random()*t}var o,l,t,h=M.length,i=j.length,n=v[0],s=v[1];for(o=0;o<h;++o)(t=M[o]).index=o,t.weight=0;for(o=0;o<i;++o)"number"==typeof(t=j[o]).source&&(t.source=M[t.source]),"number"==typeof t.target&&(t.target=M[t.target]),++t.source.weight,++t.target.weight;for(o=0;o<h;++o)t=M[o],isNaN(t.x)&&(t.x=e("x",n)),isNaN(t.y)&&(t.y=e("y",s)),isNaN(t.px)&&(t.px=t.x),isNaN(t.py)&&(t.py=t.y);if(p=[],"function"==typeof r)for(o=0;o<i;++o)p[o]=+r.call(this,j[o],o);else for(o=0;o<i;++o)p[o]=r;if(f=[],"function"==typeof u)for(o=0;o<i;++o)f[o]=+u.call(this,j[o],o);else for(o=0;o<i;++o)f[o]=u;if(m=[],"function"==typeof y)for(o=0;o<h;++o)m[o]=+y.call(this,M[o],o);else for(o=0;o<h;++o)m[o]=y;return a.resume()},a.resume=function(){return a.alpha(.1)},a.stop=function(){return a.alpha(0)},a.drag=function(){return t||(t=Ws.behavior.drag().origin(we).on("dragstart.force",cn).on("drag.force",e).on("dragend.force",pn)),arguments.length?void this.on("mouseover.force",fn).on("mouseout.force",mn).call(t):t},Ws.rebind(a,g,"on")};var Qr=20,eo=1,to=1/0;Ws.layout.hierarchy=function(){function o(e){var t,i=[e],n=[];for(e.depth=0;null!=(t=i.pop());)if(n.push(t),(a=h.call(o,t,t.depth))&&(s=a.length)){for(var s,a,r;0<=--s;)i.push(r=a[s]),r.parent=t,r.depth=t.depth+1;u&&(t.value=0),t.children=a}else u&&(t.value=+u.call(o,t,t.depth)||0),delete t.children;return _n(e,function(e){var t,i;l&&(t=e.children)&&t.sort(l),u&&(i=e.parent)&&(i.value+=e.value)}),n}var l=xn,h=yn,u=bn;return o.sort=function(e){return arguments.length?(l=e,o):l},o.children=function(e){return arguments.length?(h=e,o):h},o.value=function(e){return arguments.length?(u=e,o):u},o.revalue=function(e){return u&&(vn(e,function(e){e.children&&(e.value=0)}),_n(e,function(e){var t;e.children||(e.value=+u.call(o,e,e.depth)||0),(t=e.parent)&&(t.value+=e.value)})),e},o},Ws.layout.partition=function(){function t(e,t){var i=n.call(this,e,t);return function e(t,i,n,s){var a=t.children;if(t.x=i,t.y=t.depth*s,t.dx=n,t.dy=s,a&&(r=a.length)){var r,o,l,h=-1;for(n=t.value?n/t.value:0;++h<r;)e(o=a[h],i,l=o.value*n,s),i+=l}}(i[0],0,s[0],s[1]/function e(t){var i=t.children,n=0;if(i&&(s=i.length))for(var s,a=-1;++a<s;)n=Math.max(n,e(i[a]));return 1+n}(i[0])),i}var n=Ws.layout.hierarchy(),s=[1,1];return t.size=function(e){return arguments.length?(s=e,t):s},gn(t,n)},Ws.layout.pie=function(){function d(i){var t,e=i.length,n=i.map(function(e,t){return+c.call(d,e,t)}),s=+("function"==typeof f?f.apply(this,arguments):f),a=("function"==typeof m?m.apply(this,arguments):m)-s,r=Math.min(Math.abs(a)/e,+("function"==typeof g?g.apply(this,arguments):g)),o=r*(a<0?-1:1),l=(a-e*o)/Ws.sum(n),h=Ws.range(e),u=[];return null!=p&&h.sort(p===io?function(e,t){return n[t]-n[e]}:function(e,t){return p(i[e],i[t])}),h.forEach(function(e){u[e]={data:i[e],value:t=n[e],startAngle:s,endAngle:s+=t*l+o,padAngle:r}}),u}var c=Number,p=io,f=0,m=wa,g=0;return d.value=function(e){return arguments.length?(c=e,d):c},d.sort=function(e){return arguments.length?(p=e,d):p},d.startAngle=function(e){return arguments.length?(f=e,d):f},d.endAngle=function(e){return arguments.length?(m=e,d):m},d.padAngle=function(e){return arguments.length?(g=e,d):g},d};var io={};Ws.layout.stack=function(){function d(e,t){if(!(a=e.length))return e;var i=e.map(function(e,t){return c.call(d,e,t)}),n=i.map(function(e){return e.map(function(e,t){return[g.call(d,e,t),v.call(d,e,t)]})}),s=p.call(d,n,t);i=Ws.permute(i,s),n=Ws.permute(n,s);var a,r,o,l,h=f.call(d,n,t),u=i[0].length;for(o=0;o<u;++o)for(m.call(d,i[0][o],l=h[o],n[0][o][1]),r=1;r<a;++r)m.call(d,i[r][o],l+=n[r-1][o][1],n[r][o][1]);return e}var c=we,p=Ln,f=Sn,m=kn,g=Mn,v=jn;return d.values=function(e){return arguments.length?(c=e,d):c},d.order=function(e){return arguments.length?(p="function"==typeof e?e:no.get(e)||Ln,d):p},d.offset=function(e){return arguments.length?(f="function"==typeof e?e:so.get(e)||Sn,d):f},d.x=function(e){return arguments.length?(g=e,d):g},d.y=function(e){return arguments.length?(v=e,d):v},d.out=function(e){return arguments.length?(m=e,d):m},d};var no=Ws.map({"inside-out":function(e){var t,i,n=e.length,s=e.map(Tn),a=e.map(Dn),r=Ws.range(n).sort(function(e,t){return s[e]-s[t]}),o=0,l=0,h=[],u=[];for(t=0;t<n;++t)i=r[t],o<l?(o+=a[i],h.push(i)):(l+=a[i],u.push(i));return u.reverse().concat(h)},reverse:function(e){return Ws.range(e.length).reverse()},default:Ln}),so=Ws.map({silhouette:function(e){var t,i,n,s=e.length,a=e[0].length,r=[],o=0,l=[];for(i=0;i<a;++i){for(n=t=0;t<s;t++)n+=e[t][i][1];o<n&&(o=n),r.push(n)}for(i=0;i<a;++i)l[i]=(o-r[i])/2;return l},wiggle:function(e){var t,i,n,s,a,r,o,l,h,u=e.length,d=e[0],c=d.length,p=[];for(p[0]=l=h=0,i=1;i<c;++i){for(s=t=0;t<u;++t)s+=e[t][i][1];for(a=t=0,o=d[i][0]-d[i-1][0];t<u;++t){for(n=0,r=(e[t][i][1]-e[t][i-1][1])/(2*o);n<t;++n)r+=(e[n][i][1]-e[n][i-1][1])/o;a+=r*e[t][i][1]}p[i]=l-=s?a/s*o:0,l<h&&(h=l)}for(i=0;i<c;++i)p[i]-=h;return p},expand:function(e){var t,i,n,s=e.length,a=e[0].length,r=1/s,o=[];for(i=0;i<a;++i){for(n=t=0;t<s;t++)n+=e[t][i][1];if(n)for(t=0;t<s;t++)e[t][i][1]/=n;else for(t=0;t<s;t++)e[t][i][1]=r}for(i=0;i<a;++i)o[i]=0;return o},zero:Sn});Ws.layout.histogram=function(){function i(e,t){for(var i,n,s=[],a=e.map(c,this),r=p.call(this,a,t),o=f.call(this,r,a,t),l=(t=-1,a.length),h=o.length-1,u=d?1:1/l;++t<h;)(i=s[t]=[]).dx=o[t+1]-(i.x=o[t]),i.y=0;if(0<h)for(t=-1;++t<l;)(n=a[t])>=r[0]&&n<=r[1]&&((i=s[Ws.bisect(o,n,1,h)-1]).y+=u,i.push(e[t]));return s}var d=!0,c=Number,p=Hn,f=Yn;return i.value=function(e){return arguments.length?(c=e,i):c},i.range=function(e){return arguments.length?(p=xe(e),i):p},i.bins=function(t){return arguments.length?(f="number"==typeof t?function(e){return En(e,t)}:xe(t),i):f},i.frequency=function(e){return arguments.length?(d=!!e,i):d},i},Ws.layout.pack=function(){function t(e,t){var i=h.call(this,e,t),n=i[0],s=d[0],a=d[1],r=null==l?Math.sqrt:"function"==typeof l?l:function(){return l};if(n.x=n.y=0,_n(n,function(e){e.r=+r(e.value)}),_n(n,Pn),u){var o=u*(l?1:Math.max(2*n.r/s,2*n.r/a))/2;_n(n,function(e){e.r+=o}),_n(n,Pn),_n(n,function(e){e.r-=o})}return function e(t,i,n,s){var a=t.children;if(t.x=i+=s*t.x,t.y=n+=s*t.y,t.r*=s,a)for(var r=-1,o=a.length;++r<o;)e(a[r],i,n,s)}(n,s/2,a/2,l?1:1/Math.max(2*n.r/s,2*n.r/a)),i}var l,h=Ws.layout.hierarchy().sort(An),u=0,d=[1,1];return t.size=function(e){return arguments.length?(d=e,t):d},t.radius=function(e){return arguments.length?(l=null==e||"function"==typeof e?e:+e,t):l},t.padding=function(e){return arguments.length?(u=+e,t):u},gn(t,h)},Ws.layout.tree=function(){function t(e,t){var i=f.call(this,e,t),n=i[0],s=function(e){for(var t,i={A:null,children:[e]},n=[i];null!=(t=n.pop());)for(var s,a=t.children,r=0,o=a.length;r<o;++r)n.push((a[r]=s={_:a[r],parent:t,children:(s=a[r].children)&&s.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:r}).a=s);return i.children[0]}(n);if(_n(s,d),s.parent.m=-s.z,vn(s,c),g)vn(n,p);else{var a=n,r=n,o=n;vn(n,function(e){e.x<a.x&&(a=e),e.x>r.x&&(r=e),e.depth>o.depth&&(o=e)});var l=y(a,r)/2-a.x,h=m[0]/(r.x+y(r,a)/2+l),u=m[1]/(o.depth||1);vn(n,function(e){e.x=(e.x+l)*h,e.y=e.depth*u})}return i}function d(e){var t=e.children,i=e.parent.children,n=e.i?i[e.i-1]:null;if(t.length){!function(e){for(var t,i=0,n=0,s=e.children,a=s.length;0<=--a;)(t=s[a]).z+=i,t.m+=i,i+=t.s+(n+=t.c)}(e);var s=(t[0].z+t[t.length-1].z)/2;n?(e.z=n.z+y(e._,n._),e.m=e.z-s):e.z=s}else n&&(e.z=n.z+y(e._,n._));e.parent.A=function(e,t,i){if(t){for(var n,s=e,a=e,r=t,o=s.parent.children[0],l=s.m,h=a.m,u=r.m,d=o.m;r=Vn(r),s=Wn(s),r&&s;)o=Wn(o),(a=Vn(a)).a=e,0<(n=r.z+u-s.z-l+y(r._,s._))&&(v=e,_=i,c=(g=r).a.parent===v.parent?g.a:_,void 0,m=(f=n)/((p=e).i-c.i),p.c-=m,p.s+=f,c.c+=m,p.z+=f,p.m+=f,l+=n,h+=n),u+=r.m,l+=s.m,d+=o.m,h+=a.m;r&&!Vn(a)&&(a.t=r,a.m+=u-h),s&&!Wn(o)&&(o.t=s,o.m+=l-d,i=e)}var c,p,f,m;var g,v,_;return i}(e,n,e.parent.A||i[0])}function c(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function p(e){e.x*=m[0],e.y=e.depth*m[1]}var f=Ws.layout.hierarchy().sort(null).value(null),y=Rn,m=[1,1],g=null;return t.separation=function(e){return arguments.length?(y=e,t):y},t.size=function(e){return arguments.length?(g=null==(m=e)?p:null,t):g?null:m},t.nodeSize=function(e){return arguments.length?(g=null==(m=e)?null:p,t):g?m:null},gn(t,f)},Ws.layout.cluster=function(){function t(e,t){var s,i=u.call(this,e,t),n=i[0],a=0;_n(n,function(e){var t,i,n=e.children;n&&n.length?(e.x=(i=n).reduce(function(e,t){return e+t.x},0)/i.length,e.y=(t=n,1+Ws.max(t,function(e){return e.y}))):(e.x=s?a+=d(e,s):0,e.y=0,s=e)});var r=function e(t){var i=t.children;return i&&i.length?e(i[0]):t}(n),o=function e(t){var i,n=t.children;return n&&(i=n.length)?e(n[i-1]):t}(n),l=r.x-d(r,o)/2,h=o.x+d(o,r)/2;return _n(n,p?function(e){e.x=(e.x-n.x)*c[0],e.y=(n.y-e.y)*c[1]}:function(e){e.x=(e.x-l)/(h-l)*c[0],e.y=(1-(n.y?e.y/n.y:1))*c[1]}),i}var u=Ws.layout.hierarchy().sort(null).value(null),d=Rn,c=[1,1],p=!1;return t.separation=function(e){return arguments.length?(d=e,t):d},t.size=function(e){return arguments.length?(p=null==(c=e),t):p?null:c},t.nodeSize=function(e){return arguments.length?(p=null!=(c=e),t):p?c:null},gn(t,u)},Ws.layout.treemap=function(){function u(e,t){for(var i,n,s=-1,a=e.length;++s<a;)n=(i=e[s]).value*(t<0?0:t),i.area=isNaN(n)||n<=0?0:n}function d(e){var t=e.children;if(t&&t.length){var i,n,s,a=m(e),r=[],o=t.slice(),l=1/0,h="slice"===g?a.dx:"dice"===g?a.dy:"slice-dice"===g?1&e.depth?a.dy:a.dx:Math.min(a.dx,a.dy);for(u(o,a.dx*a.dy/e.value),r.area=0;0<(s=o.length);)r.push(i=o[s-1]),r.area+=i.area,"squarify"!==g||(n=c(r,h))<=l?(o.pop(),l=n):(r.area-=r.pop().area,p(r,h,a,!1),h=Math.min(a.dx,a.dy),r.length=r.area=0,l=1/0);r.length&&(p(r,h,a,!0),r.length=r.area=0),t.forEach(d)}}function r(e){var t=e.children;if(t&&t.length){var i,n=m(e),s=t.slice(),a=[];for(u(s,n.dx*n.dy/e.value),a.area=0;i=s.pop();)a.push(i),a.area+=i.area,null!=i.z&&(p(a,i.z?n.dx:n.dy,n,!s.length),a.length=a.area=0);t.forEach(r)}}function c(e,t){for(var i,n=e.area,s=0,a=1/0,r=-1,o=e.length;++r<o;)(i=e[r].area)&&(i<a&&(a=i),s<i&&(s=i));return t*=t,(n*=n)?Math.max(t*s*v/n,n/(t*a*v)):1/0}function p(e,t,i,n){var s,a=-1,r=e.length,o=i.x,l=i.y,h=t?f(e.area/t):0;if(t==i.dx){for((n||h>i.dy)&&(h=i.dy);++a<r;)(s=e[a]).x=o,s.y=l,s.dy=h,o+=s.dx=Math.min(i.x+i.dx-o,h?f(s.area/h):0);s.z=!0,s.dx+=i.x+i.dx-o,i.y+=h,i.dy-=h}else{for((n||h>i.dx)&&(h=i.dx);++a<r;)(s=e[a]).x=o,s.y=l,s.dx=h,l+=s.dy=Math.min(i.y+i.dy-l,h?f(s.area/h):0);s.z=!1,s.dy+=i.y+i.dy-l,i.x+=h,i.dx-=h}}function n(e){var t=s||a(e),i=t[0];return i.x=0,i.y=0,i.dx=o[0],i.dy=o[1],s&&a.revalue(i),u([i],i.dx*i.dy/i.value),(s?r:d)(i),h&&(s=t),t}var s,a=Ws.layout.hierarchy(),f=Math.round,o=[1,1],l=null,m=Bn,h=!1,g="squarify",v=.5*(1+Math.sqrt(5));return n.size=function(e){return arguments.length?(o=e,n):o},n.padding=function(i){function e(e){return Un(e,i)}return arguments.length?(m=null==(l=i)?Bn:"function"==(t=typeof i)?function(e){var t=i.call(n,e,e.depth);return null==t?Bn(e):Un(e,"number"==typeof t?[t,t,t,t]:t)}:("number"===t&&(i=[i,i,i,i]),e),n):l;var t},n.round=function(e){return arguments.length?(f=e?Math.round:Number,n):f!=Number},n.sticky=function(e){return arguments.length?(h=e,s=null,n):h},n.ratio=function(e){return arguments.length?(v=e,n):v},n.mode=function(e){return arguments.length?(g=e+"",n):g},gn(n,a)},Ws.random={normal:function(n,s){var e=arguments.length;return e<2&&(s=1),e<1&&(n=0),function(){for(var e,t,i;!(i=(e=2*Math.random()-1)*e+(t=2*Math.random()-1)*t)||1<i;);return n+s*e*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var e=Ws.random.normal.apply(Ws,arguments);return function(){return Math.exp(e())}},bates:function(e){var t=Ws.random.irwinHall(e);return function(){return t()/e}},irwinHall:function(i){return function(){for(var e=0,t=0;t<i;t++)e+=Math.random();return e}}},Ws.scale={};var ao={floor:we,ceil:we};Ws.scale.linear=function(){return function e(i,n,s,a){function t(){var e=2<Math.min(i.length,n.length)?Kn:Xn,t=a?hn:ln;return o=e(i,n,t,s),l=e(n,i,t,Bi),r}function r(e){return o(e)}var o,l;return r.invert=function(e){return l(e)},r.domain=function(e){return arguments.length?(i=e.map(Number),t()):i},r.range=function(e){return arguments.length?(n=e,t()):n},r.rangeRound=function(e){return r.range(e).interpolate(nn)},r.clamp=function(e){return arguments.length?(a=e,t()):a},r.interpolate=function(e){return arguments.length?(s=e,t()):s},r.ticks=function(e){return ts(i,e)},r.tickFormat=function(e,t){return is(i,e,t)},r.nice=function(e){return Qn(i,e),t()},r.copy=function(){return e(i,n,s,a)},t()}([0,1],[0,1],Bi,!1)};var ro={s:1,g:1,p:1,r:1,e:1};Ws.scale.log=function(){return function e(t,l,h,u){function d(e){return(h?Math.log(e<0?0:e):-Math.log(0<e?0:-e))/Math.log(l)}function c(e){return h?Math.pow(l,e):-Math.pow(l,-e)}function a(e){return t(d(e))}return a.invert=function(e){return c(t.invert(e))},a.domain=function(e){return arguments.length?(h=0<=e[0],t.domain((u=e.map(Number)).map(d)),a):u},a.base=function(e){return arguments.length?(l=+e,t.domain(u.map(d)),a):l},a.nice=function(){var e=Jn(u.map(d),h?Math:lo);return t.domain(e),u=e.map(c),a},a.ticks=function(){var e=qn(u),t=[],i=e[0],n=e[1],s=Math.floor(d(i)),a=Math.ceil(d(n)),r=l%1?2:l;if(isFinite(a-s)){if(h){for(;s<a;s++)for(var o=1;o<r;o++)t.push(c(s)*o);t.push(c(s))}else for(t.push(c(s));s++<a;)for(o=r-1;0<o;o--)t.push(c(s)*o);for(s=0;t[s]<i;s++);for(a=t.length;t[a-1]>n;a--);t=t.slice(s,a)}return t},a.tickFormat=function(e,t){if(!arguments.length)return oo;arguments.length<2?t=oo:"function"!=typeof t&&(t=Ws.format(t));var i,n=Math.max(.1,e/a.ticks().length),s=h?(i=1e-12,Math.ceil):(i=-1e-12,Math.floor);return function(e){return e/c(s(d(e)+i))<=n?t(e):""}},a.copy=function(){return e(t.copy(),l,h,u)},Zn(a,t)}(Ws.scale.linear().domain([0,1]),10,!0,[1,10])};var oo=Ws.format(".0e"),lo={floor:function(e){return-Math.ceil(-e)},ceil:function(e){return-Math.floor(-e)}};Ws.scale.pow=function(){return function e(t,i,n){function s(e){return t(a(e))}var a=ss(i),r=ss(1/i);return s.invert=function(e){return r(t.invert(e))},s.domain=function(e){return arguments.length?(t.domain((n=e.map(Number)).map(a)),s):n},s.ticks=function(e){return ts(n,e)},s.tickFormat=function(e,t){return is(n,e,t)},s.nice=function(e){return s.domain(Qn(n,e))},s.exponent=function(e){return arguments.length?(a=ss(i=e),r=ss(1/i),t.domain(n.map(a)),s):i},s.copy=function(){return e(t.copy(),i,n)},Zn(s,t)}(Ws.scale.linear(),1,[0,1])},Ws.scale.sqrt=function(){return Ws.scale.pow().exponent(.5)},Ws.scale.ordinal=function(){return function e(o,l){function h(e){return d[((s.get(e)||("range"===l.t?s.set(e,o.push(e)):NaN))-1)%d.length]}function u(t,i){return Ws.range(o.length).map(function(e){return t+i*e})}var s,d,c;return h.domain=function(e){if(!arguments.length)return o;o=[],s=new _;for(var t,i=-1,n=e.length;++i<n;)s.has(t=e[i])||s.set(t,o.push(t));return h[l.t].apply(h,l.a)},h.range=function(e){return arguments.length?(d=e,c=0,l={t:"range",a:arguments},h):d},h.rangePoints=function(e,t){arguments.length<2&&(t=0);var i=e[0],n=e[1],s=o.length<2?(i=(i+n)/2,0):(n-i)/(o.length-1+t);return d=u(i+s*t/2,s),c=0,l={t:"rangePoints",a:arguments},h},h.rangeRoundPoints=function(e,t){arguments.length<2&&(t=0);var i=e[0],n=e[1],s=o.length<2?(i=n=Math.round((i+n)/2),0):0|(n-i)/(o.length-1+t);return d=u(i+Math.round(s*t/2+(n-i-(o.length-1+t)*s)/2),s),c=0,l={t:"rangeRoundPoints",a:arguments},h},h.rangeBands=function(e,t,i){arguments.length<2&&(t=0),arguments.length<3&&(i=t);var n=e[1]<e[0],s=e[n-0],a=(e[1-n]-s)/(o.length-t+2*i);return d=u(s+a*i,a),n&&d.reverse(),c=a*(1-t),l={t:"rangeBands",a:arguments},h},h.rangeRoundBands=function(e,t,i){arguments.length<2&&(t=0),arguments.length<3&&(i=t);var n=e[1]<e[0],s=e[n-0],a=e[1-n],r=Math.floor((a-s)/(o.length-t+2*i));return d=u(s+Math.round((a-s-(o.length-t)*r)/2),r),n&&d.reverse(),c=Math.round(r*(1-t)),l={t:"rangeRoundBands",a:arguments},h},h.rangeBand=function(){return c},h.rangeExtent=function(){return qn(l.a[0])},h.copy=function(){return e(o,l)},h.domain(o)}([],{t:"range",a:[[]]})},Ws.scale.category10=function(){return Ws.scale.ordinal().range(ho)},Ws.scale.category20=function(){return Ws.scale.ordinal().range(uo)},Ws.scale.category20b=function(){return Ws.scale.ordinal().range(co)},Ws.scale.category20c=function(){return Ws.scale.ordinal().range(po)};var ho=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(fe),uo=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(fe),co=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(fe),po=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(fe);Ws.scale.quantile=function(){return function e(i,n){function t(){var e=0,t=n.length;for(a=[];++e<t;)a[e-1]=Ws.quantile(i,e/t);return s}function s(e){return isNaN(e=+e)?void 0:n[Ws.bisect(a,e)]}var a;return s.domain=function(e){return arguments.length?(i=e.map(o).filter(l).sort(r),t()):i},s.range=function(e){return arguments.length?(n=e,t()):n},s.quantiles=function(){return a},s.invertExtent=function(e){return(e=n.indexOf(e))<0?[NaN,NaN]:[0<e?a[e-1]:i[0],e<a.length?a[e]:i[i.length-1]]},s.copy=function(){return e(i,n)},t()}([],[])},Ws.scale.quantize=function(){return function e(t,i,n){function s(e){return n[Math.max(0,Math.min(o,Math.floor(r*(e-t))))]}function a(){return r=n.length/(i-t),o=n.length-1,s}var r,o;return s.domain=function(e){return arguments.length?(t=+e[0],i=+e[e.length-1],a()):[t,i]},s.range=function(e){return arguments.length?(n=e,a()):n},s.invertExtent=function(e){return[e=(e=n.indexOf(e))<0?NaN:e/r+t,e+1/r]},s.copy=function(){return e(t,i,n)},a()}(0,1,[0,1])},Ws.scale.threshold=function(){return function e(t,i){function n(e){return e<=e?i[Ws.bisect(t,e)]:void 0}return n.domain=function(e){return arguments.length?(t=e,n):t},n.range=function(e){return arguments.length?(i=e,n):i},n.invertExtent=function(e){return e=i.indexOf(e),[t[e-1],t[e]]},n.copy=function(){return e(t,i)},n}([.5],[0,1])},Ws.scale.identity=function(){return function e(i){function t(e){return+e}return(t.invert=t).domain=t.range=function(e){return arguments.length?(i=e.map(t),t):i},t.ticks=function(e){return ts(i,e)},t.tickFormat=function(e,t){return is(i,e,t)},t.copy=function(){return e(i)},t}([0,1])},Ws.svg={},Ws.svg.arc=function(){function t(){var e=Math.max(0,+z.apply(this,arguments)),t=Math.max(0,+N.apply(this,arguments)),i=W.apply(this,arguments)-ja,n=V.apply(this,arguments)-ja,s=Math.abs(n-i),a=n<i?0:1;if(t<e&&(r=t,t=e,e=r),Ma<=s)return P(t,a)+(e?P(e,1-a):"")+"Z";var r,o,l,h,u,d,c,p,f,m,g,v,_=0,y=0,b=[];if((h=(+B.apply(this,arguments)||0)/2)&&(l=R===fo?Math.sqrt(e*e+t*t):+R.apply(this,arguments),a||(y*=-1),t&&(y=Z(l/t*Math.sin(h))),e&&(_=Z(l/e*Math.sin(h)))),t){u=t*Math.cos(i+y),d=t*Math.sin(i+y),c=t*Math.cos(n-y),p=t*Math.sin(n-y);var x=Math.abs(n-i-2*y)<=xa?0:1;if(y&&ds(u,d,c,p)===a^x){var w=(i+n)/2;u=t*Math.cos(w),d=t*Math.sin(w),c=p=null}}else u=d=0;if(e){f=e*Math.cos(n-_),m=e*Math.sin(n-_),g=e*Math.cos(i+_),v=e*Math.sin(i+_);var M=Math.abs(i-n+2*_)<=xa?0:1;if(_&&ds(f,m,g,v)===1-a^M){var j=(i+n)/2;f=e*Math.cos(j),m=e*Math.sin(j),g=v=null}}else f=m=0;if(.001<(r=Math.min(Math.abs(t-e)/2,+O.apply(this,arguments)))){o=e<t^a?0:1;var k=null==g?[f,m]:null==c?[u,d]:pi([u,d],[g,v],[c,p],[f,m]),L=u-k[0],S=d-k[1],T=c-k[0],D=p-k[1],C=1/Math.sin(Math.acos((L*T+S*D)/(Math.sqrt(L*L+S*S)*Math.sqrt(T*T+D*D)))/2),Y=Math.sqrt(k[0]*k[0]+k[1]*k[1]);if(null!=c){var E=Math.min(r,(t-Y)/(C+1)),H=cs(null==g?[f,m]:[g,v],[u,d],t,E,a),A=cs([c,p],[f,m],t,E,a);r===E?b.push("M",H[0],"A",E,",",E," 0 0,",o," ",H[1],"A",t,",",t," 0 ",1-a^ds(H[1][0],H[1][1],A[1][0],A[1][1]),",",a," ",A[1],"A",E,",",E," 0 0,",o," ",A[0]):b.push("M",H[0],"A",E,",",E," 0 1,",o," ",A[0])}else b.push("M",u,",",d);if(null!=g){var I=Math.min(r,(e-Y)/(C-1)),F=cs([u,d],[g,v],e,-I,a),$=cs([f,m],null==c?[u,d]:[c,p],e,-I,a);r===I?b.push("L",$[0],"A",I,",",I," 0 0,",o," ",$[1],"A",e,",",e," 0 ",a^ds($[1][0],$[1][1],F[1][0],F[1][1]),",",1-a," ",F[1],"A",I,",",I," 0 0,",o," ",F[0]):b.push("L",$[0],"A",I,",",I," 0 0,",o," ",F[0])}else b.push("L",f,",",m)}else b.push("M",u,",",d),null!=c&&b.push("A",t,",",t," 0 ",x,",",a," ",c,",",p),b.push("L",f,",",m),null!=g&&b.push("A",e,",",e," 0 ",M,",",1-a," ",g,",",v);return b.push("Z"),b.join("")}function P(e,t){return"M0,"+e+"A"+e+","+e+" 0 1,"+t+" 0,"+-e+"A"+e+","+e+" 0 1,"+t+" 0,"+e}var z=rs,N=os,O=as,R=fo,W=ls,V=hs,B=us;return t.innerRadius=function(e){return arguments.length?(z=xe(e),t):z},t.outerRadius=function(e){return arguments.length?(N=xe(e),t):N},t.cornerRadius=function(e){return arguments.length?(O=xe(e),t):O},t.padRadius=function(e){return arguments.length?(R=e==fo?fo:xe(e),t):R},t.startAngle=function(e){return arguments.length?(W=xe(e),t):W},t.endAngle=function(e){return arguments.length?(V=xe(e),t):V},t.padAngle=function(e){return arguments.length?(B=xe(e),t):B},t.centroid=function(){var e=(+z.apply(this,arguments)+ +N.apply(this,arguments))/2,t=(+W.apply(this,arguments)+ +V.apply(this,arguments))/2-ja;return[Math.cos(t)*e,Math.sin(t)*e]},t};var fo="auto";Ws.svg.line=function(){return ps(we)};var mo=Ws.map({linear:fs,"linear-closed":function(e){return fs(e)+"Z"},step:function(e){for(var t=0,i=e.length,n=e[0],s=[n[0],",",n[1]];++t<i;)s.push("H",(n[0]+(n=e[t])[0])/2,"V",n[1]);return 1<i&&s.push("H",n[0]),s.join("")},"step-before":ms,"step-after":gs,basis:ys,"basis-open":function(e){if(e.length<4)return fs(e);for(var t,i=[],n=-1,s=e.length,a=[0],r=[0];++n<3;)t=e[n],a.push(t[0]),r.push(t[1]);for(i.push(bs(_o,a)+","+bs(_o,r)),--n;++n<s;)t=e[n],a.shift(),a.push(t[0]),r.shift(),r.push(t[1]),xs(i,a,r);return i.join("")},"basis-closed":function(e){for(var t,i,n=-1,s=e.length,a=s+4,r=[],o=[];++n<4;)i=e[n%s],r.push(i[0]),o.push(i[1]);for(t=[bs(_o,r),",",bs(_o,o)],--n;++n<a;)i=e[n%s],r.shift(),r.push(i[0]),o.shift(),o.push(i[1]),xs(t,r,o);return t.join("")},bundle:function(e,t){var i=e.length-1;if(i)for(var n,s,a=e[0][0],r=e[0][1],o=e[i][0]-a,l=e[i][1]-r,h=-1;++h<=i;)s=h/i,(n=e[h])[0]=t*n[0]+(1-t)*(a+s*o),n[1]=t*n[1]+(1-t)*(r+s*l);return ys(e)},cardinal:function(e,t){return e.length<3?fs(e):e[0]+vs(e,_s(e,t))},"cardinal-open":function(e,t){return e.length<4?fs(e):e[1]+vs(e.slice(1,-1),_s(e,t))},"cardinal-closed":function(e,t){return e.length<3?fs(e):e[0]+vs((e.push(e[0]),e),_s([e[e.length-2]].concat(e,[e[1]]),t))},monotone:function(e){return e.length<3?fs(e):e[0]+vs(e,Ms(e))}});mo.forEach(function(e,t){t.key=e,t.closed=/-closed$/.test(e)});var go=[0,2/3,1/3,0],vo=[0,1/3,2/3,0],_o=[0,1/6,2/3,1/6];Ws.svg.line.radial=function(){var e=ps(js);return e.radius=e.x,delete e.x,e.angle=e.y,delete e.y,e},(ms.reverse=gs).reverse=ms,Ws.svg.area=function(){return ks(we)},Ws.svg.area.radial=function(){var e=ks(js);return e.radius=e.x,delete e.x,e.innerRadius=e.x0,delete e.x0,e.outerRadius=e.x1,delete e.x1,e.angle=e.y,delete e.y,e.startAngle=e.y0,delete e.y0,e.endAngle=e.y1,delete e.y1,e},Ws.svg.chord=function(){function t(e,t){var i,n,s=r(this,h,e,t),a=r(this,u,e,t);return"M"+s.p0+o(s.r,s.p1,s.a1-s.a0)+(n=a,(i=s).a0==n.a0&&i.a1==n.a1?l(s.r,s.p1,s.r,s.p0):l(s.r,s.p1,a.r,a.p0)+o(a.r,a.p1,a.a1-a.a0)+l(a.r,a.p1,s.r,s.p0))+"Z"}function r(e,t,i,n){var s=t.call(e,i,n),a=d.call(e,s,n),r=c.call(e,s,n)-ja,o=p.call(e,s,n)-ja;return{r:a,a0:r,a1:o,p0:[a*Math.cos(r),a*Math.sin(r)],p1:[a*Math.cos(o),a*Math.sin(o)]}}function o(e,t,i){return"A"+e+","+e+" 0 "+ +(xa<i)+",1 "+t}function l(e,t,i,n){return"Q 0,0 "+n}var h=ei,u=ti,d=Ls,c=ls,p=hs;return t.radius=function(e){return arguments.length?(d=xe(e),t):d},t.source=function(e){return arguments.length?(h=xe(e),t):h},t.target=function(e){return arguments.length?(u=xe(e),t):u},t.startAngle=function(e){return arguments.length?(c=xe(e),t):c},t.endAngle=function(e){return arguments.length?(p=xe(e),t):p},t},Ws.svg.diagonal=function(){function t(e,t){var i=r.call(this,e,t),n=o.call(this,e,t),s=(i.y+n.y)/2,a=[i,{x:i.x,y:s},{x:n.x,y:s},n];return"M"+(a=a.map(l))[0]+"C"+a[1]+" "+a[2]+" "+a[3]}var r=ei,o=ti,l=Ss;return t.source=function(e){return arguments.length?(r=xe(e),t):r},t.target=function(e){return arguments.length?(o=xe(e),t):o},t.projection=function(e){return arguments.length?(l=e,t):l},t},Ws.svg.diagonal.radial=function(){var e=Ws.svg.diagonal(),t=Ss,i=e.projection;return e.projection=function(e){return arguments.length?i((n=t=e,function(){var e=n.apply(this,arguments),t=e[0],i=e[1]-ja;return[t*Math.cos(i),t*Math.sin(i)]})):t;var n},e},Ws.svg.symbol=function(){function t(e,t){return(yo.get(i.call(this,e,t))||Cs)(n.call(this,e,t))}var i=Ds,n=Ts;return t.type=function(e){return arguments.length?(i=xe(e),t):i},t.size=function(e){return arguments.length?(n=xe(e),t):n},t};var yo=Ws.map({circle:Cs,cross:function(e){var t=Math.sqrt(e/5)/2;return"M"+-3*t+","+-t+"H"+-t+"V"+-3*t+"H"+t+"V"+-t+"H"+3*t+"V"+t+"H"+t+"V"+3*t+"H"+-t+"V"+t+"H"+-3*t+"Z"},diamond:function(e){var t=Math.sqrt(e/(2*Mo)),i=t*Mo;return"M0,"+-t+"L"+i+",0 0,"+t+" "+-i+",0Z"},square:function(e){var t=Math.sqrt(e)/2;return"M"+-t+","+-t+"L"+t+","+-t+" "+t+","+t+" "+-t+","+t+"Z"},"triangle-down":function(e){var t=Math.sqrt(e/wo),i=t*wo/2;return"M0,"+i+"L"+t+","+-i+" "+-t+","+-i+"Z"},"triangle-up":function(e){var t=Math.sqrt(e/wo),i=t*wo/2;return"M0,"+-i+"L"+t+","+i+" "+-t+","+i+"Z"}});Ws.svg.symbolTypes=yo.keys();var bo,xo,wo=Math.sqrt(3),Mo=Math.tan(30*ka),jo=[],ko=0;jo.call=da.call,jo.empty=da.empty,jo.node=da.node,jo.size=da.size,Ws.transition=function(e){return arguments.length?bo?e.transition():e:fa.transition()},(Ws.transition.prototype=jo).select=function(e){var t,i,n,s=this.id,a=this.namespace,r=[];e=w(e);for(var o=-1,l=this.length;++o<l;){r.push(t=[]);for(var h=this[o],u=-1,d=h.length;++u<d;)(n=h[u])&&(i=e.call(n,n.__data__,u,o))?("__data__"in n&&(i.__data__=n.__data__),Is(i,u,a,s,n[a][s]),t.push(i)):t.push(null)}return Ys(r,a,s)},jo.selectAll=function(e){var t,i,n,s,a,r=this.id,o=this.namespace,l=[];e=M(e);for(var h=-1,u=this.length;++h<u;)for(var d=this[h],c=-1,p=d.length;++c<p;)if(n=d[c]){a=n[o][r],i=e.call(n,n.__data__,c,h),l.push(t=[]);for(var f=-1,m=i.length;++f<m;)(s=i[f])&&Is(s,f,o,r,a),t.push(s)}return Ys(l,o,r)},jo.filter=function(e){var t,i,n=[];"function"!=typeof e&&(e=$(e));for(var s=0,a=this.length;s<a;s++){n.push(t=[]);for(var r,o=0,l=(r=this[s]).length;o<l;o++)(i=r[o])&&e.call(i,i.__data__,o,s)&&t.push(i)}return Ys(n,this.namespace,this.id)},jo.tween=function(t,i){var n=this.id,s=this.namespace;return arguments.length<2?this.node()[s][n].tween.get(t):P(this,null==i?function(e){e[s][n].tween.remove(t)}:function(e){e[s][n].tween.set(t,i)})},jo.attr=function(e,t){function n(){this.removeAttribute(r)}function s(){this.removeAttributeNS(r.space,r.local)}if(arguments.length<2){for(t in e)this.attr(t,e[t]);return this}var a="transform"==e?on:Bi,r=Ws.ns.qualify(e);return Es(this,"attr."+e,t,r.local?function(i){return null==i?s:(i+="",function(){var t,e=this.getAttributeNS(r.space,r.local);return e!==i&&(t=a(e,i),function(e){this.setAttributeNS(r.space,r.local,t(e))})})}:function(i){return null==i?n:(i+="",function(){var t,e=this.getAttribute(r);return e!==i&&(t=a(e,i),function(e){this.setAttribute(r,t(e))})})})},jo.attrTween=function(e,n){var s=Ws.ns.qualify(e);return this.tween("attr."+e,s.local?function(e,t){var i=n.call(this,e,t,this.getAttributeNS(s.space,s.local));return i&&function(e){this.setAttributeNS(s.space,s.local,i(e))}}:function(e,t){var i=n.call(this,e,t,this.getAttribute(s));return i&&function(e){this.setAttribute(s,i(e))}})},jo.style=function(n,e,s){function t(){this.style.removeProperty(n)}var i=arguments.length;if(i<3){if("string"!=typeof n){for(s in i<2&&(e=""),n)this.style(s,n[s],e);return this}s=""}return Es(this,"style."+n,e,function(i){return null==i?t:(i+="",function(){var t,e=Gs.getComputedStyle(this,null).getPropertyValue(n);return e!==i&&(t=Bi(e,i),function(e){this.style.setProperty(n,t(e),s)})})})},jo.styleTween=function(n,s,a){return arguments.length<3&&(a=""),this.tween("style."+n,function(e,t){var i=s.call(this,e,t,Gs.getComputedStyle(this,null).getPropertyValue(n));return i&&function(e){this.style.setProperty(n,i(e),a)}})},jo.text=function(e){return Es(this,"text",e,Hs)},jo.remove=function(){var t=this.namespace;return this.each("end.transition",function(){var e;this[t].count<2&&(e=this.parentNode)&&e.removeChild(this)})},jo.ease=function(t){var i=this.id,n=this.namespace;return arguments.length<1?this.node()[n][i].ease:("function"!=typeof t&&(t=Ws.ease.apply(Ws,arguments)),P(this,function(e){e[n][i].ease=t}))},jo.delay=function(n){var s=this.id,a=this.namespace;return arguments.length<1?this.node()[a][s].delay:P(this,"function"==typeof n?function(e,t,i){e[a][s].delay=+n.call(e,e.__data__,t,i)}:(n=+n,function(e){e[a][s].delay=n}))},jo.duration=function(n){var s=this.id,a=this.namespace;return arguments.length<1?this.node()[a][s].duration:P(this,"function"==typeof n?function(e,t,i){e[a][s].duration=Math.max(1,n.call(e,e.__data__,t,i))}:(n=Math.max(1,n),function(e){e[a][s].duration=n}))},jo.each=function(n,i){var s=this.id,a=this.namespace;if(arguments.length<2){var e=xo,t=bo;bo=s,P(this,function(e,t,i){xo=e[a][s],n.call(e,e.__data__,t,i)}),xo=e,bo=t}else P(this,function(e){var t=e[a][s];(t.event||(t.event=Ws.dispatch("start","end","interrupt"))).on(n,i)});return this},jo.transition=function(){for(var e,t,i,n=this.id,s=++ko,a=this.namespace,r=[],o=0,l=this.length;o<l;o++){r.push(e=[]);for(var h,u=0,d=(h=this[o]).length;u<d;u++)(t=h[u])&&Is(t,u,a,s,{time:(i=t[a][n]).time,ease:i.ease,delay:i.delay+i.duration,duration:i.duration}),e.push(t)}return Ys(r,a,s)},Ws.svg.axis=function(){function i(e){e.each(function(){var e,t=Ws.select(this),i=this.__chart__||S,n=this.__chart__=S.copy(),s=null==H?n.ticks?n.ticks.apply(n,E):n.domain():H,a=null==L?n.tickFormat?n.tickFormat.apply(n,E):we:L,r=t.selectAll(".tick").data(s,n),o=r.enter().insert("g",".domain").attr("class","tick").style("opacity",ya),l=Ws.transition(r.exit()).style("opacity",ya).remove(),h=Ws.transition(r.order()).style("opacity",1),u=Math.max(D,0)+Y,d=Gn(n),c=t.selectAll(".domain").data([0]),p=(c.enter().append("path").attr("class","domain"),Ws.transition(c));o.append("line"),o.append("text");var f,m,g,v,_=o.select("line"),y=h.select("line"),b=r.select("text").text(a),x=o.select("text"),w=h.select("text"),M="top"===T||"left"===T?-1:1;if("bottom"===T||"top"===T?(e=Fs,f="x",g="y",m="x2",v="y2",b.attr("dy",M<0?"0em":".71em").style("text-anchor","middle"),p.attr("d","M"+d[0]+","+M*C+"V0H"+d[1]+"V"+M*C)):(e=$s,f="y",g="x",m="y2",v="x2",b.attr("dy",".32em").style("text-anchor",M<0?"end":"start"),p.attr("d","M"+M*C+","+d[0]+"H0V"+d[1]+"H"+M*C)),_.attr(v,M*D),x.attr(g,M*u),y.attr(m,0).attr(v,M*D),w.attr(f,0).attr(g,M*u),n.rangeBand){var j=n,k=j.rangeBand()/2;i=n=function(e){return j(e)+k}}else i.rangeBand?i=n:l.call(e,n,i);o.call(e,i,n),h.call(e,n,n)})}var L,S=Ws.scale.linear(),T=Lo,D=6,C=6,Y=3,E=[10],H=null;return i.scale=function(e){return arguments.length?(S=e,i):S},i.orient=function(e){return arguments.length?(T=e in So?e+"":Lo,i):T},i.ticks=function(){return arguments.length?(E=arguments,i):E},i.tickValues=function(e){return arguments.length?(H=e,i):H},i.tickFormat=function(e){return arguments.length?(L=e,i):L},i.tickSize=function(e){var t=arguments.length;return t?(D=+e,C=+arguments[t-1],i):D},i.innerTickSize=function(e){return arguments.length?(D=+e,i):D},i.outerTickSize=function(e){return arguments.length?(C=+e,i):C},i.tickPadding=function(e){return arguments.length?(Y=+e,i):Y},i.tickSubdivide=function(){return arguments.length&&i},i};var Lo="bottom",So={top:1,right:1,bottom:1,left:1};Ws.svg.brush=function(){function _(e){e.each(function(){var e=Ws.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",r).on("touchstart.brush",r),t=e.selectAll(".background").data([0]);t.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),e.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var i=e.selectAll(".resize").data(o,we);i.exit().remove(),i.enter().append("g").attr("class",function(e){return"resize "+e}).style("cursor",function(e){return To[e]}).append("rect").attr("x",function(e){return/[ew]$/.test(e)?-3:null}).attr("y",function(e){return/^[ns]/.test(e)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),i.style("display",_.empty()?"none":null);var n,s=Ws.transition(e),a=Ws.transition(t);k&&(n=Gn(k),a.attr("x",n[0]).attr("width",n[1]-n[0]),b(s)),L&&(n=Gn(L),a.attr("y",n[0]).attr("height",n[1]-n[0]),x(s)),y(s)})}function y(e){e.selectAll(".resize").attr("transform",function(e){return"translate("+S[+/e$/.test(e)]+","+T[+/^s/.test(e)]+")"})}function b(e){e.select(".extent").attr("x",S[0]),e.selectAll(".extent,.n>rect,.s>rect").attr("width",S[1]-S[0])}function x(e){e.select(".extent").attr("y",T[0]),e.selectAll(".extent,.e>rect,.w>rect").attr("height",T[1]-T[0])}function r(){function e(){var e=Ws.mouse(s),t=!1;n&&(e[0]+=n[0],e[1]+=n[1]),c||(Ws.event.altKey?(d||(d=[(S[0]+S[1])/2,(T[0]+T[1])/2]),f[0]=S[+(e[0]<d[0])],f[1]=T[+(e[1]<d[1])]):d=null),h&&i(e,k,0)&&(b(o),t=!0),u&&i(e,L,1)&&(x(o),t=!0),t&&(y(o),r({type:"brush",mode:c?"move":"resize"}))}function i(e,t,i){var n,s,a=Gn(t),r=a[0],o=a[1],l=f[i],h=i?T:S,u=h[1]-h[0];return c&&(r-=l,o-=u+l),n=(i?C:D)?Math.max(r,Math.min(o,e[i])):e[i],c?s=(n+=l)+u:(d&&(l=Math.max(r,Math.min(o,2*d[i]-n))),l<n?(s=n,n=l):s=l),h[0]!=n||h[1]!=s?(i?M=null:w=null,h[0]=n,h[1]=s,!0):void 0}function t(){e(),o.style("pointer-events","all").selectAll(".resize").style("display",_.empty()?"none":null),Ws.select("body").style("cursor",null),m.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),p(),r({type:"brushend"})}var d,n,s=this,a=Ws.select(Ws.event.target),r=j.of(s,arguments),o=Ws.select(s),l=a.datum(),h=!/^(n|s)$/.test(l)&&k,u=!/^(e|w)$/.test(l)&&L,c=a.classed("extent"),p=V(),f=Ws.mouse(s),m=Ws.select(Gs).on("keydown.brush",function(){32==Ws.event.keyCode&&(c||(d=null,f[0]-=S[1],f[1]-=T[1],c=2),H())}).on("keyup.brush",function(){32==Ws.event.keyCode&&2==c&&(f[0]+=S[1],f[1]+=T[1],c=0,H())});if(Ws.event.changedTouches?m.on("touchmove.brush",e).on("touchend.brush",t):m.on("mousemove.brush",e).on("mouseup.brush",t),o.interrupt().selectAll("*").interrupt(),c)f[0]=S[0]-f[0],f[1]=T[0]-f[1];else if(l){var g=+/w$/.test(l),v=+/^n/.test(l);n=[S[1-g]-f[0],T[1-v]-f[1]],f[0]=S[g],f[1]=T[v]}else Ws.event.altKey&&(d=f.slice());o.style("pointer-events","none").selectAll(".resize").style("display",null),Ws.select("body").style("cursor",a.style("cursor")),r({type:"brushstart"}),e()}var w,M,j=A(_,"brushstart","brush","brushend"),k=null,L=null,S=[0,0],T=[0,0],D=!0,C=!0,o=Do[0];return _.event=function(e){e.each(function(){var n=j.of(this,arguments),s={x:S,y:T,i:w,j:M},e=this.__chart__||s;this.__chart__=s,bo?Ws.select(this).transition().each("start.brush",function(){w=e.i,M=e.j,S=e.x,T=e.y,n({type:"brushstart"})}).tween("brush:brush",function(){var t=Ui(S,s.x),i=Ui(T,s.y);return w=M=null,function(e){S=s.x=t(e),T=s.y=i(e),n({type:"brush",mode:"resize"})}}).each("end.brush",function(){w=s.i,M=s.j,n({type:"brush",mode:"resize"}),n({type:"brushend"})}):(n({type:"brushstart"}),n({type:"brush",mode:"resize"}),n({type:"brushend"}))})},_.x=function(e){return arguments.length?(o=Do[!(k=e)<<1|!L],_):k},_.y=function(e){return arguments.length?(o=Do[!k<<1|!(L=e)],_):L},_.clamp=function(e){return arguments.length?(k&&L?(D=!!e[0],C=!!e[1]):k?D=!!e:L&&(C=!!e),_):k&&L?[D,C]:k?D:L?C:null},_.extent=function(e){var t,i,n,s,a;return arguments.length?(k&&(t=e[0],i=e[1],L&&(t=t[0],i=i[0]),w=[t,i],k.invert&&(t=k(t),i=k(i)),i<t&&(a=t,t=i,i=a),(t!=S[0]||i!=S[1])&&(S=[t,i])),L&&(n=e[0],s=e[1],k&&(n=n[1],s=s[1]),M=[n,s],L.invert&&(n=L(n),s=L(s)),s<n&&(a=n,n=s,s=a),(n!=T[0]||s!=T[1])&&(T=[n,s])),_):(k&&(w?(t=w[0],i=w[1]):(t=S[0],i=S[1],k.invert&&(t=k.invert(t),i=k.invert(i)),i<t&&(a=t,t=i,i=a))),L&&(M?(n=M[0],s=M[1]):(n=T[0],s=T[1],L.invert&&(n=L.invert(n),s=L.invert(s)),s<n&&(a=n,n=s,s=a))),k&&L?[[t,n],[i,s]]:k?[t,i]:L&&[n,s])},_.clear=function(){return _.empty()||(S=[0,0],T=[0,0],w=M=null),_},_.empty=function(){return!!k&&S[0]==S[1]||!!L&&T[0]==T[1]},Ws.rebind(_,j,"on")};var To={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Do=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]],Co=Xa.format=tr.timeFormat,Yo=Co.utc,Eo=Yo("%Y-%m-%dT%H:%M:%S.%LZ");Co.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?Ps:Eo,Ps.parse=function(e){var t=new Date(e);return isNaN(t)?null:t},Ps.toString=Eo.toString,Xa.second=Ye(function(e){return new Ja(1e3*Math.floor(e/1e3))},function(e,t){e.setTime(e.getTime()+1e3*Math.floor(t))},function(e){return e.getSeconds()}),Xa.seconds=Xa.second.range,Xa.seconds.utc=Xa.second.utc.range,Xa.minute=Ye(function(e){return new Ja(6e4*Math.floor(e/6e4))},function(e,t){e.setTime(e.getTime()+6e4*Math.floor(t))},function(e){return e.getMinutes()}),Xa.minutes=Xa.minute.range,Xa.minutes.utc=Xa.minute.utc.range,Xa.hour=Ye(function(e){var t=e.getTimezoneOffset()/60;return new Ja(36e5*(Math.floor(e/36e5-t)+t))},function(e,t){e.setTime(e.getTime()+36e5*Math.floor(t))},function(e){return e.getHours()}),Xa.hours=Xa.hour.range,Xa.hours.utc=Xa.hour.utc.range,Xa.month=Ye(function(e){return(e=Xa.day(e)).setDate(1),e},function(e,t){e.setMonth(e.getMonth()+t)},function(e){return e.getMonth()}),Xa.months=Xa.month.range,Xa.months.utc=Xa.month.utc.range;var Ho=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],Ao=[[Xa.second,1],[Xa.second,5],[Xa.second,15],[Xa.second,30],[Xa.minute,1],[Xa.minute,5],[Xa.minute,15],[Xa.minute,30],[Xa.hour,1],[Xa.hour,3],[Xa.hour,6],[Xa.hour,12],[Xa.day,1],[Xa.day,2],[Xa.week,1],[Xa.month,1],[Xa.month,3],[Xa.year,1]],Io=Co.multi([[".%L",function(e){return e.getMilliseconds()}],[":%S",function(e){return e.getSeconds()}],["%I:%M",function(e){return e.getMinutes()}],["%I %p",function(e){return e.getHours()}],["%a %d",function(e){return e.getDay()&&1!=e.getDate()}],["%b %d",function(e){return 1!=e.getDate()}],["%B",function(e){return e.getMonth()}],["%Y",_t]]),Fo={range:function(e,t,i){return Ws.range(Math.ceil(e/i)*i,+t,i).map(Ns)},floor:we,ceil:we};Ao.year=Xa.year,Xa.scale=function(){return zs(Ws.scale.linear(),Ao,Io)};var $o=Ao.map(function(e){return[e[0].utc,e[1]]}),Po=Yo.multi([[".%L",function(e){return e.getUTCMilliseconds()}],[":%S",function(e){return e.getUTCSeconds()}],["%I:%M",function(e){return e.getUTCMinutes()}],["%I %p",function(e){return e.getUTCHours()}],["%a %d",function(e){return e.getUTCDay()&&1!=e.getUTCDate()}],["%b %d",function(e){return 1!=e.getUTCDate()}],["%B",function(e){return e.getUTCMonth()}],["%Y",_t]]);$o.year=Xa.year.utc,Xa.scale.utc=function(){return zs(Ws.scale.linear(),$o,Po)},Ws.text=Me(function(e){return e.responseText}),Ws.json=function(e,t){return je(e,"application/json",Os,t)},Ws.html=function(e,t){return je(e,"text/html",Rs,t)},Ws.xml=Me(function(e){return e.responseXML}),"function"==typeof define&&define.amd?define(Ws):"object"==typeof module&&module.exports&&(module.exports=Ws),this.d3=Ws}(),function(h){"use strict";function t(e){this.owner=e}function i(e){var t=this.internal=new n(this);t.loadConfig(e),t.init(),function t(i,n,s){Object.keys(i).forEach(function(e){n[e]=i[e].bind(s),0<Object.keys(i[e]).length&&t(i[e],n[e],s)})}(s,this,this)}function n(e){this.d3=h.d3?h.d3:"undefined"!=typeof require?require("d3"):void 0,this.api=e,this.config=this.getDefaultConfig(),this.data={},this.cache={},this.axes={}}function o(e){t.call(this,e)}function d($,P){function z(e,t){e.attr("transform",function(e){return"translate("+Math.ceil(t(e)+Z)+", 0)"})}function N(e,t){e.attr("transform",function(e){return"translate(0,"+Math.ceil(t(e))+")"})}function O(e){var t=i?i(e):e;return void 0!==t?t:""}function R(e){return P.withoutTransition?e:$.transition(e)}function W(e){e.each(function(){function e(e,t){var i=L.h;return 0===t&&(i="left"===G||"right"===G?-((S[e.index]-1)*(L.h/2)-3):".71em"),i}var t,i,n,s,a,r,o,l,h=W.g=$.select(this),u=this.__chart__||q,d=this.__chart__=(l=q.copy(),P.isCategory&&(o=q.domain(),l.domain([o[0],o[1]-1])),l),c=K||function(e){var t,i,n=[];if(e.ticks)return e.ticks.apply(e,B);for(i=e.domain(),t=Math.ceil(i[0]);t<i[1];t++)n.push(t);return 0<n.length&&0<n[0]&&n.unshift(n[0]-(n[1]-n[0])),n}(d),p=h.selectAll(".tick").data(c,d),f=p.enter().insert("g",".domain").attr("class","tick").style("opacity",1e-6),m=p.exit().remove(),g=R(p).style("opacity",1),v=q.rangeExtent?q.rangeExtent():(s=q.range(),a=s[0],r=s[s.length-1],a<r?[a,r]:[r,a]),_=h.selectAll(".domain").data([0]),y=(_.enter().append("path").attr("class","domain"),R(_));f.append("line"),f.append("text");var b=f.select("line"),x=g.select("line"),w=f.select("text"),M=g.select("text");P.isCategory?(Z=Math.ceil((d(1)-d(0))/2),i=U?0:Z,n=U?Z:0):Z=i=0;var j,k,L=function(e){if(Q)return Q;var a={h:11.5,w:5.5};return e.select("text").text(O).each(function(e){var t=this.getBoundingClientRect(),i=O(e),n=t.height,s=i?t.width/i.length:void 0;n&&s&&(a.h=n,a.w=s)}).text(""),Q=a}(h.select(".tick")),S=[],T=Math.max(X,0)+J,D="left"===G||"right"===G;(k=(j=p.select("text")).selectAll("tspan").data(function(e,t){var i,s,a,r,o,n,l=P.tickMultiline?(i=e,s=P.tickWidth,n=O(i),"[object Array]"===Object.prototype.toString.call(n)?n:((!s||s<=0)&&(s=D?95:P.isCategory?Math.ceil(d(c[1])-d(c[0]))-12:110),function e(t,i){r=void 0;for(var n=1;n<i.length;n++)if(" "===i.charAt(n)&&(r=n),a=i.substr(0,n+1),o=L.w*a.length,s<o)return e(t.concat(i.substr(0,r||n)),i.slice(r?r+1:n));return t.concat(i)}([],n+""))):[].concat(O(e));return S[t]=l.length,l.map(function(e){return{index:t,splitted:e}})})).enter().append("tspan"),k.exit().remove(),k.text(function(e){return e.splitted});var C,Y,E,H,A=P.tickTextRotate;switch(G){case"bottom":t=z,b.attr("y2",X),w.attr("y",T),x.attr("x1",i).attr("x2",i).attr("y2",function(e){var t=q(e)+(U?0:Z);return v[0]<t&&t<v[1]?X:0}),M.attr("x",0).attr("y",(H=A,H?11.5-H/15*2.5*(0<H?1:-1):T)).style("text-anchor",(E=A,E?0<E?"start":"end":"middle")).attr("transform",(Y=A)?"rotate("+Y+")":""),k.attr("x",0).attr("dy",e).attr("dx",(C=A)?8*Math.sin(Math.PI*(C/180)):0),y.attr("d","M"+v[0]+","+V+"V0H"+v[1]+"V"+V);break;case"top":t=z,b.attr("y2",-X),w.attr("y",-T),x.attr("x2",0).attr("y2",-X),M.attr("x",0).attr("y",-T),j.style("text-anchor","middle"),k.attr("x",0).attr("dy","0em"),y.attr("d","M"+v[0]+","+-V+"V0H"+v[1]+"V"+-V);break;case"left":t=N,b.attr("x2",-X),w.attr("x",-T),x.attr("x2",-X).attr("y1",n).attr("y2",n),M.attr("x",-T).attr("y",Z),j.style("text-anchor","end"),k.attr("x",-T).attr("dy",e),y.attr("d","M"+-V+","+v[0]+"H0V"+v[1]+"H"+-V);break;case"right":t=N,b.attr("x2",X),w.attr("x",T),x.attr("x2",X).attr("y2",0),M.attr("x",T).attr("y",0),j.style("text-anchor","start"),k.attr("x",T).attr("dy",e),y.attr("d","M"+V+","+v[0]+"H0V"+v[1]+"H"+V)}if(d.rangeBand){var I=d,F=I.rangeBand()/2;u=d=function(e){return I(e)+F}}else u.rangeBand?u=d:m.call(t,d);f.call(t,u),g.call(t,d)})}var V,i,B,U,q=$.scale.linear(),G="bottom",X=6,J=3,K=null,Z=0,t=!0;return V=(P=P||{}).withOuterTick?6:0,W.scale=function(e){return arguments.length?(q=e,W):q},W.orient=function(e){return arguments.length?(G=e in{top:1,right:1,bottom:1,left:1}?e+"":"bottom",W):G},W.tickFormat=function(e){return arguments.length?(i=e,W):i},W.tickCentered=function(e){return arguments.length?(U=e,W):U},W.tickOffset=function(){return Z},W.tickInterval=function(){var e;return P.isCategory?e=2*Z:e=(W.g.select("path.domain").node().getTotalLength()-2*V)/W.g.selectAll("line").size(),1/0===e?0:e},W.ticks=function(){return arguments.length?(B=arguments,W):B},W.tickCulling=function(e){return arguments.length?(t=e,W):t},W.tickValues=function(e){if("function"==typeof e)K=function(){return e(q.domain())};else{if(!arguments.length)return K;K=e}return W},W}var s,u,e={version:"0.4.10",generate:function(e){return new i(e)}};e.chart={fn:i.prototype,internal:{fn:n.prototype,axis:{fn:o.prototype}}},s=e.chart.fn,u=e.chart.internal.fn,e.chart.internal.axis.fn,u.init=function(){var e=this,t=e.config;if(e.initParams(),t.data_url)e.convertUrlToData(t.data_url,t.data_mimeType,t.data_keys,e.initWithData);else if(t.data_json)e.initWithData(e.convertJsonToData(t.data_json,t.data_keys));else if(t.data_rows)e.initWithData(e.convertRowsToData(t.data_rows));else{if(!t.data_columns)throw Error("url or json or rows or columns is required.");e.initWithData(e.convertColumnsToData(t.data_columns))}},u.initParams=function(){var e=this,t=e.d3,i=e.config;e.clipId="c3-"+ +new Date+"-clip",e.clipIdForXAxis=e.clipId+"-xaxis",e.clipIdForYAxis=e.clipId+"-yaxis",e.clipIdForGrid=e.clipId+"-grid",e.clipIdForSubchart=e.clipId+"-subchart",e.clipPath=e.getClipPath(e.clipId),e.clipPathForXAxis=e.getClipPath(e.clipIdForXAxis),e.clipPathForYAxis=e.getClipPath(e.clipIdForYAxis),e.clipPathForGrid=e.getClipPath(e.clipIdForGrid),e.clipPathForSubchart=e.getClipPath(e.clipIdForSubchart),e.dragStart=null,e.dragging=!1,e.flowing=!1,e.cancelClick=!1,e.mouseover=!1,e.transiting=!1,e.color=e.generateColor(),e.levelColor=e.generateLevelColor(),e.dataTimeFormat=i.data_xLocaltime?t.time.format:t.time.format.utc,e.axisTimeFormat=i.axis_x_localtime?t.time.format:t.time.format.utc,e.defaultAxisTimeFormat=e.axisTimeFormat.multi([[".%L",function(e){return e.getMilliseconds()}],[":%S",function(e){return e.getSeconds()}],["%I:%M",function(e){return e.getMinutes()}],["%I %p",function(e){return e.getHours()}],["%-m/%-d",function(e){return e.getDay()&&1!==e.getDate()}],["%-m/%-d",function(e){return 1!==e.getDate()}],["%-m/%-d",function(e){return e.getMonth()}],["%Y/%-m/%-d",function(){return!0}]]),e.hiddenTargetIds=[],e.hiddenLegendIds=[],e.focusedTargetIds=[],e.defocusedTargetIds=[],e.xOrient=i.axis_rotated?"left":"bottom",e.yOrient=i.axis_rotated?i.axis_y_inner?"top":"bottom":i.axis_y_inner?"right":"left",e.y2Orient=i.axis_rotated?i.axis_y2_inner?"bottom":"top":i.axis_y2_inner?"left":"right",e.subXOrient=i.axis_rotated?"left":"bottom",e.isLegendRight="right"===i.legend_position,e.isLegendInset="inset"===i.legend_position,e.isLegendTop="top-left"===i.legend_inset_anchor||"top-right"===i.legend_inset_anchor,e.isLegendLeft="top-left"===i.legend_inset_anchor||"bottom-left"===i.legend_inset_anchor,e.legendStep=0,e.legendItemWidth=0,e.legendItemHeight=0,e.currentMaxTickWidths={x:0,y:0,y2:0},e.rotated_padding_left=30,e.rotated_padding_right=i.axis_rotated&&!i.axis_x_show?0:30,e.rotated_padding_top=5,e.withoutFadeIn={},e.intervalForObserveInserted=void 0,e.axes.subx=t.selectAll([])},u.initChartElements=function(){this.initBar&&this.initBar(),this.initLine&&this.initLine(),this.initArc&&this.initArc(),this.initGauge&&this.initGauge(),this.initText&&this.initText()},u.initWithData=function(e){var t,i,n=this,s=n.d3,a=n.config,r=!0;n.axis=new o(n),n.initPie&&n.initPie(),n.initBrush&&n.initBrush(),n.initZoom&&n.initZoom(),n.selectChart=a.bindto?"function"==typeof a.bindto.node?a.bindto:s.select(a.bindto):s.selectAll([]),n.selectChart.empty()&&(n.selectChart=s.select(document.createElement("div")).style("opacity",0),n.observeInserted(n.selectChart),r=!1),n.selectChart.html("").classed("c3",!0),n.data.xs={},n.data.targets=n.convertDataToTargets(e),a.data_filter&&(n.data.targets=n.data.targets.filter(a.data_filter)),a.data_hide&&n.addHiddenTargetIds(!0===a.data_hide?n.mapToIds(n.data.targets):a.data_hide),a.legend_hide&&n.addHiddenLegendIds(!0===a.legend_hide?n.mapToIds(n.data.targets):a.legend_hide),n.hasType("gauge")&&(a.legend_show=!1),n.updateSizes(),n.updateScales(),n.x.domain(s.extent(n.getXDomain(n.data.targets))),n.y.domain(n.getYDomain(n.data.targets,"y")),n.y2.domain(n.getYDomain(n.data.targets,"y2")),n.subX.domain(n.x.domain()),n.subY.domain(n.y.domain()),n.subY2.domain(n.y2.domain()),n.orgXDomain=n.x.domain(),n.brush&&n.brush.scale(n.subX),a.zoom_enabled&&n.zoom.scale(n.x),n.svg=n.selectChart.append("svg").style("overflow","hidden").on("mouseenter",function(){return a.onmouseover.call(n)}).on("mouseleave",function(){return a.onmouseout.call(n)}),t=n.svg.append("defs"),n.clipChart=n.appendClip(t,n.clipId),n.clipXAxis=n.appendClip(t,n.clipIdForXAxis),n.clipYAxis=n.appendClip(t,n.clipIdForYAxis),n.clipGrid=n.appendClip(t,n.clipIdForGrid),n.clipSubchart=n.appendClip(t,n.clipIdForSubchart),n.updateSvgSize(),i=n.main=n.svg.append("g").attr("transform",n.getTranslate("main")),n.initSubchart&&n.initSubchart(),n.initTooltip&&n.initTooltip(),n.initLegend&&n.initLegend(),i.append("text").attr("class",O.text+" "+O.empty).attr("text-anchor","middle").attr("dominant-baseline","middle"),n.initRegion(),n.initGrid(),i.append("g").attr("clip-path",n.clipPath).attr("class",O.chart),a.grid_lines_front&&n.initGridLines(),n.initEventRect(),n.initChartElements(),i.insert("rect",a.zoom_privileged?null:"g."+O.regions).attr("class",O.zoomRect).attr("width",n.width).attr("height",n.height).style("opacity",0).on("dblclick.zoom",null),a.axis_x_extent&&n.brush.extent(n.getDefaultExtent()),n.axis.init(),n.updateTargets(n.data.targets),r&&(n.updateDimension(),n.config.oninit.call(n),n.redraw({withTransition:!1,withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withTransitionForAxis:!1})),null==h.onresize&&(h.onresize=n.generateResize()),h.onresize.add&&(h.onresize.add(function(){a.onresize.call(n)}),h.onresize.add(function(){n.api.flush()}),h.onresize.add(function(){a.onresized.call(n)})),n.api.element=n.selectChart.node()},u.smoothLines=function(e,t){var a=this;"grid"===t&&e.each(function(){var e=a.d3.select(this),t=e.attr("x1"),i=e.attr("x2"),n=e.attr("y1"),s=e.attr("y2");e.attr({x1:Math.ceil(t),x2:Math.ceil(i),y1:Math.ceil(n),y2:Math.ceil(s)})})},u.updateSizes=function(){var e=this,t=e.config,i=e.legend?e.getLegendHeight():0,n=e.legend?e.getLegendWidth():0,s=e.isLegendRight||e.isLegendInset?0:i,a=e.hasArcType(),r=t.axis_rotated||a?0:e.getHorizontalAxisHeight("x"),o=t.subchart_show&&!a?t.subchart_size_height+r:0;e.currentWidth=e.getCurrentWidth(),e.currentHeight=e.getCurrentHeight(),e.margin=t.axis_rotated?{top:e.getHorizontalAxisHeight("y2")+e.getCurrentPaddingTop(),right:a?0:e.getCurrentPaddingRight(),bottom:e.getHorizontalAxisHeight("y")+s+e.getCurrentPaddingBottom(),left:o+(a?0:e.getCurrentPaddingLeft())}:{top:4+e.getCurrentPaddingTop(),right:a?0:e.getCurrentPaddingRight(),bottom:r+o+s+e.getCurrentPaddingBottom(),left:a?0:e.getCurrentPaddingLeft()},e.margin2=t.axis_rotated?{top:e.margin.top,right:NaN,bottom:20+s,left:e.rotated_padding_left}:{top:e.currentHeight-o-s,right:NaN,bottom:r+s,left:e.margin.left},e.margin3={top:0,right:NaN,bottom:0,left:0},e.updateSizeForLegend&&e.updateSizeForLegend(i,n),e.width=e.currentWidth-e.margin.left-e.margin.right,e.height=e.currentHeight-e.margin.top-e.margin.bottom,e.width<0&&(e.width=0),e.height<0&&(e.height=0),e.width2=t.axis_rotated?e.margin.left-e.rotated_padding_left-e.rotated_padding_right:e.width,e.height2=t.axis_rotated?e.height:e.currentHeight-e.margin2.top-e.margin2.bottom,e.width2<0&&(e.width2=0),e.height2<0&&(e.height2=0),e.arcWidth=e.width-(e.isLegendRight?n+10:0),e.arcHeight=e.height-(e.isLegendRight?0:10),e.hasType("gauge")&&(e.arcHeight+=e.height-e.getGaugeLabelHeight()),e.updateRadius&&e.updateRadius(),e.isLegendRight&&a&&(e.margin3.left=e.arcWidth/2+1.1*e.radiusExpanded)},u.updateTargets=function(e){this.updateTargetsForText(e),this.updateTargetsForBar(e),this.updateTargetsForLine(e),this.hasArcType()&&this.updateTargetsForArc&&this.updateTargetsForArc(e),this.updateTargetsForSubchart&&this.updateTargetsForSubchart(e),this.showTargets()},u.showTargets=function(){var t=this;t.svg.selectAll("."+O.target).filter(function(e){return t.isTargetToShow(e.id)}).transition().duration(t.config.transition_duration).style("opacity",1)},u.redraw=function(e,t){var i,n,s,a,r,o,l,h,u,d,c,p,f,m,g,v,_,y,b,x,w,M,j,k,L,S,T,D,C,Y=this,E=Y.main,H=Y.d3,A=Y.config,I=Y.getShapeIndices(Y.isAreaType),F=Y.getShapeIndices(Y.isBarType),$=Y.getShapeIndices(Y.isLineType),P=Y.hasArcType(),z=Y.filterTargetsToShow(Y.data.targets),N=Y.xv.bind(Y);if(i=R(e=e||{},"withY",!0),n=R(e,"withSubchart",!0),s=R(e,"withTransition",!0),o=R(e,"withTransform",!1),l=R(e,"withUpdateXDomain",!1),h=R(e,"withUpdateOrgXDomain",!1),u=R(e,"withTrimXDomain",!0),f=R(e,"withUpdateXAxis",l),d=R(e,"withLegend",!1),c=R(e,"withEventRect",!0),p=R(e,"withDimension",!0),a=R(e,"withTransitionForExit",s),r=R(e,"withTransitionForAxis",s),b=s?A.transition_duration:0,x=a?b:0,w=r?b:0,t=t||Y.axis.generateTransitions(w),d&&A.legend_show?Y.updateLegend(Y.mapToIds(Y.data.targets),e,t):p&&Y.updateDimension(!0),Y.isCategorized()&&0===z.length&&Y.x.domain([0,Y.axes.x.selectAll(".tick").size()]),z.length?(Y.updateXDomain(z,l,h,u),A.axis_x_tick_values||(k=Y.axis.updateXAxisTickValues(z))):(Y.xAxis.tickValues([]),Y.subXAxis.tickValues([])),A.zoom_rescale&&!e.flow&&(T=Y.x.orgDomain()),Y.y.domain(Y.getYDomain(z,"y",T)),Y.y2.domain(Y.getYDomain(z,"y2",T)),!A.axis_y_tick_values&&A.axis_y_tick_count&&Y.yAxis.tickValues(Y.axis.generateTickValues(Y.y.domain(),A.axis_y_tick_count)),!A.axis_y2_tick_values&&A.axis_y2_tick_count&&Y.y2Axis.tickValues(Y.axis.generateTickValues(Y.y2.domain(),A.axis_y2_tick_count)),Y.axis.redraw(t,P),Y.axis.updateLabels(s),(l||f)&&z.length)if(A.axis_x_tick_culling&&k){for(L=1;L<k.length;L++)if(k.length/L<A.axis_x_tick_culling_max){S=L;break}Y.svg.selectAll("."+O.axisX+" .tick text").each(function(e){var t=k.indexOf(e);0<=t&&H.select(this).style("display",t%S?"none":"block")})}else Y.svg.selectAll("."+O.axisX+" .tick text").style("display","block");m=Y.generateDrawArea?Y.generateDrawArea(I,!1):void 0,g=Y.generateDrawBar?Y.generateDrawBar(F):void 0,v=Y.generateDrawLine?Y.generateDrawLine($,!1):void 0,_=Y.generateXYForText(I,F,$,!0),y=Y.generateXYForText(I,F,$,!1),i&&(Y.subY.domain(Y.getYDomain(z,"y")),Y.subY2.domain(Y.getYDomain(z,"y2"))),Y.tooltip.style("display","none"),Y.updateXgridFocus(),E.select("text."+O.text+"."+O.empty).attr("x",Y.width/2).attr("y",Y.height/2).text(A.data_empty_label_text).transition().style("opacity",z.length?0:1),Y.updateGrid(b),Y.updateRegion(b),Y.updateBar(x),Y.updateLine(x),Y.updateArea(x),Y.updateCircle(),Y.hasDataLabel()&&Y.updateText(x),Y.redrawArc&&Y.redrawArc(b,x,o),Y.redrawSubchart&&Y.redrawSubchart(n,t,b,x,I,F,$),E.selectAll("."+O.selectedCircles).filter(Y.isBarType.bind(Y)).selectAll("circle").remove(),A.interaction_enabled&&!e.flow&&c&&(Y.redrawEventRect(),Y.updateZoom&&Y.updateZoom()),Y.updateCircleY(),D=(Y.config.axis_rotated?Y.circleY:Y.circleX).bind(Y),C=(Y.config.axis_rotated?Y.circleX:Y.circleY).bind(Y),e.flow&&(j=Y.generateFlow({targets:z,flow:e.flow,duration:e.flow.duration,drawBar:g,drawLine:v,drawArea:m,cx:D,cy:C,xv:N,xForText:_,yForText:y})),(b||j)&&Y.isTabVisible()?H.transition().duration(b).each(function(){var t=[];[Y.redrawBar(g,!0),Y.redrawLine(v,!0),Y.redrawArea(m,!0),Y.redrawCircle(D,C,!0),Y.redrawText(_,y,e.flow,!0),Y.redrawRegion(!0),Y.redrawGrid(!0)].forEach(function(e){e.forEach(function(e){t.push(e)})}),M=Y.generateWait(),t.forEach(function(e){M.add(e)})}).call(M,function(){j&&j(),A.onrendered&&A.onrendered.call(Y)}):(Y.redrawBar(g),Y.redrawLine(v),Y.redrawArea(m),Y.redrawCircle(D,C),Y.redrawText(_,y,e.flow),Y.redrawRegion(),Y.redrawGrid(),A.onrendered&&A.onrendered.call(Y)),Y.mapToIds(Y.data.targets).forEach(function(e){Y.withoutFadeIn[e]=!0})},u.updateAndRedraw=function(e){var t,i=this.config;(e=e||{}).withTransition=R(e,"withTransition",!0),e.withTransform=R(e,"withTransform",!1),e.withLegend=R(e,"withLegend",!1),e.withUpdateXDomain=!0,e.withUpdateOrgXDomain=!0,e.withTransitionForExit=!1,e.withTransitionForTransform=R(e,"withTransitionForTransform",e.withTransition),this.updateSizes(),e.withLegend&&i.legend_show||(t=this.axis.generateTransitions(e.withTransitionForAxis?i.transition_duration:0),this.updateScales(),this.updateSvgSize(),this.transformAll(e.withTransitionForTransform,t)),this.redraw(e,t)},u.redrawWithoutRescale=function(){this.redraw({withY:!1,withSubchart:!1,withEventRect:!1,withTransitionForAxis:!1})},u.isTimeSeries=function(){return"timeseries"===this.config.axis_x_type},u.isCategorized=function(){return 0<=this.config.axis_x_type.indexOf("categor")},u.isCustomX=function(){var e=this.config;return!this.isTimeSeries()&&(e.data_x||S(e.data_xs))},u.isTimeSeriesY=function(){return"timeseries"===this.config.axis_y_type},u.getTranslate=function(e){var t,i,n=this,s=n.config;return"main"===e?(t=l(n.margin.left),i=l(n.margin.top)):"context"===e?(t=l(n.margin2.left),i=l(n.margin2.top)):"legend"===e?(t=n.margin3.left,i=n.margin3.top):"x"===e?(t=0,i=s.axis_rotated?0:n.height):"y"===e?(t=0,i=s.axis_rotated?n.height:0):"y2"===e?(t=s.axis_rotated?0:n.width,i=s.axis_rotated?1:0):"subx"===e?(t=0,i=s.axis_rotated?0:n.height2):"arc"===e&&(t=n.arcWidth/2,i=n.arcHeight/2),"translate("+t+","+i+")"},u.initialOpacity=function(e){return null!==e.value&&this.withoutFadeIn[e.id]?1:0},u.initialOpacityForCircle=function(e){return null!==e.value&&this.withoutFadeIn[e.id]?this.opacityForCircle(e):0},u.opacityForCircle=function(e){var t=this.config.point_show?1:0;return L(e.value)?this.isScatterType(e)?.5:t:0},u.opacityForText=function(){return this.hasDataLabel()?1:0},u.xx=function(e){return e?this.x(e.x):null},u.xv=function(e){var t=e.value;return this.isTimeSeries()?t=this.parseDate(e.value):this.isCategorized()&&"string"==typeof e.value&&(t=this.config.axis_x_categories.indexOf(e.value)),Math.ceil(this.x(t))},u.yv=function(e){var t=e.axis&&"y2"===e.axis?this.y2:this.y;return Math.ceil(t(e.value))},u.subxx=function(e){return e?this.subX(e.x):null},u.transformMain=function(e,t){var i,n,s,a=this;t&&t.axisX?i=t.axisX:(i=a.main.select("."+O.axisX),e&&(i=i.transition())),t&&t.axisY?n=t.axisY:(n=a.main.select("."+O.axisY),e&&(n=n.transition())),t&&t.axisY2?s=t.axisY2:(s=a.main.select("."+O.axisY2),e&&(s=s.transition())),(e?a.main.transition():a.main).attr("transform",a.getTranslate("main")),i.attr("transform",a.getTranslate("x")),n.attr("transform",a.getTranslate("y")),s.attr("transform",a.getTranslate("y2")),a.main.select("."+O.chartArcs).attr("transform",a.getTranslate("arc"))},u.transformAll=function(e,t){this.transformMain(e,t),this.config.subchart_show&&this.transformContext(e,t),this.legend&&this.transformLegend(e)},u.updateSvgSize=function(){var e=this,t=e.svg.select(".c3-brush .background");e.svg.attr("width",e.currentWidth).attr("height",e.currentHeight),e.svg.selectAll(["#"+e.clipId,"#"+e.clipIdForGrid]).select("rect").attr("width",e.width).attr("height",e.height),e.svg.select("#"+e.clipIdForXAxis).select("rect").attr("x",e.getXAxisClipX.bind(e)).attr("y",e.getXAxisClipY.bind(e)).attr("width",e.getXAxisClipWidth.bind(e)).attr("height",e.getXAxisClipHeight.bind(e)),e.svg.select("#"+e.clipIdForYAxis).select("rect").attr("x",e.getYAxisClipX.bind(e)).attr("y",e.getYAxisClipY.bind(e)).attr("width",e.getYAxisClipWidth.bind(e)).attr("height",e.getYAxisClipHeight.bind(e)),e.svg.select("#"+e.clipIdForSubchart).select("rect").attr("width",e.width).attr("height",t.size()?t.attr("height"):0),e.svg.select("."+O.zoomRect).attr("width",e.width).attr("height",e.height),e.selectChart.style("max-height",e.currentHeight+"px")},u.updateDimension=function(e){var t=this;e||(t.config.axis_rotated?(t.axes.x.call(t.xAxis),t.axes.subx.call(t.subXAxis)):(t.axes.y.call(t.yAxis),t.axes.y2.call(t.y2Axis))),t.updateSizes(),t.updateScales(),t.updateSvgSize(),t.transformAll(!1)},u.observeInserted=function(t){var i,n=this;return"undefined"==typeof MutationObserver?void h.console.error("MutationObserver not defined."):void(i=new MutationObserver(function(e){e.forEach(function(e){"childList"===e.type&&e.previousSibling&&(i.disconnect(),n.intervalForObserveInserted=h.setInterval(function(){t.node().parentNode&&(h.clearInterval(n.intervalForObserveInserted),n.updateDimension(),n.config.oninit.call(n),n.redraw({withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withTransition:!1,withTransitionForTransform:!1,withLegend:!0}),t.transition().style("opacity",1))},10))})})).observe(t.node(),{attributes:!0,childList:!0,characterData:!0})},u.generateResize=function(){function e(){t.forEach(function(e){e()})}var t=[];return e.add=function(e){t.push(e)},e},u.endall=function(e,t){var i=0;e.each(function(){++i}).each("end",function(){--i||t.apply(this,arguments)})},u.generateWait=function(){var s=[],e=function(e,i){var n=setInterval(function(){var t=0;s.forEach(function(e){if(e.empty())t+=1;else try{e.transition()}catch(e){t+=1}}),t===s.length&&(clearInterval(n),i&&i())},10)};return e.add=function(e){s.push(e)},e},u.parseDate=function(e){var t;return e instanceof Date?t=e:"string"==typeof e?t=this.dataTimeFormat(this.config.data_xFormat).parse(e):"number"!=typeof e&&isNaN(e)||(t=new Date(+e)),(!t||isNaN(+t))&&h.console.error("Failed to parse x '"+e+"' to Date object"),t},u.isTabVisible=function(){var e;return void 0!==document.hidden?e="hidden":void 0!==document.mozHidden?e="mozHidden":void 0!==document.msHidden?e="msHidden":void 0!==document.webkitHidden&&(e="webkitHidden"),!document[e]},u.getDefaultConfig=function(){var t={bindto:"#chart",size_width:void 0,size_height:void 0,padding_left:void 0,padding_right:void 0,padding_top:void 0,padding_bottom:void 0,zoom_enabled:!1,zoom_extent:void 0,zoom_privileged:!1,zoom_rescale:!1,zoom_onzoom:function(){},zoom_onzoomstart:function(){},zoom_onzoomend:function(){},interaction_enabled:!0,onmouseover:function(){},onmouseout:function(){},onresize:function(){},onresized:function(){},oninit:function(){},onrendered:function(){},transition_duration:350,data_x:void 0,data_xs:{},data_xFormat:"%Y-%m-%d",data_xLocaltime:!0,data_xSort:!0,data_idConverter:function(e){return e},data_names:{},data_classes:{},data_groups:[],data_axes:{},data_type:void 0,data_types:{},data_labels:{},data_order:"desc",data_regions:{},data_color:void 0,data_colors:{},data_hide:!1,data_filter:void 0,data_selection_enabled:!1,data_selection_grouped:!1,data_selection_isselectable:function(){return!0},data_selection_multiple:!0,data_selection_draggable:!1,data_onclick:function(){},data_onmouseover:function(){},data_onmouseout:function(){},data_onselected:function(){},data_onunselected:function(){},data_url:void 0,data_json:void 0,data_rows:void 0,data_columns:void 0,data_mimeType:void 0,data_keys:void 0,data_empty_label_text:"",subchart_show:!1,subchart_size_height:60,subchart_onbrush:function(){},color_pattern:[],color_threshold:{},legend_show:!0,legend_hide:!1,legend_position:"bottom",legend_inset_anchor:"top-left",legend_inset_x:10,legend_inset_y:0,legend_inset_step:void 0,legend_item_onclick:void 0,legend_item_onmouseover:void 0,legend_item_onmouseout:void 0,legend_equally:!1,axis_rotated:!1,axis_x_show:!0,axis_x_type:"indexed",axis_x_localtime:!0,axis_x_categories:[],axis_x_tick_centered:!1,axis_x_tick_format:void 0,axis_x_tick_culling:{},axis_x_tick_culling_max:10,axis_x_tick_count:void 0,axis_x_tick_fit:!0,axis_x_tick_values:null,axis_x_tick_rotate:0,axis_x_tick_outer:!0,axis_x_tick_multiline:!0,axis_x_tick_width:null,axis_x_max:void 0,axis_x_min:void 0,axis_x_padding:{},axis_x_height:void 0,axis_x_extent:void 0,axis_x_label:{},axis_y_show:!0,axis_y_type:void 0,axis_y_max:void 0,axis_y_min:void 0,axis_y_inverted:!1,axis_y_center:void 0,axis_y_inner:void 0,axis_y_label:{},axis_y_tick_format:void 0,axis_y_tick_outer:!0,axis_y_tick_values:null,axis_y_tick_count:void 0,axis_y_tick_time_value:void 0,axis_y_tick_time_interval:void 0,axis_y_padding:{},axis_y_default:void 0,axis_y2_show:!1,axis_y2_max:void 0,axis_y2_min:void 0,axis_y2_inverted:!1,axis_y2_center:void 0,axis_y2_inner:void 0,axis_y2_label:{},axis_y2_tick_format:void 0,axis_y2_tick_outer:!0,axis_y2_tick_values:null,axis_y2_tick_count:void 0,axis_y2_padding:{},axis_y2_default:void 0,grid_x_show:!1,grid_x_type:"tick",grid_x_lines:[],grid_y_show:!1,grid_y_lines:[],grid_y_ticks:10,grid_focus_show:!0,grid_lines_front:!0,point_show:!0,point_r:2.5,point_focus_expand_enabled:!0,point_focus_expand_r:void 0,point_select_r:void 0,line_connectNull:!1,line_step_type:"step",bar_width:void 0,bar_width_ratio:.6,bar_width_max:void 0,bar_zerobased:!0,area_zerobased:!0,pie_label_show:!0,pie_label_format:void 0,pie_label_threshold:.05,pie_expand:!0,gauge_label_show:!0,gauge_label_format:void 0,gauge_expand:!0,gauge_min:0,gauge_max:100,gauge_units:void 0,gauge_width:void 0,donut_label_show:!0,donut_label_format:void 0,donut_label_threshold:.05,donut_width:void 0,donut_expand:!0,donut_title:"",regions:[],tooltip_show:!0,tooltip_grouped:!0,tooltip_format_title:void 0,tooltip_format_name:void 0,tooltip_format_value:void 0,tooltip_position:void 0,tooltip_contents:function(e,t,i,n){return this.getTooltipContent?this.getTooltipContent(e,t,i,n):""},tooltip_init_show:!1,tooltip_init_x:0,tooltip_init_position:{top:"0px",left:"50px"}};return Object.keys(this.additionalConfig).forEach(function(e){t[e]=this.additionalConfig[e]},this),t},u.additionalConfig={},u.loadConfig=function(t){var i,n,s,a=this.config;Object.keys(a).forEach(function(e){i=t,n=e.split("_"),s=function e(){var t=n.shift();return t&&i&&"object"==typeof i&&t in i?(i=i[t],e()):t?void 0:i}(),E(s)&&(a[e]=s)})},u.getScale=function(e,t,i){return(i?this.d3.time.scale():this.d3.scale.linear()).range([e,t])},u.getX=function(e,t,i,n){var s,a=this.getScale(e,t,this.isTimeSeries()),r=i?a.domain(i):a;for(s in this.isCategorized()?(n=n||function(){return 0},a=function(e,t){var i=r(e)+n(e);return t?i:Math.ceil(i)}):a=function(e,t){var i=r(e);return t?i:Math.ceil(i)},r)a[s]=r[s];return a.orgDomain=function(){return r.domain()},this.isCategorized()&&(a.domain=function(e){return arguments.length?(r.domain(e),a):[(e=this.orgDomain())[0],e[1]+1]}),a},u.getY=function(e,t,i){var n=this.getScale(e,t,this.isTimeSeriesY());return i&&n.domain(i),n},u.getYScale=function(e){return"y2"===this.axis.getId(e)?this.y2:this.y},u.getSubYScale=function(e){return"y2"===this.axis.getId(e)?this.subY2:this.subY},u.updateScales=function(){var t=this,e=t.config,i=!t.x;t.xMin=e.axis_rotated?1:0,t.xMax=e.axis_rotated?t.height:t.width,t.yMin=e.axis_rotated?0:t.height,t.yMax=e.axis_rotated?t.width:1,t.subXMin=t.xMin,t.subXMax=t.xMax,t.subYMin=e.axis_rotated?0:t.height2,t.subYMax=e.axis_rotated?t.width2:1,t.x=t.getX(t.xMin,t.xMax,i?void 0:t.x.orgDomain(),function(){return t.xAxis.tickOffset()}),t.y=t.getY(t.yMin,t.yMax,i?e.axis_y_default:t.y.domain()),t.y2=t.getY(t.yMin,t.yMax,i?e.axis_y2_default:t.y2.domain()),t.subX=t.getX(t.xMin,t.xMax,t.orgXDomain,function(e){return e%1?0:t.subXAxis.tickOffset()}),t.subY=t.getY(t.subYMin,t.subYMax,i?e.axis_y_default:t.subY.domain()),t.subY2=t.getY(t.subYMin,t.subYMax,i?e.axis_y2_default:t.subY2.domain()),t.xAxisTickFormat=t.axis.getXAxisTickFormat(),t.xAxisTickValues=t.axis.getXAxisTickValues(),t.yAxisTickValues=t.axis.getYAxisTickValues(),t.y2AxisTickValues=t.axis.getY2AxisTickValues(),t.xAxis=t.axis.getXAxis(t.x,t.xOrient,t.xAxisTickFormat,t.xAxisTickValues,e.axis_x_tick_outer),t.subXAxis=t.axis.getXAxis(t.subX,t.subXOrient,t.xAxisTickFormat,t.xAxisTickValues,e.axis_x_tick_outer),t.yAxis=t.axis.getYAxis(t.y,t.yOrient,e.axis_y_tick_format,t.yAxisTickValues,e.axis_y_tick_outer),t.y2Axis=t.axis.getYAxis(t.y2,t.y2Orient,e.axis_y2_tick_format,t.y2AxisTickValues,e.axis_y2_tick_outer),i||(t.brush&&t.brush.scale(t.subX),e.zoom_enabled&&t.zoom.scale(t.x)),t.updateArc&&t.updateArc()},u.getYDomainMin=function(e){var t,i,n,s,a,r,o=this,l=o.config,h=o.mapToIds(e),u=o.getValuesAsIdKeyed(e);if(0<l.data_groups.length)for(r=o.hasNegativeValueInTargets(e),t=0;t<l.data_groups.length;t++)if(0!==(s=l.data_groups[t].filter(function(e){return 0<=h.indexOf(e)})).length)for(n=s[0],r&&u[n]&&u[n].forEach(function(e,t){u[n][t]=e<0?e:0}),i=1;i<s.length;i++)a=s[i],u[a]&&u[a].forEach(function(e,t){o.axis.getId(a)!==o.axis.getId(n)||!u[n]||r&&0<+e||(u[n][t]+=+e)});return o.d3.min(Object.keys(u).map(function(e){return o.d3.min(u[e])}))},u.getYDomainMax=function(e){var t,i,n,s,a,r,o=this,l=o.config,h=o.mapToIds(e),u=o.getValuesAsIdKeyed(e);if(0<l.data_groups.length)for(r=o.hasPositiveValueInTargets(e),t=0;t<l.data_groups.length;t++)if(0!==(s=l.data_groups[t].filter(function(e){return 0<=h.indexOf(e)})).length)for(n=s[0],r&&u[n]&&u[n].forEach(function(e,t){u[n][t]=0<e?e:0}),i=1;i<s.length;i++)a=s[i],u[a]&&u[a].forEach(function(e,t){o.axis.getId(a)!==o.axis.getId(n)||!u[n]||r&&+e<0||(u[n][t]+=+e)});return o.d3.max(Object.keys(u).map(function(e){return o.d3.max(u[e])}))},u.getYDomain=function(e,t,i){var n,s,a,r,o,l,h,u,d,c,p=this,f=p.config,m=e.filter(function(e){return p.axis.getId(e.id)===t}),g=i?p.filterByXDomain(m,i):m,v="y2"===t?f.axis_y2_min:f.axis_y_min,_="y2"===t?f.axis_y2_max:f.axis_y_max,y=p.getYDomainMin(g),b=p.getYDomainMax(g),x="y2"===t?f.axis_y2_center:f.axis_y_center,w=p.hasType("bar",g)&&f.bar_zerobased||p.hasType("area",g)&&f.area_zerobased,M="y2"===t?f.axis_y2_inverted:f.axis_y_inverted,j=p.hasDataLabel()&&f.axis_rotated,k=p.hasDataLabel()&&!f.axis_rotated;return y=L(v)?v:L(_)?y<_?y:_-10:y,b=L(_)?_:L(v)?v<b?b:v+10:b,0===g.length?"y2"===t?p.y2.domain():p.y.domain():(isNaN(y)&&(y=0),isNaN(b)&&(b=y),y===b&&(y<0?b=0:y=0),d=0<=y&&0<=b,c=y<=0&&b<=0,(L(v)&&d||L(_)&&c)&&(w=!1),w&&(d&&(y=0),c&&(b=0)),a=r=.1*(s=Math.abs(b-y)),void 0!==x&&(b=x+(o=Math.max(Math.abs(y),Math.abs(b))),y=x-o),j?(l=p.getDataLabelLength(y,b,"width"),h=I(p.y.range()),a+=s*((u=[l[0]/h,l[1]/h])[1]/(1-u[0]-u[1])),r+=s*(u[0]/(1-u[0]-u[1]))):k&&(l=p.getDataLabelLength(y,b,"height"),a+=p.axis.convertPixelsToAxisPadding(l[1],s),r+=p.axis.convertPixelsToAxisPadding(l[0],s)),"y"===t&&S(f.axis_y_padding)&&(a=p.axis.getPadding(f.axis_y_padding,"top",a,s),r=p.axis.getPadding(f.axis_y_padding,"bottom",r,s)),"y2"===t&&S(f.axis_y2_padding)&&(a=p.axis.getPadding(f.axis_y2_padding,"top",a,s),r=p.axis.getPadding(f.axis_y2_padding,"bottom",r,s)),w&&(d&&(r=y),c&&(a=-b)),n=[y-r,b+a],M?n.reverse():n)},u.getXDomainMin=function(e){var t=this,i=t.config;return E(i.axis_x_min)?t.isTimeSeries()?this.parseDate(i.axis_x_min):i.axis_x_min:t.d3.min(e,function(e){return t.d3.min(e.values,function(e){return e.x})})},u.getXDomainMax=function(e){var t=this,i=t.config;return E(i.axis_x_max)?t.isTimeSeries()?this.parseDate(i.axis_x_max):i.axis_x_max:t.d3.max(e,function(e){return t.d3.max(e.values,function(e){return e.x})})},u.getXDomainPadding=function(e){var t,i,n,s,a=this.config,r=e[1]-e[0];return this.isCategorized()?i=0:this.hasType("bar")?i=1<(t=this.getMaxDataCount())?r/(t-1)/2:.5:i=.01*r,"object"==typeof a.axis_x_padding&&S(a.axis_x_padding)?(n=L(a.axis_x_padding.left)?a.axis_x_padding.left:i,s=L(a.axis_x_padding.right)?a.axis_x_padding.right:i):n=s="number"==typeof a.axis_x_padding?a.axis_x_padding:i,{left:n,right:s}},u.getXDomain=function(e){var t=[this.getXDomainMin(e),this.getXDomainMax(e)],i=t[0],n=t[1],s=this.getXDomainPadding(t),a=0,r=0;return i-n!=0||this.isCategorized()||(this.isTimeSeries()?(i=new Date(.5*i.getTime()),n=new Date(1.5*n.getTime())):(i=0===i?1:.5*i,n=0===n?-1:1.5*n)),(i||0===i)&&(a=this.isTimeSeries()?new Date(i.getTime()-s.left):i-s.left),(n||0===n)&&(r=this.isTimeSeries()?new Date(n.getTime()+s.right):n+s.right),[a,r]},u.updateXDomain=function(e,t,i,n,s){var a=this,r=a.config;return i&&(a.x.domain(s||a.d3.extent(a.getXDomain(e))),a.orgXDomain=a.x.domain(),r.zoom_enabled&&a.zoom.scale(a.x).updateScaleExtent(),a.subX.domain(a.x.domain()),a.brush&&a.brush.scale(a.subX)),t&&(a.x.domain(s||(!a.brush||a.brush.empty()?a.orgXDomain:a.brush.extent())),r.zoom_enabled&&a.zoom.scale(a.x).updateScaleExtent()),n&&a.x.domain(a.trimXDomain(a.x.orgDomain())),a.x.domain()},u.trimXDomain=function(e){return e[0]<=this.orgXDomain[0]&&(e[1]=+e[1]+(this.orgXDomain[0]-e[0]),e[0]=this.orgXDomain[0]),this.orgXDomain[1]<=e[1]&&(e[0]=+e[0]-(e[1]-this.orgXDomain[1]),e[1]=this.orgXDomain[1]),e},u.isX=function(e){var t=this.config;return t.data_x&&e===t.data_x||S(t.data_xs)&&f(t.data_xs,e)},u.isNotX=function(e){return!this.isX(e)},u.getXKey=function(e){var t=this.config;return t.data_x?t.data_x:S(t.data_xs)?t.data_xs[e]:null},u.getXValuesOfXKey=function(t,e){var i,n=this;return(e&&S(e)?n.mapToIds(e):[]).forEach(function(e){n.getXKey(e)===t&&(i=n.data.xs[e])}),i},u.getIndexByX=function(e){var t=this.filterByX(this.data.targets,e);return t.length?t[0].index:null},u.getXValue=function(e,t){return e in this.data.xs&&this.data.xs[e]&&L(this.data.xs[e][t])?this.data.xs[e][t]:t},u.getOtherTargetXs=function(){var e=Object.keys(this.data.xs);return e.length?this.data.xs[e[0]]:null},u.getOtherTargetX=function(e){var t=this.getOtherTargetXs();return t&&e<t.length?t[e]:null},u.addXs=function(t){var i=this;Object.keys(t).forEach(function(e){i.config.data_xs[e]=t[e]})},u.hasMultipleX=function(t){return 1<this.d3.set(Object.keys(t).map(function(e){return t[e]})).size()},u.isMultipleX=function(){return S(this.config.data_xs)||!this.config.data_xSort||this.hasType("scatter")},u.addName=function(e){var t;return e&&(t=this.config.data_names[e.id],e.name=t||e.id),e},u.getValueOnIndex=function(e,t){var i=e.filter(function(e){return e.index===t});return i.length?i[0]:null},u.updateTargetX=function(e,n){var s=this;e.forEach(function(i){i.values.forEach(function(e,t){e.x=s.generateTargetX(n[t],i.id,t)}),s.data.xs[i.id]=n})},u.updateTargetXs=function(e,t){var i=this;e.forEach(function(e){t[e.id]&&i.updateTargetX([e],t[e.id])})},u.generateTargetX=function(e,t,i){return this.isTimeSeries()?this.parseDate(e||this.getXValue(t,i)):this.isCustomX()&&!this.isCategorized()?L(e)?+e:this.getXValue(t,i):i},u.cloneTarget=function(e){return{id:e.id,id_org:e.id_org,values:e.values.map(function(e){return{x:e.x,value:e.value,id:e.id}})}},u.updateXs=function(){var t=this;t.data.targets.length&&(t.xs=[],t.data.targets[0].values.forEach(function(e){t.xs[e.index]=e.x}))},u.getPrevX=function(e){var t=this.xs[e-1];return void 0!==t?t:null},u.getNextX=function(e){var t=this.xs[e+1];return void 0!==t?t:null},u.getMaxDataCount=function(){return this.d3.max(this.data.targets,function(e){return e.values.length})},u.getMaxDataCountTarget=function(e){var t,i=e.length,n=0;return 1<i?e.forEach(function(e){e.values.length>n&&(n=(t=e).values.length)}):t=i?e[0]:null,t},u.getEdgeX=function(e){return e.length?[this.d3.min(e,function(e){return e.values[0].x}),this.d3.max(e,function(e){return e.values[e.values.length-1].x})]:[0,0]},u.mapToIds=function(e){return e.map(function(e){return e.id})},u.mapToTargetIds=function(e){return e?a(e)?[e]:e:this.mapToIds(this.data.targets)},u.hasTarget=function(e,t){var i,n=this.mapToIds(e);for(i=0;i<n.length;i++)if(n[i]===t)return!0;return!1},u.isTargetToShow=function(e){return this.hiddenTargetIds.indexOf(e)<0},u.isLegendToShow=function(e){return this.hiddenLegendIds.indexOf(e)<0},u.filterTargetsToShow=function(e){var t=this;return e.filter(function(e){return t.isTargetToShow(e.id)})},u.mapTargetsToUniqueXs=function(e){return this.d3.set(this.d3.merge(e.map(function(e){return e.values.map(function(e){return+e.x})}))).values().map(this.isTimeSeries()?function(e){return new Date(+e)}:function(e){return+e})},u.addHiddenTargetIds=function(e){this.hiddenTargetIds=this.hiddenTargetIds.concat(e)},u.removeHiddenTargetIds=function(t){this.hiddenTargetIds=this.hiddenTargetIds.filter(function(e){return t.indexOf(e)<0})},u.addHiddenLegendIds=function(e){this.hiddenLegendIds=this.hiddenLegendIds.concat(e)},u.removeHiddenLegendIds=function(t){this.hiddenLegendIds=this.hiddenLegendIds.filter(function(e){return t.indexOf(e)<0})},u.getValuesAsIdKeyed=function(e){var i={};return e.forEach(function(t){i[t.id]=[],t.values.forEach(function(e){i[t.id].push(e.value)})}),i},u.checkValueInTargets=function(e,t){var i,n,s,a=Object.keys(e);for(i=0;i<a.length;i++)for(s=e[a[i]].values,n=0;n<s.length;n++)if(t(s[n].value))return!0;return!1},u.hasNegativeValueInTargets=function(e){return this.checkValueInTargets(e,function(e){return e<0})},u.hasPositiveValueInTargets=function(e){return this.checkValueInTargets(e,function(e){return 0<e})},u.isOrderDesc=function(){var e=this.config;return"string"==typeof e.data_order&&"desc"===e.data_order.toLowerCase()},u.isOrderAsc=function(){var e=this.config;return"string"==typeof e.data_order&&"asc"===e.data_order.toLowerCase()},u.orderTargets=function(e){var t=this.config,a=this.isOrderAsc(),i=this.isOrderDesc();return a||i?e.sort(function(e,t){var i=function(e,t){return e+Math.abs(t.value)},n=e.values.reduce(i,0),s=t.values.reduce(i,0);return a?s-n:n-s}):c(t.data_order)&&e.sort(t.data_order),e},u.filterByX=function(e,t){return this.d3.merge(e.map(function(e){return e.values})).filter(function(e){return e.x-t==0})},u.filterRemoveNull=function(e){return e.filter(function(e){return L(e.value)})},u.filterByXDomain=function(e,t){return e.map(function(e){return{id:e.id,id_org:e.id_org,values:e.values.filter(function(e){return t[0]<=e.x&&e.x<=t[1]})}})},u.hasDataLabel=function(){var e=this.config;return!("boolean"!=typeof e.data_labels||!e.data_labels)||!("object"!=typeof e.data_labels||!S(e.data_labels))},u.getDataLabelLength=function(e,t,i){var n=this,s=[0,0];return n.selectChart.select("svg").selectAll(".dummy").data([e,t]).enter().append("text").text(function(e){return n.dataLabelFormat(e.id)(e)}).each(function(e,t){s[t]=1.3*this.getBoundingClientRect()[i]}).remove(),s},u.isNoneArc=function(e){return this.hasTarget(this.data.targets,e.id)},u.isArc=function(e){return"data"in e&&this.hasTarget(this.data.targets,e.data.id)},u.findSameXOfValues=function(e,t){var i,n=e[t].x,s=[];for(i=t-1;0<=i&&n===e[i].x;i--)s.push(e[i]);for(i=t;i<e.length&&n===e[i].x;i++)s.push(e[i]);return s},u.findClosestFromTargets=function(e,t){var i,n=this;return i=e.map(function(e){return n.findClosest(e.values,t)}),n.findClosest(i,t)},u.findClosest=function(e,i){var n,s=this,a=100;return e.filter(function(e){return e&&s.isBarType(e.id)}).forEach(function(e){var t=s.main.select("."+O.bars+s.getTargetSelectorSuffix(e.id)+" ."+O.bar+"-"+e.index).node();!n&&s.isWithinBar(t)&&(n=e)}),e.filter(function(e){return e&&!s.isBarType(e.id)}).forEach(function(e){var t=s.dist(e,i);t<a&&(a=t,n=e)}),n},u.dist=function(e,t){var i=this.config,n=i.axis_rotated?1:0,s=i.axis_rotated?0:1,a=this.circleY(e,e.index),r=this.x(e.x);return Math.pow(r-t[n],2)+Math.pow(a-t[s],2)},u.convertValuesToStep=function(e){var t,i=[].concat(e);if(!this.isCategorized())return e;for(t=e.length+1;0<t;t--)i[t]=i[t-1];return i[0]={x:i[0].x-1,value:i[0].value,id:i[0].id},i[e.length+1]={x:i[e.length].x+1,value:i[e.length].value,id:i[e.length].id},i},u.updateDataAttributes=function(e,t){var i=this.config["data_"+e];return void 0===t||(Object.keys(t).forEach(function(e){i[e]=t[e]}),this.redraw({withLegend:!0})),i},u.convertUrlToData=function(e,t,n,s){var a=this,r=t||"csv";a.d3.xhr(e,function(e,t){var i;if(!t)throw new Error(e.responseURL+" "+e.status+" ("+e.statusText+")");i="json"===r?a.convertJsonToData(JSON.parse(t.response),n):"tsv"===r?a.convertTsvToData(t.response):a.convertCsvToData(t.response),s.call(a,i)})},u.convertXsvToData=function(e,t){var i,n=t.parseRows(e);return 1===n.length?(i=[{}],n[0].forEach(function(e){i[0][e]=null})):i=t.parse(e),i},u.convertCsvToData=function(e){return this.convertXsvToData(e,this.d3.csv)},u.convertTsvToData=function(e){return this.convertXsvToData(e,this.d3.tsv)},u.convertJsonToData=function(t,e){var s,i,a=[];return e?(e.x?(s=e.value.concat(e.x),this.config.data_x=e.x):s=e.value,a.push(s),t.forEach(function(i){var n=[];s.forEach(function(e){var t=w(i[e])?null:i[e];n.push(t)}),a.push(n)}),i=this.convertRowsToData(a)):(Object.keys(t).forEach(function(e){a.push([e].concat(t[e]))}),i=this.convertColumnsToData(a)),i},u.convertRowsToData=function(e){var t,i,n=e[0],s={},a=[];for(t=1;t<e.length;t++){for(s={},i=0;i<e[t].length;i++){if(w(e[t][i]))throw new Error("Source data is missing a component at ("+t+","+i+")!");s[n[i]]=e[t][i]}a.push(s)}return a},u.convertColumnsToData=function(e){var t,i,n,s=[];for(t=0;t<e.length;t++)for(n=e[t][0],i=1;i<e[t].length;i++){if(w(s[i-1])&&(s[i-1]={}),w(e[t][i]))throw new Error("Source data is missing a component at ("+t+","+i+")!");s[i-1][n]=e[t][i]}return s},u.convertDataToTargets=function(e,n){var t,o=this,l=o.config,i=o.d3.keys(e[0]).filter(o.isNotX,o),s=o.d3.keys(e[0]).filter(o.isX,o);return i.forEach(function(i){var t=o.getXKey(i);o.isCustomX()||o.isTimeSeries()?0<=s.indexOf(t)?o.data.xs[i]=(n&&o.data.xs[i]?o.data.xs[i]:[]).concat(e.map(function(e){return e[t]}).filter(L).map(function(e,t){return o.generateTargetX(e,i,t)})):l.data_x?o.data.xs[i]=o.getOtherTargetXs():S(l.data_xs)&&(o.data.xs[i]=o.getXValuesOfXKey(t,o.data.targets)):o.data.xs[i]=e.map(function(e,t){return t})}),i.forEach(function(e){if(!o.data.xs[e])throw new Error('x is not defined for id = "'+e+'".')}),(t=i.map(function(s,a){var r=l.data_idConverter(s);return{id:r,id_org:s,values:e.map(function(e,t){var i=e[o.getXKey(s)],n=o.generateTargetX(i,s,t);return o.isCustomX()&&o.isCategorized()&&0===a&&i&&(0===t&&(l.axis_x_categories=[]),l.axis_x_categories.push(i)),(w(e[s])||o.data.xs[s].length<=t)&&(n=void 0),{x:n,value:null===e[s]||isNaN(e[s])?null:+e[s],id:r}}).filter(function(e){return E(e.x)})}})).forEach(function(e){var t;l.data_xSort&&(e.values=e.values.sort(function(e,t){return(e.x||0===e.x?e.x:1/0)-(t.x||0===t.x?t.x:1/0)})),t=0,e.values.forEach(function(e){e.index=t++}),o.data.xs[e.id].sort(function(e,t){return e-t})}),l.data_type&&o.setTargetType(o.mapToIds(t).filter(function(e){return!(e in l.data_types)}),l.data_type),t.forEach(function(e){o.addCache(e.id_org,e)}),t},u.load=function(i,n){var s=this;i&&(n.filter&&(i=i.filter(n.filter)),(n.type||n.types)&&i.forEach(function(e){var t=n.types&&n.types[e.id]?n.types[e.id]:n.type;s.setTargetType(e.id,t)}),s.data.targets.forEach(function(e){for(var t=0;t<i.length;t++)if(e.id===i[t].id){e.values=i[t].values,i.splice(t,1);break}}),s.data.targets=s.data.targets.concat(i)),s.updateTargets(s.data.targets),s.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),n.done&&n.done()},u.loadFromArgs=function(t){var i=this;t.data?i.load(i.convertDataToTargets(t.data),t):t.url?i.convertUrlToData(t.url,t.mimeType,t.keys,function(e){i.load(i.convertDataToTargets(e),t)}):t.json?i.load(i.convertDataToTargets(i.convertJsonToData(t.json,t.keys)),t):t.rows?i.load(i.convertDataToTargets(i.convertRowsToData(t.rows)),t):t.columns?i.load(i.convertDataToTargets(i.convertColumnsToData(t.columns)),t):i.load(null,t)},u.unload=function(e,t){var i=this;return t||(t=function(){}),(e=e.filter(function(e){return i.hasTarget(i.data.targets,e)}))&&0!==e.length?(i.svg.selectAll(e.map(function(e){return i.selectorTarget(e)})).transition().style("opacity",0).remove().call(i.endall,t),void e.forEach(function(t){i.withoutFadeIn[t]=!1,i.legend&&i.legend.selectAll("."+O.legendItem+i.getTargetSelectorSuffix(t)).remove(),i.data.targets=i.data.targets.filter(function(e){return e.id!==t})})):void t()},u.categoryName=function(e){var t=this.config;return e<t.axis_x_categories.length?t.axis_x_categories[e]:e},u.initEventRect=function(){this.main.select("."+O.chart).append("g").attr("class",O.eventRects).style("fill-opacity",0)},u.redrawEventRect=function(){var e,t,i=this,n=i.config,s=i.isMultipleX(),a=i.main.select("."+O.eventRects).style("cursor",n.zoom_enabled?n.axis_rotated?"ns-resize":"ew-resize":null).classed(O.eventRectsMultiple,s).classed(O.eventRectsSingle,!s);a.selectAll("."+O.eventRect).remove(),i.eventRect=a.selectAll("."+O.eventRect),s?(e=i.eventRect.data([0]),i.generateEventRectsForMultipleXs(e.enter()),i.updateEventRect(e)):(t=i.getMaxDataCountTarget(i.data.targets),a.datum(t?t.values:[]),i.eventRect=a.selectAll("."+O.eventRect),e=i.eventRect.data(function(e){return e}),i.generateEventRectsForSingleX(e.enter()),i.updateEventRect(e),e.exit().remove())},u.updateEventRect=function(e){var t,i,n,s,a,r,o=this,l=o.config;e=e||o.eventRect.data(function(e){return e}),o.isMultipleX()?(i=t=0,n=o.width,s=o.height):(!o.isCustomX()&&!o.isTimeSeries()||o.isCategorized()?(a=o.getEventRectWidth(),r=function(e){return o.x(e.x)-a/2}):(o.updateXs(),a=function(e){var t=o.getPrevX(e.index),i=o.getNextX(e.index);return null===t&&null===i?l.axis_rotated?o.height:o.width:(null===t&&(t=o.x.domain()[0]),null===i&&(i=o.x.domain()[1]),Math.max(0,(o.x(i)-o.x(t))/2))},r=function(e){var t=o.getPrevX(e.index),i=o.getNextX(e.index),n=o.data.xs[e.id][e.index];return null===t&&null===i?0:(null===t&&(t=o.x.domain()[0]),(o.x(n)+o.x(t))/2)}),t=l.axis_rotated?0:r,i=l.axis_rotated?r:0,n=l.axis_rotated?o.width:a,s=l.axis_rotated?a:o.height),e.attr("class",o.classEvent.bind(o)).attr("x",t).attr("y",i).attr("width",n).attr("height",s)},u.generateEventRectsForSingleX=function(e){var s=this,a=s.d3,r=s.config;e.append("rect").attr("class",s.classEvent.bind(s)).style("cursor",r.data_selection_enabled&&r.data_selection_grouped?"pointer":null).on("mouseover",function(e){var t=e.index;s.dragging||s.flowing||s.hasArcType()||(r.point_focus_expand_enabled&&s.expandCircles(t,null,!0),s.expandBars(t,null,!0),s.main.selectAll("."+O.shape+"-"+t).each(function(e){r.data_onmouseover.call(s.api,e)}))}).on("mouseout",function(e){var t=e.index;s.config&&(s.hasArcType()||(s.hideXGridFocus(),s.hideTooltip(),s.unexpandCircles(),s.unexpandBars(),s.main.selectAll("."+O.shape+"-"+t).each(function(e){r.data_onmouseout.call(s.api,e)})))}).on("mousemove",function(e){var t,i=e.index,n=s.svg.select("."+O.eventRect+"-"+i);s.dragging||s.flowing||s.hasArcType()||(s.isStepType(e)&&"step-after"===s.config.line_step_type&&a.mouse(this)[0]<s.x(s.getXValue(e.id,i))&&(i-=1),t=s.filterTargetsToShow(s.data.targets).map(function(e){return s.addName(s.getValueOnIndex(e.values,i))}),r.tooltip_grouped&&(s.showTooltip(t,this),s.showXGridFocus(t)),(!r.tooltip_grouped||r.data_selection_enabled&&!r.data_selection_grouped)&&s.main.selectAll("."+O.shape+"-"+i).each(function(){a.select(this).classed(O.EXPANDED,!0),r.data_selection_enabled&&n.style("cursor",r.data_selection_grouped?"pointer":null),r.tooltip_grouped||(s.hideXGridFocus(),s.hideTooltip(),r.data_selection_grouped||(s.unexpandCircles(i),s.unexpandBars(i)))}).filter(function(e){return s.isWithinShape(this,e)}).each(function(e){r.data_selection_enabled&&(r.data_selection_grouped||r.data_selection_isselectable(e))&&n.style("cursor","pointer"),r.tooltip_grouped||(s.showTooltip([e],this),s.showXGridFocus([e]),r.point_focus_expand_enabled&&s.expandCircles(i,e.id,!0),s.expandBars(i,e.id,!0))}))}).on("click",function(e){var t=e.index;if(!s.hasArcType()&&s.toggleShape){if(s.cancelClick)return void(s.cancelClick=!1);s.isStepType(e)&&"step-after"===r.line_step_type&&a.mouse(this)[0]<s.x(s.getXValue(e.id,t))&&(t-=1),s.main.selectAll("."+O.shape+"-"+t).each(function(e){(r.data_selection_grouped||s.isWithinShape(this,e))&&(s.toggleShape(this,e,t),s.config.data_onclick.call(s.api,e,this))})}}).call(r.data_selection_draggable&&s.drag?a.behavior.drag().origin(Object).on("drag",function(){s.drag(a.mouse(this))}).on("dragstart",function(){s.dragstart(a.mouse(this))}).on("dragend",function(){s.dragend()}):function(){})},u.generateEventRectsForMultipleXs=function(e){function s(){a.svg.select("."+O.eventRect).style("cursor",null),a.hideXGridFocus(),a.hideTooltip(),a.unexpandCircles(),a.unexpandBars()}var a=this,r=a.d3,o=a.config;e.append("rect").attr("x",0).attr("y",0).attr("width",a.width).attr("height",a.height).attr("class",O.eventRect).on("mouseout",function(){a.config&&(a.hasArcType()||s())}).on("mousemove",function(){var e,t,i,n=a.filterTargetsToShow(a.data.targets);if(!a.dragging&&!a.hasArcType(n)){if(e=r.mouse(this),t=a.findClosestFromTargets(n,e),!a.mouseover||t&&t.id===a.mouseover.id||(o.data_onmouseout.call(a.api,a.mouseover),a.mouseover=void 0),!t)return void s();i=(a.isScatterType(t)||!o.tooltip_grouped?[t]:a.filterByX(n,t.x)).map(function(e){return a.addName(e)}),a.showTooltip(i,this),o.point_focus_expand_enabled&&a.expandCircles(t.index,t.id,!0),a.expandBars(t.index,t.id,!0),a.showXGridFocus(i),(a.isBarType(t.id)||a.dist(t,e)<100)&&(a.svg.select("."+O.eventRect).style("cursor","pointer"),a.mouseover||(o.data_onmouseover.call(a.api,t),a.mouseover=t))}}).on("click",function(){var e,t,i=a.filterTargetsToShow(a.data.targets);a.hasArcType(i)||(e=r.mouse(this),(t=a.findClosestFromTargets(i,e))&&(a.isBarType(t.id)||a.dist(t,e)<100)&&a.main.selectAll("."+O.shapes+a.getTargetSelectorSuffix(t.id)).selectAll("."+O.shape+"-"+t.index).each(function(){(o.data_selection_grouped||a.isWithinShape(this,t))&&(a.toggleShape(this,t,t.index),a.config.data_onclick.call(a.api,t,this))}))}).call(o.data_selection_draggable&&a.drag?r.behavior.drag().origin(Object).on("drag",function(){a.drag(r.mouse(this))}).on("dragstart",function(){a.dragstart(r.mouse(this))}).on("dragend",function(){a.dragend()}):function(){})},u.dispatchEvent=function(e,t,i){var n="."+O.eventRect+(this.isMultipleX()?"":"-"+t),s=this.main.select(n).node(),a=s.getBoundingClientRect(),r=a.left+(i?i[0]:0),o=a.top+(i?i[1]:0),l=document.createEvent("MouseEvents");l.initMouseEvent(e,!0,!0,h,0,r,o,r,o,!1,!1,!1,!1,0,null),s.dispatchEvent(l)},u.getCurrentWidth=function(){var e=this.config;return e.size_width?e.size_width:this.getParentWidth()},u.getCurrentHeight=function(){var e=this.config,t=e.size_height?e.size_height:this.getParentHeight();return 0<t?t:320/(this.hasType("gauge")?2:1)},u.getCurrentPaddingTop=function(){var e=this.config;return L(e.padding_top)?e.padding_top:0},u.getCurrentPaddingBottom=function(){var e=this.config;return L(e.padding_bottom)?e.padding_bottom:0},u.getCurrentPaddingLeft=function(e){var t=this.config;return L(t.padding_left)?t.padding_left:t.axis_rotated?t.axis_x_show?Math.max(r(this.getAxisWidthByAxisId("x",e)),40):1:!t.axis_y_show||t.axis_y_inner?this.axis.getYAxisLabelPosition().isOuter?30:1:r(this.getAxisWidthByAxisId("y",e))},u.getCurrentPaddingRight=function(){var e=this.config,t=this.isLegendRight?this.getLegendWidth()+20:0;return L(e.padding_right)?e.padding_right+1:e.axis_rotated?10+t:!e.axis_y2_show||e.axis_y2_inner?2+t+(this.axis.getY2AxisLabelPosition().isOuter?20:0):r(this.getAxisWidthByAxisId("y2"))+t},u.getParentRectValue=function(t){for(var i,n=this.selectChart.node();n&&"BODY"!==n.tagName;){try{i=n.getBoundingClientRect()[t]}catch(e){"width"===t&&(i=n.offsetWidth)}if(i)break;n=n.parentNode}return i},u.getParentWidth=function(){return this.getParentRectValue("width")},u.getParentHeight=function(){var e=this.selectChart.style("height");return 0<e.indexOf("px")?+e.replace("px",""):0},u.getSvgLeft=function(e){var t=this.config,i=t.axis_rotated||!t.axis_rotated&&!t.axis_y_inner,n=t.axis_rotated?O.axisX:O.axisY,s=this.main.select("."+n).node(),a=s&&i?s.getBoundingClientRect():{right:0},r=this.selectChart.node().getBoundingClientRect(),o=this.hasArcType(),l=a.right-r.left-(o?0:this.getCurrentPaddingLeft(e));return 0<l?l:0},u.getAxisWidthByAxisId=function(e,t){var i=this.axis.getLabelPositionById(e);return this.axis.getMaxTickWidth(e,t)+(i.isInner?20:40)},u.getHorizontalAxisHeight=function(e){var t=this.config,i=30;return"x"!==e||t.axis_x_show?"x"===e&&t.axis_x_height?t.axis_x_height:"y"!==e||t.axis_y_show?"y2"!==e||t.axis_y2_show?("x"===e&&!t.axis_rotated&&t.axis_x_tick_rotate&&(i=30+this.axis.getMaxTickWidth(e)*Math.cos(Math.PI*(90-t.axis_x_tick_rotate)/180)),i+(this.axis.getLabelPositionById(e).isInner?0:10)+("y2"===e?-10:0)):this.rotated_padding_top:!t.legend_show||this.isLegendRight||this.isLegendInset?1:10:8},u.getEventRectWidth=function(){return Math.max(0,this.xAxis.tickInterval())},u.getShapeIndices=function(e){var t,i,n=this.config,s={},a=0;return this.filterTargetsToShow(this.data.targets.filter(e,this)).forEach(function(e){for(t=0;t<n.data_groups.length;t++)if(!(n.data_groups[t].indexOf(e.id)<0))for(i=0;i<n.data_groups[t].length;i++)if(n.data_groups[t][i]in s){s[e.id]=s[n.data_groups[t][i]];break}w(s[e.id])&&(s[e.id]=a++)}),s.__max__=a-1,s},u.getShapeX=function(i,n,s,e){var a=e?this.subX:this.x;return function(e){var t=e.id in s?s[e.id]:0;return e.x||0===e.x?a(e.x)-i*(n/2-t):0}},u.getShapeY=function(t){var i=this;return function(e){return(t?i.getSubYScale(e.id):i.getYScale(e.id))(e.value)}},u.getShapeOffset=function(e,o,t){var l=this,h=l.orderTargets(l.filterTargetsToShow(l.data.targets.filter(e,l))),u=h.map(function(e){return e.id});return function(i,n){var s=t?l.getSubYScale(i.id):l.getYScale(i.id),a=s(0),r=a;return h.forEach(function(e){var t=l.isStepType(i)?l.convertValuesToStep(e.values):e.values;e.id!==i.id&&o[e.id]===o[i.id]&&u.indexOf(e.id)<u.indexOf(i.id)&&0<=t[n].value*i.value&&(r+=s(t[n].value)-a)}),r}},u.isWithinShape=function(e,t){var i,n=this.d3.select(e);return this.isTargetToShow(t.id)?"circle"===e.nodeName?i=this.isStepType(t)?this.isWithinStep(e,this.getYScale(t.id)(t.value)):this.isWithinCircle(e,1.5*this.pointSelectR(t)):"path"===e.nodeName&&(i=!n.classed(O.bar)||this.isWithinBar(e)):i=!1,i},u.getInterpolate=function(e){return this.isSplineType(e)?"cardinal":this.isStepType(e)?this.config.line_step_type:"linear"},u.initLine=function(){this.main.select("."+O.chart).append("g").attr("class",O.chartLines)},u.updateTargetsForLine=function(e){var t,i=this,n=i.config,s=i.classChartLine.bind(i),a=i.classLines.bind(i),r=i.classAreas.bind(i),o=i.classCircles.bind(i),l=i.classFocus.bind(i);(t=i.main.select("."+O.chartLines).selectAll("."+O.chartLine).data(e).attr("class",function(e){return s(e)+l(e)}).enter().append("g").attr("class",s).style("opacity",0).style("pointer-events","none")).append("g").attr("class",a),t.append("g").attr("class",r),t.append("g").attr("class",function(e){return i.generateClass(O.selectedCircles,e.id)}),t.append("g").attr("class",o).style("cursor",function(e){return n.data_selection_isselectable(e)?"pointer":null}),e.forEach(function(t){i.main.selectAll("."+O.selectedCircles+i.getTargetSelectorSuffix(t.id)).selectAll("."+O.selectedCircle).each(function(e){e.value=t.values[e.index].value})})},u.updateLine=function(e){var t=this;t.mainLine=t.main.selectAll("."+O.lines).selectAll("."+O.line).data(t.lineData.bind(t)),t.mainLine.enter().append("path").attr("class",t.classLine.bind(t)).style("stroke",t.color),t.mainLine.style("opacity",t.initialOpacity.bind(t)).style("shape-rendering",function(e){return t.isStepType(e)?"crispEdges":""}).attr("transform",null),t.mainLine.exit().transition().duration(e).style("opacity",0).remove()},u.redrawLine=function(e,t){return[(t?this.mainLine.transition():this.mainLine).attr("d",e).style("stroke",this.color).style("opacity",1)]},u.generateDrawLine=function(e,o){var l=this,h=l.config,u=l.d3.svg.line(),i=l.generateGetLinePoints(e,o),d=o?l.getSubYScale:l.getYScale,t=function(e){return(o?l.subxx:l.xx).call(l,e)},n=function(e,t){return 0<h.data_groups.length?i(e,t)[0][1]:d.call(l,e.id)(e.value)};return u=h.axis_rotated?u.x(n).y(t):u.x(t).y(n),h.line_connectNull||(u=u.defined(function(e){return null!=e.value})),function(e){var t,i=h.line_connectNull?l.filterRemoveNull(e.values):e.values,n=o?l.x:l.subX,s=d.call(l,e.id),a=0,r=0;return l.isLineType(e)?h.data_regions[e.id]?t=l.lineWithRegions(i,n,s,h.data_regions[e.id]):(l.isStepType(e)&&(i=l.convertValuesToStep(i)),t=u.interpolate(l.getInterpolate(e))(i)):(i[0]&&(a=n(i[0].x),r=s(i[0].value)),t=h.axis_rotated?"M "+r+" "+a:"M "+a+" "+r),t||"M 0 0"}},u.generateGetLinePoints=function(e,t){var r=this,o=r.config,i=e.__max__+1,l=r.getShapeX(0,i,e,!!t),h=r.getShapeY(!!t),u=r.getShapeOffset(r.isLineType,e,!!t),d=t?r.getSubYScale:r.getYScale;return function(e,t){var i=d.call(r,e.id)(0),n=u(e,t)||i,s=l(e),a=h(e);return o.axis_rotated&&(0<e.value&&a<i||e.value<0&&i<a)&&(a=i),[[s,a-(i-n)],[s,a-(i-n)],[s,a-(i-n)],[s,a-(i-n)]]}},u.lineWithRegions=function(e,l,h,t){function i(e,t){var i;for(i=0;i<t.length;i++)if(t[i].start<e&&e<=t[i].end)return!0;return!1}function u(e){return"M"+e[0][0]+" "+e[0][1]+" "+e[1][0]+" "+e[1][1]}var n,s,a,r,d,o,c,p,f,m,g,v=this,_=v.config,y="M",b=v.isCategorized()?.5:0,x=[];if(E(t))for(n=0;n<t.length;n++)x[n]={},x[n].start=w(t[n].start)?e[0].x:v.isTimeSeries()?v.parseDate(t[n].start):t[n].start,x[n].end=w(t[n].end)?e[e.length-1].x:v.isTimeSeries()?v.parseDate(t[n].end):t[n].end;for(m=_.axis_rotated?function(e){return h(e.value)}:function(e){return l(e.x)},g=_.axis_rotated?function(e){return l(e.x)}:function(e){return h(e.value)},a=v.isTimeSeries()?function(e,t,i,n){var s=e.x.getTime(),a=t.x-e.x,r=new Date(s+a*i),o=new Date(s+a*(i+n));return u(_.axis_rotated?[[h(d(i)),l(r)],[h(d(i+n)),l(o)]]:[[l(r),h(d(i))],[l(o),h(d(i+n))]])}:function(e,t,i,n){return u(_.axis_rotated?[[h(d(i),!0),l(r(i))],[h(d(i+n),!0),l(r(i+n))]]:[[l(r(i),!0),h(d(i))],[l(r(i+n),!0),h(d(i+n))]])},n=0;n<e.length;n++){if(w(x)||!i(e[n].x,x))y+=" "+m(e[n])+" "+g(e[n]);else for(r=v.getScale(e[n-1].x+b,e[n].x+b,v.isTimeSeries()),d=v.getScale(e[n-1].value,e[n].value),o=l(e[n].x)-l(e[n-1].x),c=h(e[n].value)-h(e[n-1].value),f=2*(p=2/Math.sqrt(Math.pow(o,2)+Math.pow(c,2))),s=p;s<=1;s+=f)y+=a(e[n-1],e[n],s,p);e[n].x}return y},u.updateArea=function(e){var t=this,i=t.d3;t.mainArea=t.main.selectAll("."+O.areas).selectAll("."+O.area).data(t.lineData.bind(t)),t.mainArea.enter().append("path").attr("class",t.classArea.bind(t)).style("fill",t.color).style("opacity",function(){return t.orgAreaOpacity=+i.select(this).style("opacity"),0}),t.mainArea.style("opacity",t.orgAreaOpacity),t.mainArea.exit().transition().duration(e).style("opacity",0).remove()},u.redrawArea=function(e,t){return[(t?this.mainArea.transition():this.mainArea).attr("d",e).style("fill",this.color).style("opacity",this.orgAreaOpacity)]},u.generateDrawArea=function(e,t){var a=this,r=a.config,o=a.d3.svg.area(),i=a.generateGetAreaPoints(e,t),n=t?a.getSubYScale:a.getYScale,s=function(e){return(t?a.subxx:a.xx).call(a,e)},l=function(e,t){return 0<r.data_groups.length?i(e,t)[0][1]:n.call(a,e.id)(a.getAreaBaseValue(e.id))},h=function(e,t){return 0<r.data_groups.length?i(e,t)[1][1]:n.call(a,e.id)(e.value)};return o=r.axis_rotated?o.x0(l).x1(h).y(s):o.x(s).y0(l).y1(h),r.line_connectNull||(o=o.defined(function(e){return null!==e.value})),function(e){var t,i=r.line_connectNull?a.filterRemoveNull(e.values):e.values,n=0,s=0;return a.isAreaType(e)?(a.isStepType(e)&&(i=a.convertValuesToStep(i)),t=o.interpolate(a.getInterpolate(e))(i)):(i[0]&&(n=a.x(i[0].x),s=a.getYScale(e.id)(i[0].value)),t=r.axis_rotated?"M "+s+" "+n:"M "+n+" "+s),t||"M 0 0"}},u.getAreaBaseValue=function(){return 0},u.generateGetAreaPoints=function(e,t){var r=this,o=r.config,i=e.__max__+1,l=r.getShapeX(0,i,e,!!t),h=r.getShapeY(!!t),u=r.getShapeOffset(r.isAreaType,e,!!t),d=t?r.getSubYScale:r.getYScale;return function(e,t){var i=d.call(r,e.id)(0),n=u(e,t)||i,s=l(e),a=h(e);return o.axis_rotated&&(0<e.value&&a<i||e.value<0&&i<a)&&(a=i),[[s,n],[s,a-(i-n)],[s,a-(i-n)],[s,n]]}},u.updateCircle=function(){var e=this;e.mainCircle=e.main.selectAll("."+O.circles).selectAll("."+O.circle).data(e.lineOrScatterData.bind(e)),e.mainCircle.enter().append("circle").attr("class",e.classCircle.bind(e)).attr("r",e.pointR.bind(e)).style("fill",e.color),e.mainCircle.style("opacity",e.initialOpacityForCircle.bind(e)),e.mainCircle.exit().remove()},u.redrawCircle=function(e,t,i){var n=this.main.selectAll("."+O.selectedCircle);return[(i?this.mainCircle.transition():this.mainCircle).style("opacity",this.opacityForCircle.bind(this)).style("fill",this.color).attr("cx",e).attr("cy",t),(i?n.transition():n).attr("cx",e).attr("cy",t)]},u.circleX=function(e){return e.x||0===e.x?this.x(e.x):null},u.updateCircleY=function(){var e,i,t=this;0<t.config.data_groups.length?(e=t.getShapeIndices(t.isLineType),i=t.generateGetLinePoints(e),t.circleY=function(e,t){return i(e,t)[0][1]}):t.circleY=function(e){return t.getYScale(e.id)(e.value)}},u.getCircles=function(e,t){return(t?this.main.selectAll("."+O.circles+this.getTargetSelectorSuffix(t)):this.main).selectAll("."+O.circle+(L(e)?"-"+e:""))},u.expandCircles=function(e,t,i){var n=this.pointExpandedR.bind(this);i&&this.unexpandCircles(),this.getCircles(e,t).classed(O.EXPANDED,!0).attr("r",n)},u.unexpandCircles=function(e){var t=this,i=t.pointR.bind(t);t.getCircles(e).filter(function(){return t.d3.select(this).classed(O.EXPANDED)}).classed(O.EXPANDED,!1).attr("r",i)},u.pointR=function(e){var t=this.config;return this.isStepType(e)?0:c(t.point_r)?t.point_r(e):t.point_r},u.pointExpandedR=function(e){var t=this.config;return t.point_focus_expand_enabled?t.point_focus_expand_r?t.point_focus_expand_r:1.75*this.pointR(e):this.pointR(e)},u.pointSelectR=function(e){var t=this.config;return t.point_select_r?t.point_select_r:4*this.pointR(e)},u.isWithinCircle=function(e,t){var i=this.d3,n=i.mouse(e),s=i.select(e),a=+s.attr("cx"),r=+s.attr("cy");return Math.sqrt(Math.pow(a-n[0],2)+Math.pow(r-n[1],2))<t},u.isWithinStep=function(e,t){return Math.abs(t-this.d3.mouse(e)[1])<30},u.initBar=function(){this.main.select("."+O.chart).append("g").attr("class",O.chartBars)},u.updateTargetsForBar=function(e){var t=this.config,i=this.classChartBar.bind(this),n=this.classBars.bind(this),s=this.classFocus.bind(this);this.main.select("."+O.chartBars).selectAll("."+O.chartBar).data(e).attr("class",function(e){return i(e)+s(e)}).enter().append("g").attr("class",i).style("opacity",0).style("pointer-events","none").append("g").attr("class",n).style("cursor",function(e){return t.data_selection_isselectable(e)?"pointer":null})},u.updateBar=function(e){var t=this,i=t.barData.bind(t),n=t.classBar.bind(t),s=t.initialOpacity.bind(t),a=function(e){return t.color(e.id)};t.mainBar=t.main.selectAll("."+O.bars).selectAll("."+O.bar).data(i),t.mainBar.enter().append("path").attr("class",n).style("stroke",a).style("fill",a),t.mainBar.style("opacity",s),t.mainBar.exit().transition().duration(e).style("opacity",0).remove()},u.redrawBar=function(e,t){return[(t?this.mainBar.transition():this.mainBar).attr("d",e).style("fill",this.color).style("opacity",1)]},u.getBarW=function(e,t){var i=this.config,n="number"==typeof i.bar_width?i.bar_width:t?e.tickInterval()*i.bar_width_ratio/t:0;return i.bar_width_max&&n>i.bar_width_max?i.bar_width_max:n},u.getBars=function(e,t){return(t?this.main.selectAll("."+O.bars+this.getTargetSelectorSuffix(t)):this.main).selectAll("."+O.bar+(L(e)?"-"+e:""))},u.expandBars=function(e,t,i){i&&this.unexpandBars(),this.getBars(e,t).classed(O.EXPANDED,!0)},u.unexpandBars=function(e){this.getBars(e).classed(O.EXPANDED,!1)},u.generateDrawBar=function(e,t){var a=this.config,r=this.generateGetBarPoints(e,t);return function(e,t){var i=r(e,t),n=a.axis_rotated?1:0,s=a.axis_rotated?0:1;return"M "+i[0][n]+","+i[0][s]+" L"+i[1][n]+","+i[1][s]+" L"+i[2][n]+","+i[2][s]+" L"+i[3][n]+","+i[3][s]+" z"}},u.generateGetBarPoints=function(e,t){var r=this,i=t?r.subXAxis:r.xAxis,n=e.__max__+1,o=r.getBarW(i,n),l=r.getShapeX(o,n,e,!!t),h=r.getShapeY(!!t),u=r.getShapeOffset(r.isBarType,e,!!t),d=t?r.getSubYScale:r.getYScale;return function(e,t){var i=d.call(r,e.id)(0),n=u(e,t)||i,s=l(e),a=h(e);return r.config.axis_rotated&&(0<e.value&&a<i||e.value<0&&i<a)&&(a=i),[[s,n],[s,a-(i-n)],[s+o,a-(i-n)],[s+o,n]]}},u.isWithinBar=function(e){var t=this.d3.mouse(e),i=e.getBoundingClientRect(),n=e.pathSegList.getItem(0),s=e.pathSegList.getItem(1),a=Math.min(n.x,s.x),r=Math.min(n.y,s.y),o=a+i.width+2,l=r+i.height+2,h=r-2;return a-2<t[0]&&t[0]<o&&h<t[1]&&t[1]<l},u.initText=function(){this.main.select("."+O.chart).append("g").attr("class",O.chartTexts),this.mainText=this.d3.selectAll([])},u.updateTargetsForText=function(e){var t=this.classChartText.bind(this),i=this.classTexts.bind(this),n=this.classFocus.bind(this);this.main.select("."+O.chartTexts).selectAll("."+O.chartText).data(e).attr("class",function(e){return t(e)+n(e)}).enter().append("g").attr("class",t).style("opacity",0).style("pointer-events","none").append("g").attr("class",i)},u.updateText=function(e){var n=this,t=n.config,i=n.barOrLineData.bind(n),s=n.classText.bind(n);n.mainText=n.main.selectAll("."+O.texts).selectAll("."+O.text).data(i),n.mainText.enter().append("text").attr("class",s).attr("text-anchor",function(e){return t.axis_rotated?e.value<0?"end":"start":"middle"}).style("stroke","none").style("fill",function(e){return n.color(e)}).style("fill-opacity",0),n.mainText.text(function(e,t,i){return n.dataLabelFormat(e.id)(e.value,e.id,t,i)}),n.mainText.exit().transition().duration(e).style("fill-opacity",0).remove()},u.redrawText=function(e,t,i,n){return[(n?this.mainText.transition():this.mainText).attr("x",e).attr("y",t).style("fill",this.color).style("fill-opacity",i?0:this.opacityForText.bind(this))]},u.getTextRect=function(e,t){var i,n=this.d3.select("body").append("div").classed("c3",!0);return n.append("svg").style("visibility","hidden").style("position","fixed").style("top",0).style("left",0).selectAll(".dummy").data([e]).enter().append("text").classed(t||"",!0).text(e).each(function(){i=this.getBoundingClientRect()}),n.remove(),i},u.generateXYForText=function(e,t,i,n){var s=this,a=s.generateGetAreaPoints(e,!1),r=s.generateGetBarPoints(t,!1),o=s.generateGetLinePoints(i,!1),l=n?s.getXForText:s.getYForText;return function(e,t){var i=s.isAreaType(e)?a:s.isBarType(e)?r:o;return l.call(s,i(e,t),e,this)}},u.getXForText=function(e,t,i){var n,s,a=i.getBoundingClientRect();return this.config.axis_rotated?(s=this.isBarType(t)?4:6,n=e[2][1]+s*(t.value<0?-1:1)):n=this.hasType("bar")?(e[2][0]+e[0][0])/2:e[0][0],null===t.value&&(n>this.width?n=this.width-a.width:n<0&&(n=4)),n},u.getYForText=function(e,t,i){var n,s=i.getBoundingClientRect();return this.config.axis_rotated?n=(e[0][0]+e[2][0]+.6*s.height)/2:(n=e[2][1],t.value<0?(n+=s.height,this.isBarType(t)&&this.isSafari()?n-=3:!this.isBarType(t)&&this.isChrome()&&(n+=3)):n+=this.isBarType(t)?-3:-6),null!==t.value||this.config.axis_rotated||(n<s.height?n=s.height:n>this.height&&(n=this.height-4)),n},u.setTargetType=function(e,t){var i=this,n=i.config;i.mapToTargetIds(e).forEach(function(e){i.withoutFadeIn[e]=t===n.data_types[e],n.data_types[e]=t}),e||(n.data_type=t)},u.hasType=function(i,e){var n=this.config.data_types,s=!1;return(e=e||this.data.targets)&&e.length?e.forEach(function(e){var t=n[e.id];(t&&0<=t.indexOf(i)||!t&&"line"===i)&&(s=!0)}):Object.keys(n).length?Object.keys(n).forEach(function(e){n[e]===i&&(s=!0)}):s=this.config.data_type===i,s},u.hasArcType=function(e){return this.hasType("pie",e)||this.hasType("donut",e)||this.hasType("gauge",e)},u.isLineType=function(e){var t=this.config,i=a(e)?e:e.id;return!t.data_types[i]||0<=["line","spline","area","area-spline","step","area-step"].indexOf(t.data_types[i])},u.isStepType=function(e){var t=a(e)?e:e.id;return 0<=["step","area-step"].indexOf(this.config.data_types[t])},u.isSplineType=function(e){var t=a(e)?e:e.id;return 0<=["spline","area-spline"].indexOf(this.config.data_types[t])},u.isAreaType=function(e){var t=a(e)?e:e.id;return 0<=["area","area-spline","area-step"].indexOf(this.config.data_types[t])},u.isBarType=function(e){var t=a(e)?e:e.id;return"bar"===this.config.data_types[t]},u.isScatterType=function(e){var t=a(e)?e:e.id;return"scatter"===this.config.data_types[t]},u.isPieType=function(e){var t=a(e)?e:e.id;return"pie"===this.config.data_types[t]},u.isGaugeType=function(e){var t=a(e)?e:e.id;return"gauge"===this.config.data_types[t]},u.isDonutType=function(e){var t=a(e)?e:e.id;return"donut"===this.config.data_types[t]},u.isArcType=function(e){return this.isPieType(e)||this.isDonutType(e)||this.isGaugeType(e)},u.lineData=function(e){return this.isLineType(e)?[e]:[]},u.arcData=function(e){return this.isArcType(e.data)?[e]:[]},u.barData=function(e){return this.isBarType(e)?e.values:[]},u.lineOrScatterData=function(e){return this.isLineType(e)||this.isScatterType(e)?e.values:[]},u.barOrLineData=function(e){return this.isBarType(e)||this.isLineType(e)?e.values:[]},u.initGrid=function(){var e=this,t=e.config,i=e.d3;e.grid=e.main.append("g").attr("clip-path",e.clipPathForGrid).attr("class",O.grid),t.grid_x_show&&e.grid.append("g").attr("class",O.xgrids),t.grid_y_show&&e.grid.append("g").attr("class",O.ygrids),t.grid_focus_show&&e.grid.append("g").attr("class",O.xgridFocus).append("line").attr("class",O.xgridFocus),e.xgrid=i.selectAll([]),t.grid_lines_front||e.initGridLines()},u.initGridLines=function(){var e=this.d3;this.gridLines=this.main.append("g").attr("clip-path",this.clipPathForGrid).attr("class",O.grid+" "+O.gridLines),this.gridLines.append("g").attr("class",O.xgridLines),this.gridLines.append("g").attr("class",O.ygridLines),this.xgridLines=e.selectAll([])},u.updateXGrid=function(e){var t=this,i=t.config,n=t.d3,s=t.generateGridData(i.grid_x_type,t.x),a=t.isCategorized()?t.xAxis.tickOffset():0;t.xgridAttr=i.axis_rotated?{x1:0,x2:t.width,y1:function(e){return t.x(e)-a},y2:function(e){return t.x(e)-a}}:{x1:function(e){return t.x(e)+a},x2:function(e){return t.x(e)+a},y1:0,y2:t.height},t.xgrid=t.main.select("."+O.xgrids).selectAll("."+O.xgrid).data(s),t.xgrid.enter().append("line").attr("class",O.xgrid),e||t.xgrid.attr(t.xgridAttr).style("opacity",function(){return+n.select(this).attr(i.axis_rotated?"y1":"x1")===(i.axis_rotated?t.height:0)?0:1}),t.xgrid.exit().remove()},u.updateYGrid=function(){var e=this,t=e.config,i=e.yAxis.tickValues()||e.y.ticks(t.grid_y_ticks);e.ygrid=e.main.select("."+O.ygrids).selectAll("."+O.ygrid).data(i),e.ygrid.enter().append("line").attr("class",O.ygrid),e.ygrid.attr("x1",t.axis_rotated?e.y:0).attr("x2",t.axis_rotated?e.y:e.width).attr("y1",t.axis_rotated?0:e.y).attr("y2",t.axis_rotated?e.height:e.y),e.ygrid.exit().remove(),e.smoothLines(e.ygrid,"grid")},u.gridTextAnchor=function(e){return e.position?e.position:"end"},u.gridTextDx=function(e){return"start"===e.position?4:"middle"===e.position?0:-4},u.xGridTextX=function(e){return"start"===e.position?-this.height:"middle"===e.position?-this.height/2:0},u.yGridTextX=function(e){return"start"===e.position?0:"middle"===e.position?this.width/2:this.width},u.updateGrid=function(e){var t,i,n,s=this,a=s.main,r=s.config;s.grid.style("visibility",s.hasArcType()?"hidden":"visible"),a.select("line."+O.xgridFocus).style("visibility","hidden"),r.grid_x_show&&s.updateXGrid(),s.xgridLines=a.select("."+O.xgridLines).selectAll("."+O.xgridLine).data(r.grid_x_lines),(t=s.xgridLines.enter().append("g").attr("class",function(e){return O.xgridLine+(e.class?" "+e.class:"")})).append("line").style("opacity",0),t.append("text").attr("text-anchor",s.gridTextAnchor).attr("transform",r.axis_rotated?"":"rotate(-90)").attr("dx",s.gridTextDx).attr("dy",-5).style("opacity",0),s.xgridLines.exit().transition().duration(e).style("opacity",0).remove(),r.grid_y_show&&s.updateYGrid(),s.ygridLines=a.select("."+O.ygridLines).selectAll("."+O.ygridLine).data(r.grid_y_lines),(i=s.ygridLines.enter().append("g").attr("class",function(e){return O.ygridLine+(e.class?" "+e.class:"")})).append("line").style("opacity",0),i.append("text").attr("text-anchor",s.gridTextAnchor).attr("transform",r.axis_rotated?"rotate(-90)":"").attr("dx",s.gridTextDx).attr("dy",-5).style("opacity",0),n=s.yv.bind(s),s.ygridLines.select("line").transition().duration(e).attr("x1",r.axis_rotated?n:0).attr("x2",r.axis_rotated?n:s.width).attr("y1",r.axis_rotated?0:n).attr("y2",r.axis_rotated?s.height:n).style("opacity",1),s.ygridLines.select("text").transition().duration(e).attr("x",r.axis_rotated?s.xGridTextX.bind(s):s.yGridTextX.bind(s)).attr("y",n).text(function(e){return e.text}).style("opacity",1),s.ygridLines.exit().transition().duration(e).style("opacity",0).remove()},u.redrawGrid=function(e){var t=this,i=t.config,n=t.xv.bind(t),s=t.xgridLines.select("line"),a=t.xgridLines.select("text");return[(e?s.transition():s).attr("x1",i.axis_rotated?0:n).attr("x2",i.axis_rotated?t.width:n).attr("y1",i.axis_rotated?n:0).attr("y2",i.axis_rotated?n:t.height).style("opacity",1),(e?a.transition():a).attr("x",i.axis_rotated?t.yGridTextX.bind(t):t.xGridTextX.bind(t)).attr("y",n).text(function(e){return e.text}).style("opacity",1)]},u.showXGridFocus=function(e){var t=this.config,i=e.filter(function(e){return e&&L(e.value)}),n=this.main.selectAll("line."+O.xgridFocus),s=this.xx.bind(this);t.tooltip_show&&(this.hasType("scatter")||this.hasArcType()||(n.style("visibility","visible").data([i[0]]).attr(t.axis_rotated?"y1":"x1",s).attr(t.axis_rotated?"y2":"x2",s),this.smoothLines(n,"grid")))},u.hideXGridFocus=function(){this.main.select("line."+O.xgridFocus).style("visibility","hidden")},u.updateXgridFocus=function(){var e=this.config;this.main.select("line."+O.xgridFocus).attr("x1",e.axis_rotated?0:-10).attr("x2",e.axis_rotated?this.width:-10).attr("y1",e.axis_rotated?-10:0).attr("y2",e.axis_rotated?-10:this.height)},u.generateGridData=function(e,t){var i,n,s,a,r=[],o=this.main.select("."+O.axisX).selectAll(".tick").size();if("year"===e)for(n=(i=this.getXDomain())[0].getFullYear(),s=i[1].getFullYear(),a=n;a<=s;a++)r.push(new Date(a+"-01-01 00:00:00"));else(r=t.ticks(10)).length>o&&(r=r.filter(function(e){return(""+e).indexOf(".")<0}));return r},u.getGridFilterToRemove=function(e){return e?function(t){var i=!1;return[].concat(e).forEach(function(e){("value"in e&&t.value===e.value||"class"in e&&t.class===e.class)&&(i=!0)}),i}:function(){return!0}},u.removeGridLines=function(e,t){var i=this.config,n=this.getGridFilterToRemove(e),s=function(e){return!n(e)},a=t?O.xgridLines:O.ygridLines,r=t?O.xgridLine:O.ygridLine;this.main.select("."+a).selectAll("."+r).filter(n).transition().duration(i.transition_duration).style("opacity",0).remove(),t?i.grid_x_lines=i.grid_x_lines.filter(s):i.grid_y_lines=i.grid_y_lines.filter(s)},u.initTooltip=function(){var e,t=this,i=t.config;if(t.tooltip=t.selectChart.style("position","relative").append("div").attr("class",O.tooltipContainer).style("position","absolute").style("pointer-events","none").style("display","none"),i.tooltip_init_show){if(t.isTimeSeries()&&a(i.tooltip_init_x)){for(i.tooltip_init_x=t.parseDate(i.tooltip_init_x),e=0;e<t.data.targets[0].values.length&&t.data.targets[0].values[e].x-i.tooltip_init_x!=0;e++);i.tooltip_init_x=e}t.tooltip.html(i.tooltip_contents.call(t,t.data.targets.map(function(e){return t.addName(e.values[i.tooltip_init_x])}),t.axis.getXAxisTickFormat(),t.getYFormat(t.hasArcType()),t.color)),t.tooltip.style("top",i.tooltip_init_position.top).style("left",i.tooltip_init_position.left).style("display","block")}},u.getTooltipContent=function(e,t,i,n){var s,a,r,o,l,h,u=this.config,d=u.tooltip_format_title||t,c=u.tooltip_format_name||function(e){return e},p=u.tooltip_format_value||i;for(a=0;a<e.length;a++)e[a]&&(e[a].value||0===e[a].value)&&(s||(r=d?d(e[a].x):e[a].x,s="<table class='"+O.tooltip+"'>"+(r||0===r?"<tr><th colspan='2'>"+r+"</th></tr>":"")),void 0!==(o=p(e[a].value,e[a].ratio,e[a].id,e[a].index))&&(l=c(e[a].name,e[a].ratio,e[a].id,e[a].index),h=this.levelColor?this.levelColor(e[a].value):n(e[a].id),s+="<tr class='"+O.tooltipName+"-"+e[a].id+"'>",s+="<td class='name'><span style='background-color:"+h+"'></span>"+l+"</td>",s+="<td class='value'>"+o+"</td>",s+="</tr>"));return s+"</table>"},u.tooltipPosition=function(e,t,i,n){var s,a,r,o,l,h=this,u=h.config,d=h.d3,c=h.hasArcType(),p=d.mouse(n);return c?(a=(h.width-(h.isLegendRight?h.getLegendWidth():0))/2+p[0],o=h.height/2+p[1]+20):(s=h.getSvgLeft(!0),u.axis_rotated?(r=(a=s+p[0]+100)+t,l=h.currentWidth-h.getCurrentPaddingRight(),o=h.x(e[0].x)+20):(r=(a=s+h.getCurrentPaddingLeft(!0)+h.x(e[0].x)+20)+t,l=s+h.currentWidth-h.getCurrentPaddingRight(),o=p[1]+15),l<r&&(a-=r-l+20),o+i>h.currentHeight&&(o-=i+30)),o<0&&(o=0),{top:o,left:a}},u.showTooltip=function(e,t){var i,n,s,a=this,r=a.config,o=a.hasArcType(),l=e.filter(function(e){return e&&L(e.value)}),h=r.tooltip_position||u.tooltipPosition;0!==l.length&&r.tooltip_show&&(a.tooltip.html(r.tooltip_contents.call(a,e,a.axis.getXAxisTickFormat(),a.getYFormat(o),a.color)).style("display","block"),i=a.tooltip.property("offsetWidth"),n=a.tooltip.property("offsetHeight"),s=h.call(this,l,i,n,t),a.tooltip.style("top",s.top+"px").style("left",s.left+"px"))},u.hideTooltip=function(){this.tooltip.style("display","none")},u.initLegend=function(){var e=this;return e.legendItemTextBox={},e.legendHasRendered=!1,e.legend=e.svg.append("g").attr("transform",e.getTranslate("legend")),e.config.legend_show?void e.updateLegendWithDefaults():(e.legend.style("visibility","hidden"),void(e.hiddenLegendIds=e.mapToIds(e.data.targets)))},u.updateLegendWithDefaults=function(){this.updateLegend(this.mapToIds(this.data.targets),{withTransform:!1,withTransitionForTransform:!1,withTransition:!1})},u.updateSizeForLegend=function(e,t){var i=this,n=i.config,s={top:i.isLegendTop?i.getCurrentPaddingTop()+n.legend_inset_y+5.5:i.currentHeight-e-i.getCurrentPaddingBottom()-n.legend_inset_y,left:i.isLegendLeft?i.getCurrentPaddingLeft()+n.legend_inset_x+.5:i.currentWidth-t-i.getCurrentPaddingRight()-n.legend_inset_x+.5};i.margin3={top:i.isLegendRight?0:i.isLegendInset?s.top:i.currentHeight-e,right:NaN,bottom:0,left:i.isLegendRight?i.currentWidth-t:i.isLegendInset?s.left:0}},u.transformLegend=function(e){(e?this.legend.transition():this.legend).attr("transform",this.getTranslate("legend"))},u.updateLegendStep=function(e){this.legendStep=e},u.updateLegendItemWidth=function(e){this.legendItemWidth=e},u.updateLegendItemHeight=function(e){this.legendItemHeight=e},u.getLegendWidth=function(){return this.config.legend_show?this.isLegendRight||this.isLegendInset?this.legendItemWidth*(this.legendStep+1):this.currentWidth:0},u.getLegendHeight=function(){var e=0;return this.config.legend_show&&(e=this.isLegendRight?this.currentHeight:Math.max(20,this.legendItemHeight)*(this.legendStep+1)),e},u.opacityForLegend=function(e){return e.classed(O.legendItemHidden)?null:1},u.opacityForUnfocusedLegend=function(e){return e.classed(O.legendItemHidden)?null:.3},u.toggleFocusLegend=function(t,e){var i=this;t=i.mapToTargetIds(t),i.legend.selectAll("."+O.legendItem).filter(function(e){return 0<=t.indexOf(e)}).classed(O.legendItemFocused,e).transition().duration(100).style("opacity",function(){return(e?i.opacityForLegend:i.opacityForUnfocusedLegend).call(i,i.d3.select(this))})},u.revertLegend=function(){var e=this,t=e.d3;e.legend.selectAll("."+O.legendItem).classed(O.legendItemFocused,!1).transition().duration(100).style("opacity",function(){return e.opacityForLegend(t.select(this))})},u.showLegend=function(e){var t=this,i=t.config;i.legend_show||(i.legend_show=!0,t.legend.style("visibility","visible"),t.legendHasRendered||t.updateLegendWithDefaults()),t.removeHiddenLegendIds(e),t.legend.selectAll(t.selectorLegends(e)).style("visibility","visible").transition().style("opacity",function(){return t.opacityForLegend(t.d3.select(this))})},u.hideLegend=function(e){var t=this.config;t.legend_show&&p(e)&&(t.legend_show=!1,this.legend.style("visibility","hidden")),this.addHiddenLegendIds(e),this.legend.selectAll(this.selectorLegends(e)).style("opacity",0).style("visibility","hidden")},u.clearLegendItemTextBoxCache=function(){this.legendItemTextBox={}},u.updateLegend=function(m,e,t){function i(e,t,i){function n(e,t){t||(s=(f-k-p)/2)<M&&(s=(f-p)/2,k=0,Y++),C[e]=Y,D[Y]=v.isLegendInset?10:s,L[e]=k,k+=p}var s,a,r,o,l=0===i,h=i===m.length-1,u=(r=e,o=t,v.legendItemTextBox[o]||(v.legendItemTextBox[o]=v.getTextRect(r.textContent,O.legendItem)),v.legendItemTextBox[o]),d=u.width+j+(!h||v.isLegendRight||v.isLegendInset?b:0),c=u.height+y,p=v.isLegendRight||v.isLegendInset?c:d,f=v.isLegendRight||v.isLegendInset?v.getLegendHeight():v.getLegendWidth();return l&&(w=x=Y=k=0),_.legend_show&&!v.isLegendToShow(t)?void(S[t]=T[t]=C[t]=L[t]=0):(S[t]=d,T[t]=c,(!x||x<=d)&&(x=d),(!w||w<=c)&&(w=c),a=v.isLegendRight||v.isLegendInset?w:x,void(_.legend_equally?(Object.keys(S).forEach(function(e){S[e]=x}),Object.keys(T).forEach(function(e){T[e]=w}),(s=(f-a*m.length)/2)<M?(Y=k=0,m.forEach(function(e){n(e)})):n(t,!0)):n(t)))}var n,s,a,r,o,l,h,u,d,c,p,f,g,v=this,_=v.config,y=4,b=10,x=0,w=0,M=10,j=15,k=0,L={},S={},T={},D=[0],C={},Y=0;u=R(e=e||{},"withTransition",!0),d=R(e,"withTransitionForTransform",!0),v.isLegendInset&&(Y=_.legend_inset_step?_.legend_inset_step:m.length,v.updateLegendStep(Y)),v.isLegendRight?(n=function(e){return x*C[e]},r=function(e){return D[C[e]]+L[e]}):v.isLegendInset?(n=function(e){return x*C[e]+10},r=function(e){return D[C[e]]+L[e]}):(n=function(e){return D[C[e]]+L[e]},r=function(e){return w*C[e]}),s=function(e,t){return n(e,t)+14},o=function(e,t){return r(e,t)+9},a=function(e,t){return n(e,t)},l=function(e,t){return r(e,t)-5},(h=v.legend.selectAll("."+O.legendItem).data(m).enter().append("g").attr("class",function(e){return v.generateClass(O.legendItem,e)}).style("visibility",function(e){return v.isLegendToShow(e)?"visible":"hidden"}).style("cursor","pointer").on("click",function(e){_.legend_item_onclick?_.legend_item_onclick.call(v,e):v.d3.event.altKey?(v.api.hide(),v.api.show(e)):(v.api.toggle(e),v.isTargetToShow(e)?v.api.focus(e):v.api.revert())}).on("mouseover",function(e){v.d3.select(this).classed(O.legendItemFocused,!0),!v.transiting&&v.isTargetToShow(e)&&v.api.focus(e),_.legend_item_onmouseover&&_.legend_item_onmouseover.call(v,e)}).on("mouseout",function(e){v.d3.select(this).classed(O.legendItemFocused,!1),v.api.revert(),_.legend_item_onmouseout&&_.legend_item_onmouseout.call(v,e)})).append("text").text(function(e){return E(_.data_names[e])?_.data_names[e]:e}).each(function(e,t){i(this,e,t)}).style("pointer-events","none").attr("x",v.isLegendRight||v.isLegendInset?s:-200).attr("y",v.isLegendRight||v.isLegendInset?-200:o),h.append("rect").attr("class",O.legendItemEvent).style("fill-opacity",0).attr("x",v.isLegendRight||v.isLegendInset?a:-200).attr("y",v.isLegendRight||v.isLegendInset?-200:l),h.append("rect").attr("class",O.legendItemTile).style("pointer-events","none").style("fill",v.color).attr("x",v.isLegendRight||v.isLegendInset?s:-200).attr("y",v.isLegendRight||v.isLegendInset?-200:r).attr("width",10).attr("height",10),g=v.legend.select("."+O.legendBackground+" rect"),v.isLegendInset&&0<x&&0===g.size()&&(g=v.legend.insert("g","."+O.legendItem).attr("class",O.legendBackground).append("rect")),c=v.legend.selectAll("text").data(m).text(function(e){return E(_.data_names[e])?_.data_names[e]:e}).each(function(e,t){i(this,e,t)}),(u?c.transition():c).attr("x",s).attr("y",o),p=v.legend.selectAll("rect."+O.legendItemEvent).data(m),(u?p.transition():p).attr("width",function(e){return S[e]}).attr("height",function(e){return T[e]}).attr("x",a).attr("y",l),f=v.legend.selectAll("rect."+O.legendItemTile).data(m),(u?f.transition():f).style("fill",v.color).attr("x",n).attr("y",r),g&&(u?g.transition():g).attr("height",v.getLegendHeight()-12).attr("width",x*(Y+1)+10),v.legend.selectAll("."+O.legendItem).classed(O.legendItemHidden,function(e){return!v.isTargetToShow(e)}),v.updateLegendItemWidth(x),v.updateLegendItemHeight(w),v.updateLegendStep(Y),v.updateSizes(),v.updateScales(),v.updateSvgSize(),v.transformAll(d,t),v.legendHasRendered=!0},function(e,t){if(Object.create)t.prototype=Object.create(e.prototype);else{var i=function(){};i.prototype=e.prototype,t.prototype=new i}t.prototype.constructor=t}(t,o),o.prototype.init=function(){var e=this.owner,t=e.config,i=e.main;e.axes.x=i.append("g").attr("class",O.axis+" "+O.axisX).attr("clip-path",e.clipPathForXAxis).attr("transform",e.getTranslate("x")).style("visibility",t.axis_x_show?"visible":"hidden"),e.axes.x.append("text").attr("class",O.axisXLabel).attr("transform",t.axis_rotated?"rotate(-90)":"").style("text-anchor",this.textAnchorForXAxisLabel.bind(this)),e.axes.y=i.append("g").attr("class",O.axis+" "+O.axisY).attr("clip-path",t.axis_y_inner?"":e.clipPathForYAxis).attr("transform",e.getTranslate("y")).style("visibility",t.axis_y_show?"visible":"hidden"),e.axes.y.append("text").attr("class",O.axisYLabel).attr("transform",t.axis_rotated?"":"rotate(-90)").style("text-anchor",this.textAnchorForYAxisLabel.bind(this)),e.axes.y2=i.append("g").attr("class",O.axis+" "+O.axisY2).attr("transform",e.getTranslate("y2")).style("visibility",t.axis_y2_show?"visible":"hidden"),e.axes.y2.append("text").attr("class",O.axisY2Label).attr("transform",t.axis_rotated?"":"rotate(-90)").style("text-anchor",this.textAnchorForY2AxisLabel.bind(this))},o.prototype.getXAxis=function(e,t,i,n,s,a,r){var o=this.owner,l=o.config,h={isCategory:o.isCategorized(),withOuterTick:s,tickMultiline:l.axis_x_tick_multiline,tickWidth:l.axis_x_tick_width,tickTextRotate:r?0:l.axis_x_tick_rotate,withoutTransition:a},u=d(o.d3,h).scale(e).orient(t);return o.isTimeSeries()&&n&&(n=n.map(function(e){return o.parseDate(e)})),u.tickFormat(i).tickValues(n),o.isCategorized()&&(u.tickCentered(l.axis_x_tick_centered),p(l.axis_x_tick_culling)&&(l.axis_x_tick_culling=!1)),u},o.prototype.updateXAxisTickValues=function(e,t){var i,n=this.owner,s=n.config;return(s.axis_x_tick_fit||s.axis_x_tick_count)&&(i=this.generateTickValues(n.mapTargetsToUniqueXs(e),s.axis_x_tick_count,n.isTimeSeries())),t?t.tickValues(i):(n.xAxis.tickValues(i),n.subXAxis.tickValues(i)),i},o.prototype.getYAxis=function(e,t,i,n,s,a){var r={withOuterTick:s,withoutTransition:a},o=this.owner,l=o.d3,h=o.config,u=d(l,r).scale(e).orient(t).tickFormat(i);return o.isTimeSeriesY()?u.ticks(l.time[h.axis_y_tick_time_value],h.axis_y_tick_time_interval):u.tickValues(n),u},o.prototype.getId=function(e){var t=this.owner.config;return e in t.data_axes?t.data_axes[e]:"y"},o.prototype.getXAxisTickFormat=function(){var t=this.owner,i=t.config,n=t.isTimeSeries()?t.defaultAxisTimeFormat:t.isCategorized()?t.categoryName:function(e){return e<0?e.toFixed(0):e};return i.axis_x_tick_format&&(c(i.axis_x_tick_format)?n=i.axis_x_tick_format:t.isTimeSeries()&&(n=function(e){return e?t.axisTimeFormat(i.axis_x_tick_format)(e):""})),c(n)?function(e){return n.call(t,e)}:n},o.prototype.getTickValues=function(e,t){return e||(t?t.tickValues():void 0)},o.prototype.getXAxisTickValues=function(){return this.getTickValues(this.owner.config.axis_x_tick_values,this.owner.xAxis)},o.prototype.getYAxisTickValues=function(){return this.getTickValues(this.owner.config.axis_y_tick_values,this.owner.yAxis)},o.prototype.getY2AxisTickValues=function(){return this.getTickValues(this.owner.config.axis_y2_tick_values,this.owner.y2Axis)},o.prototype.getLabelOptionByAxisId=function(e){var t,i=this.owner.config;return"y"===e?t=i.axis_y_label:"y2"===e?t=i.axis_y2_label:"x"===e&&(t=i.axis_x_label),t},o.prototype.getLabelText=function(e){var t=this.getLabelOptionByAxisId(e);return a(t)?t:t?t.text:null},o.prototype.setLabelText=function(e,t){var i=this.owner.config,n=this.getLabelOptionByAxisId(e);a(n)?"y"===e?i.axis_y_label=t:"y2"===e?i.axis_y2_label=t:"x"===e&&(i.axis_x_label=t):n&&(n.text=t)},o.prototype.getLabelPosition=function(e,t){var i=this.getLabelOptionByAxisId(e),n=i&&"object"==typeof i&&i.position?i.position:t;return{isInner:0<=n.indexOf("inner"),isOuter:0<=n.indexOf("outer"),isLeft:0<=n.indexOf("left"),isCenter:0<=n.indexOf("center"),isRight:0<=n.indexOf("right"),isTop:0<=n.indexOf("top"),isMiddle:0<=n.indexOf("middle"),isBottom:0<=n.indexOf("bottom")}},o.prototype.getXAxisLabelPosition=function(){return this.getLabelPosition("x",this.owner.config.axis_rotated?"inner-top":"inner-right")},o.prototype.getYAxisLabelPosition=function(){return this.getLabelPosition("y",this.owner.config.axis_rotated?"inner-right":"inner-top")},o.prototype.getY2AxisLabelPosition=function(){return this.getLabelPosition("y2",this.owner.config.axis_rotated?"inner-right":"inner-top")},o.prototype.getLabelPositionById=function(e){return"y2"===e?this.getY2AxisLabelPosition():"y"===e?this.getYAxisLabelPosition():this.getXAxisLabelPosition()},o.prototype.textForXAxisLabel=function(){return this.getLabelText("x")},o.prototype.textForYAxisLabel=function(){return this.getLabelText("y")},o.prototype.textForY2AxisLabel=function(){return this.getLabelText("y2")},o.prototype.xForAxisLabel=function(e,t){var i=this.owner;return e?t.isLeft?0:t.isCenter?i.width/2:i.width:t.isBottom?-i.height:t.isMiddle?-i.height/2:0},o.prototype.dxForAxisLabel=function(e,t){return e?t.isLeft?"0.5em":t.isRight?"-0.5em":"0":t.isTop?"-0.5em":t.isBottom?"0.5em":"0"},o.prototype.textAnchorForAxisLabel=function(e,t){return e?t.isLeft?"start":t.isCenter?"middle":"end":t.isBottom?"start":t.isMiddle?"middle":"end"},o.prototype.xForXAxisLabel=function(){return this.xForAxisLabel(!this.owner.config.axis_rotated,this.getXAxisLabelPosition())},o.prototype.xForYAxisLabel=function(){return this.xForAxisLabel(this.owner.config.axis_rotated,this.getYAxisLabelPosition())},o.prototype.xForY2AxisLabel=function(){return this.xForAxisLabel(this.owner.config.axis_rotated,this.getY2AxisLabelPosition())},o.prototype.dxForXAxisLabel=function(){return this.dxForAxisLabel(!this.owner.config.axis_rotated,this.getXAxisLabelPosition())},o.prototype.dxForYAxisLabel=function(){return this.dxForAxisLabel(this.owner.config.axis_rotated,this.getYAxisLabelPosition())},o.prototype.dxForY2AxisLabel=function(){return this.dxForAxisLabel(this.owner.config.axis_rotated,this.getY2AxisLabelPosition())},o.prototype.dyForXAxisLabel=function(){var e=this.owner.config,t=this.getXAxisLabelPosition();return e.axis_rotated?t.isInner?"1.2em":-25-this.getMaxTickWidth("x"):t.isInner?"-0.5em":e.axis_x_height?e.axis_x_height-10:"3em"},o.prototype.dyForYAxisLabel=function(){var e=this.owner,t=this.getYAxisLabelPosition();return e.config.axis_rotated?t.isInner?"-0.5em":"3em":t.isInner?"1.2em":-10-(e.config.axis_y_inner?0:this.getMaxTickWidth("y")+10)},o.prototype.dyForY2AxisLabel=function(){var e=this.owner,t=this.getY2AxisLabelPosition();return e.config.axis_rotated?t.isInner?"1.2em":"-2.2em":t.isInner?"-0.5em":15+(e.config.axis_y2_inner?0:this.getMaxTickWidth("y2")+15)},o.prototype.textAnchorForXAxisLabel=function(){var e=this.owner;return this.textAnchorForAxisLabel(!e.config.axis_rotated,this.getXAxisLabelPosition())},o.prototype.textAnchorForYAxisLabel=function(){var e=this.owner;return this.textAnchorForAxisLabel(e.config.axis_rotated,this.getYAxisLabelPosition())},o.prototype.textAnchorForY2AxisLabel=function(){var e=this.owner;return this.textAnchorForAxisLabel(e.config.axis_rotated,this.getY2AxisLabelPosition())},o.prototype.getMaxTickWidth=function(e,t){var i,n,s,a,r=this.owner,o=r.config,l=0;return t&&r.currentMaxTickWidths[e]||(r.svg&&(i=r.filterTargetsToShow(r.data.targets),"y"===e?(n=r.y.copy().domain(r.getYDomain(i,"y")),s=this.getYAxis(n,r.yOrient,o.axis_y_tick_format,r.yAxisTickValues,!1,!0)):"y2"===e?(n=r.y2.copy().domain(r.getYDomain(i,"y2")),s=this.getYAxis(n,r.y2Orient,o.axis_y2_tick_format,r.y2AxisTickValues,!1,!0)):(n=r.x.copy().domain(r.getXDomain(i)),s=this.getXAxis(n,r.xOrient,r.xAxisTickFormat,r.xAxisTickValues,!1,!0,!0),this.updateXAxisTickValues(i,s)),(a=r.d3.select("body").append("div").classed("c3",!0)).append("svg").style("visibility","hidden").style("position","fixed").style("top",0).style("left",0).append("g").call(s).each(function(){r.d3.select(this).selectAll("text").each(function(){var e=this.getBoundingClientRect();l<e.width&&(l=e.width)}),a.remove()})),r.currentMaxTickWidths[e]=l<=0?r.currentMaxTickWidths[e]:l),r.currentMaxTickWidths[e]},o.prototype.updateLabels=function(e){var t=this.owner,i=t.main.select("."+O.axisX+" ."+O.axisXLabel),n=t.main.select("."+O.axisY+" ."+O.axisYLabel),s=t.main.select("."+O.axisY2+" ."+O.axisY2Label);(e?i.transition():i).attr("x",this.xForXAxisLabel.bind(this)).attr("dx",this.dxForXAxisLabel.bind(this)).attr("dy",this.dyForXAxisLabel.bind(this)).text(this.textForXAxisLabel.bind(this)),(e?n.transition():n).attr("x",this.xForYAxisLabel.bind(this)).attr("dx",this.dxForYAxisLabel.bind(this)).attr("dy",this.dyForYAxisLabel.bind(this)).text(this.textForYAxisLabel.bind(this)),(e?s.transition():s).attr("x",this.xForY2AxisLabel.bind(this)).attr("dx",this.dxForY2AxisLabel.bind(this)).attr("dy",this.dyForY2AxisLabel.bind(this)).text(this.textForY2AxisLabel.bind(this))},o.prototype.getPadding=function(e,t,i,n){return L(e[t])?"ratio"===e.unit?e[t]*n:this.convertPixelsToAxisPadding(e[t],n):i},o.prototype.convertPixelsToAxisPadding=function(e,t){var i=this.owner;return t*(e/(i.config.axis_rotated?i.width:i.height))},o.prototype.generateTickValues=function(e,t,i){var n,s,a,r,o,l,h,u=e;if(t)if(1===(n=c(t)?t():t))u=[e[0]];else if(2===n)u=[e[0],e[e.length-1]];else if(2<n){for(r=n-2,s=e[0],o=((a=e[e.length-1])-s)/(r+1),u=[s],l=0;l<r;l++)h=+s+o*(l+1),u.push(i?new Date(h):h);u.push(a)}return i||(u=u.sort(function(e,t){return e-t})),u},o.prototype.generateTransitions=function(e){var t=this.owner.axes;return{axisX:e?t.x.transition().duration(e):t.x,axisY:e?t.y.transition().duration(e):t.y,axisY2:e?t.y2.transition().duration(e):t.y2,axisSubX:e?t.subx.transition().duration(e):t.subx}},o.prototype.redraw=function(e,t){var i=this.owner;i.axes.x.style("opacity",t?0:1),i.axes.y.style("opacity",t?0:1),i.axes.y2.style("opacity",t?0:1),i.axes.subx.style("opacity",t?0:1),e.axisX.call(i.xAxis),e.axisY.call(i.yAxis),e.axisY2.call(i.y2Axis),e.axisSubX.call(i.subXAxis)},u.getClipPath=function(e){return"url("+(0<=h.navigator.appVersion.toLowerCase().indexOf("msie 9.")?"":document.URL.split("#")[0])+"#"+e+")"},u.appendClip=function(e,t){return e.append("clipPath").attr("id",t).append("rect")},u.getAxisClipX=function(e){var t=Math.max(30,this.margin.left);return e?-(1+t):-(t-1)},u.getAxisClipY=function(e){return e?-20:-this.margin.top},u.getXAxisClipX=function(){return this.getAxisClipX(!this.config.axis_rotated)},u.getXAxisClipY=function(){return this.getAxisClipY(!this.config.axis_rotated)},u.getYAxisClipX=function(){return this.config.axis_y_inner?-1:this.getAxisClipX(this.config.axis_rotated)},u.getYAxisClipY=function(){return this.getAxisClipY(this.config.axis_rotated)},u.getAxisClipWidth=function(e){var t=Math.max(30,this.margin.left),i=Math.max(30,this.margin.right);return e?this.width+2+t+i:this.margin.left+20},u.getAxisClipHeight=function(e){return(e?this.margin.bottom:this.margin.top+this.height)+20},u.getXAxisClipWidth=function(){return this.getAxisClipWidth(!this.config.axis_rotated)},u.getXAxisClipHeight=function(){return this.getAxisClipHeight(!this.config.axis_rotated)},u.getYAxisClipWidth=function(){return this.getAxisClipWidth(this.config.axis_rotated)+(this.config.axis_y_inner?20:0)},u.getYAxisClipHeight=function(){return this.getAxisClipHeight(this.config.axis_rotated)},u.initPie=function(){var e=this.d3,t=this.config;this.pie=e.layout.pie().value(function(e){return e.values.reduce(function(e,t){return e+t.value},0)}),t.data_order||this.pie.sort(null)},u.updateRadius=function(){var e=this,t=e.config,i=t.gauge_width||t.donut_width;e.radiusExpanded=Math.min(e.arcWidth,e.arcHeight)/2,e.radius=.95*e.radiusExpanded,e.innerRadiusRatio=i?(e.radius-i)/e.radius:.6,e.innerRadius=e.hasType("donut")||e.hasType("gauge")?e.radius*e.innerRadiusRatio:0},u.updateArc=function(){this.svgArc=this.getSvgArc(),this.svgArcExpanded=this.getSvgArcExpanded(),this.svgArcExpandedSub=this.getSvgArcExpanded(.98)},u.updateAngle=function(t){var e,i,n=this.config,s=!1,a=0,r=n.gauge_min,o=n.gauge_max;return this.pie(this.filterTargetsToShow(this.data.targets)).forEach(function(e){s||e.data.id!==t.data.id||(s=!0,(t=e).index=a),a++}),isNaN(t.startAngle)&&(t.startAngle=0),isNaN(t.endAngle)&&(t.endAngle=t.startAngle),this.isGaugeType(t.data)&&(e=Math.PI/(o-r),i=t.value<r?0:t.value<o?t.value-r:o-r,t.startAngle=Math.PI/2*-1,t.endAngle=t.startAngle+e*i),s?t:null},u.getSvgArc=function(){var n=this,s=n.d3.svg.arc().outerRadius(n.radius).innerRadius(n.innerRadius),e=function(e,t){var i;return t?s(e):(i=n.updateAngle(e))?s(i):"M 0 0"};return e.centroid=s.centroid,e},u.getSvgArcExpanded=function(e){var i=this,n=i.d3.svg.arc().outerRadius(i.radiusExpanded*(e||1)).innerRadius(i.innerRadius);return function(e){var t=i.updateAngle(e);return t?n(t):"M 0 0"}},u.getArc=function(e,t,i){return i||this.isArcType(e.data)?this.svgArc(e,t):"M 0 0"},u.transformForArcLabel=function(e){var t,i,n,s,a,r=this.updateAngle(e),o="";return r&&!this.hasType("gauge")&&(t=this.svgArc.centroid(r),i=isNaN(t[0])?0:t[0],n=isNaN(t[1])?0:t[1],s=Math.sqrt(i*i+n*n),o="translate("+i*(a=this.radius&&s?(.375<36/this.radius?1.175-36/this.radius:.8)*this.radius/s:0)+","+n*a+")"),o},u.getArcRatio=function(e){var t=this.hasType("gauge")?Math.PI:2*Math.PI;return e?(e.endAngle-e.startAngle)/t:null},u.convertToArcData=function(e){return this.addName({id:e.data.id,value:e.value,ratio:this.getArcRatio(e),index:e.index})},u.textForArcLabel=function(e){var t,i,n,s,a;return this.shouldShowArcLabel()?(i=(t=this.updateAngle(e))?t.value:null,n=this.getArcRatio(t),s=e.data.id,this.hasType("gauge")||this.meetsArcLabelThreshold(n)?(a=this.getArcLabelFormat())?a(i,n,s):this.defaultArcValueFormat(i,n):""):""},u.expandArc=function(e){var t,i=this;return i.transiting?void(t=h.setInterval(function(){i.transiting||(h.clearInterval(t),0<i.legend.selectAll(".c3-legend-item-focused").size()&&i.expandArc(e))},10)):(e=i.mapToTargetIds(e),void i.svg.selectAll(i.selectorTargets(e,"."+O.chartArc)).each(function(e){i.shouldExpand(e.data.id)&&i.d3.select(this).selectAll("path").transition().duration(50).attr("d",i.svgArcExpanded).transition().duration(100).attr("d",i.svgArcExpandedSub).each(function(e){i.isDonutType(e.data)})}))},u.unexpandArc=function(e){this.transiting||(e=this.mapToTargetIds(e),this.svg.selectAll(this.selectorTargets(e,"."+O.chartArc)).selectAll("path").transition().duration(50).attr("d",this.svgArc),this.svg.selectAll("."+O.arc).style("opacity",1))},u.shouldExpand=function(e){var t=this.config;return this.isDonutType(e)&&t.donut_expand||this.isGaugeType(e)&&t.gauge_expand||this.isPieType(e)&&t.pie_expand},u.shouldShowArcLabel=function(){var e=this.config,t=!0;return this.hasType("donut")?t=e.donut_label_show:this.hasType("pie")&&(t=e.pie_label_show),t},u.meetsArcLabelThreshold=function(e){var t=this.config;return(this.hasType("donut")?t.donut_label_threshold:t.pie_label_threshold)<=e},u.getArcLabelFormat=function(){var e=this.config,t=e.pie_label_format;return this.hasType("gauge")?t=e.gauge_label_format:this.hasType("donut")&&(t=e.donut_label_format),t},u.getArcTitle=function(){return this.hasType("donut")?this.config.donut_title:""},u.updateTargetsForArc=function(e){var t,i=this.main,n=this.classChartArc.bind(this),s=this.classArcs.bind(this),a=this.classFocus.bind(this);(t=i.select("."+O.chartArcs).selectAll("."+O.chartArc).data(this.pie(e)).attr("class",function(e){return n(e)+a(e.data)}).enter().append("g").attr("class",n)).append("g").attr("class",s),t.append("text").attr("dy",this.hasType("gauge")?"-.1em":".35em").style("opacity",0).style("text-anchor","middle").style("pointer-events","none")},u.initArc=function(){this.arcs=this.main.select("."+O.chart).append("g").attr("class",O.chartArcs).attr("transform",this.getTranslate("arc")),this.arcs.append("text").attr("class",O.chartArcsTitle).style("text-anchor","middle").text(this.getArcTitle())},u.redrawArc=function(e,t,i){var n,s=this,a=s.d3,r=s.config,o=s.main;(n=o.selectAll("."+O.arcs).selectAll("."+O.arc).data(s.arcData.bind(s))).enter().append("path").attr("class",s.classArc.bind(s)).style("fill",function(e){return s.color(e.data)}).style("cursor",function(e){return r.interaction_enabled&&r.data_selection_isselectable(e)?"pointer":null}).style("opacity",0).each(function(e){s.isGaugeType(e.data)&&(e.startAngle=e.endAngle=Math.PI/2*-1),this._current=e}),n.attr("transform",function(e){return!s.isGaugeType(e.data)&&i?"scale(0)":""}).style("opacity",function(e){return e===this._current?0:1}).on("mouseover",r.interaction_enabled?function(e){var t,i;s.transiting||(t=s.updateAngle(e),i=s.convertToArcData(t),s.expandArc(t.data.id),s.api.focus(t.data.id),s.toggleFocusLegend(t.data.id,!0),s.config.data_onmouseover(i,this))}:null).on("mousemove",r.interaction_enabled?function(e){var t=s.updateAngle(e),i=[s.convertToArcData(t)];s.showTooltip(i,this)}:null).on("mouseout",r.interaction_enabled?function(e){var t,i;s.transiting||(t=s.updateAngle(e),i=s.convertToArcData(t),s.unexpandArc(t.data.id),s.api.revert(),s.revertLegend(),s.hideTooltip(),s.config.data_onmouseout(i,this))}:null).on("click",r.interaction_enabled?function(e,t){var i=s.updateAngle(e),n=s.convertToArcData(i);s.toggleShape&&s.toggleShape(this,n,t),s.config.data_onclick.call(s.api,n,this)}:null).each(function(){s.transiting=!0}).transition().duration(e).attrTween("d",function(i){var n,e=s.updateAngle(i);return e?(isNaN(this._current.startAngle)&&(this._current.startAngle=0),isNaN(this._current.endAngle)&&(this._current.endAngle=this._current.startAngle),n=a.interpolate(this._current,e),this._current=n(0),function(e){var t=n(e);return t.data=i.data,s.getArc(t,!0)}):function(){return"M 0 0"}}).attr("transform",i?"scale(1)":"").style("fill",function(e){return s.levelColor?s.levelColor(e.data.values[0].value):s.color(e.data.id)}).style("opacity",1).call(s.endall,function(){s.transiting=!1}),n.exit().transition().duration(t).style("opacity",0).remove(),o.selectAll("."+O.chartArc).select("text").style("opacity",0).attr("class",function(e){return s.isGaugeType(e.data)?O.gaugeValue:""}).text(s.textForArcLabel.bind(s)).attr("transform",s.transformForArcLabel.bind(s)).style("font-size",function(e){return s.isGaugeType(e.data)?Math.round(s.radius/5)+"px":""}).transition().duration(e).style("opacity",function(e){return s.isTargetToShow(e.data.id)&&s.isArcType(e.data)?1:0}),o.select("."+O.chartArcsTitle).style("opacity",s.hasType("donut")||s.hasType("gauge")?1:0),s.hasType("gauge")&&(s.arcs.select("."+O.chartArcsBackground).attr("d",function(){var e={data:[{value:r.gauge_max}],startAngle:Math.PI/2*-1,endAngle:Math.PI/2};return s.getArc(e,!0,!0)}),s.arcs.select("."+O.chartArcsGaugeUnit).attr("dy",".75em").text(r.gauge_label_show?r.gauge_units:""),s.arcs.select("."+O.chartArcsGaugeMin).attr("dx",-1*(s.innerRadius+(s.radius-s.innerRadius)/2)+"px").attr("dy","1.2em").text(r.gauge_label_show?r.gauge_min:""),s.arcs.select("."+O.chartArcsGaugeMax).attr("dx",s.innerRadius+(s.radius-s.innerRadius)/2+"px").attr("dy","1.2em").text(r.gauge_label_show?r.gauge_max:""))},u.initGauge=function(){var e=this.arcs;this.hasType("gauge")&&(e.append("path").attr("class",O.chartArcsBackground),e.append("text").attr("class",O.chartArcsGaugeUnit).style("text-anchor","middle").style("pointer-events","none"),e.append("text").attr("class",O.chartArcsGaugeMin).style("text-anchor","middle").style("pointer-events","none"),e.append("text").attr("class",O.chartArcsGaugeMax).style("text-anchor","middle").style("pointer-events","none"))},u.getGaugeLabelHeight=function(){return this.config.gauge_label_show?20:0},u.initRegion=function(){this.region=this.main.append("g").attr("clip-path",this.clipPath).attr("class",O.regions)},u.updateRegion=function(e){var t=this.config;this.region.style("visibility",this.hasArcType()?"hidden":"visible"),this.mainRegion=this.main.select("."+O.regions).selectAll("."+O.region).data(t.regions),this.mainRegion.enter().append("g").attr("class",this.classRegion.bind(this)).append("rect").style("fill-opacity",0),this.mainRegion.exit().transition().duration(e).style("opacity",0).remove()},u.redrawRegion=function(e){var t=this.mainRegion.selectAll("rect"),i=this.regionX.bind(this),n=this.regionY.bind(this),s=this.regionWidth.bind(this),a=this.regionHeight.bind(this);return[(e?t.transition():t).attr("x",i).attr("y",n).attr("width",s).attr("height",a).style("fill-opacity",function(e){return L(e.opacity)?e.opacity:.1})]},u.regionX=function(e){var t=this.config,i="y"===e.axis?this.y:this.y2;return"y"===e.axis||"y2"===e.axis?t.axis_rotated&&"start"in e?i(e.start):0:t.axis_rotated?0:"start"in e?this.x(this.isTimeSeries()?this.parseDate(e.start):e.start):0},u.regionY=function(e){var t=this.config,i="y"===e.axis?this.y:this.y2;return"y"===e.axis||"y2"===e.axis?t.axis_rotated?0:"end"in e?i(e.end):0:t.axis_rotated&&"start"in e?this.x(this.isTimeSeries()?this.parseDate(e.start):e.start):0},u.regionWidth=function(e){var t,i=this,n=i.config,s=i.regionX(e),a="y"===e.axis?i.y:i.y2;return(t="y"===e.axis||"y2"===e.axis?n.axis_rotated&&"end"in e?a(e.end):i.width:n.axis_rotated?i.width:"end"in e?i.x(i.isTimeSeries()?i.parseDate(e.end):e.end):i.width)<s?0:t-s},u.regionHeight=function(e){var t,i=this.config,n=this.regionY(e),s="y"===e.axis?this.y:this.y2;return(t="y"===e.axis||"y2"===e.axis?i.axis_rotated?this.height:"start"in e?s(e.start):this.height:i.axis_rotated&&"end"in e?this.x(this.isTimeSeries()?this.parseDate(e.end):e.end):this.height)<n?0:t-n},u.isRegionOnX=function(e){return!e.axis||"x"===e.axis},u.drag=function(e){var t,i,n,s,c,p,f,m,g=this,a=g.config,r=g.main,v=g.d3;g.hasArcType()||a.data_selection_enabled&&(!a.zoom_enabled||g.zoom.altDomain)&&a.data_selection_multiple&&(t=g.dragStart[0],i=g.dragStart[1],n=e[0],s=e[1],c=Math.min(t,n),p=Math.max(t,n),f=a.data_selection_grouped?g.margin.top:Math.min(i,s),m=a.data_selection_grouped?g.height:Math.max(i,s),r.select("."+O.dragarea).attr("x",c).attr("y",f).attr("width",p-c).attr("height",m-f),r.selectAll("."+O.shapes).selectAll("."+O.shape).filter(function(e){return a.data_selection_isselectable(e)}).each(function(e,t){var i,n,s,a,r,o,l=v.select(this),h=l.classed(O.SELECTED),u=l.classed(O.INCLUDED),d=!1;if(l.classed(O.circle))i=1*l.attr("cx"),n=1*l.attr("cy"),r=g.togglePoint,d=c<i&&i<p&&f<n&&n<m;else{if(!l.classed(O.bar))return;i=(o=_(this)).x,n=o.y,s=o.width,a=o.height,r=g.togglePath,d=!(p<i||i+s<c||m<n||n+a<f)}d^u&&(l.classed(O.INCLUDED,!u),l.classed(O.SELECTED,!h),r.call(g,!h,l,e,t))}))},u.dragstart=function(e){var t=this.config;this.hasArcType()||t.data_selection_enabled&&(this.dragStart=e,this.main.select("."+O.chart).append("rect").attr("class",O.dragarea).style("opacity",.1),this.dragging=!0)},u.dragend=function(){var e=this.config;this.hasArcType()||e.data_selection_enabled&&(this.main.select("."+O.dragarea).transition().duration(100).style("opacity",0).remove(),this.main.selectAll("."+O.shape).classed(O.INCLUDED,!1),this.dragging=!1)},u.selectPoint=function(e,t,i){var n=this,s=n.config,a=(s.axis_rotated?n.circleY:n.circleX).bind(n),r=(s.axis_rotated?n.circleX:n.circleY).bind(n),o=n.pointSelectR.bind(n);s.data_onselected.call(n.api,t,e.node()),n.main.select("."+O.selectedCircles+n.getTargetSelectorSuffix(t.id)).selectAll("."+O.selectedCircle+"-"+i).data([t]).enter().append("circle").attr("class",function(){return n.generateClass(O.selectedCircle,i)}).attr("cx",a).attr("cy",r).attr("stroke",function(){return n.color(t)}).attr("r",function(e){return 1.4*n.pointSelectR(e)}).transition().duration(100).attr("r",o)},u.unselectPoint=function(e,t,i){this.config.data_onunselected(t,e.node()),this.main.select("."+O.selectedCircles+this.getTargetSelectorSuffix(t.id)).selectAll("."+O.selectedCircle+"-"+i).transition().duration(100).attr("r",0).remove()},u.togglePoint=function(e,t,i,n){e?this.selectPoint(t,i,n):this.unselectPoint(t,i,n)},u.selectPath=function(e,t){var i=this;i.config.data_onselected.call(i,t,e.node()),e.transition().duration(100).style("fill",function(){return i.d3.rgb(i.color(t)).brighter(.75)})},u.unselectPath=function(e,t){var i=this;i.config.data_onunselected.call(i,t,e.node()),e.transition().duration(100).style("fill",function(){return i.color(t)})},u.togglePath=function(e,t,i,n){e?this.selectPath(t,i,n):this.unselectPath(t,i,n)},u.getToggle=function(e,t){var i;return"circle"===e.nodeName?i=this.isStepType(t)?function(){}:this.togglePoint:"path"===e.nodeName&&(i=this.togglePath),i},u.toggleShape=function(e,t,i){var n=this.d3,s=this.config,a=n.select(e),r=a.classed(O.SELECTED),o=this.getToggle(e,t).bind(this);s.data_selection_enabled&&s.data_selection_isselectable(t)&&(s.data_selection_multiple||this.main.selectAll("."+O.shapes+(s.data_selection_grouped?this.getTargetSelectorSuffix(t.id):"")).selectAll("."+O.shape).each(function(e,t){var i=n.select(this);i.classed(O.SELECTED)&&o(!1,i.classed(O.SELECTED,!1),e,t)}),a.classed(O.SELECTED,!r),o(!r,a,t,i))},u.initBrush=function(){var t=this,e=t.d3;t.brush=e.svg.brush().on("brush",function(){t.redrawForBrush()}),t.brush.update=function(){return t.context&&t.context.select("."+O.brush).call(this),this},t.brush.scale=function(e){return t.config.axis_rotated?this.y(e):this.x(e)}},u.initSubchart=function(){var e=this,t=e.config,i=e.context=e.svg.append("g").attr("transform",e.getTranslate("context"));i.style("visibility",t.subchart_show?"visible":"hidden"),i.append("g").attr("clip-path",e.clipPathForSubchart).attr("class",O.chart),i.select("."+O.chart).append("g").attr("class",O.chartBars),i.select("."+O.chart).append("g").attr("class",O.chartLines),i.append("g").attr("clip-path",e.clipPath).attr("class",O.brush).call(e.brush),e.axes.subx=i.append("g").attr("class",O.axisX).attr("transform",e.getTranslate("subx")).attr("clip-path",t.axis_rotated?"":e.clipPathForXAxis)},u.updateTargetsForSubchart=function(e){var t,i=this,n=i.context,s=i.config,a=i.classChartBar.bind(i),r=i.classBars.bind(i),o=i.classChartLine.bind(i),l=i.classLines.bind(i),h=i.classAreas.bind(i);s.subchart_show&&(n.select("."+O.chartBars).selectAll("."+O.chartBar).data(e).attr("class",a).enter().append("g").style("opacity",0).attr("class",a).append("g").attr("class",r),(t=n.select("."+O.chartLines).selectAll("."+O.chartLine).data(e).attr("class",o).enter().append("g").style("opacity",0).attr("class",o)).append("g").attr("class",l),t.append("g").attr("class",h),n.selectAll("."+O.brush+" rect").attr(s.axis_rotated?"width":"height",s.axis_rotated?i.width2:i.height2))},u.updateBarForSubchart=function(e){var t=this;t.contextBar=t.context.selectAll("."+O.bars).selectAll("."+O.bar).data(t.barData.bind(t)),t.contextBar.enter().append("path").attr("class",t.classBar.bind(t)).style("stroke","none").style("fill",t.color),t.contextBar.style("opacity",t.initialOpacity.bind(t)),t.contextBar.exit().transition().duration(e).style("opacity",0).remove()},u.redrawBarForSubchart=function(e,t,i){(t?this.contextBar.transition().duration(i):this.contextBar).attr("d",e).style("opacity",1)},u.updateLineForSubchart=function(e){var t=this;t.contextLine=t.context.selectAll("."+O.lines).selectAll("."+O.line).data(t.lineData.bind(t)),t.contextLine.enter().append("path").attr("class",t.classLine.bind(t)).style("stroke",t.color),t.contextLine.style("opacity",t.initialOpacity.bind(t)),t.contextLine.exit().transition().duration(e).style("opacity",0).remove()},u.redrawLineForSubchart=function(e,t,i){(t?this.contextLine.transition().duration(i):this.contextLine).attr("d",e).style("opacity",1)},u.updateAreaForSubchart=function(e){var t=this,i=t.d3;t.contextArea=t.context.selectAll("."+O.areas).selectAll("."+O.area).data(t.lineData.bind(t)),t.contextArea.enter().append("path").attr("class",t.classArea.bind(t)).style("fill",t.color).style("opacity",function(){return t.orgAreaOpacity=+i.select(this).style("opacity"),0}),t.contextArea.style("opacity",0),t.contextArea.exit().transition().duration(e).style("opacity",0).remove()},u.redrawAreaForSubchart=function(e,t,i){(t?this.contextArea.transition().duration(i):this.contextArea).attr("d",e).style("fill",this.color).style("opacity",this.orgAreaOpacity)},u.redrawSubchart=function(e,t,i,n,s,a,r){var o,l,h,u=this,d=u.d3,c=u.config;u.context.style("visibility",c.subchart_show?"visible":"hidden"),c.subchart_show&&(d.event&&"zoom"===d.event.type&&u.brush.extent(u.x.orgDomain()).update(),e&&(u.brush.empty()||u.brush.extent(u.x.orgDomain()).update(),o=u.generateDrawArea(s,!0),l=u.generateDrawBar(a,!0),h=u.generateDrawLine(r,!0),u.updateBarForSubchart(i),u.updateLineForSubchart(i),u.updateAreaForSubchart(i),u.redrawBarForSubchart(l,i,i),u.redrawLineForSubchart(h,i,i),u.redrawAreaForSubchart(o,i,i)))},u.redrawForBrush=function(){var e=this.x;this.redraw({withTransition:!1,withY:this.config.zoom_rescale,withSubchart:!1,withUpdateXDomain:!0,withDimension:!1}),this.config.subchart_onbrush.call(this.api,e.orgDomain())},u.transformContext=function(e,t){var i;t&&t.axisSubX?i=t.axisSubX:(i=this.context.select("."+O.axisX),e&&(i=i.transition())),this.context.attr("transform",this.getTranslate("context")),i.attr("transform",this.getTranslate("subx"))},u.getDefaultExtent=function(){var e=this.config,t=c(e.axis_x_extent)?e.axis_x_extent(this.getXDomain(this.data.targets)):e.axis_x_extent;return this.isTimeSeries()&&(t=[this.parseDate(t[0]),this.parseDate(t[1])]),t},u.initZoom=function(){var t,i=this,n=i.d3,s=i.config;i.zoom=n.behavior.zoom().on("zoomstart",function(){t=n.event.sourceEvent,i.zoom.altDomain=n.event.sourceEvent.altKey?i.x.orgDomain():null,s.zoom_onzoomstart.call(i.api,n.event.sourceEvent)}).on("zoom",function(){i.redrawForZoom.call(i)}).on("zoomend",function(){var e=n.event.sourceEvent;e&&t.clientX===e.clientX&&t.clientY===e.clientY||(i.redrawEventRect(),i.updateZoom(),s.zoom_onzoomend.call(i.api,i.x.orgDomain()))}),i.zoom.scale=function(e){return s.axis_rotated?this.y(e):this.x(e)},i.zoom.orgScaleExtent=function(){var e=s.zoom_extent?s.zoom_extent:[1,10];return[e[0],Math.max(i.getMaxDataCount()/e[1],e[1])]},i.zoom.updateScaleExtent=function(){var e=I(i.x.orgDomain())/I(i.orgXDomain),t=this.orgScaleExtent();return this.scaleExtent([t[0]*e,t[1]*e]),this}},u.updateZoom=function(){var e=this.config.zoom_enabled?this.zoom:function(){};this.main.select("."+O.zoomRect).call(e).on("dblclick.zoom",null),this.main.selectAll("."+O.eventRect).call(e).on("dblclick.zoom",null)},u.redrawForZoom=function(){var e=this,t=e.d3,i=e.config,n=e.zoom,s=e.x;if(i.zoom_enabled&&0!==e.filterTargetsToShow(e.data.targets).length){if("mousemove"===t.event.sourceEvent.type&&n.altDomain)return s.domain(n.altDomain),void n.scale(s).updateScaleExtent();e.isCategorized()&&s.orgDomain()[0]===e.orgXDomain[0]&&s.domain([e.orgXDomain[0]-1e-10,s.orgDomain()[1]]),e.redraw({withTransition:!1,withY:i.zoom_rescale,withSubchart:!1,withEventRect:!1,withDimension:!1}),"mousemove"===t.event.sourceEvent.type&&(e.cancelClick=!0),i.zoom_onzoom.call(e.api,s.orgDomain())}},u.generateColor=function(){var e=this.config,t=this.d3,n=e.data_colors,s=S(e.color_pattern)?e.color_pattern:t.scale.category10().range(),a=e.data_color,r=[];return function(e){var t,i=e.id||e.data&&e.data.id||e;return n[i]instanceof Function?t=n[i](e):n[i]?t=n[i]:(r.indexOf(i)<0&&r.push(i),t=s[r.indexOf(i)%s.length],n[i]=t),a instanceof Function?a(t,e):t}},u.generateLevelColor=function(){var e=this.config,n=e.color_pattern,t=e.color_threshold,s="value"===t.unit,a=t.values&&t.values.length?t.values:[],r=t.max||100;return S(e.color_threshold)?function(e){var t,i=n[n.length-1];for(t=0;t<a.length;t++)if((s?e:100*e/r)<a[t]){i=n[t];break}return i}:null},u.getYFormat=function(e){var n=this,s=e&&!n.hasType("gauge")?n.defaultArcValueFormat:n.yFormat,a=e&&!n.hasType("gauge")?n.defaultArcValueFormat:n.y2Format;return function(e,t,i){return("y2"===n.axis.getId(i)?a:s).call(n,e,t)}},u.yFormat=function(e){var t=this.config;return(t.axis_y_tick_format?t.axis_y_tick_format:this.defaultValueFormat)(e)},u.y2Format=function(e){var t=this.config;return(t.axis_y2_tick_format?t.axis_y2_tick_format:this.defaultValueFormat)(e)},u.defaultValueFormat=function(e){return L(e)?+e:""},u.defaultArcValueFormat=function(e,t){return(100*t).toFixed(1)+"%"},u.dataLabelFormat=function(e){var t=this.config.data_labels,i=function(e){return L(e)?+e:""};return"function"==typeof t.format?t.format:"object"==typeof t.format?t.format[e]?!0===t.format[e]?i:t.format[e]:function(){return""}:i},u.hasCaches=function(e){for(var t=0;t<e.length;t++)if(!(e[t]in this.cache))return!1;return!0},u.addCache=function(e,t){this.cache[e]=this.cloneTarget(t)},u.getCaches=function(e){var t,i=[];for(t=0;t<e.length;t++)e[t]in this.cache&&i.push(this.cloneTarget(this.cache[e[t]]));return i};var O=u.CLASS={target:"c3-target",chart:"c3-chart",chartLine:"c3-chart-line",chartLines:"c3-chart-lines",chartBar:"c3-chart-bar",chartBars:"c3-chart-bars",chartText:"c3-chart-text",chartTexts:"c3-chart-texts",chartArc:"c3-chart-arc",chartArcs:"c3-chart-arcs",chartArcsTitle:"c3-chart-arcs-title",chartArcsBackground:"c3-chart-arcs-background",chartArcsGaugeUnit:"c3-chart-arcs-gauge-unit",chartArcsGaugeMax:"c3-chart-arcs-gauge-max",chartArcsGaugeMin:"c3-chart-arcs-gauge-min",selectedCircle:"c3-selected-circle",selectedCircles:"c3-selected-circles",eventRect:"c3-event-rect",eventRects:"c3-event-rects",eventRectsSingle:"c3-event-rects-single",eventRectsMultiple:"c3-event-rects-multiple",zoomRect:"c3-zoom-rect",brush:"c3-brush",focused:"c3-focused",defocused:"c3-defocused",region:"c3-region",regions:"c3-regions",tooltipContainer:"c3-tooltip-container",tooltip:"c3-tooltip",tooltipName:"c3-tooltip-name",shape:"c3-shape",shapes:"c3-shapes",line:"c3-line",lines:"c3-lines",bar:"c3-bar",bars:"c3-bars",circle:"c3-circle",circles:"c3-circles",arc:"c3-arc",arcs:"c3-arcs",area:"c3-area",areas:"c3-areas",empty:"c3-empty",text:"c3-text",texts:"c3-texts",gaugeValue:"c3-gauge-value",grid:"c3-grid",gridLines:"c3-grid-lines",xgrid:"c3-xgrid",xgrids:"c3-xgrids",xgridLine:"c3-xgrid-line",xgridLines:"c3-xgrid-lines",xgridFocus:"c3-xgrid-focus",ygrid:"c3-ygrid",ygrids:"c3-ygrids",ygridLine:"c3-ygrid-line",ygridLines:"c3-ygrid-lines",axis:"c3-axis",axisX:"c3-axis-x",axisXLabel:"c3-axis-x-label",axisY:"c3-axis-y",axisYLabel:"c3-axis-y-label",axisY2:"c3-axis-y2",axisY2Label:"c3-axis-y2-label",legendBackground:"c3-legend-background",legendItem:"c3-legend-item",legendItemEvent:"c3-legend-item-event",legendItemTile:"c3-legend-item-tile",legendItemHidden:"c3-legend-item-hidden",legendItemFocused:"c3-legend-item-focused",dragarea:"c3-dragarea",EXPANDED:"_expanded_",SELECTED:"_selected_",INCLUDED:"_included_"};u.generateClass=function(e,t){return" "+e+" "+e+this.getTargetSelectorSuffix(t)},u.classText=function(e){return this.generateClass(O.text,e.index)},u.classTexts=function(e){return this.generateClass(O.texts,e.id)},u.classShape=function(e){return this.generateClass(O.shape,e.index)},u.classShapes=function(e){return this.generateClass(O.shapes,e.id)},u.classLine=function(e){return this.classShape(e)+this.generateClass(O.line,e.id)},u.classLines=function(e){return this.classShapes(e)+this.generateClass(O.lines,e.id)},u.classCircle=function(e){return this.classShape(e)+this.generateClass(O.circle,e.index)},u.classCircles=function(e){return this.classShapes(e)+this.generateClass(O.circles,e.id)},u.classBar=function(e){return this.classShape(e)+this.generateClass(O.bar,e.index)},u.classBars=function(e){return this.classShapes(e)+this.generateClass(O.bars,e.id)},u.classArc=function(e){return this.classShape(e.data)+this.generateClass(O.arc,e.data.id)},u.classArcs=function(e){return this.classShapes(e.data)+this.generateClass(O.arcs,e.data.id)},u.classArea=function(e){return this.classShape(e)+this.generateClass(O.area,e.id)},u.classAreas=function(e){return this.classShapes(e)+this.generateClass(O.areas,e.id)},u.classRegion=function(e,t){return this.generateClass(O.region,t)+" "+("class"in e?e.class:"")},u.classEvent=function(e){return this.generateClass(O.eventRect,e.index)},u.classTarget=function(e){var t=this.config.data_classes[e],i="";return t&&(i=" "+O.target+"-"+t),this.generateClass(O.target,e)+i},u.classFocus=function(e){return this.classFocused(e)+this.classDefocused(e)},u.classFocused=function(e){return" "+(0<=this.focusedTargetIds.indexOf(e.id)?O.focused:"")},u.classDefocused=function(e){return" "+(0<=this.defocusedTargetIds.indexOf(e.id)?O.defocused:"")},u.classChartText=function(e){return O.chartText+this.classTarget(e.id)},u.classChartLine=function(e){return O.chartLine+this.classTarget(e.id)},u.classChartBar=function(e){return O.chartBar+this.classTarget(e.id)},u.classChartArc=function(e){return O.chartArc+this.classTarget(e.data.id)},u.getTargetSelectorSuffix=function(e){return e||0===e?("-"+e).replace(/[\s?!@#$%^&*()_=+,.<>'":;\[\]\/|~`{}\\]/g,"-"):""},u.selectorTarget=function(e,t){return(t||"")+"."+O.target+this.getTargetSelectorSuffix(e)},u.selectorTargets=function(e,t){var i=this;return(e=e||[]).length?e.map(function(e){return i.selectorTarget(e,t)}):null},u.selectorLegend=function(e){return"."+O.legendItem+this.getTargetSelectorSuffix(e)},u.selectorLegends=function(e){var t=this;return e&&e.length?e.map(function(e){return t.selectorLegend(e)}):null};var Q,L=u.isValue=function(e){return e||0===e},c=u.isFunction=function(e){return"function"==typeof e},a=u.isString=function(e){return"string"==typeof e},w=u.isUndefined=function(e){return void 0===e},E=u.isDefined=function(e){return void 0!==e},r=u.ceil10=function(e){return 10*Math.ceil(e/10)},l=u.asHalfPixel=function(e){return Math.ceil(e)+.5},I=u.diffDomain=function(e){return e[1]-e[0]},p=u.isEmpty=function(e){return!e||a(e)&&0===e.length||"object"==typeof e&&0===Object.keys(e).length},S=u.notEmpty=function(e){return 0<Object.keys(e).length},R=u.getOption=function(e,t,i){return E(e[t])?e[t]:i},f=u.hasValue=function(t,i){var n=!1;return Object.keys(t).forEach(function(e){t[e]===i&&(n=!0)}),n},_=u.getPathBox=function(e){var t=e.getBoundingClientRect(),i=[e.pathSegList.getItem(0),e.pathSegList.getItem(1)];return{x:i[0].x,y:Math.min(i[0].y,i[1].y),width:t.width,height:t.height}};s.focus=function(t){var e,i=this.internal;t=i.mapToTargetIds(t),e=i.svg.selectAll(i.selectorTargets(t.filter(i.isTargetToShow,i))),this.revert(),this.defocus(),e.classed(O.focused,!0).classed(O.defocused,!1),i.hasArcType()&&i.expandArc(t),i.toggleFocusLegend(t,!0),i.focusedTargetIds=t,i.defocusedTargetIds=i.defocusedTargetIds.filter(function(e){return t.indexOf(e)<0})},s.defocus=function(t){var e=this.internal;t=e.mapToTargetIds(t),e.svg.selectAll(e.selectorTargets(t.filter(e.isTargetToShow,e))).classed(O.focused,!1).classed(O.defocused,!0),e.hasArcType()&&e.unexpandArc(t),e.toggleFocusLegend(t,!1),e.focusedTargetIds=e.focusedTargetIds.filter(function(e){return t.indexOf(e)<0}),e.defocusedTargetIds=t},s.revert=function(e){var t=this.internal;e=t.mapToTargetIds(e),t.svg.selectAll(t.selectorTargets(e)).classed(O.focused,!1).classed(O.defocused,!1),t.hasArcType()&&t.unexpandArc(e),t.config.legend_show&&(t.showLegend(e.filter(t.isLegendToShow.bind(t))),t.legend.selectAll(t.selectorLegends(e)).filter(function(){return t.d3.select(this).classed(O.legendItemFocused)}).classed(O.legendItemFocused,!1)),t.focusedTargetIds=[],t.defocusedTargetIds=[]},s.show=function(e,t){var i,n=this.internal;e=n.mapToTargetIds(e),t=t||{},n.removeHiddenTargetIds(e),(i=n.svg.selectAll(n.selectorTargets(e))).transition().style("opacity",1,"important").call(n.endall,function(){i.style("opacity",null).style("opacity",1)}),t.withLegend&&n.showLegend(e),n.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0})},s.hide=function(e,t){var i,n=this.internal;e=n.mapToTargetIds(e),t=t||{},n.addHiddenTargetIds(e),(i=n.svg.selectAll(n.selectorTargets(e))).transition().style("opacity",0,"important").call(n.endall,function(){i.style("opacity",null).style("opacity",0)}),t.withLegend&&n.hideLegend(e),n.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0})},s.toggle=function(e,t){var i=this,n=this.internal;n.mapToTargetIds(e).forEach(function(e){n.isTargetToShow(e)?i.hide(e,t):i.show(e,t)})},s.zoom=function(e){var t=this.internal;return e&&(t.isTimeSeries()&&(e=e.map(function(e){return t.parseDate(e)})),t.brush.extent(e),t.redraw({withUpdateXDomain:!0,withY:t.config.zoom_rescale}),t.config.zoom_onzoom.call(this,t.x.orgDomain())),t.brush.extent()},s.zoom.enable=function(e){var t=this.internal;t.config.zoom_enabled=e,t.updateAndRedraw()},s.unzoom=function(){var e=this.internal;e.brush.clear().update(),e.redraw({withUpdateXDomain:!0})},s.load=function(t){var e=this.internal,i=e.config;return t.xs&&e.addXs(t.xs),"classes"in t&&Object.keys(t.classes).forEach(function(e){i.data_classes[e]=t.classes[e]}),"categories"in t&&e.isCategorized()&&(i.axis_x_categories=t.categories),"axes"in t&&Object.keys(t.axes).forEach(function(e){i.data_axes[e]=t.axes[e]}),"colors"in t&&Object.keys(t.colors).forEach(function(e){i.data_colors[e]=t.colors[e]}),"cacheIds"in t&&e.hasCaches(t.cacheIds)?void e.load(e.getCaches(t.cacheIds),t.done):void("unload"in t?e.unload(e.mapToTargetIds("boolean"==typeof t.unload&&t.unload?null:t.unload),function(){e.loadFromArgs(t)}):e.loadFromArgs(t))},s.unload=function(e){var t=this.internal;(e=e||{})instanceof Array?e={ids:e}:"string"==typeof e&&(e={ids:[e]}),t.unload(t.mapToTargetIds(e.ids),function(){t.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),e.done&&e.done()})},s.flow=function(e){var s,t,i,n,a,r,o,l=this.internal,h=[],u=l.getMaxDataCount(),d=0,c=0;if(e.json)t=l.convertJsonToData(e.json,e.keys);else if(e.rows)t=l.convertRowsToData(e.rows);else{if(!e.columns)return;t=l.convertColumnsToData(e.columns)}s=l.convertDataToTargets(t,!0),l.data.targets.forEach(function(e){var t,i,n=!1;for(t=0;t<s.length;t++)if(e.id===s[t].id){for(n=!0,e.values[e.values.length-1]&&(c=e.values[e.values.length-1].index+1),d=s[t].values.length,i=0;i<d;i++)s[t].values[i].index=c+i,l.isTimeSeries()||(s[t].values[i].x=c+i);e.values=e.values.concat(s[t].values),s.splice(t,1);break}n||h.push(e.id)}),l.data.targets.forEach(function(e){var t,i;for(t=0;t<h.length;t++)if(e.id===h[t])for(c=e.values[e.values.length-1].index+1,i=0;i<d;i++)e.values.push({id:e.id,index:c+i,x:l.isTimeSeries()?l.getOtherTargetX(c+i):c+i,value:null})}),l.data.targets.length&&s.forEach(function(e){var t,i=[];for(t=l.data.targets[0].values[0].index;t<c;t++)i.push({id:e.id,index:t,x:l.isTimeSeries()?l.getOtherTargetX(t):t,value:null});e.values.forEach(function(e){e.index+=c,l.isTimeSeries()||(e.x+=c)}),e.values=i.concat(e.values)}),l.data.targets=l.data.targets.concat(s),l.getMaxDataCount(),a=(n=l.data.targets[0]).values[0],E(e.to)?(d=0,o=l.isTimeSeries()?l.parseDate(e.to):e.to,n.values.forEach(function(e){e.x<o&&d++})):E(e.length)&&(d=e.length),u?1===u&&l.isTimeSeries()&&(r=(n.values[n.values.length-1].x-a.x)/2,i=[new Date(+a.x-r),new Date(+a.x+r)],l.updateXDomain(null,!0,!0,!1,i)):(r=l.isTimeSeries()?1<n.values.length?n.values[n.values.length-1].x-a.x:a.x-l.getXDomain(l.data.targets)[0]:1,i=[a.x-r,a.x],l.updateXDomain(null,!0,!0,!1,i)),l.updateTargets(l.data.targets),l.redraw({flow:{index:a.index,length:d,duration:L(e.duration)?e.duration:l.config.transition_duration,done:e.done,orgDataCount:u},withLegend:!0,withTransition:1<u,withTrimXDomain:!1,withUpdateXAxis:!0})},u.generateFlow=function(Y){var E=this,H=E.config,A=E.d3;return function(){var e,t,i,n,s=Y.targets,a=Y.flow,r=Y.drawBar,o=Y.drawLine,l=Y.drawArea,h=Y.cx,u=Y.cy,d=Y.xv,c=Y.xForText,p=Y.yForText,f=Y.duration,m=a.index,g=a.length,v=E.getValueOnIndex(E.data.targets[0].values,m),_=E.getValueOnIndex(E.data.targets[0].values,m+g),y=E.x.domain(),b=a.duration||f,x=a.done||function(){},w=E.generateWait(),M=E.xgrid||A.selectAll([]),j=E.xgridLines||A.selectAll([]),k=E.mainRegion||A.selectAll([]),L=E.mainText||A.selectAll([]),S=E.mainBar||A.selectAll([]),T=E.mainLine||A.selectAll([]),D=E.mainArea||A.selectAll([]),C=E.mainCircle||A.selectAll([]);E.flowing=!0,E.data.targets.forEach(function(e){e.values.splice(0,g)}),i=E.updateXDomain(s,!0,!0),E.updateXGrid&&E.updateXGrid(!0),a.orgDataCount?e=1===a.orgDataCount||v.x===_.x?E.x(y[0])-E.x(i[0]):E.isTimeSeries()?E.x(y[0])-E.x(i[0]):E.x(v.x)-E.x(_.x):1!==E.data.targets[0].values.length?e=E.x(y[0])-E.x(i[0]):E.isTimeSeries()?(v=E.getValueOnIndex(E.data.targets[0].values,0),_=E.getValueOnIndex(E.data.targets[0].values,E.data.targets[0].values.length-1),e=E.x(v.x)-E.x(_.x)):e=I(i)/2,n=I(y)/I(i),t="translate("+e+",0) scale("+n+",1)",E.hideXGridFocus(),E.hideTooltip(),A.transition().ease("linear").duration(b).each(function(){w.add(E.axes.x.transition().call(E.xAxis)),w.add(S.transition().attr("transform",t)),w.add(T.transition().attr("transform",t)),w.add(D.transition().attr("transform",t)),w.add(C.transition().attr("transform",t)),w.add(L.transition().attr("transform",t)),w.add(k.filter(E.isRegionOnX).transition().attr("transform",t)),w.add(M.transition().attr("transform",t)),w.add(j.transition().attr("transform",t))}).call(w,function(){var e,t=[],i=[],n=[];if(g){for(e=0;e<g;e++)t.push("."+O.shape+"-"+(m+e)),i.push("."+O.text+"-"+(m+e)),n.push("."+O.eventRect+"-"+(m+e));E.svg.selectAll("."+O.shapes).selectAll(t).remove(),E.svg.selectAll("."+O.texts).selectAll(i).remove(),E.svg.selectAll("."+O.eventRects).selectAll(n).remove(),E.svg.select("."+O.xgrid).remove()}M.attr("transform",null).attr(E.xgridAttr),j.attr("transform",null),j.select("line").attr("x1",H.axis_rotated?0:d).attr("x2",H.axis_rotated?E.width:d),j.select("text").attr("x",H.axis_rotated?E.width:0).attr("y",d),S.attr("transform",null).attr("d",r),T.attr("transform",null).attr("d",o),D.attr("transform",null).attr("d",l),C.attr("transform",null).attr("cx",h).attr("cy",u),L.attr("transform",null).attr("x",c).attr("y",p).style("fill-opacity",E.opacityForText.bind(E)),k.attr("transform",null),k.select("rect").filter(E.isRegionOnX).attr("x",E.regionX.bind(E)).attr("width",E.regionWidth.bind(E)),H.interaction_enabled&&E.redrawEventRect(),x(),E.flowing=!1})}},s.selected=function(e){var t=this.internal,i=t.d3;return i.merge(t.main.selectAll("."+O.shapes+t.getTargetSelectorSuffix(e)).selectAll("."+O.shape).filter(function(){return i.select(this).classed(O.SELECTED)}).map(function(e){return e.map(function(e){var t=e.__data__;return t.data?t.data:t})}))},s.select=function(l,h,u){var d=this.internal,c=d.d3,p=d.config;p.data_selection_enabled&&d.main.selectAll("."+O.shapes).selectAll("."+O.shape).each(function(e,t){var i=c.select(this),n=e.data?e.data.id:e.id,s=d.getToggle(this,e).bind(d),a=p.data_selection_grouped||!l||0<=l.indexOf(n),r=!h||0<=h.indexOf(t),o=i.classed(O.SELECTED);i.classed(O.line)||i.classed(O.area)||(a&&r?p.data_selection_isselectable(e)&&!o&&s(!0,i.classed(O.SELECTED,!0),e,t):E(u)&&u&&o&&s(!1,i.classed(O.SELECTED,!1),e,t))})},s.unselect=function(l,h){var u=this.internal,d=u.d3,c=u.config;c.data_selection_enabled&&u.main.selectAll("."+O.shapes).selectAll("."+O.shape).each(function(e,t){var i=d.select(this),n=e.data?e.data.id:e.id,s=u.getToggle(this,e).bind(u),a=c.data_selection_grouped||!l||0<=l.indexOf(n),r=!h||0<=h.indexOf(t),o=i.classed(O.SELECTED);i.classed(O.line)||i.classed(O.area)||a&&r&&c.data_selection_isselectable(e)&&o&&s(!1,i.classed(O.SELECTED,!1),e,t)})},s.transform=function(e,t){var i=this.internal,n=0<=["pie","donut"].indexOf(e)?{withTransform:!0}:null;i.transformTo(t,e,n)},u.transformTo=function(e,t,i){var n=!this.hasArcType(),s=i||{withTransitionForAxis:n};s.withTransitionForTransform=!1,this.transiting=!1,this.setTargetType(e,t),this.updateTargets(this.data.targets),this.updateAndRedraw(s)},s.groups=function(e){var t=this.internal,i=t.config;return w(e)||(i.data_groups=e,t.redraw()),i.data_groups},s.xgrids=function(e){var t=this.internal,i=t.config;return e&&(i.grid_x_lines=e,t.redrawWithoutRescale()),i.grid_x_lines},s.xgrids.add=function(e){var t=this.internal;return this.xgrids(t.config.grid_x_lines.concat(e||[]))},s.xgrids.remove=function(e){this.internal.removeGridLines(e,!0)},s.ygrids=function(e){var t=this.internal,i=t.config;return e&&(i.grid_y_lines=e,t.redrawWithoutRescale()),i.grid_y_lines},s.ygrids.add=function(e){var t=this.internal;return this.ygrids(t.config.grid_y_lines.concat(e||[]))},s.ygrids.remove=function(e){this.internal.removeGridLines(e,!1)},s.regions=function(e){var t=this.internal,i=t.config;return e&&(i.regions=e,t.redrawWithoutRescale()),i.regions},s.regions.add=function(e){var t=this.internal,i=t.config;return e&&(i.regions=i.regions.concat(e),t.redrawWithoutRescale()),i.regions},s.regions.remove=function(e){var t,i,n,s=this.internal,a=s.config;return e=e||{},t=s.getOption(e,"duration",a.transition_duration),i=s.getOption(e,"classes",[O.region]),n=s.main.select("."+O.regions).selectAll(i.map(function(e){return"."+e})),(t?n.transition().duration(t):n).style("opacity",0).remove(),a.regions=a.regions.filter(function(e){var t=!1;return!e.class||(e.class.split(" ").forEach(function(e){0<=i.indexOf(e)&&(t=!0)}),!t)}),a.regions},s.data=function(t){var e=this.internal.data.targets;return void 0===t?e:e.filter(function(e){return 0<=[].concat(t).indexOf(e.id)})},s.data.shown=function(e){return this.internal.filterTargetsToShow(this.data(e))},s.data.values=function(e){var t,i=null;return e&&(i=(t=this.data(e))[0]?t[0].values.map(function(e){return e.value}):null),i},s.data.names=function(e){return this.internal.clearLegendItemTextBoxCache(),this.internal.updateDataAttributes("names",e)},s.data.colors=function(e){return this.internal.updateDataAttributes("colors",e)},s.data.axes=function(e){return this.internal.updateDataAttributes("axes",e)},s.category=function(e,t){var i=this.internal,n=i.config;return 1<arguments.length&&(n.axis_x_categories[e]=t,i.redraw()),n.axis_x_categories[e]},s.categories=function(e){var t=this.internal,i=t.config;return arguments.length&&(i.axis_x_categories=e,t.redraw()),i.axis_x_categories},s.color=function(e){return this.internal.color(e)},s.x=function(e){var t=this.internal;return arguments.length&&(t.updateTargetX(t.data.targets,e),t.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})),t.data.xs},s.xs=function(e){var t=this.internal;return arguments.length&&(t.updateTargetXs(t.data.targets,e),t.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})),t.data.xs},s.axis=function(){},s.axis.labels=function(t){var i=this.internal;arguments.length&&(Object.keys(t).forEach(function(e){i.axis.setLabelText(e,t[e])}),i.axis.updateLabels())},s.axis.max=function(e){var t=this.internal,i=t.config;return arguments.length?("object"==typeof e?(L(e.x)&&(i.axis_x_max=e.x),L(e.y)&&(i.axis_y_max=e.y),L(e.y2)&&(i.axis_y2_max=e.y2)):i.axis_y_max=i.axis_y2_max=e,void t.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})):{x:i.axis_x_max,y:i.axis_y_max,y2:i.axis_y2_max}},s.axis.min=function(e){var t=this.internal,i=t.config;return arguments.length?("object"==typeof e?(L(e.x)&&(i.axis_x_min=e.x),L(e.y)&&(i.axis_y_min=e.y),L(e.y2)&&(i.axis_y2_min=e.y2)):i.axis_y_min=i.axis_y2_min=e,void t.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})):{x:i.axis_x_min,y:i.axis_y_min,y2:i.axis_y2_min}},s.axis.range=function(e){return arguments.length?(E(e.max)&&this.axis.max(e.max),void(E(e.min)&&this.axis.min(e.min))):{max:this.axis.max(),min:this.axis.min()}},s.legend=function(){},s.legend.show=function(e){var t=this.internal;t.showLegend(t.mapToTargetIds(e)),t.updateAndRedraw({withLegend:!0})},s.legend.hide=function(e){var t=this.internal;t.hideLegend(t.mapToTargetIds(e)),t.updateAndRedraw({withLegend:!0})},s.resize=function(e){var t=this.internal.config;t.size_width=e?e.width:null,t.size_height=e?e.height:null,this.flush()},s.flush=function(){this.internal.updateAndRedraw({withLegend:!0,withTransition:!1,withTransitionForTransform:!1})},s.destroy=function(){var t=this.internal;return h.clearInterval(t.intervalForObserveInserted),h.onresize=null,t.selectChart.classed("c3",!1).html(""),Object.keys(t).forEach(function(e){t[e]=null}),null},s.tooltip=function(){},s.tooltip.show=function(e){var t,i,n=this.internal;e.mouse&&(i=e.mouse),e.data?n.isMultipleX()?(i=[n.x(e.data.x),n.getYScale(e.data.id)(e.data.value)],t=null):t=L(e.data.index)?e.data.index:n.getIndexByX(e.data.x):void 0!==e.x?t=n.getIndexByX(e.x):void 0!==e.index&&(t=e.index),n.dispatchEvent("mouseover",t,i),n.dispatchEvent("mousemove",t,i)},s.tooltip.hide=function(){this.internal.dispatchEvent("mouseout",0)},u.isSafari=function(){var e=h.navigator.userAgent;return 0<=e.indexOf("Safari")&&e.indexOf("Chrome")<0},u.isChrome=function(){return 0<=h.navigator.userAgent.indexOf("Chrome")},Function.prototype.bind||(Function.prototype.bind=function(e){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var t=Array.prototype.slice.call(arguments,1),i=this,n=function(){},s=function(){return i.apply(this instanceof n?this:e,t.concat(Array.prototype.slice.call(arguments)))};return n.prototype=this.prototype,s.prototype=new n,s}),"function"==typeof define&&define.amd?define("c3",["d3"],e):"undefined"!=typeof exports&&"undefined"!=typeof module?module.exports=e:h.c3=e}(window),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.moment=t()}(this,function(){"use strict";function _(){return De.apply(null,arguments)}function o(e){return"[object Array]"===Object.prototype.toString.call(e)}function l(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function y(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function h(e,t){for(var i in t)y(t,i)&&(e[i]=t[i]);return y(t,"toString")&&(e.toString=t.toString),y(t,"valueOf")&&(e.valueOf=t.valueOf),e}function r(e,t,i,n){return J(e,t,i,n,!0).utc()}function M(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}),e._pf}function u(e){if(null==e._isValid){var t=M(e);e._isValid=!(isNaN(e._d.getTime())||!(t.overflow<0)||t.empty||t.invalidMonth||t.invalidWeekday||t.nullInput||t.invalidFormat||t.userInvalidated),e._strict&&(e._isValid=e._isValid&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)}return e._isValid}function d(e){var t=r(NaN);return null!=e?h(M(t),e):M(t).userInvalidated=!0,t}function c(e,t){var i,n,s;if(void 0!==t._isAMomentObject&&(e._isAMomentObject=t._isAMomentObject),void 0!==t._i&&(e._i=t._i),void 0!==t._f&&(e._f=t._f),void 0!==t._l&&(e._l=t._l),void 0!==t._strict&&(e._strict=t._strict),void 0!==t._tzm&&(e._tzm=t._tzm),void 0!==t._isUTC&&(e._isUTC=t._isUTC),void 0!==t._offset&&(e._offset=t._offset),void 0!==t._pf&&(e._pf=M(t)),void 0!==t._locale&&(e._locale=t._locale),0<Ye.length)for(i in Ye)void 0!==(s=t[n=Ye[i]])&&(e[n]=s);return e}function p(e){c(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),!1===Ee&&(Ee=!0,_.updateOffset(this),Ee=!1)}function f(e){return e instanceof p||null!=e&&null!=e._isAMomentObject}function m(e){return e<0?Math.ceil(e):Math.floor(e)}function g(e){var t=+e,i=0;return 0!==t&&isFinite(t)&&(i=m(t)),i}function v(e,t,i){var n,s=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),r=0;for(n=0;n<s;n++)(i&&e[n]!==t[n]||!i&&g(e[n])!==g(t[n]))&&r++;return r+a}function i(){}function b(e){return e?e.toLowerCase().replace("_","-"):e}function x(e){var t=null;if(!He[e]&&"undefined"!=typeof module&&module&&module.exports)try{t=Ce._abbr,require("./locale/"+e),n(t)}catch(e){}return He[e]}function n(e,t){var i;return e&&((i=void 0===t?w(e):s(e,t))&&(Ce=i)),Ce._abbr}function s(e,t){return null!==t?(t.abbr=e,He[e]=He[e]||new i,He[e].set(t),n(e),He[e]):(delete He[e],null)}function w(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ce;if(!o(e)){if(t=x(e))return t;e=[e]}return function(e){for(var t,i,n,s,a=0;a<e.length;){for(t=(s=b(e[a]).split("-")).length,i=(i=b(e[a+1]))?i.split("-"):null;0<t;){if(n=x(s.slice(0,t).join("-")))return n;if(i&&i.length>=t&&v(s,i,!0)>=t-1)break;t--}a++}return null}(e)}function e(e,t){var i=e.toLowerCase();Ae[i]=Ae[i+"s"]=Ae[t]=e}function j(e){return"string"==typeof e?Ae[e]||Ae[e.toLowerCase()]:void 0}function k(e){var t,i,n={};for(i in e)y(e,i)&&((t=j(i))&&(n[t]=e[i]));return n}function t(t,i){return function(e){return null!=e?(S(this,t,e),_.updateOffset(this,i),this):L(this,t)}}function L(e,t){return e._d["get"+(e._isUTC?"UTC":"")+t]()}function S(e,t,i){return e._d["set"+(e._isUTC?"UTC":"")+t](i)}function a(e,t){var i;if("object"==typeof e)for(i in e)this.set(i,e[i]);else if("function"==typeof this[e=j(e)])return this[e](t);return this}function T(e,t,i){var n=""+Math.abs(e),s=t-n.length;return(0<=e?i?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+n}function D(e,t,i,n){var s=n;"string"==typeof n&&(s=function(){return this[n]()}),e&&(Pe[e]=s),t&&(Pe[t[0]]=function(){return T(s.apply(this,arguments),t[1],t[2])}),i&&(Pe[i]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)})}function C(e,t){return e.isValid()?(t=Y(t,e.localeData()),$e[t]=$e[t]||function(i){var n,s,e,a=i.match(Ie);for(n=0,s=a.length;n<s;n++)Pe[a[n]]?a[n]=Pe[a[n]]:a[n]=(e=a[n]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(e){var t="";for(n=0;n<s;n++)t+=a[n]instanceof Function?a[n].call(e,i):a[n];return t}}(t),$e[t](e)):e.localeData().invalidDate()}function Y(e,t){function i(e){return t.longDateFormat(e)||e}var n=5;for(Fe.lastIndex=0;0<=n&&Fe.test(e);)e=e.replace(Fe,i),Fe.lastIndex=0,n-=1;return e}function E(e,t,i){var n;Ze[e]="function"==typeof(n=t)&&"[object Function]"===Object.prototype.toString.call(n)?t:function(e){return e&&i?i:t}}function H(e,i){var t,n=i;for("string"==typeof e&&(e=[e]),"number"==typeof i&&(n=function(e,t){t[i]=g(e)}),t=0;t<e.length;t++)Qe[e[t]]=n}function A(e,s){H(e,function(e,t,i,n){i._w=i._w||{},s(e,i._w,i,n)})}function I(e,t){return new Date(Date.UTC(e,t+1,0)).getUTCDate()}function F(e,t){var i;return"string"==typeof t&&"number"!=typeof(t=e.localeData().monthsParse(t))||(i=Math.min(e.date(),I(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,i)),e}function $(e){return null!=e?(F(this,e),_.updateOffset(this,!0),this):L(this,"Month")}function P(e){var t,i=e._a;return i&&-2===M(e).overflow&&(t=i[tt]<0||11<i[tt]?tt:i[it]<1||i[it]>I(i[et],i[tt])?it:i[nt]<0||24<i[nt]||24===i[nt]&&(0!==i[st]||0!==i[at]||0!==i[rt])?nt:i[st]<0||59<i[st]?st:i[at]<0||59<i[at]?at:i[rt]<0||999<i[rt]?rt:-1,M(e)._overflowDayOfYear&&(t<et||it<t)&&(t=it),M(e).overflow=t),e}function z(e){!1===_.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function N(e,t){var i=!0;return h(function(){return i&&(z(e+"\n"+(new Error).stack),i=!1),t.apply(this,arguments)},t)}function O(e){var t,i,n=e._i,s=ut.exec(n);if(s){for(M(e).iso=!0,t=0,i=dt.length;t<i;t++)if(dt[t][1].exec(n)){e._f=dt[t][0];break}for(t=0,i=ct.length;t<i;t++)if(ct[t][1].exec(n)){e._f+=(s[6]||" ")+ct[t][0];break}n.match(Je)&&(e._f+="Z"),G(e)}else e._isValid=!1}function R(e){var t=new Date(Date.UTC.apply(null,arguments));return e<1970&&t.setUTCFullYear(e),t}function W(e){return V(e)?366:365}function V(e){return e%4==0&&e%100!=0||e%400==0}function B(e,t,i){var n,s=i-t,a=i-e.day();return s<a&&(a-=7),a<s-7&&(a+=7),n=K(e).add(a,"d"),{week:Math.ceil(n.dayOfYear()/7),year:n.year()}}function U(e,t,i){return null!=e?e:null!=t?t:i}function q(e){var t,i,n,s,a,r,o,l,h,u,d,c,p,f,m,g,v,_,y,b,x,w=[];if(!e._d){for(b=e,x=void 0,x=new Date,n=b._useUTC?[x.getUTCFullYear(),x.getUTCMonth(),x.getUTCDate()]:[x.getFullYear(),x.getMonth(),x.getDate()],e._w&&null==e._a[it]&&null==e._a[tt]&&(y=_=v=g=m=f=p=c=d=u=h=l=o=r=void 0,null!=(r=(a=e)._w).GG||null!=r.W||null!=r.E?(u=1,d=4,o=U(r.GG,a._a[et],B(K(),1,4).year),l=U(r.W,1),h=U(r.E,1)):(u=a._locale._week.dow,d=a._locale._week.doy,o=U(r.gg,a._a[et],B(K(),u,d).year),l=U(r.w,1),null!=r.d?(h=r.d)<u&&++l:h=null!=r.e?r.e+u:u),f=l,m=h,(y=R(p=o,0,1+(_=6+(g=u)-d)).getUTCDay())<g&&(y+=7),c={year:0<(v=1+_+7*(f-1)-y+(m=null!=m?1*m:g))?p:p-1,dayOfYear:0<v?v:W(p-1)+v},a._a[et]=c.year,a._dayOfYear=c.dayOfYear),e._dayOfYear&&(s=U(e._a[et],n[et]),e._dayOfYear>W(s)&&(M(e)._overflowDayOfYear=!0),i=R(s,0,e._dayOfYear),e._a[tt]=i.getUTCMonth(),e._a[it]=i.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=w[t]=n[t];for(;t<7;t++)e._a[t]=w[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[nt]&&0===e._a[st]&&0===e._a[at]&&0===e._a[rt]&&(e._nextDay=!0,e._a[nt]=0),e._d=(e._useUTC?R:function(e,t,i,n,s,a,r){var o=new Date(e,t,i,n,s,a,r);return e<1970&&o.setFullYear(e),o}).apply(null,w),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[nt]=24)}}function G(e){if(e._f!==_.ISO_8601){e._a=[],M(e).empty=!0;var t,i,n,s,a,r,o,l,h,u,d,c,p,f,m=""+e._i,g=m.length,v=0;for(n=Y(e._f,e._locale).match(Ie)||[],t=0;t<n.length;t++)s=n[t],(i=(m.match((h=s,u=e,y(Ze,h)?Ze[h](u._strict,u._locale):new RegExp(h.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,i,n,s){return t||i||n||s}).replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))))||[])[0])&&(0<(a=m.substr(0,m.indexOf(i))).length&&M(e).unusedInput.push(a),m=m.slice(m.indexOf(i)+i.length),v+=i.length),Pe[s]?(i?M(e).empty=!1:M(e).unusedTokens.push(s),r=s,l=e,null!=(o=i)&&y(Qe,r)&&Qe[r](o,l._a,l,r)):e._strict&&!i&&M(e).unusedTokens.push(s);M(e).charsLeftOver=g-v,0<m.length&&M(e).unusedInput.push(m),!0===M(e).bigHour&&e._a[nt]<=12&&0<e._a[nt]&&(M(e).bigHour=void 0),e._a[nt]=(d=e._locale,c=e._a[nt],null==(p=e._meridiem)?c:null!=d.meridiemHour?d.meridiemHour(c,p):(null!=d.isPM&&((f=d.isPM(p))&&c<12&&(c+=12),f||12!==c||(c=0)),c)),q(e),P(e)}else O(e)}function X(e){var t,i,n,s,a=e._i,r=e._f;return e._locale=e._locale||w(e._l),null===a||void 0===r&&""===a?d({nullInput:!0}):("string"==typeof a&&(e._i=a=e._locale.preparse(a)),f(a)?new p(P(a)):(o(r)?function(e){var t,i,n,s,a;if(0===e._f.length)return M(e).invalidFormat=!0,e._d=new Date(NaN);for(s=0;s<e._f.length;s++)a=0,t=c({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[s],G(t),u(t)&&(a+=M(t).charsLeftOver,a+=10*M(t).unusedTokens.length,M(t).score=a,(null==n||a<n)&&(n=a,i=t));h(e,i||t)}(e):r?G(e):l(a)?e._d=a:void 0===(i=(t=e)._i)?t._d=new Date:l(i)?t._d=new Date(+i):"string"==typeof i?(n=t,null!==(s=pt.exec(n._i))?n._d=new Date(+s[1]):(O(n),!1===n._isValid&&(delete n._isValid,_.createFromInputFallback(n)))):o(i)?(t._a=function(e,t){var i,n=[];for(i=0;i<e.length;++i)n.push(t(e[i],i));return n}(i.slice(0),function(e){return parseInt(e,10)}),q(t)):"object"==typeof i?function(e){if(!e._d){var t=k(e._i);e._a=[t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],q(e)}}(t):"number"==typeof i?t._d=new Date(i):_.createFromInputFallback(t),e))}function J(e,t,i,n,s){var a,r={};return"boolean"==typeof i&&(n=i,i=void 0),r._isAMomentObject=!0,r._useUTC=r._isUTC=s,r._l=i,r._i=e,r._f=t,r._strict=n,(a=new p(P(X(r))))._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function K(e,t,i,n){return J(e,t,i,n,!1)}function Z(e,t){var i,n;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return K();for(i=t[0],n=1;n<t.length;++n)(!t[n].isValid()||t[n][e](i))&&(i=t[n]);return i}function Q(e){var t=k(e),i=t.year||0,n=t.quarter||0,s=t.month||0,a=t.week||0,r=t.day||0,o=t.hour||0,l=t.minute||0,h=t.second||0,u=t.millisecond||0;this._milliseconds=+u+1e3*h+6e4*l+36e5*o,this._days=+r+7*a,this._months=+s+3*n+12*i,this._data={},this._locale=w(),this._bubble()}function ee(e){return e instanceof Q}function te(e,i){D(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+T(~~(e/60),2)+i+T(~~e%60,2)})}function ie(e){var t=(e||"").match(Je)||[],i=((t[t.length-1]||[])+"").match(vt)||["-",0,0],n=60*i[1]+g(i[2]);return"+"===i[0]?n:-n}function ne(e,t){var i,n;return t._isUTC?(i=t.clone(),n=(f(e)||l(e)?+e:+K(e))-+i,i._d.setTime(+i._d+n),_.updateOffset(i,!1),i):K(e).local()}function se(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function ae(){return this._isUTC&&0===this._offset}function re(e,t){var i,n,s,a,r,o,l=e,h=null;return ee(e)?l={ms:e._milliseconds,d:e._days,M:e._months}:"number"==typeof e?(l={},t?l[t]=e:l.milliseconds=e):(h=_t.exec(e))?(i="-"===h[1]?-1:1,l={y:0,d:g(h[it])*i,h:g(h[nt])*i,m:g(h[st])*i,s:g(h[at])*i,ms:g(h[rt])*i}):(h=yt.exec(e))?(i="-"===h[1]?-1:1,l={y:oe(h[2],i),M:oe(h[3],i),d:oe(h[4],i),h:oe(h[5],i),m:oe(h[6],i),s:oe(h[7],i),w:oe(h[8],i)}):null==l?l={}:"object"==typeof l&&("from"in l||"to"in l)&&(a=K(l.from),r=ne(r=K(l.to),a),a.isBefore(r)?o=le(a,r):((o=le(r,a)).milliseconds=-o.milliseconds,o.months=-o.months),(l={}).ms=(s=o).milliseconds,l.M=s.months),n=new Q(l),ee(e)&&y(e,"_locale")&&(n._locale=e._locale),n}function oe(e,t){var i=e&&parseFloat(e.replace(",","."));return(isNaN(i)?0:i)*t}function le(e,t){var i={milliseconds:0,months:0};return i.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=+t-+e.clone().add(i.months,"M"),i}function he(a,r){return function(e,t){var i,n,s;return null===t||isNaN(+t)||(s="moment()."+(n=r)+"(period, number) is deprecated. Please use moment()."+r+"(number, period).",ht[n]||(z(s),ht[n]=!0),i=e,e=t,t=i),ue(this,re(e="string"==typeof e?+e:e,t),a),this}}function ue(e,t,i,n){var s=t._milliseconds,a=t._days,r=t._months;n=null==n||n,s&&e._d.setTime(+e._d+s*i),a&&S(e,"Date",L(e,"Date")+a*i),r&&F(e,L(e,"Month")+r*i),n&&_.updateOffset(e,a||r)}function de(){var e=this.clone().utc();return 0<e.year()&&e.year()<=9999?"function"==typeof Date.prototype.toISOString?this.toDate().toISOString():C(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):C(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function ce(e){var t;return void 0===e?this._locale._abbr:(null!=(t=w(e))&&(this._locale=t),this)}function pe(){return this._locale}function fe(e,t){D(0,[e,e.length],0,t)}function me(e,t,i){return B(K([e,11,31+t-i]),t,i).week}function ge(e,t){D(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function ve(e,t){return t._meridiemParse}function _e(e,t){t[rt]=g(1e3*("0."+e))}function ye(e){return e}function be(e,t,i,n){var s=w(),a=r().set(n,t);return s[i](a,e)}function xe(e,t,i,n,s){if("number"==typeof e&&(t=e,e=void 0),e=e||"",null!=t)return be(e,t,i,s);var a,r=[];for(a=0;a<n;a++)r[a]=be(e,a,i,s);return r}function we(e,t,i,n){var s=re(t,i);return e._milliseconds+=n*s._milliseconds,e._days+=n*s._days,e._months+=n*s._months,e._bubble()}function Me(e){return e<0?Math.floor(e):Math.ceil(e)}function je(e){return 4800*e/146097}function ke(e){return 146097*e/4800}function Le(e){return function(){return this.as(e)}}function Se(e){return function(){return this._data[e]}}function Te(){var e,t,i=Qt(this._milliseconds)/1e3,n=Qt(this._days),s=Qt(this._months);t=m((e=m(i/60))/60),i%=60,e%=60;var a=m(s/12),r=s%=12,o=n,l=t,h=e,u=i,d=this.asSeconds();return d?(d<0?"-":"")+"P"+(a?a+"Y":"")+(r?r+"M":"")+(o?o+"D":"")+(l||h||u?"T":"")+(l?l+"H":"")+(h?h+"M":"")+(u?u+"S":""):"P0D"}var De,Ce,Ye=_.momentProperties=[],Ee=!1,He={},Ae={},Ie=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Fe=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,$e={},Pe={},ze=/\d/,Ne=/\d\d/,Oe=/\d{3}/,Re=/\d{4}/,We=/[+-]?\d{6}/,Ve=/\d\d?/,Be=/\d{1,3}/,Ue=/\d{1,4}/,qe=/[+-]?\d{1,6}/,Ge=/\d+/,Xe=/[+-]?\d+/,Je=/Z|[+-]\d\d:?\d\d/gi,Ke=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Ze={},Qe={},et=0,tt=1,it=2,nt=3,st=4,at=5,rt=6;D("M",["MM",2],"Mo",function(){return this.month()+1}),D("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),D("MMMM",0,0,function(e){return this.localeData().months(this,e)}),e("month","M"),E("M",Ve),E("MM",Ve,Ne),E("MMM",Ke),E("MMMM",Ke),H(["M","MM"],function(e,t){t[tt]=g(e)-1}),H(["MMM","MMMM"],function(e,t,i,n){var s=i._locale.monthsParse(e,n,i._strict);null!=s?t[tt]=s:M(i).invalidMonth=e});var ot="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),lt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ht={};_.suppressDeprecationWarnings=!1;var ut=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,dt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],ct=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],pt=/^\/?Date\((\-?\d+)/i;_.createFromInputFallback=N("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),D(0,["YY",2],0,function(){return this.year()%100}),D(0,["YYYY",4],0,"year"),D(0,["YYYYY",5],0,"year"),D(0,["YYYYYY",6,!0],0,"year"),e("year","y"),E("Y",Xe),E("YY",Ve,Ne),E("YYYY",Ue,Re),E("YYYYY",qe,We),E("YYYYYY",qe,We),H(["YYYYY","YYYYYY"],et),H("YYYY",function(e,t){t[et]=2===e.length?_.parseTwoDigitYear(e):g(e)}),H("YY",function(e,t){t[et]=_.parseTwoDigitYear(e)});var ft=t("FullYear",!(_.parseTwoDigitYear=function(e){return g(e)+(68<g(e)?1900:2e3)}));D("w",["ww",2],"wo","week"),D("W",["WW",2],"Wo","isoWeek"),e("week","w"),e("isoWeek","W"),E("w",Ve),E("ww",Ve,Ne),E("W",Ve),E("WW",Ve,Ne),A(["w","ww","W","WW"],function(e,t,i,n){t[n.substr(0,1)]=g(e)});D("DDD",["DDDD",3],"DDDo","dayOfYear"),e("dayOfYear","DDD"),E("DDD",Be),E("DDDD",Oe),H(["DDD","DDDD"],function(e,t,i){i._dayOfYear=g(e)}),_.ISO_8601=function(){};var mt=N("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(){var e=K.apply(null,arguments);return e<this?this:e}),gt=N("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(){var e=K.apply(null,arguments);return this<e?this:e});te("Z",":"),te("ZZ",""),E("Z",Je),E("ZZ",Je),H(["Z","ZZ"],function(e,t,i){i._useUTC=!0,i._tzm=ie(e)});var vt=/([\+\-]|\d\d)/gi;_.updateOffset=function(){};var _t=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,yt=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/;re.fn=Q.prototype;var bt=he(1,"add"),xt=he(-1,"subtract");_.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";var wt=N("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});D(0,["gg",2],0,function(){return this.weekYear()%100}),D(0,["GG",2],0,function(){return this.isoWeekYear()%100}),fe("gggg","weekYear"),fe("ggggg","weekYear"),fe("GGGG","isoWeekYear"),fe("GGGGG","isoWeekYear"),e("weekYear","gg"),e("isoWeekYear","GG"),E("G",Xe),E("g",Xe),E("GG",Ve,Ne),E("gg",Ve,Ne),E("GGGG",Ue,Re),E("gggg",Ue,Re),E("GGGGG",qe,We),E("ggggg",qe,We),A(["gggg","ggggg","GGGG","GGGGG"],function(e,t,i,n){t[n.substr(0,2)]=g(e)}),A(["gg","GG"],function(e,t,i,n){t[n]=_.parseTwoDigitYear(e)}),D("Q",0,0,"quarter"),e("quarter","Q"),E("Q",ze),H("Q",function(e,t){t[tt]=3*(g(e)-1)}),D("D",["DD",2],"Do","date"),e("date","D"),E("D",Ve),E("DD",Ve,Ne),E("Do",function(e,t){return e?t._ordinalParse:t._ordinalParseLenient}),H(["D","DD"],it),H("Do",function(e,t){t[it]=g(e.match(Ve)[0])});var Mt=t("Date",!0);D("d",0,"do","day"),D("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),D("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),D("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),D("e",0,0,"weekday"),D("E",0,0,"isoWeekday"),e("day","d"),e("weekday","e"),e("isoWeekday","E"),E("d",Ve),E("e",Ve),E("E",Ve),E("dd",Ke),E("ddd",Ke),E("dddd",Ke),A(["dd","ddd","dddd"],function(e,t,i){var n=i._locale.weekdaysParse(e);null!=n?t.d=n:M(i).invalidWeekday=e}),A(["d","e","E"],function(e,t,i,n){t[n]=g(e)});var jt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),kt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Lt="Su_Mo_Tu_We_Th_Fr_Sa".split("_");D("H",["HH",2],0,"hour"),D("h",["hh",2],0,function(){return this.hours()%12||12}),ge("a",!0),ge("A",!1),e("hour","h"),E("a",ve),E("A",ve),E("H",Ve),E("h",Ve),E("HH",Ve,Ne),E("hh",Ve,Ne),H(["H","HH"],nt),H(["a","A"],function(e,t,i){i._isPm=i._locale.isPM(e),i._meridiem=e}),H(["h","hh"],function(e,t,i){t[nt]=g(e),M(i).bigHour=!0});var St=t("Hours",!0);D("m",["mm",2],0,"minute"),e("minute","m"),E("m",Ve),E("mm",Ve,Ne),H(["m","mm"],st);var Tt=t("Minutes",!1);D("s",["ss",2],0,"second"),e("second","s"),E("s",Ve),E("ss",Ve,Ne),H(["s","ss"],at);var Dt,Ct=t("Seconds",!1);for(D("S",0,0,function(){return~~(this.millisecond()/100)}),D(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),D(0,["SSS",3],0,"millisecond"),D(0,["SSSS",4],0,function(){return 10*this.millisecond()}),D(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),D(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),D(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),D(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),D(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),e("millisecond","ms"),E("S",Be,ze),E("SS",Be,Ne),E("SSS",Be,Oe),Dt="SSSS";Dt.length<=9;Dt+="S")E(Dt,Ge);for(Dt="S";Dt.length<=9;Dt+="S")H(Dt,_e);var Yt=t("Milliseconds",!1);D("z",0,0,"zoneAbbr"),D("zz",0,0,"zoneName");var Et=p.prototype;Et.add=bt,Et.calendar=function(e,t){var i=e||K(),n=ne(i,this).startOf("day"),s=this.diff(n,"days",!0),a=s<-6?"sameElse":s<-1?"lastWeek":s<0?"lastDay":s<1?"sameDay":s<2?"nextDay":s<7?"nextWeek":"sameElse";return this.format(t&&t[a]||this.localeData().calendar(a,this,K(i)))},Et.clone=function(){return new p(this)},Et.diff=function(e,t,i){var n,s,a,r,o,l,h,u,d=ne(e,this),c=6e4*(d.utcOffset()-this.utcOffset());return"year"===(t=j(t))||"month"===t||"quarter"===t?(a=this,h=12*((r=d).year()-a.year())+(r.month()-a.month()),u=a.clone().add(h,"months"),r-u<0?(o=a.clone().add(h-1,"months"),l=(r-u)/(u-o)):(o=a.clone().add(h+1,"months"),l=(r-u)/(o-u)),s=-(h+l),"quarter"===t?s/=3:"year"===t&&(s/=12)):(n=this-d,s="second"===t?n/1e3:"minute"===t?n/6e4:"hour"===t?n/36e5:"day"===t?(n-c)/864e5:"week"===t?(n-c)/6048e5:n),i?s:m(s)},Et.endOf=function(e){return void 0===(e=j(e))||"millisecond"===e?this:this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms")},Et.format=function(e){var t=C(this,e||_.defaultFormat);return this.localeData().postformat(t)},Et.from=function(e,t){return this.isValid()?re({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Et.fromNow=function(e){return this.from(K(),e)},Et.to=function(e,t){return this.isValid()?re({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Et.toNow=function(e){return this.to(K(),e)},Et.get=a,Et.invalidAt=function(){return M(this).overflow},Et.isAfter=function(e,t){return"millisecond"===(t=j(void 0!==t?t:"millisecond"))?+(e=f(e)?e:K(e))<+this:(f(e)?+e:+K(e))<+this.clone().startOf(t)},Et.isBefore=function(e,t){var i;return"millisecond"===(t=j(void 0!==t?t:"millisecond"))?+this<+(e=f(e)?e:K(e)):(i=f(e)?+e:+K(e),+this.clone().endOf(t)<i)},Et.isBetween=function(e,t,i){return this.isAfter(e,i)&&this.isBefore(t,i)},Et.isSame=function(e,t){var i;return"millisecond"===(t=j(t||"millisecond"))?+this==+(e=f(e)?e:K(e)):(i=+K(e),+this.clone().startOf(t)<=i&&i<=+this.clone().endOf(t))},Et.isValid=function(){return u(this)},Et.lang=wt,Et.locale=ce,Et.localeData=pe,Et.max=gt,Et.min=mt,Et.parsingFlags=function(){return h({},M(this))},Et.set=a,Et.startOf=function(e){switch(e=j(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this},Et.subtract=xt,Et.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]},Et.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}},Et.toDate=function(){return this._offset?new Date(+this):this._d},Et.toISOString=de,Et.toJSON=de,Et.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Et.unix=function(){return Math.floor(+this/1e3)},Et.valueOf=function(){return+this._d-6e4*(this._offset||0)},Et.year=ft,Et.isLeapYear=function(){return V(this.year())},Et.weekYear=function(e){var t=B(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return null==e?t:this.add(e-t,"y")},Et.isoWeekYear=function(e){var t=B(this,1,4).year;return null==e?t:this.add(e-t,"y")},Et.quarter=Et.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},Et.month=$,Et.daysInMonth=function(){return I(this.year(),this.month())},Et.week=Et.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},Et.isoWeek=Et.isoWeeks=function(e){var t=B(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},Et.weeksInYear=function(){var e=this.localeData()._week;return me(this.year(),e.dow,e.doy)},Et.isoWeeksInYear=function(){return me(this.year(),1,4)},Et.date=Mt,Et.day=Et.days=function(e){var t,i,n=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(t=e,i=this.localeData(),e="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=i.weekdaysParse(t))?t:null:parseInt(t,10),this.add(e-n,"d")):n},Et.weekday=function(e){var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},Et.isoWeekday=function(e){return null==e?this.day()||7:this.day(this.day()%7?e:e-7)},Et.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},Et.hour=Et.hours=St,Et.minute=Et.minutes=Tt,Et.second=Et.seconds=Ct,Et.millisecond=Et.milliseconds=Yt,Et.utcOffset=function(e,t){var i,n=this._offset||0;return null!=e?("string"==typeof e&&(e=ie(e)),Math.abs(e)<16&&(e*=60),!this._isUTC&&t&&(i=se(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),n!==e&&(!t||this._changeInProgress?ue(this,re(e-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,_.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?n:se(this)},Et.utc=function(e){return this.utcOffset(0,e)},Et.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(se(this),"m")),this},Et.parseZone=function(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(ie(this._i)),this},Et.hasAlignedHourOffset=function(e){return e=e?K(e).utcOffset():0,(this.utcOffset()-e)%60==0},Et.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Et.isDSTShifted=function(){if(void 0!==this._isDSTShifted)return this._isDSTShifted;var e={};if(c(e,this),(e=X(e))._a){var t=e._isUTC?r(e._a):K(e._a);this._isDSTShifted=this.isValid()&&0<v(e._a,t.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted},Et.isLocal=function(){return!this._isUTC},Et.isUtcOffset=function(){return this._isUTC},Et.isUtc=ae,Et.isUTC=ae,Et.zoneAbbr=function(){return this._isUTC?"UTC":""},Et.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Et.dates=N("dates accessor is deprecated. Use date instead.",Mt),Et.months=N("months accessor is deprecated. Use month instead",$),Et.years=N("years accessor is deprecated. Use year instead",ft),Et.zone=N("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()});var Ht=Et,At=i.prototype;At._calendar={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},At.calendar=function(e,t,i){var n=this._calendar[e];return"function"==typeof n?n.call(t,i):n},At._longDateFormat={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},At.longDateFormat=function(e){var t=this._longDateFormat[e],i=this._longDateFormat[e.toUpperCase()];return t||!i?t:(this._longDateFormat[e]=i.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},At._invalidDate="Invalid date",At.invalidDate=function(){return this._invalidDate},At._ordinal="%d",At.ordinal=function(e){return this._ordinal.replace("%d",e)},At._ordinalParse=/\d{1,2}/,At.preparse=ye,At.postformat=ye,At._relativeTime={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},At.relativeTime=function(e,t,i,n){var s=this._relativeTime[i];return"function"==typeof s?s(e,t,i,n):s.replace(/%d/i,e)},At.pastFuture=function(e,t){var i=this._relativeTime[0<e?"future":"past"];return"function"==typeof i?i(t):i.replace(/%s/i,t)},At.set=function(e){var t,i;for(i in e)"function"==typeof(t=e[i])?this[i]=t:this["_"+i]=t;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)},At.months=function(e){return this._months[e.month()]},At._months=ot,At.monthsShort=function(e){return this._monthsShort[e.month()]},At._monthsShort=lt,At.monthsParse=function(e,t,i){var n,s,a;for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(s=r([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(a="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[n]=new RegExp(a.replace(".",""),"i")),i&&"MMMM"===t&&this._longMonthsParse[n].test(e))return n;if(i&&"MMM"===t&&this._shortMonthsParse[n].test(e))return n;if(!i&&this._monthsParse[n].test(e))return n}},At.week=function(e){return B(e,this._week.dow,this._week.doy).week},At._week={dow:0,doy:6},At.firstDayOfYear=function(){return this._week.doy},At.firstDayOfWeek=function(){return this._week.dow},At.weekdays=function(e){return this._weekdays[e.day()]},At._weekdays=jt,At.weekdaysMin=function(e){return this._weekdaysMin[e.day()]},At._weekdaysMin=Lt,At.weekdaysShort=function(e){return this._weekdaysShort[e.day()]},At._weekdaysShort=kt,At.weekdaysParse=function(e){var t,i,n;for(this._weekdaysParse=this._weekdaysParse||[],t=0;t<7;t++)if(this._weekdaysParse[t]||(i=K([2e3,1]).day(t),n="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[t]=new RegExp(n.replace(".",""),"i")),this._weekdaysParse[t].test(e))return t},At.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},At._meridiemParse=/[ap]\.?m?\.?/i,At.meridiem=function(e,t,i){return 11<e?i?"pm":"PM":i?"am":"AM"},n("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===g(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),_.lang=N("moment.lang is deprecated. Use moment.locale instead.",n),_.langData=N("moment.langData is deprecated. Use moment.localeData instead.",w);var It=Math.abs,Ft=Le("ms"),$t=Le("s"),Pt=Le("m"),zt=Le("h"),Nt=Le("d"),Ot=Le("w"),Rt=Le("M"),Wt=Le("y"),Vt=Se("milliseconds"),Bt=Se("seconds"),Ut=Se("minutes"),qt=Se("hours"),Gt=Se("days"),Xt=Se("months"),Jt=Se("years"),Kt=Math.round,Zt={s:45,m:45,h:22,d:26,M:11},Qt=Math.abs,ei=Q.prototype;return ei.abs=function(){var e=this._data;return this._milliseconds=It(this._milliseconds),this._days=It(this._days),this._months=It(this._months),e.milliseconds=It(e.milliseconds),e.seconds=It(e.seconds),e.minutes=It(e.minutes),e.hours=It(e.hours),e.months=It(e.months),e.years=It(e.years),this},ei.add=function(e,t){return we(this,e,t,1)},ei.subtract=function(e,t){return we(this,e,t,-1)},ei.as=function(e){var t,i,n=this._milliseconds;if("month"===(e=j(e))||"year"===e)return t=this._days+n/864e5,i=this._months+je(t),"month"===e?i:i/12;switch(t=this._days+Math.round(ke(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;case"millisecond":return Math.floor(864e5*t)+n;default:throw new Error("Unknown unit "+e)}},ei.asMilliseconds=Ft,ei.asSeconds=$t,ei.asMinutes=Pt,ei.asHours=zt,ei.asDays=Nt,ei.asWeeks=Ot,ei.asMonths=Rt,ei.asYears=Wt,ei.valueOf=function(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*g(this._months/12)},ei._bubble=function(){var e,t,i,n,s,a=this._milliseconds,r=this._days,o=this._months,l=this._data;return 0<=a&&0<=r&&0<=o||a<=0&&r<=0&&o<=0||(a+=864e5*Me(ke(o)+r),o=r=0),l.milliseconds=a%1e3,e=m(a/1e3),l.seconds=e%60,t=m(e/60),l.minutes=t%60,i=m(t/60),l.hours=i%24,o+=s=m(je(r+=m(i/24))),r-=Me(ke(s)),n=m(o/12),o%=12,l.days=r,l.months=o,l.years=n,this},ei.get=function(e){return this[(e=j(e))+"s"]()},ei.milliseconds=Vt,ei.seconds=Bt,ei.minutes=Ut,ei.hours=qt,ei.days=Gt,ei.weeks=function(){return m(this.days()/7)},ei.months=Xt,ei.years=Jt,ei.humanize=function(e){var t,i,n,s,a,r,o,l,h,u,d,c=this.localeData(),p=(i=!e,n=c,s=re(t=this).abs(),a=Kt(s.as("s")),r=Kt(s.as("m")),o=Kt(s.as("h")),l=Kt(s.as("d")),h=Kt(s.as("M")),u=Kt(s.as("y")),(d=a<Zt.s&&["s",a]||1===r&&["m"]||r<Zt.m&&["mm",r]||1===o&&["h"]||o<Zt.h&&["hh",o]||1===l&&["d"]||l<Zt.d&&["dd",l]||1===h&&["M"]||h<Zt.M&&["MM",h]||1===u&&["y"]||["yy",u])[2]=i,d[3]=0<+t,d[4]=n,function(e,t,i,n,s){return s.relativeTime(t||1,!!i,e,n)}.apply(null,d));return e&&(p=c.pastFuture(+this,p)),c.postformat(p)},ei.toISOString=Te,ei.toString=Te,ei.toJSON=Te,ei.locale=ce,ei.localeData=pe,ei.toIsoString=N("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Te),ei.lang=wt,D("X",0,0,"unix"),D("x",0,0,"valueOf"),E("x",Xe),E("X",/[+-]?\d+(\.\d{1,3})?/),H("X",function(e,t,i){i._d=new Date(1e3*parseFloat(e,10))}),H("x",function(e,t,i){i._d=new Date(g(e))}),_.version="2.10.6",De=K,_.fn=Ht,_.min=function(){return Z("isBefore",[].slice.call(arguments,0))},_.max=function(){return Z("isAfter",[].slice.call(arguments,0))},_.utc=r,_.unix=function(e){return K(1e3*e)},_.months=function(e,t){return xe(e,t,"months",12,"month")},_.isDate=l,_.locale=n,_.invalid=d,_.duration=re,_.isMoment=f,_.weekdays=function(e,t){return xe(e,t,"weekdays",7,"day")},_.parseZone=function(){return K.apply(null,arguments).parseZone()},_.localeData=w,_.isDuration=ee,_.monthsShort=function(e,t){return xe(e,t,"monthsShort",12,"month")},_.weekdaysMin=function(e,t){return xe(e,t,"weekdaysMin",7,"day")},_.defineLocale=s,_.weekdaysShort=function(e,t){return xe(e,t,"weekdaysShort",7,"day")},_.normalizeUnits=j,_.relativeTimeThreshold=function(e,t){return void 0!==Zt[e]&&(void 0===t?Zt[e]:(Zt[e]=t,!0))},_}),function(e){"use strict";if("function"==typeof define&&define.amd)define(["jquery","moment"],e);else if("object"==typeof exports)e(require("jquery"),require("moment"));else{if("undefined"==typeof jQuery)throw"bootstrap-datetimepicker requires jQuery to be loaded first";if("undefined"==typeof moment)throw"bootstrap-datetimepicker requires Moment.js to be loaded first";e(jQuery,moment)}}(function(K,Z){"use strict";if(!Z)throw new Error("bootstrap-datetimepicker requires Moment.js to be loaded first");var i=function(a,u){var d,c,i,l,n,r,s,o,h,p={},f=!0,m=!1,g=!1,v=0,t=[{clsName:"days",navFnc:"M",navStep:1},{clsName:"months",navFnc:"y",navStep:1},{clsName:"years",navFnc:"y",navStep:10},{clsName:"decades",navFnc:"y",navStep:100}],_=["days","months","years","decades"],y=["top","bottom","auto"],b=["left","right","auto"],x=["default","top","bottom"],w={up:38,38:"up",down:40,40:"down",left:37,37:"left",right:39,39:"right",tab:9,9:"tab",escape:27,27:"escape",enter:13,13:"enter",pageUp:33,33:"pageUp",pageDown:34,34:"pageDown",shift:16,16:"shift",control:17,17:"control",space:32,32:"space",t:84,84:"t",delete:46,46:"delete"},M={},j=function(e){var t,i,n,s,a=!1;return void 0!==Z.tz&&void 0!==u.timeZone&&null!==u.timeZone&&""!==u.timeZone&&(a=!0),null==e?t=a?Z().tz(u.timeZone).startOf("d"):Z().startOf("d"):a?(i=Z().tz(u.timeZone).utcOffset(),Z(e,r,u.useStrict).utcOffset()!==i?(n=Z().tz(u.timeZone).format("Z"),s=Z(e,r,u.useStrict).format("YYYY-MM-DD[T]HH:mm:ss")+n,t=Z(s,r,u.useStrict).tz(u.timeZone)):t=Z(e,r,u.useStrict).tz(u.timeZone)):t=Z(e,r,u.useStrict),t},k=function(e){if("string"!=typeof e||1<e.length)throw new TypeError("isEnabled expects a single character string parameter");switch(e){case"y":return-1!==n.indexOf("Y");case"M":return-1!==n.indexOf("M");case"d":return-1!==n.toLowerCase().indexOf("d");case"h":case"H":return-1!==n.toLowerCase().indexOf("h");case"m":return-1!==n.indexOf("m");case"s":return-1!==n.indexOf("s");default:return!1}},L=function(){return k("h")||k("m")||k("s")},S=function(){return k("y")||k("M")||k("d")},T=function(){var e,t,i,n=K("<div>").addClass("timepicker-hours").append(K("<table>").addClass("table-condensed")),s=K("<div>").addClass("timepicker-minutes").append(K("<table>").addClass("table-condensed")),a=K("<div>").addClass("timepicker-seconds").append(K("<table>").addClass("table-condensed")),r=[(e=K("<tr>"),t=K("<tr>"),i=K("<tr>"),k("h")&&(e.append(K("<td>").append(K("<a>").attr({href:"#",tabindex:"-1",title:u.tooltips.incrementHour}).addClass("btn").attr("data-action","incrementHours").append(K("<span>").addClass(u.icons.up)))),t.append(K("<td>").append(K("<span>").addClass("timepicker-hour").attr({"data-time-component":"hours",title:u.tooltips.pickHour}).attr("data-action","showHours"))),i.append(K("<td>").append(K("<a>").attr({href:"#",tabindex:"-1",title:u.tooltips.decrementHour}).addClass("btn").attr("data-action","decrementHours").append(K("<span>").addClass(u.icons.down))))),k("m")&&(k("h")&&(e.append(K("<td>").addClass("separator")),t.append(K("<td>").addClass("separator").html(":")),i.append(K("<td>").addClass("separator"))),e.append(K("<td>").append(K("<a>").attr({href:"#",tabindex:"-1",title:u.tooltips.incrementMinute}).addClass("btn").attr("data-action","incrementMinutes").append(K("<span>").addClass(u.icons.up)))),t.append(K("<td>").append(K("<span>").addClass("timepicker-minute").attr({"data-time-component":"minutes",title:u.tooltips.pickMinute}).attr("data-action","showMinutes"))),i.append(K("<td>").append(K("<a>").attr({href:"#",tabindex:"-1",title:u.tooltips.decrementMinute}).addClass("btn").attr("data-action","decrementMinutes").append(K("<span>").addClass(u.icons.down))))),k("s")&&(k("m")&&(e.append(K("<td>").addClass("separator")),t.append(K("<td>").addClass("separator").html(":")),i.append(K("<td>").addClass("separator"))),e.append(K("<td>").append(K("<a>").attr({href:"#",tabindex:"-1",title:u.tooltips.incrementSecond}).addClass("btn").attr("data-action","incrementSeconds").append(K("<span>").addClass(u.icons.up)))),t.append(K("<td>").append(K("<span>").addClass("timepicker-second").attr({"data-time-component":"seconds",title:u.tooltips.pickSecond}).attr("data-action","showSeconds"))),i.append(K("<td>").append(K("<a>").attr({href:"#",tabindex:"-1",title:u.tooltips.decrementSecond}).addClass("btn").attr("data-action","decrementSeconds").append(K("<span>").addClass(u.icons.down))))),l||(e.append(K("<td>").addClass("separator")),t.append(K("<td>").append(K("<button>").addClass("btn btn-primary").attr({"data-action":"togglePeriod",tabindex:"-1",title:u.tooltips.togglePeriod}))),i.append(K("<td>").addClass("separator"))),K("<div>").addClass("timepicker-picker").append(K("<table>").addClass("table-condensed").append([e,t,i])))];return k("h")&&r.push(n),k("m")&&r.push(s),k("s")&&r.push(a),r},D=function(){var e,t,i,n=K("<div>").addClass("bootstrap-datetimepicker-widget dropdown-menu"),s=K("<div>").addClass("datepicker").append((t=K("<thead>").append(K("<tr>").append(K("<th>").addClass("prev").attr("data-action","previous").append(K("<span>").addClass(u.icons.previous))).append(K("<th>").addClass("picker-switch").attr("data-action","pickerSwitch").attr("colspan",u.calendarWeeks?"6":"5")).append(K("<th>").addClass("next").attr("data-action","next").append(K("<span>").addClass(u.icons.next)))),i=K("<tbody>").append(K("<tr>").append(K("<td>").attr("colspan",u.calendarWeeks?"8":"7"))),[K("<div>").addClass("datepicker-days").append(K("<table>").addClass("table-condensed").append(t).append(K("<tbody>"))),K("<div>").addClass("datepicker-months").append(K("<table>").addClass("table-condensed").append(t.clone()).append(i.clone())),K("<div>").addClass("datepicker-years").append(K("<table>").addClass("table-condensed").append(t.clone()).append(i.clone())),K("<div>").addClass("datepicker-decades").append(K("<table>").addClass("table-condensed").append(t.clone()).append(i.clone()))])),a=K("<div>").addClass("timepicker").append(T()),r=K("<ul>").addClass("list-unstyled"),o=K("<li>").addClass("picker-switch"+(u.collapse?" accordion-toggle":"")).append((e=[],u.showTodayButton&&e.push(K("<td>").append(K("<a>").attr({"data-action":"today",title:u.tooltips.today}).append(K("<span>").addClass(u.icons.today)))),!u.sideBySide&&S()&&L()&&e.push(K("<td>").append(K("<a>").attr({"data-action":"togglePicker",title:u.tooltips.selectTime}).append(K("<span>").addClass(u.icons.time)))),u.showClear&&e.push(K("<td>").append(K("<a>").attr({"data-action":"clear",title:u.tooltips.clear}).append(K("<span>").addClass(u.icons.clear)))),u.showClose&&e.push(K("<td>").append(K("<a>").attr({"data-action":"close",title:u.tooltips.close}).append(K("<span>").addClass(u.icons.close)))),K("<table>").addClass("table-condensed").append(K("<tbody>").append(K("<tr>").append(e)))));return u.inline&&n.removeClass("dropdown-menu"),l&&n.addClass("usetwentyfour"),k("s")&&!l&&n.addClass("wider"),u.sideBySide&&S()&&L()?(n.addClass("timepicker-sbs"),"top"===u.toolbarPlacement&&n.append(o),n.append(K("<div>").addClass("row").append(s.addClass("col-md-6")).append(a.addClass("col-md-6"))),"bottom"===u.toolbarPlacement&&n.append(o),n):("top"===u.toolbarPlacement&&r.append(o),S()&&r.append(K("<li>").addClass(u.collapse&&L()?"collapse in":"").append(s)),"default"===u.toolbarPlacement&&r.append(o),L()&&r.append(K("<li>").addClass(u.collapse&&S()?"collapse":"").append(a)),"bottom"===u.toolbarPlacement&&r.append(o),n.append(r))},C=function(){var e,t=(m||a).position(),i=(m||a).offset(),n=u.widgetPositioning.vertical,s=u.widgetPositioning.horizontal;if(u.widgetParent)e=u.widgetParent.append(g);else if(a.is("input"))e=a.after(g).parent();else{if(u.inline)return void(e=a.append(g));(e=a).children().first().after(g)}if("auto"===n&&(n=i.top+1.5*g.height()>=K(window).height()+K(window).scrollTop()&&g.height()+a.outerHeight()<i.top?"top":"bottom"),"auto"===s&&(s=e.width()<i.left+g.outerWidth()/2&&i.left+g.outerWidth()>K(window).width()?"right":"left"),"top"===n?g.addClass("top").removeClass("bottom"):g.addClass("bottom").removeClass("top"),"right"===s?g.addClass("pull-right"):g.removeClass("pull-right"),"relative"!==e.css("position")&&(e=e.parents().filter(function(){return"relative"===K(this).css("position")}).first()),0===e.length)throw new Error("datetimepicker component should be placed within a relative positioned container");g.css({top:"top"===n?"auto":t.top+a.outerHeight(),bottom:"top"===n?t.top+a.outerHeight():"auto",left:"left"===s?e===a?0:t.left:"auto",right:"left"===s?"auto":e.outerWidth()-a.outerWidth()-(e===a?0:t.left)})},Y=function(e){"dp.change"===e.type&&(e.date&&e.date.isSame(e.oldDate)||!e.date&&!e.oldDate)||a.trigger(e)},E=function(e){"y"===e&&(e="YYYY"),Y({type:"dp.update",change:e,viewDate:c.clone()})},H=function(e){g&&(e&&(s=Math.max(v,Math.min(3,s+e))),g.find(".datepicker > div").hide().filter(".datepicker-"+t[s].clsName).show())},A=function(e,t){if(!e.isValid())return!1;if(u.disabledDates&&"d"===t&&(i=e,!0===u.disabledDates[i.format("YYYY-MM-DD")]))return!1;var i,n,s,a;if(u.enabledDates&&"d"===t&&(n=e,!0!==u.enabledDates[n.format("YYYY-MM-DD")]))return!1;if(u.minDate&&e.isBefore(u.minDate,t))return!1;if(u.maxDate&&e.isAfter(u.maxDate,t))return!1;if(u.daysOfWeekDisabled&&"d"===t&&-1!==u.daysOfWeekDisabled.indexOf(e.day()))return!1;if(u.disabledHours&&("h"===t||"m"===t||"s"===t)&&(s=e,!0===u.disabledHours[s.format("H")]))return!1;if(u.enabledHours&&("h"===t||"m"===t||"s"===t)&&(a=e,!0!==u.enabledHours[a.format("H")]))return!1;if(u.disabledTimeIntervals&&("h"===t||"m"===t||"s"===t)){var r=!1;if(K.each(u.disabledTimeIntervals,function(){return e.isBetween(this[0],this[1])?!(r=!0):void 0}),r)return!1}return!0},I=function(){var e,t,i,n,s,a,r,o=g.find(".datepicker-days"),l=o.find("th"),h=[];if(S()){for(l.eq(0).find("span").attr("title",u.tooltips.prevMonth),l.eq(1).attr("title",u.tooltips.selectMonth),l.eq(2).find("span").attr("title",u.tooltips.nextMonth),o.find(".disabled").removeClass("disabled"),l.eq(1).text(c.format(u.dayViewHeaderFormat)),A(c.clone().subtract(1,"M"),"M")||l.eq(0).addClass("disabled"),A(c.clone().add(1,"M"),"M")||l.eq(2).addClass("disabled"),e=c.clone().startOf("M").startOf("w").startOf("d"),n=0;n<42;n++)0===e.weekday()&&(t=K("<tr>"),u.calendarWeeks&&t.append('<td class="cw">'+e.week()+"</td>"),h.push(t)),i="",e.isBefore(c,"M")&&(i+=" old"),e.isAfter(c,"M")&&(i+=" new"),e.isSame(d,"d")&&!f&&(i+=" active"),A(e,"d")||(i+=" disabled"),e.isSame(j(),"d")&&(i+=" today"),(0===e.day()||6===e.day())&&(i+=" weekend"),t.append('<td data-action="selectDay" data-day="'+e.format("L")+'" class="day'+i+'">'+e.date()+"</td>"),e.add(1,"d");o.find("tbody").empty().append(h),s=g.find(".datepicker-months"),a=s.find("th"),r=s.find("tbody").find("span"),a.eq(0).find("span").attr("title",u.tooltips.prevYear),a.eq(1).attr("title",u.tooltips.selectYear),a.eq(2).find("span").attr("title",u.tooltips.nextYear),s.find(".disabled").removeClass("disabled"),A(c.clone().subtract(1,"y"),"y")||a.eq(0).addClass("disabled"),a.eq(1).text(c.year()),A(c.clone().add(1,"y"),"y")||a.eq(2).addClass("disabled"),r.removeClass("active"),d.isSame(c,"y")&&!f&&r.eq(d.month()).addClass("active"),r.each(function(e){A(c.clone().month(e),"M")||K(this).addClass("disabled")}),function(){var e=g.find(".datepicker-years"),t=e.find("th"),i=c.clone().subtract(5,"y"),n=c.clone().add(6,"y"),s="";for(t.eq(0).find("span").attr("title",u.tooltips.prevDecade),t.eq(1).attr("title",u.tooltips.selectDecade),t.eq(2).find("span").attr("title",u.tooltips.nextDecade),e.find(".disabled").removeClass("disabled"),u.minDate&&u.minDate.isAfter(i,"y")&&t.eq(0).addClass("disabled"),t.eq(1).text(i.year()+"-"+n.year()),u.maxDate&&u.maxDate.isBefore(n,"y")&&t.eq(2).addClass("disabled");!i.isAfter(n,"y");)s+='<span data-action="selectYear" class="year'+(i.isSame(d,"y")&&!f?" active":"")+(A(i,"y")?"":" disabled")+'">'+i.year()+"</span>",i.add(1,"y");e.find("td").html(s)}(),function(){var e=g.find(".datepicker-decades"),t=e.find("th"),i=Z({y:c.year()-c.year()%100-1}),n=i.clone().add(100,"y"),s=i.clone(),a="";for(t.eq(0).find("span").attr("title",u.tooltips.prevCentury),t.eq(2).find("span").attr("title",u.tooltips.nextCentury),e.find(".disabled").removeClass("disabled"),(i.isSame(Z({y:1900}))||u.minDate&&u.minDate.isAfter(i,"y"))&&t.eq(0).addClass("disabled"),t.eq(1).text(i.year()+"-"+n.year()),(i.isSame(Z({y:2e3}))||u.maxDate&&u.maxDate.isBefore(n,"y"))&&t.eq(2).addClass("disabled");!i.isAfter(n,"y");)a+='<span data-action="selectDecade" class="decade'+(i.isSame(d,"y")?" active":"")+(A(i,"y")?"":" disabled")+'" data-selection="'+(i.year()+6)+'">'+(i.year()+1)+" - "+(i.year()+12)+"</span>",i.add(12,"y");a+="<span></span><span></span><span></span>",e.find("td").html(a),t.eq(1).text(s.year()+1+"-"+i.year())}()}},e=function(){var e,t,i=g.find(".timepicker span[data-time-component]");l||(e=g.find(".timepicker [data-action=togglePeriod]"),t=d.clone().add(12<=d.hours()?-12:12,"h"),e.text(d.format("A")),A(t,"h")?e.removeClass("disabled"):e.addClass("disabled")),i.filter("[data-time-component=hours]").text(d.format(l?"HH":"hh")),i.filter("[data-time-component=minutes]").text(d.format("mm")),i.filter("[data-time-component=seconds]").text(d.format("ss")),function(){var e=g.find(".timepicker-hours table"),t=c.clone().startOf("d"),i=[],n=K("<tr>");for(11<c.hour()&&!l&&t.hour(12);t.isSame(c,"d")&&(l||c.hour()<12&&t.hour()<12||11<c.hour());)t.hour()%4==0&&(n=K("<tr>"),i.push(n)),n.append('<td data-action="selectHour" class="hour'+(A(t,"h")?"":" disabled")+'">'+t.format(l?"HH":"hh")+"</td>"),t.add(1,"h");e.empty().append(i)}(),function(){for(var e=g.find(".timepicker-minutes table"),t=c.clone().startOf("h"),i=[],n=K("<tr>"),s=1===u.stepping?5:u.stepping;c.isSame(t,"h");)t.minute()%(4*s)==0&&(n=K("<tr>"),i.push(n)),n.append('<td data-action="selectMinute" class="minute'+(A(t,"m")?"":" disabled")+'">'+t.format("mm")+"</td>"),t.add(s,"m");e.empty().append(i)}(),function(){for(var e=g.find(".timepicker-seconds table"),t=c.clone().startOf("m"),i=[],n=K("<tr>");c.isSame(t,"m");)t.second()%20==0&&(n=K("<tr>"),i.push(n)),n.append('<td data-action="selectSecond" class="second'+(A(t,"s")?"":" disabled")+'">'+t.format("ss")+"</td>"),t.add(5,"s");e.empty().append(i)}()},F=function(){g&&(I(),e())},$=function(e){var t=f?null:d;return e?(e=e.clone().locale(u.locale),1!==u.stepping&&e.minutes(Math.round(e.minutes()/u.stepping)*u.stepping%60).seconds(0),void(A(e)?(c=(d=e).clone(),i.val(d.format(n)),a.data("date",d.format(n)),f=!1,F(),Y({type:"dp.change",date:d.clone(),oldDate:t})):(u.keepInvalid||i.val(f?"":d.format(n)),Y({type:"dp.error",date:e})))):(f=!0,i.val(""),a.data("date",""),Y({type:"dp.change",date:!1,oldDate:t}),void F())},P=function(){var t=!1;return g&&(g.find(".collapse").each(function(){var e=K(this).data("collapse");return!e||!e.transitioning||!(t=!0)}),t||(m&&m.hasClass("btn")&&m.toggleClass("active"),g.hide(),K(window).off("resize",C),g.off("click","[data-action]"),g.off("mousedown",!1),g.remove(),g=!1,Y({type:"dp.hide",date:d.clone()}),i.blur())),p},z=function(){$(null)},N={next:function(){var e=t[s].navFnc;c.add(t[s].navStep,e),I(),E(e)},previous:function(){var e=t[s].navFnc;c.subtract(t[s].navStep,e),I(),E(e)},pickerSwitch:function(){H(1)},selectMonth:function(e){var t=K(e.target).closest("tbody").find("span").index(K(e.target));c.month(t),s===v?($(d.clone().year(c.year()).month(c.month())),u.inline||P()):(H(-1),I()),E("M")},selectYear:function(e){var t=parseInt(K(e.target).text(),10)||0;c.year(t),s===v?($(d.clone().year(c.year())),u.inline||P()):(H(-1),I()),E("YYYY")},selectDecade:function(e){var t=parseInt(K(e.target).data("selection"),10)||0;c.year(t),s===v?($(d.clone().year(c.year())),u.inline||P()):(H(-1),I()),E("YYYY")},selectDay:function(e){var t=c.clone();K(e.target).is(".old")&&t.subtract(1,"M"),K(e.target).is(".new")&&t.add(1,"M"),$(t.date(parseInt(K(e.target).text(),10))),L()||u.keepOpen||u.inline||P()},incrementHours:function(){var e=d.clone().add(1,"h");A(e,"h")&&$(e)},incrementMinutes:function(){var e=d.clone().add(u.stepping,"m");A(e,"m")&&$(e)},incrementSeconds:function(){var e=d.clone().add(1,"s");A(e,"s")&&$(e)},decrementHours:function(){var e=d.clone().subtract(1,"h");A(e,"h")&&$(e)},decrementMinutes:function(){var e=d.clone().subtract(u.stepping,"m");A(e,"m")&&$(e)},decrementSeconds:function(){var e=d.clone().subtract(1,"s");A(e,"s")&&$(e)},togglePeriod:function(){$(d.clone().add(12<=d.hours()?-12:12,"h"))},togglePicker:function(e){var t,i=K(e.target),n=i.closest("ul"),s=n.find(".in"),a=n.find(".collapse:not(.in)");if(s&&s.length){if((t=s.data("collapse"))&&t.transitioning)return;s.collapse?(s.collapse("hide"),a.collapse("show")):(s.removeClass("in"),a.addClass("in")),i.is("span")?i.toggleClass(u.icons.time+" "+u.icons.date):i.find("span").toggleClass(u.icons.time+" "+u.icons.date)}},showPicker:function(){g.find(".timepicker > div:not(.timepicker-picker)").hide(),g.find(".timepicker .timepicker-picker").show()},showHours:function(){g.find(".timepicker .timepicker-picker").hide(),g.find(".timepicker .timepicker-hours").show()},showMinutes:function(){g.find(".timepicker .timepicker-picker").hide(),g.find(".timepicker .timepicker-minutes").show()},showSeconds:function(){g.find(".timepicker .timepicker-picker").hide(),g.find(".timepicker .timepicker-seconds").show()},selectHour:function(e){var t=parseInt(K(e.target).text(),10);l||(12<=d.hours()?12!==t&&(t+=12):12===t&&(t=0)),$(d.clone().hours(t)),N.showPicker.call(p)},selectMinute:function(e){$(d.clone().minutes(parseInt(K(e.target).text(),10))),N.showPicker.call(p)},selectSecond:function(e){$(d.clone().seconds(parseInt(K(e.target).text(),10))),N.showPicker.call(p)},clear:z,today:function(){var e=j();A(e,"d")&&$(e)},close:P},O=function(e){return K(e.currentTarget).is(".disabled")||N[K(e.currentTarget).data("action")].apply(p,arguments),!1},R=function(){var e;return i.prop("disabled")||!u.ignoreReadonly&&i.prop("readonly")||g||(void 0!==i.val()&&0!==i.val().trim().length?$(V(i.val().trim())):u.useCurrent&&f&&(i.is("input")&&0===i.val().trim().length||u.inline)&&(e=j(),"string"==typeof u.useCurrent&&(e={year:function(e){return e.month(0).date(1).hours(0).seconds(0).minutes(0)},month:function(e){return e.date(1).hours(0).seconds(0).minutes(0)},day:function(e){return e.hours(0).seconds(0).minutes(0)},hour:function(e){return e.seconds(0).minutes(0)},minute:function(e){return e.seconds(0)}}[u.useCurrent](e)),$(e)),g=D(),function(){var e=K("<tr>"),t=c.clone().startOf("w").startOf("d");for(!0===u.calendarWeeks&&e.append(K("<th>").addClass("cw").text("#"));t.isBefore(c.clone().endOf("w"));)e.append(K("<th>").addClass("dow").text(t.format("dd"))),t.add(1,"d");g.find(".datepicker-days thead").append(e)}(),function(){for(var e=[],t=c.clone().startOf("y").startOf("d");t.isSame(c,"y");)e.push(K("<span>").attr("data-action","selectMonth").addClass("month").text(t.format("MMM"))),t.add(1,"M");g.find(".datepicker-months td").empty().append(e)}(),g.find(".timepicker-hours").hide(),g.find(".timepicker-minutes").hide(),g.find(".timepicker-seconds").hide(),F(),H(),K(window).on("resize",C),g.on("click","[data-action]",O),g.on("mousedown",!1),m&&m.hasClass("btn")&&m.toggleClass("active"),g.show(),C(),u.focusOnShow&&!i.is(":focus")&&i.focus(),Y({type:"dp.show"})),p},W=function(){return g?P():R()},V=function(e){return(e=void 0===u.parseInputDate?Z.isMoment(e)||e instanceof Date?Z(e):j(e):u.parseInputDate(e)).locale(u.locale),e},B=function(e){var t,i,n,s,a=null,r=[],o={},l=e.which;for(t in M[l]="p",M)M.hasOwnProperty(t)&&"p"===M[t]&&(r.push(t),parseInt(t,10)!==l&&(o[t]=!0));for(t in u.keyBinds)if(u.keyBinds.hasOwnProperty(t)&&"function"==typeof u.keyBinds[t]&&((n=t.split(" ")).length===r.length&&w[l]===n[n.length-1])){for(s=!0,i=n.length-2;0<=i;i--)if(!(w[n[i]]in o)){s=!1;break}if(s){a=u.keyBinds[t];break}}a&&(a.call(p,g),e.stopPropagation(),e.preventDefault())},U=function(e){M[e.which]="r",e.stopPropagation(),e.preventDefault()},q=function(e){var t=K(e.target).val().trim(),i=t?V(t):null;return $(i),e.stopImmediatePropagation(),!1},G=function(e){var t={};return K.each(e,function(){var e=V(this);e.isValid()&&(t[e.format("YYYY-MM-DD")]=!0)}),!!Object.keys(t).length&&t},X=function(e){var t={};return K.each(e,function(){t[this]=!0}),!!Object.keys(t).length&&t},J=function(){var e=u.format||"L LT";n=e.replace(/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,function(e){return(d.localeData().longDateFormat(e)||e).replace(/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,function(e){return d.localeData().longDateFormat(e)||e})}),(r=u.extraFormats?u.extraFormats.slice():[]).indexOf(e)<0&&r.indexOf(n)<0&&r.push(n),l=n.toLowerCase().indexOf("a")<1&&n.replace(/\[.*?\]/g,"").indexOf("h")<1,k("y")&&(v=2),k("M")&&(v=1),k("d")&&(v=0),s=Math.max(v,s),f||$(d)};if(p.destroy=function(){P(),i.off({change:q,blur:blur,keydown:B,keyup:U,focus:u.allowInputToggle?P:""}),a.is("input")?i.off({focus:R}):m&&(m.off("click",W),m.off("mousedown",!1)),a.removeData("DateTimePicker"),a.removeData("date")},p.toggle=W,p.show=R,p.hide=P,p.disable=function(){return P(),m&&m.hasClass("btn")&&m.addClass("disabled"),i.prop("disabled",!0),p},p.enable=function(){return m&&m.hasClass("btn")&&m.removeClass("disabled"),i.prop("disabled",!1),p},p.ignoreReadonly=function(e){if(0===arguments.length)return u.ignoreReadonly;if("boolean"!=typeof e)throw new TypeError("ignoreReadonly () expects a boolean parameter");return u.ignoreReadonly=e,p},p.options=function(e){if(0===arguments.length)return K.extend(!0,{},u);if(!(e instanceof Object))throw new TypeError("options() options parameter should be an object");return K.extend(!0,u,e),K.each(u,function(e,t){if(void 0===p[e])throw new TypeError("option "+e+" is not recognized!");p[e](t)}),p},p.date=function(e){if(0===arguments.length)return f?null:d.clone();if(!(null===e||"string"==typeof e||Z.isMoment(e)||e instanceof Date))throw new TypeError("date() parameter must be one of [null, string, moment or Date]");return $(null===e?null:V(e)),p},p.format=function(e){if(0===arguments.length)return u.format;if("string"!=typeof e&&("boolean"!=typeof e||!1!==e))throw new TypeError("format() expects a sting or boolean:false parameter "+e);return u.format=e,n&&J(),p},p.timeZone=function(e){return 0===arguments.length?u.timeZone:(u.timeZone=e,p)},p.dayViewHeaderFormat=function(e){if(0===arguments.length)return u.dayViewHeaderFormat;if("string"!=typeof e)throw new TypeError("dayViewHeaderFormat() expects a string parameter");return u.dayViewHeaderFormat=e,p},p.extraFormats=function(e){if(0===arguments.length)return u.extraFormats;if(!1!==e&&!(e instanceof Array))throw new TypeError("extraFormats() expects an array or false parameter");return u.extraFormats=e,r&&J(),p},p.disabledDates=function(e){if(0===arguments.length)return u.disabledDates?K.extend({},u.disabledDates):u.disabledDates;if(!e)return u.disabledDates=!1,F(),p;if(!(e instanceof Array))throw new TypeError("disabledDates() expects an array parameter");return u.disabledDates=G(e),u.enabledDates=!1,F(),p},p.enabledDates=function(e){if(0===arguments.length)return u.enabledDates?K.extend({},u.enabledDates):u.enabledDates;if(!e)return u.enabledDates=!1,F(),p;if(!(e instanceof Array))throw new TypeError("enabledDates() expects an array parameter");return u.enabledDates=G(e),u.disabledDates=!1,F(),p},p.daysOfWeekDisabled=function(e){if(0===arguments.length)return u.daysOfWeekDisabled.splice(0);if("boolean"==typeof e&&!e)return u.daysOfWeekDisabled=!1,F(),p;if(!(e instanceof Array))throw new TypeError("daysOfWeekDisabled() expects an array parameter");if(u.daysOfWeekDisabled=e.reduce(function(e,t){return 6<(t=parseInt(t,10))||t<0||isNaN(t)||-1===e.indexOf(t)&&e.push(t),e},[]).sort(),u.useCurrent&&!u.keepInvalid){for(var t=0;!A(d,"d");){if(d.add(1,"d"),7===t)throw"Tried 7 times to find a valid date";t++}$(d)}return F(),p},p.maxDate=function(e){if(0===arguments.length)return u.maxDate?u.maxDate.clone():u.maxDate;if("boolean"==typeof e&&!1===e)return u.maxDate=!1,F(),p;"string"==typeof e&&("now"===e||"moment"===e)&&(e=j());var t=V(e);if(!t.isValid())throw new TypeError("maxDate() Could not parse date parameter: "+e);if(u.minDate&&t.isBefore(u.minDate))throw new TypeError("maxDate() date parameter is before options.minDate: "+t.format(n));return u.maxDate=t,u.useCurrent&&!u.keepInvalid&&d.isAfter(e)&&$(u.maxDate),c.isAfter(t)&&(c=t.clone().subtract(u.stepping,"m")),F(),p},p.minDate=function(e){if(0===arguments.length)return u.minDate?u.minDate.clone():u.minDate;if("boolean"==typeof e&&!1===e)return u.minDate=!1,F(),p;"string"==typeof e&&("now"===e||"moment"===e)&&(e=j());var t=V(e);if(!t.isValid())throw new TypeError("minDate() Could not parse date parameter: "+e);if(u.maxDate&&t.isAfter(u.maxDate))throw new TypeError("minDate() date parameter is after options.maxDate: "+t.format(n));return u.minDate=t,u.useCurrent&&!u.keepInvalid&&d.isBefore(e)&&$(u.minDate),c.isBefore(t)&&(c=t.clone().add(u.stepping,"m")),F(),p},p.defaultDate=function(e){if(0===arguments.length)return u.defaultDate?u.defaultDate.clone():u.defaultDate;if(!e)return u.defaultDate=!1,p;"string"==typeof e&&("now"===e||"moment"===e)&&(e=j());var t=V(e);if(!t.isValid())throw new TypeError("defaultDate() Could not parse date parameter: "+e);if(!A(t))throw new TypeError("defaultDate() date passed is invalid according to component setup validations");return u.defaultDate=t,(u.defaultDate&&u.inline||""===i.val().trim())&&$(u.defaultDate),p},p.locale=function(e){if(0===arguments.length)return u.locale;if(!Z.localeData(e))throw new TypeError("locale() locale "+e+" is not loaded from moment locales!");return u.locale=e,d.locale(u.locale),c.locale(u.locale),n&&J(),g&&(P(),R()),p},p.stepping=function(e){return 0===arguments.length?u.stepping:(e=parseInt(e,10),(isNaN(e)||e<1)&&(e=1),u.stepping=e,p)},p.useCurrent=function(e){var t=["year","month","day","hour","minute"];if(0===arguments.length)return u.useCurrent;if("boolean"!=typeof e&&"string"!=typeof e)throw new TypeError("useCurrent() expects a boolean or string parameter");if("string"==typeof e&&-1===t.indexOf(e.toLowerCase()))throw new TypeError("useCurrent() expects a string parameter of "+t.join(", "));return u.useCurrent=e,p},p.collapse=function(e){if(0===arguments.length)return u.collapse;if("boolean"!=typeof e)throw new TypeError("collapse() expects a boolean parameter");return u.collapse===e||(u.collapse=e,g&&(P(),R())),p},p.icons=function(e){if(0===arguments.length)return K.extend({},u.icons);if(!(e instanceof Object))throw new TypeError("icons() expects parameter to be an Object");return K.extend(u.icons,e),g&&(P(),R()),p},p.tooltips=function(e){if(0===arguments.length)return K.extend({},u.tooltips);if(!(e instanceof Object))throw new TypeError("tooltips() expects parameter to be an Object");return K.extend(u.tooltips,e),g&&(P(),R()),p},p.useStrict=function(e){if(0===arguments.length)return u.useStrict;if("boolean"!=typeof e)throw new TypeError("useStrict() expects a boolean parameter");return u.useStrict=e,p},p.sideBySide=function(e){if(0===arguments.length)return u.sideBySide;if("boolean"!=typeof e)throw new TypeError("sideBySide() expects a boolean parameter");return u.sideBySide=e,g&&(P(),R()),p},p.viewMode=function(e){if(0===arguments.length)return u.viewMode;if("string"!=typeof e)throw new TypeError("viewMode() expects a string parameter");if(-1===_.indexOf(e))throw new TypeError("viewMode() parameter must be one of ("+_.join(", ")+") value");return u.viewMode=e,s=Math.max(_.indexOf(e),v),H(),p},p.toolbarPlacement=function(e){if(0===arguments.length)return u.toolbarPlacement;if("string"!=typeof e)throw new TypeError("toolbarPlacement() expects a string parameter");if(-1===x.indexOf(e))throw new TypeError("toolbarPlacement() parameter must be one of ("+x.join(", ")+") value");return u.toolbarPlacement=e,g&&(P(),R()),p},p.widgetPositioning=function(e){if(0===arguments.length)return K.extend({},u.widgetPositioning);if("[object Object]"!=={}.toString.call(e))throw new TypeError("widgetPositioning() expects an object variable");if(e.horizontal){if("string"!=typeof e.horizontal)throw new TypeError("widgetPositioning() horizontal variable must be a string");if(e.horizontal=e.horizontal.toLowerCase(),-1===b.indexOf(e.horizontal))throw new TypeError("widgetPositioning() expects horizontal parameter to be one of ("+b.join(", ")+")");u.widgetPositioning.horizontal=e.horizontal}if(e.vertical){if("string"!=typeof e.vertical)throw new TypeError("widgetPositioning() vertical variable must be a string");if(e.vertical=e.vertical.toLowerCase(),-1===y.indexOf(e.vertical))throw new TypeError("widgetPositioning() expects vertical parameter to be one of ("+y.join(", ")+")");u.widgetPositioning.vertical=e.vertical}return F(),p},p.calendarWeeks=function(e){if(0===arguments.length)return u.calendarWeeks;if("boolean"!=typeof e)throw new TypeError("calendarWeeks() expects parameter to be a boolean value");return u.calendarWeeks=e,F(),p},p.showTodayButton=function(e){if(0===arguments.length)return u.showTodayButton;if("boolean"!=typeof e)throw new TypeError("showTodayButton() expects a boolean parameter");return u.showTodayButton=e,g&&(P(),R()),p},p.showClear=function(e){if(0===arguments.length)return u.showClear;if("boolean"!=typeof e)throw new TypeError("showClear() expects a boolean parameter");return u.showClear=e,g&&(P(),R()),p},p.widgetParent=function(e){if(0===arguments.length)return u.widgetParent;if("string"==typeof e&&(e=K(e)),null!==e&&"string"!=typeof e&&!(e instanceof K))throw new TypeError("widgetParent() expects a string or a jQuery object parameter");return u.widgetParent=e,g&&(P(),R()),p},p.keepOpen=function(e){if(0===arguments.length)return u.keepOpen;if("boolean"!=typeof e)throw new TypeError("keepOpen() expects a boolean parameter");return u.keepOpen=e,p},p.focusOnShow=function(e){if(0===arguments.length)return u.focusOnShow;if("boolean"!=typeof e)throw new TypeError("focusOnShow() expects a boolean parameter");return u.focusOnShow=e,p},p.inline=function(e){if(0===arguments.length)return u.inline;if("boolean"!=typeof e)throw new TypeError("inline() expects a boolean parameter");return u.inline=e,p},p.clear=function(){return z(),p},p.keyBinds=function(e){return u.keyBinds=e,p},p.getMoment=function(e){return j(e)},p.debug=function(e){if("boolean"!=typeof e)throw new TypeError("debug() expects a boolean parameter");return u.debug=e,p},p.allowInputToggle=function(e){if(0===arguments.length)return u.allowInputToggle;if("boolean"!=typeof e)throw new TypeError("allowInputToggle() expects a boolean parameter");return u.allowInputToggle=e,p},p.showClose=function(e){if(0===arguments.length)return u.showClose;if("boolean"!=typeof e)throw new TypeError("showClose() expects a boolean parameter");return u.showClose=e,p},p.keepInvalid=function(e){if(0===arguments.length)return u.keepInvalid;if("boolean"!=typeof e)throw new TypeError("keepInvalid() expects a boolean parameter");return u.keepInvalid=e,p},p.datepickerInput=function(e){if(0===arguments.length)return u.datepickerInput;if("string"!=typeof e)throw new TypeError("datepickerInput() expects a string parameter");return u.datepickerInput=e,p},p.parseInputDate=function(e){if(0===arguments.length)return u.parseInputDate;if("function"!=typeof e)throw new TypeError("parseInputDate() sholud be as function");return u.parseInputDate=e,p},p.disabledTimeIntervals=function(e){if(0===arguments.length)return u.disabledTimeIntervals?K.extend({},u.disabledTimeIntervals):u.disabledTimeIntervals;if(!e)return u.disabledTimeIntervals=!1,F(),p;if(!(e instanceof Array))throw new TypeError("disabledTimeIntervals() expects an array parameter");return u.disabledTimeIntervals=e,F(),p},p.disabledHours=function(e){if(0===arguments.length)return u.disabledHours?K.extend({},u.disabledHours):u.disabledHours;if(!e)return u.disabledHours=!1,F(),p;if(!(e instanceof Array))throw new TypeError("disabledHours() expects an array parameter");if(u.disabledHours=X(e),u.enabledHours=!1,u.useCurrent&&!u.keepInvalid){for(var t=0;!A(d,"h");){if(d.add(1,"h"),24===t)throw"Tried 24 times to find a valid date";t++}$(d)}return F(),p},p.enabledHours=function(e){if(0===arguments.length)return u.enabledHours?K.extend({},u.enabledHours):u.enabledHours;if(!e)return u.enabledHours=!1,F(),p;if(!(e instanceof Array))throw new TypeError("enabledHours() expects an array parameter");if(u.enabledHours=X(e),u.disabledHours=!1,u.useCurrent&&!u.keepInvalid){for(var t=0;!A(d,"h");){if(d.add(1,"h"),24===t)throw"Tried 24 times to find a valid date";t++}$(d)}return F(),p},p.viewDate=function(e){if(0===arguments.length)return c.clone();if(!e)return c=d.clone(),p;if(!("string"==typeof e||Z.isMoment(e)||e instanceof Date))throw new TypeError("viewDate() parameter must be one of [string, moment or Date]");return c=V(e),E(),p},a.is("input"))i=a;else if(0===(i=a.find(u.datepickerInput)).size())i=a.find("input");else if(!i.is("input"))throw new Error('CSS class "'+u.datepickerInput+'" cannot be applied to non input element');if(a.hasClass("input-group")&&(m=0===a.find(".datepickerbutton").size()?a.find(".input-group-addon"):a.find(".datepickerbutton")),!u.inline&&!i.is("input"))throw new Error("Could not initialize DateTimePicker without an input element");return d=j(),c=d.clone(),K.extend(!0,u,(h={},(o=a.is("input")||u.inline?a.data():a.find("input").data()).dateOptions&&o.dateOptions instanceof Object&&(h=K.extend(!0,h,o.dateOptions)),K.each(u,function(e){var t="date"+e.charAt(0).toUpperCase()+e.slice(1);void 0!==o[t]&&(h[e]=o[t])}),h)),p.options(u),J(),i.on({change:q,blur:u.debug?"":P,keydown:B,keyup:U,focus:u.allowInputToggle?R:""}),a.is("input")?i.on({focus:R}):m&&(m.on("click",W),m.on("mousedown",!1)),i.prop("disabled")&&p.disable(),i.is("input")&&0!==i.val().trim().length?$(V(i.val().trim())):u.defaultDate&&void 0===i.attr("placeholder")&&$(u.defaultDate),u.inline&&R(),p};K.fn.datetimepicker=function(t){return this.each(function(){var e=K(this);e.data("DateTimePicker")||(t=K.extend(!0,{},K.fn.datetimepicker.defaults,t),e.data("DateTimePicker",i(e,t)))})},K.fn.datetimepicker.defaults={timeZone:"Etc/UTC",format:!1,dayViewHeaderFormat:"MMMM YYYY",extraFormats:!1,stepping:1,minDate:!1,maxDate:!1,useCurrent:!0,collapse:!0,locale:Z.locale(),defaultDate:!1,disabledDates:!1,enabledDates:!1,icons:{time:"glyphicon glyphicon-time",date:"glyphicon glyphicon-calendar",up:"glyphicon glyphicon-chevron-up",down:"glyphicon glyphicon-chevron-down",previous:"glyphicon glyphicon-chevron-left",next:"glyphicon glyphicon-chevron-right",today:"glyphicon glyphicon-screenshot",clear:"glyphicon glyphicon-trash",close:"glyphicon glyphicon-remove"},tooltips:{today:"Go to today",clear:"Clear selection",close:"Close the picker",selectMonth:"Select Month",prevMonth:"Previous Month",nextMonth:"Next Month",selectYear:"Select Year",prevYear:"Previous Year",nextYear:"Next Year",selectDecade:"Select Decade",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevCentury:"Previous Century",nextCentury:"Next Century",pickHour:"Pick Hour",incrementHour:"Increment Hour",decrementHour:"Decrement Hour",pickMinute:"Pick Minute",incrementMinute:"Increment Minute",decrementMinute:"Decrement Minute",pickSecond:"Pick Second",incrementSecond:"Increment Second",decrementSecond:"Decrement Second",togglePeriod:"Toggle Period",selectTime:"Select Time"},useStrict:!1,sideBySide:!1,daysOfWeekDisabled:!1,calendarWeeks:!1,viewMode:"days",toolbarPlacement:"default",showTodayButton:!1,showClear:!1,showClose:!1,widgetPositioning:{horizontal:"auto",vertical:"auto"},widgetParent:null,ignoreReadonly:!1,keepOpen:!1,focusOnShow:!0,inline:!1,keepInvalid:!1,datepickerInput:".datepickerinput",keyBinds:{up:function(e){if(e){var t=this.date()||this.getMoment();e.find(".datepicker").is(":visible")?this.date(t.clone().subtract(7,"d")):this.date(t.clone().add(this.stepping(),"m"))}},down:function(e){if(e){var t=this.date()||this.getMoment();e.find(".datepicker").is(":visible")?this.date(t.clone().add(7,"d")):this.date(t.clone().subtract(this.stepping(),"m"))}else this.show()},"control up":function(e){if(e){var t=this.date()||this.getMoment();e.find(".datepicker").is(":visible")?this.date(t.clone().subtract(1,"y")):this.date(t.clone().add(1,"h"))}},"control down":function(e){if(e){var t=this.date()||this.getMoment();e.find(".datepicker").is(":visible")?this.date(t.clone().add(1,"y")):this.date(t.clone().subtract(1,"h"))}},left:function(e){if(e){var t=this.date()||this.getMoment();e.find(".datepicker").is(":visible")&&this.date(t.clone().subtract(1,"d"))}},right:function(e){if(e){var t=this.date()||this.getMoment();e.find(".datepicker").is(":visible")&&this.date(t.clone().add(1,"d"))}},pageUp:function(e){if(e){var t=this.date()||this.getMoment();e.find(".datepicker").is(":visible")&&this.date(t.clone().subtract(1,"M"))}},pageDown:function(e){if(e){var t=this.date()||this.getMoment();e.find(".datepicker").is(":visible")&&this.date(t.clone().add(1,"M"))}},enter:function(){this.hide()},escape:function(){this.hide()},"control space":function(e){e.find(".timepicker").is(":visible")&&e.find('.btn[data-action="togglePeriod"]').click()},t:function(){this.date(this.getMoment())},delete:function(){this.clear()}},debug:!1,allowInputToggle:!1,disabledTimeIntervals:!1,disabledHours:!1,enabledHours:!1,viewDate:!1}}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.moment=t()}(this,function(){"use strict";function g(){return Be.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function l(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function h(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,t){var i,n=[];for(i=0;i<e.length;++i)n.push(t(e[i],i));return n}function v(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function c(e,t){for(var i in t)v(t,i)&&(e[i]=t[i]);return v(t,"toString")&&(e.toString=t.toString),v(t,"valueOf")&&(e.valueOf=t.valueOf),e}function p(e,t,i,n){return pe(e,t,i,n,!0).utc()}function _(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null}),e._pf}function f(e){if(null==e._isValid){var t=_(e),i=Ue.call(t.parsedDateParts,function(e){return null!=e}),n=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&i);if(e._strict&&(n=n&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return n;e._isValid=n}return e._isValid}function m(e){var t=p(NaN);return null!=e?c(_(t),e):_(t).userInvalidated=!0,t}function a(e){return void 0===e}function y(e,t){var i,n,s;if(a(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),a(t._i)||(e._i=t._i),a(t._f)||(e._f=t._f),a(t._l)||(e._l=t._l),a(t._strict)||(e._strict=t._strict),a(t._tzm)||(e._tzm=t._tzm),a(t._isUTC)||(e._isUTC=t._isUTC),a(t._offset)||(e._offset=t._offset),a(t._pf)||(e._pf=_(t)),a(t._locale)||(e._locale=t._locale),0<qe.length)for(i in qe)a(s=t[n=qe[i]])||(e[n]=s);return e}function b(e){y(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===Ge&&(Ge=!0,g.updateOffset(this),Ge=!1)}function x(e){return e instanceof b||null!=e&&null!=e._isAMomentObject}function w(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function M(e){var t=+e,i=0;return 0!==t&&isFinite(t)&&(i=w(t)),i}function r(e,t,i){var n,s=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),r=0;for(n=0;n<s;n++)(i&&e[n]!==t[n]||!i&&M(e[n])!==M(t[n]))&&r++;return r+a}function j(e){!1===g.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function e(s,a){var r=!0;return c(function(){if(null!=g.deprecationHandler&&g.deprecationHandler(null,s),r){for(var e,t=[],i=0;i<arguments.length;i++){if(e="","object"==typeof arguments[i]){for(var n in e+="\n["+i+"] ",arguments[0])e+=n+": "+arguments[0][n]+", ";e=e.slice(0,-2)}else e=arguments[i];t.push(e)}j(s+"\nArguments: "+Array.prototype.slice.call(t).join("")+"\n"+(new Error).stack),r=!1}return a.apply(this,arguments)},a)}function k(e,t){null!=g.deprecationHandler&&g.deprecationHandler(e,t),Xe[e]||(j(t),Xe[e]=!0)}function L(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function s(e,t){var i,n=c({},e);for(i in t)v(t,i)&&(l(e[i])&&l(t[i])?(n[i]={},c(n[i],e[i]),c(n[i],t[i])):null!=t[i]?n[i]=t[i]:delete n[i]);for(i in e)v(e,i)&&!v(t,i)&&l(e[i])&&(n[i]=c({},n[i]));return n}function S(e){null!=e&&this.set(e)}function t(e,t){var i=e.toLowerCase();Ke[i]=Ke[i+"s"]=Ke[t]=e}function T(e){return"string"==typeof e?Ke[e]||Ke[e.toLowerCase()]:void 0}function D(e){var t,i,n={};for(i in e)v(e,i)&&((t=T(i))&&(n[t]=e[i]));return n}function i(e,t){Ze[e]=t}function n(t,i){return function(e){return null!=e?(Y(this,t,e),g.updateOffset(this,i),this):C(this,t)}}function C(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Y(e,t,i){e.isValid()&&e._d["set"+(e._isUTC?"UTC":"")+t](i)}function E(e,t,i){var n=""+Math.abs(e),s=t-n.length;return(0<=e?i?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+n}function H(e,t,i,n){var s=n;"string"==typeof n&&(s=function(){return this[n]()}),e&&(it[e]=s),t&&(it[t[0]]=function(){return E(s.apply(this,arguments),t[1],t[2])}),i&&(it[i]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)})}function A(e,t){return e.isValid()?(t=I(t,e.localeData()),tt[t]=tt[t]||function(n){var e,s,t,a=n.match(Qe);for(e=0,s=a.length;e<s;e++)it[a[e]]?a[e]=it[a[e]]:a[e]=(t=a[e]).match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"");return function(e){var t,i="";for(t=0;t<s;t++)i+=a[t]instanceof Function?a[t].call(e,n):a[t];return i}}(t),tt[t](e)):e.localeData().invalidDate()}function I(e,t){function i(e){return t.longDateFormat(e)||e}var n=5;for(et.lastIndex=0;0<=n&&et.test(e);)e=e.replace(et,i),et.lastIndex=0,n-=1;return e}function F(e,i,n){yt[e]=L(i)?i:function(e,t){return e&&n?n:i}}function $(e,t){return v(yt,e)?yt[e](t._strict,t._locale):new RegExp(P(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,i,n,s){return t||i||n||s})))}function P(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function z(e,i){var t,n=i;for("string"==typeof e&&(e=[e]),u(i)&&(n=function(e,t){t[i]=M(e)}),t=0;t<e.length;t++)bt[e[t]]=n}function N(e,s){z(e,function(e,t,i,n){i._w=i._w||{},s(e,i._w,i,n)})}function O(e,t){return new Date(Date.UTC(e,t+1,0)).getUTCDate()}function R(e,t){var i;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=M(t);else if(!u(t=e.localeData().monthsParse(t)))return e;return i=Math.min(e.date(),O(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,i),e}function W(e){return null!=e?(R(this,e),g.updateOffset(this,!0),this):C(this,"Month")}function V(){function e(e,t){return t.length-e.length}var t,i,n=[],s=[],a=[];for(t=0;t<12;t++)i=p([2e3,t]),n.push(this.monthsShort(i,"")),s.push(this.months(i,"")),a.push(this.months(i,"")),a.push(this.monthsShort(i,""));for(n.sort(e),s.sort(e),a.sort(e),t=0;t<12;t++)n[t]=P(n[t]),s[t]=P(s[t]);for(t=0;t<24;t++)a[t]=P(a[t]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function B(e){return U(e)?366:365}function U(e){return e%4==0&&e%100!=0||e%400==0}function q(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&0<=e&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function G(e,t,i){var n=7+t-i;return-((7+q(e,0,n).getUTCDay()-t)%7)+n-1}function X(e,t,i,n,s){var a,r,o=1+7*(t-1)+(7+i-n)%7+G(e,n,s);return o<=0?r=B(a=e-1)+o:o>B(e)?(a=e+1,r=o-B(e)):(a=e,r=o),{year:a,dayOfYear:r}}function J(e,t,i){var n,s,a=G(e.year(),t,i),r=Math.floor((e.dayOfYear()-a-1)/7)+1;return r<1?n=r+K(s=e.year()-1,t,i):r>K(e.year(),t,i)?(n=r-K(e.year(),t,i),s=e.year()+1):(s=e.year(),n=r),{week:n,year:s}}function K(e,t,i){var n=G(e,t,i),s=G(e+1,t,i);return(B(e)-n+s)/7}function Z(){function e(e,t){return t.length-e.length}var t,i,n,s,a,r=[],o=[],l=[],h=[];for(t=0;t<7;t++)i=p([2e3,1]).day(t),n=this.weekdaysMin(i,""),s=this.weekdaysShort(i,""),a=this.weekdays(i,""),r.push(n),o.push(s),l.push(a),h.push(n),h.push(s),h.push(a);for(r.sort(e),o.sort(e),l.sort(e),h.sort(e),t=0;t<7;t++)o[t]=P(o[t]),l[t]=P(l[t]),h[t]=P(h[t]);this._weekdaysRegex=new RegExp("^("+h.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Q(){return this.hours()%12||12}function ee(e,t){H(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function te(e,t){return t._meridiemParse}function ie(e){return e?e.toLowerCase().replace("_","-"):e}function ne(e){var t=null;if(!Ut[e]&&"undefined"!=typeof module&&module&&module.exports)try{t=Wt._abbr,require("./locale/"+e),se(t)}catch(e){}return Ut[e]}function se(e,t){var i;return e&&((i=a(t)?re(e):ae(e,t))&&(Wt=i)),Wt._abbr}function ae(e,t){if(null!==t){var i=Bt;if(t.abbr=e,null!=Ut[e])k("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=Ut[e]._config;else if(null!=t.parentLocale){if(null==Ut[t.parentLocale])return qt[t.parentLocale]||(qt[t.parentLocale]=[]),qt[t.parentLocale].push({name:e,config:t}),null;i=Ut[t.parentLocale]._config}return Ut[e]=new S(s(i,t)),qt[e]&&qt[e].forEach(function(e){ae(e.name,e.config)}),se(e),Ut[e]}return delete Ut[e],null}function re(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Wt;if(!o(e)){if(t=ne(e))return t;e=[e]}return function(e){for(var t,i,n,s,a=0;a<e.length;){for(t=(s=ie(e[a]).split("-")).length,i=(i=ie(e[a+1]))?i.split("-"):null;0<t;){if(n=ne(s.slice(0,t).join("-")))return n;if(i&&i.length>=t&&r(s,i,!0)>=t-1)break;t--}a++}return null}(e)}function oe(e){var t,i=e._a;return i&&-2===_(e).overflow&&(t=i[wt]<0||11<i[wt]?wt:i[Mt]<1||i[Mt]>O(i[xt],i[wt])?Mt:i[jt]<0||24<i[jt]||24===i[jt]&&(0!==i[kt]||0!==i[Lt]||0!==i[St])?jt:i[kt]<0||59<i[kt]?kt:i[Lt]<0||59<i[Lt]?Lt:i[St]<0||999<i[St]?St:-1,_(e)._overflowDayOfYear&&(t<xt||Mt<t)&&(t=Mt),_(e)._overflowWeeks&&-1===t&&(t=Tt),_(e)._overflowWeekday&&-1===t&&(t=Dt),_(e).overflow=t),e}function le(e){var t,i,n,s,a,r,o=e._i,l=Gt.exec(o)||Xt.exec(o);if(l){for(_(e).iso=!0,t=0,i=Kt.length;t<i;t++)if(Kt[t][1].exec(l[1])){s=Kt[t][0],n=!1!==Kt[t][2];break}if(null==s)return void(e._isValid=!1);if(l[3]){for(t=0,i=Zt.length;t<i;t++)if(Zt[t][1].exec(l[3])){a=(l[2]||" ")+Zt[t][0];break}if(null==a)return void(e._isValid=!1)}if(!n&&null!=a)return void(e._isValid=!1);if(l[4]){if(!Jt.exec(l[4]))return void(e._isValid=!1);r="Z"}e._f=s+(a||"")+(r||""),de(e)}else e._isValid=!1}function he(e,t,i){return null!=e?e:null!=t?t:i}function ue(e){var t,i,n,s,a,r,o=[];if(!e._d){for(a=e,r=void 0,r=new Date(g.now()),n=a._useUTC?[r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate()]:[r.getFullYear(),r.getMonth(),r.getDate()],e._w&&null==e._a[Mt]&&null==e._a[wt]&&function(e){var t,i,n,s,a,r,o,l;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)a=1,r=4,i=he(t.GG,e._a[xt],J(fe(),1,4).year),n=he(t.W,1),((s=he(t.E,1))<1||7<s)&&(l=!0);else{a=e._locale._week.dow,r=e._locale._week.doy;var h=J(fe(),a,r);i=he(t.gg,e._a[xt],h.year),n=he(t.w,h.week),null!=t.d?((s=t.d)<0||6<s)&&(l=!0):null!=t.e?(s=t.e+a,(t.e<0||6<t.e)&&(l=!0)):s=a}n<1||n>K(i,a,r)?_(e)._overflowWeeks=!0:null!=l?_(e)._overflowWeekday=!0:(o=X(i,n,s,a,r),e._a[xt]=o.year,e._dayOfYear=o.dayOfYear)}(e),e._dayOfYear&&(s=he(e._a[xt],n[xt]),e._dayOfYear>B(s)&&(_(e)._overflowDayOfYear=!0),i=q(s,0,e._dayOfYear),e._a[wt]=i.getUTCMonth(),e._a[Mt]=i.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=n[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[jt]&&0===e._a[kt]&&0===e._a[Lt]&&0===e._a[St]&&(e._nextDay=!0,e._a[jt]=0),e._d=(e._useUTC?q:function(e,t,i,n,s,a,r){var o=new Date(e,t,i,n,s,a,r);return e<100&&0<=e&&isFinite(o.getFullYear())&&o.setFullYear(e),o}).apply(null,o),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[jt]=24)}}function de(e){if(e._f!==g.ISO_8601){e._a=[],_(e).empty=!0;var t,i,n,s,a,r,o,l,h,u,d,c,p=""+e._i,f=p.length,m=0;for(n=I(e._f,e._locale).match(Qe)||[],t=0;t<n.length;t++)s=n[t],(i=(p.match($(s,e))||[])[0])&&(0<(a=p.substr(0,p.indexOf(i))).length&&_(e).unusedInput.push(a),p=p.slice(p.indexOf(i)+i.length),m+=i.length),it[s]?(i?_(e).empty=!1:_(e).unusedTokens.push(s),r=s,l=e,null!=(o=i)&&v(bt,r)&&bt[r](o,l._a,l,r)):e._strict&&!i&&_(e).unusedTokens.push(s);_(e).charsLeftOver=f-m,0<p.length&&_(e).unusedInput.push(p),e._a[jt]<=12&&!0===_(e).bigHour&&0<e._a[jt]&&(_(e).bigHour=void 0),_(e).parsedDateParts=e._a.slice(0),_(e).meridiem=e._meridiem,e._a[jt]=(h=e._locale,u=e._a[jt],null==(d=e._meridiem)?u:null!=h.meridiemHour?h.meridiemHour(u,d):(null!=h.isPM&&((c=h.isPM(d))&&u<12&&(u+=12),c||12!==u||(u=0)),u)),ue(e),oe(e)}else le(e)}function ce(e){var t,i,n,s,a=e._i,r=e._f;return e._locale=e._locale||re(e._l),null===a||void 0===r&&""===a?m({nullInput:!0}):("string"==typeof a&&(e._i=a=e._locale.preparse(a)),x(a)?new b(oe(a)):(h(a)?e._d=a:o(r)?function(e){var t,i,n,s,a;if(0===e._f.length)return _(e).invalidFormat=!0,e._d=new Date(NaN);for(s=0;s<e._f.length;s++)a=0,t=y({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[s],de(t),f(t)&&(a+=_(t).charsLeftOver,a+=10*_(t).unusedTokens.length,_(t).score=a,(null==n||a<n)&&(n=a,i=t));c(e,i||t)}(e):r?de(e):void 0===(i=(t=e)._i)?t._d=new Date(g.now()):h(i)?t._d=new Date(i.valueOf()):"string"==typeof i?(n=t,null!==(s=Qt.exec(n._i))?n._d=new Date(+s[1]):(le(n),!1===n._isValid&&(delete n._isValid,g.createFromInputFallback(n)))):o(i)?(t._a=d(i.slice(0),function(e){return parseInt(e,10)}),ue(t)):"object"==typeof i?function(e){if(!e._d){var t=D(e._i);e._a=d([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),ue(e)}}(t):u(i)?t._d=new Date(i):g.createFromInputFallback(t),f(e)||(e._d=null),e))}function pe(e,t,i,n,s){var a,r={};return!0!==i&&!1!==i||(n=i,i=void 0),(l(e)&&function(e){var t;for(t in e)return!1;return!0}(e)||o(e)&&0===e.length)&&(e=void 0),r._isAMomentObject=!0,r._useUTC=r._isUTC=s,r._l=i,r._i=e,r._f=t,r._strict=n,(a=new b(oe(ce(r))))._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function fe(e,t,i,n){return pe(e,t,i,n,!1)}function me(e,t){var i,n;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return fe();for(i=t[0],n=1;n<t.length;++n)t[n].isValid()&&!t[n][e](i)||(i=t[n]);return i}function ge(e){var t=D(e),i=t.year||0,n=t.quarter||0,s=t.month||0,a=t.week||0,r=t.day||0,o=t.hour||0,l=t.minute||0,h=t.second||0,u=t.millisecond||0;this._milliseconds=+u+1e3*h+6e4*l+1e3*o*60*60,this._days=+r+7*a,this._months=+s+3*n+12*i,this._data={},this._locale=re(),this._bubble()}function ve(e){return e instanceof ge}function _e(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function ye(e,i){H(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+E(~~(e/60),2)+i+E(~~e%60,2)})}function be(e,t){var i=(t||"").match(e);if(null===i)return null;var n=((i[i.length-1]||[])+"").match(ii)||["-",0,0],s=60*n[1]+M(n[2]);return 0===s?0:"+"===n[0]?s:-s}function xe(e,t){var i,n;return t._isUTC?(i=t.clone(),n=(x(e)||h(e)?e.valueOf():fe(e).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+n),g.updateOffset(i,!1),i):fe(e).local()}function we(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Me(){return!!this.isValid()&&this._isUTC&&0===this._offset}function je(e,t){var i,n,s,a,r,o,l=e,h=null;return ve(e)?l={ms:e._milliseconds,d:e._days,M:e._months}:u(e)?(l={},t?l[t]=e:l.milliseconds=e):(h=ni.exec(e))?(i="-"===h[1]?-1:1,l={y:0,d:M(h[Mt])*i,h:M(h[jt])*i,m:M(h[kt])*i,s:M(h[Lt])*i,ms:M(_e(1e3*h[St]))*i}):(h=si.exec(e))?(i="-"===h[1]?-1:1,l={y:ke(h[2],i),M:ke(h[3],i),w:ke(h[4],i),d:ke(h[5],i),h:ke(h[6],i),m:ke(h[7],i),s:ke(h[8],i)}):null==l?l={}:"object"==typeof l&&("from"in l||"to"in l)&&(a=fe(l.from),r=fe(l.to),s=a.isValid()&&r.isValid()?(r=xe(r,a),a.isBefore(r)?o=Le(a,r):((o=Le(r,a)).milliseconds=-o.milliseconds,o.months=-o.months),o):{milliseconds:0,months:0},(l={}).ms=s.milliseconds,l.M=s.months),n=new ge(l),ve(e)&&v(e,"_locale")&&(n._locale=e._locale),n}function ke(e,t){var i=e&&parseFloat(e.replace(",","."));return(isNaN(i)?0:i)*t}function Le(e,t){var i={milliseconds:0,months:0};return i.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=+t-+e.clone().add(i.months,"M"),i}function Se(n,s){return function(e,t){var i;return null===t||isNaN(+t)||(k(s,"moment()."+s+"(period, number) is deprecated. Please use moment()."+s+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=e,e=t,t=i),Te(this,je(e="string"==typeof e?+e:e,t),n),this}}function Te(e,t,i,n){var s=t._milliseconds,a=_e(t._days),r=_e(t._months);e.isValid()&&(n=null==n||n,s&&e._d.setTime(e._d.valueOf()+s*i),a&&Y(e,"Date",C(e,"Date")+a*i),r&&R(e,C(e,"Month")+r*i),n&&g.updateOffset(e,a||r))}function De(e){var t;return void 0===e?this._locale._abbr:(null!=(t=re(e))&&(this._locale=t),this)}function Ce(){return this._locale}function Ye(e,t){H(0,[e,e.length],0,t)}function Ee(e,t,i,n,s){var a;return null==e?J(this,n,s).year:((a=K(e,n,s))<t&&(t=a),function(e,t,i,n,s){var a=X(e,t,i,n,s),r=q(a.year,0,a.dayOfYear);return this.year(r.getUTCFullYear()),this.month(r.getUTCMonth()),this.date(r.getUTCDate()),this}.call(this,e,t,i,n,s))}function He(e,t){t[St]=M(1e3*("0."+e))}function Ae(e){return e}function Ie(e,t,i,n){var s=re(),a=p().set(n,t);return s[i](a,e)}function Fe(e,t,i){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return Ie(e,t,i,"month");var n,s=[];for(n=0;n<12;n++)s[n]=Ie(e,n,i,"month");return s}function $e(e,t,i,n){"boolean"==typeof e||(i=t=e,e=!1),u(t)&&(i=t,t=void 0),t=t||"";var s=re(),a=e?s._week.dow:0;if(null!=i)return Ie(t,(i+a)%7,n,"day");var r,o=[];for(r=0;r<7;r++)o[r]=Ie(t,(r+a)%7,n,"day");return o}function Pe(e,t,i,n){var s=je(t,i);return e._milliseconds+=n*s._milliseconds,e._days+=n*s._days,e._months+=n*s._months,e._bubble()}function ze(e){return e<0?Math.floor(e):Math.ceil(e)}function Ne(e){return 4800*e/146097}function Oe(e){return 146097*e/4800}function Re(e){return function(){return this.as(e)}}function We(e){return function(){return this._data[e]}}function Ve(){var e,t,i=Hi(this._milliseconds)/1e3,n=Hi(this._days),s=Hi(this._months);t=w((e=w(i/60))/60),i%=60,e%=60;var a=w(s/12),r=s%=12,o=n,l=t,h=e,u=i,d=this.asSeconds();return d?(d<0?"-":"")+"P"+(a?a+"Y":"")+(r?r+"M":"")+(o?o+"D":"")+(l||h||u?"T":"")+(l?l+"H":"")+(h?h+"M":"")+(u?u+"S":""):"P0D"}var Be,Ue=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),i=t.length>>>0,n=0;n<i;n++)if(n in t&&e.call(this,t[n],n,t))return!0;return!1},qe=g.momentProperties=[],Ge=!1,Xe={};g.suppressDeprecationWarnings=!1,g.deprecationHandler=null;var Je=Object.keys?Object.keys:function(e){var t,i=[];for(t in e)v(e,t)&&i.push(t);return i},Ke={},Ze={},Qe=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,et=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,tt={},it={},nt=/\d/,st=/\d\d/,at=/\d{3}/,rt=/\d{4}/,ot=/[+-]?\d{6}/,lt=/\d\d?/,ht=/\d\d\d\d?/,ut=/\d\d\d\d\d\d?/,dt=/\d{1,3}/,ct=/\d{1,4}/,pt=/[+-]?\d{1,6}/,ft=/\d+/,mt=/[+-]?\d+/,gt=/Z|[+-]\d\d:?\d\d/gi,vt=/Z|[+-]\d\d(?::?\d\d)?/gi,_t=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,yt={},bt={},xt=0,wt=1,Mt=2,jt=3,kt=4,Lt=5,St=6,Tt=7,Dt=8,Ct=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};H("M",["MM",2],"Mo",function(){return this.month()+1}),H("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),H("MMMM",0,0,function(e){return this.localeData().months(this,e)}),t("month","M"),i("month",8),F("M",lt),F("MM",lt,st),F("MMM",function(e,t){return t.monthsShortRegex(e)}),F("MMMM",function(e,t){return t.monthsRegex(e)}),z(["M","MM"],function(e,t){t[wt]=M(e)-1}),z(["MMM","MMMM"],function(e,t,i,n){var s=i._locale.monthsParse(e,n,i._strict);null!=s?t[wt]=s:_(i).invalidMonth=e});var Yt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Et="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ht="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),At=_t,It=_t;H("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),H(0,["YY",2],0,function(){return this.year()%100}),H(0,["YYYY",4],0,"year"),H(0,["YYYYY",5],0,"year"),H(0,["YYYYYY",6,!0],0,"year"),t("year","y"),i("year",1),F("Y",mt),F("YY",lt,st),F("YYYY",ct,rt),F("YYYYY",pt,ot),F("YYYYYY",pt,ot),z(["YYYYY","YYYYYY"],xt),z("YYYY",function(e,t){t[xt]=2===e.length?g.parseTwoDigitYear(e):M(e)}),z("YY",function(e,t){t[xt]=g.parseTwoDigitYear(e)}),z("Y",function(e,t){t[xt]=parseInt(e,10)}),g.parseTwoDigitYear=function(e){return M(e)+(68<M(e)?1900:2e3)};var Ft=n("FullYear",!0);H("w",["ww",2],"wo","week"),H("W",["WW",2],"Wo","isoWeek"),t("week","w"),t("isoWeek","W"),i("week",5),i("isoWeek",5),F("w",lt),F("ww",lt,st),F("W",lt),F("WW",lt,st),N(["w","ww","W","WW"],function(e,t,i,n){t[n.substr(0,1)]=M(e)});H("d",0,"do","day"),H("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),H("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),H("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),H("e",0,0,"weekday"),H("E",0,0,"isoWeekday"),t("day","d"),t("weekday","e"),t("isoWeekday","E"),i("day",11),i("weekday",11),i("isoWeekday",11),F("d",lt),F("e",lt),F("E",lt),F("dd",function(e,t){return t.weekdaysMinRegex(e)}),F("ddd",function(e,t){return t.weekdaysShortRegex(e)}),F("dddd",function(e,t){return t.weekdaysRegex(e)}),N(["dd","ddd","dddd"],function(e,t,i,n){var s=i._locale.weekdaysParse(e,n,i._strict);null!=s?t.d=s:_(i).invalidWeekday=e}),N(["d","e","E"],function(e,t,i,n){t[n]=M(e)});var $t="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Pt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),zt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Nt=_t,Ot=_t,Rt=_t;H("H",["HH",2],0,"hour"),H("h",["hh",2],0,Q),H("k",["kk",2],0,function(){return this.hours()||24}),H("hmm",0,0,function(){return""+Q.apply(this)+E(this.minutes(),2)}),H("hmmss",0,0,function(){return""+Q.apply(this)+E(this.minutes(),2)+E(this.seconds(),2)}),H("Hmm",0,0,function(){return""+this.hours()+E(this.minutes(),2)}),H("Hmmss",0,0,function(){return""+this.hours()+E(this.minutes(),2)+E(this.seconds(),2)}),ee("a",!0),ee("A",!1),t("hour","h"),i("hour",13),F("a",te),F("A",te),F("H",lt),F("h",lt),F("HH",lt,st),F("hh",lt,st),F("hmm",ht),F("hmmss",ut),F("Hmm",ht),F("Hmmss",ut),z(["H","HH"],jt),z(["a","A"],function(e,t,i){i._isPm=i._locale.isPM(e),i._meridiem=e}),z(["h","hh"],function(e,t,i){t[jt]=M(e),_(i).bigHour=!0}),z("hmm",function(e,t,i){var n=e.length-2;t[jt]=M(e.substr(0,n)),t[kt]=M(e.substr(n)),_(i).bigHour=!0}),z("hmmss",function(e,t,i){var n=e.length-4,s=e.length-2;t[jt]=M(e.substr(0,n)),t[kt]=M(e.substr(n,2)),t[Lt]=M(e.substr(s)),_(i).bigHour=!0}),z("Hmm",function(e,t,i){var n=e.length-2;t[jt]=M(e.substr(0,n)),t[kt]=M(e.substr(n))}),z("Hmmss",function(e,t,i){var n=e.length-4,s=e.length-2;t[jt]=M(e.substr(0,n)),t[kt]=M(e.substr(n,2)),t[Lt]=M(e.substr(s))});var Wt,Vt=n("Hours",!0),Bt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",ordinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Et,monthsShort:Ht,week:{dow:0,doy:6},weekdays:$t,weekdaysMin:zt,weekdaysShort:Pt,meridiemParse:/[ap]\.?m?\.?/i},Ut={},qt={},Gt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Xt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Jt=/Z|[+-]\d\d(?::?\d\d)?/,Kt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Zt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Qt=/^\/?Date\((\-?\d+)/i;g.createFromInputFallback=e("value provided is not in a recognized ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),g.ISO_8601=function(){};var ei=e("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=fe.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:m()}),ti=e("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=fe.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:m()});ye("Z",":"),ye("ZZ",""),F("Z",vt),F("ZZ",vt),z(["Z","ZZ"],function(e,t,i){i._useUTC=!0,i._tzm=be(vt,e)});var ii=/([\+\-]|\d\d)/gi;g.updateOffset=function(){};var ni=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,si=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;je.fn=ge.prototype;var ai=Se(1,"add"),ri=Se(-1,"subtract");g.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",g.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var oi=e("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});H(0,["gg",2],0,function(){return this.weekYear()%100}),H(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Ye("gggg","weekYear"),Ye("ggggg","weekYear"),Ye("GGGG","isoWeekYear"),Ye("GGGGG","isoWeekYear"),t("weekYear","gg"),t("isoWeekYear","GG"),i("weekYear",1),i("isoWeekYear",1),F("G",mt),F("g",mt),F("GG",lt,st),F("gg",lt,st),F("GGGG",ct,rt),F("gggg",ct,rt),F("GGGGG",pt,ot),F("ggggg",pt,ot),N(["gggg","ggggg","GGGG","GGGGG"],function(e,t,i,n){t[n.substr(0,2)]=M(e)}),N(["gg","GG"],function(e,t,i,n){t[n]=g.parseTwoDigitYear(e)}),H("Q",0,"Qo","quarter"),t("quarter","Q"),i("quarter",7),F("Q",nt),z("Q",function(e,t){t[wt]=3*(M(e)-1)}),H("D",["DD",2],"Do","date"),t("date","D"),i("date",9),F("D",lt),F("DD",lt,st),F("Do",function(e,t){return e?t._ordinalParse:t._ordinalParseLenient}),z(["D","DD"],Mt),z("Do",function(e,t){t[Mt]=M(e.match(lt)[0])});var li=n("Date",!0);H("DDD",["DDDD",3],"DDDo","dayOfYear"),t("dayOfYear","DDD"),i("dayOfYear",4),F("DDD",dt),F("DDDD",at),z(["DDD","DDDD"],function(e,t,i){i._dayOfYear=M(e)}),H("m",["mm",2],0,"minute"),t("minute","m"),i("minute",14),F("m",lt),F("mm",lt,st),z(["m","mm"],kt);var hi=n("Minutes",!1);H("s",["ss",2],0,"second"),t("second","s"),i("second",15),F("s",lt),F("ss",lt,st),z(["s","ss"],Lt);var ui,di=n("Seconds",!1);for(H("S",0,0,function(){return~~(this.millisecond()/100)}),H(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),H(0,["SSS",3],0,"millisecond"),H(0,["SSSS",4],0,function(){return 10*this.millisecond()}),H(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),H(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),H(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),H(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),H(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),t("millisecond","ms"),i("millisecond",16),F("S",dt,nt),F("SS",dt,st),F("SSS",dt,at),ui="SSSS";ui.length<=9;ui+="S")F(ui,ft);for(ui="S";ui.length<=9;ui+="S")z(ui,He);var ci=n("Milliseconds",!1);H("z",0,0,"zoneAbbr"),H("zz",0,0,"zoneName");var pi=b.prototype;pi.add=ai,pi.calendar=function(e,t){var i=e||fe(),n=xe(i,this).startOf("day"),s=g.calendarFormat(this,n)||"sameElse",a=t&&(L(t[s])?t[s].call(this,i):t[s]);return this.format(a||this.localeData().calendar(s,this,fe(i)))},pi.clone=function(){return new b(this)},pi.diff=function(e,t,i){var n,s,a,r,o,l,h,u,d,c;return this.isValid()&&(n=xe(e,this)).isValid()?(s=6e4*(n.utcOffset()-this.utcOffset()),"year"===(t=T(t))||"month"===t||"quarter"===t?(o=this,d=12*((l=n).year()-o.year())+(l.month()-o.month()),c=o.clone().add(d,"months"),l-c<0?(h=o.clone().add(d-1,"months"),u=(l-c)/(c-h)):(h=o.clone().add(d+1,"months"),u=(l-c)/(h-c)),r=-(d+u)||0,"quarter"===t?r/=3:"year"===t&&(r/=12)):(a=this-n,r="second"===t?a/1e3:"minute"===t?a/6e4:"hour"===t?a/36e5:"day"===t?(a-s)/864e5:"week"===t?(a-s)/6048e5:a),i?r:w(r)):NaN},pi.endOf=function(e){return void 0===(e=T(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))},pi.format=function(e){e||(e=this.isUtc()?g.defaultFormatUtc:g.defaultFormat);var t=A(this,e);return this.localeData().postformat(t)},pi.from=function(e,t){return this.isValid()&&(x(e)&&e.isValid()||fe(e).isValid())?je({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},pi.fromNow=function(e){return this.from(fe(),e)},pi.to=function(e,t){return this.isValid()&&(x(e)&&e.isValid()||fe(e).isValid())?je({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},pi.toNow=function(e){return this.to(fe(),e)},pi.get=function(e){return L(this[e=T(e)])?this[e]():this},pi.invalidAt=function(){return _(this).overflow},pi.isAfter=function(e,t){var i=x(e)?e:fe(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=T(a(t)?"millisecond":t))?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(t).valueOf())},pi.isBefore=function(e,t){var i=x(e)?e:fe(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=T(a(t)?"millisecond":t))?this.valueOf()<i.valueOf():this.clone().endOf(t).valueOf()<i.valueOf())},pi.isBetween=function(e,t,i,n){return("("===(n=n||"()")[0]?this.isAfter(e,i):!this.isBefore(e,i))&&(")"===n[1]?this.isBefore(t,i):!this.isAfter(t,i))},pi.isSame=function(e,t){var i,n=x(e)?e:fe(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=T(t||"millisecond"))?this.valueOf()===n.valueOf():(i=n.valueOf(),this.clone().startOf(t).valueOf()<=i&&i<=this.clone().endOf(t).valueOf()))},pi.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},pi.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},pi.isValid=function(){return f(this)},pi.lang=oi,pi.locale=De,pi.localeData=Ce,pi.max=ti,pi.min=ei,pi.parsingFlags=function(){return c({},_(this))},pi.set=function(e,t){if("object"==typeof e)for(var i=function(e){var t=[];for(var i in e)t.push({unit:i,priority:Ze[i]});return t.sort(function(e,t){return e.priority-t.priority}),t}(e=D(e)),n=0;n<i.length;n++)this[i[n].unit](e[i[n].unit]);else if(L(this[e=T(e)]))return this[e](t);return this},pi.startOf=function(e){switch(e=T(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this},pi.subtract=ri,pi.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]},pi.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}},pi.toDate=function(){return new Date(this.valueOf())},pi.toISOString=function(){var e=this.clone().utc();return 0<e.year()&&e.year()<=9999?L(Date.prototype.toISOString)?this.toDate().toISOString():A(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):A(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")},pi.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var i="["+e+'("]',n=0<this.year()&&this.year()<=9999?"YYYY":"YYYYYY",s=t+'[")]';return this.format(i+n+"-MM-DD[T]HH:mm:ss.SSS"+s)},pi.toJSON=function(){return this.isValid()?this.toISOString():null},pi.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},pi.unix=function(){return Math.floor(this.valueOf()/1e3)},pi.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},pi.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},pi.year=Ft,pi.isLeapYear=function(){return U(this.year())},pi.weekYear=function(e){return Ee.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},pi.isoWeekYear=function(e){return Ee.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},pi.quarter=pi.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},pi.month=W,pi.daysInMonth=function(){return O(this.year(),this.month())},pi.week=pi.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},pi.isoWeek=pi.isoWeeks=function(e){var t=J(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},pi.weeksInYear=function(){var e=this.localeData()._week;return K(this.year(),e.dow,e.doy)},pi.isoWeeksInYear=function(){return K(this.year(),1,4)},pi.date=li,pi.day=pi.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t,i,n=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(t=e,i=this.localeData(),e="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=i.weekdaysParse(t))?t:null:parseInt(t,10),this.add(e-n,"d")):n},pi.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},pi.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=(i=e,n=this.localeData(),"string"==typeof i?n.weekdaysParse(i)%7||7:isNaN(i)?null:i);return this.day(this.day()%7?t:t-7)}var i,n;return this.day()||7},pi.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},pi.hour=pi.hours=Vt,pi.minute=pi.minutes=hi,pi.second=pi.seconds=di,pi.millisecond=pi.milliseconds=ci,pi.utcOffset=function(e,t){var i,n=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=be(vt,e)))return this}else Math.abs(e)<16&&(e*=60);return!this._isUTC&&t&&(i=we(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),n!==e&&(!t||this._changeInProgress?Te(this,je(e-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,g.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?n:we(this)},pi.utc=function(e){return this.utcOffset(0,e)},pi.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(we(this),"m")),this},pi.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm);else if("string"==typeof this._i){var e=be(gt,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},pi.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?fe(e).utcOffset():0,(this.utcOffset()-e)%60==0)},pi.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},pi.isLocal=function(){return!!this.isValid()&&!this._isUTC},pi.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},pi.isUtc=Me,pi.isUTC=Me,pi.zoneAbbr=function(){return this._isUTC?"UTC":""},pi.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},pi.dates=e("dates accessor is deprecated. Use date instead.",li),pi.months=e("months accessor is deprecated. Use month instead",W),pi.years=e("years accessor is deprecated. Use year instead",Ft),pi.zone=e("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),pi.isDSTShifted=e("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!a(this._isDSTShifted))return this._isDSTShifted;var e={};if(y(e,this),(e=ce(e))._a){var t=e._isUTC?p(e._a):fe(e._a);this._isDSTShifted=this.isValid()&&0<r(e._a,t.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted});var fi=S.prototype;fi.calendar=function(e,t,i){var n=this._calendar[e]||this._calendar.sameElse;return L(n)?n.call(t,i):n},fi.longDateFormat=function(e){var t=this._longDateFormat[e],i=this._longDateFormat[e.toUpperCase()];return t||!i?t:(this._longDateFormat[e]=i.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},fi.invalidDate=function(){return this._invalidDate},fi.ordinal=function(e){return this._ordinal.replace("%d",e)},fi.preparse=Ae,fi.postformat=Ae,fi.relativeTime=function(e,t,i,n){var s=this._relativeTime[i];return L(s)?s(e,t,i,n):s.replace(/%d/i,e)},fi.pastFuture=function(e,t){var i=this._relativeTime[0<e?"future":"past"];return L(i)?i(t):i.replace(/%s/i,t)},fi.set=function(e){var t,i;for(i in e)L(t=e[i])?this[i]=t:this["_"+i]=t;this._config=e,this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)},fi.months=function(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Yt).test(t)?"format":"standalone"][e.month()]:this._months},fi.monthsShort=function(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Yt.test(t)?"format":"standalone"][e.month()]:this._monthsShort},fi.monthsParse=function(e,t,i){var n,s,a;if(this._monthsParseExact)return function(e,t,i){var n,s,a,r=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)a=p([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(a,"").toLocaleLowerCase();return i?-1!==(s="MMM"===t?Ct.call(this._shortMonthsParse,r):Ct.call(this._longMonthsParse,r))?s:null:"MMM"===t?-1!==(s=Ct.call(this._shortMonthsParse,r))?s:-1!==(s=Ct.call(this._longMonthsParse,r))?s:null:-1!==(s=Ct.call(this._longMonthsParse,r))?s:-1!==(s=Ct.call(this._shortMonthsParse,r))?s:null}.call(this,e,t,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(s=p([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(a="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[n]=new RegExp(a.replace(".",""),"i")),i&&"MMMM"===t&&this._longMonthsParse[n].test(e))return n;if(i&&"MMM"===t&&this._shortMonthsParse[n].test(e))return n;if(!i&&this._monthsParse[n].test(e))return n}},fi.monthsRegex=function(e){return this._monthsParseExact?(v(this,"_monthsRegex")||V.call(this),e?this._monthsStrictRegex:this._monthsRegex):(v(this,"_monthsRegex")||(this._monthsRegex=It),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},fi.monthsShortRegex=function(e){return this._monthsParseExact?(v(this,"_monthsRegex")||V.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(v(this,"_monthsShortRegex")||(this._monthsShortRegex=At),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},fi.week=function(e){return J(e,this._week.dow,this._week.doy).week},fi.firstDayOfYear=function(){return this._week.doy},fi.firstDayOfWeek=function(){return this._week.dow},fi.weekdays=function(e,t){return e?o(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:this._weekdays},fi.weekdaysMin=function(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin},fi.weekdaysShort=function(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort},fi.weekdaysParse=function(e,t,i){var n,s,a;if(this._weekdaysParseExact)return function(e,t,i){var n,s,a,r=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)a=p([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(a,"").toLocaleLowerCase();return i?-1!==(s="dddd"===t?Ct.call(this._weekdaysParse,r):"ddd"===t?Ct.call(this._shortWeekdaysParse,r):Ct.call(this._minWeekdaysParse,r))?s:null:"dddd"===t?-1!==(s=Ct.call(this._weekdaysParse,r))?s:-1!==(s=Ct.call(this._shortWeekdaysParse,r))?s:-1!==(s=Ct.call(this._minWeekdaysParse,r))?s:null:"ddd"===t?-1!==(s=Ct.call(this._shortWeekdaysParse,r))?s:-1!==(s=Ct.call(this._weekdaysParse,r))?s:-1!==(s=Ct.call(this._minWeekdaysParse,r))?s:null:-1!==(s=Ct.call(this._minWeekdaysParse,r))?s:-1!==(s=Ct.call(this._weekdaysParse,r))?s:-1!==(s=Ct.call(this._shortWeekdaysParse,r))?s:null}.call(this,e,t,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(s=p([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(s,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(s,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(s,"").replace(".",".?")+"$","i")),this._weekdaysParse[n]||(a="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[n]=new RegExp(a.replace(".",""),"i")),i&&"dddd"===t&&this._fullWeekdaysParse[n].test(e))return n;if(i&&"ddd"===t&&this._shortWeekdaysParse[n].test(e))return n;if(i&&"dd"===t&&this._minWeekdaysParse[n].test(e))return n;if(!i&&this._weekdaysParse[n].test(e))return n}},fi.weekdaysRegex=function(e){return this._weekdaysParseExact?(v(this,"_weekdaysRegex")||Z.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(v(this,"_weekdaysRegex")||(this._weekdaysRegex=Nt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},fi.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(v(this,"_weekdaysRegex")||Z.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(v(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ot),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},fi.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(v(this,"_weekdaysRegex")||Z.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(v(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Rt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},fi.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},fi.meridiem=function(e,t,i){return 11<e?i?"pm":"PM":i?"am":"AM"},se("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===M(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),g.lang=e("moment.lang is deprecated. Use moment.locale instead.",se),g.langData=e("moment.langData is deprecated. Use moment.localeData instead.",re);var mi=Math.abs,gi=Re("ms"),vi=Re("s"),_i=Re("m"),yi=Re("h"),bi=Re("d"),xi=Re("w"),wi=Re("M"),Mi=Re("y"),ji=We("milliseconds"),ki=We("seconds"),Li=We("minutes"),Si=We("hours"),Ti=We("days"),Di=We("months"),Ci=We("years"),Yi=Math.round,Ei={s:45,m:45,h:22,d:26,M:11},Hi=Math.abs,Ai=ge.prototype;return Ai.abs=function(){var e=this._data;return this._milliseconds=mi(this._milliseconds),this._days=mi(this._days),this._months=mi(this._months),e.milliseconds=mi(e.milliseconds),e.seconds=mi(e.seconds),e.minutes=mi(e.minutes),e.hours=mi(e.hours),e.months=mi(e.months),e.years=mi(e.years),this},Ai.add=function(e,t){return Pe(this,e,t,1)},Ai.subtract=function(e,t){return Pe(this,e,t,-1)},Ai.as=function(e){var t,i,n=this._milliseconds;if("month"===(e=T(e))||"year"===e)return t=this._days+n/864e5,i=this._months+Ne(t),"month"===e?i:i/12;switch(t=this._days+Math.round(Oe(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;case"millisecond":return Math.floor(864e5*t)+n;default:throw new Error("Unknown unit "+e)}},Ai.asMilliseconds=gi,Ai.asSeconds=vi,Ai.asMinutes=_i,Ai.asHours=yi,Ai.asDays=bi,Ai.asWeeks=xi,Ai.asMonths=wi,Ai.asYears=Mi,Ai.valueOf=function(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*M(this._months/12)},Ai._bubble=function(){var e,t,i,n,s,a=this._milliseconds,r=this._days,o=this._months,l=this._data;return 0<=a&&0<=r&&0<=o||a<=0&&r<=0&&o<=0||(a+=864e5*ze(Oe(o)+r),o=r=0),l.milliseconds=a%1e3,e=w(a/1e3),l.seconds=e%60,t=w(e/60),l.minutes=t%60,i=w(t/60),l.hours=i%24,o+=s=w(Ne(r+=w(i/24))),r-=ze(Oe(s)),n=w(o/12),o%=12,l.days=r,l.months=o,l.years=n,this},Ai.get=function(e){return this[(e=T(e))+"s"]()},Ai.milliseconds=ji,Ai.seconds=ki,Ai.minutes=Li,Ai.hours=Si,Ai.days=Ti,Ai.weeks=function(){return w(this.days()/7)},Ai.months=Di,Ai.years=Ci,Ai.humanize=function(e){var t,i,n,s,a,r,o,l,h,u,d,c=this.localeData(),p=(i=!e,n=c,s=je(t=this).abs(),a=Yi(s.as("s")),r=Yi(s.as("m")),o=Yi(s.as("h")),l=Yi(s.as("d")),h=Yi(s.as("M")),u=Yi(s.as("y")),(d=a<Ei.s&&["s",a]||r<=1&&["m"]||r<Ei.m&&["mm",r]||o<=1&&["h"]||o<Ei.h&&["hh",o]||l<=1&&["d"]||l<Ei.d&&["dd",l]||h<=1&&["M"]||h<Ei.M&&["MM",h]||u<=1&&["y"]||["yy",u])[2]=i,d[3]=0<+t,d[4]=n,function(e,t,i,n,s){return s.relativeTime(t||1,!!i,e,n)}.apply(null,d));return e&&(p=c.pastFuture(+this,p)),c.postformat(p)},Ai.toISOString=Ve,Ai.toString=Ve,Ai.toJSON=Ve,Ai.locale=De,Ai.localeData=Ce,Ai.toIsoString=e("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ve),Ai.lang=oi,H("X",0,0,"unix"),H("x",0,0,"valueOf"),F("x",mt),F("X",/[+-]?\d+(\.\d{1,3})?/),z("X",function(e,t,i){i._d=new Date(1e3*parseFloat(e,10))}),z("x",function(e,t,i){i._d=new Date(M(e))}),g.version="2.17.1",Be=fe,g.fn=pi,g.min=function(){return me("isBefore",[].slice.call(arguments,0))},g.max=function(){return me("isAfter",[].slice.call(arguments,0))},g.now=function(){return Date.now?Date.now():+new Date},g.utc=p,g.unix=function(e){return fe(1e3*e)},g.months=function(e,t){return Fe(e,t,"months")},g.isDate=h,g.locale=se,g.invalid=m,g.duration=je,g.isMoment=x,g.weekdays=function(e,t,i){return $e(e,t,i,"weekdays")},g.parseZone=function(){return fe.apply(null,arguments).parseZone()},g.localeData=re,g.isDuration=ve,g.monthsShort=function(e,t){return Fe(e,t,"monthsShort")},g.weekdaysMin=function(e,t,i){return $e(e,t,i,"weekdaysMin")},g.defineLocale=ae,g.updateLocale=function(e,t){if(null!=t){var i,n=Bt;null!=Ut[e]&&(n=Ut[e]._config),(i=new S(t=s(n,t))).parentLocale=Ut[e],Ut[e]=i,se(e)}else null!=Ut[e]&&(null!=Ut[e].parentLocale?Ut[e]=Ut[e].parentLocale:null!=Ut[e]&&delete Ut[e]);return Ut[e]},g.locales=function(){return Je(Ut)},g.weekdaysShort=function(e,t,i){return $e(e,t,i,"weekdaysShort")},g.normalizeUnits=T,g.relativeTimeRounding=function(e){return void 0===e?Yi:"function"==typeof e&&(Yi=e,!0)},g.relativeTimeThreshold=function(e,t){return void 0!==Ei[e]&&(void 0===t?Ei[e]:(Ei[e]=t,!0))},g.calendarFormat=function(e,t){var i=e.diff(t,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"},g.prototype=pi,g}),function(e){"function"==typeof define&&define.amd?define(["jquery","moment"],e):"object"==typeof exports?module.exports=e(require("jquery"),require("moment")):e(jQuery,moment)}(function(A,I){function u(e){return T(e,xe)}function a(e,t){t.left&&e.css({"border-left-width":1,"margin-left":t.left-1}),t.right&&e.css({"border-right-width":1,"margin-right":t.right-1})}function r(e){e.css({"margin-left":"","margin-right":"","border-left-width":"","border-right-width":""})}function p(){A("body").addClass("fc-not-allowed")}function f(){A("body").removeClass("fc-not-allowed")}function i(s,e,t){var a=Math.floor(e/s.length),r=Math.floor(e-a*(s.length-1)),o=[],l=[],h=[],u=0;n(s),s.each(function(e,t){var i=e===s.length-1?r:a,n=A(t).outerHeight(!0);n<i?(o.push(t),l.push(n),h.push(A(t).height())):u+=n}),t&&(e-=u,a=Math.floor(e/o.length),r=Math.floor(e-a*(o.length-1))),A(o).each(function(e,t){var i=e===o.length-1?r:a,n=l[e],s=i-(n-h[e]);n<i&&A(t).height(s)})}function n(e){e.height("")}function e(e){var n=0;return e.find("> *").each(function(e,t){var i=A(t).outerWidth();n<i&&(n=i)}),n++,e.width(n),n}function t(e,t){var i,n=e.add(t);return n.css({position:"relative",left:-1}),i=e.outerHeight()-t.outerHeight(),n.css({position:"",left:""}),i}function d(e){var t=e.css("position"),i=e.parents().filter(function(){var e=A(this);return/(auto|scroll)/.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))}).eq(0);return"fixed"!==t&&i.length?i:A(e[0].ownerDocument||document)}function c(e,t){var i=e.offset(),n=i.left-(t?t.left:0),s=i.top-(t?t.top:0);return{left:n,right:n+e.outerWidth(),top:s,bottom:s+e.outerHeight()}}function s(e,t){var i=e.offset(),n=o(e),s=i.left+l(e,"border-left-width")+n.left-(t?t.left:0),a=i.top+l(e,"border-top-width")+n.top-(t?t.top:0);return{left:s,right:s+e[0].clientWidth,top:a,bottom:a+e[0].clientHeight}}function o(e){var t,i,n=e.innerWidth()-e[0].clientWidth,s={left:0,right:0,top:0,bottom:e.innerHeight()-e[0].clientHeight};return null===we&&(t=A("<div><div/></div>").css({position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}).appendTo("body"),i=t.children().offset().left>t.offset().left,t.remove(),we=i),we&&"rtl"==e.css("direction")?s.left=n:s.right=n,s}function l(e,t){return parseFloat(e.css(t))||0}function h(e){return 1==e.which&&!e.ctrlKey}function m(e){if(void 0!==e.pageX)return e.pageX;var t=e.originalEvent.touches;return t?t[0].pageX:void 0}function g(e){if(void 0!==e.pageY)return e.pageY;var t=e.originalEvent.touches;return t?t[0].pageY:void 0}function v(e){return/^touch/.test(e.type)}function _(e){e.preventDefault()}function y(e,t){var i={left:Math.max(e.left,t.left),right:Math.min(e.right,t.right),top:Math.max(e.top,t.top),bottom:Math.min(e.bottom,t.bottom)};return i.left<i.right&&i.top<i.bottom&&i}function b(e){var t,i,n=[],s=[];for("string"==typeof e?s=e.split(/\s*,\s*/):"function"==typeof e?s=[e]:A.isArray(e)&&(s=e),t=0;t<s.length;t++)"string"==typeof(i=s[t])?n.push("-"==i.charAt(0)?{field:i.substring(1),order:-1}:{field:i,order:1}):"function"==typeof i&&n.push({func:i});return n}function x(e,t,i){var n,s;for(n=0;n<i.length;n++)if(s=w(e,t,i[n]))return s;return 0}function w(e,t,i){return i.func?i.func(e,t):M(e[i.field],t[i.field])*(i.order||1)}function M(e,t){return e||t?null==t?-1:null==e?1:"string"===A.type(e)||"string"===A.type(t)?String(e).localeCompare(String(t)):e-t:0}function j(e,t){var i,n,s,a,r=e.start,o=e.end,l=t.start,h=t.end;if(l<o&&r<h)return l<=r?(i=r.clone(),s=!0):(i=l.clone(),s=!1),o<=h?(n=o.clone(),a=!0):(n=h.clone(),a=!1),{start:i,end:n,isStart:s,isEnd:a}}function F(e,t){return I.duration({days:e.clone().stripTime().diff(t.clone().stripTime(),"days"),ms:e.time()-t.time()})}function $(e,t,i){return I.duration(Math.round(e.diff(t,i,!0)),i)}function k(e,t){var i,n,s,a,r,o;for(i=0;i<je.length&&(n=je[i],a=n,r=e,!(1<=(s=null!=(o=t)?o.diff(r,a,!0):I.isDuration(r)?r.as(a):r.end.diff(r.start,a,!0))&&V(s)));i++);return n}function L(e,t){var i,n;return S(e)||S(t)?e/t:(i=e.asMonths(),n=t.asMonths(),1<=Math.abs(i)&&V(i)&&1<=Math.abs(n)&&V(n)?i/n:e.asDays()/t.asDays())}function S(e){return Boolean(e.hours()||e.minutes()||e.seconds()||e.milliseconds())}function P(e){return/^\d+\:\d+(?:\:\d+\.?(?:\d{3})?)?$/.test(e)}function T(e,t){var i,n,s,a,r,o,l={};if(t)for(i=0;i<t.length;i++){for(n=t[i],s=[],a=e.length-1;0<=a;a--)if("object"==typeof(r=e[a][n]))s.unshift(r);else if(void 0!==r){l[n]=r;break}s.length&&(l[n]=T(s))}for(i=e.length-1;0<=i;i--)for(n in o=e[i])n in l||(l[n]=o[n]);return l}function H(e){var t=function(){};return t.prototype=e,new t}function D(e,t){for(var i in e)C(e,i)&&(t[i]=e[i])}function C(e,t){return ke.call(e,t)}function z(e,t,i){if(A.isFunction(e)&&(e=[e]),e){var n,s;for(n=0;n<e.length;n++)s=e[n].apply(t,i)||s;return s}}function N(){for(var e=0;e<arguments.length;e++)if(void 0!==arguments[e])return arguments[e]}function Y(e){return(e+"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#039;").replace(/"/g,"&quot;").replace(/\n/g,"<br />")}function E(e){return e.replace(/&.*?;/g,"")}function O(e){var i=[];return A.each(e,function(e,t){null!=t&&i.push(e+":"+t)}),i.join(";")}function R(e){return e.charAt(0).toUpperCase()+e.slice(1)}function W(e,t){return e-t}function V(e){return e%1==0}function B(e,t){var i=e[t];return function(){return i.apply(e,arguments)}}function U(t,i,n){var s,a,r,o,l,h=function(){var e=+new Date-o;e<i?s=setTimeout(h,i-e):(s=null,n||(l=t.apply(r,a),r=a=null))};return function(){r=this,a=arguments,o=+new Date;var e=n&&!s;return s||(s=setTimeout(h,i)),e&&(l=t.apply(r,a),r=a=null),l}}function q(e,t,i){var n,s,a,r,o,l=e[0],h=1==e.length&&"string"==typeof l;return I.isMoment(l)||(o=l,"[object Date]"===Object.prototype.toString.call(o)||o instanceof Date)||void 0===l?r=I.apply(null,e):(s=n=!1,h?Le.test(l)?(e=[l+="-01"],s=n=!0):(a=Se.exec(l))&&(n=!a[5],s=!0):A.isArray(l)&&(s=!0),r=t||n?I.utc.apply(I,e):I.apply(null,e),n?(r._ambigTime=!0,r._ambigZone=!0):i&&(s?r._ambigZone=!0:h&&r.utcOffset(l))),r._fullCalendar=!0,r}function G(e,t){return De.format.call(e,t)}function X(e,t){var i,n="";for(i=0;i<t.length;i++)n+=J(e,t[i]);return n}function J(e,t){var i,n;return"string"==typeof t?t:(i=t.token)?Ye[i]?Ye[i](e):G(e,i):t.maybe&&(n=X(e,t.maybe)).match(/[1-9]/)?n:""}function K(e,t,i,n,s){return n=n||" - ",function(e,t,i,n,s){var a,r,o,l,h=e.clone().stripZone(),u=t.clone().stripZone(),d="",c="",p="",f="",m="";for(r=0;r<i.length&&!1!==(a=Z(e,t,h,u,i[r]));r++)d+=a;for(o=i.length-1;r<o&&!1!==(a=Z(e,t,h,u,i[o]));o--)c=a+c;for(l=r;l<=o;l++)p+=J(e,i[l]),f+=J(t,i[l]);return(p||f)&&(m=s?f+n+p:p+n+f),d+m+c}(e=ye.moment.parseZone(e),t=ye.moment.parseZone(t),Q(i=e.localeData().longDateFormat(i)||i),n,s)}function Z(e,t,i,n,s){var a,r;return"string"==typeof s?s:!!((a=s.token)&&((r=Ee[a.charAt(0)])&&i.isSame(n,r)))&&G(e,a)}function Q(e){return e in He?He[e]:He[e]=function e(t){for(var i,n=[],s=/\[([^\]]*)\]|\(([^\)]*)\)|(LTS|LT|(\w)\4*o?)|([^\w\[\(]+)/g;i=s.exec(t);)i[1]?n.push(i[1]):i[2]?n.push({maybe:e(i[2])}):i[3]?n.push({token:i[3]}):i[5]&&n.push(i[5]);return n}(e)}function ee(){}function te(e,t){D(t,e.prototype)}function ie(e){var t=A.Deferred(),n=t.promise();if("function"==typeof e&&e(function(e){ie.immediate&&(n._value=e),t.resolve(e)},function(){t.reject()}),ie.immediate){var s=n.then;n.then=function(e,t){var i=n.state();if("resolved"===i){if("function"==typeof e)return ie.resolve(e(n._value))}else if("rejected"===i&&"function"==typeof t)return t(),n;return s.call(n,e,t)}}return n}function ne(e){function t(i){return new ie(function(e){var t=function(){ie.resolve(i()).then(e).then(function(){n.shift(),n.length&&n[0]()})};n.push(t),1===n.length&&t()})}var n=[];this.add="number"==typeof e?U(t,e):t,this.addQuickly=t}function se(e,t){return!e&&!t||!(!e||!t)&&e.component===t.component&&ae(e,t)&&ae(t,e)}function ae(e,t){for(var i in e)if(!/^(component|left|right|top|bottom)$/.test(i)&&e[i]!==t[i])return!1;return!0}function re(e){return{start:e.start.clone(),end:e.end?e.end.clone():null,allDay:e.allDay}}function oe(e){var t=le(e);return"background"===t||"inverse-background"===t}function le(e){return N((e.source||{}).rendering,e.rendering)}function he(e,t){return e.start-t.start}function ue(e,t){var i,n;for(i=0;i<t.length;i++)if((n=t[i]).leftCol<=e.rightCol&&n.rightCol>=e.leftCol)return!0;return!1}function de(e,t){return e.leftCol-t.leftCol}function ce(e){var t,i,n=e.forwardSegs,s=0;if(void 0===e.forwardPressure){for(t=0;t<n.length;t++)ce(i=n[t]),s=Math.max(s,1+i.forwardPressure);e.forwardPressure=s}}function pe(e,t,i){i=i||[];for(var n=0;n<t.length;n++)s=e,a=t[n],s.bottom>a.top&&s.top<a.bottom&&i.push(t[n]);var s,a;return i}function fe(e){this.items=e||[]}function me(p,n){function t(){s&&(s.remove(),s=e.el=null)}function i(e){var i=A('<div class="fc-'+e+'"/>'),t=n.layout[e];return t&&A.each(t.split(" "),function(e){var t,d=A(),c=!0;A.each(this.split(","),function(e,t){var i,n,s,a,r,o,l,h,u;"title"==t?(d=d.add(A("<h2>&nbsp;</h2>")),c=!1):((i=(p.options.customButtons||{})[t])?(s=function(e){i.click&&i.click.call(u[0],e)},a="",r=i.text):(n=p.getViewSpec(t))?(s=function(){p.changeView(t)},m.push(t),a=n.buttonTextOverride,r=n.buttonTextDefault):p[t]&&(s=function(){p[t]()},a=(p.overrides.buttonText||{})[t],r=p.options.buttonText[t]),s&&(o=i?i.themeIcon:p.options.themeButtonIcons[t],l=i?i.icon:p.options.buttonIcons[t],h=a?Y(a):o&&p.options.theme?"<span class='ui-icon ui-icon-"+o+"'></span>":l&&!p.options.theme?"<span class='fc-icon fc-icon-"+l+"'></span>":Y(r),u=A('<button type="button" class="'+["fc-"+t+"-button",f+"-button",f+"-state-default"].join(" ")+'">'+h+"</button>").click(function(e){u.hasClass(f+"-state-disabled")||(s(e),(u.hasClass(f+"-state-active")||u.hasClass(f+"-state-disabled"))&&u.removeClass(f+"-state-hover"))}).mousedown(function(){u.not("."+f+"-state-active").not("."+f+"-state-disabled").addClass(f+"-state-down")}).mouseup(function(){u.removeClass(f+"-state-down")}).hover(function(){u.not("."+f+"-state-active").not("."+f+"-state-disabled").addClass(f+"-state-hover")},function(){u.removeClass(f+"-state-hover").removeClass(f+"-state-down")}),d=d.add(u)))}),c&&d.first().addClass(f+"-corner-left").end().last().addClass(f+"-corner-right").end(),1<d.length?(t=A("<div/>"),c&&t.addClass("fc-button-group"),t.append(d),i.append(t)):i.append(d)}),i}var e=this;e.setToolbarOptions=function(e){n=e},e.render=function(){var e=n.layout;f=p.options.theme?"ui":"fc",e?(s?s.empty():s=this.el=A("<div class='fc-toolbar "+n.extraClasses+"'/>"),s.append(i("left")).append(i("right")).append(i("center")).append('<div class="fc-clear"/>')):t()},e.removeElement=t,e.updateTitle=function(e){s&&s.find("h2").text(e)},e.activateButton=function(e){s&&s.find(".fc-"+e+"-button").addClass(f+"-state-active")},e.deactivateButton=function(e){s&&s.find(".fc-"+e+"-button").removeClass(f+"-state-active")},e.disableButton=function(e){s&&s.find(".fc-"+e+"-button").prop("disabled",!0).addClass(f+"-state-disabled")},e.enableButton=function(e){s&&s.find(".fc-"+e+"-button").prop("disabled",!1).removeClass(f+"-state-disabled")},e.getViewsWithButtons=function(){return m},e.el=null;var s,f,m=[]}function ge(i){A.each(et,function(e,t){null==i[e]&&(i[e]=t(i))})}function ve(e){return I.localeData(e)||I.localeData("en")}function _e(e){e._allDay=e.allDay,e._start=e.start.clone(),e._end=e.end?e.end.clone():null}var ye=A.fullCalendar={version:"3.1.0",internalApiVersion:7},be=ye.views={};A.fn.fullCalendar=function(a){var r=Array.prototype.slice.call(arguments,1),o=this;return this.each(function(e,t){var i,n=A(t),s=n.data("fullCalendar");"string"==typeof a?s&&A.isFunction(s[a])&&(i=s[a].apply(s,r),e||(o=i),"destroy"===a&&n.removeData("fullCalendar")):s||(s=new Je(n,a),n.data("fullCalendar",s),s.render())}),o};var xe=["header","footer","buttonText","buttonIcons","themeButtonIcons"];ye.intersectRanges=j,ye.applyAll=z,ye.debounce=U,ye.isInt=V,ye.htmlEscape=Y,ye.cssToStr=O,ye.proxy=B,ye.capitaliseFirstLetter=R,ye.getOuterRect=c,ye.getClientRect=s,ye.getContentRect=function(e,t){var i=e.offset(),n=i.left+l(e,"border-left-width")+l(e,"padding-left")-(t?t.left:0),s=i.top+l(e,"border-top-width")+l(e,"padding-top")-(t?t.top:0);return{left:n,right:n+e.width(),top:s,bottom:s+e.height()}},ye.getScrollbarWidths=o;var we=null;ye.preventDefault=_,ye.intersectRects=y,ye.parseFieldSpecs=b,ye.compareByFieldSpecs=x,ye.compareByFieldSpec=w,ye.flexibleCompare=M,ye.computeIntervalUnit=k,ye.divideRangeByDuration=function(e,t,i){var n;return S(i)?(t-e)/i:(n=i.asMonths(),1<=Math.abs(n)&&V(n)?t.diff(e,"months",!0)/n:t.diff(e,"days",!0)/i.asDays())},ye.divideDurationByDuration=L,ye.multiplyDuration=function(e,t){var i;return S(e)?I.duration(e*t):(i=e.asMonths(),1<=Math.abs(i)&&V(i)?I.duration({months:i*t}):I.duration({days:e.asDays()*t}))},ye.durationHasTime=S;var Me=["sun","mon","tue","wed","thu","fri","sat"],je=["year","month","week","day","hour","minute","second","millisecond"];ye.log=function(){var e=window.console;if(e&&e.log)return e.log.apply(e,arguments)},ye.warn=function(){var e=window.console;return e&&e.warn?e.warn.apply(e,arguments):ye.log.apply(ye,arguments)};var ke={}.hasOwnProperty;ye.createObject=H;var Le=/^\s*\d{4}-\d\d$/,Se=/^\s*\d{4}-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?)?$/,Te=I.fn,De=A.extend({},Te),Ce=I.momentProperties;Ce.push("_fullCalendar"),Ce.push("_ambigTime"),Ce.push("_ambigZone"),ye.moment=function(){return q(arguments)},ye.moment.utc=function(){var e=q(arguments,!0);return e.hasTime()&&e.utc(),e},ye.moment.parseZone=function(){return q(arguments,!0,!0)},Te.week=Te.weeks=function(e){var t=this._locale._fullCalendar_weekCalc;return null==e&&"function"==typeof t?t(this):"ISO"===t?De.isoWeek.apply(this,arguments):De.week.apply(this,arguments)},Te.time=function(e){if(!this._fullCalendar)return De.time.apply(this,arguments);if(null==e)return I.duration({hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()});this._ambigTime=!1,I.isDuration(e)||I.isMoment(e)||(e=I.duration(e));var t=0;return I.isDuration(e)&&(t=24*Math.floor(e.asDays())),this.hours(t+e.hours()).minutes(e.minutes()).seconds(e.seconds()).milliseconds(e.milliseconds())},Te.stripTime=function(){return this._ambigTime||(this.utc(!0),this.set({hours:0,minutes:0,seconds:0,ms:0}),this._ambigTime=!0,this._ambigZone=!0),this},Te.hasTime=function(){return!this._ambigTime},Te.stripZone=function(){var e;return this._ambigZone||(e=this._ambigTime,this.utc(!0),this._ambigTime=e||!1,this._ambigZone=!0),this},Te.hasZone=function(){return!this._ambigZone},Te.local=function(e){return De.local.call(this,this._ambigZone||e),this._ambigTime=!1,this._ambigZone=!1,this},Te.utc=function(e){return De.utc.call(this,e),this._ambigTime=!1,this._ambigZone=!1,this},Te.utcOffset=function(e){return null!=e&&(this._ambigTime=!1,this._ambigZone=!1),De.utcOffset.apply(this,arguments)},Te.format=function(){return this._fullCalendar&&arguments[0]?(e=this,t=arguments[0],X(e,Q(t))):this._ambigTime?G(this,"YYYY-MM-DD"):this._ambigZone?G(this,"YYYY-MM-DD[T]HH:mm:ss"):De.format.apply(this,arguments);var e,t},Te.toISOString=function(){return this._ambigTime?G(this,"YYYY-MM-DD"):this._ambigZone?G(this,"YYYY-MM-DD[T]HH:mm:ss"):De.toISOString.apply(this,arguments)};var Ye={t:function(e){return G(e,"a").charAt(0)},T:function(e){return G(e,"A").charAt(0)}};ye.formatRange=K;var Ee={Y:"year",M:"month",D:"day",d:"day",A:"second",a:"second",T:"second",t:"second",H:"second",h:"second",m:"second",s:"second"},He={},Ae={Y:{value:1,unit:"year"},M:{value:2,unit:"month"},W:{value:3,unit:"week"},w:{value:3,unit:"week"},D:{value:4,unit:"day"},d:{value:4,unit:"day"}};ye.queryMostGranularFormatUnit=function(e){var t,i,n,s,a=Q(e);for(t=0;t<a.length;t++)(i=a[t]).token&&((n=Ae[i.token.charAt(0)])&&(!s||n.value>s.value)&&(s=n));return s?s.unit:null},(ye.Class=ee).extend=function(){var e,t,i,n,s,a=arguments.length;for(e=0;e<a;e++)t=arguments[e],e<a-1&&te(this,t);return i=this,C(n=t||{},"constructor")&&(s=n.constructor),"function"!=typeof s&&(s=n.constructor=function(){i.apply(this,arguments)}),s.prototype=H(i.prototype),D(n,s.prototype),D(i,s),s},ee.mixin=function(e){te(this,e)},(ye.Promise=ie).immediate=!0,ie.resolve=function(i){if(i&&"function"==typeof i.resolve)return i.promise();if(i&&"function"==typeof i.then)return i;var n=A.Deferred().resolve(i).promise();if(ie.immediate){var s=n.then;n._value=i,n.then=function(e,t){return"function"==typeof e?ie.resolve(e(i)):s.call(n,e,t)}}return n},ie.reject=function(){return A.Deferred().reject().promise()},ie.all=function(e){var t,i,n,s=!1;if(ie.immediate)for(s=!0,t=[],i=0;i<e.length;i++)if((n=e[i])&&"function"==typeof n.state&&"resolved"===n.state()&&"_value"in n)t.push(n._value);else{if(n&&"function"==typeof n.then){s=!1;break}t.push(n)}return s?ie.resolve(t):A.when.apply(A.when,e).then(function(){return A.when(A.makeArray(arguments))})},ye.TaskQueue=ne;var Ie,Fe=ye.EmitterMixin={on:function(e,t){return A(this).on(e,this._prepareIntercept(t)),this},one:function(e,t){return A(this).one(e,this._prepareIntercept(t)),this},_prepareIntercept:function(i){var e=function(e,t){return i.apply(t.context||this,t.args||[])};return i.guid||(i.guid=A.guid++),e.guid=i.guid,e},off:function(e,t){return A(this).off(e,t),this},trigger:function(e){var t=Array.prototype.slice.call(arguments,1);return A(this).triggerHandler(e,{args:t}),this},triggerWith:function(e,t,i){return A(this).triggerHandler(e,{context:t,args:i}),this}},$e=ye.ListenerMixin=(Ie=0,{listenerId:null,listenTo:function(e,t,i){if("object"==typeof t)for(var n in t)t.hasOwnProperty(n)&&this.listenTo(e,n,t[n]);else"string"==typeof t&&e.on(t+"."+this.getListenerNamespace(),A.proxy(i,this))},stopListeningTo:function(e,t){e.off((t||"")+"."+this.getListenerNamespace())},getListenerNamespace:function(){return null==this.listenerId&&(this.listenerId=Ie++),"_listener"+this.listenerId}}),Pe={isIgnoringMouse:!1,delayUnignoreMouse:null,initMouseIgnoring:function(e){this.delayUnignoreMouse=U(B(this,"unignoreMouse"),e||1e3)},tempIgnoreMouse:function(){this.isIgnoringMouse=!0,this.delayUnignoreMouse()},unignoreMouse:function(){this.isIgnoringMouse=!1}},ze=ee.extend($e,{isHidden:!0,options:null,el:null,margin:10,constructor:function(e){this.options=e||{}},show:function(){this.isHidden&&(this.el||this.render(),this.el.show(),this.position(),this.isHidden=!1,this.trigger("show"))},hide:function(){this.isHidden||(this.el.hide(),this.isHidden=!0,this.trigger("hide"))},render:function(){var e=this,t=this.options;this.el=A('<div class="fc-popover"/>').addClass(t.className||"").css({top:0,left:0}).append(t.content).appendTo(t.parentEl),this.el.on("click",".fc-close",function(){e.hide()}),t.autoHide&&this.listenTo(A(document),"mousedown",this.documentMousedown)},documentMousedown:function(e){this.el&&!A(e.target).closest(this.el).length&&this.hide()},removeElement:function(){this.hide(),this.el&&(this.el.remove(),this.el=null),this.stopListeningTo(A(document),"mousedown")},position:function(){var e,t,i,n,s,a=this.options,r=this.el.offsetParent().offset(),o=this.el.outerWidth(),l=this.el.outerHeight(),h=A(window),u=d(this.el);n=a.top||0,s=void 0!==a.left?a.left:void 0!==a.right?a.right-o:0,u.is(window)||u.is(document)?(u=h,t=e=0):(e=(i=u.offset()).top,t=i.left),e+=h.scrollTop(),t+=h.scrollLeft(),!1!==a.viewportConstrain&&(n=Math.min(n,e+u.outerHeight()-l-this.margin),n=Math.max(n,e+this.margin),s=Math.min(s,t+u.outerWidth()-o-this.margin),s=Math.max(s,t+this.margin)),this.el.css({top:n-r.top,left:s-r.left})},trigger:function(e){this.options[e]&&this.options[e].apply(this,Array.prototype.slice.call(arguments,1))}}),Ne=ye.CoordCache=ee.extend({els:null,forcedOffsetParentEl:null,origin:null,boundingRect:null,isHorizontal:!1,isVertical:!1,lefts:null,rights:null,tops:null,bottoms:null,constructor:function(e){this.els=A(e.els),this.isHorizontal=e.isHorizontal,this.isVertical=e.isVertical,this.forcedOffsetParentEl=e.offsetParent?A(e.offsetParent):null},build:function(){var e=this.forcedOffsetParentEl;!e&&0<this.els.length&&(e=this.els.eq(0).offsetParent()),this.origin=e?e.offset():null,this.boundingRect=this.queryBoundingRect(),this.isHorizontal&&this.buildElHorizontals(),this.isVertical&&this.buildElVerticals()},clear:function(){this.origin=null,this.boundingRect=null,this.lefts=null,this.rights=null,this.tops=null,this.bottoms=null},ensureBuilt:function(){this.origin||this.build()},buildElHorizontals:function(){var a=[],r=[];this.els.each(function(e,t){var i=A(t),n=i.offset().left,s=i.outerWidth();a.push(n),r.push(n+s)}),this.lefts=a,this.rights=r},buildElVerticals:function(){var a=[],r=[];this.els.each(function(e,t){var i=A(t),n=i.offset().top,s=i.outerHeight();a.push(n),r.push(n+s)}),this.tops=a,this.bottoms=r},getHorizontalIndex:function(e){this.ensureBuilt();var t,i=this.lefts,n=this.rights,s=i.length;for(t=0;t<s;t++)if(e>=i[t]&&e<n[t])return t},getVerticalIndex:function(e){this.ensureBuilt();var t,i=this.tops,n=this.bottoms,s=i.length;for(t=0;t<s;t++)if(e>=i[t]&&e<n[t])return t},getLeftOffset:function(e){return this.ensureBuilt(),this.lefts[e]},getLeftPosition:function(e){return this.ensureBuilt(),this.lefts[e]-this.origin.left},getRightOffset:function(e){return this.ensureBuilt(),this.rights[e]},getRightPosition:function(e){return this.ensureBuilt(),this.rights[e]-this.origin.left},getWidth:function(e){return this.ensureBuilt(),this.rights[e]-this.lefts[e]},getTopOffset:function(e){return this.ensureBuilt(),this.tops[e]},getTopPosition:function(e){return this.ensureBuilt(),this.tops[e]-this.origin.top},getBottomOffset:function(e){return this.ensureBuilt(),this.bottoms[e]},getBottomPosition:function(e){return this.ensureBuilt(),this.bottoms[e]-this.origin.top},getHeight:function(e){return this.ensureBuilt(),this.bottoms[e]-this.tops[e]},queryBoundingRect:function(){var e;return 0<this.els.length&&!(e=d(this.els.eq(0))).is(document)?s(e):null},isPointInBounds:function(e,t){return this.isLeftInBounds(e)&&this.isTopInBounds(t)},isLeftInBounds:function(e){return!this.boundingRect||e>=this.boundingRect.left&&e<this.boundingRect.right},isTopInBounds:function(e){return!this.boundingRect||e>=this.boundingRect.top&&e<this.boundingRect.bottom}}),Oe=ye.DragListener=ee.extend($e,Pe,{options:null,subjectEl:null,originX:null,originY:null,scrollEl:null,isInteracting:!1,isDistanceSurpassed:!1,isDelayEnded:!1,isDragging:!1,isTouch:!1,delay:null,delayTimeoutId:null,minDistance:null,handleTouchScrollProxy:null,constructor:function(e){this.options=e||{},this.handleTouchScrollProxy=B(this,"handleTouchScroll"),this.initMouseIgnoring(500)},startInteraction:function(e,t){var i=v(e);if("mousedown"===e.type){if(this.isIgnoringMouse)return;if(!h(e))return;e.preventDefault()}this.isInteracting||(t=t||{},this.delay=N(t.delay,this.options.delay,0),this.minDistance=N(t.distance,this.options.distance,0),this.subjectEl=this.options.subjectEl,this.isInteracting=!0,this.isTouch=i,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,this.originX=m(e),this.originY=g(e),this.scrollEl=d(A(e.target)),this.bindHandlers(),this.initAutoScroll(),this.handleInteractionStart(e),this.startDelay(e),this.minDistance||this.handleDistanceSurpassed(e))},handleInteractionStart:function(e){this.trigger("interactionStart",e)},endInteraction:function(e,t){this.isInteracting&&(this.endDrag(e),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null),this.destroyAutoScroll(),this.unbindHandlers(),this.isInteracting=!1,this.handleInteractionEnd(e,t),this.isTouch&&this.tempIgnoreMouse())},handleInteractionEnd:function(e,t){this.trigger("interactionEnd",e,t||!1)},bindHandlers:function(){var e,t=this,i=1;this.isTouch?(this.listenTo(A(document),{touchmove:this.handleTouchMove,touchend:this.endInteraction,touchcancel:this.endInteraction,touchstart:function(e){i?i--:t.endInteraction(e,!0)}}),e=this.handleTouchScrollProxy,!(window.addEventListener&&(window.addEventListener("scroll",e,!0),1))&&this.scrollEl&&this.listenTo(this.scrollEl,"scroll",this.handleTouchScroll)):this.listenTo(A(document),{mousemove:this.handleMouseMove,mouseup:this.endInteraction}),this.listenTo(A(document),{selectstart:_,contextmenu:_})},unbindHandlers:function(){var e;this.stopListeningTo(A(document)),e=this.handleTouchScrollProxy,!!window.removeEventListener&&window.removeEventListener("scroll",e,!0),this.scrollEl&&this.stopListeningTo(this.scrollEl,"scroll")},startDrag:function(e,t){this.startInteraction(e,t),this.isDragging||(this.isDragging=!0,this.handleDragStart(e))},handleDragStart:function(e){this.trigger("dragStart",e)},handleMove:function(e){var t=m(e)-this.originX,i=g(e)-this.originY,n=this.minDistance;this.isDistanceSurpassed||n*n<=t*t+i*i&&this.handleDistanceSurpassed(e),this.isDragging&&this.handleDrag(t,i,e)},handleDrag:function(e,t,i){this.trigger("drag",e,t,i),this.updateAutoScroll(i)},endDrag:function(e){this.isDragging&&(this.isDragging=!1,this.handleDragEnd(e))},handleDragEnd:function(e){this.trigger("dragEnd",e)},startDelay:function(e){var t=this;this.delay?this.delayTimeoutId=setTimeout(function(){t.handleDelayEnd(e)},this.delay):this.handleDelayEnd(e)},handleDelayEnd:function(e){this.isDelayEnded=!0,this.isDistanceSurpassed&&this.startDrag(e)},handleDistanceSurpassed:function(e){this.isDistanceSurpassed=!0,this.isDelayEnded&&this.startDrag(e)},handleTouchMove:function(e){this.isDragging&&e.preventDefault(),this.handleMove(e)},handleMouseMove:function(e){this.handleMove(e)},handleTouchScroll:function(e){this.isDragging||this.endInteraction(e,!0)},trigger:function(e){this.options[e]&&this.options[e].apply(this,Array.prototype.slice.call(arguments,1)),this["_"+e]&&this["_"+e].apply(this,Array.prototype.slice.call(arguments,1))}});Oe.mixin({isAutoScroll:!1,scrollBounds:null,scrollTopVel:null,scrollLeftVel:null,scrollIntervalId:null,scrollSensitivity:30,scrollSpeed:200,scrollIntervalMs:50,initAutoScroll:function(){var e=this.scrollEl;this.isAutoScroll=this.options.scroll&&e&&!e.is(window)&&!e.is(document),this.isAutoScroll&&this.listenTo(e,"scroll",U(this.handleDebouncedScroll,100))},destroyAutoScroll:function(){this.endAutoScroll(),this.isAutoScroll&&this.stopListeningTo(this.scrollEl,"scroll")},computeScrollBounds:function(){this.isAutoScroll&&(this.scrollBounds=c(this.scrollEl))},updateAutoScroll:function(e){var t,i,n,s,a=this.scrollSensitivity,r=this.scrollBounds,o=0,l=0;r&&(t=(a-(g(e)-r.top))/a,i=(a-(r.bottom-g(e)))/a,n=(a-(m(e)-r.left))/a,s=(a-(r.right-m(e)))/a,0<=t&&t<=1?o=t*this.scrollSpeed*-1:0<=i&&i<=1&&(o=i*this.scrollSpeed),0<=n&&n<=1?l=n*this.scrollSpeed*-1:0<=s&&s<=1&&(l=s*this.scrollSpeed)),this.setScrollVel(o,l)},setScrollVel:function(e,t){this.scrollTopVel=e,this.scrollLeftVel=t,this.constrainScrollVel(),!this.scrollTopVel&&!this.scrollLeftVel||this.scrollIntervalId||(this.scrollIntervalId=setInterval(B(this,"scrollIntervalFunc"),this.scrollIntervalMs))},constrainScrollVel:function(){var e=this.scrollEl;this.scrollTopVel<0?e.scrollTop()<=0&&(this.scrollTopVel=0):0<this.scrollTopVel&&e.scrollTop()+e[0].clientHeight>=e[0].scrollHeight&&(this.scrollTopVel=0),this.scrollLeftVel<0?e.scrollLeft()<=0&&(this.scrollLeftVel=0):0<this.scrollLeftVel&&e.scrollLeft()+e[0].clientWidth>=e[0].scrollWidth&&(this.scrollLeftVel=0)},scrollIntervalFunc:function(){var e=this.scrollEl,t=this.scrollIntervalMs/1e3;this.scrollTopVel&&e.scrollTop(e.scrollTop()+this.scrollTopVel*t),this.scrollLeftVel&&e.scrollLeft(e.scrollLeft()+this.scrollLeftVel*t),this.constrainScrollVel(),this.scrollTopVel||this.scrollLeftVel||this.endAutoScroll()},endAutoScroll:function(){this.scrollIntervalId&&(clearInterval(this.scrollIntervalId),this.scrollIntervalId=null,this.handleScrollEnd())},handleDebouncedScroll:function(){this.scrollIntervalId||this.handleScrollEnd()},handleScrollEnd:function(){}});var Re=Oe.extend({component:null,origHit:null,hit:null,coordAdjust:null,constructor:function(e,t){Oe.call(this,t),this.component=e},handleInteractionStart:function(e){var t,i,n,s,a,r,o,l,h=this.subjectEl;this.computeCoords(),e?(n=i={left:m(e),top:g(e)},h&&(t=c(h),o=n,l=t,n={left:Math.min(Math.max(o.left,l.left),l.right),top:Math.min(Math.max(o.top,l.top),l.bottom)}),this.origHit=this.queryHit(n.left,n.top),h&&this.options.subjectCenter&&(this.origHit&&(t=y(this.origHit,t)||t),n={left:((r=t).left+r.right)/2,top:(r.top+r.bottom)/2}),this.coordAdjust=(a=i,{left:(s=n).left-a.left,top:s.top-a.top})):(this.origHit=null,this.coordAdjust=null),Oe.prototype.handleInteractionStart.apply(this,arguments)},computeCoords:function(){this.component.prepareHits(),this.computeScrollBounds()},handleDragStart:function(e){var t;Oe.prototype.handleDragStart.apply(this,arguments),(t=this.queryHit(m(e),g(e)))&&this.handleHitOver(t)},handleDrag:function(e,t,i){var n;Oe.prototype.handleDrag.apply(this,arguments),se(n=this.queryHit(m(i),g(i)),this.hit)||(this.hit&&this.handleHitOut(),n&&this.handleHitOver(n))},handleDragEnd:function(){this.handleHitDone(),Oe.prototype.handleDragEnd.apply(this,arguments)},handleHitOver:function(e){var t=se(e,this.origHit);this.hit=e,this.trigger("hitOver",this.hit,t,this.origHit)},handleHitOut:function(){this.hit&&(this.trigger("hitOut",this.hit),this.handleHitDone(),this.hit=null)},handleHitDone:function(){this.hit&&this.trigger("hitDone",this.hit)},handleInteractionEnd:function(){Oe.prototype.handleInteractionEnd.apply(this,arguments),this.origHit=null,this.hit=null,this.component.releaseHits()},handleScrollEnd:function(){Oe.prototype.handleScrollEnd.apply(this,arguments),this.computeCoords()},queryHit:function(e,t){return this.coordAdjust&&(e+=this.coordAdjust.left,t+=this.coordAdjust.top),this.component.queryHit(e,t)}}),We=ee.extend($e,{options:null,sourceEl:null,el:null,parentEl:null,top0:null,left0:null,y0:null,x0:null,topDelta:null,leftDelta:null,isFollowing:!1,isHidden:!1,isAnimating:!1,constructor:function(e,t){this.options=t=t||{},this.sourceEl=e,this.parentEl=t.parentEl?A(t.parentEl):e.parent()},start:function(e){this.isFollowing||(this.isFollowing=!0,this.y0=g(e),this.x0=m(e),this.topDelta=0,this.leftDelta=0,this.isHidden||this.updatePosition(),v(e)?this.listenTo(A(document),"touchmove",this.handleMove):this.listenTo(A(document),"mousemove",this.handleMove))},stop:function(e,t){function i(){n.isAnimating=!1,n.removeElement(),n.top0=n.left0=null,t&&t()}var n=this,s=this.options.revertDuration;this.isFollowing&&!this.isAnimating&&(this.isFollowing=!1,this.stopListeningTo(A(document)),e&&s&&!this.isHidden?(this.isAnimating=!0,this.el.animate({top:this.top0,left:this.left0},{duration:s,complete:i})):i())},getEl:function(){var e=this.el;return e||((e=this.el=this.sourceEl.clone().addClass(this.options.additionalClass||"").css({position:"absolute",visibility:"",display:this.isHidden?"none":"",margin:0,right:"auto",bottom:"auto",width:this.sourceEl.width(),height:this.sourceEl.height(),opacity:this.options.opacity||"",zIndex:this.options.zIndex})).addClass("fc-unselectable"),e.appendTo(this.parentEl)),e},removeElement:function(){this.el&&(this.el.remove(),this.el=null)},updatePosition:function(){var e,t;this.getEl(),null===this.top0&&(e=this.sourceEl.offset(),t=this.el.offsetParent().offset(),this.top0=e.top-t.top,this.left0=e.left-t.left),this.el.css({top:this.top0+this.topDelta,left:this.left0+this.leftDelta})},handleMove:function(e){this.topDelta=g(e)-this.y0,this.leftDelta=m(e)-this.x0,this.isHidden||this.updatePosition()},hide:function(){this.isHidden||(this.isHidden=!0,this.el&&this.el.hide())},show:function(){this.isHidden&&(this.isHidden=!1,this.updatePosition(),this.getEl().show())}}),Ve=ye.Grid=ee.extend($e,Pe,{hasDayInteractions:!0,view:null,isRTL:null,start:null,end:null,el:null,elsByFill:null,eventTimeFormat:null,displayEventTime:null,displayEventEnd:null,minResizeDuration:null,largeUnit:null,dayDragListener:null,segDragListener:null,segResizeListener:null,externalDragListener:null,constructor:function(e){this.view=e,this.isRTL=e.opt("isRTL"),this.elsByFill={},this.dayDragListener=this.buildDayDragListener(),this.initMouseIgnoring()},computeEventTimeFormat:function(){return this.view.opt("smallTimeFormat")},computeDisplayEventTime:function(){return!0},computeDisplayEventEnd:function(){return!0},setRange:function(e){this.start=e.start.clone(),this.end=e.end.clone(),this.rangeUpdated(),this.processRangeOptions()},rangeUpdated:function(){},processRangeOptions:function(){var e,t,i=this.view;this.eventTimeFormat=i.opt("eventTimeFormat")||i.opt("timeFormat")||this.computeEventTimeFormat(),null==(e=i.opt("displayEventTime"))&&(e=this.computeDisplayEventTime()),null==(t=i.opt("displayEventEnd"))&&(t=this.computeDisplayEventEnd()),this.displayEventTime=e,this.displayEventEnd=t},spanToSegs:function(e){},diffDates:function(e,t){return this.largeUnit?$(e,t,this.largeUnit):F(e,t)},prepareHits:function(){},releaseHits:function(){},queryHit:function(e,t){},getHitSpan:function(e){},getHitEl:function(e){},setElement:function(e){this.el=e,this.hasDayInteractions&&(e.addClass("fc-unselectable").on("selectstart",_),this.bindDayHandler("touchstart",this.dayTouchStart),this.bindDayHandler("mousedown",this.dayMousedown)),this.bindSegHandlers(),this.bindGlobalHandlers()},bindDayHandler:function(e,t){var i=this;this.el.on(e,function(e){if(!A(e.target).is(i.segSelector+","+i.segSelector+" *,.fc-more,a[data-goto]"))return t.call(i,e)})},removeElement:function(){this.unbindGlobalHandlers(),this.clearDragListeners(),this.el.remove()},renderSkeleton:function(){},renderDates:function(){},unrenderDates:function(){},bindGlobalHandlers:function(){this.listenTo(A(document),{dragstart:this.externalDragStart,sortstart:this.externalDragStart})},unbindGlobalHandlers:function(){this.stopListeningTo(A(document))},dayMousedown:function(e){this.isIgnoringMouse||this.dayDragListener.startInteraction(e,{})},dayTouchStart:function(e){var t=this.view,i=t.opt("selectLongPressDelay");(t.isSelected||t.selectedEvent)&&this.tempIgnoreMouse(),null==i&&(i=t.opt("longPressDelay")),this.dayDragListener.startInteraction(e,{delay:i})},buildDayDragListener:function(){var n,s,a=this,i=this.view,r=i.opt("selectable"),e=new Re(this,{scroll:i.opt("dragScroll"),interactionStart:function(){n=e.origHit,s=null},dragStart:function(){i.unselect()},hitOver:function(e,t,i){i&&(t||(n=null),r&&((s=a.computeSelection(a.getHitSpan(i),a.getHitSpan(e)))?a.renderSelection(s):!1===s&&p()))},hitOut:function(){s=n=null,a.unrenderSelection()},hitDone:function(){f()},interactionEnd:function(e,t){t||(n&&!a.isIgnoringMouse&&i.triggerDayClick(a.getHitSpan(n),a.getHitEl(n),e),s&&i.reportSelection(s,e))}});return e},clearDragListeners:function(){this.dayDragListener.endInteraction(),this.segDragListener&&this.segDragListener.endInteraction(),this.segResizeListener&&this.segResizeListener.endInteraction(),this.externalDragListener&&this.externalDragListener.endInteraction()},renderEventLocationHelper:function(e,t){var i=this.fabricateHelperEvent(e,t);return this.renderHelper(i,t)},fabricateHelperEvent:function(e,t){var i=t?H(t.event):{};return i.start=e.start.clone(),i.end=e.end?e.end.clone():null,i.allDay=null,this.view.calendar.normalizeEventDates(i),i.className=(i.className||[]).concat("fc-helper"),t||(i.editable=!1),i},renderHelper:function(e,t){},unrenderHelper:function(){},renderSelection:function(e){this.renderHighlight(e)},unrenderSelection:function(){this.unrenderHighlight()},computeSelection:function(e,t){var i=this.computeSelectionSpan(e,t);return!(i&&!this.view.calendar.isSelectionSpanAllowed(i))&&i},computeSelectionSpan:function(e,t){var i=[e.start,e.end,t.start,t.end];return i.sort(W),{start:i[0].clone(),end:i[3].clone()}},renderHighlight:function(e){this.renderFill("highlight",this.spanToSegs(e))},unrenderHighlight:function(){this.unrenderFill("highlight")},highlightSegClasses:function(){return["fc-highlight"]},renderBusinessHours:function(){},unrenderBusinessHours:function(){},getNowIndicatorUnit:function(){},renderNowIndicator:function(e){},unrenderNowIndicator:function(){},renderFill:function(e,t){},unrenderFill:function(e){var t=this.elsByFill[e];t&&(t.remove(),delete this.elsByFill[e])},renderFillSegEls:function(e,s){var t,a=this,r=this[e+"SegEl"],i="",o=[];if(s.length){for(t=0;t<s.length;t++)i+=this.fillSegHtml(e,s[t]);A(i).each(function(e,t){var i=s[e],n=A(t);r&&(n=r.call(a,i,n)),n&&((n=A(n)).is(a.fillSegTag)&&(i.el=n,o.push(i)))})}return o},fillSegTag:"div",fillSegHtml:function(e,t){var i=this[e+"SegClasses"],n=this[e+"SegCss"],s=i?i.call(this,t):[],a=O(n?n.call(this,t):{});return"<"+this.fillSegTag+(s.length?' class="'+s.join(" ")+'"':"")+(a?' style="'+a+'"':"")+" />"},getDayClasses:function(e,t){var i=this.view,n=i.calendar.getNow(),s=["fc-"+Me[e.day()]];return 1==i.intervalDuration.as("months")&&e.month()!=i.intervalStart.month()&&s.push("fc-other-month"),e.isSame(n,"day")?(s.push("fc-today"),!0!==t&&s.push(i.highlightStateClass)):e<n?s.push("fc-past"):s.push("fc-future"),s}});Ve.mixin({segSelector:".fc-event-container > *",mousedOverSeg:null,isDraggingSeg:!1,isResizingSeg:!1,isDraggingExternal:!1,segs:null,renderEvents:function(e){var t,i=[],n=[];for(t=0;t<e.length;t++)(oe(e[t])?i:n).push(e[t]);this.segs=[].concat(this.renderBgEvents(i),this.renderFgEvents(n))},renderBgEvents:function(e){var t=this.eventsToSegs(e);return this.renderBgSegs(t)||t},renderFgEvents:function(e){var t=this.eventsToSegs(e);return this.renderFgSegs(t)||t},unrenderEvents:function(){this.handleSegMouseout(),this.clearDragListeners(),this.unrenderFgSegs(),this.unrenderBgSegs(),this.segs=null},getEventSegs:function(){return this.segs||[]},renderFgSegs:function(e){},unrenderFgSegs:function(){},renderFgSegEls:function(s,e){var t,a=this.view,i="",r=[];if(s.length){for(t=0;t<s.length;t++)i+=this.fgSegHtml(s[t],e);A(i).each(function(e,t){var i=s[e],n=a.resolveEventEl(i.event,A(t));n&&(n.data("fc-seg",i),i.el=n,r.push(i))})}return r},fgSegHtml:function(e,t){},renderBgSegs:function(e){return this.renderFill("bgEvent",e)},unrenderBgSegs:function(){this.unrenderFill("bgEvent")},bgEventSegEl:function(e,t){return this.view.resolveEventEl(e.event,t)},bgEventSegClasses:function(e){var t=e.event,i=t.source||{};return["fc-bgevent"].concat(t.className,i.className||[])},bgEventSegCss:function(e){return{"background-color":this.getSegSkinCss(e)["background-color"]}},businessHoursSegClasses:function(e){return["fc-nonbusiness","fc-bgevent"]},buildBusinessHourSegs:function(e,t){return this.eventsToSegs(this.buildBusinessHourEvents(e,t))},buildBusinessHourEvents:function(e,t){var i,n=this.view.calendar;return null==t&&(t=n.options.businessHours),!(i=n.computeBusinessHourEvents(e,t)).length&&t&&(i=[A.extend({},nt,{start:this.view.end,end:this.view.end,dow:null})]),i},bindSegHandlers:function(){this.bindSegHandlersToEl(this.el)},bindSegHandlersToEl:function(e){this.bindSegHandlerToEl(e,"touchstart",this.handleSegTouchStart),this.bindSegHandlerToEl(e,"touchend",this.handleSegTouchEnd),this.bindSegHandlerToEl(e,"mouseenter",this.handleSegMouseover),this.bindSegHandlerToEl(e,"mouseleave",this.handleSegMouseout),this.bindSegHandlerToEl(e,"mousedown",this.handleSegMousedown),this.bindSegHandlerToEl(e,"click",this.handleSegClick)},bindSegHandlerToEl:function(e,t,i){var n=this;e.on(t,this.segSelector,function(e){var t=A(this).data("fc-seg");if(t&&!n.isDraggingSeg&&!n.isResizingSeg)return i.call(n,t,e)})},handleSegClick:function(e,t){!1===this.view.publiclyTrigger("eventClick",e.el[0],e.event,t)&&t.preventDefault()},handleSegMouseover:function(e,t){this.isIgnoringMouse||this.mousedOverSeg||(this.mousedOverSeg=e,this.view.isEventResizable(e.event)&&e.el.addClass("fc-allow-mouse-resize"),this.view.publiclyTrigger("eventMouseover",e.el[0],e.event,t))},handleSegMouseout:function(e,t){t=t||{},this.mousedOverSeg&&(e=e||this.mousedOverSeg,this.mousedOverSeg=null,this.view.isEventResizable(e.event)&&e.el.removeClass("fc-allow-mouse-resize"),this.view.publiclyTrigger("eventMouseout",e.el[0],e.event,t))},handleSegMousedown:function(e,t){!this.startSegResize(e,t,{distance:5})&&this.view.isEventDraggable(e.event)&&this.buildSegDragListener(e).startInteraction(t,{distance:5})},handleSegTouchStart:function(e,t){var i,n=this.view,s=e.event,a=n.isEventSelected(s),r=n.isEventDraggable(s),o=n.isEventResizable(s),l=!1;a&&o&&(l=this.startSegResize(e,t)),l||!r&&!o||(null==(i=n.opt("eventLongPressDelay"))&&(i=n.opt("longPressDelay")),(r?this.buildSegDragListener(e):this.buildSegSelectListener(e)).startInteraction(t,{delay:a?0:i})),this.tempIgnoreMouse()},handleSegTouchEnd:function(e,t){this.tempIgnoreMouse()},startSegResize:function(e,t,i){return!!A(t.target).is(".fc-resizer")&&(this.buildSegResizeListener(e,A(t.target).is(".fc-start-resizer")).startInteraction(t,i),!0)},buildSegDragListener:function(s){var t,a,r,o=this,l=this.view,h=l.calendar,i=s.el,u=s.event;if(this.segDragListener)return this.segDragListener;var d=this.segDragListener=new Re(l,{scroll:l.opt("dragScroll"),subjectEl:i,subjectCenter:!0,interactionStart:function(e){s.component=o,t=!1,(a=new We(s.el,{additionalClass:"fc-dragging",parentEl:l.el,opacity:d.isTouch?null:l.opt("dragOpacity"),revertDuration:l.opt("dragRevertDuration"),zIndex:2})).hide(),a.start(e)},dragStart:function(e){d.isTouch&&!l.isEventSelected(u)&&l.selectEvent(u),t=!0,o.handleSegMouseout(s,e),o.segDragStart(s,e),l.hideEvent(u)},hitOver:function(e,t,i){var n;s.hit&&(i=s.hit),(r=o.computeEventDrop(i.component.getHitSpan(i),e.component.getHitSpan(e),u))&&!h.isEventSpanAllowed(o.eventToSpan(r),u)&&(p(),r=null),r&&(n=l.renderDrag(r,s))?(n.addClass("fc-dragging"),d.isTouch||o.applyDragOpacity(n),a.hide()):a.show(),t&&(r=null)},hitOut:function(){l.unrenderDrag(),a.show(),r=null},hitDone:function(){f()},interactionEnd:function(e){delete s.component,a.stop(!r,function(){t&&(l.unrenderDrag(),o.segDragStop(s,e)),r?l.reportEventDrop(u,r,o.largeUnit,i,e):l.showEvent(u)}),o.segDragListener=null}});return d},buildSegSelectListener:function(e){var t=this,i=this.view,n=e.event;if(this.segDragListener)return this.segDragListener;var s=this.segDragListener=new Oe({dragStart:function(e){s.isTouch&&!i.isEventSelected(n)&&i.selectEvent(n)},interactionEnd:function(e){t.segDragListener=null}});return s},segDragStart:function(e,t){this.isDraggingSeg=!0,this.view.publiclyTrigger("eventDragStart",e.el[0],e.event,t,{})},segDragStop:function(e,t){this.isDraggingSeg=!1,this.view.publiclyTrigger("eventDragStop",e.el[0],e.event,t,{})},computeEventDrop:function(e,t,i){var n,s,a=this.view.calendar,r=e.start,o=t.start;return r.hasTime()===o.hasTime()?(n=this.diffDates(o,r),i.allDay&&S(n)?(s={start:i.start.clone(),end:a.getEventEnd(i),allDay:!1},a.normalizeEventTimes(s)):s=re(i),s.start.add(n),s.end&&s.end.add(n)):s={start:o.clone(),end:null,allDay:!o.hasTime()},s},applyDragOpacity:function(e){var t=this.view.opt("dragOpacity");null!=t&&e.css("opacity",t)},externalDragStart:function(e,t){var i,n,s=this.view;s.opt("droppable")&&(i=A((t?t.item:null)||e.target),n=s.opt("dropAccept"),(A.isFunction(n)?n.call(i[0],i):i.is(n))&&(this.isDraggingExternal||this.listenToExternalDrag(i,e,t)))},listenToExternalDrag:function(t,e,i){var n,s,a,r,o,l,h,u=this,d=this.view.calendar,c=(s=t,(h=ye.dataAttrPrefix)&&(h+="-"),(a=s.data(h+"event")||null)&&(null==(r=(a="object"==typeof a?A.extend({},a):{}).start)&&(r=a.time),o=a.duration,l=a.stick,delete a.start,delete a.time,delete a.duration,delete a.stick),null==r&&(r=s.data(h+"start")),null==r&&(r=s.data(h+"time")),null==o&&(o=s.data(h+"duration")),null==l&&(l=s.data(h+"stick")),{eventProps:a,startTime:r=null!=r?I.duration(r):null,duration:o=null!=o?I.duration(o):null,stick:l=Boolean(l)});(u.externalDragListener=new Re(this,{interactionStart:function(){u.isDraggingExternal=!0},hitOver:function(e){(n=u.computeExternalDrop(e.component.getHitSpan(e),c))&&!d.isExternalSpanAllowed(u.eventToSpan(n),n,c.eventProps)&&(p(),n=null),n&&u.renderDrag(n)},hitOut:function(){n=null},hitDone:function(){f(),u.unrenderDrag()},interactionEnd:function(e){n&&u.view.reportExternalDrop(c,n,t,e,i),u.isDraggingExternal=!1,u.externalDragListener=null}})).startDrag(e)},computeExternalDrop:function(e,t){var i={start:this.view.calendar.applyTimezone(e.start),end:null};return t.startTime&&!i.start.hasTime()&&i.start.time(t.startTime),t.duration&&(i.end=i.start.clone().add(t.duration)),i},renderDrag:function(e,t){},unrenderDrag:function(){},buildSegResizeListener:function(a,r){var t,o,l=this,h=this.view,u=h.calendar,i=a.el,d=a.event,c=u.getEventEnd(d);return this.segResizeListener=new Re(this,{scroll:h.opt("dragScroll"),subjectEl:i,interactionStart:function(){t=!1},dragStart:function(e){t=!0,l.handleSegMouseout(a,e),l.segResizeStart(a,e)},hitOver:function(e,t,i){var n=l.getHitSpan(i),s=l.getHitSpan(e);(o=r?l.computeEventStartResize(n,s,d):l.computeEventEndResize(n,s,d))&&(u.isEventSpanAllowed(l.eventToSpan(o),d)?o.start.isSame(d.start.clone().stripZone())&&o.end.isSame(c.clone().stripZone())&&(o=null):(p(),o=null)),o&&(h.hideEvent(d),l.renderEventResize(o,a))},hitOut:function(){o=null,h.showEvent(d)},hitDone:function(){l.unrenderEventResize(),f()},interactionEnd:function(e){t&&l.segResizeStop(a,e),o?h.reportEventResize(d,o,l.largeUnit,i,e):h.showEvent(d),l.segResizeListener=null}})},segResizeStart:function(e,t){this.isResizingSeg=!0,this.view.publiclyTrigger("eventResizeStart",e.el[0],e.event,t,{})},segResizeStop:function(e,t){this.isResizingSeg=!1,this.view.publiclyTrigger("eventResizeStop",e.el[0],e.event,t,{})},computeEventStartResize:function(e,t,i){return this.computeEventResize("start",e,t,i)},computeEventEndResize:function(e,t,i){return this.computeEventResize("end",e,t,i)},computeEventResize:function(e,t,i,n){var s,a,r=this.view.calendar,o=this.diffDates(i[e],t[e]);return(s={start:n.start.clone(),end:r.getEventEnd(n),allDay:n.allDay}).allDay&&S(o)&&(s.allDay=!1,r.normalizeEventTimes(s)),s[e].add(o),s.start.isBefore(s.end)||(a=this.minResizeDuration||(n.allDay?r.defaultAllDayEventDuration:r.defaultTimedEventDuration),"start"==e?s.start=s.end.clone().subtract(a):s.end=s.start.clone().add(a)),s},renderEventResize:function(e,t){},unrenderEventResize:function(){},getEventTimeText:function(e,t,i){return null==t&&(t=this.eventTimeFormat),null==i&&(i=this.displayEventEnd),this.displayEventTime&&e.start.hasTime()?i&&e.end?this.view.formatRange(e,t):e.start.format(t):""},getSegClasses:function(e,t,i){var n=this.view,s=["fc-event",e.isStart?"fc-start":"fc-not-start",e.isEnd?"fc-end":"fc-not-end"].concat(this.getSegCustomClasses(e));return t&&s.push("fc-draggable"),i&&s.push("fc-resizable"),n.isEventSelected(e.event)&&s.push("fc-selected"),s},getSegCustomClasses:function(e){var t=e.event;return[].concat(t.className,t.source?t.source.className:[])},getSegSkinCss:function(e){return{"background-color":this.getSegBackgroundColor(e),"border-color":this.getSegBorderColor(e),color:this.getSegTextColor(e)}},getSegBackgroundColor:function(e){return e.event.backgroundColor||e.event.color||this.getSegDefaultBackgroundColor(e)},getSegDefaultBackgroundColor:function(e){var t=e.event.source||{};return t.backgroundColor||t.color||this.view.opt("eventBackgroundColor")||this.view.opt("eventColor")},getSegBorderColor:function(e){return e.event.borderColor||e.event.color||this.getSegDefaultBorderColor(e)},getSegDefaultBorderColor:function(e){var t=e.event.source||{};return t.borderColor||t.color||this.view.opt("eventBorderColor")||this.view.opt("eventColor")},getSegTextColor:function(e){return e.event.textColor||this.getSegDefaultTextColor(e)},getSegDefaultTextColor:function(e){return(e.event.source||{}).textColor||this.view.opt("eventTextColor")},eventToSegs:function(e){return this.eventsToSegs([e])},eventToSpan:function(e){return this.eventToSpans(e)[0]},eventToSpans:function(e){var t=this.eventToRange(e);return this.eventRangeToSpans(t,e)},eventsToSegs:function(e,s){var a=this,t=function(e){var t,i,n={};for(t=0;t<e.length;t++)(n[(i=e[t])._id]||(n[i._id]=[])).push(i);return n}(e),r=[];return A.each(t,function(e,t){var i,n=[];for(i=0;i<t.length;i++)n.push(a.eventToRange(t[i]));if("inverse-background"===le(t[0]))for(n=a.invertRanges(n),i=0;i<n.length;i++)r.push.apply(r,a.eventRangeToSegs(n[i],t[0],s));else for(i=0;i<n.length;i++)r.push.apply(r,a.eventRangeToSegs(n[i],t[i],s))}),r},eventToRange:function(e){var t=this.view.calendar,i=e.start.clone().stripZone(),n=(e.end?e.end.clone():t.getDefaultEventEnd(null!=e.allDay?e.allDay:!e.start.hasTime(),e.start)).stripZone();return t.localizeMoment(i),t.localizeMoment(n),{start:i,end:n}},eventRangeToSegs:function(e,t,i){var n,s=this.eventRangeToSpans(e,t),a=[];for(n=0;n<s.length;n++)a.push.apply(a,this.eventSpanToSegs(s[n],t,i));return a},eventRangeToSpans:function(e,t){return[A.extend({},e)]},eventSpanToSegs:function(e,t,i){var n,s,a=i?i(e):this.spanToSegs(e);for(n=0;n<a.length;n++)(s=a[n]).event=t,s.eventStartMS=+e.start,s.eventDurationMS=e.end-e.start;return a},invertRanges:function(e){var t,i,n=this.view,s=n.start.clone(),a=n.end.clone(),r=[],o=s;for(e.sort(he),t=0;t<e.length;t++)(i=e[t]).start>o&&r.push({start:o,end:i.start}),o=i.end;return o<a&&r.push({start:o,end:a}),r},sortEventSegs:function(e){e.sort(B(this,"compareEventSegs"))},compareEventSegs:function(e,t){return e.eventStartMS-t.eventStartMS||t.eventDurationMS-e.eventDurationMS||t.event.allDay-e.event.allDay||x(e.event,t.event,this.view.eventOrderSpecs)}}),ye.pluckEventDateProps=re,ye.isBgEvent=oe,ye.dataAttrPrefix="";var Be=ye.DayTableMixin={breakOnWeeks:!1,dayDates:null,dayIndices:null,daysPerRow:null,rowCnt:null,colCnt:null,colHeadFormat:null,updateDayTable:function(){for(var e,t,i,n=this.view,s=this.start.clone(),a=-1,r=[],o=[];s.isBefore(this.end);)n.isHiddenDay(s)?r.push(a+.5):(a++,r.push(a),o.push(s.clone())),s.add(1,"days");if(this.breakOnWeeks){for(t=o[0].day(),e=1;e<o.length&&o[e].day()!=t;e++);i=Math.ceil(o.length/e)}else i=1,e=o.length;this.dayDates=o,this.dayIndices=r,this.daysPerRow=e,this.rowCnt=i,this.updateDayTableCols()},updateDayTableCols:function(){this.colCnt=this.computeColCnt(),this.colHeadFormat=this.view.opt("columnFormat")||this.computeColHeadFormat()},computeColCnt:function(){return this.daysPerRow},getCellDate:function(e,t){return this.dayDates[this.getCellDayIndex(e,t)].clone()},getCellRange:function(e,t){var i=this.getCellDate(e,t),n=i.clone().add(1,"days");return{start:i,end:n}},getCellDayIndex:function(e,t){return e*this.daysPerRow+this.getColDayIndex(t)},getColDayIndex:function(e){return this.isRTL?this.colCnt-1-e:e},getDateDayIndex:function(e){var t=this.dayIndices,i=e.diff(this.start,"days");return i<0?t[0]-1:i>=t.length?t[t.length-1]+1:t[i]},computeColHeadFormat:function(){return 1<this.rowCnt||10<this.colCnt?"ddd":1<this.colCnt?this.view.opt("dayOfMonthFormat"):"dddd"},sliceRangeByRow:function(e){var t,i,n,s,a,r=this.daysPerRow,o=this.view.computeDayRange(e),l=this.getDateDayIndex(o.start),h=this.getDateDayIndex(o.end.clone().subtract(1,"days")),u=[];for(t=0;t<this.rowCnt;t++)n=(i=t*r)+r-1,s=Math.max(l,i),a=Math.min(h,n),(s=Math.ceil(s))<=(a=Math.floor(a))&&u.push({row:t,firstRowDayIndex:s-i,lastRowDayIndex:a-i,isStart:s===l,isEnd:a===h});return u},sliceRangeByDay:function(e){var t,i,n,s,a,r,o=this.daysPerRow,l=this.view.computeDayRange(e),h=this.getDateDayIndex(l.start),u=this.getDateDayIndex(l.end.clone().subtract(1,"days")),d=[];for(t=0;t<this.rowCnt;t++)for(n=(i=t*o)+o-1,s=i;s<=n;s++)a=Math.max(h,s),r=Math.min(u,s),(a=Math.ceil(a))<=(r=Math.floor(r))&&d.push({row:t,firstRowDayIndex:a-i,lastRowDayIndex:r-i,isStart:a===h,isEnd:r===u});return d},renderHeadHtml:function(){return'<div class="fc-row '+this.view.widgetHeaderClass+'"><table><thead>'+this.renderHeadTrHtml()+"</thead></table></div>"},renderHeadIntroHtml:function(){return this.renderIntroHtml()},renderHeadTrHtml:function(){return"<tr>"+(this.isRTL?"":this.renderHeadIntroHtml())+this.renderHeadDateCellsHtml()+(this.isRTL?this.renderHeadIntroHtml():"")+"</tr>"},renderHeadDateCellsHtml:function(){var e,t,i=[];for(e=0;e<this.colCnt;e++)t=this.getCellDate(0,e),i.push(this.renderHeadDateCellHtml(t));return i.join("")},renderHeadDateCellHtml:function(e,t,i){var n=this.view,s=["fc-day-header",n.widgetHeaderClass];return 1===this.rowCnt?s=s.concat(this.getDayClasses(e,!0)):s.push("fc-"+Me[e.day()]),'<th class="'+s.join(" ")+'"'+(1===this.rowCnt?' data-date="'+e.format("YYYY-MM-DD")+'"':"")+(1<t?' colspan="'+t+'"':"")+(i?" "+i:"")+">"+n.buildGotoAnchorHtml({date:e,forceOff:1<this.rowCnt||1===this.colCnt},Y(e.format(this.colHeadFormat)))+"</th>"},renderBgTrHtml:function(e){return"<tr>"+(this.isRTL?"":this.renderBgIntroHtml(e))+this.renderBgCellsHtml(e)+(this.isRTL?this.renderBgIntroHtml(e):"")+"</tr>"},renderBgIntroHtml:function(e){return this.renderIntroHtml()},renderBgCellsHtml:function(e){var t,i,n=[];for(t=0;t<this.colCnt;t++)i=this.getCellDate(e,t),n.push(this.renderBgCellHtml(i));return n.join("")},renderBgCellHtml:function(e,t){var i=this.view,n=this.getDayClasses(e);return n.unshift("fc-day",i.widgetContentClass),'<td class="'+n.join(" ")+'" data-date="'+e.format("YYYY-MM-DD")+'"'+(t?" "+t:"")+"></td>"},renderIntroHtml:function(){},bookendCells:function(e){var t=this.renderIntroHtml();t&&(this.isRTL?e.append(t):e.prepend(t))}},Ue=ye.DayGrid=Ve.extend(Be,{numbersVisible:!1,bottomCoordPadding:0,rowEls:null,cellEls:null,helperEls:null,rowCoordCache:null,colCoordCache:null,renderDates:function(e){var t,i,n=this.view,s=this.rowCnt,a=this.colCnt,r="";for(t=0;t<s;t++)r+=this.renderDayRowHtml(t,e);for(this.el.html(r),this.rowEls=this.el.find(".fc-row"),this.cellEls=this.el.find(".fc-day"),this.rowCoordCache=new Ne({els:this.rowEls,isVertical:!0}),this.colCoordCache=new Ne({els:this.cellEls.slice(0,this.colCnt),isHorizontal:!0}),t=0;t<s;t++)for(i=0;i<a;i++)n.publiclyTrigger("dayRender",null,this.getCellDate(t,i),this.getCellEl(t,i))},unrenderDates:function(){this.removeSegPopover()},renderBusinessHours:function(){var e=this.buildBusinessHourSegs(!0);this.renderFill("businessHours",e,"bgevent")},unrenderBusinessHours:function(){this.unrenderFill("businessHours")},renderDayRowHtml:function(e,t){var i=["fc-row","fc-week",this.view.widgetContentClass];return t&&i.push("fc-rigid"),'<div class="'+i.join(" ")+'"><div class="fc-bg"><table>'+this.renderBgTrHtml(e)+'</table></div><div class="fc-content-skeleton"><table>'+(this.numbersVisible?"<thead>"+this.renderNumberTrHtml(e)+"</thead>":"")+"</table></div></div>"},renderNumberTrHtml:function(e){return"<tr>"+(this.isRTL?"":this.renderNumberIntroHtml(e))+this.renderNumberCellsHtml(e)+(this.isRTL?this.renderNumberIntroHtml(e):"")+"</tr>"},renderNumberIntroHtml:function(e){return this.renderIntroHtml()},renderNumberCellsHtml:function(e){var t,i,n=[];for(t=0;t<this.colCnt;t++)i=this.getCellDate(e,t),n.push(this.renderNumberCellHtml(i));return n.join("")},renderNumberCellHtml:function(e){var t,i,n="";return this.view.dayNumbersVisible||this.view.cellWeekNumbersVisible?((t=this.getDayClasses(e)).unshift("fc-day-top"),this.view.cellWeekNumbersVisible&&(i="ISO"===e._locale._fullCalendar_weekCalc?1:e._locale.firstDayOfWeek()),n+='<td class="'+t.join(" ")+'" data-date="'+e.format()+'">',this.view.cellWeekNumbersVisible&&e.day()==i&&(n+=this.view.buildGotoAnchorHtml({date:e,type:"week"},{class:"fc-week-number"},e.format("w"))),this.view.dayNumbersVisible&&(n+=this.view.buildGotoAnchorHtml(e,{class:"fc-day-number"},e.date())),n+="</td>"):"<td/>"},computeEventTimeFormat:function(){return this.view.opt("extraSmallTimeFormat")},computeDisplayEventEnd:function(){return 1==this.colCnt},rangeUpdated:function(){this.updateDayTable()},spanToSegs:function(e){var t,i,n=this.sliceRangeByRow(e);for(t=0;t<n.length;t++)i=n[t],this.isRTL?(i.leftCol=this.daysPerRow-1-i.lastRowDayIndex,i.rightCol=this.daysPerRow-1-i.firstRowDayIndex):(i.leftCol=i.firstRowDayIndex,i.rightCol=i.lastRowDayIndex);return n},prepareHits:function(){this.colCoordCache.build(),this.rowCoordCache.build(),this.rowCoordCache.bottoms[this.rowCnt-1]+=this.bottomCoordPadding},releaseHits:function(){this.colCoordCache.clear(),this.rowCoordCache.clear()},queryHit:function(e,t){if(this.colCoordCache.isLeftInBounds(e)&&this.rowCoordCache.isTopInBounds(t)){var i=this.colCoordCache.getHorizontalIndex(e),n=this.rowCoordCache.getVerticalIndex(t);if(null!=n&&null!=i)return this.getCellHit(n,i)}},getHitSpan:function(e){return this.getCellRange(e.row,e.col)},getHitEl:function(e){return this.getCellEl(e.row,e.col)},getCellHit:function(e,t){return{row:e,col:t,component:this,left:this.colCoordCache.getLeftOffset(t),right:this.colCoordCache.getRightOffset(t),top:this.rowCoordCache.getTopOffset(e),bottom:this.rowCoordCache.getBottomOffset(e)}},getCellEl:function(e,t){return this.cellEls.eq(e*this.colCnt+t)},renderDrag:function(e,t){if(this.renderHighlight(this.eventToSpan(e)),t&&t.component!==this)return this.renderEventLocationHelper(e,t)},unrenderDrag:function(){this.unrenderHighlight(),this.unrenderHelper()},renderEventResize:function(e,t){return this.renderHighlight(this.eventToSpan(e)),this.renderEventLocationHelper(e,t)},unrenderEventResize:function(){this.unrenderHighlight(),this.unrenderHelper()},renderHelper:function(e,a){var r,o=[],t=this.eventToSegs(e);return t=this.renderFgSegEls(t),r=this.renderSegRows(t),this.rowEls.each(function(e,t){var i,n=A(t),s=A('<div class="fc-helper-skeleton"><table/></div>');i=a&&a.row===e?a.el.position().top:n.find(".fc-content-skeleton tbody").position().top,s.css("top",i).find("table").append(r[e].tbodyEl),n.append(s),o.push(s[0])}),this.helperEls=A(o)},unrenderHelper:function(){this.helperEls&&(this.helperEls.remove(),this.helperEls=null)},fillSegTag:"td",renderFill:function(e,t,i){var n,s,a,r=[];for(t=this.renderFillSegEls(e,t),n=0;n<t.length;n++)s=t[n],a=this.renderFillRow(e,s,i),this.rowEls.eq(s.row).append(a),r.push(a[0]);return this.elsByFill[e]=A(r),t},renderFillRow:function(e,t,i){var n,s,a=this.colCnt,r=t.leftCol,o=t.rightCol+1;return i=i||e.toLowerCase(),s=(n=A('<div class="fc-'+i+'-skeleton"><table><tr/></table></div>')).find("tr"),0<r&&s.append('<td colspan="'+r+'"/>'),s.append(t.el.attr("colspan",o-r)),o<a&&s.append('<td colspan="'+(a-o)+'"/>'),this.bookendCells(s),n}});Ue.mixin({rowStructs:null,unrenderEvents:function(){this.removeSegPopover(),Ve.prototype.unrenderEvents.apply(this,arguments)},getEventSegs:function(){return Ve.prototype.getEventSegs.call(this).concat(this.popoverSegs||[])},renderBgSegs:function(e){var t=A.grep(e,function(e){return e.event.allDay});return Ve.prototype.renderBgSegs.call(this,t)},renderFgSegs:function(e){var i;return e=this.renderFgSegEls(e),i=this.rowStructs=this.renderSegRows(e),this.rowEls.each(function(e,t){A(t).find(".fc-content-skeleton > table").append(i[e].tbodyEl)}),e},unrenderFgSegs:function(){for(var e,t=this.rowStructs||[];e=t.pop();)e.tbodyEl.remove();this.rowStructs=null},renderSegRows:function(e){var t,i,n=[];for(t=this.groupSegRows(e),i=0;i<t.length;i++)n.push(this.renderSegRow(i,t[i]));return n},fgSegHtml:function(e,t){var i,n,s=this.view,a=e.event,r=s.isEventDraggable(a),o=!t&&a.allDay&&e.isStart&&s.isEventResizableFromStart(a),l=!t&&a.allDay&&e.isEnd&&s.isEventResizableFromEnd(a),h=this.getSegClasses(e,r,o||l),u=O(this.getSegSkinCss(e)),d="";return h.unshift("fc-day-grid-event","fc-h-event"),e.isStart&&((i=this.getEventTimeText(a))&&(d='<span class="fc-time">'+Y(i)+"</span>")),n='<span class="fc-title">'+(Y(a.title||"")||"&nbsp;")+"</span>",'<a class="'+h.join(" ")+'"'+(a.url?' href="'+Y(a.url)+'"':"")+(u?' style="'+u+'"':"")+'><div class="fc-content">'+(this.isRTL?n+" "+d:d+" "+n)+"</div>"+(o?'<div class="fc-resizer fc-start-resizer" />':"")+(l?'<div class="fc-resizer fc-end-resizer" />':"")+"</a>"},renderSegRow:function(e,t){function i(e){for(;a<e;)(h=(g[n-1]||[])[a])?h.attr("rowspan",parseInt(h.attr("rowspan")||1,10)+1):(h=A("<td/>"),r.append(h)),m[n][a]=h,g[n][a]=h,a++}var n,s,a,r,o,l,h,u=this.colCnt,d=this.buildSegLevels(t),c=Math.max(1,d.length),p=A("<tbody/>"),f=[],m=[],g=[];for(n=0;n<c;n++){if(s=d[n],a=0,r=A("<tr/>"),f.push([]),m.push([]),g.push([]),s)for(o=0;o<s.length;o++){for(i((l=s[o]).leftCol),h=A('<td class="fc-event-container"/>').append(l.el),l.leftCol!=l.rightCol?h.attr("colspan",l.rightCol-l.leftCol+1):g[n][a]=h;a<=l.rightCol;)m[n][a]=h,f[n][a]=l,a++;r.append(h)}i(u),this.bookendCells(r),p.append(r)}return{row:e,tbodyEl:p,cellMatrix:m,segMatrix:f,segLevels:d,segs:t}},buildSegLevels:function(e){var t,i,n,s=[];for(this.sortEventSegs(e),t=0;t<e.length;t++){for(i=e[t],n=0;n<s.length&&ue(i,s[n]);n++);(s[i.level=n]||(s[n]=[])).push(i)}for(n=0;n<s.length;n++)s[n].sort(de);return s},groupSegRows:function(e){var t,i=[];for(t=0;t<this.rowCnt;t++)i.push([]);for(t=0;t<e.length;t++)i[e[t].row].push(e[t]);return i}}),Ue.mixin({segPopover:null,popoverSegs:null,removeSegPopover:function(){this.segPopover&&this.segPopover.hide()},limitRows:function(e){var t,i,n=this.rowStructs||[];for(t=0;t<n.length;t++)this.unlimitRow(t),!1!==(i=!!e&&("number"==typeof e?e:this.computeRowLevelLimit(t)))&&this.limitRow(t,i)},computeRowLevelLimit:function(e){function t(e,t){s=Math.max(s,A(t).outerHeight())}var i,n,s,a=this.rowEls.eq(e).height(),r=this.rowStructs[e].tbodyEl.children();for(i=0;i<r.length;i++)if(n=r.eq(i).removeClass("fc-limited"),s=0,n.find("> td > :first-child").each(t),n.position().top+s>a)return i;return!1},limitRow:function(t,i){function e(e){for(;x<e;)(l=_.getCellSegs(t,x,i)).length&&(d=s[i-1][x],v=_.renderMoreLink(t,x,l),g=A("<div/>").append(v),d.append(g),b.push(g[0])),x++}var n,s,a,r,o,l,h,u,d,c,p,f,m,g,v,_=this,y=this.rowStructs[t],b=[],x=0;if(i&&i<y.segLevels.length){for(n=y.segLevels[i-1],s=y.cellMatrix,a=y.tbodyEl.children().slice(i).addClass("fc-limited").get(),r=0;r<n.length;r++){for(e((o=n[r]).leftCol),u=[],h=0;x<=o.rightCol;)l=this.getCellSegs(t,x,i),u.push(l),h+=l.length,x++;if(h){for(c=(d=s[i-1][o.leftCol]).attr("rowspan")||1,p=[],f=0;f<u.length;f++)m=A('<td class="fc-more-cell"/>').attr("rowspan",c),l=u[f],v=this.renderMoreLink(t,o.leftCol+f,[o].concat(l)),g=A("<div/>").append(v),m.append(g),p.push(m[0]),b.push(m[0]);d.addClass("fc-limited").after(A(p)),a.push(d[0])}}e(this.colCnt),y.moreEls=A(b),y.limitedEls=A(a)}},unlimitRow:function(e){var t=this.rowStructs[e];t.moreEls&&(t.moreEls.remove(),t.moreEls=null),t.limitedEls&&(t.limitedEls.removeClass("fc-limited"),t.limitedEls=null)},renderMoreLink:function(l,h,u){var d=this,c=this.view;return A('<a class="fc-more"/>').text(this.getMoreLinkText(u.length)).on("click",function(e){var t=c.opt("eventLimitClick"),i=d.getCellDate(l,h),n=A(this),s=d.getCellEl(l,h),a=d.getCellSegs(l,h),r=d.resliceDaySegs(a,i),o=d.resliceDaySegs(u,i);"function"==typeof t&&(t=c.publiclyTrigger("eventLimitClick",null,{date:i,dayEl:s,moreEl:n,segs:r,hiddenSegs:o},e)),"popover"===t?d.showSegPopover(l,h,n,r):"string"==typeof t&&c.calendar.zoomTo(i,t)})},showSegPopover:function(e,t,i,n){var s,a,r=this,o=this.view,l=i.parent();s=1==this.rowCnt?o.el:this.rowEls.eq(e),a={className:"fc-more-popover",content:this.renderSegPopoverContent(e,t,n),parentEl:this.view.el,top:s.offset().top,autoHide:!0,viewportConstrain:o.opt("popoverViewportConstrain"),hide:function(){if(r.popoverSegs)for(var e,t=0;t<r.popoverSegs.length;++t)e=r.popoverSegs[t],o.publiclyTrigger("eventDestroy",e.event,e.event,e.el);r.segPopover.removeElement(),r.segPopover=null,r.popoverSegs=null}},this.isRTL?a.right=l.offset().left+l.outerWidth()+1:a.left=l.offset().left-1,this.segPopover=new ze(a),this.segPopover.show(),this.bindSegHandlersToEl(this.segPopover.el)},renderSegPopoverContent:function(e,t,i){var n,s=this.view,a=s.opt("theme"),r=this.getCellDate(e,t).format(s.opt("dayPopoverFormat")),o=A('<div class="fc-header '+s.widgetHeaderClass+'"><span class="fc-close '+(a?"ui-icon ui-icon-closethick":"fc-icon fc-icon-x")+'"></span><span class="fc-title">'+Y(r)+'</span><div class="fc-clear"/></div><div class="fc-body '+s.widgetContentClass+'"><div class="fc-event-container"></div></div>'),l=o.find(".fc-event-container");for(i=this.renderFgSegEls(i,!0),this.popoverSegs=i,n=0;n<i.length;n++)this.prepareHits(),i[n].hit=this.getCellHit(e,t),this.releaseHits(),l.append(i[n].el);return o},resliceDaySegs:function(e,t){var i=A.map(e,function(e){return e.event}),n=t.clone(),s=n.clone().add(1,"days"),a={start:n,end:s};return e=this.eventsToSegs(i,function(e){var t=j(e,a);return t?[t]:[]}),this.sortEventSegs(e),e},getMoreLinkText:function(e){var t=this.view.opt("eventLimitText");return"function"==typeof t?t(e):"+"+e+" "+t},getCellSegs:function(e,t,i){for(var n,s=this.rowStructs[e].segMatrix,a=i||0,r=[];a<s.length;)(n=s[a][t])&&r.push(n),a++;return r}});var qe=ye.TimeGrid=Ve.extend(Be,{slotDuration:null,snapDuration:null,snapsPerSlot:null,minTime:null,maxTime:null,labelFormat:null,labelInterval:null,colEls:null,slatContainerEl:null,slatEls:null,nowIndicatorEls:null,colCoordCache:null,slatCoordCache:null,constructor:function(){Ve.apply(this,arguments),this.processOptions()},renderDates:function(){this.el.html(this.renderHtml()),this.colEls=this.el.find(".fc-day"),this.slatContainerEl=this.el.find(".fc-slats"),this.slatEls=this.slatContainerEl.find("tr"),this.colCoordCache=new Ne({els:this.colEls,isHorizontal:!0}),this.slatCoordCache=new Ne({els:this.slatEls,isVertical:!0}),this.renderContentSkeleton()},renderHtml:function(){return'<div class="fc-bg"><table>'+this.renderBgTrHtml(0)+'</table></div><div class="fc-slats"><table>'+this.renderSlatRowHtml()+"</table></div>"},renderSlatRowHtml:function(){for(var e,t,i,n=this.view,s=this.isRTL,a="",r=I.duration(+this.minTime);r<this.maxTime;)e=this.start.clone().time(r),t=V(L(r,this.labelInterval)),i='<td class="fc-axis fc-time '+n.widgetContentClass+'" '+n.axisStyleAttr()+">"+(t?"<span>"+Y(e.format(this.labelFormat))+"</span>":"")+"</td>",a+='<tr data-time="'+e.format("HH:mm:ss")+'"'+(t?"":' class="fc-minor"')+">"+(s?"":i)+'<td class="'+n.widgetContentClass+'"/>'+(s?i:"")+"</tr>",r.add(this.slotDuration);return a},processOptions:function(){var e,t=this.view,i=t.opt("slotDuration"),n=t.opt("snapDuration");i=I.duration(i),n=n?I.duration(n):i,this.slotDuration=i,this.snapDuration=n,this.snapsPerSlot=i/n,this.minResizeDuration=n,this.minTime=I.duration(t.opt("minTime")),this.maxTime=I.duration(t.opt("maxTime")),e=t.opt("slotLabelFormat"),A.isArray(e)&&(e=e[e.length-1]),this.labelFormat=e||t.opt("smallTimeFormat"),e=t.opt("slotLabelInterval"),this.labelInterval=e?I.duration(e):this.computeLabelInterval(i)},computeLabelInterval:function(e){var t,i,n;for(t=dt.length-1;0<=t;t--)if(V(n=L(i=I.duration(dt[t]),e))&&1<n)return i;return I.duration(e)},computeEventTimeFormat:function(){return this.view.opt("noMeridiemTimeFormat")},computeDisplayEventEnd:function(){return!0},prepareHits:function(){this.colCoordCache.build(),this.slatCoordCache.build()},releaseHits:function(){this.colCoordCache.clear()},queryHit:function(e,t){var i=this.snapsPerSlot,n=this.colCoordCache,s=this.slatCoordCache;if(n.isLeftInBounds(e)&&s.isTopInBounds(t)){var a=n.getHorizontalIndex(e),r=s.getVerticalIndex(t);if(null!=a&&null!=r){var o=s.getTopOffset(r),l=s.getHeight(r),h=(t-o)/l,u=Math.floor(h*i),d=o+u/i*l,c=o+(u+1)/i*l;return{col:a,snap:r*i+u,component:this,left:n.getLeftOffset(a),right:n.getRightOffset(a),top:d,bottom:c}}}},getHitSpan:function(e){var t,i=this.getCellDate(0,e.col),n=this.computeSnapTime(e.snap);return i.time(n),t=i.clone().add(this.snapDuration),{start:i,end:t}},getHitEl:function(e){return this.colEls.eq(e.col)},rangeUpdated:function(){this.updateDayTable()},computeSnapTime:function(e){return I.duration(this.minTime+this.snapDuration*e)},spanToSegs:function(e){var t,i=this.sliceRangeByTimes(e);for(t=0;t<i.length;t++)this.isRTL?i[t].col=this.daysPerRow-1-i[t].dayIndex:i[t].col=i[t].dayIndex;return i},sliceRangeByTimes:function(e){var t,i,n,s=[];for(i=0;i<this.daysPerRow;i++)(t=j(e,{start:(n=this.dayDates[i].clone()).clone().time(this.minTime),end:n.clone().time(this.maxTime)}))&&(t.dayIndex=i,s.push(t));return s},updateSize:function(e){this.slatCoordCache.build(),e&&this.updateSegVerticals([].concat(this.fgSegs||[],this.bgSegs||[],this.businessSegs||[]))},getTotalSlatHeight:function(){return this.slatContainerEl.outerHeight()},computeDateTop:function(e,t){return this.computeTimeTop(I.duration(e-t.clone().stripTime()))},computeTimeTop:function(e){var t,i,n=this.slatEls.length,s=(e-this.minTime)/this.slotDuration;return s=Math.max(0,s),s=Math.min(n,s),t=Math.floor(s),i=s-(t=Math.min(t,n-1)),this.slatCoordCache.getTopPosition(t)+this.slatCoordCache.getHeight(t)*i},renderDrag:function(e,t){return t?this.renderEventLocationHelper(e,t):void this.renderHighlight(this.eventToSpan(e))},unrenderDrag:function(){this.unrenderHelper(),this.unrenderHighlight()},renderEventResize:function(e,t){return this.renderEventLocationHelper(e,t)},unrenderEventResize:function(){this.unrenderHelper()},renderHelper:function(e,t){return this.renderHelperSegs(this.eventToSegs(e),t)},unrenderHelper:function(){this.unrenderHelperSegs()},renderBusinessHours:function(){this.renderBusinessSegs(this.buildBusinessHourSegs())},unrenderBusinessHours:function(){this.unrenderBusinessSegs()},getNowIndicatorUnit:function(){return"minute"},renderNowIndicator:function(e){var t,i=this.spanToSegs({start:e,end:e}),n=this.computeDateTop(e,e),s=[];for(t=0;t<i.length;t++)s.push(A('<div class="fc-now-indicator fc-now-indicator-line"></div>').css("top",n).appendTo(this.colContainerEls.eq(i[t].col))[0]);0<i.length&&s.push(A('<div class="fc-now-indicator fc-now-indicator-arrow"></div>').css("top",n).appendTo(this.el.find(".fc-content-skeleton"))[0]),this.nowIndicatorEls=A(s)},unrenderNowIndicator:function(){this.nowIndicatorEls&&(this.nowIndicatorEls.remove(),this.nowIndicatorEls=null)},renderSelection:function(e){this.view.opt("selectHelper")?this.renderEventLocationHelper(e):this.renderHighlight(e)},unrenderSelection:function(){this.unrenderHelper(),this.unrenderHighlight()},renderHighlight:function(e){this.renderHighlightSegs(this.spanToSegs(e))},unrenderHighlight:function(){this.unrenderHighlightSegs()}});qe.mixin({colContainerEls:null,fgContainerEls:null,bgContainerEls:null,helperContainerEls:null,highlightContainerEls:null,businessContainerEls:null,fgSegs:null,bgSegs:null,helperSegs:null,highlightSegs:null,businessSegs:null,renderContentSkeleton:function(){var e,t,i="";for(e=0;e<this.colCnt;e++)i+='<td><div class="fc-content-col"><div class="fc-event-container fc-helper-container"></div><div class="fc-event-container"></div><div class="fc-highlight-container"></div><div class="fc-bgevent-container"></div><div class="fc-business-container"></div></div></td>';t=A('<div class="fc-content-skeleton"><table><tr>'+i+"</tr></table></div>"),this.colContainerEls=t.find(".fc-content-col"),this.helperContainerEls=t.find(".fc-helper-container"),this.fgContainerEls=t.find(".fc-event-container:not(.fc-helper-container)"),this.bgContainerEls=t.find(".fc-bgevent-container"),this.highlightContainerEls=t.find(".fc-highlight-container"),this.businessContainerEls=t.find(".fc-business-container"),this.bookendCells(t.find("tr")),this.el.append(t)},renderFgSegs:function(e){return e=this.renderFgSegsIntoContainers(e,this.fgContainerEls),this.fgSegs=e},unrenderFgSegs:function(){this.unrenderNamedSegs("fgSegs")},renderHelperSegs:function(e,t){var i,n,s,a=[];for(e=this.renderFgSegsIntoContainers(e,this.helperContainerEls),i=0;i<e.length;i++)n=e[i],t&&t.col===n.col&&(s=t.el,n.el.css({left:s.css("left"),right:s.css("right"),"margin-left":s.css("margin-left"),"margin-right":s.css("margin-right")})),a.push(n.el[0]);return this.helperSegs=e,A(a)},unrenderHelperSegs:function(){this.unrenderNamedSegs("helperSegs")},renderBgSegs:function(e){return e=this.renderFillSegEls("bgEvent",e),this.updateSegVerticals(e),this.attachSegsByCol(this.groupSegsByCol(e),this.bgContainerEls),this.bgSegs=e},unrenderBgSegs:function(){this.unrenderNamedSegs("bgSegs")},renderHighlightSegs:function(e){e=this.renderFillSegEls("highlight",e),this.updateSegVerticals(e),this.attachSegsByCol(this.groupSegsByCol(e),this.highlightContainerEls),this.highlightSegs=e},unrenderHighlightSegs:function(){this.unrenderNamedSegs("highlightSegs")},renderBusinessSegs:function(e){e=this.renderFillSegEls("businessHours",e),this.updateSegVerticals(e),this.attachSegsByCol(this.groupSegsByCol(e),this.businessContainerEls),this.businessSegs=e},unrenderBusinessSegs:function(){this.unrenderNamedSegs("businessSegs")},groupSegsByCol:function(e){var t,i=[];for(t=0;t<this.colCnt;t++)i.push([]);for(t=0;t<e.length;t++)i[e[t].col].push(e[t]);return i},attachSegsByCol:function(e,t){var i,n,s;for(i=0;i<this.colCnt;i++)for(n=e[i],s=0;s<n.length;s++)t.eq(i).append(n[s].el)},unrenderNamedSegs:function(e){var t,i=this[e];if(i){for(t=0;t<i.length;t++)i[t].el.remove();this[e]=null}},renderFgSegsIntoContainers:function(e,t){var i,n;for(e=this.renderFgSegEls(e),i=this.groupSegsByCol(e),n=0;n<this.colCnt;n++)this.updateFgSegCoords(i[n]);return this.attachSegsByCol(i,t),e},fgSegHtml:function(e,t){var i,n,s,a=this.view,r=e.event,o=a.isEventDraggable(r),l=!t&&e.isStart&&a.isEventResizableFromStart(r),h=!t&&e.isEnd&&a.isEventResizableFromEnd(r),u=this.getSegClasses(e,o,l||h),d=O(this.getSegSkinCss(e));return u.unshift("fc-time-grid-event","fc-v-event"),a.isMultiDayEvent(r)?(e.isStart||e.isEnd)&&(i=this.getEventTimeText(e),n=this.getEventTimeText(e,"LT"),s=this.getEventTimeText(e,null,!1)):(i=this.getEventTimeText(r),n=this.getEventTimeText(r,"LT"),s=this.getEventTimeText(r,null,!1)),'<a class="'+u.join(" ")+'"'+(r.url?' href="'+Y(r.url)+'"':"")+(d?' style="'+d+'"':"")+'><div class="fc-content">'+(i?'<div class="fc-time" data-start="'+Y(s)+'" data-full="'+Y(n)+'"><span>'+Y(i)+"</span></div>":"")+(r.title?'<div class="fc-title">'+Y(r.title)+"</div>":"")+'</div><div class="fc-bg"/>'+(h?'<div class="fc-resizer fc-end-resizer" />':"")+"</a>"},updateSegVerticals:function(e){this.computeSegVerticals(e),this.assignSegVerticals(e)},computeSegVerticals:function(e){var t,i;for(t=0;t<e.length;t++)(i=e[t]).top=this.computeDateTop(i.start,i.start),i.bottom=this.computeDateTop(i.end,i.start)},assignSegVerticals:function(e){var t,i;for(t=0;t<e.length;t++)(i=e[t]).el.css(this.generateSegVerticalCss(i))},generateSegVerticalCss:function(e){return{top:e.top,bottom:-e.bottom}},updateFgSegCoords:function(e){this.computeSegVerticals(e),this.computeFgSegHorizontals(e),this.assignSegVerticals(e),this.assignFgSegHorizontals(e)},computeFgSegHorizontals:function(e){var t,i,n;if(this.sortEventSegs(e),function(e){var t,i,n,s,a;for(t=0;t<e.length;t++)for(i=e[t],n=0;n<i.length;n++)for((s=i[n]).forwardSegs=[],a=t+1;a<e.length;a++)pe(s,e[a],s.forwardSegs)}(t=function(e){var t,i,n,s=[];for(t=0;t<e.length;t++){for(i=e[t],n=0;n<s.length&&pe(i,s[n]).length;n++);(s[i.level=n]||(s[n]=[])).push(i)}return s}(e)),i=t[0]){for(n=0;n<i.length;n++)ce(i[n]);for(n=0;n<i.length;n++)this.computeFgSegForwardBack(i[n],0,0)}},computeFgSegForwardBack:function(e,t,i){var n,s=e.forwardSegs;if(void 0===e.forwardCoord)for(s.length?(this.sortForwardSegs(s),this.computeFgSegForwardBack(s[0],t+1,i),e.forwardCoord=s[0].backwardCoord):e.forwardCoord=1,e.backwardCoord=e.forwardCoord-(e.forwardCoord-i)/(t+1),n=0;n<s.length;n++)this.computeFgSegForwardBack(s[n],0,e.forwardCoord)},sortForwardSegs:function(e){e.sort(B(this,"compareForwardSegs"))},compareForwardSegs:function(e,t){return t.forwardPressure-e.forwardPressure||(e.backwardCoord||0)-(t.backwardCoord||0)||this.compareEventSegs(e,t)},assignFgSegHorizontals:function(e){var t,i;for(t=0;t<e.length;t++)(i=e[t]).el.css(this.generateFgSegHorizontalCss(i)),i.bottom-i.top<30&&i.el.addClass("fc-short")},generateFgSegHorizontalCss:function(e){var t,i,n=this.view.opt("slotEventOverlap"),s=e.backwardCoord,a=e.forwardCoord,r=this.generateSegVerticalCss(e);return n&&(a=Math.min(1,s+2*(a-s))),this.isRTL?(t=1-a,i=s):(t=s,i=1-a),r.zIndex=e.level+1,r.left=100*t+"%",r.right=100*i+"%",n&&e.forwardPressure&&(r[this.isRTL?"marginLeft":"marginRight"]=20),r}});var Ge=ye.View=ee.extend(Fe,$e,{type:null,name:null,title:null,calendar:null,options:null,el:null,isDateSet:!1,isDateRendered:!1,dateRenderQueue:null,isEventsBound:!1,isEventsSet:!1,isEventsRendered:!1,eventRenderQueue:null,start:null,end:null,intervalStart:null,intervalEnd:null,intervalDuration:null,intervalUnit:null,isRTL:!1,isSelected:!1,selectedEvent:null,eventOrderSpecs:null,widgetHeaderClass:null,widgetContentClass:null,highlightStateClass:null,nextDayThreshold:null,isHiddenDayHash:null,isNowIndicatorRendered:null,initialNowDate:null,initialNowQueriedMs:null,nowIndicatorTimeoutID:null,nowIndicatorIntervalID:null,constructor:function(e,t,i,n){this.calendar=e,this.type=this.name=t,this.options=i,this.intervalDuration=n||I.duration(1,"day"),this.nextDayThreshold=I.duration(this.opt("nextDayThreshold")),this.initThemingProps(),this.initHiddenDays(),this.isRTL=this.opt("isRTL"),this.eventOrderSpecs=b(this.opt("eventOrder")),this.dateRenderQueue=new ne,this.eventRenderQueue=new ne(this.opt("eventRenderWait")),this.initialize()},initialize:function(){},opt:function(e){return this.options[e]},publiclyTrigger:function(e,t){var i=this.calendar;return i.publiclyTrigger.apply(i,[e,t||this].concat(Array.prototype.slice.call(arguments,2),[this]))},rejectOn:function(n,s){var a=this;return new ie(function(t,e){function i(){a.off(n,e)}a.one(n,e),s.then(function(e){i(),t(e)},function(){i(),e()})})},setRange:function(e){A.extend(this,e),this.updateTitle()},computeRange:function(e){var t,i,n=k(this.intervalDuration),s=e.clone().startOf(n),a=s.clone().add(this.intervalDuration);return/year|month|week|day/.test(n)?(s.stripTime(),a.stripTime()):(s.hasTime()||(s=this.calendar.time(0)),a.hasTime()||(a=this.calendar.time(0))),t=s.clone(),t=this.skipHiddenDays(t),i=a.clone(),{intervalUnit:n,intervalStart:s,intervalEnd:a,start:t,end:i=this.skipHiddenDays(i,-1,!0)}},computePrevDate:function(e){return this.massageCurrentDate(e.clone().startOf(this.intervalUnit).subtract(this.intervalDuration),-1)},computeNextDate:function(e){return this.massageCurrentDate(e.clone().startOf(this.intervalUnit).add(this.intervalDuration))},massageCurrentDate:function(e,t){return this.intervalDuration.as("days")<=1&&this.isHiddenDay(e)&&(e=this.skipHiddenDays(e,t)).startOf("day"),e},updateTitle:function(){this.title=this.computeTitle(),this.calendar.setToolbarsTitle(this.title)},computeTitle:function(){return this.formatRange({start:this.calendar.applyTimezone(this.intervalStart),end:this.calendar.applyTimezone(this.intervalEnd)},this.opt("titleFormat")||this.computeTitleFormat(),this.opt("titleRangeSeparator"))},computeTitleFormat:function(){return"year"==this.intervalUnit?"YYYY":"month"==this.intervalUnit?this.opt("monthYearFormat"):1<this.intervalDuration.as("days")?"ll":"LL"},formatRange:function(e,t,i){var n=e.end;return n.hasTime()||(n=n.clone().subtract(1)),K(e.start,n,t,i,this.opt("isRTL"))},getAllDayHtml:function(){return this.opt("allDayHtml")||Y(this.opt("allDayText"))},buildGotoAnchorHtml:function(e,t,i){var n,s,a,r,o,l;return A.isPlainObject(e)?(n=e.date,s=e.type,a=e.forceOff):n=e,r={date:(n=ye.moment(n)).format("YYYY-MM-DD"),type:s||"day"},"string"==typeof t&&(i=t,t=null),t=t?" "+(o=t,l=[],A.each(o,function(e,t){null!=t&&l.push(e+'="'+Y(t)+'"')}),l.join(" ")):"",i=i||"",!a&&this.opt("navLinks")?"<a"+t+' data-goto="'+Y(JSON.stringify(r))+'">'+i+"</a>":"<span"+t+">"+i+"</span>"},setElement:function(e){this.el=e,this.bindGlobalHandlers(),this.renderSkeleton()},removeElement:function(){this.unsetDate(),this.unrenderSkeleton(),this.unbindGlobalHandlers(),this.el.remove()},renderSkeleton:function(){},unrenderSkeleton:function(){},setDate:function(e){var t=this.isDateSet;this.isDateSet=!0,this.handleDate(e,t),this.trigger(t?"dateReset":"dateSet",e)},unsetDate:function(){this.isDateSet&&(this.isDateSet=!1,this.handleDateUnset(),this.trigger("dateUnset"))},handleDate:function(e,t){var i=this;this.unbindEvents(),this.requestDateRender(e).then(function(){i.bindEvents()})},handleDateUnset:function(){this.unbindEvents(),this.requestDateUnrender()},requestDateRender:function(e){var t=this;return this.dateRenderQueue.add(function(){return t.executeDateRender(e)})},requestDateUnrender:function(){var e=this;return this.dateRenderQueue.add(function(){return e.executeDateUnrender()})},executeDateRender:function(e){var t=this;return e?this.captureInitialScroll():this.captureScroll(),this.freezeHeight(),this.executeDateUnrender().then(function(){e&&t.setRange(t.computeRange(e)),t.render&&t.render(),t.renderDates(),t.updateSize(),t.renderBusinessHours(),t.startNowIndicator(),t.thawHeight(),t.releaseScroll(),t.isDateRendered=!0,t.onDateRender(),t.trigger("dateRender")})},executeDateUnrender:function(){var e=this;return e.isDateRendered?this.requestEventsUnrender().then(function(){e.unselect(),e.stopNowIndicator(),e.triggerUnrender(),e.unrenderBusinessHours(),e.unrenderDates(),e.destroy&&e.destroy(),e.isDateRendered=!1,e.trigger("dateUnrender")}):ie.resolve()},onDateRender:function(){this.triggerRender()},renderDates:function(){},unrenderDates:function(){},triggerRender:function(){this.publiclyTrigger("viewRender",this,this,this.el)},triggerUnrender:function(){this.publiclyTrigger("viewDestroy",this,this,this.el)},bindGlobalHandlers:function(){this.listenTo(A(document),"mousedown",this.handleDocumentMousedown),this.listenTo(A(document),"touchstart",this.processUnselect)},unbindGlobalHandlers:function(){this.stopListeningTo(A(document))},initThemingProps:function(){var e=this.opt("theme")?"ui":"fc";this.widgetHeaderClass=e+"-widget-header",this.widgetContentClass=e+"-widget-content",this.highlightStateClass=e+"-state-highlight"},renderBusinessHours:function(){},unrenderBusinessHours:function(){},startNowIndicator:function(){var e,t,i,n=this;this.opt("nowIndicator")&&((e=this.getNowIndicatorUnit())&&(t=B(this,"updateNowIndicator"),this.initialNowDate=this.calendar.getNow(),this.initialNowQueriedMs=+new Date,this.renderNowIndicator(this.initialNowDate),this.isNowIndicatorRendered=!0,i=this.initialNowDate.clone().startOf(e).add(1,e)-this.initialNowDate,this.nowIndicatorTimeoutID=setTimeout(function(){n.nowIndicatorTimeoutID=null,t(),i=+I.duration(1,e),i=Math.max(100,i),n.nowIndicatorIntervalID=setInterval(t,i)},i)))},updateNowIndicator:function(){this.isNowIndicatorRendered&&(this.unrenderNowIndicator(),this.renderNowIndicator(this.initialNowDate.clone().add(new Date-this.initialNowQueriedMs)))},stopNowIndicator:function(){this.isNowIndicatorRendered&&(this.nowIndicatorTimeoutID&&(clearTimeout(this.nowIndicatorTimeoutID),this.nowIndicatorTimeoutID=null),this.nowIndicatorIntervalID&&(clearTimeout(this.nowIndicatorIntervalID),this.nowIndicatorIntervalID=null),this.unrenderNowIndicator(),this.isNowIndicatorRendered=!1)},getNowIndicatorUnit:function(){},renderNowIndicator:function(e){},unrenderNowIndicator:function(){},updateSize:function(e){e&&this.captureScroll(),this.updateHeight(e),this.updateWidth(e),this.updateNowIndicator(),e&&this.releaseScroll()},updateWidth:function(e){},updateHeight:function(e){var t=this.calendar;this.setHeight(t.getSuggestedViewHeight(),t.isHeightAuto())},setHeight:function(e,t){},capturedScroll:null,capturedScrollDepth:0,captureScroll:function(){return!this.capturedScrollDepth++&&(this.capturedScroll=this.isDateRendered?this.queryScroll():{},!0)},captureInitialScroll:function(e){this.captureScroll()&&(this.capturedScroll.isInitial=!0,e?A.extend(this.capturedScroll,e):this.capturedScroll.isComputed=!0)},releaseScroll:function(){var e=this.capturedScroll,t=this.discardScroll();e.isComputed&&(t?A.extend(e,this.computeInitialScroll()):e=null),e&&(e.isInitial?this.hardSetScroll(e):this.setScroll(e))},discardScroll:function(){return!--this.capturedScrollDepth&&!(this.capturedScroll=null)},computeInitialScroll:function(){return{}},queryScroll:function(){return{}},hardSetScroll:function(e){var t=this,i=function(){t.setScroll(e)};i(),setTimeout(i,0)},setScroll:function(e){},freezeHeight:function(){this.calendar.freezeContentHeight()},thawHeight:function(){this.calendar.thawContentHeight()},bindEvents:function(){var t=this;this.isEventsBound||(this.isEventsBound=!0,this.rejectOn("eventsUnbind",this.requestEvents()).then(function(e){t.listenTo(t.calendar,"eventsReset",t.setEvents),t.setEvents(e)}))},unbindEvents:function(){this.isEventsBound&&(this.isEventsBound=!1,this.stopListeningTo(this.calendar,"eventsReset"),this.unsetEvents(),this.trigger("eventsUnbind"))},setEvents:function(e){var t=this.isEventSet;this.isEventsSet=!0,this.handleEvents(e,t),this.trigger(t?"eventsReset":"eventsSet",e)},unsetEvents:function(){this.isEventsSet&&(this.isEventsSet=!1,this.handleEventsUnset(),this.trigger("eventsUnset"))},whenEventsSet:function(){var t=this;return this.isEventsSet?ie.resolve(this.getCurrentEvents()):new ie(function(e){t.one("eventsSet",e)})},handleEvents:function(e,t){this.requestEventsRender(e)},handleEventsUnset:function(){this.requestEventsUnrender()},requestEventsRender:function(e){var t=this;return this.eventRenderQueue.add(function(){return t.executeEventsRender(e)})},requestEventsUnrender:function(){var e=this;return this.isEventsRendered?this.eventRenderQueue.addQuickly(function(){return e.executeEventsUnrender()}):ie.resolve()},requestCurrentEventsRender:function(){return this.isEventsSet?void this.requestEventsRender(this.getCurrentEvents()):ie.reject()},executeEventsRender:function(e){var t=this;return this.captureScroll(),this.freezeHeight(),this.executeEventsUnrender().then(function(){t.renderEvents(e),t.thawHeight(),t.releaseScroll(),t.isEventsRendered=!0,t.onEventsRender(),t.trigger("eventsRender")})},executeEventsUnrender:function(){return this.isEventsRendered&&(this.onBeforeEventsUnrender(),this.captureScroll(),this.freezeHeight(),this.destroyEvents&&this.destroyEvents(),this.unrenderEvents(),this.thawHeight(),this.releaseScroll(),this.isEventsRendered=!1,this.trigger("eventsUnrender")),ie.resolve()},onEventsRender:function(){this.renderedEventSegEach(function(e){this.publiclyTrigger("eventAfterRender",e.event,e.event,e.el)}),this.publiclyTrigger("eventAfterAllRender")},onBeforeEventsUnrender:function(){this.renderedEventSegEach(function(e){this.publiclyTrigger("eventDestroy",e.event,e.event,e.el)})},renderEvents:function(e){},unrenderEvents:function(){},requestEvents:function(){return this.calendar.requestEvents(this.start,this.end)},getCurrentEvents:function(){return this.calendar.getPrunedEventCache()},resolveEventEl:function(e,t){var i=this.publiclyTrigger("eventRender",e,e,t);return!1===i?t=null:i&&!0!==i&&(t=A(i)),t},showEvent:function(e){this.renderedEventSegEach(function(e){e.el.css("visibility","")},e)},hideEvent:function(e){this.renderedEventSegEach(function(e){e.el.css("visibility","hidden")},e)},renderedEventSegEach:function(e,t){var i,n=this.getEventSegs();for(i=0;i<n.length;i++)t&&n[i].event._id!==t._id||n[i].el&&e.call(this,n[i])},getEventSegs:function(){return[]},isEventDraggable:function(e){return this.isEventStartEditable(e)},isEventStartEditable:function(e){return N(e.startEditable,(e.source||{}).startEditable,this.opt("eventStartEditable"),this.isEventGenerallyEditable(e))},isEventGenerallyEditable:function(e){return N(e.editable,(e.source||{}).editable,this.opt("editable"))},reportEventDrop:function(e,t,i,n,s){var a=this.calendar,r=a.mutateEvent(e,t,i);this.triggerEventDrop(e,r.dateDelta,function(){r.undo(),a.reportEventChange()},n,s),a.reportEventChange()},triggerEventDrop:function(e,t,i,n,s){this.publiclyTrigger("eventDrop",n[0],e,t,i,s,{})},reportExternalDrop:function(e,t,i,n,s){var a,r,o=e.eventProps;o&&(a=A.extend({},o,t),r=this.calendar.renderEvent(a,e.stick)[0]),this.triggerExternalDrop(r,t,i,n,s)},triggerExternalDrop:function(e,t,i,n,s){this.publiclyTrigger("drop",i[0],t.start,n,s),e&&this.publiclyTrigger("eventReceive",null,e)},renderDrag:function(e,t){},unrenderDrag:function(){},isEventResizableFromStart:function(e){return this.opt("eventResizableFromStart")&&this.isEventResizable(e)},isEventResizableFromEnd:function(e){return this.isEventResizable(e)},isEventResizable:function(e){var t=e.source||{};return N(e.durationEditable,t.durationEditable,this.opt("eventDurationEditable"),e.editable,t.editable,this.opt("editable"))},reportEventResize:function(e,t,i,n,s){var a=this.calendar,r=a.mutateEvent(e,t,i);this.triggerEventResize(e,r.durationDelta,function(){r.undo(),a.reportEventChange()},n,s),a.reportEventChange()},triggerEventResize:function(e,t,i,n,s){this.publiclyTrigger("eventResize",n[0],e,t,i,s,{})},select:function(e,t){this.unselect(t),this.renderSelection(e),this.reportSelection(e,t)},renderSelection:function(e){},reportSelection:function(e,t){this.isSelected=!0,this.triggerSelect(e,t)},triggerSelect:function(e,t){this.publiclyTrigger("select",null,this.calendar.applyTimezone(e.start),this.calendar.applyTimezone(e.end),t)},unselect:function(e){this.isSelected&&(this.isSelected=!1,this.destroySelection&&this.destroySelection(),this.unrenderSelection(),this.publiclyTrigger("unselect",null,e))},unrenderSelection:function(){},selectEvent:function(e){this.selectedEvent&&this.selectedEvent===e||(this.unselectEvent(),this.renderedEventSegEach(function(e){e.el.addClass("fc-selected")},e),this.selectedEvent=e)},unselectEvent:function(){this.selectedEvent&&(this.renderedEventSegEach(function(e){e.el.removeClass("fc-selected")},this.selectedEvent),this.selectedEvent=null)},isEventSelected:function(e){return this.selectedEvent&&this.selectedEvent._id===e._id},handleDocumentMousedown:function(e){h(e)&&this.processUnselect(e)},processUnselect:function(e){this.processRangeUnselect(e),this.processEventUnselect(e)},processRangeUnselect:function(e){var t;this.isSelected&&this.opt("unselectAuto")&&((t=this.opt("unselectCancel"))&&A(e.target).closest(t).length||this.unselect(e))},processEventUnselect:function(e){this.selectedEvent&&(A(e.target).closest(".fc-selected").length||this.unselectEvent())},triggerDayClick:function(e,t,i){this.publiclyTrigger("dayClick",t,this.calendar.applyTimezone(e.start),i)},initHiddenDays:function(){var e,t=this.opt("hiddenDays")||[],i=[],n=0;for(!1===this.opt("weekends")&&t.push(0,6),e=0;e<7;e++)(i[e]=-1!==A.inArray(e,t))||n++;if(!n)throw"invalid hiddenDays";this.isHiddenDayHash=i},isHiddenDay:function(e){return I.isMoment(e)&&(e=e.day()),this.isHiddenDayHash[e]},skipHiddenDays:function(e,t,i){var n=e.clone();for(t=t||1;this.isHiddenDayHash[(n.day()+(i?t:0)+7)%7];)n.add(t,"days");return n},computeDayRange:function(e){var t,i=e.start.clone().stripTime(),n=e.end,s=null;return n&&(s=n.clone().stripTime(),(t=+n.time())&&t>=this.nextDayThreshold&&s.add(1,"days")),(!n||s<=i)&&(s=i.clone().add(1,"days")),{start:i,end:s}},isMultiDayEvent:function(e){var t=this.computeDayRange(e);return 1<t.end.diff(t.start,"days")}}),Xe=ye.Scroller=ee.extend({el:null,scrollEl:null,overflowX:null,overflowY:null,constructor:function(e){e=e||{},this.overflowX=e.overflowX||e.overflow||"auto",this.overflowY=e.overflowY||e.overflow||"auto"},render:function(){this.el=this.renderEl(),this.applyOverflow()},renderEl:function(){return this.scrollEl=A('<div class="fc-scroller"></div>')},clear:function(){this.setHeight("auto"),this.applyOverflow()},destroy:function(){this.el.remove()},applyOverflow:function(){this.scrollEl.css({"overflow-x":this.overflowX,"overflow-y":this.overflowY})},lockOverflow:function(e){var t=this.overflowX,i=this.overflowY;e=e||this.getScrollbarWidths(),"auto"===t&&(t=e.top||e.bottom||this.scrollEl[0].scrollWidth-1>this.scrollEl[0].clientWidth?"scroll":"hidden"),"auto"===i&&(i=e.left||e.right||this.scrollEl[0].scrollHeight-1>this.scrollEl[0].clientHeight?"scroll":"hidden"),this.scrollEl.css({"overflow-x":t,"overflow-y":i})},setHeight:function(e){this.scrollEl.height(e)},getScrollTop:function(){return this.scrollEl.scrollTop()},setScrollTop:function(e){this.scrollEl.scrollTop(e)},getClientWidth:function(){return this.scrollEl[0].clientWidth},getClientHeight:function(){return this.scrollEl[0].clientHeight},getScrollbarWidths:function(){return o(this.scrollEl)}});fe.prototype.proxyCall=function(t){var i=Array.prototype.slice.call(arguments,1),n=[];return this.items.forEach(function(e){n.push(e[t].apply(e,i))}),n};var Je=ye.Calendar=ee.extend({dirDefaults:null,localeDefaults:null,overrides:null,dynamicOverrides:null,options:null,viewSpecCache:null,view:null,header:null,footer:null,loadingLevel:0,constructor:function(i,e){function l(e){e._locale=y}function s(){return i.is(":visible")}function n(e,t){Y++;var i,n=k&&e&&k.type!==e;n&&(g(),a()),!k&&e&&((k=b.view=C[e]||(C[e]=b.instantiateView(e))).setElement(A("<div class='fc-view fc-"+e+"-view' />").appendTo(j)),x.proxyCall("activateButton",e)),k&&(T=k.massageCurrentDate(T),k.isDateSet&&T>=k.intervalStart&&T<k.intervalEnd||s()&&(t&&k.captureInitialScroll(t),k.setDate(T,t),t&&k.releaseScroll(),(i=b.getNow())>=k.intervalStart&&i<k.intervalEnd?x.proxyCall("disableButton","today"):x.proxyCall("enableButton","today"))),n&&v(),Y--}function a(){x.proxyCall("deactivateButton",k.type),k.removeElement(),k=b.view=null}function r(e){if(s())return e&&t(),Y++,k.updateSize(!0),Y--,!0}function o(){s()&&t()}function t(){var e=b.options.contentHeight,t=b.options.height;L="number"==typeof e?e:"function"==typeof e?e():"number"==typeof t?t-h():"function"==typeof t?t()-h():"parent"===t?i.parent().height()-h():Math.round(j.width()/Math.max(b.options.aspectRatio,.5))}function h(){return x.items.reduce(function(e,t){return e+(t.el?t.el.outerHeight(!0):0)},0)}function u(e){!Y&&e.target===window&&k.start&&r(!0)&&k.publiclyTrigger("windowResize",D)}function d(){return{extraClasses:"fc-header-toolbar",layout:b.options.header}}function c(){return{extraClasses:"fc-footer-toolbar",layout:b.options.footer}}function p(){w.setToolbarOptions(d()),w.render(),w.el&&i.prepend(w.el)}function f(){M.setToolbarOptions(c()),M.render(),M.el&&i.append(M.el)}function m(e,t){var i;t=t||"day",i=b.getViewSpec(t)||b.getUnitViewSpec(t),T=e.clone(),n(i?i.type:null)}function g(){E++||j.css({width:"100%",height:j.height(),overflow:"hidden"})}function v(){--E||j.css({width:"",height:"",overflow:""})}function _(e){var t,i=0;for(t in e)b.dynamicOverrides[t]=e[t];for(t in b.viewSpecCache={},b.populateOptionsHash(),e)b.triggerOptionHandlers(t),i++;if(1===i){if("height"===t||"contentHeight"===t||"aspectRatio"===t)return void r(!0);if("defaultDate"===t)return;if("businessHours"===t)return void(k&&(k.unrenderBusinessHours(),k.renderBusinessHours()));if("timezone"===t)return b.rezoneArrayEventSources(),void b.refetchEvents()}p(),f(),C={},function(){Y++,g();var e=k.type,t=k.queryScroll();a(),o(),n(e,t),v(),Y--}()}var y,b=this;b.render=function(){j?s()&&(o(),n()):function(){i.addClass("fc"),i.on("click.fc","a[data-goto]",function(e){var t=A(this),i=t.data("goto"),n=b.moment(i.date),s=i.type,a=k.opt("navLink"+R(s)+"Click");"function"==typeof a?a(n,e):("string"==typeof a&&(s=a),m(n,s))}),b.bindOption("theme",function(e){i.toggleClass("ui-widget",e),i.toggleClass("fc-unthemed",!e)}),b.bindOptions(["isRTL","locale"],function(e){i.toggleClass("fc-ltr",!e),i.toggleClass("fc-rtl",e)}),j=A("<div class='fc-view-container'/>").prependTo(i);var e=[new me(b,d()),new me(b,c())];x=new fe(e),w=b.header=e[0],M=b.footer=e[1],p(),f(),n(b.options.defaultView),b.options.handleWindowResize&&(S=U(u,b.options.windowResizeDelay),A(window).resize(S))}()},b.destroy=function(){k&&k.removeElement(),x.proxyCall("removeElement"),j.remove(),i.removeClass("fc fc-ltr fc-rtl fc-unthemed ui-widget"),i.off(".fc"),S&&A(window).unbind("resize",S)},b.rerenderEvents=function(){s()&&b.reportEventChange()},b.changeView=n,b.select=function(e,t){k.select(b.buildSelectSpan.apply(b,arguments))},b.unselect=function(){k&&k.unselect()},b.prev=function(){T=k.computePrevDate(T),n()},b.next=function(){T=k.computeNextDate(T),n()},b.prevYear=function(){T.add(-1,"years"),n()},b.nextYear=function(){T.add(1,"years"),n()},b.today=function(){T=b.getNow(),n()},b.gotoDate=function(e){T=b.moment(e).stripZone(),n()},b.incrementDate=function(e){T.add(I.duration(e)),n()},b.zoomTo=m,b.getDate=function(){return b.applyTimezone(T)},b.getCalendar=function(){return b},b.getView=function(){return k},b.option=function(e,t){var i;if("string"==typeof e){if(void 0===t)return b.options[e];(i={})[e]=t,_(i)}else"object"==typeof e&&_(e)},b.publiclyTrigger=function(e,t){var i=Array.prototype.slice.call(arguments,2);if(t=t||D,this.triggerWith(e,t,i),b.options[e])return b.options[e].apply(t,i)},b.dynamicOverrides={},b.viewSpecCache={},b.optionHandlers={},b.overrides=A.extend({},e),b.populateOptionsHash(),b.bindOptions(["locale","monthNames","monthNamesShort","dayNames","dayNamesShort","firstDay","weekNumberCalculation"],function(e,t,i,n,s,a,r){if("iso"===r&&(r="ISO"),y=H(ve(e)),t&&(y._months=t),i&&(y._monthsShort=i),n&&(y._weekdays=n),s&&(y._weekdaysShort=s),null==a&&"ISO"===r&&(a=1),null!=a){var o=H(y._week);o.dow=a,y._week=o}"ISO"!==r&&"local"!==r&&"function"!=typeof r||(y._fullCalendar_weekCalc=r),T&&l(T)}),b.defaultAllDayEventDuration=I.duration(b.options.defaultAllDayEventDuration),b.defaultTimedEventDuration=I.duration(b.options.defaultTimedEventDuration),b.moment=function(){var e;return"local"===b.options.timezone?(e=ye.moment.apply(null,arguments)).hasTime()&&e.local():e="UTC"===b.options.timezone?ye.moment.utc.apply(null,arguments):ye.moment.parseZone.apply(null,arguments),l(e),e},b.localizeMoment=l,b.getIsAmbigTimezone=function(){return"local"!==b.options.timezone&&"UTC"!==b.options.timezone},b.applyTimezone=function(e){if(!e.hasTime())return e.clone();var t,i=b.moment(e.toArray()),n=e.time()-i.time();return n&&(t=i.clone().add(n),e.time()-t.time()==0&&(i=t)),i},b.getNow=function(){var e=b.options.now;return"function"==typeof e&&(e=e()),b.moment(e).stripZone()},b.getEventEnd=function(e){return e.end?e.end.clone():b.getDefaultEventEnd(e.allDay,e.start)},b.getDefaultEventEnd=function(e,t){var i=t.clone();return e?i.stripTime().add(b.defaultAllDayEventDuration):i.add(b.defaultTimedEventDuration),b.getIsAmbigTimezone()&&i.stripZone(),i},b.humanizeDuration=function(e){return e.locale(b.options.locale).humanize()},function(){function l(){D=function(e){var t,i,n=[];for(t=0;t<e.length;t++)(i=e[t]).start.clone().stripZone()<T&&L.getEventEnd(i).stripZone()>S&&n.push(i);return n}(H),L.trigger("eventsReset",D)}function i(e,t){return!S||e<S||T<t}function n(e,t){return S=e,T=t,s()}function s(){return a(Y,"reset")}function a(e,t){var i,n;for("reset"===t?H=[]:"add"!==t&&(H=f(H,e)),i=0;i<e.length;i++)"pending"!==(n=e[i])._status&&E++,n._fetchId=(n._fetchId||0)+1,n._status="pending";for(i=0;i<e.length;i++)r(n=e[i],n._fetchId);return E?new ie(function(e){L.one("eventsReceived",e)}):ie.resolve(D)}function r(a,r){!function e(t,i){var n,s,a=ye.sourceFetchers;for(n=0;n<a.length;n++){if(!0===(s=a[n].call(L,t,S.clone(),T.clone(),L.options.timezone,i)))return;if("object"==typeof s)return void e(s,i)}var r=t.events;if(r)A.isFunction(r)?(L.pushLoading(),r.call(L,S.clone(),T.clone(),L.options.timezone,function(e){i(e),L.popLoading()})):A.isArray(r)?i(r):i();else{var o=t.url;if(o){var l,h=t.success,u=t.error,d=t.complete;l=A.isFunction(t.data)?t.data():t.data;var c=A.extend({},l||{}),p=N(t.startParam,L.options.startParam),f=N(t.endParam,L.options.endParam),m=N(t.timezoneParam,L.options.timezoneParam);p&&(c[p]=S.format()),f&&(c[f]=T.format()),L.options.timezone&&"local"!=L.options.timezone&&(c[m]=L.options.timezone),L.pushLoading(),A.ajax(A.extend({},tt,t,{data:c,success:function(e){e=e||[];var t=z(h,this,arguments);A.isArray(t)&&(e=t),i(e)},error:function(){z(u,this,arguments),i()},complete:function(){z(d,this,arguments),L.popLoading()}}))}else i()}}(a,function(e){var t,i,n,s=A.isArray(a.events);if(r===a._fetchId&&"rejected"!==a._status){if(a._status="resolved",e)for(t=0;t<e.length;t++)i=e[t],(n=s?i:b(i,a))&&H.push.apply(H,j(n));o()}})}function o(){--E||(l(),L.trigger("eventsReceived",D))}function h(e){var t,i,n=ye.sourceNormalizers;if(A.isFunction(e)||A.isArray(e)?t={events:e}:"string"==typeof e?t={url:e}:"object"==typeof e&&(t=A.extend({},e)),t){for(t.className?"string"==typeof t.className&&(t.className=t.className.split(/\s+/)):t.className=[],A.isArray(t.events)&&(t.origArray=t.events,t.events=A.map(t.events,function(e){return b(e,t)})),i=0;i<n.length;i++)n[i].call(L,t);return t}}function t(t,e){var i,n,s;for(i=0;i<t.length;i++)n=t[i],s="pending"===n._status,n._status="rejected",s&&o();e?(Y=[],H=[]):(Y=A.grep(Y,function(e){for(i=0;i<t.length;i++)if(e===t[i])return!1;return!0}),H=f(H,t)),l()}function u(t){return A.grep(Y,function(e){return e.id&&e.id===t})[0]}function d(e){e?A.isArray(e)||(e=[e]):e=[];var t,i=[];for(t=0;t<e.length;t++)i.push.apply(i,c(e[t]));return i}function c(n){var e,t;for(e=0;e<Y.length;e++)if((t=Y[e])===n)return[t];return(t=u(n))?[t]:A.grep(Y,function(e){return i=e,(t=n)&&i&&p(t)==p(i);var t,i})}function p(e){return("object"==typeof e?e.origArray||e.googleCalendarId||e.url||e.events:null)||e}function f(e,i){return A.grep(e,function(e){for(var t=0;t<i.length;t++)if(e.source===i[t])return!1;return!0})}function m(e){var t,i;for(t=0;t<e.length;t++)(i=e[t]).start=L.moment(i.start),i.end?i.end=L.moment(i.end):i.end=null,k(i,g(i));l()}function g(e){var n={};return A.each(e,function(e,t){var i;_(e)&&void 0!==t&&(i=t,/undefined|null|boolean|number|string/.test(A.type(i)))&&(n[e]=t)}),n}function _(e){return!/^_|^(id|allDay|start|end)$/.test(e)}function v(e,t){var i,n,s,a,r,o=[];for(s=0;s<e.length;s++)if(n=b(e[s])){for(i=j(n),a=0;a<i.length;a++)(r=i[a]).source||(t&&(C.events.push(r),r.source=C),H.push(r));o=o.concat(i)}return o.length&&l(),o}function y(t){return A.isFunction(t)?A.grep(H,t):null!=t?(t+="",A.grep(H,function(e){return e._id==t})):H}function b(e,t){var i,n,s,a={};if(L.options.eventDataTransform&&(e=L.options.eventDataTransform(e)),t&&t.eventDataTransform&&(e=t.eventDataTransform(e)),A.extend(a,e),t&&(a.source=t),a._id=e._id||(void 0===e.id?"_fc"+it++:e.id+""),e.className?"string"==typeof e.className?a.className=e.className.split(/\s+/):a.className=e.className:a.className=[],i=e.start||e.date,n=e.end,P(i)&&(i=I.duration(i)),P(n)&&(n=I.duration(n)),e.dow||I.isDuration(i)||I.isDuration(n))a.start=i?I.duration(i):null,a.end=n?I.duration(n):null,a._recurring=!0;else{if(i&&!(i=L.moment(i)).isValid())return!1;n&&((n=L.moment(n)).isValid()||(n=null)),void 0===(s=e.allDay)&&(s=N(t?t.allDayDefault:void 0,L.options.allDayDefault)),x(i,n,s,a)}return L.normalizeEvent(a),a}function x(e,t,i,n){n.start=e,n.end=t,n.allDay=i,w(n),_e(n)}function w(e){M(e),e.end&&!e.end.isAfter(e.start)&&(e.end=null),e.end||(L.options.forceEventDuration?e.end=L.getDefaultEventEnd(e.allDay,e.start):e.end=null)}function M(e){null==e.allDay&&(e.allDay=!(e.start.hasTime()||e.end&&e.end.hasTime())),e.allDay?(e.start.stripTime(),e.end&&e.end.stripTime()):(e.start.hasTime()||(e.start=L.applyTimezone(e.start.time(0))),e.end&&!e.end.hasTime()&&(e.end=L.applyTimezone(e.end.time(0))))}function j(e,t,i){var n,s,a,r,o,l,h,u,d,c=[];if(t=t||S,i=i||T,e)if(e._recurring){if(s=e.dow)for(n={},a=0;a<s.length;a++)n[s[a]]=!0;for(r=t.clone().stripTime();r.isBefore(i);)n&&!n[r.day()]||(o=e.start,l=e.end,h=r.clone(),u=null,o&&(h=h.time(o)),l&&(u=r.clone().time(l)),d=A.extend({},e),x(h,u,!o&&!l,d),c.push(d)),r.add(1,"days")}else c.push(e);return c}function k(e,s,a){function t(e,t){return a?$(e,t,a):s.allDay?(i=e,n=t,I.duration({days:i.clone().stripTime().diff(n.clone().stripTime(),"days")})):F(e,t);var i,n}var i,n,r,o,l,h,u,d,c,p,f,m,g,v={};return(s=s||{}).start||(s.start=e.start.clone()),void 0===s.end&&(s.end=e.end?e.end.clone():null),null==s.allDay&&(s.allDay=e.allDay),w(s),w(i={start:e._start.clone(),end:e._end?e._end.clone():L.getDefaultEventEnd(e._allDay,e._start),allDay:s.allDay}),n=null!==e._end&&null===s.end,r=t(s.start,i.start),s.end?(o=t(s.end,i.end),l=o.subtract(r)):l=null,A.each(s,function(e,t){_(e)&&void 0!==t&&(v[e]=t)}),h=y(e._id),u=n,d=s.allDay,c=r,p=l,f=v,m=L.getIsAmbigTimezone(),g=[],c&&!c.valueOf()&&(c=null),p&&!p.valueOf()&&(p=null),A.each(h,function(e,t){var i,n;i={start:t.start.clone(),end:t.end?t.end.clone():null,allDay:t.allDay},A.each(f,function(e){i[e]=t[e]}),w(n={start:t._start,end:t._end,allDay:d}),u?n.end=null:p&&!n.end&&(n.end=L.getDefaultEventEnd(n.allDay,n.start)),c&&(n.start.add(c),n.end&&n.end.add(c)),p&&n.end.add(p),m&&!n.allDay&&(c||p)&&(n.start.stripZone(),n.end&&n.end.stripZone()),A.extend(t,f,n),_e(t),g.push(function(){A.extend(t,i),_e(t)})}),{dateDelta:r,durationDelta:l,undo:function(){for(var e=0;e<g.length;e++)g[e]()}}}var L=this;L.requestEvents=function(e,t){return!L.options.lazyFetching||i(e,t)?n(e,t):ie.resolve(D)},L.reportEventChange=l,L.isFetchNeeded=i,L.fetchEvents=n,L.fetchEventSources=a,L.refetchEvents=s,L.refetchEventSources=function(e){return a(d(e))},L.getEventSources=function(){return Y.slice(1)},L.getEventSourceById=u,L.addEventSource=function(e){var t=h(e);t&&(Y.push(t),a([t],"add"))},L.removeEventSource=function(e){t(c(e))},L.removeEventSources=function(e){null==e?t(Y,!0):t(d(e))},L.updateEvent=function(e){m([e])},L.updateEvents=m,L.renderEvent=function(e,t){return v([e],t)},L.renderEvents=v,L.removeEvents=function(e){var t,i;for(null==e?e=function(){return!0}:A.isFunction(e)||(t=e+"",e=function(e){return e._id==t}),H=A.grep(H,e,!0),i=0;i<Y.length;i++)A.isArray(Y[i].events)&&(Y[i].events=A.grep(Y[i].events,e,!0));l()},L.clientEvents=y,L.mutateEvent=k,L.normalizeEventDates=w,L.normalizeEventTimes=M;var S,T,D,C={events:[]},Y=[C],E=0,H=[];A.each((L.options.events?[L.options.events]:[]).concat(L.options.eventSources||[]),function(e,t){var i=h(t);i&&Y.push(i)}),L.getEventCache=function(){return H},L.getPrunedEventCache=function(){return D},L.rezoneArrayEventSources=function(){var e,t,i,n;for(e=0;e<Y.length;e++)if(t=Y[e].events,A.isArray(t))for(i=0;i<t.length;i++)(n=t[i]).start=L.moment(n.start),n.end&&(n.end=L.moment(n.end)),_e(n)},L.buildEventFromInput=b,L.expandEvent=j}.call(b);var x,w,M,j,k,L,S,T,D=i[0],C={},Y=0;T=null!=b.options.defaultDate?b.moment(b.options.defaultDate).stripZone():b.getNow(),b.getSuggestedViewHeight=function(){return void 0===L&&o(),L},b.isHeightAuto=function(){return"auto"===b.options.contentHeight||"auto"===b.options.height},b.setToolbarsTitle=function(e){x.proxyCall("updateTitle",e)},b.freezeContentHeight=g,b.thawContentHeight=v;var E=0;b.initialize()},initialize:function(){},populateOptionsHash:function(){var e,t,i;e=N(this.dynamicOverrides.locale,this.overrides.locale),(t=Ke[e])||(e=Je.defaults.locale,t=Ke[e]||{}),i=N(this.dynamicOverrides.isRTL,this.overrides.isRTL,t.isRTL,Je.defaults.isRTL)?Je.rtlDefaults:{},this.dirDefaults=i,this.localeDefaults=t,this.options=u([Je.defaults,i,t,this.overrides,this.dynamicOverrides]),ge(this.options)},getViewSpec:function(e){var t=this.viewSpecCache;return t[e]||(t[e]=this.buildViewSpec(e))},getUnitViewSpec:function(e){var t,i,n;if(-1!=A.inArray(e,je))for(t=this.header.getViewsWithButtons(),A.each(ye.views,function(e){t.push(e)}),i=0;i<t.length;i++)if((n=this.getViewSpec(t[i]))&&n.singleUnit==e)return n},buildViewSpec:function(e){for(var t,i,n,s,a=this.overrides.views||{},r=[],o=[],l=[],h=e;h;)t=be[h],i=a[h],h=null,"function"==typeof t&&(t={class:t}),t&&(r.unshift(t),o.unshift(t.defaults||{}),n=n||t.duration,h=h||t.type),i&&(l.unshift(i),n=n||i.duration,h=h||i.type);return(t=T(r)).type=e,!!t.class&&(n&&((n=I.duration(n)).valueOf()&&(s=k(t.duration=n),1===n.as(s)&&(t.singleUnit=s,l.unshift(a[s]||{})))),t.defaults=u(o),t.overrides=u(l),this.buildViewSpecOptions(t),this.buildViewSpecButtonText(t,e),t)},buildViewSpecOptions:function(e){e.options=u([Je.defaults,e.defaults,this.dirDefaults,this.localeDefaults,this.overrides,e.overrides,this.dynamicOverrides]),ge(e.options)},buildViewSpecButtonText:function(i,n){function e(e){var t=e.buttonText||{};return t[n]||(i.buttonTextKey?t[i.buttonTextKey]:null)||(i.singleUnit?t[i.singleUnit]:null)}i.buttonTextOverride=e(this.dynamicOverrides)||e(this.overrides)||i.overrides.buttonText,i.buttonTextDefault=e(this.localeDefaults)||e(this.dirDefaults)||i.defaults.buttonText||e(Je.defaults)||(i.duration?this.humanizeDuration(i.duration):null)||n},instantiateView:function(e){var t=this.getViewSpec(e);return new t.class(this,e,t.options,t.duration)},isValidViewType:function(e){return Boolean(this.getViewSpec(e))},pushLoading:function(){this.loadingLevel++||this.publiclyTrigger("loading",null,!0,this.view)},popLoading:function(){--this.loadingLevel||this.publiclyTrigger("loading",null,!1,this.view)},buildSelectSpan:function(e,t){var i,n=this.moment(e).stripZone();return i=t?this.moment(t).stripZone():n.hasTime()?n.clone().add(this.defaultTimedEventDuration):n.clone().add(this.defaultAllDayEventDuration),{start:n,end:i}}});Je.mixin(Fe),Je.mixin({optionHandlers:null,bindOption:function(e,t){this.bindOptions([e],t)},bindOptions:function(e,t){var i,n={func:t,names:e};for(i=0;i<e.length;i++)this.registerOptionHandlerObj(e[i],n);this.triggerOptionHandlerObj(n)},registerOptionHandlerObj:function(e,t){(this.optionHandlers[e]||(this.optionHandlers[e]=[])).push(t)},triggerOptionHandlers:function(e){var t,i=this.optionHandlers[e]||[];for(t=0;t<i.length;t++)this.triggerOptionHandlerObj(i[t])},triggerOptionHandlerObj:function(e){var t,i=e.names,n=[];for(t=0;t<i.length;t++)n.push(this.options[i[t]]);e.func.apply(this,n)}}),Je.defaults={titleRangeSeparator:" – ",monthYearFormat:"MMMM YYYY",defaultTimedEventDuration:"02:00:00",defaultAllDayEventDuration:{days:1},forceEventDuration:!1,nextDayThreshold:"09:00:00",defaultView:"month",aspectRatio:1.35,header:{left:"title",center:"",right:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberTitle:"W",weekNumberCalculation:"local",scrollTime:"06:00:00",lazyFetching:!0,startParam:"start",endParam:"end",timezoneParam:"timezone",timezone:!1,isRTL:!1,buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day"},buttonIcons:{prev:"left-single-arrow",next:"right-single-arrow",prevYear:"left-double-arrow",nextYear:"right-double-arrow"},allDayText:"all-day",theme:!1,themeButtonIcons:{prev:"circle-triangle-w",next:"circle-triangle-e",prevYear:"seek-prev",nextYear:"seek-next"},dragOpacity:.75,dragRevertDuration:500,dragScroll:!0,unselectAuto:!0,dropAccept:"*",eventOrder:"title",eventLimit:!1,eventLimitText:"more",eventLimitClick:"popover",dayPopoverFormat:"LL",handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3},Je.englishDefaults={dayPopoverFormat:"dddd, MMMM D"},Je.rtlDefaults={header:{left:"next,prev today",center:"",right:"title"},buttonIcons:{prev:"right-single-arrow",next:"left-single-arrow",prevYear:"right-double-arrow",nextYear:"left-double-arrow"},themeButtonIcons:{prev:"circle-triangle-e",next:"circle-triangle-w",nextYear:"seek-prev",prevYear:"seek-next"}};var Ke=ye.locales={};ye.datepickerLocale=function(e,t,i){var n=Ke[e]||(Ke[e]={});n.isRTL=i.isRTL,n.weekNumberTitle=i.weekHeader,A.each(Ze,function(e,t){n[e]=t(i)}),A.datepicker&&(A.datepicker.regional[t]=A.datepicker.regional[e]=i,A.datepicker.regional.en=A.datepicker.regional[""],A.datepicker.setDefaults(i))},ye.locale=function(e,t){var i,n;i=Ke[e]||(Ke[e]={}),t&&(i=Ke[e]=u([i,t])),n=ve(e),A.each(Qe,function(e,t){null==i[e]&&(i[e]=t(n,i))}),Je.defaults.locale=e};var Ze={buttonText:function(e){return{prev:E(e.prevText),next:E(e.nextText),today:E(e.currentText)}},monthYearFormat:function(e){return e.showMonthAfterYear?"YYYY["+e.yearSuffix+"] MMMM":"MMMM YYYY["+e.yearSuffix+"]"}},Qe={dayOfMonthFormat:function(e,t){var i=e.longDateFormat("l");return i=i.replace(/^Y+[^\w\s]*|[^\w\s]*Y+$/g,""),t.isRTL?i+=" ddd":i="ddd "+i,i},mediumTimeFormat:function(e){return e.longDateFormat("LT").replace(/\s*a$/i,"a")},smallTimeFormat:function(e){return e.longDateFormat("LT").replace(":mm","(:mm)").replace(/(\Wmm)$/,"($1)").replace(/\s*a$/i,"a")},extraSmallTimeFormat:function(e){return e.longDateFormat("LT").replace(":mm","(:mm)").replace(/(\Wmm)$/,"($1)").replace(/\s*a$/i,"t")},hourFormat:function(e){return e.longDateFormat("LT").replace(":mm","").replace(/(\Wmm)$/,"").replace(/\s*a$/i,"a")},noMeridiemTimeFormat:function(e){return e.longDateFormat("LT").replace(/\s*a$/i,"")}},et={smallDayDateFormat:function(e){return e.isRTL?"D dd":"dd D"},weekFormat:function(e){return e.isRTL?"w[ "+e.weekNumberTitle+"]":"["+e.weekNumberTitle+" ]w"},smallWeekFormat:function(e){return e.isRTL?"w["+e.weekNumberTitle+"]":"["+e.weekNumberTitle+"]w"}};ye.locale("en",Je.englishDefaults),ye.sourceNormalizers=[];var tt={dataType:"json",cache:!(ye.sourceFetchers=[])},it=1;Je.prototype.normalizeEvent=function(e){},Je.prototype.spanContainsSpan=function(e,t){var i=e.start.clone().stripZone(),n=this.getEventEnd(e).stripZone();return t.start>=i&&t.end<=n},Je.prototype.getPeerEvents=function(e,t){var i,n,s=this.getEventCache(),a=[];for(i=0;i<s.length;i++)n=s[i],t&&t._id===n._id||a.push(n);return a},Je.prototype.isEventSpanAllowed=function(e,t){var i=t.source||{},n=N(t.constraint,i.constraint,this.options.eventConstraint),s=N(t.overlap,i.overlap,this.options.eventOverlap);return this.isSpanAllowed(e,n,s,t)&&(!this.options.eventAllow||!1!==this.options.eventAllow(e,t))},Je.prototype.isExternalSpanAllowed=function(e,t,i){var n,s;return i&&(n=A.extend({},i,t),s=this.expandEvent(this.buildEventFromInput(n))[0]),s?this.isEventSpanAllowed(e,s):this.isSelectionSpanAllowed(e)},Je.prototype.isSelectionSpanAllowed=function(e){return this.isSpanAllowed(e,this.options.selectConstraint,this.options.selectOverlap)&&(!this.options.selectAllow||!1!==this.options.selectAllow(e))},Je.prototype.isSpanAllowed=function(e,t,i,n){var s,a,r,o,l,h;if(null!=t&&(s=this.constraintToEvents(t))){for(a=!1,o=0;o<s.length;o++)if(this.spanContainsSpan(s[o],e)){a=!0;break}if(!a)return!1}for(r=this.getPeerEvents(e,n),o=0;o<r.length;o++)if(l=r[o],this.eventIntersectsRange(l,e)){if(!1===i)return!1;if("function"==typeof i&&!i(l,n))return!1;if(n){if(!1===(h=N(l.overlap,(l.source||{}).overlap)))return!1;if("function"==typeof h&&!h(n,l))return!1}}return!0},Je.prototype.constraintToEvents=function(e){return"businessHours"===e?this.getCurrentBusinessHourEvents():"object"==typeof e?null!=e.start?this.expandEvent(this.buildEventFromInput(e)):null:this.clientEvents(e)},Je.prototype.eventIntersectsRange=function(e,t){var i=e.start.clone().stripZone(),n=this.getEventEnd(e).stripZone();return t.start<n&&t.end>i};var nt={id:"_fcBusinessHours",start:"09:00",end:"17:00",dow:[1,2,3,4,5],rendering:"inverse-background"};Je.prototype.getCurrentBusinessHourEvents=function(e){return this.computeBusinessHourEvents(e,this.options.businessHours)},Je.prototype.computeBusinessHourEvents=function(e,t){return!0===t?this.expandBusinessHourEvents(e,[{}]):A.isPlainObject(t)?this.expandBusinessHourEvents(e,[t]):A.isArray(t)?this.expandBusinessHourEvents(e,t,!0):[]},Je.prototype.expandBusinessHourEvents=function(e,t,i){var n,s,a=this.getView(),r=[];for(n=0;n<t.length;n++)s=t[n],i&&!s.dow||(s=A.extend({},nt,s),e&&(s.start=null,s.end=null),r.push.apply(r,this.expandEvent(this.buildEventFromInput(s),a.start,a.end)));return r};var st=ye.BasicView=Ge.extend({scroller:null,dayGridClass:Ue,dayGrid:null,dayNumbersVisible:!1,colWeekNumbersVisible:!1,cellWeekNumbersVisible:!1,weekNumberWidth:null,headContainerEl:null,headRowEl:null,initialize:function(){this.dayGrid=this.instantiateDayGrid(),this.scroller=new Xe({overflowX:"hidden",overflowY:"auto"})},instantiateDayGrid:function(){return new(this.dayGridClass.extend(at))(this)},setRange:function(e){Ge.prototype.setRange.call(this,e),this.dayGrid.breakOnWeeks=/year|month|week/.test(this.intervalUnit),this.dayGrid.setRange(e)},computeRange:function(e){var t=Ge.prototype.computeRange.call(this,e);return/year|month/.test(t.intervalUnit)&&(t.start.startOf("week"),t.start=this.skipHiddenDays(t.start),t.end.weekday()&&(t.end.add(1,"week").startOf("week"),t.end=this.skipHiddenDays(t.end,-1,!0))),t},renderDates:function(){this.dayNumbersVisible=1<this.dayGrid.rowCnt,this.opt("weekNumbers")&&(this.opt("weekNumbersWithinDays")?(this.cellWeekNumbersVisible=!0,this.colWeekNumbersVisible=!1):(this.cellWeekNumbersVisible=!1,this.colWeekNumbersVisible=!0)),this.dayGrid.numbersVisible=this.dayNumbersVisible||this.cellWeekNumbersVisible||this.colWeekNumbersVisible,this.el.addClass("fc-basic-view").html(this.renderSkeletonHtml()),this.renderHead(),this.scroller.render();var e=this.scroller.el.addClass("fc-day-grid-container"),t=A('<div class="fc-day-grid" />').appendTo(e);this.el.find(".fc-body > tr > td").append(e),this.dayGrid.setElement(t),this.dayGrid.renderDates(this.hasRigidRows())},renderHead:function(){this.headContainerEl=this.el.find(".fc-head-container").html(this.dayGrid.renderHeadHtml()),this.headRowEl=this.headContainerEl.find(".fc-row")},unrenderDates:function(){this.dayGrid.unrenderDates(),this.dayGrid.removeElement(),this.scroller.destroy()},renderBusinessHours:function(){this.dayGrid.renderBusinessHours()},unrenderBusinessHours:function(){this.dayGrid.unrenderBusinessHours()},renderSkeletonHtml:function(){return'<table><thead class="fc-head"><tr><td class="fc-head-container '+this.widgetHeaderClass+'"></td></tr></thead><tbody class="fc-body"><tr><td class="'+this.widgetContentClass+'"></td></tr></tbody></table>'},weekNumberStyleAttr:function(){return null!==this.weekNumberWidth?'style="width:'+this.weekNumberWidth+'px"':""},hasRigidRows:function(){var e=this.opt("eventLimit");return e&&"number"!=typeof e},updateWidth:function(){this.colWeekNumbersVisible&&(this.weekNumberWidth=e(this.el.find(".fc-week-number")))},setHeight:function(e,t){var i,n,s=this.opt("eventLimit");this.scroller.clear(),r(this.headRowEl),this.dayGrid.removeSegPopover(),s&&"number"==typeof s&&this.dayGrid.limitRows(s),i=this.computeScrollerHeight(e),this.setGridHeight(i,t),s&&"number"!=typeof s&&this.dayGrid.limitRows(s),t||(this.scroller.setHeight(i),((n=this.scroller.getScrollbarWidths()).left||n.right)&&(a(this.headRowEl,n),i=this.computeScrollerHeight(e),this.scroller.setHeight(i)),this.scroller.lockOverflow(n))},computeScrollerHeight:function(e){return e-t(this.el,this.scroller.el)},setGridHeight:function(e,t){t?n(this.dayGrid.rowEls):i(this.dayGrid.rowEls,e,!0)},computeInitialScroll:function(){return{top:0}},queryScroll:function(){return{top:this.scroller.getScrollTop()}},setScroll:function(e){this.scroller.setScrollTop(e.top)},prepareHits:function(){this.dayGrid.prepareHits()},releaseHits:function(){this.dayGrid.releaseHits()},queryHit:function(e,t){return this.dayGrid.queryHit(e,t)},getHitSpan:function(e){return this.dayGrid.getHitSpan(e)},getHitEl:function(e){return this.dayGrid.getHitEl(e)},renderEvents:function(e){this.dayGrid.renderEvents(e),this.updateHeight()},getEventSegs:function(){return this.dayGrid.getEventSegs()},unrenderEvents:function(){this.dayGrid.unrenderEvents()},renderDrag:function(e,t){return this.dayGrid.renderDrag(e,t)},unrenderDrag:function(){this.dayGrid.unrenderDrag()},renderSelection:function(e){this.dayGrid.renderSelection(e)},unrenderSelection:function(){this.dayGrid.unrenderSelection()}}),at={renderHeadIntroHtml:function(){var e=this.view;return e.colWeekNumbersVisible?'<th class="fc-week-number '+e.widgetHeaderClass+'" '+e.weekNumberStyleAttr()+"><span>"+Y(e.opt("weekNumberTitle"))+"</span></th>":""},renderNumberIntroHtml:function(e){var t=this.view,i=this.getCellDate(e,0);return t.colWeekNumbersVisible?'<td class="fc-week-number" '+t.weekNumberStyleAttr()+">"+t.buildGotoAnchorHtml({date:i,type:"week",forceOff:1===this.colCnt},i.format("w"))+"</td>":""},renderBgIntroHtml:function(){var e=this.view;return e.colWeekNumbersVisible?'<td class="fc-week-number '+e.widgetContentClass+'" '+e.weekNumberStyleAttr()+"></td>":""},renderIntroHtml:function(){var e=this.view;return e.colWeekNumbersVisible?'<td class="fc-week-number" '+e.weekNumberStyleAttr()+"></td>":""}},rt=ye.MonthView=st.extend({computeRange:function(e){var t,i=st.prototype.computeRange.call(this,e);return this.isFixedWeeks()&&(t=Math.ceil(i.end.diff(i.start,"weeks",!0)),i.end.add(6-t,"weeks")),i},setGridHeight:function(e,t){t&&(e*=this.rowCnt/6),i(this.dayGrid.rowEls,e,!t)},isFixedWeeks:function(){return this.opt("fixedWeekCount")}});be.basic={class:st},be.basicDay={type:"basic",duration:{days:1}},be.basicWeek={type:"basic",duration:{weeks:1}},be.month={class:rt,duration:{months:1},defaults:{fixedWeekCount:!0}};var ot=ye.AgendaView=Ge.extend({scroller:null,timeGridClass:qe,timeGrid:null,dayGridClass:Ue,dayGrid:null,axisWidth:null,headContainerEl:null,noScrollRowEls:null,bottomRuleEl:null,initialize:function(){this.timeGrid=this.instantiateTimeGrid(),this.opt("allDaySlot")&&(this.dayGrid=this.instantiateDayGrid()),this.scroller=new Xe({overflowX:"hidden",overflowY:"auto"})},instantiateTimeGrid:function(){return new(this.timeGridClass.extend(lt))(this)},instantiateDayGrid:function(){return new(this.dayGridClass.extend(ht))(this)},setRange:function(e){Ge.prototype.setRange.call(this,e),this.timeGrid.setRange(e),this.dayGrid&&this.dayGrid.setRange(e)},renderDates:function(){this.el.addClass("fc-agenda-view").html(this.renderSkeletonHtml()),this.renderHead(),this.scroller.render();var e=this.scroller.el.addClass("fc-time-grid-container"),t=A('<div class="fc-time-grid" />').appendTo(e);this.el.find(".fc-body > tr > td").append(e),this.timeGrid.setElement(t),this.timeGrid.renderDates(),this.bottomRuleEl=A('<hr class="fc-divider '+this.widgetHeaderClass+'"/>').appendTo(this.timeGrid.el),this.dayGrid&&(this.dayGrid.setElement(this.el.find(".fc-day-grid")),this.dayGrid.renderDates(),this.dayGrid.bottomCoordPadding=this.dayGrid.el.next("hr").outerHeight()),this.noScrollRowEls=this.el.find(".fc-row:not(.fc-scroller *)")},renderHead:function(){this.headContainerEl=this.el.find(".fc-head-container").html(this.timeGrid.renderHeadHtml())},unrenderDates:function(){this.timeGrid.unrenderDates(),this.timeGrid.removeElement(),this.dayGrid&&(this.dayGrid.unrenderDates(),this.dayGrid.removeElement()),this.scroller.destroy()},renderSkeletonHtml:function(){return'<table><thead class="fc-head"><tr><td class="fc-head-container '+this.widgetHeaderClass+'"></td></tr></thead><tbody class="fc-body"><tr><td class="'+this.widgetContentClass+'">'+(this.dayGrid?'<div class="fc-day-grid"/><hr class="fc-divider '+this.widgetHeaderClass+'"/>':"")+"</td></tr></tbody></table>"},axisStyleAttr:function(){return null!==this.axisWidth?'style="width:'+this.axisWidth+'px"':""},renderBusinessHours:function(){this.timeGrid.renderBusinessHours(),this.dayGrid&&this.dayGrid.renderBusinessHours()},unrenderBusinessHours:function(){this.timeGrid.unrenderBusinessHours(),this.dayGrid&&this.dayGrid.unrenderBusinessHours()},getNowIndicatorUnit:function(){return this.timeGrid.getNowIndicatorUnit()},renderNowIndicator:function(e){this.timeGrid.renderNowIndicator(e)},unrenderNowIndicator:function(){this.timeGrid.unrenderNowIndicator()},updateSize:function(e){this.timeGrid.updateSize(e),Ge.prototype.updateSize.call(this,e)},updateWidth:function(){this.axisWidth=e(this.el.find(".fc-axis"))},setHeight:function(e,t){var i,n,s;this.bottomRuleEl.hide(),this.scroller.clear(),r(this.noScrollRowEls),this.dayGrid&&(this.dayGrid.removeSegPopover(),(i=this.opt("eventLimit"))&&"number"!=typeof i&&(i=ut),i&&this.dayGrid.limitRows(i)),t||(n=this.computeScrollerHeight(e),this.scroller.setHeight(n),((s=this.scroller.getScrollbarWidths()).left||s.right)&&(a(this.noScrollRowEls,s),n=this.computeScrollerHeight(e),this.scroller.setHeight(n)),this.scroller.lockOverflow(s),this.timeGrid.getTotalSlatHeight()<n&&this.bottomRuleEl.show())},computeScrollerHeight:function(e){return e-t(this.el,this.scroller.el)},computeInitialScroll:function(){var e=I.duration(this.opt("scrollTime")),t=this.timeGrid.computeTimeTop(e);return(t=Math.ceil(t))&&t++,{top:t}},queryScroll:function(){return{top:this.scroller.getScrollTop()}},setScroll:function(e){this.scroller.setScrollTop(e.top)},prepareHits:function(){this.timeGrid.prepareHits(),this.dayGrid&&this.dayGrid.prepareHits()},releaseHits:function(){this.timeGrid.releaseHits(),this.dayGrid&&this.dayGrid.releaseHits()},queryHit:function(e,t){var i=this.timeGrid.queryHit(e,t);return!i&&this.dayGrid&&(i=this.dayGrid.queryHit(e,t)),i},getHitSpan:function(e){return e.component.getHitSpan(e)},getHitEl:function(e){return e.component.getHitEl(e)},renderEvents:function(e){var t,i=[],n=[];for(t=0;t<e.length;t++)e[t].allDay?i.push(e[t]):n.push(e[t]);this.timeGrid.renderEvents(n),this.dayGrid&&this.dayGrid.renderEvents(i),this.updateHeight()},getEventSegs:function(){return this.timeGrid.getEventSegs().concat(this.dayGrid?this.dayGrid.getEventSegs():[])},unrenderEvents:function(){this.timeGrid.unrenderEvents(),this.dayGrid&&this.dayGrid.unrenderEvents()},renderDrag:function(e,t){return e.start.hasTime()?this.timeGrid.renderDrag(e,t):this.dayGrid?this.dayGrid.renderDrag(e,t):void 0},unrenderDrag:function(){this.timeGrid.unrenderDrag(),this.dayGrid&&this.dayGrid.unrenderDrag()},renderSelection:function(e){e.start.hasTime()||e.end.hasTime()?this.timeGrid.renderSelection(e):this.dayGrid&&this.dayGrid.renderSelection(e)},unrenderSelection:function(){this.timeGrid.unrenderSelection(),this.dayGrid&&this.dayGrid.unrenderSelection()}}),lt={renderHeadIntroHtml:function(){var e,t=this.view;return t.opt("weekNumbers")?(e=this.start.format(t.opt("smallWeekFormat")),'<th class="fc-axis fc-week-number '+t.widgetHeaderClass+'" '+t.axisStyleAttr()+">"+t.buildGotoAnchorHtml({date:this.start,type:"week",forceOff:1<this.colCnt},Y(e))+"</th>"):'<th class="fc-axis '+t.widgetHeaderClass+'" '+t.axisStyleAttr()+"></th>"},renderBgIntroHtml:function(){var e=this.view;return'<td class="fc-axis '+e.widgetContentClass+'" '+e.axisStyleAttr()+"></td>"},renderIntroHtml:function(){return'<td class="fc-axis" '+this.view.axisStyleAttr()+"></td>"}},ht={renderBgIntroHtml:function(){var e=this.view;return'<td class="fc-axis '+e.widgetContentClass+'" '+e.axisStyleAttr()+"><span>"+e.getAllDayHtml()+"</span></td>"},renderIntroHtml:function(){return'<td class="fc-axis" '+this.view.axisStyleAttr()+"></td>"}},ut=5,dt=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];be.agenda={class:ot,defaults:{allDaySlot:!0,slotDuration:"00:30:00",minTime:"00:00:00",maxTime:"24:00:00",slotEventOverlap:!0}},be.agendaDay={type:"agenda",duration:{days:1}},be.agendaWeek={type:"agenda",duration:{weeks:1}};var ct=Ge.extend({grid:null,scroller:null,initialize:function(){this.grid=new pt(this),this.scroller=new Xe({overflowX:"hidden",overflowY:"auto"})},setRange:function(e){Ge.prototype.setRange.call(this,e),this.grid.setRange(e)},renderSkeleton:function(){this.el.addClass("fc-list-view "+this.widgetContentClass),this.scroller.render(),this.scroller.el.appendTo(this.el),this.grid.setElement(this.scroller.scrollEl)},unrenderSkeleton:function(){this.scroller.destroy()},setHeight:function(e,t){this.scroller.setHeight(this.computeScrollerHeight(e))},computeScrollerHeight:function(e){return e-t(this.el,this.scroller.el)},renderEvents:function(e){this.grid.renderEvents(e)},unrenderEvents:function(){this.grid.unrenderEvents()},isEventResizable:function(e){return!1},isEventDraggable:function(e){return!1}}),pt=Ve.extend({segSelector:".fc-list-item",hasDayInteractions:!1,spanToSegs:function(e){for(var t,i=this.view,n=i.start.clone().time(0),s=0,a=[];n<i.end;)if((t=j(e,{start:n,end:n.clone().add(1,"day")}))&&(t.dayIndex=s,a.push(t)),n.add(1,"day"),s++,t&&!t.isEnd&&e.end.hasTime()&&e.end<n.clone().add(this.view.nextDayThreshold)){t.end=e.end.clone(),t.isEnd=!0;break}return a},computeEventTimeFormat:function(){return this.view.opt("mediumTimeFormat")},handleSegClick:function(e,t){var i;Ve.prototype.handleSegClick.apply(this,arguments),A(t.target).closest("a[href]").length||(i=e.event.url)&&!t.isDefaultPrevented()&&(window.location.href=i)},renderFgSegs:function(e){return(e=this.renderFgSegEls(e)).length?this.renderSegList(e):this.renderEmptyMessage(),e},renderEmptyMessage:function(){this.el.html('<div class="fc-list-empty-wrap2"><div class="fc-list-empty-wrap1"><div class="fc-list-empty">'+Y(this.view.opt("noEventsMessage"))+"</div></div></div>")},renderSegList:function(e){var t,i,n,s=this.groupSegsByDay(e),a=A('<table class="fc-list-table"><tbody/></table>'),r=a.find("tbody");for(t=0;t<s.length;t++)if(i=s[t])for(r.append(this.dayHeaderHtml(this.view.start.clone().add(t,"days"))),this.sortEventSegs(i),n=0;n<i.length;n++)r.append(i[n].el);this.el.empty().append(a)},groupSegsByDay:function(e){var t,i,n=[];for(t=0;t<e.length;t++)(n[(i=e[t]).dayIndex]||(n[i.dayIndex]=[])).push(i);return n},dayHeaderHtml:function(e){var t=this.view,i=t.opt("listDayFormat"),n=t.opt("listDayAltFormat");return'<tr class="fc-list-heading" data-date="'+e.format("YYYY-MM-DD")+'"><td class="'+t.widgetHeaderClass+'" colspan="3">'+(i?t.buildGotoAnchorHtml(e,{class:"fc-list-heading-main"},Y(e.format(i))):"")+(n?t.buildGotoAnchorHtml(e,{class:"fc-list-heading-alt"},Y(e.format(n))):"")+"</td></tr>"},fgSegHtml:function(e){var t,i=this.view,n=["fc-list-item"].concat(this.getSegCustomClasses(e)),s=this.getSegBackgroundColor(e),a=e.event,r=a.url;return t=a.allDay?i.getAllDayHtml():i.isMultiDayEvent(a)?e.isStart||e.isEnd?Y(this.getEventTimeText(e)):i.getAllDayHtml():Y(this.getEventTimeText(a)),r&&n.push("fc-has-url"),'<tr class="'+n.join(" ")+'">'+(this.displayEventTime?'<td class="fc-list-item-time '+i.widgetContentClass+'">'+(t||"")+"</td>":"")+'<td class="fc-list-item-marker '+i.widgetContentClass+'"><span class="fc-event-dot"'+(s?' style="background-color:'+s+'"':"")+'></span></td><td class="fc-list-item-title '+i.widgetContentClass+'"><a'+(r?' href="'+Y(r)+'"':"")+">"+Y(e.event.title||"")+"</a></td></tr>"}});return be.list={class:ct,buttonTextKey:"list",defaults:{buttonText:"list",listDayFormat:"LL",noEventsMessage:"No events to display"}},be.listDay={type:"list",duration:{days:1},defaults:{listDayFormat:"dddd"}},be.listWeek={type:"list",duration:{weeks:1},defaults:{listDayFormat:"dddd",listDayAltFormat:"LL"}},be.listMonth={type:"list",duration:{month:1},defaults:{listDayAltFormat:"dddd"}},be.listYear={type:"list",duration:{year:1},defaults:{listDayAltFormat:"dddd"}},ye}),function(e){"function"==typeof define&&define.amd?define(["jquery","moment"],e):"object"==typeof exports?module.exports=e(require("jquery"),require("moment")):e(jQuery,moment)}(function(e,h){var i,s,a,n,r,t,o,l,u,d,c,p,f,m,g,v,_,y,b,x,w,M,j,k,L,S,T,D,C,Y,E,H,A;h.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,i){return e<12?i?"vm":"VM":i?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},ordinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||20<=e?"ste":"de")},week:{dow:1,doy:4}}),e.fullCalendar.datepickerLocale("af","af",{closeText:"Selekteer",prevText:"Vorige",nextText:"Volgende",currentText:"Vandag",monthNames:["Januarie","Februarie","Maart","April","Mei","Junie","Julie","Augustus","September","Oktober","November","Desember"],monthNamesShort:["Jan","Feb","Mrt","Apr","Mei","Jun","Jul","Aug","Sep","Okt","Nov","Des"],dayNames:["Sondag","Maandag","Dinsdag","Woensdag","Donderdag","Vrydag","Saterdag"],dayNamesShort:["Son","Maa","Din","Woe","Don","Vry","Sat"],dayNamesMin:["So","Ma","Di","Wo","Do","Vr","Sa"],weekHeader:"Wk",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.locale("af",{buttonText:{year:"Jaar",month:"Maand",week:"Week",day:"Dag",list:"Agenda"},allDayHtml:"Heeldag",eventLimitText:"Addisionele",noEventsMessage:"Daar is geen gebeurtenis"}),D={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},C={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},Y=function(e){return 0===e?0:1===e?1:2===e?2:3<=e%100&&e%100<=10?3:11<=e%100?4:5},E={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},H=function(r){return function(e,t,i,n){var s=Y(e),a=E[r][Y(e)];return 2===s&&(a=a[t?0:1]),a.replace(/%d/i,e)}},A=["كانون الثاني يناير","شباط فبراير","آذار مارس","نيسان أبريل","أيار مايو","حزيران يونيو","تموز يوليو","آب أغسطس","أيلول سبتمبر","تشرين الأول أكتوبر","تشرين الثاني نوفمبر","كانون الأول ديسمبر"],h.defineLocale("ar",{months:A,monthsShort:A,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,i){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:H("s"),m:H("m"),mm:H("m"),h:H("h"),hh:H("h"),d:H("d"),dd:H("d"),M:H("M"),MM:H("M"),y:H("y"),yy:H("y")},preparse:function(e){return e.replace(/\u200f/g,"").replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(e){return C[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return D[e]}).replace(/,/g,"،")},week:{dow:6,doy:12}}),e.fullCalendar.datepickerLocale("ar","ar",{closeText:"إغلاق",prevText:"&#x3C;السابق",nextText:"التالي&#x3E;",currentText:"اليوم",monthNames:["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],monthNamesShort:["1","2","3","4","5","6","7","8","9","10","11","12"],dayNames:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],dayNamesShort:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],dayNamesMin:["ح","ن","ث","ر","خ","ج","س"],weekHeader:"أسبوع",dateFormat:"dd/mm/yy",firstDay:0,isRTL:!0,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.locale("ar",{buttonText:{month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},allDayText:"اليوم كله",eventLimitText:"أخرى",noEventsMessage:"أي أحداث لعرض"}),h.defineLocale("ar-dz",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"أح_إث_ثلا_أر_خم_جم_سب".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:4}}),e.fullCalendar.datepickerLocale("ar-dz","ar-DZ",{closeText:"إغلاق",prevText:"&#x3C;السابق",nextText:"التالي&#x3E;",currentText:"اليوم",monthNames:["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],monthNamesShort:["1","2","3","4","5","6","7","8","9","10","11","12"],dayNames:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],dayNamesShort:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],dayNamesMin:["ح","ن","ث","ر","خ","ج","س"],weekHeader:"أسبوع",dateFormat:"dd/mm/yy",firstDay:6,isRTL:!0,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.locale("ar-dz",{buttonText:{month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},allDayText:"اليوم كله",eventLimitText:"أخرى",noEventsMessage:"أي أحداث لعرض"}),j={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},k=function(e){return 0===e?0:1===e?1:2===e?2:3<=e%100&&e%100<=10?3:11<=e%100?4:5},L={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},S=function(r){return function(e,t,i,n){var s=k(e),a=L[r][k(e)];return 2===s&&(a=a[t?0:1]),a.replace(/%d/i,e)}},T=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],h.defineLocale("ar-ly",{months:T,monthsShort:T,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,i){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:S("s"),m:S("m"),mm:S("m"),h:S("h"),hh:S("h"),d:S("d"),dd:S("d"),M:S("M"),MM:S("M"),y:S("y"),yy:S("y")},preparse:function(e){return e.replace(/\u200f/g,"").replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return j[e]}).replace(/,/g,"،")},week:{dow:6,doy:12}}),e.fullCalendar.datepickerLocale("ar-ly","ar",{closeText:"إغلاق",prevText:"&#x3C;السابق",nextText:"التالي&#x3E;",currentText:"اليوم",monthNames:["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],monthNamesShort:["1","2","3","4","5","6","7","8","9","10","11","12"],dayNames:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],dayNamesShort:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],dayNamesMin:["ح","ن","ث","ر","خ","ج","س"],weekHeader:"أسبوع",dateFormat:"dd/mm/yy",firstDay:0,isRTL:!0,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.locale("ar-ly",{buttonText:{month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},allDayText:"اليوم كله",eventLimitText:"أخرى",noEventsMessage:"أي أحداث لعرض"}),h.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:6,doy:12}}),e.fullCalendar.datepickerLocale("ar-ma","ar",{closeText:"إغلاق",prevText:"&#x3C;السابق",nextText:"التالي&#x3E;",currentText:"اليوم",monthNames:["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],monthNamesShort:["1","2","3","4","5","6","7","8","9","10","11","12"],dayNames:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],dayNamesShort:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],dayNamesMin:["ح","ن","ث","ر","خ","ج","س"],weekHeader:"أسبوع",dateFormat:"dd/mm/yy",firstDay:0,isRTL:!0,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.locale("ar-ma",{buttonText:{month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},allDayText:"اليوم كله",eventLimitText:"أخرى",noEventsMessage:"أي أحداث لعرض"}),w={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},M={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},h.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,i){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(e){return M[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return w[e]}).replace(/,/g,"،")},week:{dow:0,doy:6}}),e.fullCalendar.datepickerLocale("ar-sa","ar",{closeText:"إغلاق",prevText:"&#x3C;السابق",nextText:"التالي&#x3E;",currentText:"اليوم",monthNames:["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],monthNamesShort:["1","2","3","4","5","6","7","8","9","10","11","12"],dayNames:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],dayNamesShort:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],dayNamesMin:["ح","ن","ث","ر","خ","ج","س"],weekHeader:"أسبوع",dateFormat:"dd/mm/yy",firstDay:0,isRTL:!0,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.locale("ar-sa",{buttonText:{month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},allDayText:"اليوم كله",eventLimitText:"أخرى",noEventsMessage:"أي أحداث لعرض"}),h.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}}),e.fullCalendar.datepickerLocale("ar-tn","ar",{closeText:"إغلاق",prevText:"&#x3C;السابق",nextText:"التالي&#x3E;",currentText:"اليوم",monthNames:["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],monthNamesShort:["1","2","3","4","5","6","7","8","9","10","11","12"],dayNames:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],dayNamesShort:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],dayNamesMin:["ح","ن","ث","ر","خ","ج","س"],weekHeader:"أسبوع",dateFormat:"dd/mm/yy",firstDay:0,isRTL:!0,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.locale("ar-tn",{buttonText:{month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},allDayText:"اليوم كله",eventLimitText:"أخرى",noEventsMessage:"أي أحداث لعرض"}),h.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[В изминалата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[В изминалия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дни",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},ordinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,i=e%100;return 0===e?e+"-ев":0===i?e+"-ен":10<i&&i<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}}),e.fullCalendar.datepickerLocale("bg","bg",{closeText:"затвори",prevText:"&#x3C;назад",nextText:"напред&#x3E;",nextBigText:"&#x3E;&#x3E;",currentText:"днес",monthNames:["Януари","Февруари","Март","Април","Май","Юни","Юли","Август","Септември","Октомври","Ноември","Декември"],monthNamesShort:["Яну","Фев","Мар","Апр","Май","Юни","Юли","Авг","Сеп","Окт","Нов","Дек"],dayNames:["Неделя","Понеделник","Вторник","Сряда","Четвъртък","Петък","Събота"],dayNamesShort:["Нед","Пон","Вто","Сря","Чет","Пет","Съб"],dayNamesMin:["Не","По","Вт","Ср","Че","Пе","Съ"],weekHeader:"Wk",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.locale("bg",{buttonText:{month:"Месец",week:"Седмица",day:"Ден",list:"График"},allDayText:"Цял ден",eventLimitText:function(e){return"+още "+e},noEventsMessage:"Няма събития за показване"}),h.defineLocale("ca",{months:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),monthsShort:"gen._febr._mar._abr._mai._jun._jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"Dg_Dl_Dt_Dc_Dj_Dv_Ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd D MMMM YYYY H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},ordinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var i=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(i="a"),e+i},week:{dow:1,doy:4}}),e.fullCalendar.datepickerLocale("ca","ca",{closeText:"Tanca",prevText:"Anterior",nextText:"Següent",currentText:"Avui",monthNames:["gener","febrer","març","abril","maig","juny","juliol","agost","setembre","octubre","novembre","desembre"],monthNamesShort:["gen","feb","març","abr","maig","juny","jul","ag","set","oct","nov","des"],dayNames:["diumenge","dilluns","dimarts","dimecres","dijous","divendres","dissabte"],dayNamesShort:["dg","dl","dt","dc","dj","dv","ds"],dayNamesMin:["dg","dl","dt","dc","dj","dv","ds"],weekHeader:"Set",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.locale("ca",{buttonText:{month:"Mes",week:"Setmana",day:"Dia",list:"Agenda"},allDayText:"Tot el dia",eventLimitText:"més",noEventsMessage:"No hi ha esdeveniments per mostrar"}),function(){function a(e){return 1<e&&e<5&&1!=~~(e/10)}function e(e,t,i,n){var s=e+" ";switch(i){case"s":return t||n?"pár sekund":"pár sekundami";case"m":return t?"minuta":n?"minutu":"minutou";case"mm":return t||n?s+(a(e)?"minuty":"minut"):s+"minutami";case"h":return t?"hodina":n?"hodinu":"hodinou";case"hh":return t||n?s+(a(e)?"hodiny":"hodin"):s+"hodinami";case"d":return t||n?"den":"dnem";case"dd":return t||n?s+(a(e)?"dny":"dní"):s+"dny";case"M":return t||n?"měsíc":"měsícem";case"MM":return t||n?s+(a(e)?"měsíce":"měsíců"):s+"měsíci";case"y":return t||n?"rok":"rokem";case"yy":return t||n?s+(a(e)?"roky":"let"):s+"lety"}}var t="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),i="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_");h.defineLocale("cs",{months:t,monthsShort:i,monthsParse:function(e,t){var i,n=[];for(i=0;i<12;i++)n[i]=new RegExp("^"+e[i]+"$|^"+t[i]+"$","i");return n}(t,i),shortMonthsParse:function(e){var t,i=[];for(t=0;t<12;t++)i[t]=new RegExp("^"+e[t]+"$","i");return i}(i),longMonthsParse:function(e){var t,i=[];for(t=0;t<12;t++)i[t]=new RegExp("^"+e[t]+"$","i");return i}(t),weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(),e.fullCalendar.datepickerLocale("cs","cs",{closeText:"Zavřít",prevText:"&#x3C;Dříve",nextText:"Později&#x3E;",currentText:"Nyní",monthNames:["leden","únor","březen","duben","květen","červen","červenec","srpen","září","říjen","listopad","prosinec"],monthNamesShort:["led","úno","bře","dub","kvě","čer","čvc","srp","zář","říj","lis","pro"],dayNames:["neděle","pondělí","úterý","středa","čtvrtek","pátek","sobota"],dayNamesShort:["ne","po","út","st","čt","pá","so"],dayNamesMin:["ne","po","út","st","čt","pá","so"],weekHeader:"Týd",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.locale("cs",{buttonText:{month:"Měsíc",week:"Týden",day:"Den",list:"Agenda"},allDayText:"Celý den",eventLimitText:function(e){return"+další: "+e},noEventsMessage:"Žádné akce k zobrazení"}),h.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY HH:mm"},calendar:{sameDay:"[I dag kl.] LT",nextDay:"[I morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[I går kl.] LT",lastWeek:"[sidste] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),e.fullCalendar.datepickerLocale("da","da",{closeText:"Luk",prevText:"&#x3C;Forrige",nextText:"Næste&#x3E;",currentText:"Idag",monthNames:["Januar","Februar","Marts","April","Maj","Juni","Juli","August","September","Oktober","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],dayNames:["Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag"],dayNamesShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør"],dayNamesMin:["Sø","Ma","Ti","On","To","Fr","Lø"],weekHeader:"Uge",dateFormat:"dd-mm-yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.locale("da",{buttonText:{month:"Måned",week:"Uge",day:"Dag",list:"Agenda"},allDayText:"Hele dagen",eventLimitText:"flere",noEventsMessage:"Ingen arrangementer at vise"}),function(){function e(e,t,i,n){var s={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?s[i][0]:s[i][1]}h.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",m:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,M:e,MM:e,y:e,yy:e},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(),e.fullCalendar.datepickerLocale("de","de",{closeText:"Schließen",prevText:"&#x3C;Zurück",nextText:"Vor&#x3E;",currentText:"Heute",monthNames:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthNamesShort:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],dayNames:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],dayNamesShort:["So","Mo","Di","Mi","Do","Fr","Sa"],dayNamesMin:["So","Mo","Di","Mi","Do","Fr","Sa"],weekHeader:"KW",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.locale("de",{buttonText:{month:"Monat",week:"Woche",day:"Tag",list:"Terminübersicht"},allDayText:"Ganztägig",eventLimitText:function(e){return"+ weitere "+e},noEventsMessage:"Keine Ereignisse anzuzeigen"}),function(){function e(e,t,i,n){var s={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?s[i][0]:s[i][1]}h.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",m:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,M:e,MM:e,y:e,yy:e},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(),e.fullCalendar.datepickerLocale("de-at","de",{closeText:"Schließen",prevText:"&#x3C;Zurück",nextText:"Vor&#x3E;",currentText:"Heute",monthNames:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthNamesShort:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],dayNames:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],dayNamesShort:["So","Mo","Di","Mi","Do","Fr","Sa"],dayNamesMin:["So","Mo","Di","Mi","Do","Fr","Sa"],weekHeader:"KW",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.locale("de-at",{buttonText:{month:"Monat",week:"Woche",day:"Tag",list:"Terminübersicht"},allDayText:"Ganztägig",eventLimitText:function(e){return"+ weitere "+e},noEventsMessage:"Keine Ereignisse anzuzeigen"}),h.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,t){return/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,t,i){return 11<e?i?"μμ":"ΜΜ":i?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(e,t){var i,n=this._calendarEl[e],s=t&&t.hours();return((i=n)instanceof Function||"[object Function]"===Object.prototype.toString.call(i))&&(n=n.apply(t)),n.replace("{}",s%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},ordinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}}),e.fullCalendar.datepickerLocale("el","el",{closeText:"Κλείσιμο",prevText:"Προηγούμενος",nextText:"Επόμενος",currentText:"Σήμερα",monthNames:["Ιανουάριος","Φεβρουάριος","Μάρτιος","Απρίλιος","Μάιος","Ιούνιος","Ιούλιος","Αύγουστος","Σεπτέμβριος","Οκτώβριος","Νοέμβριος","Δεκέμβριος"],monthNamesShort:["Ιαν","Φεβ","Μαρ","Απρ","Μαι","Ιουν","Ιουλ","Αυγ","Σεπ","Οκτ","Νοε","Δεκ"],dayNames:["Κυριακή","Δευτέρα","Τρίτη","Τετάρτη","Πέμπτη","Παρασκευή","Σάββατο"],dayNamesShort:["Κυρ","Δευ","Τρι","Τετ","Πεμ","Παρ","Σαβ"],dayNamesMin:["Κυ","Δε","Τρ","Τε","Πε","Πα","Σα"],weekHeader:"Εβδ",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.locale("el",{buttonText:{month:"Μήνας",week:"Εβδομάδα",day:"Ημέρα",list:"Ατζέντα"},allDayText:"Ολοήμερο",eventLimitText:"περισσότερα",noEventsMessage:"Δεν υπάρχουν γεγονότα για να εμφανιστεί"}),h.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}}),e.fullCalendar.datepickerLocale("en-au","en-AU",{closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.locale("en-au"),h.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),e.fullCalendar.locale("en-ca"),h.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}}),e.fullCalendar.datepickerLocale("en-gb","en-GB",{closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.locale("en-gb"),h.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}}),e.fullCalendar.locale("en-ie"),h.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}}),e.fullCalendar.datepickerLocale("en-nz","en-NZ",{closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.locale("en-nz"),b="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),x="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),h.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,t){return/-MMM-/.test(t)?x[e.month()]:b[e.month()]},monthsParseExact:!0,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}}),e.fullCalendar.datepickerLocale("es","es",{closeText:"Cerrar",prevText:"&#x3C;Ant",nextText:"Sig&#x3E;",currentText:"Hoy",monthNames:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"],monthNamesShort:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],dayNames:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],dayNamesShort:["dom","lun","mar","mié","jue","vie","sáb"],dayNamesMin:["D","L","M","X","J","V","S"],weekHeader:"Sm",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.locale("es",{buttonText:{month:"Mes",week:"Semana",day:"Día",list:"Agenda"},allDayHtml:"Todo<br/>el día",eventLimitText:"más",noEventsMessage:"No hay eventos para mostrar"}),_="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),y="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),h.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,t){return/-MMM-/.test(t)?y[e.month()]:_[e.month()]},monthsParseExact:!0,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}}),e.fullCalendar.datepickerLocale("es-do","es",{closeText:"Cerrar",prevText:"&#x3C;Ant",nextText:"Sig&#x3E;",currentText:"Hoy",monthNames:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"],monthNamesShort:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],dayNames:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],dayNamesShort:["dom","lun","mar","mié","jue","vie","sáb"],dayNamesMin:["D","L","M","X","J","V","S"],weekHeader:"Sm",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.locale("es-do",{buttonText:{month:"Mes",week:"Semana",day:"Día",list:"Agenda"},allDayHtml:"Todo<br/>el día",eventLimitText:"más",noEventsMessage:"No hay eventos para mostrar"}),h.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),e.fullCalendar.datepickerLocale("eu","eu",{closeText:"Egina",prevText:"&#x3C;Aur",nextText:"Hur&#x3E;",currentText:"Gaur",monthNames:["urtarrila","otsaila","martxoa","apirila","maiatza","ekaina","uztaila","abuztua","iraila","urria","azaroa","abendua"],monthNamesShort:["urt.","ots.","mar.","api.","mai.","eka.","uzt.","abu.","ira.","urr.","aza.","abe."],dayNames:["igandea","astelehena","asteartea","asteazkena","osteguna","ostirala","larunbata"],dayNamesShort:["ig.","al.","ar.","az.","og.","ol.","lr."],dayNamesMin:["ig","al","ar","az","og","ol","lr"],weekHeader:"As",dateFormat:"yy-mm-dd",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.locale("eu",{buttonText:{month:"Hilabetea",week:"Astea",day:"Eguna",list:"Agenda"},allDayHtml:"Egun<br/>osoa",eventLimitText:"gehiago",noEventsMessage:"Ez dago ekitaldirik erakusteko"}),g={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},v={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"},h.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e,t,i){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چندین ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,function(e){return v[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return g[e]}).replace(/,/g,"،")},ordinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}}),e.fullCalendar.datepickerLocale("fa","fa",{closeText:"بستن",prevText:"&#x3C;قبلی",nextText:"بعدی&#x3E;",currentText:"امروز",monthNames:["ژانویه","فوریه","مارس","آوریل","مه","ژوئن","ژوئیه","اوت","سپتامبر","اکتبر","نوامبر","دسامبر"],monthNamesShort:["1","2","3","4","5","6","7","8","9","10","11","12"],dayNames:["يکشنبه","دوشنبه","سه‌شنبه","چهارشنبه","پنجشنبه","جمعه","شنبه"],dayNamesShort:["ی","د","س","چ","پ","ج","ش"],dayNamesMin:["ی","د","س","چ","پ","ج","ش"],weekHeader:"هف",dateFormat:"yy/mm/dd",firstDay:6,isRTL:!0,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.locale("fa",{buttonText:{month:"ماه",week:"هفته",day:"روز",list:"برنامه"},allDayText:"تمام روز",eventLimitText:function(e){return"بیش از "+e},noEventsMessage:"هیچ رویدادی به نمایش"}),function(){function e(e,t,i,n){var s,a,r="";switch(i){case"s":return n?"muutaman sekunnin":"muutama sekunti";case"m":return n?"minuutin":"minuutti";case"mm":r=n?"minuutin":"minuuttia";break;case"h":return n?"tunnin":"tunti";case"hh":r=n?"tunnin":"tuntia";break;case"d":return n?"päivän":"päivä";case"dd":r=n?"päivän":"päivää";break;case"M":return n?"kuukauden":"kuukausi";case"MM":r=n?"kuukauden":"kuukautta";break;case"y":return n?"vuoden":"vuosi";case"yy":r=n?"vuoden":"vuotta"}return a=n,((s=e)<10?a?l[s]:o[s]:s)+" "+r}var o="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),l=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",o[7],o[8],o[9]];h.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(),e.fullCalendar.datepickerLocale("fi","fi",{closeText:"Sulje",prevText:"&#xAB;Edellinen",nextText:"Seuraava&#xBB;",currentText:"Tänään",monthNames:["Tammikuu","Helmikuu","Maaliskuu","Huhtikuu","Toukokuu","Kesäkuu","Heinäkuu","Elokuu","Syyskuu","Lokakuu","Marraskuu","Joulukuu"],monthNamesShort:["Tammi","Helmi","Maalis","Huhti","Touko","Kesä","Heinä","Elo","Syys","Loka","Marras","Joulu"],dayNamesShort:["Su","Ma","Ti","Ke","To","Pe","La"],dayNames:["Sunnuntai","Maanantai","Tiistai","Keskiviikko","Torstai","Perjantai","Lauantai"],dayNamesMin:["Su","Ma","Ti","Ke","To","Pe","La"],weekHeader:"Vk",dateFormat:"d.m.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.locale("fi",{buttonText:{month:"Kuukausi",week:"Viikko",day:"Päivä",list:"Tapahtumat"},allDayText:"Koko päivä",eventLimitText:"lisää",noEventsMessage:"Ei tapahtumia näytettäviä"}),h.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd'hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinalParse:/\d{1,2}(er|)/,ordinal:function(e){return e+(1===e?"er":"")},week:{dow:1,doy:4}}),e.fullCalendar.datepickerLocale("fr","fr",{closeText:"Fermer",prevText:"Précédent",nextText:"Suivant",currentText:"Aujourd'hui",monthNames:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],monthNamesShort:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],dayNames:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],dayNamesShort:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],dayNamesMin:["D","L","M","M","J","V","S"],weekHeader:"Sem.",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.locale("fr",{buttonText:{year:"Année",month:"Mois",week:"Semaine",day:"Jour",list:"Mon planning"},allDayHtml:"Toute la<br/>journée",eventLimitText:"en plus",noEventsMessage:"Aucun événement à afficher"}),h.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd'hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinalParse:/\d{1,2}(er|e)/,ordinal:function(e){return e+(1===e?"er":"e")}}),e.fullCalendar.datepickerLocale("fr-ca","fr-CA",{closeText:"Fermer",prevText:"Précédent",nextText:"Suivant",currentText:"Aujourd'hui",monthNames:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],monthNamesShort:["janv.","févr.","mars","avril","mai","juin","juil.","août","sept.","oct.","nov.","déc."],dayNames:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],dayNamesShort:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],dayNamesMin:["D","L","M","M","J","V","S"],weekHeader:"Sem.",dateFormat:"yy-mm-dd",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.locale("fr-ca",{buttonText:{year:"Année",month:"Mois",week:"Semaine",day:"Jour",list:"Mon planning"},allDayHtml:"Toute la<br/>journée",eventLimitText:"en plus",noEventsMessage:"Aucun événement à afficher"}),h.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd'hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinalParse:/\d{1,2}(er|e)/,ordinal:function(e){return e+(1===e?"er":"e")},week:{dow:1,doy:4}}),e.fullCalendar.datepickerLocale("fr-ch","fr-CH",{closeText:"Fermer",prevText:"&#x3C;Préc",nextText:"Suiv&#x3E;",currentText:"Courant",monthNames:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],monthNamesShort:["janv.","févr.","mars","avril","mai","juin","juil.","août","sept.","oct.","nov.","déc."],dayNames:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],dayNamesShort:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],dayNamesMin:["D","L","M","M","J","V","S"],weekHeader:"Sm",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.locale("fr-ch",{buttonText:{year:"Année",month:"Mois",week:"Semaine",day:"Jour",list:"Mon planning"},allDayHtml:"Toute la<br/>journée",eventLimitText:"en plus",noEventsMessage:"Aucun événement à afficher"}),h.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}}),e.fullCalendar.datepickerLocale("gl","gl",{closeText:"Pechar",prevText:"&#x3C;Ant",nextText:"Seg&#x3E;",currentText:"Hoxe",monthNames:["Xaneiro","Febreiro","Marzo","Abril","Maio","Xuño","Xullo","Agosto","Setembro","Outubro","Novembro","Decembro"],monthNamesShort:["Xan","Feb","Mar","Abr","Mai","Xuñ","Xul","Ago","Set","Out","Nov","Dec"],dayNames:["Domingo","Luns","Martes","Mércores","Xoves","Venres","Sábado"],dayNamesShort:["Dom","Lun","Mar","Mér","Xov","Ven","Sáb"],dayNamesMin:["Do","Lu","Ma","Mé","Xo","Ve","Sá"],weekHeader:"Sm",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.locale("gl",{buttonText:{month:"Mes",week:"Semana",day:"Día",list:"Axenda"},allDayHtml:"Todo<br/>o día",eventLimitText:"máis",noEventsMessage:"Non hai eventos para amosar"}),h.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(e){return 2===e?"שעתיים":e+" שעות"},d:"יום",dd:function(e){return 2===e?"יומיים":e+" ימים"},M:"חודש",MM:function(e){return 2===e?"חודשיים":e+" חודשים"},y:"שנה",yy:function(e){return 2===e?"שנתיים":e%10==0&&10!==e?e+" שנה":e+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(e){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(e)},meridiem:function(e,t,i){return e<5?"לפנות בוקר":e<10?"בבוקר":e<12?i?'לפנה"צ':"לפני הצהריים":e<18?i?'אחה"צ':"אחרי הצהריים":"בערב"}}),e.fullCalendar.datepickerLocale("he","he",{closeText:"סגור",prevText:"&#x3C;הקודם",nextText:"הבא&#x3E;",currentText:"היום",monthNames:["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר"],monthNamesShort:["ינו","פבר","מרץ","אפר","מאי","יוני","יולי","אוג","ספט","אוק","נוב","דצמ"],dayNames:["ראשון","שני","שלישי","רביעי","חמישי","שישי","שבת"],dayNamesShort:["א'","ב'","ג'","ד'","ה'","ו'","שבת"],dayNamesMin:["א'","ב'","ג'","ד'","ה'","ו'","שבת"],weekHeader:"Wk",dateFormat:"dd/mm/yy",firstDay:0,isRTL:!0,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.locale("he",{buttonText:{month:"חודש",week:"שבוע",day:"יום",list:"סדר יום"},allDayText:"כל היום",eventLimitText:"אחר",noEventsMessage:"אין אירועים להצגה",weekNumberTitle:"שבוע"}),f={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},m={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},h.defineLocale("hi",{months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,function(e){return m[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return f[e]})},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात"===t?e<4?e:e+12:"सुबह"===t?e:"दोपहर"===t?10<=e?e:e+12:"शाम"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}}),e.fullCalendar.datepickerLocale("hi","hi",{closeText:"बंद",prevText:"पिछला",nextText:"अगला",currentText:"आज",monthNames:["जनवरी ","फरवरी","मार्च","अप्रेल","मई","जून","जूलाई","अगस्त ","सितम्बर","अक्टूबर","नवम्बर","दिसम्बर"],monthNamesShort:["जन","फर","मार्च","अप्रेल","मई","जून","जूलाई","अग","सित","अक्ट","नव","दि"],dayNames:["रविवार","सोमवार","मंगलवार","बुधवार","गुरुवार","शुक्रवार","शनिवार"],dayNamesShort:["रवि","सोम","मंगल","बुध","गुरु","शुक्र","शनि"],dayNamesMin:["रवि","सोम","मंगल","बुध","गुरु","शुक्र","शनि"],weekHeader:"हफ्ता",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.locale("hi",{buttonText:{month:"महीना",week:"सप्ताह",day:"दिन",list:"कार्यसूची"},allDayText:"सभी दिन",eventLimitText:function(e){return"+अधिक "+e},noEventsMessage:"कोई घटनाओं को प्रदर्शित करने के लिए"}),function(){function e(e,t,i){var n=e+" ";switch(i){case"m":return t?"jedna minuta":"jedne minute";case"mm":return n+(1===e?"minuta":2===e||3===e||4===e?"minute":"minuta");case"h":return t?"jedan sat":"jednog sata";case"hh":return n+(1===e?"sat":2===e||3===e||4===e?"sata":"sati");case"dd":return n+(1===e?"dan":"dana");case"MM":return n+(1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci");case"yy":return n+(1===e?"godina":2===e||3===e||4===e?"godine":"godina")}}h.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",m:e,mm:e,h:e,hh:e,d:"dan",dd:e,M:"mjesec",MM:e,y:"godinu",yy:e},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(),e.fullCalendar.datepickerLocale("hr","hr",{closeText:"Zatvori",prevText:"&#x3C;",nextText:"&#x3E;",currentText:"Danas",monthNames:["Siječanj","Veljača","Ožujak","Travanj","Svibanj","Lipanj","Srpanj","Kolovoz","Rujan","Listopad","Studeni","Prosinac"],monthNamesShort:["Sij","Velj","Ožu","Tra","Svi","Lip","Srp","Kol","Ruj","Lis","Stu","Pro"],dayNames:["Nedjelja","Ponedjeljak","Utorak","Srijeda","Četvrtak","Petak","Subota"],dayNamesShort:["Ned","Pon","Uto","Sri","Čet","Pet","Sub"],dayNamesMin:["Ne","Po","Ut","Sr","Če","Pe","Su"],weekHeader:"Tje",dateFormat:"dd.mm.yy.",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.locale("hr",{buttonText:{month:"Mjesec",week:"Tjedan",day:"Dan",list:"Raspored"},allDayText:"Cijeli dan",eventLimitText:function(e){return"+ još "+e},noEventsMessage:"Nema događaja za prikaz"}),function(){function e(e,t,i,n){var s=e;switch(i){case"s":return n||t?"néhány másodperc":"néhány másodperce";case"m":return"egy"+(n||t?" perc":" perce");case"mm":return s+(n||t?" perc":" perce");case"h":return"egy"+(n||t?" óra":" órája");case"hh":return s+(n||t?" óra":" órája");case"d":return"egy"+(n||t?" nap":" napja");case"dd":return s+(n||t?" nap":" napja");case"M":return"egy"+(n||t?" hónap":" hónapja");case"MM":return s+(n||t?" hónap":" hónapja");case"y":return"egy"+(n||t?" év":" éve");case"yy":return s+(n||t?" év":" éve")}return""}function t(e){return(e?"":"[múlt] ")+"["+i[this.day()]+"] LT[-kor]"}var i="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");h.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,i){return e<12?!0===i?"de":"DE":!0===i?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return t.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return t.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(),e.fullCalendar.datepickerLocale("hu","hu",{closeText:"bezár",prevText:"vissza",nextText:"előre",currentText:"ma",monthNames:["Január","Február","Március","Április","Május","Június","Július","Augusztus","Szeptember","Október","November","December"],monthNamesShort:["Jan","Feb","Már","Ápr","Máj","Jún","Júl","Aug","Szep","Okt","Nov","Dec"],dayNames:["Vasárnap","Hétfő","Kedd","Szerda","Csütörtök","Péntek","Szombat"],dayNamesShort:["Vas","Hét","Ked","Sze","Csü","Pén","Szo"],dayNamesMin:["V","H","K","Sze","Cs","P","Szo"],weekHeader:"Hét",dateFormat:"yy.mm.dd.",firstDay:1,isRTL:!1,showMonthAfterYear:!0,yearSuffix:""}),e.fullCalendar.locale("hu",{buttonText:{month:"Hónap",week:"Hét",day:"Nap",list:"Napló"},allDayText:"Egész nap",eventLimitText:"további",noEventsMessage:"Nincs megjeleníthető események"}),h.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?11<=e?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,i){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}}),e.fullCalendar.datepickerLocale("id","id",{closeText:"Tutup",prevText:"&#x3C;mundur",nextText:"maju&#x3E;",currentText:"hari ini",monthNames:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","Nopember","Desember"],monthNamesShort:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Agus","Sep","Okt","Nop","Des"],dayNames:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"],dayNamesShort:["Min","Sen","Sel","Rab","kam","Jum","Sab"],dayNamesMin:["Mg","Sn","Sl","Rb","Km","jm","Sb"],weekHeader:"Mg",dateFormat:"dd/mm/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.locale("id",{buttonText:{month:"Bulan",week:"Minggu",day:"Hari",list:"Agenda"},allDayHtml:"Sehari<br/>penuh",eventLimitText:"lebih",noEventsMessage:"Tidak ada acara untuk ditampilkan"}),function(){function a(e){return e%100==11||e%10!=1}function e(e,t,i,n){var s=e+" ";switch(i){case"s":return t||n?"nokkrar sekúndur":"nokkrum sekúndum";case"m":return t?"mínúta":"mínútu";case"mm":return a(e)?s+(t||n?"mínútur":"mínútum"):t?s+"mínúta":s+"mínútu";case"hh":return a(e)?s+(t||n?"klukkustundir":"klukkustundum"):s+"klukkustund";case"d":return t?"dagur":n?"dag":"degi";case"dd":return a(e)?t?s+"dagar":s+(n?"daga":"dögum"):t?s+"dagur":s+(n?"dag":"degi");case"M":return t?"mánuður":n?"mánuð":"mánuði";case"MM":return a(e)?t?s+"mánuðir":s+(n?"mánuði":"mánuðum"):t?s+"mánuður":s+(n?"mánuð":"mánuði");case"y":return t||n?"ár":"ári";case"yy":return a(e)?s+(t||n?"ár":"árum"):s+(t||n?"ár":"ári")}}h.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:e,m:e,mm:e,h:"klukkustund",hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(),e.fullCalendar.datepickerLocale("is","is",{closeText:"Loka",prevText:"&#x3C; Fyrri",nextText:"Næsti &#x3E;",currentText:"Í dag",monthNames:["Janúar","Febrúar","Mars","Apríl","Maí","Júní","Júlí","Ágúst","September","Október","Nóvember","Desember"],monthNamesShort:["Jan","Feb","Mar","Apr","Maí","Jún","Júl","Ágú","Sep","Okt","Nóv","Des"],dayNames:["Sunnudagur","Mánudagur","Þriðjudagur","Miðvikudagur","Fimmtudagur","Föstudagur","Laugardagur"],dayNamesShort:["Sun","Mán","Þri","Mið","Fim","Fös","Lau"],dayNamesMin:["Su","Má","Þr","Mi","Fi","Fö","La"],weekHeader:"Vika",dateFormat:"dd.mm.yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.locale("is",{buttonText:{month:"Mánuður",week:"Vika",day:"Dagur",list:"Dagskrá"},allDayHtml:"Allan<br/>daginn",eventLimitText:"meira",noEventsMessage:"Engir viðburðir til að sýna"}),h.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"Domenica_Lunedì_Martedì_Mercoledì_Giovedì_Venerdì_Sabato".split("_"),weekdaysShort:"Dom_Lun_Mar_Mer_Gio_Ven_Sab".split("_"),weekdaysMin:"Do_Lu_Ma_Me_Gi_Ve_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}}),e.fullCalendar.datepickerLocale("it","it",{closeText:"Chiudi",prevText:"&#x3C;Prec",nextText:"Succ&#x3E;",currentText:"Oggi",monthNames:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],monthNamesShort:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],dayNames:["Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato"],dayNamesShort:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],dayNamesMin:["Do","Lu","Ma","Me","Gi","Ve","Sa"],weekHeader:"Sm",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.locale("it",{buttonText:{month:"Mese",week:"Settimana",day:"Giorno",list:"Agenda"},allDayHtml:"Tutto il<br/>giorno",eventLimitText:function(e){return"+altri "+e},noEventsMessage:"Non ci sono eventi da visualizzare"}),h.defineLocale("ja",{months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"Ah時m分",LTS:"Ah時m分s秒",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah時m分",LLLL:"YYYY年M月D日Ah時m分 dddd"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,t,i){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:"[来週]dddd LT",lastDay:"[昨日] LT",lastWeek:"[前週]dddd LT",sameElse:"L"},ordinalParse:/\d{1,2}日/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}}),e.fullCalendar.datepickerLocale("ja","ja",{closeText:"閉じる",prevText:"&#x3C;前",nextText:"次&#x3E;",currentText:"今日",monthNames:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],monthNamesShort:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayNames:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"],dayNamesShort:["日","月","火","水","木","金","土"],dayNamesMin:["日","月","火","水","木","金","土"],weekHeader:"週",dateFormat:"yy/mm/dd",firstDay:0,isRTL:!1,showMonthAfterYear:!0,yearSuffix:"年"}),e.fullCalendar.locale("ja",{buttonText:{month:"月",week:"週",day:"日",list:"予定リスト"},allDayText:"終日",eventLimitText:function(e){return"他 "+e+" 件"},noEventsMessage:"イベントが表示されないように"}),p={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"},h.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},ordinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(e){return e+(p[e]||p[e%10]||p[100<=e?100:null])},week:{dow:1,doy:7}}),e.fullCalendar.datepickerLocale("kk","kk",{closeText:"Жабу",prevText:"&#x3C;Алдыңғы",nextText:"Келесі&#x3E;",currentText:"Бүгін",monthNames:["Қаңтар","Ақпан","Наурыз","Сәуір","Мамыр","Маусым","Шілде","Тамыз","Қыркүйек","Қазан","Қараша","Желтоқсан"],monthNamesShort:["Қаң","Ақп","Нау","Сәу","Мам","Мау","Шіл","Там","Қыр","Қаз","Қар","Жел"],dayNames:["Жексенбі","Дүйсенбі","Сейсенбі","Сәрсенбі","Бейсенбі","Жұма","Сенбі"],dayNamesShort:["жкс","дсн","ссн","срс","бсн","жма","снб"],dayNamesMin:["Жк","Дс","Сс","Ср","Бс","Жм","Сн"],weekHeader:"Не",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.locale("kk",{buttonText:{month:"Ай",week:"Апта",day:"Күн",list:"Күн тәртібі"},allDayText:"Күні бойы",eventLimitText:function(e){return"+ тағы "+e},noEventsMessage:"Көрсету үшін оқиғалар жоқ"}),h.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h시 m분",LTS:"A h시 m분 s초",L:"YYYY.MM.DD",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h시 m분",LLLL:"YYYY년 MMMM D일 dddd A h시 m분"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"일분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},ordinalParse:/\d{1,2}일/,ordinal:"%d일",meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,t,i){return e<12?"오전":"오후"}}),e.fullCalendar.datepickerLocale("ko","ko",{closeText:"닫기",prevText:"이전달",nextText:"다음달",currentText:"오늘",monthNames:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],monthNamesShort:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],dayNames:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"],dayNamesShort:["일","월","화","수","목","금","토"],dayNamesMin:["일","월","화","수","목","금","토"],weekHeader:"주",dateFormat:"yy. m. d.",firstDay:0,isRTL:!1,showMonthAfterYear:!0,yearSuffix:"년"}),e.fullCalendar.locale("ko",{buttonText:{month:"월",week:"주",day:"일",list:"일정목록"},allDayText:"종일",eventLimitText:"개",noEventsMessage:"일정이 표시 없습니다"}),function(){function e(e,t,i,n){var s={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?s[i][0]:s[i][1]}function i(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10;return i(0===t?e/10:t)}if(e<1e4){for(;10<=e;)e/=10;return i(e)}return i(e/=1e3)}h.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function(e){return i(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e},past:function(e){return i(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e},s:"e puer Sekonnen",m:e,mm:"%d Minutten",h:e,hh:"%d Stonnen",d:e,dd:"%d Deeg",M:e,MM:"%d Méint",y:e,yy:"%d Joer"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(),e.fullCalendar.datepickerLocale("lb","lb",{closeText:"Fäerdeg",prevText:"Zréck",nextText:"Weider",currentText:"Haut",monthNames:["Januar","Februar","Mäerz","Abrëll","Mee","Juni","Juli","August","September","Oktober","November","Dezember"],monthNamesShort:["Jan","Feb","Mäe","Abr","Mee","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],dayNames:["Sonndeg","Méindeg","Dënschdeg","Mëttwoch","Donneschdeg","Freideg","Samschdeg"],dayNamesShort:["Son","Méi","Dën","Mët","Don","Fre","Sam"],dayNamesMin:["So","Mé","Dë","Më","Do","Fr","Sa"],weekHeader:"W",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.locale("lb",{buttonText:{month:"Mount",week:"Woch",day:"Dag",list:"Terminiwwersiicht"},allDayText:"Ganzen Dag",eventLimitText:"méi",noEventsMessage:"Nee Evenementer ze affichéieren"}),function(){function a(e,t,i,n){return t?o(i)[0]:n?o(i)[1]:o(i)[2]}function r(e){return e%10==0||10<e&&e<20}function o(e){return t[e].split("_")}function e(e,t,i,n){var s=e+" ";return 1===e?s+a(0,t,i[0],n):t?s+(r(e)?o(i)[1]:o(i)[0]):n?s+o(i)[1]:s+(r(e)?o(i)[1]:o(i)[2])}var t={m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};h.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:function(e,t,i,n){return t?"kelios sekundės":n?"kelių sekundžių":"kelias sekundes"},m:a,mm:e,h:a,hh:e,d:a,dd:e,M:a,MM:e,y:a,yy:e},ordinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})}(),e.fullCalendar.datepickerLocale("lt","lt",{closeText:"Uždaryti",prevText:"&#x3C;Atgal",nextText:"Pirmyn&#x3E;",currentText:"Šiandien",monthNames:["Sausis","Vasaris","Kovas","Balandis","Gegužė","Birželis","Liepa","Rugpjūtis","Rugsėjis","Spalis","Lapkritis","Gruodis"],monthNamesShort:["Sau","Vas","Kov","Bal","Geg","Bir","Lie","Rugp","Rugs","Spa","Lap","Gru"],dayNames:["sekmadienis","pirmadienis","antradienis","trečiadienis","ketvirtadienis","penktadienis","šeštadienis"],dayNamesShort:["sek","pir","ant","tre","ket","pen","šeš"],dayNamesMin:["Se","Pr","An","Tr","Ke","Pe","Še"],weekHeader:"SAV",dateFormat:"yy-mm-dd",firstDay:1,isRTL:!1,showMonthAfterYear:!0,yearSuffix:""}),e.fullCalendar.locale("lt",{buttonText:{month:"Mėnuo",week:"Savaitė",day:"Diena",list:"Darbotvarkė"},allDayText:"Visą dieną",eventLimitText:"daugiau",noEventsMessage:"Nėra įvykių rodyti"}),function(){function n(e,t,i){return i?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function e(e,t,i){return e+" "+n(s[i],e,t)}function t(e,t,i){return n(s[i],e,t)}var s={m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};h.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:function(e,t){return t?"dažas sekundes":"dažām sekundēm"},m:t,mm:e,h:t,hh:e,d:t,dd:e,M:t,MM:e,y:t,yy:e},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(),e.fullCalendar.datepickerLocale("lv","lv",{closeText:"Aizvērt",prevText:"Iepr.",nextText:"Nāk.",currentText:"Šodien",monthNames:["Janvāris","Februāris","Marts","Aprīlis","Maijs","Jūnijs","Jūlijs","Augusts","Septembris","Oktobris","Novembris","Decembris"],monthNamesShort:["Jan","Feb","Mar","Apr","Mai","Jūn","Jūl","Aug","Sep","Okt","Nov","Dec"],dayNames:["svētdiena","pirmdiena","otrdiena","trešdiena","ceturtdiena","piektdiena","sestdiena"],dayNamesShort:["svt","prm","otr","tre","ctr","pkt","sst"],dayNamesMin:["Sv","Pr","Ot","Tr","Ct","Pk","Ss"],weekHeader:"Ned.",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.locale("lv",{buttonText:{month:"Mēnesis",week:"Nedēļa",day:"Diena",list:"Dienas kārtība"},allDayText:"Visu dienu",eventLimitText:function(e){return"+vēl "+e},noEventsMessage:"Nav notikumu, lai parādītu"}),h.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"после %s",past:"пред %s",s:"неколку секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеци",y:"година",yy:"%d години"},ordinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,i=e%100;return 0===e?e+"-ев":0===i?e+"-ен":10<i&&i<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}}),e.fullCalendar.datepickerLocale("mk","mk",{closeText:"Затвори",prevText:"&#x3C;",nextText:"&#x3E;",currentText:"Денес",monthNames:["Јануари","Февруари","Март","Април","Мај","Јуни","Јули","Август","Септември","Октомври","Ноември","Декември"],monthNamesShort:["Јан","Фев","Мар","Апр","Мај","Јун","Јул","Авг","Сеп","Окт","Ное","Дек"],dayNames:["Недела","Понеделник","Вторник","Среда","Четврток","Петок","Сабота"],dayNamesShort:["Нед","Пон","Вто","Сре","Чет","Пет","Саб"],dayNamesMin:["Не","По","Вт","Ср","Че","Пе","Са"],weekHeader:"Сед",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.locale("mk",{buttonText:{month:"Месец",week:"Недела",day:"Ден",list:"График"},allDayText:"Цел ден",eventLimitText:function(e){return"+повеќе "+e},noEventsMessage:"Нема настани за прикажување"}),h.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?11<=e?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,i){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}}),e.fullCalendar.datepickerLocale("ms","ms",{closeText:"Tutup",prevText:"&#x3C;Sebelum",nextText:"Selepas&#x3E;",currentText:"hari ini",monthNames:["Januari","Februari","Mac","April","Mei","Jun","Julai","Ogos","September","Oktober","November","Disember"],monthNamesShort:["Jan","Feb","Mac","Apr","Mei","Jun","Jul","Ogo","Sep","Okt","Nov","Dis"],dayNames:["Ahad","Isnin","Selasa","Rabu","Khamis","Jumaat","Sabtu"],dayNamesShort:["Aha","Isn","Sel","Rab","kha","Jum","Sab"],dayNamesMin:["Ah","Is","Se","Ra","Kh","Ju","Sa"],weekHeader:"Mg",dateFormat:"dd/mm/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.locale("ms",{buttonText:{month:"Bulan",week:"Minggu",day:"Hari",list:"Agenda"},allDayText:"Sepanjang hari",eventLimitText:function(e){return"masih ada "+e+" acara"},noEventsMessage:"Tiada peristiwa untuk dipaparkan"}),h.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?11<=e?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,i){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}}),e.fullCalendar.datepickerLocale("ms-my","ms",{closeText:"Tutup",prevText:"&#x3C;Sebelum",nextText:"Selepas&#x3E;",currentText:"hari ini",monthNames:["Januari","Februari","Mac","April","Mei","Jun","Julai","Ogos","September","Oktober","November","Disember"],monthNamesShort:["Jan","Feb","Mac","Apr","Mei","Jun","Jul","Ogo","Sep","Okt","Nov","Dis"],dayNames:["Ahad","Isnin","Selasa","Rabu","Khamis","Jumaat","Sabtu"],dayNamesShort:["Aha","Isn","Sel","Rab","kha","Jum","Sab"],dayNamesMin:["Ah","Is","Se","Ra","Kh","Ju","Sa"],weekHeader:"Mg",dateFormat:"dd/mm/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.locale("ms-my",{buttonText:{month:"Bulan",week:"Minggu",day:"Hari",list:"Agenda"},allDayText:"Sepanjang hari",eventLimitText:function(e){return"masih ada "+e+" acara"},noEventsMessage:"Tiada peristiwa untuk dipaparkan"}),h.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),e.fullCalendar.datepickerLocale("nb","nb",{closeText:"Lukk",prevText:"&#xAB;Forrige",nextText:"Neste&#xBB;",currentText:"I dag",monthNames:["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember"],monthNamesShort:["jan","feb","mar","apr","mai","jun","jul","aug","sep","okt","nov","des"],dayNamesShort:["søn","man","tir","ons","tor","fre","lør"],dayNames:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"],dayNamesMin:["sø","ma","ti","on","to","fr","lø"],weekHeader:"Uke",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.locale("nb",{buttonText:{month:"Måned",week:"Uke",day:"Dag",list:"Agenda"},allDayText:"Hele dagen",eventLimitText:"til",noEventsMessage:"Ingen hendelser å vise"}),l="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),u="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),d=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],c=/^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,h.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,t){return/-MMM-/.test(t)?u[e.month()]:l[e.month()]},monthsRegex:c,monthsShortRegex:c,monthsStrictRegex:/^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:d,longMonthsParse:d,shortMonthsParse:d,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"Zo_Ma_Di_Wo_Do_Vr_Za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},ordinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||20<=e?"ste":"de")},week:{dow:1,doy:4}}),e.fullCalendar.datepickerLocale("nl","nl",{closeText:"Sluiten",prevText:"←",nextText:"→",currentText:"Vandaag",monthNames:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],monthNamesShort:["jan","feb","mrt","apr","mei","jun","jul","aug","sep","okt","nov","dec"],dayNames:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],dayNamesShort:["zon","maa","din","woe","don","vri","zat"],dayNamesMin:["zo","ma","di","wo","do","vr","za"],weekHeader:"Wk",dateFormat:"dd-mm-yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.locale("nl",{buttonText:{month:"Maand",week:"Week",day:"Dag",list:"Agenda"},allDayText:"Hele dag",eventLimitText:"extra",noEventsMessage:"Geen evenementen om te laten zien"}),n="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),r="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),t=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],o=/^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,h.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,t){return/-MMM-/.test(t)?r[e.month()]:n[e.month()]},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:t,longMonthsParse:t,shortMonthsParse:t,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"Zo_Ma_Di_Wo_Do_Vr_Za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},ordinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||20<=e?"ste":"de")},week:{dow:1,doy:4}}),e.fullCalendar.datepickerLocale("nl-be","nl-BE",{closeText:"Sluiten",prevText:"←",nextText:"→",currentText:"Vandaag",monthNames:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],monthNamesShort:["jan","feb","mrt","apr","mei","jun","jul","aug","sep","okt","nov","dec"],dayNames:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],dayNamesShort:["zon","maa","din","woe","don","vri","zat"],dayNamesMin:["zo","ma","di","wo","do","vr","za"],weekHeader:"Wk",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.locale("nl-be",{buttonText:{month:"Maand",week:"Week",day:"Dag",list:"Agenda"},allDayText:"Hele dag",eventLimitText:"extra",noEventsMessage:"Geen evenementen om te laten zien"}),h.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_mån_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_må_ty_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),e.fullCalendar.datepickerLocale("nn","nn",{closeText:"Lukk",prevText:"&#xAB;Førre",nextText:"Neste&#xBB;",currentText:"I dag",monthNames:["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember"],monthNamesShort:["jan","feb","mar","apr","mai","jun","jul","aug","sep","okt","nov","des"],dayNamesShort:["sun","mån","tys","ons","tor","fre","lau"],dayNames:["sundag","måndag","tysdag","onsdag","torsdag","fredag","laurdag"],dayNamesMin:["su","må","ty","on","to","fr","la"],weekHeader:"Veke",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.locale("nn",{buttonText:{month:"Månad",week:"Veke",day:"Dag",list:"Agenda"},allDayText:"Heile dagen",eventLimitText:"til",noEventsMessage:"Ingen hendelser å vise"}),function(){function s(e){return e%10<5&&1<e%10&&~~(e/10)%10!=1}function e(e,t,i){var n=e+" ";switch(i){case"m":return t?"minuta":"minutę";case"mm":return n+(s(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return n+(s(e)?"godziny":"godzin");case"MM":return n+(s(e)?"miesiące":"miesięcy");case"yy":return n+(s(e)?"lata":"lat")}}var i="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_");h.defineLocale("pl",{months:function(e,t){return""===t?"("+n[e.month()]+"|"+i[e.month()]+")":/D MMMM/.test(t)?n[e.month()]:i[e.month()]},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:"[W] dddd [o] LT",lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",m:e,mm:e,h:e,hh:e,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:e,y:"rok",yy:e},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(),e.fullCalendar.datepickerLocale("pl","pl",{closeText:"Zamknij",prevText:"&#x3C;Poprzedni",nextText:"Następny&#x3E;",currentText:"Dziś",monthNames:["Styczeń","Luty","Marzec","Kwiecień","Maj","Czerwiec","Lipiec","Sierpień","Wrzesień","Październik","Listopad","Grudzień"],monthNamesShort:["Sty","Lu","Mar","Kw","Maj","Cze","Lip","Sie","Wrz","Pa","Lis","Gru"],dayNames:["Niedziela","Poniedziałek","Wtorek","Środa","Czwartek","Piątek","Sobota"],dayNamesShort:["Nie","Pn","Wt","Śr","Czw","Pt","So"],dayNamesMin:["N","Pn","Wt","Śr","Cz","Pt","So"],weekHeader:"Tydz",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.locale("pl",{buttonText:{month:"Miesiąc",week:"Tydzień",day:"Dzień",list:"Plan dnia"},allDayText:"Cały dzień",eventLimitText:"więcej",noEventsMessage:"Brak wydarzeń do wyświetlenia"}),h.defineLocale("pt",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-Feira_Terça-Feira_Quarta-Feira_Quinta-Feira_Sexta-Feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Dom_2ª_3ª_4ª_5ª_6ª_Sáb".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}}),e.fullCalendar.datepickerLocale("pt","pt",{closeText:"Fechar",prevText:"Anterior",nextText:"Seguinte",currentText:"Hoje",monthNames:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],monthNamesShort:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],dayNames:["Domingo","Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sábado"],dayNamesShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],dayNamesMin:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],weekHeader:"Sem",dateFormat:"dd/mm/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.locale("pt",{buttonText:{month:"Mês",week:"Semana",day:"Dia",list:"Agenda"},allDayText:"Todo o dia",eventLimitText:"mais",noEventsMessage:"Não há eventos para mostrar"}),h.defineLocale("pt-br",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Dom_2ª_3ª_4ª_5ª_6ª_Sáb".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"%s atrás",s:"poucos segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº"}),e.fullCalendar.datepickerLocale("pt-br","pt-BR",{closeText:"Fechar",prevText:"&#x3C;Anterior",nextText:"Próximo&#x3E;",currentText:"Hoje",monthNames:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],monthNamesShort:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],dayNames:["Domingo","Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sábado"],dayNamesShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],dayNamesMin:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],weekHeader:"Sm",dateFormat:"dd/mm/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.locale("pt-br",{buttonText:{month:"Mês",week:"Semana",day:"Dia",list:"Compromissos"},allDayText:"dia inteiro",eventLimitText:function(e){return"mais +"+e},noEventsMessage:"Não há eventos para mostrar"}),function(){function e(e,t,i){var n=" ";return(20<=e%100||100<=e&&e%100==0)&&(n=" de "),e+n+{mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"}[i]}h.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",m:"un minut",mm:e,h:"o oră",hh:e,d:"o zi",dd:e,M:"o lună",MM:e,y:"un an",yy:e},week:{dow:1,doy:7}})}(),e.fullCalendar.datepickerLocale("ro","ro",{closeText:"Închide",prevText:"&#xAB; Luna precedentă",nextText:"Luna următoare &#xBB;",currentText:"Azi",monthNames:["Ianuarie","Februarie","Martie","Aprilie","Mai","Iunie","Iulie","August","Septembrie","Octombrie","Noiembrie","Decembrie"],monthNamesShort:["Ian","Feb","Mar","Apr","Mai","Iun","Iul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Duminică","Luni","Marţi","Miercuri","Joi","Vineri","Sâmbătă"],dayNamesShort:["Dum","Lun","Mar","Mie","Joi","Vin","Sâm"],dayNamesMin:["Du","Lu","Ma","Mi","Jo","Vi","Sâ"],weekHeader:"Săpt",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.locale("ro",{buttonText:{prev:"precedentă",next:"următoare",month:"Lună",week:"Săptămână",day:"Zi",list:"Agendă"},allDayText:"Toată ziua",eventLimitText:function(e){return"+alte "+e},noEventsMessage:"Nu există evenimente de afișat"}),function(){function e(e,t,i){var n,s;return"m"===i?t?"минута":"минуту":e+" "+(n=+e,s={mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[i].split("_"),n%10==1&&n%100!=11?s[0]:2<=n%10&&n%10<=4&&(n%100<10||20<=n%100)?s[1]:s[2])}var t=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];h.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:t,longMonthsParse:t,shortMonthsParse:t,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сегодня в] LT",nextDay:"[Завтра в] LT",lastDay:"[Вчера в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В следующее] dddd [в] LT";case 1:case 2:case 4:return"[В следующий] dddd [в] LT";case 3:case 5:case 6:return"[В следующую] dddd [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:e,mm:e,h:"час",hh:e,d:"день",dd:e,M:"месяц",MM:e,y:"год",yy:e},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,i){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},ordinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:7}})}(),e.fullCalendar.datepickerLocale("ru","ru",{closeText:"Закрыть",prevText:"&#x3C;Пред",nextText:"След&#x3E;",currentText:"Сегодня",monthNames:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],monthNamesShort:["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек"],dayNames:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"],dayNamesShort:["вск","пнд","втр","срд","чтв","птн","сбт"],dayNamesMin:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],weekHeader:"Нед",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.locale("ru",{buttonText:{month:"Месяц",week:"Неделя",day:"День",list:"Повестка дня"},allDayText:"Весь день",eventLimitText:function(e){return"+ ещё "+e},noEventsMessage:"Нет событий для отображения"}),function(){function a(e){return 1<e&&e<5}function e(e,t,i,n){var s=e+" ";switch(i){case"s":return t||n?"pár sekúnd":"pár sekundami";case"m":return t?"minúta":n?"minútu":"minútou";case"mm":return t||n?s+(a(e)?"minúty":"minút"):s+"minútami";case"h":return t?"hodina":n?"hodinu":"hodinou";case"hh":return t||n?s+(a(e)?"hodiny":"hodín"):s+"hodinami";case"d":return t||n?"deň":"dňom";case"dd":return t||n?s+(a(e)?"dni":"dní"):s+"dňami";case"M":return t||n?"mesiac":"mesiacom";case"MM":return t||n?s+(a(e)?"mesiace":"mesiacov"):s+"mesiacmi";case"y":return t||n?"rok":"rokom";case"yy":return t||n?s+(a(e)?"roky":"rokov"):s+"rokmi"}}var t="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),i="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");h.defineLocale("sk",{months:t,monthsShort:i,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(),e.fullCalendar.datepickerLocale("sk","sk",{closeText:"Zavrieť",prevText:"&#x3C;Predchádzajúci",nextText:"Nasledujúci&#x3E;",currentText:"Dnes",monthNames:["január","február","marec","apríl","máj","jún","júl","august","september","október","november","december"],monthNamesShort:["Jan","Feb","Mar","Apr","Máj","Jún","Júl","Aug","Sep","Okt","Nov","Dec"],dayNames:["nedeľa","pondelok","utorok","streda","štvrtok","piatok","sobota"],dayNamesShort:["Ned","Pon","Uto","Str","Štv","Pia","Sob"],dayNamesMin:["Ne","Po","Ut","St","Št","Pia","So"],weekHeader:"Ty",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.locale("sk",{buttonText:{month:"Mesiac",week:"Týždeň",day:"Deň",list:"Rozvrh"},allDayText:"Celý deň",eventLimitText:function(e){return"+ďalšie: "+e},noEventsMessage:"Žiadne akcie na zobrazenie"}),function(){function e(e,t,i,n){var s=e+" ";switch(i){case"s":return t||n?"nekaj sekund":"nekaj sekundami";case"m":return t?"ena minuta":"eno minuto";case"mm":return s+(1===e?t?"minuta":"minuto":2===e?t||n?"minuti":"minutama":e<5?t||n?"minute":"minutami":t||n?"minut":"minutami");case"h":return t?"ena ura":"eno uro";case"hh":return s+(1===e?t?"ura":"uro":2===e?t||n?"uri":"urama":e<5?t||n?"ure":"urami":t||n?"ur":"urami");case"d":return t||n?"en dan":"enim dnem";case"dd":return s+(1===e?t||n?"dan":"dnem":2===e?t||n?"dni":"dnevoma":t||n?"dni":"dnevi");case"M":return t||n?"en mesec":"enim mesecem";case"MM":return s+(1===e?t||n?"mesec":"mesecem":2===e?t||n?"meseca":"mesecema":e<5?t||n?"mesece":"meseci":t||n?"mesecev":"meseci");case"y":return t||n?"eno leto":"enim letom";case"yy":return s+(1===e?t||n?"leto":"letom":2===e?t||n?"leti":"letoma":e<5?t||n?"leta":"leti":t||n?"let":"leti")}}h.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(),e.fullCalendar.datepickerLocale("sl","sl",{closeText:"Zapri",prevText:"&#x3C;Prejšnji",nextText:"Naslednji&#x3E;",currentText:"Trenutni",monthNames:["Januar","Februar","Marec","April","Maj","Junij","Julij","Avgust","September","Oktober","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Avg","Sep","Okt","Nov","Dec"],dayNames:["Nedelja","Ponedeljek","Torek","Sreda","Četrtek","Petek","Sobota"],dayNamesShort:["Ned","Pon","Tor","Sre","Čet","Pet","Sob"],dayNamesMin:["Ne","Po","To","Sr","Če","Pe","So"],weekHeader:"Teden",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.locale("sl",{buttonText:{month:"Mesec",week:"Teden",day:"Dan",list:"Dnevni red"},allDayText:"Ves dan",eventLimitText:"več",noEventsMessage:"Ni dogodkov za prikaz"}),a={words:{m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:2<=e&&e<=4?t[1]:t[2]},translate:function(e,t,i){var n=a.words[i];return 1===i.length?t?n[0]:n[1]:e+" "+a.correctGrammaticalCase(e,n)}},h.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",m:a.translate,mm:a.translate,h:a.translate,hh:a.translate,d:"dan",dd:a.translate,M:"mesec",MM:a.translate,y:"godinu",yy:a.translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),e.fullCalendar.datepickerLocale("sr","sr",{closeText:"Затвори",prevText:"&#x3C;",nextText:"&#x3E;",currentText:"Данас",monthNames:["Јануар","Фебруар","Март","Април","Мај","Јун","Јул","Август","Септембар","Октобар","Новембар","Децембар"],monthNamesShort:["Јан","Феб","Мар","Апр","Мај","Јун","Јул","Авг","Сеп","Окт","Нов","Дец"],dayNames:["Недеља","Понедељак","Уторак","Среда","Четвртак","Петак","Субота"],dayNamesShort:["Нед","Пон","Уто","Сре","Чет","Пет","Суб"],dayNamesMin:["Не","По","Ут","Ср","Че","Пе","Су"],weekHeader:"Сед",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.locale("sr",{buttonText:{month:"Месец",week:"Недеља",day:"Дан",list:"Планер"},allDayText:"Цео дан",eventLimitText:function(e){return"+ још "+e},noEventsMessage:"Нема догађаја за приказ"}),s={words:{m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:2<=e&&e<=4?t[1]:t[2]},translate:function(e,t,i){var n=s.words[i];return 1===i.length?t?n[0]:n[1]:e+" "+s.correctGrammaticalCase(e,n)}},h.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",m:s.translate,mm:s.translate,h:s.translate,hh:s.translate,d:"дан",dd:s.translate,M:"месец",MM:s.translate,y:"годину",yy:s.translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),e.fullCalendar.datepickerLocale("sr-cyrl","sr",{closeText:"Затвори",prevText:"&#x3C;",nextText:"&#x3E;",currentText:"Данас",monthNames:["Јануар","Фебруар","Март","Април","Мај","Јун","Јул","Август","Септембар","Октобар","Новембар","Децембар"],monthNamesShort:["Јан","Феб","Мар","Апр","Мај","Јун","Јул","Авг","Сеп","Окт","Нов","Дец"],dayNames:["Недеља","Понедељак","Уторак","Среда","Четвртак","Петак","Субота"],dayNamesShort:["Нед","Пон","Уто","Сре","Чет","Пет","Суб"],dayNamesMin:["Не","По","Ут","Ср","Че","Пе","Су"],weekHeader:"Сед",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.locale("sr-cyrl",{buttonText:{month:"Месец",week:"Недеља",day:"Дан",list:"Планер"},allDayText:"Цео дан",eventLimitText:function(e){return"+ још "+e},noEventsMessage:"Нема догађаја за приказ"}),h.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},ordinalParse:/\d{1,2}(e|a)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"e":1===t?"a":2===t?"a":"e")},week:{dow:1,doy:4}}),e.fullCalendar.datepickerLocale("sv","sv",{closeText:"Stäng",prevText:"&#xAB;Förra",nextText:"Nästa&#xBB;",currentText:"Idag",monthNames:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],dayNamesShort:["Sön","Mån","Tis","Ons","Tor","Fre","Lör"],dayNames:["Söndag","Måndag","Tisdag","Onsdag","Torsdag","Fredag","Lördag"],dayNamesMin:["Sö","Må","Ti","On","To","Fr","Lö"],weekHeader:"Ve",dateFormat:"yy-mm-dd",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.locale("sv",{buttonText:{month:"Månad",week:"Vecka",day:"Dag",list:"Program"},allDayText:"Heldag",eventLimitText:"till",noEventsMessage:"Inga händelser att visa"}),h.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY/MM/DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,t,i){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}}),e.fullCalendar.datepickerLocale("th","th",{closeText:"ปิด",prevText:"&#xAB;&#xA0;ย้อน",nextText:"ถัดไป&#xA0;&#xBB;",currentText:"วันนี้",monthNames:["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"],monthNamesShort:["ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค."],dayNames:["อาทิตย์","จันทร์","อังคาร","พุธ","พฤหัสบดี","ศุกร์","เสาร์"],dayNamesShort:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],dayNamesMin:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],weekHeader:"Wk",dateFormat:"dd/mm/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.locale("th",{buttonText:{month:"เดือน",week:"สัปดาห์",day:"วัน",list:"แผนงาน"},allDayText:"ตลอดวัน",eventLimitText:"เพิ่มเติม",noEventsMessage:"ไม่มีกิจกรรมที่จะแสดง"}),i={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"},h.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[haftaya] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen hafta] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinalParse:/\d{1,2}'(inci|nci|üncü|ncı|uncu|ıncı)/,ordinal:function(e){if(0===e)return e+"'ıncı";var t=e%10;return e+(i[t]||i[e%100-t]||i[100<=e?100:null])},week:{dow:1,doy:7}}),e.fullCalendar.datepickerLocale("tr","tr",{closeText:"kapat",prevText:"&#x3C;geri",nextText:"ileri&#x3e",currentText:"bugün",monthNames:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],monthNamesShort:["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],dayNames:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"],dayNamesShort:["Pz","Pt","Sa","Ça","Pe","Cu","Ct"],dayNamesMin:["Pz","Pt","Sa","Ça","Pe","Cu","Ct"],weekHeader:"Hf",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.locale("tr",{buttonText:{next:"ileri",month:"Ay",week:"Hafta",day:"Gün",list:"Ajanda"},allDayText:"Tüm gün",eventLimitText:"daha fazla",noEventsMessage:"Herhangi bir etkinlik görüntülemek için"}),function(){function e(e,t,i){var n,s;return"m"===i?t?"хвилина":"хвилину":"h"===i?t?"година":"годину":e+" "+(n=+e,s={mm:t?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:t?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[i].split("_"),n%10==1&&n%100!=11?s[0]:2<=n%10&&n%10<=4&&(n%100<10||20<=n%100)?s[1]:s[2])}function t(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}h.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:function(e,t){return{nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")}[/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]},weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:t("[Сьогодні "),nextDay:t("[Завтра "),lastDay:t("[Вчора "),nextWeek:t("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return t("[Минулої] dddd [").call(this);case 1:case 2:case 4:return t("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",m:e,mm:e,h:"годину",hh:e,d:"день",dd:e,M:"місяць",MM:e,y:"рік",yy:e},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,t,i){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},ordinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}})}(),e.fullCalendar.datepickerLocale("uk","uk",{closeText:"Закрити",prevText:"&#x3C;",nextText:"&#x3E;",currentText:"Сьогодні",monthNames:["Січень","Лютий","Березень","Квітень","Травень","Червень","Липень","Серпень","Вересень","Жовтень","Листопад","Грудень"],monthNamesShort:["Січ","Лют","Бер","Кві","Тра","Чер","Лип","Сер","Вер","Жов","Лис","Гру"],dayNames:["неділя","понеділок","вівторок","середа","четвер","п’ятниця","субота"],dayNamesShort:["нед","пнд","вів","срд","чтв","птн","сбт"],dayNamesMin:["Нд","Пн","Вт","Ср","Чт","Пт","Сб"],weekHeader:"Тиж",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.locale("uk",{buttonText:{month:"Місяць",week:"Тиждень",day:"День",list:"Порядок денний"},allDayText:"Увесь день",eventLimitText:function(e){return"+ще "+e+"..."},noEventsMessage:"Немає подій для відображення"}),h.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,i){return e<12?i?"sa":"SA":i?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần rồi lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},ordinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}}),e.fullCalendar.datepickerLocale("vi","vi",{closeText:"Đóng",prevText:"&#x3C;Trước",nextText:"Tiếp&#x3E;",currentText:"Hôm nay",monthNames:["Tháng Một","Tháng Hai","Tháng Ba","Tháng Tư","Tháng Năm","Tháng Sáu","Tháng Bảy","Tháng Tám","Tháng Chín","Tháng Mười","Tháng Mười Một","Tháng Mười Hai"],monthNamesShort:["Tháng 1","Tháng 2","Tháng 3","Tháng 4","Tháng 5","Tháng 6","Tháng 7","Tháng 8","Tháng 9","Tháng 10","Tháng 11","Tháng 12"],dayNames:["Chủ Nhật","Thứ Hai","Thứ Ba","Thứ Tư","Thứ Năm","Thứ Sáu","Thứ Bảy"],dayNamesShort:["CN","T2","T3","T4","T5","T6","T7"],dayNamesMin:["CN","T2","T3","T4","T5","T6","T7"],weekHeader:"Tu",dateFormat:"dd/mm/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.locale("vi",{buttonText:{month:"Tháng",week:"Tuần",day:"Ngày",list:"Lịch biểu"},allDayText:"Cả ngày",eventLimitText:function(e){return"+ thêm "+e},noEventsMessage:"Không có sự kiện để hiển thị"}),h.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"Ah点mm分",LTS:"Ah点m分s秒",L:"YYYY-MM-DD",LL:"YYYY年MMMD日",LLL:"YYYY年MMMD日Ah点mm分",LLLL:"YYYY年MMMD日ddddAh点mm分",l:"YYYY-MM-DD",ll:"YYYY年MMMD日",lll:"YYYY年MMMD日Ah点mm分",llll:"YYYY年MMMD日ddddAh点mm分"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:11<=e?e:e+12},meridiem:function(e,t,i){var n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:function(){return 0===this.minutes()?"[今天]Ah[点整]":"[今天]LT"},nextDay:function(){return 0===this.minutes()?"[明天]Ah[点整]":"[明天]LT"},lastDay:function(){return 0===this.minutes()?"[昨天]Ah[点整]":"[昨天]LT"},nextWeek:function(){var e,t;return e=h().startOf("week"),t=7<=this.diff(e,"days")?"[下]":"[本]",0===this.minutes()?t+"dddAh点整":t+"dddAh点mm"},lastWeek:function(){var e,t;return e=h().startOf("week"),t=this.unix()<e.unix()?"[上]":"[本]",0===this.minutes()?t+"dddAh点整":t+"dddAh点mm"},sameElse:"LL"},ordinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}}),e.fullCalendar.datepickerLocale("zh-cn","zh-CN",{closeText:"关闭",prevText:"&#x3C;上月",nextText:"下月&#x3E;",currentText:"今天",monthNames:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthNamesShort:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],dayNames:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayNamesShort:["周日","周一","周二","周三","周四","周五","周六"],dayNamesMin:["日","一","二","三","四","五","六"],weekHeader:"周",dateFormat:"yy-mm-dd",firstDay:1,isRTL:!1,showMonthAfterYear:!0,yearSuffix:"年"}),e.fullCalendar.locale("zh-cn",{buttonText:{month:"月",week:"周",day:"日",list:"日程"},allDayText:"全天",eventLimitText:function(e){return"另外 "+e+" 个"},noEventsMessage:"没有事件显示"}),h.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"Ah點mm分",LTS:"Ah點m分s秒",L:"YYYY年MMMD日",LL:"YYYY年MMMD日",LLL:"YYYY年MMMD日Ah點mm分",LLLL:"YYYY年MMMD日ddddAh點mm分",l:"YYYY年MMMD日",ll:"YYYY年MMMD日",lll:"YYYY年MMMD日Ah點mm分",llll:"YYYY年MMMD日ddddAh點mm分"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?11<=e?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,i){var n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},ordinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}}),e.fullCalendar.datepickerLocale("zh-tw","zh-TW",{closeText:"關閉",prevText:"&#x3C;上月",nextText:"下月&#x3E;",currentText:"今天",monthNames:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthNamesShort:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],dayNames:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayNamesShort:["周日","周一","周二","周三","周四","周五","周六"],dayNamesMin:["日","一","二","三","四","五","六"],weekHeader:"周",dateFormat:"yy/mm/dd",firstDay:1,isRTL:!1,showMonthAfterYear:!0,yearSuffix:"年"}),e.fullCalendar.locale("zh-tw",{buttonText:{month:"月",week:"週",day:"天",list:"待辦事項"},allDayText:"全天",eventLimitText:"更多",noEventsMessage:"没有事件显示"}),h.locale("en"),e.fullCalendar.locale("en"),e.datepicker&&e.datepicker.setDefaults(e.datepicker.regional[""])}),function(){"use strict";var i,a,t,n=function(e,t){return function(){return e.apply(t,arguments)}};i=jQuery,a=function(){function e(){}return e.transitions={webkitTransition:"webkitTransitionEnd",mozTransition:"mozTransitionEnd",oTransition:"oTransitionEnd",transition:"transitionend"},e.transition=function(e){var t,i,n,s;for(s in t=e[0],i=this.transitions)if(n=i[s],null!=t.style[s])return n},e}(),t=function(){function t(e){null==e&&(e={}),this.container=n(this.container,this),this.content=n(this.content,this),this.html=n(this.html,this),this.$growl=n(this.$growl,this),this.$growls=n(this.$growls,this),this.animate=n(this.animate,this),this.remove=n(this.remove,this),this.dismiss=n(this.dismiss,this),this.present=n(this.present,this),this.cycle=n(this.cycle,this),this.close=n(this.close,this),this.click=n(this.click,this),this.unbind=n(this.unbind,this),this.bind=n(this.bind,this),this.render=n(this.render,this),this.settings=i.extend({},t.settings,e),this.$growls().attr("class",this.settings.location),this.render()}return t.settings={namespace:"growl",duration:3200,close:"&#215;",location:"default",style:"default",size:"medium"},t.growl=function(e){return null==e&&(e={}),this.initialize(),new t(e)},t.initialize=function(){return i("body:not(:has(#growls))").append('<div id="growls" />')},t.prototype.render=function(){var e;e=this.$growl(),this.$growls().append(e),this.settings.fixed?this.present():this.cycle()},t.prototype.bind=function(e){return null==e&&(e=this.$growl()),e.on("click",this.click),e.on("contextmenu",this.close).find("."+this.settings.namespace+"-close").on("click",this.close)},t.prototype.unbind=function(e){return null==e&&(e=this.$growl()),e.off("click",this.click),e.off("contextmenu",this.close).find("."+this.settings.namespace+"-close").off("click",this.close)},t.prototype.click=function(e){if(null!=this.settings.url)return e.preventDefault(),e.stopPropagation(),window.open(this.settings.url)},t.prototype.close=function(e){return e.preventDefault(),e.stopPropagation(),this.$growl().stop().queue(this.dismiss).queue(this.remove)},t.prototype.cycle=function(){return this.$growl().queue(this.present).delay(this.settings.duration).queue(this.dismiss).queue(this.remove)},t.prototype.present=function(e){var t;return t=this.$growl(),this.bind(t),this.animate(t,this.settings.namespace+"-incoming","out",e)},t.prototype.dismiss=function(e){var t;return t=this.$growl(),this.unbind(t),this.animate(t,this.settings.namespace+"-outgoing","in",e)},t.prototype.remove=function(e){return this.$growl().remove(),e()},t.prototype.animate=function(e,t,i,n){var s;null==i&&(i="in"),s=a.transition(e),e["in"===i?"removeClass":"addClass"](t),e.offset().position,e["in"===i?"addClass":"removeClass"](t),null!=n&&(null!=s?e.one(s,n):n())},t.prototype.$growls=function(){return null!=this.$_growls?this.$_growls:this.$_growls=i("#growls")},t.prototype.$growl=function(){return null!=this.$_growl?this.$_growl:this.$_growl=i(this.html())},t.prototype.html=function(){return this.container(this.content())},t.prototype.content=function(){return"<div class='"+this.settings.namespace+"-close'>"+this.settings.close+"</div>\n<div class='"+this.settings.namespace+"-title'>"+this.settings.title+"</div>\n<div class='"+this.settings.namespace+"-message'>"+this.settings.message+"</div>"},t.prototype.container=function(e){return"<div class='"+this.settings.namespace+" "+this.settings.namespace+"-"+this.settings.style+" "+this.settings.namespace+"-"+this.settings.size+"'>\n "+e+"\n</div>"},t}(),this.Growl=t,i.growl=function(e){return null==e&&(e={}),t.growl(e)},i.growl.error=function(e){var t;return null==e&&(e={}),t={title:"Error!",style:"error"},i.growl(i.extend(t,e))},i.growl.notice=function(e){var t;return null==e&&(e={}),t={title:"Notice!",style:"notice"},i.growl(i.extend(t,e))},i.growl.warning=function(e){var t;return null==e&&(e={}),t={title:"Warning!",style:"warning"},i.growl(i.extend(t,e))}}.call(this),window.Modernizr=function(e,d,a){function t(e){u.cssText=e}function r(e,t){return typeof e===t}function o(e,t){for(var i in e){var n=e[i];if(!~(""+n).indexOf("-")&&u[n]!==a)return"pfx"!=t||n}return!1}function n(e,t,i){var n=e.charAt(0).toUpperCase()+e.slice(1),s=(e+" "+g.join(n+" ")+n).split(" ");return r(t,"string")||r(t,"undefined")?o(s,t):function(e,t,i){for(var n in e){var s=t[e[n]];if(s!==a)return!1===i?e[n]:r(s,"function")?s.bind(i||t):s}return!1}(s=(e+" "+v.join(n+" ")+n).split(" "),t,i)}var i,s,l={},c=d.documentElement,p="modernizr",h=d.createElement(p),u=h.style,f=" -webkit- -moz- -o- -ms- ".split(" "),m="Webkit Moz O ms",g=m.split(" "),v=m.toLowerCase().split(" "),_={},y=[],b=y.slice,x=function(e,t,i,n){var s,a,r,o,l=d.createElement("div"),h=d.body,u=h||d.createElement("body");if(parseInt(i,10))for(;i--;)(r=d.createElement("div")).id=n?n[i]:p+(i+1),l.appendChild(r);return s=["&#173;",'<style id="s',p,'">',e,"</style>"].join(""),l.id=p,(h?l:u).innerHTML+=s,u.appendChild(l),h||(u.style.background="",u.style.overflow="hidden",o=c.style.overflow,c.style.overflow="hidden",c.appendChild(u)),a=t(l,e),h?l.parentNode.removeChild(l):(u.parentNode.removeChild(u),c.style.overflow=o),!!a},w={}.hasOwnProperty;for(var M in s=r(w,"undefined")||r(w.call,"undefined")?function(e,t){return t in e&&r(e.constructor.prototype[t],"undefined")}:function(e,t){return w.call(e,t)},Function.prototype.bind||(Function.prototype.bind=function(n){var s=this;if("function"!=typeof s)throw new TypeError;var a=b.call(arguments,1),r=function(){if(this instanceof r){var e=function(){};e.prototype=s.prototype;var t=new e,i=s.apply(t,a.concat(b.call(arguments)));return Object(i)===i?i:t}return s.apply(n,a.concat(b.call(arguments)))};return r}),_.csstransforms3d=function(){var i=!!n("perspective");return i&&"webkitPerspective"in c.style&&x("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(e,t){i=9===e.offsetLeft&&3===e.offsetHeight}),i},_.csstransitions=function(){return n("transition")},_)s(_,M)&&(i=M.toLowerCase(),l[i]=_[M](),y.push((l[i]?"":"no-")+i));return l.addTest=function(e,t){if("object"==typeof e)for(var i in e)s(e,i)&&l.addTest(i,e[i]);else{if(e=e.toLowerCase(),l[e]!==a)return l;t="function"==typeof t?t():t,c.className+=" "+(t?"":"no-")+e,l[e]=t}return l},t(""),h=null,function(e,l){function h(){var e=f.elements;return"string"==typeof e?e.split(" "):e}function u(e){var t=o[e[n]];return t||(t={},r++,e[n]=r,o[r]=t),t}function d(e,t,i){return t||(t=l),p?t.createElement(e):(i||(i=u(t)),!(n=i.cache[e]?i.cache[e].cloneNode():a.test(e)?(i.cache[e]=i.createElem(e)).cloneNode():i.createElem(e)).canHaveChildren||s.test(e)||n.tagUrn?n:i.frag.appendChild(n));var n}function t(e){e||(e=l);var t,i,n,s,a,r,o=u(e);return f.shivCSS&&!c&&!o.hasCSS&&(o.hasCSS=(s="article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}",a=(n=e).createElement("p"),r=n.getElementsByTagName("head")[0]||n.documentElement,a.innerHTML="x<style>"+s+"</style>",!!r.insertBefore(a.lastChild,r.firstChild))),p||(t=e,(i=o).cache||(i.cache={},i.createElem=t.createElement,i.createFrag=t.createDocumentFragment,i.frag=i.createFrag()),t.createElement=function(e){return f.shivMethods?d(e,t,i):i.createElem(e)},t.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+h().join().replace(/[\w\-]+/g,function(e){return i.createElem(e),i.frag.createElement(e),'c("'+e+'")'})+");return n}")(f,i.frag)),e}var c,p,i=e.html5||{},s=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,a=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,n="_html5shiv",r=0,o={};!function(){try{var e=l.createElement("a");e.innerHTML="<xyz></xyz>",c="hidden"in e,p=1==e.childNodes.length||function(){l.createElement("a");var e=l.createDocumentFragment();return void 0===e.cloneNode||void 0===e.createDocumentFragment||void 0===e.createElement}()}catch(e){p=c=!0}}();var f={elements:i.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:"3.7.0",shivCSS:!1!==i.shivCSS,supportsUnknownElements:p,shivMethods:!1!==i.shivMethods,type:"default",shivDocument:t,createElement:d,createDocumentFragment:function(e,t){if(e||(e=l),p)return e.createDocumentFragment();for(var i=(t=t||u(e)).frag.cloneNode(),n=0,s=h(),a=s.length;n<a;n++)i.createElement(s[n]);return i}};e.html5=f,t(l)}(this,d),l._version="2.7.1",l._prefixes=f,l._domPrefixes=v,l._cssomPrefixes=g,l.testProp=function(e){return o([e])},l.testAllProps=n,l.testStyles=x,l.prefixed=function(e,t,i){return t?n(e,t,i):n(e,"pfx")},c.className=c.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+" js "+y.join(" "),l}(0,this.document),function(e,c,t){function d(e){return"[object Function]"==a.call(e)}function p(e){return"string"==typeof e}function f(){}function m(e){return!e||"loaded"==e||"complete"==e||"uninitialized"==e}function g(){var e=b.shift();x=1,e?e.t?_(function(){("c"==e.t?v.injectCss:v.injectJs)(e.s,0,e.a,e.x,e.e,1)},0):(e(),g()):x=0}function i(e,t,i,n,s){return x=0,t=t||"j",p(e)?function(i,n,e,t,s,a,r){function o(e){if(!h&&m(l.readyState)&&(d.r=h=1,!x&&g(),l.onload=l.onreadystatechange=null,e))for(var t in"img"!=i&&_(function(){M.removeChild(l)},50),L[n])L[n].hasOwnProperty(t)&&L[n][t].onload()}r=r||v.errorTimeout;var l=c.createElement(i),h=0,u=0,d={t:e,s:n,e:s,a:a,x:r};1===L[n]&&(u=1,L[n]=[]),"object"==i?l.data=n:(l.src=n,l.type=i),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){o.call(this,u)},b.splice(t,0,d),"img"!=i&&(u||2===L[n]?(M.insertBefore(l,w?null:y),_(o,r)):L[n].push(l))}("c"==t?h:l,e,t,this.i++,i,n,s):(b.splice(this.i++,0,e),1==b.length&&g()),this}function o(){var e=v;return e.loader={load:i,i:0},e}var n,v,s=c.documentElement,_=e.setTimeout,y=c.getElementsByTagName("script")[0],a={}.toString,b=[],x=0,r="MozAppearance"in s.style,w=r&&!!c.createRange().compareNode,M=w?s:y.parentNode,l=(s=e.opera&&"[object Opera]"==a.call(e.opera),s=!!c.attachEvent&&!s,r?"object":s?"script":"img"),h=s?"script":l,j=Array.isArray||function(e){return"[object Array]"==a.call(e)},k=[],L={},S={timeout:function(e,t){return t.length&&(e.timeout=t[0]),e}};(v=function(e){function u(e,t,i,n,s){var a=function(e){e=e.split("!");var t,i,n,s=k.length,a=e.pop(),r=e.length;for(a={url:a,origUrl:a,prefixes:e},i=0;i<r;i++)n=e[i].split("="),(t=S[n.shift()])&&(a=t(a,n));for(i=0;i<s;i++)a=k[i](a);return a}(e),r=a.autoCallback;a.url.split(".").pop().split("?").shift(),a.bypass||(t&&(t=d(t)?t:t[e]||t[n]||t[e.split("/").pop().split("?")[0]]),a.instead?a.instead(e,t,i,n,s):(L[a.url]?a.noexec=!0:L[a.url]=1,i.load(a.url,a.forceCSS||!a.forceJS&&"css"==a.url.split(".").pop().split("?").shift()?"c":void 0,a.noexec,a.attrs,a.timeout),(d(t)||d(r))&&i.load(function(){o(),t&&t(a.origUrl,s,n),r&&r(a.origUrl,s,n),L[a.url]=2})))}function t(e,t){function i(i,e){if(i){if(p(i))e||(o=function(){var e=[].slice.call(arguments);l.apply(this,e),h()}),u(i,o,t,0,a);else if(Object(i)===i)for(s in n=function(){var e,t=0;for(e in i)i.hasOwnProperty(e)&&t++;return t}(),i)i.hasOwnProperty(s)&&(!e&&!--n&&(d(o)?o=function(){var e=[].slice.call(arguments);l.apply(this,e),h()}:o[s]=function(t){return function(){var e=[].slice.call(arguments);t&&t.apply(this,e),h()}}(l[s])),u(i[s],o,t,s,a))}else!e&&h()}var n,s,a=!!e.test,r=e.load||e.both,o=e.callback||f,l=o,h=e.complete||f;i(a?e.yep:e.nope,!!r),r&&i(r)}var i,n,s=this.yepnope.loader;if(p(e))u(e,0,s,0);else if(j(e))for(i=0;i<e.length;i++)p(n=e[i])?u(n,0,s,0):j(n)?v(n):Object(n)===n&&t(n,s);else Object(e)===e&&t(e,s)}).addPrefix=function(e,t){S[e]=t},v.addFilter=function(e){k.push(e)},v.errorTimeout=1e4,null==c.readyState&&c.addEventListener&&(c.readyState="loading",c.addEventListener("DOMContentLoaded",n=function(){c.removeEventListener("DOMContentLoaded",n,0),c.readyState="complete"},0)),e.yepnope=o(),e.yepnope.executeStack=g,e.yepnope.injectJs=function(e,t,i,n,s,a){var r,o,l=c.createElement("script");n=n||v.errorTimeout;for(o in l.src=e,i)l.setAttribute(o,i[o]);t=a?g:t||f,l.onreadystatechange=l.onload=function(){!r&&m(l.readyState)&&(r=1,t(),l.onload=l.onreadystatechange=null)},_(function(){r||t(r=1)},n),s?l.onload():y.parentNode.insertBefore(l,y)},e.yepnope.injectCss=function(e,t,i,n,s,a){var r;n=c.createElement("link"),t=a?g:t||f;for(r in n.href=e,n.rel="stylesheet",n.type="text/css",i)n.setAttribute(r,i[r]);s||(y.parentNode.insertBefore(n,y),_(t,0))}}(this,document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))},function(e){"use strict";function i(e){return new RegExp("(^|\\s+)"+e+"(\\s+|$)")}var n,s,a;function t(e,t){(n(e,t)?a:s)(e,t)}"classList"in document.documentElement?(n=function(e,t){return e.classList.contains(t)},s=function(e,t){e.classList.add(t)},a=function(e,t){e.classList.remove(t)}):(n=function(e,t){return i(t).test(e.className)},s=function(e,t){n(e,t)||(e.className=e.className+" "+t)},a=function(e,t){e.className=e.className.replace(i(t)," ")});var r={hasClass:n,addClass:s,removeClass:a,toggleClass:t,has:n,add:s,remove:a,toggle:t};"function"==typeof define&&define.amd?define(r):e.classie=r}(window),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(c){"use strict";var p="animsition",f={init:function(s){s=c.extend({inClass:"fade-in",outClass:"fade-out",inDuration:1500,outDuration:800,linkElement:".animsition-link",loading:!0,loadingParentElement:"body",loadingClass:"animsition-loading",loadingInner:"",timeout:!1,timeoutCountdown:5e3,onLoadEvent:!0,browser:["animation-duration","-webkit-animation-duration"],overlay:!1,overlayClass:"animsition-overlay-slide",overlayParentElement:"body",transition:function(e){window.location.href=e}},s),f.settings={timer:!1,data:{inClass:"animsition-in-class",inDuration:"animsition-in-duration",outClass:"animsition-out-class",outDuration:"animsition-out-duration",overlay:"animsition-overlay"},events:{inStart:"animsition.inStart",inEnd:"animsition.inEnd",outStart:"animsition.outStart",outEnd:"animsition.outEnd"}};var e=f.supportCheck.call(this,s);return e||!(0<s.browser.length)||e&&this.length?(f.optionCheck.call(this,s)&&f.addOverlay.call(this,s),s.loading&&f.addLoading.call(this,s),this.each(function(){var n=this,e=c(this),t=c(window),i=c(document);e.data(p)||(s=c.extend({},s),e.data(p,{options:s}),s.timeout&&f.addTimer.call(n),t.on("load."+p+" pageshow."+p,function(){f.settings.timer&&clearTimeout(f.settings.timer),f.in.call(n)}),s.onLoadEvent||t.off("load."+p+" pageshow."+p),t.on("unload."+p,function(){}),i.on("click."+p,s.linkElement,function(e){e.preventDefault();var t=c(this),i=t.attr("href");2===e.which||e.metaKey||e.shiftKey||-1!==navigator.platform.toUpperCase().indexOf("WIN")&&e.ctrlKey?window.open(i,"_blank"):f.out.call(n,t,i)}))})):("console"in window||(window.console={},window.console.log=function(e){return e}),this.length||console.log("Animsition: Element does not exist on page."),e||console.log("Animsition: Does not support this browser."),f.destroy.call(this))},addOverlay:function(e){c(e.overlayParentElement).prepend('<div class="'+e.overlayClass+'"></div>')},addLoading:function(e){c(e.loadingParentElement).append('<div class="'+e.loadingClass+'">'+e.loadingInner+"</div>")},removeLoading:function(){var e=c(this).data(p).options;c(e.loadingParentElement).children("."+e.loadingClass).fadeOut().remove()},addTimer:function(){var e=this,t=c(this).data(p).options;f.settings.timer=setTimeout(function(){f.in.call(e),c(window).off("load."+p+" pageshow."+p)},t.timeoutCountdown)},supportCheck:function(e){var t=c(this),i=e.browser,n=i.length,s=!1;0===n&&(s=!0);for(var a=0;a<n;a++)if("string"==typeof t.css(i[a])){s=!0;break}return s},optionCheck:function(e){var t=c(this);return!(!e.overlay&&!t.data(f.settings.data.overlay))},animationCheck:function(e,t,i){var n=c(this).data(p).options,s=typeof e,a=!t&&"number"===s,r=t&&"string"===s&&0<e.length;return a||r?e=e:t&&i?e=n.inClass:!t&&i?e=n.inDuration:t&&!i?e=n.outClass:t||i||(e=n.outDuration),e},in:function(){var e=c(this),t=e.data(p).options,i=e.data(f.settings.data.inDuration),n=e.data(f.settings.data.inClass),s=f.animationCheck.call(this,i,!1,!0),a=f.animationCheck.call(this,n,!0,!0),r=f.optionCheck.call(this,t);t.loading&&f.removeLoading.call(this),r?f.inOverlay.call(this,a,s):f.inDefault.call(this,a,s)},inDefault:function(e,t){var i=c(this);i.css({"animation-duration":t+"ms"}).addClass(e).trigger(f.settings.events.inStart).animateCallback(function(){i.removeClass(e).css({opacity:1}).trigger(f.settings.events.inEnd)})},inOverlay:function(e,t){var i=c(this),n=i.data(p).options;i.css({opacity:1}).trigger(f.settings.events.inStart),c(n.overlayParentElement).children("."+n.overlayClass).css({"animation-duration":t+"ms"}).addClass(e).animateCallback(function(){i.trigger(f.settings.events.inEnd)})},out:function(e,t){var i=c(this),n=i.data(p).options,s=e.data(f.settings.data.outClass),a=i.data(f.settings.data.outClass),r=e.data(f.settings.data.outDuration),o=i.data(f.settings.data.outDuration),l=s||a,h=r||o,u=f.animationCheck.call(this,l,!0,!1),d=f.animationCheck.call(this,h,!1,!1);f.optionCheck.call(this,n)?f.outOverlay.call(this,u,d,t):f.outDefault.call(this,u,d,t)},outDefault:function(e,t,i){var n=c(this),s=n.data(p).options;n.css({"animation-duration":t+1+"ms"}).addClass(e).trigger(f.settings.events.outStart).animateCallback(function(){n.trigger(f.settings.events.outEnd),s.transition(i)})},outOverlay:function(e,t,i){var n=c(this),s=n.data(p).options,a=n.data(f.settings.data.inClass),r=f.animationCheck.call(this,a,!0,!0);c(s.overlayParentElement).children("."+s.overlayClass).css({"animation-duration":t+1+"ms"}).removeClass(r).addClass(e).trigger(f.settings.events.outStart).animateCallback(function(){n.trigger(f.settings.events.outEnd),s.transition(i)})},destroy:function(){return this.each(function(){var e=c(this);c(window).off("."+p),e.css({opacity:1}).removeData(p)})}};c.fn.animateCallback=function(t){var i="animationend webkitAnimationEnd";return this.each(function(){var e=c(this);e.on(i,function(){return e.off(i),t.call(this)})})},c.fn.animsition=function(e){return f[e]?f[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void c.error("Method "+e+" does not exist on jQuery."+p):f.init.apply(this,arguments)}}),function(){var s={colors:1,values:1,backgroundColor:1,scaleColors:1,normalizeFunction:1,enableZoom:1,showTooltip:1,borderColor:1,borderWidth:1,borderOpacity:1,selectedRegions:1,multiSelectRegion:1},a={onLabelShow:"labelShow",onRegionOver:"regionMouseOver",onRegionOut:"regionMouseOut",onRegionClick:"regionClick",onRegionSelect:"regionSelect",onRegionDeselect:"regionDeselect"},l=function(e,t,i){if(this.mode=window.SVGAngle?"svg":"vml",this.params=i,"svg"===this.mode)this.createSvgNode=function(e){return document.createElementNS(this.svgns,e)};else{try{document.namespaces.rvml||document.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),this.createVmlNode=function(e){return document.createElement("<rvml:"+e+' class="rvml">')}}catch(e){this.createVmlNode=function(e){return document.createElement("<"+e+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}document.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)")}"svg"===this.mode?this.canvas=this.createSvgNode("svg"):(this.canvas=this.createVmlNode("group"),this.canvas.style.position="absolute"),this.setSize(e,t)},n=function(e,t,i,n){e&&this.setColors(e),t&&this.setNormalizeFunction(t),i&&this.setMin(i),i&&this.setMax(n)},h=function(a){a=a||{};var r=this,o=h.maps[a.map];for(var e in this.selectedRegions=[],this.multiSelectRegion=a.multiSelectRegion,this.container=a.container,this.defaultWidth=o.width,this.defaultHeight=o.height,this.color=a.color,this.selectedColor=a.selectedColor,this.hoverColor=a.hoverColor,this.hoverOpacity=a.hoverOpacity,this.setBackgroundColor(a.backgroundColor),this.width=a.container.width(),this.height=a.container.height(),this.resize(),jQuery(window).resize(function(){r.width=a.container.width(),r.height=a.container.height(),r.resize(),r.canvas.setSize(r.width,r.height),r.applyTransform()}),this.canvas=new l(this.width,this.height,a),a.container.append(this.canvas.canvas),this.makeDraggable(),this.rootGroup=this.canvas.createGroup(!0),this.index=h.mapIndex,this.label=jQuery("<div/>").addClass("jqvmap-label").appendTo(jQuery("body")).hide(),a.enableZoom&&(jQuery("<div/>").addClass("jqvmap-zoomin").text("+").appendTo(a.container),jQuery("<div/>").addClass("jqvmap-zoomout").html("&#x2212;").appendTo(a.container)),r.countries=[],o.pathes){var t=this.canvas.createPath({path:o.pathes[e].path});t.setFill(this.color),t.id=r.getCountryId(e),r.countries[e]=t,"svg"===this.canvas.mode?t.setAttribute("class","jvectormap-region"):jQuery(t).addClass("jvectormap-region"),jQuery(this.rootGroup).append(t)}if(jQuery(a.container).delegate("svg"===this.canvas.mode?"path":"shape","mouseover mouseout",function(e){var t=e.target,i=e.target.id.split("_").pop(),n=jQuery.Event("labelShow.jqvmap"),s=jQuery.Event("regionMouseOver.jqvmap");"mouseover"===e.type?(jQuery(a.container).trigger(s,[i,o.pathes[i].name]),s.isDefaultPrevented()||r.highlight(i,t),a.showTooltip&&(r.label.text(o.pathes[i].name),jQuery(a.container).trigger(n,[r.label,i]),n.isDefaultPrevented()||(r.label.show(),r.labelWidth=r.label.width(),r.labelHeight=r.label.height()))):(r.unhighlight(i,t),r.label.hide(),jQuery(a.container).trigger("regionMouseOut.jqvmap",[i,o.pathes[i].name]))}),jQuery(a.container).delegate("svg"===this.canvas.mode?"path":"shape","click",function(e){if(!a.multiSelectRegion)for(var t in o.pathes)r.countries[t].currentFillColor=r.countries[t].getOriginalFill(),r.countries[t].setFill(r.countries[t].getOriginalFill());var i=e.target,n=e.target.id.split("_").pop();jQuery(a.container).trigger("regionClick.jqvmap",[n,o.pathes[n].name]),e.isDefaultPrevented()||(r.isSelected(n)?r.deselect(n,i):r.select(n,i))}),a.showTooltip&&a.container.mousemove(function(e){if(r.label.is(":visible")){var t=e.pageX-15-r.labelWidth,i=e.pageY-15-r.labelHeight;t<0&&(t=e.pageX+15),i<0&&(i=e.pageY+15),r.label.css({left:t,top:i})}}),this.setColors(a.colors),this.canvas.canvas.appendChild(this.rootGroup),this.applyTransform(),this.colorScale=new n(a.scaleColors,a.normalizeFunction,a.valueMin,a.valueMax),a.values&&(this.values=a.values,this.setValues(a.values)),a.selectedRegions)if(a.selectedRegions instanceof Array)for(var i in a.selectedRegions)this.select(a.selectedRegions[i].toLowerCase());else this.select(a.selectedRegions.toLowerCase());this.bindZoomButtons(),a.pins&&(this.pinHandlers=!1,this.placePins(a.pins,a.pinMode)),h.mapIndex++};l.prototype={svgns:"http://www.w3.org/2000/svg",mode:"svg",width:0,height:0,canvas:null,setSize:function(e,t){if("svg"===this.mode)this.canvas.setAttribute("width",e),this.canvas.setAttribute("height",t);else if(this.canvas.style.width=e+"px",this.canvas.style.height=t+"px",this.canvas.coordsize=e+" "+t,this.canvas.coordorigin="0 0",this.rootGroup){for(var i=this.rootGroup.getElementsByTagName("shape"),n=0,s=i.length;n<s;n++)i[n].coordsize=e+" "+t,i[n].style.width=e+"px",i[n].style.height=t+"px";this.rootGroup.coordsize=e+" "+t,this.rootGroup.style.width=e+"px",this.rootGroup.style.height=t+"px"}this.width=e,this.height=t},createPath:function(e){var t;if("svg"===this.mode)(t=this.createSvgNode("path")).setAttribute("d",e.path),null!==this.params.borderColor&&t.setAttribute("stroke",this.params.borderColor),0<this.params.borderWidth&&(t.setAttribute("stroke-width",this.params.borderWidth),t.setAttribute("stroke-linecap","round"),t.setAttribute("stroke-linejoin","round")),0<this.params.borderOpacity&&t.setAttribute("stroke-opacity",this.params.borderOpacity),t.setFill=function(e){this.setAttribute("fill",e),null===this.getAttribute("original")&&this.setAttribute("original",e)},t.getFill=function(){return this.getAttribute("fill")},t.getOriginalFill=function(){return this.getAttribute("original")},t.setOpacity=function(e){this.setAttribute("fill-opacity",e)};else{(t=this.createVmlNode("shape")).coordorigin="0 0",t.coordsize=this.width+" "+this.height,t.style.width=this.width+"px",t.style.height=this.height+"px",t.fillcolor=h.defaultFillColor,t.stroked=!1,t.path=l.pathSvgToVml(e.path);var i=this.createVmlNode("skew");i.on=!0,i.matrix="0.01,0,0,0.01,0,0",i.offset="0,0",t.appendChild(i);var n=this.createVmlNode("fill");t.appendChild(n),t.setFill=function(e){this.getElementsByTagName("fill")[0].color=e,null===this.getAttribute("original")&&this.setAttribute("original",e)},t.getFill=function(){return this.getElementsByTagName("fill")[0].color},t.getOriginalFill=function(){return this.getAttribute("original")},t.setOpacity=function(e){this.getElementsByTagName("fill")[0].opacity=parseInt(100*e,10)+"%"}}return t},createGroup:function(e){var t;return"svg"===this.mode?t=this.createSvgNode("g"):((t=this.createVmlNode("group")).style.width=this.width+"px",t.style.height=this.height+"px",t.style.left="0px",t.style.top="0px",t.coordorigin="0 0",t.coordsize=this.width+" "+this.height),e&&(this.rootGroup=t),t},applyTransformParams:function(e,t,i){"svg"===this.mode?this.rootGroup.setAttribute("transform","scale("+e+") translate("+t+", "+i+")"):(this.rootGroup.coordorigin=this.width-t+","+(this.height-i),this.rootGroup.coordsize=this.width/e+","+this.height/e)}},l.pathSvgToVml=function(e){var a,r,o="",l=0,h=0;return e.replace(/([MmLlHhVvCcSs])((?:-?(?:\d+)?(?:\.\d+)?,?\s?)+)/g,function(e,t,i){(i=i.replace(/(\d)-/g,"$1,-").replace(/\s+/g,",").split(","))[0]||i.shift();for(var n=0,s=i.length;n<s;n++)i[n]=Math.round(100*i[n]);switch(t){case"m":l+=i[0],h+=i[1],o="t"+i.join(",");break;case"M":l=i[0],h=i[1],o="m"+i.join(",");break;case"l":l+=i[0],h+=i[1],o="r"+i.join(",");break;case"L":l=i[0],h=i[1],o="l"+i.join(",");break;case"h":l+=i[0],o="r"+i[0]+",0";break;case"H":l=i[0],o="l"+l+","+h;break;case"v":h+=i[0],o="r0,"+i[0];break;case"V":h=i[0],o="l"+l+","+h;break;case"c":a=l+i[i.length-4],r=h+i[i.length-3],l+=i[i.length-2],h+=i[i.length-1],o="v"+i.join(",");break;case"C":a=i[i.length-4],r=i[i.length-3],l=i[i.length-2],h=i[i.length-1],o="c"+i.join(",");break;case"s":i.unshift(h-r),i.unshift(l-a),a=l+i[i.length-4],r=h+i[i.length-3],l+=i[i.length-2],h+=i[i.length-1],o="v"+i.join(",");break;case"S":i.unshift(h+h-r),i.unshift(l+l-a),a=i[i.length-4],r=i[i.length-3],l=i[i.length-2],h=i[i.length-1],o="c"+i.join(",")}return o}).replace(/z/g,"")},h.prototype={transX:0,transY:0,scale:1,baseTransX:0,baseTransY:0,baseScale:1,width:0,height:0,countries:{},countriesColors:{},countriesData:{},zoomStep:1.4,zoomMaxStep:4,zoomCurStep:1,setColors:function(e,t){if("string"==typeof e)this.countries[e].setFill(t),this.countries[e].setAttribute("original",t);else{var i=e;for(var n in i)this.countries[n]&&(this.countries[n].setFill(i[n]),this.countries[n].setAttribute("original",i[n]))}},setValues:function(e){var t,i=0,n=Number.MAX_VALUE;for(var s in e)t=parseFloat(e[s]),isNaN(t)||(i<t&&(i=e[s]),t<n&&(n=t));n===i&&i++,this.colorScale.setMin(n),this.colorScale.setMax(i);var a={};for(s in e)t=parseFloat(e[s]),a[s]=isNaN(t)?this.colorScale.getColor(t):this.color;this.setColors(a),this.values=e},setBackgroundColor:function(e){this.container.css("background-color",e)},setScaleColors:function(e){this.colorScale.setColors(e),this.values&&this.setValues(this.values)},setNormalizeFunction:function(e){this.colorScale.setNormalizeFunction(e),this.values&&this.setValues(this.values)},highlight:function(e,t){t=t||jQuery("#"+this.getCountryId(e))[0],this.hoverOpacity?t.setOpacity(this.hoverOpacity):this.hoverColor&&(t.currentFillColor=t.getFill()+"",t.setFill(this.hoverColor))},unhighlight:function(e,t){(t=t||jQuery("#"+this.getCountryId(e))[0]).setOpacity(1),t.currentFillColor&&t.setFill(t.currentFillColor)},selectIndex:function(e){for(var t=0;t<this.selectedRegions.length;t++)if(e===this.selectedRegions[t])return t;return-1},select:function(e,t){t=t||jQuery("#"+this.getCountryId(e))[0],this.isSelected(e)||(this.multiSelectRegion?this.selectedRegions.push(e):this.selectedRegions=[e],jQuery(this.container).trigger("regionSelect.jqvmap",[e]),this.selectedColor&&t&&(t.currentFillColor=this.selectedColor,t.setFill(this.selectedColor)))},deselect:function(e,t){if(t=t||jQuery("#"+this.getCountryId(e))[0],this.isSelected(e))this.selectedRegions.splice(this.selectIndex(e),1),jQuery(this.container).trigger("regionDeselect.jqvmap",[e]),t.currentFillColor=t.getOriginalFill(),t.setFill(t.getOriginalFill());else for(var i in this.countries)this.selectedRegions.splice(this.selectedRegions.indexOf(i),1),this.countries[i].currentFillColor=this.color,this.countries[i].setFill(this.color)},isSelected:function(e){return 0<=this.selectIndex(e)},resize:function(){var e=this.baseScale;this.width/this.height>this.defaultWidth/this.defaultHeight?(this.baseScale=this.height/this.defaultHeight,this.baseTransX=Math.abs(this.width-this.defaultWidth*this.baseScale)/(2*this.baseScale)):(this.baseScale=this.width/this.defaultWidth,this.baseTransY=Math.abs(this.height-this.defaultHeight*this.baseScale)/(2*this.baseScale)),this.scale*=this.baseScale/e,this.transX*=this.baseScale/e,this.transY*=this.baseScale/e},reset:function(){for(var e in this.countries)this.countries[e].setFill(this.color);this.scale=this.baseScale,this.transX=this.baseTransX,this.transY=this.baseTransY,this.applyTransform()},applyTransform:function(){var e,t,i,n;this.defaultWidth*this.scale<=this.width?(e=(this.width-this.defaultWidth*this.scale)/(2*this.scale),i=(this.width-this.defaultWidth*this.scale)/(2*this.scale)):(e=0,i=(this.width-this.defaultWidth*this.scale)/this.scale),this.defaultHeight*this.scale<=this.height?(t=(this.height-this.defaultHeight*this.scale)/(2*this.scale),n=(this.height-this.defaultHeight*this.scale)/(2*this.scale)):(t=0,n=(this.height-this.defaultHeight*this.scale)/this.scale),this.transY>t?this.transY=t:this.transY<n&&(this.transY=n),this.transX>e?this.transX=e:this.transX<i&&(this.transX=i),this.canvas.applyTransformParams(this.scale,this.transX,this.transY)},makeDraggable:function(){var t,i,n=!1,s=this;s.isMoving=!1,s.isMovingTimeout=!1,this.container.mousemove(function(e){return n&&(s.transX-=(t-e.pageX)/s.scale,s.transY-=(i-e.pageY)/s.scale,s.applyTransform(),t=e.pageX,i=e.pageY,s.isMoving=!0,s.isMovingTimeout&&clearTimeout(s.isMovingTimeout),s.container.trigger("drag")),!1}).mousedown(function(e){return n=!0,t=e.pageX,i=e.pageY,!1}).mouseup(function(){return n=!1,s.isMovingTimeout=setTimeout(function(){s.isMoving=!1},100),!1})},bindZoomButtons:function(){var e=this;this.container.find(".jqvmap-zoomin").click(function(){e.zoomIn()}),this.container.find(".jqvmap-zoomout").click(function(){e.zoomOut()})},zoomIn:function(){var e=this,t=(jQuery("#zoom").innerHeight()-12-30-6-7-6)/(this.zoomMaxStep-this.zoomCurStep);if(e.zoomCurStep<e.zoomMaxStep){e.transX-=(e.width/e.scale-e.width/(e.scale*e.zoomStep))/2,e.transY-=(e.height/e.scale-e.height/(e.scale*e.zoomStep))/2,e.setScale(e.scale*e.zoomStep),e.zoomCurStep++;var i=jQuery("#zoomSlider");i.css("top",parseInt(i.css("top"),10)-t),e.container.trigger("zoomIn")}},zoomOut:function(){var e=this,t=(jQuery("#zoom").innerHeight()-12-30-6-7-6)/(this.zoomMaxStep-this.zoomCurStep);if(1<e.zoomCurStep){e.transX+=(e.width/(e.scale/e.zoomStep)-e.width/e.scale)/2,e.transY+=(e.height/(e.scale/e.zoomStep)-e.height/e.scale)/2,e.setScale(e.scale/e.zoomStep),e.zoomCurStep--;var i=jQuery("#zoomSlider");i.css("top",parseInt(i.css("top"),10)+t),e.container.trigger("zoomOut")}},setScale:function(e){this.scale=e,this.applyTransform()},getCountryId:function(e){return"jqvmap"+this.index+"_"+e},getPinId:function(e){return this.getCountryId(e)+"_pin"},placePins:function(e,t){var s=this;if((!t||"content"!==t&&"id"!==t)&&(t="content"),"content"===t?jQuery.each(e,function(e,t){if(0!==jQuery("#"+s.getCountryId(e)).length){var i=s.getPinId(e),n=jQuery("#"+i);0<n.length&&n.remove(),s.container.append('<div id="'+i+'" for="'+e+'" class="jqvmap_pin" style="position:absolute">'+t+"</div>")}}):jQuery.each(e,function(e,t){if(0!==jQuery("#"+s.getCountryId(e)).length){var i=s.getPinId(e),n=jQuery("#"+i);0<n.length&&n.remove(),s.container.append('<div id="'+i+'" for="'+e+'" class="jqvmap_pin" style="position:absolute"></div>'),n.append(jQuery("#"+t))}}),this.positionPins(),!this.pinHandlers){this.pinHandlers=!0;var i=function(){s.positionPins()};this.container.bind("zoomIn",i).bind("zoomOut",i).bind("drag",i)}},positionPins:function(){var h=this,e=this.container.find(".jqvmap_pin");jQuery.each(e,function(e,t){t=jQuery(t);var i=h.getCountryId(t.attr("for")),n=jQuery("#"+i),s=document.getElementById(i).getBBox(),a=n.position(),r=h.scale,o=a.left+s.width/2*r-t.width()/2,l=a.top+s.height/2*r-t.height()/2;t.css("left",o).css("top",l)})},getPin:function(e){return jQuery("#"+this.getPinId(e)).html()},getPins:function(){var e=this.container.find(".jqvmap_pin"),s={};return jQuery.each(e,function(e,t){var i=(t=jQuery(t)).attr("for"),n=t.html();s[i]=n}),JSON.stringify(s)},removePin:function(e){jQuery("#"+this.getPinId(e)).remove()},removePins:function(){this.container.find(".jqvmap_pin").remove()}},h.xlink="http://www.w3.org/1999/xlink",h.mapIndex=1,h.maps={},jQuery.fn.vectorMap=function(e){var t={map:"world_en",backgroundColor:"#a5bfdd",color:"#f4f3f0",hoverColor:"#c9dfaf",selectedColor:"#c9dfaf",scaleColors:["#b6d6ff","#005ace"],normalizeFunction:"linear",enableZoom:!0,showTooltip:!0,borderColor:"#818181",borderWidth:1,borderOpacity:.25,selectedRegions:null,multiSelectRegion:!1},i=this.data("mapObject");if("addMap"===e)h.maps[arguments[1]]=arguments[2];else if("set"===e&&s[arguments[1]])i["set"+arguments[1].charAt(0).toUpperCase()+arguments[1].substr(1)].apply(i,Array.prototype.slice.call(arguments,2));else{if("string"==typeof e&&"function"==typeof i[e])return i[e].apply(i,Array.prototype.slice.call(arguments,1));for(var n in jQuery.extend(t,e),(t.container=this).css({position:"relative",overflow:"hidden"}),i=new h(t),this.data("mapObject",i),a)t[n]&&this.bind(a[n]+".jqvmap",t[n])}},n.prototype={colors:[],setMin:function(e){this.clearMinValue=e,this.minValue="function"==typeof this.normalize?this.normalize(e):e},setMax:function(e){this.clearMaxValue=e,this.maxValue="function"==typeof this.normalize?this.normalize(e):e},setColors:function(e){for(var t=0;t<e.length;t++)e[t]=n.rgbToArray(e[t]);this.colors=e},setNormalizeFunction:function(e){"polynomial"===e?this.normalize=function(e){return Math.pow(e,.2)}:"linear"===e?delete this.normalize:this.normalize=e,this.setMin(this.clearMinValue),this.setMax(this.clearMaxValue)},getColor:function(e){"function"==typeof this.normalize&&(e=this.normalize(e));for(var t,i=[],n=0,s=0;s<this.colors.length-1;s++)t=this.vectorLength(this.vectorSubtract(this.colors[s+1],this.colors[s])),i.push(t),n+=t;var a,r=(this.maxValue-this.minValue)/n;for(s=0;s<i.length;s++)i[s]*=r;for(s=0,e-=this.minValue;0<=e-i[s];)e-=i[s],s++;for(a=s===this.colors.length-1?this.vectorToNum(this.colors[s]).toString(16):this.vectorToNum(this.vectorAdd(this.colors[s],this.vectorMult(this.vectorSubtract(this.colors[s+1],this.colors[s]),e/i[s]))).toString(16);a.length<6;)a="0"+a;return"#"+a},vectorToNum:function(e){for(var t=0,i=0;i<e.length;i++)t+=Math.round(e[i])*Math.pow(256,e.length-i-1);return t},vectorSubtract:function(e,t){for(var i=[],n=0;n<e.length;n++)i[n]=e[n]-t[n];return i},vectorAdd:function(e,t){for(var i=[],n=0;n<e.length;n++)i[n]=e[n]+t[n];return i},vectorMult:function(e,t){for(var i=[],n=0;n<e.length;n++)i[n]=e[n]*t;return i},vectorLength:function(e){for(var t=0,i=0;i<e.length;i++)t+=e[i]*e[i];return Math.sqrt(t)}},n.arrayToRgb=function(e){for(var t,i="#",n=0;n<e.length;n++)i+=1===(t=e[n].toString(16)).length?"0"+t:t;return i},n.rgbToArray=function(e){return e=e.substr(1),[parseInt(e.substr(0,2),16),parseInt(e.substr(2,2),16),parseInt(e.substr(4,2),16)]}}(jQuery),jQuery.fn.vectorMap("addMap","world_en",{width:950,height:550,pathes:{id:{path:"M781.68,324.4l-2.31,8.68l-12.53,4.23l-3.75-4.4l-1.82,0.5l3.4,13.12l5.09,0.57l6.79,2.57v2.57l3.11-0.57l4.53-6.27v-5.13l2.55-5.13l2.83,0.57l-3.4-7.13l-0.52-4.59L781.68,324.4L781.68,324.4M722.48,317.57l-0.28,2.28l6.79,11.41h1.98l14.15,23.67l5.66,0.57l2.83-8.27l-4.53-2.85l-0.85-4.56L722.48,317.57L722.48,317.57M789.53,349.11l2.26,2.77l-1.47,4.16v0.79h3.34l1.18-10.4l1.08,0.3l1.96,9.5l1.87,0.5l1.77-4.06l-1.77-6.14l-1.47-2.67l4.62-3.37l-1.08-1.49l-4.42,2.87h-1.18l-2.16-3.17l0.69-1.39l3.64-1.78l5.5,1.68l1.67-0.1l4.13-3.86l-1.67-1.68l-3.83,2.97h-2.46l-3.73-1.78l-2.65,0.1l-2.95,4.75l-1.87,8.22L789.53,349.11L789.53,349.11M814.19,330.5l-1.87,4.55l2.95,3.86h0.98l1.28-2.57l0.69-0.89l-1.28-1.39l-1.87-0.69L814.19,330.5L814.19,330.5M819.99,345.45l-4.03,0.89l-1.18,1.29l0.98,1.68l2.65-0.99l1.67-0.99l2.46,1.98l1.08-0.89l-1.96-2.38L819.99,345.45L819.99,345.45M753.17,358.32l-2.75,1.88l0.59,1.58l8.75,1.98l4.42,0.79l1.87,1.98l5.01,0.4l2.36,1.98l2.16-0.5l1.97-1.78l-3.64-1.68l-3.14-2.67l-8.16-1.98L753.17,358.32L753.17,358.32M781.77,366.93l-2.16,1.19l1.28,1.39l3.14-1.19L781.77,366.93L781.77,366.93M785.5,366.04l0.39,1.88l2.26,0.59l0.88-1.09l-0.98-1.49L785.5,366.04L785.5,366.04M790.91,370.99l-2.75,0.4l2.46,2.08h1.96L790.91,370.99L790.91,370.99M791.69,367.72l-0.59,1.19l4.42,0.69l3.44-1.98l-1.96-0.59l-3.14,0.89l-1.18-0.99L791.69,367.72L791.69,367.72M831.93,339.34l-4.17,0.47l-2.68,1.96l1.11,2.24l4.54,0.84v0.84l-2.87,2.33l1.39,4.85l1.39,0.09l1.2-4.76h2.22l0.93,4.66l10.83,8.96l0.28,7l3.7,4.01l1.67-0.09l0.37-24.72l-6.29-4.38l-5.93,4.01l-2.13,1.31l-3.52-2.24l-0.09-7.09L831.93,339.34L831.93,339.34z",name:"Indonesia"},pg:{path:"M852.76,348.29l-0.37,24.44l3.52-0.19l4.63-5.41l3.89,0.19l2.5,2.24l0.83,6.9l7.96,4.2l2.04-0.75v-2.52l-6.39-5.32l-3.15-7.28l2.5-1.21l-1.85-4.01l-3.7-0.09l-0.93-4.29l-9.81-6.62L852.76,348.29L852.76,348.29M880.48,349l-0.88,1.25l4.81,4.26l0.66,2.5l1.31-0.15l0.15-2.57l-1.46-1.32L880.48,349L880.48,349M882.89,355.03l-0.95,0.22l-0.58,2.57l-1.82,1.18l-5.47,0.96l0.22,2.06l5.76-0.29l3.65-2.28l-0.22-3.97L882.89,355.03L882.89,355.03M889.38,359.51l1.24,3.45l2.19,2.13l0.66-0.59l-0.22-2.28l-2.48-3.01L889.38,359.51L889.38,359.51z",name:"Papua New Guinea"},mx:{path:"M137.49,225.43l4.83,15.21l-2.25,1.26l0.25,3.02l4.25,3.27v6.05l5.25,5.04l-2.25-14.86l-3-9.83l0.75-6.8l2.5,0.25l1,2.27l-1,5.79l13,25.44v9.07l10.5,12.34l11.5,5.29l4.75-2.77l6.75,5.54l4-4.03l-1.75-4.54l5.75-1.76l1.75,1.01l1.75-1.76h2.75l5-8.82l-2.5-2.27l-9.75,2.27l-2.25,6.55l-5.75,1.01l-6.75-2.77l-3-9.57l2.27-12.07l-4.64-2.89l-2.21-11.59l-1.85-0.79l-3.38,3.43l-3.88-2.07l-1.52-7.73l-15.37-1.61l-7.94-5.97L137.49,225.43L137.49,225.43z",name:"Mexico"},ee:{path:"M517.77,143.66l-5.6-0.2l-3.55,2.17l-0.05,1.61l2.3,2.17l7.15,1.21L517.77,143.66L517.77,143.66M506.76,147.64l-1.55-0.05l-0.9,0.91l0.65,0.96l1.55,0.1l0.8-1.16L506.76,147.64L506.76,147.64z",name:"Estonia"},dz:{path:"M473.88,227.49l-4.08-1.37l-16.98,3.19l-3.7,2.81l2.26,11.67l-6.75,0.27l-4.06,6.53l-9.67,2.32l0.03,4.75l31.85,24.35l5.43,0.46l18.11-14.15l-1.81-2.28l-3.4-0.46l-2.04-3.42v-14.15l-1.36-1.37l0.23-3.65l-3.62-3.65l-0.45-3.88l1.58-1.14l-0.68-4.11L473.88,227.49L473.88,227.49z",name:"Algeria"},ma:{path:"M448.29,232.28h-11.55l-2.26,5.02l-5.21,2.51l-4.3,11.64l-8.38,5.02l-11.77,19.39l11.55-0.23l0.45-5.7h2.94v-7.76h10.19l0.23-10.04l9.74-2.28l4.08-6.62l6.34-0.23L448.29,232.28L448.29,232.28z",name:"Morocco"},mr:{path:"M404.9,276.66l2.18,2.85l-0.45,12.32l3.17-2.28l2.26-0.46l3.17,1.14l3.62,5.02l3.4-2.28l16.53-0.23l-4.08-27.61l4.38-0.02l-8.16-6.25l0.01,4.06l-10.33,0.01l-0.05,7.75l-2.97-0.01l-0.38,5.72L404.9,276.66L404.9,276.66z",name:"Mauritania"},sn:{path:"M412.03,289.84L410.12,290.31L406.18,293.18L405.28,294.78L405,296.37L406.43,297.40L411.28,297.34L414.40,296.5L414.75,298.03L414.46,300.06L414.53,300.09L406.78,300.21L408.03,303.21L408.71,301.37L418,302.15L418.06,302.21L419.03,302.25L422,302.37L422.12,300.62L418.53,296.31L414.53,290.87L412.03,289.84z",name:"Senegal"},gm:{path:"M406.89,298.34l-0.13,1.11l6.92-0.1l0.35-1.03l-0.15-1.04l-1.99,0.81L406.89,298.34L406.89,298.34z",name:"Gambia"},gw:{path:"M408.6,304.53l1.4,2.77l3.93-3.38l0.04-1.04l-4.63-0.67L408.6,304.53L408.6,304.53z",name:"Guinea-Bissau"},gn:{path:"M410.42,307.94l3.04,4.68l3.96-3.44l4.06-0.18l3.38,4.49l2.87,1.89l1.08-2.1l0.96-0.54l-0.07-4.62l-1.91-5.48l-5.86,0.65l-7.25-0.58l-0.04,1.86L410.42,307.94L410.42,307.94z",name:"Guinea"},sl:{path:"M413.93,313.13l5.65,5.46l4.03-4.89l-2.52-3.95l-3.47,0.35L413.93,313.13L413.93,313.13z",name:"Sierra Leone"},lr:{path:"M420.17,319.19l10.98,7.34l-0.26-5.56l-3.32-3.91l-3.24-2.87L420.17,319.19L420.17,319.19z",name:"Liberia"},ci:{path:"M432.07,326.75l4.28-3.03l5.32-0.93l5.43,1.17l-2.77-4.19l-0.81-2.56l0.81-7.57l-4.85,0.23l-2.2-2.1l-4.62,0.12l-2.2,0.35l0.23,5.12l-1.16,0.47l-1.39,2.56l3.58,4.19L432.07,326.75L432.07,326.75z",name:"Cote d'Ivoire"},ml:{path:"M419.46,295.84l3.08-2.11l17.12-0.1l-3.96-27.54l4.52-0.13l21.87,16.69l2.94,0.42l-1.11,9.28l-13.75,1.25l-10.61,7.92l-1.93,5.42l-7.37,0.31l-1.88-5.41l-5.65,0.4l0.22-1.77L419.46,295.84L419.46,295.84z",name:"Mali"},bf:{path:"M450.59,294.28l3.64-0.29l5.97,8.44l-5.54,4.18l-4.01-1.03l-5.39,0.07l-0.87,3.16l-4.52,0.22l-1.24-1.69l1.6-5.14L450.59,294.28L450.59,294.28z",name:"Burkina Faso"},ne:{path:"M460.89,302l2.55-0.06l2.3-3.45l3.86-0.69l4.11,2.51l8.77,0.25l6.78-2.76l2.55-2.19l0.19-2.88l4.73-4.77l1.25-10.53l-3.11-6.52l-7.96-1.94l-18.42,14.36l-2.61-0.25l-1.12,9.97l-9.4,0.94L460.89,302L460.89,302z",name:"Niger"},gh:{path:"M444.34,317.05l1.12,2.63l2.92,4.58l1.62-0.06l4.42-2.51l-0.31-14.29l-3.42-1l-4.79,0.13L444.34,317.05L444.34,317.05z",name:"Ghana"},tg:{path:"M455.22,321.25l2.68-1.57l-0.06-10.35l-1.74-2.82l-1.12,0.94L455.22,321.25L455.22,321.25z",name:"Togo"},bj:{path:"M458.71,319.49h2.12l0.12-6.02l2.68-3.89l-0.12-6.77l-2.43-0.06l-4.17,3.26l1.74,3.32L458.71,319.49L458.71,319.49z",name:"Benin"},ng:{path:"M461.57,319.37l3.92,0.19l4.73,5.27l2.3,0.63l1.8-0.88l2.74-0.38l0.93-3.82l3.73-2.45l4.04-0.19l7.4-13.61l-0.12-3.07l-3.42-2.63l-6.84,3.01l-9.15-0.13l-4.36-2.76l-3.11,0.69l-1.62,2.82l-0.12,7.96l-2.61,3.7L461.57,319.37L461.57,319.37z",name:"Nigeria"},tn:{path:"M474.91,227.33l5.53-2.23l1.82,1.18l0.07,1.44l-0.85,1.11l0.13,1.97l0.85,0.46v3.54l-0.98,1.64l0.13,1.05l3.71,1.31l-2.99,4.65l-1.17-0.07l-0.2,3.74l-1.3,0.2l-1.11-0.98l0.26-3.8l-3.64-3.54l-0.46-3.08l1.76-1.38L474.91,227.33L474.91,227.33z",name:"Tunisia"},ly:{path:"M480.05,248.03l1.56-0.26l0.46-3.6h0.78l3.19-5.24l7.87,2.29l2.15,3.34l7.74,3.54l4.03-1.7l-0.39-1.7l-1.76-1.7l0.2-1.18l2.86-2.42h5.66l2.15,2.88l4.55,0.66l0.59,36.89l-3.38-0.13l-20.42-10.62l-2.21,1.25l-8.39-2.1l-2.28-3.01l-3.32-0.46l-1.69-3.01L480.05,248.03L480.05,248.03z",name:"Libya"},eg:{path:"M521.93,243.06l2.67,0.07l5.2,1.44l2.47,0.07l3.06-2.56h1.43l2.6,1.44h3.29l0.59-0.04l2.08,5.98l0.59,1.93l0.55,2.89l-0.98,0.72l-1.69-0.85l-1.95-6.36l-1.76-0.13l-0.13,2.16l1.17,3.74l9.37,11.6l0.2,4.98l-2.73,3.15L522.32,273L521.93,243.06L521.93,243.06z",name:"Egypt"},td:{path:"M492.79,296l0.13-2.95l4.74-4.61l1.27-11.32l-3.16-6.04l2.21-1.13l21.4,11.15l-0.13,10.94l-3.77,3.21v5.64l2.47,4.78h-4.36l-7.22,7.14l-0.19,2.16l-5.33-0.07l-0.07,0.98l-3.04-0.4l-2.08-3.93l-1.56-0.77l0.2-1.2l1.96-1.5v-7.02l-2.71-0.42l-3.27-2.43L492.79,296L492.79,296L492.79,296z",name:"Chad"},sd:{path:"M520.15,292.43l0.18-11.83l2.46,0.07l-0.28-6.57l25.8,0.23l3.69-3.72l7.96,12.73l-4.36,5.14v7.85l-6.86,14.75l-2.36,1.04l0.75,4.11h2.94l3.99,5.79l-3.2,0.41l-0.82,1.49l-0.08,2.15l-9.6-0.17l-0.98-1.49l-6.71-0.38l-12.32-12.68l1.23-0.74l0.33-2.98l-2.95-1.74l-2.69-5.31l0.15-4.94L520.15,292.43L520.15,292.43z",name:"Sudan"},cm:{path:"M477.82,324.28l3.22,2.96l-0.23,4.58l17.66-0.41l1.44-1.62l-5.06-5.45l-0.75-1.97l3.22-6.03l-2.19-4l-1.84-0.99v-2.03l2.13-1.39l0.12-6.32l-1.69-0.19l-0.03,3.32l-7.42,13.85l-4.54,0.23l-3.11,2.14L477.82,324.28L477.82,324.28z",name:"Cameroon"},er:{path:"M556.71,294.7l-0.25-5.89l3.96-4.62l1.07,0.82l1.95,6.52l9.36,6.97l-1.7,2.09l-6.85-5.89H556.71L556.71,294.7z",name:"Eritrea"},dj:{path:"M571.48,301.54l-0.57,3.36l3.96-0.06l0.06-4.94l-1.45-0.89L571.48,301.54L571.48,301.54z",name:"Djibouti"},et:{path:"M549.49,311.76l7.28-16.2l7.23,0.04l6.41,5.57l-0.45,4.59h4.97l0.51,2.76l8.04,4.81l4.96,0.25l-9.43,10.13l-12.95,3.99h-3.21l-5.72-4.88l-2.26-0.95l-4.38-6.45l-2.89,0.04l-0.34-2.96L549.49,311.76L549.49,311.76z",name:"Ethiopia"},so:{path:"M575.74,305.04l4.08,2.78l1.21-0.06l10.13-3.48l1.15,3.71l-0.81,3.13l-2.19,1.74l-5.47-0.35l-7.83-4.81L575.74,305.04L575.74,305.04M591.97,304.05l4.37-1.68l1.55,0.93l-0.17,3.88l-4.03,11.48l-21.81,23.36l-2.53-1.74l-0.17-9.86l3.28-3.77l6.96-2.15l10.21-10.78l2.67-2.38l0.75-3.48L591.97,304.05L591.97,304.05z",name:"Somalia"},ye:{path:"M599.62,299.65l2.13,2.38l2.88-1.74l1.04-0.35l-1.32-1.28l-2.53,0.75L599.62,299.65L599.62,299.65M571.99,289.23l1.44,4.28v4.18l3.46,3.14l24.38-9.93l0.23-2.73l-3.91-7.02l-9.81,3.13l-5.63,5.54l-6.53-3.86L571.99,289.23L571.99,289.23z",name:"Yemen"},cf:{path:"M495.66,324.05l4.66,5.04l1.84-2.38l2.93,0.12l0.63-2.32l2.88-1.8l5.98,4.12l3.45-3.42l13.39,0.59L519,311.18l1.67-1.04l0.23-2.26l-2.82-1.33h-4.14l-6.67,6.61l-0.23,2.72l-5.29-0.17l-0.17,1.16l-3.45-0.35l-3.11,5.91L495.66,324.05L495.66,324.05z",name:"Central African Republic"},st:{path:"M470.74,337.15l1.15-0.58l0.86,0.7l-0.86,1.33l-1.04-0.41L470.74,337.15L470.74,337.15M473.05,333.5l1.73-0.29l0.58,1.1l-0.86,0.93l-0.86-0.12L473.05,333.5L473.05,333.5z",name:"Sao Tome and Principe"},gq:{path:"M476.84,327.41l-0.46,1.97l1.38,0.75l1.32-0.99l-0.46-2.03L476.84,327.41L476.84,327.41M480.99,332.69l-0.06,1.39l4.54,0.23l-0.06-1.57L480.99,332.69L480.99,332.69z",name:"Equatorial Guinea"},ga:{path:"M486.39,332.63l-0.12,2.49l-5.64-0.12l-3.45,6.67l8.11,8.87l2.01-1.68l-0.06-1.74l-1.38-0.64v-1.22l3.11-1.97l2.76,2.09l3.05,0.06l-0.06-10.49l-4.83-0.23l-0.06-2.2L486.39,332.63L486.39,332.63z",name:"Gabon"},cg:{path:"M491,332.52l-0.06,1.45l4.78,0.12l0.17,12.41l-4.37-0.12l-2.53-1.97l-1.96,1.1l-0.09,0.55l1.01,0.49l0.29,2.55l-2.7,2.32l0.58,1.22l2.99-2.32h1.44l0.46,1.39l1.9,0.81l6.1-5.16l-0.12-3.77l1.27-3.07l3.91-2.9l1.05-9.81l-2.78,0.01l-3.22,4.41L491,332.52L491,332.52z",name:"Congo"},ao:{path:"M486.55,353.23l1.74,2.26l2.25-2.13l-0.66-2.21l-0.56-0.04L486.55,353.23L486.55,353.23M488.62,356.71l3.41,12.73l-0.08,4.02l-4.99,5.36l-0.75,8.71l19.2,0.17l6.24,2.26l5.15-0.67l-3-3.76l0.01-10.74l5.9-0.25v-4.19l-4.79-0.2l-0.96-9.92l-2.02,0.03l-1.09-0.98l-1.19,0.06l-1.58,3.06H502l-1.41-1.42l0.42-2.01l-1.66-2.43L488.62,356.71L488.62,356.71z",name:"Angola"},cd:{path:"M489.38,355.71l10.31-0.18l2.09,2.97l-0.08,2.19l0.77,0.7h5.12l1.47-2.89h2.09l0.85,0.86l2.87-0.08l0.85,10.08l4.96,0.16v0.78l13.33,6.01l0.62,1.17h2.79l-0.31-4.22l-5.04-2.42l0.31-3.2l2.17-5.08l4.96-0.16l-4.26-14.14l0.08-6.01l6.74-10.54l0.08-1.48l-1.01-0.55l0.04-2.86l-1.23-0.11l-1.24-1.58l-20.35-0.92l-3.73,3.63l-6.11-4.02l-2.15,1.32l-1.56,13.13l-3.86,2.98l-1.16,2.64l0.21,3.91l-6.96,5.69l-1.85-0.84l0.25,1.09L489.38,355.71L489.38,355.71z",name:"Congo"},rw:{path:"M537.82,339.9l2.81,2.59l-0.12,2.77l-4.36,0.09v-3.06L537.82,339.9L537.82,339.9z",name:"Rwanda"},bi:{path:"M536.21,346.21l4.27-0.09l-1.11,3.74l-1.08,0.94h-1.32l-0.94-2.53L536.21,346.21L536.21,346.21z",name:"Burundi"},ug:{path:"M538.3,339.09l3.03,2.84l1.9-1.21l5.14-0.84l0.88,0.09l0.33-1.95l2.9-6.1l-2.44-5.08l-7.91,0.05l-0.05,2.09l1.06,1.02l-0.16,2.09L538.3,339.09L538.3,339.09z",name:"Uganda"},ke:{path:"M550.83,326.52l2.66,5.19l-3.19,6.69l-0.42,2.03l15.93,9.85l4.94-7.76l-2.5-2.03l-0.05-10.22l3.13-3.42l-4.99,1.66l-3.77,0.05l-5.9-4.98l-1.86-0.8l-3.45,0.32l-0.61,1.02L550.83,326.52L550.83,326.52z",name:"Kenya"},tz:{path:"M550.57,371.42l17.47-2.14l-3.93-7.6l-0.21-7.28l1.27-3.48l-16.62-10.44l-5.21,0.86l-1.81,1.34l-0.16,3.05l-1.17,4.23l-1.22,1.45l-1.75,0.16l3.35,11.61l5.47,2.57l3.77,0.11L550.57,371.42L550.57,371.42z",name:"Tanzania"},zm:{path:"M514.55,384.7l3.17,4.4l4.91,0.3l1.74,0.96l5.14,0.06l4.43-6.21l12.38-5.54l1.08-4.88l-1.44-6.99l-6.46-3.68l-4.31,0.3l-2.15,4.76l0.06,2.17l5.08,2.47l0.3,5.37l-4.37,0.24l-1.08-1.81l-12.14-5.18l-0.36,3.98l-5.74,0.18L514.55,384.7L514.55,384.7z",name:"Zambia"},mw:{path:"M547.16,379.4l3.11,3.25l-0.06,4.16l0.6,1.75l4.13-4.46l-0.48-5.67l-2.21-1.69l-1.97-9.95l-3.41-0.12l1.55,7.17L547.16,379.4L547.16,379.4z",name:"Malawi"},mz:{path:"M541.17,413.28l2.69,2.23l6.34-3.86l1.02-5.73v-9.46l10.17-8.32l1.74,0.06l6.16-5.91l-0.96-12.18L552,372.17l0.48,3.68l2.81,2.17l0.66,6.63l-5.5,5.37l-1.32-3.01l0.24-3.98l-3.17-3.44l-7.78,3.62l7.24,3.68l0.24,10.73l-4.79,7.11L541.17,413.28L541.17,413.28z",name:"Mozambique"},zw:{path:"M524.66,392.3l8.97,10.13l6.88,1.75l4.61-7.23l-0.36-9.58l-7.48-3.86l-2.81,1.27l-4.19,6.39l-5.8-0.06L524.66,392.3L524.66,392.3z",name:"Zimbabwe"},na:{path:"M496.55,421.96l3.35,0.24l1.97,1.99l4.67,0.06l1.14-13.26v-8.68l2.99-0.6l1.14-9.1l7.6-0.24l2.69-2.23l-4.55-0.18l-6.16,0.84l-6.64-2.41h-18.66l0.48,5.3l6.22,9.16l-1.08,4.7l0.06,2.47L496.55,421.96L496.55,421.96z",name:"Namibia"},bw:{path:"M508.51,411.23l2.15,0.66l-0.3,6.15l2.21,0.3l5.08-4.58l6.1,0.66l1.62-4.1l7.72-7.05l-9.27-10.67l-0.12-1.75l-1.02-0.3l-2.81,2.59l-7.3,0.18l-1.02,9.1l-2.87,0.66L508.51,411.23L508.51,411.23z",name:"Botswana"},sz:{path:"M540.87,414l-2.51,0.42l-1.08,2.95l1.92,1.75h2.33l1.97-2.83L540.87,414L540.87,414z",name:"Swaziland"},ls:{path:"M527.41,425.39l3.05-2.35l1.44,0.06l1.74,2.17l-0.18,2.17l-2.93,1.08v0.84l-3.23-0.18l-0.78-2.35L527.41,425.39L527.41,425.39z",name:"Lesotho"},za:{path:"M534.16,403.63l-7.9,7.3l-1.88,4.51l-6.26-0.78l-5.21,4.63l-3.46-0.34l0.28-6.4l-1.23-0.43l-0.86,13.09l-6.14-0.06l-1.85-2.18l-2.71-0.03l2.47,7.09l4.41,4.17l-3.15,3.67l2.04,4.6l4.72,1.8l3.76-3.2l10.77,0.06l0.77-0.96l4.78-0.84l16.17-16.1l-0.06-5.07l-1.73,2.24h-2.59l-3.15-2.64l1.6-3.98l2.75-0.56l-0.25-8.18L534.16,403.63L534.16,403.63z M530.37,422.13l1.51-0.06l2.45,2.66l-0.07,3.08l-2.87,1.45l-0.18,1.02l-4.38,0.05l-1.37-3.3l1.25-2.42L530.37,422.13L530.37,422.13z",name:"South Africa"},gl:{path:"M321.13,50.07l-1.36,2.17l2.45,2.45l-1.09,2.45l3.54,4.62l4.35-1.36l5.71-0.54l6.53,7.07l4.35,11.69l-3.53,7.34l4.89-0.82l2.72,1.63l0.27,3.54l-5.98,0.27l3.26,3.26l4.08,0.82l-8.97,11.96l-1.09,7.34l1.9,5.98l-1.36,3.54l2.45,7.61l4.62,5.17l1.36-0.27l2.99-0.82l0.27,4.35l1.9,2.72l3.53-0.27l2.72-10.06l8.16-10.06l12.24-4.89l7.61-9.52l3.53,1.63h7.34l5.98-5.98l7.34-2.99l0.82-4.62l-4.62-4.08l-4.08-1.36l-2.18-5.71l5.17-2.99l8.16,4.35l2.72-2.99l-4.35-2.45l9.25-12.51l-1.63-5.44l-4.35-0.27l1.63-4.89l5.44-2.45l11.15-9.79l-3.26-3.53l-12.51,1.09l-6.53,6.53l3.81-8.43l-4.35-1.09l-2.45,4.35l-3.53-2.99l-9.79,1.09l2.72-4.35l16.04-0.54l-4.08-5.44l-17.4-3.26l-7.07,1.09l0.27,3.54l-7.34-2.45l0.27-2.45l-5.17,1.09l-1.09,2.72l5.44,1.9l-5.71,4.08l-4.08-4.62l-5.71-1.63l-0.82,4.35h-5.71l-2.18-4.62l-8.97-1.36l-4.89,2.45l-0.27,3.26l-6.25-0.82l-3.81,1.63l0.27,3.81v1.9l-7.07,1.36l-3.26-2.17l-2.18,3.53l3.26,3.54l6.8-0.82l0.54,2.18l-5.17,2.45L321.13,50.07L321.13,50.07M342.89,92.49l1.63,2.45l-0.82,2.99h-1.63l-2.18-2.45l0.54-1.9L342.89,92.49L342.89,92.49M410.87,85.69l4.62,1.36l-0.27,3.81l-4.89-2.45l-1.09-1.36L410.87,85.69L410.87,85.69z",name:"Greenland"},au:{path:"M761.17,427.98l-0.35,25.38l-3.9,2.86l-0.35,2.5l5.32,3.57l13.13-2.5h6.74l2.48-3.58l14.9-2.86l10.64,3.22l-0.71,4.29l1.42,4.29l8.16-1.43l0.35,2.14l-5.32,3.93l1.77,1.43l3.9-1.43l-1.06,11.8l7.45,5.72l4.26-1.43l2.13,2.14l12.42-1.79l11.71-18.95l4.26-1.07l8.51-15.73l2.13-13.58l-5.32-6.79l2.13-1.43l-4.26-13.23l-4.61-3.22l0.71-17.87l-4.26-3.22l-1.06-10.01h-2.13l-7.1,23.59l-3.9,0.36l-8.87-8.94l4.97-13.23l-9.22-1.79l-10.29,2.86l-2.84,8.22l-4.61,1.07l-0.35-5.72l-18.8,11.44l0.35,4.29l-2.84,3.93h-7.1l-15.26,6.43L761.17,427.98L761.17,427.98M825.74,496.26l-1.77,7.15l0.35,5l5.32-0.36l6.03-9.29L825.74,496.26L825.74,496.26z",name:"Australia"},nz:{path:"M913.02,481.96l1.06,11.8l-1.42,5.36l-5.32,3.93l0.35,4.65v5l1.42,1.79l14.55-12.51v-2.86h-3.55l-4.97-16.8L913.02,481.96L913.02,481.96M902.38,507.7l2.84,5.36l-7.81,7.51l-0.71,3.93l-5.32,0.71l-8.87,8.22l-8.16-3.93l-0.71-2.86l14.9-6.43L902.38,507.7L902.38,507.7z",name:"New Zealand"},nc:{path:"M906.64,420.47l-0.35,1.79l4.61,6.43l2.48,1.07l0.35-2.5L906.64,420.47L906.64,420.47z",name:"New Caledonia"},my:{path:"M764.14,332.92l3.02,3.49l11.58-4.01l2.29-8.84l5.16-0.37l4.72-3.42l-6.12-4.46l-1.4-2.45l-3.02,5.57l1.11,3.2l-1.84,2.67l-3.47-0.89l-8.41,6.17l0.22,3.57L764.14,332.92L764.14,332.92M732.71,315.45l2.01,4.51l0.45,5.86l2.69,4.17l6.49,3.94l2.46,0.23l-0.45-4.06l-2.13-5.18l-3.12-6.63l-0.26,1.16l-3.76-0.17l-2.7-3.88L732.71,315.45L732.71,315.45z",name:"Malaysia"},bn:{path:"M779.77,319.25l-2.88,3.49l2.36,0.74l1.33-1.86L779.77,319.25L779.77,319.25z",name:"Brunei Darussalam"},tl:{path:"M806.14,368.42l-5.11,4.26l0.49,1.09l2.16-0.4l2.55-2.38l5.01-0.69l-0.98-1.68L806.14,368.42L806.14,368.42z",name:"Timor-Leste"},sb:{path:"M895.43,364.65l0.15,2.28l1.39,1.32l1.31-0.81l-1.17-2.43L895.43,364.65L895.43,364.65M897.18,370.31l-1.17,1.25l1.24,2.28l1.46,0.44l-0.07-1.54L897.18,370.31L897.18,370.31M900.03,368.99l1.02,2.5l1.97,2.35l1.09-1.76l-1.46-2.5L900.03,368.99L900.03,368.99M905.14,372.74l0.58,3.09l1.39,1.91l1.17-2.42L905.14,372.74L905.14,372.74M906.74,379.65l-0.51,0.88l1.68,2.21l1.17,0.07l-0.73-2.87L906.74,379.65L906.74,379.65M903.02,384.05l-1.75,0.81l1.53,2.13l1.31-0.74L903.02,384.05L903.02,384.05z",name:"Solomon Islands"},vu:{path:"M920.87,397.22l-1.24,1.66l0.52,1.87l0.62,0.42l1.13-1.46L920.87,397.22L920.87,397.22M921.49,402.31l0.1,1.35l1.34,0.42l0.93-0.52l-0.93-1.46L921.49,402.31L921.49,402.31M923.45,414.37l-0.62,0.94l0.93,1.04l1.55-0.52L923.45,414.37L923.45,414.37z",name:"Vanuatu"},fj:{path:"M948.62,412.29l-1.24,1.66l-0.1,1.87l1.44,1.46L948.62,412.29L948.62,412.29z",name:"Fiji"},ph:{path:"M789.37,297.53l-0.86,1.64l-0.48,2.02l-4.78,6.07l0.29,1.25l2.01-0.29l6.21-6.94L789.37,297.53L789.37,297.53M797.11,295.22l-0.1,5.01l1.82,1.83l0.67,3.56l1.82,0.39l0.86-2.22l-1.43-1.06l-0.38-6.26L797.11,295.22L797.11,295.22M802.28,297.15l-0.1,4.43l1.05,1.73l1.82-2.12l-0.48-3.85L802.28,297.15L802.28,297.15M803.42,293.29l1.82,2.41l0.86,2.31h1.63l-0.29-3.95l-1.82-1.25L803.42,293.29L803.42,293.29M806.96,302.35l0.38,2.89l-3.35,2.7l-2.77,0.29l-2.96,3.18l0.1,1.45l2.77-0.87l1.91-1.25l1.63,4.14l2.87,2.02l1.15-0.39l1.05-1.25l-2.29-2.31l1.34-1.06l1.53,1.25l1.05-1.73l-1.05-2.12l-0.19-4.72L806.96,302.35L806.96,302.35M791.38,272.97l-2.58,1.83l-0.29,5.78l4.02,7.8l1.34,1.06l1.72-1.16l2.96,0.48l0.57,2.6l2.2,0.19l1.05-1.44l-1.34-1.83l-1.63-1.54l-3.44-0.38l-1.82-2.99l2.1-3.18l0.19-2.79l-1.43-3.56L791.38,272.97L791.38,272.97M792.72,290.21l0.76,2.7l1.34,0.87l0.96-1.25l-1.53-2.12L792.72,290.21L792.72,290.21z",name:"Philippines"},cn:{path:"M759.83,270.17l-2.39,0.67l-1.72,2.12l1.43,2.79l2.1,0.19l2.39-2.12l0.57-2.79L759.83,270.17L759.83,270.17M670.4,170.07l-3.46,8.7l-4.77-0.25l-5.03,11.01l4.27,5.44l-8.8,12.15l-4.52-0.76l-3.02,3.8l0.75,2.28l3.52,0.25l1.76,4.05l3.52,0.76l10.81,13.93v7.09l5.28,3.29l5.78-1.01l7.29,4.3l8.8,2.53l4.27-0.51l4.78-0.51l10.05-6.58l3.27,0.51l1.25,2.97l2.77,0.83l3.77,5.57l-2.51,5.57l1.51,3.8l4.27,1.52l0.75,4.56l5.03,0.51l0.75-2.28l7.29-3.8l4.52,0.25l5.28,5.82l3.52-1.52l2.26,0.25l1.01,2.79l1.76,0.25l2.51-3.54l10.05-3.8l9.05-10.89l3.02-10.38l-0.25-6.84l-3.77-0.76l2.26-2.53l-0.5-4.05l-9.55-9.62v-4.81l2.76-3.54l2.76-1.27l0.25-2.79h-7.04l-1.26,3.8l-3.27-0.76l-4.02-4.3l2.51-6.58l3.52-3.8l3.27,0.25l-0.5,5.82l1.76,1.52l4.27-4.3l1.51-0.25l-0.5-3.29l4.02-4.81l3.02,0.25l1.76-5.57l2.06-1.09l0.21-3.47l-2-2.1l-0.17-5.48l3.85-0.25l-0.25-14.13l-2.7,1.62l-1.01,3.62l-4.51-0.01l-13.07-7.35l-9.44-11.38l-9.58-0.1l-2.44,2.12l3.1,7.1l-1.08,6.66l-3.86,1.6l-2.17-0.17l-0.16,6.59l2.26,0.51l4.02-1.77l5.28,2.53v2.53l-3.77,0.25l-3.02,6.58l-2.76,0.25l-9.8,12.91l-10.3,4.56l-7.04,0.51l-4.77-3.29l-6.79,3.55l-7.29-2.28l-1.76-4.81l-12.31-0.76l-6.53-10.63h-2.76l-2.22-4.93L670.4,170.07z",name:"China"},tw:{path:"M787.46,248.31l-3.54,2.7l-0.19,5.2l3.06,3.56l0.76-0.67L787.46,248.31L787.46,248.31z",name:"Taiwan"},jp:{path:"M803.23,216.42l-1.63,1.64l0.67,2.31l1.43,0.1l0.96,5.01l1.15,1.25l2.01-1.83l0.86-3.28l-2.49-3.56L803.23,216.42L803.23,216.42M812.03,213.15l-2.77,2.6l-0.1,2.99l0.67,0.87l3.73-3.18l-0.29-3.18L812.03,213.15L812.03,213.15M808.2,206.98l-4.88,5.59l0.86,1.35l2.39,0.29l4.49-3.47l3.16-0.58l2.87,3.37l2.2-0.77l0.86-3.28l4.11-0.1l4.02-4.82l-2.1-8l-0.96-4.24l2.1-1.73l-4.78-7.22l-1.24,0.1l-2.58,2.89v2.41l1.15,1.35l0.38,6.36l-2.96,3.66l-1.72-1.06l-1.34,2.99l-0.29,2.79l1.05,1.64l-0.67,1.25l-2.2-1.83h-1.53l-1.34,0.77L808.2,206.98L808.2,206.98M816.43,163.44l-1.53,1.35l0.77,2.89l1.34,1.35l-0.1,4.43l-1.72,0.67l-1.34,2.99l3.92,5.39l2.58-0.87l0.48-1.35l-2.77-2.5l1.72-2.22l1.82,0.29l1.43,1.54l0.1-3.18l3.92-3.18l2.2-0.58l-1.82-3.08l-0.86-1.35l-1.43,0.96l-1.24,1.54l-2.68-0.58l-2.77-1.83L816.43,163.44L816.43,163.44z",name:"Japan"},ru:{path:"M506.61,151.72l-1.5-0.15l-2.7,3.23v1.51l0.9,0.35l1.75,0.05l2.9-2.37l0.4-0.81L506.61,151.72L506.61,151.72M830.86,160.45l-2.68,3.76l0.19,1.83l1.34-0.58l3.15-3.95L830.86,160.45L830.86,160.45M834.4,154.96l-0.96,2.6l0.1,1.73l1.63-1.06l1.53-3.08V154L834.4,154.96L834.4,154.96M840.04,132.03l-1.24,1.54l0.1,2.41l1.15-0.1l1.91-3.37L840.04,132.03L840.04,132.03M837.75,137.91v4.24l1.34,0.48l0.96-1.54v-3.27L837.75,137.91L837.75,137.91M798.64,122.59l-0.09,6.17l7.74,11.95l2.77,10.4l4.88,9.25l1.91,0.67l1.63-1.35l0.76-2.22l-6.98-7.61l0.19-3.95l1.53-0.67l0.38-2.31l-13.67-19.36L798.64,122.59L798.64,122.59M852.57,103.42l-1.91,0.19l1.15,1.64l2.39,1.64l0.67-0.77L852.57,103.42L852.57,103.42M856.29,104.58l0.29,1.64l2.96,0.87l0.29-1.16L856.29,104.58L856.29,104.58M547.82,38.79l1.72,0.69l-1.21,2.08v2.95l-2.58,1.56H543l-1.55-1.91l0.17-2.08l1.21-1.56h2.41L547.82,38.79L547.82,38.79M554.36,36.88v2.08l1.72,1.39l2.41-0.17l2.07-1.91v-1.39h-1.89l-1.55,0.52l-1.21-1.39L554.36,36.88L554.36,36.88M564.18,37.06l1.21,2.6l2.41,0.17l1.72-0.69l-0.86-2.43l-2.24-0.52L564.18,37.06L564.18,37.06M573.99,33.59l-1.89-0.35l-1.72,1.74l0.86,1.56l0.52,2.43l2.24-1.73l0.52-1.91L573.99,33.59L573.99,33.59M584.49,51.98l-0.52,2.43l-3.96,3.47l-8.44,1.91l-6.89,11.45l-1.21,3.3l6.89,1.74l1.03-4.16l2.07-6.42l5.34-2.78l4.48-3.47l3.27-1.39h1.72v-4.68L584.49,51.98L584.49,51.98M562.28,77.31l4.65,0.52l1.55,5.38l3.96,4.16l-1.38,2.78h-2.41l-2.24-2.6l-4.99-0.17l-2.07-2.78v-1.91l3.1-0.87L562.28,77.31L562.28,77.31M634.95,18.15l-2.24-1.39h-2.58l-0.52,1.56l-2.75,1.56l-2.07,0.69l-0.34,2.08l4.82,0.35L634.95,18.15L634.95,18.15M640.28,18.67l-1.21,2.6l-2.41-0.17l-3.79,2.78l-1.03,3.47h2.41l1.38-2.26l3.27,2.43l3.1-1.39l2.24-1.91l-0.86-2.95l-1.21-2.08L640.28,18.67L640.28,18.67M645.28,20.58l1.21,4.86l1.89,4.51l2.07-3.64l3.96-0.87v-2.6l-2.58-1.91L645.28,20.58L645.28,20.58M739.76,12.8l2.69,2.26l1.91-0.79l0.56-3.17L741,8.39l-2.58,1.7l-6.28,0.57v2.83l-6.62,0.11v4.63l7.74,5.76l2.02-1.47l-0.45-4.07l4.94-1.24l-1.01-1.92l-1.79-1.81L739.76,12.8L739.76,12.8M746.94,10.09l1.79,3.39l6.96-0.79l1.91-2.49l-0.45-2.15l-1.91-0.79l-1.79,1.36l-5.16,1.13L746.94,10.09L746.94,10.09M746.49,23.31l-3.48-0.9L741,24.56l-0.9,2.94l4.71-0.45l3.59-1.81L746.49,23.31L746.49,23.31M836.68,3.76l-2.92-0.9L830.4,4.1l-1.68,2.49l2.13,2.83l5.61-2.49l1.12-1.24L836.68,3.76L836.68,3.76M817.97,72.93l1.76,6.08l3.52,1.01l3.52-5.57l-2.01-3.8l0.75-3.29h5.28l-1.26,2.53l0.5,9.12l-7.54,18.74l0.75,4.05l-0.25,6.84l14.07,20.51l2.76,0.76l0.25-16.71l2.76-2.53l-3.02-6.58l2.51-2.79l-5.53-7.34l-3.02,0.25l-1-12.15l7.79-2.03l0.5-3.55l4.02-1.01l2.26,2.03l2.76-11.14l4.77-8.1l3.77-2.03l3.27,0.25v-3.8l-5.28-1.01l-7.29-6.08l3.52-4.05l-3.02-6.84l2.51-2.53l3.02,4.05l7.54,2.79l8.29,0.76l1.01-3.54l-4.27-4.3l4.77-6.58l-10.81-3.8l-2.76,5.57l-3.52-4.56l-19.85-6.84l-18.85,3.29l-2.76,1.52v1.52l4.02,2.03l-0.5,4.81l-7.29-3.04l-16.08,6.33l-2.76-5.82h-11.06l-5.03,5.32l-17.84-4.05l-16.33,3.29l-2.01,5.06l2.51,0.76l-0.25,3.8l-15.83,1.77l1.01,5.06l-14.58-2.53l3.52-6.58l-14.83-0.76l1.26,6.84l-4.77,2.28l-4.02-3.8l-16.33,2.79l-6.28,5.82l-0.25,3.54l-4.02,0.25l-0.5-4.05l12.82-11.14v-7.6l-8.29-2.28l-10.81,3.54l-4.52-4.56h-2.01l-2.51,5.06l2.01,2.28l-14.33,7.85l-12.31,9.37l-7.54,10.38v4.3l8.04,3.29l-4.02,3.04l-8.54-3.04l-3.52,3.04l-5.28-6.08l-1.01,2.28l5.78,18.23l1.51,0.51l4.02-2.03l2.01,1.52v3.29l-3.77-1.52l-2.26,1.77l1.51,3.29l-1.26,8.61l-7.79,0.76l-0.5-2.79l4.52-2.79l1.01-7.6l-5.03-6.58l-1.76-11.39l-8.04-1.27l-0.75,4.05l1.51,2.03l-3.27,2.79l1.26,7.6l4.77,2.03l1.01,5.57l-4.78-3.04l-12.31-2.28l-1.51,4.05l-9.8,3.54l-1.51-2.53l-12.82,7.09l-0.25,4.81l-5.03,0.76l1.51-3.54v-3.54l-5.03-1.77l-3.27,1.27l2.76,5.32l2.01,3.54v2.79l-3.77-0.76l-0.75-0.76l-3.77,4.05l2.01,3.54l-8.54-0.25l2.76,3.55l-0.75,1.52h-4.52l-3.27-2.28l-0.75-6.33l-5.28-2.03v-2.53l11.06,2.28l6.03,0.51l2.51-3.8l-2.26-4.05l-16.08-6.33l-5.55,1.38l-1.9,1.63l0.59,3.75l2.36,0.41l-0.55,5.9l7.28,17.1l-5.26,8.34l-0.36,1.88l2.67,1.88l-2.41,1.59l-1.6,0.03l0.3,7.35l2.21,3.13l0.03,3.04l2.83,0.26l4.33,1.65l4.58,6.3l0.05,1.66l-1.49,2.55l3.42-0.19l3.33,0.96l4.5,6.37l11.08,1.01l-0.48,7.58l-3.82,3.27l0.79,1.28l-3.77,4.05l-1,3.8l2.26,3.29l7.29,2.53l3.02-1.77l19.35,7.34l0.75-2.03l-4.02-3.8v-4.81l-2.51-0.76l0.5-4.05l4.02-4.81l-7.21-5.4l0.5-7.51l7.71-5.07l9.05,0.51l1.51,2.79l9.3,0.51l6.79-3.8l-3.52-3.8l0.75-7.09l17.59-8.61l13.53,6.1l4.52-4.05l13.32,12.66l10.05-1.01l3.52,3.54l9.55,1.01l6.28-8.61l8.04,3.55l4.27,0.76l4.27-3.8l-3.77-2.53l3.27-5.06l9.3,3.04l2.01,4.05l4.02,0.25l2.51-1.77l6.79-0.25l0.75,1.77l7.79,0.51l5.28-5.57l10.81,1.27l3.27-1.27l1-6.08l-3.27-7.34l3.27-2.79h10.3l9.8,11.65l12.56,7.09h3.77l0.5-3.04l4.52-2.79l0.5,16.46l-4.02,0.25v4.05l2.26,2.79l-0.42,3.62l1.67,0.69l1.01-2.53l1.51,0.51l1,1.01l4.52-1.01l4.52-13.17l0.5-16.46l-5.78-13.17l-7.29-8.86l-3.52,0.51v2.79l-8.54-3.29l3.27-7.09l2.76-18.74l11.56-3.54l5.53-3.54h6.03L805.86,96l1.51,2.53l5.28-5.57l3.02,0.25l-0.5-3.29l-4.78-1.01l3.27-11.9L817.97,72.93L817.97,72.93z",name:"Russian Federation"},us:{path:"M69.17,53.35l3.46,6.47l2.22-0.5v-2.24L69.17,53.35L69.17,53.35M49.66,110.26l-0.17,3.01l2.16-0.5v-1.34L49.66,110.26L49.66,110.26M46.34,111.6l-4.32,2.18l0.67,2.34l1.66-1.34l3.32-1.51L46.34,111.6L46.34,111.6M28.39,114.44l-2.99-0.67l-0.5,1.34l0.33,2.51L28.39,114.44L28.39,114.44M22.07,114.28l-2.83-1.17l-1,1.84l1.83,1.84L22.07,114.28L22.07,114.28M12.27,111.6l-1.33-1.84l-1.33,0.5v2.51l1.5,1L12.27,111.6L12.27,111.6M1.47,99.71l1.66,1.17l-0.5,1.34H1.47V99.71L1.47,99.71M10,248.7l-0.14,2.33l2.04,1.37l1.22-1.09L10,248.7L10,248.7M15.29,252.13l-1.9,1.37l1.63,2.05l1.9-1.64L15.29,252.13L15.29,252.13M19.1,255.41l-1.63,2.19l0.54,1.37l2.31-1.09L19.1,255.41L19.1,255.41M21.81,259.65l-0.95,5.47l0.95,2.05l3.12-0.96l1.63-2.74l-3.4-3.15L21.81,259.65L21.81,259.65M271.05,281.06l-2.64-0.89l-2.12,1.33l1.06,1.24l3.61,0.53L271.05,281.06L271.05,281.06M93.11,44.89l-8.39,1.99l1.73,9.45l9.13,2.49l0.49,1.99L82.5,65.04l-7.65,12.68l2.71,13.43L82,94.13l3.46-3.23l0.99,1.99l-4.2,4.97l-16.29,7.46l-10.37,2.49l-0.25,3.73l23.94-6.96l9.87-2.74l9.13-11.19l10.12-6.71l-5.18,8.7l5.68,0.75l9.63-4.23l1.73,6.96l6.66,1.49l6.91,6.71l0.49,4.97l-0.99,1.24l1.23,4.72h1.73l0.25-7.96h1.97l0.49,19.64l4.94-4.23l-3.46-20.39h-5.18l-5.68-7.21l27.89-47.25l-27.64-21.63l-30.85,5.97l-1.23,9.45l6.66,3.98l-2.47,6.47L93.11,44.89L93.11,44.89M148.76,158.34l-1,4.02l-3.49-2.26h-1.74l-1,4.27l-12.21,27.36l3.24,23.84l3.99,2.01l0.75,6.53h8.22l7.97,6.02l15.69,1.51l1.74,8.03l2.49,1.76l3.49-3.51l2.74,1.25l2.49,11.54l4.23,2.76l3.49-6.53l10.71-7.78l6.97,3.26l5.98,0.5l0.25-3.76l12.45,0.25l2.49,2.76l0.5,6.27l-1.49,3.51l1.74,6.02h3.74l3.74-5.77l-1.49-2.76l-1.49-6.02l2.24-6.78l10.21-8.78l7.72-2.26l-1-7.28l10.71-11.55l10.71-1.76L272.8,199l10.46-6.02v-8.03l-1-0.5l-3.74,1.25l-0.5,4.92l-12.43,0.15l-9.74,6.47l-15.29,5l-2.44-2.99l6.94-10.5l-3.43-3.27l-2.33-4.44l-4.83-3.88l-5.25-0.44l-9.92-6.77L148.76,158.34L148.76,158.34z",name:"United States of America"},mu:{path:"M613.01,398.99l-1.52,1.99l0.3,2.15l3.2-2.61L613.01,398.99L613.01,398.99z",name:"Mauritius"},re:{path:"M607.38,402.37l-2.28,0.15l-0.15,1.99l1.52,0.31l2.28-1.07L607.38,402.37L607.38,402.37z",name:"Reunion"},mg:{path:"M592.3,372.92l-2.13,5.06l-3.65,6.44l-6.39,0.46l-2.74,3.22l0.46,9.82l-3.96,4.6l0.46,7.82l3.35,3.83l3.96-0.46l3.96-2.92l-0.91-4.6l9.13-15.8l-1.83-1.99l1.83-3.83l1.98,0.61l0.61-1.53l-1.83-7.82l-1.07-3.22L592.3,372.92L592.3,372.92z",name:"Madagascar"},km:{path:"M577.69,371.23l0.46,1.53l1.98,0.31l0.76-1.99L577.69,371.23L577.69,371.23M580.58,374.3l0.76,1.69h1.22l0.61-2.15L580.58,374.3L580.58,374.3z",name:"Comoros"},sc:{path:"M602.35,358.34l-0.61,1.23l1.67,1.38l1.22-1.38L602.35,358.34L602.35,358.34M610.88,349.14l-1.83,1.23l1.37,2.15h1.83L610.88,349.14L610.88,349.14M611.64,354.51l-1.22,1.38l0.91,1.38l1.67,0.31l0.15-2.92L611.64,354.51L611.64,354.51z",name:"Seychelles"},mv:{path:"M656.4,320.76l0.3,2.61l1.67,0.61l0.3-2.3L656.4,320.76L656.4,320.76M658.53,326.28l-0.15,3.22l1.22,0.61l1.07-2.15L658.53,326.28L658.53,326.28M658.84,332.57l-1.07,1.07l1.22,1.07l1.52-1.07L658.84,332.57L658.84,332.57z",name:"Maldives"},pt:{path:"M372.64,217.02l-1.36,1.37l2.44,1.37l0.27-1.91L372.64,217.02L372.64,217.02M379.97,216.2l-1.63,1.09l1.36,1.09l2.17-0.55L379.97,216.2L379.97,216.2M381.05,220.03l-0.81,2.19l1.08,1.37l1.36-1.09L381.05,220.03L381.05,220.03M387.56,224.4l-0.54,1.37l0.81,0.82l2.17-1.37L387.56,224.4L387.56,224.4M408.18,236.42l-1.08,1.37l1.08,1.37l1.63-0.82L408.18,236.42L408.18,236.42M430.93,211.24l-0.62,8.65l-1.77,1.6l0.18,0.98l1.24,2.05l-0.8,2.5l1.33,0.45l3.1-0.36l-0.18-2.5l2.03-11.59l-0.44-1.6L430.93,211.24L430.93,211.24z",name:"Portugal"},es:{path:"M415.62,253.73l-1.75,1.01l0.81,0.82L415.62,253.73L415.62,253.73M409.54,253.92l-2.17,0.55l1.08,1.64h1.63L409.54,253.92L409.54,253.92M404.38,252.28l-1.36,1.37l1.9,1.64l1.08-2.46L404.38,252.28L404.38,252.28M448.36,205h-12.74l-2.57-1.16l-1.24,0.09l-1.5,3.12l0.53,3.21l4.87,0.45l0.62,2.05l-2.12,11.95l0.09,2.14l3.45,1.87l3.98,0.27l7.96-1.96l3.89-4.9l0.09-4.99l6.9-6.24l0.35-2.76l-6.28-0.09L448.36,205L448.36,205M461.1,217.21l-1.59,0.54l0.35,1.43h2.3l0.97-1.07L461.1,217.21L461.1,217.21z",name:"Spain"},cv:{path:"M387.56,290.54l-1.9,1.09l1.36,1.09l1.63-0.82L387.56,290.54L387.56,290.54M392.23,292.74l-1.24,1.1l0.88,1.63l2.12-0.95L392.23,292.74L392.23,292.74M389.52,295.83l-1.59,0.95l1.71,2.29l1.35-0.71L389.52,295.83L389.52,295.83z",name:"Cape Verde"},pf:{path:"M27.25,402.68l-1.9-0.14l-0.14,1.78l1.49,0.96l1.77-1.09L27.25,402.68L27.25,402.68M33.77,404.6l-2.72,1.78l2.04,2.46l1.77-0.41l0.95-1.23L33.77,404.6L33.77,404.6z",name:"French Polynesia"},kn:{path:"M276.6,283.37l-1.5,0.62l0.53,1.33l1.76-1.15l-0.35-0.36L276.6,283.37L276.6,283.37z",name:"Saint Kitts and Nevis"},ag:{path:"M279.07,284.88l-0.88,1.87l1.06,1.42l1.32-1.15L279.07,284.88L279.07,284.88z",name:"Antigua and Barbuda"},dm:{path:"M282.07,290.03l-1.06,0.98l0.79,1.6l1.5-0.44L282.07,290.03L282.07,290.03z",name:"Dominica"},lc:{path:"M281.98,294.03l-0.71,1.51l1.15,1.24l1.5-0.8L281.98,294.03L281.98,294.03z",name:"Saint Lucia"},bb:{path:"M282.07,297.85l-1.23,0.89l0.97,1.78l1.59-0.89L282.07,297.85L282.07,297.85z",name:"Barbados"},gd:{path:"M280.57,301.31l-1.15,1.15l0.44,0.71h1.41l0.44-1.16L280.57,301.31L280.57,301.31z",name:"Grenada"},tt:{path:"M282.24,304.78l-1.06,0.98l-1.15,0.18v1.42l2.12,1.95l0.88-1.42l0.53-1.6l-0.18-1.33L282.24,304.78L282.24,304.78z",name:"Trinidad and Tobago"},do:{path:"M263.11,280.44l-5.29-3.46l-2.5-0.85l-0.84,6l0.88,1.69l1.15-1.33l3.35-0.89l2.91,0.62L263.11,280.44L263.11,280.44z",name:"Dominican Republic"},ht:{path:"M250.86,275.38l3.44,0.36l-0.41,4.22l-0.34,2.22l-4.01-0.22l-0.71,1.07l-1.23-0.09l-0.44-2.31l4.23-0.35l-0.26-2.4l-1.94-0.8L250.86,275.38L250.86,275.38z",name:"Haiti"},fk:{path:"M307.95,508.18l-2.63-0.29l-2.62,1.76l1.9,2.06L307.95,508.18L307.95,508.18M310.57,506.86l-0.87,2.79l-2.48,2.2l0.15,0.73l4.23-1.62l1.75-2.2L310.57,506.86L310.57,506.86z",name:"Falkland Islands"},is:{path:"M406.36,117.31l-1.96-1.11l-2.64,1.67l-2.27,2.1l0.06,1.17l2.94,0.37l-0.18,2.1l-1.04,1.05l0.25,0.68l2.94,0.19v3.4l4.23,0.74l2.51,1.42l2.82,0.12l4.84-2.41l3.74-4.94l0.06-3.34l-2.27-1.92l-1.9-1.61l-0.86,0.62l-1.29,1.67l-1.47-0.19l-1.47-1.61l-1.9,0.18l-2.76,2.29l-1.66,1.79l-0.92-0.8l-0.06-1.98l0.92-0.62L406.36,117.31L406.36,117.31z",name:"Iceland"},no:{path:"M488.26,53.96l-1.65-1.66l-3.66,1.78h-6.72L475.17,58l3.77,3.33l1.65-0.24l2.36-4.04l2,1.43l-1.42,2.85l-0.71,4.16l1.65,2.61l3.54-5.94l4.6-5.59l-1.77-1.54L488.26,53.96L488.26,53.96M490.26,46.83l-2.95,2.73l1.77,2.73h3.18l1.3,1.78l3.89,2.02l4.48-2.61l3.07-2.61l-1.06-2.14l-3.07-1.78l-2.24,2.02l-1.53-1.9l-1.18,0.12l-1.53,3.33l-2.24-2.26l-0.24-1.54L490.26,46.83L490.26,46.83M496.98,59.07l-2.36,2.14l-2,1.54l0.94,1.66l1.89,0.59l3.07-1.43l1.42-1.78l-1.3-2.14L496.98,59.07L496.98,59.07M515.46,102.14l2.02-1.48L517.3,99l-1.28-0.74l0.18-2.03h1.1v-1.11l-4.77-1.29l-7.15,0.74l-0.73,3.14L503,97.16l-1.1-1.85l-3.49,0.18L498.04,99l-1.65,0.74l-0.92-1.85l-7.34,5.91l1.47,1.66l-2.75,1.29l-6.24,12.38l-2.2,1.48l0.18,1.11l2.2,1.11l-0.55,2.4l-3.67-0.19l-1.1-1.29l-2.38,2.77l-1.47,1.11l-0.37,2.59l-1.28,0.74l-3.3,0.74l-1.65,5.18l1.1,8.5l1.28,3.88l1.47,1.48l3.3-0.18l4.77-4.62l1.83-3.14l0.55,4.62l3.12-5.54l0.18-15.53l2.54-1.6l0.76-8.57l7.7-11.09l3.67-1.29l1.65-2.03l5.5,1.29l2.75,1.66l0.92-4.62l4.59-2.77L515.46,102.14L515.46,102.14z",name:"Norway"},lk:{path:"M680.54,308.05l0.25,2.72l0.25,1.98l-1.47,0.25l0.74,4.45l2.21,1.24l3.43-1.98l-0.98-4.69l0.25-1.73l-3.19-2.96L680.54,308.05L680.54,308.05z",name:"Sri Lanka"},cu:{path:"M220.85,266.92v1.27l5.32,0.1l2.51-1.46l0.39,1.07l5.22,1.27l4.64,4.19l-1.06,1.46l0.19,1.66l3.87,0.97l3.87-1.75l1.74-1.75l-2.51-1.27l-12.95-7.6l-4.54-0.49L220.85,266.92L220.85,266.92z",name:"Cuba"},bs:{path:"M239.61,259.13l-1.26-0.39l-0.1,2.43l1.55,1.56l1.06-1.56L239.61,259.13L239.61,259.13M242.12,262.93l-1.74,0.97l1.64,2.34l0.87-1.17L242.12,262.93L242.12,262.93M247.73,264.68l-1.84-0.1l0.19,1.17l1.35,1.95l1.16-1.27L247.73,264.68L247.73,264.68M246.86,262.35l-3-1.27l-0.58-3.02l1.16-0.49l1.16,2.34l1.16,0.88L246.86,262.35L246.86,262.35M243.96,256.21l-1.55-0.39l-0.29-1.95l-1.64-0.58l1.06-1.07l1.93,0.68l1.45,0.88L243.96,256.21L243.96,256.21z",name:"Bahamas"},jm:{path:"M238.93,279.59l-3.48,0.88v0.97l2.03,1.17h2.13l1.35-1.56L238.93,279.59L238.93,279.59z",name:"Jamaica"},ec:{path:"M230.2,335.85l-4.73,2.94l-0.34,4.36l-0.95,1.43l2.98,2.86l-1.29,1.41l0.3,3.6l5.33,1.27l8.07-9.55l-0.02-3.33l-3.87-0.25L230.2,335.85L230.2,335.85z",name:"Ecuador"},ca:{path:"M203.73,35.89l0.22,4.02l-7.98,8.27l2,6.7l5.76-1.56l3.33-4.92l8.42-3.13l6.87-0.45l-5.32-5.81l-2.66,2.01l-2-0.67l-1.11-2.46l-2.44-2.46L203.73,35.89L203.73,35.89M214.15,24.05l-1.77,3.13l8.65,3.13l3.1-4.69l1.33,3.13h2.22l4.21-4.69l-5.1-1.34l-2-1.56l-2.66,2.68L214.15,24.05L214.15,24.05M229.23,30.31l-6.87,2.9v2.23l8.87,3.35l-2,2.23l1.33,2.9l5.54-2.46h4.66l2.22,3.57l3.77-3.8l-0.89-3.58l-3.1,1.12l-0.44-4.47l1.55-2.68h-1.55l-2.44,1.56l-1.11,0.89l0.67,3.13l-1.77,1.34l-2.66-0.22l-0.67-4.02L229.23,30.31L229.23,30.31M238.32,23.38l-0.67,2.23l4.21,2.01l3.1-1.79l-0.22-1.34L238.32,23.38L238.32,23.38M241.64,19.58l-3.1,1.12l0.22,1.56l6.87-0.45l-0.22-1.56L241.64,19.58L241.64,19.58M256.5,23.38l-0.44,1.56l-1.11,1.56v2.23l4.21-0.67l4.43,3.8h1.55v-3.8l-4.43-4.92L256.5,23.38L256.5,23.38M267.81,27.85l1.77,2.01l-1.55,2.68l1.11,2.9l4.88-2.68v-2.01l-2.88-3.35L267.81,27.85L267.81,27.85M274.24,22.71l0.22,3.57h5.99l1.55,1.34l-0.22,1.56l-5.32,0.67l3.77,5.14l5.1,0.89l7.09-3.13l-10.2-15.42l-3.1,2.01l0.22,2.68l-3.55-1.34L274.24,22.71L274.24,22.71M222.58,47.96l-8.42,2.23l-4.88,4.25l0.44,4.69l8.87,2.68l-2,4.47l-6.43-4.02l-1.77,3.35l4.21,2.9l-0.22,4.69l6.43,1.79l7.76-0.45l1.33-2.46l5.76,6.48l3.99-1.34l0.67-4.47l2.88,2.01l0.44-4.47l-3.55-2.23l0.22-14.07l-3.1-2.46L231.89,56L222.58,47.96L222.58,47.96M249.63,57.79l-2.88-1.34l-1.55,2.01l3.1,4.92l0.22,4.69l6.65-4.02v-5.81l2.44-2.46l-2.44-1.79h-3.99L249.63,57.79L249.63,57.79M263.82,55.78l-4.66,3.8l1.11,4.69h2.88l1.33-2.46l2,2.01l2-0.22l5.32-4.47L263.82,55.78L263.82,55.78M263.37,48.4l-1.11,2.23l4.88,1.79l1.33-2.01L263.37,48.4L263.37,48.4M260.49,39.91l-4.88,0.67l-2.88,2.68l5.32,0.22l-1.55,4.02l1.11,1.79l1.55-0.22l3.77-6.03L260.49,39.91L260.49,39.91M268.92,38.35l-2.66,0.89l0.44,3.57l4.43,2.9l0.22,2.23l-1.33,1.34l0.67,4.47l17.07,5.58l4.66,1.56l4.66-4.02l-5.54-4.47l-5.1,1.34l-7.09-0.67l-2.66-2.68l-0.67-7.37l-4.43-2.23L268.92,38.35L268.92,38.35M282.88,61.59L278,61.14l-5.76,2.23l-3.1,4.24l0.89,11.62l9.53,0.45l9.09,4.47l6.43,7.37l4.88-0.22l-1.33,6.92l-4.43,7.37l-4.88,2.23l-3.55-0.67l-1.77-1.56l-2.66,3.57l1.11,3.57l3.77,0.22l4.66-2.23l3.99,10.28l9.98,6.48l6.87-8.71l-5.76-9.38l3.33-3.8l4.66,7.82l8.42-7.37l-1.55-3.35l-5.76,1.79l-3.99-10.95l3.77-6.25l-7.54-8.04l-4.21,2.9l-3.99-8.71l-8.42,1.12l-2.22-10.5l-6.87,4.69l-0.67,5.81h-3.77l0.44-5.14L282.88,61.59L282.88,61.59M292.86,65.61l-1.77,1.79l1.55,2.46l7.32,0.89l-4.66-4.92L292.86,65.61L292.86,65.61M285.77,40.36v2.01l-4.88,1.12l1.33,2.23l5.54,2.23l6.21,0.67l4.43,3.13l4.43-2.46l-3.1-3.13h3.99l2.44-2.68l5.99-0.89v-1.34l-3.33-2.23l0.44-2.46l9.31,1.56l13.75-5.36l-5.1-1.56l1.33-1.79h10.64l1.77-1.79l-21.51-7.6l-5.1-1.79l-5.54,4.02l-6.21-5.14l-3.33-0.22l-0.67,4.25l-4.21-3.8l-4.88,1.56l0.89,2.46l7.32,1.56l-0.44,3.57l3.99,2.46l9.76-2.46l0.22,3.35l-7.98,3.8l-4.88-3.8l-4.43,0.45l4.43,6.26l-2.22,1.12l-3.33-2.9l-2.44,1.56l2.22,4.24h3.77l-0.89,4.02l-3.1-0.45l-3.99-4.25L285.77,40.36L285.77,40.36M266.01,101.85l-4.23,5.32l-0.26,5.86l3.7-2.13h4.49l3.17,2.93l2.91-2.4L266.01,101.85L266.01,101.85M317.52,171.05l-10.57,10.12l1.06,2.4l12.94,4.79l1.85-3.19l-1.06-5.32l-4.23,0.53l-2.38-2.66l3.96-3.99L317.52,171.05L317.52,171.05M158.22,48.66l1.99,3.01l1,4.02l4.98,1.25l3.49-3.76l2.99,1.51l8.47,0.75l5.98-2.51l1,8.28h3.49V57.7l3.49,0.25l8.72,10.29l5.73,3.51l-2.99,4.77l1.25,1.25L219,80.03l0.25,5.02l2.99,0.5l0.75-7.53l4.73-1.25l3.49,5.27l7.47,3.51l3.74,0.75l2.49-3.01l0.25-4.77l4.48-2.76l1.49,4.02l-3.99,7.03l0.5,3.51l2.24-3.51l4.48-4.02l0.25-5.27l-2.49-4.02l0.75-3.26l5.98-3.01l2.74,2.01l0.5,17.57l4.23-3.76l2.49,1.51l-3.49,6.02l4.48,1l6.48-10.04l5.48,5.77l-2.24,10.29l-5.48,3.01l-5.23-2.51l-9.46,2.01l1,3.26l-2.49,4.02l-7.72,1.76l-8.72,6.78l-7.72,10.29l-1,3.26l5.23,2.01l1.99,5.02l7.22,7.28l11.46,5.02l-2.49,11.54l-0.25,3.26l2.99,2.01l3.99-5.27l0.5-10.04l6.23-0.25l2.99-5.77l0.5-8.78l7.97-15.56l9.96,3.51l5.23,7.28l-2.24,7.28l3.99,2.26l9.71-6.53l2.74,17.82l8.97,10.79l0.25,5.52l-9.96,2.51l-4.73,5.02l-9.96-2.26l-4.98-0.25l-8.72,6.78l5.23-1.25l6.48-1.25l1.25,1.51l-1.74,5.52l0.25,5.02l2.99,2.01l2.99-0.75l1.5-2.26h1.99l-3.24,6.02l-6.23,0.25l-2.74,4.02h-3.49l-1-3.01l4.98-5.02l-5.98,2.01l-0.27-8.53l-1.72-1l-5.23,2.26l-0.5,4.27h-11.96l-10.21,7.03l-13.7,4.52l-1.49-2.01l6.9-10.3l-3.92-3.77l-2.49-4.78l-5.07-3.87l-5.44-0.45l-9.75-6.83l-70.71-11.62l-1.17-4.79l-6.48-6.02v-5.02l1-4.52l-0.5-2.51l-2.49-2.51l-0.5-4.02l6.48-4.52l-3.99-21.58l-5.48-0.25l-4.98-6.53L158.22,48.66L158.22,48.66M133.83,128.41l-1.7,3.26l0.59,2.31l1.11,0.69l-0.26,0.94l-1.19,0.34l0.34,3.43l1.28,1.29l1.02-1.11l-1.28-3.34l0.76-2.66l1.87-2.49l-1.36-2.31L133.83,128.41L133.83,128.41M139.45,147.95l-1.53,0.6l2.81,3.26l0.68,3.86l2.81,3l2.38-0.43v-3.94l-2.89-1.8L139.45,147.95L139.45,147.95z",name:"Canada"},gt:{path:"M194.88,291.52l5.93,4.34l5.98-7.43l-1.02-1.54l-2.04-0.07v-4.35l-1.53-0.93l-4.63,1.38l1.77,4.08L194.88,291.52L194.88,291.52z",name:"Guatemala"},hn:{path:"M207.55,288.78l9.24-0.35l2.74,3.26l-1.71-0.39l-3.29,0.14l-4.3,4.04l-1.84,4.09l-1.21-0.64l-0.01-4.48l-2.66-1.78L207.55,288.78L207.55,288.78z",name:"Honduras"},sv:{path:"M201.65,296.27l4.7,2.34l-0.07-3.71l-2.41-1.47L201.65,296.27L201.65,296.27z",name:"El Salvador"},ni:{path:"M217.74,292.11l2.19,0.44l0.07,4.49l-2.55,7.28l-6.87-0.68l-1.53-3.51l2.04-4.26l3.87-3.6L217.74,292.11L217.74,292.11z",name:"Nicaragua"},cr:{path:"M217.38,304.98l1.39,2.72l1.13,1.5l-1.52,4.51l-2.9-2.04l-4.74-4.34v-2.87L217.38,304.98L217.38,304.98z",name:"Costa Rica"},pa:{path:"M220.59,309.61l-1.46,4.56l4.82,1.25l2.99,0.59l0.51-3.53l3.21-1.62l2.85,1.47l1.12,1.79l1.36-0.16l1.07-3.25l-3.56-1.47l-2.7-1.47l-2.7,1.84l-3.21,1.62l-3.28-1.32L220.59,309.61L220.59,309.61z",name:"Panama"},co:{path:"M253.73,299.78l-2.06-0.21l-13.62,11.23l-1.44,3.95l-1.86,0.21l0.83,8.73l-4.75,11.65l5.16,4.37l6.61,0.42l4.54,6.66l6.6,0.21l-0.21,4.99H256l2.68-9.15l-2.48-3.12l0.62-5.82l5.16-0.42l-0.62-13.52l-11.56-3.74l-2.68-7.28L253.73,299.78L253.73,299.78z",name:"Colombia"},ve:{path:"M250.46,305.92l0.44,2.59l3.25,1.03l0.74-4.77l3.43-3.55l3.43,4.02l7.89,2.15l6.68-1.4l4.55,5.61l3.43,2.15l-3.76,5.73l1.26,4.34l-2.15,2.66l-2.23,1.87l-4.83-2.43l-1.11,1.12v3.46l3.53,1.68l-2.6,2.81l-2.6,2.81l-3.43-0.28l-3.45-3.79l-0.73-14.26l-11.78-4.02l-2.14-6.27L250.46,305.92L250.46,305.92z",name:"Venezuela"},gy:{path:"M285.05,314.13l7.22,6.54l-2.87,3.32l-0.23,1.97l3.77,3.89l-0.09,3.74l-6.56,2.5l-3.93-5.31l0.84-6.38l-1.68-4.75L285.05,314.13L285.05,314.13z",name:"Guyana"},sr:{path:"M293.13,321.14l2.04,1.87l3.16-1.96l2.88,0.09l-0.37,1.12l-1.21,2.52l-0.19,6.27l-5.75,2.34l0.28-4.02l-3.71-3.46l0.19-1.78L293.13,321.14L293.13,321.14z",name:"Suriname"},gf:{path:"M302.13,321.8l5.85,3.65l-3.06,6.08l-1.11,1.4l-3.25-1.87l0.09-6.55L302.13,321.8L302.13,321.8z",name:"French Guiana"},pe:{path:"M225.03,349.52l-1.94,1.96l0.13,3.13l16.94,30.88l17.59,11.34l2.72-4.56l0.65-10.03l-1.42-6.25l-4.79-8.08l-2.85,0.91l-1.29,1.43l-5.69-6.52l1.42-7.69l6.6-4.3l-0.52-4.04l-6.72-0.26l-3.49-5.86l-1.94-0.65l0.13,3.52l-8.66,10.29l-6.47-1.56L225.03,349.52L225.03,349.52z",name:"Peru"},bo:{path:"M258.71,372.79l8.23-3.59l2.72,0.26l1.81,7.56l12.54,4.17l2.07,6.39l5.17,0.65l2.2,5.47l-1.55,4.95l-8.41,0.65l-3.1,7.95l-6.6-0.13l-2.07-0.39l-3.81,3.7l-1.88-0.18l-6.47-14.99l1.79-2.68l0.63-10.6l-1.6-6.31L258.71,372.79L258.71,372.79z",name:"Bolivia"},py:{path:"M291.76,399.51l2.2,2.4l-0.26,5.08l6.34-0.39l4.79,6.13l-0.39,5.47l-3.1,4.69l-6.34,0.26l-0.26-2.61l1.81-4.3l-6.21-3.91h-5.17l-3.88-4.17l2.82-8.06L291.76,399.51L291.76,399.51z",name:"Paraguay"},uy:{path:"M300.36,431.93l-2.05,2.19l0.85,11.78l6.44,1.87l8.19-8.21L300.36,431.93L300.36,431.93z",name:"Uruguay"},ar:{path:"M305.47,418.2l1.94,1.82l-7.37,10.95l-2.59,2.87l0.9,12.51l5.69,6.91l-4.78,8.34l-3.62,1.56h-4.14l1.16,6.51l-6.47,2.22l1.55,5.47l-3.88,12.38l4.79,3.91l-2.59,6.38l-4.4,6.91l2.33,4.82l-5.69,0.91l-4.66-5.73l-0.78-17.85l-7.24-30.32l2.19-10.6l-4.66-13.55l3.1-17.59l2.85-3.39l-0.7-2.57l3.66-3.34l8.16,0.56l4.56,4.87l5.27,0.09l5.4,3.3l-1.59,3.72l0.38,3.76l7.65-0.36L305.47,418.2L305.47,418.2M288.92,518.79l0.26,5.73l4.4-0.39l3.75-2.48l-6.34-1.3L288.92,518.79L288.92,518.79z",name:"Argentina"},cl:{path:"M285.04,514.1l-4.27,9.38l7.37,0.78l0.13-6.25L285.04,514.1L285.04,514.1M283.59,512.63l-3.21,3.55l-0.39,4.17l-6.21-3.52l-6.6-9.51l-1.94-3.39l2.72-3.52l-0.26-4.43l-3.1-1.3l-2.46-1.82l0.52-2.48l3.23-0.91l0.65-14.33l-5.04-2.87l-3.29-74.59l0.85-1.48l6.44,14.85l2.06,0.04l0.67,2.37l-2.74,3.32l-3.15,17.87l4.48,13.76l-2.07,10.42l7.3,30.64l0.77,17.92l5.23,6.05L283.59,512.63L283.59,512.63M262.28,475.14l-1.29,1.95l0.65,3.39l1.29,0.13l0.65-4.3L262.28,475.14L262.28,475.14z",name:"Chile"},br:{path:"M314.24,438.85l6.25-12.02l0.23-10.1l11.66-7.52h6.53l5.13-8.69l0.93-16.68l-2.1-4.46l12.36-11.28l0.47-12.45l-16.79-8.22l-20.28-6.34l-9.56-0.94l2.57-5.4l-0.7-8.22l-2.09-0.69l-3.09,6.14l-1.62,2.03l-4.16-1.84l-13.99,4.93l-4.66-5.87l0.75-6.13l-4.4,4.48l-4.86-2.62l-0.49,0.69l0.01,2.13l4.19,2.25l-6.29,6.63l-3.97-0.04l-4.02-4.09l-4.55,0.14l-0.56,4.86l2.61,3.17l-3.08,9.87l-3.6,0.28l-5.73,3.62l-1.4,7.11l4.97,5.32l0.91-1.03l3.49-0.94l2.98,5.02l8.53-3.66l3.31,0.19l2.28,8.07l12.17,3.86l2.1,6.44l5.18,0.62l2.47,6.15l-1.67,5.47l2.18,2.86l-0.32,4.26l5.84-0.55l5.35,6.76l-0.42,4.75l3.17,2.68l-7.6,11.51L314.24,438.85L314.24,438.85z",name:"Brazil"},bz:{path:"M204.56,282.4l-0.05,3.65h0.84l2.86-5.34h-1.94L204.56,282.4L204.56,282.4z",name:"Belize"},mn:{path:"M673.8,170.17l5.82-7.72l6.99,3.23l4.75,1.27l5.82-5.34l-3.95-2.91l2.6-3.67l7.76,2.74l2.69,4.41l4.86,0.13l2.54-1.89l5.23-0.21l1.14,1.94l8.69,0.44l5.5-5.61l7.61,0.8l-0.44,7.64l3.33,0.76l4.09-1.86l4.33,2.14l-0.1,1.08l-3.14,0.09l-3.27,6.86l-2.54,0.25l-9.88,12.91l-10.09,4.45l-6.31,0.49l-5.24-3.38l-6.7,3.58l-6.6-2.05l-1.87-4.79l-12.5-0.88l-6.4-10.85l-3.11-0.2L673.8,170.17L673.8,170.17z",name:"Mongolia"},kp:{path:"M778.28,194.27l1.84,0.77l0.56,6.44l3.65,0.21l3.44-4.03l-1.19-1.06l0.14-4.32l3.16-3.82l-1.61-2.9l1.05-1.2l0.58-3l-1.83-0.83l-1.56,0.79l-1.93,5.86l-3.12-0.27l-3.61,4.26L778.28,194.27L778.28,194.27z",name:"North Korea"},kr:{path:"M788.34,198.2l6.18,5.04l1.05,4.88l-0.21,2.62l-3.02,3.4l-2.6,0.14l-2.95-6.37l-1.12-3.04l1.19-0.92l-0.28-1.27l-1.47-0.66L788.34,198.2L788.34,198.2z",name:"South Korea"},kz:{path:"M576.69,188.62l4.1-1.75l4.58-0.16l0.32,7h-2.68l-2.05,3.34l2.68,4.45l3.95,2.23l0.36,2.55l1.45-0.48l1.34-1.59l2.21,0.48l1.11,2.23h2.84v-2.86l-1.74-5.09l-0.79-4.13l5.05-2.23l6.79,1.11l4.26,4.29l9.63-0.95l5.37,7.63l6.31,0.32l1.74-2.86l2.21-0.48l0.32-3.18l3.31-0.16l1.74,2.07l1.74-4.13l14.99,2.07l2.52-3.34l-4.26-5.25l5.68-12.4l4.58,0.32l3.16-7.63l-6.31-0.64l-3.63-3.5l-10,1.16l-12.88-12.45l-4.54,4.03l-13.77-6.25l-16.89,8.27l-0.47,5.88l3.95,4.61l-7.7,4.35l-9.99-0.22l-2.09-3.07l-7.83-0.43l-7.42,4.77l-0.16,6.52L576.69,188.62L576.69,188.62z",name:"Kazakhstan"},tm:{path:"M593.85,207.59l-0.62,2.63h-4.15v3.56l4.46,2.94l-1.38,4.03v1.86l1.85,0.31l2.46-3.25l5.54-1.24l11.84,4.49l0.15,3.25l6.61,0.62l7.38-7.75l-0.92-2.48l-4.92-1.08l-13.84-8.99l-0.62-3.25h-5.23l-2.31,4.34h-2.31L593.85,207.59L593.85,207.59z",name:"Turkmenistan"},uz:{path:"M628.92,219.06l3.08,0.16v-5.27l-2.92-1.7l4.92-6.2h2l2,2.33l5.23-2.01l-7.23-2.48l-0.28-1.5l-1.72,0.42l-1.69,2.94l-7.29-0.24l-5.35-7.57l-9.4,0.93l-4.48-4.44l-6.2-1.05l-4.5,1.83l2.61,8.68l0.03,2.92l1.9,0.04l2.33-4.44l6.2,0.08l0.92,3.41l13.29,8.82l5.14,1.18L628.92,219.06L628.92,219.06z",name:"Uzbekistan"},tj:{path:"M630.19,211.84l4.11-5.1h1.55l0.54,1.14l-1.9,1.38v1.14l1.25,0.9l6.01,0.36l1.96-0.84l0.89,0.18l0.6,1.92l3.57,0.36l1.79,3.78l-0.54,1.14l-0.71,0.06l-0.71-1.44l-1.55-0.12l-2.68,0.36l-0.18,2.52l-2.68-0.18l0.12-3.18l-1.96-1.92l-2.98,2.46l0.06,1.62l-2.62,0.9h-1.55l0.12-5.58L630.19,211.84L630.19,211.84z",name:"Tajikistan"},kg:{path:"M636.81,199.21l-0.31,2.53l0.25,1.56l8.7,2.92l-7.64,3.08l-0.87-0.72l-1.65,1.06l0.08,0.58l0.88,0.4l5.36,0.14l2.72-0.82l3.49-4.4l4.37,0.76l5.27-7.3l-14.1-1.92l-1.95,4.73l-2.46-2.64L636.81,199.21L636.81,199.21z",name:"Kyrgyz Republic"},af:{path:"M614.12,227.05l1.59,12.46l3.96,0.87l0.37,2.24l-2.84,2.37l5.29,4.27l10.28-3.7l0.82-4.38l6.47-4.04l2.48-9.36l1.85-1.99l-1.92-3.34l6.26-3.87l-0.8-1.12l-2.89,0.18l-0.26,2.66l-3.88-0.04l-0.07-3.55l-1.25-1.49l-2.1,1.91l0.06,1.75l-3.17,1.2l-5.85-0.37l-7.6,7.96L614.12,227.05L614.12,227.05z",name:"Afghanistan"},pk:{path:"M623.13,249.84l2.6,3.86l-0.25,1.99l-3.46,1.37l-0.25,3.24h3.96l1.36-1.12h7.54l6.8,5.98l0.87-2.87h5.07l0.12-3.61l-5.19-4.98l1.11-2.74l5.32-0.37l7.17-14.95l-3.96-3.11l-1.48-5.23l9.64-0.87l-5.69-8.1l-3.03-0.82l-1.24,1.5l-0.93,0.07l-5.69,3.61l1.86,3.12l-2.1,2.24l-2.6,9.59l-6.43,4.11l-0.87,4.49L623.13,249.84L623.13,249.84z",name:"Pakistan"},in:{path:"M670.98,313.01l4.58-2.24l2.72-9.84l-0.12-12.08l15.58-16.82v-3.99l3.21-1.25l-0.12-4.61l-3.46-6.73l1.98-3.61l4.33,3.99l5.56,0.25v2.24l-1.73,1.87l0.37,1l2.97,0.12l0.62,3.36h0.87l2.23-3.99l1.11-10.46l3.71-2.62l0.12-3.61l-1.48-2.87l-2.35-0.12l-9.2,6.08l0.58,3.91l-6.46-0.02l-2.28-2.79l-1.24,0.16l0.42,3.88l-13.97-1l-8.66-3.86l-0.46-4.75l-5.77-3.58l-0.07-7.37l-3.96-4.53l-9.1,0.87l0.99,3.96l4.46,3.61l-7.71,15.78l-5.16,0.39l-0.85,1.9l5.08,4.7l-0.25,4.75l-5.19-0.08l-0.56,2.36l4.31-0.19l0.12,1.87l-3.09,1.62l1.98,3.74l3.83,1.25l2.35-1.74l1.11-3.11l1.36-0.62l1.61,1.62l-0.49,3.99l-1.11,1.87l0.25,3.24L670.98,313.01L670.98,313.01z",name:"India"},np:{path:"M671.19,242.56l0.46,4.27l8.08,3.66l12.95,0.96l-0.49-3.13l-8.65-2.38l-7.34-4.37L671.19,242.56L671.19,242.56z",name:"Nepal"},bt:{path:"M695.4,248.08l1.55,2.12l5.24,0.04l-0.53-2.9L695.4,248.08L695.4,248.08z",name:"Bhutan"},bd:{path:"M695.57,253.11l-1.31,2.37l3.4,6.46l0.1,5.04l0.62,1.35l3.99,0.07l2.26-2.17l1.64,0.99l0.33,3.07l1.31-0.82l0.08-3.92l-1.1-0.13l-0.69-3.33l-2.78-0.1l-0.69-1.85l1.7-2.27l0.03-1.12h-4.94L695.57,253.11L695.57,253.11z",name:"Bangladesh"},mm:{path:"M729.44,303.65l-2.77-4.44l2.01-2.82l-1.9-3.49l-1.79-0.34l-0.34-5.86l-2.68-5.19l-0.78,1.24l-1.79,3.04l-2.24,0.34l-1.12-1.47l-0.56-3.95l-1.68-3.16l-6.84-6.45l1.68-1.11l0.31-4.67l2.5-4.2l1.08-10.45l3.62-2.47l0.12-3.81l2.17,0.72l3.42,4.95l-2.54,5.44l1.71,4.27l4.23,1.66l0.77,4.65l5.68,0.88l-1.57,2.71l-7.16,2.82l-0.78,4.62l5.26,6.76l0.22,3.61l-1.23,1.24l0.11,1.13l3.92,5.75l0.11,5.97L729.44,303.65L729.44,303.65z",name:"Myanmar"},th:{path:"M730.03,270.47l3.24,4.17v5.07l1.12,0.56l5.15-2.48l1.01,0.34l6.15,7.1l-0.22,4.85l-2.01-0.34l-1.79-1.13l-1.34,0.11l-2.35,3.94l0.45,2.14l1.9,1.01l-0.11,2.37l-1.34,0.68l-4.59-3.16v-2.82l-1.9-0.11l-0.78,1.24l-0.4,12.62l2.97,5.42l5.26,5.07l-0.22,1.47l-2.8-0.11l-2.57-3.83h-2.69l-3.36-2.71l-1.01-2.82l1.45-2.37l0.5-2.14l1.58-2.8l-0.07-6.44l-3.86-5.58l-0.16-0.68l1.25-1.26l-0.29-4.43l-5.14-6.51l0.6-3.75L730.03,270.47L730.03,270.47z",name:"Thailand"},kh:{path:"M740.48,299.47l4.09,4.37l7.61-5.64l0.67-8.9l-3.93,2.71l-2.04-1.14l-2.77-0.37l-1.55-1.09l-0.75,0.04l-2.03,3.33l0.33,1.54l2.06,1.15l-0.25,3.13L740.48,299.47L740.48,299.47z",name:"Cambodia"},la:{path:"M735.47,262.93l-2.42,1.23l-2.01,5.86l3.36,4.28l-0.56,4.73l0.56,0.23l5.59-2.71l7.5,8.38l-0.18,5.28l1.63,0.88l4.03-3.27l-0.33-2.59l-11.63-11.05l0.11-1.69l1.45-1.01l-1.01-2.82l-4.81-0.79L735.47,262.93L735.47,262.93z",name:"Lao People's Democratic Republic"},vn:{path:"M745.06,304.45l1.19,1.87l0.22,2.14l3.13,0.34l3.8-5.07l3.58-1.01l1.9-5.18l-0.89-8.34l-3.69-5.07l-3.89-3.11l-4.95-8.5l3.55-5.94l-5.08-5.83l-4.07-0.18l-3.66,1.97l1.09,4.71l4.88,0.86l1.31,3.63l-1.72,1.12l0.11,0.9l11.45,11.2l0.45,3.29l-0.69,10.4L745.06,304.45L745.06,304.45z",name:"Vietnam"},ge:{path:"M555.46,204.16l3.27,4.27l4.08,1.88l2.51-0.01l4.31-1.17l1.08-1.69l-12.75-4.77L555.46,204.16L555.46,204.16z",name:"Georgia"},am:{path:"M569.72,209.89l4.8,6.26l-1.41,1.65l-3.4-0.59l-4.22-3.78l0.23-2.48L569.72,209.89L569.72,209.89z",name:"Armenia"},az:{path:"M571.41,207.72l-1.01,1.72l4.71,6.18l1.64-0.53l2.7,2.83l1.17-4.96l2.93,0.47l-0.12-1.42l-4.82-4.22l-0.92,2.48L571.41,207.72L571.41,207.72z",name:"Azerbaijan"},ir:{path:"M569.65,217.95l-1.22,1.27l0.12,2.01l1.52,2.13l5.39,5.9l-0.82,2.36h-0.94l-0.47,2.36l3.05,3.9l2.81,0.24l5.63,7.79l3.16,0.24l2.46,1.77l0.12,3.54l9.73,5.67h3.63l2.23-1.89l2.81-0.12l1.64,3.78l10.51,1.46l0.31-3.86l3.48-1.26l0.16-1.38l-2.77-3.78l-6.17-4.96l3.24-2.95l-0.23-1.3l-4.06-0.63l-1.72-13.7l-0.2-3.15l-11.01-4.21l-4.88,1.1l-2.73,3.35l-2.42-0.16l-0.7,0.59l-5.39-0.35l-6.8-4.96l-2.53-2.77l-1.16,0.28l-2.09,2.39L569.65,217.95L569.65,217.95z",name:"Iran"},tr:{path:"M558.7,209.19l-2.23,2.36l-8.2-0.24l-4.92-2.95l-4.8-0.12l-5.51,3.9l-5.16,0.24l-0.47,2.95h-5.86l-2.34,2.13v1.18l1.41,1.18v1.3l-0.59,1.54l0.59,1.3l1.88-0.94l1.88,2.01l-0.47,1.42l-0.7,0.95l1.05,1.18l5.16,1.06l3.63-1.54v-2.24l1.76,0.35l4.22,2.48l4.57-0.71l1.99-1.89l1.29,0.47v2.13h1.76l1.52-2.95l13.36-1.42l5.83-0.71l-1.54-2.02l-0.03-2.73l1.17-1.4l-4.26-3.42l0.23-2.95h-2.34L558.7,209.19L558.7,209.19M523.02,209.7l-0.16,3.55l3.1-0.95l1.42-0.95l-0.42-1.54l-1.47-1.17L523.02,209.7L523.02,209.7z",name:"Turkey"},om:{path:"M598.38,280.84l7.39-4.26l1.31-6.25l-1.62-0.93l0.67-6.7l1.41-0.82l1.51,2.37l8.99,4.7v2.61l-10.89,16.03l-5.01,0.17L598.38,280.84L598.38,280.84z",name:"Oman"},ae:{path:"M594.01,264.94l0.87,3.48l9.86,0.87l0.69-7.14l1.9-1.04l0.52-2.61l-3.11,0.87l-3.46,5.23L594.01,264.94L594.01,264.94z",name:"United Arab Emirates"},qa:{path:"M592.63,259.02l-0.52,4.01l1.54,1.17l1.4-0.13l0.52-5.05l-1.21-0.87L592.63,259.02L592.63,259.02z",name:"Qatar"},kw:{path:"M583.29,247.17l-2.25-1.22l-1.56,1.57l0.17,3.14l3.63,1.39L583.29,247.17L583.29,247.17z",name:"Kuwait"},sa:{path:"M584,253.24l7.01,9.77l2.26,1.8l1.01,4.38l10.79,0.85l1.22,0.64l-1.21,5.4l-7.09,4.18l-10.37,3.14l-5.53,5.4l-6.57-3.83l-3.98,3.48L566,279.4l-3.8-1.74l-1.38-2.09v-4.53l-13.83-16.72l-0.52-2.96h3.98l4.84-4.18l0.17-2.09l-1.38-1.39l2.77-2.26l5.88,0.35l10.03,8.36l5.92-0.27l0.38,1.46L584,253.24L584,253.24z",name:"Saudi Arabia"},sy:{path:"M546.67,229.13l-0.35,2.54l2.82,1.18l-0.12,7.04l2.82-0.06l2.82-2.13l1.06-0.18l6.4-5.09l1.29-7.39l-12.79,1.3l-1.35,2.96L546.67,229.13L546.67,229.13z",name:"Syrian Arab Republic"},iq:{path:"M564.31,225.03l-1.56,7.71l-6.46,5.38l0.41,2.54l6.31,0.43l10.05,8.18l5.62-0.16l0.15-1.89l2.06-2.21l2.88,1.63l0.38-0.36l-5.57-7.41l-2.64-0.16l-3.51-4.51l0.7-3.32l1.07-0.14l0.37-1.47l-4.78-5.03L564.31,225.03L564.31,225.03z",name:"Iraq"},jo:{path:"M548.9,240.78l-2.46,8.58l-0.11,1.31h3.87l4.33-3.82l0.11-1.45l-1.77-1.81l3.17-2.63l-0.46-2.44l-0.87,0.2l-2.64,1.89L548.9,240.78L548.9,240.78z",name:"Jordan"},lb:{path:"M546.2,232.44l0.06,1.95l-0.82,2.96l2.82,0.24l0.18-4.2L546.2,232.44L546.2,232.44z",name:"Lebanon"},il:{path:"M545.32,238.06l-1.58,5.03l2.05,6.03l2.35-8.81v-1.89L545.32,238.06L545.32,238.06z",name:"Israel"},cy:{path:"M543.21,229.84l1.23,0.89l-3.81,3.61l-1.82-0.06l-1.35-0.95l0.18-1.77l2.76-0.18L543.21,229.84L543.21,229.84z",name:"Cyprus"},gb:{path:"M446.12,149.08l-1.83,2.77l0.73,1.11h4.22v1.85l-1.1,1.48l0.73,3.88l2.38,4.62l1.83,4.25l2.93,1.11l1.28,2.22l-0.18,2.03l-1.83,1.11l-0.18,0.92l1.28,0.74l-1.1,1.48l-2.57,1.11l-4.95-0.55l-7.71,3.51l-2.57-1.29l7.34-4.25l-0.92-0.55l-3.85-0.37l2.38-3.51l0.37-2.96l3.12-0.37l-0.55-5.73l-3.67-0.18l-1.1-1.29l0.18-4.25l-2.2,0.18l2.2-7.39l4.04-2.96L446.12,149.08L446.12,149.08M438.42,161.47l-3.3,0.37l-0.18,2.96l2.2,1.48l2.38-0.55l0.92-1.66L438.42,161.47L438.42,161.47z",name:"United Kingdom"},ie:{path:"M439.51,166.55l-0.91,6l-8.07,2.96h-2.57l-1.83-1.29v-1.11l4.04-2.59l-1.1-2.22l0.18-3.14l3.49,0.18l1.6-3.76l-0.21,3.34l2.71,2.15L439.51,166.55L439.51,166.55z",name:"Ireland"},se:{path:"M497.72,104.58l1.96,1.81h3.67l2.02,3.88l0.55,6.65l-4.95,3.51v3.51l-3.49,4.81l-2.02,0.18l-2.75,4.62l0.18,4.44l4.77,3.51l-0.37,2.03l-1.83,2.77l-2.75,2.4l0.18,7.95l-4.22,1.48l-1.47,3.14h-2.02l-1.1-5.54l-4.59-7.04l3.77-6.31l0.26-15.59l2.6-1.43l0.63-8.92l7.41-10.61L497.72,104.58L497.72,104.58M498.49,150.17l-2.11,1.67l1.06,2.45l1.87-1.82L498.49,150.17L498.49,150.17z",name:"Sweden"},fi:{path:"M506.79,116.94l2.07,0.91l1.28,2.4l-1.28,1.66l-6.42,7.02l-1.1,3.7l1.47,5.36l4.95,3.7l6.6-3.14l5.32-0.74l4.95-7.95l-3.67-8.69l-3.49-8.32l0.55-5.36l-2.2-0.37l-0.57-3.91l-2.96-4.83l-3.28,2.27l-1.29,5.27l-3.48-2.09l-4.84-1.18l-1.08,1.26l1.86,1.68l3.39-0.06l2.73,4.41L506.79,116.94L506.79,116.94z",name:"Finland"},lv:{path:"M518.07,151.37l-6.85-1.11l0.15,3.83l6.35,3.88l2.6-0.76l-0.15-2.92L518.07,151.37L518.07,151.37z",name:"Latvia"},lt:{path:"M510.81,154.7l-2.15-0.05l-2.95,2.82h-2.5l0.15,3.53l-1.5,2.77l5.4,0.05l1.55-0.2l1.55,1.87l3.55-0.15l3.4-4.33l-0.2-2.57L510.81,154.7L510.81,154.7z",name:"Lithuania"},by:{path:"M510.66,166.29l1.5,2.47l-0.6,1.97l0.1,1.56l0.55,1.87l3.1-1.76l3.85,0.1l2.7,1.11h6.85l2-4.79l1.2-1.81v-1.21l-4.3-6.05l-3.8-1.51l-3.1-0.35l-2.7,0.86l0.1,2.72l-3.75,4.74L510.66,166.29L510.66,166.29z",name:"Belarus"},pl:{path:"M511.46,174.76l0.85,1.56l0.2,1.66l-0.7,1.61l-1.6,3.08l-1.35,0.61l-1.75-0.76l-1.05,0.05l-2.55,0.96l-2.9-0.86l-4.7-3.33l-4.6-2.47l-1.85-2.82l-0.35-6.65l3.6-3.13l4.7-1.56l1.75-0.2l-0.7,1.41l0.45,0.55l7.91,0.15l1.7-0.05l2.8,4.29l-0.7,1.76l0.3,2.07L511.46,174.76L511.46,174.76z",name:"Poland"},it:{path:"M477.56,213.38l-2.65,1.34l0.35,5.17l2.12,0.36l1.59-1.52v-4.9L477.56,213.38L477.56,213.38M472.27,196.98l-0.62,1.57l0.17,1.71l2.39,2.79l3.76-0.13l8.3,9.64l5.18,1.5l3.06,2.89l0.73,6.59l1.64-0.96l1.42-3.59l-0.35-2.58l2.43-0.22l0.35-1.46l-6.85-3.28l-6.5-6.39l-2.59-3.82l-0.63-3.63l3.31-0.79l-0.85-2.39l-2.03-1.71l-1.75-0.08l-2.44,0.67l-2.3,3.22l-1.39,0.92l-2.15-1.32L472.27,196.98L472.27,196.98M492.44,223.02l-1.45-0.78l-4.95,0.78l0.17,1.34l4.45,2.24l0.67,0.73l1.17,0.17L492.44,223.02L492.44,223.02z",name:"Italy"},fr:{path:"M477.83,206.96l-1.95,1.96l-0.18,1.78l1.59,0.98l0.62-0.09l0.35-2.59L477.83,206.96L477.83,206.96M460.4,178.7l-2.21,0.54l-4.42,4.81l-1.33,0.09l-1.77-1.25l-1.15,0.27l-0.88,2.76l-6.46,0.18l0.18,1.43l4.42,2.94l5.13,4.1l-0.09,4.9l-2.74,4.81l5.93,2.85l6.02,0.18l1.86-2.14l3.8,0.09l1.06,0.98l3.8-0.27l1.95-2.5l-2.48-2.94l-0.18-1.87l0.53-2.05l-1.24-1.78l-2.12,0.62l-0.27-1.6l4.69-5.17v-3.12l-3.1-1.78l-1.59-0.27L460.4,178.7L460.4,178.7z",name:"France"},nl:{path:"M470.09,168.27l-4.53,2.23l0.96,0.87l0.1,2.23l-0.96-0.19l-1.06-1.65l-2.53,4.01l3.89,0.81l1.45,1.53l0.77,0.02l0.51-3.46l2.45-1.03L470.09,168.27L470.09,168.27z",name:"Netherlands"},be:{path:"M461.61,176.52l-0.64,1.6l6.88,4.54l1.98,0.47l0.07-2.15l-1.73-1.94h-1.06l-1.45-1.65L461.61,176.52L461.61,176.52z",name:"Belgium"},de:{path:"M471.14,167.88l3.57-0.58v-2.52l2.99-0.49l1.64,1.65l1.73,0.19l2.7-1.17l2.41,0.68l2.12,1.84l0.29,6.89l2.12,2.82l-2.79,0.39l-4.63,2.91l0.39,0.97l4.14,3.88l-0.29,1.94l-3.85,1.94l-3.57,0.1l-0.87,1.84h-1.83l-0.87-1.94l-3.18-0.78l-0.1-3.2l-2.7-1.84l0.29-2.33l-1.83-2.52l0.48-3.3l2.5-1.17L471.14,167.88L471.14,167.88z",name:"Germany"},dk:{path:"M476.77,151.5l-4.15,4.59l-0.15,2.99l1.89,4.93l2.96-0.56l-0.37-4.03l2.04-2.28l-0.04-1.79l-1.44-3.73L476.77,151.5L476.77,151.5M481.44,159.64l-0.93-0.04l-1.22,1.12l0.15,1.75l2.89,0.08l0.15-1.98L481.44,159.64L481.44,159.64z",name:"Denmark"},ch:{path:"M472.91,189.38l-4.36,4.64l0.09,0.47l1.79-0.56l1.61,2.24l2.72-0.96l1.88,1.46l0.77-0.44l2.32-3.64l-0.59-0.56l-2.29-0.06l-1.11-2.27L472.91,189.38L472.91,189.38z",name:"Switzerland"},cz:{path:"M488.43,184.87h2.97h1.46l2.37,1.69l4.39-3.65l-4.26-3.04l-4.22-2.04l-2.89,0.52l-3.92,2.52L488.43,184.87L488.43,184.87z",name:"Czech Republic"},sk:{path:"M495.84,187.13l0.69,0.61l0.09,1.04l7.63-0.17l5.64-2.43l-0.09-2.47l-1.08,0.48l-1.55-0.83l-0.95-0.04l-2.5,1l-3.4-0.82L495.84,187.13L495.84,187.13z",name:"Slovakia"},at:{path:"M480.63,190.12l-0.65,1.35l0.56,0.96l2.33-0.48h1.98l2.15,1.82l4.57-0.83l3.36-2l0.86-1.35l-0.13-1.74l-3.02-2.26l-4.05,0.04l-0.34,2.3l-4.26,2.08L480.63,190.12L480.63,190.12z",name:"Austria"},hu:{path:"M496.74,189.6l-1.16,1.82l0.09,2.78l1.85,0.95l5.69,0.17l7.93-6.68l0.04-1.48l-0.86-0.43l-5.73,2.6L496.74,189.6L496.74,189.6z",name:"Hungary"},si:{path:"M494.8,191.99l-2.54,1.52l-4.74,1.04l0.95,2.74l3.32,0.04l3.06-2.56L494.8,191.99L494.8,191.99z",name:"Slovenia"},hr:{path:"M495.62,195.16l-3.53,2.91h-3.58l-0.43,2.52l1.64,0.43l0.82-1.22l1.29,1.13l1.03,3.6l7.07,3.3l0.7-0.8l-7.17-7.4l0.73-1.35l6.81-0.26l0.69-2.17l-4.44,0.13L495.62,195.16L495.62,195.16z",name:"Croatia"},ba:{path:"M494.8,198.94l-0.37,0.61l6.71,6.92l2.46-3.62l-0.09-1.43l-2.15-2.61L494.8,198.94L494.8,198.94z",name:"Bosnia and Herzegovina"},mt:{path:"M492.61,230.47l-1.67,0.34l0.06,1.85l1.5,0.5l0.67-0.56L492.61,230.47L492.61,230.47z",name:"Malta"},ua:{path:"M515.57,173.15l-2.9,1.63l0.72,3.08l-2.68,5.65l0.02,2.49l1.26,0.8l8.08,0.4l2.26-1.87l2.42,0.81l3.47,4.63l-2.54,4.56l3.02,0.88l3.95-4.55l2.26,0.41l2.1,1.46l-1.85,2.44l2.5,3.9h2.66l1.37-2.6l2.82-0.57l0.08-2.11l-5.24-0.81l0.16-2.27h5.08l5.48-4.39l2.42-2.11l0.4-6.66l-10.8-0.97l-4.43-6.25l-3.06-1.05l-3.71,0.16l-1.67,4.13l-7.6,0.1l-2.47-1.14L515.57,173.15L515.57,173.15z",name:"Ukraine"},md:{path:"M520.75,187.71l3.1,4.77l-0.26,2.7l1.11,0.05l2.63-4.45l-3.16-3.92l-1.79-0.74L520.75,187.71L520.75,187.71z",name:"Moldova"},ro:{path:"M512.18,187.6l-0.26,1.48l-5.79,4.82l4.84,7.1l3.1,2.17h5.58l1.84-1.54l2.47-0.32l1.84,1.11l3.26-3.71l-0.63-1.86l-3.31-0.85l-2.26-0.11l0.11-3.18l-3-4.72L512.18,187.6L512.18,187.6z",name:"Romania"},rs:{path:"M505.55,194.54l-2.05,1.54h-1l-0.68,2.12l2.42,2.81l0.16,2.23l-3,4.24l0.42,1.27l1.74,0.32l1.37-1.86l0.74-0.05l1.26,1.22l3.84-1.17l-0.32-5.46L505.55,194.54L505.55,194.54z",name:"Serbia"},bg:{path:"M511.44,202.39l0.16,4.98l1.68,3.5l6.31,0.11l2.84-2.01l2.79-1.11l-0.68-3.18l0.63-1.7l-1.42-0.74l-1.95,0.16l-1.53,1.54l-6.42,0.05L511.44,202.39L511.44,202.39z",name:"Bulgaria"},al:{path:"M504.02,209.76v4.61l1.32,2.49l0.95-0.11l1.63-2.97l-0.95-1.33l-0.37-3.29l-1.26-1.17L504.02,209.76L504.02,209.76z",name:"Albania"},mk:{path:"M510.92,208.01l-3.37,1.11l0.16,2.86l0.79,1.01l4-1.86L510.92,208.01L510.92,208.01z",name:"Macedonia"},gr:{path:"M506.71,217.6l-0.11,1.33l4.63,2.33l2.21,0.85l-1.16,1.22l-2.58,0.26l-0.37,1.17l0.89,2.01l2.89,1.54l1.26,0.11l0.16-3.45l1.89-2.28l-5.16-6.1l0.68-2.07l1.21-0.05l1.84,1.48l1.16-0.58l0.37-2.07l5.42,0.05l0.21-3.18l-2.26,1.59l-6.63-0.16l-4.31,2.23L506.71,217.6L506.71,217.6M516.76,230.59l1.63,0.05l0.68,1.01h2.37l1.58-0.58l0.53,0.64l-1.05,1.38l-4.63,0.16l-0.84-1.11l-0.89-0.53L516.76,230.59L516.76,230.59z",name:"Greece"}}}),function(){"use strict";var e=this,t=e.Chart,a=function(e){this.canvas=e.canvas,this.ctx=e;var t=function(e,t){return e["offset"+t]?e["offset"+t]:document.defaultView.getComputedStyle(e).getPropertyValue(t)},i=this.width=t(e.canvas,"Width"),n=this.height=t(e.canvas,"Height");e.canvas.width=i,e.canvas.height=n;i=this.width=e.canvas.width,n=this.height=e.canvas.height;return this.aspectRatio=this.width/this.height,d.retinaScale(this),this};a.defaults={global:{animation:!0,animationSteps:60,animationEasing:"easeOutQuart",showScale:!0,scaleOverride:!1,scaleSteps:null,scaleStepWidth:null,scaleStartValue:null,scaleLineColor:"rgba(0,0,0,.1)",scaleLineWidth:1,scaleShowLabels:!0,scaleLabel:"<%=value%>",scaleIntegersOnly:!0,scaleBeginAtZero:!1,scaleFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",scaleFontSize:12,scaleFontStyle:"normal",scaleFontColor:"#666",responsive:!1,maintainAspectRatio:!0,showTooltips:!0,customTooltips:!1,tooltipEvents:["mousemove","touchstart","touchmove","mouseout"],tooltipFillColor:"rgba(0,0,0,0.8)",tooltipFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",tooltipFontSize:14,tooltipFontStyle:"normal",tooltipFontColor:"#fff",tooltipTitleFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",tooltipTitleFontSize:14,tooltipTitleFontStyle:"bold",tooltipTitleFontColor:"#fff",tooltipYPadding:6,tooltipXPadding:6,tooltipCaretSize:8,tooltipCornerRadius:6,tooltipXOffset:10,tooltipTemplate:"<%if (label){%><%=label%>: <%}%><%= value %>",multiTooltipTemplate:"<%= value %>",multiTooltipKeyBackground:"#fff",onAnimationProgress:function(){},onAnimationComplete:function(){}}},a.types={};var i,n,d=a.helpers={},c=d.each=function(e,t,i){var n=Array.prototype.slice.call(arguments,3);if(e)if(e.length===+e.length){var s;for(s=0;s<e.length;s++)t.apply(i,[e[s],s].concat(n))}else for(var a in e)t.apply(i,[e[a],a].concat(n))},r=d.clone=function(i){var n={};return c(i,function(e,t){i.hasOwnProperty(t)&&(n[t]=e)}),n},o=d.extend=function(n){return c(Array.prototype.slice.call(arguments,1),function(i){c(i,function(e,t){i.hasOwnProperty(t)&&(n[t]=e)})}),n},l=d.merge=function(){var e=Array.prototype.slice.call(arguments,0);return e.unshift({}),o.apply(null,e)},p=d.indexOf=function(e,t){if(Array.prototype.indexOf)return e.indexOf(t);for(var i=0;i<e.length;i++)if(e[i]===t)return i;return-1},s=(d.where=function(e,t){var i=[];return d.each(e,function(e){t(e)&&i.push(e)}),i},d.findNextWhere=function(e,t,i){i||(i=-1);for(var n=i+1;n<e.length;n++){var s=e[n];if(t(s))return s}},d.findPreviousWhere=function(e,t,i){i||(i=e.length);for(var n=i-1;0<=n;n--){var s=e[n];if(t(s))return s}},d.inherits=function(e){var t=this,i=e&&e.hasOwnProperty("constructor")?e.constructor:function(){return t.apply(this,arguments)},n=function(){this.constructor=i};return n.prototype=t.prototype,i.prototype=new n,i.extend=s,e&&o(i.prototype,e),i.__super__=t.prototype,i}),h=d.noop=function(){},u=d.uid=(i=0,function(){return"chart-"+i++}),f=d.warn=function(e){window.console&&"function"==typeof window.console.warn&&console.warn(e)},m=d.amd="function"==typeof define&&define.amd,g=d.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},v=d.max=function(e){return Math.max.apply(Math,e)},_=d.min=function(e){return Math.min.apply(Math,e)},y=(d.cap=function(e,t,i){if(g(t)){if(t<e)return t}else if(g(i)&&e<i)return i;return e},d.getDecimalPlaces=function(e){return e%1!=0&&g(e)?e.toString().split(".")[1].length:0}),b=d.radians=function(e){return e*(Math.PI/180)},x=(d.getAngleFromPoint=function(e,t){var i=t.x-e.x,n=t.y-e.y,s=Math.sqrt(i*i+n*n),a=2*Math.PI+Math.atan2(n,i);return i<0&&n<0&&(a+=2*Math.PI),{angle:a,distance:s}},d.aliasPixel=function(e){return e%2==0?0:.5}),w=(d.splineCurve=function(e,t,i,n){var s=Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)),a=Math.sqrt(Math.pow(i.x-t.x,2)+Math.pow(i.y-t.y,2)),r=n*s/(s+a),o=n*a/(s+a);return{inner:{x:t.x-r*(i.x-e.x),y:t.y-r*(i.y-e.y)},outer:{x:t.x+o*(i.x-e.x),y:t.y+o*(i.y-e.y)}}},d.calculateOrderOfMagnitude=function(e){return Math.floor(Math.log(e)/Math.LN10)}),M=(d.calculateScaleRange=function(e,t,i,n,s){var a=Math.floor(t/(1.5*i)),r=a<=2,o=v(e),l=_(e);o===l&&(o+=.5,.5<=l&&!n?l-=.5:o+=.5);for(var h=Math.abs(o-l),u=w(h),d=Math.ceil(o/(1*Math.pow(10,u)))*Math.pow(10,u),c=n?0:Math.floor(l/(1*Math.pow(10,u)))*Math.pow(10,u),p=d-c,f=Math.pow(10,u),m=Math.round(p/f);(a<m||2*m<a)&&!r;)if(a<m)f*=2,(m=Math.round(p/f))%1!=0&&(r=!0);else if(s&&0<=u){if(f/2%1!=0)break;f/=2,m=Math.round(p/f)}else f/=2,m=Math.round(p/f);return r&&(f=p/(m=2)),{steps:m,stepValue:f,min:c,max:c+m*f}},d.template=function(e,t){if(e instanceof Function)return e(t);var i,n,s,a={};return n=t,s=/\W/.test(i=e)?new Function("obj","var p=[],print=function(){p.push.apply(p,arguments);};with(obj){p.push('"+i.replace(/[\r\t\n]/g," ").split("<%").join("\t").replace(/((^|%>)[^\t]*)'/g,"$1\r").replace(/\t=(.*?)%>/g,"',$1,'").split("\t").join("');").split("%>").join("p.push('").split("\r").join("\\'")+"');}return p.join('');"):a[i]=a[i],n?s(n):s}),j=(d.generateLabels=function(i,e,n,s){var a=new Array(e);return labelTemplateString&&c(a,function(e,t){a[t]=M(i,{value:n+s*(t+1)})}),a},d.easingEffects={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return-1*e*(e-2)},easeInOutQuad:function(e){return(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1)},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return 1*((e=e/1-1)*e*e+1)},easeInOutCubic:function(e){return(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return-1*((e=e/1-1)*e*e*e-1)},easeInOutQuart:function(e){return(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},easeInQuint:function(e){return 1*(e/=1)*e*e*e*e},easeOutQuint:function(e){return 1*((e=e/1-1)*e*e*e*e+1)},easeInOutQuint:function(e){return(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},easeInSine:function(e){return-1*Math.cos(e/1*(Math.PI/2))+1},easeOutSine:function(e){return 1*Math.sin(e/1*(Math.PI/2))},easeInOutSine:function(e){return-.5*(Math.cos(Math.PI*e/1)-1)},easeInExpo:function(e){return 0===e?1:1*Math.pow(2,10*(e/1-1))},easeOutExpo:function(e){return 1===e?1:1*(1-Math.pow(2,-10*e/1))},easeInOutExpo:function(e){return 0===e?0:1===e?1:(e/=.5)<1?.5*Math.pow(2,10*(e-1)):.5*(2-Math.pow(2,-10*--e))},easeInCirc:function(e){return 1<=e?e:-1*(Math.sqrt(1-(e/=1)*e)-1)},easeOutCirc:function(e){return 1*Math.sqrt(1-(e=e/1-1)*e)},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function(e){var t=1.70158,i=0,n=1;return 0===e?0:1==(e/=1)?1:(i||(i=.3),n<Math.abs(1)?(n=1,t=i/4):t=i/(2*Math.PI)*Math.asin(1/n),-n*Math.pow(2,10*(e-=1))*Math.sin(2*(1*e-t)*Math.PI/i))},easeOutElastic:function(e){var t=1.70158,i=0,n=1;return 0===e?0:1==(e/=1)?1:(i||(i=.3),n<Math.abs(1)?(n=1,t=i/4):t=i/(2*Math.PI)*Math.asin(1/n),n*Math.pow(2,-10*e)*Math.sin(2*(1*e-t)*Math.PI/i)+1)},easeInOutElastic:function(e){var t=1.70158,i=0,n=1;return 0===e?0:2==(e/=.5)?1:(i||(i=.3*1.5),n<Math.abs(1)?(n=1,t=i/4):t=i/(2*Math.PI)*Math.asin(1/n),e<1?-.5*n*Math.pow(2,10*(e-=1))*Math.sin(2*(1*e-t)*Math.PI/i):n*Math.pow(2,-10*(e-=1))*Math.sin(2*(1*e-t)*Math.PI/i)*.5+1)},easeInBack:function(e){return 1*(e/=1)*e*(2.70158*e-1.70158)},easeOutBack:function(e){return 1*((e=e/1-1)*e*(2.70158*e+1.70158)+1)},easeInOutBack:function(e){var t=1.70158;return(e/=.5)<1?.5*e*e*((1+(t*=1.525))*e-t):.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:function(e){return 1-j.easeOutBounce(1-e)},easeOutBounce:function(e){return(e/=1)<1/2.75?7.5625*e*e:e<2/2.75?1*(7.5625*(e-=1.5/2.75)*e+.75):e<2.5/2.75?1*(7.5625*(e-=2.25/2.75)*e+.9375):1*(7.5625*(e-=2.625/2.75)*e+.984375)},easeInOutBounce:function(e){return e<.5?.5*j.easeInBounce(2*e):.5*j.easeOutBounce(2*e-1)+.5}}),k=d.requestAnimFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)},L=d.cancelAnimFrame=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||window.msCancelAnimationFrame||function(e){return window.clearTimeout(e,1e3/60)},S=(d.animationLoop=function(i,n,e,s,a,r){var o=0,l=j[e]||j.linear,h=function(){var e=++o/n,t=l(e);i.call(r,t,e,o),s.call(r,t,e),o<n?r.animationFrame=k(h):a.apply(r)};k(h)},d.getRelativePosition=function(e){var t,i,n=e.originalEvent||e,s=(e.currentTarget||e.srcElement).getBoundingClientRect();return n.touches?(t=n.touches[0].clientX-s.left,i=n.touches[0].clientY-s.top):(t=n.clientX-s.left,i=n.clientY-s.top),{x:t,y:i}},d.addEvent=function(e,t,i){e.addEventListener?e.addEventListener(t,i):e.attachEvent?e.attachEvent("on"+t,i):e["on"+t]=i}),T=d.removeEvent=function(e,t,i){e.removeEventListener?e.removeEventListener(t,i,!1):e.detachEvent?e.detachEvent("on"+t,i):e["on"+t]=h},D=(d.bindEvents=function(t,e,i){t.events||(t.events={}),c(e,function(e){t.events[e]=function(){i.apply(t,arguments)},S(t.chart.canvas,e,t.events[e])})},d.unbindEvents=function(i,e){c(e,function(e,t){T(i.chart.canvas,t,e)})}),C=d.getMaximumWidth=function(e){return e.parentNode.clientWidth},Y=d.getMaximumHeight=function(e){return e.parentNode.clientHeight},E=(d.getMaximumSize=d.getMaximumWidth,d.retinaScale=function(e){var t=e.ctx,i=e.canvas.width,n=e.canvas.height;window.devicePixelRatio&&(t.canvas.style.width=i+"px",t.canvas.style.height=n+"px",t.canvas.height=n*window.devicePixelRatio,t.canvas.width=i*window.devicePixelRatio,t.scale(window.devicePixelRatio,window.devicePixelRatio))}),H=d.clear=function(e){e.ctx.clearRect(0,0,e.width,e.height)},A=d.fontString=function(e,t,i){return t+" "+e+"px "+i},I=d.longestText=function(i,e,t){i.font=e;var n=0;return c(t,function(e){var t=i.measureText(e).width;n=n<t?t:n}),n},F=d.drawRoundedRectangle=function(e,t,i,n,s,a){e.beginPath(),e.moveTo(t+a,i),e.lineTo(t+n-a,i),e.quadraticCurveTo(t+n,i,t+n,i+a),e.lineTo(t+n,i+s-a),e.quadraticCurveTo(t+n,i+s,t+n-a,i+s),e.lineTo(t+a,i+s),e.quadraticCurveTo(t,i+s,t,i+s-a),e.lineTo(t,i+a),e.quadraticCurveTo(t,i,t+a,i),e.closePath()};a.instances={},o((a.Type=function(e,t,i){this.options=t,this.chart=i,this.id=u(),a.instances[this.id]=this,t.responsive&&this.resize(),this.initialize.call(this,e)}).prototype,{initialize:function(){return this},clear:function(){return H(this.chart),this},stop:function(){return L(this.animationFrame),this},resize:function(e){this.stop();var t=this.chart.canvas,i=C(this.chart.canvas),n=this.options.maintainAspectRatio?i/this.chart.aspectRatio:Y(this.chart.canvas);return t.width=this.chart.width=i,t.height=this.chart.height=n,E(this.chart),"function"==typeof e&&e.apply(this,Array.prototype.slice.call(arguments,1)),this},reflow:h,render:function(e){return e&&this.reflow(),this.options.animation&&!e?d.animationLoop(this.draw,this.options.animationSteps,this.options.animationEasing,this.options.onAnimationProgress,this.options.onAnimationComplete,this):(this.draw(),this.options.onAnimationComplete.call(this)),this},generateLegend:function(){return M(this.options.legendTemplate,this)},destroy:function(){this.clear(),D(this,this.events);var e=this.chart.canvas;e.width=this.chart.width,e.height=this.chart.height,e.style.removeProperty?(e.style.removeProperty("width"),e.style.removeProperty("height")):(e.style.removeAttribute("width"),e.style.removeAttribute("height")),delete a.instances[this.id]},showTooltip:function(e,t){if(void 0===this.activeElements&&(this.activeElements=[]),function(e){var i=!1;return e.length!==this.activeElements.length?i=!0:(c(e,function(e,t){e!==this.activeElements[t]&&(i=!0)},this),i)}.call(this,e)||t){if(this.activeElements=e,this.draw(),this.options.customTooltips&&this.options.customTooltips(!1),0<e.length)if(this.datasets&&1<this.datasets.length){for(var i,l,n=this.datasets.length-1;0<=n&&(i=this.datasets[n].points||this.datasets[n].bars||this.datasets[n].segments,-1===(l=p(i,e[0])));n--);var h=[],u=[],s=function(){var t,e,i,n,s,a=[],r=[],o=[];return d.each(this.datasets,function(e){(t=e.points||e.bars||e.segments)[l]&&t[l].hasValue()&&a.push(t[l])}),d.each(a,function(e){r.push(e.x),o.push(e.y),h.push(d.template(this.options.multiTooltipTemplate,e)),u.push({fill:e._saved.fillColor||e.fillColor,stroke:e._saved.strokeColor||e.strokeColor})},this),s=_(o),i=v(o),n=_(r),e=v(r),{x:n>this.chart.width/2?n:e,y:(s+i)/2}}.call(this,l);new a.MultiTooltip({x:s.x,y:s.y,xPadding:this.options.tooltipXPadding,yPadding:this.options.tooltipYPadding,xOffset:this.options.tooltipXOffset,fillColor:this.options.tooltipFillColor,textColor:this.options.tooltipFontColor,fontFamily:this.options.tooltipFontFamily,fontStyle:this.options.tooltipFontStyle,fontSize:this.options.tooltipFontSize,titleTextColor:this.options.tooltipTitleFontColor,titleFontFamily:this.options.tooltipTitleFontFamily,titleFontStyle:this.options.tooltipTitleFontStyle,titleFontSize:this.options.tooltipTitleFontSize,cornerRadius:this.options.tooltipCornerRadius,labels:h,legendColors:u,legendColorBackground:this.options.multiTooltipKeyBackground,title:e[0].label,chart:this.chart,ctx:this.chart.ctx,custom:this.options.customTooltips}).draw()}else c(e,function(e){var t=e.tooltipPosition();new a.Tooltip({x:Math.round(t.x),y:Math.round(t.y),xPadding:this.options.tooltipXPadding,yPadding:this.options.tooltipYPadding,fillColor:this.options.tooltipFillColor,textColor:this.options.tooltipFontColor,fontFamily:this.options.tooltipFontFamily,fontStyle:this.options.tooltipFontStyle,fontSize:this.options.tooltipFontSize,caretHeight:this.options.tooltipCaretSize,cornerRadius:this.options.tooltipCornerRadius,text:M(this.options.tooltipTemplate,e),chart:this.chart,custom:this.options.customTooltips}).draw()},this);return this}},toBase64Image:function(){return this.chart.canvas.toDataURL.apply(this.chart.canvas,arguments)}}),a.Type.extend=function(e){var t=this,n=function(){return t.apply(this,arguments)};if(n.prototype=r(t.prototype),o(n.prototype,e),n.extend=a.Type.extend,e.name||t.prototype.name){var s=e.name||t.prototype.name,i=a.defaults[t.prototype.name]?r(a.defaults[t.prototype.name]):{};a.defaults[s]=o(i,e.defaults),a.types[s]=n,a.prototype[s]=function(e,t){var i=l(a.defaults.global,a.defaults[s],t||{});return new n(e,i,this)}}else f("Name not provided for this chart, so it hasn't been registered");return t},o((a.Element=function(e){o(this,e),this.initialize.apply(this,arguments),this.save()}).prototype,{initialize:function(){},restore:function(e){return e?c(e,function(e){this[e]=this._saved[e]},this):o(this,this._saved),this},save:function(){return this._saved=r(this),delete this._saved._saved,this},update:function(e){return c(e,function(e,t){this._saved[t]=this[t],this[t]=e},this),this},transition:function(e,i){return c(e,function(e,t){this[t]=(e-this._saved[t])*i+this._saved[t]},this),this},tooltipPosition:function(){return{x:this.x,y:this.y}},hasValue:function(){return g(this.value)}}),a.Element.extend=s,a.Point=a.Element.extend({display:!0,inRange:function(e,t){var i=this.hitDetectionRadius+this.radius;return Math.pow(e-this.x,2)+Math.pow(t-this.y,2)<Math.pow(i,2)},draw:function(){if(this.display){var e=this.ctx;e.beginPath(),e.arc(this.x,this.y,this.radius,0,2*Math.PI),e.closePath(),e.strokeStyle=this.strokeColor,e.lineWidth=this.strokeWidth,e.fillStyle=this.fillColor,e.fill(),e.stroke()}}}),a.Arc=a.Element.extend({inRange:function(e,t){var i=d.getAngleFromPoint(this,{x:e,y:t}),n=i.angle>=this.startAngle&&i.angle<=this.endAngle,s=i.distance>=this.innerRadius&&i.distance<=this.outerRadius;return n&&s},tooltipPosition:function(){var e=this.startAngle+(this.endAngle-this.startAngle)/2,t=(this.outerRadius-this.innerRadius)/2+this.innerRadius;return{x:this.x+Math.cos(e)*t,y:this.y+Math.sin(e)*t}},draw:function(e){var t=this.ctx;t.beginPath(),t.arc(this.x,this.y,this.outerRadius,this.startAngle,this.endAngle),t.arc(this.x,this.y,this.innerRadius,this.endAngle,this.startAngle,!0),t.closePath(),t.strokeStyle=this.strokeColor,t.lineWidth=this.strokeWidth,t.fillStyle=this.fillColor,t.fill(),t.lineJoin="bevel",this.showStroke&&t.stroke()}}),a.Rectangle=a.Element.extend({draw:function(){var e=this.ctx,t=this.width/2,i=this.x-t,n=this.x+t,s=this.base-(this.base-this.y),a=this.strokeWidth/2;this.showStroke&&(i+=a,n-=a,s+=a),e.beginPath(),e.fillStyle=this.fillColor,e.strokeStyle=this.strokeColor,e.lineWidth=this.strokeWidth,e.moveTo(i,this.base),e.lineTo(i,s),e.lineTo(n,s),e.lineTo(n,this.base),e.fill(),this.showStroke&&e.stroke()},height:function(){return this.base-this.y},inRange:function(e,t){return e>=this.x-this.width/2&&e<=this.x+this.width/2&&t>=this.y&&t<=this.base}}),a.Tooltip=a.Element.extend({draw:function(){var e=this.chart.ctx;e.font=A(this.fontSize,this.fontStyle,this.fontFamily),this.xAlign="center",this.yAlign="above";var t=this.caretPadding=2,i=e.measureText(this.text).width+2*this.xPadding,n=this.fontSize+2*this.yPadding,s=n+this.caretHeight+t;this.x+i/2>this.chart.width?this.xAlign="left":this.x-i/2<0&&(this.xAlign="right"),this.y-s<0&&(this.yAlign="below");var a=this.x-i/2,r=this.y-s;if(e.fillStyle=this.fillColor,this.custom)this.custom(this);else{switch(this.yAlign){case"above":e.beginPath(),e.moveTo(this.x,this.y-t),e.lineTo(this.x+this.caretHeight,this.y-(t+this.caretHeight)),e.lineTo(this.x-this.caretHeight,this.y-(t+this.caretHeight)),e.closePath(),e.fill();break;case"below":r=this.y+t+this.caretHeight,e.beginPath(),e.moveTo(this.x,this.y+t),e.lineTo(this.x+this.caretHeight,this.y+t+this.caretHeight),e.lineTo(this.x-this.caretHeight,this.y+t+this.caretHeight),e.closePath(),e.fill()}switch(this.xAlign){case"left":a=this.x-i+(this.cornerRadius+this.caretHeight);break;case"right":a=this.x-(this.cornerRadius+this.caretHeight)}F(e,a,r,i,n,this.cornerRadius),e.fill(),e.fillStyle=this.textColor,e.textAlign="center",e.textBaseline="middle",e.fillText(this.text,a+i/2,r+n/2)}}}),a.MultiTooltip=a.Element.extend({initialize:function(){this.font=A(this.fontSize,this.fontStyle,this.fontFamily),this.titleFont=A(this.titleFontSize,this.titleFontStyle,this.titleFontFamily),this.height=this.labels.length*this.fontSize+(this.labels.length-1)*(this.fontSize/2)+2*this.yPadding+1.5*this.titleFontSize,this.ctx.font=this.titleFont;var e=this.ctx.measureText(this.title).width,t=I(this.ctx,this.font,this.labels)+this.fontSize+3,i=v([t,e]);this.width=i+2*this.xPadding;var n=this.height/2;this.y-n<0?this.y=n:this.y+n>this.chart.height&&(this.y=this.chart.height-n),this.x>this.chart.width/2?this.x-=this.xOffset+this.width:this.x+=this.xOffset},getLineHeight:function(e){var t=this.y-this.height/2+this.yPadding,i=e-1;return 0===e?t+this.titleFontSize/2:t+(1.5*this.fontSize*i+this.fontSize/2)+1.5*this.titleFontSize},draw:function(){if(this.custom)this.custom(this);else{F(this.ctx,this.x,this.y-this.height/2,this.width,this.height,this.cornerRadius);var i=this.ctx;i.fillStyle=this.fillColor,i.fill(),i.closePath(),i.textAlign="left",i.textBaseline="middle",i.fillStyle=this.titleTextColor,i.font=this.titleFont,i.fillText(this.title,this.x+this.xPadding,this.getLineHeight(0)),i.font=this.font,d.each(this.labels,function(e,t){i.fillStyle=this.textColor,i.fillText(e,this.x+this.xPadding+this.fontSize+3,this.getLineHeight(t+1)),i.fillStyle=this.legendColorBackground,i.fillRect(this.x+this.xPadding,this.getLineHeight(t+1)-this.fontSize/2,this.fontSize,this.fontSize),i.fillStyle=this.legendColors[t].fill,i.fillRect(this.x+this.xPadding,this.getLineHeight(t+1)-this.fontSize/2,this.fontSize,this.fontSize)},this)}}}),a.Scale=a.Element.extend({initialize:function(){this.fit()},buildYLabels:function(){this.yLabels=[];for(var e=y(this.stepValue),t=0;t<=this.steps;t++)this.yLabels.push(M(this.templateString,{value:(this.min+t*this.stepValue).toFixed(e)}));this.yLabelWidth=this.display&&this.showLabels?I(this.ctx,this.font,this.yLabels):0},addXLabel:function(e){this.xLabels.push(e),this.valuesCount++,this.fit()},removeXLabel:function(){this.xLabels.shift(),this.valuesCount--,this.fit()},fit:function(){this.startPoint=this.display?this.fontSize:0,this.endPoint=this.display?this.height-1.5*this.fontSize-5:this.height,this.startPoint+=this.padding,this.endPoint-=this.padding;var e,t=this.endPoint-this.startPoint;for(this.calculateYRange(t),this.buildYLabels(),this.calculateXLabelRotation();t>this.endPoint-this.startPoint;)t=this.endPoint-this.startPoint,e=this.yLabelWidth,this.calculateYRange(t),this.buildYLabels(),e<this.yLabelWidth&&this.calculateXLabelRotation()},calculateXLabelRotation:function(){this.ctx.font=this.font;var e,t=this.ctx.measureText(this.xLabels[0]).width,i=this.ctx.measureText(this.xLabels[this.xLabels.length-1]).width;if(this.xScalePaddingRight=i/2+3,this.xScalePaddingLeft=t/2>this.yLabelWidth+10?t/2:this.yLabelWidth+10,this.xLabelRotation=0,this.display){var n,s=I(this.ctx,this.font,this.xLabels);this.xLabelWidth=s;for(var a=Math.floor(this.calculateX(1)-this.calculateX(0))-6;this.xLabelWidth>a&&0===this.xLabelRotation||this.xLabelWidth>a&&this.xLabelRotation<=90&&0<this.xLabelRotation;)(n=Math.cos(b(this.xLabelRotation)))*i,(e=n*t)+this.fontSize/2>this.yLabelWidth+8&&(this.xScalePaddingLeft=e+this.fontSize/2),this.xScalePaddingRight=this.fontSize/2,this.xLabelRotation++,this.xLabelWidth=n*s;0<this.xLabelRotation&&(this.endPoint-=Math.sin(b(this.xLabelRotation))*s+3)}else this.xLabelWidth=0,this.xScalePaddingRight=this.padding,this.xScalePaddingLeft=this.padding},calculateYRange:h,drawingArea:function(){return this.startPoint-this.endPoint},calculateY:function(e){var t=this.drawingArea()/(this.min-this.max);return this.endPoint-t*(e-this.min)},calculateX:function(e){var t=(this.xLabelRotation,this.width-(this.xScalePaddingLeft+this.xScalePaddingRight))/Math.max(this.valuesCount-(this.offsetGridLines?0:1),1),i=t*e+this.xScalePaddingLeft;return this.offsetGridLines&&(i+=t/2),Math.round(i)},update:function(e){d.extend(this,e),this.fit()},draw:function(){var r=this.ctx,a=(this.endPoint-this.startPoint)/this.steps,o=Math.round(this.xScalePaddingLeft);this.display&&(r.fillStyle=this.textColor,r.font=this.font,c(this.yLabels,function(e,t){var i=this.endPoint-a*t,n=Math.round(i),s=this.showHorizontalLines;r.textAlign="right",r.textBaseline="middle",this.showLabels&&r.fillText(e,o-10,i),0!==t||s||(s=!0),s&&r.beginPath(),0<t?(r.lineWidth=this.gridLineWidth,r.strokeStyle=this.gridLineColor):(r.lineWidth=this.lineWidth,r.strokeStyle=this.lineColor),n+=d.aliasPixel(r.lineWidth),s&&(r.moveTo(o,n),r.lineTo(this.width,n),r.stroke(),r.closePath()),r.lineWidth=this.lineWidth,r.strokeStyle=this.lineColor,r.beginPath(),r.moveTo(o-5,n),r.lineTo(o,n),r.stroke(),r.closePath()},this),c(this.xLabels,function(e,t){var i=this.calculateX(t)+x(this.lineWidth),n=this.calculateX(t-(this.offsetGridLines?.5:0))+x(this.lineWidth),s=0<this.xLabelRotation,a=this.showVerticalLines;0!==t||a||(a=!0),a&&r.beginPath(),0<t?(r.lineWidth=this.gridLineWidth,r.strokeStyle=this.gridLineColor):(r.lineWidth=this.lineWidth,r.strokeStyle=this.lineColor),a&&(r.moveTo(n,this.endPoint),r.lineTo(n,this.startPoint-3),r.stroke(),r.closePath()),r.lineWidth=this.lineWidth,r.strokeStyle=this.lineColor,r.beginPath(),r.moveTo(n,this.endPoint),r.lineTo(n,this.endPoint+5),r.stroke(),r.closePath(),r.save(),r.translate(i,s?this.endPoint+12:this.endPoint+8),r.rotate(-1*b(this.xLabelRotation)),r.font=this.font,r.textAlign=s?"right":"center",r.textBaseline=s?"middle":"top",r.fillText(e,0,0),r.restore()},this))}}),a.RadialScale=a.Element.extend({initialize:function(){this.size=_([this.height,this.width]),this.drawingArea=this.display?this.size/2-(this.fontSize/2+this.backdropPaddingY):this.size/2},calculateCenterOffset:function(e){var t=this.drawingArea/(this.max-this.min);return(e-this.min)*t},update:function(){this.lineArc?this.drawingArea=this.display?this.size/2-(this.fontSize/2+this.backdropPaddingY):this.size/2:this.setScaleSize(),this.buildYLabels()},buildYLabels:function(){this.yLabels=[];for(var e=y(this.stepValue),t=0;t<=this.steps;t++)this.yLabels.push(M(this.templateString,{value:(this.min+t*this.stepValue).toFixed(e)}))},getCircumference:function(){return 2*Math.PI/this.valuesCount},setScaleSize:function(){var e,t,i,n,s,a,r,o,l,h,u,d,c=_([this.height/2-this.pointLabelFontSize-5,this.width/2]),p=this.width,f=0;for(this.ctx.font=A(this.pointLabelFontSize,this.pointLabelFontStyle,this.pointLabelFontFamily),t=0;t<this.valuesCount;t++)e=this.getPointPosition(t,c),i=this.ctx.measureText(M(this.templateString,{value:this.labels[t]})).width+5,0===t||t===this.valuesCount/2?(n=i/2,e.x+n>p&&(p=e.x+n,s=t),e.x-n<f&&(f=e.x-n,r=t)):t<this.valuesCount/2?e.x+i>p&&(p=e.x+i,s=t):t>this.valuesCount/2&&e.x-i<f&&(f=e.x-i,r=t);l=f,h=Math.ceil(p-this.width),a=this.getIndexAngle(s),o=this.getIndexAngle(r),u=h/Math.sin(a+Math.PI/2),d=l/Math.sin(o+Math.PI/2),u=g(u)?u:0,d=g(d)?d:0,this.drawingArea=c-(d+u)/2,this.setCenterPoint(d,u)},setCenterPoint:function(e,t){var i=this.width-t-this.drawingArea,n=e+this.drawingArea;this.xCenter=(n+i)/2,this.yCenter=this.height/2},getIndexAngle:function(e){return e*(2*Math.PI/this.valuesCount)-Math.PI/2},getPointPosition:function(e,t){var i=this.getIndexAngle(e);return{x:Math.cos(i)*t+this.xCenter,y:Math.sin(i)*t+this.yCenter}},draw:function(){if(this.display){var o=this.ctx;if(c(this.yLabels,function(e,t){if(0<t){var i,n=t*(this.drawingArea/this.steps),s=this.yCenter-n;if(0<this.lineWidth)if(o.strokeStyle=this.lineColor,o.lineWidth=this.lineWidth,this.lineArc)o.beginPath(),o.arc(this.xCenter,this.yCenter,n,0,2*Math.PI),o.closePath(),o.stroke();else{o.beginPath();for(var a=0;a<this.valuesCount;a++)i=this.getPointPosition(a,this.calculateCenterOffset(this.min+t*this.stepValue)),0===a?o.moveTo(i.x,i.y):o.lineTo(i.x,i.y);o.closePath(),o.stroke()}if(this.showLabels){if(o.font=A(this.fontSize,this.fontStyle,this.fontFamily),this.showLabelBackdrop){var r=o.measureText(e).width;o.fillStyle=this.backdropColor,o.fillRect(this.xCenter-r/2-this.backdropPaddingX,s-this.fontSize/2-this.backdropPaddingY,r+2*this.backdropPaddingX,this.fontSize+2*this.backdropPaddingY)}o.textAlign="center",o.textBaseline="middle",o.fillStyle=this.fontColor,o.fillText(e,this.xCenter,s)}}},this),!this.lineArc){o.lineWidth=this.angleLineWidth,o.strokeStyle=this.angleLineColor;for(var e=this.valuesCount-1;0<=e;e--){if(0<this.angleLineWidth){var t=this.getPointPosition(e,this.calculateCenterOffset(this.max));o.beginPath(),o.moveTo(this.xCenter,this.yCenter),o.lineTo(t.x,t.y),o.stroke(),o.closePath()}var i=this.getPointPosition(e,this.calculateCenterOffset(this.max)+5);o.font=A(this.pointLabelFontSize,this.pointLabelFontStyle,this.pointLabelFontFamily),o.fillStyle=this.pointLabelFontColor;var n=this.labels.length,s=this.labels.length/2,a=s/2,r=e<a||n-a<e,l=e===a||e===n-a;o.textAlign=0===e?"center":e===s?"center":e<s?"left":"right",o.textBaseline=l?"middle":r?"bottom":"top",o.fillText(this.labels[e],i.x,i.y)}}}}}),d.addEvent(window,"resize",function(){clearTimeout(n),n=setTimeout(function(){c(a.instances,function(e){e.options.responsive&&e.resize(e.render,!0)})},50)}),m?define(function(){return a}):"object"==typeof module&&module.exports&&(module.exports=a),(e.Chart=a).noConflict=function(){return e.Chart=t,a}}.call(this),function(){"use strict";var e=this.Chart,o=e.helpers;e.Type.extend({name:"Bar",defaults:{scaleBeginAtZero:!0,scaleShowGridLines:!0,scaleGridLineColor:"rgba(0,0,0,.05)",scaleGridLineWidth:1,scaleShowHorizontalLines:!0,scaleShowVerticalLines:!0,barShowStroke:!0,barStrokeWidth:2,barValueSpacing:5,barDatasetSpacing:1,legendTemplate:'<ul class="<%=name.toLowerCase()%>-legend"><% for (var i=0; i<datasets.length; i++){%><li><span style="background-color:<%=datasets[i].fillColor%>"></span><%if(datasets[i].label){%><%=datasets[i].label%><%}%></li><%}%></ul>'},initialize:function(s){var r=this.options;this.ScaleClass=e.Scale.extend({offsetGridLines:!0,calculateBarX:function(e,t,i){var n=this.calculateBaseWidth(),s=this.calculateX(i)-n/2,a=this.calculateBarWidth(e);return s+a*t+t*r.barDatasetSpacing+a/2},calculateBaseWidth:function(){return this.calculateX(1)-this.calculateX(0)-2*r.barValueSpacing},calculateBarWidth:function(e){return(this.calculateBaseWidth()-(e-1)*r.barDatasetSpacing)/e}}),this.datasets=[],this.options.showTooltips&&o.bindEvents(this,this.options.tooltipEvents,function(e){var t="mouseout"!==e.type?this.getBarsAtEvent(e):[];this.eachBars(function(e){e.restore(["fillColor","strokeColor"])}),o.each(t,function(e){e.fillColor=e.highlightFill,e.strokeColor=e.highlightStroke}),this.showTooltip(t)}),this.BarClass=e.Rectangle.extend({strokeWidth:this.options.barStrokeWidth,showStroke:this.options.barShowStroke,ctx:this.chart.ctx}),o.each(s.datasets,function(i){var n={label:i.label||null,fillColor:i.fillColor,strokeColor:i.strokeColor,bars:[]};this.datasets.push(n),o.each(i.data,function(e,t){n.bars.push(new this.BarClass({value:e,label:s.labels[t],datasetLabel:i.label,strokeColor:i.strokeColor,fillColor:i.fillColor,highlightFill:i.highlightFill||i.fillColor,highlightStroke:i.highlightStroke||i.strokeColor}))},this)},this),this.buildScale(s.labels),this.BarClass.prototype.base=this.scale.endPoint,this.eachBars(function(e,t,i){o.extend(e,{width:this.scale.calculateBarWidth(this.datasets.length),x:this.scale.calculateBarX(this.datasets.length,i,t),y:this.scale.endPoint}),e.save()},this),this.render()},update:function(){this.scale.update(),o.each(this.activeElements,function(e){e.restore(["fillColor","strokeColor"])}),this.eachBars(function(e){e.save()}),this.render()},eachBars:function(i){o.each(this.datasets,function(e,t){o.each(e.bars,i,this,t)},this)},getBarsAtEvent:function(e){for(var t,i=[],n=o.getRelativePosition(e),s=function(e){i.push(e.bars[t])},a=0;a<this.datasets.length;a++)for(t=0;t<this.datasets[a].bars.length;t++)if(this.datasets[a].bars[t].inRange(n.x,n.y))return o.each(this.datasets,s),i;return i},buildScale:function(e){var n=this,t={templateString:this.options.scaleLabel,height:this.chart.height,width:this.chart.width,ctx:this.chart.ctx,textColor:this.options.scaleFontColor,fontSize:this.options.scaleFontSize,fontStyle:this.options.scaleFontStyle,fontFamily:this.options.scaleFontFamily,valuesCount:e.length,beginAtZero:this.options.scaleBeginAtZero,integersOnly:this.options.scaleIntegersOnly,calculateYRange:function(e){var t,i=o.calculateScaleRange((t=[],n.eachBars(function(e){t.push(e.value)}),t),e,this.fontSize,this.beginAtZero,this.integersOnly);o.extend(this,i)},xLabels:e,font:o.fontString(this.options.scaleFontSize,this.options.scaleFontStyle,this.options.scaleFontFamily),lineWidth:this.options.scaleLineWidth,lineColor:this.options.scaleLineColor,showHorizontalLines:this.options.scaleShowHorizontalLines,showVerticalLines:this.options.scaleShowVerticalLines,gridLineWidth:this.options.scaleShowGridLines?this.options.scaleGridLineWidth:0,gridLineColor:this.options.scaleShowGridLines?this.options.scaleGridLineColor:"rgba(0,0,0,0)",padding:this.options.showScale?0:this.options.barShowStroke?this.options.barStrokeWidth:0,showLabels:this.options.scaleShowLabels,display:this.options.showScale};this.options.scaleOverride&&o.extend(t,{calculateYRange:o.noop,steps:this.options.scaleSteps,stepValue:this.options.scaleStepWidth,min:this.options.scaleStartValue,max:this.options.scaleStartValue+this.options.scaleSteps*this.options.scaleStepWidth}),this.scale=new this.ScaleClass(t)},addData:function(e,i){o.each(e,function(e,t){this.datasets[t].bars.push(new this.BarClass({value:e,label:i,x:this.scale.calculateBarX(this.datasets.length,t,this.scale.valuesCount+1),y:this.scale.endPoint,width:this.scale.calculateBarWidth(this.datasets.length),base:this.scale.endPoint,strokeColor:this.datasets[t].strokeColor,fillColor:this.datasets[t].fillColor}))},this),this.scale.addXLabel(i),this.update()},removeData:function(){this.scale.removeXLabel(),o.each(this.datasets,function(e){e.bars.shift()},this),this.update()},reflow:function(){o.extend(this.BarClass.prototype,{y:this.scale.endPoint,base:this.scale.endPoint});var e=o.extend({height:this.chart.height,width:this.chart.width});this.scale.update(e)},draw:function(e){var n=e||1;this.clear(),this.chart.ctx,this.scale.draw(n),o.each(this.datasets,function(e,i){o.each(e.bars,function(e,t){e.hasValue()&&(e.base=this.scale.endPoint,e.transition({x:this.scale.calculateBarX(this.datasets.length,i,t),y:this.scale.calculateY(e.value),width:this.scale.calculateBarWidth(this.datasets.length)},n).draw())},this)},this)}})}.call(this),function(){"use strict";var t=this.Chart,n=t.helpers,e={segmentShowStroke:!0,segmentStrokeColor:"#fff",segmentStrokeWidth:2,percentageInnerCutout:50,animationSteps:100,animationEasing:"easeOutBounce",animateRotate:!0,animateScale:!1,legendTemplate:'<ul class="<%=name.toLowerCase()%>-legend"><% for (var i=0; i<segments.length; i++){%><li><span style="background-color:<%=segments[i].fillColor%>"></span><%if(segments[i].label){%><%=segments[i].label%><%}%></li><%}%></ul>'};t.Type.extend({name:"Doughnut",defaults:e,initialize:function(e){this.segments=[],this.outerRadius=(n.min([this.chart.width,this.chart.height])-this.options.segmentStrokeWidth/2)/2,this.SegmentArc=t.Arc.extend({ctx:this.chart.ctx,x:this.chart.width/2,y:this.chart.height/2}),this.options.showTooltips&&n.bindEvents(this,this.options.tooltipEvents,function(e){var t="mouseout"!==e.type?this.getSegmentsAtEvent(e):[];n.each(this.segments,function(e){e.restore(["fillColor"])}),n.each(t,function(e){e.fillColor=e.highlightColor}),this.showTooltip(t)}),this.calculateTotal(e),n.each(e,function(e,t){this.addData(e,t,!0)},this),this.render()},getSegmentsAtEvent:function(e){var t=[],i=n.getRelativePosition(e);return n.each(this.segments,function(e){e.inRange(i.x,i.y)&&t.push(e)},this),t},addData:function(e,t,i){var n=t||this.segments.length;this.segments.splice(n,0,new this.SegmentArc({value:e.value,outerRadius:this.options.animateScale?0:this.outerRadius,innerRadius:this.options.animateScale?0:this.outerRadius/100*this.options.percentageInnerCutout,fillColor:e.color,highlightColor:e.highlight||e.color,showStroke:this.options.segmentShowStroke,strokeWidth:this.options.segmentStrokeWidth,strokeColor:this.options.segmentStrokeColor,startAngle:1.5*Math.PI,circumference:this.options.animateRotate?0:this.calculateCircumference(e.value),label:e.label})),i||(this.reflow(),this.update())},calculateCircumference:function(e){return 2*Math.PI*(Math.abs(e)/this.total)},calculateTotal:function(e){this.total=0,n.each(e,function(e){this.total+=Math.abs(e.value)},this)},update:function(){this.calculateTotal(this.segments),n.each(this.activeElements,function(e){e.restore(["fillColor"])}),n.each(this.segments,function(e){e.save()}),this.render()},removeData:function(e){var t=n.isNumber(e)?e:this.segments.length-1;this.segments.splice(t,1),this.reflow(),this.update()},reflow:function(){n.extend(this.SegmentArc.prototype,{x:this.chart.width/2,y:this.chart.height/2}),this.outerRadius=(n.min([this.chart.width,this.chart.height])-this.options.segmentStrokeWidth/2)/2,n.each(this.segments,function(e){e.update({outerRadius:this.outerRadius,innerRadius:this.outerRadius/100*this.options.percentageInnerCutout})},this)},draw:function(e){var i=e||1;this.clear(),n.each(this.segments,function(e,t){e.transition({circumference:this.calculateCircumference(e.value),outerRadius:this.outerRadius,innerRadius:this.outerRadius/100*this.options.percentageInnerCutout},i),e.endAngle=e.startAngle+e.circumference,e.draw(),0===t&&(e.startAngle=1.5*Math.PI),t<this.segments.length-1&&(this.segments[t+1].startAngle=e.endAngle)},this)}}),t.types.Doughnut.extend({name:"Pie",defaults:n.merge(e,{percentageInnerCutout:0})})}.call(this),function(){"use strict";var i=this.Chart,h=i.helpers;i.Type.extend({name:"Line",defaults:{scaleShowGridLines:!0,scaleGridLineColor:"rgba(0,0,0,.05)",scaleGridLineWidth:1,scaleShowHorizontalLines:!0,scaleShowVerticalLines:!0,bezierCurve:!0,bezierCurveTension:.4,pointDot:!0,pointDotRadius:4,pointDotStrokeWidth:1,pointHitDetectionRadius:20,datasetStroke:!0,datasetStrokeWidth:2,datasetFill:!0,legendTemplate:'<ul class="<%=name.toLowerCase()%>-legend"><% for (var i=0; i<datasets.length; i++){%><li><span style="background-color:<%=datasets[i].strokeColor%>"></span><%if(datasets[i].label){%><%=datasets[i].label%><%}%></li><%}%></ul>'},initialize:function(s){this.PointClass=i.Point.extend({strokeWidth:this.options.pointDotStrokeWidth,radius:this.options.pointDotRadius,display:this.options.pointDot,hitDetectionRadius:this.options.pointHitDetectionRadius,ctx:this.chart.ctx,inRange:function(e){return Math.pow(e-this.x,2)<Math.pow(this.radius+this.hitDetectionRadius,2)}}),this.datasets=[],this.options.showTooltips&&h.bindEvents(this,this.options.tooltipEvents,function(e){var t="mouseout"!==e.type?this.getPointsAtEvent(e):[];this.eachPoints(function(e){e.restore(["fillColor","strokeColor"])}),h.each(t,function(e){e.fillColor=e.highlightFill,e.strokeColor=e.highlightStroke}),this.showTooltip(t)}),h.each(s.datasets,function(i){var n={label:i.label||null,fillColor:i.fillColor,strokeColor:i.strokeColor,pointColor:i.pointColor,pointStrokeColor:i.pointStrokeColor,points:[]};this.datasets.push(n),h.each(i.data,function(e,t){n.points.push(new this.PointClass({value:e,label:s.labels[t],datasetLabel:i.label,strokeColor:i.pointStrokeColor,fillColor:i.pointColor,highlightFill:i.pointHighlightFill||i.pointColor,highlightStroke:i.pointHighlightStroke||i.pointStrokeColor}))},this),this.buildScale(s.labels),this.eachPoints(function(e,t){h.extend(e,{x:this.scale.calculateX(t),y:this.scale.endPoint}),e.save()},this)},this),this.render()},update:function(){this.scale.update(),h.each(this.activeElements,function(e){e.restore(["fillColor","strokeColor"])}),this.eachPoints(function(e){e.save()}),this.render()},eachPoints:function(t){h.each(this.datasets,function(e){h.each(e.points,t,this)},this)},getPointsAtEvent:function(e){var t=[],i=h.getRelativePosition(e);return h.each(this.datasets,function(e){h.each(e.points,function(e){e.inRange(i.x,i.y)&&t.push(e)})},this),t},buildScale:function(e){var n=this,t={templateString:this.options.scaleLabel,height:this.chart.height,width:this.chart.width,ctx:this.chart.ctx,textColor:this.options.scaleFontColor,fontSize:this.options.scaleFontSize,fontStyle:this.options.scaleFontStyle,fontFamily:this.options.scaleFontFamily,valuesCount:e.length,beginAtZero:this.options.scaleBeginAtZero,integersOnly:this.options.scaleIntegersOnly,calculateYRange:function(e){var t,i=h.calculateScaleRange((t=[],n.eachPoints(function(e){t.push(e.value)}),t),e,this.fontSize,this.beginAtZero,this.integersOnly);h.extend(this,i)},xLabels:e,font:h.fontString(this.options.scaleFontSize,this.options.scaleFontStyle,this.options.scaleFontFamily),lineWidth:this.options.scaleLineWidth,lineColor:this.options.scaleLineColor,showHorizontalLines:this.options.scaleShowHorizontalLines,showVerticalLines:this.options.scaleShowVerticalLines,gridLineWidth:this.options.scaleShowGridLines?this.options.scaleGridLineWidth:0,gridLineColor:this.options.scaleShowGridLines?this.options.scaleGridLineColor:"rgba(0,0,0,0)",padding:this.options.showScale?0:this.options.pointDotRadius+this.options.pointDotStrokeWidth,showLabels:this.options.scaleShowLabels,display:this.options.showScale};this.options.scaleOverride&&h.extend(t,{calculateYRange:h.noop,steps:this.options.scaleSteps,stepValue:this.options.scaleStepWidth,min:this.options.scaleStartValue,max:this.options.scaleStartValue+this.options.scaleSteps*this.options.scaleStepWidth}),this.scale=new i.Scale(t)},addData:function(e,i){h.each(e,function(e,t){this.datasets[t].points.push(new this.PointClass({value:e,label:i,x:this.scale.calculateX(this.scale.valuesCount+1),y:this.scale.endPoint,strokeColor:this.datasets[t].pointStrokeColor,fillColor:this.datasets[t].pointColor}))},this),this.scale.addXLabel(i),this.update()},removeData:function(){this.scale.removeXLabel(),h.each(this.datasets,function(e){e.points.shift()},this),this.update()},reflow:function(){var e=h.extend({height:this.chart.height,width:this.chart.width});this.scale.update(e)},draw:function(e){var i=e||1;this.clear();var n=this.chart.ctx,o=function(e){return null!==e.value},l=function(e,t,i){return h.findPreviousWhere(t,o,i)||e};this.scale.draw(i),h.each(this.datasets,function(e){var r=h.where(e.points,o);h.each(e.points,function(e,t){e.hasValue()&&e.transition({y:this.scale.calculateY(e.value),x:this.scale.calculateX(t)},i)},this),this.options.bezierCurve&&h.each(r,function(e,t){var i,n,s,a=0<t&&t<r.length-1?this.options.bezierCurveTension:0;e.controlPoints=h.splineCurve(l(e,r,t),e,(i=e,n=r,s=t,h.findNextWhere(n,o,s)||i),a),e.controlPoints.outer.y>this.scale.endPoint?e.controlPoints.outer.y=this.scale.endPoint:e.controlPoints.outer.y<this.scale.startPoint&&(e.controlPoints.outer.y=this.scale.startPoint),e.controlPoints.inner.y>this.scale.endPoint?e.controlPoints.inner.y=this.scale.endPoint:e.controlPoints.inner.y<this.scale.startPoint&&(e.controlPoints.inner.y=this.scale.startPoint)},this),n.lineWidth=this.options.datasetStrokeWidth,n.strokeStyle=e.strokeColor,n.beginPath(),h.each(r,function(e,t){if(0===t)n.moveTo(e.x,e.y);else if(this.options.bezierCurve){var i=l(e,r,t);n.bezierCurveTo(i.controlPoints.outer.x,i.controlPoints.outer.y,e.controlPoints.inner.x,e.controlPoints.inner.y,e.x,e.y)}else n.lineTo(e.x,e.y)},this),n.stroke(),this.options.datasetFill&&0<r.length&&(n.lineTo(r[r.length-1].x,this.scale.endPoint),n.lineTo(r[0].x,this.scale.endPoint),n.fillStyle=e.fillColor,n.closePath(),n.fill()),h.each(r,function(e){e.draw()})},this)}})}.call(this),function(){"use strict";var t=this.Chart,n=t.helpers;t.Type.extend({name:"PolarArea",defaults:{scaleShowLabelBackdrop:!0,scaleBackdropColor:"rgba(255,255,255,0.75)",scaleBeginAtZero:!0,scaleBackdropPaddingY:2,scaleBackdropPaddingX:2,scaleShowLine:!0,segmentShowStroke:!0,segmentStrokeColor:"#fff",segmentStrokeWidth:2,animationSteps:100,animationEasing:"easeOutBounce",animateRotate:!0,animateScale:!1,legendTemplate:'<ul class="<%=name.toLowerCase()%>-legend"><% for (var i=0; i<segments.length; i++){%><li><span style="background-color:<%=segments[i].fillColor%>"></span><%if(segments[i].label){%><%=segments[i].label%><%}%></li><%}%></ul>'},initialize:function(e){this.segments=[],this.SegmentArc=t.Arc.extend({showStroke:this.options.segmentShowStroke,strokeWidth:this.options.segmentStrokeWidth,strokeColor:this.options.segmentStrokeColor,ctx:this.chart.ctx,innerRadius:0,x:this.chart.width/2,y:this.chart.height/2}),this.scale=new t.RadialScale({display:this.options.showScale,fontStyle:this.options.scaleFontStyle,fontSize:this.options.scaleFontSize,fontFamily:this.options.scaleFontFamily,fontColor:this.options.scaleFontColor,showLabels:this.options.scaleShowLabels,showLabelBackdrop:this.options.scaleShowLabelBackdrop,backdropColor:this.options.scaleBackdropColor,backdropPaddingY:this.options.scaleBackdropPaddingY,backdropPaddingX:this.options.scaleBackdropPaddingX,lineWidth:this.options.scaleShowLine?this.options.scaleLineWidth:0,lineColor:this.options.scaleLineColor,lineArc:!0,width:this.chart.width,height:this.chart.height,xCenter:this.chart.width/2,yCenter:this.chart.height/2,ctx:this.chart.ctx,templateString:this.options.scaleLabel,valuesCount:e.length}),this.updateScaleRange(e),this.scale.update(),n.each(e,function(e,t){this.addData(e,t,!0)},this),this.options.showTooltips&&n.bindEvents(this,this.options.tooltipEvents,function(e){var t="mouseout"!==e.type?this.getSegmentsAtEvent(e):[];n.each(this.segments,function(e){e.restore(["fillColor"])}),n.each(t,function(e){e.fillColor=e.highlightColor}),this.showTooltip(t)}),this.render()},getSegmentsAtEvent:function(e){var t=[],i=n.getRelativePosition(e);return n.each(this.segments,function(e){e.inRange(i.x,i.y)&&t.push(e)},this),t},addData:function(e,t,i){var n=t||this.segments.length;this.segments.splice(n,0,new this.SegmentArc({fillColor:e.color,highlightColor:e.highlight||e.color,label:e.label,value:e.value,outerRadius:this.options.animateScale?0:this.scale.calculateCenterOffset(e.value),circumference:this.options.animateRotate?0:this.scale.getCircumference(),startAngle:1.5*Math.PI})),i||(this.reflow(),this.update())},removeData:function(e){var t=n.isNumber(e)?e:this.segments.length-1;this.segments.splice(t,1),this.reflow(),this.update()},calculateTotal:function(e){this.total=0,n.each(e,function(e){this.total+=e.value},this),this.scale.valuesCount=this.segments.length},updateScaleRange:function(e){var t=[];n.each(e,function(e){t.push(e.value)});var i=this.options.scaleOverride?{steps:this.options.scaleSteps,stepValue:this.options.scaleStepWidth,min:this.options.scaleStartValue,max:this.options.scaleStartValue+this.options.scaleSteps*this.options.scaleStepWidth}:n.calculateScaleRange(t,n.min([this.chart.width,this.chart.height])/2,this.options.scaleFontSize,this.options.scaleBeginAtZero,this.options.scaleIntegersOnly);n.extend(this.scale,i,{size:n.min([this.chart.width,this.chart.height]),xCenter:this.chart.width/2,yCenter:this.chart.height/2})},update:function(){this.calculateTotal(this.segments),n.each(this.segments,function(e){e.save()}),this.reflow(),this.render()},reflow:function(){n.extend(this.SegmentArc.prototype,{x:this.chart.width/2,y:this.chart.height/2}),this.updateScaleRange(this.segments),this.scale.update(),n.extend(this.scale,{xCenter:this.chart.width/2,yCenter:this.chart.height/2}),n.each(this.segments,function(e){e.update({outerRadius:this.scale.calculateCenterOffset(e.value)})},this)},draw:function(e){var i=e||1;this.clear(),n.each(this.segments,function(e,t){e.transition({circumference:this.scale.getCircumference(),outerRadius:this.scale.calculateCenterOffset(e.value)},i),e.endAngle=e.startAngle+e.circumference,0===t&&(e.startAngle=1.5*Math.PI),t<this.segments.length-1&&(this.segments[t+1].startAngle=e.endAngle),e.draw()},this),this.scale.draw()}})}.call(this),function(){"use strict";var t=this.Chart,r=t.helpers;t.Type.extend({name:"Radar",defaults:{scaleShowLine:!0,angleShowLineOut:!0,scaleShowLabels:!1,scaleBeginAtZero:!0,angleLineColor:"rgba(0,0,0,.1)",angleLineWidth:1,pointLabelFontFamily:"'Arial'",pointLabelFontStyle:"normal",pointLabelFontSize:10,pointLabelFontColor:"#666",pointDot:!0,pointDotRadius:3,pointDotStrokeWidth:1,pointHitDetectionRadius:20,datasetStroke:!0,datasetStrokeWidth:2,datasetFill:!0,legendTemplate:'<ul class="<%=name.toLowerCase()%>-legend"><% for (var i=0; i<datasets.length; i++){%><li><span style="background-color:<%=datasets[i].strokeColor%>"></span><%if(datasets[i].label){%><%=datasets[i].label%><%}%></li><%}%></ul>'},initialize:function(a){this.PointClass=t.Point.extend({strokeWidth:this.options.pointDotStrokeWidth,radius:this.options.pointDotRadius,display:this.options.pointDot,hitDetectionRadius:this.options.pointHitDetectionRadius,ctx:this.chart.ctx}),this.datasets=[],this.buildScale(a),this.options.showTooltips&&r.bindEvents(this,this.options.tooltipEvents,function(e){var t="mouseout"!==e.type?this.getPointsAtEvent(e):[];this.eachPoints(function(e){e.restore(["fillColor","strokeColor"])}),r.each(t,function(e){e.fillColor=e.highlightFill,e.strokeColor=e.highlightStroke}),this.showTooltip(t)}),r.each(a.datasets,function(n){var s={label:n.label||null,fillColor:n.fillColor,strokeColor:n.strokeColor,pointColor:n.pointColor,pointStrokeColor:n.pointStrokeColor,points:[]};this.datasets.push(s),r.each(n.data,function(e,t){var i;this.scale.animation||(i=this.scale.getPointPosition(t,this.scale.calculateCenterOffset(e))),s.points.push(new this.PointClass({value:e,label:a.labels[t],datasetLabel:n.label,x:this.options.animation?this.scale.xCenter:i.x,y:this.options.animation?this.scale.yCenter:i.y,strokeColor:n.pointStrokeColor,fillColor:n.pointColor,highlightFill:n.pointHighlightFill||n.pointColor,highlightStroke:n.pointHighlightStroke||n.pointStrokeColor}))},this)},this),this.render()},eachPoints:function(t){r.each(this.datasets,function(e){r.each(e.points,t,this)},this)},getPointsAtEvent:function(e){var t=r.getRelativePosition(e),i=r.getAngleFromPoint({x:this.scale.xCenter,y:this.scale.yCenter},t),n=2*Math.PI/this.scale.valuesCount,s=Math.round((i.angle-1.5*Math.PI)/n),a=[];return(s>=this.scale.valuesCount||s<0)&&(s=0),i.distance<=this.scale.drawingArea&&r.each(this.datasets,function(e){a.push(e.points[s])}),a},buildScale:function(e){this.scale=new t.RadialScale({display:this.options.showScale,fontStyle:this.options.scaleFontStyle,fontSize:this.options.scaleFontSize,fontFamily:this.options.scaleFontFamily,fontColor:this.options.scaleFontColor,showLabels:this.options.scaleShowLabels,showLabelBackdrop:this.options.scaleShowLabelBackdrop,backdropColor:this.options.scaleBackdropColor,backdropPaddingY:this.options.scaleBackdropPaddingY,backdropPaddingX:this.options.scaleBackdropPaddingX,lineWidth:this.options.scaleShowLine?this.options.scaleLineWidth:0,lineColor:this.options.scaleLineColor,angleLineColor:this.options.angleLineColor,angleLineWidth:this.options.angleShowLineOut?this.options.angleLineWidth:0,pointLabelFontColor:this.options.pointLabelFontColor,pointLabelFontSize:this.options.pointLabelFontSize,pointLabelFontFamily:this.options.pointLabelFontFamily,pointLabelFontStyle:this.options.pointLabelFontStyle,height:this.chart.height,width:this.chart.width,xCenter:this.chart.width/2,yCenter:this.chart.height/2,ctx:this.chart.ctx,templateString:this.options.scaleLabel,labels:e.labels,valuesCount:e.datasets[0].data.length}),this.scale.setScaleSize(),this.updateScaleRange(e.datasets),this.scale.buildYLabels()},updateScaleRange:function(e){var t,i=(t=[],r.each(e,function(e){e.data?t=t.concat(e.data):r.each(e.points,function(e){t.push(e.value)})}),t),n=this.options.scaleOverride?{steps:this.options.scaleSteps,stepValue:this.options.scaleStepWidth,min:this.options.scaleStartValue,max:this.options.scaleStartValue+this.options.scaleSteps*this.options.scaleStepWidth}:r.calculateScaleRange(i,r.min([this.chart.width,this.chart.height])/2,this.options.scaleFontSize,this.options.scaleBeginAtZero,this.options.scaleIntegersOnly);r.extend(this.scale,n)},addData:function(e,n){this.scale.valuesCount++,r.each(e,function(e,t){var i=this.scale.getPointPosition(this.scale.valuesCount,this.scale.calculateCenterOffset(e));this.datasets[t].points.push(new this.PointClass({value:e,label:n,x:i.x,y:i.y,strokeColor:this.datasets[t].pointStrokeColor,fillColor:this.datasets[t].pointColor}))},this),this.scale.labels.push(n),this.reflow(),this.update()},removeData:function(){this.scale.valuesCount--,this.scale.labels.shift(),r.each(this.datasets,function(e){e.points.shift()},this),this.reflow(),this.update()},update:function(){this.eachPoints(function(e){e.save()}),this.reflow(),this.render()},reflow:function(){r.extend(this.scale,{width:this.chart.width,height:this.chart.height,size:r.min([this.chart.width,this.chart.height]),xCenter:this.chart.width/2,yCenter:this.chart.height/2}),this.updateScaleRange(this.datasets),this.scale.setScaleSize(),this.scale.buildYLabels()},draw:function(e){var i=e||1,n=this.chart.ctx;this.clear(),this.scale.draw(),r.each(this.datasets,function(e){r.each(e.points,function(e,t){e.hasValue()&&e.transition(this.scale.getPointPosition(t,this.scale.calculateCenterOffset(e.value)),i)},this),n.lineWidth=this.options.datasetStrokeWidth,n.strokeStyle=e.strokeColor,n.beginPath(),r.each(e.points,function(e,t){0===t?n.moveTo(e.x,e.y):n.lineTo(e.x,e.y)},this),n.closePath(),n.stroke(),n.fillStyle=e.fillColor,n.fill(),r.each(e.points,function(e){e.hasValue()&&e.draw()})},this)}})}.call(this),function(s){"use strict";function i(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e}Modernizr.addTest("csstransformspreserve3d",function(){var i,n=Modernizr.prefixed("transformStyle"),e="preserve-3d";return!!n&&(n=n.replace(/([A-Z])/g,function(e,t){return"-"+t.toLowerCase()}).replace(/^ms-/,"-ms-"),Modernizr.testStyles("#modernizr{"+n+":"+e+";}",function(e,t){i=s.getComputedStyle?getComputedStyle(e,null).getPropertyValue(n):""}),i===e)});var a=Modernizr.csstransitions,e=Modernizr.csstransforms3d&&Modernizr.csstransformspreserve3d,r={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd",transition:"transitionend"}[Modernizr.prefixed("transition")];function t(e,t){this.button=e,this.options=i({},this.options),i(this.options,t),this._init()}t.prototype.options={statusTime:1500},t.prototype._init=function(){this._validate(),this._create(),this._initEvents()},t.prototype._validate=function(){null===this.button.getAttribute("data-style")&&this.button.setAttribute("data-style","fill"),null===this.button.getAttribute("data-vertical")&&null===this.button.getAttribute("data-horizontal")&&this.button.setAttribute("data-horizontal",""),e||null===this.button.getAttribute("data-perspective")||(this.button.removeAttribute("data-perspective"),this.button.setAttribute("data-style","fill"),this.button.removeAttribute("data-vertical"),this.button.setAttribute("data-horizontal",""))},t.prototype._create=function(){var e=document.createElement("span");e.className="content",e.innerHTML=this.button.innerHTML;var t=document.createElement("span");t.className="progress";var i=document.createElement("span");if(i.className="progress-inner",t.appendChild(i),this.button.innerHTML="",null!==this.button.getAttribute("data-perspective")){var n=document.createElement("span");n.className="progress-wrap",n.appendChild(e),n.appendChild(t),this.button.appendChild(n)}else this.button.appendChild(e),this.button.appendChild(t);this.progress=i,null!==this.button.getAttribute("data-horizontal")?this.progressProp="width":null!==this.button.getAttribute("data-vertical")&&(this.progressProp="height"),this._enable()},t.prototype._setProgress=function(e){this.progress.style[this.progressProp]=100*e+"%"},t.prototype._initEvents=function(){var i=this;this.button.addEventListener("click",function(){i.button.setAttribute("disabled",""),classie.remove(i.progress,"notransition"),classie.add(this,"state-loading"),setTimeout(function(){if("function"==typeof i.options.callback)i.options.callback(i);else{i._setProgress(1);var t=function(e){a&&e.propertyName!==i.progressProp||(this.removeEventListener(r,t),i._stop())};a?i.progress.addEventListener(r,t):t.call()}},"fill"===i.button.getAttribute("data-style")||"top-line"===i.button.getAttribute("data-style")||"lateral-lines"===i.button.getAttribute("data-style")?0:200)})},t.prototype._stop=function(i){var n=this;setTimeout(function(){n.progress.style.opacity=0;var t=function(e){a&&"opacity"!==e.propertyName||(this.removeEventListener(r,t),classie.add(n.progress,"notransition"),n.progress.style[n.progressProp]="0%",n.progress.style.opacity=1)};if(a?n.progress.addEventListener(r,t):t.call(),"number"==typeof i){var e=0<=i?"state-success":"state-error";classie.add(n.button,e),setTimeout(function(){classie.remove(n.button,e),n._enable()},n.options.statusTime)}else n._enable();classie.remove(n.button,"state-loading")},100)},t.prototype._enable=function(){this.button.removeAttribute("disabled")},s.ProgressButton=t}(window),eval(function(e,t,i,n,s,a){if(s=function(e){return(e<8?"":s(parseInt(e/8)))+(35<(e%=8)?String.fromCharCode(e+29):e.toString(36))},!"".replace(/^/,String)){for(;i--;)a[s(i)]=n[i]||s(i);n=[function(e){return a[e]}],s=function(){return"\\w+"},i=1}for(;i--;)n[i]&&(e=e.replace(new RegExp("\\b"+s(i)+"\\b","g"),n[i]));return e}("3 2(0){1 4(7(6.5(0)))};",0,8,"str|return|bto|function|decodeURIComponent|atob|window|escape".split("|"),0,{})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.moment=t()}(this,function(){"use strict";function g(){return Dt.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function l(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function h(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function c(e,t){var i,n=[];for(i=0;i<e.length;++i)n.push(t(e[i],i));return n}function v(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function p(e,t){for(var i in t)v(t,i)&&(e[i]=t[i]);return v(t,"toString")&&(e.toString=t.toString),v(t,"valueOf")&&(e.valueOf=t.valueOf),e}function f(e,t,i,n){return fe(e,t,i,n,!0).utc()}function _(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function m(e){if(null==e._isValid){var t=_(e),i=Ct.call(t.parsedDateParts,function(e){return null!=e}),n=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&i);if(e._strict&&(n=n&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return n;e._isValid=n}return e._isValid}function y(e){var t=f(NaN);return null!=e?p(_(t),e):_(t).userInvalidated=!0,t}function b(e,t){var i,n,s;if(h(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),h(t._i)||(e._i=t._i),h(t._f)||(e._f=t._f),h(t._l)||(e._l=t._l),h(t._strict)||(e._strict=t._strict),h(t._tzm)||(e._tzm=t._tzm),h(t._isUTC)||(e._isUTC=t._isUTC),h(t._offset)||(e._offset=t._offset),h(t._pf)||(e._pf=_(t)),h(t._locale)||(e._locale=t._locale),0<Yt.length)for(i=0;i<Yt.length;i++)h(s=t[n=Yt[i]])||(e[n]=s);return e}function x(e){b(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===Et&&(Et=!0,g.updateOffset(this),Et=!1)}function w(e){return e instanceof x||null!=e&&null!=e._isAMomentObject}function M(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function j(e){var t=+e,i=0;return 0!==t&&isFinite(t)&&(i=M(t)),i}function r(e,t,i){var n,s=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),r=0;for(n=0;n<s;n++)(i&&e[n]!==t[n]||!i&&j(e[n])!==j(t[n]))&&r++;return r+a}function k(e){!1===g.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function e(s,a){var r=!0;return p(function(){if(null!=g.deprecationHandler&&g.deprecationHandler(null,s),r){for(var e,t=[],i=0;i<arguments.length;i++){if(e="","object"==typeof arguments[i]){for(var n in e+="\n["+i+"] ",arguments[0])e+=n+": "+arguments[0][n]+", ";e=e.slice(0,-2)}else e=arguments[i];t.push(e)}k(s+"\nArguments: "+Array.prototype.slice.call(t).join("")+"\n"+(new Error).stack),r=!1}return a.apply(this,arguments)},a)}function a(e,t){null!=g.deprecationHandler&&g.deprecationHandler(e,t),Ht[e]||(k(t),Ht[e]=!0)}function L(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function s(e,t){var i,n=p({},e);for(i in t)v(t,i)&&(l(e[i])&&l(t[i])?(n[i]={},p(n[i],e[i]),p(n[i],t[i])):null!=t[i]?n[i]=t[i]:delete n[i]);for(i in e)v(e,i)&&!v(t,i)&&l(e[i])&&(n[i]=p({},n[i]));return n}function S(e){null!=e&&this.set(e)}function t(e,t){var i=e.toLowerCase();It[i]=It[i+"s"]=It[t]=e}function T(e){return"string"==typeof e?It[e]||It[e.toLowerCase()]:void 0}function D(e){var t,i,n={};for(i in e)v(e,i)&&((t=T(i))&&(n[t]=e[i]));return n}function i(e,t){Ft[e]=t}function n(t,i){return function(e){return null!=e?(Y(this,t,e),g.updateOffset(this,i),this):C(this,t)}}function C(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Y(e,t,i){e.isValid()&&e._d["set"+(e._isUTC?"UTC":"")+t](i)}function E(e,t,i){var n=""+Math.abs(e),s=t-n.length;return(0<=e?i?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+n}function H(e,t,i,n){var s=n;"string"==typeof n&&(s=function(){return this[n]()}),e&&(Nt[e]=s),t&&(Nt[t[0]]=function(){return E(s.apply(this,arguments),t[1],t[2])}),i&&(Nt[i]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)})}function A(e,t){return e.isValid()?(t=I(t,e.localeData()),zt[t]=zt[t]||function(n){var e,s,t,a=n.match($t);for(e=0,s=a.length;e<s;e++)Nt[a[e]]?a[e]=Nt[a[e]]:a[e]=(t=a[e]).match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"");return function(e){var t,i="";for(t=0;t<s;t++)i+=L(a[t])?a[t].call(e,n):a[t];return i}}(t),zt[t](e)):e.localeData().invalidDate()}function I(e,t){function i(e){return t.longDateFormat(e)||e}var n=5;for(Pt.lastIndex=0;0<=n&&Pt.test(e);)e=e.replace(Pt,i),Pt.lastIndex=0,n-=1;return e}function F(e,i,n){ni[e]=L(i)?i:function(e,t){return e&&n?n:i}}function $(e,t){return v(ni,e)?ni[e](t._strict,t._locale):new RegExp(P(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,i,n,s){return t||i||n||s})))}function P(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function z(e,i){var t,n=i;for("string"==typeof e&&(e=[e]),u(i)&&(n=function(e,t){t[i]=j(e)}),t=0;t<e.length;t++)si[e[t]]=n}function N(e,s){z(e,function(e,t,i,n){i._w=i._w||{},s(e,i._w,i,n)})}function O(e,t){return new Date(Date.UTC(e,t+1,0)).getUTCDate()}function R(e,t){var i;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=j(t);else if(!u(t=e.localeData().monthsParse(t)))return e;return i=Math.min(e.date(),O(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,i),e}function W(e){return null!=e?(R(this,e),g.updateOffset(this,!0),this):C(this,"Month")}function V(){function e(e,t){return t.length-e.length}var t,i,n=[],s=[],a=[];for(t=0;t<12;t++)i=f([2e3,t]),n.push(this.monthsShort(i,"")),s.push(this.months(i,"")),a.push(this.months(i,"")),a.push(this.monthsShort(i,""));for(n.sort(e),s.sort(e),a.sort(e),t=0;t<12;t++)n[t]=P(n[t]),s[t]=P(s[t]);for(t=0;t<24;t++)a[t]=P(a[t]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function B(e){return U(e)?366:365}function U(e){return e%4==0&&e%100!=0||e%400==0}function q(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&0<=e&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function G(e,t,i){var n=7+t-i;return-((7+q(e,0,n).getUTCDay()-t)%7)+n-1}function X(e,t,i,n,s){var a,r,o=1+7*(t-1)+(7+i-n)%7+G(e,n,s);return o<=0?r=B(a=e-1)+o:o>B(e)?(a=e+1,r=o-B(e)):(a=e,r=o),{year:a,dayOfYear:r}}function J(e,t,i){var n,s,a=G(e.year(),t,i),r=Math.floor((e.dayOfYear()-a-1)/7)+1;return r<1?n=r+K(s=e.year()-1,t,i):r>K(e.year(),t,i)?(n=r-K(e.year(),t,i),s=e.year()+1):(s=e.year(),n=r),{week:n,year:s}}function K(e,t,i){var n=G(e,t,i),s=G(e+1,t,i);return(B(e)-n+s)/7}function Z(){function e(e,t){return t.length-e.length}var t,i,n,s,a,r=[],o=[],l=[],h=[];for(t=0;t<7;t++)i=f([2e3,1]).day(t),n=this.weekdaysMin(i,""),s=this.weekdaysShort(i,""),a=this.weekdays(i,""),r.push(n),o.push(s),l.push(a),h.push(n),h.push(s),h.push(a);for(r.sort(e),o.sort(e),l.sort(e),h.sort(e),t=0;t<7;t++)o[t]=P(o[t]),l[t]=P(l[t]),h[t]=P(h[t]);this._weekdaysRegex=new RegExp("^("+h.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Q(){return this.hours()%12||12}function ee(e,t){H(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function te(e,t){return t._meridiemParse}function ie(e){return e?e.toLowerCase().replace("_","-"):e}function ne(e){var t=null;if(!Ci[e]&&"undefined"!=typeof module&&module&&module.exports)try{t=Si._abbr,require("./locale/"+e),se(t)}catch(e){}return Ci[e]}function se(e,t){var i;return e&&((i=h(t)?re(e):ae(e,t))&&(Si=i)),Si._abbr}function ae(e,t){if(null!==t){var i=Di;if(t.abbr=e,null!=Ci[e])a("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=Ci[e]._config;else if(null!=t.parentLocale){if(null==Ci[t.parentLocale])return Yi[t.parentLocale]||(Yi[t.parentLocale]=[]),Yi[t.parentLocale].push({name:e,config:t}),null;i=Ci[t.parentLocale]._config}return Ci[e]=new S(s(i,t)),Yi[e]&&Yi[e].forEach(function(e){ae(e.name,e.config)}),se(e),Ci[e]}return delete Ci[e],null}function re(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Si;if(!o(e)){if(t=ne(e))return t;e=[e]}return function(e){for(var t,i,n,s,a=0;a<e.length;){for(t=(s=ie(e[a]).split("-")).length,i=(i=ie(e[a+1]))?i.split("-"):null;0<t;){if(n=ne(s.slice(0,t).join("-")))return n;if(i&&i.length>=t&&r(s,i,!0)>=t-1)break;t--}a++}return null}(e)}function oe(e){var t,i=e._a;return i&&-2===_(e).overflow&&(t=i[ri]<0||11<i[ri]?ri:i[oi]<1||i[oi]>O(i[ai],i[ri])?oi:i[li]<0||24<i[li]||24===i[li]&&(0!==i[hi]||0!==i[ui]||0!==i[di])?li:i[hi]<0||59<i[hi]?hi:i[ui]<0||59<i[ui]?ui:i[di]<0||999<i[di]?di:-1,_(e)._overflowDayOfYear&&(t<ai||oi<t)&&(t=oi),_(e)._overflowWeeks&&-1===t&&(t=ci),_(e)._overflowWeekday&&-1===t&&(t=pi),_(e).overflow=t),e}function le(e){var t,i,n,s,a,r,o=e._i,l=Ei.exec(o)||Hi.exec(o);if(l){for(_(e).iso=!0,t=0,i=Ii.length;t<i;t++)if(Ii[t][1].exec(l[1])){s=Ii[t][0],n=!1!==Ii[t][2];break}if(null==s)return void(e._isValid=!1);if(l[3]){for(t=0,i=Fi.length;t<i;t++)if(Fi[t][1].exec(l[3])){a=(l[2]||" ")+Fi[t][0];break}if(null==a)return void(e._isValid=!1)}if(!n&&null!=a)return void(e._isValid=!1);if(l[4]){if(!Ai.exec(l[4]))return void(e._isValid=!1);r="Z"}e._f=s+(a||"")+(r||""),ce(e)}else e._isValid=!1}function he(e){var t,i,n,s,a,r,o,l={" GMT":" +0000"," EDT":" -0400"," EST":" -0500"," CDT":" -0500"," CST":" -0600"," MDT":" -0600"," MST":" -0700"," PDT":" -0700"," PST":" -0800"};if(t=e._i.replace(/\([^\)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s|\s$/g,""),i=Pi.exec(t)){if(n=i[1]?"ddd"+(5===i[1].length?", ":" "):"",s="D MMM "+(10<i[2].length?"YYYY ":"YY "),a="HH:mm"+(i[4]?":ss":""),i[1]){var h=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][new Date(i[2]).getDay()];if(i[1].substr(0,3)!==h)return _(e).weekdayMismatch=!0,void(e._isValid=!1)}switch(i[5].length){case 2:0===o?r=" +0000":r=((o="YXWVUTSRQPONZABCDEFGHIKLM".indexOf(i[5][1].toUpperCase())-12)<0?" -":" +")+(""+o).replace(/^-?/,"0").match(/..$/)[0]+"00";break;case 4:r=l[i[5]];break;default:r=l[" GMT"]}i[5]=r,e._i=i.splice(1).join("")," ZZ",e._f=n+s+a+" ZZ",ce(e),_(e).rfc2822=!0}else e._isValid=!1}function ue(e,t,i){return null!=e?e:null!=t?t:i}function de(e){var t,i,n,s,a,r,o=[];if(!e._d){for(a=e,r=void 0,r=new Date(g.now()),n=a._useUTC?[r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate()]:[r.getFullYear(),r.getMonth(),r.getDate()],e._w&&null==e._a[oi]&&null==e._a[ri]&&function(e){var t,i,n,s,a,r,o,l;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)a=1,r=4,i=ue(t.GG,e._a[ai],J(me(),1,4).year),n=ue(t.W,1),((s=ue(t.E,1))<1||7<s)&&(l=!0);else{a=e._locale._week.dow,r=e._locale._week.doy;var h=J(me(),a,r);i=ue(t.gg,e._a[ai],h.year),n=ue(t.w,h.week),null!=t.d?((s=t.d)<0||6<s)&&(l=!0):null!=t.e?(s=t.e+a,(t.e<0||6<t.e)&&(l=!0)):s=a}n<1||n>K(i,a,r)?_(e)._overflowWeeks=!0:null!=l?_(e)._overflowWeekday=!0:(o=X(i,n,s,a,r),e._a[ai]=o.year,e._dayOfYear=o.dayOfYear)}(e),null!=e._dayOfYear&&(s=ue(e._a[ai],n[ai]),(e._dayOfYear>B(s)||0===e._dayOfYear)&&(_(e)._overflowDayOfYear=!0),i=q(s,0,e._dayOfYear),e._a[ri]=i.getUTCMonth(),e._a[oi]=i.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=n[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[li]&&0===e._a[hi]&&0===e._a[ui]&&0===e._a[di]&&(e._nextDay=!0,e._a[li]=0),e._d=(e._useUTC?q:function(e,t,i,n,s,a,r){var o=new Date(e,t,i,n,s,a,r);return e<100&&0<=e&&isFinite(o.getFullYear())&&o.setFullYear(e),o}).apply(null,o),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[li]=24)}}function ce(e){if(e._f!==g.ISO_8601)if(e._f!==g.RFC_2822){e._a=[],_(e).empty=!0;var t,i,n,s,a,r,o,l,h,u,d,c,p=""+e._i,f=p.length,m=0;for(n=I(e._f,e._locale).match($t)||[],t=0;t<n.length;t++)s=n[t],(i=(p.match($(s,e))||[])[0])&&(0<(a=p.substr(0,p.indexOf(i))).length&&_(e).unusedInput.push(a),p=p.slice(p.indexOf(i)+i.length),m+=i.length),Nt[s]?(i?_(e).empty=!1:_(e).unusedTokens.push(s),r=s,l=e,null!=(o=i)&&v(si,r)&&si[r](o,l._a,l,r)):e._strict&&!i&&_(e).unusedTokens.push(s);_(e).charsLeftOver=f-m,0<p.length&&_(e).unusedInput.push(p),e._a[li]<=12&&!0===_(e).bigHour&&0<e._a[li]&&(_(e).bigHour=void 0),_(e).parsedDateParts=e._a.slice(0),_(e).meridiem=e._meridiem,e._a[li]=(h=e._locale,u=e._a[li],null==(d=e._meridiem)?u:null!=h.meridiemHour?h.meridiemHour(u,d):(null!=h.isPM&&((c=h.isPM(d))&&u<12&&(u+=12),c||12!==u||(u=0)),u)),de(e),oe(e)}else he(e);else le(e)}function pe(e){var t,i,n,s,a=e._i,r=e._f;return e._locale=e._locale||re(e._l),null===a||void 0===r&&""===a?y({nullInput:!0}):("string"==typeof a&&(e._i=a=e._locale.preparse(a)),w(a)?new x(oe(a)):(d(a)?e._d=a:o(r)?function(e){var t,i,n,s,a;if(0===e._f.length)return _(e).invalidFormat=!0,e._d=new Date(NaN);for(s=0;s<e._f.length;s++)a=0,t=b({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[s],ce(t),m(t)&&(a+=_(t).charsLeftOver,a+=10*_(t).unusedTokens.length,_(t).score=a,(null==n||a<n)&&(n=a,i=t));p(e,i||t)}(e):r?ce(e):h(i=(t=e)._i)?t._d=new Date(g.now()):d(i)?t._d=new Date(i.valueOf()):"string"==typeof i?(n=t,null!==(s=$i.exec(n._i))?n._d=new Date(+s[1]):(le(n),!1===n._isValid&&(delete n._isValid,he(n),!1===n._isValid&&(delete n._isValid,g.createFromInputFallback(n))))):o(i)?(t._a=c(i.slice(0),function(e){return parseInt(e,10)}),de(t)):l(i)?function(e){if(!e._d){var t=D(e._i);e._a=c([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),de(e)}}(t):u(i)?t._d=new Date(i):g.createFromInputFallback(t),m(e)||(e._d=null),e))}function fe(e,t,i,n,s){var a,r={};return!0!==i&&!1!==i||(n=i,i=void 0),(l(e)&&function(e){var t;for(t in e)return!1;return!0}(e)||o(e)&&0===e.length)&&(e=void 0),r._isAMomentObject=!0,r._useUTC=r._isUTC=s,r._l=i,r._i=e,r._f=t,r._strict=n,(a=new x(oe(pe(r))))._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function me(e,t,i,n){return fe(e,t,i,n,!1)}function ge(e,t){var i,n;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return me();for(i=t[0],n=1;n<t.length;++n)t[n].isValid()&&!t[n][e](i)||(i=t[n]);return i}function ve(e){var t=D(e),i=t.year||0,n=t.quarter||0,s=t.month||0,a=t.week||0,r=t.day||0,o=t.hour||0,l=t.minute||0,h=t.second||0,u=t.millisecond||0;this._isValid=function(e){for(var t in e)if(-1===Oi.indexOf(t)||null!=e[t]&&isNaN(e[t]))return!1;for(var i=!1,n=0;n<Oi.length;++n)if(e[Oi[n]]){if(i)return!1;parseFloat(e[Oi[n]])!==j(e[Oi[n]])&&(i=!0)}return!0}(t),this._milliseconds=+u+1e3*h+6e4*l+1e3*o*60*60,this._days=+r+7*a,this._months=+s+3*n+12*i,this._data={},this._locale=re(),this._bubble()}function _e(e){return e instanceof ve}function ye(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function be(e,i){H(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+E(~~(e/60),2)+i+E(~~e%60,2)})}function xe(e,t){var i=(t||"").match(e);if(null===i)return null;var n=((i[i.length-1]||[])+"").match(Ri)||["-",0,0],s=60*n[1]+j(n[2]);return 0===s?0:"+"===n[0]?s:-s}function we(e,t){var i,n;return t._isUTC?(i=t.clone(),n=(w(e)||d(e)?e.valueOf():me(e).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+n),g.updateOffset(i,!1),i):me(e).local()}function Me(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function je(){return!!this.isValid()&&this._isUTC&&0===this._offset}function ke(e,t){var i,n,s,a,r,o,l=e,h=null;return _e(e)?l={ms:e._milliseconds,d:e._days,M:e._months}:u(e)?(l={},t?l[t]=e:l.milliseconds=e):(h=Wi.exec(e))?(i="-"===h[1]?-1:1,l={y:0,d:j(h[oi])*i,h:j(h[li])*i,m:j(h[hi])*i,s:j(h[ui])*i,ms:j(ye(1e3*h[di]))*i}):(h=Vi.exec(e))?(i="-"===h[1]?-1:1,l={y:Le(h[2],i),M:Le(h[3],i),w:Le(h[4],i),d:Le(h[5],i),h:Le(h[6],i),m:Le(h[7],i),s:Le(h[8],i)}):null==l?l={}:"object"==typeof l&&("from"in l||"to"in l)&&(a=me(l.from),r=me(l.to),s=a.isValid()&&r.isValid()?(r=we(r,a),a.isBefore(r)?o=Se(a,r):((o=Se(r,a)).milliseconds=-o.milliseconds,o.months=-o.months),o):{milliseconds:0,months:0},(l={}).ms=s.milliseconds,l.M=s.months),n=new ve(l),_e(e)&&v(e,"_locale")&&(n._locale=e._locale),n}function Le(e,t){var i=e&&parseFloat(e.replace(",","."));return(isNaN(i)?0:i)*t}function Se(e,t){var i={milliseconds:0,months:0};return i.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=+t-+e.clone().add(i.months,"M"),i}function Te(n,s){return function(e,t){var i;return null===t||isNaN(+t)||(a(s,"moment()."+s+"(period, number) is deprecated. Please use moment()."+s+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=e,e=t,t=i),De(this,ke(e="string"==typeof e?+e:e,t),n),this}}function De(e,t,i,n){var s=t._milliseconds,a=ye(t._days),r=ye(t._months);e.isValid()&&(n=null==n||n,s&&e._d.setTime(e._d.valueOf()+s*i),a&&Y(e,"Date",C(e,"Date")+a*i),r&&R(e,C(e,"Month")+r*i),n&&g.updateOffset(e,a||r))}function Ce(e){var t;return void 0===e?this._locale._abbr:(null!=(t=re(e))&&(this._locale=t),this)}function Ye(){return this._locale}function Ee(e,t){H(0,[e,e.length],0,t)}function He(e,t,i,n,s){var a;return null==e?J(this,n,s).year:((a=K(e,n,s))<t&&(t=a),function(e,t,i,n,s){var a=X(e,t,i,n,s),r=q(a.year,0,a.dayOfYear);return this.year(r.getUTCFullYear()),this.month(r.getUTCMonth()),this.date(r.getUTCDate()),this}.call(this,e,t,i,n,s))}function Ae(e,t){t[di]=j(1e3*("0."+e))}function Ie(e){return e}function Fe(e,t,i,n){var s=re(),a=f().set(n,t);return s[i](a,e)}function $e(e,t,i){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return Fe(e,t,i,"month");var n,s=[];for(n=0;n<12;n++)s[n]=Fe(e,n,i,"month");return s}function Pe(e,t,i,n){"boolean"==typeof e||(i=t=e,e=!1),u(t)&&(i=t,t=void 0),t=t||"";var s=re(),a=e?s._week.dow:0;if(null!=i)return Fe(t,(i+a)%7,n,"day");var r,o=[];for(r=0;r<7;r++)o[r]=Fe(t,(r+a)%7,n,"day");return o}function ze(e,t,i,n){var s=ke(t,i);return e._milliseconds+=n*s._milliseconds,e._days+=n*s._days,e._months+=n*s._months,e._bubble()}function Ne(e){return e<0?Math.floor(e):Math.ceil(e)}function Oe(e){return 4800*e/146097}function Re(e){return 146097*e/4800}function We(e){return function(){return this.as(e)}}function Ve(e){return function(){return this.isValid()?this._data[e]:NaN}}function Be(){if(!this.isValid())return this.localeData().invalidDate();var e,t,i=bn(this._milliseconds)/1e3,n=bn(this._days),s=bn(this._months);t=M((e=M(i/60))/60),i%=60,e%=60;var a=M(s/12),r=s%=12,o=n,l=t,h=e,u=i,d=this.asSeconds();return d?(d<0?"-":"")+"P"+(a?a+"Y":"")+(r?r+"M":"")+(o?o+"D":"")+(l||h||u?"T":"")+(l?l+"H":"")+(h?h+"M":"")+(u?u+"S":""):"P0D"}function Ue(e,t,i){var n,s;return"m"===i?t?"хвіліна":"хвіліну":"h"===i?t?"гадзіна":"гадзіну":e+" "+(n=+e,s={mm:t?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:t?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[i].split("_"),n%10==1&&n%100!=11?s[0]:2<=n%10&&n%10<=4&&(n%100<10||20<=n%100)?s[1]:s[2])}function qe(e,t,i){var n,s,a;return e+" "+(n={mm:"munutenn",MM:"miz",dd:"devezh"}[i],2===e?void 0===(a={m:"v",b:"v",d:"z"})[(s=n).charAt(0)]?s:a[s.charAt(0)]+s.substring(1):n)}function Ge(e,t,i){var n=e+" ";switch(i){case"m":return t?"jedna minuta":"jedne minute";case"mm":return n+(1===e?"minuta":2===e||3===e||4===e?"minute":"minuta");case"h":return t?"jedan sat":"jednog sata";case"hh":return n+(1===e?"sat":2===e||3===e||4===e?"sata":"sati");case"dd":return n+(1===e?"dan":"dana");case"MM":return n+(1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci");case"yy":return n+(1===e?"godina":2===e||3===e||4===e?"godine":"godina")}}function Xe(e){return 1<e&&e<5&&1!=~~(e/10)}function Je(e,t,i,n){var s=e+" ";switch(i){case"s":return t||n?"pár sekund":"pár sekundami";case"m":return t?"minuta":n?"minutu":"minutou";case"mm":return t||n?s+(Xe(e)?"minuty":"minut"):s+"minutami";case"h":return t?"hodina":n?"hodinu":"hodinou";case"hh":return t||n?s+(Xe(e)?"hodiny":"hodin"):s+"hodinami";case"d":return t||n?"den":"dnem";case"dd":return t||n?s+(Xe(e)?"dny":"dní"):s+"dny";case"M":return t||n?"měsíc":"měsícem";case"MM":return t||n?s+(Xe(e)?"měsíce":"měsíců"):s+"měsíci";case"y":return t||n?"rok":"rokem";case"yy":return t||n?s+(Xe(e)?"roky":"let"):s+"lety"}}function Ke(e,t,i,n){var s={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?s[i][0]:s[i][1]}function Ze(e,t,i,n){var s={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?s[i][0]:s[i][1]}function Qe(e,t,i,n){var s={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?s[i][0]:s[i][1]}function et(e,t,i,n){var s={s:["mõne sekundi","mõni sekund","paar sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return t?s[i][2]?s[i][2]:s[i][1]:n?s[i][0]:s[i][1]}function tt(e,t,i,n){var s,a,r="";switch(i){case"s":return n?"muutaman sekunnin":"muutama sekunti";case"m":return n?"minuutin":"minuutti";case"mm":r=n?"minuutin":"minuuttia";break;case"h":return n?"tunnin":"tunti";case"hh":r=n?"tunnin":"tuntia";break;case"d":return n?"päivän":"päivä";case"dd":r=n?"päivän":"päivää";break;case"M":return n?"kuukauden":"kuukausi";case"MM":r=n?"kuukauden":"kuukautta";break;case"y":return n?"vuoden":"vuosi";case"yy":r=n?"vuoden":"vuotta"}return a=n,((s=e)<10?a?Kn[s]:Jn[s]:s)+" "+r}function it(e,t,i,n){var s={s:["thodde secondanim","thodde second"],m:["eka mintan","ek minute"],mm:[e+" mintanim",e+" mintam"],h:["eka horan","ek hor"],hh:[e+" horanim",e+" hor"],d:["eka disan","ek dis"],dd:[e+" disanim",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineanim",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsanim",e+" vorsam"]};return t?s[i][0]:s[i][1]}function nt(e,t,i){var n=e+" ";switch(i){case"m":return t?"jedna minuta":"jedne minute";case"mm":return n+(1===e?"minuta":2===e||3===e||4===e?"minute":"minuta");case"h":return t?"jedan sat":"jednog sata";case"hh":return n+(1===e?"sat":2===e||3===e||4===e?"sata":"sati");case"dd":return n+(1===e?"dan":"dana");case"MM":return n+(1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci");case"yy":return n+(1===e?"godina":2===e||3===e||4===e?"godine":"godina")}}function st(e,t,i,n){var s=e;switch(i){case"s":return n||t?"néhány másodperc":"néhány másodperce";case"m":return"egy"+(n||t?" perc":" perce");case"mm":return s+(n||t?" perc":" perce");case"h":return"egy"+(n||t?" óra":" órája");case"hh":return s+(n||t?" óra":" órája");case"d":return"egy"+(n||t?" nap":" napja");case"dd":return s+(n||t?" nap":" napja");case"M":return"egy"+(n||t?" hónap":" hónapja");case"MM":return s+(n||t?" hónap":" hónapja");case"y":return"egy"+(n||t?" év":" éve");case"yy":return s+(n||t?" év":" éve")}return""}function at(e){return(e?"":"[múlt] ")+"["+is[this.day()]+"] LT[-kor]"}function rt(e){return e%100==11||e%10!=1}function ot(e,t,i,n){var s=e+" ";switch(i){case"s":return t||n?"nokkrar sekúndur":"nokkrum sekúndum";case"m":return t?"mínúta":"mínútu";case"mm":return rt(e)?s+(t||n?"mínútur":"mínútum"):t?s+"mínúta":s+"mínútu";case"hh":return rt(e)?s+(t||n?"klukkustundir":"klukkustundum"):s+"klukkustund";case"d":return t?"dagur":n?"dag":"degi";case"dd":return rt(e)?t?s+"dagar":s+(n?"daga":"dögum"):t?s+"dagur":s+(n?"dag":"degi");case"M":return t?"mánuður":n?"mánuð":"mánuði";case"MM":return rt(e)?t?s+"mánuðir":s+(n?"mánuði":"mánuðum"):t?s+"mánuður":s+(n?"mánuð":"mánuði");case"y":return t||n?"ár":"ári";case"yy":return rt(e)?s+(t||n?"ár":"árum"):s+(t||n?"ár":"ári")}}function lt(e,t,i,n){var s={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?s[i][0]:s[i][1]}function ht(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10;return ht(0===t?e/10:t)}if(e<1e4){for(;10<=e;)e/=10;return ht(e)}return ht(e/=1e3)}function ut(e,t,i,n){return t?ct(i)[0]:n?ct(i)[1]:ct(i)[2]}function dt(e){return e%10==0||10<e&&e<20}function ct(e){return os[e].split("_")}function pt(e,t,i,n){var s=e+" ";return 1===e?s+ut(0,t,i[0],n):t?s+(dt(e)?ct(i)[1]:ct(i)[0]):n?s+ct(i)[1]:s+(dt(e)?ct(i)[1]:ct(i)[2])}function ft(e,t,i){return i?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function mt(e,t,i){return e+" "+ft(ls[i],e,t)}function gt(e,t,i){return ft(ls[i],e,t)}function vt(e,t,i,n){var s="";if(t)switch(i){case"s":s="काही सेकंद";break;case"m":s="एक मिनिट";break;case"mm":s="%d मिनिटे";break;case"h":s="एक तास";break;case"hh":s="%d तास";break;case"d":s="एक दिवस";break;case"dd":s="%d दिवस";break;case"M":s="एक महिना";break;case"MM":s="%d महिने";break;case"y":s="एक वर्ष";break;case"yy":s="%d वर्षे"}else switch(i){case"s":s="काही सेकंदां";break;case"m":s="एका मिनिटा";break;case"mm":s="%d मिनिटां";break;case"h":s="एका तासा";break;case"hh":s="%d तासां";break;case"d":s="एका दिवसा";break;case"dd":s="%d दिवसां";break;case"M":s="एका महिन्या";break;case"MM":s="%d महिन्यां";break;case"y":s="एका वर्षा";break;case"yy":s="%d वर्षां"}return s.replace(/%d/i,e)}function _t(e){return e%10<5&&1<e%10&&~~(e/10)%10!=1}function yt(e,t,i){var n=e+" ";switch(i){case"m":return t?"minuta":"minutę";case"mm":return n+(_t(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return n+(_t(e)?"godziny":"godzin");case"MM":return n+(_t(e)?"miesiące":"miesięcy");case"yy":return n+(_t(e)?"lata":"lat")}}function bt(e,t,i){var n=" ";return(20<=e%100||100<=e&&e%100==0)&&(n=" de "),e+n+{mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"}[i]}function xt(e,t,i){var n,s;return"m"===i?t?"минута":"минуту":e+" "+(n=+e,s={mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[i].split("_"),n%10==1&&n%100!=11?s[0]:2<=n%10&&n%10<=4&&(n%100<10||20<=n%100)?s[1]:s[2])}function wt(e){return 1<e&&e<5}function Mt(e,t,i,n){var s=e+" ";switch(i){case"s":return t||n?"pár sekúnd":"pár sekundami";case"m":return t?"minúta":n?"minútu":"minútou";case"mm":return t||n?s+(wt(e)?"minúty":"minút"):s+"minútami";case"h":return t?"hodina":n?"hodinu":"hodinou";case"hh":return t||n?s+(wt(e)?"hodiny":"hodín"):s+"hodinami";case"d":return t||n?"deň":"dňom";case"dd":return t||n?s+(wt(e)?"dni":"dní"):s+"dňami";case"M":return t||n?"mesiac":"mesiacom";case"MM":return t||n?s+(wt(e)?"mesiace":"mesiacov"):s+"mesiacmi";case"y":return t||n?"rok":"rokom";case"yy":return t||n?s+(wt(e)?"roky":"rokov"):s+"rokmi"}}function jt(e,t,i,n){var s=e+" ";switch(i){case"s":return t||n?"nekaj sekund":"nekaj sekundami";case"m":return t?"ena minuta":"eno minuto";case"mm":return s+(1===e?t?"minuta":"minuto":2===e?t||n?"minuti":"minutama":e<5?t||n?"minute":"minutami":t||n?"minut":"minutami");case"h":return t?"ena ura":"eno uro";case"hh":return s+(1===e?t?"ura":"uro":2===e?t||n?"uri":"urama":e<5?t||n?"ure":"urami":t||n?"ur":"urami");case"d":return t||n?"en dan":"enim dnem";case"dd":return s+(1===e?t||n?"dan":"dnem":2===e?t||n?"dni":"dnevoma":t||n?"dni":"dnevi");case"M":return t||n?"en mesec":"enim mesecem";case"MM":return s+(1===e?t||n?"mesec":"mesecem":2===e?t||n?"meseca":"mesecema":e<5?t||n?"mesece":"meseci":t||n?"mesecev":"meseci");case"y":return t||n?"eno leto":"enim letom";case"yy":return s+(1===e?t||n?"leto":"letom":2===e?t||n?"leti":"letoma":e<5?t||n?"leta":"leti":t||n?"let":"leti")}}function kt(e,t,i,n){var s,a,r,o,l,h=(s=e,a=Math.floor(s%1e3/100),r=Math.floor(s%100/10),o=s%10,l="",0<a&&(l+=$s[a]+"vatlh"),0<r&&(l+=(""!==l?" ":"")+$s[r]+"maH"),0<o&&(l+=(""!==l?" ":"")+$s[o]),""===l?"pagh":l);switch(i){case"mm":return h+" tup";case"hh":return h+" rep";case"dd":return h+" jaj";case"MM":return h+" jar";case"yy":return h+" DIS"}}function Lt(e,t,i,n){var s={s:["viensas secunds","'iensas secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts",e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return n?s[i][0]:t?s[i][0]:s[i][1]}function St(e,t,i){var n,s;return"m"===i?t?"хвилина":"хвилину":"h"===i?t?"година":"годину":e+" "+(n=+e,s={mm:t?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:t?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[i].split("_"),n%10==1&&n%100!=11?s[0]:2<=n%10&&n%10<=4&&(n%100<10||20<=n%100)?s[1]:s[2])}function Tt(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}var Dt,Ct=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),i=t.length>>>0,n=0;n<i;n++)if(n in t&&e.call(this,t[n],n,t))return!0;return!1},Yt=g.momentProperties=[],Et=!1,Ht={};g.suppressDeprecationWarnings=!1,g.deprecationHandler=null;var At=Object.keys?Object.keys:function(e){var t,i=[];for(t in e)v(e,t)&&i.push(t);return i},It={},Ft={},$t=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Pt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,zt={},Nt={},Ot=/\d/,Rt=/\d\d/,Wt=/\d{3}/,Vt=/\d{4}/,Bt=/[+-]?\d{6}/,Ut=/\d\d?/,qt=/\d\d\d\d?/,Gt=/\d\d\d\d\d\d?/,Xt=/\d{1,3}/,Jt=/\d{1,4}/,Kt=/[+-]?\d{1,6}/,Zt=/\d+/,Qt=/[+-]?\d+/,ei=/Z|[+-]\d\d:?\d\d/gi,ti=/Z|[+-]\d\d(?::?\d\d)?/gi,ii=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,ni={},si={},ai=0,ri=1,oi=2,li=3,hi=4,ui=5,di=6,ci=7,pi=8,fi=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};H("M",["MM",2],"Mo",function(){return this.month()+1}),H("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),H("MMMM",0,0,function(e){return this.localeData().months(this,e)}),t("month","M"),i("month",8),F("M",Ut),F("MM",Ut,Rt),F("MMM",function(e,t){return t.monthsShortRegex(e)}),F("MMMM",function(e,t){return t.monthsRegex(e)}),z(["M","MM"],function(e,t){t[ri]=j(e)-1}),z(["MMM","MMMM"],function(e,t,i,n){var s=i._locale.monthsParse(e,n,i._strict);null!=s?t[ri]=s:_(i).invalidMonth=e});var mi=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,gi="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),vi="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),_i=ii,yi=ii;H("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),H(0,["YY",2],0,function(){return this.year()%100}),H(0,["YYYY",4],0,"year"),H(0,["YYYYY",5],0,"year"),H(0,["YYYYYY",6,!0],0,"year"),t("year","y"),i("year",1),F("Y",Qt),F("YY",Ut,Rt),F("YYYY",Jt,Vt),F("YYYYY",Kt,Bt),F("YYYYYY",Kt,Bt),z(["YYYYY","YYYYYY"],ai),z("YYYY",function(e,t){t[ai]=2===e.length?g.parseTwoDigitYear(e):j(e)}),z("YY",function(e,t){t[ai]=g.parseTwoDigitYear(e)}),z("Y",function(e,t){t[ai]=parseInt(e,10)}),g.parseTwoDigitYear=function(e){return j(e)+(68<j(e)?1900:2e3)};var bi=n("FullYear",!0);H("w",["ww",2],"wo","week"),H("W",["WW",2],"Wo","isoWeek"),t("week","w"),t("isoWeek","W"),i("week",5),i("isoWeek",5),F("w",Ut),F("ww",Ut,Rt),F("W",Ut),F("WW",Ut,Rt),N(["w","ww","W","WW"],function(e,t,i,n){t[n.substr(0,1)]=j(e)});H("d",0,"do","day"),H("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),H("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),H("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),H("e",0,0,"weekday"),H("E",0,0,"isoWeekday"),t("day","d"),t("weekday","e"),t("isoWeekday","E"),i("day",11),i("weekday",11),i("isoWeekday",11),F("d",Ut),F("e",Ut),F("E",Ut),F("dd",function(e,t){return t.weekdaysMinRegex(e)}),F("ddd",function(e,t){return t.weekdaysShortRegex(e)}),F("dddd",function(e,t){return t.weekdaysRegex(e)}),N(["dd","ddd","dddd"],function(e,t,i,n){var s=i._locale.weekdaysParse(e,n,i._strict);null!=s?t.d=s:_(i).invalidWeekday=e}),N(["d","e","E"],function(e,t,i,n){t[n]=j(e)});var xi="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),wi="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Mi="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ji=ii,ki=ii,Li=ii;H("H",["HH",2],0,"hour"),H("h",["hh",2],0,Q),H("k",["kk",2],0,function(){return this.hours()||24}),H("hmm",0,0,function(){return""+Q.apply(this)+E(this.minutes(),2)}),H("hmmss",0,0,function(){return""+Q.apply(this)+E(this.minutes(),2)+E(this.seconds(),2)}),H("Hmm",0,0,function(){return""+this.hours()+E(this.minutes(),2)}),H("Hmmss",0,0,function(){return""+this.hours()+E(this.minutes(),2)+E(this.seconds(),2)}),ee("a",!0),ee("A",!1),t("hour","h"),i("hour",13),F("a",te),F("A",te),F("H",Ut),F("h",Ut),F("k",Ut),F("HH",Ut,Rt),F("hh",Ut,Rt),F("kk",Ut,Rt),F("hmm",qt),F("hmmss",Gt),F("Hmm",qt),F("Hmmss",Gt),z(["H","HH"],li),z(["k","kk"],function(e,t,i){var n=j(e);t[li]=24===n?0:n}),z(["a","A"],function(e,t,i){i._isPm=i._locale.isPM(e),i._meridiem=e}),z(["h","hh"],function(e,t,i){t[li]=j(e),_(i).bigHour=!0}),z("hmm",function(e,t,i){var n=e.length-2;t[li]=j(e.substr(0,n)),t[hi]=j(e.substr(n)),_(i).bigHour=!0}),z("hmmss",function(e,t,i){var n=e.length-4,s=e.length-2;t[li]=j(e.substr(0,n)),t[hi]=j(e.substr(n,2)),t[ui]=j(e.substr(s)),_(i).bigHour=!0}),z("Hmm",function(e,t,i){var n=e.length-2;t[li]=j(e.substr(0,n)),t[hi]=j(e.substr(n))}),z("Hmmss",function(e,t,i){var n=e.length-4,s=e.length-2;t[li]=j(e.substr(0,n)),t[hi]=j(e.substr(n,2)),t[ui]=j(e.substr(s))});var Si,Ti=n("Hours",!0),Di={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:gi,monthsShort:vi,week:{dow:0,doy:6},weekdays:xi,weekdaysMin:Mi,weekdaysShort:wi,meridiemParse:/[ap]\.?m?\.?/i},Ci={},Yi={},Ei=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Hi=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ai=/Z|[+-]\d\d(?::?\d\d)?/,Ii=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Fi=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],$i=/^\/?Date\((\-?\d+)/i,Pi=/^((?:Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d?\d\s(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(?:\d\d)?\d\d\s)(\d\d:\d\d)(\:\d\d)?(\s(?:UT|GMT|[ECMP][SD]T|[A-IK-Za-ik-z]|[+-]\d{4}))$/;g.createFromInputFallback=e("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),g.ISO_8601=function(){},g.RFC_2822=function(){};var zi=e("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=me.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:y()}),Ni=e("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=me.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:y()}),Oi=["year","quarter","month","week","day","hour","minute","second","millisecond"];be("Z",":"),be("ZZ",""),F("Z",ti),F("ZZ",ti),z(["Z","ZZ"],function(e,t,i){i._useUTC=!0,i._tzm=xe(ti,e)});var Ri=/([\+\-]|\d\d)/gi;g.updateOffset=function(){};var Wi=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Vi=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;ke.fn=ve.prototype,ke.invalid=function(){return ke(NaN)};var Bi=Te(1,"add"),Ui=Te(-1,"subtract");g.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",g.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var qi=e("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});H(0,["gg",2],0,function(){return this.weekYear()%100}),H(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Ee("gggg","weekYear"),Ee("ggggg","weekYear"),Ee("GGGG","isoWeekYear"),Ee("GGGGG","isoWeekYear"),t("weekYear","gg"),t("isoWeekYear","GG"),i("weekYear",1),i("isoWeekYear",1),F("G",Qt),F("g",Qt),F("GG",Ut,Rt),F("gg",Ut,Rt),F("GGGG",Jt,Vt),F("gggg",Jt,Vt),F("GGGGG",Kt,Bt),F("ggggg",Kt,Bt),N(["gggg","ggggg","GGGG","GGGGG"],function(e,t,i,n){t[n.substr(0,2)]=j(e)}),N(["gg","GG"],function(e,t,i,n){t[n]=g.parseTwoDigitYear(e)}),H("Q",0,"Qo","quarter"),t("quarter","Q"),i("quarter",7),F("Q",Ot),z("Q",function(e,t){t[ri]=3*(j(e)-1)}),H("D",["DD",2],"Do","date"),t("date","D"),i("date",9),F("D",Ut),F("DD",Ut,Rt),F("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),z(["D","DD"],oi),z("Do",function(e,t){t[oi]=j(e.match(Ut)[0])});var Gi=n("Date",!0);H("DDD",["DDDD",3],"DDDo","dayOfYear"),t("dayOfYear","DDD"),i("dayOfYear",4),F("DDD",Xt),F("DDDD",Wt),z(["DDD","DDDD"],function(e,t,i){i._dayOfYear=j(e)}),H("m",["mm",2],0,"minute"),t("minute","m"),i("minute",14),F("m",Ut),F("mm",Ut,Rt),z(["m","mm"],hi);var Xi=n("Minutes",!1);H("s",["ss",2],0,"second"),t("second","s"),i("second",15),F("s",Ut),F("ss",Ut,Rt),z(["s","ss"],ui);var Ji,Ki=n("Seconds",!1);for(H("S",0,0,function(){return~~(this.millisecond()/100)}),H(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),H(0,["SSS",3],0,"millisecond"),H(0,["SSSS",4],0,function(){return 10*this.millisecond()}),H(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),H(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),H(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),H(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),H(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),t("millisecond","ms"),i("millisecond",16),F("S",Xt,Ot),F("SS",Xt,Rt),F("SSS",Xt,Wt),Ji="SSSS";Ji.length<=9;Ji+="S")F(Ji,Zt);for(Ji="S";Ji.length<=9;Ji+="S")z(Ji,Ae);var Zi=n("Milliseconds",!1);H("z",0,0,"zoneAbbr"),H("zz",0,0,"zoneName");var Qi=x.prototype;Qi.add=Bi,Qi.calendar=function(e,t){var i=e||me(),n=we(i,this).startOf("day"),s=g.calendarFormat(this,n)||"sameElse",a=t&&(L(t[s])?t[s].call(this,i):t[s]);return this.format(a||this.localeData().calendar(s,this,me(i)))},Qi.clone=function(){return new x(this)},Qi.diff=function(e,t,i){var n,s,a,r,o,l,h,u,d,c;return this.isValid()&&(n=we(e,this)).isValid()?(s=6e4*(n.utcOffset()-this.utcOffset()),"year"===(t=T(t))||"month"===t||"quarter"===t?(o=this,d=12*((l=n).year()-o.year())+(l.month()-o.month()),c=o.clone().add(d,"months"),l-c<0?(h=o.clone().add(d-1,"months"),u=(l-c)/(c-h)):(h=o.clone().add(d+1,"months"),u=(l-c)/(h-c)),r=-(d+u)||0,"quarter"===t?r/=3:"year"===t&&(r/=12)):(a=this-n,r="second"===t?a/1e3:"minute"===t?a/6e4:"hour"===t?a/36e5:"day"===t?(a-s)/864e5:"week"===t?(a-s)/6048e5:a),i?r:M(r)):NaN},Qi.endOf=function(e){return void 0===(e=T(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))},Qi.format=function(e){e||(e=this.isUtc()?g.defaultFormatUtc:g.defaultFormat);var t=A(this,e);return this.localeData().postformat(t)},Qi.from=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||me(e).isValid())?ke({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Qi.fromNow=function(e){return this.from(me(),e)},Qi.to=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||me(e).isValid())?ke({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Qi.toNow=function(e){return this.to(me(),e)},Qi.get=function(e){return L(this[e=T(e)])?this[e]():this},Qi.invalidAt=function(){return _(this).overflow},Qi.isAfter=function(e,t){var i=w(e)?e:me(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=T(h(t)?"millisecond":t))?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(t).valueOf())},Qi.isBefore=function(e,t){var i=w(e)?e:me(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=T(h(t)?"millisecond":t))?this.valueOf()<i.valueOf():this.clone().endOf(t).valueOf()<i.valueOf())},Qi.isBetween=function(e,t,i,n){return("("===(n=n||"()")[0]?this.isAfter(e,i):!this.isBefore(e,i))&&(")"===n[1]?this.isBefore(t,i):!this.isAfter(t,i))},Qi.isSame=function(e,t){var i,n=w(e)?e:me(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=T(t||"millisecond"))?this.valueOf()===n.valueOf():(i=n.valueOf(),this.clone().startOf(t).valueOf()<=i&&i<=this.clone().endOf(t).valueOf()))},Qi.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},Qi.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},Qi.isValid=function(){return m(this)},Qi.lang=qi,Qi.locale=Ce,Qi.localeData=Ye,Qi.max=Ni,Qi.min=zi,Qi.parsingFlags=function(){return p({},_(this))},Qi.set=function(e,t){if("object"==typeof e)for(var i=function(e){var t=[];for(var i in e)t.push({unit:i,priority:Ft[i]});return t.sort(function(e,t){return e.priority-t.priority}),t}(e=D(e)),n=0;n<i.length;n++)this[i[n].unit](e[i[n].unit]);else if(L(this[e=T(e)]))return this[e](t);return this},Qi.startOf=function(e){switch(e=T(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this},Qi.subtract=Ui,Qi.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]},Qi.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}},Qi.toDate=function(){return new Date(this.valueOf())},Qi.toISOString=function(){if(!this.isValid())return null;var e=this.clone().utc();return e.year()<0||9999<e.year()?A(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):L(Date.prototype.toISOString)?this.toDate().toISOString():A(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]")},Qi.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var i="["+e+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",s=t+'[")]';return this.format(i+n+"-MM-DD[T]HH:mm:ss.SSS"+s)},Qi.toJSON=function(){return this.isValid()?this.toISOString():null},Qi.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Qi.unix=function(){return Math.floor(this.valueOf()/1e3)},Qi.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Qi.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Qi.year=bi,Qi.isLeapYear=function(){return U(this.year())},Qi.weekYear=function(e){return He.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Qi.isoWeekYear=function(e){return He.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},Qi.quarter=Qi.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},Qi.month=W,Qi.daysInMonth=function(){return O(this.year(),this.month())},Qi.week=Qi.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},Qi.isoWeek=Qi.isoWeeks=function(e){var t=J(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},Qi.weeksInYear=function(){var e=this.localeData()._week;return K(this.year(),e.dow,e.doy)},Qi.isoWeeksInYear=function(){return K(this.year(),1,4)},Qi.date=Gi,Qi.day=Qi.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t,i,n=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(t=e,i=this.localeData(),e="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=i.weekdaysParse(t))?t:null:parseInt(t,10),this.add(e-n,"d")):n},Qi.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},Qi.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=(i=e,n=this.localeData(),"string"==typeof i?n.weekdaysParse(i)%7||7:isNaN(i)?null:i);return this.day(this.day()%7?t:t-7)}var i,n;return this.day()||7},Qi.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},Qi.hour=Qi.hours=Ti,Qi.minute=Qi.minutes=Xi,Qi.second=Qi.seconds=Ki,Qi.millisecond=Qi.milliseconds=Zi,Qi.utcOffset=function(e,t,i){var n,s=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=xe(ti,e)))return this}else Math.abs(e)<16&&!i&&(e*=60);return!this._isUTC&&t&&(n=Me(this)),this._offset=e,this._isUTC=!0,null!=n&&this.add(n,"m"),s!==e&&(!t||this._changeInProgress?De(this,ke(e-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,g.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?s:Me(this)},Qi.utc=function(e){return this.utcOffset(0,e)},Qi.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Me(this),"m")),this},Qi.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=xe(ei,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},Qi.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?me(e).utcOffset():0,(this.utcOffset()-e)%60==0)},Qi.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Qi.isLocal=function(){return!!this.isValid()&&!this._isUTC},Qi.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Qi.isUtc=je,Qi.isUTC=je,Qi.zoneAbbr=function(){return this._isUTC?"UTC":""},Qi.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Qi.dates=e("dates accessor is deprecated. Use date instead.",Gi),Qi.months=e("months accessor is deprecated. Use month instead",W),Qi.years=e("years accessor is deprecated. Use year instead",bi),Qi.zone=e("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),Qi.isDSTShifted=e("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!h(this._isDSTShifted))return this._isDSTShifted;var e={};if(b(e,this),(e=pe(e))._a){var t=e._isUTC?f(e._a):me(e._a);this._isDSTShifted=this.isValid()&&0<r(e._a,t.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted});var en=S.prototype;en.calendar=function(e,t,i){var n=this._calendar[e]||this._calendar.sameElse;return L(n)?n.call(t,i):n},en.longDateFormat=function(e){var t=this._longDateFormat[e],i=this._longDateFormat[e.toUpperCase()];return t||!i?t:(this._longDateFormat[e]=i.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},en.invalidDate=function(){return this._invalidDate},en.ordinal=function(e){return this._ordinal.replace("%d",e)},en.preparse=Ie,en.postformat=Ie,en.relativeTime=function(e,t,i,n){var s=this._relativeTime[i];return L(s)?s(e,t,i,n):s.replace(/%d/i,e)},en.pastFuture=function(e,t){var i=this._relativeTime[0<e?"future":"past"];return L(i)?i(t):i.replace(/%s/i,t)},en.set=function(e){var t,i;for(i in e)L(t=e[i])?this[i]=t:this["_"+i]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},en.months=function(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||mi).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone},en.monthsShort=function(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[mi.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},en.monthsParse=function(e,t,i){var n,s,a;if(this._monthsParseExact)return function(e,t,i){var n,s,a,r=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)a=f([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(a,"").toLocaleLowerCase();return i?-1!==(s="MMM"===t?fi.call(this._shortMonthsParse,r):fi.call(this._longMonthsParse,r))?s:null:"MMM"===t?-1!==(s=fi.call(this._shortMonthsParse,r))?s:-1!==(s=fi.call(this._longMonthsParse,r))?s:null:-1!==(s=fi.call(this._longMonthsParse,r))?s:-1!==(s=fi.call(this._shortMonthsParse,r))?s:null}.call(this,e,t,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(s=f([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(a="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[n]=new RegExp(a.replace(".",""),"i")),i&&"MMMM"===t&&this._longMonthsParse[n].test(e))return n;if(i&&"MMM"===t&&this._shortMonthsParse[n].test(e))return n;if(!i&&this._monthsParse[n].test(e))return n}},en.monthsRegex=function(e){return this._monthsParseExact?(v(this,"_monthsRegex")||V.call(this),e?this._monthsStrictRegex:this._monthsRegex):(v(this,"_monthsRegex")||(this._monthsRegex=yi),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},en.monthsShortRegex=function(e){return this._monthsParseExact?(v(this,"_monthsRegex")||V.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(v(this,"_monthsShortRegex")||(this._monthsShortRegex=_i),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},en.week=function(e){return J(e,this._week.dow,this._week.doy).week},en.firstDayOfYear=function(){return this._week.doy},en.firstDayOfWeek=function(){return this._week.dow},en.weekdays=function(e,t){return e?o(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:o(this._weekdays)?this._weekdays:this._weekdays.standalone},en.weekdaysMin=function(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin},en.weekdaysShort=function(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort},en.weekdaysParse=function(e,t,i){var n,s,a;if(this._weekdaysParseExact)return function(e,t,i){var n,s,a,r=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)a=f([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(a,"").toLocaleLowerCase();return i?-1!==(s="dddd"===t?fi.call(this._weekdaysParse,r):"ddd"===t?fi.call(this._shortWeekdaysParse,r):fi.call(this._minWeekdaysParse,r))?s:null:"dddd"===t?-1!==(s=fi.call(this._weekdaysParse,r))?s:-1!==(s=fi.call(this._shortWeekdaysParse,r))?s:-1!==(s=fi.call(this._minWeekdaysParse,r))?s:null:"ddd"===t?-1!==(s=fi.call(this._shortWeekdaysParse,r))?s:-1!==(s=fi.call(this._weekdaysParse,r))?s:-1!==(s=fi.call(this._minWeekdaysParse,r))?s:null:-1!==(s=fi.call(this._minWeekdaysParse,r))?s:-1!==(s=fi.call(this._weekdaysParse,r))?s:-1!==(s=fi.call(this._shortWeekdaysParse,r))?s:null}.call(this,e,t,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(s=f([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(s,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(s,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(s,"").replace(".",".?")+"$","i")),this._weekdaysParse[n]||(a="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[n]=new RegExp(a.replace(".",""),"i")),i&&"dddd"===t&&this._fullWeekdaysParse[n].test(e))return n;if(i&&"ddd"===t&&this._shortWeekdaysParse[n].test(e))return n;if(i&&"dd"===t&&this._minWeekdaysParse[n].test(e))return n;if(!i&&this._weekdaysParse[n].test(e))return n}},en.weekdaysRegex=function(e){return this._weekdaysParseExact?(v(this,"_weekdaysRegex")||Z.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(v(this,"_weekdaysRegex")||(this._weekdaysRegex=ji),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},en.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(v(this,"_weekdaysRegex")||Z.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(v(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ki),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},en.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(v(this,"_weekdaysRegex")||Z.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(v(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Li),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},en.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},en.meridiem=function(e,t,i){return 11<e?i?"pm":"PM":i?"am":"AM"},se("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===j(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),g.lang=e("moment.lang is deprecated. Use moment.locale instead.",se),g.langData=e("moment.langData is deprecated. Use moment.localeData instead.",re);var tn=Math.abs,nn=We("ms"),sn=We("s"),an=We("m"),rn=We("h"),on=We("d"),ln=We("w"),hn=We("M"),un=We("y"),dn=Ve("milliseconds"),cn=Ve("seconds"),pn=Ve("minutes"),fn=Ve("hours"),mn=Ve("days"),gn=Ve("months"),vn=Ve("years"),_n=Math.round,yn={ss:44,s:45,m:45,h:22,d:26,M:11},bn=Math.abs,xn=ve.prototype;xn.isValid=function(){return this._isValid},xn.abs=function(){var e=this._data;return this._milliseconds=tn(this._milliseconds),this._days=tn(this._days),this._months=tn(this._months),e.milliseconds=tn(e.milliseconds),e.seconds=tn(e.seconds),e.minutes=tn(e.minutes),e.hours=tn(e.hours),e.months=tn(e.months),e.years=tn(e.years),this},xn.add=function(e,t){return ze(this,e,t,1)},xn.subtract=function(e,t){return ze(this,e,t,-1)},xn.as=function(e){if(!this.isValid())return NaN;var t,i,n=this._milliseconds;if("month"===(e=T(e))||"year"===e)return t=this._days+n/864e5,i=this._months+Oe(t),"month"===e?i:i/12;switch(t=this._days+Math.round(Re(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;case"millisecond":return Math.floor(864e5*t)+n;default:throw new Error("Unknown unit "+e)}},xn.asMilliseconds=nn,xn.asSeconds=sn,xn.asMinutes=an,xn.asHours=rn,xn.asDays=on,xn.asWeeks=ln,xn.asMonths=hn,xn.asYears=un,xn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*j(this._months/12):NaN},xn._bubble=function(){var e,t,i,n,s,a=this._milliseconds,r=this._days,o=this._months,l=this._data;return 0<=a&&0<=r&&0<=o||a<=0&&r<=0&&o<=0||(a+=864e5*Ne(Re(o)+r),o=r=0),l.milliseconds=a%1e3,e=M(a/1e3),l.seconds=e%60,t=M(e/60),l.minutes=t%60,i=M(t/60),l.hours=i%24,o+=s=M(Oe(r+=M(i/24))),r-=Ne(Re(s)),n=M(o/12),o%=12,l.days=r,l.months=o,l.years=n,this},xn.get=function(e){return e=T(e),this.isValid()?this[e+"s"]():NaN},xn.milliseconds=dn,xn.seconds=cn,xn.minutes=pn,xn.hours=fn,xn.days=mn,xn.weeks=function(){return M(this.days()/7)},xn.months=gn,xn.years=vn,xn.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t,i,n,s,a,r,o,l,h,u,d,c=this.localeData(),p=(i=!e,n=c,s=ke(t=this).abs(),a=_n(s.as("s")),r=_n(s.as("m")),o=_n(s.as("h")),l=_n(s.as("d")),h=_n(s.as("M")),u=_n(s.as("y")),(d=a<=yn.ss&&["s",a]||a<yn.s&&["ss",a]||r<=1&&["m"]||r<yn.m&&["mm",r]||o<=1&&["h"]||o<yn.h&&["hh",o]||l<=1&&["d"]||l<yn.d&&["dd",l]||h<=1&&["M"]||h<yn.M&&["MM",h]||u<=1&&["y"]||["yy",u])[2]=i,d[3]=0<+t,d[4]=n,function(e,t,i,n,s){return s.relativeTime(t||1,!!i,e,n)}.apply(null,d));return e&&(p=c.pastFuture(+this,p)),c.postformat(p)},xn.toISOString=Be,xn.toString=Be,xn.toJSON=Be,xn.locale=Ce,xn.localeData=Ye,xn.toIsoString=e("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Be),xn.lang=qi,H("X",0,0,"unix"),H("x",0,0,"valueOf"),F("x",Qt),F("X",/[+-]?\d+(\.\d{1,3})?/),z("X",function(e,t,i){i._d=new Date(1e3*parseFloat(e,10))}),z("x",function(e,t,i){i._d=new Date(j(e))}),g.version="2.18.1",Dt=me,g.fn=Qi,g.min=function(){return ge("isBefore",[].slice.call(arguments,0))},g.max=function(){return ge("isAfter",[].slice.call(arguments,0))},g.now=function(){return Date.now?Date.now():+new Date},g.utc=f,g.unix=function(e){return me(1e3*e)},g.months=function(e,t){return $e(e,t,"months")},g.isDate=d,g.locale=se,g.invalid=y,g.duration=ke,g.isMoment=w,g.weekdays=function(e,t,i){return Pe(e,t,i,"weekdays")},g.parseZone=function(){return me.apply(null,arguments).parseZone()},g.localeData=re,g.isDuration=_e,g.monthsShort=function(e,t){return $e(e,t,"monthsShort")},g.weekdaysMin=function(e,t,i){return Pe(e,t,i,"weekdaysMin")},g.defineLocale=ae,g.updateLocale=function(e,t){if(null!=t){var i,n=Di;null!=Ci[e]&&(n=Ci[e]._config),(i=new S(t=s(n,t))).parentLocale=Ci[e],Ci[e]=i,se(e)}else null!=Ci[e]&&(null!=Ci[e].parentLocale?Ci[e]=Ci[e].parentLocale:null!=Ci[e]&&delete Ci[e]);return Ci[e]},g.locales=function(){return At(Ci)},g.weekdaysShort=function(e,t,i){return Pe(e,t,i,"weekdaysShort")},g.normalizeUnits=T,g.relativeTimeRounding=function(e){return void 0===e?_n:"function"==typeof e&&(_n=e,!0)},g.relativeTimeThreshold=function(e,t){return void 0!==yn[e]&&(void 0===t?yn[e]:(yn[e]=t,"s"===e&&(yn.ss=t-1),!0))},g.calendarFormat=function(e,t){var i=e.diff(t,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"},g.prototype=Qi,g.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,i){return e<12?i?"vm":"VM":i?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||20<=e?"ste":"de")},week:{dow:1,doy:4}}),g.defineLocale("ar-dz",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"أح_إث_ثلا_أر_خم_جم_سب".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:4}}),g.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}});var wn={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},Mn=function(e){return 0===e?0:1===e?1:2===e?2:3<=e%100&&e%100<=10?3:11<=e%100?4:5},jn={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},kn=function(r){return function(e,t,i,n){var s=Mn(e),a=jn[r][Mn(e)];return 2===s&&(a=a[t?0:1]),a.replace(/%d/i,e)}},Ln=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];g.defineLocale("ar-ly",{months:Ln,monthsShort:Ln,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,i){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:kn("s"),m:kn("m"),mm:kn("m"),h:kn("h"),hh:kn("h"),d:kn("d"),dd:kn("d"),M:kn("M"),MM:kn("M"),y:kn("y"),yy:kn("y")},preparse:function(e){return e.replace(/\u200f/g,"").replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return wn[e]}).replace(/,/g,"،")},week:{dow:6,doy:12}}),g.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:6,doy:12}});var Sn={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},Tn={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};g.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,i){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(e){return Tn[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return Sn[e]}).replace(/,/g,"،")},week:{dow:0,doy:6}}),g.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}});var Dn={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},Cn={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},Yn=function(e){return 0===e?0:1===e?1:2===e?2:3<=e%100&&e%100<=10?3:11<=e%100?4:5},En={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},Hn=function(r){return function(e,t,i,n){var s=Yn(e),a=En[r][Yn(e)];return 2===s&&(a=a[t?0:1]),a.replace(/%d/i,e)}},An=["كانون الثاني يناير","شباط فبراير","آذار مارس","نيسان أبريل","أيار مايو","حزيران يونيو","تموز يوليو","آب أغسطس","أيلول سبتمبر","تشرين الأول أكتوبر","تشرين الثاني نوفمبر","كانون الأول ديسمبر"];g.defineLocale("ar",{months:An,monthsShort:An,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,i){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:Hn("s"),m:Hn("m"),mm:Hn("m"),h:Hn("h"),hh:Hn("h"),d:Hn("d"),dd:Hn("d"),M:Hn("M"),MM:Hn("M"),y:Hn("y"),yy:Hn("y")},preparse:function(e){return e.replace(/\u200f/g,"").replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(e){return Cn[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return Dn[e]}).replace(/,/g,"،")},week:{dow:6,doy:12}});var In={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};g.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"birneçə saniyyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(e){return/^(gündüz|axşam)$/.test(e)},meridiem:function(e,t,i){return e<4?"gecə":e<12?"səhər":e<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var t=e%10;return e+(In[t]||In[e%100-t]||In[100<=e?100:null])},week:{dow:1,doy:7}}),g.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:Ue,mm:Ue,h:Ue,hh:Ue,d:"дзень",dd:Ue,M:"месяц",MM:Ue,y:"год",yy:Ue},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,i){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}}),g.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[В изминалата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[В изминалия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дни",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,i=e%100;return 0===e?e+"-ев":0===i?e+"-ен":10<i&&i<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}});var Fn={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},$n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};g.defineLocale("bn",{months:"জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,function(e){return $n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return Fn[e]})},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t&&4<=e||"দুপুর"===t&&e<5||"বিকাল"===t?e+12:e},meridiem:function(e,t,i){return e<4?"রাত":e<10?"সকাল":e<17?"দুপুর":e<20?"বিকাল":"রাত"},week:{dow:0,doy:6}});var Pn={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},zn={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};g.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(e){return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,function(e){return zn[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return Pn[e]})},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(e,t){return 12===e&&(e=0),"མཚན་མོ"===t&&4<=e||"ཉིན་གུང"===t&&e<5||"དགོང་དག"===t?e+12:e},meridiem:function(e,t,i){return e<4?"མཚན་མོ":e<10?"ཞོགས་ཀས":e<17?"ཉིན་གུང":e<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}}),g.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondennoù",m:"ur vunutenn",mm:qe,h:"un eur",hh:"%d eur",d:"un devezh",dd:qe,M:"ur miz",MM:qe,y:"ur bloaz",yy:function(e){switch(function e(t){return 9<t?e(t%10):t}(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){return e+(1===e?"añ":"vet")},week:{dow:1,doy:4}}),g.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",m:Ge,mm:Ge,h:Ge,hh:Ge,d:"dan",dd:Ge,M:"mjesec",MM:Ge,y:"godinu",yy:Ge},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),g.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"Dg_Dl_Dt_Dc_Dj_Dv_Ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"[el] D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"[el] D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"[el] dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var i=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(i="a"),e+i},week:{dow:1,doy:4}});var Nn="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),On="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_");g.defineLocale("cs",{months:Nn,monthsShort:On,monthsParse:function(e,t){var i,n=[];for(i=0;i<12;i++)n[i]=new RegExp("^"+e[i]+"$|^"+t[i]+"$","i");return n}(Nn,On),shortMonthsParse:function(e){var t,i=[];for(t=0;t<12;t++)i[t]=new RegExp("^"+e[t]+"$","i");return i}(On),longMonthsParse:function(e){var t,i=[];for(t=0;t<12;t++)i[t]=new RegExp("^"+e[t]+"$","i");return i}(Nn),weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:Je,m:Je,mm:Je,h:Je,hh:Je,d:Je,dd:Je,M:Je,MM:Je,y:Je,yy:Je},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),g.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){return e+(/сехет$/i.exec(e)?"рен":/ҫул$/i.exec(e)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}}),g.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t="";return 20<e?t=40===e||50===e||60===e||80===e||100===e?"fed":"ain":0<e&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+t},week:{dow:1,doy:4}}),g.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),g.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",m:Ke,mm:"%d Minuten",h:Ke,hh:"%d Stunden",d:Ke,dd:Ke,M:Ke,MM:Ke,y:Ke,yy:Ke},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),g.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._März_April_Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH.mm",LLLL:"dddd, D. MMMM YYYY HH.mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",m:Ze,mm:"%d Minuten",h:Ze,hh:"%d Stunden",d:Ze,dd:Ze,M:Ze,MM:Ze,y:Ze,yy:Ze},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),g.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",m:Qe,mm:"%d Minuten",h:Qe,hh:"%d Stunden",d:Qe,dd:Qe,M:Qe,MM:Qe,y:Qe,yy:Qe},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});var Rn=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],Wn=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];g.defineLocale("dv",{months:Rn,monthsShort:Rn,weekdays:Wn,weekdaysShort:Wn,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(e){return"މފ"===e},meridiem:function(e,t,i){return e<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:7,doy:12}}),g.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,t){return e?/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,t,i){return 11<e?i?"μμ":"ΜΜ":i?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(e,t){var i=this._calendarEl[e],n=t&&t.hours();return L(i)&&(i=i.apply(t)),i.replace("{}",n%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}}),g.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}}),g.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),g.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}}),g.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}}),g.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}}),g.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D[-a de] MMMM, YYYY",LLL:"D[-a de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-a de] MMMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,i){return 11<e?i?"p.t.m.":"P.T.M.":i?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}});var Vn="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),Bn="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_");g.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,t){return e?/-MMM-/.test(t)?Bn[e.month()]:Vn[e.month()]:Vn},monthsParseExact:!0,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});var Un="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),qn="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_");g.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,t){return e?/-MMM-/.test(t)?qn[e.month()]:Un[e.month()]:Un},monthsParseExact:!0,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}}),g.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:et,m:et,mm:et,h:et,hh:et,d:et,dd:"%d päeva",M:et,MM:et,y:et,yy:et},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),g.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});var Gn={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},Xn={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};g.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e,t,i){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,function(e){return Xn[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return Gn[e]}).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}});var Jn="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),Kn=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",Jn[7],Jn[8],Jn[9]];g.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:tt,m:tt,mm:tt,h:tt,hh:tt,d:tt,dd:tt,M:tt,MM:tt,y:tt,yy:tt},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),g.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",m:"ein minutt",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaði",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),g.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}}),g.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}}),g.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}});var Zn="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),Qn="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");g.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,t){return e?/-MMM-/.test(t)?Qn[e.month()]:Zn[e.month()]:Zn},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||20<=e?"ste":"de")},week:{dow:1,doy:4}});g.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],monthsShort:["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],monthsParseExact:!0,weekdays:["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}}),g.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}}),g.defineLocale("gom-latn",{months:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Ieta to] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fatlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:it,m:it,mm:it,h:it,hh:it,d:it,dd:it,M:it,MM:it,y:it,yy:it},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){switch(t){case"D":return e+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:1,doy:4},meridiemParse:/rati|sokalli|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokalli"===t?e:"donparam"===t?12<e?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"rati":e<12?"sokalli":e<16?"donparam":e<20?"sanje":"rati"}}),g.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(e){return 2===e?"שעתיים":e+" שעות"},d:"יום",dd:function(e){return 2===e?"יומיים":e+" ימים"},M:"חודש",MM:function(e){return 2===e?"חודשיים":e+" חודשים"},y:"שנה",yy:function(e){return 2===e?"שנתיים":e%10==0&&10!==e?e+" שנה":e+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(e){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(e)},meridiem:function(e,t,i){return e<5?"לפנות בוקר":e<10?"בבוקר":e<12?i?'לפנה"צ':"לפני הצהריים":e<18?i?'אחה"צ':"אחרי הצהריים":"בערב"}});var es={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},ts={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};g.defineLocale("hi",{months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,function(e){return ts[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return es[e]})},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात"===t?e<4?e:e+12:"सुबह"===t?e:"दोपहर"===t?10<=e?e:e+12:"शाम"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}}),g.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",m:nt,mm:nt,h:nt,hh:nt,d:"dan",dd:nt,M:"mjesec",MM:nt,y:"godinu",yy:nt},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});var is="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");g.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,i){return e<12?!0===i?"de":"DE":!0===i?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return at.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return at.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:st,m:st,mm:st,h:st,hh:st,d:st,dd:st,M:st,MM:st,y:st,yy:st},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),g.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(e){return/^(ցերեկվա|երեկոյան)$/.test(e)},meridiem:function(e){return e<4?"գիշերվա":e<12?"առավոտվա":e<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-ին":e+"-րդ";default:return e}},week:{dow:1,doy:7}}),g.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?11<=e?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,i){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}}),g.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:ot,m:ot,mm:ot,h:"klukkustund",hh:ot,d:ot,dd:ot,M:ot,MM:ot,y:ot,yy:ot},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),g.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}}),g.defineLocale("ja",{months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 HH:mm dddd",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日 HH:mm dddd"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,t,i){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:"[来週]dddd LT",lastDay:"[昨日] LT",lastWeek:"[前週]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}}),g.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,t){return 12===e&&(e=0),"enjing"===t?e:"siyang"===t?11<=e?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,i){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}}),g.defineLocale("ka",{months:{standalone:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),format:"იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს".split("_")},monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return/(წამი|წუთი|საათი|წელი)/.test(e)?e.replace(/ი$/,"ში"):e+"ში"},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის უკან"):/წელი/.test(e)?e.replace(/წელი$/,"წლის უკან"):void 0},s:"რამდენიმე წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":e<20||e<=100&&e%20==0||e%100==0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}});var ns={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};g.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(e){return e+(ns[e]||ns[e%10]||ns[100<=e?100:null])},week:{dow:1,doy:7}}),g.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysMin:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},week:{dow:1,doy:4}});var ss={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},as={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};g.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬ_ಅಕ್ಟೋಬ_ನವೆಂಬ_ಡಿಸೆಂಬ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(e){return e.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,function(e){return as[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return ss[e]})},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ರಾತ್ರಿ"===t?e<4?e:e+12:"ಬೆಳಿಗ್ಗೆ"===t?e:"ಮಧ್ಯಾಹ್ನ"===t?10<=e?e:e+12:"ಸಂಜೆ"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"ರಾತ್ರಿ":e<10?"ಬೆಳಿಗ್ಗೆ":e<17?"ಮಧ್ಯಾಹ್ನ":e<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(e){return e+"ನೇ"},week:{dow:0,doy:6}}),g.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}일/,ordinal:"%d일",meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,t,i){return e<12?"오전":"오후"}});var rs={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};g.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кече саат] LT",lastWeek:"[Өткен аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(e){return e+(rs[e]||rs[e%10]||rs[100<=e?100:null])},week:{dow:1,doy:7}}),g.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function(e){return ht(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e},past:function(e){return ht(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e},s:"e puer Sekonnen",m:lt,mm:"%d Minutten",h:lt,hh:"%d Stonnen",d:lt,dd:"%d Deeg",M:lt,MM:"%d Méint",y:lt,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),g.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(e){return"ຕອນແລງ"===e},meridiem:function(e,t,i){return e<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(ທີ່)\d{1,2}/,ordinal:function(e){return"ທີ່"+e}});var os={m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};g.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:function(e,t,i,n){return t?"kelios sekundės":n?"kelių sekundžių":"kelias sekundes"},m:ut,mm:pt,h:ut,hh:pt,d:ut,dd:pt,M:ut,MM:pt,y:ut,yy:pt},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}});var ls={m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};g.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:function(e,t){return t?"dažas sekundes":"dažām sekundēm"},m:gt,mm:mt,h:gt,hh:mt,d:gt,dd:mt,M:gt,MM:mt,y:gt,yy:mt},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});var hs={words:{m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:2<=e&&e<=4?t[1]:t[2]},translate:function(e,t,i){var n=hs.words[i];return 1===i.length?t?n[0]:n[1]:e+" "+hs.correctGrammaticalCase(e,n)}};g.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",m:hs.translate,mm:hs.translate,h:hs.translate,hh:hs.translate,d:"dan",dd:hs.translate,M:"mjesec",MM:hs.translate,y:"godinu",yy:hs.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),g.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}}),g.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"после %s",past:"пред %s",s:"неколку секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеци",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,i=e%100;return 0===e?e+"-ев":0===i?e+"-ен":10<i&&i<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}}),g.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(e,t){return 12===e&&(e=0),"രാത്രി"===t&&4<=e||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t?e+12:e},meridiem:function(e,t,i){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}});var us={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},ds={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};g.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:vt,m:vt,mm:vt,h:vt,hh:vt,d:vt,dd:vt,M:vt,MM:vt,y:vt,yy:vt},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,function(e){return ds[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return us[e]})},meridiemParse:/रात्री|सकाळी|दुपारी|सायंकाळी/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात्री"===t?e<4?e:e+12:"सकाळी"===t?e:"दुपारी"===t?10<=e?e:e+12:"सायंकाळी"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"रात्री":e<10?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}}),g.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?11<=e?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,i){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}}),g.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?11<=e?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,i){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}});var cs={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},ps={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};g.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(e){return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,function(e){return ps[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return cs[e]})},week:{dow:1,doy:4}}),g.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});var fs={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},ms={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};g.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,function(e){return ms[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return fs[e]})},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(e,t){return 12===e&&(e=0),"राति"===t?e<4?e:e+12:"बिहान"===t?e:"दिउँसो"===t?10<=e?e:e+12:"साँझ"===t?e+12:void 0},meridiem:function(e,t,i){return e<3?"राति":e<12?"बिहान":e<16?"दिउँसो":e<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}});var gs="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),vs="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),_s=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],ys=/^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;g.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,t){return e?/-MMM-/.test(t)?vs[e.month()]:gs[e.month()]:gs},monthsRegex:ys,monthsShortRegex:ys,monthsStrictRegex:/^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:_s,longMonthsParse:_s,shortMonthsParse:_s,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"Zo_Ma_Di_Wo_Do_Vr_Za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||20<=e?"ste":"de")},week:{dow:1,doy:4}});var bs="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),xs="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),ws=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],Ms=/^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;g.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,t){return e?/-MMM-/.test(t)?xs[e.month()]:bs[e.month()]:bs},monthsRegex:Ms,monthsShortRegex:Ms,monthsStrictRegex:/^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:ws,longMonthsParse:ws,shortMonthsParse:ws,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"Zo_Ma_Di_Wo_Do_Vr_Za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||20<=e?"ste":"de")},week:{dow:1,doy:4}}),g.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_mån_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_må_ty_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});var js={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},ks={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};g.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(e){return e.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,function(e){return ks[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return js[e]})},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ਰਾਤ"===t?e<4?e:e+12:"ਸਵੇਰ"===t?e:"ਦੁਪਹਿਰ"===t?10<=e?e:e+12:"ਸ਼ਾਮ"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"ਰਾਤ":e<10?"ਸਵੇਰ":e<17?"ਦੁਪਹਿਰ":e<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}});var Ls="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),Ss="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_");g.defineLocale("pl",{months:function(e,t){return e?""===t?"("+Ss[e.month()]+"|"+Ls[e.month()]+")":/D MMMM/.test(t)?Ss[e.month()]:Ls[e.month()]:Ls},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:"[W] dddd [o] LT",lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",m:yt,mm:yt,h:yt,hh:yt,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:yt,y:"rok",yy:yt},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),g.defineLocale("pt-br",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"%s atrás",s:"poucos segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº"}),g.defineLocale("pt",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-Feira_Terça-Feira_Quarta-Feira_Quinta-Feira_Sexta-Feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}}),g.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",m:"un minut",mm:bt,h:"o oră",hh:bt,d:"o zi",dd:bt,M:"o lună",MM:bt,y:"un an",yy:bt},week:{dow:1,doy:7}});var Ts=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];g.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:Ts,longMonthsParse:Ts,shortMonthsParse:Ts,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сегодня в] LT",nextDay:"[Завтра в] LT",lastDay:"[Вчера в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В следующее] dddd [в] LT";case 1:case 2:case 4:return"[В следующий] dddd [в] LT";case 3:case 5:case 6:return"[В следующую] dddd [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:xt,mm:xt,h:"час",hh:xt,d:"день",dd:xt,M:"месяц",MM:xt,y:"год",yy:xt},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,i){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:7}});var Ds=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],Cs=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];g.defineLocale("sd",{months:Ds,monthsShort:Ds,weekdays:Cs,weekdaysShort:Cs,weekdaysMin:Cs,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,i){return e<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}}),g.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),g.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(e){return e+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(e){return"ප.ව."===e||"පස් වරු"===e},meridiem:function(e,t,i){return 11<e?i?"ප.ව.":"පස් වරු":i?"පෙ.ව.":"පෙර වරු"}});var Ys="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),Es="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");g.defineLocale("sk",{months:Ys,monthsShort:Es,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:Mt,m:Mt,mm:Mt,h:Mt,hh:Mt,d:Mt,dd:Mt,M:Mt,MM:Mt,y:Mt,yy:Mt},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),g.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:jt,m:jt,mm:jt,h:jt,hh:jt,d:jt,dd:jt,M:jt,MM:jt,y:jt,yy:jt},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),g.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,i){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});var Hs={words:{m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:2<=e&&e<=4?t[1]:t[2]},translate:function(e,t,i){var n=Hs.words[i];return 1===i.length?t?n[0]:n[1]:e+" "+Hs.correctGrammaticalCase(e,n)}};g.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",m:Hs.translate,mm:Hs.translate,h:Hs.translate,hh:Hs.translate,d:"дан",dd:Hs.translate,M:"месец",MM:Hs.translate,y:"годину",yy:Hs.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});var As={words:{m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:2<=e&&e<=4?t[1]:t[2]},translate:function(e,t,i){var n=As.words[i];return 1===i.length?t?n[0]:n[1]:e+" "+As.correctGrammaticalCase(e,n)}};g.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",m:As.translate,mm:As.translate,h:As.translate,hh:As.translate,d:"dan",dd:As.translate,M:"mesec",MM:As.translate,y:"godinu",yy:As.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),g.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,i){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?11<=e?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}}),g.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(e|a)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"e":1===t?"a":2===t?"a":"e")},week:{dow:1,doy:4}}),g.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}});var Is={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},Fs={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};g.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(e){return e+"வது"},preparse:function(e){return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,function(e){return Fs[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return Is[e]})},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(e,t,i){return e<2?" யாமம்":e<6?" வைகறை":e<10?" காலை":e<14?" நண்பகல்":e<18?" எற்பாடு":e<22?" மாலை":" யாமம்"},meridiemHour:function(e,t){return 12===e&&(e=0),"யாமம்"===t?e<2?e:e+12:"வைகறை"===t||"காலை"===t?e:"நண்பகல்"===t&&10<=e?e:e+12},week:{dow:0,doy:6}}),g.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జూలై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జూలై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(e,t){return 12===e&&(e=0),"రాత్రి"===t?e<4?e:e+12:"ఉదయం"===t?e:"మధ్యాహ్నం"===t?10<=e?e:e+12:"సాయంత్రం"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"రాత్రి":e<10?"ఉదయం":e<17?"మధ్యాహ్నం":e<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}}),g.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juniu_Juliu_Augustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Aug_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sexta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sext_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Sex_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"minutu balun",m:"minutu ida",mm:"minutus %d",h:"horas ida",hh:"horas %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}}),g.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,t,i){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}}),g.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}});var $s="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");g.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function(e){var t=e;return-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"},past:function(e){var t=e;return-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu’":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"},s:"puS lup",m:"wa’ tup",mm:kt,h:"wa’ rep",hh:kt,d:"wa’ jaj",dd:kt,M:"wa’ jar",MM:kt,y:"wa’ DIS",yy:kt},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});var Ps={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};g.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[haftaya] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen hafta] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},dayOfMonthOrdinalParse:/\d{1,2}'(inci|nci|üncü|ncı|uncu|ıncı)/,ordinal:function(e){if(0===e)return e+"'ıncı";var t=e%10;return e+(Ps[t]||Ps[e%100-t]||Ps[100<=e?100:null])},week:{dow:1,doy:7}}),g.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,i){return 11<e?i?"d'o":"D'O":i?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:Lt,m:Lt,mm:Lt,h:Lt,hh:Lt,d:Lt,dd:Lt,M:Lt,MM:Lt,y:Lt,yy:Lt},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),g.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}}),g.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}}),g.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:function(e,t){var i={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return e?i[/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:i.nominative},weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:Tt("[Сьогодні "),nextDay:Tt("[Завтра "),lastDay:Tt("[Вчора "),nextWeek:Tt("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return Tt("[Минулої] dddd [").call(this);case 1:case 2:case 4:return Tt("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",m:St,mm:St,h:"годину",hh:St,d:"день",dd:St,M:"місяць",MM:St,y:"рік",yy:St},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,t,i){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}});var zs=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],Ns=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];return g.defineLocale("ur",{months:zs,monthsShort:zs,weekdays:Ns,weekdaysShort:Ns,weekdaysMin:Ns,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,i){return e<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}}),g.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}}),g.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}}),g.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,i){return e<12?i?"sa":"SA":i?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần rồi lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}}),g.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}}),g.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}}),g.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY年MMMD日",LL:"YYYY年MMMD日",LLL:"YYYY年MMMD日Ah点mm分",LLLL:"YYYY年MMMD日ddddAh点mm分",l:"YYYY年MMMD日",ll:"YYYY年MMMD日",lll:"YYYY年MMMD日 HH:mm",llll:"YYYY年MMMD日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:11<=e?e:e+12},meridiem:function(e,t,i){var n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}}),g.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY年MMMD日",LL:"YYYY年MMMD日",LLL:"YYYY年MMMD日 HH:mm",LLLL:"YYYY年MMMD日dddd HH:mm",l:"YYYY年MMMD日",ll:"YYYY年MMMD日",lll:"YYYY年MMMD日 HH:mm",llll:"YYYY年MMMD日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?11<=e?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,i){var n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}}),g.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY年MMMD日",LL:"YYYY年MMMD日",LLL:"YYYY年MMMD日 HH:mm",LLLL:"YYYY年MMMD日dddd HH:mm",l:"YYYY年MMMD日",ll:"YYYY年MMMD日",lll:"YYYY年MMMD日 HH:mm",llll:"YYYY年MMMD日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?11<=e?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,i){var n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}}),g.locale("en"),g}),function(e){"use strict";if("function"==typeof define&&define.amd)define(["jquery","moment"],e);else if("object"==typeof exports)module.exports=e(require("jquery"),require("moment"));else{if("undefined"==typeof jQuery)throw"bootstrap-datetimepicker requires jQuery to be loaded first";if("undefined"==typeof moment)throw"bootstrap-datetimepicker requires Moment.js to be loaded first";e(jQuery,moment)}}(function(Z,Q){"use strict";if(!Q)throw new Error("bootstrap-datetimepicker requires Moment.js to be loaded first");var a=function(a,u){var d,c,i,l,n,s,r,o,h,p={},f=!0,m=!1,g=!1,v=0,t=[{clsName:"days",navFnc:"M",navStep:1},{clsName:"months",navFnc:"y",navStep:1},{clsName:"years",navFnc:"y",navStep:10},{clsName:"decades",navFnc:"y",navStep:100}],_=["days","months","years","decades"],y=["top","bottom","auto"],b=["left","right","auto"],x=["default","top","bottom"],w={up:38,38:"up",down:40,40:"down",left:37,37:"left",right:39,39:"right",tab:9,9:"tab",escape:27,27:"escape",enter:13,13:"enter",pageUp:33,33:"pageUp",pageDown:34,34:"pageDown",shift:16,16:"shift",control:17,17:"control",space:32,32:"space",t:84,84:"t",delete:46,46:"delete"},M={},j=function(){return void 0!==Q.tz&&void 0!==u.timeZone&&null!==u.timeZone&&""!==u.timeZone},k=function(e){var t;return t=null==e?Q():Q.isDate(e)||Q.isMoment(e)?Q(e):j()?Q.tz(e,s,u.useStrict,u.timeZone):Q(e,s,u.useStrict),j()&&t.tz(u.timeZone),t},L=function(e){if("string"!=typeof e||1<e.length)throw new TypeError("isEnabled expects a single character string parameter");switch(e){case"y":return-1!==n.indexOf("Y");case"M":return-1!==n.indexOf("M");case"d":return-1!==n.toLowerCase().indexOf("d");case"h":case"H":return-1!==n.toLowerCase().indexOf("h");case"m":return-1!==n.indexOf("m");case"s":return-1!==n.indexOf("s");default:return!1}},S=function(){return L("h")||L("m")||L("s")},T=function(){return L("y")||L("M")||L("d")},D=function(){var e,t,i,n=Z("<div>").addClass("timepicker-hours").append(Z("<table>").addClass("table-condensed")),s=Z("<div>").addClass("timepicker-minutes").append(Z("<table>").addClass("table-condensed")),a=Z("<div>").addClass("timepicker-seconds").append(Z("<table>").addClass("table-condensed")),r=[(e=Z("<tr>"),t=Z("<tr>"),i=Z("<tr>"),L("h")&&(e.append(Z("<td>").append(Z("<a>").attr({href:"#",tabindex:"-1",title:u.tooltips.incrementHour}).addClass("btn").attr("data-action","incrementHours").append(Z("<span>").addClass(u.icons.up)))),t.append(Z("<td>").append(Z("<span>").addClass("timepicker-hour").attr({"data-time-component":"hours",title:u.tooltips.pickHour}).attr("data-action","showHours"))),i.append(Z("<td>").append(Z("<a>").attr({href:"#",tabindex:"-1",title:u.tooltips.decrementHour}).addClass("btn").attr("data-action","decrementHours").append(Z("<span>").addClass(u.icons.down))))),L("m")&&(L("h")&&(e.append(Z("<td>").addClass("separator")),t.append(Z("<td>").addClass("separator").html(":")),i.append(Z("<td>").addClass("separator"))),e.append(Z("<td>").append(Z("<a>").attr({href:"#",tabindex:"-1",title:u.tooltips.incrementMinute}).addClass("btn").attr("data-action","incrementMinutes").append(Z("<span>").addClass(u.icons.up)))),t.append(Z("<td>").append(Z("<span>").addClass("timepicker-minute").attr({"data-time-component":"minutes",title:u.tooltips.pickMinute}).attr("data-action","showMinutes"))),i.append(Z("<td>").append(Z("<a>").attr({href:"#",tabindex:"-1",title:u.tooltips.decrementMinute}).addClass("btn").attr("data-action","decrementMinutes").append(Z("<span>").addClass(u.icons.down))))),L("s")&&(L("m")&&(e.append(Z("<td>").addClass("separator")),t.append(Z("<td>").addClass("separator").html(":")),i.append(Z("<td>").addClass("separator"))),e.append(Z("<td>").append(Z("<a>").attr({href:"#",tabindex:"-1",title:u.tooltips.incrementSecond}).addClass("btn").attr("data-action","incrementSeconds").append(Z("<span>").addClass(u.icons.up)))),t.append(Z("<td>").append(Z("<span>").addClass("timepicker-second").attr({"data-time-component":"seconds",title:u.tooltips.pickSecond}).attr("data-action","showSeconds"))),i.append(Z("<td>").append(Z("<a>").attr({href:"#",tabindex:"-1",title:u.tooltips.decrementSecond}).addClass("btn").attr("data-action","decrementSeconds").append(Z("<span>").addClass(u.icons.down))))),l||(e.append(Z("<td>").addClass("separator")),t.append(Z("<td>").append(Z("<button>").addClass("btn btn-primary").attr({"data-action":"togglePeriod",tabindex:"-1",title:u.tooltips.togglePeriod}))),i.append(Z("<td>").addClass("separator"))),Z("<div>").addClass("timepicker-picker").append(Z("<table>").addClass("table-condensed").append([e,t,i])))];return L("h")&&r.push(n),L("m")&&r.push(s),L("s")&&r.push(a),r},C=function(){var e,t,i,n=Z("<div>").addClass("bootstrap-datetimepicker-widget dropdown-menu"),s=Z("<div>").addClass("datepicker").append((t=Z("<thead>").append(Z("<tr>").append(Z("<th>").addClass("prev").attr("data-action","previous").append(Z("<span>").addClass(u.icons.previous))).append(Z("<th>").addClass("picker-switch").attr("data-action","pickerSwitch").attr("colspan",u.calendarWeeks?"6":"5")).append(Z("<th>").addClass("next").attr("data-action","next").append(Z("<span>").addClass(u.icons.next)))),i=Z("<tbody>").append(Z("<tr>").append(Z("<td>").attr("colspan",u.calendarWeeks?"8":"7"))),[Z("<div>").addClass("datepicker-days").append(Z("<table>").addClass("table-condensed").append(t).append(Z("<tbody>"))),Z("<div>").addClass("datepicker-months").append(Z("<table>").addClass("table-condensed").append(t.clone()).append(i.clone())),Z("<div>").addClass("datepicker-years").append(Z("<table>").addClass("table-condensed").append(t.clone()).append(i.clone())),Z("<div>").addClass("datepicker-decades").append(Z("<table>").addClass("table-condensed").append(t.clone()).append(i.clone()))])),a=Z("<div>").addClass("timepicker").append(D()),r=Z("<ul>").addClass("list-unstyled"),o=Z("<li>").addClass("picker-switch"+(u.collapse?" accordion-toggle":"")).append((e=[],u.showTodayButton&&e.push(Z("<td>").append(Z("<a>").attr({"data-action":"today",title:u.tooltips.today}).append(Z("<span>").addClass(u.icons.today)))),!u.sideBySide&&T()&&S()&&e.push(Z("<td>").append(Z("<a>").attr({"data-action":"togglePicker",title:u.tooltips.selectTime}).append(Z("<span>").addClass(u.icons.time)))),u.showClear&&e.push(Z("<td>").append(Z("<a>").attr({"data-action":"clear",title:u.tooltips.clear}).append(Z("<span>").addClass(u.icons.clear)))),u.showClose&&e.push(Z("<td>").append(Z("<a>").attr({"data-action":"close",title:u.tooltips.close}).append(Z("<span>").addClass(u.icons.close)))),Z("<table>").addClass("table-condensed").append(Z("<tbody>").append(Z("<tr>").append(e)))));return u.inline&&n.removeClass("dropdown-menu"),l&&n.addClass("usetwentyfour"),L("s")&&!l&&n.addClass("wider"),u.sideBySide&&T()&&S()?(n.addClass("timepicker-sbs"),"top"===u.toolbarPlacement&&n.append(o),n.append(Z("<div>").addClass("row").append(s.addClass("col-md-6")).append(a.addClass("col-md-6"))),"bottom"===u.toolbarPlacement&&n.append(o),n):("top"===u.toolbarPlacement&&r.append(o),T()&&r.append(Z("<li>").addClass(u.collapse&&S()?"collapse in":"").append(s)),"default"===u.toolbarPlacement&&r.append(o),S()&&r.append(Z("<li>").addClass(u.collapse&&T()?"collapse":"").append(a)),"bottom"===u.toolbarPlacement&&r.append(o),n.append(r))},Y=function(){var e,t=(m||a).position(),i=(m||a).offset(),n=u.widgetPositioning.vertical,s=u.widgetPositioning.horizontal;if(u.widgetParent)e=u.widgetParent.append(g);else if(a.is("input"))e=a.after(g).parent();else{if(u.inline)return void(e=a.append(g));(e=a).children().first().after(g)}if("auto"===n&&(n=i.top+1.5*g.height()>=Z(window).height()+Z(window).scrollTop()&&g.height()+a.outerHeight()<i.top?"top":"bottom"),"auto"===s&&(s=e.width()<i.left+g.outerWidth()/2&&i.left+g.outerWidth()>Z(window).width()?"right":"left"),"top"===n?g.addClass("top").removeClass("bottom"):g.addClass("bottom").removeClass("top"),"right"===s?g.addClass("pull-right"):g.removeClass("pull-right"),"static"===e.css("position")&&(e=e.parents().filter(function(){return"static"!==Z(this).css("position")}).first()),0===e.length)throw new Error("datetimepicker component should be placed within a non-static positioned container");g.css({top:"top"===n?"auto":t.top+a.outerHeight(),bottom:"top"===n?e.outerHeight()-(e===a?0:t.top):"auto",left:"left"===s?e===a?0:t.left:"auto",right:"left"===s?"auto":e.outerWidth()-a.outerWidth()-(e===a?0:t.left)})},E=function(e){"dp.change"===e.type&&(e.date&&e.date.isSame(e.oldDate)||!e.date&&!e.oldDate)||a.trigger(e)},H=function(e){"y"===e&&(e="YYYY"),E({type:"dp.update",change:e,viewDate:c.clone()})},A=function(e){g&&(e&&(r=Math.max(v,Math.min(3,r+e))),g.find(".datepicker > div").hide().filter(".datepicker-"+t[r].clsName).show())},I=function(e,t){if(!e.isValid())return!1;if(u.disabledDates&&"d"===t&&(i=e,!0===u.disabledDates[i.format("YYYY-MM-DD")]))return!1;var i,n,s,a;if(u.enabledDates&&"d"===t&&(n=e,!0!==u.enabledDates[n.format("YYYY-MM-DD")]))return!1;if(u.minDate&&e.isBefore(u.minDate,t))return!1;if(u.maxDate&&e.isAfter(u.maxDate,t))return!1;if(u.daysOfWeekDisabled&&"d"===t&&-1!==u.daysOfWeekDisabled.indexOf(e.day()))return!1;if(u.disabledHours&&("h"===t||"m"===t||"s"===t)&&(s=e,!0===u.disabledHours[s.format("H")]))return!1;if(u.enabledHours&&("h"===t||"m"===t||"s"===t)&&(a=e,!0!==u.enabledHours[a.format("H")]))return!1;if(u.disabledTimeIntervals&&("h"===t||"m"===t||"s"===t)){var r=!1;if(Z.each(u.disabledTimeIntervals,function(){if(e.isBetween(this[0],this[1]))return!(r=!0)}),r)return!1}return!0},F=function(){var e,t,i,n,s,a,r=g.find(".datepicker-days"),o=r.find("th"),l=[],h=[];if(T()){for(o.eq(0).find("span").attr("title",u.tooltips.prevMonth),o.eq(1).attr("title",u.tooltips.selectMonth),o.eq(2).find("span").attr("title",u.tooltips.nextMonth),r.find(".disabled").removeClass("disabled"),o.eq(1).text(c.format(u.dayViewHeaderFormat)),I(c.clone().subtract(1,"M"),"M")||o.eq(0).addClass("disabled"),I(c.clone().add(1,"M"),"M")||o.eq(2).addClass("disabled"),e=c.clone().startOf("M").startOf("w").startOf("d"),i=0;i<42;i++)0===e.weekday()&&(t=Z("<tr>"),u.calendarWeeks&&t.append('<td class="cw">'+e.week()+"</td>"),l.push(t)),h=["day"],e.isBefore(c,"M")&&h.push("old"),e.isAfter(c,"M")&&h.push("new"),e.isSame(d,"d")&&!f&&h.push("active"),I(e,"d")||h.push("disabled"),e.isSame(k(),"d")&&h.push("today"),0!==e.day()&&6!==e.day()||h.push("weekend"),E({type:"dp.classify",date:e,classNames:h}),t.append('<td data-action="selectDay" data-day="'+e.format("L")+'" class="'+h.join(" ")+'">'+e.date()+"</td>"),e.add(1,"d");r.find("tbody").empty().append(l),n=g.find(".datepicker-months"),s=n.find("th"),a=n.find("tbody").find("span"),s.eq(0).find("span").attr("title",u.tooltips.prevYear),s.eq(1).attr("title",u.tooltips.selectYear),s.eq(2).find("span").attr("title",u.tooltips.nextYear),n.find(".disabled").removeClass("disabled"),I(c.clone().subtract(1,"y"),"y")||s.eq(0).addClass("disabled"),s.eq(1).text(c.year()),I(c.clone().add(1,"y"),"y")||s.eq(2).addClass("disabled"),a.removeClass("active"),d.isSame(c,"y")&&!f&&a.eq(d.month()).addClass("active"),a.each(function(e){I(c.clone().month(e),"M")||Z(this).addClass("disabled")}),function(){var e=g.find(".datepicker-years"),t=e.find("th"),i=c.clone().subtract(5,"y"),n=c.clone().add(6,"y"),s="";for(t.eq(0).find("span").attr("title",u.tooltips.prevDecade),t.eq(1).attr("title",u.tooltips.selectDecade),t.eq(2).find("span").attr("title",u.tooltips.nextDecade),e.find(".disabled").removeClass("disabled"),u.minDate&&u.minDate.isAfter(i,"y")&&t.eq(0).addClass("disabled"),t.eq(1).text(i.year()+"-"+n.year()),u.maxDate&&u.maxDate.isBefore(n,"y")&&t.eq(2).addClass("disabled");!i.isAfter(n,"y");)s+='<span data-action="selectYear" class="year'+(i.isSame(d,"y")&&!f?" active":"")+(I(i,"y")?"":" disabled")+'">'+i.year()+"</span>",i.add(1,"y");e.find("td").html(s)}(),function(){var e,t=g.find(".datepicker-decades"),i=t.find("th"),n=Q({y:c.year()-c.year()%100-1}),s=n.clone().add(100,"y"),a=n.clone(),r=!1,o=!1,l="";for(i.eq(0).find("span").attr("title",u.tooltips.prevCentury),i.eq(2).find("span").attr("title",u.tooltips.nextCentury),t.find(".disabled").removeClass("disabled"),(n.isSame(Q({y:1900}))||u.minDate&&u.minDate.isAfter(n,"y"))&&i.eq(0).addClass("disabled"),i.eq(1).text(n.year()+"-"+s.year()),(n.isSame(Q({y:2e3}))||u.maxDate&&u.maxDate.isBefore(s,"y"))&&i.eq(2).addClass("disabled");!n.isAfter(s,"y");)e=n.year()+12,r=u.minDate&&u.minDate.isAfter(n,"y")&&u.minDate.year()<=e,o=u.maxDate&&u.maxDate.isAfter(n,"y")&&u.maxDate.year()<=e,l+='<span data-action="selectDecade" class="decade'+(d.isAfter(n)&&d.year()<=e?" active":"")+(I(n,"y")||r||o?"":" disabled")+'" data-selection="'+(n.year()+6)+'">'+(n.year()+1)+" - "+(n.year()+12)+"</span>",n.add(12,"y");l+="<span></span><span></span><span></span>",t.find("td").html(l),i.eq(1).text(a.year()+1+"-"+n.year())}()}},e=function(){var e,t,i=g.find(".timepicker span[data-time-component]");l||(e=g.find(".timepicker [data-action=togglePeriod]"),t=d.clone().add(12<=d.hours()?-12:12,"h"),e.text(d.format("A")),I(t,"h")?e.removeClass("disabled"):e.addClass("disabled")),i.filter("[data-time-component=hours]").text(d.format(l?"HH":"hh")),i.filter("[data-time-component=minutes]").text(d.format("mm")),i.filter("[data-time-component=seconds]").text(d.format("ss")),function(){var e=g.find(".timepicker-hours table"),t=c.clone().startOf("d"),i=[],n=Z("<tr>");for(11<c.hour()&&!l&&t.hour(12);t.isSame(c,"d")&&(l||c.hour()<12&&t.hour()<12||11<c.hour());)t.hour()%4==0&&(n=Z("<tr>"),i.push(n)),n.append('<td data-action="selectHour" class="hour'+(I(t,"h")?"":" disabled")+'">'+t.format(l?"HH":"hh")+"</td>"),t.add(1,"h");e.empty().append(i)}(),function(){for(var e=g.find(".timepicker-minutes table"),t=c.clone().startOf("h"),i=[],n=Z("<tr>"),s=1===u.stepping?5:u.stepping;c.isSame(t,"h");)t.minute()%(4*s)==0&&(n=Z("<tr>"),i.push(n)),n.append('<td data-action="selectMinute" class="minute'+(I(t,"m")?"":" disabled")+'">'+t.format("mm")+"</td>"),t.add(s,"m");e.empty().append(i)}(),function(){for(var e=g.find(".timepicker-seconds table"),t=c.clone().startOf("m"),i=[],n=Z("<tr>");c.isSame(t,"m");)t.second()%20==0&&(n=Z("<tr>"),i.push(n)),n.append('<td data-action="selectSecond" class="second'+(I(t,"s")?"":" disabled")+'">'+t.format("ss")+"</td>"),t.add(5,"s");e.empty().append(i)}()},$=function(){g&&(F(),e())},P=function(e){var t=f?null:d;if(!e)return f=!0,i.val(""),a.data("date",""),E({type:"dp.change",date:!1,oldDate:t}),void $();if(e=e.clone().locale(u.locale),j()&&e.tz(u.timeZone),1!==u.stepping)for(e.minutes(Math.round(e.minutes()/u.stepping)*u.stepping).seconds(0);u.minDate&&e.isBefore(u.minDate);)e.add(u.stepping,"minutes");I(e)?(c=(d=e).clone(),i.val(d.format(n)),a.data("date",d.format(n)),f=!1,$(),E({type:"dp.change",date:d.clone(),oldDate:t})):(u.keepInvalid?E({type:"dp.change",date:e,oldDate:t}):i.val(f?"":d.format(n)),E({type:"dp.error",date:e,oldDate:t}))},z=function(){var t=!1;return g&&(g.find(".collapse").each(function(){var e=Z(this).data("collapse");return!e||!e.transitioning||!(t=!0)}),t||(m&&m.hasClass("btn")&&m.toggleClass("active"),g.hide(),Z(window).off("resize",Y),g.off("click","[data-action]"),g.off("mousedown",!1),g.remove(),g=!1,E({type:"dp.hide",date:d.clone()}),i.blur(),c=d.clone())),p},N=function(){P(null)},O=function(e){return void 0===u.parseInputDate?(!Q.isMoment(e)||e instanceof Date)&&(e=k(e)):e=u.parseInputDate(e),e},R={next:function(){var e=t[r].navFnc;c.add(t[r].navStep,e),F(),H(e)},previous:function(){var e=t[r].navFnc;c.subtract(t[r].navStep,e),F(),H(e)},pickerSwitch:function(){A(1)},selectMonth:function(e){var t=Z(e.target).closest("tbody").find("span").index(Z(e.target));c.month(t),r===v?(P(d.clone().year(c.year()).month(c.month())),u.inline||z()):(A(-1),F()),H("M")},selectYear:function(e){var t=parseInt(Z(e.target).text(),10)||0;c.year(t),r===v?(P(d.clone().year(c.year())),u.inline||z()):(A(-1),F()),H("YYYY")},selectDecade:function(e){var t=parseInt(Z(e.target).data("selection"),10)||0;c.year(t),r===v?(P(d.clone().year(c.year())),u.inline||z()):(A(-1),F()),H("YYYY")},selectDay:function(e){var t=c.clone();Z(e.target).is(".old")&&t.subtract(1,"M"),Z(e.target).is(".new")&&t.add(1,"M"),P(t.date(parseInt(Z(e.target).text(),10))),S()||u.keepOpen||u.inline||z()},incrementHours:function(){var e=d.clone().add(1,"h");I(e,"h")&&P(e)},incrementMinutes:function(){var e=d.clone().add(u.stepping,"m");I(e,"m")&&P(e)},incrementSeconds:function(){var e=d.clone().add(1,"s");I(e,"s")&&P(e)},decrementHours:function(){var e=d.clone().subtract(1,"h");I(e,"h")&&P(e)},decrementMinutes:function(){var e=d.clone().subtract(u.stepping,"m");I(e,"m")&&P(e)},decrementSeconds:function(){var e=d.clone().subtract(1,"s");I(e,"s")&&P(e)},togglePeriod:function(){P(d.clone().add(12<=d.hours()?-12:12,"h"))},togglePicker:function(e){var t,i=Z(e.target),n=i.closest("ul"),s=n.find(".in"),a=n.find(".collapse:not(.in)");if(s&&s.length){if((t=s.data("collapse"))&&t.transitioning)return;s.collapse?(s.collapse("hide"),a.collapse("show")):(s.removeClass("in"),a.addClass("in")),i.is("span")?i.toggleClass(u.icons.time+" "+u.icons.date):i.find("span").toggleClass(u.icons.time+" "+u.icons.date)}},showPicker:function(){g.find(".timepicker > div:not(.timepicker-picker)").hide(),g.find(".timepicker .timepicker-picker").show()},showHours:function(){g.find(".timepicker .timepicker-picker").hide(),g.find(".timepicker .timepicker-hours").show()},showMinutes:function(){g.find(".timepicker .timepicker-picker").hide(),g.find(".timepicker .timepicker-minutes").show()},showSeconds:function(){g.find(".timepicker .timepicker-picker").hide(),g.find(".timepicker .timepicker-seconds").show()},selectHour:function(e){var t=parseInt(Z(e.target).text(),10);l||(12<=d.hours()?12!==t&&(t+=12):12===t&&(t=0)),P(d.clone().hours(t)),R.showPicker.call(p)},selectMinute:function(e){P(d.clone().minutes(parseInt(Z(e.target).text(),10))),R.showPicker.call(p)},selectSecond:function(e){P(d.clone().seconds(parseInt(Z(e.target).text(),10))),R.showPicker.call(p)},clear:N,today:function(){var e=k();I(e,"d")&&P(e)},close:z},W=function(e){return!Z(e.currentTarget).is(".disabled")&&(R[Z(e.currentTarget).data("action")].apply(p,arguments),!1)},V=function(){var e;return i.prop("disabled")||!u.ignoreReadonly&&i.prop("readonly")||g||(void 0!==i.val()&&0!==i.val().trim().length?P(O(i.val().trim())):f&&u.useCurrent&&(u.inline||i.is("input")&&0===i.val().trim().length)&&(e=k(),"string"==typeof u.useCurrent&&(e={year:function(e){return e.month(0).date(1).hours(0).seconds(0).minutes(0)},month:function(e){return e.date(1).hours(0).seconds(0).minutes(0)},day:function(e){return e.hours(0).seconds(0).minutes(0)},hour:function(e){return e.seconds(0).minutes(0)},minute:function(e){return e.seconds(0)}}[u.useCurrent](e)),P(e)),g=C(),function(){var e=Z("<tr>"),t=c.clone().startOf("w").startOf("d");for(!0===u.calendarWeeks&&e.append(Z("<th>").addClass("cw").text("#"));t.isBefore(c.clone().endOf("w"));)e.append(Z("<th>").addClass("dow").text(t.format("dd"))),t.add(1,"d");g.find(".datepicker-days thead").append(e)}(),function(){for(var e=[],t=c.clone().startOf("y").startOf("d");t.isSame(c,"y");)e.push(Z("<span>").attr("data-action","selectMonth").addClass("month").text(t.format("MMM"))),t.add(1,"M");g.find(".datepicker-months td").empty().append(e)}(),g.find(".timepicker-hours").hide(),g.find(".timepicker-minutes").hide(),g.find(".timepicker-seconds").hide(),$(),A(),Z(window).on("resize",Y),g.on("click","[data-action]",W),g.on("mousedown",!1),m&&m.hasClass("btn")&&m.toggleClass("active"),Y(),g.show(),u.focusOnShow&&!i.is(":focus")&&i.focus(),E({type:"dp.show"})),p},B=function(){return g?z():V()},U=function(e){var t,i,n,s,a=null,r=[],o={},l=e.which;for(t in M[l]="p",M)M.hasOwnProperty(t)&&"p"===M[t]&&(r.push(t),parseInt(t,10)!==l&&(o[t]=!0));for(t in u.keyBinds)if(u.keyBinds.hasOwnProperty(t)&&"function"==typeof u.keyBinds[t]&&((n=t.split(" ")).length===r.length&&w[l]===n[n.length-1])){for(s=!0,i=n.length-2;0<=i;i--)if(!(w[n[i]]in o)){s=!1;break}if(s){a=u.keyBinds[t];break}}a&&(a.call(p,g),e.stopPropagation(),e.preventDefault())},q=function(e){M[e.which]="r",e.stopPropagation(),e.preventDefault()},G=function(e){var t=Z(e.target).val().trim(),i=t?O(t):null;return P(i),e.stopImmediatePropagation(),!1},X=function(e){var t={};return Z.each(e,function(){var e=O(this);e.isValid()&&(t[e.format("YYYY-MM-DD")]=!0)}),!!Object.keys(t).length&&t},J=function(e){var t={};return Z.each(e,function(){t[this]=!0}),!!Object.keys(t).length&&t},K=function(){var e=u.format||"L LT";n=e.replace(/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,function(e){return(d.localeData().longDateFormat(e)||e).replace(/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,function(e){return d.localeData().longDateFormat(e)||e})}),(s=u.extraFormats?u.extraFormats.slice():[]).indexOf(e)<0&&s.indexOf(n)<0&&s.push(n),l=n.toLowerCase().indexOf("a")<1&&n.replace(/\[.*?\]/g,"").indexOf("h")<1,L("y")&&(v=2),L("M")&&(v=1),L("d")&&(v=0),r=Math.max(v,r),f||P(d)};if(p.destroy=function(){z(),i.off({change:G,blur:blur,keydown:U,keyup:q,focus:u.allowInputToggle?z:""}),a.is("input")?i.off({focus:V}):m&&(m.off("click",B),m.off("mousedown",!1)),a.removeData("DateTimePicker"),a.removeData("date")},p.toggle=B,p.show=V,p.hide=z,p.disable=function(){return z(),m&&m.hasClass("btn")&&m.addClass("disabled"),i.prop("disabled",!0),p},p.enable=function(){return m&&m.hasClass("btn")&&m.removeClass("disabled"),i.prop("disabled",!1),p},p.ignoreReadonly=function(e){if(0===arguments.length)return u.ignoreReadonly;if("boolean"!=typeof e)throw new TypeError("ignoreReadonly () expects a boolean parameter");return u.ignoreReadonly=e,p},p.options=function(e){if(0===arguments.length)return Z.extend(!0,{},u);if(!(e instanceof Object))throw new TypeError("options() options parameter should be an object");return Z.extend(!0,u,e),Z.each(u,function(e,t){if(void 0===p[e])throw new TypeError("option "+e+" is not recognized!");p[e](t)}),p},p.date=function(e){if(0===arguments.length)return f?null:d.clone();if(!(null===e||"string"==typeof e||Q.isMoment(e)||e instanceof Date))throw new TypeError("date() parameter must be one of [null, string, moment or Date]");return P(null===e?null:O(e)),p},p.format=function(e){if(0===arguments.length)return u.format;if("string"!=typeof e&&("boolean"!=typeof e||!1!==e))throw new TypeError("format() expects a string or boolean:false parameter "+e);return u.format=e,n&&K(),p},p.timeZone=function(e){if(0===arguments.length)return u.timeZone;if("string"!=typeof e)throw new TypeError("newZone() expects a string parameter");return u.timeZone=e,p},p.dayViewHeaderFormat=function(e){if(0===arguments.length)return u.dayViewHeaderFormat;if("string"!=typeof e)throw new TypeError("dayViewHeaderFormat() expects a string parameter");return u.dayViewHeaderFormat=e,p},p.extraFormats=function(e){if(0===arguments.length)return u.extraFormats;if(!1!==e&&!(e instanceof Array))throw new TypeError("extraFormats() expects an array or false parameter");return u.extraFormats=e,s&&K(),p},p.disabledDates=function(e){if(0===arguments.length)return u.disabledDates?Z.extend({},u.disabledDates):u.disabledDates;if(!e)return u.disabledDates=!1,$(),p;if(!(e instanceof Array))throw new TypeError("disabledDates() expects an array parameter");return u.disabledDates=X(e),u.enabledDates=!1,$(),p},p.enabledDates=function(e){if(0===arguments.length)return u.enabledDates?Z.extend({},u.enabledDates):u.enabledDates;if(!e)return u.enabledDates=!1,$(),p;if(!(e instanceof Array))throw new TypeError("enabledDates() expects an array parameter");return u.enabledDates=X(e),u.disabledDates=!1,$(),p},p.daysOfWeekDisabled=function(e){if(0===arguments.length)return u.daysOfWeekDisabled.splice(0);if("boolean"==typeof e&&!e)return u.daysOfWeekDisabled=!1,$(),p;if(!(e instanceof Array))throw new TypeError("daysOfWeekDisabled() expects an array parameter");if(u.daysOfWeekDisabled=e.reduce(function(e,t){return 6<(t=parseInt(t,10))||t<0||isNaN(t)||-1===e.indexOf(t)&&e.push(t),e},[]).sort(),u.useCurrent&&!u.keepInvalid){for(var t=0;!I(d,"d");){if(d.add(1,"d"),31===t)throw"Tried 31 times to find a valid date";t++}P(d)}return $(),p},p.maxDate=function(e){if(0===arguments.length)return u.maxDate?u.maxDate.clone():u.maxDate;if("boolean"==typeof e&&!1===e)return u.maxDate=!1,$(),p;"string"==typeof e&&("now"!==e&&"moment"!==e||(e=k()));var t=O(e);if(!t.isValid())throw new TypeError("maxDate() Could not parse date parameter: "+e);if(u.minDate&&t.isBefore(u.minDate))throw new TypeError("maxDate() date parameter is before options.minDate: "+t.format(n));return u.maxDate=t,u.useCurrent&&!u.keepInvalid&&d.isAfter(e)&&P(u.maxDate),c.isAfter(t)&&(c=t.clone().subtract(u.stepping,"m")),$(),p},p.minDate=function(e){if(0===arguments.length)return u.minDate?u.minDate.clone():u.minDate;if("boolean"==typeof e&&!1===e)return u.minDate=!1,$(),p;"string"==typeof e&&("now"!==e&&"moment"!==e||(e=k()));var t=O(e);if(!t.isValid())throw new TypeError("minDate() Could not parse date parameter: "+e);if(u.maxDate&&t.isAfter(u.maxDate))throw new TypeError("minDate() date parameter is after options.maxDate: "+t.format(n));return u.minDate=t,u.useCurrent&&!u.keepInvalid&&d.isBefore(e)&&P(u.minDate),c.isBefore(t)&&(c=t.clone().add(u.stepping,"m")),$(),p},p.defaultDate=function(e){if(0===arguments.length)return u.defaultDate?u.defaultDate.clone():u.defaultDate;if(!e)return u.defaultDate=!1,p;"string"==typeof e&&(e="now"===e||"moment"===e?k():k(e));var t=O(e);if(!t.isValid())throw new TypeError("defaultDate() Could not parse date parameter: "+e);if(!I(t))throw new TypeError("defaultDate() date passed is invalid according to component setup validations");return u.defaultDate=t,(u.defaultDate&&u.inline||""===i.val().trim())&&P(u.defaultDate),p},p.locale=function(e){if(0===arguments.length)return u.locale;if(!Q.localeData(e))throw new TypeError("locale() locale "+e+" is not loaded from moment locales!");return u.locale=e,d.locale(u.locale),c.locale(u.locale),n&&K(),g&&(z(),V()),p},p.stepping=function(e){return 0===arguments.length?u.stepping:(e=parseInt(e,10),(isNaN(e)||e<1)&&(e=1),u.stepping=e,p)},p.useCurrent=function(e){var t=["year","month","day","hour","minute"];if(0===arguments.length)return u.useCurrent;if("boolean"!=typeof e&&"string"!=typeof e)throw new TypeError("useCurrent() expects a boolean or string parameter");if("string"==typeof e&&-1===t.indexOf(e.toLowerCase()))throw new TypeError("useCurrent() expects a string parameter of "+t.join(", "));return u.useCurrent=e,p},p.collapse=function(e){if(0===arguments.length)return u.collapse;if("boolean"!=typeof e)throw new TypeError("collapse() expects a boolean parameter");return u.collapse===e||(u.collapse=e,g&&(z(),V())),p},p.icons=function(e){if(0===arguments.length)return Z.extend({},u.icons);if(!(e instanceof Object))throw new TypeError("icons() expects parameter to be an Object");return Z.extend(u.icons,e),g&&(z(),V()),p},p.tooltips=function(e){if(0===arguments.length)return Z.extend({},u.tooltips);if(!(e instanceof Object))throw new TypeError("tooltips() expects parameter to be an Object");return Z.extend(u.tooltips,e),g&&(z(),V()),p},p.useStrict=function(e){if(0===arguments.length)return u.useStrict;if("boolean"!=typeof e)throw new TypeError("useStrict() expects a boolean parameter");return u.useStrict=e,p},p.sideBySide=function(e){if(0===arguments.length)return u.sideBySide;if("boolean"!=typeof e)throw new TypeError("sideBySide() expects a boolean parameter");return u.sideBySide=e,g&&(z(),V()),p},p.viewMode=function(e){if(0===arguments.length)return u.viewMode;if("string"!=typeof e)throw new TypeError("viewMode() expects a string parameter");if(-1===_.indexOf(e))throw new TypeError("viewMode() parameter must be one of ("+_.join(", ")+") value");return u.viewMode=e,r=Math.max(_.indexOf(e),v),A(),p},p.toolbarPlacement=function(e){if(0===arguments.length)return u.toolbarPlacement;if("string"!=typeof e)throw new TypeError("toolbarPlacement() expects a string parameter");if(-1===x.indexOf(e))throw new TypeError("toolbarPlacement() parameter must be one of ("+x.join(", ")+") value");return u.toolbarPlacement=e,g&&(z(),V()),p},p.widgetPositioning=function(e){if(0===arguments.length)return Z.extend({},u.widgetPositioning);if("[object Object]"!=={}.toString.call(e))throw new TypeError("widgetPositioning() expects an object variable");if(e.horizontal){if("string"!=typeof e.horizontal)throw new TypeError("widgetPositioning() horizontal variable must be a string");if(e.horizontal=e.horizontal.toLowerCase(),-1===b.indexOf(e.horizontal))throw new TypeError("widgetPositioning() expects horizontal parameter to be one of ("+b.join(", ")+")");u.widgetPositioning.horizontal=e.horizontal}if(e.vertical){if("string"!=typeof e.vertical)throw new TypeError("widgetPositioning() vertical variable must be a string");if(e.vertical=e.vertical.toLowerCase(),-1===y.indexOf(e.vertical))throw new TypeError("widgetPositioning() expects vertical parameter to be one of ("+y.join(", ")+")");u.widgetPositioning.vertical=e.vertical}return $(),p},p.calendarWeeks=function(e){if(0===arguments.length)return u.calendarWeeks;if("boolean"!=typeof e)throw new TypeError("calendarWeeks() expects parameter to be a boolean value");return u.calendarWeeks=e,$(),p},p.showTodayButton=function(e){if(0===arguments.length)return u.showTodayButton;if("boolean"!=typeof e)throw new TypeError("showTodayButton() expects a boolean parameter");return u.showTodayButton=e,g&&(z(),V()),p},p.showClear=function(e){if(0===arguments.length)return u.showClear;if("boolean"!=typeof e)throw new TypeError("showClear() expects a boolean parameter");return u.showClear=e,g&&(z(),V()),p},p.widgetParent=function(e){if(0===arguments.length)return u.widgetParent;if("string"==typeof e&&(e=Z(e)),null!==e&&"string"!=typeof e&&!(e instanceof Z))throw new TypeError("widgetParent() expects a string or a jQuery object parameter");return u.widgetParent=e,g&&(z(),V()),p},p.keepOpen=function(e){if(0===arguments.length)return u.keepOpen;if("boolean"!=typeof e)throw new TypeError("keepOpen() expects a boolean parameter");return u.keepOpen=e,p},p.focusOnShow=function(e){if(0===arguments.length)return u.focusOnShow;if("boolean"!=typeof e)throw new TypeError("focusOnShow() expects a boolean parameter");return u.focusOnShow=e,p},p.inline=function(e){if(0===arguments.length)return u.inline;if("boolean"!=typeof e)throw new TypeError("inline() expects a boolean parameter");return u.inline=e,p},p.clear=function(){return N(),p},p.keyBinds=function(e){return 0===arguments.length?u.keyBinds:(u.keyBinds=e,p)},p.getMoment=function(e){return k(e)},p.debug=function(e){if("boolean"!=typeof e)throw new TypeError("debug() expects a boolean parameter");return u.debug=e,p},p.allowInputToggle=function(e){if(0===arguments.length)return u.allowInputToggle;if("boolean"!=typeof e)throw new TypeError("allowInputToggle() expects a boolean parameter");return u.allowInputToggle=e,p},p.showClose=function(e){if(0===arguments.length)return u.showClose;if("boolean"!=typeof e)throw new TypeError("showClose() expects a boolean parameter");return u.showClose=e,p},p.keepInvalid=function(e){if(0===arguments.length)return u.keepInvalid;if("boolean"!=typeof e)throw new TypeError("keepInvalid() expects a boolean parameter");return u.keepInvalid=e,p},p.datepickerInput=function(e){if(0===arguments.length)return u.datepickerInput;if("string"!=typeof e)throw new TypeError("datepickerInput() expects a string parameter");return u.datepickerInput=e,p},p.parseInputDate=function(e){if(0===arguments.length)return u.parseInputDate;if("function"!=typeof e)throw new TypeError("parseInputDate() sholud be as function");return u.parseInputDate=e,p},p.disabledTimeIntervals=function(e){if(0===arguments.length)return u.disabledTimeIntervals?Z.extend({},u.disabledTimeIntervals):u.disabledTimeIntervals;if(!e)return u.disabledTimeIntervals=!1,$(),p;if(!(e instanceof Array))throw new TypeError("disabledTimeIntervals() expects an array parameter");return u.disabledTimeIntervals=e,$(),p},p.disabledHours=function(e){if(0===arguments.length)return u.disabledHours?Z.extend({},u.disabledHours):u.disabledHours;if(!e)return u.disabledHours=!1,$(),p;if(!(e instanceof Array))throw new TypeError("disabledHours() expects an array parameter");if(u.disabledHours=J(e),u.enabledHours=!1,u.useCurrent&&!u.keepInvalid){for(var t=0;!I(d,"h");){if(d.add(1,"h"),24===t)throw"Tried 24 times to find a valid date";t++}P(d)}return $(),p},p.enabledHours=function(e){if(0===arguments.length)return u.enabledHours?Z.extend({},u.enabledHours):u.enabledHours;if(!e)return u.enabledHours=!1,$(),p;if(!(e instanceof Array))throw new TypeError("enabledHours() expects an array parameter");if(u.enabledHours=J(e),u.disabledHours=!1,u.useCurrent&&!u.keepInvalid){for(var t=0;!I(d,"h");){if(d.add(1,"h"),24===t)throw"Tried 24 times to find a valid date";t++}P(d)}return $(),p},p.viewDate=function(e){if(0===arguments.length)return c.clone();if(!e)return c=d.clone(),p;if(!("string"==typeof e||Q.isMoment(e)||e instanceof Date))throw new TypeError("viewDate() parameter must be one of [string, moment or Date]");return c=O(e),H(),p},a.is("input"))i=a;else if(0===(i=a.find(u.datepickerInput)).length)i=a.find("input");else if(!i.is("input"))throw new Error('CSS class "'+u.datepickerInput+'" cannot be applied to non input element');if(a.hasClass("input-group")&&(m=0===a.find(".datepickerbutton").length?a.find(".input-group-addon"):a.find(".datepickerbutton")),!u.inline&&!i.is("input"))throw new Error("Could not initialize DateTimePicker without an input element");return d=k(),c=d.clone(),Z.extend(!0,u,(h={},(o=a.is("input")||u.inline?a.data():a.find("input").data()).dateOptions&&o.dateOptions instanceof Object&&(h=Z.extend(!0,h,o.dateOptions)),Z.each(u,function(e){var t="date"+e.charAt(0).toUpperCase()+e.slice(1);void 0!==o[t]&&(h[e]=o[t])}),h)),p.options(u),K(),i.on({change:G,blur:u.debug?"":z,keydown:U,keyup:q,focus:u.allowInputToggle?V:""}),a.is("input")?i.on({focus:V}):m&&(m.on("click",B),m.on("mousedown",!1)),i.prop("disabled")&&p.disable(),i.is("input")&&0!==i.val().trim().length?P(O(i.val().trim())):u.defaultDate&&void 0===i.attr("placeholder")&&P(u.defaultDate),u.inline&&V(),p};return Z.fn.datetimepicker=function(i){i=i||{};var t,n=Array.prototype.slice.call(arguments,1),s=!0;if("object"==typeof i)return this.each(function(){var e,t=Z(this);t.data("DateTimePicker")||(e=Z.extend(!0,{},Z.fn.datetimepicker.defaults,i),t.data("DateTimePicker",a(t,e)))});if("string"==typeof i)return this.each(function(){var e=Z(this).data("DateTimePicker");if(!e)throw new Error('bootstrap-datetimepicker("'+i+'") method was called on an element that is not using DateTimePicker');t=e[i].apply(e,n),s=t===e}),s||-1<Z.inArray(i,["destroy","hide","show","toggle"])?this:t;throw new TypeError("Invalid arguments for DateTimePicker: "+i)},Z.fn.datetimepicker.defaults={timeZone:"",format:!1,dayViewHeaderFormat:"MMMM YYYY",extraFormats:!1,stepping:1,minDate:!1,maxDate:!1,useCurrent:!0,collapse:!0,locale:moment.locale("zh-cn"),defaultDate:!1,disabledDates:!1,enabledDates:!1,icons:{time:"glyphicon glyphicon-time",date:"glyphicon glyphicon-calendar",up:"glyphicon glyphicon-chevron-up",down:"glyphicon glyphicon-chevron-down",previous:"glyphicon glyphicon-chevron-left",next:"glyphicon glyphicon-chevron-right",today:"glyphicon glyphicon-screenshot",clear:"glyphicon glyphicon-trash",close:"glyphicon glyphicon-remove"},tooltips:{today:"Go to today",clear:"Clear selection",close:"Close the picker",selectMonth:"Select Month",prevMonth:"Previous Month",nextMonth:"Next Month",selectYear:"Select Year",prevYear:"Previous Year",nextYear:"Next Year",selectDecade:"Select Decade",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevCentury:"Previous Century",nextCentury:"Next Century",pickHour:"Pick Hour",incrementHour:"Increment Hour",decrementHour:"Decrement Hour",pickMinute:"Pick Minute",incrementMinute:"Increment Minute",decrementMinute:"Decrement Minute",pickSecond:"Pick Second",incrementSecond:"Increment Second",decrementSecond:"Decrement Second",togglePeriod:"Toggle Period",selectTime:"Select Time"},useStrict:!1,sideBySide:!1,daysOfWeekDisabled:!1,calendarWeeks:!1,viewMode:"days",toolbarPlacement:"default",showTodayButton:!1,showClear:!1,showClose:!1,widgetPositioning:{horizontal:"auto",vertical:"auto"},widgetParent:null,ignoreReadonly:!1,keepOpen:!1,focusOnShow:!0,inline:!1,keepInvalid:!1,datepickerInput:".datepickerinput",keyBinds:{up:function(e){if(e){var t=this.date()||this.getMoment();e.find(".datepicker").is(":visible")?this.date(t.clone().subtract(7,"d")):this.date(t.clone().add(this.stepping(),"m"))}},down:function(e){if(e){var t=this.date()||this.getMoment();e.find(".datepicker").is(":visible")?this.date(t.clone().add(7,"d")):this.date(t.clone().subtract(this.stepping(),"m"))}else this.show()},"control up":function(e){if(e){var t=this.date()||this.getMoment();e.find(".datepicker").is(":visible")?this.date(t.clone().subtract(1,"y")):this.date(t.clone().add(1,"h"))}},"control down":function(e){if(e){var t=this.date()||this.getMoment();e.find(".datepicker").is(":visible")?this.date(t.clone().add(1,"y")):this.date(t.clone().subtract(1,"h"))}},left:function(e){if(e){var t=this.date()||this.getMoment();e.find(".datepicker").is(":visible")&&this.date(t.clone().subtract(1,"d"))}},right:function(e){if(e){var t=this.date()||this.getMoment();e.find(".datepicker").is(":visible")&&this.date(t.clone().add(1,"d"))}},pageUp:function(e){if(e){var t=this.date()||this.getMoment();e.find(".datepicker").is(":visible")&&this.date(t.clone().subtract(1,"M"))}},pageDown:function(e){if(e){var t=this.date()||this.getMoment();e.find(".datepicker").is(":visible")&&this.date(t.clone().add(1,"M"))}},enter:function(){this.hide()},escape:function(){this.hide()},"control space":function(e){e&&e.find(".timepicker").is(":visible")&&e.find('.btn[data-action="togglePeriod"]').click()},t:function(){this.date(this.getMoment())},delete:function(){this.clear()}},debug:!1,allowInputToggle:!1,disabledTimeIntervals:!1,disabledHours:!1,enabledHours:!1,viewDate:!1},Z.fn.datetimepicker}),function(e){if("function"==typeof define&&define.amd)define(["jquery"],e);else if("object"==typeof exports){var t=require("jquery");module.exports=e(t)}else e(window.jQuery||window.Zepto||window.$)}(function(p){"use strict";p.fn.serializeJSON=function(e){var i,n,s,t,a,r,o,l,h,u,d,c;return i=p.serializeJSON,n=this,s=i.setupOpts(e),t=n.serializeArray(),i.readCheckboxUncheckedValues(t,s,n),a={},p.each(t,function(e,t){r=t.name,o=t.value,h=i.extractTypeAndNameWithNoType(r),u=h.nameWithNoType,(d=h.type)||(d=i.attrFromInputWithName(n,r,"data-value-type")),i.validateType(r,d,s),"skip"!==d&&(c=i.splitInputNameIntoKeysArray(u),l=i.parseValue(o,r,d,s),!l&&i.shouldSkipFalsy(n,r,u,d,s)||i.deepSet(a,c,l,s))}),a},p.serializeJSON={defaultOptions:{checkboxUncheckedValue:void 0,parseNumbers:!1,parseBooleans:!1,parseNulls:!1,parseAll:!1,parseWithFunction:null,skipFalsyValuesForTypes:[],skipFalsyValuesForFields:[],customTypes:{},defaultTypes:{string:function(e){return String(e)},number:function(e){return Number(e)},boolean:function(e){return-1===["false","null","undefined","","0"].indexOf(e)},null:function(e){return-1===["false","null","undefined","","0"].indexOf(e)?e:null},array:function(e){return JSON.parse(e)},object:function(e){return JSON.parse(e)},auto:function(e){return p.serializeJSON.parseValue(e,null,null,{parseNumbers:!0,parseBooleans:!0,parseNulls:!0})},skip:null},useIntKeysAsArrayIndex:!1},setupOpts:function(t){var e,i,n,s,a,r;for(e in r=p.serializeJSON,null==t&&(t={}),n=r.defaultOptions||{},i=["checkboxUncheckedValue","parseNumbers","parseBooleans","parseNulls","parseAll","parseWithFunction","skipFalsyValuesForTypes","skipFalsyValuesForFields","customTypes","defaultTypes","useIntKeysAsArrayIndex"],t)if(-1===i.indexOf(e))throw new Error("serializeJSON ERROR: invalid option '"+e+"'. Please use one of "+i.join(", "));return a=(s=function(e){return!1!==t[e]&&""!==t[e]&&(t[e]||n[e])})("parseAll"),{checkboxUncheckedValue:s("checkboxUncheckedValue"),parseNumbers:a||s("parseNumbers"),parseBooleans:a||s("parseBooleans"),parseNulls:a||s("parseNulls"),parseWithFunction:s("parseWithFunction"),skipFalsyValuesForTypes:s("skipFalsyValuesForTypes"),skipFalsyValuesForFields:s("skipFalsyValuesForFields"),typeFunctions:p.extend({},s("defaultTypes"),s("customTypes")),useIntKeysAsArrayIndex:s("useIntKeysAsArrayIndex")}},parseValue:function(e,t,i,n){var s,a;return s=p.serializeJSON,a=e,n.typeFunctions&&i&&n.typeFunctions[i]?a=n.typeFunctions[i](e):n.parseNumbers&&s.isNumeric(e)?a=Number(e):!n.parseBooleans||"true"!==e&&"false"!==e?n.parseNulls&&"null"==e&&(a=null):a="true"===e,n.parseWithFunction&&!i&&(a=n.parseWithFunction(a,t)),a},isObject:function(e){return e===Object(e)},isUndefined:function(e){return void 0===e},isValidArrayIndex:function(e){return/^[0-9]+$/.test(String(e))},isNumeric:function(e){return 0<=e-parseFloat(e)},optionKeys:function(e){if(Object.keys)return Object.keys(e);var t,i=[];for(t in e)i.push(t);return i},readCheckboxUncheckedValues:function(i,n,e){var t,s,a;null==n&&(n={}),p.serializeJSON,t="input[type=checkbox][name]:not(:checked):not([disabled])",e.find(t).add(e.filter(t)).each(function(e,t){if(s=p(t),null==(a=s.attr("data-unchecked-value"))&&(a=n.checkboxUncheckedValue),null!=a){if(t.name&&-1!==t.name.indexOf("[]["))throw new Error("serializeJSON ERROR: checkbox unchecked values are not supported on nested arrays of objects like '"+t.name+"'. See https://github.com/marioizquierdo/jquery.serializeJSON/issues/67");i.push({name:t.name,value:a})}})},extractTypeAndNameWithNoType:function(e){var t;return(t=e.match(/(.*):([^:]+)$/))?{nameWithNoType:t[1],type:t[2]}:{nameWithNoType:e,type:null}},shouldSkipFalsy:function(e,t,i,n,s){var a=p.serializeJSON.attrFromInputWithName(e,t,"data-skip-falsy");if(null!=a)return"false"!==a;var r=s.skipFalsyValuesForFields;if(r&&(-1!==r.indexOf(i)||-1!==r.indexOf(t)))return!0;var o=s.skipFalsyValuesForTypes;return null==n&&(n="string"),!(!o||-1===o.indexOf(n))},attrFromInputWithName:function(e,t,i){var n;return n='[name="'+t.replace(/(:|\.|\[|\]|\s)/g,"\\$1")+'"]',e.find(n).add(e.filter(n)).attr(i)},validateType:function(e,t,i){var n,s;if(n=(s=p.serializeJSON).optionKeys(i?i.typeFunctions:s.defaultOptions.defaultTypes),t&&-1===n.indexOf(t))throw new Error("serializeJSON ERROR: Invalid type "+t+" found in input name '"+e+"', please use one of "+n.join(", "));return!0},splitInputNameIntoKeysArray:function(e){var t;return p.serializeJSON,t=e.split("["),""===(t=p.map(t,function(e){return e.replace(/\]/g,"")}))[0]&&t.shift(),t},deepSet:function(e,t,i,n){var s,a,r,o,l,h;if(null==n&&(n={}),(h=p.serializeJSON).isUndefined(e))throw new Error("ArgumentError: param 'o' expected to be an object or array, found undefined");if(!t||0===t.length)throw new Error("ArgumentError: param 'keys' expected to be an array with least one element");s=t[0],1===t.length?""===s?e.push(i):e[s]=i:(a=t[1],""===s&&(l=e[o=e.length-1],s=h.isObject(l)&&(h.isUndefined(l[a])||2<t.length)?o:o+1),""===a?!h.isUndefined(e[s])&&p.isArray(e[s])||(e[s]=[]):n.useIntKeysAsArrayIndex&&h.isValidArrayIndex(a)?!h.isUndefined(e[s])&&p.isArray(e[s])||(e[s]=[]):!h.isUndefined(e[s])&&h.isObject(e[s])||(e[s]={}),r=t.slice(1),h.deepSet(e[s],r,i,n))}}}),window[window.bto("ZW5jb2RlX3ZlcnNpb24=")]!=window.bto("d3d3LmplZXBsdXMub3Jn")&&(jQuery=2,$=3),function(Y){function i(e){var t=e.data;e.isDefaultPrevented()||(e.preventDefault(),Y(this).ajaxSubmit(t))}function n(e){var t=e.target,i=Y(t);if(!i.is(":submit,input:image")){var n=i.closest(":submit");if(0==n.length)return;t=n[0]}var s=this;if("image"==(s.clk=t).type)if(null!=e.offsetX)s.clk_x=e.offsetX,s.clk_y=e.offsetY;else if("function"==typeof Y.fn.offset){var a=i.offset();s.clk_x=e.pageX-a.left,s.clk_y=e.pageY-a.top}else s.clk_x=e.pageX-t.offsetLeft,s.clk_y=e.pageY-t.offsetTop;setTimeout(function(){s.clk=s.clk_x=s.clk_y=null},100)}function E(){if(Y.fn.ajaxSubmit.debug){var e="[jquery.form] "+Array.prototype.join.call(arguments,"");window.console&&window.console.log?window.console.log(e):window.opera&&window.opera.postError&&window.opera.postError(e)}}Y.fn.ajaxSubmit=function(T){if(!this.length)return E("ajaxSubmit: skipping submit process - no element selected"),this;var D,e,t,C=this;"function"==typeof T&&(T={success:T}),D=this.attr("method"),(t=(t="string"==typeof(e=this.attr("action"))?Y.trim(e):"")||window.location.href||"")&&(t=(t.match(/^([^#]+)/)||[])[1]),T=Y.extend(!0,{url:t,success:Y.ajaxSettings.success,type:D||"GET",iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},T);var i={};if(this.trigger("form-pre-serialize",[this,T,i]),i.veto)return E("ajaxSubmit: submit vetoed via form-pre-serialize trigger"),this;if(T.beforeSerialize&&!1===T.beforeSerialize(this,T))return E("ajaxSubmit: submit aborted via beforeSerialize callback"),this;var n=T.traditional;void 0===n&&(n=Y.ajaxSettings.traditional);var s,a=this.formToArray(T.semantic);if(T.data&&(T.extraData=T.data,s=Y.param(T.data,n)),T.beforeSubmit&&!1===T.beforeSubmit(a,this,T))return E("ajaxSubmit: submit aborted via beforeSubmit callback"),this;if(this.trigger("form-submit-validate",[a,this,T,i]),i.veto)return E("ajaxSubmit: submit vetoed via form-submit-validate trigger"),this;var r=Y.param(a,n);s&&(r=r?r+"&"+s:s),"GET"==T.type.toUpperCase()?(T.url+=(0<=T.url.indexOf("?")?"&":"?")+r,T.data=null):T.data=r;var o=[];if(T.resetForm&&o.push(function(){C.resetForm()}),T.clearForm&&o.push(function(){C.clearForm(T.includeHidden)}),!T.dataType&&T.target){var l=T.success||function(){};o.push(function(e){var t=T.replaceTarget?"replaceWith":"html";Y(T.target)[t](e).each(l,arguments)})}else T.success&&o.push(T.success);T.success=function(e,t,i){for(var n=T.context||T,s=0,a=o.length;s<a;s++)o[s].apply(n,[e,t,i||C,C])};var h=Y("input:file:enabled[value]",this),u=0<h.length,d="multipart/form-data",c=C.attr("enctype")==d||C.attr("encoding")==d,p=!!(u&&h.get(0).files&&window.FormData);E("fileAPI :"+p);var f=(u||c)&&!p;return!1!==T.iframe&&(T.iframe||f)?T.closeKeepAlive?Y.get(T.closeKeepAlive,function(){m(a)}):m(a):(u||c)&&p?(T.progress=T.progress||Y.noop,function(e){for(var n=new FormData,t=0;t<e.length;t++)"file"!=e[t].type&&n.append(e[t].name,e[t].value);if(C.find("input:file:enabled").each(function(){var e=Y(this).attr("name"),t=this.files;if(e)for(var i=0;i<t.length;i++)n.append(e,t[i])}),T.extraData)for(var i in T.extraData)n.append(i,T.extraData[i]);T.data=null;var s=Y.extend(!0,{},Y.ajaxSettings,T,{contentType:!1,processData:!1,cache:!1,type:"POST"});s.data=null;var a=s.beforeSend;s.beforeSend=function(e,t){t.data=n,e.upload&&(e.upload.onprogress=function(e){t.progress(e.position,e.total)}),a&&a.call(t,e,T)},Y.ajax(s)}(a)):Y.ajax(T),this.trigger("form-submit-notify",[this,T]),this;function m(e){var t,u,d,s,c,p,f,i,n,m,g,a=C[0],r=!!Y.fn.prop;if(e)if(r)for(t=0;t<e.length;t++)Y(a[e[t].name]).prop("disabled",!1);else for(t=0;t<e.length;t++)Y(a[e[t].name]).removeAttr("disabled");if(Y(":input[name=submit],:input[id=submit]",a).length)alert('Error: Form elements must not have name or id of "submit".');else if((u=Y.extend(!0,{},Y.ajaxSettings,T)).context=u.context||u,s="jqFormIO"+(new Date).getTime(),u.iframeTarget?null==(n=(c=Y(u.iframeTarget)).attr("name"))?c.attr("name",s):s=n:(c=Y('<iframe name="'+s+'" src="'+u.iframeSrc+'" />')).css({position:"absolute",top:"-1000px",left:"-1000px"}),p=c[0],f={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(e){var t="timeout"===e?"timeout":"aborted";E("aborting upload... "+t),this.aborted=1,c.attr("src",u.iframeSrc),f.error=t,u.error&&u.error.call(u.context,f,t,e),d&&Y.event.trigger("ajaxError",[f,u,t]),u.complete&&u.complete.call(u.context,f,t)}},(d=u.global)&&!Y.active++&&Y.event.trigger("ajaxStart"),d&&Y.event.trigger("ajaxSend",[f,u]),u.beforeSend&&!1===u.beforeSend.call(u.context,f,u))u.global&&Y.active--;else if(!f.aborted){(i=a.clk)&&(n=i.name)&&!i.disabled&&(u.extraData=u.extraData||{},u.extraData[n]=i.value,"image"==i.type&&(u.extraData[n+".x"]=a.clk_x,u.extraData[n+".y"]=a.clk_y));var v=1,_=2,o=Y("meta[name=csrf-token]").attr("content"),l=Y("meta[name=csrf-param]").attr("content");l&&o&&(u.extraData=u.extraData||{},u.extraData[l]=o),u.forceSync?L():setTimeout(L,10);var y,b,x,w=50,M=Y.parseXML||function(e,t){return window.ActiveXObject?((t=new ActiveXObject("Microsoft.XMLDOM")).async="false",t.loadXML(e)):t=(new DOMParser).parseFromString(e,"text/xml"),t&&t.documentElement&&"parsererror"!=t.documentElement.nodeName?t:null},h=Y.parseJSON||function(e){return window.eval("("+e+")")},j=function(e,t,i){var n=e.getResponseHeader("content-type")||"",s="xml"===t||!t&&0<=n.indexOf("xml"),a=s?e.responseXML:e.responseText;return s&&"parsererror"===a.documentElement.nodeName&&Y.error&&Y.error("parsererror"),i&&i.dataFilter&&(a=i.dataFilter(a,t)),"string"==typeof a&&("json"===t||!t&&0<=n.indexOf("json")?a=h(a):("script"===t||!t&&0<=n.indexOf("javascript"))&&Y.globalEval(a)),a}}function k(e){return e.contentWindow?e.contentWindow.document:e.contentDocument?e.contentDocument:e.document}function L(){var e=C.attr("target"),t=C.attr("action");a.setAttribute("target",s),D||a.setAttribute("method","POST"),t!=u.url&&a.setAttribute("action",u.url),u.skipEncodingOverride||D&&!/post/i.test(D)||C.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"}),u.timeout&&(g=setTimeout(function(){m=!0,S(v)},u.timeout));var i=[];try{if(u.extraData)for(var n in u.extraData)i.push(Y('<input type="hidden" name="'+n+'">').attr("value",u.extraData[n]).appendTo(a)[0]);u.iframeTarget||(c.appendTo("body"),p.attachEvent?p.attachEvent("onload",S):p.addEventListener("load",S,!1)),setTimeout(function e(){try{var t=k(p).readyState;E("state = "+t),"uninitialized"==t.toLowerCase()&&setTimeout(e,50)}catch(e){E("Server abort: ",e," (",e.name,")"),S(_),g&&clearTimeout(g),g=void 0}},15),a.submit()}finally{a.setAttribute("action",t),e?a.setAttribute("target",e):C.removeAttr("target"),Y(i).remove()}}function S(t){if(!f.aborted&&!x){try{b=k(p)}catch(e){E("cannot access response document: ",e),t=_}if(t===v&&f)f.abort("timeout");else if(t==_&&f)f.abort("server abort");else if(b&&b.location.href!=u.iframeSrc||m){p.detachEvent?p.detachEvent("onload",S):p.removeEventListener("load",S,!1);var e,i="success";try{if(m)throw"timeout";var n="xml"==u.dataType||b.XMLDocument||Y.isXMLDoc(b);if(E("isXml="+n),!n&&window.opera&&(null==b.body||""==b.body.innerHTML)&&--w)return E("requeing onLoad callback, DOM not available"),void setTimeout(S,250);var s=b.body?b.body:b.documentElement;f.responseText=s?s.innerHTML:null,f.responseXML=b.XMLDocument?b.XMLDocument:b,n&&(u.dataType="xml"),f.getResponseHeader=function(e){return{"content-type":u.dataType}[e]},s&&(f.status=Number(s.getAttribute("status"))||f.status,f.statusText=s.getAttribute("statusText")||f.statusText);var a=(u.dataType||"").toLowerCase(),r=/(json|script|text)/.test(a);if(r||u.textarea){var o=b.getElementsByTagName("textarea")[0];if(o)f.responseText=o.value,f.status=Number(o.getAttribute("status"))||f.status,f.statusText=o.getAttribute("statusText")||f.statusText;else if(r){var l=b.getElementsByTagName("pre")[0],h=b.getElementsByTagName("body")[0];l?f.responseText=l.textContent?l.textContent:l.innerText:h&&(f.responseText=h.textContent?h.textContent:h.innerText)}}else"xml"!=a||f.responseXML||null==f.responseText||(f.responseXML=M(f.responseText));try{y=j(f,a,u)}catch(t){i="parsererror",f.error=e=t||i}}catch(t){E("error caught: ",t),i="error",f.error=e=t||i}f.aborted&&(E("upload aborted"),i=null),f.status&&(i=200<=f.status&&f.status<300||304===f.status?"success":"error"),"success"===i?(u.success&&u.success.call(u.context,y,"success",f),d&&Y.event.trigger("ajaxSuccess",[f,u])):i&&(null==e&&(e=f.statusText),u.error&&u.error.call(u.context,f,i,e),d&&Y.event.trigger("ajaxError",[f,u,e])),d&&Y.event.trigger("ajaxComplete",[f,u]),d&&!--Y.active&&Y.event.trigger("ajaxStop"),u.complete&&u.complete.call(u.context,f,i),x=!0,u.timeout&&clearTimeout(g),setTimeout(function(){u.iframeTarget||c.remove(),f.responseXML=null},100)}}}}},Y.fn.ajaxForm=function(e){if((e=e||{}).delegation=e.delegation&&Y.isFunction(Y.fn.on),!e.delegation&&0===this.length){var t={s:this.selector,c:this.context};return!Y.isReady&&t.s?(E("DOM not ready, queuing ajaxForm"),Y(function(){Y(t.s,t.c).ajaxForm(e)})):E("terminating; zero elements found by selector"+(Y.isReady?"":" (DOM not ready)")),this}return e.delegation?(Y(document).off("submit.form-plugin",this.selector,i).off("click.form-plugin",this.selector,n).on("submit.form-plugin",this.selector,e,i).on("click.form-plugin",this.selector,e,n),this):this.ajaxFormUnbind().bind("submit.form-plugin",e,i).bind("click.form-plugin",e,n)},Y.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")},Y.fn.formToArray=function(e){var t=[];if(0===this.length)return t;var i,n,s,a,r,o,l,h=this[0],u=e?h.getElementsByTagName("*"):h.elements;if(!u)return t;for(i=0,o=u.length;i<o;i++)if(s=(r=u[i]).name)if(e&&h.clk&&"image"==r.type)r.disabled||h.clk!=r||(t.push({name:s,value:Y(r).val(),type:r.type}),t.push({name:s+".x",value:h.clk_x},{name:s+".y",value:h.clk_y}));else if((a=Y.fieldValue(r,!0))&&a.constructor==Array)for(n=0,l=a.length;n<l;n++)t.push({name:s,value:a[n]});else null!=a&&t.push({name:s,value:a,type:r.type});if(!e&&h.clk){var d=Y(h.clk),c=d[0];(s=c.name)&&!c.disabled&&"image"==c.type&&(t.push({name:s,value:d.val()}),t.push({name:s+".x",value:h.clk_x},{name:s+".y",value:h.clk_y}))}return t},Y.fn.formSerialize=function(e){return Y.param(this.formToArray(e))},Y.fn.fieldSerialize=function(s){var a=[];return this.each(function(){var e=this.name;if(e){var t=Y.fieldValue(this,s);if(t&&t.constructor==Array)for(var i=0,n=t.length;i<n;i++)a.push({name:e,value:t[i]});else null!=t&&a.push({name:this.name,value:t})}}),Y.param(a)},Y.fn.fieldValue=function(e){for(var t=[],i=0,n=this.length;i<n;i++){var s=this[i],a=Y.fieldValue(s,e);null==a||a.constructor==Array&&!a.length||(a.constructor==Array?Y.merge(t,a):t.push(a))}return t},Y.fieldValue=function(e,t){var i=e.name,n=e.type,s=e.tagName.toLowerCase();if(void 0===t&&(t=!0),t&&(!i||e.disabled||"reset"==n||"button"==n||("checkbox"==n||"radio"==n)&&!e.checked||("submit"==n||"image"==n)&&e.form&&e.form.clk!=e||"select"==s&&-1==e.selectedIndex))return null;if("select"==s){var a=e.selectedIndex;if(a<0)return null;for(var r=[],o=e.options,l="select-one"==n,h=l?a+1:o.length,u=l?a:0;u<h;u++){var d=o[u];if(d.selected){var c=d.value;if(c||(c=d.attributes&&d.attributes.value&&!d.attributes.value.specified?d.text:d.value),l)return c;r.push(c)}}return r}return Y(e).val()},Y.fn.clearForm=function(e){return this.each(function(){Y("input,select,textarea",this).clearFields(e)})},Y.fn.clearFields=Y.fn.clearInputs=function(i){var n=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var e=this.type,t=this.tagName.toLowerCase();n.test(e)||"textarea"==t||i&&/hidden/.test(e)?this.value="":"checkbox"==e||"radio"==e?this.checked=!1:"select"==t&&(this.selectedIndex=-1)})},Y.fn.resetForm=function(){return this.each(function(){("function"==typeof this.reset||"object"==typeof this.reset&&!this.reset.nodeType)&&this.reset()})},Y.fn.enable=function(e){return void 0===e&&(e=!0),this.each(function(){this.disabled=!e})},Y.fn.selected=function(i){return void 0===i&&(i=!0),this.each(function(){var e=this.type;if("checkbox"==e||"radio"==e)this.checked=i;else if("option"==this.tagName.toLowerCase()){var t=Y(this).parent("select");i&&t[0]&&"select-one"==t[0].type&&t.find("option").selected(!1),this.selected=i}})},Y.fn.ajaxSubmit.debug=!1}(jQuery),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):jQuery)}(function(c){"use strict";function l(e){return e.id&&c('label[for="'+e.id+'"]').val()||e.name}var s;c.support.htmlMenuitem="HTMLMenuItemElement"in window,c.support.htmlCommand="HTMLCommandElement"in window,c.support.eventSelectstart="onselectstart"in document.documentElement,c.ui&&c.widget||(c.cleanData=(s=c.cleanData,function(e){var t,i,n;for(n=0;null!=e[n];n++){i=e[n];try{(t=c._data(i,"events"))&&t.remove&&c(i).triggerHandler("remove")}catch(e){}}s(e)}));var o=null,u=!1,d=c(window),p=0,f={},m={},g={},v={selector:null,appendTo:null,trigger:"right",autoHide:!1,delay:200,reposition:!0,selectableSubMenu:!1,classNames:{hover:"context-menu-hover",disabled:"context-menu-disabled",visible:"context-menu-visible",notSelectable:"context-menu-not-selectable",icon:"context-menu-icon",iconEdit:"context-menu-icon-edit",iconCut:"context-menu-icon-cut",iconCopy:"context-menu-icon-copy",iconPaste:"context-menu-icon-paste",iconDelete:"context-menu-icon-delete",iconAdd:"context-menu-icon-add",iconQuit:"context-menu-icon-quit",iconLoadingClass:"context-menu-icon-loading"},determinePosition:function(e){if(c.ui&&c.ui.position)e.css("display","block").position({my:"center top",at:"center bottom",of:this,offset:"0 5",collision:"fit"}).css("display","none");else{var t=this.offset();t.top+=this.outerHeight(),t.left+=this.outerWidth()/2-e.outerWidth()/2,e.css(t)}},position:function(e,t,i){var n;if(t||i){n="maintain"===t&&"maintain"===i?e.$menu.position():{top:i,left:t};var s=d.scrollTop()+d.height(),a=d.scrollLeft()+d.width(),r=e.$menu.outerHeight(),o=e.$menu.outerWidth();n.top+r>s&&(n.top-=r),n.top<0&&(n.top=0),n.left+o>a&&(n.left-=o),n.left<0&&(n.left=0),e.$menu.css(n)}else e.determinePosition.call(this,e.$menu)},positionSubmenu:function(e){if(void 0!==e)if(c.ui&&c.ui.position)e.css("display","block").position({my:"left top-5",at:"right top",of:this,collision:"flipfit fit"}).css("display","");else{var t={top:-9,left:this.outerWidth()-5};e.css(t)}},zIndex:1,animation:{duration:50,show:"slideDown",hide:"slideUp"},events:{show:c.noop,hide:c.noop},callback:null,items:{}},a={timer:null,pageX:null,pageY:null},_={abortevent:function(e){e.preventDefault(),e.stopImmediatePropagation()},contextmenu:function(e){var t=c(this);if("right"===e.data.trigger&&(e.preventDefault(),e.stopImmediatePropagation()),!("right"!==e.data.trigger&&"demand"!==e.data.trigger&&e.originalEvent||!(void 0===e.mouseButton||!e.data||"left"===e.data.trigger&&0===e.mouseButton||"right"===e.data.trigger&&2===e.mouseButton)||t.hasClass("context-menu-active")||t.hasClass("context-menu-disabled"))){if(o=t,e.data.build){var i=e.data.build(o,e);if(!1===i)return;if(e.data=c.extend(!0,{},v,e.data,i||{}),!e.data.items||c.isEmptyObject(e.data.items))throw window.console&&(console.error||console.log).call(console,"No items specified to show in contextMenu"),new Error("No Items specified");e.data.$trigger=o,y.create(e.data)}var n=!1;for(var s in e.data.items)if(e.data.items.hasOwnProperty(s)){(c.isFunction(e.data.items[s].visible)?e.data.items[s].visible.call(c(e.currentTarget),s,e.data):void 0===e.data.items[s]||!e.data.items[s].visible||!0===e.data.items[s].visible)&&(n=!0)}n&&y.show.call(t,e.data,e.pageX,e.pageY)}},click:function(e){e.preventDefault(),e.stopImmediatePropagation(),c(this).trigger(c.Event("contextmenu",{data:e.data,pageX:e.pageX,pageY:e.pageY}))},mousedown:function(e){var t=c(this);o&&o.length&&!o.is(t)&&o.data("contextMenu").$menu.trigger("contextmenu:hide"),2===e.button&&(o=t.data("contextMenuActive",!0))},mouseup:function(e){var t=c(this);t.data("contextMenuActive")&&o&&o.length&&o.is(t)&&!t.hasClass("context-menu-disabled")&&(e.preventDefault(),e.stopImmediatePropagation(),(o=t).trigger(c.Event("contextmenu",{data:e.data,pageX:e.pageX,pageY:e.pageY}))),t.removeData("contextMenuActive")},mouseenter:function(e){var t=c(this),i=c(e.relatedTarget),n=c(document);i.is(".context-menu-list")||i.closest(".context-menu-list").length||o&&o.length||(a.pageX=e.pageX,a.pageY=e.pageY,a.data=e.data,n.on("mousemove.contextMenuShow",_.mousemove),a.timer=setTimeout(function(){a.timer=null,n.off("mousemove.contextMenuShow"),(o=t).trigger(c.Event("contextmenu",{data:a.data,pageX:a.pageX,pageY:a.pageY}))},e.data.delay))},mousemove:function(e){a.pageX=e.pageX,a.pageY=e.pageY},mouseleave:function(e){var t=c(e.relatedTarget);if(!t.is(".context-menu-list")&&!t.closest(".context-menu-list").length){try{clearTimeout(a.timer)}catch(e){}a.timer=null}},layerClick:function(s){var a,r,o=c(this).data("contextMenuRoot"),l=s.button,h=s.pageX,u=s.pageY;s.preventDefault(),s.stopImmediatePropagation(),setTimeout(function(){var e,t="left"===o.trigger&&0===l||"right"===o.trigger&&2===l;if(document.elementFromPoint&&o.$layer){if(o.$layer.hide(),(a=document.elementFromPoint(h-d.scrollLeft(),u-d.scrollTop())).isContentEditable){var i=document.createRange(),n=window.getSelection();i.selectNode(a),i.collapse(!0),n.removeAllRanges(),n.addRange(i)}o.$layer.show()}if(o.reposition&&t)if(document.elementFromPoint){if(o.$trigger.is(a)||o.$trigger.has(a).length)return void o.position.call(o.$trigger,o,h,u)}else if(r=o.$trigger.offset(),e=c(window),r.top+=e.scrollTop(),r.top<=s.pageY&&(r.left+=e.scrollLeft(),r.left<=s.pageX&&(r.bottom=r.top+o.$trigger.outerHeight(),r.bottom>=s.pageY&&(r.right=r.left+o.$trigger.outerWidth(),r.right>=s.pageX))))return void o.position.call(o.$trigger,o,h,u);a&&t&&o.$trigger.one("contextmenu:hidden",function(){c(a).contextMenu({x:h,y:u,button:l})}),null!==o&&null!==o.$menu&&o.$menu.trigger("contextmenu:hide")},50)},keyStop:function(e,t){t.isInput||e.preventDefault(),e.stopPropagation()},key:function(e){var t={};o&&(t=o.data("contextMenu")||{}),void 0===t.zIndex&&(t.zIndex=0);var i=0,n=function(e){""!==e.style.zIndex?i=e.style.zIndex:null!==e.offsetParent&&void 0!==e.offsetParent?n(e.offsetParent):null!==e.parentElement&&void 0!==e.parentElement&&n(e.parentElement)};if(n(e.target),!(i>t.zIndex)){switch(e.keyCode){case 9:case 38:if(_.keyStop(e,t),t.isInput){if(9===e.keyCode&&e.shiftKey)return e.preventDefault(),t.$selected&&t.$selected.find("input, textarea, select").blur(),void(null!==t.$menu&&t.$menu.trigger("prevcommand"));if(38===e.keyCode&&"checkbox"===t.$selected.find("input, textarea, select").prop("type"))return void e.preventDefault()}else if(9!==e.keyCode||e.shiftKey)return void(null!==t.$menu&&t.$menu.trigger("prevcommand"));break;case 40:if(_.keyStop(e,t),!t.isInput)return void(null!==t.$menu&&t.$menu.trigger("nextcommand"));if(9===e.keyCode)return e.preventDefault(),t.$selected&&t.$selected.find("input, textarea, select").blur(),void(null!==t.$menu&&t.$menu.trigger("nextcommand"));if(40===e.keyCode&&"checkbox"===t.$selected.find("input, textarea, select").prop("type"))return void e.preventDefault();break;case 37:if(_.keyStop(e,t),t.isInput||!t.$selected||!t.$selected.length)break;if(!t.$selected.parent().hasClass("context-menu-root")){var s=t.$selected.parent().parent();return t.$selected.trigger("contextmenu:blur"),void(t.$selected=s)}break;case 39:if(_.keyStop(e,t),t.isInput||!t.$selected||!t.$selected.length)break;var a=t.$selected.data("contextMenu")||{};if(a.$menu&&t.$selected.hasClass("context-menu-submenu"))return t.$selected=null,a.$selected=null,void a.$menu.trigger("nextcommand");break;case 35:case 36:return t.$selected&&t.$selected.find("input, textarea, select").length?void 0:((t.$selected&&t.$selected.parent()||t.$menu).children(":not(."+t.classNames.disabled+", ."+t.classNames.notSelectable+")")[36===e.keyCode?"first":"last"]().trigger("contextmenu:focus"),void e.preventDefault());case 13:if(_.keyStop(e,t),t.isInput){if(t.$selected&&!t.$selected.is("textarea, select"))return void e.preventDefault();break}return void(void 0!==t.$selected&&null!==t.$selected&&t.$selected.trigger("mouseup"));case 32:case 33:case 34:return void _.keyStop(e,t);case 27:return _.keyStop(e,t),void(null!==t.$menu&&t.$menu.trigger("contextmenu:hide"));default:var r=String.fromCharCode(e.keyCode).toUpperCase();if(t.accesskeys&&t.accesskeys[r])return void t.accesskeys[r].$node.trigger(t.accesskeys[r].$menu?"contextmenu:focus":"mouseup")}e.stopPropagation(),void 0!==t.$selected&&null!==t.$selected&&t.$selected.trigger(e)}},prevItem:function(e){e.stopPropagation();var t=c(this).data("contextMenu")||{},i=c(this).data("contextMenuRoot")||{};if(t.$selected){var n=t.$selected;(t=t.$selected.parent().data("contextMenu")||{}).$selected=n}for(var s=t.$menu.children(),a=t.$selected&&t.$selected.prev().length?t.$selected.prev():s.last(),r=a;a.hasClass(i.classNames.disabled)||a.hasClass(i.classNames.notSelectable)||a.is(":hidden");)if((a=a.prev().length?a.prev():s.last()).is(r))return;t.$selected&&_.itemMouseleave.call(t.$selected.get(0),e),_.itemMouseenter.call(a.get(0),e);var o=a.find("input, textarea, select");o.length&&o.focus()},nextItem:function(e){e.stopPropagation();var t=c(this).data("contextMenu")||{},i=c(this).data("contextMenuRoot")||{};if(t.$selected){var n=t.$selected;(t=t.$selected.parent().data("contextMenu")||{}).$selected=n}for(var s=t.$menu.children(),a=t.$selected&&t.$selected.next().length?t.$selected.next():s.first(),r=a;a.hasClass(i.classNames.disabled)||a.hasClass(i.classNames.notSelectable)||a.is(":hidden");)if((a=a.next().length?a.next():s.first()).is(r))return;t.$selected&&_.itemMouseleave.call(t.$selected.get(0),e),_.itemMouseenter.call(a.get(0),e);var o=a.find("input, textarea, select");o.length&&o.focus()},focusInput:function(){var e=c(this).closest(".context-menu-item"),t=e.data(),i=t.contextMenu,n=t.contextMenuRoot;n.$selected=i.$selected=e,n.isInput=i.isInput=!0},blurInput:function(){var e=c(this).closest(".context-menu-item").data(),t=e.contextMenu;e.contextMenuRoot.isInput=t.isInput=!1},menuMouseenter:function(){c(this).data().contextMenuRoot.hovering=!0},menuMouseleave:function(e){var t=c(this).data().contextMenuRoot;t.$layer&&t.$layer.is(e.relatedTarget)&&(t.hovering=!1)},itemMouseenter:function(e){var t=c(this),i=t.data(),n=i.contextMenu,s=i.contextMenuRoot;return s.hovering=!0,e&&s.$layer&&s.$layer.is(e.relatedTarget)&&(e.preventDefault(),e.stopImmediatePropagation()),(n.$menu?n:s).$menu.children("."+s.classNames.hover).trigger("contextmenu:blur").children(".hover").trigger("contextmenu:blur"),t.hasClass(s.classNames.disabled)||t.hasClass(s.classNames.notSelectable)?void(n.$selected=null):void t.trigger("contextmenu:focus")},itemMouseleave:function(e){var t=c(this),i=t.data(),n=i.contextMenu,s=i.contextMenuRoot;return s!==n&&s.$layer&&s.$layer.is(e.relatedTarget)?(void 0!==s.$selected&&null!==s.$selected&&s.$selected.trigger("contextmenu:blur"),e.preventDefault(),e.stopImmediatePropagation(),void(s.$selected=n.$selected=n.$node)):void t.trigger("contextmenu:blur")},itemClick:function(e){var t,i=c(this),n=i.data(),s=n.contextMenu,a=n.contextMenuRoot,r=n.contextMenuKey;if(!(!s.items[r]||i.is("."+a.classNames.disabled+", .context-menu-separator, ."+a.classNames.notSelectable)||i.is(".context-menu-submenu")&&!1===a.selectableSubMenu)){if(e.preventDefault(),e.stopImmediatePropagation(),c.isFunction(s.callbacks[r])&&Object.prototype.hasOwnProperty.call(s.callbacks,r))t=s.callbacks[r];else{if(!c.isFunction(a.callback))return;t=a.callback}!1!==t.call(a.$trigger,r,a)?a.$menu.trigger("contextmenu:hide"):a.$menu.parent().length&&y.update.call(a.$trigger,a)}},inputClick:function(e){e.stopImmediatePropagation()},hideMenu:function(e,t){var i=c(this).data("contextMenuRoot");y.hide.call(i.$trigger,i,t&&t.force)},focusItem:function(e){e.stopPropagation();var t=c(this),i=t.data(),n=i.contextMenu,s=i.contextMenuRoot;t.hasClass(s.classNames.disabled)||t.hasClass(s.classNames.notSelectable)||(t.addClass([s.classNames.hover,s.classNames.visible].join(" ")).parent().find(".context-menu-item").not(t).removeClass(s.classNames.visible).filter("."+s.classNames.hover).trigger("contextmenu:blur"),n.$selected=s.$selected=t,n.$node&&s.positionSubmenu.call(n.$node,n.$menu))},blurItem:function(e){e.stopPropagation();var t=c(this),i=t.data(),n=i.contextMenu,s=i.contextMenuRoot;n.autoHide&&t.removeClass(s.classNames.visible),t.removeClass(s.classNames.hover),n.$selected=null}},y={show:function(i,e,t){var n=c(this),s={};if(c("#context-menu-layer").trigger("mousedown"),i.$trigger=n,!1!==i.events.show.call(n,i)){if(y.update.call(n,i),i.position.call(n,i,e,t),i.zIndex){var a=i.zIndex;"function"==typeof i.zIndex&&(a=i.zIndex.call(n,i)),s.zIndex=function(e){for(var t=0,i=e;t=Math.max(t,parseInt(i.css("z-index"),10)||0),(i=i.parent())&&i.length&&!(-1<"html body".indexOf(i.prop("nodeName").toLowerCase())););return t}(n)+a}y.layer.call(i.$menu,i,s.zIndex),i.$menu.find("ul").css("zIndex",s.zIndex+1),i.$menu.css(s)[i.animation.show](i.animation.duration,function(){n.trigger("contextmenu:visible")}),n.data("contextMenu",i).addClass("context-menu-active"),c(document).off("keydown.contextMenu").on("keydown.contextMenu",_.key),i.autoHide&&c(document).on("mousemove.contextMenuAutoHide",function(e){var t=n.offset();t.right=t.left+n.outerWidth(),t.bottom=t.top+n.outerHeight(),!i.$layer||i.hovering||e.pageX>=t.left&&e.pageX<=t.right&&e.pageY>=t.top&&e.pageY<=t.bottom||setTimeout(function(){i.hovering||null===i.$menu||i.$menu.trigger("contextmenu:hide")},50)})}else o=null},hide:function(t,e){var i,n=c(this);if(t||(t=n.data("contextMenu")||{}),e||!t.events||!1!==t.events.hide.call(n,t)){if(n.removeData("contextMenu").removeClass("context-menu-active"),t.$layer){setTimeout((i=t.$layer,function(){i.remove()}),10);try{delete t.$layer}catch(e){t.$layer=null}}o=null,t.$menu.find("."+t.classNames.hover).trigger("contextmenu:blur"),t.$selected=null,t.$menu.find("."+t.classNames.visible).removeClass(t.classNames.visible),c(document).off(".contextMenuAutoHide").off("keydown.contextMenu"),t.$menu&&t.$menu[t.animation.hide](t.animation.duration,function(){t.build&&(t.$menu.remove(),c.each(t,function(e){switch(e){case"ns":case"selector":case"build":case"trigger":return!0;default:t[e]=void 0;try{delete t[e]}catch(e){}return!0}})),setTimeout(function(){n.trigger("contextmenu:hidden")},10)})}},create:function(h,u){function d(e){var t=c("<span></span>");if(e._accesskey)e._beforeAccesskey&&t.append(document.createTextNode(e._beforeAccesskey)),c("<span></span>").addClass("context-menu-accesskey").text(e._accesskey).appendTo(t),e._afterAccesskey&&t.append(document.createTextNode(e._afterAccesskey));else if(e.isHtmlName){if(void 0!==e.accesskey)throw new Error("accesskeys are not compatible with HTML names and cannot be used together in the same item");t.html(e.name)}else t.text(e.name);return t}void 0===u&&(u=h),h.$menu=c('<ul class="context-menu-list"></ul>').addClass(h.className||"").data({contextMenu:h,contextMenuRoot:u}),c.each(["callbacks","commands","inputs"],function(e,t){h[t]={},u[t]||(u[t]={})}),u.accesskeys||(u.accesskeys={}),c.each(h.items,function(i,n){var e=c('<li class="context-menu-item"></li>').addClass(n.className||""),t=null,s=null;if(e.on("click",c.noop),"string"!=typeof n&&"cm_separator"!==n.type||(n={type:"cm_seperator"}),n.$node=e.data({contextMenu:h,contextMenuRoot:u,contextMenuKey:i}),void 0!==n.accesskey)for(var a,r=function(e){for(var t,i=e.split(/\s+/),n=[],s=0;t=i[s];s++)t=t.charAt(0).toUpperCase(),n.push(t);return n}(n.accesskey),o=0;a=r[o];o++)if(!u.accesskeys[a]){var l=(u.accesskeys[a]=n).name.match(new RegExp("^(.*?)("+a+")(.*)$","i"));l&&(n._beforeAccesskey=l[1],n._accesskey=l[2],n._afterAccesskey=l[3]);break}if(n.type&&g[n.type])g[n.type].call(e,n,h,u),c.each([h,u],function(e,t){t.commands[i]=n,!c.isFunction(n.callback)||void 0!==t.callbacks[i]&&void 0!==h.type||(t.callbacks[i]=n.callback)});else{switch("cm_seperator"===n.type?e.addClass("context-menu-separator "+u.classNames.notSelectable):"html"===n.type?e.addClass("context-menu-html "+u.classNames.notSelectable):"sub"===n.type||(n.type?(t=c("<label></label>").appendTo(e),d(n).appendTo(t),e.addClass("context-menu-input"),h.hasTypes=!0,c.each([h,u],function(e,t){t.commands[i]=n,t.inputs[i]=n})):n.items&&(n.type="sub")),n.type){case"cm_seperator":break;case"text":s=c('<input type="text" value="1" name="" />').attr("name","context-menu-input-"+i).val(n.value||"").appendTo(t);break;case"textarea":s=c('<textarea name=""></textarea>').attr("name","context-menu-input-"+i).val(n.value||"").appendTo(t),n.height&&s.height(n.height);break;case"checkbox":s=c('<input type="checkbox" value="1" name="" />').attr("name","context-menu-input-"+i).val(n.value||"").prop("checked",!!n.selected).prependTo(t);break;case"radio":s=c('<input type="radio" value="1" name="" />').attr("name","context-menu-input-"+n.radio).val(n.value||"").prop("checked",!!n.selected).prependTo(t);break;case"select":s=c('<select name=""></select>').attr("name","context-menu-input-"+i).appendTo(t),n.options&&(c.each(n.options,function(e,t){c("<option></option>").val(e).text(t).appendTo(s)}),s.val(n.selected));break;case"sub":d(n).appendTo(e),n.appendTo=n.$node,e.data("contextMenu",n).addClass("context-menu-submenu"),n.callback=null,"function"==typeof n.items.then?y.processPromises(n,u,n.items):y.create(n,u);break;case"html":c(n.html).appendTo(e);break;default:c.each([h,u],function(e,t){t.commands[i]=n,!c.isFunction(n.callback)||void 0!==t.callbacks[i]&&void 0!==h.type||(t.callbacks[i]=n.callback)}),d(n).appendTo(e)}n.type&&"sub"!==n.type&&"html"!==n.type&&"cm_seperator"!==n.type&&(s.on("focus",_.focusInput).on("blur",_.blurInput),n.events&&s.on(n.events,h)),n.icon&&(c.isFunction(n.icon)?n._icon=n.icon.call(this,this,e,i,n):"string"==typeof n.icon&&"fa-"===n.icon.substring(0,3)?n._icon=u.classNames.icon+" "+u.classNames.icon+"--fa fa "+n.icon:n._icon=u.classNames.icon+" "+u.classNames.icon+"-"+n.icon,e.addClass(n._icon))}n.$input=s,n.$label=t,e.appendTo(h.$menu),!h.hasTypes&&c.support.eventSelectstart&&e.on("selectstart.disableTextSelect",_.abortevent)}),h.$node||h.$menu.css("display","none").addClass("context-menu-root"),h.$menu.appendTo(h.appendTo||document.body)},resize:function(e,t){var i;e.css({position:"absolute",display:"block"}),e.data("width",(i=e.get(0)).getBoundingClientRect?Math.ceil(i.getBoundingClientRect().width):e.outerWidth()+1),e.css({position:"static",minWidth:"0px",maxWidth:"100000px"}),e.find("> li > ul").each(function(){y.resize(c(this),!0)}),t||e.find("ul").addBack().css({position:"",display:"",minWidth:"",maxWidth:""}).outerWidth(function(){return c(this).data("width")})},update:function(s,a){var r=this;void 0===a&&(a=s,y.resize(s.$menu)),s.$menu.children().each(function(){var e=c(this),t=e.data("contextMenuKey"),i=s.items[t],n=c.isFunction(i.disabled)&&i.disabled.call(r,t,a)||!0===i.disabled;if(e[(c.isFunction(i.visible)?i.visible.call(r,t,a):void 0===i.visible||!0===i.visible)?"show":"hide"](),e[n?"addClass":"removeClass"](a.classNames.disabled),c.isFunction(i.icon)&&(e.removeClass(i._icon),i._icon=i.icon.call(this,r,e,t,i),e.addClass(i._icon)),i.type)switch(e.find("input, select, textarea").prop("disabled",n),i.type){case"text":case"textarea":i.$input.val(i.value||"");break;case"checkbox":case"radio":i.$input.val(i.value||"").prop("checked",!!i.selected);break;case"select":i.$input.val(i.selected||"")}i.$menu&&y.update.call(r,i,a)})},layer:function(e,t){var i=e.$layer=c('<div id="context-menu-layer"></div>').css({height:d.height(),width:d.width(),display:"block",position:"fixed","z-index":t,top:0,left:0,opacity:0,filter:"alpha(opacity=0)","background-color":"#000"}).data("contextMenuRoot",e).insertBefore(this).on("contextmenu",_.abortevent).on("mousedown",_.layerClick);return void 0===document.body.style.maxWidth&&i.css({position:"absolute",height:c(document).height()}),i},processPromises:function(e,t,i){function n(e,t,i){void 0===i?(i={error:{name:"No items and no error item",icon:"context-menu-icon context-menu-icon-quit"}},window.console&&(console.error||console.log).call(console,'When you reject a promise, provide an "items" object, equal to normal sub-menu items')):"string"==typeof i&&(i={error:{name:i}}),s(e,t,i)}function s(e,t,i){void 0!==t.$menu&&t.$menu.is(":visible")&&(e.$node.removeClass(t.classNames.iconLoadingClass),e.items=i,y.create(e,t,!0),y.update(e,t),t.positionSubmenu.call(e.$node,e.$menu))}e.$node.addClass(t.classNames.iconLoadingClass),i.then(function(e,t,i){void 0===i&&n(void 0),s(e,t,i)}.bind(this,e,t),n.bind(this,e,t))}};c.fn.contextMenu=function(e){var t=this,i=e;if(0<this.length)if(void 0===e)this.first().trigger("contextmenu");else if(void 0!==e.x&&void 0!==e.y)this.first().trigger(c.Event("contextmenu",{pageX:e.x,pageY:e.y,mouseButton:e.button}));else if("hide"===e){var n=this.first().data("contextMenu")?this.first().data("contextMenu").$menu:null;n&&n.trigger("contextmenu:hide")}else"destroy"===e?c.contextMenu("destroy",{context:this}):c.isPlainObject(e)?(e.context=this,c.contextMenu("create",e)):e?this.removeClass("context-menu-disabled"):e||this.addClass("context-menu-disabled");else c.each(m,function(){this.selector===t.selector&&(i.data=this,c.extend(i.data,{trigger:"demand"}))}),_.contextmenu.call(i.target,i);return this},c.contextMenu=function(e,t){"string"!=typeof e&&(t=e,e="create"),"string"==typeof t?t={selector:t}:void 0===t&&(t={});var i=c.extend(!0,{},v,t||{}),n=c(document),s=n,a=!1;switch(i.context&&i.context.length?(s=c(i.context).first(),i.context=s.get(0),a=!c(i.context).is(document)):i.context=document,e){case"create":if(!i.selector)throw new Error("No selector specified");if(i.selector.match(/.context-menu-(list|item|input)($|\s)/))throw new Error('Cannot bind to selector "'+i.selector+'" as it contains a reserved className');if(!i.build&&(!i.items||c.isEmptyObject(i.items)))throw new Error("No Items specified");if(p++,i.ns=".contextMenu"+p,a||(f[i.selector]=i.ns),(m[i.ns]=i).trigger||(i.trigger="right"),!u){var r="click"===i.itemClickEvent?"click.contextMenu":"mouseup.contextMenu",o={"contextmenu:focus.contextMenu":_.focusItem,"contextmenu:blur.contextMenu":_.blurItem,"contextmenu.contextMenu":_.abortevent,"mouseenter.contextMenu":_.itemMouseenter,"mouseleave.contextMenu":_.itemMouseleave};o[r]=_.itemClick,n.on({"contextmenu:hide.contextMenu":_.hideMenu,"prevcommand.contextMenu":_.prevItem,"nextcommand.contextMenu":_.nextItem,"contextmenu.contextMenu":_.abortevent,"mouseenter.contextMenu":_.menuMouseenter,"mouseleave.contextMenu":_.menuMouseleave},".context-menu-list").on("mouseup.contextMenu",".context-menu-input",_.inputClick).on(o,".context-menu-item"),u=!0}switch(s.on("contextmenu"+i.ns,i.selector,i,_.contextmenu),a&&s.on("remove"+i.ns,function(){c(this).contextMenu("destroy")}),i.trigger){case"hover":s.on("mouseenter"+i.ns,i.selector,i,_.mouseenter).on("mouseleave"+i.ns,i.selector,i,_.mouseleave);break;case"left":s.on("click"+i.ns,i.selector,i,_.click)}i.build||y.create(i);break;case"destroy":var l;if(a){var h=i.context;c.each(m,function(e,t){if(!t)return!0;if(!c(h).is(t.selector))return!0;(l=c(".context-menu-list").filter(":visible")).length&&l.data().contextMenuRoot.$trigger.is(c(t.context).find(t.selector))&&l.trigger("contextmenu:hide",{force:!0});try{m[t.ns].$menu&&m[t.ns].$menu.remove(),delete m[t.ns]}catch(e){m[t.ns]=null}return c(t.context).off(t.ns),!0})}else if(i.selector){if(f[i.selector]){(l=c(".context-menu-list").filter(":visible")).length&&l.data().contextMenuRoot.$trigger.is(i.selector)&&l.trigger("contextmenu:hide",{force:!0});try{m[f[i.selector]].$menu&&m[f[i.selector]].$menu.remove(),delete m[f[i.selector]]}catch(e){m[f[i.selector]]=null}n.off(f[i.selector])}}else n.off(".contextMenu .contextMenuAutoHide"),c.each(m,function(e,t){c(t.context).off(t.ns)}),f={},p=0,u=!(m={}),c("#context-menu-layer, .context-menu-list").remove();break;case"html5":(!c.support.htmlCommand&&!c.support.htmlMenuitem||"boolean"==typeof t&&t)&&c('menu[type="context"]').each(function(){this.id&&c.contextMenu({selector:"[contextmenu="+this.id+"]",items:c.contextMenu.fromMenu(this)})}).css("display","none");break;default:throw new Error('Unknown operation "'+e+'"')}return this},c.contextMenu.setInputValues=function(e,i){void 0===i&&(i={}),c.each(e.inputs,function(e,t){switch(t.type){case"text":case"textarea":t.value=i[e]||"";break;case"checkbox":t.selected=!!i[e];break;case"radio":t.selected=(i[t.radio]||"")===t.value;break;case"select":t.selected=i[e]||""}})},c.contextMenu.getInputValues=function(e,i){return void 0===i&&(i={}),c.each(e.inputs,function(e,t){switch(t.type){case"text":case"textarea":case"select":i[e]=t.$input.val();break;case"checkbox":i[e]=t.$input.prop("checked");break;case"radio":t.$input.prop("checked")&&(i[t.radio]=t.value)}}),i},c.contextMenu.fromMenu=function(e){var t={};return function a(r,e,o){return o||(o=0),e.each(function(){var e,t,i=c(this),n=this,s=this.nodeName.toLowerCase();switch("label"===s&&i.find("input, textarea, select").length&&(e=i.text(),s=(n=(i=i.children().first()).get(0)).nodeName.toLowerCase()),s){case"menu":t={name:i.attr("label"),items:{}},o=a(t.items,i.children(),o);break;case"a":case"button":t={name:i.text(),disabled:!!i.attr("disabled"),callback:function(){i.click()}};break;case"menuitem":case"command":switch(i.attr("type")){case void 0:case"command":case"menuitem":t={name:i.attr("label"),disabled:!!i.attr("disabled"),icon:i.attr("icon"),callback:function(){i.click()}};break;case"checkbox":t={type:"checkbox",disabled:!!i.attr("disabled"),name:i.attr("label"),selected:!!i.attr("checked")};break;case"radio":t={type:"radio",disabled:!!i.attr("disabled"),name:i.attr("label"),radio:i.attr("radiogroup"),value:i.attr("id"),selected:!!i.attr("checked")};break;default:t=void 0}break;case"hr":t="-------";break;case"input":switch(i.attr("type")){case"text":t={type:"text",name:e||l(n),disabled:!!i.attr("disabled"),value:i.val()};break;case"checkbox":t={type:"checkbox",name:e||l(n),disabled:!!i.attr("disabled"),selected:!!i.attr("checked")};break;case"radio":t={type:"radio",name:e||l(n),disabled:!!i.attr("disabled"),radio:!!i.attr("name"),value:i.val(),selected:!!i.attr("checked")};break;default:t=void 0}break;case"select":t={type:"select",name:e||l(n),disabled:!!i.attr("disabled"),selected:i.val(),options:{}},i.children().each(function(){t.options[this.value]=c(this).text()});break;case"textarea":t={type:"textarea",name:e||l(n),disabled:!!i.attr("disabled"),value:i.val()};break;case"label":break;default:t={type:"html",html:i.clone(!0)}}t&&(r["key"+ ++o]=t)}),o}(t,c(e).children()),t},c.contextMenu.defaults=v,c.contextMenu.types=g,c.contextMenu.handle=_,c.contextMenu.op=y,c.contextMenu.menus=m}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(L){L.ui=L.ui||{},L.ui.version="1.12.1",function(){function w(e,t,i){return[parseFloat(e[0])*(l.test(e[0])?t/100:1),parseFloat(e[1])*(l.test(e[1])?i/100:1)]}function M(e,t){return parseInt(L.css(e,t),10)||0}var s,j=Math.max,k=Math.abs,n=/left|center|right/,a=/top|center|bottom/,r=/[\+\-]\d+(\.[\d]+)?%?/,o=/^\w+/,l=/%$/,h=L.fn.position;L.position={scrollbarWidth:function(){if(void 0!==s)return s;var e,t,i=L("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),n=i.children()[0];return L("body").append(i),e=n.offsetWidth,i.css("overflow","scroll"),e===(t=n.offsetWidth)&&(t=i[0].clientWidth),i.remove(),s=e-t},getScrollInfo:function(e){var t=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),i=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),n="scroll"===t||"auto"===t&&e.width<e.element[0].scrollWidth;return{width:"scroll"===i||"auto"===i&&e.height<e.element[0].scrollHeight?L.position.scrollbarWidth():0,height:n?L.position.scrollbarWidth():0}},getWithinInfo:function(e){var t=L(e||window),i=L.isWindow(t[0]),n=!!t[0]&&9===t[0].nodeType;return{element:t,isWindow:i,isDocument:n,offset:!i&&!n?L(e).offset():{left:0,top:0},scrollLeft:t.scrollLeft(),scrollTop:t.scrollTop(),width:t.outerWidth(),height:t.outerHeight()}}},L.fn.position=function(d){if(!d||!d.of)return h.apply(this,arguments);d=L.extend({},d);var c,p,f,m,g,e,t,i,v=L(d.of),_=L.position.getWithinInfo(d.within),y=L.position.getScrollInfo(_),b=(d.collision||"flip").split(" "),x={};return e=9===(i=(t=v)[0]).nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:L.isWindow(i)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()},v[0].preventDefault&&(d.at="left top"),p=e.width,f=e.height,m=e.offset,g=L.extend({},m),L.each(["my","at"],function(){var e,t,i=(d[this]||"").split(" ");1===i.length&&(i=n.test(i[0])?i.concat(["center"]):a.test(i[0])?["center"].concat(i):["center","center"]),i[0]=n.test(i[0])?i[0]:"center",i[1]=a.test(i[1])?i[1]:"center",e=r.exec(i[0]),t=r.exec(i[1]),x[this]=[e?e[0]:0,t?t[0]:0],d[this]=[o.exec(i[0])[0],o.exec(i[1])[0]]}),1===b.length&&(b[1]=b[0]),"right"===d.at[0]?g.left+=p:"center"===d.at[0]&&(g.left+=p/2),"bottom"===d.at[1]?g.top+=f:"center"===d.at[1]&&(g.top+=f/2),c=w(x.at,p,f),g.left+=c[0],g.top+=c[1],this.each(function(){var i,e,r=L(this),o=r.outerWidth(),l=r.outerHeight(),t=M(this,"marginLeft"),n=M(this,"marginTop"),s=o+t+M(this,"marginRight")+y.width,a=l+n+M(this,"marginBottom")+y.height,h=L.extend({},g),u=w(x.my,r.outerWidth(),r.outerHeight());"right"===d.my[0]?h.left-=o:"center"===d.my[0]&&(h.left-=o/2),"bottom"===d.my[1]?h.top-=l:"center"===d.my[1]&&(h.top-=l/2),h.left+=u[0],h.top+=u[1],i={marginLeft:t,marginTop:n},L.each(["left","top"],function(e,t){L.ui.position[b[e]]&&L.ui.position[b[e]][t](h,{targetWidth:p,targetHeight:f,elemWidth:o,elemHeight:l,collisionPosition:i,collisionWidth:s,collisionHeight:a,offset:[c[0]+u[0],c[1]+u[1]],my:d.my,at:d.at,within:_,elem:r})}),d.using&&(e=function(e){var t=m.left-h.left,i=t+p-o,n=m.top-h.top,s=n+f-l,a={target:{element:v,left:m.left,top:m.top,width:p,height:f},element:{element:r,left:h.left,top:h.top,width:o,height:l},horizontal:i<0?"left":0<t?"right":"center",vertical:s<0?"top":0<n?"bottom":"middle"};p<o&&p>k(t+i)&&(a.horizontal="center"),f<l&&f>k(n+s)&&(a.vertical="middle"),a.important=j(k(t),k(i))>j(k(n),k(s))?"horizontal":"vertical",d.using.call(this,e,a)}),r.offset(L.extend(h,{using:e}))})},L.ui.position={fit:{left:function(e,t){var i,n=t.within,s=n.isWindow?n.scrollLeft:n.offset.left,a=n.width,r=e.left-t.collisionPosition.marginLeft,o=s-r,l=r+t.collisionWidth-a-s;t.collisionWidth>a?0<o&&l<=0?(i=e.left+o+t.collisionWidth-a-s,e.left+=o-i):e.left=0<l&&o<=0?s:l<o?s+a-t.collisionWidth:s:0<o?e.left+=o:0<l?e.left-=l:e.left=j(e.left-r,e.left)},top:function(e,t){var i,n=t.within,s=n.isWindow?n.scrollTop:n.offset.top,a=t.within.height,r=e.top-t.collisionPosition.marginTop,o=s-r,l=r+t.collisionHeight-a-s;t.collisionHeight>a?0<o&&l<=0?(i=e.top+o+t.collisionHeight-a-s,e.top+=o-i):e.top=0<l&&o<=0?s:l<o?s+a-t.collisionHeight:s:0<o?e.top+=o:0<l?e.top-=l:e.top=j(e.top-r,e.top)}},flip:{left:function(e,t){var i,n,s=t.within,a=s.offset.left+s.scrollLeft,r=s.width,o=s.isWindow?s.scrollLeft:s.offset.left,l=e.left-t.collisionPosition.marginLeft,h=l-o,u=l+t.collisionWidth-r-o,d="left"===t.my[0]?-t.elemWidth:"right"===t.my[0]?t.elemWidth:0,c="left"===t.at[0]?t.targetWidth:"right"===t.at[0]?-t.targetWidth:0,p=-2*t.offset[0];h<0?((i=e.left+d+c+p+t.collisionWidth-r-a)<0||k(h)>i)&&(e.left+=d+c+p):0<u&&((0<(n=e.left-t.collisionPosition.marginLeft+d+c+p-o)||u>k(n))&&(e.left+=d+c+p))},top:function(e,t){var i,n,s=t.within,a=s.offset.top+s.scrollTop,r=s.height,o=s.isWindow?s.scrollTop:s.offset.top,l=e.top-t.collisionPosition.marginTop,h=l-o,u=l+t.collisionHeight-r-o,d="top"===t.my[1]?-t.elemHeight:"bottom"===t.my[1]?t.elemHeight:0,c="top"===t.at[1]?t.targetHeight:"bottom"===t.at[1]?-t.targetHeight:0,p=-2*t.offset[1];h<0?((n=e.top+d+c+p+t.collisionHeight-r-a)<0||k(h)>n)&&(e.top+=d+c+p):0<u&&((0<(i=e.top-t.collisionPosition.marginTop+d+c+p-o)||u>k(i))&&(e.top+=d+c+p))}},flipfit:{left:function(){L.ui.position.flip.left.apply(this,arguments),L.ui.position.fit.left.apply(this,arguments)},top:function(){L.ui.position.flip.top.apply(this,arguments),L.ui.position.fit.top.apply(this,arguments)}}}}(),L.ui.position}),function(o){var e,r='<svg><symbol id="icon-file" viewBox="0 0 1024 1024"><path d="M853.333333 960H170.666667V64h469.333333l213.333333 213.333333z" fill="#90CAF9" ></path><path d="M821.333333 298.666667H618.666667V96z" fill="#E1F5FE" ></path></symbol><symbol id="icon-code" viewBox="0 0 1024 1024"><path d="M656 240V16H144v992h736V240z" fill="#FEEB9E" ></path><path d="M656 16v224h224z" fill="#E6C45F" ></path><path d="M895.904 239.824a15.536 15.536 0 0 0-4.464-10.48L666.656 4.56a15.376 15.376 0 0 0-10.336-4.432L656 0H160a32 32 0 0 0-32 32v960a32 32 0 0 0 32 32h704a32 32 0 0 0 32-32V240l-0.096-0.176zM672 54.096L841.904 224H672V54.096zM864 992H160V32h480v224h224v736z" fill="#2B3139" ></path><path d="M458.368 611.904l-127.312-127.312a15.84 15.84 0 0 0-22.464 0 15.84 15.84 0 0 0 0 22.464L425.52 624l-116.928 116.944a15.84 15.84 0 0 0 0 22.464 15.84 15.84 0 0 0 22.464 0l127.28-127.28c0.336-0.288 0.752-0.384 1.072-0.704a15.888 15.888 0 0 0 4.64-11.424 15.696 15.696 0 0 0-4.64-11.408c-0.304-0.288-0.704-0.4-1.04-0.688zM704 736H512a16 16 0 1 0 0 32h192a16 16 0 1 0 0-32z" fill="#2B3139" ></path></symbol><symbol id="icon-code1" viewBox="0 0 1024 1024"><path d="M656 240V16H144v992h736V240z" fill="#EDF2F9" ></path><path d="M895.904 239.824a15.536 15.536 0 0 0-4.464-10.48L666.656 4.56a15.376 15.376 0 0 0-10.336-4.432L656 0H160a32 32 0 0 0-32 32v960a32 32 0 0 0 32 32h704a32 32 0 0 0 32-32V240l-0.096-0.176zM672 54.096L841.904 224H672V54.096zM864 992H160V32h480v224h224v736z" fill="#8592A5" ></path><path d="M458.336 611.872l-127.28-127.28a15.84 15.84 0 0 0-22.464 0 15.84 15.84 0 0 0 0 22.464L425.52 624l-116.928 116.944a15.84 15.84 0 0 0 0 22.464 15.84 15.84 0 0 0 22.464 0l127.28-127.28c0.336-0.288 0.752-0.384 1.072-0.704a15.888 15.888 0 0 0 4.64-11.424 15.84 15.84 0 0 0-4.64-11.424c-0.32-0.304-0.736-0.416-1.072-0.704zM704 736H512a16 16 0 1 0 0 32h192a16 16 0 1 0 0-32z" fill="#8592A5" ></path></symbol><symbol id="icon-archiver" viewBox="0 0 1024 1024"><path d="M0 960a64 64 0 0 0 64 64h896a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H64a64 64 0 0 0-64 64v704z" fill="#469FCC" ></path><path d="M960 480V288a32 32 0 0 0-32-32H96a32 32 0 0 0-32 32v192h896z" fill="" ></path><path d="M768 640m-64 0a64 64 0 1 0 128 0 64 64 0 1 0-128 0Z" fill="" ></path><path d="M256 640m-64 0a64 64 0 1 0 128 0 64 64 0 1 0-128 0Z" fill="" ></path><path d="M800 640a32 32 0 0 1-32 32H256a32 32 0 1 1 0-64h512a32 32 0 0 1 32 32z" fill="#EACA44" ></path><path d="M768 672H256a31.52 31.52 0 0 1-27.104-16A30.88 30.88 0 0 0 224 672a32 32 0 0 0 32 32h512a32 32 0 0 0 32-32 30.88 30.88 0 0 0-4.896-16 31.52 31.52 0 0 1-27.104 16z" fill="" ></path><path d="M64 448h64v32H64zM896 448h64v32h-64z" fill="" ></path><path d="M832 0H192a64 64 0 0 0-64 64v160a64 64 0 0 1 64-64h640a64 64 0 0 1 64 64V64a64 64 0 0 0-64-64z" fill="#EAEAEA" ></path><path d="M832 64H192a64 64 0 0 0-64 64v32a64 64 0 0 1 64-64h640a64 64 0 0 1 64 64V128a64 64 0 0 0-64-64z" fill="" ></path><path d="M832 0H192a64 64 0 0 0-64 64v32a64 64 0 0 1 64-64h640a64 64 0 0 1 64 64V64a64 64 0 0 0-64-64zM832 128H192a64 64 0 0 0-64 64v32a64 64 0 0 1 64-64h640a64 64 0 0 1 64 64V192a64 64 0 0 0-64-64z" fill="" ></path><path d="M896 480V224a64 64 0 0 0-64-64H192a64 64 0 0 0-64 64v256h768z" fill="#EAEAEA" ></path><path d="M128 448h768v32H128zM736 320a32 32 0 0 1-32 32H320a32 32 0 1 1 0-64h384a32 32 0 0 1 32 32z" fill="" ></path></symbol><symbol id="icon-file-audio" viewBox="0 0 1024 1024"><path d="M640 0H128a64 64 0 0 0-64 64v896a64 64 0 0 0 64 64h768a64 64 0 0 0 64-64V320L640 0z" fill="#84BF56" ></path><path d="M640 0v256a64 64 0 0 0 64 64h256L640 0z" fill="#434854" ></path><path d="M448 416v261.888A94.784 94.784 0 0 0 416 672a96 96 0 1 0 96 96v-192l192 32-256-192z" fill="#FFFFFF" ></path><path d="M704 320l256 256v-256z" fill="" ></path></symbol><symbol id="icon-floder" viewBox="0 0 1024 1024"><path d="M668.61568 80H200.32c-31.81056 0-57.6 25.78944-57.6 57.6V915.20512c0 15.90272 6.44096 30.30528 16.87552 40.72448a57.42592 57.42592 0 0 0 40.72448 16.87552h633.6c31.81056 0 57.6-25.78944 57.6-57.6V302.90432l-222.90432-222.90432z" fill="" ></path><path d="M668.61568 51.2H200.32c-31.81056 0-57.6 25.78944-57.6 57.6V886.40512c0 15.90272 6.44096 30.30528 16.87552 40.72448a57.42592 57.42592 0 0 0 40.72448 16.87552h633.6c31.81056 0 57.6-25.78944 57.6-57.6V274.10432L668.61568 51.2z" fill="#E7C353" ></path><path d="M769.5872 152.17152l-100.6336 100.62848 222.5664 222.5664V274.10432z" fill="" ></path><path d="M668.61568 51.2h-7.49568v172.8c0 31.81056 25.78944 57.6 57.6 57.6h172.8v-7.49568L668.61568 51.2z" fill="#EADBAE" ></path></symbol><symbol id="icon-doc" viewBox="0 0 1024 1024"><path d="M663.49568 80H195.2c-31.81056 0-57.6 25.78944-57.6 57.6V915.20512c0 15.90272 6.44096 30.30528 16.86016 40.72448a57.49248 57.49248 0 0 0 40.73984 16.87552h633.6c31.81056 0 57.6-25.78944 57.6-57.6V302.90432l-222.90432-222.90432z" fill="" ></path><path d="M663.49568 51.2H195.2c-31.81056 0-57.6 25.78944-57.6 57.6V886.40512c0 15.90272 6.44096 30.30528 16.87552 40.72448a57.42592 57.42592 0 0 0 40.72448 16.87552h633.6c31.81056 0 57.6-25.78944 57.6-57.6V274.10432L663.49568 51.2z" fill="#63D0A8" ></path><path d="M764.4672 152.17152l-100.6336 100.62848 222.5664 222.5664V274.10432z" fill="" ></path><path d="M663.49568 51.2h-7.49568v172.8c0 31.81056 25.78944 57.6 57.6 57.6h172.8v-7.49568L663.49568 51.2z" fill="#CAFFEC" ></path><path d="M274.40128 454.4h475.20256c11.92448 0 21.60128-9.6768 21.60128-21.60128s-9.6768-21.60128-21.60128-21.60128H274.40128c-11.92448 0-21.60128 9.6768-21.60128 21.60128s9.6768 21.60128 21.60128 21.60128z m475.19744 86.4H274.40128c-11.92448 0-21.60128 9.6768-21.60128 21.60128s9.6768 21.60128 21.60128 21.60128h475.20256c11.92448 0 21.60128-9.6768 21.60128-21.60128s-9.68192-21.60128-21.6064-21.60128z m0 129.60256H274.40128c-11.92448 0-21.60128 9.6768-21.60128 21.60128s9.6768 21.60128 21.60128 21.60128h475.20256c11.92448 0 21.60128-9.6768 21.60128-21.60128s-9.68192-21.60128-21.6064-21.60128z m-475.19744-345.6h230.4c11.92448 0 21.60128-9.6768 21.60128-21.60128S516.72576 281.6 504.80128 281.6h-230.4c-11.92448 0-21.60128 9.6768-21.60128 21.60128s9.6768 21.60128 21.60128 21.60128z" fill="#FFFFFF" ></path></symbol><symbol id="icon-img" viewBox="0 0 1024 1024"><path d="M917.09952 84.6848H114.41152c-32.83968 0-59.45856 26.624-59.45856 59.45856v772.96128c0 32.83456 26.624 59.45344 59.45856 59.45344h802.688c32.83456 0 59.45344-26.61888 59.45344-59.45344V144.13824c0-32.82944-26.61888-59.45344-59.45344-59.45344z" fill="" ></path><path d="M917.09952 54.95296H114.41152c-32.83968 0-59.45856 26.624-59.45856 59.45856V887.35232c0 32.8448 26.624 59.46368 59.45856 59.46368h802.688c32.83456 0 59.45344-26.61888 59.45344-59.46368V114.41152c0-32.83456-26.61888-59.45856-59.45344-59.45856z" fill="#ECEAE0" ></path><path d="M872.50432 114.41152H159.00672a44.5952 44.5952 0 0 0-44.5952 44.5952V590.07488h802.688V159.00672a44.5952 44.5952 0 0 0-44.5952-44.5952z" fill="#98DCF0" ></path><path d="M613.63712 411.55584l-154.94144 178.51904h309.86752z" fill="#699B54" ></path><path d="M586.82368 590.07488l-206.53568-237.9776-206.5408 237.9776H114.41152V694.12352a44.5952 44.5952 0 0 0 44.5952 44.5952h713.4976a44.5952 44.5952 0 0 0 44.5952-44.5952v-104.05376h-330.27584z" fill="#80BB67" ></path><path d="M768.44544 263.05536m-59.45856 0a59.45856 59.45856 0 1 0 118.91712 0 59.45856 59.45856 0 1 0-118.91712 0Z" fill="#FFE68E" ></path></symbol><symbol id="icon-pdf" viewBox="0 0 1024 1024"><path d="M663.49568 80H195.2c-31.81056 0-57.6 25.78944-57.6 57.6V915.20512c0 15.90272 6.44096 30.30528 16.87552 40.72448a57.42592 57.42592 0 0 0 40.72448 16.87552h633.6c31.81056 0 57.6-25.78944 57.6-57.6V302.90432l-222.90432-222.90432z" fill="" ></path><path d="M663.49568 51.2H195.2c-31.81056 0-57.6 25.78944-57.6 57.6V886.40512c0 15.90272 6.44096 30.30528 16.87552 40.72448a57.42592 57.42592 0 0 0 40.72448 16.87552h633.6c31.81056 0 57.6-25.78944 57.6-57.6V274.10432L663.49568 51.2z" fill="#EF4A4A" ></path><path d="M764.4672 152.17152l-100.6336 100.62848 222.5664 222.5664V274.10432z" fill="" ></path><path d="M663.49568 51.2h-7.49568v172.8c0 31.81056 25.78944 57.6 57.6 57.6h172.8v-7.49568L663.49568 51.2z" fill="#F19A9A" ></path><path d="M688.83456 583.296c14.07488 7.90528 12.06272 13.824 22.1184 5.91872 10.05568-7.90016-10.05568-17.77664-26.1376-23.69536-16.09216-5.92896-92.52864-15.2832-92.52864-15.2832s4.81792 6.45632 11.34592 13.06624c12.12416 6.08768 22.93248 10.07104 30.90944 13.9776 16.35328-0.28672 42.41408-0.65024 54.29248 6.016z m21.69856 21.61152c-10.05568-5.91872-47.85664-11.74016-71.9872-25.56416-1.22368-0.70656-2.60608-1.3824-4.00896-2.06336-3.03616 0.04096-5.85216 0.09728-8.05376 0.09728-7.21408 0-15.98976-7.13216-22.85568-14.07488-28.07808-14.09024-63.09376-39.74144-85.76512-103.90528 0 0-14.08-51.35872-16.08704-69.13024-2.01216-17.76128 6.03136-35.54816 10.05056-19.74272 0 0 8.04352 17.77664 4.02432 31.59552l4.02432 23.69536s14.07488-51.33824 4.0192-65.1776c0 0-37.99552-21.7088-40.00256 11.86816-2.01216 33.56672 2.10944 82.63168 6.12864 90.53696 0 0-39.9104 120.24832-92.20608 193.3312 0 0-22.1184 31.58528-32.17408 35.54816 0 0-24.14592 9.87648-8.05888-11.8528 0 0 38.2208-43.44832 46.26432-55.296 0 0-69.97504 39.50592-73.99936 49.36192-4.0192 9.88672-13.9776 29.73184 11.64288 39.50592 0 0 29.54752 2.39104 51.66592-21.30432 0 0 51.87584-63.29344 61.93152-83.04128 0 0 32.60928-11.9552 141.21472-31.70816 0 0 58.33216 27.44832 76.44672 31.3856 18.09408 3.96288 26.1376 17.77664 26.1376 17.77664s21.70368-15.90272 11.648-21.84192z m-245.38624-21.0944l42.56256-83.47136c4.02432 19.75808 43.1872 57.9072 43.1872 57.9072-16.08704 1.9712-85.74976 25.56416-85.74976 25.56416z" fill="" ></path><path d="M688.83456 554.496c14.07488 7.90528 12.06272 13.824 22.1184 5.91872 10.05568-7.8848-10.05568-17.76128-26.1376-23.69536-16.09216-5.92896-92.52864-15.2832-92.52864-15.2832s4.81792 6.45632 11.34592 13.06624c12.12416 6.08768 22.93248 10.07104 30.90944 13.9776 16.35328-0.28672 42.41408-0.65024 54.29248 6.016z m21.69856 21.61152c-10.05568-5.91872-47.85664-11.74016-71.9872-25.56416-1.22368-0.70656-2.60608-1.3824-4.00896-2.06336-3.03616 0.04096-5.85216 0.09728-8.05376 0.09728-7.21408 0-15.98976-7.13216-22.85568-14.07488-28.07808-14.09024-63.09376-39.74144-85.76512-103.90528 0 0-14.08-51.35872-16.08704-69.13024-2.01216-17.76128 6.03136-35.54816 10.05056-19.74272 0 0 8.04352 17.77664 4.02432 31.59552l4.02432 23.69536s14.07488-51.33824 4.0192-65.1776c0 0-37.99552-21.7088-40.00256 11.86816-2.01216 33.56672 2.10944 82.63168 6.12864 90.53696 0 0-39.9104 120.24832-92.20608 193.3312 0 0-22.1184 31.58528-32.17408 35.54816 0 0-24.14592 9.87648-8.05888-11.8528 0 0 38.2208-43.44832 46.26432-55.296 0 0-69.97504 39.50592-73.99936 49.36192-4.0192 9.88672-13.9776 29.73184 11.64288 39.50592 0 0 29.54752 2.39104 51.66592-21.30432 0 0 51.87584-63.29344 61.93152-83.04128 0 0 32.60928-11.9552 141.21472-31.70816 0 0 58.33216 27.44832 76.44672 31.3856 18.09408 3.96288 26.1376 17.77664 26.1376 17.77664s21.70368-15.90272 11.648-21.84192z m-245.38624-21.0944l42.56256-83.47136c4.02432 19.75808 43.1872 57.9072 43.1872 57.9072-16.08704 1.9712-85.74976 25.56416-85.74976 25.56416z" fill="#FFFFFF" ></path></symbol><symbol id="icon-flash" viewBox="0 0 1024 1024"><path d="M145.6 0C100.8 0 64 36.8 64 81.6v860.8C64 987.2 100.8 1024 145.6 1024h732.8c44.8 0 81.6-36.8 81.6-81.6V324.8L657.6 0h-512z" fill="#E53C3C" ></path><path d="M960 324.8v16H755.2s-100.8-19.2-99.2-107.2c0 0 3.2 91.2 96 91.2h208z" fill="#DE2D2D" ></path><path d="M657.6 0v233.6c0 25.6 17.6 91.2 97.6 91.2H960L657.6 0z" fill="#FFFFFF" ></path><path d="M344 689.6h-94.4V752h91.2c6.4 0 11.2 4.8 11.2 11.2 0 4.8-4.8 9.6-11.2 9.6h-91.2v78.4c0 6.4-4.8 11.2-11.2 11.2-6.4 0-12.8-4.8-12.8-11.2V686.4c0-9.6 8-17.6 17.6-17.6h100.8c4.8 0 9.6 4.8 9.6 11.2 0 4.8-4.8 9.6-9.6 9.6zM496 860.8h-86.4c-9.6 0-17.6-8-17.6-17.6V678.4c0-6.4 4.8-11.2 12.8-11.2 6.4 0 11.2 4.8 11.2 11.2v161.6h80c6.4 0 11.2 3.2 11.2 9.6 0 6.4-4.8 11.2-11.2 11.2z m195.2 1.6c-4.8 0-8-3.2-11.2-8l-14.4-36.8h-96l-14.4 36.8c-1.6 4.8-6.4 8-11.2 8-6.4 0-12.8-6.4-12.8-12.8 0-1.6 0-3.2 1.6-4.8l65.6-164.8c3.2-8 11.2-12.8 19.2-12.8 9.6 0 16 4.8 19.2 12.8L704 844.8c0 1.6 1.6 3.2 1.6 4.8 0 6.4-6.4 12.8-14.4 12.8z m-73.6-169.6l-40 104h81.6l-41.6-104z" fill="#FFFFFF" ></path></symbol><symbol id="icon-mp" viewBox="0 0 1024 1024"><path d="M145.6 0C100.8 0 64 36.8 64 81.6v860.8C64 987.2 100.8 1024 145.6 1024h732.8c44.8 0 81.6-36.8 81.6-81.6V324.8L657.6 0h-512z" fill="#9B64B2" ></path><path d="M960 326.4v16H755.2s-100.8-20.8-99.2-108.8c0 0 4.8 92.8 97.6 92.8H960z" fill="#824B9E" ></path><path d="M657.6 0v233.6c0 25.6 17.6 92.8 97.6 92.8H960L657.6 0z" fill="#FFFFFF" ></path><path d="M401.6 862.4c-6.4 0-11.2-4.8-11.2-12.8v-147.2l-64 155.2c-1.6 3.2-3.2 4.8-6.4 4.8s-4.8-1.6-6.4-4.8l-64-155.2v147.2c0 8-4.8 12.8-11.2 12.8-6.4 0-12.8-4.8-12.8-12.8V686.4c0-11.2 9.6-19.2 20.8-19.2 8 0 16 4.8 19.2 11.2l54.4 134.4 56-134.4c3.2-6.4 9.6-11.2 17.6-11.2 11.2 0 20.8 8 20.8 19.2v163.2c0 8-4.8 12.8-12.8 12.8zM544 784h-54.4v65.6c0 8-4.8 12.8-11.2 12.8-6.4 0-12.8-4.8-12.8-12.8V684.8c0-9.6 8-16 17.6-16H544c38.4 0 59.2 25.6 59.2 57.6 0 30.4-22.4 57.6-59.2 57.6z m-3.2-94.4h-51.2v73.6h51.2c22.4 0 38.4-16 38.4-36.8 0-22.4-16-36.8-38.4-36.8z m222.4 121.6h-19.2v38.4c0 8-4.8 12.8-11.2 12.8-6.4 0-12.8-4.8-12.8-12.8v-38.4h-80c-6.4 0-12.8-4.8-12.8-12.8 0-1.6 1.6-4.8 3.2-8l76.8-115.2c3.2-4.8 9.6-8 17.6-8 9.6 0 19.2 8 19.2 19.2v104h19.2c4.8 0 9.6 4.8 9.6 11.2 0 4.8-4.8 9.6-9.6 9.6zM720 689.6l-67.2 100.8H720v-100.8z" fill="#FFFFFF" ></path></symbol><symbol id="icon-audio" viewBox="0 0 1024 1024"><path d="M147.2 0C102.4 0 65.6 36.8 65.6 81.6v860.8c0 44.8 36.8 81.6 81.6 81.6h731.2c44.8 0 81.6-36.8 81.6-81.6V324.8L657.6 0H147.2z" fill="#379FD3" ></path><path d="M960 326.4v16H755.2s-100.8-20.8-97.6-108.8c0 0 3.2 92.8 96 92.8H960z" fill="#2987C8" ></path><path d="M657.6 0v233.6c0 25.6 17.6 92.8 97.6 92.8H960L657.6 0z" fill="#FFFFFF" ></path><path d="M540.8 544l-227.2 30.4v214.4c-11.2-3.2-25.6-4.8-40-1.6-32 6.4-52.8 27.2-46.4 46.4 6.4 20.8 36.8 30.4 68.8 24 28.8-4.8 48-22.4 48-40V646.4l166.4-20.8v132.8c-11.2-3.2-25.6-3.2-40 0-33.6 6.4-54.4 27.2-48 46.4 6.4 19.2 36.8 30.4 70.4 24 28.8-6.4 49.6-24 48-41.6V544z" fill="#FFFFFF" ></path></symbol><symbol id="icon-image1" viewBox="0 0 1024 1024"><path d="M880 192h-736C117.44 192 96 213.44 96 240v544c0 26.56 21.44 48 48 48h736c26.56 0 48-21.44 48-48v-544c0-26.56-21.44-48-48-48z m16 406.08v185.92c0 8.96-7.04 16-16 16h-736c-8.96 0-16-7.04-16-16v-24-32l329.92-217.92 97.28 71.36 167.68-135.36L896 566.08v32z m0-73.28l-154.88-104.96c-5.76-3.84-11.84-5.76-17.952-5.76-6.048 0-12.48 1.92-17.92 5.76l-150.4 120.32-80.64-56.96a31.36 31.36 0 0 0-17.92-5.76c-6.08 0-12.16 1.92-17.92 5.76L128 689.28V240c0-8.96 7.04-16 16-16h736c8.96 0 16 7.04 16 16v284.8z" fill="#2D2220" ></path><path d="M416 352c0 29.76-20.48 54.72-48 61.76-27.52-7.04-48-32-48-61.76s20.48-54.72 48-61.76c27.52 7.04 48 32 48 61.76z" fill="#FFD561" ></path><path d="M896 598.08v185.92c0 8.96-7.04 16-16 16h-736c-8.96 0-16-7.04-16-16v-24l329.92-217.92 97.28 71.36 167.68-135.36L896 598.08z" fill="#5FFFBA" ></path><path d="M352 288c35.296 0 64 28.704 64 64s-28.704 64-64 64-64-28.704-64-64 28.704-64 64-64m0-32a96 96 0 1 0 0 192 96 96 0 0 0 0-192z" fill="#2D2220" ></path></symbol><symbol id="icon-psd" viewBox="0 0 1024 1024"><path d="M620.9 67.2H236.5c-30.3 0-54.9 25-54.9 55.9v782.7c0 30.9 24.6 55.9 54.9 55.9h549c30.3 0 54.9-25 54.9-55.9v-615L620.9 67.2z" fill="#35AEFF" ></path><path d="M802 925.9H220.1V109.7h379.6v218.9H802z" fill="#FFFFFF" ></path><path d="M802 922.6H220.1V106.4h379.6v218.8H802z" fill="#48C7FF" ></path><path d="M348.9 650.4c35.1 0 52.6 14.9 52.6 44.8 0 30.1-17.8 45.2-53.1 45.2h-38.2v57.4h-22.5V650.4h61.2z m-38.6 70.8H347c11.1 0 19.2-2.1 24.4-6.2 5-4.1 7.6-10.7 7.6-19.8 0-9.1-2.7-15.7-7.8-19.4-5.2-4.1-13.2-6.2-24.2-6.2h-36.7v51.6zM514.3 658.5c10.3 7.6 16.1 19.4 17.5 35.5h-22.3c-2.1-9.5-5.8-16.5-11.6-20.6-5.8-4.3-14-6.4-25.2-6.4-9.7 0-17.1 1.4-22.3 4.3-6.4 3.3-9.5 8.7-9.5 16.1 0 6.6 3.5 11.8 10.9 15.7 3.3 1.9 11.8 5 25.6 9.1 19.8 6.2 32.8 10.9 38.6 14.5 12.6 7.6 19 18.2 19 31.8 0 13.2-5.2 23.5-15.5 31.2-10.3 7.4-24.8 11.1-43.3 11.1-18 0-32-3.7-42.1-10.7-12.2-8.7-18.8-22.3-20-40.9h22.3c1.7 11.6 5.8 20 12.4 25 6 4.5 15.1 6.8 27.5 6.8 11.1 0 20-2.1 26.6-5.8 6.6-3.7 9.9-8.9 9.9-15.5 0-8.3-4.7-14.7-14-19.4-3.3-1.7-13-5-29.3-9.9-18.2-5.8-29.3-9.7-33.9-12.2-11.4-6.8-16.9-16.7-16.9-29.5 0-13 5.4-23.1 16.3-30.6 10.3-7 23.3-10.5 39-10.5 17.1-0.1 30.6 3.4 40.3 10.9zM609.6 650.4c23.7 0 41.7 6.6 54.1 20 11.6 12.4 17.3 30.3 17.3 53.7 0 23.1-6 41.1-17.8 53.9-12.4 13.2-30.3 19.8-54.1 19.8H556V650.4h53.6z m-31.1 128.2h26.6c18.6 0 32.4-4.5 41.1-13.4 8.5-8.9 12.8-22.5 12.8-41.1 0-19-4.3-32.6-12.6-41.3-8.7-8.9-22.3-13.2-40.9-13.2h-27v109z" fill="#FFFFFF" ></path></symbol><symbol id="icon-ai" viewBox="0 0 1024 1024"><path d="M620.9 67.2H236.5c-30.3 0-54.9 25-54.9 55.9v782.7c0 30.9 24.6 55.9 54.9 55.9h549c30.3 0 54.9-25 54.9-55.9v-615L620.9 67.2z" fill="#F17F20" ></path><path d="M802 925.9H220.1V109.7h379.6v218.9H802z" fill="#FFFFFF" ></path><path d="M802 922.6H220.1V106.4h379.6v218.8H802z" fill="#FF9545" ></path><path d="M355.7 650.4l56.8 147.4h-24.2l-13.8-38h-63.4l-13.8 38h-23.9l56.8-147.4h25.5z m12 90.8l-24.4-66.7h-0.8L318 741.2h49.7zM449.7 650.4v147.4h-22.3V650.4h22.3z" fill="#FFFFFF" ></path></symbol><symbol id="icon-PDF" viewBox="0 0 1024 1024"><path d="M620.9 67.2H236.5c-30.3 0-54.9 25-54.9 55.9v782.7c0 30.9 24.6 55.9 54.9 55.9h549c30.3 0 54.9-25 54.9-55.9v-615L620.9 67.2z" fill="#FF4242" ></path><path d="M802 925.9H220.1V109.7h379.6v218.9H802z" fill="#FFFFFF" ></path><path d="M802 922.6H220.1V106.4h379.6v218.8H802z" fill="#FF6464" ></path><path d="M348.9 650.4c35.1 0 52.6 14.9 52.6 44.8 0 30.1-17.8 45.2-53.1 45.2h-38.2v57.4h-22.5V650.4h61.2z m-38.6 70.8H347c11.1 0 19.2-2.1 24.4-6.2 5-4.1 7.6-10.7 7.6-19.8 0-9.1-2.7-15.7-7.8-19.4-5.2-4.1-13.2-6.2-24.2-6.2h-36.7v51.6zM476.1 650.4c23.7 0 41.7 6.6 54.1 20 11.6 12.4 17.3 30.3 17.3 53.7 0 23.1-6 41.1-17.8 53.9-12.4 13.2-30.3 19.8-54.1 19.8h-53.3V650.4h53.8z m-31.2 128.2h26.6c18.6 0 32.4-4.5 41.1-13.4 8.5-8.9 12.8-22.5 12.8-41.1 0-19-4.3-32.6-12.6-41.3-8.7-8.9-22.3-13.2-40.9-13.2h-27v109zM670.5 650.4v19.2h-77.6v42.9h73.3v19.2h-73.3v66.1h-22.5V650.4h100.1z" fill="#FFFFFF" ></path></symbol><symbol id="icon-JPG" viewBox="0 0 1024 1024"><path d="M620.9 67.2H236.5c-30.3 0-54.9 25-54.9 55.9v782.7c0 30.9 24.6 55.9 54.9 55.9h549c30.3 0 54.9-25 54.9-55.9v-615L620.9 67.2z" fill="#FFC639" ></path><path d="M802 925.9H220.1V109.7h379.6v218.9H802z" fill="#FFFFFF" ></path><path d="M802 922.6H220.1V106.4h379.6v218.8H802z" fill="#FFD773" ></path><path d="M368.9 650.4v99.9c0 16.5-3.5 28.9-10.3 37.2-7.8 8.7-20.2 13.2-37.2 13.2-14.7 0-25.8-4.1-33.2-12.2-7.8-8.3-11.8-19.4-11.8-33.9v-5H299v4.7c0 17.5 7.6 26.4 22.9 26.4 8.7 0 14.9-2.7 18.8-7.6 3.7-5 5.8-12.8 5.8-23.7v-99.1h22.4zM458.9 650.4c35.1 0 52.6 14.9 52.6 44.8 0 30.1-17.8 45.2-53.1 45.2h-38.2v57.4h-22.5V650.4h61.2z m-38.6 70.8H457c11.1 0 19.2-2.1 24.4-6.2 5-4.1 7.6-10.7 7.6-19.8 0-9.1-2.7-15.7-7.8-19.4-5.2-4.1-13.2-6.2-24.2-6.2h-36.7v51.6zM640.8 660.3c10.5 8.3 17.1 20.4 19.8 36.9h-22.7c-2.1-9.9-6.6-17.3-13.6-22.3-7-5.2-16.5-7.6-28.1-7.6-14.2 0-25.6 4.7-34.1 14.7-9.1 10.3-13.4 24.6-13.4 42.7 0 17.8 3.9 31.4 12.2 40.9 8.7 10.3 22.3 15.5 40.7 15.5 7.2 0 14-1 20.4-2.7 6.2-1.7 11.6-4.1 16.5-7.2v-32h-40.7V720H661v61.9c-7.6 6-16.5 10.5-26.6 13.8-10.7 3.3-22.5 5-35.3 5-23.5 0-41.7-7.4-54.7-22.3-12.2-13.8-18.2-31.8-18.2-53.7 0-22.1 6-40.3 18.2-54.5 12.8-15.3 30.1-22.7 51.8-22.7 18.8 0 33.7 4.1 44.6 12.8z" fill="#FFFFFF" ></path></symbol><symbol id="icon-DOC" viewBox="0 0 1024 1024"><path d="M620.9 67.2H236.5c-30.3 0-54.9 25-54.9 55.9v782.7c0 30.9 24.6 55.9 54.9 55.9h549c30.3 0 54.9-25 54.9-55.9v-615L620.9 67.2z" fill="#398FFF" ></path><path d="M802 925.9H220.1V109.7h379.6v218.9H802z" fill="#FFFFFF" ></path><path d="M802 922.6H220.1V106.4h379.6v218.8H802z" fill="#57A7FF" ></path><path d="M341.5 650.4c23.7 0 41.7 6.6 54.1 20 11.6 12.4 17.3 30.3 17.3 53.7 0 23.1-6 41.1-17.8 53.9-12.4 13.2-30.3 19.8-54.1 19.8h-53.3V650.4h53.8z m-31.2 128.2H337c18.6 0 32.4-4.5 41.1-13.4 8.5-8.9 12.8-22.5 12.8-41.1 0-19-4.3-32.6-12.6-41.3-8.7-8.9-22.3-13.2-40.9-13.2h-27v109zM554.1 669.4c12.4 13.8 18.6 32.2 18.6 54.9 0 22.5-6.2 40.7-18.6 54.7-13 14.4-30.8 21.7-53.1 21.7-22.5 0-40.3-7.4-53-21.9-12.4-14-18.4-32.2-18.4-54.5 0-22.5 6-40.7 18.4-54.7 12.8-14.9 30.5-22.1 53-22.1 22.3 0 40.1 7.2 53.1 21.9z m-89.6 13.8c-8.3 10.1-12.4 23.7-12.4 41.1 0 17.1 4.1 30.8 12.4 40.9 8.7 10.3 20.8 15.7 36.5 15.7s27.9-5.2 36.3-15.3c8.3-9.9 12.6-23.7 12.6-41.3 0-17.8-4.3-31.6-12.6-41.7-8.5-10.3-20.6-15.3-36.3-15.3-15.6 0-27.8 5.2-36.5 15.9zM701.9 660.9c10.7 8.7 17.3 20.6 19.6 35.5h-21.9c-2.5-9.9-7.2-17.3-14.2-22.1-7-4.7-15.7-7-26.4-7-15.9 0-27.9 5.4-35.9 16.3-7.6 9.9-11.4 23.5-11.4 40.7 0 17.8 3.7 31.4 11.1 41.1 7.8 10.3 20 15.5 36.5 15.5 10.7 0 19.8-2.7 26.8-8 7.4-5.8 12.6-14.5 15.5-26h21.9c-3.3 17.1-10.9 30.6-23.1 40.3-11.4 9.1-25 13.6-40.9 13.6-24.2 0-42.3-7.8-54.5-23.1-10.7-13.2-15.9-31-15.9-53.3 0-21.9 5.4-39.6 16.5-53.5 12.4-15.7 30.1-23.3 53.7-23.3 17.2-0.1 31.5 4.3 42.6 13.3z" fill="#FFFFFF" ></path></symbol><symbol id="icon-ELX" viewBox="0 0 1024 1024"><path d="M620.9 67.2H236.5c-30.3 0-54.9 25-54.9 55.9v782.7c0 30.9 24.6 55.9 54.9 55.9h549c30.3 0 54.9-25 54.9-55.9v-615L620.9 67.2z" fill="#53DD76" ></path><path d="M802 925.9H220.1V109.7h379.6v218.9H802z" fill="#FFFFFF" ></path><path d="M802 922.6H220.1V106.4h379.6v218.8H802z" fill="#5BE873" ></path><path d="M393.7 650.4v19.2h-83.4v42.9h78.4v19.2h-78.4v46.9h86.9v19.2H287.8V650.4h105.9zM442.4 650.4v128.2h81.1v19.2H420.1V650.4h22.3zM559.7 650.4l35.9 53.3 35.9-53.3H659l-50 71.2 53.5 76.2H635l-39.4-58.4-39.4 58.4h-27.5l53-76.2-49.5-71.2h27.5z" fill="#FFFFFF" ></path></symbol><symbol id="icon-PPT" viewBox="0 0 1024 1024"><path d="M620.9 67.2H236.5c-30.3 0-54.9 25-54.9 55.9v782.7c0 30.9 24.6 55.9 54.9 55.9h549c30.3 0 54.9-25 54.9-55.9v-615L620.9 67.2z" fill="#FF7357" ></path><path d="M802 925.9H220.1V109.7h379.6v218.9H802z" fill="#FFFFFF" ></path><path d="M802 922.6H220.1V106.4h379.6v218.8H802z" fill="#FF917B" ></path><path d="M348.9 650.4c35.1 0 52.6 14.9 52.6 44.8 0 30.1-17.8 45.2-53.1 45.2h-38.2v57.4h-22.5V650.4h61.2z m-38.6 70.8H347c11.1 0 19.2-2.1 24.4-6.2 5-4.1 7.6-10.7 7.6-19.8 0-9.1-2.7-15.7-7.8-19.4-5.2-4.1-13.2-6.2-24.2-6.2h-36.7v51.6zM483.5 650.4c35.1 0 52.6 14.9 52.6 44.8 0 30.1-17.8 45.2-53.1 45.2h-38.2v57.4h-22.5V650.4h61.2z m-38.6 70.8h36.7c11.1 0 19.2-2.1 24.4-6.2 5-4.1 7.6-10.7 7.6-19.8 0-9.1-2.7-15.7-7.8-19.4-5.2-4.1-13.2-6.2-24.2-6.2h-36.7v51.6zM666.4 650.4v19.2h-49.1v128.2H595V669.6h-49.3v-19.2h120.7z" fill="#FFFFFF" ></path></symbol><symbol id="icon-TXT" viewBox="0 0 1024 1024"><path d="M620.9 67.2H236.5c-30.3 0-54.9 25-54.9 55.9v782.7c0 30.9 24.6 55.9 54.9 55.9h549c30.3 0 54.9-25 54.9-55.9v-615L620.9 67.2z" fill="#61CFEA" ></path><path d="M802 925.9H220.1V109.7h379.6v218.9H802z" fill="#FFFFFF" ></path><path d="M802 922.6H220.1V106.4h379.6v218.8H802z" fill="#6CDEEA" ></path><path d="M397.2 650.4v19.2h-49.1v128.2h-22.3V669.6h-49.3v-19.2h120.7zM432.5 650.4l35.9 53.3 35.9-53.3h27.5l-50 71.2 53.5 76.2h-27.5l-39.4-58.4-39.4 58.4h-27.5l53-76.2-49.5-71.2h27.5zM660.2 650.4v19.2h-49.1v128.2h-22.3V669.6h-49.3v-19.2h120.7z" fill="#FFFFFF" ></path></symbol><symbol id="icon-VSD" viewBox="0 0 1024 1024"><path d="M620.9 67.2H236.5c-30.3 0-54.9 25-54.9 55.9v782.7c0 30.9 24.6 55.9 54.9 55.9h549c30.3 0 54.9-25 54.9-55.9v-615L620.9 67.2z" fill="#398FFF" ></path><path d="M802 925.9H220.1V109.7h379.6v218.9H802z" fill="#FFFFFF" ></path><path d="M802 922.6H220.1V106.4h379.6v218.8H802z" fill="#55A6FF" ></path><path d="M298.8 650.4l41.9 122.2h0.6L383 650.4h24.4l-52.8 147.4h-27.2l-52.8-147.4h24.2zM514.7 658.5c10.3 7.6 16.1 19.4 17.5 35.5h-22.3c-2.1-9.5-5.8-16.5-11.6-20.6-5.8-4.3-14-6.4-25.2-6.4-9.7 0-17.1 1.4-22.3 4.3-6.4 3.3-9.5 8.7-9.5 16.1 0 6.6 3.5 11.8 10.9 15.7 3.3 1.9 11.8 5 25.6 9.1 19.8 6.2 32.8 10.9 38.6 14.5 12.6 7.6 19 18.2 19 31.8 0 13.2-5.2 23.5-15.5 31.2-10.3 7.4-24.8 11.1-43.3 11.1-18 0-32-3.7-42.1-10.7-12.2-8.7-18.8-22.3-20-40.9h22.3c1.7 11.6 5.8 20 12.4 25 6 4.5 15.1 6.8 27.5 6.8 11.1 0 20-2.1 26.6-5.8 6.6-3.7 9.9-8.9 9.9-15.5 0-8.3-4.7-14.7-14-19.4-3.3-1.7-13-5-29.3-9.9-18.2-5.8-29.3-9.7-33.9-12.2-11.4-6.8-16.9-16.7-16.9-29.5 0-13 5.4-23.1 16.3-30.6 10.3-7 23.3-10.5 39-10.5 17.2-0.1 30.6 3.4 40.3 10.9zM610 650.4c23.7 0 41.7 6.6 54.1 20 11.6 12.4 17.3 30.3 17.3 53.7 0 23.1-6 41.1-17.8 53.9-12.4 13.2-30.3 19.8-54.1 19.8h-53.3V650.4H610z m-31.1 128.2h26.6c18.6 0 32.4-4.5 41.1-13.4 8.5-8.9 12.8-22.5 12.8-41.1 0-19-4.3-32.6-12.6-41.3-8.7-8.9-22.3-13.2-40.9-13.2h-27v109z" fill="#FFFFFF" ></path></symbol><symbol id="icon-MPP" viewBox="0 0 1024 1024"><path d="M620.9 67.2H236.5c-30.3 0-54.9 25-54.9 55.9v782.7c0 30.9 24.6 55.9 54.9 55.9h549c30.3 0 54.9-25 54.9-55.9v-615L620.9 67.2z" fill="#AC85D4" ></path><path d="M802 925.9H220.1V109.7h379.6v218.9H802z" fill="#FFFFFF" ></path><path d="M802 922.6H220.1V106.4h379.6v218.8H802z" fill="#B793E5" ></path><path d="M314.5 650.4l51.4 118.1h0.6l51.2-118.1h26.6v147.4h-22.5V692.5h-0.8l-45.2 105.3h-19.4l-45.2-105.3h-0.8v105.3h-22.5V650.4h26.6zM534.3 650.4c35.1 0 52.6 14.9 52.6 44.8 0 30.1-17.8 45.2-53 45.2h-38.2v57.4h-22.5V650.4h61.1z m-38.6 70.8h36.7c11.1 0 19.2-2.1 24.4-6.2 5-4.1 7.6-10.7 7.6-19.8 0-9.1-2.7-15.7-7.8-19.4-5.2-4.1-13.2-6.2-24.2-6.2h-36.7v51.6zM668.9 650.4c35.1 0 52.6 14.9 52.6 44.8 0 30.1-17.8 45.2-53.1 45.2h-38.2v57.4h-22.5V650.4h61.2z m-38.6 70.8H667c11.1 0 19.2-2.1 24.4-6.2 5-4.1 7.6-10.7 7.6-19.8 0-9.1-2.7-15.7-7.8-19.4-5.2-4.1-13.2-6.2-24.2-6.2h-36.7v51.6z" fill="#FFFFFF" ></path></symbol><symbol id="icon-DWG" viewBox="0 0 1024 1024"><path d="M620.9 67.2H236.5c-30.3 0-54.9 25-54.9 55.9v782.7c0 30.9 24.6 55.9 54.9 55.9h549c30.3 0 54.9-25 54.9-55.9v-615L620.9 67.2z" fill="#FF4280" ></path><path d="M802 925.9H220.1V109.7h379.6v218.9H802z" fill="#FFFFFF" ></path><path d="M802 922.6H220.1V106.4h379.6v218.8H802z" fill="#FF649C" ></path><path d="M341.5 650.4c23.7 0 41.7 6.6 54.1 20 11.6 12.4 17.3 30.3 17.3 53.7 0 23.1-6 41.1-17.8 53.9-12.4 13.2-30.3 19.8-54.1 19.8h-53.3V650.4h53.8z m-31.2 128.2H337c18.6 0 32.4-4.5 41.1-13.4 8.5-8.9 12.8-22.5 12.8-41.1 0-19-4.3-32.6-12.6-41.3-8.7-8.9-22.3-13.2-40.9-13.2h-27v109zM447.8 650.4l28.7 114.8h0.8l30.1-114.8H531l30.1 114.8h0.8l28.7-114.8H616l-42.5 147.4h-23.9l-29.9-113.7h-0.8L489 797.8h-24.2l-42.3-147.4h25.3zM739.9 660.3c10.5 8.3 17.1 20.4 19.8 36.9H737c-2.1-9.9-6.6-17.3-13.6-22.3-7-5.2-16.5-7.6-28.1-7.6-14.2 0-25.6 4.7-34.1 14.7-9.1 10.3-13.4 24.6-13.4 42.7 0 17.8 3.9 31.4 12.2 40.9 8.7 10.3 22.3 15.5 40.7 15.5 7.2 0 14-1 20.4-2.7 6.2-1.7 11.6-4.1 16.5-7.2v-32h-40.7V720h63.2v61.9c-7.6 6-16.5 10.5-26.6 13.8-10.7 3.3-22.5 5-35.3 5-23.5 0-41.7-7.4-54.7-22.3-12.2-13.8-18.2-31.8-18.2-53.7 0-22.1 6-40.3 18.2-54.5 12.8-15.3 30.1-22.7 51.8-22.7 18.8 0 33.6 4.1 44.6 12.8z" fill="#FFFFFF" ></path></symbol><symbol id="icon-XMAP" viewBox="0 0 1024 1024"><path d="M620.9 67.2H236.5c-30.3 0-54.9 25-54.9 55.9v782.7c0 30.9 24.6 55.9 54.9 55.9h549c30.3 0 54.9-25 54.9-55.9v-615L620.9 67.2z" fill="#FF4242" ></path><path d="M802 925.9H220.1V109.7h379.6v218.9H802z" fill="#FFFFFF" ></path><path d="M802 922.6H220.1V106.4h379.6v218.8H802z" fill="#FF6666" ></path><path d="M276.5 673.9l31.6 46.9 31.6-46.9h24.2L320 736.6l47 67h-24.2l-34.7-51.4-34.7 51.4h-24.2l46.7-67-43.6-62.7h24.2zM404 673.9l45.2 103.9h0.5l45-103.9h23.4v129.7h-19.8V711h-0.7l-39.8 92.6h-17.1L400.9 711h-0.7v92.6h-19.8V673.9H404zM603.4 673.9l49.9 129.7H632l-12.2-33.4H564l-12 33.3h-21.1l49.9-129.7h22.6z m10.5 79.9l-21.4-58.7h-0.7l-21.6 58.7h43.7zM719.8 673.9c30.9 0 46.3 13.1 46.3 39.4 0 26.5-15.6 39.8-46.7 39.8h-33.6v50.5H666V673.9h53.8z m-34 62.3h32.3c9.8 0 16.9-1.8 21.4-5.4 4.4-3.6 6.7-9.4 6.7-17.4s-2.4-13.8-6.9-17.1c-4.5-3.6-11.6-5.4-21.2-5.4h-32.3v45.3z" fill="#FFFFFF" ></path></symbol><symbol id="icon-WGS" viewBox="0 0 1024 1024"><path d="M620.9 67.2H236.5c-30.3 0-54.9 25-54.9 55.9v782.7c0 30.9 24.6 55.9 54.9 55.9h549c30.3 0 54.9-25 54.9-55.9v-615L620.9 67.2z" fill="#E7ECEE" ></path><path d="M802 925.9H220.1V109.7h379.6v218.9H802z" fill="#FFFFFF" ></path><path d="M802 922.6H220.1V106.4h379.6v218.8H802z" fill="#F2F2F2" ></path></symbol><symbol id="icon-YS" viewBox="0 0 1024 1024"><path d="M620.9 67.2H236.5c-30.3 0-54.9 25-54.9 55.9v782.7c0 30.9 24.6 55.9 54.9 55.9h549c30.3 0 54.9-25 54.9-55.9v-615L620.9 67.2z" fill="#E7ECEE" ></path><path d="M802 925.9H220.1V109.7h379.6v218.9H802z" fill="#FFFFFF" ></path><path d="M802 922.6H220.1V106.4h379.6v218.8H802z" fill="#F2F2F2" ></path><path d="M404 518.7h39v39.7h-39v-39.7zM365 479h39v39.7h-39V479z m39-39.7h39V479h-39v-39.7z m-39-39.7h39v39.7h-39v-39.7z m39-39.7h39v39.7h-39v-39.7z m-39-39.7h39v39.7h-39v-39.7z m39-39.7h39v39.7h-39v-39.7z m-39-39.7h39v39.7h-39v-39.7z m39-39.7h39v39.7h-39v-39.7z m-39-39.7h39v39.7h-39v-39.7z m39-39.7h39v39.7h-39v-39.7zM365 82h39v39.7h-39V82z" fill="#8D989B" ></path></symbol><symbol id="icon-wenjianjiayigongxiang" viewBox="0 0 1024 1024"><path d="M889.7 197.6H477.3l-82.5-83.5H119.9c-30.4 0-55 24.9-55 55.7v667.9c0 30.8 24.6 55.7 55 55.7h769.8c30.4 0 55-24.9 55-55.7V253.3c0-30.8-24.6-55.7-55-55.7z" fill="#F5A623" ></path><path d="M147.4 420.2h714.8v389.6H147.4zM862.2 336.7H147.4V197.6h213.3l82.4 83.5h419.1z" fill="#F6AF39" ></path><path d="M819 767.7m-176 0a176 176 0 1 0 352 0 176 176 0 1 0-352 0Z" fill="#F17033" ></path><path d="M800.8 802.7c-9.2 17.8-28.5 30.1-50.9 30.1-31.2 0-56.6-23.8-56.6-53.2s25.3-53.2 56.6-53.2c17.1 0 32.5 7.2 42.9 18.5l32.3-22.8c-3.9-5.6-6.1-12.2-6.1-19.4 0-19.6 16.9-35.5 37.7-35.5s37.7 15.9 37.7 35.5-16.9 35.5-37.7 35.5c-8.7 0-16.7-2.8-23-7.4l-33.8 23.9c4.2 7.4 6.6 15.9 6.6 24.9 0 4.1-0.5 8.2-1.4 12l33.7 12.7c7.9-11.3 21.4-18.8 36.9-18.8 24.3 0 44 18.5 44 41.4s-19.7 41.4-44 41.4-44-18.5-44-41.4c0-4.1 0.6-8.1 1.8-11.9l-32.7-12.3z" fill="#FFFFFF" ></path></symbol><symbol id="icon-wenjianjiaweigongxiang" viewBox="0 0 1024 1024"><path d="M904.4 200.1H484.7l-83.9-85H120.9c-30.9 0-56 25.4-56 56.7v679.8c0 31.3 25 56.7 56 56.7h783.5c30.9 0 56-25.4 56-56.7V256.7c0-31.2-25.1-56.6-56-56.6z" fill="#F5A623" ></path><path d="M148.9 426.7h727.5v396.6H148.9zM876.4 341.7H148.9V200.1h217l84 84.9h426.5z" fill="#F6AF39" ></path></symbol><symbol id="icon-open" viewBox="0 0 1024 1024"><path d="M160.4 908.8c-22.7 0-41.1-18-41.7-40.4l81.8-457.2V410c0-22.9 18.7-41.5 41.8-41.5h674.5c22.6 0 41.1 18 41.8 40.4l-81.8 457.2v1.2c0 22.9-18.7 41.5-41.8 41.5H160.4z" fill="#F5A623" ></path><path d="M200.6 313.4h654.5v-64.8c0-29.4-22.1-53.2-49.4-53.2H435.3l-74.1-79.8h-247c-27.3 0-49.4 23.8-49.4 53.2v638.3l80.8-440.4c0.1-29.4 24.8-53.3 55-53.3" fill="#F5A623" ></path></symbol><symbol id="icon-psds" viewBox="0 0 1024 1024"><path d="M620.9 67.2H236.5c-30.3 0-54.9 25-54.9 55.9v782.7c0 30.9 24.6 55.9 54.9 55.9h549c30.3 0 54.9-25 54.9-55.9v-615L620.9 67.2z" fill="#35AEFF" ></path><path d="M802 925.9H220.1V109.7h379.6v218.9H802z" fill="#FFFFFF" ></path><path d="M802 922.6H220.1V106.4h379.6v218.8H802z" fill="#48C7FF" ></path><path d="M331.2 635.9c47.1 0 70.6 20 70.6 60.1 0 40.4-23.9 60.7-71.3 60.7h-51.3v77.1H249V635.9h82.2z m-51.9 95h49.3c14.9 0 25.8-2.8 32.8-8.3 6.7-5.5 10.2-14.4 10.2-26.6 0-12.2-3.6-21.1-10.5-26-7-5.5-17.7-8.3-32.5-8.3h-49.3v69.2zM553.2 646.8c13.8 10.2 21.6 26 23.5 47.7h-29.9c-2.8-12.8-7.8-22.2-15.6-27.7-7.8-5.8-18.8-8.6-33.8-8.6-13 0-23 1.9-29.9 5.8-8.6 4.4-12.8 11.7-12.8 21.6 0 8.9 4.7 15.8 14.6 21.1 4.4 2.6 15.8 6.7 34.4 12.2 26.6 8.3 44 14.6 51.8 19.5 16.9 10.2 25.5 24.4 25.5 42.7 0 17.7-7 31.5-20.8 41.9-13.8 9.9-33.3 14.9-58.1 14.9-24.2 0-43-5-56.5-14.4-16.4-11.7-25.2-29.9-26.8-54.9h29.9c2.3 15.6 7.8 26.8 16.6 33.6 8.1 6 20.3 9.1 36.9 9.1 14.9 0 26.8-2.8 35.7-7.8s13.3-11.9 13.3-20.8c0-11.1-6.3-19.7-18.8-26-4.4-2.3-17.5-6.7-39.3-13.3-24.4-7.8-39.3-13-45.5-16.4-15.3-9.1-22.7-22.4-22.7-39.6 0-17.5 7.2-31 21.9-41.1 13.8-9.4 31.3-14.1 52.4-14.1 22.9-0.2 41 4.5 54 14.6zM681.1 635.9c31.8 0 56 8.9 72.6 26.8 15.6 16.6 23.2 40.7 23.2 72.1 0 31-8.1 55.2-23.9 72.4-16.6 17.7-40.7 26.6-72.6 26.6h-71.3V635.9h72z m-41.7 172.1h35.7c25 0 43.5-6 55.2-18 11.4-11.9 17.2-30.2 17.2-55.2 0-25.5-5.8-43.8-16.9-55.4-11.7-11.9-29.9-17.7-54.9-17.7h-36.2l-0.1 146.3z" fill="#FFFFFF" ></path></symbol><symbol id="icon-ais" viewBox="0 0 1024 1024"><path d="M620.9 67.2H236.5c-30.3 0-54.9 25-54.9 55.9v782.7c0 30.9 24.6 55.9 54.9 55.9h549c30.3 0 54.9-25 54.9-55.9v-615L620.9 67.2z" fill="#F17F20" ></path><path d="M802 925.9H220.1V109.7h379.6v218.9H802z" fill="#FFFFFF" ></path><path d="M802 922.6H220.1V106.4h379.6v218.8H802z" fill="#FF9545" ></path><path d="M488 600.7l77.8 201.8h-33.1l-18.9-52H427l-18.9 52h-32.7l77.8-201.8H488z m16.4 124.3L471 633.7h-1.1l-33.5 91.3h68zM616.7 600.7v201.8h-30.5V600.7h30.5z" fill="#FFFFFF" ></path></symbol><symbol id="icon-PDFs" viewBox="0 0 1024 1024"><path d="M620.9 67.2H236.5c-30.3 0-54.9 25-54.9 55.9v782.7c0 30.9 24.6 55.9 54.9 55.9h549c30.3 0 54.9-25 54.9-55.9v-615L620.9 67.2z" fill="#FF4242" ></path><path d="M802 925.9H220.1V109.7h379.6v218.9H802z" fill="#FFFFFF" ></path><path d="M802 922.6H220.1V106.4h379.6v218.8H802z" fill="#FF6464" ></path><path d="M341.1 625.9c46.6 0 69.8 19.8 69.8 59.5 0 40-23.6 60-70.5 60h-50.7v76.2h-29.9V625.9h81.3z m-51.2 94h48.7c14.7 0 25.5-2.8 32.4-8.2 6.6-5.4 10.1-14.2 10.1-26.3 0-12.1-3.6-20.8-10.4-25.8-6.9-5.4-17.5-8.2-32.1-8.2h-48.7v68.5zM509.9 625.9c31.5 0 55.4 8.8 71.8 26.5 15.4 16.5 23 40.2 23 71.3 0 30.7-8 54.6-23.6 71.5-16.5 17.5-40.2 26.3-71.8 26.3h-70.8V625.9h71.4zM468.5 796.1h35.3c24.7 0 43-6 54.6-17.8 11.3-11.8 17-29.9 17-54.6 0-25.2-5.7-43.3-16.7-54.8-11.5-11.8-29.6-17.5-54.3-17.5h-35.8V796.1zM768 625.9v25.5H665v56.9h97.3v25.5H665v87.7h-29.9V625.9H768z" fill="#FFFFFF" ></path></symbol><symbol id="icon-JPGs" viewBox="0 0 1024 1024"><path d="M620.9 67.2H236.5c-30.3 0-54.9 25-54.9 55.9v782.7c0 30.9 24.6 55.9 54.9 55.9h549c30.3 0 54.9-25 54.9-55.9v-615L620.9 67.2z" fill="#FFC639" ></path><path d="M802 925.9H220.1V109.7h379.6v218.9H802z" fill="#FFFFFF" ></path><path d="M802 922.6H220.1V106.4h379.6v218.8H802z" fill="#FFD773" ></path><path d="M372.6 606.4v134.1c0 22.2-4.7 38.8-13.8 50-10.5 11.7-27.1 17.7-50 17.7-19.7 0-34.6-5.5-44.6-16.4-10.5-11.1-15.8-26.1-15.8-45.5v-6.7h30.3v6.3c0 23.5 10.2 35.5 30.8 35.5 11.7 0 20-3.6 25.2-10.2 5-6.7 7.8-17.2 7.8-31.8V606.2h30.1v0.2zM493.5 606.4c47.1 0 70.6 20 70.6 60.2 0 40.4-23.9 60.7-71.3 60.7h-51.3v77.1h-30.2v-198h82.2z m-51.9 95.1h49.3c14.9 0 25.8-2.8 32.8-8.3 6.7-5.5 10.2-14.4 10.2-26.6 0-12.2-3.6-21.1-10.5-26.1-7-5.5-17.7-8.3-32.5-8.3h-49.3v69.3zM737.7 619.7c14.1 11.1 23 27.4 26.6 49.5h-30.5c-2.8-13.3-8.9-23.2-18.3-29.9-9.4-7-22.2-10.2-37.7-10.2-19.1 0-34.4 6.3-45.8 19.7-12.2 13.8-18 33-18 57.3 0 23.9 5.2 42.2 16.4 54.9 11.7 13.8 29.9 20.8 54.7 20.8 9.7 0 18.8-1.3 27.4-3.6 8.3-2.3 15.6-5.5 22.2-9.7v-43H680v-25.8h84.9v83.1c-10.2 8.1-22.2 14.1-35.7 18.5-14.4 4.4-30.2 6.7-47.4 6.7-31.6 0-56-9.9-73.5-29.9-16.4-18.5-24.4-42.7-24.4-72.1 0-29.7 8.1-54.1 24.4-73.2 17.2-20.5 40.4-30.5 69.6-30.5 25.2 0.2 45.2 5.7 59.8 17.4z" fill="#FFFFFF" ></path></symbol><symbol id="icon-DOCs" viewBox="0 0 1024 1024"><path d="M620.9 67.2H236.5c-30.3 0-54.9 25-54.9 55.9v782.7c0 30.9 24.6 55.9 54.9 55.9h549c30.3 0 54.9-25 54.9-55.9v-615L620.9 67.2z" fill="#398FFF" ></path><path d="M802 925.9H220.1V109.7h379.6v218.9H802z" fill="#FFFFFF" ></path><path d="M802 922.6H220.1V106.4h379.6v218.8H802z" fill="#57A7FF" ></path><path d="M311.9 619.1c28.7 0 50.5 8 65.6 24.2 14.1 15 21 36.7 21 65.1 0 28-7.3 49.8-21.6 65.3-15 16-36.7 24-65.6 24h-64.6V619.1h65.2z m-37.8 155.4h32.4c22.5 0 39.3-5.5 49.8-16.2 10.3-10.8 15.5-27.3 15.5-49.8 0-23-5.2-39.5-15.3-50.1-10.5-10.8-27-16-49.6-16h-32.7v132.1h-0.1zM569.5 642.2c15 16.7 22.5 39 22.5 66.5 0 27.3-7.5 49.3-22.5 66.3-15.8 17.5-37.3 26.3-64.4 26.3-27.3 0-48.8-9-64.2-26.5-15-17-22.3-39-22.3-66 0-27.3 7.3-49.3 22.3-66.3 15.5-18.1 37-26.8 64.2-26.8 27.1-0.1 48.7 8.6 64.4 26.5zM461 658.9c-10.1 12.2-15 28.7-15 49.8 0 20.7 5 37.3 15 49.6 10.5 12.5 25.2 19 44.2 19 19 0 33.8-6.3 44-18.5 10.1-12 15.3-28.7 15.3-50.1 0-21.6-5.2-38.3-15.3-50.5-10.3-12.5-25-18.5-44-18.5-18.9-0.1-33.7 6.2-44.2 19.2zM748.7 631.9c13 10.5 21 25 23.8 43H746c-3-12-8.7-21-17.2-26.8-8.5-5.7-19-8.5-32-8.5-19.3 0-33.8 6.5-43.5 19.8-9.2 12-13.8 28.5-13.8 49.3 0 21.6 4.5 38.1 13.5 49.8 9.5 12.5 24.2 18.8 44.2 18.8 13 0 24-3.3 32.5-9.7 9-7 15.3-17.6 18.8-31.5H775c-4 20.7-13.2 37.1-28 48.8-13.8 11-30.3 16.5-49.6 16.5-29.3 0-51.3-9.5-66-28-13-16-19.3-37.6-19.3-64.6 0-26.5 6.5-48 20-64.8 15-19 36.5-28.2 65.1-28.2 20.7-0.2 38 5.1 51.5 16.1z" fill="#FFFFFF" ></path></symbol><symbol id="icon-ELXs" viewBox="0 0 1024 1024"><path d="M620.9 67.2H236.5c-30.3 0-54.9 25-54.9 55.9v782.7c0 30.9 24.6 55.9 54.9 55.9h549c30.3 0 54.9-25 54.9-55.9v-615L620.9 67.2z" fill="#53DD76" ></path><path d="M802 925.9H220.1V109.7h379.6v218.9H802z" fill="#FFFFFF" ></path><path d="M802 922.6H220.1V106.4h379.6v218.8H802z" fill="#5BE873" ></path><path d="M404.1 583.8v26.9H287.5v60h109.6v26.9H287.5v65.6H409V790.1H256V583.8h148.1zM472.2 583.8V763.1h113.4v26.9H441V583.8h31.2zM636.2 583.8l50.2 74.5 50.2-74.5h38.5l-69.9 99.6L780 789.9h-38.5l-55.1-81.7-55.1 81.7h-38.5L667 683.3l-69.2-99.6h38.4z" fill="#FFFFFF" ></path></symbol><symbol id="icon-PPTs" viewBox="0 0 1024 1024"><path d="M620.9 67.2H236.5c-30.3 0-54.9 25-54.9 55.9v782.7c0 30.9 24.6 55.9 54.9 55.9h549c30.3 0 54.9-25 54.9-55.9v-615L620.9 67.2z" fill="#FF7357" ></path><path d="M802 925.9H220.1V109.7h379.6v218.9H802z" fill="#FFFFFF" ></path><path d="M802 922.6H220.1V106.4h379.6v218.8H802z" fill="#FF917B" ></path><path d="M340.8 597.6c47.7 0 71.4 20.2 71.4 60.8 0 40.9-24.2 61.4-72.1 61.4h-51.9v78h-30.6V597.6h83.2z m-52.4 96.2h49.8c15.1 0 26.1-2.9 33.1-8.4 6.8-5.6 10.3-14.5 10.3-26.9 0-12.4-3.7-21.3-10.6-26.3-7.1-5.6-17.9-8.4-32.9-8.4h-49.8v70zM523.6 597.6c47.7 0 71.4 20.2 71.4 60.8 0 40.9-24.2 61.4-72.1 61.4H471v78h-30.6V597.6h83.2z m-52.4 96.2H521c15.1 0 26.1-2.9 33.1-8.4 6.8-5.6 10.3-14.5 10.3-26.9 0-12.4-3.7-21.3-10.6-26.3-7.1-5.6-17.9-8.4-32.9-8.4h-49.8v70h0.1zM772 597.6v26.1h-66.7v174.1H675V623.7h-67v-26.1h164z" fill="#FFFFFF" ></path></symbol><symbol id="icon-TXTs" viewBox="0 0 1024 1024"><path d="M620.9 67.2H236.5c-30.3 0-54.9 25-54.9 55.9v782.7c0 30.9 24.6 55.9 54.9 55.9h549c30.3 0 54.9-25 54.9-55.9v-615L620.9 67.2z" fill="#61CFEA" ></path><path d="M802 925.9H220.1V109.7h379.6v218.9H802z" fill="#FFFFFF" ></path><path d="M802 922.6H220.1V106.4h379.6v218.8H802z" fill="#6CDEEA" ></path><path d="M416.1 606.6v25.4h-64.9v169.6h-29.5V632h-65.2v-25.4h159.6zM462.8 606.6l47.5 70.5 47.5-70.5h36.4L528 700.8l70.8 100.8h-36.4l-52.1-77.2-52.1 77.2h-36.4l70.1-100.8-65.5-94.2h36.4zM764 606.6v25.4h-64.9v169.6h-29.5V632h-65.2v-25.4H764z" fill="#FFFFFF" ></path></symbol><symbol id="icon-VSDs" viewBox="0 0 1024 1024"><path d="M620.9 67.2H236.5c-30.3 0-54.9 25-54.9 55.9v782.7c0 30.9 24.6 55.9 54.9 55.9h549c30.3 0 54.9-25 54.9-55.9v-615L620.9 67.2z" fill="#398FFF" ></path><path d="M802 925.9H220.1V109.7h379.6v218.9H802z" fill="#FFFFFF" ></path><path d="M802 922.6H220.1V106.4h379.6v218.8H802z" fill="#55A6FF" ></path><path d="M285.1 601.1l52.8 153.9h0.8L391.1 601.1h30.7l-66.5 185.6H321L254.6 601.1h30.5zM556.9 611.3c13 9.6 20.3 24.4 22 44.7h-28.1c-2.6-12-7.3-20.8-14.6-25.9-7.3-5.4-17.6-8.1-31.7-8.1-12.2 0-21.5 1.8-28.1 5.4-8.1 4.2-12 11-12 20.3 0 8.3 4.4 14.9 13.7 19.8 4.2 2.4 14.9 6.3 32.2 11.5 24.9 7.8 41.3 13.7 48.6 18.3 15.9 9.6 23.9 22.9 23.9 40 0 16.6-6.5 29.6-19.5 39.3-13 9.3-31.2 14-54.5 14-22.7 0-40.3-4.7-53-13.5-15.4-11-23.7-28.1-25.2-51.5h28.1c2.1 14.6 7.3 25.2 15.6 31.5 7.6 5.7 19 8.6 34.6 8.6 14 0 25.2-2.6 33.5-7.3 8.3-4.7 12.5-11.2 12.5-19.5 0-10.5-5.9-18.5-17.6-24.4-4.2-2.1-16.4-6.3-36.9-12.5-22.9-7.3-36.9-12.2-42.7-15.4-14.4-8.6-21.3-21-21.3-37.1 0-16.4 6.8-29.1 20.5-38.5 13-8.8 29.3-13.2 49.1-13.2 21.8-0.3 38.7 4.1 50.9 13.5zM676.9 601.1c29.8 0 52.5 8.3 68.1 25.2 14.6 15.6 21.8 38.2 21.8 67.6 0 29.1-7.6 51.8-22.4 67.9-15.6 16.6-38.2 24.9-68.1 24.9h-67.1V601.1h67.7z m-39.1 161.4h33.5c23.4 0 40.8-5.7 51.8-16.9 10.7-11.2 16.1-28.3 16.1-51.8 0-23.9-5.4-41.1-15.9-52-11-11.2-28.1-16.6-51.5-16.6h-34v137.3z" fill="#FFFFFF" ></path></symbol><symbol id="icon-DWGs" viewBox="0 0 1024 1024"><path d="M620.9 67.2H236.5c-30.3 0-54.9 25-54.9 55.9v782.7c0 30.9 24.6 55.9 54.9 55.9h549c30.3 0 54.9-25 54.9-55.9v-615L620.9 67.2z" fill="#FF4280" ></path><path d="M802 925.9H220.1V109.7h379.6v218.9H802z" fill="#FFFFFF" ></path><path d="M802 922.6H220.1V106.4h379.6v218.8H802z" fill="#FF649C" ></path><path d="M306.1 624.2c27 0 47.5 7.5 61.6 22.8 13.2 14.1 19.7 34.5 19.7 61.2 0 26.3-6.8 46.8-20.3 61.4-14.1 15-34.5 22.6-61.6 22.6h-60.7v-168h61.3z m-35.6 146.1H301c21.2 0 36.9-5.1 46.8-15.3 9.7-10.1 14.6-25.6 14.6-46.8 0-21.6-4.9-37.1-14.4-47.1-9.9-10.1-25.4-15-46.6-15h-30.8v124.2h-0.1zM427.2 624.2l32.7 130.8h0.9l34.3-130.8H522l34.3 130.8h0.9l32.7-130.8h28.9L570.4 792.1h-27.2l-34.1-129.5h-0.9L474.1 792.1h-27.6l-48.2-167.9h28.9zM760 635.5c12 9.5 19.5 23.2 22.6 42h-25.9c-2.4-11.3-7.5-19.7-15.5-25.4-8-5.9-18.8-8.7-32-8.7-16.2 0-29.2 5.4-38.8 16.7-10.4 11.7-15.3 28-15.3 48.6 0 20.3 4.4 35.8 13.9 46.6 9.9 11.7 25.4 17.7 46.4 17.7 8.2 0 16-1.1 23.2-3.1 7.1-1.9 13.2-4.7 18.8-8.2v-36.5H711v-21.9h72v70.5c-8.7 6.8-18.8 12-30.3 15.7-12.2 3.8-25.6 5.7-40.2 5.7-26.8 0-47.5-8.4-62.3-25.4-13.9-15.7-20.7-36.2-20.7-61.2 0-25.2 6.8-45.9 20.7-62.1 14.6-17.4 34.3-25.9 59-25.9 21.4 0.3 38.3 5 50.8 14.9z" fill="#FFFFFF" ></path></symbol><symbol id="icon-XMAPs" viewBox="0 0 1024 1024"><path d="M620.9 67.2H236.5c-30.3 0-54.9 25-54.9 55.9v782.7c0 30.9 24.6 55.9 54.9 55.9h549c30.3 0 54.9-25 54.9-55.9v-615L620.9 67.2z" fill="#FF4242" ></path><path d="M802 925.9H220.1V109.7h379.6v218.9H802z" fill="#FFFFFF" ></path><path d="M802 922.6H220.1V106.4h379.6v218.8H802z" fill="#FF6666" ></path><path d="M264.7 664.9l33.2 53.4 33.2-53.4h25.4l-46.1 71.4 49.4 76.3h-25.4L297.9 754.1l-36.5 58.5H236l49.1-76.3-45.8-71.4h25.4zM398.7 664.9l47.5 118.3h0.5L494 664.9h24.6v147.7h-20.8V707.1h-0.7l-41.8 105.5h-18L395.4 707.1h-0.7v105.5h-20.8V664.9h24.8zM608.3 664.9l52.5 147.7h-22.4l-12.8-38h-58.7l-12.6 37.9h-22.2l52.5-147.7h23.8v0.1z m11 91l-22.5-66.9h-0.7l-22.7 66.9h45.9zM730.7 664.9c32.5 0 48.7 14.9 48.7 44.9 0 30.2-16.4 45.3-49.1 45.3H695v57.5h-20.8V664.9h56.5z m-35.8 70.9h34c10.3 0 17.8-2 22.5-6.2 4.6-4.1 7-10.7 7-19.8 0-9.1-2.5-15.7-7.3-19.5-4.7-4.1-12.2-6.2-22.3-6.2h-34v51.7z" fill="#FFFFFF" ></path></symbol><symbol id="icon-ZIP" viewBox="0 0 1024 1024"><path d="M598.023 98.5h21.274l206.726 242-5 14.448h-178L612.144 340.5l-26.121-41z" fill="#FFFFFF" ></path><path d="M824.123 342.383c-2.251-6.11-4.798-11.552-8.789-16.232L627.261 105.204c-4.879-5.722-10.853-10.218-18.13-13.576C601.853 88.27 594.391 87 586.87 87H229.063c-13.705 0-28.666 4.929-39.123 15.386-10.456 10.457-16.94 23.863-16.94 37.569v728.317c0 13.705 6.484 27.498 16.941 37.955S215.358 922 229.063 922H775.3c13.705 0 25.984-5.316 36.441-15.773S826 881.976 826 868.271v-507.37c0-6.152 0.375-12.408-1.877-18.518z m-17.838-8.638c-0.103-0.278-0.266-0.745-0.373-0.745H650.035c-12.514 0-25.097-1.854-34.645-11.401-9.547-9.548-14.39-19.141-14.39-31.655V104.035c0 0.556 4.757 0.983 6.375 1.73 6.644 3.067 12.995 7.229 17.45 12.454l172.417 201.437c3.463 4.06 6.63 13.343 8.67 13.343h0.637c-0.111 0.001-0.145 1.069-0.264 0.746z" fill="#E6F9FF" ></path><path d="M908.439 573.518C897.982 563.061 885.401 558 871.695 558H837V360.901c0-1.402 1.408-2.808 1.517-4.22 0.403-5.172 1.21-12.253-1.824-20.48-2.38-6.459-4.556-13.775-10.256-20.454L638.914 94.78c-6.6-7.745-14.076-11.176-20.786-14.199l-2.488-1.161c-7.494-3.462-14.564-3.907-19.914-3.907-1.621 0-3.226 0.201-4.863 0.248-1.328 0.042-2.646 0.238-3.99 0.238h-357.81c-22.681 0-41.693 5.802-53.455 17.559C164.871 104.306 151 119.151 151 139.955v728.317c0 17.514 10.598 37.762 24.613 51.788 14.021 14.01 35.935 22.94 53.45 22.94H775.3c20.804 0 34.522-12.204 45.274-22.946C832.325 908.298 837 890.958 837 868.271V793h34.695c13.706 0 26.287-5.08 36.744-15.537S923 753.45 923 739.745V611.218c0-13.705-4.104-27.244-14.561-37.7zM601 109.365l2.575 0.503c5.376 2.427 8.179 3.715 10.015 5.865L799.228 333H643.714c-9.387 0-21.705-4.918-29.12-12.339-7.369-7.364-13.594-18.375-13.594-27.856v-183.44z m204 758.906c0 9.523-0.222 22.264-7.083 29.125C788.341 906.972 782.428 911 775.3 911H229.063c-8.849 0-22.51-5.816-30.292-13.598C190.984 889.615 184 877.12 184 868.271V139.955c0-7.128 5.195-14.168 14.766-23.738 6.867-6.867 20.774-8.216 30.297-8.216H569v184.805c0 18.111 9.454 37.036 22.936 50.513C605.471 356.853 625.703 365 643.714 365H805v193H432.563c-13.705 0-28.916 5.061-39.372 15.518-10.457 10.456-17.191 23.995-17.191 37.7v128.526c0 13.705 6.734 27.262 17.191 37.719C403.647 787.92 418.858 793 432.563 793H805v75.271z" fill="#159FD7" ></path><path d="M596.843 635.78H529.61v-19.047h92.682v19.685l-64.985 68.029h64.985v19.047H529.61v-18.409l67.233-69.305zM639.257 723.494v-106.76h22.739v106.76h-22.739zM706.333 686.206v37.288h-22.739v-106.76h53.312c9.706 0 16.641 0.69 20.804 2.081 7.039 2.343 12.593 7.196 16.652 14.56 2.981 5.554 4.477 11.579 4.477 18.095 0 5.439-0.983 10.585-2.96 15.438-1.977 4.864-4.728 8.838-8.242 11.934-3.201 2.772-6.589 4.696-10.167 5.753-3.577 1.077-8.462 1.611-14.643 1.611h-36.494z m0-19.058h30.887c5.544 0 9.445-0.847 11.683-2.552 3.305-2.667 4.968-7.311 4.968-13.932 0-7.144-2.51-11.736-7.531-13.765-1.809-0.743-4.696-1.119-8.64-1.119h-31.368l0.001 31.368z" fill="#FFFFFF" ></path><path d="M339.416 307.473h64.263v96.395h-64.263v-96.395z m21.421 74.974h21.421v-54.452h-21.421v54.452z m0-107.106h53.553v21.421h-53.553v-21.421z m0-64.263h53.553v21.421h-53.553v-21.421z m-32.131-32.132h53.553v21.421h-53.553v-21.421z m53.552 85.685h-53.553V243.21h53.553v21.421z" fill="#159FD7" ></path></symbol><symbol id="icon-video1" viewBox="0 0 1024 1024"><path d="M80 34.4h864v960H80z" fill="#8095FF" ></path><path d="M176 112m-40 0a40 40 0 1 0 80 0 40 40 0 1 0-80 0Z" fill="#FFFFFF" ></path><path d="M176 272m-40 0a40 40 0 1 0 80 0 40 40 0 1 0-80 0Z" fill="#FFFFFF" ></path><path d="M176 432m-40 0a40 40 0 1 0 80 0 40 40 0 1 0-80 0Z" fill="#FFFFFF" ></path><path d="M176 592m-40 0a40 40 0 1 0 80 0 40 40 0 1 0-80 0Z" fill="#FFFFFF" ></path><path d="M176 752m-40 0a40 40 0 1 0 80 0 40 40 0 1 0-80 0Z" fill="#FFFFFF" ></path><path d="M176 912m-40 0a40 40 0 1 0 80 0 40 40 0 1 0-80 0Z" fill="#FFFFFF" ></path><path d="M864 112m-40 0a40 40 0 1 0 80 0 40 40 0 1 0-80 0Z" fill="#FFFFFF" ></path><path d="M864 272m-40 0a40 40 0 1 0 80 0 40 40 0 1 0-80 0Z" fill="#FFFFFF" ></path><path d="M864 432m-40 0a40 40 0 1 0 80 0 40 40 0 1 0-80 0Z" fill="#FFFFFF" ></path><path d="M864 592m-40 0a40 40 0 1 0 80 0 40 40 0 1 0-80 0Z" fill="#FFFFFF" ></path><path d="M864 752m-40 0a40 40 0 1 0 80 0 40 40 0 1 0-80 0Z" fill="#FFFFFF" ></path><path d="M864 912m-40 0a40 40 0 1 0 80 0 40 40 0 1 0-80 0Z" fill="#FFFFFF" ></path><path d="M648 508L436 362.4c-4.8-3.2-11.2-4-16.8-0.8-5.6 3.2-8.8 8.8-8.8 14.4v290.4c0 5.6 3.2 11.2 8.8 14.4 5.6 3.2 12 2.4 16.8-0.8L648 533.6c4.8-2.4 7.2-8 7.2-12.8 0-4.8-3.2-9.6-7.2-12.8z" fill="#FFFFFF" ></path></symbol><symbol id="icon-zip" viewBox="0 0 1024 1024"><path d="M944 944H80c-26.4 0-48-18.4-48-40.8V656h960v247.2c0 22.4-21.6 40.8-48 40.8z" fill="#5ACC9B" ></path><path d="M80 80h864c26.4 0 48 18.4 48 40.8V368H32V120.8c0-22.4 21.6-40.8 48-40.8z" fill="#6CCBFF" ></path><path d="M32 368h960v288H32z" fill="#FFD766" ></path><path d="M352 80h320v864H352z" fill="#FF5562" ></path><path d="M444 128h64v48h-64zM508 80h64v48h-64zM508 176h64v48h-64zM444 224h64v48h-64zM508 272h64v48h-64zM444 320h64v48h-64zM508 368h64v48h-64zM444 416h64v48h-64zM508 464h64v48h-64zM444 512h64v48h-64zM508 560h64v48h-64zM444 608h64v48h-64zM508 656h64v48h-64zM444 704h64v48h-64zM508 752h64v48h-64zM444 800h64v48h-64zM444 896h64v48h-64zM508 848h64v48h-64z" fill="#FFFFFF" ></path></symbol><symbol id="icon-wenjian" viewBox="0 0 1024 1024"><path d="M490.2 221.7l-47.1-49.9c-13.8-14.6-32.9-22.9-52.9-22.9H186.1c-40.4 0-73.2 33-73.2 73.8v548.1c0 40.8 32.8 73.8 73.2 73.8h653.7c40.4 0 73.2-33 73.2-73.8V318.4c0-40.8-32.8-73.8-73.2-73.8H543.2c-20 0-39.2-8.3-53-22.9z" fill="#0DCEA7" ></path><path d="M194 149h-7.9c-40.4 0-73.2 33-73.2 73.8v14.8c23-33.1 50.3-62.9 81.1-88.6zM912.9 318.4c0-37.1-27.2-67.9-62.6-73 29 43.8 50.5 92.9 62.6 145.7v-72.7zM912.9 770.8V591.2c-23.5 102.5-82.5 191.5-163.2 253.4h90.1c40.4 0 73.1-33 73.1-73.8zM112.9 744.7v26.2c0 40.8 32.8 73.8 73.2 73.8h22.2c-36.7-28.2-68.9-62-95.4-100z" fill="#0DCEA7" ></path><path d="M249.1 149h-55c-30.8 25.7-58.1 55.5-81.1 88.6v67.6c30.3-63.7 77.6-117.7 136.1-156.2zM112.9 635.2v109.5c26.4 38.1 58.6 71.8 95.3 100h165.2c-115.2-26.6-210.7-105.1-260.5-209.5zM912.9 591.2V391c-12.1-52.8-33.6-101.9-62.6-145.7-3.4-0.5-7-0.8-10.5-0.8h-68.7c46 63.4 73.2 141.3 73.2 225.6 0 182.5-127.2 335.2-297.7 374.5h203.2c80.7-61.9 139.6-150.9 163.1-253.4z" fill="#1DD49C" ></path><path d="M844.3 470.2c0-84.3-27.1-162.3-73.2-225.6h-79.9c45.7 55.7 73.1 127 73.1 204.7 0 178.5-144.7 323.2-323.2 323.2S117.8 627.8 117.8 449.2c0-136.2 84.2-252.6 203.4-300.3H249c-58.5 38.5-105.8 92.5-136.1 156.2v330.1c49.7 104.4 145.2 182.9 260.6 209.4h173c170.6-39.2 297.8-192 297.8-374.4z" fill="#2DDB92" ></path><path d="M117.8 449.2c0 178.5 144.7 323.2 323.2 323.2s323.2-144.7 323.2-323.2c0-77.7-27.4-148.9-73.1-204.7H609c46.5 47.3 75.2 112.2 75.2 183.7 0 144.8-117.4 262.2-262.2 262.2S159.9 573.1 159.9 428.3s117.4-262.2 262.2-262.2c5.2 0 10.3 0.2 15.4 0.5-13.2-11.3-29.9-17.6-47.4-17.6h-68.9C202 196.6 117.8 313.1 117.8 449.2z" fill="#3DE188" ></path><path d="M159.9 428.3c0 144.8 117.4 262.2 262.2 262.2s262.2-117.4 262.2-262.2c0-71.6-28.7-136.4-75.2-183.7h-66c-20 0-39.1-8.3-52.9-22.9l-47.1-49.9c-1.8-1.9-3.6-3.6-5.6-5.3-5.1-0.3-10.2-0.5-15.4-0.5-144.8 0.1-262.2 117.5-262.2 262.3z m444.5-20.9c0 111.1-90.1 201.2-201.2 201.2S202 518.5 202 407.4s90-201.2 201.2-201.2 201.2 90.1 201.2 201.2z" fill="#4CE77D" ></path><path d="M202 407.4c0 111.1 90.1 201.2 201.2 201.2s201.2-90.1 201.2-201.2-90.1-201.2-201.2-201.2S202 296.3 202 407.4z m322.4-21c0 77.4-62.8 140.2-140.2 140.2S244 463.9 244 386.4s62.8-140.2 140.2-140.2S524.4 309 524.4 386.4z" fill="#5CEE73" ></path><path d="M384.2 386.4m-140.2 0a140.2 140.2 0 1 0 280.4 0 140.2 140.2 0 1 0-280.4 0Z" fill="#6CF468" ></path><path d="M390.2 167c15 0 29.5 6.3 39.9 17.2l47.1 49.9c17.1 18.1 41.2 28.5 66 28.5h296.6c30.4 0 55.2 25 55.2 55.8v452.5c0 30.8-24.7 55.8-55.2 55.8H186.1c-30.4 0-55.2-25-55.2-55.8V222.8c0-30.8 24.7-55.8 55.2-55.8h204.1m0-18H186.1c-40.4 0-73.2 33-73.2 73.8v548.1c0 40.8 32.8 73.8 73.2 73.8h653.7c40.4 0 73.2-33 73.2-73.8V318.4c0-40.8-32.8-73.8-73.2-73.8H543.2c-20 0-39.1-8.3-52.9-22.9l-47.1-49.9c-13.9-14.6-33-22.8-53-22.8z" fill="#0EC69A" ></path><path d="M130.9 353.5h556.5c19.2 0 34.8 15.6 34.8 34.8v139.1c0 19.2-15.6 34.8-34.8 34.8H130.9V353.5z" fill="#9CFFBD" ></path><path d="M379.3 226.2H255.2c-9.9 0-18-8.1-18-18s8.1-18 18-18h124.1c9.9 0 18 8.1 18 18s-8.1 18-18 18z" fill="#FFFFFF" ></path><path d="M195.2 226.2h-10.5c-9.9 0-18-8.1-18-18s8.1-18 18-18h10.5c9.9 0 18 8.1 18 18s-8 18-18 18z" fill="#FFFFFF" ></path></symbol></svg>',t=(e=document.getElementsByTagName("script"))[e.length-1].getAttribute("data-injectcss");if(t&&!o.__iconfont__svg__cssinject__){o.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(e){console&&console.log(e)}}!function(e){if(document.addEventListener)if(~["complete","loaded","interactive"].indexOf(document.readyState))setTimeout(e,0);else{var t=function(){document.removeEventListener("DOMContentLoaded",t,!1),e()};document.addEventListener("DOMContentLoaded",t,!1)}else document.attachEvent&&(i=e,n=o.document,s=!1,a=function(){s||(s=!0,i())},(r=function(){try{n.documentElement.doScroll("left")}catch(e){return void setTimeout(r,50)}a()})(),n.onreadystatechange=function(){"complete"==n.readyState&&(n.onreadystatechange=null,a())});var i,n,s,a,r}(function(){var e,t,i,n,s,a;(e=document.createElement("div")).innerHTML=r,r=null,(t=e.getElementsByTagName("svg")[0])&&(t.setAttribute("aria-hidden","true"),t.style.position="absolute",t.style.width=0,t.style.height=0,t.style.overflow="hidden",i=t,(n=document.body).firstChild?(s=i,(a=n.firstChild).parentNode.insertBefore(s,a)):n.appendChild(i))})}(window),window.jeeplus||(jeeplus={}),jeeplus.version="5.2.3",jeeplus.codebase="./",jeeplus.name="core",jeeplus.cdn="//cdn.jeeplus.com",jeeplus.clone=function(e){var t=jeeplus.clone.a;return t.prototype=e,new t},jeeplus.clone.a=function(){},jeeplus.extend=function(e,t,i){if(e.$protoWait)return jeeplus.PowerArray.insertAt.call(e.$protoWait,t,1),e;for(var n in t)n in e&&!i||(e[n]=t[n]);return t.defaults&&jeeplus.extend(e.defaults,t.defaults),t.$init&&t.$init.call(e),e},jeeplus.copy=function(e){var t;for(var i in 1<arguments.length?(t=e,e=arguments[1]):t=jeeplus.isArray(e)?[]:{},e){var n=e[i];!n||"object"!=typeof n||n instanceof RegExp?t[i]=n:jeeplus.isDate(n)?t[i]=new Date(n):jeeplus.env.esModern&&(n instanceof Map||n instanceof Set||n instanceof WeakMap||n instanceof WeakSet)?t[i]=n:(t[i]=jeeplus.isArray(n)?[]:{},jeeplus.copy(t[i],n))}return t},jeeplus.single=function(t){var i=null;return function(e){return i||(i=new t({})),i.c&&i.c.apply(i,arguments),i}},jeeplus.protoUI=function(){var s=arguments[0].name,a=function(e){if(!a)return jeeplus.ui[s].prototype;var t=a.$protoWait;if(t){for(var i=[t[0]],n=1;n<t.length;n++)i[n]=t[n],i[n].$protoWait&&(i[n]=i[n].call(jeeplus,i[n].name)),i[n].prototype&&i[n].prototype.name&&(jeeplus.ui[i[n].prototype.name]=i[n]);if(jeeplus.ui[s]=jeeplus.proto.apply(jeeplus,i),a.d)for(n=0;n<a.d.length;n++)jeeplus.type(jeeplus.ui[s],a.d[n]);a=t=null}return this!=jeeplus?new jeeplus.ui[s](e):jeeplus.ui[s]};return a.$protoWait=Array.prototype.slice.call(arguments,0),jeeplus.ui[s]=a},jeeplus.proto=function(){for(var e=arguments,t=e[0],i=!!t.$init,n=[],s=e.length-1;0<s;s--){if("function"==typeof e[s]&&(e[s]=e[s].prototype),e[s].$init&&n.push(e[s].$init),e[s].defaults){var a=e[s].defaults;for(var r in t.defaults||(t.defaults={}),a)jeeplus.isUndefined(t.defaults[r])&&(t.defaults[r]=a[r])}if(e[s].type&&t.type)for(var r in e[s].type)t.type[r]||(t.type[r]=e[s].type[r]);for(var o in e[s])t[o]||!1===t[o]||(t[o]=e[s][o])}i&&n.push(t.$init),t.$init=function(){for(var e=0;e<n.length;e++)n[e].apply(this,arguments)},t.$skin&&t.$skin();var l=function(e){this.$ready=[],this.$init(e),this.e&&this.e(e,this.defaults);for(var t=0;t<this.$ready.length;t++)this.$ready[t].call(this)};return l.prototype=t,t=e=null,l},jeeplus.bind=function(e,t){return function(){return e.apply(t,arguments)}},jeeplus.require=function(n,e,t){var i=jeeplus.promise.defer();if(e&&!0!==e&&(i=i.then(function(){e.call(t||this)})),jeeplus.require.disabled)return i.resolve(),i;if("string"==typeof n){if(!0!==jeeplus.f[n]){var s=n;if(n.toString().match(/^([a-z]+\:)*\/\//i)||(s=jeeplus.codebase+n),".css"==n.substr(n.length-4)){var a=jeeplus.html.create("LINK",{type:"text/css",rel:"stylesheet",href:s});return document.getElementsByTagName("head")[0].appendChild(a),i.resolve(),i}!0===e?(jeeplus.exec(jeeplus.ajax().sync().get(s).responseText),jeeplus.f[n]=!0):jeeplus.f[n]?jeeplus.f[n].push(i):(jeeplus.f[n]=[i],jeeplus.ajax(s,function(e){jeeplus.exec(e);var t=jeeplus.f[n];jeeplus.f[n]=!0;for(var i=0;i<t.length;i++)t[i].resolve()}))}else i.resolve();return i}var r=n.length||0;if(r){(l=function(){r?(r--,jeeplus.require(n[n.length-r-1],l,t)):i.resolve()})()}else{for(var o in n)r++;var l=function(){0===--r&&i.resolve()};for(var o in n)jeeplus.require(o,l,t)}},jeeplus.f={},jeeplus.exec=function(e){window.execScript?window.execScript(e):window.eval(e)},jeeplus.wrap=function(t,i){return t?function(){var e=t.apply(this,arguments);return i.apply(this,arguments),e}:i},jeeplus.isUndefined=function(e){return void 0===e},jeeplus.delay=function(t,i,n,e){return window.setTimeout(function(){if(!i||!i.$destructed){var e=t.apply(i,n||[]);return t=i=n=null,e}},e||1)},jeeplus.once=function(e){var t=!0;return function(){t&&(t=!1,e.apply(this,arguments))}},jeeplus.uid=function(){return this.g||(this.g=(new Date).valueOf()),this.g++,this.g},jeeplus.toNode=function(e){return"string"==typeof e?document.getElementById(e):e},jeeplus.toArray=function(e){return jeeplus.extend(e||[],jeeplus.PowerArray,!0)},jeeplus.toFunctor=function(str,scope){if("string"==typeof str){var method=str.replace("()","");return scope&&scope[method]?scope[method]:window[method]||eval(str)}return str},jeeplus.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)},jeeplus.isDate=function(e){return e instanceof Date},jeeplus.stringify=function(e){var t,i=Date.prototype.toJSON;return Date.prototype.toJSON=function(){return jeeplus.i18n.parseFormatStr(this)},t=e instanceof Date?e.toJSON():JSON.stringify(e),Date.prototype.toJSON=i,t},jeeplus.h={},jeeplus.UE=function(e,t,i,n){(n=n||{}).inner=!0,jeeplus.event(e,t,i,n)},jeeplus.event=function(e,t,i,n){n=n||{},e=jeeplus.toNode(e);var s=n.id||jeeplus.uid();n.bind&&(i=jeeplus.bind(i,n.bind));var a=[e,t,i,n.capture];return n.inner||(jeeplus.h[s]=a),e.addEventListener?e.addEventListener(t,i,!!n.capture):e.attachEvent&&e.attachEvent("on"+t,a[2]=function(){return i.apply(e,arguments)}),s},jeeplus.eventRemove=function(e){if(e){var t=jeeplus.h[e];t[0].removeEventListener?t[0].removeEventListener(t[1],t[2],!!t[3]):t[0].detachEvent&&t[0].detachEvent("on"+t[1],t[2]),delete this.h[e]}},jeeplus.EventSystem={$init:function(){this.i||(this.i={},this.j={},this.k={})},blockEvent:function(){this.i.l=!0},unblockEvent:function(){this.i.l=!1},mapEvent:function(e){jeeplus.extend(this.k,e,!0)},on_setter:function(e){if(e)for(var t in e){var i=jeeplus.toFunctor(e[t],this.$scope),n=t.indexOf("->");-1!==n?this[t.substr(0,n)].attachEvent(t.substr(n+2),jeeplus.bind(i,this)):this.attachEvent(t,i)}},callEvent:function(e,t){if(this.i.l)return!0;e=e.toLowerCase();var i=this.i[e.toLowerCase()],n=!0;if(i)for(var s=0;s<i.length;s++)!1===i[s].apply(this,t||[])&&(n=!1);if(this.k[e]){var a=this.k[e];a.$eventSource=this,a.callEvent(e,t)||(n=!1),a.$eventSource=null}return n},attachEvent:function(e,t,i){e=e.toLowerCase(),i=i||jeeplus.uid(),t=jeeplus.toFunctor(t,this.$scope);var n=this.i[e]||jeeplus.toArray();return arguments[3]?n.unshift(t):n.push(t),this.i[e]=n,this.j[i]={f:t,t:e},i},detachEvent:function(e){if(this.j[e]){var t=this.j[e].t,i=this.j[e].f;this.i[t].remove(i),delete this.j[e]}else{var n=(e+"").toLowerCase();this.i[n]&&(this.i[n]=jeeplus.toArray())}},hasEvent:function(e){e=e.toLowerCase();var t=this.i[e];if(t&&t.length)return!0;var i=this.k[e];return!!i&&i.hasEvent(e)}},jeeplus.extend(jeeplus,jeeplus.EventSystem,!0),jeeplus.PowerArray={removeAt:function(e,t){0<=e&&this.splice(e,t||1)},remove:function(e){this.removeAt(this.find(e))},insertAt:function(e,t){if(t||0===t){var i=this.splice(t,this.length-t);this[t]=e,this.push.apply(this,i)}else this.push(e)},find:function(e){for(var t=0;t<this.length;t++)if(e==this[t])return t;return-1},each:function(e,t){for(var i=0;i<this.length;i++)e.call(t||this,this[i])},map:function(e,t){for(var i=0;i<this.length;i++)this[i]=e.call(t||this,this[i]);return this},filter:function(e,t){for(var i=0;i<this.length;i++)e.call(t||this,this[i])||(this.splice(i,1),i--);return this}},jeeplus.env={},function(){jeeplus.env.strict=!!window.jeeplus_strict,jeeplus.env.https="https:"===document.location.protocol,jeeplus.env.esModern=!!Object.assign;var e=navigator.userAgent;if((-1!=e.indexOf("Mobile")||-1!=e.indexOf("Windows Phone"))&&(jeeplus.env.mobile=!0),(jeeplus.env.mobile||-1!=e.indexOf("iPad")||-1!=e.indexOf("Android"))&&(jeeplus.env.touch=!0),-1!=e.indexOf("Opera"))jeeplus.env.isOpera=!0;else{if(jeeplus.env.isIE=!!document.all||-1!==e.indexOf("Trident"),jeeplus.env.isIE)8==parseFloat(navigator.appVersion.split("MSIE")[1])&&(jeeplus.env.isIE8=!0);jeeplus.env.isEdge=-1!=e.indexOf("Edge"),jeeplus.env.isFF=-1!=e.indexOf("Firefox"),jeeplus.env.isWebKit=-1!=e.indexOf("KHTML"),jeeplus.env.isSafari=jeeplus.env.isWebKit&&-1!=e.indexOf("Mac")&&-1==e.indexOf("Chrome"),(jeeplus.env.isIE||jeeplus.env.isEdge||jeeplus.env.isFF)&&(jeeplus.env.maxHTMLElementSize=1e7),jeeplus.env.isSafari&&(jeeplus.env.maxHTMLElementSize=1e8)}-1!=e.toLowerCase().indexOf("android")&&(jeeplus.env.isAndroid=!0,-1!=e.toLowerCase().indexOf("trident")&&(jeeplus.env.isAndroid=!1,jeeplus.env.isIEMobile=!0)),jeeplus.env.transform=!1,jeeplus.env.transition=!1;for(var t=-1,i=["","webkit","Moz","O","ms"],n=document.createElement("DIV"),s=0;s<i.length;s++){var a=i[s]?i[s]+"Transform":"transform";if(void 0!==n.style[a]){t=s;break}}if(-1<t){jeeplus.env.cssPrefix=["","-webkit-","-Moz-","-o-","-ms-"][t];var r=jeeplus.env.jsPrefix=i[t];jeeplus.env.transform=r?r+"Transform":"transform",jeeplus.env.transition=r?r+"Transition":"transition",jeeplus.env.transitionDuration=r?r+"TransitionDuration":"transitionDuration",n.style[jeeplus.env.transform]="translate3d(0,0,0)",jeeplus.env.translate=n.style[jeeplus.env.transform]?"translate3d":"translate",jeeplus.env.transitionEnd="-Moz-"==jeeplus.env.cssPrefix?"transitionend":r?r+"TransitionEnd":"transitionend"}jeeplus.env.pointerevents=!jeeplus.env.isIE||null!==new RegExp("Trident/.*rv:11").exec(e)}(),jeeplus.env.svg=document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1"),jeeplus.env.svganimation=document.implementation.hasFeature("https://www.w3.org/TR/SVG11/feature#SVG-animation","1.1"),jeeplus.html={m:0,ky:{},denySelect:function(){jeeplus.m||(jeeplus.m=document.onselectstart),document.onselectstart=jeeplus.html.stopEvent},allowSelect:function(){0!==jeeplus.m&&(document.onselectstart=jeeplus.m||null),jeeplus.m=0},index:function(e){for(var t=0;e=e.previousSibling;)t++;return t},n:{},createCss:function(e,t){var i="";for(var n in t=t||"",e)i+=n+":"+e[n]+";";var s=this.n[i+t];return s||(s="s"+jeeplus.uid(),this.addStyle("."+s+(t||"")+"{"+i+"}"),this.n[i+t]=s),s},addStyle:function(e,t){var i=t?this.ky[t]:this.ky.default;i||((i=document.createElement("style")).setAttribute("type","text/css"),i.setAttribute("media","screen,print"),document.getElementsByTagName("head")[0].appendChild(i),t?this.ky[t]=i:this.ky.default=i),i.styleSheet?i.styleSheet.cssText+=e:i.appendChild(document.createTextNode(e))},removeStyle:function(e){var t=this.ky[e||"default"];t&&(t.innerHTML="")},create:function(e,t,i){t=t||{};var n=document.createElement(e);for(var s in t)n.setAttribute(s,t[s]);return t.style&&(n.style.cssText=t.style),t.class&&(n.className=t.class),i&&(n.innerHTML=i),n},getValue:function(e){return(e=jeeplus.toNode(e))?jeeplus.isUndefined(e.value)?e.innerHTML:e.value:""},remove:function(e){if(e instanceof Array)for(var t=0;t<e.length;t++)this.remove(e[t]);else e&&e.parentNode&&e.parentNode.removeChild(e)},insertBefore:function(e,t,i){e&&(t&&t.parentNode?t.parentNode.insertBefore(e,t):i.appendChild(e))},locate:function(e,t){var i;for(e.tagName?i=e:i=(e=e||event).target||e.srcElement;i;){if(i.getAttribute){var n=i.getAttribute(t);if(n)return n}i=i.parentNode}return null},offset:function(e){if(e.getBoundingClientRect){var t=e.getBoundingClientRect(),i=document.body,n=document.documentElement,s=window.pageYOffset||n.scrollTop||i.scrollTop,a=window.pageXOffset||n.scrollLeft||i.scrollLeft,r=n.clientTop||i.clientTop||0,o=n.clientLeft||i.clientLeft||0,l=t.top+s-r,h=t.left+a-o;return{y:Math.round(l),x:Math.round(h),width:e.offsetWidth,height:e.offsetHeight}}for(l=0,h=0;e;)l+=parseInt(e.offsetTop,10),h+=parseInt(e.offsetLeft,10),e=e.offsetParent;return{y:l,x:h,width:e.offsetHeight,height:e.offsetWidth}},posRelative:function(e){return e=e||event,jeeplus.isUndefined(e.offsetX)?{x:e.layerX,y:e.layerY}:{x:e.offsetX,y:e.offsetY}},pos:function(e){if((e=e||event).touches&&e.touches[0]&&(e=e.touches[0]),e.pageX||e.pageY)return{x:e.pageX,y:e.pageY};var t=jeeplus.env.isIE&&"BackCompat"!=document.compatMode?document.documentElement:document.body;return{x:e.clientX+t.scrollLeft-t.clientLeft,y:e.clientY+t.scrollTop-t.clientTop}},preventEvent:function(e){return e&&e.preventDefault&&e.preventDefault(),e&&(e.returnValue=!1),jeeplus.html.stopEvent(e)},stopEvent:function(e){return(e=e||event).stopPropagation&&e.stopPropagation(),!(e.cancelBubble=!0)},triggerEvent:function(e,t,i){if(document.createEventObject){var n=document.createEventObject();e.fireEvent&&e.fireEvent("on"+i,n)}else{(n=document.createEvent(t)).initEvent(i,!0,!0),e.dispatchEvent&&e.dispatchEvent(n)}},addCss:function(e,t,i){i&&-1!==e.className.indexOf(t)||(e.className+=" "+t)},removeCss:function(e,t){e.className=e.className.replace(RegExp(" "+t,"g"),"")},getTextSize:function(e,t,i){var n=jeeplus.html.create("DIV",{class:"jeeplus_view jeeplus_measure_size "+(t||"")},"");n.style.cssText="height:auto;visibility:hidden; position:absolute; top:0px; left:0px; overflow:hidden;"+(i?"width:"+i+"px;":"width:auto;white-space:nowrap;"),document.body.appendChild(n);for(var s="object"!=typeof e?[e]:e,a=(i=0,0),r=0;r<s.length;r++)n.innerHTML=s[r],i=Math.max(i,n.offsetWidth),a=Math.max(a,n.offsetHeight);return jeeplus.html.remove(n),{width:i,height:a}},download:function(e,t){var i=!1;if("object"==typeof e){if(window.navigator.msSaveBlob)return window.navigator.msSaveBlob(e,t);e=window.URL.createObjectURL(e),i=!0}var n=document.createElement("a");n.href=e,n.download=t,document.body.appendChild(n),n.click(),jeeplus.delay(function(){i&&window.URL.revokeObjectURL(e),document.body.removeChild(n),n.remove()})},TC:function(e){if(!e)return"";var t=e.className||"";return t.baseVal&&(t=t.baseVal),t.indexOf||(t=""),t},setSelectionRange:function(e,t,i){if(t=t||0,i=i||t,e.focus(),e.setSelectionRange)e.setSelectionRange(t,i);else{var n=e.createTextRange();n.collapse(!0),n.moveEnd("character",i),n.moveStart("character",t),n.select()}},getSelectionRange:function(e){if("selectionStart"in e)return{start:e.selectionStart||0,end:e.selectionEnd||0};e.focus();var t=document.selection.createRange().getBookmark(),i=e.createTextRange();i.moveToBookmark(t);var n=i.text.length;i.collapse(!0),i.moveStart("character",-e.value.length);var s=i.text.length;return{start:s,end:s+n}}},jeeplus.ready=function(e){this.o?e.call():this.p.push(e)},jeeplus.p=[],function(){var e=document.getElementsByTagName("SCRIPT");e.length&&((e=(e[e.length-1].getAttribute("src")||"").split("/")).splice(e.length-1,1),jeeplus.codebase=e.slice(0,e.length).join("/")+"/");var t=function(){jeeplus.env.isIE&&(document.body.className+=" jeeplus_ie"),jeeplus.callEvent("onReady",[])},i=function(){jeeplus.o=!0,window.jeeplus_ready&&jeeplus.isArray(jeeplus_ready)&&(jeeplus.p=jeeplus_ready.concat(jeeplus.p));for(var e=0;e<jeeplus.p.length;e++)jeeplus.p[e].call();jeeplus.p=[]};jeeplus.attachEvent("onReady",function(e){e?i():jeeplus.delay(i)}),"complete"==document.readyState?t():jeeplus.event(window,"load",t)}(),jeeplus.locale=jeeplus.locale||{},jeeplus.ready(function(){jeeplus.event(document.body,"click",function(e){jeeplus.callEvent("onClick",[e||event])})}),jeeplus.editStop=function(){jeeplus.callEvent("onEditEnd",[])},function(e){function u(e){t.setImmediate?setImmediate(e):t.importScripts||!t.addEventListener?setTimeout(e):(n[++i]=e,t.postMessage(i,"*"))}function d(e){"use strict";function t(e,t,i,n){if(2==r)return n();if("object"!=typeof o&&"function"!=typeof o||"function"!=typeof e)n();else try{var s=0;e.call(o,function(e){s++||(o=e,t())},function(e){s++||(o=e,i())})}catch(e){o=e,i()}}function i(){var e;try{e=o&&o.then}catch(e){return o=e,r=2,i()}t(e,function(){r=1,i()},function(){r=2,i()},function(){try{1==r&&"function"==typeof n?o=n(o):2==r&&"function"==typeof s&&(o=s(o),r=1)}catch(e){return o=e,h()}o==a?(o=TypeError(),h()):t(e,function(){h(3)},h,function(){h(1==r&&3)})})}if("function"!=typeof e&&null!=e)throw TypeError();if("object"!=typeof this||this&&this.then)throw TypeError();var n,s,a=this,r=0,o=0,l=[];(a.promise=a).resolve=function(e){return n=a.fn,s=a.er,r||(o=e,r=1,u(i)),a},a.reject=function(e){return n=a.fn,s=a.er,r||(o=e,r=2,u(i)),a},a.fG=1,a.then=function(e,t){if(1!=this.fG)throw TypeError();var i=new d;return i.fn=e,i.er=t,3==r?i.resolve(o):4==r?i.reject(o):l.push(i),i},a.catch=function(e){return a.then(null,e)},a.fail=function(e){return a.then(null,e)};var h=function(e){r=e||4;for(var t=0;t<l.length;t++){var i=l[t];3==r&&i.resolve(o)||i.reject(o)}};try{"function"==typeof e&&e(a.resolve,a.reject)}catch(e){a.reject(e)}return a}var t=this,i=1,n={},s=!1;!t.setImmediate&&t.addEventListener&&t.addEventListener("message",function(e){if(e.source==t)if(s)u(n[e.data]);else{s=!0;try{n[e.data]()}catch(e){}delete n[e.data],s=!1}}),d.resolve=function(t){if(1!=this.fG)throw TypeError();return t instanceof d?t:new d(function(e){e(t)})},d.reject=function(i){if(1!=this.fG)throw TypeError();return new d(function(e,t){t(i)})},d.all=function(n){if(1!=this.fG)throw TypeError();if(!(n instanceof Array))return d.reject(TypeError());var s=new d;return function i(e,t){return t?s.resolve(t):e?s.reject(e):(0==n.reduce(function(e,t){return t&&t.then?e+1:e},0)&&s.resolve(n),void n.map(function(e,t){e&&e.then&&e.then(function(e){return n[t]=e,i(),e},i)}))}(),s},d.race=function(n){if(1!=this.fG)throw TypeError();if(!(n instanceof Array))return d.reject(TypeError());if(0==n.length)return new d;var s=new d;return function i(e,t){return t?s.resolve(t):e?s.reject(e):(0==n.reduce(function(e,t){return t&&t.then?e+1:e},0)&&s.resolve(n),void n.map(function(e,t){e&&e.then&&e.then(function(e){i(null,e)},i)}))}(),s},d.fG=1,d.defer=function(){return new d(null)},e.promise=d}(jeeplus),function(){function i(e,t){this.kD={},this.lD=[],this.mD=e,this.U="",t?this.nD(t):this.o=jeeplus.ajax(e).then(function(e){return e.text()}).then(jeeplus.bind(function(e){return e=e.split("/*api*/")[1],this.nD(JSON.parse(e)),this.kD},this))}function n(e,t){return new i(e,t).oD()}var o="__jeeplus_remote_error";i.prototype={nD:function(e){if(e.$key&&(this.U=e.$key),e.$vars)for(var t in e.$vars)this.kD[t]=e.$vars[t];this.df(e,this.kD,"")},df:function(e,t,i){for(var n in e)if("$key"!==n&&"$vars"!==n){var s=e[n];if("object"==typeof s){var a=t[n]={};this.df(s,a,i+n+".")}else t[n]=this.pD(this,i+n)}},qD:function(e,t){var i=this.rD(this,e,t);return this.lD.push(i),this.sD(),i},sD:function(){this.tD||(this.tD=setTimeout(jeeplus.bind(this.uD,this),1))},uD:function(){for(var e=[],s=this.lD,t=0;t<this.lD.length;t++){var i=this.lD[t];i.$sync?(s.splice(t,1),t--):e.push({name:i.$name,args:i.$args})}if(s.length){var n=jeeplus.ajax(),a=this.vD(e);jeeplus.callEvent("onBeforeRemoteCall",[n,a,{}]);var r=n.post(this.mD,a).then(function(e){for(var t=e.json().data,i=0;i<t.length;i++){e=t[i];var n=t[i]&&t[i][o];n?(jeeplus.callEvent("onRemoteError",[n]),s[i].reject(n)):s[i].resolve(e)}},function(e){for(var t=0;t<s.length;t++)s[t].reject(e);throw e});jeeplus.callEvent("onAfterRemoteCall",[r])}this.lD=[],this.tD=null},H:function(){var e=null;this.$sync=!0;var t=[{name:this.$name,args:this.$args}];try{var i=jeeplus.ajax(),n=this.$context.vD(t);jeeplus.callEvent("onBeforeRemoteCall",[i,n,{sync:!0}]);var s=i.sync().post(this.$context.mD,n);jeeplus.callEvent("onAfterRemoteCall",[null]),(e=JSON.parse(s.responseText).data[0])[o]&&(e=null)}catch(e){}return e},rD:function(e,t,i){var n=jeeplus.promise.defer();return n.sync=e.H,n.$name=t,n.$args=i,n.$context=this,n},pD:function(e,t){return function(){return e.qD(t,[].slice.call(arguments))}},oD:function(){return this.o||this.kD},vD:function(e){return{key:this.U,payload:e}}},jeeplus.remote=function(e,t){if("object"!=typeof e)return n(e,t);var i=document.getElementsByTagName("script");t=e,e=i[i.length-1].src,jeeplus.remote=n(e,t)}}(),jeeplus.skin={},jeeplus.skin.air={topLayout:"wide",barHeight:34,tabbarHeight:36,rowHeight:34,toolbarHeight:22,listItemHeight:28,inputHeight:34,inputPadding:2,menuHeight:34,menuMargin:0,labelTopHeight:16,inputSpacing:4,borderWidth:1,sliderHandleWidth:14,sliderPadding:10,sliderBorder:1,vSliderPadding:13,vSliderHeight:100,switchHeight:22,switchWidth:50,layoutMargin:{space:10,wide:4,clean:0,head:4,line:-1,toolbar:4,form:8},layoutPadding:{space:10,wide:0,clean:0,head:0,line:0,toolbar:4,form:8},tabMargin:0,popupPadding:8,calendarHeight:70,padding:0,optionHeight:27},jeeplus.skin.aircompact={topLayout:"wide",barHeight:24,tabbarHeight:26,rowHeight:26,toolbarHeight:22,listItemHeight:28,inputHeight:29,inputPadding:2,menuHeight:25,menuMargin:0,labelTopHeight:16,inputSpacing:4,borderWidth:1,sliderHandleWidth:12,sliderPadding:10,sliderBorder:1,vSliderPadding:12.5,vSliderHeight:100,switchHeight:20,switchWidth:40,layoutMargin:{space:10,wide:4,clean:0,head:4,line:-1,toolbar:4,form:8},layoutPadding:{space:10,wide:0,clean:0,head:0,line:0,toolbar:4,form:8},tabMargin:0,popupPadding:8,calendarHeight:70,padding:0,optionHeight:23},jeeplus.skin.web={name:"web",topLayout:"space",barHeight:28,tabbarHeight:30,rowHeight:30,toolbarHeight:22,listItemHeight:28,inputHeight:28,inputPadding:2,menuMargin:0,menuHeight:27,labelTopHeight:16,inputSpacing:4,borderWidth:1,sliderHandleWidth:11,sliderPadding:10,sliderBorder:1,vSliderPadding:10,vSliderHeight:100,switchHeight:19,switchWidth:40,layoutMargin:{space:10,wide:4,clean:0,head:4,line:-1,toolbar:4,form:8,accordion:9},layoutPadding:{space:10,wide:0,clean:0,head:0,line:0,toolbar:4,form:8,accordion:0},tabMargin:3,tabTopOffset:3,popupPadding:8,calendarHeight:70,padding:0,optionHeight:22},jeeplus.skin.clouds={topLayout:"wide",barHeight:36,tabbarHeight:46,rowHeight:34,toolbarHeight:22,listItemHeight:32,inputHeight:30,inputPadding:2,menuHeight:34,labelTopHeight:16,inputSpacing:4,borderWidth:1,sliderHandleWidth:12,sliderPadding:10,sliderBorder:1,vSliderPadding:11,vSliderHeight:100,switchHeight:22,switchWidth:50,layoutMargin:{space:10,wide:4,clean:0,head:4,line:-1,toolbar:4,form:8},layoutPadding:{space:10,wide:0,clean:0,head:0,line:0,toolbar:4,form:8},tabMargin:2,tabOffset:0,tabBottomOffset:10,popupPadding:8,calendarHeight:70,padding:0},jeeplus.skin.terrace={topLayout:"space",barHeight:37,tabbarHeight:39,rowHeight:38,toolbarHeight:22,listItemHeight:28,inputHeight:30,inputPadding:2,menuMargin:0,menuHeight:32,labelTopHeight:16,inputSpacing:4,borderWidth:1,sliderHandleWidth:14,sliderPadding:10,sliderBorder:1,vSliderPadding:14,vSliderHeight:100,switchHeight:20,switchWidth:50,layoutMargin:{space:20,wide:20,clean:0,head:4,line:-1,toolbar:4,form:8},layoutPadding:{space:20,wide:0,clean:0,head:0,line:0,toolbar:4,form:8},tabMargin:2,tabOffset:0,popupPadding:8,calendarHeight:70,padding:17,optionHeight:24},jeeplus.skin.metro={topLayout:"space",barHeight:36,tabbarHeight:46,rowHeight:34,toolbarHeight:36,listItemHeight:32,inputHeight:30,buttonHeight:45,inputPadding:2,menuHeight:36,labelTopHeight:16,inputSpacing:4,borderWidth:1,sliderHandleWidth:14,sliderPadding:10,sliderBorder:1,vSliderPadding:13,vSliderHeight:100,switchHeight:22,switchWidth:50,layoutMargin:{space:10,wide:4,clean:0,head:4,line:-1,toolbar:4,form:8,accordion:9},layoutPadding:{space:10,wide:0,clean:0,head:0,line:0,toolbar:0,form:8,accordion:0},tabMargin:2,tabOffset:0,tabBottomOffset:10,popupPadding:8,calendarHeight:70,padding:0,optionHeight:23},jeeplus.skin.light={topLayout:"space",barHeight:36,tabbarHeight:46,rowHeight:32,toolbarHeight:36,listItemHeight:32,inputHeight:34,buttonHeight:45,inputPadding:3,menuHeight:36,labelTopHeight:16,inputSpacing:4,borderWidth:1,sliderHandleWidth:14,sliderPadding:10,sliderBorder:1,vSliderPadding:13,vSliderHeight:100,switchHeight:22,switchWidth:50,layoutMargin:{space:15,wide:15,clean:0,head:4,line:-1,toolbar:4,form:8,accordion:10},layoutPadding:{space:15,wide:0,clean:0,head:0,line:0,toolbar:0,form:8,accordion:0},tabMargin:2,tabOffset:0,tabBottomOffset:10,popupPadding:8,calendarHeight:70,padding:0,optionHeight:27},jeeplus.skin.glamour={topLayout:"space",barHeight:39,tabbarHeight:39,rowHeight:32,toolbarHeight:39,listItemHeight:32,inputHeight:34,buttonHeight:34,inputPadding:3,menuHeight:36,labelTopHeight:16,inputSpacing:4,borderWidth:1,sliderHandleWidth:13,sliderPadding:10,sliderBorder:1,vSliderPadding:13,vSliderHeight:100,switchHeight:22,switchWidth:50,layoutMargin:{space:15,wide:15,clean:0,head:4,line:-1,toolbar:4,form:8,accordion:10},layoutPadding:{space:15,wide:0,clean:0,head:0,line:0,toolbar:3,form:8,accordion:0},tabMargin:1,tabOffset:0,tabBottomOffset:1,popupPadding:8,calendarHeight:70,padding:0,optionHeight:27},jeeplus.skin.touch={topLayout:"space",barHeight:42,tabbarHeight:50,rowHeight:42,toolbarHeight:42,listItemHeight:42,inputHeight:42,inputPadding:4,menuHeight:42,labelTopHeight:24,unitHeaderHeight:34,inputSpacing:4,borderWidth:1,sliderHandleWidth:18,sliderPadding:10,sliderBorder:1,vSliderPadding:17,vSliderHeight:100,switchHeight:22,switchWidth:50,layoutMargin:{space:10,wide:4,clean:0,head:4,line:-1,toolbar:0,form:0,accordion:9},layoutPadding:{space:10,wide:0,clean:0,head:0,line:0,toolbar:4,form:8,accordion:0},tabMargin:2,tabOffset:0,tabBottomOffset:10,calendar:{headerHeight:70,timepickerHeight:35,height:310,width:300},padding:0,customCheckbox:!0,customRadio:!0,popupPadding:8,optionHeight:32},jeeplus.skin.flat={topLayout:"space",barHeight:46,tabbarHeight:46,rowHeight:34,toolbarHeight:46,listItemHeight:34,inputHeight:38,buttonHeight:38,inputPadding:3,menuHeight:34,labelTopHeight:22,propertyItemHeight:28,inputSpacing:4,borderWidth:1,sliderHandleWidth:14,sliderPadding:10,sliderBorder:1,vSliderPadding:15,vSliderHeight:100,switchHeight:22,switchWidth:50,layoutMargin:{space:10,wide:10,clean:0,head:4,line:-1,toolbar:4,form:8,accordion:10},layoutPadding:{space:10,wide:0,clean:0,head:0,line:0,toolbar:4,form:17,accordion:0},tabMargin:4,tabOffset:0,tabBottomOffset:6,tabTopOffset:1,customCheckbox:!0,customRadio:!0,popupPadding:8,calendarHeight:70,padding:0,accordionType:"accordion",optionHeight:32},jeeplus.skin.compact={topLayout:"space",barHeight:34,tabbarHeight:34,rowHeight:24,toolbarHeight:34,listItemHeight:28,inputHeight:30,buttonHeight:30,inputPadding:3,menuHeight:28,labelTopHeight:16,inputSpacing:4,borderWidth:1,sliderHandleWidth:12,sliderPadding:10,sliderBorder:1,vSliderPadding:13,vSliderHeight:100,switchHeight:20,switchWidth:40,layoutMargin:{space:5,wide:5,clean:0,head:4,line:-1,toolbar:4,form:4,accordion:5},layoutPadding:{space:5,wide:0,clean:0,head:0,line:0,toolbar:2,form:12,accordion:0},tabMargin:3,tabOffset:0,tabBottomOffset:3,tabTopOffset:1,customCheckbox:!0,customRadio:!0,popupPadding:8,calendarHeight:70,padding:0,accordionType:"accordion",optionHeight:23},jeeplus.skin.material={topLayout:"space",barHeight:45,tabbarHeight:47,rowHeight:38,toolbarHeight:22,listItemHeight:34,inputHeight:38,buttonHeight:38,inputPadding:2,menuMargin:0,menuHeight:34,labelTopHeight:16,propertyItemHeight:34,inputSpacing:4,borderWidth:1,sliderHandleWidth:16,sliderPadding:10,sliderBorder:1,switchHeight:22,switchWidth:50,layoutMargin:{material:10,space:10,wide:10,clean:0,head:4,line:-1,toolbar:4,form:16,accordion:0},layoutPadding:{material:10,space:10,wide:0,clean:0,head:0,line:0,toolbar:4,form:16,accordion:0},tabMargin:0,tabOffset:0,tabBottomOffset:0,tabTopOffset:0,customCheckbox:!0,customRadio:!0,popupPadding:8,calendarHeight:70,padding:0,accordionType:"accordion"},jeeplus.skin.contrast={topLayout:"space",barHeight:46,tabbarHeight:46,rowHeight:34,toolbarHeight:46,listItemHeight:34,inputHeight:38,buttonHeight:38,inputPadding:3,menuHeight:34,labelTopHeight:22,propertyItemHeight:28,inputSpacing:4,borderWidth:1,sliderHandleWidth:14,sliderPadding:10,sliderBorder:1,vSliderPadding:15,vSliderHeight:100,switchHeight:22,switchWidth:50,layoutMargin:{space:10,wide:10,clean:0,head:4,line:-1,toolbar:8,form:8,accordion:10},layoutPadding:{space:10,wide:0,clean:0,head:0,line:0,toolbar:4,form:17,accordion:0},tabMargin:4,tabOffset:0,tabBottomOffset:6,tabTopOffset:1,customCheckbox:!0,customRadio:!0,popupPadding:8,calendarHeight:70,padding:0,accordionType:"accordion",optionHeight:32},jeeplus.skin.set=function(e){if(jeeplus.skin.$active=jeeplus.skin[e],jeeplus.skin.$name=e,jeeplus.ui)for(var t in jeeplus.ui){var i=jeeplus.ui[t];i&&i.prototype&&i.prototype.$skin&&i.prototype.$skin(i.prototype)}},jeeplus.skin.set(window.jeeplus_skin||"flat"),jeeplus.Destruction={$init:function(){var e=this.VE={obj:this};jeeplus.destructors.push(e)},destructor:function(){var e=this.s;if(this.di&&this.editCancel(),this.callEvent&&this.callEvent("onDestruct",[]),this.destructor=function(){},this.VE.obj=null,this.getChildViews){var t=this.getChildViews();if(t)for(var i=0;i<t.length;i++)t[i].destructor();if(this.Ns)for(i=0;i<this.Ns.length;i++)this.Ns[i].destructor()}if(delete jeeplus.ui.views[e.id],e.$id){var n=this.getTopParentView();n&&n.oC&&n.oC(e.$id)}this.t=null,this.u=null,this.v=null,this.w&&(this.w.innerHTML="",this.w.t=null),this.x&&this.x.parentNode&&this.x.parentNode.removeChild(this.x),this.data&&this.data.destructor&&this.data.destructor(),this.unbind&&this.unbind(),this.data=null,this.x=this.$view=this.w=this.y=null,this.i=this.j={},jeeplus.UIManager.A==this&&(jeeplus.UIManager.A=null);var s=e.url;s&&s.$proxy&&s.release&&s.release(),this.$scope=null,this.$destructed=!0}},jeeplus.destructors=[],jeeplus.event(window,"unload",function(){jeeplus.callEvent("unload",[]),jeeplus.B=!0;for(var e=0;e<jeeplus.destructors.length;e++){var t=jeeplus.destructors[e].obj;t&&t.destructor()}for(var i in jeeplus.destructors=[],jeeplus.ui.et=jeeplus.toArray(),jeeplus.h)jeeplus.eventRemove(i)}),function(){var o={},l={},h=new RegExp("(\\r\\n|\\n)","g"),u=new RegExp('(\\")',"g"),d=new RegExp("(\\\\)","g"),t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},i=/[&<>"'`]/g,n=function(e){return t[e]||"&amp;"};jeeplus.template=function(i){if("function"==typeof i)return i;if(o[i])return o[i];if(-1!=(i=(i||"").toString()).indexOf("->")){var e=i.split("->");switch(e[0]){case"html":i=jeeplus.html.getValue(e[1]);break;case"http":i=(new jeeplus.ajax).sync().get(e[1],{uid:jeeplus.uid()}).responseText}}if(i=(i||"").toString(),jeeplus.env.strict){if(!l[i]){l[i]=[];var a=[];if(i.replace(/\{obj\.([^}?]+)\?([^:]*):([^}]*)\}/g,function(e,i,n,s,t){a.push({pos:t,str:e,fn:function(e,t){return e[i]?n:s}})}),i.replace(/\{common\.([^}\(]*)\}/g,function(e,i,t){a.push({pos:t,str:e,fn:function(e,t){return t[i]||""}})}),i.replace(/\{common\.([^\}\(]*)\(\)\}/g,function(e,i,t){a.push({pos:t,str:e,fn:function(e,t){return t[i]?t[i].apply(this,arguments):""}})}),i.replace(/\{obj\.([^:}]*)\}/g,function(e,i,t){a.push({pos:t,str:e,fn:function(e,t){return e[i]}})}),i.replace("{obj}",function(e,t,i){a.push({pos:i,str:e,fn:function(e,t){return e}})}),i.replace(/#([^#'";, ]+)#/gi,function(e,i,t){"!"==i.charAt(0)?(i=i.substr(1),a.push({pos:t,str:e,fn:function(e,t){return-1!=i.indexOf(".")&&(e=jeeplus.CodeParser.collapseNames(e)),jeeplus.template.escape(e[i])}})):a.push({pos:t,str:e,fn:function(e,t){return-1!=i.indexOf(".")&&(e=jeeplus.CodeParser.collapseNames(e)),e[i]}})}),a.sort(function(e,t){return e.pos>t.pos?1:-1}),a.length){for(var t=0,n=function(e,t,i){l[e].push(function(){return e.slice(t,i)})},s=0;s<a.length;s++){var r=a[s].pos;n(i,t,r),l[i].push(a[s].fn),t=r+a[s].str.length}n(i,t,i.length)}else l[i].push(function(){return i})}return function(){for(var e="",t=0;t<l[i].length;t++)e+=l[i][t].apply(this,arguments);return e}}i=(i=(i=(i=(i=(i=(i=(i=(i=i.replace(d,"\\\\")).replace(h,"\\n")).replace(u,'\\"')).replace(/\{obj\.([^}?]+)\?([^:]*):([^}]*)\}/g,'"+(obj.$1?"$2":"$3")+"')).replace(/\{common\.([^}\(]*)\}/g,"\"+(common.$1||'')+\"")).replace(/\{common\.([^\}\(]*)\(\)\}/g,'"+(common.$1?common.$1.apply(this, arguments):"")+"')).replace(/\{obj\.([^}]*)\}/g,'"+(obj.$1)+"')).replace("{obj}",'"+obj+"')).replace(/#([^#'";, ]+)#/gi,function(e,t){return"!"==t.charAt(0)?'"+jeeplus.template.escape(obj.'+t.substr(1)+')+"':'"+(obj.'+t+')+"'});try{o[i]=Function("obj","common",'return "'+i+'";')}catch(e){}return o[i]},jeeplus.template.escape=function(e){return e===jeeplus.undefined||null===e?"":(e.toString()||"").replace(i,n)},jeeplus.template.empty=function(){return""},jeeplus.template.bind=function(e){return jeeplus.bind(jeeplus.template(e),this)},jeeplus.type=function(e,t){if(e.$protoWait)return e.d||(e.d=[]),void e.d.push(t);"function"==typeof e&&(e=e.prototype),e.types||(e.types={default:e.type},e.type.name="default");var i=t.name,n=e.type;for(var s in i&&(n=e.types[i]=jeeplus.clone(t.baseType?e.types[t.baseType]:e.type)),t)0===s.indexOf("template")?n[s]=jeeplus.template(t[s]):n[s]=t[s];return i}}(),jeeplus.Settings={$init:function(){this.s=this.config={}},define:function(e,t){return"object"==typeof e?this.C(e):this.D(e,t)},D:function(e,t){var i=this[e+"_setter"];return this.s[e]=i?i.call(this,t,e):t},C:function(e){if(e)for(var t in e)this.D(t,e[t])},e:function(e,t){var i={};t&&(i=jeeplus.extend(i,t)),"object"!=typeof e||e.tagName||jeeplus.extend(i,e,!0),this.C(i)},E:function(e,t){for(var i in t)switch(typeof e[i]){case"object":e[i]=this.E(e[i]||{},t[i]);break;case"undefined":e[i]=t[i]}return e}},jeeplus.proxy=function(e,t,i){var n=jeeplus.copy(jeeplus.proxy[e]);return n.source=t,i&&jeeplus.extend(n,i,!0),n.init&&n.init(),n},jeeplus.proxy.$parse=function(e){if("string"==typeof e&&-1!=e.indexOf("->")){var t=e.split("->");return jeeplus.proxy(t[0],t[1])}return e},jeeplus.proxy.post={$proxy:!0,load:function(e,t,i){i=jeeplus.extend(i||{},this.params||{},!0),jeeplus.ajax().bind(e).post(this.source,i,t)}},jeeplus.proxy.sync={$proxy:!0,load:function(e,t){jeeplus.ajax().sync().bind(e).get(this.source,null,t)}},jeeplus.proxy.connector={$proxy:!0,connectorName:"!nativeeditor_status",load:function(e,t){jeeplus.ajax(this.source,t,e)},saveAll:function(e,t,i,n){for(var s=this.source,a={},r=[],o=0;o<t.length;o++){var l=t[o];for(var h in r.push(l.id),l.data)0!==h.indexOf("$")&&(a[l.id+"_"+h]=l.data[h]);a[l.id+"_"+this.connectorName]=l.operation}a.ids=r.join(","),a.jeeplus_security=jeeplus.securityKey,s+=-1==s.indexOf("?")?"?":"&",s+="editing=true",jeeplus.ajax().post(s,a,n)},result:function(e,t,i,n,s,a){if(!(s=s.xml()))return i.yr(null,n,s,a);var r=s.data.action;r.length||(r=[r]);for(var o=[],l=0;l<r.length;l++){var h=r[l];o.push(h),h.status=h.type,h.id=h.sid,h.newid=h.tid,i.processResult(h,h,{text:n,data:s,loader:a})}return o}},jeeplus.proxy.rest={$proxy:!0,load:function(e,t){jeeplus.ajax(this.source,t,e)},save:function(e,t,i,n){return jeeplus.proxy.rest.dC.call(this,e,t,i,n,jeeplus.ajax())},dC:function(e,t,i,n,s){var a=this.source,r="",o=a.indexOf("?");-1!==o&&(r=a.substr(o),a=a.substr(0,o)),a+="/"==a.charAt(a.length-1)?"":"/";var l=t.operation,h=t.data;"insert"==l&&delete h.id,"update"==l?s.put(a+h.id+r,h,n):"delete"==l?s.del(a+h.id+r,h,n):s.post(a+r,h,n)}},jeeplus.proxy.json={$proxy:!0,load:function(e,t){jeeplus.ajax(this.source,t,e)},save:function(e,t,i,n){var s=jeeplus.ajax().headers({"Content-Type":"application/json"});return jeeplus.proxy.rest.dC.call(this,e,t,i,n,s)}},jeeplus.proxy.faye={$proxy:!0,init:function(){this.clientId=this.clientId||jeeplus.uid()},load:function(i){var e=this.clientId;this.client.subscribe(this.source,function(t){t.clientId!=e&&jeeplus.dp(i).ignore(function(){if("delete"==t.operation)i.remove(t.data.id);else if("insert"==t.operation)i.add(t.data);else if("update"==t.operation){var e=i.getItem(t.data.id);e&&(jeeplus.extend(e,t.data,!0),i.refresh(e.id))}})})},save:function(e,t,i,n){t.clientId=this.clientId,this.client.publish(this.source,t)}},jeeplus.proxy.indexdb={$proxy:!0,create:function(e,r,t,i){this.source=e+"/",this.F(i,t,function(e){var t=e.target.result;for(var i in r)for(var n=r[i],s=t.createObjectStore(i,{keyPath:"id",autoIncrement:!0}),a=0;a<n.length;a++)s.put(n[a])})},F:function(t,e,i){if(-1!=this.source.indexOf("/")){var n=this.source.split("/");this.source=n[1],e=e||n[2];var s,a=window.indexedDB||window.webkitIndexedDB||window.mozIndexedDB;s=e?a.open(n[0],e):a.open(n[0]),i&&(s.onupgradeneeded=i),s.onerror=function(){},s.onblocked=function(){},s.onsuccess=jeeplus.bind(function(e){this.db=e.target.result,t&&t.call(this)},this)}else this.db?t.call(this):jeeplus.delay(this.F,this,[t],50)},load:function(n,s){this.F(function(){var e=this.db.transaction(this.source).objectStore(this.source),i=[];e.openCursor().onsuccess=function(e){var t=e.target.result;t?(i.push(t.value),t.continue()):(n.parse(i),jeeplus.ajax.$callback(n,s,"[]",i))}})},save:function(e,a,r,t){this.F(function(){var e,i=a.operation,t=a.data,n=a.id,s=this.db.transaction([this.source],"readwrite").objectStore(this.source);"delete"==i?e=s.delete(n):"update"==i?e=s.put(t):"insert"==i&&(delete t.id,e=s.add(t)),e.onsuccess=function(e){var t={status:i,id:a.id};"insert"==i&&(t.newid=e.target.result),r.processResult(t,t)}})}},jeeplus.proxy.binary={$proxy:!0,load:function(i,n){var s=this.source.split("@"),a=s[0].split(".").pop();return jeeplus.ajax().response("arraybuffer").get(s[0]).then(function(e){var t={ext:a,dataurl:s[1]};jeeplus.ajax.$callback(i,n,"",{data:e,options:t},-1)})}},jeeplus.ajax=function(e,t,i){return 0!==arguments.length?(new jeeplus.ajax).get(e,t,i):this.getXHR?this:new jeeplus.ajax},jeeplus.ajax.count=0,jeeplus.ajax.prototype={master:null,getXHR:function(){return new XMLHttpRequest},stringify:function(e){return jeeplus.stringify(e)},G:function(e,t,s,i){var a;t&&(jeeplus.isArray(t)||"function"==typeof(t.success||t.error||t))&&(a=s,s=t,t=null);var n=jeeplus.promise.defer(),r=this.getXHR();jeeplus.isArray(s)||(s=[s]),s.push({success:function(e,t){n.resolve(t)},error:function(e,t){n.reject(r)}});var o=this.I||{};if(jeeplus.callEvent("onBeforeAjax",[i,e,t,r,o,null,n])){var l=!1;if("GET"!==i){var h=!1;for(var u in o)"content-type"==u.toString().toLowerCase()&&(h=!0,"application/json"==o[u]&&(l=!0));h||(o["Content-Type"]="application/x-www-form-urlencoded")}if("object"==typeof t&&!(window.FormData&&t instanceof window.FormData))if(l)t=this.stringify(t);else{var d=[];for(var c in t){var p=t[c];(null===p||p===jeeplus.undefined)&&(p=""),"object"==typeof p&&(p=this.stringify(p)),d.push(c+"="+encodeURIComponent(p))}t=d.join("&")}t&&"GET"===i&&(e=e+(-1!=e.indexOf("?")?"&":"?")+t,t=null),r.open(i,e,!this.H);var f=this.Tw;for(var u in f&&(r.responseType=f),o)r.setRequestHeader(u,o[u]);var m=this;return this.master=this.master||a,r.onreadystatechange=function(){if(!r.readyState||4==r.readyState){if(jeeplus.ajax.count++,s&&m&&!r.aborted){if(-1!=jeeplus.ly.find(r))return jeeplus.ly.remove(r);var e,t,i=m.master||m,n=400<=r.status||0===r.status;"blob"==r.responseType||"arraybuffer"==r.responseType?(e="",t=r.response):(e=r.responseText||"",t=m.J(r)),jeeplus.ajax.$callback(i,s,e,t,r,n)}m&&(m.master=null),s=m=a=null}},this.qh&&(r.timeout=this.qh),this.H?r.send(t||null):setTimeout(function(){r.aborted||(-1!=jeeplus.ly.find(r)?jeeplus.ly.remove(r):r.send(t||null))},1),this.master&&this.master.Ve&&this.master.Ve.push(r),this.H?r:n}},J:function(e){return{xml:function(){try{return jeeplus.DataDriver.xml.tagToObject(jeeplus.DataDriver.xml.toObject(e.responseText,this))}catch(e){}},rawxml:function(){return window.XPathResult?e.responseXML:jeeplus.DataDriver.xml.fromString(e.responseText)},text:function(){return e.responseText},json:function(){return jeeplus.DataDriver.json.toObject(e.responseText,!1)}}},get:function(e,t,i){return this.G(e,t,i,"GET")},post:function(e,t,i){return this.G(e,t,i,"POST")},put:function(e,t,i){return this.G(e,t,i,"PUT")},del:function(e,t,i){return this.G(e,t,i,"DELETE")},patch:function(e,t,i){return this.G(e,t,i,"PATCH")},sync:function(){return this.H=!0,this},timeout:function(e){return this.qh=e,this},response:function(e){return this.Tw=e,this},header:function(e){return this.I=e,this},headers:function(e){return this.I=jeeplus.extend(this.I||{},e),this},bind:function(e){return this.master=e,this}},jeeplus.ajax.$callback=function(e,t,i,n,s,a){if(!e.$destructed){if(-1===s&&n&&"function"==typeof n.json&&(n=n.json()),a&&jeeplus.callEvent("onAjaxError",[s]),jeeplus.isArray(t)||(t=[t]),!a)for(var r=0;r<t.length;r++)if(t[r]){var o=t[r].before;o&&o.call(e,i,n,s)}for(r=0;r<t.length;r++)if(t[r]){var l=t[r].success||t[r];a&&(l=t[r].error),l&&l.call&&l.call(e,i,n,s)}}},jeeplus.send=function(e,t,i,n){var s=jeeplus.html.create("FORM",{target:n||"_self",action:e,method:i||"POST"},"");for(var a in t){var r=jeeplus.html.create("INPUT",{type:"hidden",name:a,value:t[a]},"");s.appendChild(r)}s.style.display="none",document.body.appendChild(s),s.submit(),document.body.removeChild(s)},jeeplus.AtomDataLoader={$init:function(e){this.data={},this.waitData=jeeplus.promise.defer(),e&&(this.s.datatype=e.datatype||"json"),this.$ready.push(this.K)},K:function(){this.L=!0,this.s.url&&this.url_setter(this.s.url),this.s.data&&this.data_setter(this.s.data)},url_setter:function(e){return e=jeeplus.proxy.$parse(e),this.L&&this.load(e,this.s.datatype),e},data_setter:function(e){return this.L?(this.parse(e,this.s.datatype),!0):e},load:function(e,t){var i=arguments[2]||null;if(!this.callEvent("onBeforeLoad",[]))return jeeplus.promise.reject();"string"==typeof t?(this.data.driver=jeeplus.DataDriver[t],t=arguments[2]):this.data.driver||(this.data.driver=jeeplus.DataDriver.json);var n=[{success:this.M,error:this.N}];return t&&(jeeplus.isArray(t)?n.push.apply(n,t):n.push(t)),(e=jeeplus.proxy.$parse(e)).$proxy&&e.load?e.load(this,n,i):"function"==typeof e?e(i).then(jeeplus.bind(function(e){jeeplus.ajax.$callback(this,n,"",e,-1)},this),jeeplus.bind(function(e){jeeplus.ajax.$callback(this,n,"",null,e,!0)},this)):jeeplus.ajax(e,n,this)},parse:function(e,t){return e&&e.then&&"function"==typeof e.then?e.then(jeeplus.bind(function(e){e&&"function"==typeof e.json&&(e=e.json()),this.parse(e,t)},this)):e&&e.sync&&this.sync?this.UC(e):this.callEvent("onBeforeLoad",[])?(this.data.driver=jeeplus.DataDriver[t||"json"],void this.M(e,null)):jeeplus.promise.reject()},UC:function(e){this.data&&this.data.attachEvent("onSyncApply",jeeplus.bind(function(){this.ef&&this.ef()},this)),this.sync(e)},df:function(e){var t,i,n=this.data.driver;t=(i=n.getRecords(e)[0])?n.getDetails(i):{},this.setValues?this.setValues(t):this.data=t},tB:function(e,t,i,n){e?this.$onLoad&&this.$onLoad(e,this.data.driver)||(this.data&&this.data.df?this.data.df(e):this.df(e)):this.N(t,i,n),this.ef&&this.ef(),this.callEvent("onAfterLoad",[]),this.waitData.resolve()},M:function(e,t,i){var n,s=this.data.driver;-1===i?n=s.toObject(t):(this.Ve&&this.Ve.remove(i),n=s.toObject(e,t)),n&&n.then?n.then&&"function"==typeof n.then&&n.then(jeeplus.bind(this.tB,this)):this.tB(n)},N:function(e,t,i){this.callEvent("onAfterLoad",[]),this.callEvent("onLoadError",arguments),jeeplus.callEvent("onLoadError",[e,t,i,this])},O:function(e){if(!this.s.dataFeed||this.P||!e)return!0;var t=this.s.dataFeed;return"function"==typeof t?t.call(this,e.id||e,e):(t=t+(-1==t.indexOf("?")?"?":"&")+"action=get&id="+encodeURIComponent(e.id||e),this.callEvent("onBeforeLoad",[])&&jeeplus.ajax(t,function(e,t,i){this.P=!0;var n=jeeplus.DataDriver.json,s=n.toObject(e,t);s?this.setValues(n.getDetails(n.getRecords(s)[0])):this.N(e,t,i),this.P=!1,this.callEvent("onAfterLoad",[])},this),!1)}},jeeplus.DataDriver={},jeeplus.DataDriver.json={toObject:function(e){if(!e)return null;if("string"==typeof e)try{if(this.parseDates){var i=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(.\d{1-3})?Z/;e=JSON.parse(e,function(e,t){return"string"==typeof t&&i.test(t)?new Date(t):t})}else e=JSON.parse(e)}catch(e){return null}return e},getRecords:function(e){return e&&e.data&&(e=e.data),e&&!jeeplus.isArray(e)?[e]:e},getDetails:function(e){return"string"==typeof e?{id:e||jeeplus.uid(),value:e}:e},getOptions:function(e){return e.collections},getInfo:function(e){return{size:e.total_count||0,from:e.pos,parent:e.parent||0,config:e.config,key:e.jeeplus_security}},child:"data",parseDates:!1},jeeplus.DataDriver.html={toObject:function(e){if("string"==typeof e){var t=null;return-1==e.indexOf("<")&&(t=jeeplus.toNode(e)),t||((t=document.createElement("DIV")).innerHTML=e),t.firstChild}return e},getRecords:function(e){return e.getElementsByTagName(this.tag)},getDetails:function(e){return jeeplus.DataDriver.xml.tagToObject(e)},getOptions:function(){return!1},getInfo:function(e){return{size:0}},tag:"LI"},jeeplus.DataDriver.jsarray={toObject:function(e){return"string"==typeof e?JSON.parse(e):e},getRecords:function(e){return e&&e.data&&(e=e.data),e},getDetails:function(e){for(var t={},i=0;i<e.length;i++)t["data"+i]=e[i];return null!==this.idColumn&&(t.id=e[this.idColumn]),t},getOptions:function(){return!1},getInfo:function(e){return{size:0}},idColumn:null},jeeplus.DataDriver.csv={toObject:function(e){return e},getRecords:function(e){return e.split(this.row)},getDetails:function(e){e=this.stringToArray(e);for(var t={},i=0;i<e.length;i++)t["data"+i]=e[i];return null!==this.idColumn&&(t.id=e[this.idColumn]),t},getOptions:function(){return!1},getInfo:function(e){return{size:0}},stringToArray:function(e){e=e.split(this.cell);for(var t=0;t<e.length;t++)e[t]=e[t].replace(/^[ \t\n\r]*(\"|)/g,"").replace(/(\"|)[ \t\n\r]*$/g,"");return e},idColumn:null,row:"\n",cell:","},jeeplus.DataDriver.xml={V:function(e){return e&&e.documentElement?e.getElementsByTagName("parsererror").length?null:e:null},toObject:function(e,t){var i=t?t.rawxml?t.rawxml():t:null;return this.V(i)?i:(i="string"==typeof e?this.fromString(e.replace(/^[\s]+/,"")):e,this.V(i)?i:null)},getRecords:function(e){return this.xpath(e,this.records)},records:"/*/item",child:"item",config:"/*/config",getDetails:function(e){return this.tagToObject(e,{})},getOptions:function(){return!1},getInfo:function(e){var t=this.xpath(e,this.config);return t=t.length?this.assignTypes(this.tagToObject(t[0],{})):null,{size:e.documentElement.getAttribute("total_count")||0,from:e.documentElement.getAttribute("pos"),parent:e.documentElement.getAttribute("parent")||0,config:t,key:e.documentElement.getAttribute("jeeplus_security")||null}},xpath:function(e,t){if(window.XPathResult){var i=e;-1==e.nodeName.indexOf("document")&&(e=e.ownerDocument);for(var n=[],s=e.evaluate(t,i,null,XPathResult.ANY_TYPE,null),a=s.iterateNext();a;)n.push(a),a=s.iterateNext();return n}var r=!0;try{void 0===e.selectNodes&&(r=!1)}catch(e){}if(r)return e.selectNodes(t);var o=t.split("/").pop();return e.getElementsByTagName(o)},assignTypes:function(e){for(var t in e){var i=e[t];if("object"==typeof i)this.assignTypes(i);else if("string"==typeof i){if(""===i)continue;"true"==i?e[t]=!0:"false"==i?e[t]=!1:i==1*i&&(e[t]=1*e[t])}}return e},tagToObject:function(e,t){var i=0;if(1==e.nodeType&&e.getAttribute("stack")){t=[];for(var n=e.childNodes,s=0;s<n.length;s++)1==n[s].nodeType&&t.push(this.tagToObject(n[s],{}))}else{t=t||{};var a=e.attributes;if(a&&a.length)for(s=0;s<a.length;s++)t[a[s].name]=a[s].value,i=1;for(n=e.childNodes,s=0;s<n.length;s++)if(1==n[s].nodeType){var r=n[s].tagName;t[r]?("function"!=typeof t[r].push&&(t[r]=[t[r]]),t[r].push(this.tagToObject(n[s],{}))):t[r]=this.tagToObject(n[s],{}),i=2}if(!i)return this.nodeValue(e);i<2&&(t.value=t.value||this.nodeValue(e))}return t},nodeValue:function(e){return e.firstChild?e.firstChild.wholeText||e.firstChild.data:""},fromString:function(e){try{if(window.DOMParser)return(new DOMParser).parseFromString(e,"text/xml");if(window.ActiveXObject){var t=new ActiveXObject("Microsoft.xmlDOM");return t.loadXML(e),t}}catch(e){return null}}},jeeplus.BaseBind={bind:function(e,t,i){this.attachEvent||jeeplus.extend(this,jeeplus.EventSystem),"string"==typeof e&&(e=jeeplus.$$(e)),e.W&&e.W(),this.W&&this.W(),e.getBindData||jeeplus.extend(e,jeeplus.BindSource),this.X(),e.addBind(this.s.id,t,i),this.Os=e.s.id;var n=this.s.id;this.Ps=this.attachEvent(this.touchable?"onAfterRender":"onBindRequest",function(){return e.getBindData(n)}),this.refresh&&this.isVisible(this.s.id)&&this.refresh()},unbind:function(){if(this.Os){var e=jeeplus.$$(this.Os);e&&e.removeBind(this.s.id),this.detachEvent(this.Ps),this.Os=null}},X:function(){var e=this.s;if(this.filter){var t=e.id;this.data.Y=jeeplus.bind(function(){jeeplus.$$(this.Os).Z[t]=!1},this)}var i=this.render;this.render=function(){if(!this.$){this.$=!0;var e=this.callEvent("onBindRequest");return this.$=!1,i.apply(this,!1===e?arguments:[])}},(this.getValue||this.getValues)&&(this.save=function(e){var t=jeeplus.$$(this.Os);if(e)t.setBindData(e);else{if(this.validate&&!this.validate())return!1;var i=this.getValue?this.getValue:this.getValues();t.setBindData(i,this.s.id),this.setDirty&&this.setDirty(!1)}}),this.X=function(){}}},jeeplus.BindSource={$init:function(){this.bb={},this.Z={},this.cb={},this.db(this)},saveBatch:function(e){this.eb=!0,e.call(this),this.eb=!1,this.fb()},setBindData:function(e,t){if(t&&(this.cb[t]=!0),this.setValue)this.setValue(e);else if(this.setValues)this.setValues(e);else{var i=this.getCursor();i?this.updateItem(i,e):this.add(e)}this.callEvent("onBindUpdate",[e,t]),this.save&&this.save(),t&&(this.cb[t]=!1)},getBindData:function(e,t){if(this.Z[e])return!1;var i=jeeplus.$$(e);i.isVisible(i.s.id)&&(this.Z[e]=!0,this.gb(i,this.bb[e][0],this.bb[e][1]),t&&i.filter&&i.refresh())},addBind:function(e,t,i){this.bb[e]=[t,i]},removeBind:function(e){delete this.bb[e],delete this.Z[e],delete this.cb[e]},db:function(e){e.filter?jeeplus.extend(this,jeeplus.CollectionBind):e.setValue?jeeplus.extend(this,jeeplus.ValueBind):jeeplus.extend(this,jeeplus.RecordBind)},fb:function(){if(!this.eb)for(var e in this.bb)this.cb[e]||(this.Z[e]=!1,this.getBindData(e,!0))},hb:function(e,t,i){e.setValue?e.setValue(i&&t?i[t]:i):e.filter?e.data.silent(function(){this.filter(t,i)}):!i&&e.clear?e.clear():e.O(i)&&e.setValues(jeeplus.clone(i)),e.callEvent("onBindApply",[i,t,this])}},jeeplus.DataValue=jeeplus.proto({name:"DataValue",isVisible:function(){return!0},$init:function(e){(!e||jeeplus.isUndefined(e.value))&&(this.data=e||"");var t=e&&e.id?e.id:jeeplus.uid();this.s={id:t},jeeplus.ui.views[t]=this},setValue:function(e){this.data=e,this.callEvent("onChange",[e])},getValue:function(){return this.data},refresh:function(){this.callEvent("onBindRequest")}},jeeplus.EventSystem,jeeplus.BaseBind),jeeplus.DataRecord=jeeplus.proto({name:"DataRecord",isVisible:function(){return!0},$init:function(e){this.data=e||{};var t=e&&e.id?e.id:jeeplus.uid();this.s={id:t},jeeplus.ui.views[t]=this},getValues:function(){return this.data},setValues:function(e,t){this.data=t?jeeplus.extend(this.data,e,!0):e,this.callEvent("onChange",[e])},refresh:function(){this.callEvent("onBindRequest")}},jeeplus.EventSystem,jeeplus.BaseBind,jeeplus.AtomDataLoader,jeeplus.Settings),jeeplus.ValueBind={$init:function(){this.attachEvent("onChange",this.fb)},gb:function(e,t,i){t=t||"value";var n=this.getValue()||"";if(i&&(n=i(n)),e.setValue)e.setValue(n);else if(e.filter)e.data.silent(function(){this.filter(t,n)});else{var s={};s[t]=n,e.O(n)&&e.setValues(s)}e.callEvent("onBindApply",[n,t,this])}},jeeplus.RecordBind={$init:function(){this.attachEvent("onChange",this.fb)},gb:function(e,t,i){var n=this.getValues()||null;i&&(n=i(n)),this.hb(e,t,n)}},jeeplus.CollectionBind={$init:function(){this.ib=null,this.attachEvent("onSelectChange",function(e){var t=this.getSelectedId();this.setCursor(t?t.id||t:null)}),this.attachEvent("onAfterCursorChange",this.fb),this.attachEvent("onAfterDelete",function(e){e==this.getCursor()&&this.setCursor(null)}),this.data.attachEvent("onStoreUpdated",jeeplus.bind(function(e,t,i){e&&e==this.getCursor()&&"paint"!=i&&"delete"!=i&&this.fb()},this)),this.data.attachEvent("onClearAll",jeeplus.bind(function(){this.ib=null},this)),this.data.attachEvent("onIdChange",jeeplus.bind(function(e,t){this.ib==e&&(this.ib=t,this.fb())},this))},refreshCursor:function(){this.ib&&this.callEvent("onAfterCursorChange",[this.ib])},setCursor:function(e){e==this.ib||null!==e&&!this.getItem(e)||(this.callEvent("onBeforeCursorChange",[this.ib]),this.ib=e,this.callEvent("onAfterCursorChange",[e]))},getCursor:function(){return this.ib},gb:function(e,t,i){if("$level"==t&&this.data.getBranch)return(e.data||e).importData(this.data.getBranch(this.getCursor()));var n=this.getItem(this.getCursor())||this.s.defaultData||null;"$data"==t?("function"==typeof i?i.call(e,n,this):e.data.importData(n?n[i]:[]),e.callEvent("onBindApply",[n,t,this])):(i&&(n=i(n)),this.hb(e,t,n))}},jeeplus.AtomRender={jb:function(e){return e.$empty?"":this.s.template(e,this)},render:function(){var e=this.s;return!!this.isVisible(e.id)&&((!this.callEvent||this.callEvent("onBeforeRender",[this.data]))&&(this.data&&!e.content&&(this.y.innerHTML="",this.y.innerHTML=this.jb(this.data)),this.callEvent&&this.callEvent("onAfterRender",[])),!0)},sync:function(t){this.kb=!1,"DataStore"!=t.name&&(t.data&&"DataStore"==t.name?t=t.data:this.kb=!0),this.kb?t.bind("change",jeeplus.bind(function(e){e.id==this.data.id&&(this.data=e.attributes,this.refresh())},this)):t.attachEvent("onStoreUpdated",jeeplus.bind(function(e){e&&e!=this.data.id||(this.data=t.pull[e],this.refresh())},this))},template_setter:jeeplus.template},jeeplus.SingleRender=jeeplus.proto({template_setter:function(e){this.type.template=jeeplus.template(e)},jb:function(e){var t=this.type;return(t.templateStart?t.templateStart(e,t):"")+t.template(e,t)+(t.templateEnd?t.templateEnd(e,t):"")},customize:function(e){jeeplus.type(this,e)}},jeeplus.AtomRender),jeeplus.UIManager={A:null,lb:{},mb:0,XE:0,lH:0,nb:{enter:13,tab:9,esc:27,escape:27,up:38,down:40,left:37,right:39,pgdown:34,pagedown:34,pgup:33,pageup:33,end:35,home:36,insert:45,delete:46,backspace:8,space:32,meta:91,win:91,mac:91,multiply:106,add:107,subtract:109,decimal:110,divide:111,scrollock:145,pausebreak:19,numlock:144,"5numlocked":12,shift:16,capslock:20},wD:{input:1,button:1,textarea:1,select:1},ob:function(){jeeplus.event(document.body,"click",jeeplus.bind(this.pb,this)),jeeplus.event(document,"keydown",jeeplus.bind(this.qb,this)),jeeplus.UE(document.body,"mousedown",jeeplus.bind(function(){this.lH=new Date},this)),document.body.addEventListener&&jeeplus.event(document.body,"focus",this.rb,{capture:!0,bind:this}),jeeplus.destructors.push({obj:this})},destructor:function(){jeeplus.UIManager.A=null},getFocus:function(){return this.A},sb:function(e){this.tb=this.tb||e.s.id},setFocus:function(e,t){return(e=jeeplus.$$(e))&&!e.$view&&(e=null),this.mb=jeeplus.mb=new Date,this.A===e||(this.A&&this.A.callEvent&&this.A.callEvent("onBlur",[this.A]),e&&e.callEvent&&e.callEvent("onFocus",[e,this.A]),jeeplus.callEvent("onFocusChange",[e,this.A]),this.A&&this.A.blur&&!t&&this.A.blur(),(this.A=e)&&e.focus&&!t&&e.focus()),!0},applyChanges:function(e){var t=this.getFocus();t&&t!=e&&t.Xy&&t.Xy(e)},hasFocus:function(e){return e===this.A},ub:function(e,t){var i=jeeplus.html.locate(e,"view_id")||this.tb;return i=jeeplus.$$(i),this.tb=null,jeeplus.mb=new Date,i!=this.A?(t||(this.tb=null),i?(i=jeeplus.$$(i),this.canFocus(i)&&(i.getNode&&i.getNode(e),this.setFocus(i))):t||this.setFocus(null),!0):void 0},pb:function(e){return new Date-this.mb<100?(this.tb=null,!1):this.ub(e)},rb:function(e){return!!this.wD[e.target.nodeName.toLowerCase()]&&this.ub(e,!0)},canFocus:function(e){return e.isVisible()&&e.isEnabled()},vb:function(e){var t=this.getFocus();return!(e&&!this.wb(e,t))&&void(this.xb("getPrev",e)||(this.A=null))},Xz:{},wb:function(e,t){if(!e)return!1;if(!t)return!1;for(;t;){if(t===e)return!0;t=t.getParentView()}return!1},yb:function(){this&&this.callEvent&&this.callEvent("onTimedKeyPress",[])},BA:function(e){return e<112&&105<e},qb:function(e){var t=e.which||e.keyCode;95<t&&t<106&&(t-=48),t=this.Xz[t]||t;var i=e.ctrlKey,n=e.shiftKey,s=e.altKey,a=e.metaKey,r=this.zb(t,i,n,s,a),o=this.getFocus();o&&o.callEvent&&(!1===o.callEvent("onKeyPress",[t,e])&&jeeplus.html.preventEvent(e),o.hasEvent("onTimedKeyPress")&&(clearTimeout(o.Ab),o.Ab=jeeplus.delay(this.yb,o,[],o.s.keyPressTimeout||250))),this.BA(t)||(r=this.zb(String.fromCharCode(t),i,n,s,a));var l=!i&&!s&&!a&&9!=t&&27!=t&&13!=t;return!1===this.Bb(r,l,e)?(jeeplus.html.preventEvent(e),!1):void 0},xb:function(e){if(!this.getFocus())return null;e=e||"getNext";for(var t=this.getFocus(),i=t,n=jeeplus.uid();;){if((t=this[e](t))&&this.canFocus(t))return this.setFocus(t);if(t===i||t.$fmarker==n)return null;t.$fmarker=n}},WE:function(e,t){var i=!t.shiftKey;if(jeeplus.UIManager.XE=new Date,e&&e.Gb&&!e.Gb(i,t))return!1;if(e&&e.Eb){if(e.editNext)return e.editNext(i);if(e.editStop)return e.editStop(),!0}else jeeplus.delay(function(){jeeplus.UIManager.setFocus(jeeplus.$$(document.activeElement),!0)},1)},getTop:function(e){for(var t,i=jeeplus.$$(e);i&&(t=i.getParentView());)i=t;return i},getNext:function(e,t){var i=e.getChildViews();if(i.length&&!t)return i[0];var n=e.getParentView();if(!n)return e;var s=n.getChildViews();if(s.length)for(var a=jeeplus.PowerArray.find.call(s,e)+1;a<s.length;){if(this.canFocus(s[a]))return s[a];a++}return this.getNext(n,!0)},getPrev:function(e,t){var i=e.getChildViews();if(i.length&&t)return this.getPrev(i[i.length-1],!0);if(t)return e;var n=e.getParentView();if(!n)return this.getPrev(e,!0);var s=n.getChildViews();if(s)for(var a=jeeplus.PowerArray.find.call(s,e)-1;0<=a;){if(this.canFocus(s[a]))return this.getPrev(s[a],!0);a--}return n},addHotKey:function(e,t,i){var n=this.Cb(e);i||(i=null),n.handler=t,n.view=i;var s=this.zb(n.letter,n.ctrl,n.shift,n.alt,n.meta);return this.lb[s]||(this.lb[s]=[]),this.lb[s].push(n),e},removeHotKey:function(e,t,i){var n=this.Cb(e),s=this.zb(n.letter,n.ctrl,n.shift,n.alt,n.meta);if(t||i){var a=this.lb[s];if(a){for(var r=a.length-1;0<=r;r--)i&&a[r].view!==i||t&&a[r].handler!==t||a.splice(r,1);a.length||delete this.lb[s]}}else delete this.lb[s]},zb:function(e,t,i,n,s){return e+"_"+["",t?"1":"0",i?"1":"0",n?"1":"0",s?"1":"0"].join("")},Bb:function(e,t,i){var n=this.getFocus();return this.lb[e]?this.Db(this.lb[e],n,i):!t||!this.lb.ANY_0000||this.Db(this.lb.ANY_0000,n,i)},Db:function(e,t,i){for(var n=0;n<e.length;n++){var s=e[n];if(null===s.view||t===s.view||"string"==typeof s.view&&t&&t.name===s.view){var a=s.handler(t,i);if(!!a===a)return a}}return!0},Cb:function(e){var t,i,n,s,a=this.nb,r=e.toLowerCase().split(/[\+\-_]/);t=i=n=s=0;for(var o="",l=0;l<r.length;l++)if("ctrl"===r[l])t=1;else if("shift"===r[l])i=1;else if("alt"===r[l])n=1;else if("command"===r[l])s=1;else if(a[r[l]]){var h=a[r[l]];o=this.BA(h)?h.toString():String.fromCharCode(h)}else o=r[l];return{letter:o.toUpperCase(),ctrl:t,shift:i,alt:n,meta:s}}},jeeplus.ready(function(){jeeplus.UIManager.ob(),jeeplus.UIManager.addHotKey("enter",function(e,t){if(e&&e.callEvent&&e.callEvent("onEnter",[t]),e&&e.editStop&&e.Eb)return e.editStop(),!0;if(e&&e.touchable){var i=e.getFormView();i&&!e.Dt&&i.callEvent("onSubmit",[e,t])}}),jeeplus.UIManager.addHotKey("esc",function(e){if(e){if(e.editCancel&&e.Eb)return e.editCancel(),!0;var t=e.getTopParentView();t&&t.setPosition&&t.Fb()}}),jeeplus.UIManager.addHotKey("shift+tab",jeeplus.UIManager.WE),jeeplus.UIManager.addHotKey("tab",jeeplus.UIManager.WE)}),jeeplus.IdSpace={$init:function(){this.Hb={},this.Ib={},this.getTopParentView=this.CD=jeeplus.bind(function(){return this},this),this.Jb(),this.$ready.push(this.Kb)},$$:function(e){return this.Hb[e]},innerId:function(e){return this.Ib[e]},Jb:function(e){this.Lb=jeeplus.Mb,jeeplus.Mb=this},Kb:function(e){for(var t in this.Hb){var i=this.Hb[t];this.callEvent&&i.mapEvent&&!i.k.onitemclick&&i.mapEvent({onitemclick:this}),i.getTopParentView=this.CD}jeeplus.Mb=this.Lb,this.Lb=0},oC:function(e){delete this.Hb[e]},ui:function(){this.Jb();var e=jeeplus.ui.apply(jeeplus,arguments);return this.Kb(),e}},function(){var n=[],l=jeeplus.ui;if(!jeeplus.ui){l=jeeplus.ui=function(e,t,i){jeeplus.Nb=!0;var n=jeeplus.isArray(e),s=jeeplus.toNode(e.container||t||document.body);s.s&&(i=u(s,n,i));var a,r=s==document.body;if(e.s||s&&n?a=e:(s&&r&&(e.$topView=!0),e.Ob||(e.Ob={}),a=l.A(e)),!r||a.setPosition||a.$apiOnly||jeeplus.ui.Pb(),a.s&&a.s.ft&&!s.$view)a.s.gt=s;else if(!a.$apiOnly)if(s.appendChild)h(s,a,e);else if(s.destructor){var o=s;if(i||0===i||jeeplus.isArray(a)||(s=(i=s).getParentView()),s&&s.Qb)a.getParentView&&a.getParentView()&&a.getParentView().Rb(a),s.Qb(a,i);else{t=o.$view.parentNode;o.destructor(),h(t,a,e)}}return jeeplus.Nb=!1,a};var h=function(e,t,i){e.appendChild(t.x),((!t.setPosition||t.s.fullscreen)&&e==document.body||t.s.position)&&n.push(t.VE),i.skipResize||t.adjust()},u=function(e,t,i){var n=[e];if(t)n=e.getChildViews();else if(e.gd)n=[e.gd];else{if("number"==typeof i)return i;if(i)return n=[jeeplus.$$(i)],s(n),n[0].config.id}return s(n),i},s=function(e){for(var t=e.length-1;0<=t;t--)delete jeeplus.ui.views[e[t].config.id],e[t].config.id="x"+jeeplus.uid(),jeeplus.ui.views[e[t].config.id]=e[t],s(e[t].getChildViews())}}jeeplus.ui.animate=function(e,t,i){var n=jeeplus.$$(t);if(n){var s=i||{type:"slide",direction:"left"},a=n.x.cloneNode(!0),r=jeeplus.ui(e,t);r.x.parentNode.appendChild(a);var o=jeeplus.animate.formLine(r.x,a,s);return s.callback=function(){jeeplus.animate.breakLine(o)},jeeplus.animate(o,s),r}},jeeplus.ui.animateView=function(t,e,i){if(t=jeeplus.$$(t)){i=i||{type:"slide",direction:"left"};for(var n=function(e){var t=e.x,i=t.className,n=t.innerHTML;return"<div class='"+i+"' style='width:"+t.offsetWidth+"px;height:"+t.offsetHeight+"px;'>"+n+"</div>"},s=[],a=0;a<t.x.childNodes.length;a++){var r=t.x.childNodes[a],o=r.currentStyle?r.currentStyle.display:getComputedStyle(r,null).display;s.push(o||"")}var l=n(t);"function"==typeof e&&e.call(this);var h=n(t),u=t.x.insertBefore(jeeplus.html.create("DIV",{class:"jeeplus_view_animate",style:"width:"+t.x.offsetWidth+"px;height:"+t.x.offsetHeight+"px;"},h+l),t.x.firstChild);for(a=1;a<t.x.childNodes.length;a++)t.x.childNodes[a].style.display="none";var d=jeeplus.animate.formLine(u.childNodes[0],u.childNodes[1],i);return i.callback=function(){if(u){t.x.removeChild(u),u=null;for(var e=0;e<t.x.childNodes.length;e++)t.x.childNodes[e].style.display=s[e]}},jeeplus.animate(d,i),t}},jeeplus.ui.Sb=function(){var e=jeeplus.html.create("div");e.className="jeeplus_skin_mark",e.style.cssText="position:absolute;left:-1000px;width:100px;padding:0px;margin:0px;min-height:100px;overflow-y:scroll;",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth,i={110:"air",120:"aircompact",130:"clouds",140:"web",150:"terrace",160:"metro",170:"light",180:"glamour",190:"touch",200:"flat",210:"compact",220:"material",230:"contrast"}[10*Math.floor(e.offsetHeight/10)];if(document.body.removeChild(e),i){var n=jeeplus.skin[i];n&&n!=jeeplus.skin.$active&&jeeplus.skin.set(i)}return jeeplus.env.$customScroll?0:t},jeeplus.ui.scrollSize=jeeplus.env.touch||jeeplus.env.$customScroll?0:17,jeeplus.ready(function(){var e=jeeplus.ui.Sb();jeeplus.ui.scrollSize=jeeplus.env.touch?0:e}),jeeplus.ui.Tb=function(e){return"$"+e+(this.Ub[e]=(this.Ub[e]||0)+1)},jeeplus.ui.Ub={},jeeplus.ui.Pb=function(){jeeplus.html.addStyle("html, body{ height:100%; }"),document.body.className+=" jeeplus_full_screen",jeeplus.ui.Pb=function(){},jeeplus.Touch.limit(!1)},jeeplus.ui.freeze=function(e,t){jeeplus.ui.PG=!0;var i=e();i&&i.then?i.then(function(e){return(jeeplus.ui.PG=!1)!==t&&jeeplus.ui.resize(),e}):(jeeplus.ui.PG=!1)!==t&&jeeplus.ui.resize()},jeeplus.ui.resize=function(){if(jeeplus.UIManager.applyChanges(),jeeplus.callEvent("onClick",[]),jeeplus.ui.QG=!0,!jeeplus.ui.PG)for(var e=n.length-1;0<=e;e--)n[e].obj&&n[e].obj.resize();jeeplus.ui.QG=!1},jeeplus.ui.each=function(e,t,i,n){if(e)for(var s=n?[e]:e.getChildViews(),a=0;a<s.length;a++)!1!==t.call(i||jeeplus,s[a])&&jeeplus.ui.each(s[a],t,i)},jeeplus.event(window,"resize",function(){jeeplus.env.touch&&(jeeplus.edit_open_time&&new Date-jeeplus.edit_open_time<1e3||jeeplus.mb&&new Date-jeeplus.mb<1e3)||jeeplus.ui.resize()}),l.Wb={},l.delay=function(e){jeeplus.ui.Wb[e.id]=e},l.hasMethod=function(e,t){var i=jeeplus.ui[e];return!!i&&(i.$protoWait&&(i=i.call(jeeplus)),!!jeeplus.ui[e].prototype[t])},jeeplus.ui.zIndex=function(){return jeeplus.ui.zIndexBase++},jeeplus.ui.zIndexBase=100,l.A=function(e){if(e.view){var t=e.view;return new l[t](e)}if(e.rows||e.cols){for(var i=e.rows||e.cols,n=!1,s=0;s<i.length;s++)!i[s].body||i[s].view||i[s].align||(n=!0);return n?new l.headerlayout(e):new l.layout(e)}return e.cells?new l.multiview(e):e.template||e.content?new l.template(e):e.align&&e.body?new l.align(e):new l.spacer(e)},l.views={},jeeplus.$$=function(e){if(!e)return null;if(l.views[e])return l.views[e];if(l.Wb[e])return jeeplus.ui(l.Wb[e]);var t=e;if("object"==typeof e){if(e.s)return e;t=e.target||e.srcElement||e}return l.views[jeeplus.html.locate({target:jeeplus.toNode(t)},"view_id")]},jeeplus.isUndefined(window.$$)&&(window.$$=jeeplus.$$),jeeplus.UIExtension=window.jeeplus_view||{},jeeplus.protoUI({name:"baseview",$init:function(e){e.id||(e.id=jeeplus.ui.Tb(this.name)),this.Xb=jeeplus.Xb,jeeplus.Xb=null,this.$scope=e.$scope||(this.Xb?this.Xb.$scope:null),this.x||(this.w=this.x=jeeplus.html.create("DIV",{class:"jeeplus_view"}),this.$view=this.x)},$skin:!1,defaults:{width:0,height:0,gravity:1},getNode:function(){return this.x},getParentView:function(){return this.Xb||null},getTopParentView:function(){var e=this.getParentView();return e?e.getTopParentView():this},getFormView:function(){var e=this.getParentView();return!e||e.setValues?e:e.getFormView()},getChildViews:function(){return[]},queryView:function(e,t){if("object"==typeof e){for(var n=Object.keys(e),s=[],i=0;i<n.length;i++)s[i]=e[n[i]];var a=function(e){for(var t=e.config,i=0;i<n.length;i++)if(t[n[i]]!=s[i])return!1;return!0}}else a=e;if("self"===t&&a(this))return this;var r="all"===t&&[],o="parent"===t?this.gG:this.hG,l=this.iG(a,o,r);return"all"===t?r:l},hG:function(e){return e.getChildViews()},gG:function(e){var t=e.getParentView();return t?[t]:[]},iG:function(e,t,i){for(var n=t(this),s=0;s<n.length;s++)if(e(n[s])){if(!i)return n[s];i.push(n[s])}else{var a=n[s].iG(e,t,i);if(a)return a}return null},isVisible:function(e,t){if(this.s.hidden)return e&&(this.Yb||(this.Yb=[],this.Zb={}),this.Zb[e]||(this.Zb[e]=!0,this.Yb.push(e))),!1;var i=this.getParentView();return!i||i.isVisible(e,this.s.id)},isEnabled:function(){if(this.$b)return!1;var e=this.getParentView();return!e||e.isEnabled()},disable:function(){jeeplus.html.remove(this.$b),this.s.disabled=!0,this.$b=jeeplus.html.create("div",{class:"jeeplus_disabled"}),this.x.appendChild(this.$b),this.x.setAttribute("aria-disabled","true"),jeeplus.html.addCss(this.x,"jeeplus_disabled_view",!0),jeeplus.UIManager.vb(this)},enable:function(){this.s.disabled=!1,this.$b&&(jeeplus.html.remove(this.$b),jeeplus.html.removeCss(this.x,"jeeplus_disabled_view"),this.x.removeAttribute("aria-disabled"),this.$b=null)},disabled_setter:function(e){return e?this.disable():this.enable(),e},container_setter:function(e){return!0},css_setter:function(e){return"object"==typeof e&&(e=jeeplus.html.createCss(e)),this.x.className+=" "+e,e},id_setter:function(e){if(jeeplus.Mb&&(jeeplus.Mb!=this||this.Lb)){var t=this.config.$id=e;(this.Lb||jeeplus.Mb).Hb[e]=this,e=jeeplus.ui.Tb(this.name),(this.Lb||jeeplus.Mb).Ib[e]=t}return(jeeplus.ui.views[e]=this).x.setAttribute("view_id",e),e},$setSize:function(e,t){var i=this.ac;return(!i||i[0]!=e||i[1]!=t)&&(this.ac=[e,t],this.$width=this.bc=e-(this.cc?jeeplus.ui.scrollSize:0),this.$height=this.dc=t-(this.ec?jeeplus.ui.scrollSize:0),this.s.flex||(this.x.style.width=e+"px",this.x.style.height=t+"px"),!0)},$getSize:function(e,t){var i=this.s,n=[1*(i.width||i.minWidth||0),1*(i.width||i.maxWidth||1e5),1*(i.height||i.minHeight||0),1*(i.height||i.maxHeight||1e5),i.gravity];return n[0]+=e,n[1]+=e,n[2]+=t,n[3]+=t,n},show:function(e,t){var i=this.getParentView(),n=!arguments[2];if(i)!t&&!1!==t&&this.s.animate&&i.s.animate&&(t=jeeplus.extend(i.s.animate?jeeplus.extend({},i.s.animate):{},this.s.animate,!0)),(n?i.fc:i.Fb)&&(n?i.fc:i.Fb).call(i,this,t),n&&this.Qd(),e&&n&&i.show(!i.$$&&e);else if(this.s.hidden){if(n)jeeplus.toNode(this.s.gt||document.body).appendChild(this.x),this.s.hidden=!1,this.adjust(),this.Qd()}else n||(this.s.hidden=this.s.ft=!0,this.x&&(this.s.gt=this.x.parentNode,jeeplus.html.remove(this.x)))},Qd:function(){if(this.Yb){for(var e=0;e<this.Yb.length;e++){var t=jeeplus.$$(this.Yb[e]);t&&t.render()}this.Yb=[],this.Zb={}}},DD:function(e,t){var i=t.srcElement||t.target,n=i.getAttribute("role");13!==e&&32!==e||"button"!=n||this.s.disabled||(jeeplus.html.triggerEvent(i,"MouseEvents","click"),jeeplus.html.preventEvent(t))},hidden_setter:function(e){return e&&this.hide(),this.s.hidden},hide:function(){this.show(null,null,!0),jeeplus.UIManager.vb(this)},adjust:function(){if(!this.x.parentNode)return!1;var e=this.x.parentNode.clientWidth||0,t=this.x.parentNode.clientHeight||0,i=this.$getSize(0,0),n=this.x.parentNode==document.body&&!this.setPosition;i[0]>e&&(e=i[0]),i[2]>t&&(t=i[2]),(!n||this.s.width)&&e>i[1]&&(e=i[1]),(!n||this.s.height)&&t>i[3]&&(t=i[3]),this.$setSize(e,t),jeeplus.ED&&(jeeplus.ED=!1,this.adjust())},resize:function(){if(!(jeeplus.gc||jeeplus.ui.PG||jeeplus.ot)){var e=this.getParentView();e?e.resizeChildren?e.resizeChildren():e.resize():(this.adjust(),jeeplus.callEvent("onResize",[]))}}},jeeplus.Settings,jeeplus.Destruction,jeeplus.BaseBind,jeeplus.UIExtension),jeeplus.protoUI({name:"view",$init:function(e){this.hc(e)},hc:function(e){var t=jeeplus.isUndefined(e.borderless);t&&!this.setPosition&&e.$topView&&(t=!(e.borderless=!0)),t&&this.defaults.borderless||e.borderless?e.Ob={top:!0,left:!0,bottom:!0,right:!0}:(e.Ob||(e.Ob={}),this.w.style.borderWidth="1px")},$getSize:function(e,t){var i=this.s.Ob;return i&&(e+=(i.left?0:1)+(i.right?0:1),t+=(i.top?0:1)+(i.bottom?0:1)),jeeplus.ui.baseview.prototype.$getSize.call(this,e,t)},$setSize:function(e,t){var i=this.s.Ob;return i&&(e-=(i.left?0:1)+(i.right?0:1),t-=(i.top?0:1)+(i.bottom?0:1)),jeeplus.ui.baseview.prototype.$setSize.call(this,e,t)}},jeeplus.ui.baseview)}(),jeeplus.ui.view.call(jeeplus),jeeplus.protoUI({name:"spacer",defaults:{borderless:!0},$init:function(){this.x.className+=" jeeplus_spacer"}},jeeplus.ui.view),jeeplus.protoUI({name:"baselayout",restore:function(e,t,i){var n=this.mH(jeeplus.copy(e),t);return i?n:void jeeplus.ui(n.cols||n.rows,this)},mH:function(e,t){if(!e.$layout)return t.call(this,e);for(var i=e.cols||e.rows,n=0;n<i.length;n++)i[n]=this.mH(i[n],t);return e},serialize:function(e){for(var t=[],i=this.getChildViews(),n=0;n<i.length;n++){var s=i[n];if(s.movePortlet){var a=s.getChildViews();t.push(e.call(this,a[a.length-1]))}else s.serialize?t.push(s.serialize(e,!0)):t.push(e.call(this,s))}var r={$layout:!0,type:this.config.type};return this.config.rows?r.rows=t:r.cols=t,r},$init:function(e){this.$ready.push(this.kc),this.y=this.w,this.lc=[],this.ht=[],e.$topView&&(e.borderless=!0,e.Ob={top:!0,left:!0,bottom:!0,right:!0}),e.isolate&&jeeplus.extend(this,jeeplus.IdSpace)},rows_setter:function(e){return this.mc=1,this.nc=e,!0},cols_setter:function(e){return this.mc=0,this.$view.style.whiteSpace="nowrap",this.nc=e,!0},Rb:function(e){jeeplus.PowerArray.removeAt.call(this.q,jeeplus.PowerArray.find.call(this.q,e)),this.resizeChildren(!0)},Qb:function(e,t){if(jeeplus.isUndefined(t)){for(var i=0;i<this.q.length;i++)this.q[i].destructor();this.nc=e,this.kc()}else{var n;if("number"==typeof t){(t<0||t>this.q.length)&&(t=this.q.length);var s=(this.q[t]||{}).x;jeeplus.PowerArray.insertAt.call(this.q,e,t),e.s.hidden||jeeplus.html.insertBefore(e.x,s,this.y)}else{n=jeeplus.$$(t),t=jeeplus.PowerArray.find.call(this.q,n);var a=n.x.parentNode;a&&!e.s.hidden&&a.insertBefore(e.x,n.x),n.destructor(),this.q[t]=e}this.mc||this.oc(e),this.q[t].Xb=this}this.resizeChildren(!0);var r=this.elements?this:this.getFormView();r&&r.Qs(),jeeplus.callEvent("onReconstruct",[this])},oc:function(e){e.x.style.display="inline-block",e.x.style.verticalAlign="top"},addView:function(e,t){jeeplus.isUndefined(t)&&(t=this.q.length);var i=this.$$?this:this.getTopParentView();return(i=i&&i.ui?i:jeeplus).ui(e,this,t).s.id},removeView:function(e){var t;t="object"!=typeof e?jeeplus.$$(e)||(this.$$?this.$$(e):null):e;var i=jeeplus.PowerArray.find.call(this.q,t);if(0<=i){this.Vx&&this.Vx(i,t);var n=this.elements?this:this.getFormView();this.q.splice(i,1),n&&jeeplus.ui.each(t,function(e){e.name&&delete n.getCleanValues()[e.config.name]},n,!0),t.destructor(),this.resizeChildren(!0),n&&n.Qs()}jeeplus.callEvent("onReconstruct",[this])},reconstruct:function(){this.qc=0,this.Qb(this.nc)},Fb:function(e,t,i){e.s.hidden||(e.s.hidden=!0,jeeplus.html.remove(e.x),this.qc++,i||jeeplus.Nb||this.resizeChildren(!0))},Lw:function(e){e.callEvent&&e.callEvent("onViewShow",[])},resizeChildren:function(){if(!jeeplus.ui.PG&&this.lc){var e=this.getParentView();if(e)return e.resizeChildren?e.resizeChildren():e.resize();var t,i,n,s,a=this.$getSize(0,0);if(n=t=this.lc[0]||0,s=i=this.lc[1]||0,(1e5<=a[1]||1e5<=a[3])&&this.x.parentNode&&(n=t=Math.max(a[0],this.s.width||this.x.parentNode.offsetWidth||t||0),s=i=Math.max(a[2],this.s.height||this.x.parentNode.offsetHeight||i||0)),e)this.rc(t,i);else{a[0]>t&&(n=a[0]),a[2]>i&&(s=a[2]);var r=this.x.parentNode==document.body&&!this.setPosition;!r&&t>a[1]&&(n=a[1]),!r&&i>a[3]&&(s=a[3]),this.$setSize(n,s)}jeeplus.ED&&(jeeplus.ED=!1,this.resizeChildren()),jeeplus.callEvent("onResize",[])}},getChildViews:function(){return this.q},index:function(e){e.s&&(e=e.s.id);for(var t=0;t<this.q.length;t++)if(this.q[t].s.id==e)return t;return-1},fc:function(e,t,i){if(e.s.hidden){e.s.hidden=!1;for(var n=this.index(e)+1;this.q[n]&&this.q[n].s.hidden;)n++;var s=this.q[n]?this.q[n].x:null;jeeplus.html.insertBefore(e.x,s,this.y||this.x),this.qc--,i||(this.resizeChildren(!0),e.refresh&&e.refresh()),e.callEvent&&(e.callEvent("onViewShow",[]),jeeplus.ui.each(e,this.Lw))}},showBatch:function(e,t){var i=void 0!==t;if(t=!1!==t,i)this.s.visibleBatch="";else{if(this.s.visibleBatch==e)return;this.s.visibleBatch=e}for(var n=[],s=0;s<this.q.length;s++)this.q[s].s.batch?this.q[s].s.batch==e?t?n.push(this.q[s]):this.Fb(this.q[s],null,!0):i||this.Fb(this.q[s],null,!0):n.push(this.q[s]);for(s=0;s<n.length;s++)this.fc(n[s],null,!0),n[s].Qd();this.resizeChildren(!0)},kc:function(e){this.q=[];for(var t=0;t<e.length;t++)jeeplus.Xb=this,e[t].Ob||(e[t].borderless=!0),this.q[t]=jeeplus.ui.A(e[t],this),this.mc||this.oc(this.q[t]),this.s.visibleBatch&&this.s.visibleBatch!=this.q[t].s.batch&&this.q[t].s.batch&&(this.q[t].s.hidden=!0,this.qc++),this.q[t].s.hidden||((this.y||this.w).appendChild(this.q[t].x),this.q[t].$nospace&&this.qc++);this.sc&&this.sc(e)},tc:function(e,t,i){if(this.mc!=i)for(var n=0;n<this.q.length;n++)this.q[n].s[e]=t,this.q[n].tc&&this.q[n].tc(e,t,i)},$getSize:function(e,t){var i=0,n=1e5,s=1e5,a=0;this.mc?s=0:n=0;var r=0,o=0,l=0;this.uc=[];for(var h=0;h<this.q.length;h++)if(!this.q[h].s.hidden){var u=this.uc[h]=this.q[h].$getSize(0,0);this.q[h].$nospace?o++:this.mc?(u[0]>i&&(i=u[0]),u[1]<n&&(n=u[1]),a+=u[2],s+=u[3],u[2]==u[3]&&-1!=u[2]?(r+=u[2],o++):l+=u[4]):(u[2]>a&&(a=u[2]),u[3]<s&&(s=u[3]),i+=u[0],n+=u[1],u[0]==u[1]&&-1!=u[0]?(r+=u[0],o++):l+=u[4])}s<a&&(s=a),n<i&&(n=i),this.vc=[r,this.q.length-o,l],this.ng=[i+e,a+t];var d=jeeplus.ui.baseview.prototype.$getSize.call(this,0,0);return 1e5<=d[1]&&(d[1]=0),1e5<=d[3]&&(d[3]=0),d[0]=(d[0]||i)+e,d[1]=Math.max(d[0],(d[1]||n)+e),d[2]=(d[2]||a)+t,d[3]=Math.max(d[2],(d[3]||s)+t),!this.mc&&this.s.responsive&&(d[0]=0),d},$setSize:function(e,t){this.lc=[e,t],jeeplus.ui.baseview.prototype.$setSize.call(this,e,t),this.rc(e,t)},wc:function(e,t,i){var n=t=e[t];if(t!=(i=e[i])){var s=this.xc*e[4]/this.yc;if(s<t)n=t,this.yc-=e[4],this.xc-=n;else{if(!(i<s))return-1;n=i,this.yc-=e[4],this.xc-=n}}return n},it:function(e,t){var i=jeeplus.$$(t);"hide"!==i&&i?(i||(i=jeeplus.ui({view:"popup",body:[{}]})),e.jt=e.s.width,e.kt=e.s.height,e.lt=i.s.id,e.s.width=0,e.s.height||(e.s.autoheight=!0),jeeplus.ui(e,i,this.ht.length)):(e.hide(),e.lt="hide"),this.ht.push(e)},mt:function(e){var t=e.lt;if(e.lt=0,"hide"!==t&&t){e.s.width=e.jt,e.s.height=e.kt,delete e.s.autoheight;for(var i=0;this.q[i]&&!1===this.q[i].s.responsiveCell;)i++;jeeplus.ui(e,this,i)}else e.show();this.ht.pop()},nt:function(e,t){if(jeeplus.ot=!0,e+2*this.Dc+this.Cc*(this.q.length-1)<this.ng[0])for(var i=this.q.length-1,n=0;n<i;n++){if(!(s=this.q[n]).lt){if(!1!==s.s.responsiveCell){this.it(s,this.s.responsive),jeeplus.callEvent("onResponsiveHide",[s.s.id]),jeeplus.ED=!0;break}i=this.q.length}}else if(this.ht.length){var s,a="hide"==(s=this.ht[this.ht.length-1]).lt?0:s.jt;s.$getSize(a,0)[0]+this.ng[0]+this.Cc+20<=e&&(this.mt(s),jeeplus.callEvent("onResponsiveShow",[s.s.id]),jeeplus.ED=!0)}jeeplus.ot=!1},rc:function(e,t){jeeplus.gc=(jeeplus.gc||0)+1,!this.mc&&this.s.responsive&&this.nt(e,t),this.xc=(this.mc?t:e)-this.vc[0],this.yc=this.vc[2];for(var i=e,n=t,s=[],a=0;a<this.q.length;a++)if(!this.q[a].s.hidden&&this.uc[a]){var r=this.uc[a];if(this.mc){if((n=this.wc(r,2,3))<0){s.push(a);continue}}else if((i=this.wc(r,0,1))<0){s.push(a);continue}this.q[a].$setSize(i,n)}for(a=0;a<s.length;a++){var o=s[a],l=(r=this.uc[o],Math.round(this.xc*r[4]/this.yc));this.xc-=l,this.yc-=r[4],this.mc?n=l:i=l,this.q[o].$setSize(i,n)}jeeplus.gc-=1},zc:function(e,t){var i=this.index(e);return-1==i?null:this.q[i+t]},Ac:function(){return this.q[0]}},jeeplus.EventSystem,jeeplus.ui.baseview),jeeplus.protoUI({name:"layout",$init:function(e){this.qc=0},defaults:{type:"line"},kc:function(){this.Bc&&(e=this.Bc(e)),this.Uw||(this.x.className+=" jeeplus_layout_"+(this.s.type||""),this.Uw=1),this.s.margin!==jeeplus.undefined&&(this.Cc=this.s.margin),this.s.padding!=jeeplus.undefined&&(this.Dc=this.Ec=this.s.padding),this.s.paddingX!==jeeplus.undefined&&(this.Dc=this.s.paddingX),this.s.paddingY!==jeeplus.undefined&&(this.Ec=this.s.paddingY),(this.Ec||this.Dc)&&(this.Fc=!0),this.Wx()&&!this.s.borderless&&(this.w.style.borderWidth="1px",this.Gc=!0);var e=this.nc;this.s.borderless&&(this.s.Ob={top:!0,left:!0,right:!0,bottom:!0}),this.Hc(e),jeeplus.ui.baselayout.prototype.kc.call(this,e),this.Ic(e)},$getSize:function(e,t){e=e||0,t=t||0;var i=this.Cc*(this.q.length-this.qc-1);if(this.Gc||this.Wx()){var n=this.s.Ob;n&&(e+=(n.left?0:1)+(n.right?0:1),t+=(n.top?0:1)+(n.bottom?0:1))}return this.s.height||(t+=2*(this.Ec||0)+(this.mc?i:0)),this.s.width||(e+=2*(this.Dc||0)+(this.mc?0:i)),jeeplus.ui.baselayout.prototype.$getSize.call(this,e,t)},$setSize:function(e,t){this.lc=[e,t],this.Wx()||this.Gc?jeeplus.ui.view.prototype.$setSize.call(this,e,t):jeeplus.ui.baseview.prototype.$setSize.call(this,e,t),t=this.dc,e=this.bc,this.s.scroll&&(t=Math.max(t,this.ng[1]),e=Math.max(e,this.ng[0])),this.rc(e,t)},rc:function(e,t){var i=this.Cc*(this.q.length-this.qc-1);return this.mc?(t-=i+2*this.Ec,e-=2*this.Dc):(e-=i+2*this.Dc,t-=2*this.Ec),jeeplus.ui.baselayout.prototype.rc.call(this,e,t)},resizeChildren:function(e){if(e){this.ac=null;for(var t=[],i=0;i<this.q.length;i++){var n=this.q[i];t[i]=n.s;var s=n.lc&&!n.Gc||n.s.borderless?"0px":"1px";n.x.style.borderTopWidth=n.x.style.borderBottomWidth=n.x.style.borderLeftWidth=n.x.style.borderRightWidth=s}this.Hc(t);for(i=0;i<t.length;i++)t[i].borderless&&this.q[i].hc&&this.q[i].hc(t[i]);this.Ic(this.q)}jeeplus.ot||jeeplus.ui.baselayout.prototype.resizeChildren.call(this)},Wx:function(){return this.Fc&&0<this.Cc&&!this.Xx},Hc:function(e){if(!this.Wx()||this.s.borderless&&"space"!=this.s.type){for(var t=0;t<e.length;t++)e[t].Ob=jeeplus.clone(this.s.Ob);var i=!1;this.Xx&&(i=!0);var n=e.length;if(this.mc){for(t=1;t<n-1;t++)e[t].Ob.top=e[t].Ob.bottom=i;if(1<n){for("head"!=this.s.type&&(e[0].Ob.bottom=i);e[n-1].hidden&&1<n;)n--;0<n&&(e[n-1].Ob.top=i)}}else{for(t=1;t<n-1;t++)e[t].Ob.left=e[t].Ob.right=i;if(1<n){for("head"!=this.s.type&&(e[0].Ob.right=i),e[n-1].Ob.left=i;1<n&&e[n-1].hidden;)n--;0<n&&(e[n-1].Ob.left=i)}}}else for(t=0;t<e.length;t++)e[t].Ob&&e[t].borderless||(e[t].Ob={top:!1,left:!1,right:!1,bottom:!1})},Jc:function(e,t){t.top&&(e.borderTopWidth="0px"),t.left&&(e.borderLeftWidth="0px"),t.right&&(e.borderRightWidth="0px"),t.bottom&&(e.borderBottomWidth="0px")},Ic:function(e){for(var t=0,i=0;i<e.length;i++){var n=this.q[i],s=n.s.Ob;if(n.s.hidden&&this.q[i+1]){var a=this.q[i+1].s.Ob;s.top||(a.top=!1),s.left||(a.left=!1),i==t&&t++}this.Jc(n.x.style,n.s.Ob)}var r=this.mc?"marginLeft":"marginTop",o=this.mc?"marginTop":"marginLeft",l=this.mc?this.Dc:this.Ec,h=this.mc?this.Ec:this.Dc;for(i=0;i<e.length;i++)this.q[i].x.style[r]=(l||0)+"px";this.q.length&&(this.q[t].x.style[o]=(h||0)+"px");for(var u=t+1;u<e.length;u++)this.q[u].x.style[o]=this.Cc+"px"},type_setter:function(e){return this.Cc=void 0!==this.Kc[e]?this.Kc[e]:this.Kc.line,this.Dc=this.Ec=void 0!==this.Kc[e]?this.Lc[e]:this.Lc.line,this.Xx="material"==e||"clean"==e,"material"==e&&(this.s.borderless=!0),e},$skin:function(){var e=jeeplus.skin.$active;this.Kc=e.layoutMargin,this.Lc=e.layoutPadding}},jeeplus.ui.baselayout),jeeplus.ui.layout.call(jeeplus),jeeplus.FlexLayout={$init:function(){this.$view.className+=" jeeplus_flexlayout"},oc:function(){},Hc:function(){},Ic:function(){},$getSize:function(e,t){var i=0,n=0,s=this.s.gravity;this.uc=[];for(var a=0;a<this.q.length;a++){var r=this.q[a].$getSize(0,0);this.uc.push(r),i=Math.max(i,r[0]),n=Math.max(n,r[2])}return i+=2*(this.Dc||0),n+=2*(this.Ec||0),this.s.width&&(i=Math.max(i,this.s.width)),this.s.height&&(n=Math.max(n,this.s.height)),[i,1e5,n,1e5,s]},rc:function(e,t){var i=this.$view.style,n=Math.round(this.Cc/2);i.paddingTop=i.paddingBottom=this.Ec-n+"px",i.paddingLeft=i.paddingRight=this.Dc-n+"px";for(var s=0;s<this.q.length;s++)if(!this.q[s].s.hidden){var a=this.q[s].$view,r=this.uc[s],o=this.q[s].s;a&&(a.style.minWidth=r[0]+"px",r[1]<1e5&&r[1]!=r[0]&&(a.style.maxWidth=r[1]+"px"),a.style.flexBasis=o.flexBasis||r[0]+"px",a.style.flexGrow=o.flexGrow||(r[1]!=r[0]?r[4]:0),a.style.height=r[3]!=r[2]?"auto":r[2]+"px",a.style.minHeight=r[2]+"px",r[3]<1e5&&r[3]!=r[2]&&(a.style.maxHeight=r[3]+"px"),a.style.margin=n+"px")}var l=[];for(s=0;s<this.q.length;s++)if(!this.q[s].s.hidden){a=this.q[s].$view;l[s]=[a.offsetWidth,a.offsetHeight]}for(s=0;s<this.q.length;s++)if(!this.q[s].s.hidden){var h=this.q[s];if(a=h.$view){h.s.flex=!0;var u=(r=this.uc[s])[2]==r[3]?r[2]:l[s][1];h.$setSize(l[s][0],u),h.s.flex=!1}}this.$height=this.dc=this.$view.scrollHeight,this.$view.style.height=this.dc+"px"}},jeeplus.protoUI({$init:function(){jeeplus.extend(this,jeeplus.FlexLayout,!0)},name:"flexlayout"},jeeplus.ui.layout),jeeplus.protoUI({name:"align",defaults:{borderless:!0,left:0,top:0,right:0,bottom:0},$init:function(){this.x.className+=" jeeplus_view_align"},getChildViews:function(){return[this.gd]},body_setter:function(e){return e.Ob={top:!1,left:!1,right:!1,bottom:!1},this.gd=jeeplus.ui.A(e),(this.gd.Xb=this).x.appendChild(this.gd.x),e},align_setter:function(e){"string"==typeof e&&(e=e.split(",")),this.FD=this.GD=this.HD="";for(var t=0;t<e.length;t++){var i=e[t];("center"===i||"left"===i||"right"===i)&&(this.FD=i),("top"===i||"bottom"===i||"middle"===i)&&(this.GD=i),"absolute"===i&&(this.FD=this.GD=this.HD="precise")}return e},getBody:function(){return this.gd},$setSize:function(e,t){var i,n;jeeplus.ui.view.prototype.$setSize.call(this,e,t),this.HD?(i=e-this.s.left-this.s.right,n=t-this.s.top-this.s.bottom):(i=this.ng[0]||e,n=this.ng[2]||t),this.gd.$setSize(i,n);var s=this.gd.x;"center"==this.FD?s.style.marginLeft=Math.ceil((e-i)/2)+"px":"right"==this.FD?s.style.marginLeft=e-i+"px":s.style.marginLeft=(this.HD?this.s.left:0)+"px","middle"==this.GD?s.style.marginTop=Math.ceil((t-n)/2)+"px":"bottom"==this.GD?s.style.marginTop=t-n+"px":s.style.marginTop=(this.HD?this.s.top:0)+"px"},$getSize:function(e,t){var i=this.ng=this.gd.$getSize(0,0),n=jeeplus.ui.baseview.prototype.$getSize.call(this,0,0);return this.HD&&(e+=this.s.left+this.s.right,t+=this.s.top+this.s.bottom),!this.FD||this.HD?(n[0]=i[0]+e,n[1]=i[1]+e):(n[0]=(n[0]||i[0])+t,n[1]+=e),!this.GD||this.HD?(n[2]=i[2]+t,n[3]=i[3]+t):(n[2]=(n[2]||i[2])+t,n[3]+=t),n}},jeeplus.ui.view),jeeplus.animate=function(e,t){var i=t;if(jeeplus.isArray(e))for(var n=0;n<e.length;n++){if(jeeplus.isArray(t)&&(i=t[n]),"slide"==i.type){if("out"==i.subtype&&0===n)continue;if("in"==i.subtype&&1==n)continue}if("flip"!=i.type)jeeplus.animate(e[n],i);else{var s=jeeplus.clone(i);0===n&&(s.type="flipback"),1==n&&(s.callback=null),jeeplus.animate(e[n],s)}}else{var a=jeeplus.toNode(e);a.Mc?jeeplus.animate.end(a,i):jeeplus.animate.start(a,i)}},jeeplus.animate.end=function(e,t){e.style[jeeplus.env.transitionDuration]="1ms",e.Mc=null,jeeplus.Nc&&window.clearTimeout(jeeplus.Nc),jeeplus.Nc=jeeplus.delay(jeeplus.animate,jeeplus,[e,t],10)},jeeplus.animate.isSupported=function(){return!jeeplus.$testmode&&!jeeplus.noanimate&&jeeplus.env.transform&&jeeplus.env.transition&&!jeeplus.env.isOpera},jeeplus.animate.formLine=function(e,t,i){var n=i.direction;t.parentNode&&(t.parentNode.style.position="relative"),t.style.position="absolute",e.style.position="absolute";var s=jeeplus.env.isFF?"top"==n||"left"==n?-1:1:0;return"top"==n||"bottom"==n?(e.style.left="0px",e.style.top=(i.top||s)+("top"==n?1:-1)*t.offsetHeight+"px"):(e.style.top=(i.top||0)+"px",e.style.left=s+("left"==n?1:-1)*t.offsetWidth+"px"),t.parentNode==e.parentNode&&i.keepViews?e.style.display="":jeeplus.html.insertBefore(e,t.nextSibling,t.parentNode),"slide"==i.type&&"out"==i.subtype&&(e.style.left="0px",e.style.top=(i.top||0)+"px",t.parentNode.removeChild(t),jeeplus.html.insertBefore(t,e.nextSibling,e.parentNode)),[e,t]},jeeplus.animate.breakLine=function(e){arguments[1]?e[1].style.display="none":jeeplus.html.remove(e[1]),jeeplus.animate.clear(e[0]),jeeplus.animate.clear(e[1]),e[0].style.position=""},jeeplus.animate.clear=function(e){e.style[jeeplus.env.transform]="none",e.style[jeeplus.env.transition]="none",e.style.top=e.style.left=""},jeeplus.animate.defaults={type:"slide",delay:"0",duration:"500",timing:"ease-in-out",x:0,y:0},jeeplus.animate.start=function(n,e){"string"==typeof e&&(e={type:e}),e=jeeplus.Settings.E(e,jeeplus.animate.defaults);var t,i,s=jeeplus.env.cssPrefix,a=n.Mc=e;switch("slide"==a.type&&a.direction){case"right":a.x=n.offsetWidth;break;case"left":a.x=-n.offsetWidth;break;case"top":a.y=-n.offsetHeight;break;case"bottom":default:a.y=a.y||n.offsetHeight}("flip"==a.type||"flipback"==a.type)&&(t=[0,0],i="scaleX","vertical"==a.subtype?(t[0]=20,i="scaleY"):t[1]=20,("right"==a.direction||"bottom"==a.direction)&&(t[0]*=-1,t[1]*=-1));var r=a.duration+"ms "+a.timing+" "+a.delay+"ms",o=s+"TransformStyle: preserve-3d;",l="",h="";switch(a.type){case"fade":l="opacity "+r,o="opacity: 0;";break;case"show":l="opacity "+r,o="opacity: 1;";break;case"flip":r=a.duration/2+"ms "+a.timing+" "+a.delay+"ms",h="skew("+t[0]+"deg, "+t[1]+"deg) "+i+"(0.00001)",l="all "+r;break;case"flipback":a.delay+=a.duration/2,r=a.duration/2+"ms "+a.timing+" "+a.delay+"ms",n.style[jeeplus.env.transform]="skew("+-1*t[0]+"deg, "+-1*t[1]+"deg) "+i+"(0.00001)",n.style.left="0",h="skew(0deg, 0deg) "+i+"(1)",l="all "+r;break;case"slide":var u=a.x+"px",d=a.y+"px";h=jeeplus.env.translate+"("+u+", "+d+("translate3d"==jeeplus.env.translate?", 0":"")+")",l=s+"transform "+r}jeeplus.delay(function(){n.style[jeeplus.env.transition]=l,jeeplus.delay(function(){o&&(n.style.cssText+=o),h&&(n.style[jeeplus.env.transform]=h);var t=!1,i=jeeplus.event(n,jeeplus.env.transitionEnd,function(e){n.Mc=null,a.callback&&a.callback.call(a.master||window,n,a,e),t=!0,jeeplus.eventRemove(i)});window.setTimeout(function(){t||(n.Mc=null,a.callback&&a.callback.call(a.master||window,n,a),t=!0,jeeplus.eventRemove(i))},1.3*(1*a.duration+1*a.delay))})})},jeeplus.MouseEvents={$init:function(e){e=e||{},this.Oc=0,this.Pc=300,this.Qc=null,this.Rc(e.onClick,"on_click"),this.Rc(e.onContext,"on_context"),this.Rc(e.onDblClick,"on_dblclick"),this.Rc(e.onMouseMove,"on_mouse_move"),this.on_click&&(jeeplus.UE(this.w,"click",this.Sc,{bind:this}),jeeplus.env.isIE8&&this.on_dblclick&&jeeplus.UE(this.w,"dblclick",this.Tc,{bind:this})),this.on_context&&jeeplus.UE(this.w,"contextmenu",this.Uc,{bind:this}),this.on_mouse_move&&this.Vc()},Vc:function(){this.Wc||(this.on_mouse_move=this.on_mouse_move||{},jeeplus.UE(this.w,"mousemove",this.Xc,{bind:this}),jeeplus.UE(this.w,jeeplus.env.isIE?"mouseleave":"mouseout",this.Xc,{bind:this}),this.Wc=1,this.attachEvent("onDestruct",function(){this.Zc&&window.clearTimeout(this.Zc)}))},Rc:function(e,t){if(e){var i=this[t],n=i?jeeplus.extend({},i):{};this[t]=jeeplus.extend(n,e)}},Sc:function(e){if(!this.isEnabled())return!1;if(jeeplus.UIManager.sb(this),this.on_dblclick){var t=(new Date).valueOf();if(t-this.Oc<=this.Pc&&this.locate)if(""+this.locate(e)==""+this.Qc)return this.Oc=0,this.Tc(e);this.Oc=t}return this.Yc(e,this.on_click,"ItemClick")},Tc:function(e){return this.Yc(e,this.on_dblclick,"ItemDblClick")},Uc:function(e){this.Yc(e,this.on_context,"BeforeContextMenu","AfterContextMenu")},Xc:function(e){if(!this.$destructed){if(document.createEventObject)e=document.createEventObject(event);else if(!(jeeplus.$testmode||jeeplus.isUndefined(e.movementY)||e.movementY||e.movementX))return;this.Zc&&window.clearTimeout(this.Zc),this.callEvent("onMouseMoving",[e]),this.Zc=window.setTimeout(jeeplus.bind(function(){"mousemove"==e.type?this.$c(e):this._c(e)},this),this.s.mouseEventDelay||500)}},$c:function(e){this.Yc(e,this.on_mouse_move,"MouseMove")||this.callEvent("onMouseOut",[e||event])},_c:function(e){this.callEvent("onMouseOut",[e||event])},Yc:function(e,t,i,n){if(!(e=e||event).processed&&this.x){e.processed=!0;var s=e.target||e.srcElement;if(jeeplus.env.isIE8){var a=this.s.id,r=s.w_view;if(r){if(r!==a)return}else s.w_view=a}for(var o="",l=null,h=!1;s&&s.parentNode&&this.x&&s!=this.x.parentNode;){if(!h&&s.getAttribute&&(l=s.getAttribute(this.ad))){if(this.Qc=l,this.callEvent){if(!this.callEvent("on"+i,[l,e,s]))return;n&&this.callEvent("on"+n,[l,e,s])}h=!0}if(o=jeeplus.html.TC(s)){o=o.toString().split(" ");for(var u=0;u<o.length;u++)if(t[o[u]]){if(!1===jeeplus.toFunctor(t[o[u]],this.$scope).call(this,e,l||jeeplus.html.locate(e,this.ad),s))return h}}s=s.parentNode}return h}}},jeeplus.protoUI({name:"accordionitem",$init:function(e){this.x.innerHTML="<div jeeplus_ai_id='"+e.id+"' class='jeeplus_accordionitem_header'><div tabindex='0' role='button' class='jeeplus_accordionitem_button' ></div><div class='jeeplus_accordionitem_label' ></div></div><div class='jeeplus_accordionitem_body'></div>",this.w=this.x,this.bd=this.w.childNodes[0],e.header||(this.bd.style.display="none"),this.cd=this.w.childNodes[0].childNodes[1],this.dd=this.w.childNodes[0].childNodes[0],this.ed=this.w.childNodes[1],this.x.className+=" jeeplus_accordionitem",this.fd=this.gd=null,this.q=!0,this.ed.setAttribute("role","tabpanel"),this.bd.setAttribute("role","tab"),this.attachEvent("onKeyPress",this.DD)},Rb:function(){this.gd={destructor:function(){}}},Qb:function(e){this.gd.destructor(),this.gd=e,(this.gd.Xb=this).ed.appendChild(this.gd.x),this.resize()},ad:"jeeplus_ai_id",getChildViews:function(){return[this.gd]},body_setter:function(e){return"object"!=typeof e&&(e={template:e}),e.Ob={top:!0,left:!0,right:!0,bottom:!0},(jeeplus.Xb=this).gd=jeeplus.ui.A(e),this.gd.$view.style.border="0px solid red",this.ed.appendChild(this.gd.x),e},header_setter:function(e){return e&&(e=jeeplus.template(e)),e},headerAlt_setter:function(e){return e&&(e=jeeplus.template(e)),e},$getSize:function(e,t){var i=this.gd.$getSize(0,0),n=this.s.Ob;n&&(e+=(n.left?0:1)+(n.right?0:1),t+=(n.top?0:1)+(n.bottom?0:1));var s=0,a=jeeplus.ui.baseview.prototype.$getSize.call(this,0,0);a[0]=(a[0]||i[0])+e,1e5<=a[1]&&(a[1]=i[1]),a[1]+=e,a[2]=(a[2]||i[2])+t;var r=a[3]<1e5;return r||(a[3]=i[3]),a[3]+=t,this.getParentView().mc?this.s.collapsed?a[2]=a[3]=this.hd():this.s.header&&(s=this.s.headerHeight):(this.s.collapsed&&(a[0]=a[1]=this.hd()),this.s.header&&(s=this.s.headerHeight)),r||(a[2]+=s,a[3]+=s),a},on_click:{jeeplus_accordionitem_header:function(e,t){return this.id(e),!1},jeeplus_accordionitem_header_v:function(e,t){return this.id(e),!1}},id:function(e){this.define("collapsed",!this.s.collapsed)},collapsed_setter:function(e){if(!1!==this.s.header){var t=this.getParentView();if(t){if(e)if(t.jd(this))this.kd();else{var i=0;if(1<t.q.length)for(var n=0;n<t.q.length;n++){var s=t.q[n];if(this!=s&&s.isVisible()&&s.expand){s.expand(),this.kd(),i=1;break}}if(!i)return}else this.ld();(this.s.collapsed=e)||t.md(this),this.refresh(),jeeplus.Nb||this.resize(),t.callEvent("onAfter"+(e?"Collapse":"Expand"),[this.s.id]),this.s.$noresize=e}return e}},collapse:function(){this.define("collapsed",!0),jeeplus.UIManager.vb(this)},expand:function(){this.define("collapsed",!1)},fc:function(){this.show()},Fb:function(){this.hide()},ld:function(){this.ed.style.display="",jeeplus.html.removeCss(this.$view,"collapsed"),jeeplus.html.removeCss(this.bd,"collapsed"),this.bd.setAttribute("aria-expanded","true")},kd:function(){this.getParentView().mc,this.s.headerAlt&&(this.cd.innerHTML=this.s.headerAlt()),this.ed.style.display="none",jeeplus.html.addCss(this.$view,"collapsed"),jeeplus.html.addCss(this.bd,"collapsed"),this.bd.setAttribute("aria-expanded","false")},refresh:function(){var e=this.s[this.s.collapsed?"headerAlt":"header"]||this.s.header;e&&(this.cd.innerHTML=e(),this.dd.setAttribute("aria-label",e()));var t=this.getParentView().mc?"vertical":"horizontal";this.x.className.indexOf(" "+t)<0&&jeeplus.html.addCss(this.x,t),jeeplus.env.transform||jeeplus.html.addCss(this.x,"jeeplus_ie",!0)},hd:function(){return this.s.collapsed?this.s.headerAltHeight:this.s.headerHeight},$setSize:function(e,t){if(jeeplus.ui.view.prototype.$setSize.call(this,e,t)||this.hd()!=this.CA){e=this.bc,t=this.dc;var i=this.CA=this.hd();if(this.s.header)if(this.bd.style.height=i+"px",this.bd.style.width="auto",this.bd.style[jeeplus.env.transform]="",this.bd.style.borderBottomWidth=(this.s.collapsed?0:1)+"px",this.getParentView().mc||!this.s.collapsed)t-=this.hd();else if(this.s.collapsed)if(jeeplus.animate.isSupported()){this.bd.style.width=t+"px",this.bd.style.height=e+3+"px";var n=Math.floor(t/2-e/2)+(e-this.s.headerAltHeight)/2;this.bd.style[jeeplus.env.transform]="rotate(90deg) translate("+n+"px, "+(n+1)+"px)"}else this.bd.style.width=e+"px",this.bd.style.height=t+3+"px";this.s.collapsed||(this.gd.$setSize(e,t),this.ct=t)}else if(!this.s.collapsed){var s=this.gd;this.ct&&s.$setSize(this.bc,this.ct)}},$skin:function(){var e=this.defaults;e.headerAltHeight=e.headerHeight=jeeplus.skin.$active.barHeight,jeeplus.skin.$active.borderlessAccordion&&(e.borderless=!0)},defaults:{header:!1,headerAlt:!1,body:""}},jeeplus.MouseEvents,jeeplus.EventSystem,jeeplus.ui.view),jeeplus.protoUI({name:"accordion",defaults:{panelClass:"accordionitem",multi:!1,collapsed:!1},$init:function(){this.x.setAttribute("role","tablist"),this.x.setAttribute("aria-multiselectable","true")},Qb:function(e,t){jeeplus.ui.layout.prototype.Qb.apply(this,arguments),e.collapsed_setter&&e.refresh&&e.refresh()},kc:function(){for(var e=this.s.panelClass,t=this.nc,i=0;i<t.length;i++)!t[i].body&&!t[i].header||t[i].view||t[i].align||(t[i].view=e),jeeplus.isUndefined(t[i].collapsed)&&(t[i].collapsed=this.s.collapsed);this.nd=!0,jeeplus.ui.layout.prototype.kc.call(this),this.nd=!1;for(i=0;i<this.q.length;i++)this.q[i].name==e&&this.q[i].refresh(),this.q[i].od=!1;var n=!1;for(i=this.q.length-1;0<=i&&!n;i--)this.q[i].s.hidden||(n=this.q[i].od=!0)},md:function(e){if(!1===this.s.multi&&!0!==this.nd)for(var t=0;t<this.q.length;t++)e!=this.q[t]&&!this.q[t].s.collapsed&&this.q[t].collapse&&this.q[t].collapse();e.callEvent&&(e.callEvent("onViewShow",[]),jeeplus.ui.each(e,this.Lw))},jd:function(e){if(!0===this.s.multi||this.nd)return!0;for(var t=0;t<this.q.length;t++)if(e!=this.q[t]&&!this.q[t].s.collapsed&&this.q[t].isVisible()&&!this.q[t].$nospace)return!0;return!1},$skin:function(){var e=this.defaults;jeeplus.skin.$active.accordionType&&(e.type=jeeplus.skin.$active.accordionType)}},jeeplus.ui.layout),jeeplus.protoUI({name:"headerlayout",defaults:{type:"accordion",multi:"mixed",collapsed:!1}},jeeplus.ui.accordion),jeeplus.DragControl={pd:jeeplus.toArray(["dummy"]),addDrop:function(e,t,i){(e=jeeplus.toNode(e)).jeeplus_drop=this.qd(t),i&&(e.jeeplus_master=!0)},qd:function(e){e=e||jeeplus.DragControl;var t=this.pd.find(e);return t<0&&(t=this.pd.length,this.pd.push(e)),t},UB:function(e){var t=jeeplus.DragControl,i=this.VB();if(i&&i.WB){t.v||t.createDrag(e);var n=t.Gd;t.v.style.left=e.x+t.left+(n.x_offset||0)+"px",t.v.style.top=e.y+t.top+(n.y_offset||0)+"px"}},addDrag:function(e,t){(e=jeeplus.toNode(e)).jeeplus_drag=this.qd(t),jeeplus.UE(e,jeeplus.env.mouse.down,this.rd,{bind:e}),jeeplus.UE(e,"dragstart",jeeplus.html.preventEvent)},rd:function(e){if(jeeplus.DragControl.sd){if(jeeplus.DragControl.td==e)return;jeeplus.DragControl.ud(),jeeplus.DragControl.destroyDrag(e)}jeeplus.DragControl.sd=this;var t=jeeplus.env.mouse.context(e);jeeplus.DragControl.vd=t,jeeplus.DragControl.td=e,jeeplus.DragControl.wd=jeeplus.event(document.body,jeeplus.env.mouse.move,jeeplus.DragControl.xd),jeeplus.DragControl.yd=jeeplus.event(document,jeeplus.env.mouse.up,jeeplus.DragControl.ud),jeeplus.html.addCss(document.body,"jeeplus_noselect",1)},ud:function(){jeeplus.DragControl.zd()},xd:function(e){var t=jeeplus.env.mouse.context(e),i=jeeplus.DragControl.VB();return i&&jeeplus.env.touch&&i.WB&&!jeeplus.Touch.qm||Math.abs(t.x-jeeplus.DragControl.vd.x)<5&&Math.abs(t.y-jeeplus.DragControl.vd.y)<5||(jeeplus.DragControl.zd(!0),!jeeplus.DragControl.v&&!jeeplus.DragControl.createDrag(jeeplus.DragControl.td))?void 0:(jeeplus.DragControl.sendSignal("start"),jeeplus.DragControl.wd=jeeplus.event(document.body,jeeplus.env.mouse.move,jeeplus.DragControl.Ad),jeeplus.DragControl.yd=jeeplus.event(document,jeeplus.env.mouse.up,jeeplus.DragControl.Bd),jeeplus.DragControl.Ad(e),jeeplus.env.touch?jeeplus.html.preventEvent(e):void 0)},Bd:function(e){jeeplus.DragControl.zd(),jeeplus.DragControl.td=null,jeeplus.DragControl.Cd&&(jeeplus.DragControl.$drop(jeeplus.DragControl.sd,jeeplus.DragControl.Cd,e),jeeplus.DragControl.$dragOut(jeeplus.DragControl.sd,jeeplus.DragControl.Cd,null,e)),jeeplus.DragControl.destroyDrag(e),jeeplus.DragControl.sendSignal("stop")},zd:function(e){this.wd=jeeplus.eventRemove(this.wd),this.yd=jeeplus.eventRemove(this.yd),e||jeeplus.html.removeCss(document.body,"jeeplus_noselect")},Ad:function(e){var t=jeeplus.DragControl,i=jeeplus.html.pos(e),n=jeeplus.env.mouse.context(e),s=t.$dragPos(i,e),a=t.Gd;if(t.v.style.top=i.y+t.top+(s||!a.y_offset?0:a.y_offset)+"px",t.v.style.left=i.x+t.left+(s||!a.x_offset?0:a.x_offset)+"px",t.Ed)t.Ed=!1;else{var r=n.target=jeeplus.env.touch?document.elementFromPoint(n.x,n.y):n.target,o=jeeplus.env.touch?n:e;t.Fd(r,o)}return jeeplus.html.preventEvent(e)},Fd:function(e,t){for(;e&&"BODY"!=e.tagName;){if(e.jeeplus_drop)return this.Cd&&(this.Cd!=e||e.jeeplus_master)&&this.$dragOut(this.sd,this.Cd,e,t),!this.Cd||this.Cd!=e||e.jeeplus_master?(this.Cd=null,this.Dd=this.$dragIn(jeeplus.DragControl.sd,e,t),void(this.Dd&&(this.Cd=e))):void 0;e=e.parentNode}this.Cd&&(this.Cd=this.Dd=this.$dragOut(this.sd,this.Cd,null,t))},sendSignal:function(e){jeeplus.DragControl.active="start"==e},getMaster:function(e){return this.pd[e.jeeplus_drag||e.jeeplus_drop]},getContext:function(){return this.Gd},getNode:function(){return this.v},createDrag:function(e){var t=jeeplus.DragControl,i=t.sd;t.Gd={};var n,s=this.pd[i.jeeplus_drag];if(s.$dragCreate){if(!(n=s.$dragCreate(i,e)))return!1;this.ZB(e),n.style.position="absolute"}else{var a=t.$drag(i,e);if(t.ZB(e),!a)return!1;(n=document.createElement("DIV")).innerHTML=a,n.className="jeeplus_drag_zone",document.body.appendChild(n);var r=t.Gd;r.html&&jeeplus.env.pointerevents&&(r.x_offset=-Math.round(.5*n.offsetWidth),r.y_offset=-Math.round(.75*n.offsetHeight))}return n.style.zIndex=Math.max(n.style.zIndex,jeeplus.ui.zIndex()),jeeplus.DragControl.Hd=jeeplus.event(n,jeeplus.env.mouse.move,jeeplus.DragControl.Id),jeeplus.DragControl.Gd.from||(jeeplus.DragControl.Gd={source:i,from:i}),jeeplus.DragControl.v=n,!0},Id:function(){jeeplus.DragControl.Ed=!0},destroyDrag:function(e){var t=jeeplus.DragControl.sd,i=this.pd[t.jeeplus_drag];i&&i.$dragDestroy?(jeeplus.DragControl.Hd=jeeplus.eventRemove(jeeplus.DragControl.Hd),jeeplus.DragControl.v&&i.$dragDestroy(t,jeeplus.DragControl.v,e)):jeeplus.html.remove(jeeplus.DragControl.v),jeeplus.DragControl.Dd=jeeplus.DragControl.sd=jeeplus.DragControl.Cd=jeeplus.DragControl.v=null},VB:function(){return jeeplus.DragControl.pd[jeeplus.DragControl.sd.jeeplus_drag]},top:5,left:5,ZB:function(e){var t=jeeplus.DragControl,i=t.vd,n=t.Gd;if(void 0!==n.x_offset&&void 0!==n.y_offset)return null;if(n.x_offset=n.y_offset=0,jeeplus.env.pointerevents){var s=jeeplus.DragControl.VB();if(s.WB&&s!==this){var a=s.WB(i,e);a&&(n.x_offset=a.x-i.x,n.y_offset=a.y-i.y)}}},$dragPos:function(e,t){var i=this.pd[jeeplus.DragControl.sd.jeeplus_drag];return i.$dragPos&&i!=this?(i.$dragPos(e,t,jeeplus.DragControl.v),!0):void 0},$dragIn:function(e,t,i){var n=this.pd[t.jeeplus_drop];return n.$dragIn&&n!=this?n.$dragIn(e,t,i):(t.className=t.className+" jeeplus_drop_zone",t)},$dragOut:function(e,t,i,n){var s=this.pd[t.jeeplus_drop];return s.$dragOut&&s!=this?s.$dragOut(e,t,i,n):(t.className=t.className.replace("jeeplus_drop_zone",""),null)},$drop:function(e,t,i){var n=this.pd[t.jeeplus_drop];return jeeplus.DragControl.Gd.from=jeeplus.DragControl.getMaster(e),n.$drop&&n!=this?n.$drop(e,t,i):void t.appendChild(e)},$drag:function(e,t){var i=this.pd[e.jeeplus_drag];return i.$drag&&i!=this?i.$drag(e,t):"<div style='"+e.style.cssText+"'>"+e.innerHTML+"</div>"}},jeeplus.attachEvent("onLongTouch",function(e){jeeplus.DragControl.sd&&jeeplus.DragControl.UB(e)}),jeeplus.DataMove={copy:function(e,t,i,n){var s=(n=n||{}).newId||e;i=i||this;var a=this.getItem(e);return i&&(a=i.Jd(a)),i.data.add(i.Jd(a,s),t,n.parent||0)},Kd:function(e,t,i){if(t&&e){var n=this.getIndexById(e);return n+(i==this&&i.getIndexById(t)<n?0:1)}},move:function(e,t,i,n){var s=(n=n||{}).newId||e;if((i=i||this).data){if(jeeplus.isArray(e)){3<e.length&&(this.$blockRender=i.$blockRender=!0);for(var a=0;a<e.length;a++){var r=this.move(e[a],t,i,n);t=i.Kd(r,e[a+1],this)}return this.$blockRender=i.$blockRender=!1,void(3<e.length&&(this.refresh(),i!=this&&i.refresh()))}r=e;var o=this.getItem(e);return i&&i!=this?(r=i.data.add(i.Jd(o,s),t,n.parent||0),this.data.remove(e)):(t<0&&(t=this.data.order.length-1),this.data.move(this.getIndexById(e),t),this.data.callEvent("onDataMove",[e,t,null,this.data.order[t+1]])),r}},moveUp:function(e,t){return this.move(e,this.getIndexById(e)-(t||1))},moveDown:function(e,t){return this.moveUp(e,-1*(t||1))},moveTop:function(e){return this.move(e,0)},moveBottom:function(e){return this.move(e,this.data.count()-1)},Jd:function(e,t){var i=jeeplus.extend({},e);return i.id=!t||this.data.pull[t]?jeeplus.uid():t,i.$template=null,this.s.externalData&&(i=this.s.externalData.call(this,i,t,e)),i}},jeeplus.Movable={move_setter:function(e){return e&&(this.Ld=jeeplus.clone(this.Ld),this.Ld.master=this,jeeplus.DragControl.addDrag(this.bd?this.bd:this.$view,this.Ld)),e},Ld:{$dragCreate:function(e,t){if(this.master.config.move){var i=jeeplus.html.offset(e),n=jeeplus.html.pos(t);return jeeplus.DragControl.top=i.y-n.y,jeeplus.DragControl.left=i.x-n.x,jeeplus.toNode(this.master.x)}},$dragDestroy:function(e,t){var i=this.master;i.s&&(i.s.top=parseInt(t.style.top,10),i.s.left=parseInt(t.style.left,10)),jeeplus.DragControl.top=jeeplus.DragControl.left=5,this.master.callEvent("onViewMoveEnd",[])},$dragPos:function(e,t){this.master.callEvent("onViewMove",[e,t])}}},jeeplus.Modality={Md:function(e){if(e){if(!this.Nd){this.Nd=jeeplus.html.create("div",{class:"jeeplus_modal"});var t=this.s.zIndex||jeeplus.ui.zIndex();this.Od=jeeplus.Pd,jeeplus.Pd=t,this.Nd.style.zIndex=t-1,this.x.style.zIndex=t,document.body.appendChild(this.Nd),document.body.style.overflow="hidden",jeeplus.UE(this.Nd,"click",jeeplus.bind(this.Vw,this))}}else if(this.Nd){jeeplus.html.remove(this.Nd),document.body.style.overflow="";var i=this.Od;setTimeout(function(){jeeplus.Pd=i},1),this.Nd=null}return e}},jeeplus.protoUI({name:"window",$init:function(e){this.x.innerHTML="<div class='jeeplus_win_content'><div class='jeeplus_win_head'></div><div class='jeeplus_win_body'></div></div>",this.w=this.x.firstChild,this.bd=this.w.childNodes[0],this.y=this.ed=this.w.childNodes[1],this.x.className+=" jeeplus_window",this.x.setAttribute("role","dialog"),this.x.setAttribute("tabindex","0"),this.fd=this.gd=null,this.s.Ob={top:!1,left:!1,right:!1,bottom:!1},e.id||(e.id=jeeplus.uid()),jeeplus.UE(this.w,"click",jeeplus.bind(this.Vw,this)),this.w.addEventListener&&jeeplus.UE(this.w,"click",function(){!this.s.zIndex&&this.s.toFront&&(this.x.style.zIndex=jeeplus.ui.zIndex())},{bind:this,capture:!0}),e.modal&&(this.my=!0),this.attachEvent("onViewMoveEnd",function(){this.s.position&&delete this.s.position})},Vw:function(e){var t=jeeplus.ui.et,i=t.find(this);-1==i&&(i=t.length-1),e.click_view=i,jeeplus.env.isIE8&&(e.srcElement.click_view=i)},getChildViews:function(){return this.fd?[this.fd,this.gd]:[this.gd]},zIndex_setter:function(e){return this.x.style.zIndex=e},Rb:function(){this.gd={destructor:function(){}}},Qb:function(e){this.gd.destructor(),this.gd=e,(this.gd.Xb=this).ed.appendChild(this.gd.x);var t=this.gd.x.style;t.borderTopWidth=t.borderBottomWidth=t.borderLeftWidth=t.borderRightWidth="1px",this.gd.s.Ob=jeeplus.clone(this.s.Ob),this.resize(!0)},show:function(e,t,i){if(!0===e){if(!this.s.hidden)return;e=null}if(!this.callEvent("onBeforeShow",arguments))return!1;var n,s,a;if(this.s.hidden=!1,this.x.style.zIndex=this.s.zIndex||jeeplus.ui.zIndex(),(this.s.modal||this.my)&&(this.Md(!0),this.my=null),(t=t||{}).pos||(t.pos=this.s.relative),e){"object"!=typeof e||e.tagName?(e=jeeplus.toNode(e),n=jeeplus.html.offset(e)):e.target||e.srcElement?(n=jeeplus.html.pos(e),s=20,a=5):n=e;var r=Math.max(window.innerWidth||0,document.body.offsetWidth),o=Math.max(window.innerHeight||0,document.body.offsetHeight);s=s||e.offsetWidth||0,a=a||e.offsetHeight||0;var l=this.ac,h=n.x,u=n.y,d=0,c=0,p=0,f=0,m=this.s.autofit;if(m){var g="node"===m,v=6;i="top",h=u=0,p=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft,r-n.x-s<l[0]&&"right"==t.pos&&!g&&(t.pos="left"),"right"==t.pos?(h=n.x+6+s,v=-a,i="left",d=Math.round(n.y+a/2),c=h-6):"left"==t.pos?(h=n.x-6-l[0]-1,v=-a,i="right",d=Math.round(n.y+a/2),c=h+l[0]+1):(h=n.x<p?p:r+p-n.x>l[0]?n.x:r+p-6-l[0],c=Math.round(n.x+s/2),c=Math.min(c,h+l[0]-18)),f=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop,(!l[1]||o+f-a-n.y-v>l[1]||g)&&"top"!=t.pos?(u=a+n.y+v-4,d||(i="top",d=u-6)):(u=n.y-v-l[1])<0?(u=0,"top"==i&&(i=!1)):d||(i="bottom",d=--u+l[1]+1)}var _=t.x||0,y=t.y||0,b=this.jG();b&&(u-=f,d-=f),this.setPosition(h+_,u+y),this.Rd&&(i&&this.s.point?this.Rd(i,c+_,d+y,b):this.Sd())}else this.Td(this.s.left,this.s.top);this.x.style.display="block",this.Ww=1,jeeplus.delay(function(){this.Ww=0},this,[],jeeplus.env.touch?400:100),this.Qd(),this.config.autofocus&&(this.Vd=jeeplus.UIManager.getFocus(),jeeplus.UIManager.setFocus(this)),-1==jeeplus.ui.et.find(this)&&jeeplus.ui.et.push(this),this.callEvent("onShow",[])},Fb:function(e){if(!(this.s.hidden||this.s.modal||this.Ww||e&&e.showpopup||jeeplus.Pd&&this.s.zIndex<=jeeplus.Pd)){if(e){var t=jeeplus.env.isIE8?e.srcElement.click_view:e.click_view;if(t||0===t||(t=-1),jeeplus.ui.et.find(this)<=t)return}this.hide()}},hidden_setter:function(e){return e?this.hide():this.show(),!!e},hide:function(e){if(!this.$destructed&&(e||!this.s.hidden)){if(this.s.modal&&this.Md(!1),"top"==this.s.position?jeeplus.animate(this.x,{type:"slide",x:0,y:-(this.dc+20),duration:300,callback:this.Wd,master:this}):this.Wd(),this.s.autofocus){var t=document.activeElement;t&&this.x&&(this.x.contains(t)||t===document.body)&&(jeeplus.UIManager.setFocus(this.Vd),this.Vd=null)}this.ny()}},ny:function(){var e=jeeplus.ui.et,t=e.find(this),i=e.length-1;if(-1<t)for(var n=i;t<n;n--)e[n].Sd&&e[n].hide();e.removeAt(t)},destructor:function(){this.Md(!1),jeeplus.html.remove(this.x),this.s.autofocus&&(jeeplus.B||jeeplus.UIManager.setFocus(this.Vd),this.Vd=null),this.ny(),this.Sd&&this.Sd(),jeeplus.Destruction.destructor.apply(this,[])},Wd:function(){this.$destructed||(this.x.style.display="none",this.s.hidden=!0,this.callEvent("onHide",[]))},close:function(){this.destructor()},Xd:function(e){e.borderless=!0},body_setter:function(e){return"object"!=typeof e&&(e={template:e}),this.Xd(e),(jeeplus.Xb=this).gd=jeeplus.ui.A(e),(this.gd.Xb=this).ed.appendChild(this.gd.x),e},head_setter:function(e){return!1===e||("object"!=typeof e&&(this.x.setAttribute("aria-label",e),e={template:e,padding:0}),e.borderless=!0,(jeeplus.Xb=this).fd=jeeplus.ui.A(e),(this.fd.Xb=this).bd.appendChild(this.fd.x)),e},getBody:function(){return this.gd},getHead:function(){return this.fd},adjust:function(){return this.resize()},resizeChildren:function(){this.gd&&this.resize()},resize:function(){jeeplus.ui.baseview.prototype.adjust.call(this),this.isVisible()&&this.Td(this.s.left,this.s.top)},jG:function(){if(this.s.master){var e=jeeplus.$$(this.s.master).getTopParentView().$view;return e&&"fixed"===e.style.position}return!1},Td:function(e,t){if(this.s.position||this.jG()){this.$view.style.position="fixed";var i=this.bc,n=this.dc;if(i<=0||n<=0)return;var s=window.innerWidth||document.documentElement.offsetWidth,a=window.innerHeight||document.documentElement.offsetHeight,r=Math.round((s-i)/2),o=Math.round((a-n)/2);if("function"==typeof this.s.position){var l={left:r,top:o,width:i,height:n,maxWidth:s,maxHeight:a};this.s.position.call(this,l),(l.width!=i||l.height!=n)&&this.$setSize(l.width,l.height),this.setPosition(l.left,l.top)}else"top"==this.s.position&&(o=jeeplus.animate.isSupported()?-1*n:10),this.s.position||(r=this.s.left||r,o=this.s.top||o),this.setPosition(r,o);"top"==this.s.position&&jeeplus.animate(this.x,{type:"slide",x:0,y:n-2*(this.s.padding||0),duration:300,callback:this.Yd,master:this})}else this.setPosition(e,t)},Yd:function(e){jeeplus.animate.clear(e),this.s.top=-2*(this.s.padding||0),this.setPosition(this.s.left,this.s.top)},setPosition:function(e,t){this.x.style.top=t+"px",this.x.style.left=e+"px",this.s.left=e,this.s.top=t},$getSize:function(e,t){var i=this.s.Ob;i&&(e+=(i.left?0:1)+(i.right?0:1),t+=(i.top?0:1)+(i.bottom?0:1)),this.s.head&&(t+=1);var n=this.gd.$getSize(0,0),s=0;if(this.fd){var a=this.fd.$getSize(0,0);a[3]==a[2]&&(this.s.headHeight=a[3]),t+=this.s.headHeight,s=a[0]}if(this.s.fullscreen){var r=window.innerWidth||document.body.clientWidth,o=window.innerHeight||document.body.clientHeight;return[r,r,o,o]}var l=jeeplus.ui.view.prototype.$getSize.call(this,0,0);return s&&1e5<n[1]&&(n[0]=Math.max(s,n[0])),l[1]=Math.min(l[1],(1e5<=n[1]&&1e5<=l[1]?Math.max(n[0],l[0]):n[1])+e),l[3]=Math.min(l[3],(1e5<=n[3]&&1e5<=l[3]?Math.max(n[2],l[2]):n[3])+t),l[0]=Math.min(Math.max(l[0],n[0]+e),l[1]),l[2]=Math.min(Math.max(l[2],n[2]+t),l[3]),l},$setSize:function(e,t){jeeplus.ui.view.prototype.$setSize.call(this,e,t),e=this.bc,t=this.dc,!1===this.s.head?(this.bd.style.display="none",this.gd.$setSize(e,t)):(this.fd.$setSize(e,this.s.headHeight),this.gd.$setSize(e,t-this.s.headHeight))},$skin:function(){this.defaults.headHeight=jeeplus.skin.$active.barHeight},defaults:{top:0,left:0,autofit:!0,relative:"bottom",body:"",head:"",hidden:!0,autofocus:!0,minWidth:300,minHeight:200}},jeeplus.ui.view,jeeplus.Movable,jeeplus.Modality,jeeplus.EventSystem),jeeplus.protoUI({name:"popup",defaults:{point:!0},$init:function(){this.s.head=!1,this.$view.className+=" jeeplus_popup",jeeplus.attachEvent("onClick",jeeplus.bind(this.Fb,this)),this.attachEvent("onHide",this.Sd)},$skin:function(){this.defaults.headHeight=jeeplus.skin.$active.barHeight,this.defaults.padding=jeeplus.skin.$active.popupPadding},close:function(){jeeplus.html.remove(this.$d),jeeplus.ui.window.prototype.close.call(this)},$getSize:function(e,t){return jeeplus.ui.window.prototype.$getSize.call(this,e+2*this.s.padding,t+2*this.s.padding)},$setSize:function(e,t){jeeplus.ui.view.prototype.$setSize.call(this,e,t),e=this.bc-2*this.s.padding,t=this.dc-2*this.s.padding,this.w.style.padding=this.s.padding+"px",this.bd.style.display="none",this.gd.$setSize(e,t)},Xd:function(){},head_setter:function(){},Rd:function(e,t,i,n){this.Sd(),document.body.appendChild(this.$d=jeeplus.html.create("DIV",{class:"jeeplus_point_"+e},"")),this.$d.style.zIndex=jeeplus.ui.zIndex(),this.$d.style.position=n?"fixed":"absolute",this.$d.style.top=i+"px",this.$d.style.left=t+"px"},Sd:function(){this.$d=jeeplus.html.remove(this.$d)}},jeeplus.ui.window),jeeplus.ui.et=jeeplus.toArray(),jeeplus.ResizeArea={resize_setter:function(e){return e&&!this.Yz&&this.Zz(),e},Zz:function(){if(!this.$z){var e=this.x;e.firstChild&&((e=e.firstChild).style.position="relative"),this.$z=jeeplus.html.create("DIV",{class:"jeeplus_resize_handle",jeeplus_disable_drag:"true"}),e.appendChild(this.$z),jeeplus.UE(this.$z,jeeplus.env.mouse.down,this._z,{bind:this})}},aA:function(e,t){if(!this.bA){this.bA=jeeplus.html.create("div",{class:"jeeplus_resize_frame"},""),document.body.appendChild(this.bA);var i=jeeplus.html.offset(this.x);this.bA.style.left=i.x+"px",this.bA.style.top=i.y+"px",this.bA.style.zIndex=jeeplus.ui.zIndex()}this.bA.style.width=e+"px",this.bA.style.height=t+"px"},_z:function(e){this.config.resize&&(jeeplus.html.addCss(document.body,"jeeplus_noselect jeeplus_resize_cursor"),this.cA=jeeplus.html.offset(this.x),this.dA=jeeplus.event(document.body,jeeplus.env.mouse.move,this.eA,{bind:this}),this.fA=jeeplus.event(document.body,jeeplus.env.mouse.up,this.gA,{bind:this}))},eA:function(e){if(!1!==this.cA){var t=jeeplus.html.pos(e),i={x:t.x-this.cA.x+10,y:t.y-this.cA.y+10};if(this.$resizeMove)this.$resizeMove(i);else if(Math.abs(this.cA.x-t.x)<(this.config.minWidth||100)||Math.abs(this.cA.y-t.y)<(this.config.minHeight||100))return;this.hA=i,this.aA(i.x,i.y)}},gA:function(){this.bA&&(this.bA=jeeplus.html.remove(this.bA)),jeeplus.html.removeCss(document.body,"jeeplus_resize_cursor"),jeeplus.html.removeCss(document.body,"jeeplus_noselect"),jeeplus.eventRemove(this.dA),jeeplus.eventRemove(this.fA),this.hA&&(this.$resizeEnd?this.$resizeEnd(this.hA):(this.config.width=this.hA.x,this.config.height=this.hA.y,this.resize())),this.cA=this.hA=!1,this.callEvent("onViewResize",[])}},jeeplus.extend(jeeplus.ui.window,jeeplus.ResizeArea),jeeplus.protoUI({name:"suggest",defaults:{autofocus:!1,type:"list",keyPressTimeout:1,body:{yCount:10,autoheight:!0,body:!0,select:!0,borderless:!0,navigation:!0},filter:function(e,t){return 0===e.value.toString().toLowerCase().indexOf(t.toLowerCase())}},template_setter:jeeplus.template,filter_setter:function(e){return jeeplus.toFunctor(e,this.$scope)},$init:function(e){var t={};jeeplus.extend(t,jeeplus.copy(this.defaults.body)),t.view=e.type||this.defaults.type;var i=this.Jt(t);e.body&&jeeplus.extend(i,e.body,!0),e.data&&(i.data=e.data),e.url&&(i.url=e.url),e.datatype&&(i.datatype=e.datatype),e.id&&(t.id=t.id||e.id+"_"+t.view),e.body=t,this.$ready.push(this._d),this.attachEvent("onShow",function(){if(this.s.master){var e=jeeplus.$$(this.s.master);if(e)(e.JA?e.JA():e.getInputNode()).setAttribute("aria-expanded","true")}this.ke()}),this.attachEvent("onHide",function(){if(this.s.master){var e=jeeplus.$$(this.s.master);if(e)(e.JA?e.JA():e.getInputNode()).setAttribute("aria-expanded","false")}}),this.oy={}},Jt:function(e){return e},Rs:function(e){var t,i,n="";e&&this.s.master&&((i=(t=jeeplus.$$(this.s.master)).getInputNode())&&t.$setValueHere?t.$setValueHere(e.value):i&&(t.options_setter?n=this.getItemText(e.id):e.value&&(n=t.YE?t.YE(e.value):e.value.toString()),jeeplus.isUndefined(i.value)?i.innerHTML=n:i.value=n.replace(/<[^>]*>/g,""))),(i=i||this.ae)&&i.focus()},setMasterValue:function(e,t){var i=e.id?this.getItemText(e.id):e.text||e.value;if(this.s.master){var n=jeeplus.$$(this.s.master);t&&e.id?n.refresh():n.options_setter?n.setValue(e.$empty?"":e.id):n.setValueHere?n.setValueHere(i):n.setValue(i)}else this.ae&&(this.ae.value=i);t||(this.hide(!0),this.ae&&this.ae.focus()),this.callEvent("onValueSuggest",[e,i]),jeeplus.delay(function(){jeeplus.callEvent("onEditEnd",[])})},getMasterValue:function(){return this.s.master?jeeplus.$$(this.s.master).getValue():null},getItemId:function(e){var t=this.getList();for(var i in t.type,t.data.pull){var n=t.getItem(i);if(this.s.filter.call(this,n,e))return n.id}},getItemText:function(e){var t=this.getList().getItem(e);if(!t)return this.oy[e]||"";if(this.s.template)return this.s.template.call(this,t,this.type);if(this.s.textValue)return""+t[this.s.textValue];var i=this.getList().type,n=i.template.call(i,t,i);return this.oy[e]=n},getSuggestion:function(){var e,t=this.getList(),i=t.data.order;return t.getSelectedId&&(e=t.getSelectedId()),i.length&&(!e||i.find(e)<0)&&(e=i[0]),e&&"object"==typeof e&&(e+=""),e},getList:function(){return this.gd},_d:function(){var t=this.getList(),e=this.s.type;t.count?(t.attachEvent("onItemClick",jeeplus.bind(function(e){this.setMasterValue(t.getItem(e))},this)),t.data.attachEvent("onstoreupdated",jeeplus.bind(function(e,t,i){"delete"==i&&e==this.getMasterValue()?this.setMasterValue({id:"",text:""},1):"update"==i&&e==this.getMasterValue()&&this.setMasterValue(t,1)},this)),t.data.attachEvent("onAfterFilter",jeeplus.bind(this.be,this)),t.data.attachEvent("onStoreLoad",jeeplus.bind(this.be,this)),jeeplus.isUndefined(this.s.fitMaster)&&(this.s.fitMaster=!0)):"calendar"==e?(t.attachEvent("onDateSelect",function(e){this.getParentView().setMasterValue({value:t.getSelectedDate()},t.config.multiselect)}),t.attachEvent("onTodaySet",function(e){this.getParentView().setMasterValue({value:e})}),t.attachEvent("onDateClear",function(e){this.getParentView().setMasterValue({value:e})})):"colorboard"==e&&t.attachEvent("onItemClick",function(e){this.getParentView().setMasterValue({value:e})})},input_setter:function(e){return this.linkInput(e),0},linkInput:function(t){var i;t.getInputNode?(i=t.getInputNode()).jeeplus_master_id=t.s.id:i=jeeplus.toNode(t),jeeplus.UE(i,"keydown",function(e){i==document.body&&!this.isVisible()||(t.config?t.config.readonly:i.getAttribute("readonly"))||this.ce(e)},{bind:this}),t.JA&&(i=t.JA()),i.setAttribute("aria-autocomplete","list"),i.setAttribute("aria-expanded","false"),"DIV"===i.tagName&&(i.setAttribute("aria-live","assertive"),i.setAttribute("aria-atomic","true")),this.pt=!0},ce:function(e){e=e||event;var i=this.getList(),n=e.target||e.srcElement;if(n!=document.body&&"jeeplus_clipbuffer"!=n.className){this.ae=n,this.s.master=n.jeeplus_master_id,window.clearTimeout(this.de);var t=e.keyCode;if(16!=t&&17!=t)return 9==t?this.ee(this,i):27==t?this.fe(this,i):13==t?this.$enterKey(this,i):this.he(e)?(jeeplus.html.preventEvent(e),!1):void(jeeplus.isUndefined(n.value)||(clearTimeout(this.dt),this.dt=jeeplus.delay(function(){if(this.pt||jeeplus.UIManager.getFocus()==jeeplus.$$(this.s.master)){this.ie=!0;var t=n.value;i.config.dataFeed?i.filter("value",t):i.filter&&i.filter(jeeplus.bind(function(e){return this.s.filter.call(this,e,t)},this))}},this,[],this.s.keyPressTimeout)))}},be:function(){if(!this.ie)return!0;this.ie=!1,0<this.getList().count()?(this.adjust(),this.isVisible()||(this.je=!0),this.show(this.ae,null,!0),this.je=!1):(this.hide(!0),this.ae=null)},show:function(e){if(!this.isVisible()){var t=this.getList();t.filter&&!this.je&&t.filter(""),this.$customWidth&&(this.s.fitMaster||!this.s.width||jeeplus.isUndefined(this.s.fitMaster))&&this.$customWidth(e),e.tagName&&this.s.fitMaster&&(this.s.width=e.offsetWidth-2),t.Np&&t.render(),this.adjust(),"INPUT"==e.tagName&&(this.ae=e)}jeeplus.ui.popup.prototype.show.apply(this,arguments)},ke:function(e){e=e||this.getList();var t=this.getMasterValue();e.select&&e.showItem?t&&e.exists&&e.exists(t)?(e.select(t),e.showItem(t)):(e.unselect(),e.showItem(e.getFirstId())):e.setValue&&(this.s.master&&(t=jeeplus.$$(this.s.master).$prepareValue(t)),e.setValue(t))},$enterKey:function(e,t){var i;e.isVisible()?(t.count&&t.count()?(i=t.getSelectedId(!1,!0),1==t.count()&&t.getFirstId()!=i&&(i=t.getFirstId()),i&&(i=t.getItem(i))):t.getSelectedDate&&t.getSelectedDate()?i={value:t.getSelectedDate()}:t.getValue&&t.getValue()&&(i={value:t.getValue()}),i&&this.setMasterValue(i),e.hide(!0)):e.show(this.ae)},fe:function(e,t){return e.hide(!0)},ee:function(e,t){return e.hide(!0)},he:function(e){var t,i=this.getList(),n=e.keyCode;if(i.moveSelection&&n<41&&32<n&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey){if(40===n){this.isVisible()||this.show(this.ae),i.moveSelection("down",!1,!1)}else{if(i.count&&38!==n||!i.count&&!i.isVisible())return!1;var s;33==n&&(s="pgup"),34==n&&(s="pgdown"),35==n&&(s="bottom"),36==n&&(s="top"),37==n&&(s="left"),38==n&&(s="up"),39==n&&(s="right"),i.moveSelection(s,!1,!1)}return i.count?t=i.getSelectedItem():i.getSelectedDate?t={value:i.getVisibleDate()}:i.getValue&&(t={value:i.getValue()}),this.Rs(t),!0}return!1},getValue:function(){var e=this.getList(),t=(e.getValue?e.getValue():e.getSelectedId())||"";if(t=t.id||t,e.getItem){var i=e.getItem(t);if(i&&i.$empty)return""}return t},setValue:function(e){var t=this.getList();e?t.exists(e)&&(t.select(e),t.showItem(e)):(t.unselect(),t.showItem(t.getFirstId()))}},jeeplus.ui.popup),jeeplus.HTMLOptions={$init:function(e){(jeeplus.skin.$active.customRadio||this.addOption)&&jeeplus.UE(this.$view,"keydown",this.ID,{bind:this})},ub:function(){var e=this.Ie();if(e)for(var t=0;t<e.length;t++)"0"==e[t].getAttribute("tabindex")&&e[t].focus()},JD:function(){var e=this.Ie();if(e)for(var t=0;t<e.length;t++)"0"==e[t].getAttribute("tabindex")&&e[t].blur()},ID:function(e){var t=e.which||e.keyCode;if((this.addOption?34:36)<t&&t<41){jeeplus.html.preventEvent(e);var i,n=this.Ie();if(35==t)i=n.length-1;else if(36===t)i=0;else for(var s=37===t||38===t?-1:1,a=0;a<n.length;a++)if("0"==n[a].getAttribute("tabindex")){(i=a+s)<0?i=n.length-1:i>=n.length&&(i=0);break}if(!jeeplus.isUndefined(i)){var r=this.addOption?n[i].getAttribute("button_id"):n[i].value;jeeplus.skin.$active.customRadio&&!this.addOption&&(n=this.$view.getElementsByTagName("BUTTON")),this.setValue(r),n[i].focus()}}}},jeeplus.attachEvent("onClick",function(e){var t=jeeplus.$$(e);if(t&&t.touchable){jeeplus.UIManager.applyChanges(t),t.getNode(e);var i=e.target||e.srcElement;if("jeeplus_disabled"==i.className)return;var n="";if(i.className&&0===i.className.toString().indexOf("jeeplus_view"))return;for(t&&jeeplus.UIManager.sb(t);i&&i.parentNode;){if(i.getAttribute){if(i.getAttribute("view_id"))break;if(n=i.className){n=n.toString().split(" ");for(var s=0;s<n.length;s++)if(t.on_click[n[s]]){if(!1===t.on_click[n[s]].call(t,e,t.s.id,i))return}}}i=i.parentNode}if(t.s.click){var a=jeeplus.toFunctor(t.s.click,t.$scope);a&&a.call&&a.call(t,t.s.id,e)}var r=t.s.popup;if(t.s.popup&&!t.s.readonly)"object"!=typeof r||r.name||(r=t.s.popup=jeeplus.ui(r).s.id),(r=jeeplus.$$(r)).isVisible()||(r.s.master=t.s.id,r.show(t.getInputNode()||t.getNode(),null,!0));t.callEvent("onItemClick",[t.s.id,e])}}),jeeplus.protoUI({name:"button",touchable:!0,$skin:function(){this.defaults.height=jeeplus.skin.$active.buttonHeight||jeeplus.skin.$active.inputHeight,this.le=jeeplus.skin.$active.labelTopHeight||15,this.ZE=jeeplus.skin.$active.borderWidth},defaults:{template:function(e,t){var i=t.$renderInput(e,t);return e.badge&&(i=i.replace("</button>","<span class='jeeplus_badge'>"+e.badge+"</span></button>")),"<div class='jeeplus_el_box' style='width:"+e.awidth+"px; height:"+e.aheight+"px'>"+i+"</div>"},label:"",borderless:!0},$renderInput:function(e){var t="class='jeeplustype_"+(e.type||"base")+"' ";return"<button type='button' "+(e.popup?"aria-haspopup='true'":"")+t+">"+jeeplus.template.escape(e.label||e.value)+"</button>"},$init:function(e){this.x.className+=" jeeplus_control jeeplus_el_"+(this.$cssName||this.name),this.data=this.s,this.y=this.x,this.$B(e)},hotkey_setter:function(e){var n=this;this.Bt(e,function(e,t){var i=n.$view.firstChild;jeeplus.html.triggerEvent(i,"MouseEvents","click"),jeeplus.html.preventEvent(t)})},Bt:function(e,t,i){var n=jeeplus.UIManager.addHotKey(e,t,i);this.attachEvent("onDestruct",function(){jeeplus.UIManager.removeHotKey(n,t,i)})},tooltip_setter:function(e){var t=this.re()||this.$view.firstChild;return t&&(t.title=e),e},type_setter:function(e){return this.ne[e]&&(this.$renderInput=jeeplus.template(this.ne[e])),this.oe=("prev"==e||"next"==e)&&this.pe,e},ne:{htmlbutton:"<button type='button' class='jeeplus_el_htmlbutton jeeplustype_base'>#label#</button>",prev:"<input type='button' class='jeeplustype_prev' value='#label#' /><div class='jeeplus_el_arrow jeeplustype_prev_arrow'></div>",next:"<input type='button' class='jeeplustype_next' value='#label#' /><div class='jeeplus_el_arrow jeeplustype_next_arrow'></div>",imageButton:"<button type='button' class='jeeplus_img_btn_abs jeeplustype_base' style='width:100%; line-height:#cheight#px'><div class='jeeplus_image' style='width:#dheight#px;height:#dheight#px;background-image:url(#image#);'> </div> #label#</button>",imageButtonTop:"<button type='button' class='jeeplus_img_btn_abs jeeplus_img_btn_abs_top jeeplustype_base'><div class='jeeplus_image' style='width:100%;height:100%;background-image:url(#image#);'> </div> <div class='jeeplus_img_btn_text'>#label#</div></button>",image:"<button type='button' class='jeeplus_img_btn' style='line-height:#cheight#px;'><div class='jeeplus_image' style='width:#cheight#px;height:#cheight#px;background-image:url(#image#);'> </div> #label#</button>",imageTop:"<button type='button' class='jeeplus_img_btn_top'><div class='jeeplus_image' style='width:100%;height:100%;background-image:url(#image#);'></div> <div class='jeeplus_img_btn_text'>#label#</div></button>",icon:"<button type='button' class='jeeplus_img_btn' style='line-height:#cheight#px;'><span class='jeeplus_icon_btn fa-#icon#' style='max-width:#cheight#px;'></span>#label#</button>",iconButton:"<button type='button' class='jeeplus_img_btn_abs jeeplustype_base' style='width:100%;'><span class='jeeplus_icon fa-#icon#'></span> #label#</button>",iconTop:"<button type='button' class='jeeplus_img_btn_top' style='width:100%;top:4px;text-align:center;'><span class='jeeplus_icon fa-#icon#'></span><div class='jeeplus_img_btn_text'>#label#</div></button>",iconButtonTop:"<button type='button' class='jeeplus_img_btn_abs jeeplus_img_btn_abs_top jeeplustype_base' style='width:100%;top:0px;text-align:center;'><span class='jeeplus_icon fa-#icon#'></span><div class='jeeplus_img_btn_text'>#label#</div></button>"},qe:function(){for(var e=[],t=["input","select","textarea","button"],i=0;i<t.length;i++)for(var n=this.$view.getElementsByTagName(t[i]),s=0;s<n.length;s++)e.push(n[s]);return e},disable:function(){var e,t,i=this.re();if(jeeplus.ui.baseview.prototype.disable.apply(this,arguments),i&&-1==i.className.indexOf(" jeeplus_disabled_box")){i.className+=" jeeplus_disabled_box";var n=this.qe();for(e=0;e<n.length;e++)n[e].setAttribute("disabled",!0);if((t=this.getInputNode())&&"div"==t.tagName.toLowerCase()&&(this.KD=t.getAttribute("tabIndex"),t.removeAttribute("tabIndex")),"top"==this.s.labelPosition){var s=this.y.firstChild;s&&(s.className+=" jeeplus_disabled_top_label")}}},enable:function(){jeeplus.ui.baseview.prototype.enable.apply(this,arguments);var e,t=this.re();if(t){t.className=t.className.replace(" jeeplus_disabled_box","");for(var i=this.qe(),n=0;n<i.length;n++)i[n].removeAttribute("disabled");if((e=this.getInputNode())&&!jeeplus.isUndefined(this.KD)&&e.setAttribute("tabIndex",this.KD),"top"==this.s.labelPosition){var s=this.y.firstChild;s&&(s.className=s.className.replace(" jeeplus_disabled_top_label",""))}}},$setSize:function(e,t){jeeplus.ui.view.prototype.$setSize.call(this,e,t)&&this.render()},setValue:function(e){e=this.$prepareValue(e);var t=this.s.value;return!this.$compareValue(t,e)&&(this.s.value=e,this.se&&this.$setValue(e),void this.callEvent("onChange",[e,t]))},$compareValue:function(e,t){return"number"==typeof t&&(t=t.toString()),"number"==typeof e&&(e=e.toString()),e==t},$prepareValue:function(e){return this.VC(e,!1)},VC:function(e){return e},$setValue:function(e){var t=this.getInputNode();t&&("BUTTON"==t.tagName?t.innerHTML=e:t.value=e)},getValue:function(){var e=this.se?this.$getValue():this.s.value;return void 0===e?"":e},$getValue:function(){return this.s.value||""},focus:function(){if(!this.s.disabled){var e=this.getInputNode();e&&e.focus&&e.focus()}},blur:function(){var e=this.getInputNode();e&&e.blur&&e.blur()},getInputNode:function(){return this.y.getElementsByTagName("input")[0]||this.y.getElementsByTagName("button")[0]},re:function(){for(var e=0;e<this.y.childNodes.length;e++)if(0<=this.y.childNodes[e].className.indexOf("jeeplus_el_box"))return this.y.childNodes[e];return null},ue:Math.sqrt(2),pe:function(){var e=this.s,t=this.re().childNodes[1],i=t.previousSibling,n="next"==e.type?"right":"left",s=e.aheight-2*jeeplus.skin.$active.inputPadding-2*this.ZE,a=s*this.ue/2;t.style.width=a+"px",t.style.height=a+"px",t.style.top=(s-a)/2+jeeplus.skin.$active.inputPadding+"px",t.style[n]=(s-a)/2+this.ue/2+"px",i.style.width=e.awidth-s/2-2+"px",i.style.height=s+2+"px",i.style[n]=s/2+2+"px",i.style.top=jeeplus.skin.$active.inputPadding+"px"},$B:function(e){(e=e||this.s).autowidth&&(e.width=jeeplus.html.getTextSize(e.value||e.label,"jeeplusbutton").width+(e.badge?15:0)+("iconButton"===e.type?30:0)+("icon"===e.type?20:0))},ve:function(){this.we=this.s.inputWidth||(2<this.bc-this.s.width?this.s.width:0)||this.bc,this.xe=this.s.inputHeight||this.zy||0},resize:function(){return this.$B(),jeeplus.ui.view.prototype.resize.apply(this,arguments)},render:function(){if(this.ve(),this.s.awidth=this.we||this.bc,this.s.aheight=this.xe||this.dc,this.s.bheight=this.s.aheight+2,this.s.cheight=this.s.aheight-2*jeeplus.skin.$active.inputPadding,this.s.dheight=this.s.cheight-2,jeeplus.AtomRender.render.call(this)){if(this.se=!0,this.oe&&this.oe(),this.s.align){var e=this.y.firstChild;switch("top"==this.s.labelPosition&&e.nextSibling&&(e=e.nextSibling),this.s.align){case"right":e.style.cssFloat="right";break;case"center":e.style.display="inline-block",e.parentNode.style.textAlign="center";break;case"middle":e.style.marginTop=Math.round((this.dc-this.xe)/2)+"px";break;case"bottom":e.style.marginTop=this.dc-this.xe+"px";break;case"left":e.style.cssFloat="left"}}this.$render&&this.$render(this.data),this.s.disabled&&this.disable(),this.s.tooltip&&this.define("tooltip",this.s.tooltip),this.ze&&(this.ze(this.data),this.ze=0)}},refresh:function(){this.render()},on_click:{Ae:function(e,t){var i=jeeplus.html.locate(e,"button_id");i&&this.callEvent("onBeforeTabClick",[i,e])&&(this.setValue(i),this.callEvent("onAfterTabClick",[i,e]))},jeeplus_all_segments:function(e,t){this.on_click.Ae.call(this,e,t)},jeeplus_all_tabs:function(e,t){this.on_click.Ae.call(this,e,t)},jeeplus_inp_counter_next:function(e,t,i){this.s.readonly||this.next()},jeeplus_inp_counter_prev:function(e,t,i){this.s.readonly||this.prev()},jeeplus_input_icon:function(e,t,i){this.getInputNode().focus()},jeeplus_inp_checkbox_border:function(e,t,i){this.s.disabled||"DIV"==(e.target||e.srcElement).tagName||this.s.readonly||this.toggle()},jeeplus_inp_checkbox_label:function(e,t,i){this.s.readonly||this.toggle()},jeeplus_inp_radio_border:function(e,t,i){var n=jeeplus.html.locate(e,"radio_id");this.setValue(n)},jeeplus_inp_radio_label:function(e,t,i){return i=i.parentNode.getElementsByTagName("input")[0],this.on_click.jeeplus_inp_radio_border.call(this,i,t,i)},jeeplus_tab_more_icon:function(e,t,i){this.getPopup().resize(),this.getPopup().show(i,null,!0)},jeeplus_tab_close:function(e,t,i){var n=jeeplus.html.locate(e,"button_id");n&&this.callEvent("onBeforeTabClose",[n,e])&&this.removeOption(n)}},Be:function(e){for(var t=0;t<e.length;t++)"string"==typeof e[t]?e[t]={id:e[t],value:e[t]}:(jeeplus.isUndefined(e[t].id)&&(e[t].id=e[t].value),jeeplus.isUndefined(e[t].value)&&(e[t].value=e[t].id));return e},Yx:function(e){var t=e?e.placeholder:this.s.placeholder;return t?"<span class='jeeplus_placeholder'>"+t+"</span>":""}},jeeplus.ui.view,jeeplus.AtomRender,jeeplus.Settings,jeeplus.EventSystem),jeeplus.protoUI({name:"label",defaults:{template:"<div style='height:100%;line-height:#cheight#px'>#label#</div>"},$skin:function(){this.defaults.height=jeeplus.skin.$active.inputHeight},focus:function(){return!1},re:function(){return this.y.firstChild},setHTML:function(e){this.s.template=function(){return e},this.refresh()},setValue:function(e){this.s.label=e,jeeplus.ui.button.prototype.setValue.apply(this,arguments)},$setValue:function(e){this.y.firstChild.innerHTML=e},oe:function(){},$B:function(e){(e=e||this.s).autowidth&&(e.width=jeeplus.html.getTextSize(e.value||e.label,"jeeplus_el_label").width)}},jeeplus.ui.button),jeeplus.protoUI({name:"icon",$skin:function(){this.defaults.height=jeeplus.skin.$active.inputHeight},defaults:{template:function(e){return"<button type='button' style='height:100%;width:100%;' class='jeeplus_icon_button'><span class='jeeplus_icon fa-"+e.icon+" '></span>"+(e.badge?"<span class='jeeplus_badge'>"+e.badge+"</span>":"")+"</button>"},width:33},oe:function(){},$setValue:function(){}},jeeplus.ui.button),jeeplus.protoUI({name:"text",Ce:!0,De:function(){this.Ce&&(this._E||jeeplus.UE(this.getInputNode(),"change",this.Xy,{bind:this}),this.s.suggest&&jeeplus.$$(this.s.suggest).linkInput(this))},Xy:function(){var e=this.getValue();e!=this.s.value?this.setValue(e,!0):this.nH&&this.$setValue(e)},$skin:function(){this.defaults.height=jeeplus.skin.$active.inputHeight,this.defaults.inputPadding=jeeplus.skin.$active.inputPadding,this.$E=jeeplus.skin.$active.inputSpacing},$init:function(e){"top"==e.labelPosition&&jeeplus.isUndefined(e.height)&&this.defaults.height&&(e.height=this.defaults.height+this.le),this.Ns=[],this.attachEvent("onAfterRender",this.De),this.attachEvent("onBlur",function(){this._E&&this._E()})},$renderIcon:function(){var e=this.s;if(e.icon){var t=e.aheight-2*e.inputPadding,i=(t-18)/2-1,n=this.addSection?"role='button' tabindex='0' aria-label='"+jeeplus.i18n.aria["multitext"+(e.mode||"")+"Section"]+"'":"";return"<span style='height:"+(t-i)+"px;padding-top:"+i+"px;' class='jeeplus_input_icon fa-"+e.icon+"' "+n+"></span>"}return""},relatedView_setter:function(e){return this.attachEvent("onChange",function(){var e=this.getValue(),t=this.s.relatedAction,i=this.s.relatedView,n=jeeplus.$$(i);if(!n){var s=this.getTopParentView();s&&s.$$&&(n=s.$$(i))}"enable"==t?e?n.enable():n.disable():e?n.show():n.hide()}),e},validateEvent_setter:function(e){return"blur"==e&&this.attachEvent("onBlur",this.validate),"key"==e&&this.attachEvent("onTimedKeyPress",this.validate),e},validate:function(){var e=this.s.validate;!e&&this.s.required&&(e=jeeplus.rules.isNotEmpty);var t=this.getFormView(),i=this.s.name,n=this.getValue(),s={};return s[i]=n,!(e&&!t.Se(e,n,s,i))},bottomLabel_setter:function(e){return this.s.bottomPadding||(this.s.bottomPadding=18),e},py:function(){var e=this.s.invalidMessage;return"function"==typeof e&&e.call(this),e},setBottomText:function(e,t){var i=this.s;if(void 0!==e){if(i.bottomLabel==e)return;i.bottomLabel=e}var n=(i.invalid?i.invalidMessage:"")||i.bottomLabel;n||i.bottomPadding||(i.inputHeight=0),n&&!i.bottomPadding?(this.ry=1,i.bottomPadding=i.bottomPadding||t||18,this.render(),this.resize()):!n&&this.ry?(i.bottomPadding=this.ry=0,i.height||this.render(),this.resize()):this.render()},$getSize:function(){var e=jeeplus.ui.view.prototype.$getSize.apply(this,arguments),t=this.config.bottomPadding;return t&&(e[2]+=t,e[3]+=t),e},$setSize:function(e,t){var i=this.s;if(jeeplus.ui.view.prototype.$setSize.call(this,e,t)){if(!e||!t)return;"top"==i.labelPosition?(i.inputHeight||(this.zy=this.dc-this.le-(this.config.bottomPadding||0)),i.labelWidth=0):i.bottomPadding&&(i.inputHeight=this.dc-this.config.bottomPadding),this.render()}},Ee:function(e){var t=(this.we||0)-(e.label?this.s.labelWidth:0)-this.$E-(e.iconWidth||0);return t<0?0:t},Fe:function(e,t){var i="x"+jeeplus.uid(),n=t.Ee(e),s=e.inputAlign||"left",a=(this.$renderIcon&&this.$renderIcon(e),this.s.aheight-2*jeeplus.skin.$active.inputPadding-2*this.ZE),r=e.text||e.value||this.Yx(e),o="<div class='jeeplus_inp_static' role='combobox' aria-label='"+jeeplus.template.escape(e.label)+"' tabindex='0'"+(e.readonly?" aria-readonly='true'":"")+(e.invalid?"aria-invalid='true'":"")+" onclick='' style='line-height:"+a+"px;width: "+n+"px; text-align: "+s+";' >"+r+"</div>";return t.$renderInput(e,o,i)},qt:function(e){var t="<"+e+(this.s.placeholder?" placeholder='"+this.s.placeholder+"' ":" ");this.s.readonly&&(t+="readonly='true' aria-readonly=''"),this.s.required&&(t+="aria-required='true'"),this.s.invalid&&(t+="aria-invalid='true'");var i=this.s.attributes;if(i)for(var n in i)t+=n+"='"+i[n]+"' ";return t},$renderLabel:function(e,t){var i=e.labelAlign||"left",n="top"==this.s.labelPosition,s=n?"display:block;":"width: "+this.s.labelWidth+"px;",a="",r=n?this.le-2*this.ZE:this.s.aheight-2*this.s.inputPadding;return e.label&&(a="<label style='"+s+"text-align: "+i+";line-height:"+r+"px;' onclick='' for='"+t+"' class='jeeplus_inp_"+(n?"top_":"")+"label "+(e.required?"jeeplus_required":"")+"'>"+(e.label||"")+"</label>"),a},$renderInput:function(e,t,i){var n=e.inputAlign||"left",s="top"==e.labelPosition,a=this.Ee(e);i=i||jeeplus.uid();var r=this.$renderLabel(e,i),o="";if(t)o+=t;else{var l=jeeplus.template.escape(e.text||this.VC(e.value)||(0===e.value?"0":""));o+=this.qt("input")+"id='"+i+"' type='"+(e.type||this.name)+"'"+(e.editable?" role='combobox'":"")+" value='"+l+"' style='width: "+a+"px; text-align: "+n+";'";var h=e.attributes;if(h)for(var u in h)o+=" "+u+"='"+h[u]+"'";o+=" />"}o+=this.$renderIcon?this.$renderIcon(e):"";var d="";d=s?r+"<div class='jeeplus_el_box' style='width:"+e.awidth+"px; height:"+e.aheight+"px'>"+o+"</div>":"<div class='jeeplus_el_box' style='width:"+e.awidth+"px; height:"+e.aheight+"px'>"+r+o+"</div>";var c=e.awidth-a-2*jeeplus.skin.$active.inputPadding,p=(e.invalid?e.invalidMessage:"")||e.bottomLabel;return p&&(d+="<div class='jeeplus_inp_bottom_label'"+(e.invalid?"role='alert' aria-relevant='all'":"")+" style='width:"+(a||e.awidth)+"px;margin-left:"+Math.max(c,jeeplus.skin.$active.inputPadding)+"px;'>"+p+"</div>"),d},defaults:{template:function(e,t){return t.$renderInput(e)},label:"",labelWidth:80},type_setter:function(e){return e},oe:!1,$setValue:function(e){this.getInputNode().value=this.VC(e)},$getValue:function(){return this.VC(this.getInputNode().value,!1)},suggest_setter:function(e){if(e){if("string"==typeof e){if(jeeplus.$$(e))return jeeplus.$$(e).s.id;e={body:{url:e,dataFeed:e}}}else jeeplus.isArray(e)?e={body:{data:this.Be(e)}}:e.body||(e.body={});jeeplus.extend(e,{view:"suggest"});var t=jeeplus.ui(e);return this.Ns.push(t),t.s.id}return!1}},jeeplus.ui.button),jeeplus.protoUI({name:"segmented",Ce:!1,$init:function(){this.attachEvent("onChange",function(e){this.s.multiview&&this.aF(e)}),this.attachEvent("onAfterRender",jeeplus.once(function(){this.s.multiview&&this.s.value&&this.aF(this.s.value)}))},aF:function(e){var t=this.getTopParentView(),i=null;t&&t.$$&&(i=t.$$(e)),i||(i=jeeplus.$$(e)),i&&i.show&&i.show()},defaults:{template:function(e,t){e.options;var i=e.options;t.Be(i),i=t.yC(i);var n=t.Ee(e),s=jeeplus.uid(),a="<div style='width:"+n+"px' class='jeeplus_all_segments' role='tablist' aria-label='"+jeeplus.template.escape(e.label)+"'>",r=e.optionWidth||Math.floor(n/i.length);e.value||(e.value=i[0].id);for(var o=0;o<i.length;o++)a+="<button type='button' style='width:"+(i[o].width||r)+"px' role='tab' aria-selected='"+(e.value==i[o].id?"true":"false")+"' tabindex='"+(e.value==i[o].id?"0":"-1")+"'",a+="class='jeeplus_segment_"+(o==i.length-1?"N":0<o?1:0)+(e.value==i[o].id?" jeeplus_selected ":"")+"' button_id='"+i[o].id+"' "+(i[o].tooltip?"title='"+i[o].tooltip+"'":"")+">",a+=i[o].value+"</button>";return t.$renderInput(e,a+"</div>",s)}},Ie:function(){return this.$view.getElementsByTagName("BUTTON")},focus:function(){this.ub()},blur:function(){this.JD()},$setValue:function(e){for(var t=this.Ie(),i=0;i<t.length;i++){var n=t[i].getAttribute("button_id");t[i].setAttribute("aria-selected",e==n?"true":"false"),t[i].setAttribute("tabindex",e==n?"0":"-1"),e==n?jeeplus.html.addCss(t[i],"jeeplus_selected"):jeeplus.html.removeCss(t[i],"jeeplus_selected")}var s=this.config.tabbarPopup;s&&jeeplus.$$(s)&&jeeplus.$$(s).getBody().exists(e)&&this.refresh()},getValue:function(){return this.s.value},getInputNode:function(){return null},optionIndex:function(e){for(var t=this.s.options,i=0;i<t.length;i++)if(t[i].id==e)return i;return-1},addOption:function(e,t,i,n){var s=e;"object"!=typeof e?s={id:e,value:t=t||e}:(e=s.id,n=i,i=t),this.optionIndex(e)<0&&jeeplus.PowerArray.insertAt.call(this.s.options,s,n),this.refresh(),i&&this.setValue(e)},removeOption:function(e,t){var i=this.optionIndex(e),n=this.s.options;0<=i&&jeeplus.PowerArray.removeAt.call(n,i),this.s.value==e&&this.zC(n,i),this.refresh(),this.callEvent("onOptionRemove",[e,this.s.value])},zC:function(e,t){var i=e.length;if(i){for(var n=t=Math.min(t,i-1);n<i;n++)if(!e[n].hidden)return this.setValue(e[n].id);for(n=t;0<=n;n--)if(!e[n].hidden)return this.setValue(e[n].id)}this.setValue("")},yC:function(e){for(var t=[],i=0;i<e.length;i++)e[i].hidden||t.push(e[i]);return t},AC:function(e,t){var i=this.s.options,n=this.optionIndex(e),s=i[n];s&&t==!!s.hidden&&(s.hidden=!t,t||this.s.value!=e?this.refresh():this.zC(i,n))},hideOption:function(e){this.AC(e,!1)},showOption:function(e){this.AC(e,!0)},oe:!1},jeeplus.HTMLOptions,jeeplus.ui.text),jeeplus.protoUI({name:"search",on_click:{jeeplus_input_icon:function(e){this.getInputNode().focus(),this.callEvent("onSearchIconClick",[e])}},$skin:function(){this.defaults.inputPadding=jeeplus.skin.$active.inputPadding},defaults:{type:"text",icon:"search"}},jeeplus.ui.text),jeeplus.protoUI({name:"toggle",Ce:!0,$init:function(){this.attachEvent("onItemClick",function(){this.toggle()})},$setValue:function(e){var t=this.getInputNode(),i=this.s,n=e&&"0"!=e,s=(n?i.onLabel:i.offLabel)||i.label,a=t.lastChild;t.setAttribute("aria-pressed",!!n&&"true"),t.value=s,a&&((a.firstChild||a).nodeValue=" "+s),t.firstChild&&"SPAN"===t.firstChild.nodeName&&i.onIcon&&i.offIcon&&i.onIcon!==i.offIcon&&(t.firstChild.className=t.firstChild.className.replace(n?i.offIcon:i.onIcon,n?i.onIcon:i.offIcon));var r=t.parentNode;n?jeeplus.html.addCss(r,"jeeplus_pressed"):jeeplus.html.removeCss(r,"jeeplus_pressed")},toggle:function(){this.setValue(!this.getValue())},getValue:function(){var e=this.s.value;return e&&"0"!=e?1:0},defaults:{template:function(e,t){var i=e.value&&"0"!=e.value,n=i?" jeeplus_pressed":"";e.label=(i?e.onLabel:e.offLabel)||e.label,e.icon=(i?e.onIcon:e.offIcon)||e.icon;var s="<div class='jeeplus_el_box"+n+"' style='width:"+e.awidth+"px; height:"+e.aheight+"px'>"+t.$renderInput(e,t)+"</div>";return s.replace(/(button)\s*(?=\w)/,"$1 aria-pressed='"+(i?"true":"false")+"' ")}},oe:!1},jeeplus.ui.button),jeeplus.protoUI({name:"select",defaults:{template:function(t,e){var i=e.Be(t.options),n="x"+jeeplus.uid(),s=e.qt("select")+"id='"+n+"' style='width:"+e.Ee(t)+"px;'>",a=jeeplus.$$(i);if(a&&a.data&&a.data.each)a.data.each(function(e){s+="<option"+(e.id==t.value?" selected='true'":"")+" value='"+e.id+"'>"+e.value+"</option>"});else for(var r=0;r<i.length;r++)s+="<option"+(i[r].id==t.value?" selected='true'":"")+" value='"+i[r].id+"'>"+i[r].value+"</option>";return s+="</select>",e.$renderInput(t,s,n)}},options_setter:function(e){if(e){if("string"==typeof e){var t=new jeeplus.DataCollection({url:e});return t.data.attachEvent("onStoreLoad",jeeplus.bind(this.refresh,this)),t}return e}},getInputNode:function(){return this.y.getElementsByTagName("select")[0]}},jeeplus.ui.text),jeeplus.protoUI({name:"textarea",defaults:{template:function(e,t){var i=e.name||e.id,n="x"+jeeplus.uid(),s=t.qt("textarea")+"style='width:"+t.Ee(e)+"px;'";return s+=" id='"+n+"' name='"+i+"' class='jeeplus_inp_textarea'>"+t.VC(e.value||(0===e.value?"0":""))+"</textarea>",t.$renderInput(e,s,n)},height:0,minHeight:60},$skin:function(){this.defaults.inputPadding=jeeplus.skin.$active.inputPadding,this.$E=jeeplus.skin.$active.inputSpacing},Dt:!0,$renderLabel:function(e,t){var i=e.labelAlign||"left",n="top"==this.s.labelPosition,s=n?"display:block;":"width: "+this.s.labelWidth+"px;",a="";return n?(this.le,this.ZE):(jeeplus.skin.$active.inputHeight||this.s.aheight,this.s.inputPadding),e.label&&(a="<label style='"+s+"text-align: "+i+";' onclick='' for='"+t+"' class='jeeplus_inp_"+(n?"top_":"")+"label "+(e.required?"jeeplus_required":"")+"'>"+(e.label||"")+"</label>"),a},getInputNode:function(){return this.y.getElementsByTagName("textarea")[0]}},jeeplus.ui.text),jeeplus.protoUI({name:"counter",defaults:{template:function(e,t){var i=e.value||0,n="x"+jeeplus.uid(),s="<div role='spinbutton' aria-label='"+jeeplus.template.escape(e.label)+"' aria-valuemin='"+e.min+"' aria-valuemax='"+e.max+"' aria-valuenow='"+e.value+"' class='jeeplus_el_group' style='width:"+t.Ee(e)+"px'>";return s+="<button type='button' class='jeeplus_inp_counter_prev' tabindex='-1' aria-label='"+jeeplus.i18n.aria.decreaseValue+"'>-</button>",s+=t.qt("input")+" id='"+n+"' type='text' class='jeeplus_inp_counter_value' aria-live='assertive' value='"+i+"'></input>",s+="<button type='button' class='jeeplus_inp_counter_next' tabindex='-1' aria-label='"+jeeplus.i18n.aria.increaseValue+"'>+</button></div>",t.$renderInput(e,s,n)},min:0,max:1/0,step:1},$init:function(){jeeplus.UE(this.$view,"keydown",this.LD,{bind:this})},LD:function(e){var t=e.which||e.keyCode,i=this.s,n=i.value||i.min;32<t&&t<41&&(35===t?n=i.min:36===t?n=i.max===1/0?1e6:i.max:33===t?this.next():34===t?this.prev():n+=37===t||40===t?-1:1,34<t&&n>=i.min&&n<=i.max&&this.setValue(n))},$setValue:function(e){this.getInputNode().value=e},getInputNode:function(){return this.y.getElementsByTagName("input")[0]},getValue:function(e){return 1*jeeplus.ui.button.prototype.getValue.apply(this,arguments)},next:function(e){e=this.s.step,this.shift(e)},prev:function(e){e=-1*this.s.step,this.shift(e)},shift:function(e){var t=this.s.min,i=this.s.max,n=this.getValue()+e;t<=n&&n<=i&&this.setValue(n)}},jeeplus.ui.text),jeeplus.protoUI({name:"checkbox",defaults:{checkValue:1,uncheckValue:0,template:function(e,t){var i="x"+jeeplus.uid(),n="";e.labelRight&&(n="<label class='jeeplus_label_right'>"+e.labelRight+"</label>",e.labelWidth&&(e.label=e.label||"&nbsp;"));var s=e.checkValue==e.value,a=Math.floor((t.s.aheight-16)/2),r=t.qt("input")+"style='margin-top:"+a+"px;"+(e.customCheckbox?"display:none":"")+"' id='"+i+"' type='checkbox' "+(s?"checked='1'":"")+(e.labelRight?" aria-label='"+jeeplus.template.escape(e.labelRight)+"'":"")+"/>",o="jeeplus_inp_checkbox_border jeeplus_el_group jeeplus_checkbox_"+(s?"1":"0"),l=e.customCheckbox||"";l&&(l=(l=(l=l.replace(/(aria-checked=')\w*(?=')/,"$1"+(e.value==e.checkValue?"true":"false"))).replace(/(aria-label=')\w*(?=')/,"$1"+jeeplus.template.escape(e.labelRight||e.label))).replace(/(aria-invalid=')\w*(?=')/,"$1"+(e.invalid?"true":"false")));var h="<div style='line-height:"+t.s.cheight+"px' class='"+o+"'>"+r+l+n+"</div>";return t.$renderInput(e,h,i)}},customCheckbox_setter:function(e){return!0===e&&jeeplus.skin.$active.customCheckbox&&(e="<a role='presentation' onclick='javascript:void(0)'><button role='checkbox' aria-checked='false' aria-label='' type='button' aria-invalid='' class='jeeplus_custom_checkbox'></button></a>"),e},focus:function(){var e=this.getInputNode();e&&e.focus()},blur:function(){var e=this.getInputNode();e&&e.blur()},De:function(){},$setValue:function(e){var t=e==this.s.checkValue,i=this.$view.getElementsByTagName("input")[0],n=i?i.parentNode:null;if(n&&this.s.customCheckbox){var s=n.getElementsByTagName("BUTTON");s[0]&&s[0].setAttribute("aria-checked",t?"true":"false")}n&&(n.className=n.className.replace(/(jeeplus_checkbox_)\d/,"$1"+(t?1:0))),i.checked=t},toggle:function(){var e=this.getValue()!=this.s.checkValue?this.s.checkValue:this.s.uncheckValue;this.setValue(e)},getValue:function(){return this.s.value==this.s.checkValue?this.s.checkValue:this.s.uncheckValue},getInputNode:function(){return this.$view.getElementsByTagName(this.s.customCheckbox?"button":"input")[0]},$skin:function(){this.defaults.customCheckbox=!!jeeplus.skin.$active.customCheckbox}},jeeplus.ui.text),jeeplus.protoUI({name:"radio",defaults:{template:function(e,t){for(var i,n=t.Be(e.options),s=[],a=0;a<n.length;a++){var r="x"+jeeplus.uid();i=i||r,a&&(n[a].newline||e.vertical)&&s.push("<div class='jeeplus_line_break'></div>");var o=n[a].id==e.value,l=n[a].value||"",h=e.customRadio||"";if(h){var u=(0===a?e.label+" ":"")+l;h=(h=(h=(h=h.replace(/(aria-label=')\w*(?=')/,"$1"+jeeplus.template.escape(u))).replace(/(aria-checked=')\w*(?=')/,"$1"+(o?"true":"false"))).replace(/(tabindex=')\w*(?=')/,"$1"+(o||0===a&&!e.value?"0":"-1"))).replace(/(aria-invalid=')\w*(?=')/,"$1"+(e.invalid?"true":"false"))}var d=t.qt("input")+" name='"+(e.name||e.id)+"' type='radio' "+(o?"checked='1'":"")+"tabindex="+(o||0===a&&!e.value?"0":"-1")+" value='"+n[a].id+"' id='"+r+"' style='"+(h?"display:none":"")+"' />",c="<div radio_id='"+n[a].id+"' class='jeeplus_inp_radio_border jeeplus_radio_"+(o?"1":"0")+"' role='presentation'>"+d+h+"</div>";l&&(l="<label for='"+r+"' class='jeeplus_label_right'>"+l+"</label>"),s.push("<div class='jeeplus_radio_option' role='presentation'>"+c+l+"</div>")}return s="<div class='jeeplus_el_group' role='radiogroup' style='margin-left:"+(e.label?e.labelWidth:0)+"px;'>"+s.join("")+"</div>",t.$renderInput(e,s,i)}},refresh:function(){this.render(),this.ac&&this.$getSize(0,0)[2]!=this.ac[1]&&this.resize()},$getSize:function(e,t){var i=jeeplus.ui.button.prototype.$getSize.call(this,e,t);if(this.s.options){for(var n=this.s.vertical?0:1,s=0;s<this.s.options.length;s++)(this.s.vertical||this.s.options[s].newline)&&n++;i[3]=i[2]=Math.max(i[2],(this.s.optionHeight||25)*n+2*this.s.inputPadding+("top"==this.s.labelPosition?this.le:0))}var a=this.config.bottomPadding;return a&&(i[2]+=a,i[3]+=a),i},Ie:function(){return this.y.getElementsByTagName("input")},$setValue:function(e){for(var t=this.Ie(),i=0;i<t.length;i++){t[i].parentNode.getAttribute("radio_id")==e?(t[i].className="jeeplus_inp_radio_on",t[i].checked=!0,t[i].setAttribute("tabindex","0")):(t[i].className="jeeplus_inp_radio_on jeeplus_hidden",t[i].checked=!1,t[i].setAttribute("tabindex","-1"));var n=t[i]?t[i].parentNode:null;if(n&&(n.className=n.className.replace(/(jeeplus_radio_)\d/,"$1"+(t[i].checked?1:0)),this.s.customRadio)){var s=n.getElementsByTagName("BUTTON");s[0]&&(s[0].setAttribute("aria-checked",t[i].checked?"true":"false"),s[0].setAttribute("tabindex",t[i].checked?"0":"-1"))}}},getValue:function(e){return this.s.value},focus:function(){this.ub()},blur:function(){this.JD()},customRadio_setter:function(e){return!0===e&&jeeplus.skin.$active.customRadio&&(e="<a role='presentation' onclick='javascript:void(0)'><button type='button' class='jeeplus_custom_radio' role='radio' aria-checked='false' aria-label='' aria-invalid='' tabindex=''></button></a>"),e},$skin:function(){this.defaults.customRadio=!!jeeplus.skin.$active.customRadio,jeeplus.skin.$active.optionHeight&&(this.defaults.optionHeight=jeeplus.skin.$active.optionHeight)}},jeeplus.HTMLOptions,jeeplus.ui.text),jeeplus.protoUI({name:"richselect",defaults:{template:function(e,t){return t.Fe(e,t)},popupWidth:200,icon:"angle-down"},_E:function(){if(this.s.text!=this.getText()&&(!jeeplus.isUndefined(this.s.text)||this.getText())){var e=this.getPopup(),t=e.getSuggestion(),i=this.getValue(),n=this.getInputNode().value,s=e.getList().getItem(t);t&&t!=i&&(""!==n||""===e.getItemText(t))&&e.config.filter(s,n)?this.setValue(t):""===n?this.setValue(""):this.bF&&this.bF()}},suggest_setter:function(e){return this.options_setter(e)},options_setter:function(e){e=this.Kt?this.Kt(e):e;var t=this.s.popup=this.s.suggest=jeeplus.ui.text.prototype.suggest_setter.call(this,e),i=jeeplus.$$(t).getList();return i&&i.attachEvent("onAfterLoad",jeeplus.bind(this.Ss,this)),t},getList:function(){return jeeplus.$$(this.s.suggest).getList()},Ss:function(){var e=this.s.value;jeeplus.isUndefined(e)||this.getPopup().isVisible()||this.s.text||!this.y.firstChild||this.$setValue(e)},$skin:function(){this.defaults.inputPadding=jeeplus.skin.$active.inputPadding},$render:function(e){jeeplus.isUndefined(e.value)||this.$setValue(e.value)},getInputNode:function(){return this.y.getElementsByTagName("DIV")[1]},getPopup:function(){return jeeplus.$$(this.s.popup)},getText:function(){var e=this.s.value,t=this.getInputNode();return t?void 0===t.value?t.firstChild&&"jeeplus_placeholder"===t.firstChild.className?"":t.innerHTML:t.value:e?this.getPopup().getItemText(e):""},$setValue:function(e){if(this.se){var t=e;if(this.getPopup())t=this.getPopup().getItemText(e);!t&&e&&e.id&&(this.getPopup().getList().add(e),t=this.getPopup().getItemText(e.id),this.s.value=e.id);var i=this.getInputNode();jeeplus.isUndefined(i.value)?i.innerHTML=t||this.Yx():i.value=t=t.replace(/<[^>]*>/g,""),this.s.text=t}},getValue:function(){return this.s.value||""}},jeeplus.ui.text),jeeplus.protoUI({name:"combo",getInputNode:function(){return this.y.getElementsByTagName("input")[0]},$render:function(e){jeeplus.isUndefined(e.value)||this.$setValue(e.value)},bF:function(){if(!this.s.editable){var e=this.getValue();this.$setValue(jeeplus.isUndefined(e)?"":e)}},Xy:function(){var e=this.getInputNode(),t="",i=this.getPopup();e.value&&(t=this.s.value,i.getItemText(t)!=this.getText()&&(t=i.getSuggestion()||t)),t!=this.s.value?this.setValue(t,!0):this.$setValue(t)},defaults:{template:function(e,t){return t.$renderInput(e).replace(/(<input)\s*(?=\w)/,"$1 role='combobox'")},icon:"angle-down"}},jeeplus.ui.richselect),jeeplus.protoUI({name:"datepicker",$init:function(){this.$ready.push(this.Je)},defaults:{template:function(e,t){"time"==t.s.type&&(t.s.icon=t.s.timeIcon);var i=e.type;e.type="";var n=e.editable?t.$renderInput(e):t.Fe(e,t);return e.type=i,n},stringResult:!1,timepicker:!1,icon:"calendar",icons:!0,timeIcon:"clock-o",separator:", "},_E:function(){if(this.s.text!=this.getText()&&(!jeeplus.isUndefined(this.s.text)||this.getText())){var e=this.getPopup().getValue();e&&this.setValue(e)}},$skin:function(){this.defaults.inputPadding=jeeplus.skin.$active.inputPadding},getPopup:function(){return jeeplus.$$(this.s.popup)},Je:function(){var e=this.s;if(e.suggest)e.popup=e.suggest;else if(!e.popup){var t=this.s.timepicker;e.popup=e.suggest=this.suggest_setter({type:"calendar",point:!1!==this.s.point,height:240+(t?30:0),width:250,padding:0,body:{multiselect:this.s.multiselect,timepicker:t,type:this.s.type,icons:this.s.icons}})}this.ze=function(){}},$render:function(e){jeeplus.isUndefined(e.value)||(e.value=this.$prepareValue(e.value),this.$setValue(e.value))},$prepareValue:function(e){if(this.s.multiselect){"string"==typeof e?e=e.split(this.s.separator):e instanceof Date?e=[e]:e||(e=[]);for(var t=0;t<e.length;t++)e[t]=this.RG(e[t]);return e}return this.RG(e)},RG:function(e){var t=this.s.type,i="time"==t;if(isNaN(parseFloat(e))||(e=""+e),"string"==typeof e&&e){e=("month"!=t&&"year"!=t||!this.Gx?i?jeeplus.i18n.parseTimeFormatDate:jeeplus.i18n.parseFormatDate:this.Gx)(e)}if(e){if(i&&jeeplus.isArray(e)){var n=new Date;n.setHours(e[0]),n.setMinutes(e[1]),e=n}isNaN(e.getTime())&&(e="")}return e},YE:function(e){return this.s.multiselect?[].concat(e).map(function(e){return this.SG(e)}.bind(this)).join(this.config.separator):this.SG(e)},SG:function(e){var t="time"==this.s.type,i=this.config.timepicker;return(this.Hx||(t?jeeplus.i18n.timeFormatStr:i?jeeplus.i18n.fullDateFormatStr:jeeplus.i18n.dateFormatStr))(e)},ND:function(){var e=this.getInputNode();e.value==jeeplus.undefined?e.innerHTML=this.s.text||this.Yx():e.value=this.s.text||""},$compareValue:function(e,t){return!e&&!t||jeeplus.Date.equal(e,t)},$setValue:function(e){this.s.text=e?this.YE(e):"",this.ND()},format_setter:function(e){return e?"function"==typeof e?this.Hx=e:(this.Hx=jeeplus.Date.dateToStr(e),this.Gx=jeeplus.Date.strToDate(e)):this.Hx=this.Gx=null,e},getInputNode:function(){return this.s.editable?this.y.getElementsByTagName("input")[0]:this.y.getElementsByTagName("DIV")[1]},getValue:function(){if(this.s.multiselect){var e=[].concat(this.s.value).map(function(e){return this.TG(e)}.bind(this));return this.s.stringResult?e.join(this.s.separator):e}return this.TG(this.s.value)},TG:function(e){var t=this.s.type,i="time"==t,n=this.config.timepicker;this.se?this.s.editable&&(e=(this.Gx||(i?jeeplus.i18n.timeFormatDate:n?jeeplus.i18n.fullDateFormatDate:jeeplus.i18n.dateFormatDate))(this.getInputNode().value)):e=this.$prepareValue(e)||null;if(this.s.stringResult){var s=jeeplus.i18n.parseFormatStr;return i&&(s=jeeplus.i18n.parseTimeFormatStr),!this.Hx||"month"!=t&&"year"!=t||(s=this.Hx),this.s.multiselect?[].concat(e).map(function(e){return e?s(e):""}):e?s(e):""}return e||null},getText:function(){var e=this.getInputNode();return e?void 0===e.value?this.getValue()?e.innerHTML:"":e.value:""}},jeeplus.ui.text),jeeplus.protoUI({name:"colorpicker",$init:function(){this.$ready.push(this.Je)},defaults:{icon:!0},Je:function(){var e=this.s;e.suggest?e.popup=e.suggest:e.popup||(e.popup=e.suggest=this.suggest_setter({type:"colorboard",height:200})),this.ze=function(){}},$render:function(e){jeeplus.isUndefined(e.value)||(e.value=this.$prepareValue(e.value),this.$setValue(e.value))},getValue:function(){return this.se&&this.s.editable?this.getInputNode().value:this.s.value},$prepareValue:function(e){return e&&e.charAt&&"#"!=e.charAt(0)&&(e="#"+e),e||""},pz:function(){return this.$view.getElementsByTagName("DIV")[this.s.editable?1:2]},YE:function(e){return e},$setValue:function(e){this.pz().style.backgroundColor=e,this.s.text=e;var t=this.getInputNode();t.value==jeeplus.undefined?t.innerHTML=e:t.value=e},$renderIcon:function(){return'<div class="jeeplus_input_icon" style="background-color:'+this.config.value+';"> </div>'}},jeeplus.ui.datepicker),jeeplus.RenderStack={$init:function(){this.v=document.createElement("DIV"),this.data.attachEvent("onIdChange",jeeplus.bind(this.Ke,this)),this.attachEvent("onItemClick",this.Le),this.types||(this.types={default:this.type},this.type.name="default"),this.type=jeeplus.clone(this.type)},customize:function(e){jeeplus.type(this,e)},item_setter:function(e){return this.type_setter(e)},type_setter:function(e){return this.types[e]?(this.type=jeeplus.clone(this.types[e]),this.type.css&&(this.w.className+=" "+this.type.css)):this.customize(e),this.type.on_click&&jeeplus.extend(this.on_click,this.type.on_click),e},template_setter:function(e){this.type.template=jeeplus.template(e)},jb:function(e){var t=this.data.Me[e.id];return this.callEvent("onItemRender",[e]),this.type.templateStart(e,this.type,t)+(e.$template?this.type["template"+e.$template]:this.type.template)(e,this.type,t)+this.type.templateEnd(e,this.type,t)},Ne:function(e){return this.v.innerHTML=this.jb(e),this.v.firstChild},Ke:function(e,t){var i=this.getItemNode(e);i&&(i.setAttribute(this.ad,t),this.t[t]=this.t[e],delete this.t[e])},Le:function(){if(this.s.click){var e=jeeplus.toFunctor(this.s.click,this.$scope);e&&e.call&&e.apply(this,arguments)}},getItemNode:function(e){if(this.t)return this.t[e];this.t={};for(var t=this.y.childNodes,i=0;i<t.length;i++){var n=t[i].getAttribute(this.ad);n&&(this.t[n]=t[i])}return this.getItemNode(e)},locate:function(e){return jeeplus.html.locate(e,this.ad)},showItem:function(e){var t=this.getItemNode(e);if(t&&this.scrollTo){var i=Math.abs(this.w.offsetLeft-t.offsetLeft),n=i+t.offsetWidth,s=Math.abs(this.w.offsetTop-t.offsetTop),a=s+t.offsetHeight,r=this.getScrollState(),o=r.x;(i<o||o+this.bc<n)&&(o=i);var l=r.y;(s<l||l+this.dc<a)&&(l=s-5),this.scrollTo(o,l),this.Oe&&this.Oe(e)}},render:function(e,t,i){if(this.isVisible(this.s.id)&&!this.$blockRender)if(e){var n=this.getItemNode(e);switch(i){case"paint":case"update":if(!n)return;var s=this.t[e]=this.Ne(t);jeeplus.html.insertBefore(s,n),jeeplus.html.remove(n);break;case"delete":if(!n)return;jeeplus.html.remove(n),delete this.t[e];break;case"add":s=this.t[e]=this.Ne(t);jeeplus.html.insertBefore(s,this.getItemNode(this.data.getNextId(e)),this.y);break;case"move":jeeplus.html.insertBefore(this.getItemNode(e),this.getItemNode(this.data.getNextId(e)),this.y)}}else if(this.callEvent("onBeforeRender",[this.data])){(this.Pe||this.y).innerHTML=this.data.getRange().map(this.jb,this).join(""),this.t=null,this.callEvent("onAfterRender",[]);s=this.y.offsetHeight}}},jeeplus.ValidateData={$init:function(){this.h&&this.attachEvent("onChange",this.clearValidation)},clearValidation:function(){if(this.elements)for(var e in this.elements)this.Qe(e)},validate:function(e,t){this.callEvent("onBeforeValidate",[]);var i=this.Re={},n=!0,s=this.s.rules,a=this.isVisible&&!this.isVisible(),r=e&&e.hidden,o=e&&e.disabled,l={},h={};for(var u in this.elements){var d=this.elements[u].config.name;(a||this.elements[u].isVisible()||r)&&(this.elements[u].isEnabled()||o)?l[d]=this.elements[u]:h[d]=!0}if((s||l)&&!t&&this.getValues&&(t=this.getValues()),s){s.$obj&&(n=this.Se(s.$obj,t,t,"")&&n);var c=s.$all,p=t;if(this.s.complexData&&(p=jeeplus.CodeParser.collapseNames(t)),c)for(var f in t)if(!h[f]){(v=this.Se(c,p[f],t,f))||(i[f]=!0),n=v&&n}for(var f in s)if(!h[f]&&0!==f.indexOf("$")&&!i[f]){(v=this.Se(s[f],p[f],t,f))||(i[f]=!0),n=v&&n}}if(l)for(var f in l)if(!i[f]){var m=l[f];if(m.validate){n=(v=m.validate())&&n,v||(i[f]=!0)}else{var g=m.s;if(g){var v,_=g.validate;if(!_&&g.required&&(_=jeeplus.rules.isNotEmpty),_)(v=this.Se(_,t[f],t,f))||(i[f]=!0),n=v&&n}}}return this.callEvent("onAfterValidation",[n,this.Re]),n},Se:function(e,t,i,n){return"string"==typeof e&&(e=jeeplus.rules[e]),e.call(this,t,i,n)?(this.callEvent("onValidationSuccess",[n,i])&&this.Qe&&this.Qe(n),!0):(this.callEvent("onValidationError",[n,i])&&this.Te&&this.Te(n),!1)}},jeeplus.ValidateCollection={Ue:function(){this.data.attachEvent("onStoreUpdated",jeeplus.bind(function(e,t,i){!e||"add"!=i&&"update"!=i||this.validate(e)},this)),this.data.attachEvent("onClearAll",jeeplus.bind(this.clearValidation,this)),this.Ue=function(){}},rules_setter:function(e){return e&&this.Ue(),e},clearValidation:function(){this.data.clearMark("jeeplus_invalid",!0)},validate:function(e){var t=!0;if(e){this.Re={};var i=this.getItem(e);(t=jeeplus.ValidateData.validate.call(this,null,i))?this.callEvent("onValidationSuccess",[e,i])&&this.Qe(e):this.callEvent("onValidationError",[e,i,this.Re])&&this.Te(e,this.Re)}else for(var n in this.data.pull)t=this.validate(n)&&t;return t},Se:function(e,t,i,n){"string"==typeof e&&(e=jeeplus.rules[e]);var s=e.call(this,t,i,n);return s||(this.Re[n]=!0),s},Qe:function(e){this.data.removeMark(e,"jeeplus_invalid",!0)},Te:function(e,t){this.data.addMark(e,"jeeplus_invalid",!0)}},jeeplus.rules={isEmail:function(e){return/\S+@[^@\s]+\.[^@\s]+$/.test((e||"").toString())},isNumber:function(e){return parseFloat(e)==e},isChecked:function(e){return!!e||"0"===e},isNotEmpty:function(e){return 0===e||e}},jeeplus.MapCollection={$init:function(){this.$ready.push(this.cz),this.attachEvent("onStructureUpdate",this.cz),this.attachEvent("onStructureLoad",function(){this.dz.length||this.cz()})},cz:function(e){e=this.dz=[];var t=this.s;if(t.columns&&this.zj(t.columns),this.s.map&&this.ez(t.map),this.dz.length)try{this.data.qf=Function("obj",e.join("\n"))}catch(e){}},ez:function(e){for(var t in e)this.dz.push(this.fz(t,e[t]))},fz:function(e,t,i){var n="",s="";return 0===t.indexOf("(date)")?(n="jeeplus.i18n.parseFormatDate(",s=")",i&&!i.format&&(i.format=jeeplus.i18n.dateFormatStr),t=t.replace("(date)","")):0===t.indexOf("(number)")&&(n="(",s=")*1",t=t.replace("(number)","")),""!==t?t=(t=t.replace(/\{obj\.([^}]*)\}/g,"\"+(obj.$1||'')+\"")).replace(/#([^#'";, ]+)#/gi,"\"+(obj.$1||'')+\""):t='"+(obj.'+e+"||'')+\"","obj."+e+" = "+n+'"'+t+'"'+s+";"},zj:function(e){for(var t=0;t<e.length;t++){var i=e[t].map,n=e[t].id;n||(n=e[t].id="i"+jeeplus.uid(),e[t].header||(e[t].header="")),i&&this.dz.push(this.fz(n,i,e[t])),this.Et(e[t])}},Et:function(e){var t=e.options||e.collection;if(t)if("string"==typeof t){var i=jeeplus.$$(t);i||(i=new jeeplus.DataCollection({url:t}),this.Ns.push(i)),i.getBody&&(i=i.getBody()),this.Bj(i,e)}else if(t.loadNext)this.Bj(t,e);else if(t[0]&&"object"==typeof t[0])t=new jeeplus.DataCollection({data:t}),this.Bj(t,e),this.Ns.push(t);else{if(jeeplus.isArray(t)){for(var n={},s=0;s<t.length;s++)n[t[s]]=t[s];e.options=t=n}e.template=e.template||this.Ej(t,e.id,e.optionslist)}},Bj:function(e,t){if(t){delete t.options,t.collection=e,t.template=t.template||this.Dj(e,t.id,t.optionslist);var i=e.data.attachEvent("onStoreUpdated",jeeplus.bind(function(){this.refresh(),this.refreshFilter&&this.refreshFilter(t.id)},this));this.attachEvent("onDestruct",function(){e.$destructed||e.data.detachEvent(i)})}},Ej:function(a,r,e){if(e){var o="string"==typeof e?e:",";return function(e,t){var i=e[r]||e.value;if(!i)return"";for(var n=i.split(o),s=0;s<n.length;s++)n[s]=a[n[s]]||"";return n.join(", ")}}return function(e,t){return a[e[r]]||e.value||""}},Dj:function(r,o,e){if(e){var l="string"==typeof e?e:",";return function(e,t){var i=e[o]||e.value;if(!i)return"";for(var n=i.split(l),s=0;s<n.length;s++){var a=r.data.pull[n[s]];n[s]=a&&a.value||""}return n.join(", ")}}return function(e,t){var i=e[o]||e.value,n=r.data.pull[i];return n&&(n.value||0===n.value)?n.value:""}}},jeeplus.Undo={$init:function(){this.VA=jeeplus.extend([],jeeplus.PowerArray,!0),this.WA=-1},undo_setter:function(e){return e&&(this.XA(),this.XA=function(){}),e},XA:function(){var s=this;this.attachEvent("onBeforeDrop",function(e){if(e.from==e.to){var t=s.YA=jeeplus.copy(this.getItem(e.start));this.data.branch?t.$index=this.getBranchIndex(t.id):t.$index=this.getIndexById(t.id)}}),this.data.attachEvent("onDataMove",function(e){if(s.YA&&s.YA.id==e){var t=s.YA;s.YA=null,s.ZA(e,t,"move")}}),this.data.attachEvent("onBeforeDelete",function(e){if(this.getItem(e)){var t=s._A=jeeplus.copy(this.getItem(e));this.branch?(t.$index=this.getBranchIndex(e),this.branch[e]&&(t.$branch=jeeplus.copy(this.serialize(e)))):t.$index=this.getIndexById(e)}}),this.data.attachEvent("onDataUpdate",function(e,t,i){s.ZA(e+"",i,"update")}),this.data.attachEvent("onStoreUpdated",function(e,t,i){var n=null;e&&("add"==i?n=jeeplus.copy(t):"delete"==i&&(n=s._A),n&&s.ZA(e,n,i))}),this.data.attachEvent("onIdChange",function(e,t){"object"==typeof e&&(e=e.row);for(var i=0;i<s.VA.length;i++)s.VA[i].id==e&&(s.VA[i].id=t)})},ZA:function(e,t,i){!this.aB&&this.s.undo&&(this.VA.push({id:e,action:i,data:t}),20==this.VA.length&&this.VA.splice(0,1),this.bB||(this.WA=this.VA.length-1))},ignoreUndo:function(e,t){this.aB=!0,e.call(t||this),this.aB=!1},removeUndo:function(e){for(var t=this.VA.length-1;0<=t;t--)this.VA[t].id==e&&("id"==this.VA[t].action&&(e=this.VA[t].data),this.VA.removeAt(t));this.WA=this.VA.length-1},undo:function(i){if(i)this.ignoreUndo(function(){var e,t;for(t=this.VA.length-1;!e&&0<=t;t--)this.VA[t].id==i&&(e=this.VA[t]);e&&(this.cB(e),this.VA.removeAt(t+1),this.WA=this.VA.length-1)});else{var e=this.VA[this.WA];e&&(this.ignoreUndo(function(){this.cB(e),this.VA.removeAt(this.WA)}),this.WA--)}},cB:function(e){if("delete"==e.action){var t=null,i=e.data.$parent;e.data.$branch&&(t={parent:e.id,data:jeeplus.copy(e.data.$branch)},delete e.data.$branch,i&&!this.data.branch[i]&&(i=0)),this.add(e.data,e.data.$index,i),t&&this.parse(t)}else"add"==e.action?this.remove(e.id):"update"==e.action?this.updateItem(e.id,e.data):"move"==e.action&&(e.data.$parent?this.getItem(e.data.$parent)&&this.move(e.id,e.data.$index,null,{parent:e.data.$parent}):this.move(e.id,e.data.$index))}},jeeplus.DataLoader=jeeplus.proto({$init:function(e){e=e||"",this.Ve=jeeplus.toArray(),this.$e={},this.data=new jeeplus.DataStore,this.data.attachEvent("onClearAll",jeeplus.bind(this.We,this)),this.data.attachEvent("onServerConfig",jeeplus.bind(this.Xe,this)),this.attachEvent("onDestruct",this.We),this.data.feed=this.Ye,this.data.owner=e.id},Ye:function(e,t,i){return this.Ze?this.Ze=[e,t,i]:(this.Ze=!0,this.$e.from=e,this.$e.count=t,void this._e.call(this,e,t,i))},_e:function(e,t,i,n,s){var a=null,r=(n=n||this.data.url,[{success:this.af,error:this.af},i]);if(e<0&&(e=0),s||(s={start:e,count:t}),this.count()&&(s.continue="true"),this.getState&&(a=this.getState()),n&&"string"!=typeof n)a&&(a.sort&&(s.sort=a.sort),a.filter&&(s.filter=a.filter)),this.load(n,r,s);else{n+=-1==n.indexOf("?")?"?":"&";var o=[];for(var l in s)o.push(l+"="+s[l]);if(a&&(a.sort&&o.push("sort["+a.sort.id+"]="+encodeURIComponent(a.sort.dir)),a.filter))for(var h in a.filter){var u=a.filter[h];"object"==typeof u&&(u=jeeplus.ajax().stringify(u)),o.push("filter["+h+"]="+encodeURIComponent(u))}n+=o.join("&"),this.$e.url!==n?(this.$e.url=n,this.load(n,r)):this.Ze=!1}},af:function(){var e=this.Ze;this.Ze=!1,"object"==typeof e&&this.data.feed.apply(this,e)},load:function(e,t){e=jeeplus.proxy.$parse(e);var i=jeeplus.AtomDataLoader.load.apply(this,arguments);return this.data.url||(this.data.url=e),i},loadNext:function(e,t,i,n,s){var a=this.s;return a.datathrottle&&!s?(this.bf&&window.clearTimeout(this.bf),void(this.bf=jeeplus.delay(function(){this.loadNext(e,t,i,n,!0)},this,0,a.datathrottle))):(t||0===t||(t=this.count()),e||(e=a.datafetch||this.count()),this.data.url=this.data.url||n,void(this.callEvent("onDataRequest",[t,e,i,n])&&this.data.url&&this.data.feed.call(this,t,e,i)))},cf:function(e,t){var i=this.$e;return!!(this.Ze&&i.url&&i.from<=t&&i.count+i.from>=e+t)},removeMissed_setter:function(e){return this.data.ff=e},gf:function(){var e=this.s.save;!0===e&&(e=this.s.save=this.s.url);var t={master:this};e&&e.url?jeeplus.extend(t,e):t.url=e,jeeplus.dp(t)},save_setter:function(e){return e&&this.$ready.push(this.gf),e},scheme_setter:function(e){this.data.scheme(e)},dataFeed_setter:function(e){return e=jeeplus.proxy.$parse(e),this.data.attachEvent("onBeforeFilter",jeeplus.bind(function(e,t){if("function"==typeof e)return!0;if(this.s.dataFeed&&(e||t)){e=e||"id",t&&"object"==typeof t&&(t=t.id),this.clearAll();var i=this.s.dataFeed;if("function"==typeof i){var n={};n[e]=t,i.call(this,t,n)}else if(i.$proxy){if(i.load){var s={};s[e]=t,i.load(this,{success:this.M,error:this.N},{filter:s})}}else{var a="filter["+e+"]="+encodeURIComponent(t);this.load(i+(i.indexOf("?")<0?"?":"&")+a,this.s.datatype)}return!1}},this)),e},ef:function(){if(this.s.ready&&!this.hf){var e=jeeplus.toFunctor(this.s.ready,this.$scope);e&&jeeplus.delay(e,this,arguments),this.callEvent&&jeeplus.delay(this.callEvent,this,["onReady",[]]),this.hf=!0}},We:function(e){for(var t=0;t<this.Ve.length;t++){var i=this.Ve[t];try{i.aborted=!0}catch(e){jeeplus.ly.push(i)}i.abort()}e||(this.Ze=!1,this.$e={},this.Ve=jeeplus.toArray(),this.waitData=jeeplus.promise.defer())},Xe:function(e){this.C(e)}},jeeplus.AtomDataLoader),jeeplus.ly=jeeplus.toArray(),jeeplus.DataMarks={addCss:function(e,t,i){if(!this.addRowCss&&!i&&!this.hasCss(e,t)){var n=this.getItemNode(e);n&&(n.className+=" "+t,i=!0)}return this.data.addMark(e,t,1,1,i)},removeCss:function(e,t,i){if(!this.addRowCss&&!i&&this.hasCss(e,t)){var n=this.getItemNode(e);n&&(n.className=n.className.replace(t,"").replace(" "," "),i=!0)}return this.data.removeMark(e,t,1,i)},hasCss:function(e,t){return this.data.getMark(e,t)},clearCss:function(e,t){return this.data.clearMark(e,1,t)}},jeeplus.DataStore=function(){this.name="DataStore",jeeplus.extend(this,jeeplus.EventSystem),this.setDriver("json"),this.pull={},this.order=jeeplus.toArray(),this.Me={}},jeeplus.DataStore.prototype={setDriver:function(e){this.driver=jeeplus.DataDriver[e]},df:function(e,t){this.callEvent("onParse",[this.driver,e]),this.jf&&this.filter();var i=this.driver.getInfo(e);i.key&&(jeeplus.securityKey=i.key),i.config&&this.callEvent("onServerConfig",[i.config]);var n=this.driver.getOptions(e);n&&this.callEvent("onServerOptions",[n]);var s=this.driver.getRecords(e);this.kf(i,s),this.lf&&this.mf&&!this.nf&&this.mf(this.lf),this.of&&(this.blockEvent(),this.sort(this.of),this.unblockEvent()),this.callEvent("onStoreLoad",[this.driver,e]),this.refresh()},kf:function(e,t){var i=e.from,n=!0,s=!1;if(!i&&0!==i&&this.order[0]){if(this.ff){s={};for(var a=0;a<this.order.length;a++)s[this.order[a]]=!0}n=!1,i=this.order.length}else i=1*(i||0);var r=0;for(a=0;a<t.length;a++){var o=this.driver.getDetails(t[a]),l=this.id(o);this.pull[l]?n&&this.order[r+i]&&r++:(this.order[r+i]=l,r++),this.pull[l]?(jeeplus.extend(this.pull[l],o,!0),this.pf&&this.pf(this.pull[l]),s&&delete s[l]):(this.pull[l]=o,this.qf&&this.qf(o))}if(s){for(var h in this.blockEvent(),s)this.remove(h);this.unblockEvent()}this.order[e.size-1]||(this.order[e.size-1]=jeeplus.undefined)},id:function(e){return e.id||(e.id=jeeplus.uid())},changeId:function(e,t){e!=t&&(this.pull[e]&&(this.pull[t]=this.pull[e]),this.pull[t].id=t,this.order[this.order.find(e)]=t,this.jf&&(this.jf[this.jf.find(e)]=t),this.Me[e]&&(this.Me[t]=this.Me[e],delete this.Me[e]),this.callEvent("onIdChange",[e,t]),this.Ke&&this.Ke(e,t),delete this.pull[e])},getItem:function(e){return this.pull[e]},updateItem:function(e,t,i){"object"==typeof e&&(e=e.toString());var n=this.getItem(e),s=null,a=this.hasEvent("onDataUpdate");jeeplus.isUndefined(t)||n===t||(a&&(s=jeeplus.copy(n)),e=n.id,jeeplus.extend(n,t,!0),n.id=e),this.pf&&this.pf(n),this.callEvent("onStoreUpdated",[e,n,i||"update"]),a&&this.callEvent("onDataUpdate",[e,n,s])},refresh:function(e){this.rf||(e?this.exists(e)&&this.callEvent("onStoreUpdated",[e,this.pull[e],"paint"]):this.callEvent("onStoreUpdated",[null,null,null]))},silent:function(e,t){this.rf=!0,e.call(t||this),this.rf=!1},getRange:function(e,t){if(e=e?this.getIndexById(e):this.$min||this.startOffset||0,t?t=this.getIndexById(t):(t=0===this.$max?0:Math.min(this.$max?this.$max-1:this.endOffset||1/0,this.count()-1))<0&&(t=0),t<e){var i=t;t=e,e=i}return this.getIndexRange(e,t)},getIndexRange:function(e,t){t=Math.min(0===t?0:t||1/0,this.count()-1);for(var i=jeeplus.toArray(),n=e||0;n<=t;n++)i.push(this.getItem(this.order[n]));return i},count:function(){return this.order.length},exists:function(e){return!!this.pull[e]},move:function(e,t){if(e!=t){var i=this.getIdByIndex(e),n=this.getItem(i);this.jf&&this.sf(this.jf,0,0,this.getIdByIndex(e),this.getIdByIndex(t)),this.sf(this.order,e,t),this.callEvent("onStoreUpdated",[i,n,"move"])}},sf:function(e,t,i,n,s){if(n||s){t=i=-1;for(var a=0;a<e.length;a++)e[a]==n&&t<0&&(t=a),e[a]==s&&i<0&&(i=a)}var r=e[t];e.removeAt(t),e.insertAt(r,Math.min(e.length,i))},scheme:function(e){for(var t in this.tf={},this.uf=e.$save,this.qf=e.$init||e.$change,this.pf=e.$update||e.$change,this.vf=e.$serialize,this.lf=e.$group,this.of=e.$sort,e)"$"!=t.substr(0,1)&&(this.tf[t]=e[t])},importData:function(e,t){var i=e?e.data||e:[];if(this.jf=null,"function"==typeof i.serialize){if(this.order=jeeplus.toArray([].concat(i.order)),this.OF){this.OF=!1;var n=this.pull;for(var s in this.pull={},i.pull){var a=n[s];this.pull[s]=jeeplus.copy(i.pull[s]),a&&a.open&&(this.pull[s].open=!0)}}else this.pull=i.pull;i.branch&&this.branch&&(this.branch=jeeplus.copy(i.branch),this.Mg=null)}else{var r,o;if(this.order=jeeplus.toArray(),this.pull={},jeeplus.isArray(e))for(s=0;s<e.length;s++)"object"==typeof(o=r=e[s])?o.id=o.id||jeeplus.uid():o={id:r,value:r},this.order.push(o.id),this.qf&&this.qf(o),this.pull[o.id]=o;else for(var s in i)this.order.push(s),this.pull[s]={id:s,value:i[s]}}if(this.Pg&&!i.branch){this.branch={0:[]},this.Og||this.Lg("data");for(var l=0;l<this.order.length;l++){s=this.order[l];this.Pg(this.pull[s],0,0,!1)}}this.callEvent("onStoreLoad",[]),t||this.callEvent("onStoreUpdated",[])},sync:function(n,s,a){this.unsync();var e=typeof n;if("string"==e&&(n=jeeplus.$$(n)),"function"!=e&&"object"!=e&&(a=s,s=null),"DataStore"!=n.name){if(!n.data||"DataStore"!==n.data.name&&"TreeStore"!==n.data.name)return this.Ts=n,jeeplus.callEvent("onSyncUnknown",[this,n,s]);n=n.data}var t=jeeplus.bind(function(e,t,i){this.wf||(s&&this.branch&&(this.OF=!0),this.importData(n,!0),s&&this.silent(s),this.Y&&this.Y(),this.OF,e&&t&&i||(this.Me={}),"delete"==i&&this.Me[e]&&delete this.Me[e],this.callEvent("onSyncApply",[]),a?a=!1:this.refresh())},this);this.ab=[n.attachEvent("onStoreUpdated",t),n.attachEvent("onIdChange",jeeplus.bind(function(e,t){this.changeId(e,t),this.refresh(t)},this))],this.Ts=n,this.Us=this.attachEvent("onStoreUpdated",function(e,t,i){("update"==i||"save"==i)&&(this.wf=1,n.updateItem(e,t),this.wf=0)}),t()},unsync:function(){if(this.Ts){var e=this.Ts;if("DataStore"==e.name||e.data&&"DataStore"==e.data.name){for(var t=0;t<this.ab.length;t++)e.detachEvent(this.ab[t]);this.detachEvent(this.Us)}else jeeplus.callEvent("onUnSyncUnknown",[this,e]);this.Ts=null}},destructor:function(){this.unsync(),this.pull=this.order=this.Me=null,this.i=this.j={}},add:function(e,t){if(this.tf)for(var i in this.tf)jeeplus.isUndefined(e[i])&&(e[i]=this.tf[i]);this.qf&&this.qf(e);var n=this.id(e),s=arguments[2]||this.order,a=s.length;if((jeeplus.isUndefined(t)||t<0)&&(t=a),a<t&&(t=Math.min(s.length,t)),!1===this.callEvent("onBeforeAdd",[n,e,t]))return!1;if(this.pull[n]=e,s.insertAt(n,t),this.jf){var r=this.jf.length;this.order.length&&(r=Math.min(t||0,r)),this.jf.insertAt(n,r)}return this.callEvent("onStoreUpdated",[n,e,"add"]),this.callEvent("onAfterAdd",[n,t]),e.id},remove:function(e){if(jeeplus.isArray(e))for(var t=0;t<e.length;t++)this.remove(e[t]);else{if(!1===this.callEvent("onBeforeDelete",[e]))return!1;var i=this.getItem(e);this.order.remove(e),this.jf&&this.jf.remove(e),delete this.pull[e],this.Me[e]&&delete this.Me[e],this.callEvent("onStoreUpdated",[e,i,"delete"]),this.callEvent("onAfterDelete",[e])}},clearAll:function(e){this.pull={},this.Me={},this.order=jeeplus.toArray(),this.jf=null,e||(this.url=null),this.callEvent("onClearAll",[e]),this.refresh()},getIdByIndex:function(e){return this.order[e]},getIndexById:function(e){var t=this.order.find(e);return this.pull[e]?t:-1},getNextId:function(e,t){return this.order[this.getIndexById(e)+(t||1)]},getFirstId:function(){return this.order[0]},getLastId:function(){return this.order[this.order.length-1]},getPrevId:function(e,t){return this.order[this.getIndexById(e)-(t||1)]},sort:function(e,t,i){var n=e;"function"==typeof e?n={as:e,dir:t}:"string"==typeof e&&(n={by:e.replace(/#/g,""),dir:t,as:i});var s=[n.by,n.dir,n.as,n];this.callEvent("onBeforeSort",s)&&(this.order=this.xf(n,this.order),this.jf&&this.jf.length!=this.order.length&&(this.jf=this.xf(n,this.jf)),this.refresh(),this.callEvent("onAfterSort",s))},xf:function(e,t){var i=this.sorting.create(e);if(this.order.length){for(var n=t.splice(0,this.$freeze),s=jeeplus.toArray(),a=t.length-1;0<=a;a--)s[a]=this.pull[t[a]];return s.sort(i),jeeplus.toArray(n.concat(s.map(function(e){return this.id(e)},this)))}return t},Af:function(e){this.jf&&!e&&(this.order=this.jf,delete this.jf)},Bf:function(e,t,i){for(var n=jeeplus.toArray(),s=this.$freeze||0,a=0;a<this.order.length;a++){var r=this.order[a];(a<s||e(this.getItem(r),t))&&n.push(r)}i&&this.jf||(this.jf=this.order),this.order=n},find:function(e,t){var i=[];for(var n in this.pull){var s=this.pull[n],a=!0;if("object"==typeof e){for(var r in e)if(s[r]!=e[r]){a=!1;break}}else e(s)||(a=!1);if(a&&i.push(s),t&&i.length)return i[0]}return i},filter:function(i,t,e){if((i||this.jf||this.Mg)&&this.callEvent("onBeforeFilter",[i,t])&&(this.Af(e),this.order.length)){if(i){var n=i;t=t||"","string"==typeof i&&(i=i.replace(/#/g,""),"function"==typeof t?n=function(e){return t(e[i])}:(t=t.toString().toLowerCase(),n=function(e,t){return-1!=(e[i]||"").toString().toLowerCase().indexOf(t)})),this.Bf(n,t,e,this.Cf)}this.refresh(),this.callEvent("onAfterFilter",[])}},Df:function(){for(var e=[],t=this.order.length-1;0<=t;t--)e[t]=this.pull[this.order[t]];return e},each:function(e,t,i){var n=this.order;i&&(n=this.jf||n);for(var s=0;s<n.length;s++)n[s]&&e.call(t||this,this.getItem(n[s]),s)},Ef:function(e,t){return function(){return e[t].apply(e,arguments)}},provideApi:function(e,t){t&&this.mapEvent({onbeforesort:e,onaftersort:e,onbeforeadd:e,onafteradd:e,onbeforedelete:e,onafterdelete:e,ondataupdate:e});for(var i=["sort","add","remove","exists","getIdByIndex","getIndexById","getItem","updateItem","refresh","count","filter","find","getNextId","getPrevId","clearAll","getFirstId","getLastId","serialize","sync"],n=0;n<i.length;n++)e[i[n]]=this.Ef(this,i[n])},addMark:function(e,t,i,n,s){var a=this.Me[e]||{};if(!(this.Me[e]=a)[t]){if(a[t]=n||!0,i){var r=a.$css||"";a.$css=r+" "+t}s||this.refresh(e)}return a[t]},removeMark:function(e,t,i,n){var s=this.Me[e];if(s){if(s[t]&&delete s[t],i){var a=s.$css;a&&(s.$css=a.replace(t,"").replace(" "," "))}n||this.refresh(e)}},getMark:function(e,t){var i=this.Me[e];return!!i&&i[t]},clearMark:function(e,t,i){for(var n in this.Me){var s=this.Me[n];s[e]&&(delete s[e],t&&s.$css&&(s.$css=s.$css.replace(e,"").replace(" "," ")),i||this.refresh(n))}},serialize:function(e){var t=this.order;e&&this.jf&&(t=this.jf);for(var i=[],n=0;n<t.length;n++){var s=this.pull[t[n]];this.vf&&!1===(s=this.vf(s))||i.push(s)}return i},sorting:{create:function(e){return this.Ff(e.dir,this.Gf(e.by,e.as))},as:{server:function(){return!1},date:function(e,t){return(t-=0)<(e-=0)?1:e<t?-1:0},int:function(e,t){return(t*=1)<(e*=1)?1:e<t?-1:0},string_strict:function(e,t){return e=e.toString(),(t=t.toString())<e?1:e<t?-1:0},string:function(e,t){return t?e?(e=e.toString().toLowerCase(),(t=t.toString().toLowerCase())<e?1:e<t?-1:0):-1:1},raw:function(e,t){return t<e?1:e<t?-1:0}},Gf:function(i,n){return i?("function"!=typeof n&&(n=this.as[n||"string"]),function(e,t){return n(e[i],t[i])}):n},Ff:function(e,i){return"asc"!=e&&e?function(e,t){return-1*i(e,t)}:i}}},jeeplus.DataCollection=jeeplus.proto({name:"DataCollection",isVisible:function(){return!!(this.data.order.length||this.data.jf||this.s.dataFeed)},$init:function(e){this.data.provideApi(this,!0);var t=e&&e.id?e.id:jeeplus.uid();this.s.id=t,(jeeplus.ui.views[t]=this).data.attachEvent("onStoreLoad",jeeplus.bind(function(){this.callEvent("onBindRequest",[])},this))},refresh:function(){this.callEvent("onBindRequest",[])}},jeeplus.DataMove,jeeplus.CollectionBind,jeeplus.BindSource,jeeplus.ValidateCollection,jeeplus.DataLoader,jeeplus.MapCollection,jeeplus.EventSystem,jeeplus.BaseBind,jeeplus.Destruction,jeeplus.Settings),jeeplus.Scrollable={$init:function(e){return e&&!e.scroll&&this.If?this.y=this.y||this.w:((this.y||this.w).appendChild(jeeplus.html.create("DIV",{class:"jeeplus_scroll_cont"},"")),this.y=(this.y||this.w).firstChild,void(jeeplus.env.touch&&"native"!==jeeplus.env.touch||jeeplus.UE(this.x,"scroll",jeeplus.bind(function(e){this.callEvent&&jeeplus.delay(function(){this.callEvent("onAfterScroll",[])},this)},this))))},scroll_setter:function(e){if(!e)return!1;var t="x"==e?"x":"xy"==e?"xy":"a"==e?"xy":"y";if(jeeplus.Touch&&jeeplus.Touch.$active&&"native"!=jeeplus.env.touch)this.y.setAttribute("touch_scroll",t),this.attachEvent&&this.attachEvent("onAfterRender",jeeplus.bind(this.Jf,this)),this.Kf=!0;else if(jeeplus.env.$customScroll)jeeplus.CustomScroll.enable(this,t);else{var i=this.y.parentNode.style;-1!=e.toString().indexOf("a")?i.overflowX=i.overflowY="auto":(-1!=t.indexOf("x")&&(this.ec=!0,i.overflowX="scroll"),-1!=t.indexOf("y")&&(this.cc=!0,i.overflowY="scroll"))}return t},Lf:function(e){if(!!this.s.scroll!=!!e){if(!jeeplus.env.$customScroll){var t=this.y.parentNode.style;t.overflowX=t.overflowY=e?"auto":"hidden"}this.ec=this.cc=!!e,this.s.scroll=!!e}},getScrollState:function(){if(jeeplus.Touch&&jeeplus.Touch.$active){var e=jeeplus.Touch.Mf(this.y);return{x:-e.e,y:-e.f}}return{x:this.y.parentNode.scrollLeft,y:this.y.parentNode.scrollTop}},scrollTo:function(e,t){jeeplus.Touch&&jeeplus.Touch.$active&&"native"!=jeeplus.env.touch?(t=Math.max(0,Math.min(t,this.y.offsetHeight-this.dc)),e=Math.max(0,Math.min(e,this.y.offsetWidth-this.bc)),jeeplus.Touch.Nf(this.y,-e,-t,this.s.scrollSpeed||"100ms")):(this.y.parentNode.scrollLeft=e,this.y.parentNode.scrollTop=t)},Jf:function(){-1!=this.s.scroll.toString().indexOf("x")&&((n=this.y.scrollWidth)&&(this.y.style.width="100%",this.y.style.width=this.y.scrollWidth+"px"));if(jeeplus.Touch&&jeeplus.Touch.$active&&this.Kf){jeeplus.Touch.Of(),jeeplus.Touch.Pf();var e=this.getScrollState(),t=this.y.offsetWidth-this.$width-e.x,i=this.y.offsetHeight-this.$height-e.y;if(t<0||i<0){var n=t<0?Math.min(-t-e.x,0):-e.x,s=i<0?Math.min(-i-e.y,0):-e.y;jeeplus.Touch.Nf(this.y,n,s,0)}}}},jeeplus.protoUI({defaults:{size:10,page:0,group:5,template:"{common.pages()}",maxWidth:1e5,height:30,borderless:!0},name:"pager",on_click:{jeeplus_pager_item:function(e,t){this.select(t)}},$init:function(e){this.data=this.s,this.y=this.x,this.x.className+=" jeeplus_pager"+(e.autowidth?" jeeplus_pager_auto":""),(!1===e.master||0===e.master)&&this.$ready.push(this.wt)},wt:function(){this.refresh(),this.$master={refresh:function(){},select:function(){}}},select:function(e){if(this.$master&&"pager"==this.$master.name)return this.$master.select(e);switch(e){case"next":e=this.s.page+1;break;case"prev":e=this.s.page-1;break;case"first":e=0;break;case"last":e=this.s.limit-1}e<0&&(e=0),e>=this.data.limit&&(e=this.data.limit-1);var t=this.data.page;this.callEvent("onBeforePageChange",[e,t])&&(this.data.page=1*e,this.refresh()&&(this.s.animate&&this.Qf(t,1*e,this.s.animate)||this.$master.refresh()),this.callEvent("onAfterPageChange",[e]))},ad:"jeeplus_p_id",template_setter:jeeplus.template,type:{template:function(e,t){return e.template.call(this,e,t)},pages:function(e){var t="";if(-1==e.page)return"";e.$min=e.page-Math.round((e.group-1)/2),e.$max=e.$min+1*e.group-1,e.$min<0&&(e.$max+=-1*e.$min,e.$min=0),e.$max>=e.limit&&(e.$min-=Math.min(e.$min,e.$max-e.limit+1),e.$max=e.limit-1);for(var i=e.$min||0;i<=e.$max;i++)t+=this.button({id:i,index:i+1,selected:i==e.page?"_selected":"",label:jeeplus.i18n.aria.page+" "+(i+1)});return t},page:function(e){return e.page+1},first:function(){return this.button({id:"first",index:jeeplus.locale.pager.first,selected:"",label:jeeplus.i18n.aria.pages[0]})},last:function(){return this.button({id:"last",index:jeeplus.locale.pager.last,selected:"",label:jeeplus.i18n.aria.pages[3]})},prev:function(){return this.button({id:"prev",index:jeeplus.locale.pager.prev,selected:"",label:jeeplus.i18n.aria.pages[1]})},next:function(){return this.button({id:"next",index:jeeplus.locale.pager.next,selected:"",label:jeeplus.i18n.aria.pages[2]})},button:jeeplus.template("<button type='button' jeeplus_p_id='{obj.id}' class='jeeplus_pager_item{obj.selected}' aria-label='{obj.label}'>{obj.index}</button>")},clone:function(e){e.$view||(e.view="pager",e=jeeplus.ui(e)),((this.Rf=e).$master=this).Sf()},refresh:function(){var e=this.s;if(e.count){e.limit=Math.ceil(e.count/e.size);var t=Math.min(e.limit-1,e.page);return t!=e.page?this.$master.setPage(t):0<=(e.page=t)&&t!=e.old_page||e.limit!=e.old_limit||e.old_count!=e.count?(this.render(),this.Sf(),e.old_limit=e.limit,e.old_page=e.page,e.old_count=e.count,!0):void 0}},apiOnly_setter:function(e){return this.$apiOnly=e},Sf:function(){this.Rf&&(this.Rf.s.count=this.s.count,this.Rf.s.page=this.s.page,this.Rf.refresh())},Qf:function(e,t,i){if(e==t)return!1;if(this.Tf)return this.Uf&&window.clearTimeout(this.Uf),this.Uf=jeeplus.delay(this.Qf,this,[e,t,i],100);var n=e<t?"left":"right";("top"==i.direction||"bottom"==i.direction)&&(n=e<t?"top":"bottom"),i.flip&&(n="");var s=0,a=this.$master.y,r=!!this.$master.Vf;r&&(s=(a=this.$master.Vf).offsetTop,jeeplus.html.addCss(this.$master.$view,"jeeplus_animation"));var o=a.cloneNode(!0);o.style.width=a.style.width="100%",this.$master.refresh(),jeeplus.html.insertBefore(o,a.nextSibling,a.parentNode),r&&(o.childNodes[1].scrollLeft=a.childNodes[1].scrollLeft);var l,h=!0!==i?i:{},u=jeeplus.extend({direction:n,callback:jeeplus.bind(function(){u.callback=null,jeeplus.animate.breakLine(l),this.Tf=!1,this.$master.Vf&&jeeplus.html.removeCss(this.$master.$view,"jeeplus_animation")},this),top:s,keepViews:r},h);l=jeeplus.animate.formLine(a,o,u),jeeplus.animate([a,o],u),this.Tf=!0}},jeeplus.MouseEvents,jeeplus.SingleRender,jeeplus.ui.view,jeeplus.EventSystem),jeeplus.locale.pager={first:" &lt;&lt; ",last:" &gt;&gt; ",next:" &gt; ",prev:" &lt; "},jeeplus.PagingAbility={pager_setter:function(s){if("string"==typeof s){var e=jeeplus.$$(s);if(!e)return this.$blockRender=!0,jeeplus.delay(function(){var e=jeeplus.$$(s);this.s.pager=this.pager_setter(e);var t=e.s;t.count=this.data.ty(t.level),e.refresh(),this.$blockRender=!1,this.render()},this),null;s=e}return this.attachEvent("onBeforeRender",function e(t){if(s.config.autosize&&this.getVisibleCount){var i=this.getVisibleCount();isNaN(i)?(s.config.size=1,jeeplus.delay(e,this,[!0])):i!=s.config.size&&(s.config.size=i,s.refresh(),!0===t&&this.refresh())}var n=this.s.pager;return-1!=n.page&&(this.data.$min=this.sy(0,n.page*n.size),this.data.$max=this.sy(this.data.$min,n.size),this.data.$pagesize=this.data.$max-this.data.$min,!0)}),s.$view||(s.view="pager",s=jeeplus.ui(s)),((this.Wf=s).$master=this).data.attachEvent("onStoreUpdated",function(){var e=s.s;e.count=this.ty(e.level),s.refresh()}),this.data.ty=this.ty,s.s},ty:function(t){if(t&&0!==t){var i=0;return this.each(function(e){e.$level==t&&i++}),i}return this.count()},sy:function(e,t){var i=this.s.pager;if(i.level&&0!==i.level){var n=e,s=this.data.order.length;if(t)for(;n<s;){if(this.data.order[n]&&this.data.getItem(this.data.order[n]).$level==i.level){if(0===t)break;t--}n++}return n}return e+t},setPage:function(e){this.Wf&&this.Wf.select(e)},getPage:function(){return this.Wf.s.page},getPager:function(){return this.Wf}},jeeplus.protoUI({name:"tooltip",defaults:{dy:0,dx:20},$init:function(e){"string"==typeof e&&(e={template:e}),this.type=jeeplus.extend({},this.type),this.$view=this.x=this.w=this.y=jeeplus.html.create("DIV",{role:"alert","aria-atomic":"true"}),this.w.className="jeeplus_tooltip",jeeplus.html.insertBefore(this.w,document.body.firstChild,document.body),this.PF=jeeplus.attachEvent("onClick",jeeplus.bind(function(e){this.gz&&jeeplus.$$(e)!=this&&this.hide()},this)),this.attachEvent("onDestruct",function(){jeeplus.detachEvent(this.PF)})},adjust:function(){},isVisible:function(){return!0},show:function(e,t){if(!this.Xf){if(this.data!=e&&(this.data=jeeplus.extend({},e),this.render(e)),this.y.firstChild){var i=Math.max(document.documentElement.clientWidth,window.innerWidth||0),n=Math.max(document.documentElement.clientHeight,window.innerHeight||0),s=i-t.x,a=n-t.y;this.w.style.display="block",s-this.s.dx>this.w.offsetWidth?s=t.x:(s=t.x-2*this.s.dx-this.w.offsetWidth)<=0&&(s=0),a=a-this.s.dy>this.w.offsetHeight?t.y:t.y-this.s.dy-this.w.offsetHeight,this.w.style.left=s+this.s.dx+"px",this.w.style.top=a+this.s.dy+"px"}this.gz=!0}},hide:function(){this.data=null,this.w.style.display="none",this.gz=!1},disable:function(){this.Xf=!0},enable:function(){this.Xf=!1},type:{template:jeeplus.template("{obj.id}"),templateStart:jeeplus.template.empty,templateEnd:jeeplus.template.empty}},jeeplus.SingleRender,jeeplus.Settings,jeeplus.EventSystem,jeeplus.ui.view),jeeplus.AutoTooltip={tooltip_setter:function(e){if(e){"function"==typeof e&&(e={template:e});var r=!e.template,o=new jeeplus.ui.tooltip(e);this.Vc();var t=this.attachEvent("onMouseMove",function(e,t){if(this.DA=t.clientX,this.EA=t.clientY,this.getColumnConfig){var n=o.type.column=this.getColumnConfig(e.column);if(r){if(!n.tooltip&&n.tooltip!=jeeplus.undefined)return;var i=t.target||t.srcElements;if(i.getAttribute("jeeplus_area")&&n.tooltip){var s=i.getAttribute("jeeplus_area");o.type.template=function(e,t){var i=e[t.column.id];return jeeplus.template(n.tooltip).call(this,e,t,i[s],s)}}else if(n.tooltip)o.type.template=n.tooltip=jeeplus.template(n.tooltip);else{var a=this.getText(e.row,e.column);o.type.template=function(){return a}}}}jeeplus.DragControl.active||o.show(this.getItem(e.row||e),jeeplus.html.pos(t))}),i=jeeplus.event(document.body,"mousemove",jeeplus.bind(function(e){e=e||event,(this.DA!=e.clientX||this.EA!=e.clientY)&&o.hide()},this));return this.attachEvent("onDestruct",function(){this.config.tooltip&&this.config.tooltip.destructor()}),this.attachEvent("onAfterScroll",function(){o.hide()}),o.attachEvent("onDestruct",jeeplus.bind(function(){this.detachEvent(t),jeeplus.eventRemove(i)},this)),o}}},jeeplus.protoUI({name:"proto",$init:function(){this.data.provideApi(this,!0),this.y=this.y||this.w,this.data.attachEvent("onStoreUpdated",jeeplus.bind(function(){this.render.apply(this,arguments)},this))},$setSize:function(){jeeplus.ui.view.prototype.$setSize.apply(this,arguments)&&this.render()},ad:"jeeplus_item",on_mouse_move:{},type:{}},jeeplus.PagingAbility,jeeplus.DataMarks,jeeplus.AutoTooltip,jeeplus.ValidateCollection,jeeplus.RenderStack,jeeplus.DataLoader,jeeplus.ui.view,jeeplus.EventSystem,jeeplus.Settings),jeeplus.CodeParser={collapseNames:function(e,t,i){if(i=i||{},t=t||"",!e||"object"!=typeof e)return null;for(var n in e)!e[n]||"object"!=typeof e[n]||jeeplus.isDate(e[n])||jeeplus.isArray(e[n])?i[t+n]=e[n]:jeeplus.CodeParser.collapseNames(e[n],t+n+".",i);return i},expandNames:function(e){var t,i,n,s,a,r={};for(a in e){for(i=(n=a.split(".")).length-1,s=r,t=0;t<i;t++)s[n[t]]||(s[n[t]]={}),s=s[n[t]];s[n[i]]=e[a]}return r}},jeeplus.Values={$init:function(){this.elements={}},focus:function(e){if(e)this.ub(this.elements[e]);else for(var t in this.elements)if(this.ub(this.elements[t]))return!0},ub:function(e){return e&&e.focus?(e.focus(),!0):void 0},setValues:function(e,t){this.s.complexData&&(e=jeeplus.CodeParser.collapseNames(e)),this.Zf(e,t)},Zf:function(e,t){for(var i in this.Yf=t,this.blockEvent(),t&&this.$f||(this.$f={}),e)this.elements[i]||(this.$f[i]=e[i]);for(var i in this.elements){var n=this.elements[i];n&&(jeeplus.isUndefined(e[i])?!t&&n.Ce&&n.setValue(""):n.setValue(e[i]),this.$f[i]=n.getValue())}this.unblockEvent(),this.callEvent("onValues",[])},isDirty:function(){return!!this.Yf||1===this.getDirtyValues(1)},setDirty:function(e){(this.Yf=e)||(this.$f=this.hz())},getDirtyValues:function(){var e={};if(this.$f)for(var t in this.elements){var i=this.elements[t].getValue();if(this.$f[t]!=i&&(e[t]=i,arguments[0]))return 1}return e},getCleanValues:function(){return this.$f},getValues:function(e){var t=this.hz(e);return this.s.complexData&&(t=jeeplus.CodeParser.expandNames(t)),t},hz:function(e){var t,i=null,n=this.$f?jeeplus.copy(this.$f):{};for(var s in this.elements)i=this.elements[s],t=!0,e&&("object"==typeof e?(!1===e.hidden&&(t=i.isVisible()),t&&!1===e.disabled&&(t=i.isEnabled())):t=e.call(this,i)),t?n[s]=i.getValue():delete n[s];return n},clear:function(){this.Yf=!1;var e={};for(var t in this.elements)this.elements[t].Ce&&(e[t]=this.elements[t].s.defaultValue||"");this.Zf(e)},markInvalid:function(e,t){if(!1===t)this.Qe(e);else{if("string"==typeof t){var i=this.elements[e];i&&(i.s.invalidMessage=t)}this.Te(e)}},Te:function(e){var t=this.elements[e];e&&t&&(this.Qe(e,!0),jeeplus.html.addCss(t.x,"jeeplus_invalid"),t.s.invalid=!0,"string"==typeof t.s.invalidMessage&&t.setBottomText&&t.setBottomText())},Qe:function(e,t){var i=this.elements[e];e&&i&&i.$view&&i.s.invalid&&(jeeplus.html.removeCss(i.x,"jeeplus_invalid"),i.s.invalid=!1,"string"==typeof i.s.invalidMessage&&!t&&i.setBottomText&&i.setBottomText())}},jeeplus.protoUI({name:"toolbar",defaults:{type:"toolbar"},Gc:!0,_f:"jeeplus_toolbar",ag:!1,$init:function(e){e.borderless||(this.w.style.borderWidth="1px"),this.w.className+=" "+this._f,this.x.setAttribute("role","toolbar")},Qs:function(){var t=this;t.elements={},jeeplus.ui.each(this,function(e){return e.s.name&&e.getValue&&e.setValue&&((t.elements[e.s.name]=e).mapEvent&&e.mapEvent({onbeforetabclick:t,onaftertabclick:t,onitemclick:t,onchange:t})),!e.setValues&&void 0});var e=this.$f;if(this.setDirty(!1),e){var i=this.$f;for(var n in t.elements)e[n]&&i[n]!=e[n]&&(i[n]=e[n],this.setDirty(!0))}},sc:function(){this.Qs()},Bc:function(e){var t=this.s;return t.elements&&!e&&(this.nc=e=t.elements,this.mc=this.ag,delete t.elements),this.s.elementsConfig&&this.eg(this.nc,t.elementsConfig),e},eg:function(e,t){for(var i=0;i<e.length;i++){var n=e[i];jeeplus.extend(n,t);var s,a=t;n.elementsConfig&&(a=jeeplus.extend(jeeplus.extend({},n.elementsConfig),t)),(s=n.body?[n.body]:n.rows||n.cols||n.cells||n.body)&&this.eg(s,a)}},$getSize:function(e,t){var i=jeeplus.ui.layout.prototype.$getSize.call(this,e,t),n=this.getParentView(),s=this.mc?3:1;return n&&this.mc!=n.mc&&(i[s]+=1e5),i},render:function(){},refresh:function(){this.render()}},jeeplus.Scrollable,jeeplus.AtomDataLoader,jeeplus.Values,jeeplus.ui.layout,jeeplus.ValidateData),jeeplus.protoUI({name:"template",$init:function(e){var t=this.fg[e.type];t&&(jeeplus.extend(e,t),e.borderless&&(delete e.Ob,this.hc(e))),this.y==this.x?(this.y=jeeplus.html.create("DIV"),this.y.className=" jeeplus_template",this.x.appendChild(this.y)):this.y.className+=" jeeplus_template",this.attachEvent("onAfterRender",this.hg)},setValues:function(e,t){this.data=t?jeeplus.extend(this.data,e,!0):e,this.render()},getValues:function(){return this.data},$skin:function(){this.fg.header.height=this.fg.section.height=jeeplus.skin.$active.barHeight},fg:{header:{css:"jeeplus_header"},section:{css:"jeeplus_section",borderless:!0},clean:{css:"jeeplus_clean",borderless:!0}},onClick_setter:function(e){return this.on_click=jeeplus.extend(this.on_click||{},e,!0),this.Sc||jeeplus.extend(this,jeeplus.MouseEvents),e},defaults:{template:jeeplus.template.empty},gg:function(){this.ig=!1,this.jg(),this.resize()},jg:function(){this.ig||(this.ig=!0,this.render())},src_setter:function(e){return this.ig=!0,this.callEvent("onBeforeLoad",[])?(jeeplus.ajax(e,jeeplus.bind(function(e){this.s.template=jeeplus.template(e),this.gg(),this.callEvent("onAfterLoad",[])},this)),e):""},hg:function(){this.s.autoheight&&(this.ac=null,this.resize()),this.s.scroll&&-1!=this.s.scroll.indexOf("x")&&(this.y.style.width=this.y.scrollWidth+"px")},content_setter:function(e){e&&(this.ig=!0,this.render=function(){},this.y.appendChild(jeeplus.toNode(e)))},refresh:function(){this.render()},setHTML:function(e){this.s.template=function(){return e},this.refresh()},setContent:function(e){this.y.innerHTML="",this.content_setter(e)},$setSize:function(e,t){if(jeeplus.ui.view.prototype.$setSize.call(this,e,t)){if(this.jg(),this.s.autoheight){var i=this.getTopParentView();clearTimeout(i.kg),i.kg=jeeplus.delay(this.resize,this)}return!0}},$getSize:function(e,t){return this.s.autoheight&&!this.s.type&&(this.s.height=this.lg()),jeeplus.ui.view.prototype.$getSize.call(this,e,t)},lg:function(){var e,t=jeeplus.skin.$active.layoutPadding.space;return this.jg(),this.isVisible()?(this.y.style.height="auto",e=this.y.scrollHeight,this.y.style.height=""):e=jeeplus.html.getTextSize(this.jb(this.data)||this.y.innerHTML,"jeeplus_template",(this.$width||(this.getParentView()?this.getParentView().$width:0))-t).height,e},If:!0},jeeplus.Scrollable,jeeplus.AtomDataLoader,jeeplus.AtomRender,jeeplus.EventSystem,jeeplus.ui.view),jeeplus.protoUI({name:"iframe",$init:function(e){this.y=this.w,this.w.innerHTML="<iframe style='width:100%; height:100%' frameborder='0' onload='var t = $$(this.parentNode.getAttribute(\"view_id\")); if (t) t.callEvent(\"onAfterLoad\",[]);' src='about:blank'></iframe>"},load:function(e){this.src_setter(e)},src_setter:function(e){return this.callEvent("onBeforeLoad",[])?this.getIframe().src=e:""},getIframe:function(){return this.w.getElementsByTagName("iframe")[0]},getWindow:function(){return this.getIframe().contentWindow}},jeeplus.ui.view,jeeplus.EventSystem),jeeplus.OverlayBox={showOverlay:function(e){this.mg?this.mg.innerHTML=e:(this.mg=jeeplus.html.create("DIV",{class:"jeeplus_overlay"},e||""),jeeplus.html.insertBefore(this.mg,this.x.firstChild,this.x),this.x.style.position="relative")},hideOverlay:function(){this.mg&&(jeeplus.html.remove(this.mg),this.mg=null)}},jeeplus.protoUI({name:"scrollview",defaults:{scroll:"y",scrollSpeed:"0ms"},$init:function(){this.x.className+=" jeeplus_scrollview"},body_setter:function(e){e.borderless=!0,this.gd=jeeplus.ui.A(e),(this.gd.Xb=this).y.appendChild(this.gd.x)},getChildViews:function(){return[this.gd]},getBody:function(){return this.gd},resizeChildren:function(){this.ng=this.gd.$getSize(0,0),this.og(),jeeplus.callEvent("onResize",[])},og:function(){var e=(this.Mw||jeeplus.ui.scrollSize,Math.max(this.bc,this.ng[0])),t=Math.max(this.dc,this.ng[2]);if(this.gd.$setSize(e,t),this.y.style.width=this.gd.bc+"px",this.y.style.height=this.gd.dc+"px",jeeplus.env.touch){var i=this.getScrollState(),n=this.gd.dc-this.dc;n<i.y&&this.scrollTo(null,n)}jeeplus.ED&&(jeeplus.ED=!1,this.ng=this.gd.$getSize(0,0),this.og())},$getSize:function(e,t){var i=this.ng=this.gd.$getSize(0,0),n=jeeplus.ui.view.prototype.$getSize.call(this,e,t),s=this.Mw||jeeplus.ui.scrollSize;return"x"==this.s.scroll?(n[2]=Math.max(n[2],i[2])+s,n[3]=Math.min(n[3],i[3])+s):"y"==this.s.scroll&&(n[0]=Math.max(n[0],i[0])+s,n[1]=Math.min(n[1],i[1])+s),n},$setSize:function(e,t){var i=jeeplus.ui.scrollSize;jeeplus.ui.scrollSize=this.Mw||i,(jeeplus.ui.view.prototype.$setSize.call(this,e,t)||jeeplus.ui.QG)&&this.og(),jeeplus.ui.scrollSize=i},scroll_setter:function(e){var t=jeeplus.env.$customScroll;return"string"==typeof e&&0===e.indexOf("native-")&&(this.Mw=17,e=e.replace("native-"),jeeplus.env.$customScroll=!1),e=jeeplus.Scrollable.scroll_setter.call(this,e),jeeplus.env.$customScroll=t,e},Qb:function(e){this.gd.destructor(),this.gd=e,(this.gd.Xb=this).ed.appendChild(this.gd.x),this.resize()},showView:function(e){var t=jeeplus.$$(e).$view.offsetTop-jeeplus.$$(e).$view.parentNode.offsetTop;this.scrollTo(0,t)}},jeeplus.Scrollable,jeeplus.EventSystem,jeeplus.ui.view),jeeplus.TreeRenderStack={$init:function(){},pg:function(e){var t=this.data.Me[e.id];return this.callEvent("onItemRender",[e]),this.type.templateStart(e,this.type,t)+(e.$template?this.type["template"+e.$template](e,this.type,t):this.type.template(e,this.type,t))+this.type.templateEnd()},qg:function(e){return this.v.innerHTML=this.pg(e),this.v.firstChild},jb:function(e){var t="<div role='presentation' class='jeeplus_tree_branch_"+e.$level+"'>"+this.pg(e);return e.open&&(t+=this.rg(e.id)),t+"</div>"},rg:function(e){var t="",i=this.data.branch[e];if(i){t+="<div role='presentation' class='jeeplus_tree_leaves'>";for(var n=i.length-1,s=0;s<=n;s++){var a=this.getItem(i[s]);this.type.sg[a.$level]=s==n,t+=this.jb(a)}t+="</div>"}return t},render:function(e,t,i){if((jeeplus.TreeRenderStack.tg=this).isVisible(this.s.id)&&!this.$blockRender){if(e){var n,s=this.getItem(e);if("add"!=i&&!(n=this.getItemNode(e)))return;switch(i){case"branch":var a=n.parentNode,r=this.Ne(s);jeeplus.html.insertBefore(r,a),jeeplus.html.remove(a),this.t=null;break;case"paint":case"update":r=this.t[e]=this.qg(s);jeeplus.html.insertBefore(r,n),jeeplus.html.remove(n);break;case"delete":jeeplus.html.remove(n.parentNode);break;case"add":var o;if(0==s.$parent)o=this.y.firstChild;else if(this.getItem(s.$parent).open&&(o=this.getItemNode(s.$parent))){if(!o.nextSibling){var l=jeeplus.html.create("DIV",{class:"jeeplus_tree_leaves"},"");o.parentNode.appendChild(l)}o=o.nextSibling}if(o){var h=this.data.getNextSiblingId(e);(h=this.getItemNode(h))&&(h=h.parentNode);r=this.Ne(s);this.t[e]=r.firstChild,jeeplus.html.insertBefore(r,h,o)}break;default:return!1}this.callEvent("onPartialRender",[e,t,i])}else this.callEvent("onBeforeRender",[this.data])&&(this.type.sg=[],this.y.innerHTML=this.rg(0),this.t=null,this.callEvent("onAfterRender",[]));return this.type.sg=0,!(jeeplus.TreeRenderStack.tg=null)}},getItemNode:function(e){if(this.t)return this.t[e];this.t={};for(var t=this.y.getElementsByTagName("DIV"),i=0;i<t.length;i++){var n=t[i].getAttribute(this.ad);n&&(this.t[n]=t[i])}return this.getItemNode(e)},vg:1},jeeplus.SelectionModel={$init:function(){this.wg=jeeplus.toArray(),this.data.attachEvent("onStoreUpdated",jeeplus.bind(this.xg,this)),this.data.attachEvent("onStoreLoad",jeeplus.bind(this.yg,this)),this.data.attachEvent("onAfterFilter",jeeplus.bind(this.zg,this)),this.data.attachEvent("onSyncApply",jeeplus.bind(this.qF,this)),this.data.attachEvent("onIdChange",jeeplus.bind(this.Ag,this)),this.$ready.push(this.uy)},uy:function(){("multiselect"==this.s.select||this.s.multiselect)&&jeeplus.UE(this.$view,"mousedown",function(e){(e||event).shiftKey&&(jeeplus.vy=this,jeeplus.html.addCss(this,"jeeplus_noselect",1))})},Ag:function(e,t){for(var i=this.wg.length-1;0<=i;i--)this.wg[i]==e&&(this.wg[i]=t)},zg:function(){for(var e=this.wg.length-1;0<=e;e--)if(this.data.getIndexById(this.wg[e])<0){var t=this.wg[e];this.removeCss(t,"jeeplus_selected",!0),this.wg.splice(e,1),this.callEvent("onSelectChange",[t])}},xg:function(e,t,i){"delete"==i?this.loadBranch?this.qF():this.wg.remove(e):e||this.data.count()||this.data.jf||(this.wg=jeeplus.toArray())},yg:function(){this.s.select&&this.data.each(function(e){e&&e.$selected&&this.select(e.id)},this)},qF:function(){for(var e=this.wg.length-1;0<=e;e--)this.exists(this.wg[e])||this.wg.splice(e,1)},Bg:function(e,t,i,n){var s=t?"onBeforeSelect":"onBeforeUnSelect";if(!this.callEvent(s,[e,t]))return!1;n&&(this.Dg=!0,this.unselectAll(),this.Dg=!1),t?this.addCss(e,"jeeplus_selected",!0):this.removeCss(e,"jeeplus_selected",!0),i?i.push(e):(t?this.wg.push(e):this.wg.remove(e),this.Cg(e));s=t?"onAfterSelect":"onAfterUnSelect";return this.callEvent(s,[e]),!0},select:function(e,t){var i=arguments[2],n=arguments[3];if(!e)return this.selectAll();if(!jeeplus.isArray(e)){if(n&&this.wg.length)return this.selectAll(this.wg[this.wg.length-1],e);var s=!1;return i||t||1==this.wg.length&&this.wg[0]==e||(s=!0),!s&&this.isSelected(e)?void(i&&this.unselect(e)):void this.Bg(e,!0,null,s)}for(var a=0;a<e.length;a++)this.select(e[a],a?1:t,i,n)},unselect:function(e){return e?void(this.isSelected(e)&&this.Bg(e,!1)):this.unselectAll()},selectAll:function(e,t){var i=[];(e||t?this.data.getRange(e||null,t||null):this.data.getRange()).each(function(e){this.data.getMark(e.id,"jeeplus_selected")||(this.wg.push(e.id),this.Bg(e.id,!0,i))},this),this.Cg(i)},unselectAll:function(){var t=[];this.wg.each(function(e){this.Bg(e,!1,t)},this),this.wg=jeeplus.toArray(),this.Cg(t)},isSelected:function(e){return-1!=this.wg.find(e)},getSelectedId:function(e){switch(this.wg.length){case 0:return e?[]:"";case 1:return e?[this.wg[0]]:this.wg[0];default:return[].concat(this.wg)}},getSelectedItem:function(e){var t=this.getSelectedId(!0);if(1<t.length||e){for(var i=t.length-1;0<=i;i--)t[i]=this.getItem(t[i]);return t}return t.length?this.getItem(t[0]):void 0},Eg:function(e){return 100<e.length||e.length>this.data.count/2},Cg:function(e){if("object"!=typeof e&&(e=[e]),e.length){if(this.Eg(e))this.data.refresh();else for(var t=0;t<e.length;t++)this.render(e[t],this.data.getItem(e[t]),"update");this.Dg||this.callEvent("onSelectChange",[e])}}},jeeplus.ready(function(){jeeplus.event(document.body,"mouseup",function(e){jeeplus.vy&&(jeeplus.html.removeCss(jeeplus.vy,"jeeplus_noselect"),jeeplus.vy=null)})}),jeeplus.TreeDataMove={$init:function(){},copy:function(e,t,i,n){return(n=n||{}).copy=!0,this.move(e,t,i,n)},Kd:function(e,t,i){if(t&&e){var n=this.getBranchIndex(e);return n+(i==this&&i.getBranchIndex(t)<n?0:1)}},Lt:function(e,t){var i=this.data.branch[e];if(i&&i.length)for(var n=0;n<i.length;n++){if(i[n]==t)return!0;if(this.Lt(i[n],t))return!0}return!1},move:function(e,t,i,n){t=t||0;var s=(n=n||{}).newId||e,a=n.parent||0;if((i=i||this).data){if(!jeeplus.isArray(e)){if(this!=i||n.copy){if(s=i.data.add(i.Jd(this.getItem(e),s),t,a||0),this.data.branch[e]&&i.getBranchIndex){var r=this.data.vf;this.data.vf=function(e){var t=jeeplus.copy(e);return delete t.$parent,delete t.$level,delete t.$child,i.data.pull[t.id]&&(t.id=jeeplus.uid()),t};var o={data:this.serialize(e,!0),parent:s};this.data.vf=r,i.parse(o)}n.copy||this.data.remove(e)}else{if(e==a||this.Lt(e,a))return;var l=this.getItem(e),h=this.data.branch[a];h||(h=this.data.branch[a]=[]);var u=this.data.branch[l.$parent],d=jeeplus.PowerArray.find.call(u,e);if(t<0&&(t=h.length),u===h&&t===d)return;if(jeeplus.PowerArray.removeAt.call(u,d),jeeplus.PowerArray.insertAt.call(h,e,Math.min(h.length,t)),u.length||delete this.data.branch[l.$parent],l.$parent&&"0"!=l.$parent&&this.getItem(l.$parent).$count--,a&&"0"!=a){var c=i.getItem(a);c.$count++,this.Fg(l,c.$level+1)}else this.Fg(l,1);l.$parent=a,i.data.callEvent("onDataMove",[e,t,a,h[t+1]])}return this.refresh(),s}for(var p=0;p<e.length;p++){var f=this.move(e[p],t,i,n);t=i.Kd(f,e[p+1],this)}}},Fg:function(e,t){e.$level=t;var i=this.data.branch[e.id];if(i)for(var n=0;n<i.length;n++)this.Fg(this.getItem(i[n]),t+1)},Gg:function(e){e&&!e.header&&this.open(e)},$dropAllow:function(e){if(e.from!=e.to)return!0;for(var t=0;t<e.source.length;t++)if(e.source==e.target||this.Lt(e.source,e.target))return!1;return!0},Jd:function(e,t){var i=jeeplus.DataMove.Jd.call(this,e,t);return delete i.open,i}},jeeplus.TreeDataLoader={$init:function(){this.data.attachEvent("onStoreUpdated",jeeplus.bind(this.Hg,this),null,!0),this._e=this.Ig},Ig:function(e,t,i,n){var s=0===t?{parent:encodeURIComponent(e)}:null;jeeplus.DataLoader.prototype._e.call(this,e,t,i,n,s)},loadBranch:function(e,t,i){e=e||0,this.data.url=i||this.data.url,this.callEvent("onDataRequest",[e,t,this.data.url])&&this.data.url&&this.data.feed.call(this,e,0,t,i)},Hg:function(e,t,i){i&&"add"!=i&&"delete"!=i&&"branch"!=i||this.data.Kg(this)}},jeeplus.TreeStore={name:"TreeStore",$init:function(){this.Cf={showSubItems:!0},this.branch={0:[]},this.attachEvent("onParse",function(e,t){this.Lg(e.child),e.getInfo(t).parent}),this.attachEvent("onClearAll",jeeplus.bind(function(){this.Mg=null},this))},filterMode_setter:function(e){return jeeplus.extend(this.Cf,e,!0)},Af:function(e){if(this.Mg&&!e){for(var t in this.branch=this.Mg,this.order=jeeplus.toArray(jeeplus.copy(this.branch[0])),this.branch)"0"!=t&&(this.getItem(t).$count=this.branch[t].length);delete this.Mg}},Bf:function(e,t,i,n){i&&this.Mg||(this.Mg=this.branch,this.branch=jeeplus.clone(this.branch)),this.branch[0]=this.Ng(e,t,this.branch[0],1,n||{})},Ng:function(e,t,i,n,s){for(var a=[],r=s.level&&s.level!=n,o=0;o<i.length;o++){var l=i[o],h=this.getItem(l),u=!1,d=this.branch[l];if(r)u=!0;else if(e(this.getItem(l),t)){if(a.push(l),!1!==s.openParents)for(var c=this.getParentId(l);c&&"0"!=c;)this.getItem(c).open=1,c=this.getParentId(c);if(s.level||s.showSubItems)continue}else u=!0;if((r||!s.level)&&d){var p=this.branch[l]=this.Ng(e,t,d,n+1,s);h.$count=p.length,u&&p.length&&a.push(l)}}return a},count:function(){if(this.order.length)return this.order.length;var e=0;return this.eachOpen(function(){e++}),e},kG:function(e,t,i,n){if(e[i]){for(var s=e[n]=e[i],a=0;a<s.length;a++)this.getItem(s[a]).$parent=n;delete e[i]}if(e[t]){var r=jeeplus.PowerArray.find.call(e[t],i);0<=r&&(e[t][r]=n)}},changeId:function(e,t){if(e!=t){var i=this.getItem(e).$parent;return this.kG(this.branch,i,e,t),this.Mg&&this.kG(this.Mg,i,e,t),jeeplus.DataStore.prototype.changeId.call(this,e,t)}},clearAll:function(e){this.branch={0:[]},jeeplus.DataStore.prototype.clearAll.call(this,e)},getPrevSiblingId:function(e){var t=this.branch[this.getItem(e).$parent],i=jeeplus.PowerArray.find.call(t,e)-1;return 0<=i?t[i]:null},getNextSiblingId:function(e){var t=this.branch[this.getItem(e).$parent],i=jeeplus.PowerArray.find.call(t,e)+1;return i<t.length?t[i]:null},getParentId:function(e){return this.getItem(e).$parent},getFirstChildId:function(e){var t=this.branch[e];return t&&t.length?t[0]:null},isBranch:function(e){return!!this.branch[e]},getBranchIndex:function(e){var t=this.branch[this.pull[e].$parent];return jeeplus.PowerArray.find.call(t,e)},Lg:function(i){this.Og="string"==typeof i?function(e){var t=e[i];return t&&delete e[i],t}:i},kf:function(e,t){for(var i=e.parent||0,n=0;n<t.length;n++){var s=this.driver.getDetails(t[n]),a=this.id(s),r=!!this.pull[a];r?(s=jeeplus.extend(this.pull[a],s,!0),this.pf&&this.pf(s)):(this.qf&&this.qf(s),this.pull[a]=s),this.Pg(s,i,0,r,e.from?1*e.from+n:0)}var o=this.pull[i]||{},l=this.branch[i]||[];o.$count=l.length,delete o.jeeplus_kids,e.size&&e.size!=l.length&&(l[e.size-1]=jeeplus.undefined)},Pg:function(e,t,i,n,s){e.$count=0,e.$parent="0"!=t?t:0,e.$level=i||("0"!=t?this.pull[t].$level+1:1);var a=this.branch[e.$parent];(a||(a=this.branch[e.$parent]=[]),this.Mg&&(this.Mg[e.$parent]=a),n)||(a[s||a.length]=e.id);var r=this.Og(e);if(e.jeeplus_kids)return e.$count=-1;if(!r)return e.$count=0;jeeplus.isArray(r)||(r=[r]);for(var o=0;o<r.length;o++){var l=jeeplus.DataDriver.json.getDetails(r[o]),h=this.id(l);(n=!!this.pull[h])?(l=jeeplus.extend(this.pull[h],l,!0),this.pf&&this.pf(l)):(this.qf&&this.qf(l),this.pull[h]=l),this.Pg(l,e.id,e.$level+1,n)}var u=this.branch[e.id];u&&(e.$count=u.length)},Kg:function(e){this.order=jeeplus.toArray(),this.Qg(0,e)},Qg:function(e,t){for(var i=this.branch[e],n=0;n<i.length;n++){var s=i[n];this.order.push(s);var a=this.pull[s];a&&a.open&&(-1==a.$count?t.loadBranch(s):a.$count&&this.Qg(s,t))}},provideApi:function(e,t){for(var i=["getPrevSiblingId","getNextSiblingId","getParentId","getFirstChildId","isBranch","getBranchIndex","filterMode_setter"],n=0;n<i.length;n++)e[i[n]]=this.Ef(this,i[n]);e.getIndexById||jeeplus.DataStore.prototype.provideApi.call(this,e,t)},getTopRange:function(){return jeeplus.toArray([].concat(this.branch[0])).map(function(e){return this.getItem(e)},this)},eachChild:function(e,t,i,n){var s=this.branch;n&&this.Mg&&(s=this.Mg);var a=s[e];if(a)for(var r=0;r<a.length;r++)a[r]&&t.call(i||this,this.getItem(a[r]))},each:function(i,n,s,e){this.eachChild(e||0,function(e){var t=this.branch;i.call(n||this,e),s&&this.Mg&&(t=this.Mg),e&&t[e.id]&&this.each(i,n,s,e.id)},this,s)},eachOpen:function(t,i,e){this.eachChild(e||0,function(e){t.call(i||this,e),this.branch[e.id]&&e.open&&this.eachOpen(t,i,e.id)})},eachSubItem:function(e,t){var i=this.branch[e||0];if(i)for(var n=0;n<i.length;n++){var s=i[n];this.branch[s]?(t.call(this,this.getItem(s),!0),this.eachSubItem(s,t)):t.call(this,this.getItem(s),!1)}},eachLeaf:function(e,t){var i=this.branch[e||0];if(i)for(var n=0;n<i.length;n++){var s=i[n];this.branch[s]?this.eachLeaf(s,t):t.call(this,this.getItem(s),!1)}},xf:function(e,t){var i=this.sorting.create(e);for(var n in this.branch){for(var s=this.branch[n],a=[],r=0;r<s.length;r++)a.push(this.pull[s[r]]);a.sort(i);for(r=0;r<s.length;r++)a[r]=a[r].id;this.branch[n]=a}return t},add:function(e,t,i){var n=!1,s=this.getItem(i||0);if(s&&(this.branch[s.id]||(n=!0),s.$count++,s.$count||(s.$count=1)),this.branch[i||0]=this.order=jeeplus.toArray(this.branch[i||0]),e.$count=0,e.$level=s?s.$level+1:1,e.$parent=s?s.id:0,this.Mg){var a=this.Mg[i||0];if(a||(a=this.Mg[i]=this.order),this.order!==a){var r=a.length;!t&&this.branch[i||0].length&&(r=0),a=jeeplus.toArray(a),e.id=e.id||jeeplus.uid(),a.insertAt(e.id,r)}}var o=jeeplus.DataStore.prototype.add.call(this,e,t);return n&&this.refresh(i),o},Rg:function(e,t){var i=this.pull[e];if(this.branch[i.id]&&0<this.branch[i.id].length)for(var n=this.branch[e],s=0;s<n.length;s++)this.Rg(n[s],!0);delete this.branch[e],this.Mg&&delete this.Mg[e],delete this.pull[e],this.Me[e]&&delete this.Me[e]},Wy:function(e,t,i){var n=e[t];1==n.length&&n[0]==i&&t?delete e[t]:jeeplus.toArray(n).remove(i)},remove:function(e){if(jeeplus.isArray(e))for(var t=0;t<e.length;t++)this.remove(e[t]);else{var i=this.pull[e],n=i.$parent||0;if(!1===this.callEvent("onBeforeDelete",[e]))return!1;this.Rg(e),this.callEvent("onAfterDelete",[e]);var s=this.pull[n];this.Wy(this.branch,n,e),this.Mg&&this.Wy(this.Mg,n,e);var a=0;s&&(s.$count--,s.$count<=0&&(s.$count=0,s.open=0,a=1)),this.callEvent("onStoreUpdated",[e,i,"delete"]),a&&this.refresh(s.id)}},getBranch:function(e){var t=[],i=(this.Mg||this.branch)[e];if(i)for(var n=0;n<i.length;n++)t[n]=this.pull[i[n]];return t},serialize:function(e,t){this.branch;t&&this.Mg&&this.Mg;for(var i=this.branch[e||0],n=[],s=0;s<i.length;s++){var a,r=this.pull[i[s]];if(this.vf){if(!1===(a=this.vf(r)))continue}else a=jeeplus.copy(r);this.branch[r.id]&&(a.data=this.serialize(r.id,t)),n.push(a)}return n}},jeeplus.TreeType={space:function(e,t){for(var i="",n=1;n<e.$level;n++)i+="<div class='jeeplus_tree_none'></div>";return i},icon:function(e,t){return e.$count?e.open?"<div class='jeeplus_tree_open'></div>":"<div class='jeeplus_tree_close'></div>":"<div class='jeeplus_tree_none'></div>"},checkbox:function(e,t){return e.nocheckbox?"":"<input type='checkbox' class='jeeplus_tree_checkbox' "+(e.checked?"checked":"")+(e.disabled?" disabled":"")+">"},folder:function(e,t){return e.icon?"<div class='jeeplus_tree_file jeeplus_tree_"+e.icon+"'></div>":e.$count?e.open?"<div class='jeeplus_tree_folder_open'></div>":"<div class='jeeplus_tree_folder'></div>":"<div class='jeeplus_tree_file'></div>"}},jeeplus.TreeAPI={open:function(e,t){if(e){var i=this.getItem(e);i.$count&&!i.open&&(this.callEvent("onBeforeOpen",[e])&&(i.open=!0,this.data.callEvent("onStoreUpdated",[e,0,"branch"]),this.callEvent("onAfterOpen",[e])),t&&"0"!=e&&this.open(this.getParentId(e),t))}},close:function(e){if(e){var t=this.getItem(e);t.open&&this.callEvent("onBeforeClose",[e])&&(t.open=!1,this.data.callEvent("onStoreUpdated",[e,0,"branch"]),this.callEvent("onAfterClose",[e]))}},openAll:function(e){this.data.eachSubItem(e||0,function(e,t){t&&(e.open=!0)}),this.data.refresh()},closeAll:function(e){this.data.eachSubItem(e||0,function(e,t){t&&(e.open=!1)}),this.data.refresh()},Sg:function(e,t,i){if(this.s.threeState)return this.Tg(e,null!==t?t:"");var n,s=this.getItem(e),a=i?i.target||i.srcElement:null;n=a&&"checkbox"==a.type?!!a.checked:null!==t?t:!s.checked,s.checked=n,this.callEvent("onItemCheck",[e,s.checked,i])},isBranchOpen:function(e){if("0"==e)return!0;var t=this.getItem(e);return!!t.open&&this.isBranchOpen(t.$parent)},getOpenItems:function(){var e=[];for(var t in this.data.branch)this.exists(t)&&this.getItem(t).open&&e.push(t);return e},getState:function(){return{open:this.getOpenItems(),select:this.getSelectedId(!0)}},Ug:function(e,t){var i=this.data.attachEvent("onStoreLoad",function(){e.setState.call(e,t),e.data.detachEvent(i),e=null})},setState:function(e){if(e.open){this.closeAll();for(var t=e.open,i=0;i<t.length;i++){var n=this.getItem(t[i]);if(n&&n.$count&&(n.open=!0,-1==n.$count))return this.Ug(this,e),this.refresh(),0}this.refresh()}if(e.select&&this.select){var s=e.select;this.unselect();for(i=0;i<s.length;i++)this.exists(s[i])&&this.select(s[i],!0)}return 1}},jeeplus.TreeClick={jeeplus_tree_open:function(e,t){return this.close(t),!1},jeeplus_tree_close:function(e,t){return this.open(t),!1},jeeplus_tree_checkbox:function(e,t){return this.Sg(t,null,e),!1}},jeeplus.TreeCollection=jeeplus.proto({name:"TreeCollection",$init:function(){jeeplus.extend(this.data,jeeplus.TreeStore,!0),this.data.provideApi(this,!0),jeeplus.extend(this,jeeplus.TreeDataMove,!0)}},jeeplus.TreeDataLoader,jeeplus.DataCollection),jeeplus.AutoScroll={ch:function(e,t){var i=1,n=0;"string"==typeof(u=this.s.dragscroll)&&(n=-1!=u.indexOf("x"),i=-1!=u.indexOf("y"));var s=this.Vf||this.$view,a=jeeplus.html.offset(s),r=a.y,o=r+s.offsetHeight,l=a.x,h=l+s.offsetWidth,u=this.getScrollState(),d=!1,c=Math.max(this.type&&!isNaN(parseFloat(this.type.height))?this.type.height+5:0,40);if(i){var p=this.s;if(p.topSplit){var f=this.ug(this.getIdByIndex(p.topSplit-1),this.columnId(0));r+=f.top+f.height}e.y<r+c?(this.WC(u.x,u.y-2*c,e),d=!0):e.y>o-c&&(this.WC(u.x,u.y+2*c,e),d=!0)}n&&(e.x<l+c?(this.WC(u.x-2*c,u.y,e),d=!0):e.x>h-c&&(this.WC(u.x+2*c,u.y,e),d=!0)),d&&(this.bh=jeeplus.delay(this.ch,this,[e],100))},WC:function(e,t,i){this.callEvent("onBeforeAutoScroll",[i])&&this.scrollTo(e,t)}},jeeplus.DragOrder={Vg:!0,$drag:function(e,t){var i=jeeplus.DragItem.$drag.call(this,e,t);if(i){var n=jeeplus.DragControl.getContext();this.getBranchIndex&&(this.Wg=this.Xg?16*this.getItem(n.start).$level:0),n.fragile||this.addCss(n.start,"jeeplus_transparent")}return i},WB:function(e,t){return jeeplus.DragItem.WB(e,t)},$dragPos:function(e,t,i){var n=jeeplus.html.offset(this.$view),s=n.x+(this.Xg?1+this.Wg:1),a=e.y,r="x"==this.s.layout;r&&(a=n.y+(this.Xg?+n.height-jeeplus.ui.scrollSize-1:1),s=e.x),i.style.display="none";var o=document.elementFromPoint(s,a);if(o!=this.Yg){var l=jeeplus.$$(o);if(l&&l==this){var h=this.locate(o,!0);!h&&jeeplus.DragControl.td&&(h=this.locate(jeeplus.DragControl.td,!0));var u=jeeplus.DragControl.getContext().start;if(this.XC=!0,h){if(h!=this.Yg){var d,c;if(h!=u)this.getBranchIndex?(d={parent:this.getParentId(h)},c=this.getBranchIndex(h)):(d={},c=this.getIndexById(h)),this.callEvent("onBeforeDropOrder",[u,c,t,d])&&(this.move(u,c,this,d),this.Yg=h);jeeplus.DragControl.Cd=this.w}}else if(h="$jeeplus-last",this.Yg!=h){if(!this.callEvent("onBeforeDropOrder",[u,-1,t,{parent:0}]))return;this.Yg=h}}}if(i.style.display="block",r)if(e.y=n.y,e.x=e.x-18,e.x<n.x)e.x=n.x;else{var p=n.x+this.$view.offsetWidth-60;e.x>p&&(e.x=p)}else if(n.y+=this.$g,e.x=this.Wg||n.x,e.y=e.y-18,e.y<n.y)e.y=n.y;else{p=n.y+this.$view.offsetHeight-60;e.y>p&&(e.y=p)}this.bh&&(this.bh=window.clearTimeout(this.bh)),this.bh=jeeplus.delay(this.ch,this,[jeeplus.html.pos(t),this.locate(t)||null],250),jeeplus.DragControl.Ed=!0},$dragIn:function(){return!1},$drop:function(e,t,i){this.bh&&(this.XC=null,this.bh=window.clearTimeout(this.bh));var n=jeeplus.DragControl.getContext(),s=n.start;this.removeCss(s,"jeeplus_transparent");var a=this.getIndexById(s);this.callEvent("onAfterDropOrder",[s,a,i]),n.fragile&&this.refresh()}},jeeplus.DragItem={_g:function(e,t,i){t||jeeplus.DragControl.addDrop(e.w,e,!0),i||jeeplus.DragControl.addDrag(e.w,e),this.attachEvent("onDragOut",function(e,t){this.$dragMark(e,t)}),this.attachEvent("onBeforeAutoScroll",function(){var e=jeeplus.DragControl.getContext();return!(!jeeplus.DragControl.sd||!e||e.to!==this&&!this.XC)})},drag_setter:function(e){return e&&(jeeplus.extend(this,jeeplus.AutoScroll,!0),"order"==e&&jeeplus.extend(this,jeeplus.DragOrder,!0),"inner"==e&&(this.ah=!0),this._g(this,"source"==e,"target"==e),delete this.drag_setter),e},$dragIn:function(e,t,i){var n=this.locate(i)||null,s=jeeplus.DragControl.Gd;if((this.ah||s.from.ah)&&s.from!==this)return!1;var a=jeeplus.DragControl.getMaster(t),r=this.getItemNode(n,i)||this.y;return r==jeeplus.DragControl.Dd?r:(s.target=n,s.to=a,this.bh&&(this.bh=window.clearTimeout(this.bh)),this.bh=jeeplus.delay(function(e,t){this.Gg(t),this.ch(e,t)},this,[jeeplus.html.pos(i),n],250),this.$dropAllow(s,i)&&this.callEvent("onBeforeDragIn",[s,i])?(this.$dragMark(s,i),r):(s.to=s.target=null,this.bh&&(this.bh=window.clearTimeout(this.bh)),null))},$dropAllow:function(){return!0},Gg:function(e){},_B:function(e){return e&&"object"==typeof e?e.toString():e},$dragOut:function(e,t,i,n){var s=(this.x.contains(i)?this.locate(n):null)||null,a=jeeplus.DragControl.Gd;return(a.target||"").toString()==(s||"").toString()||(this.bh&&(this.XC=null,this.bh=window.clearTimeout(this.bh)),a.target=a.to=null,this.callEvent("onDragOut",[a,n])),null},$drop:function(e,t,i){this.bh&&(this.bh=window.clearTimeout(this.bh));var n=jeeplus.DragControl.Gd,s=(n.to=this)._B(n.target);this.getBranchIndex?s&&(n.parent=this.getParentId(s),n.index=this.getBranchIndex(s)):n.index=s?this.getIndexById(s):this.count(),this.$dragMark({},i),n.from&&n.from!=n.to&&n.from.callEvent&&n.from.callEvent("onBeforeDropOut",[n,i]),this.callEvent("onBeforeDrop",[n,i])&&(this.dh(n,i),this.callEvent("onAfterDrop",[n,i]))},dh:function(e,t){if(e.from&&e.from.move){var i={parent:e.parent,mode:e.pos};e.from.move(e.source,e.index,e.to,i)}},WB:function(e,t){if(this.getItemNode){var i=this.locate(t,!0),n=i?this.getItemNode(i):null;return n?jeeplus.html.offset(n):n}},$drag:function(e,t){var i=this.locate(t,!0);if(i){var n=[i];if(this.getSelectedId&&!this.Vg){var s=this.getSelectedId(!0,!0);if(s&&1<s.length&&-1!=jeeplus.PowerArray.find.call(s,i)){for(var a={},r=(n=[],0);r<s.length;r++)a[s[r]]=!0;for(r=0;r<this.data.order.length;r++){var o=this.data.order[r];a[o]&&n.push(o)}}}var l=jeeplus.DragControl.Gd={source:n,start:i};if(l.fragile=this.addRowCss&&jeeplus.env.touch&&(jeeplus.env.isWebKit||jeeplus.env.isFF),(l.from=this).callEvent("onBeforeDrag",[l,t]))return jeeplus.Touch&&(jeeplus.Touch.km=null),l.html||this.$dragHTML(this.getItem(i),t)}return null},$dragHTML:function(e,t){return this.jb(e)},$dragMark:function(e,t){var i=null;return e.target&&(i=this._B(e.target)),this.eh&&this.eh!=i&&(e.fragile||this.removeCss(this.eh,"jeeplus_drag_over"),this.eh=null),!this.eh&&i?(this.eh=i,e.fragile||this.addCss(i,"jeeplus_drag_over"),i):!!e.to}},jeeplus.Group={$init:function(){jeeplus.extend(this.data,jeeplus.GroupStore),this.data.attachEvent("onClearAll",jeeplus.bind(function(){this.data.nf=this.data.fh=null,this.gh=0},this))},group:function(e){this.data.ungroup(!0),this.data.group(e)},ungroup:function(e){this.data.ungroup(e)}},jeeplus.GroupMethods={sum:function(e,t){t=t||this;for(var i=0,n=0;n<t.length;n++)i+=1*e(t[n]);return i},min:function(e,t){t=t||this;for(var i=1/0,n=0;n<t.length;n++)1*e(t[n])<i&&(i=1*e(t[n]));return 1*i},max:function(e,t){t=t||this;for(var i=-1/0,n=0;n<t.length;n++)1*e(t[n])>i&&(i=1*e(t[n]));return 1*i},count:function(e,t){for(var i=0,n=0;n<t.length;n++){var s=e(t[n]);null!=s&&i++}return i},any:function(e,t){return e(t[0])},string:function(e,t){return e.$name}},jeeplus.GroupStore={$init:function(){this.attachEvent("onClearAll",this.oz)},oz:function(){this.nf=this.fh=null,this.gh=0},ungroup:function(e){return this.getBranchIndex?this.hh.apply(this,arguments):void(this.nf&&(this.order=this.nf,this.pull=this.fh,this.fh=this.nf=null,e||this.callEvent("onStoreUpdated",[])))},mf:function(e){this.blockEvent(),this.group(e),this.unblockEvent()},ih:function(t){if("function"==typeof t)return t;var e=function(e){return e[t]};return e.$name=t,e},group:function(i){if(this.getBranchIndex)return this.jh.apply(this,arguments);"string"==typeof i&&(i={by:i,map:{}});var e="function"==typeof i.by?"value":i.by,n=this.ih(i.by);i.map[e]||(i.map[e]=[e,this.kh]);var s={},a=[];for(var t in this.each(function(e){var t=n(e);s[t]||(a.push({id:t,$group:!0,$row:i.row}),s[t]=jeeplus.toArray()),s[t].push(e)}),i.map){var r=i.map[t][1]||"any",o=this.ih(i.map[t][0]);"function"!=typeof r&&(r=jeeplus.GroupMethods[r]);for(var l=0;l<a.length;l++)a[l][t]=r.call(this,o,s[a[l].id])}this.nf=this.order,this.fh=this.pull,this.order=jeeplus.toArray(),this.pull={};for(l=0;l<a.length;l++){var h=this.id(a[l]);this.pull[h]=a[l],this.order.push(h),this.qf&&this.qf(a[l])}this.callEvent("onStoreUpdated",[])},jh:function(e,t){var i,n;this.gh=(this.gh||0)+1,"string"==typeof e?(i={by:this.ih(e),map:{}}).map[e]=[e]:i="function"==typeof e?{by:e,map:{}}:e,t?n=this.getItem(t).$level:n=t=0;for(var s=this.branch[t],a=this.ih(i.by),r=[],o=[],l=0;l<s.length;l++){var h=this.getItem(s[l]),u=a(h),d=n+"$"+u,c=this.branch[d];if(!c){var p=this.pull[d]={id:d,value:u,$group:!0,$row:i.row};this.qf&&this.qf(p),o.push(p),(c=this.branch[d]=[]).lh=[],r.push(d)}c.push(h.id),c.lh.push(h)}for(var f in this.branch[t]=r,i.map){var m=i.map[f][1]||"any",g=this.ih(i.map[f][0]);"function"!=typeof m&&(m=jeeplus.GroupMethods[m]);for(l=0;l<o.length;l++)o[l][f]=m.call(this,g,this.branch[o[l].id].lh)}for(l=0;l<o.length;l++){var v=o[l];if(this.hasEvent("onGroupCreated")&&this.callEvent("onGroupCreated",[v.id,v.value,this.branch[v.id].lh]),i.footer){var _="footer$"+v.id,y=this.pull[_]={id:_,$footer:!0,value:v.value,$level:n,$count:0,$parent:v.id,$row:i.footer.row};for(var f in i.footer){m=i.footer[f][1]||"any",g=this.ih(i.footer[f][0]);"function"!=typeof m&&(m=jeeplus.GroupMethods[m]),y[f]=m.call(this,g,this.branch[o[l].id].lh)}this.branch[v.id].push(y.id),this.callEvent("onGroupFooter",[y.id,y.value,this.branch[v.id].lh])}delete this.branch[v.id].lh}this.mh(r,t,n+1),this.callEvent("onStoreUpdated",[])},hh:function(e,t,i){if(i||this.gh){this.gh=Math.max(0,this.gh-1),t=t||0;for(var n=[],s=this.branch[t],a=0;a<s.length;a++){var r=s[a],o=this.branch[r];o&&(n=n.concat(o)),delete this.pull[r],delete this.branch[r]}for(a=(this.branch[t]=n).length-1;0<=a;a--)this.pull[n[a]].$footer&&n.splice(a,1);this.mh(n,0,1),e||this.callEvent("onStoreUpdated",[])}},mh:function(e,t,i){t&&(this.getItem(t).$count=e.length);for(var n=0;n<e.length;n++){var s=this.pull[e[n]];s.$level=i,s.$parent=t;var a=this.branch[s.id];a&&this.mh(a,s.id,i+1)}}},jeeplus.clipbuffer={nh:null,oh:null,ph:0,init:function(){return null!==this.nh||(jeeplus.destructors.push({obj:this}),this.nh=document.createElement("textarea"),this.nh.className="jeeplus_clipbuffer",this.nh.setAttribute("jeeplusignore",1),this.nh.setAttribute("spellcheck","false"),this.nh.setAttribute("autocapitalize","off"),this.nh.setAttribute("autocorrect","off"),this.nh.setAttribute("autocomplete","off"),document.body.appendChild(this.nh),jeeplus.event(document.body,"keydown",jeeplus.bind(function(e){var t=e.keyCode,i=!(!e.ctrlKey&&!e.metaKey);86===t&&i&&jeeplus.delay(this.rh,this,[e],100)},this))),this.nh},destructor:function(){this.nh=null},set:function(e){this.init(),this.nh.value=e,this.focus()},focus:function(){this.UA()||(this.init(),this.nh.focus(),this.nh.select())},UA:function(){var e="";return void 0!==window.getSelection?e=window.getSelection().toString():void 0!==document.selection&&"Text"==document.selection.type&&(e=document.selection.createRange().text),!!e},rh:function(e){if((e.target||e.srcElement)===this.nh){var t=this.nh.value,i=jeeplus.UIManager.getFocus();!i||i.getEditor&&i.getEditor()||(i.callEvent("onPaste",[t]),this.nh.select())}}},jeeplus.CopyPaste={clipboard_setter:function(e){return(!0===e||1===e)&&(e="modify"),this.attachEvent("onAfterSelect",function(e){if(!this.getEditor||!this.getEditor()){var t=this.getItem(e),i=this.type.templateCopy(t);jeeplus.clipbuffer.set(i,this),jeeplus.clipbuffer.focus(),jeeplus.UIManager.setFocus(this)}}),this.attachEvent("onPaste",function(e){jeeplus.isUndefined(this.rh[this.s.clipboard])||this.rh[this.s.clipboard].call(this,e)}),this.attachEvent("onFocus",function(){jeeplus.clipbuffer.focus()}),this.attachEvent("onItemClick",function(e){this.wg&&-1===this.wg.find(e)||(jeeplus.clipbuffer.focus(),jeeplus.UIManager.setFocus(this))}),e},rh:{insert:function(e){this.add({value:e})},modify:function(e){for(var t=this.getSelectedId(!0),i=0;i<t.length;i++)this.getItem(t[i]).value=e,this.refresh(t[i])},custom:function(e){}},templateCopy_setter:function(e){this.type.templateCopy=jeeplus.template(e)},type:{templateCopy:function(e){return this.template(e)}}},jeeplus.KeysNavigation={$init:function(){this.getSelectedId&&(this.attachEvent("onAfterRender",this.cF),this.attachEvent("onAfterSelect",jeeplus.once(function(){if(1<this.count()&&this.y){var e=this.y.querySelector("["+this.ad+"]");e&&e.setAttribute("tabindex","-1")}})))},cF:function(){var e=this.getSelectedId(!0);if(!e.length||!this.getItemNode(e[0])){var t=this.y.querySelector("["+this.ad+"]");t&&t.setAttribute("tabindex","0")}},sh:function(s){return function(e,t){var i=t.srcElement||t.target;if(!i.getAttribute("jeeplusignore")){var n=i.tagName;if("INPUT"==n||"TEXTAREA"==n||"SELECT"==n)return!0}return!(e&&e.moveSelection&&e.config.navigation&&!e.Eb)||(jeeplus.html.preventEvent(t),e.moveSelection(s,{shift:t.shiftKey,ctrl:t.ctrlKey}))}},moveSelection:function(e,t,i){var n=this.s;if(!n.disabled){var s=this.getSelectedId(!0),a=this.count&&("x"==n.layout||1<n.xCount);if(("right"==e||"left"==e)&&this.ar){var r=jeeplus.$$(this.ar);return r.Uq(!0),void("x"===r.config.layout?r.moveSelection(e):jeeplus.UIManager.setFocus(r))}if(!s.length&&this.count()){if("down"==e||"right"==e&&a)e="top";else{if(!("up"==e||"left"==e&&a))return;e="bottom"}s=[this.getFirstId()]}if(1==s.length){var o=s=s[0];if("left"==e&&this.close)return this.close(s);if("right"==e&&this.open)return this.open(s);if("top"==e)s=this.getFirstId();else if("bottom"==e)s=this.getLastId();else if("up"==e||"left"==e||"pgup"==e){var l=this.getIndexById(s),h="pgup"==e?10:1;s=this.getIdByIndex(Math.max(0,l-h))}else{if("down"!=e&&"right"!=e&&"pgdown"!=e)return;l=this.getIndexById(s),h="pgdown"==e?10:1;s=this.getIdByIndex(Math.min(this.count()-1,l+h))}if(this.OD&&(s=this.OD(s,o,e)),this.showItem(s),this.select(s),this.getSubMenu&&this.getSubMenu(s)&&this.Yq(s,this.getItemNode(s)),!this.config.clipboard&&!1!==i){var u=this.getItemNode(s);u&&u.focus()}}return!1}},navigation_setter:function(e){return e&&!jeeplus.UIManager.th&&(jeeplus.UIManager.th=!0,jeeplus.UIManager.addHotKey("up",this.sh("up")),jeeplus.UIManager.addHotKey("down",this.sh("down")),jeeplus.UIManager.addHotKey("right",this.sh("right")),jeeplus.UIManager.addHotKey("left",this.sh("left")),jeeplus.UIManager.addHotKey("shift+up",this.sh("up")),jeeplus.UIManager.addHotKey("shift+down",this.sh("down")),jeeplus.UIManager.addHotKey("shift+right",this.sh("right")),jeeplus.UIManager.addHotKey("shift+left",this.sh("left")),jeeplus.UIManager.addHotKey("ctrl+shift+up",this.sh("up")),jeeplus.UIManager.addHotKey("ctrl+shift+down",this.sh("down")),jeeplus.UIManager.addHotKey("ctrl+shift+right",this.sh("right")),jeeplus.UIManager.addHotKey("ctrl+shift+left",this.sh("left")),jeeplus.UIManager.addHotKey("pageup",this.sh("pgup")),jeeplus.UIManager.addHotKey("pagedown",this.sh("pgdown")),jeeplus.UIManager.addHotKey("home",this.sh("top")),jeeplus.UIManager.addHotKey("end",this.sh("bottom"))),e}},jeeplus.protoUI({name:"tree",defaults:{scroll:"a",navigation:!0},$init:function(){this.x.className+=" jeeplus_tree",jeeplus.extend(this.data,jeeplus.TreeStore,!0),jeeplus.extend(this.on_click,jeeplus.TreeClick),this.attachEvent("onAfterRender",this.Jf),this.attachEvent("onPartialRender",this.Jf),this.data.provideApi(this,!0),this.x.setAttribute("role","tree")},ad:"jeeplus_tm_id",on_context:{},on_dblclick:{jeeplus_tree_checkbox:function(){return this.on_click.jeeplus_tree_checkbox?this.on_click.jeeplus_tree_checkbox.apply(this,arguments):void 0}},$fixEditor:function(e){var t=this.getItemNode(e.id).querySelector("span");if(t){""===t.innerHTML&&(t.innerHTML="&nbsp;");var i=t.offsetLeft;e.node.style.width=this.$view.scrollWidth-i-10+"px",e.node.style.marginLeft=i+"px",e.node.style.left="0px"}},on_click:{jeeplus_tree_item:function(e,t,i){this.s.activeTitle&&(this.getItem(t).open?this.close(t):this.open(t));if(this.s.select)if("multiselect"==this.s.select||this.s.multiselect){var n=e.ctrlKey||e.metaKey||"touch"==this.s.multiselect;if("level"==this.s.multiselect&&(n||e.shiftKey)){var s=this.getSelectedId(!0)[0];if(s&&this.getParentId(t)!=this.getParentId(s))return}this.select(t,!1,n,e.shiftKey)}else this.select(t)}},rh:{insert:function(e){var t=this.getSelectedId()||"0";this.add({value:e},null,t)},modify:function(e){for(var t=this.getSelectedId(!0),i=0;i<t.length;i++)this.getItem(t[i]).value=e,this.refresh(t[i])},custom:function(e){}},Xg:!0,$dragHTML:function(e){return"<div class='borderless'>"+this.type.template(e,this.type)+"</div>"},type:jeeplus.extend({template:function(e,t){return(t["template"+e.level]||t.templateCommon).apply(this,arguments)},classname:function(e,t,i){var n="jeeplus_tree_item";return e.$css&&("object"==typeof e.$css&&(e.$css=jeeplus.html.createCss(e.$css)),n+=" "+e.$css),i&&i.$css&&(n+=" "+i.$css),n},aria:function(e,t,i){return'role="treeitem"'+(i&&i.jeeplus_selected?' aria-selected="true" tabindex="0"':' tabindex="-1"')+(e.$count?'aria-expanded="'+(e.open?"true":"false")+'"':"")+'aria-level="'+e.$level+'"'},templateCommon:jeeplus.template("{common.icon()} {common.folder()} <span>#value#</span>"),templateStart:jeeplus.template('<div jeeplus_tm_id="#id#" class="{common.classname()}" {common.aria()}>'),templateEnd:jeeplus.template("</div>"),templateCopy:jeeplus.template("#value#")},jeeplus.TreeType)},jeeplus.AutoTooltip,jeeplus.Group,jeeplus.TreeAPI,jeeplus.DragItem,jeeplus.TreeDataMove,jeeplus.SelectionModel,jeeplus.KeysNavigation,jeeplus.MouseEvents,jeeplus.Scrollable,jeeplus.TreeDataLoader,jeeplus.ui.proto,jeeplus.TreeRenderStack,jeeplus.CopyPaste,jeeplus.EventSystem),jeeplus.TreeStateCheckbox={uh:function(){if(this.vg){var s=this.render;this.render=function(e,t,i){var n=s.apply(this,arguments);this.s.threeState&&n&&"checkbox"!=t&&this.vh.apply(this,arguments)},this.uh=function(){}}},threeState_setter:function(e){return e&&this.uh(),e},vh:function(e){var t,i,n,s,a;if(n=[],a=this,e&&!a.data.pull[e]&&(e=0),!e||a.data.pull[e].$count)for((i=this.wh(e)).sort(function(e,t){return a.data.pull[t].$level-a.data.pull[e].$level}),t=0;t<i.length;t++)t&&a.data.pull[i[t]].$parent==a.data.pull[i[t-1]].$parent||(n=n.concat(a.xh(i[t])));else n=n.concat(a.xh(e));for(s={},t=0;t<n.length;t++)s[n[t]]||(s[n[t]]=1,this.yh(n[t]));a=null},yh:function(e){var t;this.getItemNode(e)&&(this.render(e,"checkbox","update"),this.getItem(e).indeterminate&&((t=this.getItemNode(e).getElementsByTagName("input")[0])&&(t.indeterminate=this.getItem(e).indeterminate)))},xh:function(e){var t,i,n,s,a,r,o;for(s=this.getParentId(e),this,a=[];s&&"0"!=s;){i=r=0,this.data.eachChild(s,function(e){e.indeterminate?r++:e.checked&&i++}),t=n=o=!1;var l=this.getItem(s);i==l.$count?t=!0:(0<i||0<r)&&(n=!0),(n||n!=l.indeterminate)&&(o=!0),l.indeterminate=n,(t||l.checked!=t)&&(o=!0),l.checked=t,o?(a.push(s),s=this.getParentId(s)):s=0}return a},getChecked:function(){var t=[],i=this;return this.data.eachSubItem(0,function(e){i.isChecked(e.id)&&t.push(e.id)}),t},Tg:function(e,t){var i=this.getItem(e);if(i&&(""===t&&(t=!i.checked),i.checked!=t||i.indeterminate)){i.checked=t,this.zh(e);var n=this.xh(e);if(this.vg&&n.length<5)for(var s=0;s<n.length;s++)this.yh(n[s]);else this.refresh();this.callEvent("onItemCheck",[e,t])}},checkItem:function(e){this.Sg(e,!0),this.updateItem(e)},uncheckItem:function(e){this.Sg(e,!1),this.updateItem(e)},Ah:function(e,t,i){var n=t?"checkItem":"uncheckItem";e?this[n](e):e=0,this.s.threeState?e||this.data.eachChild(0,function(e){this[n](e.id)},this,i):this.data.each(function(e){this[n](e.id)},this,i,e)},checkAll:function(e,t){this.Ah(e,!0,t)},uncheckAll:function(e,t){this.Ah(e,!1,t)},zh:function(e){var t,i=this.getItem(e);i.indeterminate=!1,t=i.checked,this.data.eachSubItem(e,function(e){e.indeterminate=!1,e.checked=t}),this.vg&&this.isBranchOpen(i.$parent)&&this.render(e,0,"branch")},isChecked:function(e){return this.getItem(e).checked},wh:function(e){var i=[];return this.data.eachSubItem(e,function(e,t){t||i.push(e.id)}),i}},jeeplus.ui.tree&&jeeplus.extend(jeeplus.ui.tree,jeeplus.TreeStateCheckbox,!0),jeeplus.type(jeeplus.ui.tree,{name:"lineTree",css:"jeeplusLineTree",icon:function(e,t){for(var i="",n="",s=1;s<=e.$level;s++){if(s==e.$level)n=e.$count?e.open?"jeeplus_tree_open ":"jeeplus_tree_close ":"jeeplus_tree_none ";var a=this.Bh(e,t,s);a&&(i+="<div class='"+n+"jeeplus_tree_img jeeplus_tree_"+a+"'></div>")}return i},Bh:function(e,t,i){var n=t.sg,s=jeeplus.TreeRenderStack.tg;if(0===n&&s){var a=e.$level,r=e.id;for(n=[];a;){var o=s.getParentId(r),l=s.data.branch[o];l[l.length-1]==r&&(n[a]=!0),r=o,a--}t.sg=n}if(!n)return 0;if(i==e.$level){var h=3;return e.$parent||0===e.$index&&(h=4),n[e.$level]&&(h=2),e.$count?e.open?"minus"+h:"plus"+h:"line"+h}return n[i]?"blank":"line1"}}),jeeplus.NavigationButtons={$init:function(){this.$ready.push(function(){this.attachEvent("onKeyPress",this.DD)})},PD:function(e,t){if(37===e||39===e){jeeplus.html.preventEvent(t),this.Kh(37===e?-1:1);var i=this.Dh.querySelector("[tabindex='0']");i&&i.focus()}},Ch:function(){jeeplus.html.remove(this.Dh),this.Dh=jeeplus.html.create("DIV",{class:"jeeplus_nav_panel jeeplus_nav_panel_"+this.s.navigation.type,role:"tablist"},""),this.x.appendChild(this.Dh),this.Eh(),this.Fh(),this.Gh()},Gh:function(){var t=[];this.Dh&&(t[0]=jeeplus.event(this.Dh,"click",jeeplus.bind(function(e){for(var t=e.srcElement||e.target,i=!1;t!=this.Dh&&!i;){var n=t.getAttribute(this.Hh);n&&(i=!0,this.Ih(n)),t=t.parentNode}},this))),this.Jh&&(t[1]=jeeplus.event(this.Jh,"click",jeeplus.bind(function(e){this.Kh(-1)},this))),this.Lh&&(t[1]=jeeplus.event(this.Lh,"click",jeeplus.bind(function(e){this.Kh(1)},this))),this.attachEvent("onDestruct",function(){for(var e=0;e<t.length;e++)this.detachEvent(t[e]);t=null})},Kh:function(e){if(this.q){var t=this.Mh+e;(t>=this.q.length||t<0)&&(t=t<0?this.q.length-1:0),this.setActiveIndex(t)}},Ih:function(e){this.q&&jeeplus.$$(e).show()},Eh:function(){var e,t;if((t=this.s.navigation).items){this.Hh=t.linkAttr||"bind_id",this.Dh?this.Nh():this.Ch();var i=this.q?this.q:this.data.order;if(1<i.length)for(var n=0;n<i.length;n++){e=jeeplus.html.create("DIV",{class:"jeeplus_nav_item jeeplus_nav_"+(n==this.Mh?"active":"inactive"),role:"tab",tabindex:n==this.Mh?"0":"-1"},"<div></div>");var s=this.q?this.q[n].s.id:i[n];s&&e.setAttribute(this.Hh,s),this.Dh.appendChild(e)}}},Nh:function(){if(this.Dh)for(var e=this.Dh.childNodes,t=e.length-1;0<=t;t--)jeeplus.html.remove(e[t])},Fh:function(){var e;(e=this.s.navigation).buttons&&(this.Jh&&jeeplus.html.remove(this.Jh),this.Jh&&jeeplus.html.remove(this.Lh),this.Jh=jeeplus.html.create("DIV",{class:"jeeplus_nav_button_"+e.type+" jeeplus_nav_button_prev ",role:"button",tabindex:"0","aria-label":jeeplus.i18n.aria.prevTab},'<div class="jeeplus_nav_button_inner"></div>'),this.x.appendChild(this.Jh),this.Lh=jeeplus.html.create("DIV",{class:"jeeplus_nav_button_"+e.type+" jeeplus_nav_button_next ",role:"button",tabindex:"0","aria-label":jeeplus.i18n.aria.nextTab},'<div class="jeeplus_nav_button_inner"></div>'),this.x.appendChild(this.Lh))}},jeeplus.VRenderStack={$init:function(){this.t={},jeeplus.UE(this.x,"scroll",jeeplus.bind(function(){this.render(null,null,"paint")},this))},getItemNode:function(e){return this.t&&this.t[e]},showItem:function(e){var t=this.data.getIndexById(e);if(-1<t){var i=t*this.type.height,n=i+this.type.height,s=this.getScrollState(),a=jeeplus.html.offset(this.$view);i<s.y?this.scrollTo(0,i):n>s.y+a.height&&this.scrollTo(0,n-a.height)}},render:function(e,t,i){if(this.isVisible(this.s.id)&&!this.$blockRender){var n=this.Pe||this.y;if(!e||"paint"!=i&&"update"!=i){if("paint"!=i&&(this.t={},n.innerHTML=""),this.callEvent("onBeforeRender",[this.data])){var s=this.data.count(),a=this.getScrollState(),r=jeeplus.html.offset(this.x),o=Math.floor(a.y/this.type.height)-2,l=Math.ceil((a.y+r.height)/this.type.height)+2;o=Math.max(0,o),l=Math.min(this.data.count()-1,l);for(var h=[],u=o;u<=l;u++){var d=this.data.order[u];if(this.t[d])h.push("<div></div>");else{var c=this.data.getItem(d);if(!c){this.Ik({count:l-u+(this.s.loadahead||0),start:u});break}h.push(this.jb(c))}}this.v.innerHTML=h.join(""),n.style.position="relative",n.style.height=s*this.type.height+"px";var p=this.v.childNodes;for(u=p.length-1;0<=u;u--){var f=p[u];(e=f.getAttribute(this.ad))&&(f.style.position="absolute",f.style.top=(o+u)*this.type.height+"px",f.style.left=0,f.style.width="100%",n.appendChild(f),this.t[e]=f)}this.callEvent("onAfterRender",[])}}else{var m=this.getItemNode(e);if(m){var g=this.t[e]=this.Ne(t);return g.style.top=m.style.top,g.style.position="absolute",g.style.left=0,g.style.width="100%",jeeplus.html.insertBefore(g,m),void jeeplus.html.remove(m)}}}},$setSize:function(){jeeplus.ui.view.prototype.$setSize.apply(this,arguments)&&this.render(null,null,"paint")},Ik:function(e){var t=Math.max(e.count,this.s.datafetch||this.s.loadahead||0);this.cf(e.count,e.start)||this.loadNext(t,e.start)}},function(){function a(e,t){var i=jeeplus.html.create("div",{class:"jeeplus_view jeeplus_print_"+e.toLowerCase(),style:"height:0px;visibility:hidden;"},t["doc"+e]);"Header"===e?jeeplus.html.insertBefore(i,document.body.firstChild):document.body.appendChild(i),t["doc"+e]=i}jeeplus.env.printPPI=96,jeeplus.env.printMargin=.75*jeeplus.env.printPPI;var r=(jeeplus.env.printPPI,jeeplus.env.printMargin),o={a4:"A4",a3:"A3",letter:"letter"},l={page:!0,data:!0},h={portrait:!0,landscape:!0},u={A3:{width:11.7,height:16.5},A4:{width:8.27,height:11.7},letter:{width:8.5,height:11}};jeeplus.print=function(e,t){var i,n,s=jeeplus.$$(e);s&&s.$printView&&(s=s.$printView()),s&&(s.callEvent&&s.callEvent("onBeforePrint",[t]),(n=(n=t)||{}).paper=o[(n.paper||"").toLowerCase()]||"A4",n.mode=h[n.mode]?n.mode:"portrait",n.fit=l[n.fit]?n.fit:"page",n.scroll=n.scroll||!1,n.size=u[n.paper],n.margin=n.margin||0===n.margin?n.margin:{},r=isNaN(1*n.margin)?r:n.margin,n.margin={top:n.margin.top||0===n.margin.top?n.margin.top:r,bottom:n.margin.bottom||0===n.margin.bottom?n.margin.bottom:r,right:n.margin.right||0===n.margin.right?n.margin.right:r,left:n.margin.left||0===n.margin.left?n.margin.left:r},function(e){jeeplus.html.addCss(document.body,"jeeplus_print"),e.docHeader&&a("Header",e),e.docFooter&&a("Footer",e);var t="@media print { @page{ size:"+e.paper+" "+e.mode+";margin-top:"+e.margin.top+"px;margin-bottom:"+e.margin.bottom+"px;margin-right:"+e.margin.right+"px;margin-left:"+e.margin.left+"px;}}";jeeplus.html.addStyle(t,"print")}(t=n),s.$customPrint&&!0!==s.$customPrint(t)||function(e,t){var i=e.$view.cloneNode(!0),n=e.$view.getElementsByTagName("canvas");if(n.length)for(var s=n.length-1;0<=s;s--)i.getElementsByTagName("canvas")[s].getContext("2d").drawImage(n[s],0,0);jeeplus.html.insertBefore(i,t.docFooter,document.body),jeeplus.html.addCss(i,"jeeplus_ui_print"),!t.scroll&&(e.y&&e.data&&e.data.pull||e.getBody)&&jeeplus.html.addCss(i,"jeeplus_print_noscroll"),window.print(),jeeplus.html.remove(i)}(s,t),i=t,jeeplus.html.removeCss(document.body,"jeeplus_print"),jeeplus.html.removeStyle("print"),i.docHeader&&jeeplus.html.remove(i.docHeader),i.docFooter&&jeeplus.html.remove(i.docFooter))}}(),jeeplus.CustomPrint={$customPrint:function(e,t){if(this.UF(e,t))return!0;var i=this.VF(e),n=this.WF(i,e);if(t)return n;var s=jeeplus.html.create("div",{class:"jeeplus_ui_print"});s.appendChild(n),jeeplus.html.insertBefore(s,e.docFooter,document.body),window.print(),jeeplus.html.remove(s)},UF:function(e,t){return!(t||!("y"==this.config.layout||e.scroll||this.config.prerender||this.config.autoheight))||void("x"==this.config.layout&&jeeplus.extend(e||{},{xCount:this.count(),nobreaks:!0},!0))},XF:function(e){if("page"==e.fit)return 1/0;var t=e.size["portrait"==e.mode?"width":"height"];return Math.min(t*jeeplus.env.printPPI-2*jeeplus.env.printMargin)},VF:function(e,t,i){var n,s,a=this.XF(e),r=e.xCount||this.Ci().Di,o=[],l=[],h=0;i=i||0,t=t||[];for(var u=0;u<this.data.order.length;){var d=this.data.pull[this.data.order[u]];if(s=u-parseInt(u/r)*r,d&&i<=s){if(a<(h+=this.type.width)&&i<s){n=l.length+i,o.push(l),u+=r-l.length,l=[],h=0;continue}var c=this.type.template(d,this.type),p=this.YF,f={display:"table-cell",height:this.type.height+"px",width:this.type.width+"px"};l.push({txt:c,className:p+" "+(d.$css||""),style:f}),(u+1)%r==0&&(o.push(l),l=[],h=0)}u++}return t.push(o),n&&this.VF(e,t,n),t},WF:function(s,a){var r=jeeplus.html.create("div");return s.forEach(jeeplus.bind(function(e,t){var i=jeeplus.html.create("table",{class:"jeeplus_table_print "+this.$view.className,style:"border-collapse:collapse"});if(e.forEach(function(e){var n=jeeplus.html.create("tr");e.forEach(function(t){var i=jeeplus.html.create("td");(t.txt&&(i.innerHTML=t.txt),t.className&&(i.className=t.className),t.style)&&Object.keys(t.style).forEach(function(e){t.style[e]&&(i.style[e]=t.style[e])});t.span&&(1<t.span.colspan&&(i.colSpan=t.span.colspan),1<t.span.rowspan&&(i.rowSpan=t.span.rowspan)),n.appendChild(i)}),i.appendChild(n)}),r.appendChild(i),!a.nobreaks&&t+1<s.length){var n=jeeplus.html.create("DIV",{class:"jeeplus_print_pagebreak"});r.appendChild(n)}},this)),r}},jeeplus.protoUI({name:"list",Oh:"jeeplus_list",YF:"jeeplus_list_item",$init:function(e){jeeplus.html.addCss(this.x,this.Oh+("x"==(e.layout||this.defaults.layout)?"-x":"")),this.data.provideApi(this,!0),this.Ph=jeeplus.bind(this.Ph,this),this.data.attachEvent("onStoreUpdated",this.Ph),this.data.attachEvent("onSyncApply",this.Ph),this.attachEvent("onAfterRender",this.hg),this.x.setAttribute("role","listbox")},dynamic_setter:function(e){return e&&jeeplus.extend(this,jeeplus.VRenderStack,!0),e},$dragHTML:function(e,t){if("y"==this.s.layout&&"auto"==this.type.width){this.type.width=this.bc;var i=this.jb(e);return this.type.width="auto",i}return this.jb(e)},defaults:{select:!1,scroll:!0,layout:"y",navigation:!0,datafetch:50},ad:"jeeplus_l_id",on_click:{jeeplus_list_item:function(e,t){this.s.select&&(this.Qh=!0,"multiselect"==this.s.select||this.s.multiselect?this.select(t,!1,e.ctrlKey||e.metaKey||"touch"==this.s.multiselect,e.shiftKey):this.select(t),this.Qh=!1)}},on_dblclick:{},getVisibleCount:function(){return Math.floor(this.dc/this.QF())},Ph:function(){(this.s.autoheight||this.s.autowidth)&&this.resize()},Rh:function(e){var t=this.data.$pagesize||this.count();this.Lf(e&&e<t),this.s.autoheight&&t<(e||1/0)&&(e=t);var i=this.QF()*e+(this.type.margin||0);return this.getUnits&&(i+=this.getUnits().length*this.type.headerHeight),Math.max(i,this.s.minHeight||0)},QF:function(){return this.type.height+(this.type.margin||0)},Sh:function(e){var t=this.data.$pagesize||this.count();return this.Lf(e&&e<t),this.s.autowidth&&t<(e||1/0)&&(e=t),this.type.width*e},hg:function(){"x"==this.s.layout&&(this.y.style.width="auto"!=this.type.width?this.type.width*this.count()+"px":"auto")},$getSize:function(e,t){return"y"==this.s.layout?("auto"!=this.type.width&&(this.s.width=this.type.width+(this.cc?jeeplus.ui.scrollSize:0)),(this.s.yCount||this.s.autoheight)&&(this.s.height=this.Rh(this.s.yCount)||1)):("auto"!=this.type.height&&(this.s.height=this.QF()+(this.ec?jeeplus.ui.scrollSize:0)),(this.s.xCount||this.s.autowidth)&&(this.s.width=this.Sh(this.s.xCount)||1)),jeeplus.ui.view.prototype.$getSize.call(this,e,t)},$setSize:function(){jeeplus.ui.view.prototype.$setSize.apply(this,arguments)},type:{css:"",widthSize:function(e,t){return t.width+(-1<t.width?"px":"")},heightSize:function(e,t){return t.height+(-1<t.height?"px":"")},classname:function(e,t,i){var n="jeeplus_list_item";return e.$css&&("object"==typeof e.$css&&(e.$css=jeeplus.html.createCss(e.$css)),n+=" "+e.$css),i&&i.$css&&(n+=" "+i.$css),n},aria:function(e,t,i){return'role="option"'+(i&&i.jeeplus_selected?' aria-selected="true" tabindex="0"':' tabindex="-1"')+(e.$count&&e.$template?'aria-expanded="true"':"")},template:function(e){return(e.icon?"<span class='jeeplus_icon fa-"+e.icon+"'></span> ":"")+e.value+(e.badge?"<div class='jeeplus_badge'>"+e.badge+"</div>":"")},width:"auto",templateStart:jeeplus.template('<div jeeplus_l_id="#id#" class="{common.classname()}" style="width:{common.widthSize()}; height:{common.heightSize()}; overflow:hidden;" {common.aria()}>'),templateEnd:jeeplus.template("</div>")},$skin:function(){this.type.height=jeeplus.skin.$active.listItemHeight}},jeeplus.CustomPrint,jeeplus.KeysNavigation,jeeplus.DataMove,jeeplus.DragItem,jeeplus.MouseEvents,jeeplus.SelectionModel,jeeplus.Scrollable,jeeplus.ui.proto,jeeplus.CopyPaste),jeeplus.protoUI({name:"grouplist",defaults:{animate:{}},Oh:"jeeplus_grouplist",$init:function(){jeeplus.extend(this.data,jeeplus.TreeStore,!0),this.data.count=function(){return this.order.length},this.data.provideApi(this,!0),this.data.attachEvent("onClearAll",jeeplus.bind(this.Th,this)),this.Th()},Th:function(){this.Uh=[],this.Vh=[]},$setSize:function(){jeeplus.ui.view.prototype.$setSize.apply(this,arguments)&&(this.y.style.width=this.bc)},on_click:{jeeplus_list_item:function(e,t){if(this.Wh)return!1;for(var i=0;i<this.Vh.length;i++)if(this.Vh[i]==t){for(var n=i;n<this.Vh.length;n++)this.data.getItem(this.Vh[n]).$template="";return i?(this.Uh=this.data.branch[this.Vh[i-1]],this.Vh.splice(i)):(this.Uh=this.data.branch[0],this.Vh=[]),this.Xh=!1,this.render()}var s=this.getItem(t);return s.$count?(this.Xh=!0,this.Vh.push(t),s.$template="Back",this.Uh=this.data.branch[s.id],this.render()):void(this.s.select&&(this.Qh=!0,"multiselect"==this.s.select||this.s.multiselect?this.select(t,!1,"touch"==this.s.multiselect||e.ctrlKey||e.metaKey,e.shiftKey):this.select(t),this.Qh=!1))}},getOpenState:function(){return{parents:this.Vh,branch:this.Uh}},render:function(e,t,i,n){var s,a;if(this.Vh=jeeplus.copy(this.Vh),this.Uh=jeeplus.copy(this.Uh),this.Vh.length)for(s=0;s<this.Vh.length;s++)this.data.branch[this.Vh[s]]||(this.Vh.splice(s,1),s--);if(a=this.Vh.length?this.Vh[this.Vh.length-1]:0,this.Uh=jeeplus.copy(this.data.branch[a]),!this.Uh.length&&this.Vh.length&&(this.Uh=[a],this.Vh.pop()),this.Wh)return jeeplus.delay(this.render,this,arguments,100);for(s=0;s<this.Uh.length;s++)this.data.getItem(this.Uh[s]).$template="";if(this.Uh.length||(this.Uh=this.data.branch[0]),this.data.order=jeeplus.toArray([].concat(this.Vh).concat(this.Uh)),this.callEvent("onBeforeRender",[this.data])){if(!this.Qh&&this.y.innerHTML&&jeeplus.animate.isSupported()&&this.s.animate&&this.Yh!=this.Vh.length){if(this.callEvent("onBeforeRender",[this.data])){this.Zh||(this.Zh=[]);var r=this.y.cloneNode(!1);r.innerHTML=this.data.getRange().map(this.jb,this).join("");var o=jeeplus.extend({},this.s.animate);o.direction=this.Xh?"left":"right";var l=[jeeplus.clone(o),jeeplus.clone(o)];if(this.Xh)this.Zh.push(this.getScrollState()),jeeplus.Touch&&jeeplus.Touch.$active&&(l[0].y=0,l[1].y=-this.getScrollState().y);else{var h=this.Zh.pop();jeeplus.Touch&&jeeplus.Touch.$active&&(l[0].y=-h.y,l[1].y=-this.getScrollState().y)}var u=jeeplus.animate.formLine(r,this.y,o);jeeplus.Touch&&jeeplus.Touch.$active&&jeeplus.Touch.Nf(r,0,this.Xh?0:l[0].y,"0ms"),o.master=this,o.callback=function(){this.y=r,this.Xh?jeeplus.Touch&&jeeplus.Touch.$active||this.scrollTo(0,0):jeeplus.Touch&&jeeplus.Touch.$active?jeeplus.delay(function(){jeeplus.Touch.Nf(r,0,l[0].y,"0ms")},this):h&&this.scrollTo(0,h.y),jeeplus.animate.breakLine(u),o.master=o.callback=null,this.t=null,this.Wh=!1,this.callEvent("onAfterRender",[])},this.Wh=!0,jeeplus.animate(u,l)}}else jeeplus.RenderStack.render.apply(this,arguments);this.Yh=this.Vh.length}},templateBack_setter:function(e){this.type.templateBack=jeeplus.template(e)},templateItem_setter:function(e){this.type.templateItem=jeeplus.template(e)},templateGroup_setter:function(e){this.type.templateGroup=jeeplus.template(e)},type:{template:function(e,t){return e.$count?t.templateGroup(e,t):t.templateItem(e,t)},css:"group",classname:function(e,t,i){return"jeeplus_list_item jeeplus_"+(e.$count?"group":"item")+(e.$template?"_back":"")+(i&&i.jeeplus_selected?" jeeplus_selected ":"")+(e.$css?e.$css:"")},templateStart:jeeplus.template('<div jeeplus_l_id="#id#" class="{common.classname()}" style="width:{common.widthSize()}; height:{common.heightSize()}; overflow:hidden;" {common.aria()}>'),templateBack:jeeplus.template("#value#"),templateItem:jeeplus.template("#value#"),templateGroup:jeeplus.template("#value#"),templateEnd:function(e,t){var i="";return e.$count&&(i+="<div class='jeeplus_arrow_icon'></div>"),i+"</div>"}},showItem:function(e){var t,i;for(e&&(i=(t=this.getItem(e)).$parent,t.$count&&(i=t.id)),this.Uh=this.data.branch[i||0],this.Vh=[];i;)this.getItem(i).$template="Back",this.Vh.unshift(i),i=this.getItem(i).$parent;this.Qh=!0,this.render(),this.Qh=!1,jeeplus.RenderStack.showItem.call(this,e)}},jeeplus.Group,jeeplus.ui.list),jeeplus.type(jeeplus.ui.grouplist,{}),jeeplus.protoUI({name:"unitlist",ad:"jeeplus_item_id",uniteBy_setter:jeeplus.template,render:function(e,t,i,n){var s=this.s;if(this.isVisible(s.id)){if(!s.uniteBy)return!1;if(e){var a=this.getItemNode(e);if(a&&"update"==i&&this.s.uniteBy.call(this,t)==this.getItem(e).$unitValue){var r=this.t[e]=this.Ne(t);return jeeplus.html.insertBefore(r,a),void jeeplus.html.remove(a)}}this.callEvent("onBeforeRender",[this.data])&&(this.units=null,this.$h(),this.units&&(this.y.innerHTML=this._h().map(this.jb,this).join(""),this.t=null),this.callEvent("onAfterRender",[]))}},getUnits:function(){var e=[];if(this.units)for(var t in this.units)e.push(t);return e},getUnitList:function(e){return this.units?this.units[e]:null},jb:function(e){var t=this.data.Me[e.id];return this.callEvent("onItemRender",[e]),e.$unit?this.type.templateStartHeader(e,this.type)+this.type.templateHeader.call(this,e.$unit)+this.type.templateEnd(e,this.type):this.type.templateStart(e,this.type,t)+(e.$template?this.type["template"+e.$template]:this.type.template)(e,this.type)+this.type.templateEnd(e,this.type)},_h:function(){var e,t,i,n;e=[];var s=this.data.$min||0,a=this.data.$max||1/0,r=0;for(i in this.units)for(e.push({$unit:i}),n=this.units[i],t=0;t<n.length;t++){if(r==s&&(e=[{$unit:i}]),e.push(this.getItem(n[t])),r==a)return jeeplus.toArray(e);r++}return jeeplus.toArray(e)},$h:function(){var i=this;this.units={},this.data.each(function(e){var t=i.s.uniteBy.call(this,e);e.$unitValue=t,i.units[t]||(i.units[t]=[]),i.units[t].push(e.id)})},type:{headerHeight:20,templateHeader:function(e){return"<span class='jeeplus_unit_header_inner'>"+e+"</span>"},templateStart:function(e,t,i){if(e.$unit)return t.templateStartHeader.apply(this,arguments);var n="jeeplus_list_item jeeplus_list_"+t.css+"_item"+(i&&i.jeeplus_selected?" jeeplus_selected":"")+(e.$css?e.$css:""),s="width:"+t.widthSize(e,t,i)+"; height:"+t.heightSize(e,t,i)+"; overflow:hidden;"+(t.layout&&"x"==t.layout?"float:left;":"");return'<div jeeplus_item_id="'+e.id+'" class="'+n+'" style="'+s+'" '+t.aria(e,t,i)+">"},templateStartHeader:function(e,t,i){var n="jeeplus_unit_header jeeplus_unit_"+t.css+"_header"+(e.$selected?"_selected":""),s="width:"+t.widthSize(e,t,i)+"; height:"+t.headerHeight+"px; overflow:hidden;";return'<div jeeplus_unit_id="'+e.$unit+'" class="'+n+'" style="'+s+'">'}},$skin:function(){this.type.headerHeight=jeeplus.skin.$active.unitHeaderHeight||20}},jeeplus.ui.list),jeeplus.EditAbility={defaults:{editaction:"click"},$init:function(e){this.ai={},this.Eb=0,this.bi=0,this.w.style.position="relative",e&&(e.onDblClick=e.onDblClick||{}),this.attachEvent("onAfterRender",this.$s),this.s.editable&&this.ci(),jeeplus.extend(this,jeeplus.Undo)},Ux:function(e){try{if("number"==typeof e.selectionStart)e.selectionStart=e.selectionEnd=e.value.length;else if(void 0!==e.createTextRange){var t=e.createTextRange();t.collapse(!1),t.select()}}catch(e){}},$s:function(){var e=this.getEditor();if(e&&e.$inline&&!e.getPopup){var t=this.mi(e);if(t&&t!=e.node){var i=e.node.value;(e.node=t).value=i,t.focus(),this.Ux(t)}else this.editStop()}},editable_setter:function(e){return e&&this.ci(),e},ci:function(){jeeplus.attachEvent("onEditEnd",jeeplus.bind(function(){this.Eb&&this.editStop()},this)),jeeplus.attachEvent("onClick",jeeplus.bind(function(e){this.Eb&&200<new Date-this.bi&&(this.di&&!this.di.popupType&&e&&this.di.node&&this.di.node.contains(e.target||e.srcElement)||this.editStop())},this)),this.data.attachEvent&&this.data.attachEvent("onIdChange",jeeplus.bind(function(e,t){this.ei(e,t)},this)),this.attachEvent("onItemClick",function(e){this.s.editable&&"click"==this.s.editaction&&this.edit(e)}),this.attachEvent("onItemDblClick",function(e){this.s.editable&&"dblclick"==this.s.editaction&&this.edit(e)}),this.fi=jeeplus.bind(function(){this.bi=new Date},this),this.ci=function(){},this.gi&&this.gi()},Vs:function(){jeeplus.delay(function(){var e=this.getEditor();if(e&&e.config.liveEdit){var t={value:e.getValue(),old:e.value};if(t.value==t.old)return;e.value=t.value,this.ti(e,t.value,!1),this.callEvent("onLiveEdit",[t,e])}},this)},hi:function(e){"string"!=typeof(t=this.s.form)&&(this.s.form=t=jeeplus.ui(t).config.id);var t,i=(t=jeeplus.$$(t)).setValues?t:t.getChildViews()[0];i.setValues(this.getItem(e.row||e)),t.config.master=this.config.id,t.show(this.getItemNode(e));var n=i.getChildViews()[0];n.focus&&n.focus()},edit:function(e,t,i){if(this.s.editable&&this.callEvent("onBeforeEditStart",[e])){if(this.s.form)return this.hi(e);var n=this.ii(e);if(n){if(this.getEditor(e))return;t||this.editStop();var s=jeeplus.extend({},jeeplus.editors[n]),a=this.ji(e,s,i);s.config.liveEdit&&(this.Ws=this.attachEvent("onKeyPress",this.Vs));var r=s.getPopup?s.getPopup(a).x:a;return r&&jeeplus.UE(r,"click",this.fi),a&&jeeplus.UE(a,"change",this.ki,{bind:{view:this,id:e}}),!1!==i&&s.focus(),this.$fixEditor&&this.$fixEditor(s),this.bi=jeeplus.edit_open_time=new Date,jeeplus.UIManager.setFocus(this,!0),this.callEvent("onAfterEditStart",[e]),s}return null}},getEditor:function(e){return e?this.ai[e]:this.di},ei:function(e,t){var i=this.ai[e];i&&((this.ai[t]=i).id=t,delete this.ai[e])},ki:function(e){this.view.hasEvent("onEditorChange")&&this.view.callEvent("onEditorChange",[this.id,this.view.getEditorValue(this.id)])},li:function(e){return this.s},ji:function(e,t,i){var n=(t.config=this.li(e),t.render());t.$inline&&(n=this.mi(e)),t.node=n;var s=this.getItem(e),a=s[this.s.editValue||"value"];return jeeplus.isUndefined(a)&&(a=""),t.setValue(a,s),t.value=a,this.ni(e,t),!1!==i&&this.showItem(e),t.$inline||this.oi(e,n,!0),t.afterRender&&t.afterRender(),n},pi:function(e){return this.getItemNode(e)},mi:function(e){var t=this.pi(e);return t&&(t=t.getElementsByTagName("input")[0]||t),t},ii:function(e){return this.s.editor},ni:function(e,t){t.id=e,this.ai[e]=this.di=t,this.Eb++},qi:function(e){this.di==e&&(this.di=0),e.destroy&&e.destroy(),delete e.popup,delete e.node,delete this.ai[e.id],this.Eb--},focusEditor:function(e){var t=this.getEditor.apply(this,arguments);t&&t.focus&&t.focus()},editCancel:function(){this.editStop(null,null,!0)},Xy:function(e){if(e){var t=this.getEditor();if(t&&t.getPopup&&t.getPopup()==e.getTopParentView())return}this.editStop()},editStop:function(e){if(!this.Zx){this.Zx=1;var t=arguments[2],i=1;return e?i=this.ri(this.ai[e],t):this.si(function(e){i*=this.ri(e,t)}),this.Zx=0,i}},ug:function(e){var t=this.getItemNode(e);return{left:t.offsetLeft,top:t.offsetTop,height:t.offsetHeight,width:t.offsetWidth,parent:this.w}},oi:function(e,t,i){if(t.style){var n=this.ug(e);t.style.top=n.top+"px",t.style.left=n.left+"px",t.style.width=n.width-1+"px",t.style.height=n.height-1+"px",t.top=n.top,i&&n.parent.appendChild(t)}},si:function(e){for(var t in this.ai)e.call(this,this.ai[t])},ri:function(e,t){if(e&&!jeeplus.B){var i={value:e.getValue(),old:e.value};if(this.callEvent("onBeforeEditStop",[i,e,t])){if(!t){var n=i.old;if("string"==typeof i.value&&(n+=""),n!=i.value||e.config.liveEdit){var s=this.ti(e,i.value,!0);this.updateItem(e.row||e.id,s)}}e.$inline?e.node=null:jeeplus.html.remove(e.node);var a=e.config.suggest;return a&&"string"==typeof a&&jeeplus.$$(a).hide(),this.qi(e),this.Ws&&this.detachEvent(this.Ws),this.callEvent("onAfterEditStop",[i,e,t]),1}return 0}},validateEditor:function(e){var t=!0;if(this.s.rules){var i=this.getEditor(e),n=i.column||this.s.editValue||"value",s=this.s.rules[n],a=this.s.rules.$all;if(s||a){var r=this.data.getItem(i.row||i.id),o=i.getValue(),l=i.getInputNode();s&&(t=s.call(this,o,r,n)),a&&(t=a.call(this,o,r,n)&&t),t?jeeplus.html.removeCss(l,"jeeplus_invalid"):jeeplus.html.addCss(l,"jeeplus_invalid"),jeeplus.callEvent("onLiveValidation",[i,t,r,o])}}return t},getEditorValue:function(e){var t;return(t=0===arguments.length?this.di:this.getEditor(e))?t.getValue():void 0},getEditState:function(){return this.di||!1},editNext:function(e,t){if(e=!1!==e,1==this.Eb||t){var i=this.ui(this.di||t,function(e){return!!this.ii(e)},e);if(this.editStop())return i&&(this.edit(i),this.vi(i)),!1}},vi:function(){},ui:function(e,t,i){var n=this.getIndexById(e.id),s=this.data.order;if(i){for(var a=n+1;a<s.length;a++)if(t.call(this,s[a]))return s[a]}else for(a=n-1;0<=a;a--)if(t.call(this,s[a]))return s[a];return null},ti:function(e,t,i){var n=i?{}:this.getItem(e.id);return n[this.s.editValue||"value"]=t,n}},function(){function a(e){return"string"==typeof e?e:e.linkInput?e.s.id:("object"==typeof e?(jeeplus.isArray(e)&&(e={data:e}),e.view=e.view||"suggest"):!0===e&&(e={view:"suggest"}),jeeplus.ui(e).config.id)}function l(e){return((e.header&&e.header[0]?e.header[0].text:e.editValue||e.label)||"").toString().replace(/<[^>]*>/g,"")}jeeplus.editors={text:{focus:function(){this.getInputNode(this.node).focus(),this.getInputNode(this.node).select()},getValue:function(){return this.getInputNode(this.node).value},setValue:function(e){var t=this.getInputNode(this.node);t.value=e,function(e,t){var i=e.config.suggest;if(i){var n=e.config.suggest=a(i),s=jeeplus.$$(n);s&&t&&s.linkInput(t)}}(this,t)},getInputNode:function(){return this.node.firstChild},render:function(){return jeeplus.html.create("div",{class:"jeeplus_dt_editor"},"<input type='text' aria-label='"+l(this.config)+"'>")}},"inline-checkbox":{render:function(){return{}},getValue:function(){return this.node.checked},setValue:function(){},focus:function(){this.node.focus()},getInputNode:function(){},$inline:!0},"inline-text":{render:function(){return{}},getValue:function(){return this.node.value},setValue:function(){},focus:function(){try{this.node.select(),this.node.focus()}catch(e){}},getInputNode:function(){},$inline:!0},checkbox:{focus:function(){this.getInputNode().focus()},getValue:function(){return this.getInputNode().checked},setValue:function(e){this.getInputNode().checked=!!e},getInputNode:function(){return this.node.firstChild.firstChild},render:function(){return jeeplus.html.create("div",{class:"jeeplus_dt_editor"},"<div><input type='checkbox' aria-label='"+l(this.config)+"'></div>")}},select:{focus:function(){this.getInputNode().focus()},getValue:function(){return this.getInputNode().value},setValue:function(e){this.getInputNode().value=e},getInputNode:function(){return this.node.firstChild},render:function(){var t="",e=this.config.options||this.config.collection;if(e.data&&e.data.each)e.data.each(function(e){t+="<option value='"+e.id+"'>"+e.value+"</option>"});else if(jeeplus.isArray(e))for(var i=0;i<e.length;i++){var n=e[i],s=jeeplus.isUndefined(n.id),a=s?n:n.id,r=s?n:n.value;t+="<option value='"+a+"'>"+r+"</option>"}else for(var o in e)t+="<option value='"+o+"'>"+e[o]+"</option>";return jeeplus.html.create("div",{class:"jeeplus_dt_editor"},"<select aria-label='"+l(this.config)+"'>"+t+"</select>")}},popup:{focus:function(){this.getInputNode().focus()},destroy:function(){this.getPopup().hide()},getValue:function(){return this.getInputNode().getValue()||""},setValue:function(e){this.getPopup().show(this.node),this.getInputNode().setValue(e)},getInputNode:function(){return this.getPopup().getChildViews()[0]},getPopup:function(){return this.config.lG||(this.config.lG=this.config.popup=this.createPopup()),jeeplus.$$(this.config.popup)},createPopup:function(){var e,t=this.config.popup||this.config.suggest;if(t)return"object"!=typeof t||t.name?e=jeeplus.$$(t):(t.view=t.view||"suggest",e=jeeplus.ui(jeeplus.copy(t))),e.mG||(e.linkInput?e.linkInput(document.body):this.linkInput&&this.linkInput(document.body),e.mG=!0),e;var i=jeeplus.editors.$popup[this.popupType];return"string"==typeof i||i.name||(i=jeeplus.editors.$popup[this.popupType]=jeeplus.ui(i),this.popupInit(i),i.linkInput||this.linkInput(document.body)),i.s.id},linkInput:function(e){jeeplus.UE(jeeplus.toNode(e),"keydown",jeeplus.bind(function(e){var t=e.which||e.keyCode,i=this.getInputNode();if(i.isVisible())if(i.moveSelection&&t<41&&32<t){var n;33==t&&(n="pgup"),34==t&&(n="pgdown"),35==t&&(n="bottom"),36==t&&(n="top"),37==t&&(n="left"),38==t&&(n="up"),39==t&&(n="right"),40==t&&(n="down"),i.moveSelection(n)}else 13!==t||"TEXTAREA"===e.target.nodeName&&e.shiftKey||jeeplus.callEvent("onEditEnd",[])},this))},popupInit:function(e){},popupType:"text",render:function(){return{}},$inline:!0}},jeeplus.editors.color=jeeplus.extend({focus:function(){},popupType:"color",popupInit:function(e){e.getChildViews()[0].attachEvent("onItemClick",function(e){jeeplus.callEvent("onEditEnd",[e])})}},jeeplus.editors.popup),jeeplus.editors.date=jeeplus.extend({focus:function(){},popupType:"date",setValue:function(e){this.wi=this.config.stringResult||e&&"string"==typeof e,jeeplus.editors.popup.setValue.call(this,e)},getValue:function(){return this.getInputNode().getValue(this.wi?jeeplus.i18n.parseFormatStr:"")||""},popupInit:function(e){e.getChildViews()[0].attachEvent("onDateSelect",function(e){jeeplus.callEvent("onEditEnd",[e])})}},jeeplus.editors.popup),jeeplus.editors.combo=jeeplus.extend({xi:function(e){return this.config.popup?this.config.popup.config.id:e?a(e):this.rt(e)},rt:function(){var e=jeeplus.editors.combo;return e.st=e.st||this.xi(!0)},render:function(){var e=jeeplus.html.create("div",{class:"jeeplus_dt_editor"},"<input type='text' role='combobox' aria-label='"+l(this.config)+"'>"),t=this.config.suggest=this.xi(this.config.suggest);return t&&(jeeplus.$$(t).linkInput(e.firstChild,!0),jeeplus.UE(e.firstChild,"click",jeeplus.bind(this.showPopup,this))),e},getPopup:function(){return jeeplus.$$(this.config.suggest)},showPopup:function(){var e=this.getPopup(),t=e.getList(),i=this.getInputNode(),n=this.yi;e.show(i),i.setAttribute("aria-expanded","true"),n?t.exists(n)&&(t.select(n),t.showItem(n)):(t.unselect(),t.showItem(t.getFirstId())),e.ae=i},afterRender:function(){this.showPopup()},setValue:function(e){if(this.yi=e,this.config.suggest){var t=jeeplus.$$(this.config.suggest),i=this.config.collection||this.config.options;i&&t.getList().data.importData(i),this.getInputNode(this.node).value=t.getItemText(e)}},getValue:function(){var e=this.getInputNode().value;if(this.config.suggest){var t=jeeplus.$$(this.config.suggest),i=t.getList();(e||i.getSelectedId&&i.getSelectedId())&&(e=t.getSuggestion())}return e}},jeeplus.editors.text),jeeplus.editors.richselect=jeeplus.extend({focus:function(){},getValue:function(){return this.getPopup().getValue()},setValue:function(e){var t=this.config.collection||this.config.options;this.getInputNode(),t&&this.getPopup().getList().data.importData(t),this.getPopup().show(this.node),this.getPopup().setValue(e)},getInputNode:function(){return this.getPopup().getList()},popupInit:function(e){e.linkInput(document.body)},popupType:"richselect"},jeeplus.editors.popup),jeeplus.editors.password=jeeplus.extend({render:function(){return jeeplus.html.create("div",{class:"jeeplus_dt_editor"},"<input type='password' aria-label='"+l(this.config)+"'>")}},jeeplus.editors.text),jeeplus.editors.$popup={text:{view:"popup",width:250,height:150,body:{view:"textarea"}},color:{view:"popup",body:{view:"colorboard"}},date:{view:"popup",width:250,height:250,padding:0,body:{view:"calendar",icons:!0,borderless:!0}},richselect:{view:"suggest",body:{view:"list",select:!0}}}}(),jeeplus.VirtualRenderStack={$init:function(){this.t={},jeeplus.UE(this.x,"scroll",jeeplus.bind(this.Ai,this)),jeeplus.env.touch&&this.attachEvent("onAfterScroll",jeeplus.bind(this.Ai,this)),this.Bi=[]},getItemNode:function(e){return this.t[e]},showItem:function(e){var t=this.Ci(),i=this.data.getIndexById(e),n=Math.floor(i/t.Di)*t.Ei,s=this.getScrollState();(n<s.y||n+this.s.height>=s.y+this.dc)&&this.scrollTo(0,n)},render:function(e,t,i){if(this.isVisible(this.s.id)&&!this.$blockRender)if(e){var n=this.getItemNode(e);switch(i){case"update":if(!n)return;var s=this.t[e]=this.Ne(t);jeeplus.html.insertBefore(s,n),jeeplus.html.remove(n);break;default:this.Fi()}}else this.callEvent("onBeforeRender",[this.data])&&(this.t={},this.Ai(null,!0),this.Gi=!1,this.callEvent("onAfterRender",[]))},Fi:function(){this.Gi||(this.Gi=!0,window.setTimeout(jeeplus.bind(function(){this.render()},this),1))},Hi:function(e){jeeplus.env.maxHTMLElementSize&&(e=Math.min(jeeplus.env.maxHTMLElementSize,e));var t=document.createElement("DIV");return t.style.cssText="height:"+e+"px; width:100%; overflow:hidden;",t},Ai:function(e,t){this.Bi=[];var i=this.Ci();(!this.y.firstChild||t)&&(this.y.innerHTML="",this.y.appendChild(this.Hi(i.Ii)),this.u=[this.y.firstChild]);for(var n=i.R;n<=i.Ji;){for(;this.u[n]&&this.u[n].Ki&&n<=i.Ji;)n++;if(n>i.Ji)break;for(var s=n;!this.u[s];)s--;var a=this.u[s],r=n*i.Di+(this.data.$min||0);if(r>(this.data.$max||1/0))break;var o=Math.min(r+i.Di-1,this.data.$max?this.data.$max-1:1/0),l=this.Hi(i.Ei),h=this.data.getIndexRange(r,o);if(!h.length)break;for(var u={$template:"Loading"},d=0;d<h.length;d++)h[d]||this.Bi.push(r+d),h[d]=this.jb(h[d]||u);l.innerHTML=h.join("");for(d=0;d<h.length;d++)this.t[this.data.getIdByIndex(r+d)]=l.childNodes[d];var c=parseFloat(a.style.height,10),p=(n-s)*i.Ei,f=c-p-i.Ei;if(jeeplus.html.insertBefore(l,p?a.nextSibling:a,this.y),(this.u[n]=l).Ki=!0,p<=0&&0<f)a.style.height=f+"px",this.u[n+1]=a;else if(p<0?jeeplus.html.remove(a):a.style.height=p+"px",0<f){var m=this.u[n+1]=this.Hi(f);jeeplus.html.insertBefore(m,l.nextSibling,this.y)}n++}if(this.Bi.length){var g=this.Bi[0],v=this.Bi.pop()+1;if(g<v){var _=v-g;if(this.cf(_,g))return;_=Math.max(_,this.s.datafetch||this.s.loadahead||0),this.loadNext(_,g)}}},Ci:function(){var e=this.getScrollState(),t=Math.max(0,e.y),i=this.bc,n=this.dc,s=this.type,a=Math.floor(i/s.width)||1,r=Math.floor(t/s.height),o=Math.ceil((n+t)/s.height)-1,l=this.data.$max?this.data.$max-this.data.$min:this.data.count();return{R:r,Ji:o,Li:t,Ii:Math.ceil(l/a)*s.height,Ei:s.height,Di:a}},ug:function(e){var t=this.getItemNode(e);return t||(this.showItem(e),this.Ai(),t=this.getItemNode(e)),{left:t.offsetLeft,top:t.offsetTop,height:t.offsetHeight,width:t.offsetWidth,parent:this.w}}},jeeplus.protoUI({name:"dataview",$init:function(e){e.sizeToContent&&this.$ready.unshift(this.Mi);var t=e.prerender||this.defaults.prerender;(!1===t||!0!==t&&"auto"!==e.height&&!e.autoheight)&&jeeplus.extend(this,jeeplus.VirtualRenderStack,!0),e.autoheight&&(e.scroll=!1),this.w.className+=" jeeplus_dataview",this.x.setAttribute("role","listbox")},Mi:function(){var e=jeeplus.html.create("DIV",0,this.type.template({}));e.style.position="absolute",document.body.appendChild(e),this.type.width=e.offsetWidth,this.type.height=e.offsetHeight,jeeplus.html.remove(e)},defaults:{scroll:!0,datafetch:50,navigation:!0},ad:"jeeplus_l_id",YF:"jeeplus_dataview_item",on_click:{jeeplus_dataview_item:function(e,t){this.s.select&&("multiselect"==this.s.select||this.s.multiselect?this.select(t,!1,"touch"==this.s.multiselect||e.ctrlKey||e.metaKey,e.shiftKey):this.select(t))}},on_dblclick:{},on_mouse_move:{},type:{template:jeeplus.template("#value#"),templateLoading:jeeplus.template("Loading..."),width:160,height:50,classname:function(e,t,i){var n="jeeplus_dataview_item ";return t.css&&(n+=t.css+" "),e.$css&&("object"==typeof e.$css&&(e.$css=jeeplus.html.createCss(e.$css)),n+=e.$css+" "),i&&i.$css&&(n+=i.$css+" "),n},aria:function(e,t,i){return'role="option"'+(i&&i.jeeplus_selected?' aria-selected="true" tabindex="0"':' tabindex="-1"')},templateStart:jeeplus.template('<div jeeplus_l_id="#id#" class="{common.classname()}" {common.aria()} style="width:{common.width}px; height:{common.height}px; float:left; overflow:hidden;">'),templateEnd:jeeplus.template("</div>")},Ni:function(e){return this.s.height=this.type.height*Math.ceil(this.data.count()/Math.floor(e/this.type.width))},autoheight_setter:function(e){return e&&(this.data.attachEvent("onStoreLoad",jeeplus.bind(this.resize,this)),this.w.style.overflowY="hidden"),e},$getSize:function(e,t){0<this.s.xCount&&"auto"!=this.type.width&&!this.Nw&&(this.s.width=this.type.width*this.s.xCount+(this.cc?jeeplus.ui.scrollSize:0)),this.s.yCount&&"auto"!=this.type.height&&(this.s.height=this.type.height*this.s.yCount);var i=this.s.width||this.bc;return this.s.autoheight&&i&&(this.Ni(i),this.scroll_setter(!1)),jeeplus.ui.view.prototype.$getSize.call(this,e,t)},iz:function(){var e=!1;return this.s.yCount&&"auto"==this.type.height&&(this.type.height=Math.floor(this.dc/this.s.yCount),e=!0),this.s.xCount&&("auto"==this.type.width||this.Nw)?(this.Nw=!0,this.type.width=Math.floor(this.bc/this.s.xCount),e=!0):this.Nw=!1,e},$setSize:function(e,t){if(jeeplus.ui.view.prototype.$setSize.call(this,e,t)){if(this.s.autoheight&&this.Ni()!=this.dc)return jeeplus.delay(this.resize,this);(this.iz()||this.Ai)&&this.render()}}},jeeplus.DataMove,jeeplus.DragItem,jeeplus.MouseEvents,jeeplus.KeysNavigation,jeeplus.SelectionModel,jeeplus.Scrollable,jeeplus.CustomPrint,jeeplus.ui.proto),jeeplus.DataDriver.htmltable={toObject:function(e){var t=(e=jeeplus.toNode(e)).rows;return jeeplus.html.remove(e),t},getRecords:function(e){for(var t=[],i=e[0]&&e[0].Oi?1:0;i<e.length;i++)t.push(e[i]);return t},getDetails:function(e){var t=e.getElementsByTagName("td");e={};for(var i=0;i<t.length;i++)e["data"+i]=t[i].innerHTML;return e},getInfo:function(e){return{size:0}},getOptions:function(){},getConfig:function(e){var t=[],i=e[0].getElementsByTagName("th");i.length&&(e[0].Oi=!0);for(var n=0;n<i.length;n++){var s={id:"data"+n,header:this.Pi(i[n].innerHTML)},a=this.Qi(i[n]);s=jeeplus.extend(s,a),t.push(s)}return t},Pi:function(e){var t=e.indexOf("json://");return-1!=t&&(e=JSON.parse(e.substr(t+7))),e},Qi:function(e){for(var t=e.attributes,i={},n=0;n<t.length;n++)i[t[n].nodeName]=this.Pi(t[n].nodeValue);return i.width=parseInt(i.width,10),i}},jeeplus.protoUI({name:"vscroll",defaults:{scroll:"x",scrollStep:40,scrollPos:0,scrollSize:18,scrollVisible:1,zoom:1},$init:function(e){var t=e.scroll||"x",i=this.x=jeeplus.toNode(e.container);i.className+=" jeeplus_vscroll_"+t,i.innerHTML="<div class='jeeplus_vscroll_body'></div>",jeeplus.UE(i,"scroll",this.Ri,{bind:this}),this.Si=0,this.Wi=0},reset:function(){this.Wi=this.config.scrollPos=0,this.x["x"==this.config.scroll?"scrollLeft":"scrollTop"]=0},Ti:function(e){return 15e5<e?(this.s.zoom=Math.floor(e/15e5)+1,this.Ui=e-this.Si,e=Math.floor(e/this.s.zoom)+this.Si):(this.s.zoom=1,this.Ui=1/0),e},scrollWidth_setter:function(e){return e=this.Ti(e),this.x.firstChild.style.width=e+"px",e},scrollHeight_setter:function(e){return e=this.Ti(e),this.x.firstChild.style.height=e+"px",e},sizeTo:function(e,t,i){e=e-(t||0)-(i||0);var n=this.s.scrollSize;jeeplus.env.isIE&&n&&(n+=1),n||!this.s.scrollVisible||jeeplus.env.$customScroll||(this.x.style.pointerEvents="none",n=14),n?(this.x.style.display="block",t&&(this.x.style.marginTop=t+"px"),this.x.style["x"==this.s.scroll?"width":"height"]=Math.max(0,e)+"px",this.x.style["x"==this.s.scroll?"height":"width"]=n+"px"):this.x.style.display="none",this.Si=e},getScroll:function(){return this.s.scrollPos*this.s.zoom},getSize:function(){return(this.s.scrollWidth||this.s.scrollHeight)*this.s.zoom},scrollTo:function(e){e<0&&(e=0);var t=this.s;(e=Math.min(((t.scrollWidth||t.scrollHeight)-this.Si)*t.zoom,e))<0&&(e=0);var i=e/t.zoom;return this.Wi!=i?(this.x["x"==t.scroll?"scrollLeft":"scrollTop"]=i,this.Vi(i),!0):void 0},Ri:function(){var e=this.x["x"==this.s.scroll?"scrollLeft":"scrollTop"];e!=this.Wi&&this.Vi(e)},Vi:function(e){this.Wi=e,this.s.scrollPos=Math.min(this.Ui,e*this.s.zoom)||0,this.callEvent("onScroll",[this.s.scrollPos])},activeArea:function(e,t){this.Xi=t,jeeplus.UE(e,jeeplus.env.isIE8?"mousewheel":"wheel",this.Yi,{bind:this}),this.uB(e)},uB:function(e){!jeeplus.env.touch&&window.navigator.pointerEnabled&&(jeeplus.html.addCss(e,"jeeplus_scroll_touch_ie",!0),jeeplus.UE(e,"pointerdown",function(e){("touch"==e.pointerType||"pen"==e.pointerType)&&(this.km=jeeplus.Touch.hm(e),this.vB=this.s.scrollPos)},{bind:this}),jeeplus.event(document.body,"pointermove",function(e){var t;this.km&&(this.lm=jeeplus.Touch.hm(e),"x"==this.s.scroll?t=this.lm.x-this.km.x:"y"==this.s.scroll&&(t=this.lm.y-this.km.y),t&&5<Math.abs(t)&&this.scrollTo(this.vB-t))},{bind:this}),jeeplus.event(window,"pointerup",function(e){this.km&&(this.km=this.lm=null)},{bind:this}))},Yi:function(e){var t=0,i=0===e.deltaMode?30:1;return jeeplus.env.isIE8&&(t=e.detail=-e.wheelDelta/30),e.deltaX&&Math.abs(e.deltaX)>Math.abs(e.deltaY)?this.Xi&&this.s.scrollVisible&&(t=e.deltaX/i):!this.Xi&&this.s.scrollVisible&&(t=jeeplus.isUndefined(e.deltaY)?e.detail:e.deltaY/i),jeeplus.env.isSafari&&(this.Yy=e.target||e.srcElement),t&&this.scrollTo(this.s.scrollPos+t*this.s.scrollStep)?jeeplus.html.preventEvent(e):void 0}},jeeplus.EventSystem,jeeplus.Settings),jeeplus.Number={getConfig:function(e){var t={decimalSize:0,groupSize:999},i=e.indexOf("0");0<i&&(t.decimalSize=e.length-i,t.decimalDelimiter=e[i-1],e=e.substr(0,i-1));var n=e.match(/[^0-9]/);return n&&(t.groupSize=e.length-n.index-1,t.groupDelimiter=e[n.index]),t},parse:function(e,t){if(!e||"string"!=typeof e)return e;var i="";if(t.decimalDelimiter){var n=e.indexOf(t.decimalDelimiter);-1<n&&(i=(i=e.substr(n+1).replace(/[^0-9]/g,"")).substr(0,Math.min(i.length,t.decimalSize)),e=e.substr(0,n))}var s="-"===e[0]?-1:1;return(e=e.replace(/[^0-9]/g,""))||(e="0"),i&&(e+="."+i),parseFloat(e)*s},format:function(e,t){if(""===e||void 0===e)return e;t=t||jeeplus.i18n;var i=(e=parseFloat(e))<0?"-":"";e=Math.abs(e),t.decimalOptional||(e=e.toFixed(t.decimalSize));var n=e.toString();n=n.split(".");var s="";if(t.groupSize){var a=t.groupSize,r=n[0].length;do{s=(0<(r-=a)?n[0].substr(r,a):n[0].substr(0,a+r))+(s?t.groupDelimiter+s:"")}while(0<r)}else s=n[0];return t.decimalSize?i+s+(n[1]?t.decimalDelimiter+n[1]:""):i+s},numToStr:function(t){return function(e){return jeeplus.Number.format(e,t)}}},jeeplus.Date={startOnMonday:!1,toFixed:function(e){return e<10?"0"+e:e},weekStart:function(e){var t=(e=this.copy(e)).getDay();return this.startOnMonday&&(0===t?t=6:t--),this.datePart(this.add(e,-1*t,"day"))},monthStart:function(e){return(e=this.copy(e)).setDate(1),this.datePart(e)},yearStart:function(e){return(e=this.copy(e)).setMonth(0),this.monthStart(e)},dayStart:function(e){return this.datePart(e,!0)},dateToStr:function(a,i){return"function"==typeof a?a:jeeplus.env.strict?function(t){var n="",s=0;return a.replace(/%[a-zA-Z]/g,function(i,e){n+=a.slice(s,e);n+=function(e){if("%d"==i)return jeeplus.Date.toFixed(e.getDate());if("%m"==i)return jeeplus.Date.toFixed(e.getMonth()+1);if("%j"==i)return e.getDate();if("%n"==i)return e.getMonth()+1;if("%y"==i)return jeeplus.Date.toFixed(e.getFullYear()%100);if("%Y"==i)return e.getFullYear();if("%D"==i)return jeeplus.i18n.calendar.dayShort[e.getDay()];if("%l"==i)return jeeplus.i18n.calendar.dayFull[e.getDay()];if("%M"==i)return jeeplus.i18n.calendar.monthShort[e.getMonth()];if("%F"==i)return jeeplus.i18n.calendar.monthFull[e.getMonth()];if("%h"==i)return jeeplus.Date.toFixed((e.getHours()+11)%12+1);if("%g"==i)return(e.getHours()+11)%12+1;if("%G"==i)return e.getHours();if("%H"==i)return jeeplus.Date.toFixed(e.getHours());if("%i"==i)return jeeplus.Date.toFixed(e.getMinutes());if("%a"==i)return 11<e.getHours()?jeeplus.i18n.pm[0]:jeeplus.i18n.am[0];if("%A"==i)return 11<e.getHours()?jeeplus.i18n.pm[1]:jeeplus.i18n.am[1];if("%s"==i)return jeeplus.Date.toFixed(e.getSeconds());if("%S"==i)return jeeplus.Date.toFixed(e.getMilliseconds());if("%W"==i)return jeeplus.Date.toFixed(jeeplus.Date.getISOWeek(e));if("%c"==i){var t=e.getFullYear();return t+="-"+jeeplus.Date.toFixed(e.getMonth()+1),t+="-"+jeeplus.Date.toFixed(e.getDate()),t+="T",t+=jeeplus.Date.toFixed(e.getHours()),(t+=":"+jeeplus.Date.toFixed(e.getMinutes()))+":"+jeeplus.Date.toFixed(e.getSeconds())}return i}(t),s=e+2}),n+=a.slice(s,a.length)}:(a=a.replace(/%[a-zA-Z]/g,function(e){switch(e){case"%d":return'"+jeeplus.Date.toFixed(date.getDate())+"';case"%m":return'"+jeeplus.Date.toFixed((date.getMonth()+1))+"';case"%j":return'"+date.getDate()+"';case"%n":return'"+(date.getMonth()+1)+"';case"%y":return'"+jeeplus.Date.toFixed(date.getFullYear()%100)+"';case"%Y":return'"+date.getFullYear()+"';case"%D":return'"+jeeplus.i18n.calendar.dayShort[date.getDay()]+"';case"%l":return'"+jeeplus.i18n.calendar.dayFull[date.getDay()]+"';case"%M":return'"+jeeplus.i18n.calendar.monthShort[date.getMonth()]+"';case"%F":return'"+jeeplus.i18n.calendar.monthFull[date.getMonth()]+"';case"%h":return'"+jeeplus.Date.toFixed((date.getHours()+11)%12+1)+"';case"%g":return'"+((date.getHours()+11)%12+1)+"';case"%G":return'"+date.getHours()+"';case"%H":return'"+jeeplus.Date.toFixed(date.getHours())+"';case"%i":return'"+jeeplus.Date.toFixed(date.getMinutes())+"';case"%a":return'"+(date.getHours()>11?jeeplus.i18n.pm[0]:jeeplus.i18n.am[0])+"';case"%A":return'"+(date.getHours()>11?jeeplus.i18n.pm[1]:jeeplus.i18n.am[1])+"';case"%s":return'"+jeeplus.Date.toFixed(date.getSeconds())+"';case"%S":return'"+jeeplus.Date.toFixed(date.getMilliseconds())+"';case"%W":return'"+jeeplus.Date.toFixed(jeeplus.Date.getISOWeek(date))+"';case"%c":var t='"+date.getFullYear()+"';return t+='-"+jeeplus.Date.toFixed((date.getMonth()+1))+"',t+='-"+jeeplus.Date.toFixed(date.getDate())+"',t+="T",t+='"+jeeplus.Date.toFixed(date.getHours())+"',t+=':"+jeeplus.Date.toFixed(date.getMinutes())+"',t+=':"+jeeplus.Date.toFixed(date.getSeconds())+"',!0===i&&(t+="Z"),t;default:return e}}),!0===i&&(a=a.replace(/date\.get/g,"date.getUTC")),new Function("date","if (!date) return ''; if (!date.getMonth) date=jeeplus.i18n.parseFormatDate(date); return \""+a+'";'))},strToDate:function(e,a){if("function"==typeof e)return e;var r,t,i,o=e.match(/%[a-zA-Z]/g),n="var temp=date.split(/[^0-9a-zA-Z]+/g);";if(!jeeplus.i18n.calendar.monthShort_hash){for(i=jeeplus.i18n.calendar.monthShort,t=jeeplus.i18n.calendar.monthShort_hash={},r=0;r<i.length;r++)t[i[r]]=r;for(i=jeeplus.i18n.calendar.monthFull,t=jeeplus.i18n.calendar.monthFull_hash={},r=0;r<i.length;r++)t[i[r]]=r}if(jeeplus.env.strict)return function(e){if(!e)return"";if("object"==typeof e)return e;var t=e.split(/[^0-9a-zA-Z]+/g),i=[0,0,1,0,0,0,0];for(r=0;r<o.length;r++){var n=o[r];if("%y"==n)i[0]=1*t[r]+(30<t[r]?1900:2e3);else if("%Y"==n)i[0]=1*(t[r]||0),i[0]<30&&(i[0]+=2e3);else if("%n"==n||"%m"==n)i[1]=(t[r]||1)-1;else if("%M"==n)i[1]=jeeplus.i18n.calendar.monthShort_hash[t[r]]||0;else if("%F"==n)i[1]=jeeplus.i18n.calendar.monthFull_hash[t[r]]||0;else if("%j"==n||"%d"==n)i[2]=t[r]||1;else if("%g"==n||"%G"==n||"%h"==n||"%H"==n)i[3]=t[r]||0;else if("%a"==n)i[3]=i[3]%12+((t[r]||"")==jeeplus.i18n.am[0]?0:12);else if("%A"==n)i[3]=i[3]%12+((t[r]||"")==jeeplus.i18n.am[1]?0:12);else if("%i"==n)i[4]=t[r]||0;else if("%s"==n)i[5]=t[r]||0;else if("%S"==n)i[6]=t[r]||0;else if("%c"==n){var s=/(\d+)-(\d+)-(\d+)T(\d+):(\d+):(\d+)(\+.*|)/g.exec(e);i[0]=1*(s[1]||0),i[0]<30&&(i[0]+=2e3),i[1]=(s[2]||1)-1,i[2]=s[3]||1,i[3]=s[4]||0,i[4]=s[5]||0,i[5]=s[6]||0}}return a?new Date(Date.UTC(i[0],i[1],i[2],i[3],i[4],i[5],i[6])):new Date(i[0],i[1],i[2],i[3],i[4],i[5],i[6])};for(r=0;r<o.length;r++)switch(o[r]){case"%j":case"%d":n+="set[2]=temp["+r+"]||1;";break;case"%n":case"%m":n+="set[1]=(temp["+r+"]||1)-1;";break;case"%y":n+="set[0]=temp["+r+"]*1+(temp["+r+"]>30?1900:2000);";break;case"%g":case"%G":case"%h":case"%H":n+="set[3]=temp["+r+"]||0;";break;case"%i":n+="set[4]=temp["+r+"]||0;";break;case"%Y":n+="set[0]=(temp["+r+"]||0)*1; if (set[0]<30) set[0]+=2000;";break;case"%a":n+="set[3]=set[3]%12+(temp["+r+"]==jeeplus.i18n.am[0]?0:12);";break;case"%A":n+="set[3]=set[3]%12+(temp["+r+"]==jeeplus.i18n.am[1]?0:12);";break;case"%s":n+="set[5]=temp["+r+"]||0;";break;case"%S":n+="set[6]=temp["+r+"]||0;";break;case"%M":n+="set[1]=jeeplus.i18n.calendar.monthShort_hash[temp["+r+"]]||0;";break;case"%F":n+="set[1]=jeeplus.i18n.calendar.monthFull_hash[temp["+r+"]]||0;";break;case"%c":n+="var res = date.split('T');",n+="if(res[0]){ var d = res[0].split('-');",n+="set[0]= (d[0]||0)*1; if (set[0]<30) set[0]+=2000;",n+="set[1]= (d[1]||1)-1;",n+="set[2]= d[2]||1;}",n+="if(res[1]){ var t = res[1].split(':');",n+="set[3]= t[0]||0;",n+="set[4]= t[1]||0;",n+="set[5]= parseInt(t[2])||0;}"}var s="set[0],set[1],set[2],set[3],set[4],set[5], set[6]";return a&&(s=" Date.UTC("+s+")"),new Function("date","if (!date) return ''; if (typeof date == 'object') return date; var set=[0,0,1,0,0,0,0]; "+n+" return new Date("+s+");")},getISOWeek:function(e){if(!e)return!1;var t=e.getDay();0===t&&(t=7);var i=new Date(e.valueOf());i.setDate(e.getDate()+(4-t));var n=i.getFullYear(),s=Math.floor((i.getTime()-new Date(n,0,1).getTime())/864e5);return 1+Math.floor(s/7)},getUTCISOWeek:function(e){return this.getISOWeek(e)},Jv:function(e,t,i,n){if(i){var s=n(e,t);if(s)for(var a=0<i?1:-1;s;)e.setHours(e.getHours()+a),s=n(e,t),a+=0<i?1:-1}},add:function(e,t,i,n){n&&(e=this.copy(e));var s=jeeplus.Date.copy(e);switch(i){case"day":e.setDate(e.getDate()+t),this.Jv(e,s,t,function(e,t){return jeeplus.Date.datePart(t,!0).valueOf()==jeeplus.Date.datePart(e,!0).valueOf()});break;case"week":e.setDate(e.getDate()+7*t),this.Jv(e,s,7*t,function(e,t){return jeeplus.Date.datePart(t,!0).valueOf()==jeeplus.Date.datePart(e,!0).valueOf()});break;case"month":e.setMonth(e.getMonth()+t),this.Jv(e,s,t,function(e,t){return t.getMonth()==e.getMonth()&&t.getYear()==e.getYear()});break;case"year":e.setYear(e.getFullYear()+t),this.Jv(e,s,t,function(e,t){return t.getFullYear()==e.getFullYear()});break;case"hour":e.setHours(e.getHours()+t),this.Jv(e,s,t,function(e,t){return t.getHours()==e.getHours()&&jeeplus.Date.datePart(t,!0)==jeeplus.Date.datePart(e,!0)});break;case"minute":e.setMinutes(e.getMinutes()+t);break;default:jeeplus.Date.add[i](e,t,i)}return e},datePart:function(e,t){t&&(e=this.copy(e));var i=this.copy(e);return i.setHours(0),i.getDate()!=e.getDate()?e.setHours(1):e.setHours(0),e.setMinutes(0),e.setSeconds(0),e.setMilliseconds(0),e},timePart:function(e,t){return t&&(e=this.copy(e)),(e.valueOf()/1e3-60*e.getTimezoneOffset())%86400},copy:function(e){return new Date(e.valueOf())},equal:function(e,t){return!(!e||!t)&&e.valueOf()===t.valueOf()},isHoliday:function(e){return 0===(e=e.getDay())||6==e?"jeeplus_cal_event":void 0}},jeeplus.i18n={Zi:["fullDateFormat","timeFormat","dateFormat","longDateFormat","parseFormat","parseTimeFormat"],parseFormat:"%Y-%m-%d %H:%i",parseTimeFormat:"%H:%i",numberFormat:jeeplus.Number.format,priceFormat:function(e){return jeeplus.i18n.$i(jeeplus.i18n.numberFormat(e,jeeplus.i18n._i))},setLocale:function(e){var n=function(e,t){for(var i in t)"object"!=typeof t[i]||jeeplus.isArray(t[i])?e[i]=t[i]:(e[i]||(e[i]={}),n(e[i],t[i]))};"string"==typeof e&&(e=this.locales[e]),e&&n(this,e);for(var t=jeeplus.i18n.Zi,i=0;i<t.length;i++){var s=t[i],a=jeeplus.i18n[s+"UTC"];jeeplus.i18n[s+"Str"]=jeeplus.Date.dateToStr(jeeplus.i18n[s],a),jeeplus.i18n[s+"Date"]=jeeplus.Date.strToDate(jeeplus.i18n[s],a)}this.$i=jeeplus.template(this.price),this._i=this.priceSettings||this,this.intFormat=jeeplus.Number.numToStr({groupSize:this.groupSize,groupDelimiter:this.groupDelimiter,decimalSize:0})}},jeeplus.i18n.locales={},jeeplus.i18n.locales["en-US"]={groupDelimiter:",",groupSize:3,decimalDelimiter:".",decimalSize:2,dateFormat:"%m/%d/%Y",timeFormat:"%h:%i %A",longDateFormat:"%d %F %Y",fullDateFormat:"%m/%d/%Y %h:%i %A",am:["am","AM"],pm:["pm","PM"],price:"${obj}",priceSettings:{groupDelimiter:",",groupSize:3,decimalDelimiter:".",decimalSize:2},fileSize:["b","Kb","Mb","Gb","Tb","Pb","Eb"],calendar:{monthFull:["January","February","March","April","May","June","July","August","September","October","November","December"],monthShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayFull:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],hours:"Hours",minutes:"Minutes",done:"Done",clear:"Clear",today:"Today"},dataExport:{page:"Page",of:"of"},PDFviewer:{of:"of",automaticZoom:"Automatic Zoom",actualSize:"Actual Size",pageFit:"Page Fit",pageWidth:"Page Width",pageHeight:"Page Height"},aria:{calendar:"Calendar",increaseValue:"Increase value",decreaseValue:"Decrease value",navMonth:["Previous month","Next month"],navYear:["Previous year","Next year"],navDecade:["Previous decade","Next decade"],dateFormat:"%d %F %Y",monthFormat:"%F %Y",yearFormat:"%Y",hourFormat:"Hours: %h %A",minuteFormat:"Minutes: %i",removeItem:"Remove item",pages:["First page","Previous page","Next page","Last page"],page:"Page",headermenu:"Header menu",openGroup:"Open column group",closeGroup:"Close column group",closeTab:"Close tab",showTabs:"Show more tabs",resetTreeMap:"Reset tree map",navTreeMap:"Level up",nextTab:"Next tab",prevTab:"Previous tab",multitextSection:"Add section",multitextextraSection:"Remove section",showChart:"Show chart",hideChart:"Hide chart",resizeChart:"Resize chart"},richtext:{underline:"Underline",bold:"Bold",italic:"Italic"},combo:{select:"Select",selectAll:"Select all",unselectAll:"Unselect all"}},jeeplus.i18n.setLocale("en-US"),jeeplus.protoUI({name:"datatable",defaults:{leftSplit:0,rightSplit:0,topSplit:0,columnWidth:100,minColumnWidth:20,minColumnHeight:26,prerender:!1,autoheight:!1,autowidth:!1,header:!0,fixedRowHeight:!0,scrollAlignY:!0,scrollX:!0,scrollY:!0,datafetch:50,navigation:!0},$skin:function(){var e=jeeplus.skin.$active.rowHeight,t=this.defaults;t.rowHeight=e,t.headerRowHeight=jeeplus.skin.$active.barHeight},on_click:{jeeplus_richfilter:function(){return!1},jeeplus_table_checkbox:function(e,t){t=this.locate(e);var i=this.getItem(t.row),n=this.getColumnConfig(t.column),s=e.target||e.srcElement,a=("checkbox"==s.type?s.checked:i[t.column]!=n.checkValue)?n.checkValue:n.uncheckValue,r={};return r[t.column]=a,this.updateItem(t.row,r,this.s.checkboxRefresh?"update":"save"),this.callEvent("onCheck",[t.row,t.column,a]),!1},jeeplus_table_radio:function(e){var i=this.locate(e),t=this.getItem(i.row),n=this.getColumnConfig(i.column);return this.eachRow(function(e){var t=this.data.pull[e];t&&t[i.column]==n.checkValue&&(t[i.column]=n.uncheckValue)}),t[i.column]=n.checkValue,this.callEvent("onCheck",[i.row,i.column,!0]),this.refresh(),!1}},on_dblclick:{jeeplus_table_checkbox:function(){return this.on_click.jeeplus_table_checkbox.apply(this,arguments)}},on_context:{},$init:function(e){this.on_click=jeeplus.extend({},this.on_click);this.w.innerHTML="<div class='jeeplus_ss_header'><div class='jeeplus_hs_left'></div><div class='jeeplus_hs_center'></div><div class='jeeplus_hs_right'></div></div><div class='jeeplus_ss_body'><div class='jeeplus_ss_left'><div class='jeeplus_ss_center_scroll'></div></div><div class='jeeplus_ss_center'><div class='jeeplus_ss_center_scroll' role='rowgroup'></div></div><div class='jeeplus_ss_right'><div class='jeeplus_ss_center_scroll'></div></div></div><div class='jeeplus_ss_hscroll' role='scrollbar' aria-orientation='horizontal'></div><div class='jeeplus_ss_footer'><div class='jeeplus_hs_left'></div><div class='jeeplus_hs_center'></div><div class='jeeplus_hs_right'></div></div><div class='jeeplus_ss_vscroll_header'></div><div class='jeeplus_ss_vscroll' role='scrollbar' aria-orientation='vertical'></div><div class='jeeplus_ss_vscroll_footer'></div>",this.bj=this.w.id=this.name+jeeplus.uid(),this.w.className+=" jeeplus_dtable",this.y=this.w,this.I=this.w.firstChild,this.Vf=this.I.nextSibling,this.cj=this.Vf.nextSibling.nextSibling,this.x.setAttribute("role","grid"),e.editable||this.x.setAttribute("aria-readonly","true"),this.data.provideApi(this,!0),this.data.attachEvent("onParse",jeeplus.bind(this.dj,this)),this.$ready.push(this.ej),this.fj=[],this.bm=[],this.Mt=[],this.Nt=[],this.gj=[],this.hj={},this.ij={},this.$g=this.jj=0,this.Ns=[],this.data.attachEvent("onServerConfig",jeeplus.bind(this.kj,this)),this.data.attachEvent("onServerOptions",jeeplus.bind(this.lj,this)),this.attachEvent("onViewShow",function(){this.Ow(),this.nz()}),this.data.attachEvent("onClearAll",jeeplus.bind(function(e){e||(this.bk=this.jk=0,this.Zj&&this.Zj.reset(),this.Wj&&this.Wj.reset(),this.oH(0))},this)),this.attachEvent("onDestruct",this.YC),this.attachEvent("onKeyPress",this.DD),this.attachEvent("onScrollY",this.dF),jeeplus.callEvent("onDataTable",[this,e])},mj:function(){this.nj=this.oj=jeeplus.ui.scrollSize,jeeplus.html.addStyle("#"+this.bj+" .jeeplus_cell { height:"+this.s.rowHeight+"px; line-height:"+(this.s.rowLineHeight||this.s.rowHeight)+"px;"+(this.s.fixedRowHeight?"":"white-space:normal;")+" }"),jeeplus.html.addStyle("#"+this.bj+" .jeeplus_hcell { height:"+this.s.headerRowHeight+"px; line-height:"+this.s.headerRowHeight+"px;}"),this.mj=function(){}},ej:function(){this.data.attachEvent("onStoreLoad",jeeplus.bind(this.nz,this)),this.data.attachEvent("onSyncApply",jeeplus.bind(this.nz,this)),this.data.attachEvent("onStoreUpdated",jeeplus.bind(function(){return this.render.apply(this,arguments)},this)),this.data.attachEvent("onStoreUpdated",jeeplus.bind(this.pj,this)),this.render()},refresh:function(){this.render()},render:function(e,t,i){if("save"!=i){if("move"==i){var n=jeeplus.DragControl.getContext();if(n&&n.fragile)return}if(!this.fj.length){var s=this.s.columns;if(!s||!s.length){if(!this.s.autoConfig||!this.data.order.length||this.bm.length)return;this.tj=0,this.qj()}this.rj()}if(!this.isVisible(this.s.id)||this.$blockRender)return this.mj();var a=this.config.experimental&&!this.s.subview;return!e||-1==t||"paint"!=i&&"update"!=i||a?(this.sj&&(clearTimeout(this.sj),this.sj=0),this.callEvent("onBeforeRender",[this.data])?(this.mj(),this.tj||this.uj(),this.bc&&(a&&("paint"==i||"update"==i)&&e?this.Kv(e):this.vj(!0,!0)),e&&"update"==i||(this.wj=this.xj(),this.yj()),this.x.setAttribute("aria-colcount",Math.max(this.bm.length,this.fj.length)),this.x.setAttribute("aria-rowcount",this.data.count()),this.callEvent("onAfterRender",[this.data]),!0):void 0):(this.sj&&clearTimeout(this.sj),void(this.sj&&this.Lv!=e?(this.Lv=null,this.sj=jeeplus.delay(function(){this.render()},this)):(this.Lv=e,this.sj=jeeplus.delay(function(){this.render(e,-1,i)},this))))}},getColumnConfig:function(e){return this.Aj[e]||this.am[e]},lj:function(e){for(var t in e){var i=this.getColumnConfig(t),n=new jeeplus.DataCollection({data:e[t]});this.Ns.push(n),this.Bj(n,i)}},kj:function(e){e.columns&&this.tj&&this.refreshColumns(null,!0)},rj:function(){if(this.s.columns){this.fj=this.s.columns,this.Aj={};for(var e=0;e<this.fj.length;e++){var t=this.fj[e],i=(this.Aj[t.id]=t).cssFormat;if(i&&(t.cssFormat=jeeplus.toFunctor(i,this.$scope)),t.width=t.width||this.s.columnWidth,"string"==typeof t.format&&(t.format=jeeplus.i18n[t.format]||window[t.format]),t.numberFormat){var n=t.numberFormat;"string"==typeof n&&(t.numberFormat=n=jeeplus.Number.getConfig(n)),t.format=jeeplus.Number.numToStr(n),t.editFormat=t.editFormat||function(e){return jeeplus.Number.format(e,n)},t.editParse=t.editParse||function(e){return jeeplus.Number.parse(e,n)}}jeeplus.isUndefined(t.checkValue)&&(t.checkValue=1),jeeplus.isUndefined(t.uncheckValue)&&(t.uncheckValue=0),t.css&&"object"==typeof t.css&&(t.css=jeeplus.html.createCss(t.css));var s=t.template;s&&("string"==typeof s&&(s=s.replace(/#\$value#/g,"#"+t.id+"#")),t.template=jeeplus.template(s))}this.Mj("header",this.Mt),this.Mj("footer",this.Nt),this.callEvent("onStructureLoad",[])}},Cj:function(){this.uj()},YC:function(){for(var e=0;e<this.fj.length;e++)delete this.fj[e].attached,delete this.fj[e].node},uj:function(){this.Fj=this.fj.length-this.s.rightSplit;for(var e=this.Gj=0;e<this.fj.length;e++){if(!this.fj[e].node){var t=jeeplus.html.create("DIV");t.style.width=this.fj[e].width+"px",this.fj[e].node=t}e>=this.s.leftSplit&&e<this.Fj&&(this.Gj+=this.fj[e].width)}var i=[];if(this.s.rightSplit){var n=this.fj.length-this.s.rightSplit;i[n]=" jeeplus_first",i[n-1]=" jeeplus_last"}if(this.s.leftSplit){var s=this.s.leftSplit;i[s]=" jeeplus_first",i[s-1]=" jeeplus_last"}i[0]=(i[0]||"")+" jeeplus_first";var a=this.fj.length-1;i[a]=(i[a]||"")+" jeeplus_last";for(e=0;e<this.fj.length;e++){var r=this.fj[e].node;r.setAttribute("column",e),r.className="jeeplus_column "+(this.fj[e].css||"")+(i[e]||"")}this.Hj(),this.Ij(),this.Jj(),this.Kj(),this.tj=!0},Ij:function(){for(var e=0,t=0;t<this.fj.length;t++){var i=this.fj[t];(t==this.s.leftSplit||t==this.Fj)&&(e=0),i.node&&(i.node.style.left=e+"px",(this.s.leftSplit||this.s.rightSplit)&&(jeeplus.html.remove(i.node),i.attached=!1)),e+=i.width}},Kj:function(){this.Lj||(this.Lj=0),this.$g=this.jj=0,this.s.header&&(this.fk(this.I,0,1),this.Mj("header",this.Mt),this.$g=this.Mt.Ot,this.Nj(this.I,"header",this.Mt)),this.s.footer&&(this.fk(this.cj,0,1),this.Mj("footer",this.Nt),this.jj=this.Nt.Ot,this.Nj(this.cj,"footer",this.Nt)),this.refreshHeaderContent(!1,!1),this.Oj(),this.Nk&&this.markSorting(this.Nk,this.Ok)},RF:function(e,t,i){var n=0,s=e.colspan||1,a="jeeplus_hcell "+(e.css||"");if(e.rotate)a+=" jeeplus_measure_rotate";else for(var r=0;r<s;r++)n+=this.fj[i+r]?this.fj[i+r].width:this.config.columnWidth;var o=jeeplus.html.getTextSize([e.text],a,n);return(e.rotate?o.width:o.height)+1},Mj:function(e,t){for(var i=0,n=0;n<this.fj.length;n++){(o=this.fj[n][e])&&"object"==typeof o&&o.length||(jeeplus.isUndefined(o)&&(o="header"==e?this.fj[n].id:""),o=[o]);for(var s=0;s<o.length;s++)"object"!=typeof o[s]&&(o[s]={text:o[s]}),o[s]&&o[s].height&&(t[s]=o[s].height),o[s]&&o[s].autoheight&&(t[s]=this.RF(o[s],this.fj[n],n));i=Math.max(i,o.length),this.fj[n][e]=o}for(n=(t.Ot=i)-1;0<=n;n--)t[n]=t[n]||this.s.headerRowHeight,t.Ot+=1*t[n];for(n=0;n<this.fj.length;n++){var a=this.fj[n][e];for(s=0;s<a.length;s++){if(a[s]&&a[s].rowspan)for(var r=1;r<a[s].rowspan;r++)a[s+r]=null;if(a[s]&&a[s].colspan)for(r=1;r<a[s].colspan;r++)this.fj[n+r][e][s]=null}}for(n=0;n<this.fj.length;n++){var o;if((o=this.fj[n][e]).length<i){var l=o.length-1;o[l].rowspan=i-o.length+1;for(s=l+1;s<i;s++)o[s]=null}}return i},Pj:function(e,t){for(var i=e.getElementsByTagName("TD"),n=0;n<i.length;n++)if(i[n].getAttribute("active_id")==t)return i[n]},getHeaderContent:function(e){var t=this.Pj(this.I,e);if(t||(t=this.Pj(this.cj,e)),t){var i=this.hj[e],n=jeeplus.ui.datafilter[i.content];return n.getHelper?n.getHelper(t,i):{type:n,getValue:function(){return n.getValue(t)},setValue:function(e){return n.setValue(t,e)}}}},Pt:function(e,t,i){var n=i?-1:0;for(i+=t;t<i;t++)n+=e[t]+1;return n},Qj:function(e,t,i,n,s){if(e==t)return"";for(var a="<table role='presentation' style='width:"+i+"px' cellspacing='0' cellpadding='0'>",r=e;r<t;r++){a+="<tr class='jeeplus_size_row'>";for(r=e;r<t;r++)a+="<td style='width:"+this.fj[r].width+"px;'></td>";a+="</tr>"}for(var o=this.fj[0][n].length,l=0;l<o;l++){a+="<tr section='"+n+"' role='row'>";for(r=e;r<t;r++){var h=this.fj[r][n][l];if(null!==h){h.content&&(h.contentId=h.contentId||jeeplus.uid(),h.columnId=this.fj[r].id,h.format=this.fj[r].format,h.text=jeeplus.ui.datafilter[h.content].render(this,h),this.hj[h.contentId]=h,this.Rj=!0),a+="<td role='presentation' column='"+(h.colspan?h.colspan-1+r:r)+"'";var u="";r==e&&(u+="jeeplus_first"),t-1<=r+(h.colspan?h.colspan-1:0)&&(u+=" jeeplus_last"),u&&(a+=' class="'+u+'"');var d=s[l],c="";h.contentId&&(a+=" active_id='"+h.contentId+"'"),h.colspan&&(a+=" colspan='"+h.colspan+"'"),h.rowspan&&(a+=" rowspan='"+h.rowspan+"'",d=this.Pt(this.Mt,l,h.rowspan)),d!=this.s.headerRowHeight&&(c=" style='line-height:"+d+"px; height:"+d+"px;'");var p="jeeplus_hcell",f=h.css;f&&("object"==typeof f&&(h.css=f=jeeplus.html.createCss(f)),p+=" "+f),this.fj[r].$selected&&(p+=" jeeplus_sel_hcell"),a+="><div role='columnheader' class='"+p+"'"+c+">";var m=""===h.text?"&nbsp;":h.text;h.rotate&&(m="<div class='jeeplus_rotate' style='width:"+(d-10)+"px; transform-origin:center "+(d-15)/2+"px;-webkit-transform-origin:center "+(d-15)/2+"px;'>"+m+"</div>"),a+=m+"</div></td>"}}a+="</tr>"}return a+"</tr></table>"},showItemByIndex:function(e,t){var i=this.s.pager;if(i){var n=Math.floor(e/i.size);n!=i.page&&jeeplus.$$(i.id).select(n)}if(-1!=e&&(e<(a=this.Sj())[0]+1||e>=a[1]-1)){var s=this.Tj(i?this.data.$min:0,e);e<a[0]+1?s=Math.max(0,s-1)-this.xD:(s+=this.Uj(e)-this.Vj,0<e&&(s+=this.Uj(e-1)-1)),this.Wj.scrollTo(s)}if(-1!=t){if(t<this.s.leftSplit)return;if(t>=this.Fj)return;var a;if(t<(a=this.Xj())[0]+1||t>=a[1]-1){s=0;for(var r=this.s.leftSplit;r<t;r++)s+=this.fj[r].width;t<a[0]+1||(s+=this.fj[t].width-this.Yj),this.Zj.scrollTo(s)}}},showCell:function(e,t){if(!t||!e){var i=this.getSelectedId(!0);1==i.length&&(t=t||i[0].column,e=e||i[0].row)}t=t?this.getColumnIndex(t):-1,e=e?this.getIndexById(e):-1,this.showItemByIndex(e,t)},scrollTo:function(e,t){if(this.Zj){if(this.$j)return this.$j(e,t);null!==e&&this.Zj.scrollTo(e),null!==t&&this.Wj.scrollTo(t)}},getScrollState:function(){if(this._j)return this._j();var e=this.ck?0:this.aC||0;return{x:this.bk||0,y:this.jk+e}},showItem:function(e){this.showItemByIndex(this.getIndexById(e),-1)},Nj:function(e,t,i){e.childNodes[0].innerHTML=this.Qj(0,this.s.leftSplit,this.dk,t,i),e.childNodes[1].innerHTML=this.Qj(this.s.leftSplit,this.Fj,this.Gj,t,i),e.childNodes[1].onscroll=jeeplus.bind(this._s,this),e.childNodes[2].innerHTML=this.Qj(this.Fj,this.fj.length,this.ek,t,i)},_s:function(){var e=this.getScrollState().x,t=this.I.childNodes[1].scrollLeft;t!=e&&this.scrollTo(t,null)},pj:function(){this.refreshHeaderContent(!0,!0)},nz:function(){this.refreshHeaderContent(!1,!0)},refreshHeaderContent:function(e,t,i){this.s.header&&(t&&this.fk(this.I,e,1,i),this.fk(this.I,e,0,i)),this.s.footer&&(t&&this.fk(this.cj,e,1,i),this.fk(this.cj,e,0,i))},refreshFilter:function(e){(!e||this.hj[e])&&this.refreshHeaderContent(!1,!0,e)},fk:function(e,t,i,n){if(this.Rj&&e)for(var s=e.getElementsByTagName("TD"),a=0;a<s.length;a++)if(s[a].getAttribute("active_id")){var r=this.hj[s[a].getAttribute("active_id")];if(n&&n!=r.columnId)continue;var o=jeeplus.ui.datafilter[r.content];i?o.getValue&&(r.value=o.getValue(s[a])):(!t||o.trackCells)&&o.refresh(this,s[a],r)}},headerContent:[],gk:function(e,t,i){this.oj?(e.style.height=Math.max(t,1)-1+"px",e.style.width=(this.Fj?0:i)+this.oj-1+"px",jeeplus.env.isWebKit&&e.offsetWidth):e.style.display="none"},Oj:function(){this.s.header&&this.gk(this.hk,this.$g,this.Lj),this.s.footer&&this.gk(this.ik,this.jj,this.Lj)},sk:function(e,t){var i=!(this.s.autowidth||!1===this.s.scrollX);this.nj=i?jeeplus.ui.scrollSize:0;var n=!(this.s.autoheight||!1===this.s.scrollY);this.oj=n?jeeplus.ui.scrollSize:0,jeeplus.env.touch&&(i=n=!1),this.Zj&&(this.Zj.s.scrollSize=this.nj,this.Zj.s.scrollVisible=i),this.Wj&&(this.Wj.s.scrollSize=this.oj,this.Wj.s.scrollVisible=n)},Hj:function(){var e,t;if(this.jk=0,this.bk=0,e=t=1,(this.s.autoheight||!1===this.s.scrollY)&&(t=this.oj=0),(this.s.autowidth||!1===this.s.scrollX)&&(e=this.nj=0),jeeplus.env.touch&&(e=t=0),this.Zj||(this.Zj=new jeeplus.ui.vscroll({container:this.cj.previousSibling,scrollWidth:this.Gj,scrollSize:this.nj,scrollVisible:e}),!e||this.nj||jeeplus.env.$customScroll||(this.Zj.x.style.position="absolute"),this.Zj.attachEvent("onScroll",jeeplus.bind(this.kk,this))),!this.Wj){this.hk=this.cj.nextSibling;var i=this.hk.nextSibling;this.ik=i.nextSibling,this.Wj=new jeeplus.ui.vscroll({container:i,scrollHeight:100,scroll:"y",scrollSize:this.oj,scrollVisible:t}),this.Wj.activeArea(this.Vf),this.Zj.activeArea(this.Vf,!0),this.Wj.attachEvent("onScroll",jeeplus.bind(this.lk,this))}this.bc&&this.callEvent("onResize",[this.bc,this.dc]),jeeplus.env.$customScroll&&jeeplus.CustomScroll.enable(this),this.Hj=function(){}},columnId:function(e){return this.fj[e].id},getColumnIndex:function(e){for(var t=0;t<this.fj.length;t++)if(this.fj[t].id==e)return t;return-1},nk:function(e,t){var i,n=0,s=0,a=0,r=0,o=0;for(i=0;i<this.fj.length&&((this.Fj==i||this.s.leftSplit==i)&&(n=0,o++),this.fj[i].id!=t);i++)n+=this.fj[i].width;for(s+=this.fj[i].width,i=0;i<this.data.order.length&&this.data.order[i]!=e;i++)r+=this.Uj(i);return a+=this.Uj(i),[n,s,r-this.jk,a,this.Vf.childNodes[o]]},ok:function(){return this.row},locate:function(e,t){if(this.s.subview&&this!=jeeplus.$$(e))return null;for(e=e.target||e.srcElement||e;e&&e.getAttribute&&e!==this.$view;){var i=jeeplus.html.TC(e).toString(),n=null;if(-1!=i.indexOf("jeeplus_cell")&&((n=this.pk(e))&&(n.row=this.data.order[n.rind])),-1!=i.indexOf("jeeplus_hcell")&&((n=this.pk(e))&&(n.header=!0)),n)return t?n.header?null:n.row:(n.column=this.fj[n.cind].id,n.toString=this.ok,n);e=e.parentNode}return null},pk:function(e){var t=e.parentNode;if(!t)return null;var i=1*(e.getAttribute("column")||t.getAttribute("column")),n=e.getAttribute("row")||0,s=1*(e.getAttribute("colspan")||t.getAttribute("colspan"));if(!n)for(var a=0;a<t.childNodes.length;a++)t.childNodes[a]==e&&(n=a>=this.s.topSplit?a+this.fj[i].qk-this.s.topSplit:a);return{rind:n,cind:i,span:s}},ZF:function(){for(var e=-this.Yj,t=0;t<this.fj.length;t++)e+=this.fj[t].width;this.bk=Math.min(this.bk,Math.max(0,e))},rk:function(e){this.tj&&(this.ZF(),this.Ij(),this.Jj(),this.Kj(),e||this.vj(!1,!1))},setColumnWidth:function(e,t,i){return this.Xs(this.getColumnIndex(e),t,i)},Xs:function(e,t,i,n){if(!(isNaN(t)||e<0)){var s=this.fj[e];s.minWidth&&t<s.minWidth?t=s.minWidth:t<this.s.minColumnWidth&&(t=this.s.minColumnWidth);var a=s.width;return a!=t&&(e>=this.s.leftSplit&&e<this.Fj&&(this.Gj+=t-a),s.width=t,!!s.node&&(s.node.style.width=t+"px",i||this.rk(),this.callEvent("onColumnResize",[s.id,t,a,!!n]),!0))}},FA:function(e){return(e.$height||this.s.rowHeight)+(e.$subopen?e.$subHeight:0)},Uj:function(e){var t=this.data.order[e];return t?this.FA(this.data.pull[t]):this.s.rowHeight},Tj:function(e,t){if(this.s.fixedRowHeight)return(t-e)*this.s.rowHeight;for(var i=0;e<t;e++)i+=this.Uj(e);return i},ug:function(e,t){1==arguments.length&&(t=e.column,e=e.row);for(var i=this.getItem(e),n=this.getColumnConfig(t),s=0,a=0,r=0;r<this.fj.length;r++){(r==this.s.leftSplit||r==this.Fj)&&(s=0);var o=this.fj[r];if(o.id==t){var l=r<this.s.leftSplit?0:r>=this.Fj?2:1;a=this.Vf.childNodes[l].firstChild;break}s+=o.width}return{parent:a,top:this.getIndexById(e)<this.s.topSplit?this.Tj(0,this.getIndexById(e)):this.Tj((this.ak||0)-this.s.topSplit,this.getIndexById(e))+(this.ck||0),left:s,width:n.width,height:i.$height||this.s.rowHeight}},xj:function(){var e=this.s.pager,t=0,i=this.data.order.length;return e&&(t=e.size*e.page,i=Math.min(i,t+e.size),e.level&&(t=this.data.$min,i=this.data.$max)),this.Tj(t,i)},setRowHeight:function(e,t){if(!isNaN(t)){t<this.s.minColumnHeight&&(t=this.s.minColumnHeight);var i=this.getItem(e),n=i.$height||this.s.rowHeight;n!=t&&(i.$height=t,this.config.fixedRowHeight=!1,this.render(),this.callEvent("onRowResize",[e,t,n]))}},lk:function(e){var t=this.jk!==e;if(this.jk=e,this.s.prerender)for(var i=this.Vf.childNodes,n=0;n<i.length;n++)i[n].scrollTop=e;else this.vj();jeeplus.env.$customScroll&&jeeplus.CustomScroll.sk(this.Vf),t&&(this.callEvent("onScrollY",[]),this.callEvent("onAfterScroll",[]))},oH:function(e){this.Vf.childNodes[1].scrollLeft=this.bk=e,this.s.header&&(this.I.childNodes[1].scrollLeft=e),this.s.footer&&(this.cj.childNodes[1].scrollLeft=e)},kk:function(e){var t=this.bk!==e;this.oH(e),!1===this.s.prerender&&this.vj(!this.tk),jeeplus.env.$customScroll&&jeeplus.CustomScroll.sk(this.Vf),t&&(this.callEvent("onScrollX",[]),this.callEvent("onAfterScroll",[]))},Xj:function(e){if(e)return[0,this.fj.length];for(var t=this.bk,i=this.s.leftSplit;0<t&&this.fj.length-1>i;)t-=this.fj[i].width,i++;var n=i;for(t&&0<i&&i--,t+=this.Yj;0<t&&n<this.Fj;)t-=this.fj[n].width,n++;return[i,n]},getVisibleCount:function(){return Math.floor(this.Vj/this.config.rowHeight)},Sj:function(e){var t=this.jk,i=0,n=this.count(),s=this.s.pager;if(s){i=s.page*s.size,n=Math.min(n,i+s.size);s.level&&(i=this.data.$min,n=this.data.$max)}if(this.s.autoheight)return[i,n,0];if(e)return[i,n,0];var a=i,r=this.s.topSplit||0;r&&(a+=r);var o=this.s.fixedRowHeight?this.s.rowHeight:0;if(o)t-=(l=Math.ceil(t/o))*o,a+=l;else for(;0<t;)t-=this.Uj(a),a++;var l,h=0<a&&t?-(this.Uj(a-1)+t):0,u=a;if(t&&a--,t+=(this.Vj||this.dc)-(this.xD||0),o)t-=(l=Math.ceil(t/o))*o,u+=l;else for(;0<t&&u<n;)t-=this.Uj(u),u++;return n<u&&(u=n),[a,u,h]},Kv:function(e){var t=this.getItem(e),i=this.getIndexById(e),n=this.Sj(),s=this.config.topSplit,a="";if(s<=i){if(i<n[0]||i>=n[1])return;i-=n[0]-s}else a=i==s-1?" jeeplus_topcell jeeplus_last_topcell":" jeeplus_topcell";for(var r=this.Xj(),o=0;o<this.fj.length;o++){var l=this.fj[o];if(o<this.Fj&&o>=this.s.leftSplit&&(o<r[0]||o>r[1])&&(l.qk=-999),l.attached&&l.node){var h=l.node.childNodes[i];if(!h)continue;var u=this.Ek(t,this.fj[o],0);h.innerHTML=u,h.className=this.Mv(this.fj[o],u,t,e)+a}}},vj:function(e,t){if(this.fj.length){t&&this.uk();var i=this.Xj(this.s.prerender),n=this.Sj(!0===this.s.prerender);if(e){for(var s=this.s.leftSplit;s<i[0];s++)this.vk(s,t);for(s=i[1];s<this.Fj;s++)this.vk(s,t)}this.wk=[];for(s=0;s<this.s.leftSplit;s++)this.xk(s,n,t);for(s=i[0];s<i[1];s++)this.xk(s,n,t,s==i[0]);for(s=this.Fj;s<this.fj.length;s++)this.xk(s,n,t);this.yk(n[0],n[1],t),this.zk(n)}},Ak:function(e,t){this.Bk=e,this.Ck=t,jeeplus.html.remove(this.gj),this.gj=[]},dF:function(){if(this.s.prerender&&this.GA){var e=this.getScrollState();this.GA.style.top="-"+(e.y||0)+"px"}},yk:function(e,t,i){if(this.GA&&(this.GA.style.top=this.ck+"px"),i||e!=this.Bk||t!=this.Ck){if(this.Ak(e,t),this.Dk){this.Dk=!1;for(var n=0;n<this.wk.length;n++){var s,a=this.wk[n],r=this.getItem(a.id);s="function"==typeof r.$row?r.$row.call(this,r,this.type):this.Ek(r,this.getColumnConfig(r.$row),n),(h=this.gj[n]=jeeplus.html.create("DIV",null,s)).className="jeeplus_cell "+(r.$sub?"jeeplus_dtable_sub"+(this.s.subview?"view":"row"):"jeeplus_dtable_colrow"+(r.$row?" jeeplus_topcell"+(this.data.getMark(r.id,"jeeplus_selected")?" jeeplus_selected":""):"")),h.setAttribute("column",0),h.setAttribute("row",a.index);var o=r.$height||this.s.rowHeight;r.$subopen?h.style.height=r.$subHeight+"px":h.style.height=o+"px",h.style.paddingRight=jeeplus.ui.scrollSize+"px";var l=this.wk[n].index<this.config.topSplit?-this.ck:0;h.style.top=l+a.top+(r.$subopen?o-1:0)+"px",this.GA||(this.GA=jeeplus.html.create("DIV"),this.GA.style.position="relative",this.GA.style.top=this.ck+"px",this.Vf.appendChild(this.GA)),this.GA.appendChild(h),this.attachEvent("onSyncScroll",function(e,t,i){jeeplus.Touch.Nf(this.GA,0,t,i)}),this.s.subview&&this.callEvent("onSubViewRender",[r,h])}}}else if(this.config.topSplit)for(n=0;n<this.wk.length;n++){var h=this.gj[n];this.wk[n].index<this.config.topSplit&&(h.style.top=this.wk[n].top-this.ck+"px")}},zk:function(e){var t=this.s.pager,i=this.s.datafetch,n=!this.Fk||e[0]>=this.Fk;if(this.Fk=e[0],this.Gk){if(t&&(!i||i>=t.size)&&this.Hk([0,t.size*t.page],Math.max(i,t.size),!0))return this.Gk=null;this.Ik(this.Gk,n),this.Gk=null}else this.s.loadahead&&this.Hk(e,this.s.loadahead,n)},Hk:function(e,t,i){var n=e[1],s=n+t;i||(n=e[0]-t,s=e[0]),n<0&&(n=0),s=Math.min(s,this.data.order.length-1);for(var a=!1,r=n;r<s;r++)this.data.order[r]||(a?(a.last=r,a.count=r-n):a={start:r,count:s-n});return a?(this.Ik(a,i),!0):void 0},Ik:function(e,t){var i=Math.max(e.count,this.s.datafetch||this.s.loadahead||0),n=t?e.start:e.last-i+1;this.cf(e.count,e.start)||this.loadNext(i,n)},Zy:function(e){if(jeeplus.env.isSafari){var t,i,n,s,a=[this.Zj,this.Wj];for(t=0;t<2;t++)(s=a[t])&&s.Yy&&s.Yy.parentNode==e&&(i=s.Yy);i&&(this.$y&&jeeplus.html.remove(this.$y),n=(this.$y=i).cloneNode(!0),i.parentNode.insertBefore(n,i),this.$y.style.display="none",this.Vf.appendChild(this.$y))}},vk:function(e){var t=this.fj[e];this.Zy(t.node),jeeplus.html.remove(t.node),t.attached=!1},uk:function(){for(var e=0;e<this.fj.length;e++)this.fj[e].qk=-1;this.gj.length&&(jeeplus.html.remove(this.gj),this.gj=[])},getText:function(e,t){return this.Ek(this.getItem(e),this.getColumnConfig(t),0)},getCss:function(e,t){var i=this.getItem(e);return this.Mv(this.getColumnConfig(t),i[t],i,e)},Mv:function(e,t,i,n){var s="jeeplus_cell";if(e.cssFormat){var a=e.cssFormat(t,i,n,e.id);a&&(s+="object"==typeof a?" "+jeeplus.html.createCss(a):" "+a)}var r=i.$css;r&&("object"==typeof r&&(i.$css=r=jeeplus.html.createCss(r)),s+=" "+r);var o=this.data.Me[n];if(o&&(o.$css&&(s+=" "+o.$css),o.$cellCss)){var l=o.$cellCss[e.id];l&&(s+=" "+l)}if(i.$cellCss){var h=i.$cellCss[e.id];h&&("object"==typeof h&&(h=jeeplus.html.createCss(h)),s+=" "+h)}var u=this.data.getMark(i.id,"jeeplus_selected");return(u&&(u.$row||u[e.id])||e.$selected)&&(s+=this.Lk),s},Ek:function(e,t,i){return e?(((n=e[t.id])===jeeplus.undefined||null===n)&&(n=""),t.format&&(n=t.format(n)),t.template&&(n=t.template(e,this.type,n,t,i)),n):"";var n},type:{checkbox:function(e,t,i,n){return"<input class='jeeplus_table_checkbox' type='checkbox' "+(i==n.checkValue?'checked="true"':"")+">"},radio:function(e,t,i,n){return"<input class='jeeplus_table_radio' type='radio' "+(i==n.checkValue?'checked="true"':"")+">"},editIcon:function(){return"<span class='jeeplus_icon fa-pencil'></span>"},trashIcon:function(){return"<span class='jeeplus_icon fa-trash'></span>"}},type_setter:function(e){return this.types&&this.types[e]?(this.type=jeeplus.clone(this.types[e]),this.type.css&&(this.w.className+=" "+this.type.css)):jeeplus.type(this,e),this.type.on_click&&jeeplus.extend(this.on_click,this.type.on_click),e},xk:function(e,t,i,n){var s=this.fj[e];if(!s.attached){var a=e<this.s.leftSplit?0:e>=this.Fj?2:1;this.Vf.childNodes[a].firstChild.appendChild(s.node),s.attached=!0,s.split=a}if(this.ak=t[0],this.ck=0,this.aC=t[2],this.s.scrollAlignY?t[1]==this.data.order.length||this.data.$pagesize&&t[1]%this.data.$pagesize==0?s.node.style.top=(this.ck=t[2])+"px":s.Jk&&(s.node.style.top="0px"):(this.ck=t[2],s.node.style.top=t[2]+"px"),!(i||s.qk!=t[0]||s.Kk!=t[1]||this.s.topSplit&&s.ck!=this.ck))return 0;for(var r="",o=this.s.columns[e],l={row:this.s.rowHeight,total:0,single:n},h=0;h<this.s.topSplit;h++)r+=this.yD(h,o,t,l,-this.ck);for(h=Math.max(t[0],this.s.topSplit);h<t[1];h++)r+=this.yD(h,o,t,l,-1);return this.Zy(s.node),s.node.innerHTML=r,s.qk=t[0],s.Kk=t[1],s.Jk=t[2],s.ck=this.ck,1},yD:function(e,t,i,n,s){var a=this.data.order[e],r=this.data.getItem(a),o="";if(r){var l=" role='gridcell' aria-rowindex='"+(e+1)+"' aria-colindex='"+(this.getColumnIndex(t.id)+1)+"'"+(r.$count||r.$sub?" aria-expanded='"+(r.open||r.$subopen?"true":"false")+"'":"")+(r.$level?" aria-level='"+r.$level+"'":"");if(n.single&&r.$row&&(this.Dk=!0,this.wk.push({top:n.total,id:r.id,index:e}),!r.$sub)){var h=r.$height||n.row;return n.total+=h,"<div"+l+" class='jeeplus_cell' style='height:"+h+"px;'></div>"}var u=this.Ek(r,t,e),d=this.Mv(t,u,r,a);-1!==d.indexOf("select")&&(l+=" aria-selected='true' tabindex='0'");var c=!!r.$subopen,p=c?"margin-bottom:"+r.$subHeight+"px;":"";0<=s&&(0<s&&(p+="top:"+s+"px;'"),d="jeeplus_topcell "+d,e==this.s.topSplit-1&&(d="jeeplus_last_topcell "+d)),r.$height?(o="<div"+l+" class='"+d+"' style='height:"+r.$height+"px;"+p+"'>"+u+"</div>",n.total+=r.$height-n.row):o="<div"+l+" class='"+d+"'"+(p?" style='"+p+"'":"")+">"+u+"</div>",c&&(n.total+=r.$subHeight)}else o="<div role='gridcell' class='jeeplus_cell'></div>",this.Gk?this.Gk.last=e:this.Gk={start:e,count:i[1]-e};return n.total+=n.row,o},yj:function(){if(this.fj.length&&!isNaN(1*this.dc)){var e=this.wj+(this.nj?this.nj:0);if(!this.s.autoheight&&!this.s.yCount||!this.resize()){this.Wj.sizeTo(this.dc,this.$g,this.jj),this.Wj.define("scrollHeight",e),this.xD=this.s.topSplit?this.Tj(0,this.s.topSplit):0,this.Vj=Math.max(0,this.dc-this.nj-this.$g-this.jj);for(var t=0;t<3;t++)this.Vf.childNodes[t].style.height=this.Vj+"px",this.s.prerender?this.Vf.childNodes[t].firstChild.style.height=this.wj+"px":this.Vf.childNodes[t].firstChild.style.height=this.Vj+"px";this.I.style.height=this.$g+"px"}}},Jj:function(){if(this.fj.length){var e=0;for(this.dk=0,this.ek=0,this.Yj=0;e<this.s.leftSplit;)this.dk+=this.fj[e].width,e++;for(e=this.fj.length-1;e>=this.Fj;)this.ek+=this.fj[e].width,e--;if(this.bc&&(!this.s.autowidth||!this.resize())){this.Yj=this.bc-this.ek-this.dk-this.oj,this.Vf.childNodes[1].firstChild.style.width=this.Gj+"px",this.Vf.childNodes[0].style.width=this.dk+"px",this.Vf.childNodes[1].style.width=this.Yj+"px",this.Vf.childNodes[2].style.width=this.ek+"px",this.I.childNodes[0].style.width=this.dk+"px",this.I.childNodes[1].style.width=this.Yj+"px",this.I.childNodes[2].style.width=this.ek+"px",this.cj.childNodes[0].style.width=this.dk+"px",this.cj.childNodes[1].style.width=this.Yj+"px",this.cj.childNodes[2].style.width=this.ek+"px";var t=this.Yj-this.Gj;if(t<0&&(t=0),t!=this.Lj&&(this.Lj=t,this.Oj()),jeeplus.env.isWebKit){this.Vf.childNodes[0].offsetWidth;this.Vf.childNodes[1].offsetWidth,this.Vf.childNodes[1].firstChild.offsetWidth,this.Vf.childNodes[2].offsetWidth}this.Zj.sizeTo(this.bc-this.oj),this.Zj.define("scrollWidth",this.Gj+this.dk+this.ek)}}},$getSize:function(e,t){if((this.s.autoheight||this.s.yCount)&&this.s.columns){var i=(this.s.yCount||0)*this.s.rowHeight;i||(i=this.isVisible()?this.wj:this.count()*this.s.rowHeight),this.s.height=Math.max(i+(this.nj?this.nj:0)-1,this.s.minHeight||0)+this.$g+this.jj}this.s.autowidth&&this.s.columns&&(this.s.width=Math.max(this.Gj+this.dk+this.ek+this.oj,this.s.minWidth||0));var n=this.dk+this.ek+this.oj,s=jeeplus.ui.view.prototype.$getSize.call(this,e,t);return s[0]=Math.max(s[0]||n),s},Ow:function(){if(this.Zj&&!jeeplus.env.touch){var e=this.getScrollState();this.Zj.Wi=this.Wj.Wi=-1,this.scrollTo(e.x,e.y)}},$setSize:function(e,t){var i=this.bc,n=this.dc;jeeplus.ui.view.prototype.$setSize.apply(this,arguments)&&(this.tj&&(this.callEvent("onResize",[this.bc,this.dc,i,n]),this.Jj(),this.yj()),this.render())},Mk:function(e){var t=this.getColumnConfig(e);if(t.sort){var i="asc";t.id==this.Nk&&(i="asc"==this.Ok?"desc":"asc"),this.zf(t.id,i,t.sort)}},markSorting:function(e,t){this.Pk||(this.Pk=jeeplus.html.create("DIV"));var i=this.Pk.parentNode;if(i&&(i.removeAttribute("aria-sort"),i.removeAttribute("tabindex")),jeeplus.html.remove(this.Pk),t){var n=this.Qk(this.getColumnIndex(e));n&&(this.Pk.className="jeeplus_ss_sort_"+t,n.style.position="relative",n.appendChild(this.Pk),n.setAttribute("aria-sort",t+"ending"),n.setAttribute("tabindex","0")),this.Nk=e,this.Ok=t}else this.Nk=this.Ok=null},scroll_setter:function(e){return"string"==typeof e?(this.s.scrollX=-1!=e.indexOf("x"),this.s.scrollY=-1!=e.indexOf("y"),e):this.s.scrollX=this.s.scrollY=e},Qk:function(e){for(var t=this.I.getElementsByTagName("TD"),i=null,n=0;n<t.length;n++)if(t[n].getAttribute("column")==e&&!t[n].getAttribute("active_id")&&(i=t[n].firstChild,(t[n].colSpan||0)<2))return i;return i},zf:function(t,e,i){e=e||"asc",this.markSorting(t,e),"server"==i?(this.callEvent("onBeforeSort",[t,e,i]),this.loadNext(0,0,{before:function(){this.clearAll(!0)},success:function(){this.callEvent("onAfterSort",[t,e,i])}},0,1)):("text"==i&&(this.data.each(function(e){e.$text=this.getText(e.id,t)},this),i="string",t="$text"),"function"==typeof i?this.data.sort(i,e):this.data.sort(t,e,i||"string"))},iA:function(e,t,i,n){var s;if(e.length)for(s=0;s<e.length;s++)if(!1===jeeplus.toFunctor(e[s],this.$scope).call(this,t,i,n))return!1},Yc:function(e,t,i,n){var s=(e=e||event).target||e.srcElement;if(!this.s.subview||this==jeeplus.$$(s)){var a="",r=[],o=!1,l=null;for(s=e.target||e.srcElement;s&&s.parentNode&&s!=this.x.parentNode;){if(a=jeeplus.html.TC(s))for(var h=(a=a.toString().split(" ")).length-1;0<=h;h--)t[a[h]]&&r.push(t[a[h]]);if(s.parentNode.getAttribute&&!l){var u=s.parentNode.getAttribute("column")||s.getAttribute("column");if(u){var d="DIV"==s.parentNode.tagName;if(!this.fj[u])return;if(o=!0,d){var c=s.parentNode.getAttribute("row")||s.getAttribute("row");if(!c){if(s.getAttribute("column"))return;(c=jeeplus.html.index(s))>=this.s.topSplit&&(c+=this.fj[u].qk-this.s.topSplit)}this.Qc=l={row:this.data.order[c],column:this.fj[u].id},l.toString=this.ok}else this.Qc=l={column:this.fj[u].id};if(!1===this.iA(r,e,l,s))return;if(d)this.callEvent("on"+i,[l,e,s])&&n&&this.callEvent("on"+n,[l,e,s]);else if("ItemClick"==i){"header"==s.parentNode.parentNode.getAttribute("section")&&this.callEvent("onHeaderClick",[l,e,s])&&this.Mk(l.column)}r=[]}}s=s.parentNode}return this.iA(r,e,l,this.$view),o}},showOverlay:function(e){if(!this.Rk){var t=jeeplus.html.create("DIV",{class:"jeeplus_overlay"},"");this.Vf.appendChild(t),this.Rk=t}this.Rk.innerHTML=e},hideOverlay:function(){this.Rk&&(jeeplus.html.remove(this.Rk),this.Rk=null)},mapCells:function(e,t,i,n,s,a){if(null===e&&0<this.data.order.length&&(e=this.data.order[0]),null===t&&(t=this.columnId(0)),null===i&&(i=this.data.order.length),null===n&&(n=this.s.columns.length),this.exists(e)&&(e=this.getIndexById(e),null!==(t=this.getColumnIndex(t))))for(var r=0;r<i&&e+r<this.data.order.length;r++){var o=e+r,l=this.data.order[o];if(l)for(var h=this.getItem(l),u=0;u<n&&t+u<this.s.columns.length;u++){var d=t+u,c=this.columnId(d),p=s(h[c],l,c,r,u);a||(h[c]=p)}}},dj:function(e,t){!this.s.columns&&e.getConfig&&this.define("columns",e.getConfig(t))},qj:function(){var e=this.getItem(this.getFirstId()),t=this.s.columns=[];for(var i in e)"id"!=i&&"$"!=i[0]&&t.push({id:i,header:i[0].toUpperCase()+i.substr(1),sort:"string",editor:"text"});t.length&&(t[0].fillspace=!0),void 0===this.s.select&&this.define("select","row")}},jeeplus.AutoTooltip,jeeplus.Group,jeeplus.DataMarks,jeeplus.DataLoader,jeeplus.MouseEvents,jeeplus.MapCollection,jeeplus.ui.view,jeeplus.EventSystem,jeeplus.Settings),jeeplus.ui.datafilter={textWaitDelay:500,summColumn:{getValue:function(e){return e.firstChild.innerHTML},setValue:function(){},refresh:function(e,t,i){var n=0;e.mapCells(null,i.columnId,null,1,function(e){e*=1,isNaN(e)||(n+=e)},!0),i.format&&(n=i.format(n)),i.template&&(n=i.template({value:n})),t.firstChild.innerHTML=n},trackCells:!0,render:function(e,t){return t.template&&(t.template=jeeplus.template(t.template)),""}},masterCheckbox:{getValue:function(){},setValue:function(){},getHelper:function(e,t){return{check:function(){t.checked=!1,e.onclick()},uncheck:function(){t.checked=!0,e.onclick()},isChecked:function(){return t.checked}}},refresh:function(i,e,n){e.onclick=function(){this.getElementsByTagName("input")[0].checked=n.checked=!n.checked;var e=i.getColumnConfig(n.columnId),t=n.checked?e.checkValue:e.uncheckValue;i.data.each(function(e){e[n.columnId]=t,i.callEvent("onCheck",[e.id,n.columnId,t]),this.callEvent("onStoreUpdated",[e.id,e,"save"])}),i.refresh()}},render:function(e,t){return"<input type='checkbox' "+(t.checked?"checked='1'":"")+">"}},textFilter:{getInputNode:function(e){return e.firstChild?e.firstChild.firstChild:{value:null}},getValue:function(e){return this.getInputNode(e).value},setValue:function(e,t){this.getInputNode(e).value=t},refresh:function(e,t,i){t.component=e.s.id,e.registerFilter(t,i,this),t.Sk=e.s.id,i.value&&this.getValue(t)!=i.value&&this.setValue(t,i.value),t.onclick=jeeplus.html.preventEvent,jeeplus.UE(t,"keydown",this.Tk)},render:function(e,t){return this.init&&this.init(t),t.css="jeeplus_ss_filter","<input "+(t.placeholder?'placeholder="'+t.placeholder+'" ':"")+"type='text'>"},Tk:function(e,t,i){var n=this.Sk;9!=(e.which||e.keyCode)&&(this.Uk&&window.clearTimeout(this.Uk),this.Uk=window.setTimeout(function(){var e=jeeplus.$$(n);e&&e.filterByAll()},jeeplus.ui.datafilter.textWaitDelay))}},selectFilter:{getInputNode:function(e){return e.firstChild?e.firstChild.firstChild:{value:null}},getValue:function(e){return this.getInputNode(e).value},setValue:function(e,t){this.getInputNode(e).value=t},refresh:function(t,i,n){n.compare=n.compare||function(e,t){return e==t},i.component=t.s.id,t.registerFilter(i,n,this);var e,s=n.options;s?"string"==typeof s?(e=n.options=[],jeeplus.ajax(s).then(jeeplus.bind(function(e){n.options=e.json(),this.refresh(t,i,n)},this))):e=s:(e=t.collectValues(n.columnId)).unshift({id:"",value:""});var a=jeeplus.$$(s);a&&a.data&&a.data.getRange&&(e=a.data.getRange());for(var r=document.createElement("select"),o=0;o<e.length;o++){var l=document.createElement("option");l.value=e[o].id,l.text=e[o].value,r.add(l)}i.firstChild.innerHTML="",i.firstChild.appendChild(r),n.value&&this.setValue(i,n.value),i.onclick=jeeplus.html.preventEvent,r.Sk=t.s.id,jeeplus.UE(r,"change",this.Vk)},render:function(e,t){return this.init&&this.init(t),t.css="jeeplus_ss_filter",""},Vk:function(e,t,i){jeeplus.$$(this.Sk).filterByAll()}}},jeeplus.ui.datafilter.serverFilter=jeeplus.extend({$server:!0,Tk:function(e,t,i){var n=this.Sk,s=e.which||e.keyCode;e.target||e.srcElement,9==s||33<=s&&s<=40||(this.Uk&&window.clearTimeout(this.Uk),this.Uk=window.setTimeout(function(){jeeplus.$$(n).filterByAll()},jeeplus.ui.datafilter.textWaitDelay))}},jeeplus.ui.datafilter.textFilter),jeeplus.ui.datafilter.serverSelectFilter=jeeplus.extend({$server:!0,Vk:function(e,t,i){var n=this.Sk;jeeplus.$$(n).filterByAll()}},jeeplus.ui.datafilter.selectFilter),jeeplus.ui.datafilter.numberFilter=jeeplus.extend({init:function(s){s.prepare=function(e,t){var i=-1!=e.indexOf("=")?1:0,n=this.format(e);return""===n?"":(-1!=e.indexOf(">")?s.compare=this.Wk:-1!=e.indexOf("<")?(s.compare=this.Xk,i*=-1):(s.compare=this.Yk,i=0),n-i)}},format:function(e){return e.replace(/[^\-\.0-9]/g,"")},Wk:function(e,t){return t<1*e},Xk:function(e,t){return""!==e&&1*e<t},Yk:function(e,t){return 1*e==t}},jeeplus.ui.datafilter.textFilter),jeeplus.ui.datafilter.dateFilter=jeeplus.extend({format:function(e){if(""===e)return"";var t=new Date;if(-1!=e.indexOf("today"))t=jeeplus.Date.dayStart(t);else if(-1==e.indexOf("now")){var i=e.match(/[0-9]+/g);if(!i||!i.length)return"";i.length<3?(i.reverse(),t=new Date(i[0],(i[1]||1)-1,1)):t=jeeplus.i18n.dateFormatDate(e.replace(/^[>< =]+/,""))}return t.valueOf()}},jeeplus.ui.datafilter.numberFilter),jeeplus.extend(jeeplus.ui.datatable,{filterByAll:function(){var r=!1;this.data.silent(function(){this.filter();var e=!1;for(var i in this.ij)if(this.isColumnVisible(i)){var t=this.ij[i],n=t[2].getValue(t[0]),s=n;t[1].prepare&&(s=t[1].prepare.call(t[2],s,t[1],this)),t[1].value=n;var a=t[1].compare;if(this.callEvent("onBeforeFilter",[i,s,t[1]]))if(t[2].$server||r)r=!0;else{if(""===s)continue;a?(a=this.fC(i,a),this.filter(jeeplus.bind(function(e,t){return!!e&&a(e[i],t,e)},this),s,e)):this.filter(i,s,e),e=!0}}r&&this.jA()},this),r||(this.refresh(),this.callEvent("onAfterFilter",[]))},fC:function(e,a){var t=this.getColumnConfig(e),r=t?t.optionslist:null;return r?("string"!=typeof r&&(r=","),function(e,t,i){if(!e)return!0;for(var n=e.split(r),s=0;s<n.length;s++)if(a(n[s],t,i))return!0}):a},filterMode_setter:function(e){return jeeplus.extend(this.data.Cf,e,!0)},getFilter:function(e){var t=this.ij[e];return t&&t[2].getInputNode?t[2].getInputNode(t[0]):null},registerFilter:function(e,t,i){this.ij[t.columnId]=[e,t,i]},collectValues:function(e){var t=[],i={"":!0},n=(r=this.getColumnConfig(e)).options||r.collection;if(n){if("object"==typeof n&&!n.loadNext){if(jeeplus.isArray(n))for(var s=0;s<n.length;s++)t.push({id:n[s],value:n[s]});else for(var a in n)t.push({id:a,value:n[a]});return t}"string"==typeof n&&(n=jeeplus.$$(n)),n.getBody&&(n=n.getBody()),this.Zk.call(n,"id","value",t,i)}else this.Zk(r.id,r.id,t,i);var r={values:t};return this.callEvent("onCollectValues",[e,r]),r.values},Zk:function(n,s,a,r){if(this.data.each(function(e){var t=e?e[n]:"";if(t!==jeeplus.undefined&&!r[t]){r[t]=!0;var i=e[n];0===i&&(i="0"),a.push({id:i,value:e[s]})}},this,!0),a.length){var e="string"==typeof a[0].value?"string":"raw";a.sort(this.data.sorting.create({as:e,by:"value",dir:"asc"}))}},jA:function(e){this.loadNext(0,0,{before:function(){this.editStop&&this.editStop(),this.clearAll(!0)},success:function(){this.callEvent("onAfterFilter",[])}},0,1)}}),jeeplus.extend(jeeplus.ui.datatable,{hover_setter:function(e){return e&&!this.Yw&&(this.Vc(),this.config.experimental=!0,this.attachEvent("onMouseMoving",function(e){var t=this.locate(e);t=t?t.row:null,this.Zw!=t&&(this.Zw&&this.removeRowCss(this.Zw,this.s.hover),this.Zw=t,this.Zw&&this.addRowCss(this.Zw,this.s.hover))}),jeeplus.event(this.$view,"mouseout",jeeplus.bind(function(e){this.Zw&&document.body.contains(e.target)&&(this.removeRowCss(this.Zw,this.s.hover),this.Zw=null)},this)),this.Yw=1),e},select_setter:function(e){return!this.select&&e&&(jeeplus.extend(this,this._k.$k,!0),!0===e?e="row":"multiselect"==e&&(e="row",this.s.multiselect=!0),jeeplus.extend(this,this._k[e],!0)),e},getSelectedId:function(e){return e?[]:""},getSelectedItem:function(e){return jeeplus.SelectionModel.getSelectedItem.call(this,e)},_k:{$k:{Lk:" jeeplus_cell_select",$init:function(){this.al(),this.on_click.jeeplus_cell=jeeplus.bind(this.bl,this),this.cl=this.zg=function(){this.unselect()},this.data.attachEvent("onStoreUpdated",jeeplus.bind(this.xg,this)),this.data.attachEvent("onSyncApply",jeeplus.bind(this.rF,this)),this.data.attachEvent("onClearAll",jeeplus.bind(this.cl,this)),this.data.attachEvent("onAfterFilter",jeeplus.bind(this.zg,this)),this.data.attachEvent("onIdChange",jeeplus.bind(this.Ag,this)),this.$ready.push(jeeplus.SelectionModel.uy)},Ag:function(e,t){for(var i=0;i<this.dl.length;i++)this.dl[i]==e&&(this.dl[i]=t);for(i=0;i<this.el.length;i++){var n=this.el[i];n.row==e&&(e=this.fl(n),n.row=t,t=this.fl(n),n.id=t,delete this.gl[e],this.gl[t]=!0)}},xg:function(e,t,i){"delete"==i&&this.unselect(e)},rF:function(){for(var e=this.el.length-1;0<=e;e--){var t=this.el[e].row;this.exists(t)||(this.el.splice(e,1),delete this.gl[t])}},al:function(){this.el=[],this.gl={},this.dl=[]},isSelected:function(e,t){var i;return i=jeeplus.isUndefined(t)?"object"==typeof e?this.fl(e):e:this.fl({row:e,column:t}),this.gl[i]},getSelectedId:function(e,t){var i;if(1<this.el.length||e){if(i=[].concat(this.el),t)for(var n=0;n<i.length;n++)i[n]=i[n].id}else if(i=this.el[0],t&&i)return i.id;return i},ok:function(){return this.row},hl:function(e,t){var i=this.fl(e);if(null!==i){if(-1===t)return this.ll(e);if(e.id=i,e.toString=this.ok,!this.callEvent("onBeforeSelect",[e,t]))return!1;if(!this.gl[i]||!t&&1!=this.el.length)return t||this.il(),this.el.push(e),this.gl[i]=!0,this.callEvent("onAfterSelect",[e,t]),this.jl(this.kl(e)),!0}},il:function(){if(!this.el.length)return!1;for(var e=0;e<this.el.length;e++)if(!this.callEvent("onBeforeUnSelect",[this.el[e]]))return!1;for(e=0;e<this.dl.length;e++)this.data.removeMark(this.dl[e],"jeeplus_selected");var t=this.s.columns;if(t)for(e=0;e<t.length;e++)t[e].$selected=null;var i=this.el;this.al();for(e=0;e<i.length;e++)this.callEvent("onAfterUnSelect",[i[e]]);return!0},unselectAll:function(){this.clearSelection()},selectAll:function(){this.selectRange()},clearSelection:function(){this.il()&&(this.callEvent("onSelectChange",[]),this.render())},ll:function(e){var t=this.fl(e);if(!t&&this.el.length&&(this.clearSelection(),this.callEvent("onSelectChange",[])),this.gl[t]){if(!this.callEvent("onBeforeUnSelect",[e]))return!1;for(var i=0;i<this.el.length;i++)if(this.el[i].id==t){this.el.splice(i,1);break}delete this.gl[t],this.callEvent("onAfterUnSelect",[e]),this.jl(0,this.ml(e))}},nl:function(e){var t=this.getItem(e);return this.data.addMark(t.id,"jeeplus_selected",0,{$count:0},!0)},jl:function(e){e&&this.dl.push(e),this.Dg||(this.render(),this.callEvent("onSelectChange",[]))},bl:function(e,t){var i=e.ctrlKey||e.metaKey||"touch"==this.s.multiselect,n=e.shiftKey;if(this.s.multiselect||"multiselect"==this.s.select||(i=n=!1),n&&this.el.length){var s=this.el[this.el.length-1];this.ol(t,s)}else i&&this.gl[this.fl(t)]?this.ll(t):this.hl({row:t.row,column:t.column},i)},pl:function(e,t,i){var n=this.s.columns;if(t){for(var s=[],a=0;a<n.length;a++)n[a].$selected&&s.push(n[a]);n=s}var r=this.data.order,o=0;for(a=0;a<r.length;a++){var l=this.getItem(r[a]);if(l){var h=this.data.getMark(l.id,"jeeplus_selected");if(h||t){for(var u=0,d=0;d<n.length;d++){var c=n[d].id;if(i||t||h[c]){if(!e)return{row:r[a],column:c};l[c]=e(l[c],r[a],c,o,u),u++}}o++}}}}},row:{Lk:" jeeplus_row_select",fl:function(e){return e.row},select:function(e,t){e&&(e=e.toString()),this.hl({row:e},t)},kl:function(e){return this.nl(e.row).$row=!0,e.row},unselect:function(e){this.ll({row:e})},ml:function(e){return this.data.removeMark(e.row,"jeeplus_selected",0,1),e.row},mapSelection:function(e){return this.pl(e,!1,!0)},ol:function(e,t){return this.selectRange(e.row,t.row)},selectRange:function(e,t,i){jeeplus.isUndefined(i)&&(i=!0);var n=e?this.getIndexById(e):0,s=t?this.getIndexById(t):this.data.order.length-1;if(s<n){var a=n;n=s,s=a}this.Dg=!0;for(var r=n;r<=s;r++){var o=this.getIdByIndex(r);if(!o){e&&this.select(e);break}this.select(o,i)}this.Dg=!1,this.jl()}},cell:{fl:function(e){return e.column?e.row+"_"+e.column:null},select:function(e,t,i){this.hl({row:e,column:t},i)},kl:function(e){var t=this.nl(e.row);return t.$count++,t[e.column]=!0,e.row},unselect:function(e,t){this.ll({row:e,column:t})},ml:function(e){var t=this.nl(e.row);return t.$count--,t[e.column]=!1,t.$count<=0&&this.data.removeMark(e.row,"jeeplus_selected"),e.row},mapSelection:function(e){return this.pl(e,!1,!1)},ol:function(e,t){return this.selectRange(e.row,e.column,t.row,t.column)},selectRange:function(e,t,i,n,s){jeeplus.isUndefined(s)&&(s=!0);var a=e?this.getIndexById(e):0,r=i?this.getIndexById(i):this.data.order.length-1,o=t?this.getColumnIndex(t):0,l=n?this.getColumnIndex(n):this.fj.length-1;if(r<a){var h=a;a=r,r=h}if(l<o){h=o;o=l,l=h}this.Dg=!0;for(var u=a;u<=r;u++)for(var d=o;d<=l;d++)this.select(this.getIdByIndex(u),this.columnId(d),s);this.Dg=!1,this.jl()}},column:{Lk:" jeeplus_column_select",fl:function(e){return e.column},ok:function(){return this.column},select:function(e,t){this.hl({column:e},t)},kl:function(e){this.s.columns[this.getColumnIndex(e.column)].$selected=!0,this.Dg||this.Kj()},unselect:function(e){this.ll({column:e})},ml:function(e){this.s.columns[this.getColumnIndex(e.column)].$selected=null,this.Kj()},mapSelection:function(e){return this.pl(e,!0,!1)},ol:function(e,t){return this.selectRange(e.column,t.column)},selectRange:function(e,t,i){jeeplus.isUndefined(i)&&(i=!0);var n=e?this.getColumnIndex(e):0,s=t?this.getColumnIndex(t):this.fj.length-1;if(s<n){var a=n;n=s,s=a}this.Dg=!0;for(var r=n;r<=s;r++)this.select(this.columnId(r),i);this.Dg=!1,this.Kj(),this.jl()},rF:function(){}},area:{fl:function(e){return e.row+"_"+e.column},getSelectedId:function(e){var t=this.getSelectArea(),i=[];if(t)if(!e||t.start.row==t.end.row&&t.start.column==t.end.column)i.push(t.end);else{var n=this.getIndexById(t.start.row),s=this.getIndexById(t.end.row);if(-1==n||-1==s)return i;for(var a=this.getColumnIndex(t.start.column),r=this.getColumnIndex(t.end.column),o=n;o<=s;o++)for(var l=a;l<=r;l++)i.push({row:this.getIdByIndex(o),column:this.columnId(l)})}return e?i:i[0]},unselect:function(e){this.ll()},ll:function(){this.removeSelectArea(),this.callEvent("onSelectChange",[])},mapSelection:function(e){var t=this.getSelectArea();if(t)for(var i=this.getColumnIndex(t.start.column),n=this.getColumnIndex(t.end.column),s=this.getIndexById(t.start.row),a=this.getIndexById(t.end.row),r=s;r<=a;r++)for(var o=this.data.order[r],l=this.getItem(o),h=i;h<=n;h++){var u=this.fj[h].id;if(!e)return{row:o,column:u};l[u]=e(l[u]||"",o,u,r-s,h-i)}},select:function(e,t,i){this.hl({row:e,column:t},i)},ol:function(e,t){this.gC(e,t)},hl:function(e,t){return this.addSelectArea(e,e,!1),!0},rF:function(){this.el.length&&this.refreshSelectArea()}}}}),jeeplus.extend(jeeplus.ui.datatable,{blockselect_setter:function(e){return e&&this.ql&&(jeeplus.UE(this.x,jeeplus.env.mouse.move,this.rl,{bind:this}),jeeplus.UE(this.x,jeeplus.env.mouse.down,this.sl,{bind:this}),jeeplus.event(document.body,jeeplus.env.mouse.up,this.tl,{bind:this}),this.ql=this.ul=this.vl=!1,this.attachEvent("onAfterScroll",function(){this.ZC()}),jeeplus.extend(this,jeeplus.AutoScroll,!0),this.attachEvent("onBeforeAutoScroll",function(){return this.vl})),e},ql:!0,wl:function(e,t){for(var i=e.target||e.srcElement;i;){if(i.getAttribute&&i.getAttribute("jeeplusignore"))return!1;if(i==t)return!0;i=i.parentNode}return!1},sl:function(e){if((!this.s.subview||this==jeeplus.$$(e.target||e.srcElement))&&this.wl(e,this.Vf)){if(e.target&&"INPUT"==e.target.tagName||this.Pl)return;this.xl=jeeplus.html.offset(this.Vf);var t=jeeplus.html.pos(e);this.ul=[t.x-this.xl.x,t.y-this.xl.y]}},tl:function(e){this.yl&&(this.jz("select",!0,e),this.yl=jeeplus.html.remove(this.yl)),jeeplus.html.removeCss(document.body,"jeeplus_noselect"),this.ul=this.vl=!1,this.bh&&(this.bh=window.clearTimeout(this.bh))},ZC:function(){this.vl&&this.jz(!1,!1)},jz:function(e,t,i){var n;this.ul[2]||(this.ul[2]=this.zl.apply(this,this.ul)),n=this.ul[2];var s=this.zl.apply(this,this.vl);if(this.callEvent("onBeforeBlockSelect",[n,s,t,i])){if((!this.wB||!1!==this.wB(n,s,t,i))&&n.row&&s.row)if("select"===e)this.il(),this.ol(n,s);else{var a,r,o,l;if("box"===e)a=Math.min(this.ul[0],this.vl[0]),o=Math.max(this.ul[0],this.vl[0]),r=Math.min(this.ul[1],this.vl[1]),l=Math.max(this.ul[1],this.vl[1]);else{var h=this.ug(n.row,n.column),u=this.ug(s.row,s.column),d=this.getScrollState(),c=h.width,p=u.width;this.ek&&this.ul[0]>this.dk+this.Yj?h.left+=this.dk+this.Yj:this.dk?this.ul[0]>this.dk&&(h.left<d.x?(c-=d.x-h.left,h.left=this.dk):h.left+=this.dk-d.x):h.left-=d.x,this.ek&&this.vl[0]>this.dk+this.Yj?u.left+=this.dk+this.Yj:this.dk?this.vl[0]>this.dk&&(u.left<d.x?(p-=d.x-u.left,u.left=this.dk):u.left+=this.dk-d.x):u.left-=d.x,this.s.prerender&&(h.top-=this.jk,u.top-=this.jk),a=Math.min(h.left,u.left),o=Math.max(h.left+c,u.left+p),r=Math.min(h.top,u.top),l=Math.max(h.top+h.height,u.top+u.height),this.s.topSplit&&(r+=this.zD(n)),this.bh&&(this.bh=window.clearTimeout(this.bh)),i&&(this.bh=jeeplus.delay(this.ch,this,[jeeplus.html.pos(i)],250))}var f=this.yl.style;f.left=a+"px",f.top=r+"px",f.width=o-a+"px",f.height=l-r+"px"}t&&this.callEvent("onAfterBlockSelect",[n,s])}},Al:function(e){this.yl=jeeplus.html.create("div",{class:"jeeplus_block_selection"},""),this.Vf.appendChild(this.yl)},rl:function(e){if(!1!==this.ul){this.vl||jeeplus.html.addCss(document.body,"jeeplus_noselect");var t=jeeplus.html.pos(e),i=[t.x-this.xl.x,t.y-this.xl.y];if(Math.abs(this.ul[0]-i[0])<5&&Math.abs(this.ul[1]-i[1])<5)return;!1===this.vl&&this.Al(e),this.vl=i,this.jz(this.config.blockselect,!1,e)}},zl:function(e,t){var i=!1,n=null,s=null;if(this.ek&&e>this.dk+this.Yj?e+=this.Zj.getSize()-this.Yj-this.dk-this.ek:(!this.dk||e>this.dk)&&(e+=this.Zj.getScroll()),this.s.topSplit&&this.ak>this.s.topSplit){var a=this.ug(this.getIdByIndex(this.s.topSplit-1),this.columnId(0));a.top+a.height>t&&(i=!0)}i||(t+=this.getScrollState().y),e<0&&(e=0),t<0&&(t=0);for(var r=this.s.columns,o=this.data.order,l=0,h=0;h<r.length;h++)if(e<=(l+=r[h].width)){s=r[h].id;break}s||(s=r[r.length-1].id),l=0;var u=this.data.$min||0;if(this.s.fixedRowHeight)n=o[u+Math.floor(t/this.s.rowHeight)];else for(h=u;h<o.length;h++)if(t<=(l+=this.Uj(h))){n=o[h];break}return n||(n=o[o.length-1]),{row:n,column:s}},zD:function(e,t){var i=0,n=this.getIndexById(e.row);if(n>=this.s.topSplit){var s=this.ug(this.getIdByIndex(n),e.column),a=this.ug(this.getIdByIndex(this.s.topSplit-1),e.column);0<a.top+a.height-s.top&&(i=a.top+a.height-(0<s.top||!t?s.top:0))}return i}}),jeeplus.protoUI({name:"resizearea",defaults:{dir:"x"},$init:function(e){var t=e.dir||"x",i=jeeplus.toNode(e.container),n="x"==t?"width":"height",s=e.margin?e.margin+"px":0;this.Cl="x"==t?"left":"top",this.x=jeeplus.html.create("DIV",{class:"jeeplus_resize_area jeeplus_dir_"+t}),jeeplus.UE(this.x,jeeplus.env.mouse.down,jeeplus.html.stopEvent),s&&(s="x"==t?s+" 0 "+s:"0 "+s+" 0 "+s),this.Dl=jeeplus.html.create("DIV",{class:"jeeplus_resize_handle_"+t,style:s?"padding:"+s:""},"<div class='jeeplus_handle_content'></div>"),this.El=jeeplus.html.create("DIV",{class:"jeeplus_resize_origin_"+t}),e[n]&&(this.El.style[n]=e[n]+(e.border?1:0)+"px",this.Dl.style[n]=e[n]+"px"),e.cursor&&(this.Dl.style.cursor=this.El.style.cursor=this.x.style.cursor=e.cursor),this.Fl=jeeplus.event(i,jeeplus.env.mouse.move,this.Gl,{bind:this}),this.Hl=jeeplus.event(document.body,jeeplus.env.mouse.up,this.Il,{bind:this}),this.Dl.style[this.Cl]=this.El.style[this.Cl]=e.start+"px",i.appendChild(this.x),i.appendChild(this.Dl),i.appendChild(this.El)},Il:function(){this.callEvent("onResizeEnd",[this.Jl]),jeeplus.eventRemove(this.Fl),jeeplus.eventRemove(this.Hl),jeeplus.html.remove(this.x),jeeplus.html.remove(this.Dl),jeeplus.html.remove(this.El),this.x=this.Dl=this.El=null},Gl:function(e){var t=jeeplus.html.pos(e);this.Jl=("x"==this.s.dir?t.x:t.y)+this.s.start-this.s.eventPos,this.Dl.style[this.Cl]=this.Jl+"px",this.callEvent("onResize",[this.Jl])}},jeeplus.EventSystem,jeeplus.Settings),jeeplus.extend(jeeplus.ui.datatable,{resizeRow_setter:function(e){return this.s.scrollAlignY=!1,this.s.fixedRowHeight=!1,this.resizeColumn_setter(e)},resizeColumn_setter:function(e){return e&&this.Kl&&(jeeplus.UE(this.x,"mousemove",this.Ll,{bind:this}),jeeplus.UE(this.x,"mousedown",this.Ml,{bind:this}),jeeplus.UE(this.x,"mouseup",this.Nl,{bind:this}),this.Kl=!1),e},Kl:!0,Ml:function(e){this.s.subview&&this!=jeeplus.$$(e.target||e.srcElement)||this.Ol&&(this.Pl=[jeeplus.html.pos(e),this.Ol[2]],jeeplus.html.addCss(document.body,"jeeplus_noselect"),jeeplus.html.denySelect())},Nl:function(){this.Pl=!1,jeeplus.html.removeCss(document.body,"jeeplus_noselect"),jeeplus.html.allowSelect()},Ql:function(e){if(e=e||event,!this.Rl){var t=this.Ol[0],i=this.Pl[1],n=this.pk(i);if(n){var s,a=this.Pl[0];if("x"==t?(s=jeeplus.html.offset(i).x+this.Ol[1]-jeeplus.html.offset(this.Vf).x,a=a.x,this.Ol[1]||(n.cind-=i.parentNode.colSpan||1)):(s=jeeplus.html.offset(i).y+this.Ol[1]-jeeplus.html.offset(this.Vf).y+this.$g,a=a.y,this.Ol[1]||n.rind--),0<=n.cind&&0<=n.rind)this.Rl=[t,n,s],new jeeplus.ui.resizearea({container:this.x,dir:t,eventPos:a,start:s,cursor:("x"==t?"col":"row")+"-resize"}).attachEvent("onResizeEnd",jeeplus.bind(this.Sl,this));this.Ml=this.Ol=!1}}},Sl:function(e){if(this.Rl){var t=this.Rl[0],i=this.Rl[1],n=e-this.Rl[2];if("x"==t){this.s.rightSplit&&i.cind+1>=this.Fj&&i.cind!==this.fj.length-1&&(i.cind++,n*=-1);var s=this.fj[i.cind],a=s.width;delete s.fillspace,delete s.adjust,this.Xs(i.cind,a+n,!0,!0),this.rk()}else{var r=this.getIdByIndex(i.rind),o=this.FA(this.getItem(r));this.setRowHeight(r,o+n)}this.Nl()}this.Rl=null},Ll:function(e){var t=null,i=this.s;if(this.Ol&&this.Pl)return this.Ql(e);var n=(e=e||event).target||e.srcElement,s=!1;if("TD"!=n.tagName&&"TABLE"!=n.tagName){var a=n.className||"",r="string"==typeof a&&-1!=a.indexOf("jeeplus_cell");if(!r||!i.drag){var o="string"==typeof a&&-1!=a.indexOf("jeeplus_hcell");if(this.Ol=!1,r||o){var l=n.offsetWidth,h=n.offsetHeight,u=jeeplus.html.posRelative(e),d=i.resizeRow;"object"==typeof d&&d.headerOnly&&(0<(t=this.pk(n)).cind&&(d=!1)),r&&d&&(d="object"==typeof d&&d.size?d.size:3,u.y<d?(t||(t=this.pk(n)),t.rind&&(this.Ol=["y",0,n],s="row-resize")):h-u.y<d+1&&(this.Ol=["y",h,n],s="row-resize"));var c=i.resizeColumn;"object"==typeof c&&c.headerOnly&&r&&(c=!1),c&&(c="object"==typeof c&&c.size?c.size:3,u.x<c?(this.Ol=["x",0,n],s="col-resize"):l-u.x<c+1&&(this.Ol=["x",l,n],s="col-resize"))}this.Tl&&window.clearTimeout(this.Tl),this.Tl=jeeplus.delay(this.Ul,this,[s],s?100:0)}}},Ul:function(e){this.Vl!=e&&(this.Vl=e,this.x.style.cursor=e||"default")}}),jeeplus.extend(jeeplus.ui.datatable,jeeplus.PagingAbility),jeeplus.csv={escape:!0,delimiter:{rows:"\n",cols:"\t"},parse:function(e,t){if(t=t||this.delimiter,!this.escape)return this.Wl(e,t);for(var i=e.replace(/\n$/,"").split(t.rows),n=0;n<i.length-1;)this.Xl(i[n],'"')%2==1&&(i[n]+=t.rows+i[n+1],delete i[n+1],n++),n++;var s=[];for(n=0;n<i.length;n++)if(void 0!==i[n]){for(var a=i[n],r=0,o=[],l=!1,h=0;h<=a.length;h++){if(!l&&a[h]===t.cols||h===a.length){var u=a.substr(r,h-r);u[0]===u[u.length-1]&&'"'===u[0]&&(u=u.substr(1,u.length-2).replace('""','"')),o.push(u),r=h+1}'"'!==a[h]||(l=!l)}s.push(o)}return s},Wl:function(e,t){for(var i=e.split(t.rows),n=0;n<i.length;n++)i[n]=i[n].split(t.cols);return i},Xl:function(e,t){return e.split(t).length-1},stringify:function(e,t){if(t=t||this.delimiter,!this.escape){for(var i=0;i<e.length;i++)e[i]=e[i].join(t.cols);return e.join(t.rows)}var n=/\n|\"|;|,/;for(i=0;i<e.length;i++){for(var s=0;s<e[i].length;s++)n.test(e[i][s])&&(e[i][s]=e[i][s].replace(/"/g,'""'),e[i][s]='"'+e[i][s]+'"');e[i]=e[i].join(t.cols)}return e.join(t.rows)}},jeeplus.TablePaste={clipboard_setter:function(e){return(!0===e||1===e)&&(e="block"),jeeplus.clipbuffer.init(),this.attachEvent("onSelectChange",this.Yl),this.attachEvent("onItemClick",function(e,t,i){document.activeElement&&this.$view.contains(document.activeElement)&&(jeeplus.clipbuffer.focus(),jeeplus.UIManager.setFocus(this))}),this.attachEvent("onPaste",this.Zl),e},templateCopy_setter:jeeplus.template,Yl:function(){if(!this.getEditor||!this.getEditor()){var e=this.$l();jeeplus.clipbuffer.set(e),jeeplus.UIManager.setFocus(this)}},$l:function(){var r=[],o=this.s.templateCopy;return this.mapSelection(function(e,t,i,n,s){r[n]||(r[n]=[]);var a=o?o(e,t,i):e;return r[n].push(a),e}),jeeplus.csv.stringify(r,this.s.delimiter)},Zl:function(e){if(!jeeplus.isUndefined(this.rh[this.s.clipboard])){var t=jeeplus.csv.parse(e,this.s.delimiter);this.rh[this.s.clipboard].call(this,t)}},rh:{block:function(a){var e=this.mapSelection(null);e&&(this.mapCells(e.row,e.column,a.length,null,function(e,t,i,n,s){return a[n]&&a[n].length>s?a[n][s]:e}),this.render())},selection:function(a){this.mapSelection(function(e,t,i,n,s){return a[n]&&a[n].length>s?a[n][s]:e}),this.render()},repeat:function(a){this.mapSelection(function(e,t,i,n,s){return(t=a[n%a.length])[s%t.length]}),this.render()},custom:function(e){}}},jeeplus.extend(jeeplus.ui.datatable,jeeplus.TablePaste),jeeplus.storage||(jeeplus.storage={}),jeeplus.storage.prefix=function(i,n){return i+=".",{put:function(e,t){return n.put(i+e,t)},get:function(e){return n.get(i+e)},remove:function(e){return n.remove(i+e)}}},jeeplus.storage.local={put:function(e,t){e&&window.JSON&&window.localStorage&&window.localStorage.setItem(e,jeeplus.stringify(t))},get:function(e){if(e&&window.JSON&&window.localStorage){var t=window.localStorage.getItem(e);return t?jeeplus.DataDriver.json.toObject(t):null}return null},remove:function(e){e&&window.JSON&&window.localStorage&&window.localStorage.removeItem(e)},clear:function(){window.localStorage.clear()}},jeeplus.storage.session={put:function(e,t){e&&window.JSON&&window.sessionStorage&&window.sessionStorage.setItem(e,jeeplus.stringify(t))},get:function(e){if(e&&window.JSON&&window.sessionStorage){var t=window.sessionStorage.getItem(e);return t?jeeplus.DataDriver.json.toObject(t):null}return null},remove:function(e){e&&window.JSON&&window.sessionStorage&&window.sessionStorage.removeItem(e)},clear:function(){window.sessionStorage.clear()}},jeeplus.storage.cookie={put:function(e,t,i,n){e&&window.JSON&&(document.cookie=e+"="+escape(jeeplus.stringify(t))+(n&&n instanceof Date?";expires="+n.toUTCString():"")+(i?";domain="+i:"")+(jeeplus.env.https?";secure":""))},getRaw:function(e){for(var t=document.cookie.split(";"),i="",n="",s=0;s<t.length;s++){if((i=t[s].split("="))[0].replace(/^\s+|\s+$/g,"")==e)return!0,1<i.length&&(n=unescape(i[1].replace(/^\s+|\s+$/g,""))),n;i=null,""}return null},get:function(e){if(e&&window.JSON){var t=this.getRaw(e);return t?jeeplus.DataDriver.json.toObject(unescape(t)):null}return null},remove:function(e,t){e&&this.getRaw(e)&&(document.cookie=e+"="+(t?";domain="+t:"")+";expires=Thu, 01-Jan-1970 00:00:01 GMT")},clear:function(e){for(var t=document.cookie.split(";"),i=0;i<t.length;i++)document.cookie=/^[^=]+/.exec(t[i])[0]+"="+(e?";domain="+e:"")+";expires=Thu, 01-Jan-1970 00:00:01 GMT"}},jeeplus.DataState={getState:function(){for(var e=this.config.columns.length,t=this.config.columns,i={ids:[],size:[],select:this.getSelectedId(!0),scroll:this.getScrollState()},n=0;n<e;n++){var s=t[n];i.ids.push(s.id),i.size.push(s.fillspace||s.adjust?-1:s.width)}if(i.order=[].concat(this.bm.length?this.bm:i.ids),this.Nk&&(i.sort={id:this.Nk,dir:this.Ok}),this.ij&&this.tj){var a={},r=0;for(var o in this.ij)if(!this.am[o]){var l=this.ij[o];l[1].value=a[o]=l[2].getValue(l[0]),r=1}r&&(i.filter=a)}for(var o in i.hidden=[],this.am)i.hidden.push(o);return i},setState:function(e){var t=this.config.columns;if(e){if(this.Nk=null,this.blockEvent(),e.hidden){for(var i={},n=0;n<e.hidden.length;n++)i[e.hidden[n]]=!0,this.bm.length||this.hideColumn(e.hidden[n]);if(this.bm.length)for(n=0;n<this.bm.length;n++){var s=this.bm[n];!!i[s]==!this.am[s]&&this.hideColumn(s,{},!1,!!i[s])}}if(e.ids){var a=!1,r=this.config.columns;for(n=0;n<r.length;n++)r[n].id!=e.ids[n]&&(a=!0);if(a){for(n=0;n<e.ids.length;n++)r[n]=this.getColumnConfig(e.ids[n])||r[n];this.refreshColumns()}}if(e.size){var o=Math.min(e.size.length,t.length);for(n=0;n<o;n++){var l=t[n];l&&0<e.size[n]&&l.width!=e.size[n]&&(delete l.fillspace,delete l.adjust,this.Xs(n,e.size[n],!0))}}this.unblockEvent();var h=!(this.s.leftSplit||this.s.rightSplit);if(this.rk(h),this.callEvent("onStructureUpdate",[]),e.sort){var u=t[this.getColumnIndex(e.sort.id)];u&&this.zf(e.sort.id,e.sort.dir,u.sort)}if(e.filter){var d=this.filterByAll;for(var c in this.filterByAll=function(){},e.filter){var p=e.filter[c];if(p&&this.ij[c]){(m=this.ij[c])[2].setValue(m[0],p);var f=m[1].contentId;f&&(this.hj[f].value=p)}}for(var c in this.ij)if(!e.filter[c]){var m;(m=this.ij[c])[2].setValue(m[0],"")}this.filterByAll=d,this.filterByAll()}if(e.select&&this.select){var g=e.select;this.unselect();for(n=0;n<g.length;n++)(!g[n].row||this.exists(g[n].row))&&this.hl(g[n],!0)}e.scroll&&this.scrollTo(e.scroll.x,e.scroll.y)}}},jeeplus.extend(jeeplus.ui.datatable,jeeplus.DataState),function(){function a(e){e.down="touchstart",e.move="touchmove",e.up="touchend",e.context=m.gm}var m=jeeplus.Touch={config:{longTouchDelay:1e3,scrollDelay:150,gravity:500,deltaStep:30,speed:"0ms",finish:1500,ellastic:!0},limit:function(e){m.cm=!1!==e},disable:function(){m.Xf=!0},enable:function(){m.Xf=!1},$init:function(){m.$init=function(){},jeeplus.event(document.body,r.down,m.dm),jeeplus.event(document.body,r.move,m.em),jeeplus.event(document.body,r.up,m.fm),jeeplus.event(document.body,"dragstart",function(e){return m.Xf||m.cm?void 0:jeeplus.html.preventEvent(e)}),jeeplus.event(document.body,"touchstart",function(e){if(!m.Xf&&!m.cm&&jeeplus.env.isSafari){var t=e.srcElement.tagName.toLowerCase();return"input"==t||"textarea"==t||"select"==t||"label"==t||(m.im=!0,jeeplus.html.preventEvent(e))}}),m.Of(),m.jm=[null,null],m.$active=!0},Of:function(){m.km=m.lm=m.mm=m.bC=null,m.nm=m.om=m.pm=this.qm=null,m.rm={sm:0,tm:0,um:0},m.vm&&(jeeplus.html.removeCss(m.vm,"jeeplus_touch"),m.vm=null),window.clearTimeout(m.wm),m.xm=!0,m.ym=!0,m.zm=!0,m.Am||m.Pf()},fm:function(e){if(m.km){if(m.nm){var t=m.Mf(m.om),i=t.e,n=t.f,s=m.config.finish,a=m.Bm(e,!0),r=(c=jeeplus.$$(m.om))&&c.$scroll?c.$scroll.gravity:m.config.gravity;if(a.um){var o=i+r*a.sm/a.um,l=n+r*a.tm/a.um,h=m.jm[0]?m.Cm(o,!1,!1,m.pm.dx,m.pm.px):i,u=m.jm[1]?m.Cm(l,!1,!1,m.pm.dy,m.pm.py):n,d=Math.max(Math.abs(h-i),Math.abs(u-n));d<150&&(s=s*d/150),(h!=i||u!=n)&&(s=Math.round(s*Math.max((h-i)/(o-i),(u-n)/(l-n))));var c,p={e:h,f:u};(c=jeeplus.$$(m.om))&&c.adjustScroll&&c.adjustScroll(p),s=Math.max(100,s),i!=p.e||n!=p.f?(m.Nf(m.om,p.e,p.f,s+"ms"),m.Dm&&m.Dm.Em(p.e,p.f,s+"ms"),m.Fm(p.e,p.f,s+"ms")):m.Pf()}else m.Pf()}else if(!this.qm)if(m.zm&&!m.ym)m.Gm("onSwipeX");else if(m.ym&&!m.zm)m.Gm("onSwipeY");else if(jeeplus.env.isSafari&&m.im){m.im=!1;var f=m.km.target;jeeplus.delay(function(){var e=document.createEvent("MouseEvents");e.initEvent("click",!0,!0),f.dispatchEvent(e)})}m.Gm("onTouchEnd"),m.Of()}},em:function(e){if(m.bC&&m.km){var t=m.Bm(e);if(m.Gm("onTouchMove"),m.nm)m.Hm(t);else if(m.ym=m.Im(t.Jm,"x",m.ym),m.zm=m.Im(t.Ei,"y",m.zm),m.nm){var i=m.Km("onBeforeScroll",!0);if(i){var n={};i.callEvent("onBeforeScroll",[n]),n.update&&(m.config.speed=n.speed,m.config.scale=n.scale)}m.Lm(t)}return jeeplus.html.preventEvent(e)}},Hm:function(){if(m.om){var e=m.Mf(m.om),t=(e.e,e.f,m.mm||m.km),i=jeeplus.$$(m.om),n=i&&i.$scroll?i.$scroll.ellastic:m.config.ellastic;m.jm[0]&&(e.e=m.Cm(e.e-t.x+m.lm.x,n,e.e,m.pm.dx,m.pm.px)),m.jm[1]&&(e.f=m.Cm(e.f-t.y+m.lm.y,n,e.f,m.pm.dy,m.pm.py)),m.Nf(m.om,e.e,e.f,"0ms"),m.Dm&&m.Dm.Em(e.e,e.f,"0ms"),m.Fm(e.e,e.f,"0ms")}},Fm:function(e,t,i){var n=m.pm.px/m.pm.dx*-e,s=m.pm.py/m.pm.dy*-t;m.jm[0]&&m.Nf(m.jm[0],n,0,i),m.jm[1]&&m.Nf(m.jm[1],0,s,i)},scrollTo:function(e,t,i,n){m.Nf(e,t,i,n)},Nf:function(e,t,i,n){if(!m.tt&&window.setAnimationFrame&&window.setAnimationFrame(function(){return m.tt=!0,m.Nf(e,t,i,n)}),m.tt=null,m.Am=!0,e){var s=m.config.translate||jeeplus.env.translate;e.style[jeeplus.env.transform]=s+"("+Math.round(t)+"px, "+Math.round(i)+"px"+("translate3d"==s?", 0":"")+")",e.style[jeeplus.env.transitionDuration]=n}},Mf:function(e){var t=window.getComputedStyle(e)[jeeplus.env.transform];if("none"==t)n={e:0,f:0};else if(window.WebKitCSSMatrix)n=new WebKitCSSMatrix(t);else if(window.MSCSSMatrix)n=new MSCSSMatrix(t);else{var i=t.replace(/(matrix\()(.*)(\))/gi,"$2");i=(i=i.replace(/\s/gi,"")).split(",");for(var n={},s=["a","b","c","d","e","f"],a=0;a<s.length;a++)n[s[a]]=parseInt(i[a],10)}return m.Dm&&m.Dm.Mm(n),n},Cm:function(e,t,i,n,s){if(e===i)return e;var a=Math.abs(e-i);if(0<e)return t?i+a/(e-i)*Math.sqrt(a):0;var r=n-s;return r+e<0?t?i-Math.sqrt(-(e-i)):-r:e},Nm:function(e){if(!e.scroll_enabled){e.scroll_enabled=!0,e.parentNode.style.position="relative";var t=jeeplus.env.cssPrefix;e.style.cssText+=t+"transition: "+t+"transform; "+t+"user-select:none; "+t+"transform-style:flat;",e.addEventListener(jeeplus.env.transitionEnd,m.Pf,!1)}},Lm:function(e){-1!=m.nm.indexOf("x")&&(m.jm[0]=m.Om("x",m.pm.dx,m.pm.px,"width")),-1!=m.nm.indexOf("y")&&(m.jm[1]=m.Om("y",m.pm.dy,m.pm.py,"height")),m.Nm(m.om),window.setTimeout(m.Hm,1)},Om:function(e,t,i,n){if(t-i<2){var s=m.Mf(m.om),a="y"==e?s.e:0,r="y"==e?0:s.f;return m.Dm||m.Nf(m.om,a,r,"0ms"),m.nm=m.nm.replace(e,""),""}var o=jeeplus.html.create("DIV",{class:"jeeplus_scroll_"+e},"");return o.style[n]=Math.max(i*i/t-7,10)+"px",m.pm.left&&("x"===e?o.style.left=m.pm.left+"px":o.style.right=-m.pm.left+"px"),m.pm.hidden&&(o.style.visibility="hidden"),m.om.parentNode.appendChild(o),o},Im:function(e,t,i){return e>m.config.deltaStep?(m.xm&&(m.Pm(t),m.pk(t),-1==(m.nm||"").indexOf(t)&&(m.nm="")),!1):i},Pf:function(){var e,t,i;(i=jeeplus.$$(m.om||this))&&(m.om?e=m.Mf(m.om):i.getScrollState&&(e={e:(t=i.getScrollState()).x,f:t.y}),jeeplus.callEvent("onAfterScroll",[e]),i.callEvent&&i.callEvent("onAfterScroll",[e])),m.nm||(jeeplus.html.remove(m.jm),m.jm=[null,null]),m.Am=!1},Pm:function(e){window.clearTimeout(m.wm),m.xm=!1},Qm:function(e){return!m.jm[0]&&!m.jm[1]||void m.Rm(e,m.jm[0]?"x":"y")},dm:function(e){var t=e.target||event.srcElement;if(!(m.Xf||t.tagName&&"textarea"==t.tagName.toLowerCase()&&t.offsetHeight<t.scrollHeight)){m.qm=null,m.bC=m.km=r.context(e);var i=jeeplus.$$(e);!m.cm||m.Sm()||i&&i.$touchCapture||(m.bC=null),m.Gm("onTouchStart"),m.Qm(e)&&(m.wm=window.setTimeout(m.Tm,m.config.longTouchDelay)),!i||!i.touchable||t.className&&0===t.className.indexOf("jeeplus_view")||(m.vm=i.getNode(e),jeeplus.html.addCss(m.vm,"jeeplus_touch"))}},Tm:function(e){m.km&&(m.Gm("onLongTouch"),jeeplus.callEvent("onClick",[m.km]),m.qm=!0)},Rm:function(e,t){m.pk(t);var i=m.jm[0]||m.jm[1];if(i){var n=m.Km("onBeforeScroll",!0);n&&n.callEvent("onBeforeScroll",[m.km,m.lm])}!i||m.om&&i.parentNode==m.om.parentNode||(m.Of(),m.Pf(),m.km=r.context(e)),m.em(e)},Bm:function(e,t){return m.mm=m.lm,m.lm=r.context(e),m.rm.Jm=Math.abs(m.km.x-m.lm.x),m.rm.Ei=Math.abs(m.km.y-m.lm.y),m.mm&&(m.lm.time-m.mm.time<m.config.scrollDelay?(m.rm.sm=m.rm.sm/1.3+m.lm.x-m.mm.x,m.rm.tm=m.rm.tm/1.3+m.lm.y-m.mm.y):m.rm.tm=m.rm.sm=0,m.rm.um=m.rm.um/1.3+(m.lm.time-m.mm.time)),m.rm},Um:function(e){m.pm={dx:e.offsetWidth,dy:e.offsetHeight,px:e.parentNode.offsetWidth,py:e.parentNode.offsetHeight}},Sm:function(e){var t=m.km.target;if(!jeeplus.env.touch&&!jeeplus.env.transition&&!jeeplus.env.transform)return null;for(;t&&"BODY"!=t.tagName;){if(t.getAttribute){var i=t.getAttribute("touch_scroll");if(i&&(!e||-1!=i.indexOf(e)))return[t,i]}t=t.parentNode}return null},pk:function(e){var t=this.Sm(e);return t&&(m.nm=t[1],m.om=t[0],m.Um(t[0])),t},Gm:function(e){jeeplus.callEvent(e,[m.km,m.lm]);var t=m.Km(e);t&&t.callEvent(e,[m.km,m.lm])},Km:function(e,t){var i=jeeplus.$$(t?m.om:m.km);if(!i)return null;for(;i;){if(i.hasEvent&&i.hasEvent(e))return i;i=i.getParentView()}return null},gm:function(e){if(!e.touches[0]){var t=m.lm;return t.time=new Date,t}return{target:e.target,x:e.touches[0].pageX,y:e.touches[0].pageY,time:new Date}},hm:function(e){return{target:e.target||e.srcElement,x:e.pageX,y:e.pageY,time:new Date}}};jeeplus.ready(function n(){if(jeeplus.env.touch)m.$init(),-1==document.body.className.indexOf("jeeplus_full_screen")&&m.limit(!0),window.MSCSSMatrix&&jeeplus.html.addStyle(".jeeplus_view{ -ms-touch-action: none; }");else var s=jeeplus.event(document.body,"touchstart",function(e){if(e.touches.length&&4<e.touches[0].radiusX)for(var t in jeeplus.env.touch=!0,a(r),n(),jeeplus.ui.views){var i=jeeplus.ui.views[t];i&&i.$touch&&i.$touch()}jeeplus.eventRemove(s)},{capture:!0})});var r=jeeplus.env.mouse={down:"mousedown",up:"mouseup",move:"mousemove",context:m.hm};window.navigator.pointerEnabled?(r.down="pointerdown",r.move="pointermove",r.up="pointerup"):window.navigator.msPointerEnabled?(r.down="MSPointerDown",r.move="MSPointerMove",r.up="MSPointerUp"):jeeplus.env.touch&&a(r)}(),jeeplus.attachEvent("onDataTable",function(e,t){jeeplus.env.touch&&(jeeplus.Touch.$init(),t.scrollSize=0,jeeplus.Touch.Xf&&jeeplus.Touch.limit(),e.$ready.push(e.$touch))}),jeeplus.extend(jeeplus.ui.datatable,{$touch:function(){var e=this.s;e.scrollAlignY=!1,jeeplus.extend(this,!0===e.prerender?this.Vm:this.Wm);var t="";e.autowidth||!1===e.scrollX||(t+="x"),e.autoheight||!1===e.scrollY||(t+="y"),this.Vf.setAttribute("touch_scroll",t),jeeplus.Touch.Nm(this.Vf.childNodes[1].firstChild),jeeplus.Touch.Nf(this.Vf.childNodes[1].firstChild,0,0,"0ms"),this.Em(0,0,"0ms")},Vm:{$j:function(e,t){jeeplus.Touch.Nf(this.Vf.childNodes[1].firstChild,0,0,"0ms"),this.Em(e,t,"0ms")},_j:function(){var e=jeeplus.Touch.Mf(this.Vf.childNodes[1].firstChild);return{x:-e.e,y:-e.f}},$init:function(){this.attachEvent("onBeforeScroll",function(){jeeplus.Touch.om=this.Vf.childNodes[1].firstChild,jeeplus.Touch.Um(jeeplus.Touch.om),jeeplus.Touch.Dm=this}),this.attachEvent("onTouchEnd",function(){jeeplus.Touch.Dm=null})},Em:function(e,t,i){this.s.leftSplit&&jeeplus.Touch.Nf(this.Vf.childNodes[0].firstChild,0,t,i),this.s.rightSplit&&jeeplus.Touch.Nf(this.Vf.childNodes[2].firstChild,0,t,i),this.s.header&&jeeplus.Touch.Nf(this.I.childNodes[1].firstChild,e,0,i),this.s.footer&&jeeplus.Touch.Nf(this.cj.childNodes[1].firstChild,e,0,i),this.callEvent("onSyncScroll",[e,t,i])},Mm:function(){}},Wm:{$j:function(e,t){jeeplus.delay(function(){this.callEvent("onAfterScroll",[{e:-e,f:-t}])},this)},$scroll:{gravity:0,elastic:!1},$init:function(){this.attachEvent("onAfterColumnHide",function(){this.$j(0,0)}),this.attachEvent("onBeforeScroll",function(){var e=jeeplus.Touch;e.om=this.Vf.childNodes[1].firstChild,e.Um(e.om),e.pm.left=this.bk,e.pm.hidden=this.Zj.s.scrollVisible||this.Wj.s.scrollVisible,e.pm.dy=this.wj,e.Dm=this}),this.attachEvent("onAfterScroll",function(e){if(e){var t=this.bk!=-e.e,i=this.jk!=-e.f;jeeplus.Touch.Dm=null,jeeplus.Touch.$m=null,this.jk=0,this.bk=0;var n=jeeplus.Touch.config.translate;return jeeplus.Touch.config.translate="translate",this.Em(this.Zj?0:e.e,0,"0ms"),jeeplus.Touch.config.translate=n,this.bk=-e.e,this.jk=-e.f,this.ZF(),this.render(),t&&(this.Zj&&this.Zj.scrollTo(this.bk),this.callEvent("onScrollX",[])),i&&(this.Wj&&this.Wj.scrollTo(this.jk),this.callEvent("onScrollY",[])),!1}})},Em:function(e,t,i){t+=this.jk,e+=this.bk,jeeplus.Touch.Nf(this.Vf.childNodes[1].firstChild,e,t,i),this.s.leftSplit&&jeeplus.Touch.Nf(this.Vf.childNodes[0].firstChild,0,t,i),this.s.rightSplit&&jeeplus.Touch.Nf(this.Vf.childNodes[2].firstChild,0,t,i),this.s.header&&jeeplus.Touch.Nf(this.I.childNodes[1].firstChild,e,0,i),this.s.footer&&jeeplus.Touch.Nf(this.cj.childNodes[1].firstChild,e,0,i),this.callEvent("onSyncScroll",[e,t,i])},Mm:function(e){e.f-=this.jk,e.e-=this.bk}}}),jeeplus.extend(jeeplus.ui.datatable,{$init:function(){this.data.attachEvent("onStoreUpdated",jeeplus.bind(function(e){e||this._m()},this)),this.attachEvent("onStructureLoad",this._m),this.attachEvent("onStructureUpdate",this.an),this.attachEvent("onColumnResize",function(e,t,i,n){n&&this.an()}),this.attachEvent("onResize",this.an)},_m:function(){for(var e=!1,t=this.fj,i=0;i<t.length;i++)t[i].adjust&&("header"==t[i].adjust||this.count())&&(e=this.bn(i,t[i].adjust,!0)||e);e&&(this.rk(!0),this.an())},an:function(){var e=this.s.columns,t=[],i=0;if(e&&!this.s.autowidth)for(var n=0;n<e.length;n++){var s=e[n].fillspace;s&&(i+=1*(t[n]=s)||1)}i&&this.cn(t,i)},cn:function(e,t){var i=this.s.columns;if(i){var n=this.bc-this.oj,s=!1;if(0<n){for(var a=0;a<i.length;a++)e[a]||(n-=i[a].width||this.config.columnWidth);for(a=0;a<e.length;a++)if(e[a]){var r=Math.min(n,Math.round(n*e[a]/t));s=this.Xs(a,r,!0)||s,n-=i[a].width,t-=e[a]}s&&this.rk(!0)}}},dn:function(e,t){var i=this.s.columns[e],n=i.minColumnWidth||10;if("header"!=t){var s=this.data.order.length;i.adjustBatch&&i.adjustBatch<s&&(s=i.adjustBatch);for(var a=this.data.order.slice(0,s),r=0;r<s;r++)a[r]=a[r]?this.Ek(this.getItem(a[r]),i,0):"";n=Math.max(n,jeeplus.html.getTextSize(a,"jeeplus_table_cell jeeplus_cell").width)}if("data"!=t)for(r=0;r<i.header.length;r++){var o=i.header[r];if(o){var l=0;if(o.rotate)for(var h=0;h<(o.rowspan||1);h++)l+=this.Mt[h];var u="jeeplus_table_cell jeeplus_cell "+(o.css||"")+(o.rotate?"jeeplus_measure_rotate":""),d=jeeplus.html.getTextSize([o.text],u,l);n=Math.max(n,o.rotate?d.height:d.width)}}return n+1+(jeeplus.env.isIE?jeeplus.skin.$active.layoutPadding.space:0)},bn:function(e,t,i){if(0<=e){var n=this.dn(e,t);return this.Xs(e,n,i)}},adjustColumn:function(e,t){this.bn(this.getColumnIndex(e),t)},adjustRowHeight:function(e,t){if(e){var i,n=this.getColumnConfig(e),s=jeeplus.html.create("DIV",{class:"jeeplus_table_cell jeeplus_measure_size jeeplus_cell"},"");s.style.cssText="width:"+n.width+"px; height:1px; visibility:hidden; position:absolute; top:0px; left:0px; overflow:hidden;",this.$view.appendChild(s),s.offsetHeight<1&&(i=this.$view.cloneNode(!0),document.body.appendChild(i),i.appendChild(s)),this.data.each(function(e){s.innerHTML=this.Ek(e,n,0),e.$height=Math.max(s.scrollHeight,this.s.rowHeight)},this),s=jeeplus.html.remove(s),i&&jeeplus.html.remove(i)}else{var a=new Array(this.data.order.length),r=this.config.columns,o=0;for(var l in this.data.pull)a[o]=0,o++;for(var h=0;h<r.length;h++){this.adjustRowHeight(r[h].id,!0);o=0;this.data.each(function(e,t){e.$height>a[o]&&(a[o]=e.$height),e.$height=a[o],o++})}}t||this.refresh()}}),jeeplus.extend(jeeplus.ui.datatable,{math_setter:function(e){return e&&this.en(),e},fn:"$",en:function(){jeeplus.env.strict||(this.data.attachEvent("onStoreUpdated",jeeplus.bind(this.gn,this)),this.data.attachEvent("onStoreLoad",jeeplus.bind(this.hn,this)),this.attachEvent("onStructureLoad",this.hn))},gn:function(e,t,i){if(e&&"delete"!=i&&"paint"!=i){"add"==i&&this.pn(t);for(var n=0;n<this.fj.length;n++)this.jn(e,this.fj[n].id,"add"!==i);this.kn={}}},jn:function(e,t,i){var n,s=this.getItem(e);if(!0===i?n=s[this.fn+t]||s[t]:(n=s[t],this.kn={}),null!=n&&(0<n.length&&"="===n.substr(0,1)?(s[this.fn+t]&&!0===i||(s[this.fn+t]=s[t]),s[t]=this.ln(n,e,t)):(void 0!==s[this.fn+t]&&delete s[this.fn+t],this.mn(s,t)),void 0!==s.depends&&void 0!==s.depends[t]))for(var a in s.depends[t]){var r=s.depends[t][a][0]+"__"+s.depends[t][a][1];void 0===this.kn[r]&&(this.kn[r]=!0,this.jn(s.depends[t][a][0],s.depends[t][a][1],!0))}},nn:function(e,t){var i=this.getItem(e);void 0!==i[this.fn+t]&&(i[t]=i[this.fn+t])},hn:function(){if(this.fj&&this.count()){this.pn();for(var e=0;e<this.fj.length;e++){var t=this.columnId(e);this.data.each(function(e){this.jn(e.id,t)},this)}this.kn={}}},pn:function(e){for(var t=0;t<this.fj.length;t++)if(this.fj[t].math){var i=this.columnId(t),n="="+this.fj[t].math;n=n.replace(/\$c/g,"#$c#"),e?(e[i]=this.qn(n,e.id,i),delete e[this.fn+i],this.mn(e,i)):this.data.each(function(e){e[i]=this.qn(n,e.id,i),delete e[this.fn+i],this.mn(e,i)},this)}},qn:function(e,t,i){return jeeplus.template(e)({$r:t,$c:i})},rn:function(e,t){var i;if(!this.exists(e))return"#out_of_range";var n=(i=this.getItem(e))[this.fn+t]||i[t]||0;return"="!==(n=n.toString()).substring(0,1)?n:(void 0===i[this.fn+t]&&(i[this.fn+t]=i[t]),i[t]=this.ln(n,e,t,!0),i[t])},ln:function(e,t,i,n){if(!0===n){if(this.sn(t,i))return"#selfreference"}else this.tn();this.un(t,i);var s=this.getItem(t);e=e.substring(1);var a,r=this.vn(e),o=this.wn(e,t);if(r?(e=this.xn(e,o),e=this.yn(e,r)):e=this.xn(e,o,!0),!1!==(a=this.zn(e)))return a;this.An(t,i),this.mn(s,i);for(var l=0;l<o.length;l++)this.Bn([t,i],o[l]);return!1!==(a=this.zn(e))?a:e?(e=this.Cn(e),!1!==(a=this.zn(e))?a:e):e},vn:function(e){return e.replace(/\[[^)]*?\]/g,"").match(/(\+|\-|\*|\/)/g)},wn:function(e,t){var i=e.match(/\[([^\]]+),([^\]]+)\]/g);null===i&&(i=[]);for(var n=0;n<i.length;n++){var s=i[n],a=s;(s=(s=s.substr(1,s.length-2)).split(","))[0]=this.Dn(s[0]),s[1]=this.Dn(s[1]),":"===s[0].substr(0,1)&&(s[0]=this.getIdByIndex(s[0].substr(1))),"$r"===s[0]&&(s[0]=t),":"===s[1].substr(0,1)&&(s[1]=this.columnId(s[1].substr(1))),s[2]=a,i[n]=s}return i},xn:function(e,t,i){var n="(",s=")";i&&(n=s="");for(var a=0;a<t.length;a++){var r=t[a],o=this.rn(r[0],r[1]);isNaN(o)&&(o='"'+o+'"'),e=e.replace(r[2],n+o+s)}return e},yn:function(e,t){for(var i=[],n=0;n<t.length;n++){var s=t[n],a=this.En(e,s);i.push(a[0]),e=a[1]}i.push(e);for(n=0;n<i.length;n++){var r=this.Dn(i[n]);i[n]=r}var o="";for(n=0;n<i.length-1;n++)o+=i[n]+t[n];return o+i[i.length-1]},Cn:function(expr){try{jeeplus.temp_value="",expr="jeeplus.temp_value = "+expr,eval(expr)}catch(e){jeeplus.temp_value=""}var result=jeeplus.temp_value;return jeeplus.temp_value=null,result.toString()},En:function(e,t){var i=e.indexOf(t);return[e.substr(0,i),e.substr(i+1)]},Dn:function(e){return(e=e.replace(/^ */g,"")).replace(/ *$/g,"")},tn:function(){this.Fn=[]},un:function(e,t){this.Fn[e+"__"+t]=!0},An:function(e,t){void 0!==this.Fn[e+"__"+t]&&delete this.Fn[e+"__"+t]},sn:function(e,t){return void 0!==this.Fn[e+"__"+t]},Bn:function(e,t){var i=this.getItem(t[0]);void 0===i.depends&&(i.depends={}),void 0===i.depends[t[1]]&&(i.depends[t[1]]={}),i.depends[t[1]][e[0]+"__"+e[1]]=e,void 0===(i=this.getItem(e[0])).triggers&&(i.triggers={}),void 0===i.triggers[e[1]]&&(i.triggers[e[1]]={}),i.triggers[e[1]][t[0]+"__"+t[1]]=t},mn:function(e,t){if(e&&void 0!==e.triggers)for(var i in e.triggers[t]){var n=e.triggers[t][i];delete this.getItem(n[0]).depends[n[1]][e.id+"__"+t]}},zn:function(e){var t=e.match(/#\w+/);return null!==t&&0<t.length&&t[0]}}),jeeplus.extend(jeeplus.ui.datatable,{ii:function(e){return this.getColumnConfig(e.column).editor},getEditor:function(e,t){return e?(1==arguments.length&&(t=e.column,e=e.row),(this.ai[e]||{})[t]):this.di},si:function(e){for(var t in this.ai){var i=this.ai[t];for(var n in i)"$count"!=n&&e.call(this,i[n])}},ji:function(e,t,i){var n=e.row,s=e.column,a=t.config=this.getColumnConfig(s);!1!==i&&this.showCell(n,s);var r=t.render();t.$inline&&(r=this.mi(e)),t.node=r;var o,l=this.getItem(n),h=a.editFormat;return this.s.editMath&&(o=l["$"+s]),o=o||l[s],jeeplus.isUndefined(o)&&(o=""),t.setValue(h?h(o):o,l),t.value=l[s],this.ni(e,t),t.$inline||this.oi(e,r,!0),t.afterRender&&t.afterRender(),this.s.liveValidation&&(jeeplus.UE(t.node,"keyup",this.Gn(e,this)),this.validateEditor(e)),r},Gn:function(e,t){return function(){t.validateEditor(e)}},ti:function(e,t,i){var n=this.getColumnConfig(e.column).editParse,s=i?{}:this.getItem(e.row);return s[e.column]=n?n(t):t,this.s.editMath&&(s["$"+e.column]=null),s},ni:function(e,t,i){var n=this.ai[e.row]=this.ai[e.row]||{};n.$count=(n.$count||0)+1,t.row=e.row,t.column=e.column,this.di=n[e.column]=t,this.Eb++,this.Hn=this.getScrollState()},qi:function(e){this.di==e&&(this.di=0),e.destroy&&e.destroy();var t=this.ai[e.row];delete t[e.column],t.$count--,t.$count||delete this.ai[e.row],this.Eb--},ei:function(e,t){var i=this.ai[e];if(i)for(var n in this.ai[t]=i,delete this.ai[e],i)i[n].row=t},pi:function(e){var t,i,n,s,a,r=this.getColumnConfig(e.column),o=0;if(r&&r.node&&r.attached){if(n=this.getIndexById(e.row),this.Rt&&this.getSpan(e.row,e.column))for(i=0;i<3;i++)for(t=this.St[i],s=0;!o&&s<t.childNodes.length;s++)(a=t.childNodes[s]).getAttribute("row")==n&&a.getAttribute("column")==this.getColumnIndex(e.column)&&(o=a);!o&&n>=r.qk-this.s.topSplit&&n<r.Kk&&(o=r.node.childNodes[n-r.qk+this.s.topSplit])}return o},editCell:function(e,t,i,n){return t=t||this.s.columns[0].id,jeeplus.EditAbility.edit.call(this,{row:e,column:t},i,n)},editRow:function(t,e){t&&t.row&&(t=t.row);var i=!1;this.eachColumn(function(e){this.edit({row:t,column:e},i,!i),i=!0})},editColumn:function(t,e){t&&t.column&&(t=t.column);var i=!1;this.eachRow(function(e){this.edit({row:e,column:t},i,!i),i=!0})},eachRow:function(e,t){var i=this.data.order;t&&(i=this.data.jf||i);for(var n=0;n<i.length;n++)e.call(this,i[n])},eachColumn:function(e,t){for(var i in this.Aj){var n=this.Aj[i];e.call(this,n.id,n)}if(t)for(var i in this.am){n=this.am[i];e.call(this,n.id,n)}},vi:function(e){if(this.getSelectedId&&1==this.getSelectedId(!0).length)return this.hl(e),!1},Gb:function(e,t){if(this.s.editable&&!this.Eb){if(t.target&&"INPUT"==t.target.tagName)return!0;var i=this.getSelectedId(!0);if(1==i.length){var n=i[0];return"row"==this.s.select&&(n.column=this.s.columns[t.shiftKey?0:this.s.columns.length-1].id),this.editNext(e,n),!1}}return!0},ui:function(e,t,i){var n=this.getIndexById(e.row),s=this.getColumnIndex(e.column),a=this.data.order,r=this.fj;if(i)for(var o=n;o<a.length;o++){for(var l=s+1;l<r.length;l++){var h={row:a[o],column:r[l].id};if(t.call(this,h)&&(!this.QD||!this.QD(e,h)))return h}s=-1}else for(o=n;0<=o;o--){for(l=s-1;0<=l;l--){h={row:a[o],column:r[l].id};if(t.call(this,h))return h}s=r.length}return null},In:function(){this.Eb&&(this.Jn?this.Jn=!1:(this.Wj.scrollTo(this.getScrollState().y+this.Vf.childNodes[1].firstChild.scrollTop),this.Vf.childNodes[1].firstChild.scrollTop=0,this.Jn=!0))},Kn:function(){this.Eb&&this.Zj.scrollTo(this.Vf.childNodes[1].scrollLeft)},gi:function(){this.attachEvent("onScrollY",this.Ln),this.attachEvent("onScrollX",this.Ln),this.attachEvent("onScrollY",this.$s),this.attachEvent("onColumnResize",function(){this.editStop()}),this.attachEvent("onAfterFilter",function(){this.editStop()}),this.attachEvent("onRowResize",function(){this.editStop()}),this.attachEvent("onAfterScroll",function(){this.s.topSplit&&this.editStop()}),this.Vf.childNodes[1].firstChild.onscroll=jeeplus.bind(this.In,this),this.Vf.childNodes[1].onscroll=jeeplus.bind(this.Kn,this)},Ln:function(){if(this.Eb){var e=this.Hn;this.Hn=this.getScrollState();var i=this.Hn.y-e.y;this.si(function(e){if(e.getPopup){var t=this.getItemNode(e);t?e.getPopup().show(t):e.getPopup().show({x:-1e4,y:-1e4})}else e.$inline||(e.node.top-=i,e.node.style.top=e.node.top+"px")})}}}),jeeplus.extend(jeeplus.ui.datatable,jeeplus.EditAbility),jeeplus.extend(jeeplus.ui.datatable,{$init:function(){this.kz(),this.attachEvent("onStructureLoad",this.Nn)},kz:function(){this.am={},this.bm=jeeplus.toArray(),this.Mn=[0,0]},Nn:function(){for(var e=this.fj,t=0;t<e.length;t++)e[t].header&&this.xB(e,e[t].header),e[t].footer&&this.xB(e,e[t].footer);for(t=e.length-1;0<=t;t--)e[t].hidden?this.hideColumn(e[t].id,{},!0,!0):e[t].batch&&this.config.visibleBatch&&e[t].batch!=this.config.visibleBatch&&this.hideColumn(e[t].id,{},!0,!0)},xB:function(e,t){for(var i=0;i<t.length;i++){var n=t[i];n&&n.colspan&&!n.$colspan&&(n.$colspan=n.colspan)}},moveColumn:function(e,t){var i=this.getColumnIndex(e);if(i!=t){var n=this.s.columns,s=n.splice(i,1),a=t-(i<t?1:0);jeeplus.PowerArray.insertAt.call(n,s[0],a),this.On()}},rz:function(){var e=this.bm,t=this.s.columns;if(!e.length){for(var i=0;i<t.length;i++)e[i]=t[i].id;this.Mn=[this.s.leftSplit,this.Fj]}},isColumnVisible:function(e){return!this.am[e]},hideColumn:function(e,t,i,n){var s=this.s.columns,a=this.bm,r=this.am,o=1;if(t=t||{},!1!==n){if(-1===(c=this.getColumnIndex(e))||!this.callEvent("onBeforeColumnHide",[e]))return;if(-1==c)return;if(this.rz(),t.spans)for(var l=s[c].header,h=0;h<l.length;h++)l[h]&&(l[h].$groupSpan=l[h].colspan||1,o=Math.max(o,l[h].$groupSpan));c<this.s.leftSplit&&(this.s.leftSplit-=o),c>=this.Fj?this.s.rightSplit-=o:this.Fj-=o;for(h=c+o-1;c<=h;h--)this.vk(c),(r[(p=s.splice(c,1)[0]).id]=p).qk=-1,delete this.Aj[p.id];this.callEvent("onAfterColumnHide",[e])}else{if(!(p=r[e])||!this.callEvent("onBeforeColumnShow",[e]))return;for(var u=null,d=(h=0,0);h<a.length;h++){if(a[h]==e){d=h;break}r[a[h]]||(u=a[h])}var c=u?this.getColumnIndex(u)+1:0;if(t.spans)for(l=p.header,h=0;h<l.length;h++)l[h]&&(l[h].colspan=l[h].$groupSpan||l[h].colspan,delete l[h].$groupSpan,o=Math.max(o,l[h].colspan||1));for(h=d+o-1;d<=h;h--){var p;(p=r[a[h]])?(jeeplus.PowerArray.insertAt.call(s,p,c),delete p.hidden,delete r[p.id],this.Aj[p.id]=p):o--}d<this.Mn[0]&&(this.s.leftSplit+=o),d>=this.Mn[1]?this.s.rightSplit+=o:this.Fj+=o,this.callEvent("onAfterColumnShow",[e])}p.header&&this.xt(p,!1!==n?0:1,"header"),p.footer&&this.xt(p,!1!==n?0:1,"footer"),i||this.On()},xt:function(e,t,i){for(var n=e[i].length-1;0<=n;n--)for(var s,a=this.bm,r=!1,o=0,l=0;l<a.length;l++){var h=(e=this.getColumnConfig(a[l]))[i][n];this.isColumnVisible(a[l])?(r&&0<o&&s&&0<s.colspan?s=h=e[i][n]=s:h&&h.$colspan&&o<=0&&(o=h.colspan=h.$colspan,s=h),r=null):(h&&h.$colspan&&o<=0&&(o=h.colspan=h.$colspan,r=s=h),s&&0<o&&s.colspan--),o--}},refreshColumns:function(e,t){(e&&e!=this.config.columns||t)&&(this.kz(),this.ij={},e&&(this.Fj=e.length-(this.config.rightSplit||0))),this.Aj={};for(var i=0;i<this.fj.length;i++){var n=this.fj[i];(this.Aj[n.id]=n).attached=n.node=null}for(i=0;i<3;i++)this.I.childNodes[i].innerHTML="",this.Vf.childNodes[i].firstChild.innerHTML="";this.fj=this.config.columns=e||this.config.columns,this.Fj=this.fj.length-this.s.rightSplit,this.tj=0,this.rj(),this.callEvent("onStructureUpdate"),this.sk(),this.render()},On:function(){this.tj=0,this.callEvent("onStructureUpdate"),this.uj(),this.render()},showColumn:function(e,t,i){return this.hideColumn(e,t,i,!1)},showColumnBatch:function(n,s){var a=void 0!==s;s=!1!==s,this.eachColumn(function(e,t){if(t.batch){var i=this.am[t.id];s||(i=!i),t.batch==n&&i?this.hideColumn(t.id,{spans:!0},!0,!s):a||t.batch==n||i||this.hideColumn(t.id,{spans:!0},!0,s)}},!0),this.On()}}),jeeplus.extend(jeeplus.ui.datatable,{$init:function(){this.attachEvent("onAfterScroll",this.cF)},cF:function(){if(!this.eF()){var e=this.y.querySelector(".jeeplus_cell");e&&e.setAttribute("tabindex","0")}},eF:function(){for(var e=this.getSelectedId(!0),t=0;t<e.length;t++)if(this.isColumnVisible(e[t].column))return this.getItemNode(e[t]);return null},moveSelection:function(e,t,i){if(!this.s.disabled){t=t||{};var n=this.getSelectedId(!0),s=n.length-1,a=!(!this.s.multiselect&&!this.s.areaselect)&&t.shift;if(1<n.length&&"cell"!==this.s.select&&(n=n.sort(jeeplus.bind(function(e,t){return this.getIndexById(e.row)>this.getIndexById(t.row)||this.getColumnIndex(e.column)>this.getColumnIndex(t.column)?1:-1},this)),("up"==e||"left"==e||"top"==e||"pgup"==e)&&(s=0)),s<0&&this.count()){if("down"==e||"right"==e)e="top";else{if("up"!=e&&"left"!=e)return;e="bottom"}s=0,n=[{row:1,column:1}]}if(0<=s){var r=n[s].row,o=n[s].column;if("top"==e||"bottom"==e)r&&("top"==e?r=this.data.getFirstId():"bottom"==e&&(r=this.data.getLastId())),o&&(s=0,"bottom"==e&&(s=this.config.columns.length-1),o=this.columnId(s));else if("up"==e||"down"==e||"pgup"==e||"pgdown"==e){if(r){s=this.getIndexById(r);var l="pgup"==e||"pgdown"==e?Math.round(this.Vj/this.s.rowHeight):1;"up"==e||"pgup"==e?s-=l:("down"==e||"pgdown"==e)&&(s+=l),s<0&&(s=0),s>=this.data.order.length&&(s=this.data.order.length-1),!(r=this.getIdByIndex(s))&&this.s.pager&&this.showItemByIndex(s)}}else{if("right"!=e&&"left"!=e)return;if(o&&"row"!=this.config.select){s=this.getColumnIndex(o);"right"==e?s++:"left"==e&&s--,s<0&&(s=0),s>=this.config.columns.length&&(s=this.config.columns.length-1),o=this.columnId(s)}else{if((this.open||this.oA)&&"right"==e)return this.open?this.open(r):this.openSub(r);if((this.close||this.oA)&&"left"==e)return this.close?this.close(r):this.closeSub(r)}}if(r){this.showCell(r,o),this.select||(jeeplus.extend(this,this._k.$k,!0),this.s.select=this.open||this.oA?"row":"cell",jeeplus.extend(this,this._k[this.s.select],!0));var h={row:r,column:o};if(a&&"area"==this.s.select){var u=this.el[this.el.length-1];this.gC(h,u,e,t)}else this.hl(h,a);if(!this.s.clipboard&&!1!==i){var d=this.getItemNode(h);d&&d.focus()}}}return!1}}}),jeeplus.extend(jeeplus.ui.datatable,jeeplus.KeysNavigation),jeeplus.extend(jeeplus.ui.datatable,jeeplus.DataMove),jeeplus.extend(jeeplus.ui.datatable,{drag_setter:function(e){return this.attachEvent("onBeforeDrag",function(e){return this.RD(e.source)}),this.attachEvent("onBeforeDragIn",function(e){return this.RD(e.target)}),this.attachEvent("onBeforeDropOrder",function(e,t){return t<0||t>=this.s.topSplit}),jeeplus.DragItem.drag_setter.call(this,e)},RD:function(e){var t,i=!1;if(this.s.topSplit&&e)for(jeeplus.isArray(e)||(e=[e]),t=0;!i&&t<e.length;t++)i=this.getIndexById(e[t])<this.s.topSplit;return!i},$dragHTML:function(e,t){for(var i="<div class='jeeplus_dd_drag' style='width:"+(this.bc-this.oj-2)+"px;'>",n=this.s.columns,s=0;s<n.length;s++){var a=this.Ek(e,n[s]);i+="<div style='width:"+n[s].width+"px;'>"+a+"</div>"}return i+"</div>"},getHeaderNode:function(e,t){return this.nG(e,t,this.I)},getFooterNode:function(e,t){return this.nG(e,t,this.cj)},nG:function(e,t,i){if(this.isColumnVisible(e)){var n=this.getColumnIndex(e),s=this.s.leftSplit>n?0:this.Fj<=n?2:1;t=t||0;var a=i.childNodes[s].getElementsByTagName("TR");if(a.length)for(var r=a[t+1].childNodes,o=0;o<r.length;o++)if(r[o].getAttribute("column")==n)return r[o].firstChild}return null},getItemNode:function(e,t){if(e&&!e.header){var i=e.row||e,n=this.getIndexById(i),s=this.Sj(),a=s[0]-this.s.topSplit;if(n<a&&n>s[1])return;var r=this.Xj(),o=this.s.leftSplit?0:r[0];if(e.column&&((o=this.getColumnIndex(e.column))<this.Fj&&o>=this.s.leftSplit&&(o<r[0]||o>r[1])))return;var l=this.s.columns[o];if(l.attached&&l.node){var h=n<this.s.topSplit?n:n-a;return l.node.childNodes[h]}}},dragColumn_setter:function(e){var r;"order"==e?r={$drag:jeeplus.bind(function(e,t){var i=this.locate(t);if(this.Pl||!i||!this.callEvent("onBeforeColumnDrag",[i.column,t]))return!1;jeeplus.DragControl.Gd={from:r,start:i,custom:"column_dnd"};var n=this.getColumnConfig(i.column);return this.Qn=jeeplus.html.posRelative(t),this.Rn=n.width,"<div class='jeeplus_dd_drag_column' style='width:"+n.width+"px'>"+(n.header[0].text||"&nbsp;")+"</div>"},this),$dragPos:jeeplus.bind(function(e,t,i){var n=jeeplus.DragControl.getContext(),s=jeeplus.html.offset(this.$view);i.style.display="none";var a=document.elementFromPoint(e.x,s.y+1),r=a?this.locate(a):null,o=jeeplus.DragControl.getContext().start.column;if(r&&r.column!=o&&(!this.Sn||r.column!=this.Yg)&&"column_dnd"==n.custom&&jeeplus.$$(a)==this){if(!this.callEvent("onBeforeColumnDropOrder",[o,r.column,t]))return;var l=this.getColumnIndex(o),h=this.getColumnIndex(r.column);t.touches&&(this.wy=t.target,this.wy.style.display="none",this.$view.parentNode.appendChild(this.wy)),this.moveColumn(o,h+(l<h?1:0)),this.Yg=r.column,this.Sn=!0}if(r&&r.column==o&&(this.Sn=!1),i.style.display="block",e.x=e.x-this.Qn.x,e.y=s.y,e.x<s.x)e.x=s.x;else{var u=s.x+this.$view.offsetWidth-this.oj-this.Rn;e.x>u&&(e.x=u)}jeeplus.DragControl.Ed=!0},this),$dragDestroy:jeeplus.bind(function(e,t){jeeplus.html.remove(t),this.wy&&jeeplus.html.remove(this.wy);var i=jeeplus.DragControl.getContext().start;this.callEvent("onAfterColumnDropOrder",[i.column,this.Yg,e])},this),$drop:function(){}}:e&&(r={ah:!0,$drag:jeeplus.bind(function(e,t){var i=this.locate(t);if(this.Pl||!i||!this.callEvent("onBeforeColumnDrag",[i.column,t]))return!1;jeeplus.DragControl.Gd={from:r,start:i,custom:"column_dnd"};for(var n=this.getColumnConfig(i.column).header,s="&nbsp;",a=0;a<n.length;a++)if(n[a]){s=n[a].text;break}return"<div class='jeeplus_dd_drag_column'>"+s+"</div>"},this),$drop:jeeplus.bind(function(e,t,i){var n=i;i.touches&&this.Tn&&(n=this.Tn);var s=this.locate(n);if(!s)return!1;var a=jeeplus.DragControl.getContext().start.column;if(a!=s.column){if(!this.callEvent("onBeforeColumnDrop",[a,s.column,i]))return;var r=this.getColumnIndex(a),o=this.getColumnIndex(s.column);this.moveColumn(a,o+(r<o?1:0)),this.callEvent("onAfterColumnDrop",[a,s.column,i])}},this),$dragIn:jeeplus.bind(function(e,t,i){var n=jeeplus.DragControl.getContext();if("column_dnd"!=n.custom||n.from!=r)return!1;for(var s=i.target||i.srcElement;-1==(s.className||"").indexOf("jeeplus_hcell");)if(!(s=s.parentNode))return;return s!=this.Tn&&(this.Tn&&jeeplus.html.removeCss(this.Tn,"jeeplus_dd_over_column"),jeeplus.html.addCss(s,"jeeplus_dd_over_column")),this.Tn=s},this),$dragDestroy:jeeplus.bind(function(e,t){this.Tn&&jeeplus.html.removeCss(this.Tn,"jeeplus_dd_over_column"),jeeplus.html.remove(t)},this)}),e&&(jeeplus.DragControl.addDrag(this.I,r),jeeplus.DragControl.addDrop(this.I,r,!0))}}),jeeplus.extend(jeeplus.ui.datatable,jeeplus.DragItem),jeeplus.extend(jeeplus.ui.datatable,{clearValidation:function(){for(var e in this.data.Me)this.Un(e);this.data.clearMark("jeeplus_invalid",!0)},Te:function(e,t){for(var i in this.Un(e),t)this.addCellCss(e,i,"jeeplus_invalid_cell");this.addCss(e,"jeeplus_invalid")},Qe:function(e){this.Un(e),this.removeCss(e,"jeeplus_invalid")},Un:function(e){var t=(this.getItem(e),this.data.getMark(e,"$cellCss"));if(t)for(var i in t)t[i]=t[i].replace("jeeplus_invalid_cell","").replace(" "," ")},addRowCss:function(e,t,i){this.addCss(e,t,i)},removeRowCss:function(e,t,i){this.removeCss(e,t,i)},addCellCss:function(e,t,i,n){var s=this.data.getMark(e,"$cellCss"),a=s||{},r=a[t]||"";a[t]=r.replace(i,"").replace(" "," ")+" "+i,s||this.data.addMark(e,"$cellCss",!1,a,!0),n||this.refresh(e)},removeCellCss:function(e,t,i,n){var s=this.data.getMark(e,"$cellCss");if(s){var a=s[t]||"";a&&(s[t]=a.replace(i,"").replace(" "," ")),n||this.refresh(e)}}}),jeeplus.extend(jeeplus.ui.datatable,jeeplus.ValidateCollection),function(){var e=jeeplus.Sparklines=function(){};e.types={},e.getTemplate=function(e){var t=e||{};"string"==typeof e&&(t={type:e}),jeeplus.extend(t,{type:"line"});var i=this.types[t.type];return jeeplus.bind(this.BC,new i(t))},e.BC=function(e,t,i,n){return n?this.draw(function(e){for(var t=[],i=e.length-1;0<=i;i--){var n=e[i];t[i]="object"==typeof n?n.value:n}return t}(i),n.width,33):this.draw(e.data||e,t.width,t.height)}}(),jeeplus.attachEvent("onDataTable",function(e){e.type.sparklines=jeeplus.Sparklines.getTemplate()}),function(){function o(e){var t=" ";if(e)for(var i in e)t+=i+'="'+e[i]+'" ';return t}var l={draw:function(e,t,i,n){return"<svg "+o({xmlns:"http://www.w3.org/2000/svg",version:"1.1",height:"100%",width:"100%",viewBox:"0 0 "+t+" "+i,class:n||""})+">"+e+"</svg>"},styleMap:{lineColor:"stroke",color:"fill"},group:function(e){return"<g>"+e+"</g>"}};l.z={M:function(e){return" M "+e.x+" "+e.y},L:function(e){return" L "+e.x+" "+e.y},C:function(e,t,i){return" C "+e.x+" "+e.y+" "+t.x+" "+t.y+" "+i.x+" "+i.y},A:function(e,t,i,n){var s=e.x+Math.cos(n)*t,a=e.y+Math.sin(n)*t;return" A "+t+" "+t+" 0 "+(n-i>=Math.PI?1:0)+" 1 "+s+" "+a}},l.definePath=function(e,t){for(var i="",n=0;n<e.length;n++){var s=e[n][0].toUpperCase();i+=this.z[s].apply(this,e[n].slice(1))}return t&&(i+=" Z"),i},l.CC=function(e){for(var t=[],i=0;i<e.length;i++)t.push([i?"L":"M",e[i]]);return t},l.setOpacity=function(e,t){return(e=jeeplus.color.toRgb(e)).push(t),"rgba("+e.join(",")+")"},l.DC=function(e){for(var t=[],i=0;i<e.length;i++){var n=e[i];i||t.push(["M",n[0]]),t.push(["C",n[1],n[2],n[3]])}return t},l.getPath=function(e,t,i){return'<path class="'+t+'" vector-effect="non-scaling-stroke" d="'+e+'" '+(i=o(i))+"/>"},l.getSector=function(e,t,i,n,s,a){a=o(a);var r=[["M",e],["L",{x:e.x+Math.cos(i)*t,y:e.y+Math.sin(i)*t}],["A",e,t,i,n],["L",e]];return'<path class="'+s+'" vector-effect="non-scaling-stroke" d="'+l.definePath(r,!0)+'" '+a+"/>"},l.getCurve=function(e,t,i){return i=o(i),'<path fill="none" class="'+t+'" vector-effect="non-scaling-stroke" d="'+this.definePath(this.DC(e))+'" '+i+"/>"},l.getLine=function(e,t,i,n){return this.getPath(this.definePath(this.CC([e,t]),!0),i,n)},l.getCircle=function(e,t,i,n){return n=o(n),'<circle class="'+i+'" cx="'+e.x+'" cy="'+e.y+'" r="'+t+'" '+n+"/>"},l.getRect=function(e,t,i,n,s,a){return'<rect class="'+s+'" rx="0" ry="0" x="'+e+'" y="'+t+'" width="'+i+'" height="'+n+'" '+(a=o(a))+"/>"},jeeplus.EC=l}(),function(){function e(e){this.config=jeeplus.extend(jeeplus.copy(t),e||{},!0)}var t={paddingX:3,paddingY:4,radius:1,minHeight:4,eventRadius:8};e.prototype.draw=function(e,t,i){var n,s,a,r,o,l=this.config,h=jeeplus.Sparklines.types.line.prototype,u=jeeplus.EC;return r=this.getPoints(e,t,i),a=u.definePath(h.FC(r),!0),l.color&&(o=this.GC(u,l.color)),s=u.group(u.getPath(a,"jeeplus_sparklines_area"+(o?" "+o.area:""))),r.splice(r.length-3,3),a=u.definePath(h.FC(r)),s+=u.group(u.getPath(a,"jeeplus_sparklines_line"+(o?" "+o.line:""))),s+=h.HC(u,r,l.radius,"jeeplus_sparklines_item"+(o?" "+o.item:"")),n=Math.min(e.length?(t-2*(l.paddingX||0))/e.length:0,l.eventRadius),s+=h.IC(u,r,n),u.draw(s,t,i,"jeeplus_sparklines_area_chart"+(l.css?" "+l.css:""))},e.prototype.GC=function(e,t){var i={area:{},line:{},item:{}},n=e.styleMap;if(t)for(var s in i.area[n.color]=e.setOpacity(t,.2),i.line[n.lineColor]=t,i.item[n.color]=t,i)i[s]=jeeplus.html.createCss(i[s]);return i},e.prototype.getPoints=function(e,t,i){var n=jeeplus.Sparklines.types.line.prototype.getPoints.call(this,e,t,i),s=this.config.paddingX||0,a=this.config.paddingY||0;return n.push({x:t-s,y:i-a},{x:s,y:i-a},{x:s,y:n[0].y}),n},jeeplus.Sparklines.types.area=e}(),function(){function e(e){this.config=jeeplus.extend(jeeplus.copy(t),e||{},!0)}var t={paddingX:3,paddingY:4,width:20,margin:4,minHeight:4,eventRadius:8,origin:0,itemCss:function(e){return e<(this.config.origin||0)?" jeeplus_sparklines_bar_negative":""}};e.prototype.draw=function(e,t,i){var n,s,a,r,o,l=this.config,h="",u=[],d=this.getPoints(e,t,i),c=jeeplus.EC;for(n=0;n<d.length;n++)s="function"==typeof l.itemCss?l.itemCss.call(this,e[n]):l.itemCss||"",l.negativeColor&&e[n]<l.origin?s+=" "+this.GC(c,l.negativeColor):l.color&&(s+=" "+this.GC(c,l.color)),a=d[n],u.push(c.getRect(a.x,a.y,a.width,a.height,"jeeplus_sparklines_bar "+s));h+=c.group(u.join("")),r=parseInt(this.JC(e,t,i),10)+.5,o=l.paddingX||0,h+=c.group(c.getLine({x:o,y:r},{x:t-o,y:r},"jeeplus_sparklines_origin"));var p=this.KC(e,t,i),f=[];for(n=0;n<p.length;n++)a=p[n],f.push(c.getRect(a.x,a.y,a.width,a.height,"jeeplus_sparklines_event_area ",{jeeplus_area:n}));return h+=c.group(f.join("")),c.draw(h,t,i,"jeeplus_sparklines_bar_chart"+(l.css?" "+l.css:""))},e.prototype.GC=function(e,t){var i={},n=e.styleMap;return t&&(i[n.color]=t),jeeplus.html.createCss(i)},e.prototype.JC=function(e,t,i){var n=this.config,s=n.paddingY||0,a=s+(i=(i||100)-2*s);if(!1!==n.origin){var r=Math.min.apply(null,e),o=Math.max.apply(null,e),l=n.origin||-1e-6;if(o<=l)a=s;else if(r<l){a-=i/(o-r)*(l-r)}}return a},e.prototype.KC=function(e,t,i){var n=[],s=this.config.paddingX||0,a=this.config.paddingY||0;if(t=(t||100)-2*s,i=(i||100)-2*a,e.length)for(var r=t/e.length,o=0;o<e.length;o++)n.push({x:Math.ceil(r*o)+s,y:a,height:i,width:r});return n},e.prototype.getPoints=function(e,t,i){var n=this.config,s=Math.min.apply(null,e);n.origin<s&&(s=n.origin);var a=Math.max.apply(null,e),r=[],o=n.paddingX,l=n.paddingY,h=n.margin,u=n.width||20,d=this.JC(e,t,i);if(t=(t||100)-2*o,i=(i||100)-2*l,e.length){var c=t/e.length,p=n.scale||a-s;h=c-(u=Math.min(c-h,u));var f=0,m=s;!1!==n.origin&&n.origin>s?m=n.origin||0:f=n.minHeight;for(var g=(i-f)/(p||1),v=0;v<e.length;v++){var _=Math.ceil(g*(e[v]-m));r.push({x:Math.ceil(c*v)+o+h/2,y:d-(e[v]>=m?_:0)-f,height:Math.abs(_)+f,width:u})}}return r},jeeplus.Sparklines.types.bar=e}(),function(){function e(e){this.config=jeeplus.extend(jeeplus.copy(t),e||{},!0)}var t={paddingX:6,paddingY:6,radius:2,minHeight:4,eventRadius:8};e.prototype.draw=function(e,t,i){var n=this.getPoints(e,t,i),s=this.config,a=jeeplus.EC,r=s.color?this.GC(a,s.color):null,o=a.definePath(this.FC(n)),l=a.group(a.getPath(o,"jeeplus_sparklines_line"+(r?" "+r.line:"")));l+=this.HC(a,n,s.radius,"jeeplus_sparklines_item"+(r?" "+r.item:""));var h=Math.min(e.length?(t-2*(s.paddingX||0))/e.length:0,s.eventRadius);return l+=this.IC(a,n,h),a.draw(l,t,i,"jeeplus_sparklines_line_chart"+(s.css?" "+s.css:""))},e.prototype.GC=function(e,t){var i={line:{},item:{}},n=e.styleMap;if(t)for(var s in i.line[n.lineColor]=t,i.item[n.color]=t,i)i[s]=jeeplus.html.createCss(i[s]);return i},e.prototype.HC=function(e,t,i,n,s){for(var a=[],r=0;r<t.length;r++)a.push(e.getCircle(t[r],i,n,s));return e.group(a.join(""))},e.prototype.IC=function(e,t,i){for(var n=[],s=0;s<t.length;s++)n.push(e.getCircle(t[s],i,"jeeplus_sparklines_event_area",{jeeplus_area:s}));return e.group(n.join(""))},e.prototype.FC=function(e){var t,i,n=[];for(t=0;t<e.length;t++)i=t?"L":"M",n.push([i,e[t]]);return n},e.prototype.getPoints=function(e,t,i){var n=this.config,s=Math.min.apply(null,e);void 0!==n.origin&&(s=Math.min(n.origin,s));var a=Math.max.apply(null,e),r=[],o=n.paddingX||0,l=n.paddingY||0;t=(t||100)-2*o;var h=n.minHeight||0;if(i=(i||100)-2*l,e.length)if(1==e.length)r.push({x:t/2+o,y:i/2+o});else{var u=t/(e.length-1),d=n.scale||a-s,c=(i-h)/(d||1);d||(i/=2);for(var p=0;p<e.length;p++)r.push({x:Math.ceil(u*p)+o,y:i-Math.ceil(c*(e[p]-s))+l-h})}return r},jeeplus.Sparklines.types.line=e}(),function(){function e(e){this.config=jeeplus.extend(t,e||{},!0)}var t={paddingY:2};e.prototype.rC=0,e.prototype.qC=["#f55b50","#ff6d3f","#ffa521","#ffc927","#ffee54","#d3e153","#9acb61","#63b967","#21a497","#21c5da","#3ea4f5","#5868bf","#7b53c0","#a943ba","#ec3b77","#9eb0b8"],e.prototype.xv=function(e,t){var i=t.length,n=this.qC.length;return i<n?(e&&(e=e<n-i?this.rC+2:this.rC+1),this.rC=e):e%=n,this.qC[e]},e.prototype.draw=function(e,t,i){var n,s,a,r,o=this.config,l=o.color||this.xv,h=this.getAngles(e),u=jeeplus.EC,d=i/2-(o.paddingY||0),c=t/2,p=i/2;for("function"!=typeof l&&(l=function(){return l}),r="",a=0;a<h.length;a++)(n={})[u.styleMap.color]=l.call(this,a,e,this.LC),r+=u.getSector({x:c,y:p},d,h[a][0],h[a][1],"jeeplus_sparklines_sector",n);for(s=u.group(r),r="",a=0;a<h.length;a++)r+=u.getSector({x:c,y:p},d,h[a][0],h[a][1],"jeeplus_sparklines_event_area",{jeeplus_area:a});return s+=u.group(r),u.draw(s,t,i,"jeeplus_sparklines_pie_chart"+(o.css?" "+o.css:""))},e.prototype.getAngles=function(e){var t,i,n=-Math.PI/2,s=[],a=this.Wo(e);for(i=0;i<e.length;i++)t=-Math.PI/2+a[i]-1e-4,s.push([n,t]),n=t;return s},e.prototype.Vo=function(e){for(var t=0,i=0;i<e.length;i++)t+=1*e[i];return t},e.prototype.Wo=function(e){var t,i,n=[],s=0,a=this.Vo(e);for(t=0;t<e.length;t++)i=1*e[t],n[t]=2*Math.PI*(a?(i+s)/a:1/e.length),s+=i;return n},jeeplus.Sparklines.types.pie=e}(),function(){function r(e){this.config=jeeplus.extend(jeeplus.copy(t),e||{},!0)}function e(e){this.config=jeeplus.extend(jeeplus.copy(i),e||{},!0)}var t={paddingX:3,paddingY:6,radius:2,minHeight:4,eventRadius:8};r.prototype.draw=function(e,t,i){var n=this.config,s="",a=jeeplus.Sparklines.types.line.prototype,r=this.getPoints(e,t,i),o=jeeplus.EC,l=n.color?this.GC(o,n.color):null;s+=o.group(o.getCurve(r,"jeeplus_sparklines_line"+(l?" "+l.line:"")));var h=a.getPoints.call(this,e,t,i);s+=a.HC(o,h,n.radius,"jeeplus_sparklines_item"+(l?" "+l.item:""));var u=Math.min(e.length?(t-2*(n.paddingX||0))/e.length:0,n.eventRadius);return s+=a.IC(o,h,u),o.draw(s,t,i,"jeeplus_sparklines_line_chart"+(n.css?" "+n.css:""))},r.prototype.GC=function(e,t){var i={line:{},item:{}},n=e.styleMap;if(t)for(var s in i.line[n.lineColor]=t,i.item[n.color]=t,i)i[s]=jeeplus.html.createCss(i[s]);return i},r.prototype.getPoints=function(e,t,i){var n,s,a,r,o=[],l=[],h=[];for(s=jeeplus.Sparklines.types.line.prototype.getPoints.call(this,e,t,i),n=0;n<s.length;n++)l.push(s[n].x),h.push(s[n].y);for(a=this.MC(l),r=this.MC(h),n=0;n<s.length-1;n++)o.push([s[n],{x:a[0][n],y:r[0][n]},{x:a[1][n],y:r[1][n]},s[n+1]]);return o},r.prototype.MC=function(e){var t,i,n=[],s=[],a=[],r=[],o=[],l=[],h=e.length-1;for(s[n[0]=0]=2,a[0]=1,r[0]=e[0]+2*e[1],t=1;t<h-1;t++)n[t]=1,s[t]=4,a[t]=1,r[t]=4*e[t]+2*e[t+1];for(n[h-1]=2,s[h-1]=7,a[h-1]=0,r[h-1]=8*e[h-1]+e[h],t=1;t<h;t++)i=n[t]/s[t-1],s[t]=s[t]-i*a[t-1],r[t]=r[t]-i*r[t-1];for(o[h-1]=r[h-1]/s[h-1],t=h-2;0<=t;--t)o[t]=(r[t]-a[t]*o[t+1])/s[t];for(t=0;t<h-1;t++)l[t]=2*e[t+1]-o[t+1];return l[h-1]=.5*(e[h]+o[h-1]),[o,l]},jeeplus.Sparklines.types.spline=r;var i={paddingX:3,paddingY:6,radius:1,minHeight:4,eventRadius:8};(e.prototype=jeeplus.copy(r.prototype)).draw=function(e,t,i){var n=this.config,s=jeeplus.Sparklines.types.line.prototype,a=jeeplus.EC,r=n.color?this.GC(a,n.color):null,o=this.getPoints(e,t,i),l=o.splice(o.length-3,3),h=a.CC(l);h[0][0]="L";var u=a.DC(o).concat(h),d=a.group(a.getPath(a.definePath(u),"jeeplus_sparklines_area"+(r?" "+r.area:""),!0));d+=a.group(a.getPath(a.definePath(a.DC(o)),"jeeplus_sparklines_line"+(r?" "+r.line:"")));var c=s.getPoints.call(this,e,t,i);d+=s.HC(a,c,n.radius,"jeeplus_sparklines_item"+(r?" "+r.item:""));var p=Math.min(e.length?(t-2*(n.paddingX||0))/e.length:0,n.eventRadius);return d+=s.IC(a,c,p),a.draw(d,t,i,"jeeplus_sparklines_splinearea_chart"+(n.css?" "+n.css:""))},e.prototype.GC=function(e,t){var i={area:{},line:{},item:{}},n=e.styleMap;if(t)for(var s in i.area[n.color]=e.setOpacity(t,.2),i.line[n.lineColor]=t,i.item[n.color]=t,i)i[s]=jeeplus.html.createCss(i[s]);return i},e.prototype.getPoints=function(e,t,i){var n=r.prototype.getPoints.call(this,e,t,i),s=this.config.paddingX||0,a=this.config.paddingY||0;return n.push({x:t-s,y:i-a},{x:s,y:i-a},{x:s,y:n[0][0].y}),n},jeeplus.Sparklines.types.splineArea=e}(),jeeplus.extend(jeeplus.ui.datatable,{UF:function(e,t){return!(!e.scroll||t)||(e.header=jeeplus.isUndefined(e.header)?!!this.config.header:e.header,e.footer=jeeplus.isUndefined(e.footer)?!!this.config.footer:e.footer,void(e.xCorrection=e.xCorrection||0))},sq:function(e,t){for(var i=-1,n=0;i<0&&n<e.length;n++)t(e[n])&&(i=n);return i},$F:function(i,u,d){var c={},p=0;return i.forEach(jeeplus.bind(function(e,o){var t=e[0],l=[],h=t.length;t.forEach(jeeplus.bind(function(e,t){for(var i=u[t+p],n=0;n<i[d].length;n++){var s=i[d][n];if(s||c[o]&&c[o][n]){if(s=jeeplus.copy(s||{text:""}),c[o]&&c[o][n]&&0===t&&(s.colspan=c[o][n],c[o][n]=0),s.colspan){var a=Math.min(s.colspan,h-t);c[o+1]=c[o+1]||{},c[o+1][n]=s.colspan-a,s.colspan=a}s.rowspan&&1===h&&(s.height=(s.height||this.config.headerRowHeight)*s.rowspan,s.rowspan=null);var r={txt:s.rotate?this.getHeaderNode(i.id,n).innerHTML:s.text||(s.contentId?this.getHeaderContent(s.contentId).getValue():""),className:"jeeplus_hcell jeeplus_"+d+"_cell "+(s.css||""),style:{height:(s.height||this.config.headerRowHeight)+"px",width:s.colspan?"auto":i.width+"px"},span:s.colspan||s.rowspan?{colspan:s.colspan||1,rowspan:s.rowspan||1}:null};l[n]=l[n]||[],l[n][t]=r}}},this)),i[o]="header"==d?l.concat(e):e.concat(l),p+=h},this)),i},VF:function(f,e,m){var g=this.config.columns,v=this.getSelectedId(!0),_=this.XF(f),y=0,b=0,x=[],w=0;return m=m||0+f.xCorrection,e=e||[],this.eachRow(jeeplus.bind(function(t){for(var e=0,i=this.getItem(t),n=this.getIndexById(t),s=[],a=!1,r=m;r<g.length;r++){var o=g[r].id,l=this.getColumnIndex(o)-m;if(g[r]){if(e+=g[r].width,_<e&&m<r){w=r;break}if("selection"!==f.data||"selection"==f.data&&-1!==this.sq(v,function(e){return e.column==o&&e.row==t})){var h;if(this.getSpan&&(h=this.getSpan(t,o)),h&&this.getColumnIndex(o)===m){var u=this.getColumnIndex(h[1]);u<m&&(h[2]=h[2]-(m-u),h[4]=h[4]?h[4]:i[h[1]]?this.getText(t,h[1]):null,h[1]=o)}if(!h||h&&h[0]==t&&h[1]==o){var d=h&&h[4]?h[4]:this.Aj[o]?this.getText(t,o):"",c=this.getCss(t,o)+" "+(g[r].css||"")+(h?" jeeplus_dtable_span "+(h[5]||""):""),p={height:h&&1<h[3]?"auto":(i.$height||this.config.rowHeight)+"px",width:h&&1<h[2]?"auto":g[r].width+"px"};s.push({txt:d,className:c,style:p,span:h?{colspan:h[2],spanStart:this.getColumnIndex(h[1]),rowspan:h[3]}:null}),d&&(y=Math.max(l+1,y),b=Math.max(n+1,b)),a=a||!!d}else h&&(s.push({$inspan:!0}),y=Math.max(l+1,y),b=Math.max(n+1,b))}}}(!f.skiprows||a)&&x.push(s)},this)),b&&y&&(f.trim&&(x.length=b,x=x.map(function(e){for(var t=e.length-1;0<=t;t--)if(e[t].span&&e[t].span.colspan){e[t].span.colspan=Math.min(e[t].span.colspan,e.length-t);break}return e.length=y,e})),e.push(x)),w?this.VF(f,e,w):(f.footer&&(e=this.$F(e,g,"footer")),f.header&&(e=this.$F(e,g,"header"))),e},WF:function(s,a){var r=jeeplus.html.create("div");return s.forEach(jeeplus.bind(function(e,t){var i=jeeplus.html.create("table",{class:"jeeplus_table_print "+this.$view.className+(a.borderless?" borderless":""),style:"border-collapse:collapse"});if(e.forEach(function(e){var s=jeeplus.html.create("tr");e.forEach(function(e,t){if(!e.$inspan){var i=jeeplus.html.create("td");for(var n in i.innerHTML=e.txt,i.className=e.className,e.style)i.style[n]=e.style[n];e.span&&(i.colSpan=e.span.colspan,i.rowSpan=e.span.rowspan),s.appendChild(i)}}),i.appendChild(s)}),r.appendChild(i),t+1<s.length){var n=jeeplus.html.create("DIV",{class:"jeeplus_print_pagebreak"});r.appendChild(n)}},this)),r}}),jeeplus.extend(jeeplus.ui.datatable,jeeplus.CustomPrint),jeeplus.extend(jeeplus.ui.datatable,{$exportView:function(e){if(this.isBranchOpen&&jeeplus.extend(e,{filterHTML:!0}),"excel"!==e.export_mode||e.dataOnly||!e.styles)return this;e.dataOnly=!0,e.heights=jeeplus.isUndefined(e.heights)?"all":e.heights;var t=jeeplus.toExcel(this,e);return t[0].styles=this.oG(e),delete e.dataOnly,t},oG:function(e){var u=this.config.columns,d=[];return this.pG=this.pG||{},e.docHeader&&(d=[{0:this.qG(e.docHeader.css)},{0:{}}]),!1!==e.header&&(d=this.rG(e,"header",d)),this.data.each(function(e){for(var t={},i=0;i<u.length;i++){var n=this.getCss(e.id,u[i].id),s=u[i].node.className,a="",r=this.getIndexById(e.id)%2?"even":"odd",o=null,l=null;if(this.Rt&&(o=this.getSpan(e.id,u[i].id))?(l=this.getSpanNode({row:o[0],column:o[1]}),a="jeeplus_dtable_span "+(o[5]||"")):l=this.getItemNode({row:e.id,column:u[i].id}),!l){l=jeeplus.html.create("div",{class:n,style:"visibility:hidden"});var h=u[i].node;u[i].attached||(h=jeeplus.html.create("div",{class:s,style:"visibility:hidden"}),this.Vf.appendChild(h)),h.appendChild(l)}t[i]=this.sG(l,[n,s,a,r].join(":"))}d[d.length]=t},this),!1!==e.footer&&this.config.footer&&(d=this.rG(e,"footer",d)),e.docFooter&&(d=d.concat([{0:{}},{0:this.qG(e.docFooter.css)}])),d},rG:function(e,t,i){for(var n=this.config.columns,s=[],a=0;a<n[0][t].length;a++){for(var r={},o=0;o<n.length;o++){var l=n[o][t][a];if(l){var h=l.colspan?n[o+l.colspan-1].id:n[o].id,u="header"==t?this.getHeaderNode(h,a):this.getFooterNode(h,a);if(u){var d=[u.parentNode.className,l.css||"","jeeplus_hcell",t];r[o]=this.sG(u,d.join(":")),(l.colspan||l.rowspan)&&s.push([a,o,{colspan:l.colspan-1||0,rowspan:l.rowspan-1||0},r[o]])}}else for(var c=0;c<s.length;c++){var p=s[c][2],f=s[c][1],m=s[c][0];f+p.colspan>=o&&m+p.rowspan>=a&&(r[o]=s[c][3])}}i[i.length]=r}return i},sG:function(e,t){if(this.pG[t])return this.pG[t];var i=this.tG(e),n={font:{},alignment:{},border:{}};n.font.name=i["font-family"].replace(/,.*$/,""),n.font.sz=.75*i["font-size"].replace("px",""),n.font.color={rgb:jeeplus.color.rgbToHex(i.color)},"normal"!==i["font-weight"]&&(n.font.bold=!0),"underline"===i["text-decoration-line"]&&(n.font.underline=!0),"italic"===i["font-style"]&&(n.font.italic=!0),"line-through"===i["text-decoration-line"]&&(n.font.strike=!0),n.alignment.horizontal=i["text-align"],n.alignment.vertical=i.height==i["line-height"]?"center":"top","normal"==i["white-space"]&&(n.alignment.wrapText=!0),e.firstChild&&e.firstChild.className&&-1!==e.firstChild.className.indexOf("jeeplus_rotate")&&(n.alignment.textRotation=90);var s=jeeplus.color.rgbToHex(i["background-color"]);return s&&(n.fill={fgColor:{rgb:s}}),-1!==i["background-image"].indexOf("gradient")&&(n.fill={fgColor:{rgb:jeeplus.color.rgbToHex(i["background-image"].substring(i["background-image"].lastIndexOf("(")))}}),e.parentNode&&"TD"==e.parentNode.nodeName&&(i=this.tG(e.parentNode)),"0px"!==i["border-right-width"]&&(n.border.right={style:"thin",color:{rgb:jeeplus.color.rgbToHex(i["border-right-color"])}}),"0px"!==i["border-bottom-width"]&&(n.border.bottom={style:"thin",color:{rgb:jeeplus.color.rgbToHex(i["border-bottom-color"])}}),"0px"!==i["border-left-width"]&&(n.border.left={style:"thin",color:{rgb:jeeplus.color.rgbToHex(i["border-left-color"])}}),"0px"!==i["border-top-width"]&&(n.border.top={style:"thin",color:{rgb:jeeplus.color.rgbToHex(i["border-top-color"])}}),this.pG[t]=n},qG:function(e){e=jeeplus.extend(e||{},{visibility:"hidden","white-space":"nowrap","text-align":"left"});var t="";for(var i in e)t+=i+":"+e[i]+";";var n=jeeplus.html.create("div",{style:t});this.Vf.appendChild(n);var s=this.sG(n,t);return jeeplus.html.remove(n),s},tG:function(e){return window.getComputedStyle?window.getComputedStyle(e):e.currentStyle}}),jeeplus.extend(jeeplus.ui.datatable,{topSplit_setter:function(e){return this.data&&(this.data.$freeze=e),e},freezeRow:function(e,t){function i(e,t,i,n,s){var a;if(i&&r<=e){for(s||r++,a=e;r<=a;a--)n[a]=n[a-1];n[r-1]=t}if(!i&&e<r){for(s||r--,a=e;a<r;a++)n[a]=n[a+1];n[r]=t}}var r=this.s.topSplit,n=this.data.order,s=this.data.jf;e?(i(this.getIndexById(e),e=e.toString(),t,n),s&&i(s.find(e),e,t,s,!0)):t||(r=0),this.define("topSplit",r),this.refresh()}}),jeeplus.TreeTableClick={},jeeplus.TreeTablePaste={insert:function(e){for(var t=this.getSelectedId(!0,!0),i=0;i<e.length;i++){for(var n={},s=0;s<this.s.columns.length;s++)n[this.s.columns[s].id]=e[i][s]||"";!jeeplus.isUndefined(n.id)&&this.exists(n.id)&&(n.id=jeeplus.uid()),this.add(n,null,t[0])}}},jeeplus.protoUI({name:"treetable",$init:function(){for(var e in jeeplus.extend(this.data,jeeplus.TreeStore,!0),jeeplus.extend(this.type,jeeplus.TreeType),jeeplus.extend(this,jeeplus.TreeDataMove,!0),jeeplus.TreeClick)this.on_click[e]||(this.on_click[e]=this.Vn(jeeplus.TreeClick[e]));this.type.treetable=jeeplus.template("{common.space()}{common.icon()} {common.folder()}"),this.type.treecheckbox=function(e,t){return e.indeterminate&&!e.nocheckbox?"<div class='jeeplus_tree_checkbox jeeplus_indeterminate'></div>":jeeplus.TreeType.checkbox.apply(this,arguments)},this.data.provideApi(this,!0),this.x.setAttribute("role","treegrid")},Xg:!1,Vn:function(i){return function(e,t){return t=t.row,i.call(this,e,t)}},getState:function(){var e=jeeplus.DataState.getState.call(this);return jeeplus.extend(e,jeeplus.TreeAPI.getState.call(this)),e},setState:function(e){jeeplus.TreeAPI.setState.call(this,e)&&jeeplus.DataState.setState.call(this,e)},clipboard_setter:function(e){return jeeplus.extend(this.rh,jeeplus.TreeTablePaste),jeeplus.TablePaste.clipboard_setter.call(this,e)},Ik:function(e,t){for(var i=0;i<e.start;i++){var n=this.data.order[i];n&&1!=this.getItem(n).$level&&e.start--}return jeeplus.ui.datatable.prototype.Ik.call(this,e,t)}},jeeplus.TreeAPI,jeeplus.TreeStateCheckbox,jeeplus.TreeDataLoader,jeeplus.ui.datatable),jeeplus.extend(jeeplus.ui.datatable,{spans_setter:function(e){return e&&!this.Rt&&this.Qt(),e},Qt:function(){this.Rt={},this.St=[],this.data.attachEvent("onStoreLoad",jeeplus.bind(function(e,t){t&&t.spans&&this.addSpan(t.spans)},this)),this.data.attachEvent("onClearAll",jeeplus.bind(function(){this.Rt={}},this)),this.attachEvent("onScrollY",this.Tt),this.attachEvent("onScrollX",this.Tt),this.attachEvent("onAfterRender",this.Ut),this.attachEvent("onSelectChange",this.Vt)},addSpan:function(e,t,i,n,s,a){if("object"!=typeof e)n=n||1,i=i||1,this.Rt[e]||(this.Rt[e]={}),this.Rt[e][t]=[i,n,s,a];else for(var r=0;r<e.length;r++)this.addSpan.apply(this,e[r])},removeSpan:function(e,t){arguments.length||(this.Rt={});var i=this.Rt[e];i&&delete i[t]},getSpan:function(e,t){if(!e)return this.Rt;var i,n,s,a,r,o=this.Rt;for(e in i=this.getIndexById(e),s=this.getColumnIndex(t),o)for(t in o[e])if(r=o[e][t],n=this.getIndexById(e),a=this.getColumnIndex(t),!(i>n+r[1]-1||i<n||s>a+r[0]-1||s<a))return[e,t].concat(r);return null},Ut:function(){var e,t,i=this.fj.length-this.s.rightSplit;for(jeeplus.html.remove(this.St),t=0;t<3;t++)e=this.St[t]=jeeplus.html.create("DIV",{class:"jeeplus_span_layer"}),this.Vf.childNodes[t].appendChild(e);this.attachEvent("onSyncScroll",function(e,t,i){for(var n=0;n<3;n++)jeeplus.Touch.Nf(this.St[n],1==n?e:0,t,i)}),this.Tt(),this.s.leftSplit&&this.Wt(this.St[0],0,this.s.leftSplit),this.s.rightSplit&&this.Wt(this.St[2],i,this.fj.length),this.Wt(this.St[1],this.s.leftSplit,i),this.s.topSplit&&!jeeplus.env.touch&&this.DG()},EG:function(){for(var e,t=0,i=0,n=0,s=0;t<this.s.leftSplit;)i+=this.fj[t].width,t++;for(e=(t=this.fj.length-1)-this.s.rightSplit;e<=t;)s+=this.fj[t].width,t--;for(t=this.s.leftSplit;t<this.fj.length-this.s.rightSplit;t++)n+=this.fj[t].width;return[i,n,s]},DG:function(){var e,t,i,n=this.fj.length-this.s.rightSplit;for(t=3;t<6;t++)e=this.St[t]=jeeplus.html.create("DIV",{class:"jeeplus_span_layer_top"}),this.Vf.childNodes[t-3].appendChild(e);i=this.EG(),this.s.leftSplit&&(this.St[3].style.width=i[0]+"px",this.Wt(this.St[3],0,this.s.leftSplit,!0)),this.s.rightSplit&&(this.St[5].style.width=i[2]+"px",this.Wt(this.St[5],n,this.fj.length,!0)),this.St[4].style.width=i[1]+"px",this.Wt(this.St[4],this.s.leftSplit,n,!0)},Wt:function(e,t,i,n){for(var s=0,a=this.data.$min||0,r=this.data.$max||this.data.order.length,o=a;o<r;o++){var l=this.data.order[o];if(l){var h=this.Rt[l];if(h&&(!n||o<this.s.topSplit))for(var u=t;u<i;u++){var d=this.fj[u].id;h[d]&&this.Xt(e,o,u,h,s,t,l,d)}s+=this.FA(this.getItem(l))}}},Vt:function(){for(var e=this.config.select,t="cell"==e||"column"==e,i=this.getSelectedId(!0),n=[],s=this.Yt||[],a=jeeplus.uid()+"",r=!1,o=0;o<i.length;o++){!(l=this.Rt[i[o]])||t&&!l[i[o].column]||(l.$selected&&l.$selected.id==i[o].id||(r=!0),l.$selected=i[o],l.$time=a,n.push(i[o].id))}for(o=0;o<s.length;o++){var l;(l=this.Rt[s[o]])&&l.$time!==a&&(delete l.$selected,r=!0)}this.Yt=[].concat(i),r&&this.Ut()},Zt:function(e,t){for(var i=0,n=e;n<t;n++){var s=this.fj[n];i+=s?s.width:0}return i},$t:function(e,t){for(var i=0,n=e;n<t;n++){var s=this.getItem(this.data.order[n]);i+=s?this.FA(s):this.s.rowHeight}return i},Xt:function(e,t,i,n,s,a,r,o){var l=n[o],h=l[2]||this.getText(r,o),u="";!n.$selected||"row"!==this.s.select&&n.$selected.column!==o||(u="jeeplus_selected ");var d={column:i,row:t,class:u+"jeeplus_cell jeeplus_table_cell jeeplus_dtable_span "+(l[3]||""),"aria-colindex":i+1,"aria-rowindex":t+1};1<l[0]&&(d["aria-colspan"]=l[0]),1<l[1]&&(d["aria-rowspan"]=l[1]);var c=jeeplus.html.create("DIV",d,""+h);c.style.top=s+"px",c.style.left=this.Zt(a,i)+"px",c.style.width=this.Zt(i,i+l[0])+"px",c.style.height=this.$t(t,t+l[1])+"px",e.appendChild(c)},Tt:function(){if(!this.s.prerender)for(var e=this.getScrollState(),t=0;t<3;t++)this.St[t].style.top="-"+(e.y||0)+"px"},QD:function(e,t){var i,n,s=!1;return this.Rt&&(i=this.getSpan(e.row,e.column),n=this.getSpan(t.row,t.column),i&&n&&i[0]==n[0]&&i[1]==n[1]&&(s=!0)),s},getSpanNode:function(e){for(var t=this.St,i=this.getIndexById(e.row),n=this.getColumnIndex(e.column),s=0;s<t.length;s++)for(var a=t[s].childNodes,r=0;r<a.length;r++)if(a[r].getAttribute("row")==i&&a[r].getAttribute("column")==n)return a[r];return null}}),jeeplus.extend(jeeplus.ui.datatable,{subrow_setter:function(e){return!!e&&(this.kA(),this.s.fixedRowHeight=!1,jeeplus.template(e))},subview_setter:function(e){return e&&(this.s.subrow=this.subrow_setter("<div></div>")),e},defaults:{subRowHeight:35},lA:function(){this.data.each(function(e){e&&(e.$sub=this.s.subrow(e,this.type))},this),this.pC()},pC:function(e){if("auto"===this.s.subRowHeight&&this.bc&&this.mA(),e&&this.s.subview)for(var t in this.oA){var i=jeeplus.$$(this.oA[t]);i.s.hidden||i.adjust()}},nA:function(e){var t=this.getItem(e);t.$sub=this.s.subrow(t,this.type),"auto"===this.s.subRowHeight&&this.mA(t.id,t.$sub)},$init:function(){this.kA=jeeplus.once(function(){var e="#"+this.bj+" .jeeplus_cell.jeeplus_dtable_subview { line-height:normal;}";this.s.fixedRowHeight&&(e+="#"+this.bj+" .jeeplus_column .jeeplus_cell { white-space: nowrap;}"),jeeplus.html.addStyle(e),this.oA={},this.attachEvent("onSubViewRender",this.pA),this.data.attachEvent("onStoreUpdated",jeeplus.bind(function(e,t,i){e?("update"==i||"add"==i)&&this.nA(e):this.lA()},this)),this.attachEvent("onResize",function(e,t,i){i!=e&&this.pC(!0)})}),this.type.subrow=function(e){return e.$sub?e.$subopen?"<div class='jeeplus_tree_open jeeplus_sub_open'></div>":"<div class='jeeplus_tree_close jeeplus_sub_close'></div>":"<div class='jeeplus_tree_none'></div>"},this.on_click.jeeplus_sub_open=function(e,t){return this.closeSub(t),!1},this.on_click.jeeplus_sub_close=function(e,t){return this.openSub(t),!1}},openSub:function(e){var t=this.getItem(e);if(!t.$subopen){t.$row=this.s.subrow,t.$subHeight=t.$subHeight||this.s.subRowHeight,t.$subopen=!0;var i=this.oA[t.$subContent];i&&(i.repaintMe=!0),this.refresh(e),this.callEvent("onSubViewOpen",[e])}},getSubView:function(e){var t=this.getItem(e);if(t){var i=this.oA[t.$subContent];if(i)return jeeplus.$$(i)}return null},resizeSubView:function(e){var t=this.getSubView(e);t&&this.qA(this.getItem(e),t)},qA:function(e,t){var i=t.$getSize(0,0)[2],n=e.$subHeight||this.s.subRowHeight;2<Math.abs(i-(n||0))&&(e.$subHeight=i,this.refresh(e.id))},wC:function(e){var t=e.$width;if(e.lc){var i=e.q.length-e.qc;t-=e.mc?2*e.Dc+2:e.Cc*(i-1)+2*e.Dc+2*i}return 0<t},pA:function(s,e){var t,i=this.oA[s.$subContent];if(i)e.firstChild.appendChild(i),t=jeeplus.$$(s.$subContent),this.wC(t)||t.adjust(),i.repaintMe&&(delete i.repaintMe,t.config.hidden=!1,t.Qd());else{var n=jeeplus.copy(this.s.subview);n.$scope=this.$scope,(t=jeeplus.ui(n,e.firstChild)).getMasterView=jeeplus.bind(function(){return this},this),s.$subContent=t.config.id,this.oA[s.$subContent]=t.$view,t.attachEvent("onResize",jeeplus.bind(function(e,t,i,n){t&&t!=n&&this.refresh(s.id)},this)),this.callEvent("onSubViewCreate",[t,s])}this.qA(s,t||jeeplus.$$(i))},rA:function(e){var t=this.getItem(e),i=this.oA[t.$subContent];if(i){delete t.$subContent;var n=jeeplus.$$(i);n&&n!=this&&n.destructor()}},mA:function(t,i){var n=jeeplus.html.create("DIV",{class:"jeeplus_measure_size jeeplus_cell jeeplus_dtable_subrow"},"");n.style.cssText="width:"+this.bc+"px; height:auto; visibility:hidden; position:absolute; top:0px; left:0px; overflow:hidden;",this.$view.appendChild(n),this.data.each(function(e){(e&&!t||e.id==t&&e.$sub)&&(n.innerHTML=i||this.s.subrow(e,this.type),e.$subHeight=n.offsetHeight)},this),n=jeeplus.html.remove(n)},closeSub:function(e){var t=this.getItem(e);if(t.$subopen){t.$row=!1,t.$subopen=!1;var i=this.oA[t.$subContent];i&&(jeeplus.$$(i).config.hidden=!0),this.refresh(e),this.callEvent("onSubViewClose",[e])}}}),jeeplus.extend(jeeplus.ui.datatable,{headermenu_setter:function(e){return e&&(e.data&&(this.Xw=!0),e=this._t(e)),e},_t:function(a){var e={view:"contextmenu",template:"<span class='jeeplus_icon {common.hidden()}'></span> &nbsp; #value#",type:{hidden:function(e){return e.hidden?"fa-empty":"fa-eye"}},on:{onMenuItemClick:jeeplus.bind(function(e,t){var i=jeeplus.$$(this.s.headermenu),n=i.getItem(e).hidden;i.getItem(e).hidden=!n,i.refresh(e),i.$blockRender=!0;var s={spans:"object"==typeof a&&a.spans};return n?this.showColumn(e,s):this.hideColumn(e,s),i.$blockRender=!1},this)},data:[]};"object"==typeof a&&jeeplus.extend(e,a,!0);var t=jeeplus.ui(e);return t.attachTo(this.I),this.Ns.push(t),this.attachEvent("onStructureLoad",this.au),this.attachEvent("onStructureUpdate",this.au),this._t=function(e){return e},t.s.id},au:function(){var e=jeeplus.$$(this.s.headermenu),t=this.am;if(!e.$blockRender){if(this.Xw)return e.data.each(function(e){e.hidden=!!t[e.id]}),void e.refresh();var i=[],n=this.bm;n.length||(n=this.fj);for(var s=0;s<n.length;s++){var a=this.getColumnConfig(n[s].id||n[s]),r=a.header[0],o=!!t[a.id];!1!==a.headermenu&&r&&i.push({id:a.id,value:o?r.text:r.groupText||r.text,hidden:o})}i.length&&e.data.importData(i)}}}),jeeplus.ui.datafilter.headerMenu={getValue:function(){},setValue:function(){},refresh:function(e,t,i){e.s.headermenu||(e.define("headermenu",!0),e.au()),t.onclick=function(){jeeplus.$$(e.config.headermenu).show(t)}},render:function(e,t){return"<span class='jeeplus_icon fa-columns' role='button' tabindex='0' aria-label='"+jeeplus.i18n.aria.headermenu+"'>"}},jeeplus.ui.datafilter.richSelectFilter={getInputNode:function(e){return jeeplus.$$(e.$jeeplus)||null},getValue:function(e){var t=this.getInputNode(e);return t?t.getValue():""},setValue:function(e,t){var i=this.getInputNode(e);return i?i.setValue(t):""},compare:function(e,t){return e==t},refresh:function(i,e,n){if(!i.$destructed){var t=jeeplus.$$(n.richselect);if(!t.$view.parentNode)jeeplus.html.create("div",{class:"jeeplus_richfilter"}).appendChild(t.$view);e.$jeeplus=n.richselect,e.style.marginLeft="-10px",n.compare=n.compare||this.compare,n.prepare=n.prepare||this.prepare,i.registerFilter(e,n,this);var s,a=n.options;a?"string"==typeof a?(s=n.options=[],jeeplus.ajax(a).then(jeeplus.bind(function(e){n.options=e.json();var t=document.body.contains(t)?t:document.body.querySelector('[active_id="'+n.contentId+'"]');this.refresh(i,t,n)},this))):s=a:s=i.collectValues(n.columnId);var r=t.getPopup().getList(),o=jeeplus.$$(a);if(o&&o.data&&o.data.getRange&&(s=o.data.getRange()),e.firstChild.appendChild(t.$view.parentNode),r.parse&&(r.clearAll(),r.parse(s),!this.$noEmptyOption&&!1!==n.emptyOption||n.emptyOption)){var l={id:"",value:n.emptyOption||"",$empty:!0};r.add(l,0)}n.value&&this.setValue(e,n.value),t.render(),jeeplus.delay(t.resize,t)}},render:function(e,t){if(!t.richselect){var i={container:jeeplus.html.create("div",{class:"jeeplus_richfilter"}),view:this.inputtype,options:[]},n=jeeplus.extend(this.inputConfig||{},t.inputConfig||{},!0);jeeplus.extend(i,n),t.separator&&(i.separator=t.separator),t.suggest&&(i.suggest=t.suggest);var s=jeeplus.ui(i);s.attachEvent("onChange",function(){e.filterByAll()}),t.richselect=s.s.id,e.Ns.push(s)}return t.css="jeeplus_div_filter"," "},inputtype:"richselect"},jeeplus.ui.datafilter.serverRichSelectFilter=jeeplus.extend({$server:!0},jeeplus.ui.datafilter.richSelectFilter),jeeplus.ui.datafilter.multiSelectFilter=jeeplus.extend({$noEmptyOption:!0,inputtype:"multiselect",prepare:function(e,t){if(!e)return e;for(var i={},n=e.toString().split(t.separator||","),s=0;s<n.length;s++)i[n[s]]=1;return i},compare:function(e,t){return!t||t[e]}},jeeplus.ui.datafilter.richSelectFilter),jeeplus.ui.datafilter.serverMultiSelectFilter=jeeplus.extend({$server:!0,Vk:function(e,t,i){var n=this.Sk;jeeplus.$$(n).filterByAll()}},jeeplus.ui.datafilter.multiSelectFilter),jeeplus.ui.datafilter.multiComboFilter=jeeplus.extend({inputtype:"multicombo",inputConfig:{tagMode:!1}},jeeplus.ui.datafilter.multiSelectFilter),jeeplus.ui.datafilter.serverMultiComboFilter=jeeplus.extend({inputtype:"multicombo",inputConfig:{tagMode:!1}},jeeplus.ui.datafilter.serverMultiSelectFilter),jeeplus.ui.datafilter.datepickerFilter=jeeplus.extend({prepare:function(e){return e||""},compare:function(e,t){return 1*e==1*t},inputtype:"datepicker"},jeeplus.ui.datafilter.richSelectFilter),jeeplus.ui.datafilter.columnGroup={getValue:function(){},setValue:function(){},getHelper:function(e,t){return{open:function(){t.closed=!0,e.onclick()},close:function(){t.closed=!1,e.onclick()},isOpened:function(){return t.closed}}},refresh:function(i,e,n){e.onclick=function(e){jeeplus.html.stopEvent(e);var t=this.firstChild.firstChild;n.closed?(n.closed=!1,t.className="jeeplus_tree_open"):(n.closed=!0,t.className="jeeplus_tree_close"),jeeplus.delay(function(){i.callEvent("onColumnGroupCollapse",[n.columnId,n.batch,!n.closed]),i.showColumnBatch(n.batch,!n.closed)})},n.firstRun||(n.firstRun=1,n.closed&&i.showColumnBatch(n.batch,!1))},render:function(e,t){return"<div role='button' tabindex='0' aria-label='"+jeeplus.i18n.aria[t.closed?"openGroup":"closeGroup"]+"' class='"+(t.closed?"jeeplus_tree_close":"jeeplus_tree_open")+"'></div>&nbsp;"+(t.groupText||"")}},jeeplus.ui.datafilter.dateRangeFilter=jeeplus.extend({prepare:function(e){return e.start||e.end?jeeplus.ui.daterange.prototype.SD(e):""},compare:function(e,t){return(!t.start||e>=t.start)&&(!t.end||e<=t.end)},inputtype:"daterangepicker"},jeeplus.ui.datafilter.richSelectFilter),jeeplus.ui.datafilter.serverDateRangeFilter=jeeplus.extend({$server:!0},jeeplus.ui.datafilter.dateRangeFilter),jeeplus.editors.$popup.multiselect={view:"multisuggest",suggest:{button:!0}},jeeplus.Canvas=jeeplus.proto({$init:function(e){this.Wn=[],this.AE=jeeplus.isUndefined(e.series)?e.name:e.series,this.tg=jeeplus.toNode(e.container||e);var t=e.width*(window.devicePixelRatio||1),i=e.height*(window.devicePixelRatio||1),n=e.style||"";n+=";width:"+e.width+"px;height:"+e.height+"px;",this.Yn(e.name,n,t,i,e.title)},Yn:function(e,t,i,n,s){return this.Zn=jeeplus.html.create("canvas",{title:s,width:i,height:n,canvas_id:e,style:t||""}),this.tg.appendChild(this.Zn),this.Zn.getContext||jeeplus.env.isIE&&(jeeplus.require("legacy/excanvas/excanvas.js",!0),G_vmlCanvasManager.init_(document),G_vmlCanvasManager.initElement(this.Zn)),this.Zn},getCanvas:function(e){var t=(this.Zn||this.Yn(this.w)).getContext(e||"2d");return this.$n||(this.$n=!0,t.scale(window.devicePixelRatio||1,window.devicePixelRatio||1)),t},_n:function(e,t){this.Zn&&(this.Zn.setAttribute("width",e*(window.devicePixelRatio||1)),this.Zn.setAttribute("height",t*(window.devicePixelRatio||1)),this.Zn.style.width=e+"px",this.Zn.style.height=t+"px",this.$n=!1)},renderText:function(e,t,i,n,s){if(i){s&&(s=Math.max(s,0)),t&&(t=Math.max(t,0));var a=jeeplus.html.create("DIV",{class:"jeeplus_canvas_text"+(n?" "+n:""),style:"left:"+e+"px; top:"+t+"px;","aria-hidden":"true"},i);return this.tg.appendChild(a),this.Wn.push(a),s&&(a.style.width=s+"px"),a}},renderTextAt:function(e,t,i,n,s,a,r){var o=this.renderText.call(this,i,n,s,a,r);return o&&(e&&(o.style.top="middle"==e?parseInt(n-o.offsetHeight/2,10)+"px":n-o.offsetHeight+"px"),t&&(o.style.left="left"==t?i-o.offsetWidth+"px":parseInt(i-o.offsetWidth/2,10)+"px")),o},clearCanvas:function(e){var t=[];if(jeeplus.html.remove(this.Wn),this.Wn=[],!e&&this.tg.t){for(t=this.ao();t.length;)t[0].parentNode.removeChild(t[0]),t.splice(0,1);t=null,this.tg.t.getElementsByTagName("AREA").length||(this.tg.t.parentNode.removeChild(this.tg.t),this.tg.t=null)}this.getCanvas().clearRect(0,0,this.Zn.offsetWidth||Math.floor(this.Zn.width/(window.devicePixelRatio||1)),this.Zn.offsetHeight||Math.floor(this.Zn.height/(window.devicePixelRatio||1)))},toggleCanvas:function(){this.bo("none"==this.Zn.style.display)},showCanvas:function(){this.bo(!0)},hideCanvas:function(){this.bo(!1)},bo:function(e){var t,i;for(i=0;i<this.Wn.length;i++)this.Wn[i].style.display=e?"":"none";if(this.tg.t)for(t=this.ao(),i=0;i<t.length;i++)e?t[i].removeAttribute("disabled"):t[i].setAttribute("disabled","true");this.Zn.style.display=e?"":"none"},ao:function(){var e,t,i=[];for(e=this.tg.t.getElementsByTagName("AREA"),t=0;t<e.length;t++)e[t].getAttribute("userdata")==this.AE&&i.push(e[t]);return i}}),jeeplus.color={co:["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"],toHex:function(e,t){e=parseInt(e,10);for(var i="";0<e;)i=this.co[e%16]+i,e=Math.floor(e/16);for(;i.length<t;)i="0"+i;return i},rgbToHex:function(e){var t=[];return"string"==typeof e?e.replace(/[\d+\.]+/g,function(e){t.push(parseFloat(e))}):jeeplus.isArray(e)&&(t=e),0===t[3]?"":t.slice(0,3).map(function(e){return jeeplus.color.toHex(Math.floor(e),2)}).join("")},hexToDec:function(e){return parseInt(e,16)},toRgb:function(e){var t,i,n,s;return"string"!=typeof e?(t=e[0],i=e[1],n=e[2]):-1!=e.indexOf("rgb")?(t=(s=e.substr(e.indexOf("(")+1,e.lastIndexOf(")")-e.indexOf("(")-1).split(","))[0],i=s[1],n=s[2]):("#"==e.substr(0,1)&&(e=e.substr(1)),t=this.hexToDec(e.substr(0,2)),i=this.hexToDec(e.substr(2,2)),n=this.hexToDec(e.substr(4,2))),((t=parseInt(t,10)||0)<0||255<t)&&(t=0),((i=parseInt(i,10)||0)<0||255<i)&&(i=0),((n=parseInt(n,10)||0)<0||255<n)&&(n=0),[t,i,n]},hsvToRgb:function(e,t,i){var n,s,a,r,o,l,h,u;switch(a=i*(1-t),r=i*(1-(s=e/60-(n=Math.floor(e/60)%6))*t),o=i*(1-(1-s)*t),u=h=l=0,n){case 0:l=i,h=o,u=a;break;case 1:l=r,h=i,u=a;break;case 2:l=a,h=i,u=o;break;case 3:l=a,h=r,u=i;break;case 4:l=o,h=a,u=i;break;case 5:l=i,h=a,u=r}return[l=Math.floor(255*l),h=Math.floor(255*h),u=Math.floor(255*u)]},rgbToHsv:function(e,t,i){var n,s,a,r,o,l,h;return n=e/255,s=t/255,a=i/255,r=Math.min(n,s,a),l=0,(h=o=Math.max(n,s,a))==r?l=0:o==n&&a<=s?l=60*(s-a)/(o-r)+0:o==n&&s<a?l=60*(s-a)/(o-r)+360:o==s?l=60*(a-n)/(o-r)+120:o==a&&(l=60*(n-s)/(o-r)+240),[l,0===o?0:1-r/o,h]}},jeeplus.HtmlMap=jeeplus.proto({$init:function(e){this.ad="map_"+jeeplus.uid(),this.U=e,this.eo=[],this.sA=[]},addRect:function(e,t,i){this.fo(e,"RECT",t,i)},addPoly:function(e,t,i){this.fo(e,"POLY",t,i)},fo:function(e,t,i,n){var s="";4==arguments.length&&(s="userdata='"+n+"'"),this.eo.push("<area "+this.U+"='"+e+"' shape='"+t+"' coords='"+i.join()+"' "+s+"></area>"),this.sA.push({index:n,points:i})},addSector:function(e,t,i,n,s,a,r,o){var l=[];l.push(n),l.push(Math.floor(s*r));for(var h=t;h<i;h+=Math.PI/18)l.push(Math.floor(n+a*Math.cos(h))),l.push(Math.floor((s+a*Math.sin(h))*r));return l.push(Math.floor(n+a*Math.cos(i))),l.push(Math.floor((s+a*Math.sin(i))*r)),l.push(n),l.push(Math.floor(s*r)),this.addPoly(e,l,o)},hide:function(e,t,i){if(e.querySelectorAll)for(var n=e.querySelectorAll('area[userdata="'+t+'"]'),s=0;s<n.length;s++){var a=n[s];i?a.getAttribute("coords")&&(a.coordsdis=a.getAttribute("coords"),a.setAttribute("coords",""),a.coords=""):i||a.coordsdis&&(a.setAttribute("coords",a.coordsdis),a.coords=a.coordsdis,a.coordsdis=""),n[s].style.display=i?"none":""}},render:function(e){var t=jeeplus.html.create("DIV");t.style.cssText="position:absolute; width:100%; height:100%; top:0px; left:0px;",e.appendChild(t);var i=jeeplus.env.isIE?"":"src='data:image/gif;base64,R0lGODlhEgASAIAAAP///////yH5BAUUAAEALAAAAAASABIAAAIPjI+py+0Po5y02ouz3pwXADs='";t.innerHTML="<map id='"+this.ad+"' name='"+this.ad+"'>"+this.eo.join("\n")+"</map><img "+i+" class='jeeplus_map_img' usemap='#"+this.ad+"'>",e.t=t,this.eo=[]}}),jeeplus.protoUI({name:"chart",$init:function(e){if(this.go=[this.s],this.ho=[],this.w.className+=" jeeplus_chart",this.$ready.push(this.Mi),e.preset&&this.io(e),e.series){var t=e.series;delete e.series,e.series=t}this.attachEvent("onMouseMove",this.tA),this.data.provideApi(this,!0)},Mi:function(){this.data.attachEvent("onStoreUpdated",jeeplus.bind(function(){this.render.apply(this,arguments)},this))},defaults:{ariaLabel:"chart",color:"default",alpha:"1",label:!1,value:"{obj.value}",padding:{},type:"pie",lineColor:"#ffffff",cant:.5,barWidth:30,line:{width:2,color:"#1293f8"},item:{radius:3,borderColor:"#636363",borderWidth:1,color:"#ffffff",alpha:1,type:"r",shadow:!1},shadow:!0,gradient:!1,border:!0,labelOffset:20,origin:"auto",scale:"linear"},ad:"jeeplus_area_id",on_click:{jeeplus_chart_legend_item:function(e,t,i){var n=i.getAttribute("series_id");if(this.callEvent("onLegendClick",[e,n,i])&&void 0!==n&&1<this.go.length){var s=this.s,a=s.legend.values;(a&&a[n].toggle||s.legend.toggle)&&(-1!=i.className.indexOf("hidden")?this.showSeries(n):this.hideSeries(n))}}},on_dblclick:{},on_mouse_move:{},locate:function(e){return jeeplus.html.locate(e,this.ad)},$setSize:function(e,t){var i=jeeplus.ui.view.prototype.$setSize.call(this,e,t);if(i){for(var n in this.canvases)this.canvases[n]._n(this.bc,this.dc);this.render()}return i},type_setter:function(e){return void 0===this.s.offset&&(this.s.offset=!(-1!=e.toLowerCase().indexOf("area"))),"radar"!=e||this.s.yAxis||this.define("yAxis",{}),"scatter"==e&&(this.s.yAxis||this.define("yAxis",{}),this.s.xAxis||this.define("xAxis",{})),e},destructor:function(){this.removeAllSeries(),jeeplus.Destruction.destructor.apply(this,arguments)},removeAllSeries:function(){this.clearCanvas(),this.ko&&(this.ko.innerHTML="",this.ko.parentNode.removeChild(this.ko),this.ko=null),this.canvases&&(this.canvases={}),this.w.innerHTML="";for(var e=0;e<this.go.length;e++)this.go[e].tooltip&&this.go[e].tooltip.destructor();this.go=[]},clearCanvas:function(){if(this.canvases&&"object"==typeof this.canvases)for(var e in this.canvases)this.canvases[e].clearCanvas()},render:function(e,t,i){var n,s,a;if(this.isVisible(this.s.id)&&(t=this.oo(),this.callEvent("onBeforeRender",[t,i]))){if(this.canvases&&"object"==typeof this.canvases)for(o in this.canvases)this.canvases[o].clearCanvas();else this.canvases={};if(this.s.legend&&(this.canvases.legend||(this.canvases.legend=this.lo("legend")),this.mo(this.data.getRange(),this.bc,this.dc)),this.eo=s=new jeeplus.HtmlMap(this.ad),a=this.s,n=this.no(this.bc,this.dc),this.go)for(o=0;o<this.go.length;o++)this.s=this.go[o],this.canvases[o]||(this.canvases[o]=this.lo(this.name+" "+o,"z-index:"+(2+o),null,o,this.s.ariaLabel)),this["$render_"+this.s.type](this.canvases[o].getCanvas(),t,n.start,n.end,o,s);if(s.render(this.w),this.w.lastChild.style.zIndex=100,this.po(this.w.lastChild,n),this.callEvent("onAfterRender",[t]),this.s=a,this.s.legend&&this.s.legend.values)for(var r=this.s.legend.values,o=0;o<r.length;o++)r[o].$hidden&&this.hideSeries(o)}},po:function(e,t){var i={};for(var n in i.left=t.start.x,i.top=t.start.y,i.width=t.end.x-t.start.x,i.height=t.end.y-t.start.y,i)e.style[n]=i[n]+"px"},oo:function(){var e,t,i,n,s,a,r,o,l,h;if(n=this.data.getRange(),e=-1!=this.s.type.toLowerCase().indexOf("barh")?"yAxis":"xAxis",(t=this.s[e])&&t.units&&"object"==typeof t.units){if(o=[],void 0!==(i=t.units).start&&void 0!==i.end&&void 0!==i.next)for(r=i.start;r<=i.end;)o.push(r),r=i.next.call(this,r);else"[object Array]"===Object.prototype.toString.call(i)&&(o=i);if(a=[],o.length){for(l=t.value,h={},s=0;s<n.length;s++)h[l(n[s])]=s;for(s=0;s<o.length;s++)void 0!==h[o[s]]?(n[h[o[s]]].$unit=o[s],a.push(n[h[o[s]]])):a.push({$unit:o[s]})}return a}return n},series_setter:function(e){if("object"!=typeof e);else{this.e(e.length?e[0]:e),this.go=[this.s];for(var t=1;t<e.length;t++)this.addSeries(e[t])}return e},value_setter:jeeplus.template,xValue_setter:jeeplus.template,yValue_setter:function(e){this.define("value",e)},alpha_setter:jeeplus.template,label_setter:jeeplus.template,lineColor_setter:jeeplus.template,borderColor_setter:jeeplus.template,pieInnerText_setter:jeeplus.template,gradient_setter:function(e){return"function"!=typeof e&&e&&!0===e&&(e="light"),e},colormap:{RAINBOW:function(e){var t=Math.floor(this.getIndexById(e.id)/this.count()*1536);return 1536==t&&(t-=1),this.qo[Math.floor(t/256)](t%256)},default:function(e){var t=this.count(),i=this.qC.length,n=this.getIndexById(e.id);return t<i?(n&&(n=n<i-t?this.rC+2:this.rC+1),this.rC=n):n%=i,this.qC[n]}},color_setter:function(e){return this.colormap[e]||jeeplus.template(e)},fill_setter:function(e){return!(!e||"0"==e)&&jeeplus.template(e)},io:function(e){this.define("preset",e.preset),delete e.preset},preset_setter:function(e){var t,i,n;if(this.defaults=jeeplus.extend({},this.defaults),"object"==typeof(n=this.presets[e])){for(t in n)if("object"==typeof n[t])if(this.defaults[t]&&"object"==typeof this.defaults[t])for(i in this.defaults[t]=jeeplus.extend({},this.defaults[t]),n[t])this.defaults[t][i]=n[t][i];else this.defaults[t]=jeeplus.extend({},n[t]);else this.defaults[t]=n[t];return e}return!1},legend_setter:function(e){return e?("object"!=typeof e&&(e={template:e}),this.E(e,{width:150,height:18,layout:"y",align:"left",valign:"bottom",template:"",toggle:-1!=this.s.type.toLowerCase().indexOf("stacked")?"":"hide",marker:{type:"square",width:15,height:15,radius:3},margin:4,padding:3}),e.template=jeeplus.template(e.template),e):(this.ko&&(this.ko.innerHTML="",this.ko=null),!1)},item_setter:function(e){"object"!=typeof e&&(e={color:e,borderColor:e}),this.E(e,jeeplus.extend({},this.defaults.item));return this.ro(["alpha","borderColor","color","radius"],e),e},line_setter:function(e){return"object"!=typeof e&&(e={color:e}),(e=jeeplus.extend(e,this.defaults.line)).color=jeeplus.template(e.color),e},padding_setter:function(e){return"object"!=typeof e&&(e={left:e,right:e,top:e,bottom:e}),this.E(e,{left:50,right:20,top:35,bottom:40}),e},xAxis_setter:function(e){if(!e)return!1;"object"!=typeof e&&(e={template:e}),this.E(e,{title:"",color:"#000000",lineColor:"#cfcfcf",template:"{obj}",lines:!0});return this.ro(["lineColor","template","lines"],e),this.so=jeeplus.extend({},e),e},yAxis_setter:function(e){this.E(e,{title:"",color:"#000000",lineColor:"#cfcfcf",template:"{obj}",lines:!0,bg:"#ffffff"});return this.ro(["lineColor","template","lines","bg"],e),this.to=jeeplus.extend({},e),e},ro:function(e,t){for(var i=0;i<e.length;i++)t[e[i]]=jeeplus.template(t[e[i]])},lo:function(e,t,i,n,s){var a={container:i||this.w,name:e,title:jeeplus.isUndefined(s)?e:s||"",series:n,style:t||"",width:this.bc,height:this.dc};return new jeeplus.Canvas(a)},uo:function(e,t,i,n,s,a){var r,o=0;return this.s.yAxis&&(this.canvases.y||(this.canvases.y=this.lo("axis_y")),o=this.vo(this.canvases.y.getCanvas(),e,t,i,n,s)),this.s.xAxis&&(this.canvases.x||(this.canvases.x=this.lo("axis_x")),r=this.canvases.x.getCanvas(),this.callEvent("onBeforeXAxis",[r,e,t,i,a,o])&&this.wo(r,e,t,i,a,o)),o},wo:function(e,t,i,n,s,a){var r,o,l=this.s,h=i.x-.5,u=parseInt(a||n.y,10)+.5,d=n.x,c=!0,p="stackedBar"==l.type?n.y+.5:u;for(r=0;r<t.length;r++){!0===l.offset?o=h+s/2+r*s:(o=r!=t.length-1||l.cellWidth?h+r*s:n.x,c=!!r),o=Math.ceil(o)-.5;var f="auto"!=l.origin&&"bar"==l.type&&parseFloat(l.value(t[r]))<l.origin;this.xo(o,p,t[r],c,f),(l.offset||r||l.cellWidth)&&l.xAxis.lines.call(this,t[r])&&this.yo(e,o,n.y,i.y,t[r])}this.canvases.x.renderTextAt(!0,!1,h,n.y+l.padding.bottom-3,l.xAxis.title,"jeeplus_axis_title_x",n.x-i.x),this.zo(e,h,u,d,u,l.xAxis.color,1),l.xAxis.lines.call(this,{})&&l.offset&&this.zo(e,d+.5,n.y,d+.5,i.y+.5,l.xAxis.color,.2)},vo:function(e,t,i,n,s,a){var r,o={};if(this.s.yAxis){var l=i.x-.5,h=n.y,u=i.y,d=n.y+.5;if(this.s.yAxis.step&&(r=parseFloat(this.s.yAxis.step)),void 0===this.to.step||void 0===this.to.start||void 0===this.to.end?(s=(o=this.Ao(s,a)).start,a=o.end,r=o.step,this.s.yAxis.end=a,this.s.yAxis.start=s):"logarithmic"==this.config.scale&&(this.Bo=!0),this.Co(i,n),0!==r){if(a==s)return h;for(var c=(h-u)*r/(a-s),p=0,f=s;f<=a;f+=r){var m=this.Bo?Math.pow(10,f):f;o.fixNum&&(m=parseFloat(m).toFixed(o.fixNum));var g=Math.floor(h-p*c)+.5;if(f==s&&"auto"==this.s.origin||!this.s.yAxis.lines.call(this,f)||this.zo(e,l,g,n.x,g,this.s.yAxis.lineColor.call(this,f),1),f==this.s.origin&&(d=g),r<1&&!this.Bo){var v=Math.min(Math.floor(this.Do(r)),s<=0?0:Math.floor(this.Do(s))),_=Math.pow(10,-v);f=m=Math.round(m*_)/_}this.canvases.y.renderText(0,g-5,this.s.yAxis.template(m.toString()),"jeeplus_axis_item_y",i.x-5),p++}return this.zo(e,l,h+1,l,u,this.s.yAxis.color,1),d}}},Co:function(e,t){var i="jeeplus_axis_title_y"+(jeeplus.Eo&&9!=jeeplus.Eo?" jeeplus_ie_filter":""),n=this.canvases.y.renderTextAt("middle",!1,0,parseInt((t.y-e.y)/2+e.y,10),this.s.yAxis.title,i);n&&(n.style.left=(jeeplus.env.transform?(n.offsetHeight-n.offsetWidth)/2:0)+"px")},Fo:function(e,t){return{start:Math.floor(this.Do(e)),step:1,end:Math.ceil(this.Do(t))}},uG:function(e){var t=Math.floor(this.Do(e)),i=Math.pow(10,t),n=e/i;return n=5<n?10:5,parseInt(n,10)*i},Ao:function(e,t){if(this.Bo=!1,"logarithmic"==this.s.scale){var i=Math.floor(this.Do(e)),n=Math.ceil(this.Do(t));if(0<e&&0<t&&1<n-i)return this.Bo=!0,this.Fo(e,t)}var s,a,r;if("auto"!=this.s.origin&&this.s.origin<e&&(e=this.s.origin),(s=this.uG((t-e)/8||1))>Math.abs(e))a=e<0?-s:0;else{var o=Math.abs(e),l=Math.floor(this.Do(o)),h=o/Math.pow(10,l);for(a=Math.ceil(10*h)/10*Math.pow(10,l)-s,1<o&&.1<s&&(a=Math.ceil(a));e<0?a<=e:e<=a;)a-=s;e<0&&(a=-a-2*s)}10<t-a&&(s=this.uG((t-a)/8||1)),r=a;for(var u=Math.floor(this.Do(s));r<t;)r+=s,r=parseFloat((1*r).toFixed(Math.abs(u)));return{start:a,end:r,step:s,fixNum:u<0?Math.abs(u):0}},Go:function(e,t){var i,n,s=this.data.Df(),a=arguments.length&&"h"==e?this.so:this.to;if(t=t||"value",a&&void 0!==a.end&&void 0!==a.start&&a.step)i=parseFloat(a.end),n=parseFloat(a.start);else if(i=jeeplus.GroupMethods.max(this.go[0][t],s),n=a&&void 0!==a.start?parseFloat(a.start):jeeplus.GroupMethods.min(this.go[0][t],s),1<this.go.length)for(var r=1;r<this.go.length;r++){var o=jeeplus.GroupMethods.max(this.go[r][t],s),l=jeeplus.GroupMethods.min(this.go[r][t],s);i<o&&(i=o),l<n&&(n=l)}return{max:i,min:n}},Do:function(e){return Math.log(e)/Math.LN10},xo:function(e,t,i,n,s){if(this.s.xAxis){var a=this.canvases.x.renderTextAt(s,n,e,t-(s?2:0),this.s.xAxis.template(i));a&&(a.className+=" jeeplus_axis_item_x")}},yo:function(e,t,i,n,s){this.s.xAxis&&this.s.xAxis.lines&&this.zo(e,t,i,t,n,this.s.xAxis.lineColor.call(this,s),1)},zo:function(e,t,i,n,s,a,r){e.strokeStyle=a,e.lineWidth=r,e.beginPath(),e.moveTo(t,i),e.lineTo(n,s),e.stroke(),e.lineWidth=1},Ho:function(e,t){return[t!=e?t-e:e,1]},qo:[function(e){return"#FF"+jeeplus.color.toHex(e/2,2)+"00"},function(e){return"#FF"+jeeplus.color.toHex(e/2+128,2)+"00"},function(e){return"#"+jeeplus.color.toHex(255-e,2)+"FF00"},function(e){return"#00FF"+jeeplus.color.toHex(e,2)},function(e){return"#00"+jeeplus.color.toHex(255-e,2)+"FF"},function(e){return"#"+jeeplus.color.toHex(e,2)+"00FF"}],qC:["#f55b50","#ff6d3f","#ffa521","#ffc927","#ffee54","#d3e153","#9acb61","#63b967","#21a497","#21c5da","#3ea4f5","#5868bf","#7b53c0","#a943ba","#ec3b77","#9eb0b8"],rC:0,addSeries:function(e){var t=jeeplus.extend({},this.s);this.s=jeeplus.extend({},t),this.e(e,{}),this.go.push(this.s),this.s=t},tA:function(e,t,i){var n;if(i.getAttribute("userdata")&&(this.Io=1==this.go.length?this.uA(t):i.getAttribute("userdata"),this.go[this.Io])){for(var s=0;s<this.go.length;s++)(n=this.go[s].tooltip)&&n.disable();i.getAttribute("disabled")||(n=this.go[this.Io].tooltip)&&n.enable()}},uA:function(e){var t,i,n,s,a,r,o,l;for(i=this.eo.sA,s=jeeplus.html.offset(this.w.t),o=(a=jeeplus.html.pos(e)).x-s.x,l=a.y-s.y,n=0;n<i.length;n++)o<=(t=i[n].points)[2]&&o>=t[0]&&l<=t[3]&&l>=t[1]&&(r?i[n].index>r.index&&(r=i[n]):r=i[n]);return r?r.index:0},hideSeries:function(e){this.canvases[e].hideCanvas();var t=this.s.legend;t&&t.values&&t.values[e]&&(t.values[e].$hidden=!0,this.mo()),this.eo.hide(this.w,e,!0)},showSeries:function(e){this.canvases[e].showCanvas();var t=this.s.legend;t&&t.values&&t.values[e]&&(delete t.values[e].$hidden,this.mo()),this.eo.hide(this.w,e,!1)},mo:function(e,t){var i,n,s,a,r,o,l,h,u,d,c,p=0,f=0;if(e=e||[],t=t||this.bc,h=this.canvases.legend.getCanvas(),n=this.s.legend,l="x"!=this.s.legend.layout?"width:"+n.width+"px":"",this.ko&&(this.ko.innerHTML="",this.ko.parentNode.removeChild(this.ko)),this.canvases.legend.clearCanvas(!0),s=jeeplus.html.create("DIV",{class:"jeeplus_chart_legend",style:"left:"+p+"px; top:"+f+"px;"+l},""),n.padding&&(s.style.padding=n.padding+"px"),this.ko=s,this.w.appendChild(s),r=[],n.values)for(i=0;i<n.values.length;i++)r.push(this.Jo(s,n.values[i].text,void 0!==n.values[i].id?typeof n.values[i].id:i,n.values[i].$hidden));else for(i=0;i<e.length;i++)r.push(this.Jo(s,n.template(e[i]),e[i].id));for(0===s.offsetWidth&&(s.style.width="auto"),o=s.offsetWidth,a=s.offsetHeight,o<t&&("x"==n.layout&&"center"==n.align&&(p=(t-o)/2),"right"==n.align&&(p=t-o),n.margin&&"center"!=n.align&&(p+=("left"==n.align?1:-1)*n.margin)),a<this.dc&&("middle"==n.valign&&"center"!=n.align&&"x"!=n.layout?f=(this.dc-a)/2:"bottom"==n.valign&&(f=this.dc-a),n.margin&&"middle"!=n.valign&&(f+=("top"==n.valign?1:-1)*n.margin)),s.style.left=p+"px",s.style.top=f+"px",h.save(),i=0;i<r.length;i++)c=r[i],n.values&&n.values[i].$hidden?(d=!0,u=n.values[i].disableColor?n.values[i].disableColor:"#d9d9d9"):(d=!1,u=n.values?n.values[i].color:this.s.color.call(this,e[i])),this.Ko(h,c.offsetLeft+p,c.offsetTop+f,u,c.offsetHeight,d,i);h.restore(),r=null},Jo:function(e,t,i,n){var s="";"x"==this.s.legend.layout&&(s="float:left;");var a=jeeplus.html.create("DIV",{style:s+"padding-left:"+(10+this.s.legend.marker.width)+"px",class:"jeeplus_chart_legend_item"+(n?" hidden":""),role:"button",tabindex:"0","aria-label":jeeplus.i18n.aria[(n?"show":"hide")+"Chart"]+" "+t},t);return 2<arguments.length&&a.setAttribute("series_id",i),e.appendChild(a),a},Ko:function(e,t,i,n,s,a,r){var o=[],l=this.s.legend.marker,h=this.s.legend.values,u=h&&h[r].markerType?h[r].markerType:l.type;if(n&&(e.strokeStyle=e.fillStyle=n),"round"!=u&&l.radius)if("item"==u){if(this.s.line&&"scatter"!=this.s.type&&!this.s.disableLines){e.beginPath(),e.lineWidth=this.go[r].line.width,e.strokeStyle=a?n:this.go[r].line.color.call(this,{});var d=t+5,c=i+s/2;e.moveTo(d,c);var p=d+l.width;e.lineTo(p,c),e.stroke()}var f=this.go[r].item,m=parseInt(f.radius.call(this,{}),10)||0;m&&(e.beginPath(),a?(e.lineWidth=f.borderWidth,e.strokeStyle=n,e.fillStyle=n):(e.lineWidth=f.borderWidth,e.fillStyle=f.color.call(this,{}),e.strokeStyle=f.borderColor.call(this,{}),e.globalAlpha=f.alpha.call(this,{})),e.beginPath(),t+=l.width/2+5,i+=s/2,this.Lo(e,t,i,m+1,f.type),e.fill(),e.stroke()),e.globalAlpha=1}else e.beginPath(),e.lineWidth=1,t+=5,i+=s/2-l.height/2,o=[[t+l.radius,i+l.radius,l.radius,Math.PI,3*Math.PI/2,!1],[t+l.width-l.radius,i],[t+l.width-l.radius,i+l.radius,l.radius,-Math.PI/2,0,!1],[t+l.width,i+l.height-l.radius],[t+l.width-l.radius,i+l.height-l.radius,l.radius,0,Math.PI/2,!1],[t+l.radius,i+l.height],[t+l.radius,i+l.height-l.radius,l.radius,Math.PI/2,Math.PI,!1],[t,i+l.radius]],this.Mo(e,o),e.stroke(),e.fill();else{e.beginPath(),e.lineWidth=l.height,e.lineCap=l.type,t+=e.lineWidth/2+5,i+=s/2,e.moveTo(t,i);p=t+l.width-l.height+1;e.lineTo(p,i),e.stroke(),e.fill()}},no:function(e,t){var i,n,s,a;if(i=this.s.padding.left,n=this.s.padding.top,s=e-this.s.padding.right,a=t-this.s.padding.bottom,this.s.legend){var r=this.s.legend,o=this.s.legend.width,l=this.s.legend.height;"x"==r.layout?"center"==r.valign?"right"==r.align?s-=o:"left"==r.align&&(i+=o):"bottom"==r.valign?a-=l:n+=l:"right"==r.align?s-=o:"left"==r.align&&(i+=o)}return{start:{x:i,y:n},end:{x:s,y:a}}},No:function(e){var t,i,n,s,a;if(this.s.yAxis&&void 0!==this.s.yAxis.end&&void 0!==this.s.yAxis.start&&this.s.yAxis.step)n=parseFloat(this.s.yAxis.end),s=parseFloat(this.s.yAxis.start);else{for(t=0;t<e.length;t++)for(e[t].$sum=0,e[t].$min=1/0,i=0;i<this.go.length;i++)a=Math.abs(parseFloat(this.go[i].value(e[t])||0)),isNaN(a)||(-1!=this.go[i].type.toLowerCase().indexOf("stacked")&&(e[t].$sum+=a),a<e[t].$min&&(e[t].$min=a));for(n=-1/0,s=1/0,t=0;t<e.length;t++)e[t].$sum>n&&(n=e[t].$sum),e[t].$min<s&&(s=e[t].$min);0<s&&(s=0)}return{max:n,min:s}},Oo:function(e,t,i,n,s,a,r,o){var l,h,u,d,c,p;return"light"==a?(l="x"==o?e.createLinearGradient(t,i,n,i):e.createLinearGradient(t,i,t,s),p=[[0,"#FFFFFF"],[.9,r],[1,r]],h=2):"falling"==a||"rising"==a?(l="x"==o?e.createLinearGradient(t,i,n,i):e.createLinearGradient(t,i,t,s),u=jeeplus.color.toRgb(r),(d=jeeplus.color.rgbToHsv(u[0],u[1],u[2]))[1]*=.5,c="rgb("+jeeplus.color.hsvToRgb(d[0],d[1],d[2])+")","falling"==a?p=[[0,c],[.7,r],[1,r]]:"rising"==a&&(p=[[0,r],[.3,r],[1,c]]),h=0):(e.globalAlpha=.37,h=0,l="x"==o?e.createLinearGradient(t,s,t,i):e.createLinearGradient(t,i,n,i),p=[[0,"#9d9d9d"],[.3,"#e8e8e8"],[.45,"#ffffff"],[.55,"#ffffff"],[.7,"#e8e8e8"],[1,"#9d9d9d"]]),this.Po(l,p),{gradient:l,offset:h}},Qo:function(e,t,i,n){return e*=-1,{x:t+=Math.cos(e)*n,y:i-=Math.sin(e)*n}},Po:function(e,t){for(var i=0;i<t.length;i++)e.addColorStop(t[i][0],t[i][1])},Mo:function(e,t){var i,n;for(i=0;i<t.length;i++)n=i?"lineTo":"moveTo",2<t[i].length&&(n="arc"),e[n].apply(e,t[i])},Ro:function(e,t,i,n,s){e.addRect(t,[i[0].x-n.x,i[0].y-n.y,i[1].x-n.x,i[1].y-n.y],s)}},jeeplus.Group,jeeplus.AutoTooltip,jeeplus.DataLoader,jeeplus.MouseEvents,jeeplus.EventSystem,jeeplus.ui.view),jeeplus.extend(jeeplus.ui.chart,{$render_pie:function(e,t,i,n,s,a){this.So(e,t,i,n,1,a,s)},So:function(e,t,i,n,s,a,r){if(t.length){var o=this.To(i,n),l=this.s.radius?this.s.radius:o.radius;if(!(l<0)){var h=this.Uo(t),u=this.Vo(h),d=this.Wo(h,u),c=this.s.x?this.s.x:o.x,p=this.s.y?this.s.y:o.y;1==s&&this.s.shadow&&this.Xo(e,c,p,l),p/=s;var f,m=-Math.PI/2,g=[];if(e.scale(1,s),this.s.gradient){var v=1!=s?c+l/3:c,_=1!=s?p+l/3:p;this.Yo(e,c,p,l,v,_)}for(var y=0;y<t.length;y++)if(h[y]){e.strokeStyle=this.s.lineColor.call(this,t[y]),e.beginPath(),e.moveTo(c,p),g.push(m);var b=-Math.PI/2+d[y]-1e-4;e.arc(c,p,l,m,b,!1),e.lineTo(c,p);var x=this.s.color.call(this,t[y]);e.fillStyle=x,e.fill(),this.s.pieInnerText&&this.Zo(c,p,5*l/6,m,b,s,this.s.pieInnerText(t[y],u),!0),this.s.label&&this.Zo(c,p,l+this.s.labelOffset,m,b,s,this.s.label(t[y])),1!=s&&(this.$o(e,c,p,m,b,l,!0),e.fillStyle="#000000",e.globalAlpha=.2,this.$o(e,c,p,m,b,l,!1),e.globalAlpha=1,e.fillStyle=x),a.addSector(t[y].id,m,b,c-i.x,p-i.y/s,l,s,r),m=b}for(e.globalAlpha=.8,y=0;y<g.length;y++)f=this.Qo(g[y],c,p,l),this.zo(e,c,p,f.x,f.y,this.s.lineColor.call(this,t[y]),2);1==s&&(e.lineWidth=2,e.strokeStyle="#ffffff",e.beginPath(),e.arc(c,p,l+1,0,2*Math.PI,!1),e.stroke()),e.globalAlpha=1,e.scale(1,1/s)}}},Uo:function(e){for(var t=[],i=0;i<e.length;i++)t.push(Math.abs(parseFloat(this.s.value(e[i])||0)));return t},Vo:function(e){for(var t=0,i=0;i<e.length;i++)t+=e[i];return t},Wo:function(e,t){var i,n=[],s=0;t=t||this.Vo(e);for(var a=0;a<e.length;a++)i=e[a],n[a]=2*Math.PI*(t?(i+s)/t:1/e.length),s+=i;return n},To:function(e,t){var i=t.x-e.x,n=t.y-e.y;return{x:e.x+i/2,y:e.y+n/2,radius:Math.min(i/2,n/2)}},$o:function(e,t,i,n,s,a,r){if(e.lineWidth=1,n<=0&&0<=s||0<=n&&s<=Math.PI||.003<Math.abs(n-Math.PI)&&n<=Math.PI&&s>=Math.PI){n<=0&&0<=s&&(n=0,r=!1,this._o(e,t,i,a,n,s)),n<=Math.PI&&s>=Math.PI&&(s=Math.PI,r=!1,this._o(e,t,i,a,n,s));var o=(this.s.pieHeight||Math.floor(a/4))/this.s.cant;e.beginPath(),e.arc(t,i,a,n,s,!1),e.lineTo(t+a*Math.cos(s),i+a*Math.sin(s)+o),e.arc(t,i+o,a,s,n,!0),e.lineTo(t+a*Math.cos(n),i+a*Math.sin(n)),e.fill(),r&&e.stroke()}},_o:function(e,t,i,n,s,a){e.beginPath(),e.arc(t,i,n,s,a,!1),e.stroke()},Xo:function(e,t,i,n){e.globalAlpha=.5;for(var s=["#c4c4c4","#c6c6c6","#cacaca","#dcdcdc","#dddddd","#e0e0e0","#eeeeee","#f5f5f5","#f8f8f8"],a=s.length-1;-1<a;a--)e.beginPath(),e.fillStyle=s[a],e.arc(t+1,i+1,n+a,0,2*Math.PI,!0),e.fill();e.globalAlpha=1},ap:function(e){return e.addColorStop(0,"#ffffff"),e.addColorStop(.7,"#7a7a7a"),e.addColorStop(1,"#000000"),e},Yo:function(e,t,i,n,s,a){var r;e.beginPath(),"function"!=typeof this.s.gradient?(r=e.createRadialGradient(s,a,n/4,t,i,n),r=this.ap(r)):r=this.s.gradient(r),e.fillStyle=r,e.arc(t,i,n,0,2*Math.PI,!0),e.fill(),e.globalAlpha=.7},Zo:function(e,t,i,n,s,a,r,o){var l=this.canvases[0].renderText(0,0,r,0,1);if(l){var h=l.scrollWidth;l.style.width=h+"px",e<h&&(h=e);var u=s-n<.2?4:8;o&&(u=h/1.8);var d=n+(s-n)/2;i-=(u-8)/2;var c=-u,p="right";(d>=Math.PI/2&&d<Math.PI||d<=3*Math.PI/2&&d>=Math.PI)&&(c=-h-c+1,p="left");var f=0;!o&&a<1&&0<d&&d<Math.PI&&(f=(this.s.height||Math.floor(i/4))/a);var m=(t+Math.floor((i+f)*Math.sin(d)))*a-8,g=e+Math.floor((i+u/2)*Math.cos(d))+c,v=s<Math.PI/2+.01,_=n<Math.PI/2;_&&v?g=Math.max(g,e+3):_||v?!o&&(d>=Math.PI/2&&d<Math.PI||d<=3*Math.PI/2&&d>=Math.PI)&&(g+=h/3):g=Math.min(g,e-h),l.style.top=m+"px",l.style.left=g+"px",l.style.width=h+"px",l.style.textAlign=p,l.style.whiteSpace="nowrap"}},$render_pie3D:function(e,t,i,n,s,a){this.So(e,t,i,n,this.s.cant,a)},$render_donut:function(e,t,i,n,s,a){if(t.length){this.So(e,t,i,n,1,a,s);var r=this.s,o=this.To(i,n),l=r.radius?r.radius:o.radius,h=r.innerRadius&&r.innerRadius<l?r.innerRadius:l/3,u=r.x?r.x:o.x,d=r.y?r.y:o.y;e.fillStyle="#ffffff",e.beginPath(),e.arc(u,d,h,0,2*Math.PI,!0),e.fill()}}}),jeeplus.extend(jeeplus.ui.chart,{$render_bar:function(e,t,i,n,s,a){var r,o,l,h,u,d,c,p,f,m,g,v,_,y=n.y-i.y;_=!!this.s.yAxis,v=!!this.s.xAxis,u=(h=this.Go()).max,d=h.min,o=(n.x-i.x)/t.length,s||"auto"!=this.s.origin&&!_||this.uo(t,i,n,d,u,o),_&&(u=parseFloat(this.s.yAxis.end),d=parseFloat(this.s.yAxis.start)),c=(f=this.Ho(d,u))[0],p=f[1],g=c?y/c:c,_||"auto"!=this.s.origin&&v||(m=10,g=c?(y-m)/c:m),!s&&"auto"!=this.s.origin&&!_&&this.s.origin>d&&this.wo(e,t,i,n,o,n.y-g*(this.s.origin-d)),r=parseInt(this.s.barWidth,10);var b=0,x=0;for(l=0;l<this.go.length;l++)l==s&&(x=b),"bar"==this.go[l].type&&b++;this.go&&o<r*b+4&&(r=parseInt(o/b-4,10));var w=(o-r*b)/2,M=void 0!==this.s.radius?parseInt(this.s.radius,10):Math.round(r/5),j=!1,k=this.s.gradient;for(k&&"function"!=typeof k?(j=k,k=!1):k&&(k=e.createLinearGradient(0,n.y,0,i.y),this.s.gradient(k)),v||this.zo(e,i.x,n.y+.5,n.x,n.y+.5,"#000000",1),l=0;l<t.length;l++){var L=parseFloat(this.s.value(t[l])||0);this.Bo&&(L=this.Do(L)),u<L&&(L=u),L-=d,L*=p;var S=i.x+w+l*o+(r+1)*x,T=n.y,D=k||this.s.color.call(this,t[l]),C=this.s.border?1:0,Y=this.s.label(t[l]);L==this.s.origin||"auto"==this.s.origin&&this.s.value(t[l])==d?(C=0,Y=""):L<0||this.s.yAxis&&0===L&&!("auto"!=this.s.origin&&this.s.origin>d)?(L=C=0,Y=""):_||"auto"!=this.s.origin&&v||(L+=m/g),e.globalAlpha=this.s.alpha.call(this,t[l]);var E=this.bp(e,i,S,T,r,d,M,g,L,D,k,j,C);j&&this.cp(e,S,T,r,d,M,g,L,D,j,C),C&&this.dp(e,S,T,r,d,M,g,L,D),e.globalAlpha=1,E[0]!=S?this.canvases[s].renderTextAt(!1,!0,S+Math.floor(r/2),E[1],Y):this.canvases[s].renderTextAt(!0,!0,S+Math.floor(r/2),E[3],Y),a.addRect(t[l].id,[S-i.x,E[3]-i.y,E[2]-i.x,E[1]-i.y],s)}},ep:function(e,t,i,n,s,a,r){var o=i;return this.s.xAxis&&"auto"!=this.s.origin&&this.s.origin>r&&(o=i-=(this.s.origin-r)*s,(n-=this.s.origin-r)<0&&(n*=-1,e.translate(t+a,i),e.rotate(Math.PI),i=t=0),i-=.5),{value:n,x0:t,y0:i,start:o}},bp:function(e,t,i,n,s,a,r,o,l,h,u,d,c){e.save(),e.fillStyle=h;var p=this.ep(e,i,n,l,o,s,a),f=this.fp(e,p.x0,p.y0,s,r,o,p.value,c);u&&!d&&e.lineTo(p.x0+c,t.y),e.fill(),e.restore();var m=p.x0,g=p.x0!=i?i+f[0]:f[0];return[m,p.x0!=i?p.start-f[1]-p.y0:p.y0,g,p.x0!=i?p.start-p.y0:f[1]]},gp:function(e,t){var i,n;n=jeeplus.color.toRgb(t),(i=jeeplus.color.rgbToHsv(n[0],n[1],n[2]))[2]/=1.4,t="rgb("+jeeplus.color.hsvToRgb(i[0],i[1],i[2])+")",e.strokeStyle=t,1==e.globalAlpha&&(e.globalAlpha=.9)},dp:function(e,t,i,n,s,a,r,o,l){var h;e.save(),h=this.ep(e,t,i,o,r,n,s),this.gp(e,l),this.fp(e,h.x0,h.y0,n,a,r,h.value,e.lineWidth/2,1),e.stroke(),e.restore()},cp:function(e,t,i,n,s,a,r,o,l,h,u){e.save();var d=this.ep(e,t,i,o,r,n,s),c=this.Oo(e,d.x0,d.y0,d.x0+n,d.y0-r*d.value+2,h,l,"y");e.fillStyle=c.gradient,this.fp(e,d.x0+c.offset,d.y0,n-2*c.offset,a,r,d.value,c.offset+u),e.fill(),e.restore()},fp:function(e,t,i,n,s,a,r,o,l){e.beginPath();var h=0;if(a*r<s){var u=(s-a*r)/s;u<=1&&-1<=u&&(h=-Math.acos(u)+Math.PI/2)}e.moveTo(t+o,i);var d=i-Math.floor(a*r)+s+(s?0:o);s<a*r&&e.lineTo(t+o,d);var c=t+s;s&&0<s&&e.arc(c,d,Math.max(s-o,0),-Math.PI+h,-Math.PI/2,!1);var p=t+n-s-o,f=d-s+(s?o:0);e.lineTo(p,f),s&&0<s&&e.arc(p+o,d,Math.max(s-o,0),-Math.PI/2,0-h,!1);var m=t+n-o;return e.lineTo(m,i),l||e.lineTo(t+o,i),[m,f]}}),jeeplus.extend(jeeplus.ui.chart,{$render_line:function(e,t,i,n,s,a){var r,o,l,h,u,d,c,p,f,m,g,v;if(h=this.hp(e,t,i,n,s),r=this.s,t.length){for(u=r.offset?i.x+.5*h.cellWidth:i.x,l=[],o=0;o<t.length;o++)if((v=this.ip(t[o],i,n,h))||"0"==v){if(c=o?h.cellWidth*o-.5+u:u,f="object"==typeof v?v.y0:v,o&&this.s.fixOverflow){if((g=this.ip(t[o-1],i,n,h)).out&&g.out==v.out)continue;d=h.cellWidth*(o-1)-.5+u,p="object"==typeof g?g.y0:g,g.out&&(m="min"==g.out?n.y:i.y,l.push({x:this.jp(d,c,p,f,m),y:m})),v.out&&(m="min"==v.out?n.y:i.y,l.push({x:this.jp(d,c,p,f,m),y:m}))}v.out||l.push({x:c,y:v,index:o})}for(this.kp=i,o=1;o<=l.length;o++)d=l[o-1].x,p=l[o-1].y,o<l.length&&(c=l[o].x,f=l[o].y,this.zo(e,d,p,c,f,r.line.color.call(this,t[o-1]),r.line.width),r.line&&r.line.shadow&&(e.globalAlpha=.3,this.zo(e,d+2,p+r.line.width+8,c+2,f+r.line.width+8,"#eeeeee",r.line.width+3),e.globalAlpha=1)),void 0!==l[o-1].index&&this.lp(e,d,p,t[l[o-1].index],r.label(t[l[o-1].index]),s,a,i)}},jp:function(e,t,i,n,s){return e+(s-i)*(t-e)/(n-i)},lp:function(e,t,i,n,s,a,r){var o=this.s.item,l=parseInt(o.radius.call(this,n),10)||0,h=this.kp;if(l){if(e.save(),o.shadow){e.lineWidth=1,e.strokeStyle="#bdbdbd",e.fillStyle="#bdbdbd";for(var u=[.1,.2,.3],d=u.length-1;0<=d;d--)e.globalAlpha=u[d],e.strokeStyle="#d0d0d0",e.beginPath(),this.Lo(e,t,i+2*l/3,l+d+1,o.type),e.stroke();e.beginPath(),e.globalAlpha=.3,e.fillStyle="#bdbdbd",this.Lo(e,t,i+2*l/3,l+1,o.type),e.fill()}e.restore(),e.lineWidth=o.borderWidth,e.fillStyle=o.color.call(this,n),e.strokeStyle=o.borderColor.call(this,n),e.globalAlpha=o.alpha.call(this,n),e.beginPath(),this.Lo(e,t,i,l+1,o.type),e.fill(),e.stroke(),e.globalAlpha=1}if(s&&this.canvases[a].renderTextAt(!1,!0,t,i-l-this.s.labelOffset,this.s.label.call(this,n)),r){var c=this.s.eventRadius||l+1;r.addRect(n.id,[t-c-h.x,i-c-h.y,t+c-h.x,i+c-h.y],a)}},Lo:function(e,t,i,n,s){var a=[];if(!s||"square"!=s&&"s"!=s)if(!s||"diamond"!=s&&"d"!=s)a=!s||"triangle"!=s&&"t"!=s?[[t,i,n,0,2*Math.PI,!0]]:[[t,i-n],[t+Math.sqrt(3)*n/2,i+n/2],[t-Math.sqrt(3)*n/2,i+n/2],[t,i-n]];else{var r=1<e.lineWidth?e.lineWidth*Math.sqrt(2)/4:0;a=[[t,i-n],[t+n,i],[t,i+n],[t-n,i],[t+r,i-n-r]]}else a=[[t-(n*=Math.sqrt(2)/2)-e.lineWidth/2,i-n],[t+n,i-n],[t+n,i+n],[t-n,i+n],[t-n,i-n]];this.Mo(e,a)},ip:function(e,t,i,n){var s=n.minValue,a=n.maxValue,r=n.unit,o=n.valueFactor,l=this.s.value(e);this.Bo&&(l=this.Do(l));var h=(parseFloat(l||0)-s)*o;this.s.yAxis||(h+=n.startValue/r);var u=i.y-r*h;return!this.s.fixOverflow||"line"!=this.s.type&&"area"!=this.s.type?(a<l&&(u=t.y),(h<0||l<s)&&(u=i.y)):a<l?u={y:t.y,y0:u,out:"max"}:(h<0||l<s)&&(u={y:i.y,y0:u,out:"min"}),u},hp:function(e,t,i,n,s){var a,r={};r.totalHeight=n.y-i.y,this.s.cellWidth?r.cellWidth=Math.min(n.x-i.x,this.s.cellWidth):r.cellWidth=(n.x-i.x)/(this.s.offset?t.length:t.length-1);var o=!!this.s.yAxis,l=-1!=this.s.type.indexOf("stacked")?this.No(t):this.Go();r.maxValue=l.max,r.minValue=l.min,s||this.uo(t,i,n,r.minValue,r.maxValue,r.cellWidth),o&&(r.maxValue=parseFloat(this.s.yAxis.end),r.minValue=parseFloat(this.s.yAxis.start));var h=this.Ho(r.minValue,r.maxValue);return a=h[0],r.valueFactor=h[1],r.unit=a?r.totalHeight/a:10,r.startValue=0,o||(r.startValue=10,r.unit!=r.totalHeight&&(r.unit=a?(r.totalHeight-r.startValue)/a:10)),r}}),jeeplus.extend(jeeplus.ui.chart,{$render_barH:function(e,t,i,n,s,a){var r,o,l,h,u,d,c,p,f,m,g,v,_,y,b,x,w,M,j,k,L;for(l=(n.y-i.y)/t.length,p=(c=this.Go("h")).max,f=c.min,x=n.x-i.x,L=!!this.s.xAxis,s||this.mp(e,t,i,n,f,p,l),L&&(p=parseFloat(this.s.xAxis.end),f=parseFloat(this.s.xAxis.start)),v=(y=this.Ho(f,p))[0],g=y[1],M=v?x/v:10,L||(b=10,M=v?(x-b)/v:10),(o=parseInt(this.s.barWidth,10))*this.go.length+4>l&&(o=l/this.go.length-4),r=Math.floor((l-o*this.go.length)/2),_=void 0!==this.s.radius?parseInt(this.s.radius,10):Math.round(o/5),m=!1,(u=this.s.gradient)&&"function"!=typeof u?(m=u,u=!1):u&&(u=e.createLinearGradient(i.x,i.y,n.x,i.y),this.s.gradient(u)),L||this.zo(e,i.x-.5,i.y,i.x-.5,n.y,"#000000",1),d=0;d<t.length;d++)if(w=parseFloat(this.s.value(t[d]||0)),this.Bo&&(w=this.Do(w)),w&&!isNaN(w))if(p<w&&(w=p),w-=f,w*=g,j=i.x,k=i.y+r+d*l+(o+1)*s,w<0&&"auto"==this.s.origin||this.s.xAxis&&0===w&&!("auto"!=this.s.origin&&this.s.origin>f))this.canvases[s].renderTextAt("middle","right",j+10,k+o/2+r,this.s.label(t[d]));else{w<0&&"auto"!=this.s.origin&&this.s.origin>f&&(w=0),L||(w+=b/M),h=u||this.s.color.call(this,t[d]),this.s.border&&this.np(e,j,k,o,f,_,M,w,h),e.globalAlpha=this.s.alpha.call(this,t[d]);var S=this.op(e,n,j,k,o,f,_,M,w,h,u,m);m&&this.pp(e,j,k,o,f,_,M,w,h,m),e.globalAlpha=1,S[3]==k?(this.canvases[s].renderTextAt("middle","left",S[0]-5,S[3]+Math.floor(o/2),this.s.label(t[d])),a.addRect(t[d].id,[S[0]-i.x,S[3]-i.y,S[2]-i.x,S[3]+o-i.y],s)):(this.canvases[s].renderTextAt("middle",!1,S[2]+5,S[1]+Math.floor(o/2),this.s.label(t[d])),a.addRect(t[d].id,[S[0]-i.x,k-i.y,S[2]-i.x,S[3]-i.y],s))}},qp:function(e,t,i,n,s,a,r,o,l){var h=0;if(a*r<s){var u=(s-a*r)/s;h=-Math.asin(u)+Math.PI/2}e.moveTo(t,i+o);var d=t+a*r-s-(s?0:o);d=Math.max(t,d),s<a*r&&e.lineTo(d,i+o);var c=i+s;s&&0<s&&e.arc(d,c,s-o,-Math.PI/2+h,0,!1);var p=i+n-s-(s?0:o),f=d+s-(s?o:0);e.lineTo(f,p),s&&0<s&&e.arc(d,p,s-o,0,Math.PI/2-h,!1);var m=i+n-o;return e.lineTo(t,m),l||e.lineTo(t,i+o),[f,m]},mp:function(e,t,i,n,s,a,r){var o=0;this.s.xAxis&&(this.canvases.x||(this.canvases.x=this.lo("axis_x")),o=this.rp(this.canvases.x.getCanvas(),t,i,n,s,a)),this.s.yAxis&&(this.canvases.y||(this.canvases.y=this.lo("axis_y")),this.sp(this.canvases.y.getCanvas(),t,i,n,r,o))},sp:function(e,t,i,n,s,a){if(this.s.yAxis){var r,o=parseInt(a||i.x,10)-.5,l=n.y+.5,h=i.y;this.zo(e,o,l,o,h,this.s.yAxis.color,1);for(var u=0;u<t.length;u++){var d="auto"!=this.s.origin&&"barH"==this.s.type&&parseFloat(this.s.value(t[u]))<this.s.origin;r=h+s/2+u*s,this.canvases.y.renderTextAt("middle",!d&&"left",d?o+5:o-5,r,this.s.yAxis.template(t[u]),"jeeplus_axis_item_y",d?0:o-10),this.s.yAxis.lines.call(this,t[u])&&this.zo(e,i.x,r,n.x,r,this.s.yAxis.lineColor.call(this,t[u]),1)}this.s.yAxis.lines.call(this,{})&&this.zo(e,i.x+.5,h+.5,n.x,h+.5,this.s.yAxis.lineColor.call(this,{}),1),this.Co(i,n)}},rp:function(e,t,i,n,s,a){var r,o={},l=this.s.xAxis;if(l){var h=n.y+.5,u=i.x-.5,d=n.x-.5,c=i.x;if(this.zo(e,u,h,d,h,l.color,1),l.step&&(r=parseFloat(l.step)),(void 0===this.so.step||void 0===this.so.start||void 0===this.so.end)&&(s=(o=this.Ao(s,a)).start,a=o.end,r=o.step,this.s.xAxis.end=a,this.s.xAxis.start=s,this.s.xAxis.step=r),0!==r){for(var p=(d-u)*r/(a-s),f=0,m=s;m<=a;m+=r){var g=this.Bo?Math.pow(10,m):m;o.fixNum&&(g=parseFloat(g).toFixed(o.fixNum));var v=Math.floor(u+f*p)+.5;if(m==s&&"auto"==this.s.origin||!l.lines.call(this,m)||this.zo(e,v,h,v,i.y,this.s.xAxis.lineColor.call(this,m),1),m==this.s.origin&&(c=v+1),r<1&&!this.Bo){var _=Math.min(Math.floor(this.Do(r)),s<=0?0:Math.floor(this.Do(s))),y=Math.pow(10,-_);m=g=Math.round(g*y)/y}this.canvases.x.renderTextAt(!1,!0,v,h+2,l.template(g.toString()),"jeeplus_axis_item_x"),f++}return this.canvases.x.renderTextAt(!0,!1,u,n.y+this.s.padding.bottom-3,this.s.xAxis.title,"jeeplus_axis_title_x",n.x-i.x),l.lines.call(this,{})||this.zo(e,u,i.y-.5,d,i.y-.5,this.s.xAxis.color,.2),c}}},tp:function(e,t,i,n,s,a,r){var o=t;return this.s.yAxis&&"auto"!=this.s.origin&&this.s.origin>r&&(o=t+=(this.s.origin-r)*s,(n-=this.s.origin-r)<0&&(n*=-1,e.translate(t,i+a),e.rotate(Math.PI),t=.5,i=0),t+=.5),{value:n,x0:t,y0:i,start:o}},op:function(e,t,i,n,s,a,r,o,l,h,u,d){e.save();var c=this.tp(e,i,n,l,o,s,a);e.fillStyle=h,e.beginPath();var p=this.qp(e,c.x0,c.y0,s,r,o,c.value,this.s.border?1:0);u&&!d&&e.lineTo(t.x,c.y0+(this.s.border?1:0)),e.fill(),e.restore();var f=c.y0,m=c.y0!=n?n:p[1];return[c.y0!=n?c.start-p[0]:c.start,f,c.y0!=n?c.start:p[0],m]},np:function(e,t,i,n,s,a,r,o,l){e.save();var h=this.tp(e,t,i,o,r,n,s);e.beginPath(),this.gp(e,l),e.globalAlpha=.9,this.qp(e,h.x0,h.y0,n,a,r,h.value,e.lineWidth/2,1),e.stroke(),e.restore()},pp:function(e,t,i,n,s,a,r,o,l,h){e.save();var u=this.tp(e,t,i,o,r,n,s),d=this.Oo(e,u.x0,u.y0+n,u.x0+r*u.value,u.y0,h,l,"x");e.fillStyle=d.gradient,e.beginPath(),this.qp(e,u.x0,u.y0+d.offset,n-2*d.offset,a,r,u.value,d.offset),e.fill(),e.globalAlpha=1,e.restore()}}),jeeplus.extend(jeeplus.ui.chart,{$render_stackedBar:function(e,t,i,n,s,a){var r,o,l,h,u,d,c,p=this.s,f=n.y-i.y,m=!!p.yAxis,g=!!p.xAxis,v=this.No(t),_=0===p.origin;r=v.max,o=v.min;var y=Math.floor((n.x-i.x)/t.length);s||(l=this.uo(t,i,n,o,r,y)),m&&(r=parseFloat(p.yAxis.end),o=parseFloat(p.yAxis.start));var b=this.Ho(o,r);c=b[0],d=b[1];var x=c?f/c:10,w=parseInt(p.barWidth,10);y<w+4&&(w=y-4);var M=Math.floor((y-w)/2),j=!!p.gradient&&p.gradient;g||this.zo(e,i.x,n.y+.5,n.x,n.y+.5,"#000000",1);for(var k=0;k<t.length;k++){var L=Math.abs(parseFloat(p.value(t[k]||0)));this.Bo&&(L=this.Do(L)),h=i.x+M+k*y;var S=_&&L<0;if(s?u=S?t[k].$startYN:t[k].$startY:(u=l-1,t[k].$startY=u,_&&(S&&(u=l+1),t[k].$startYN=l+1)),L&&!isNaN(L)&&(s||_||(L-=o),L*=d,!(u<i.y+1))){var T=this.s.color.call(this,t[k]),D=Math.abs(u-(_?n.y+o*x:n.y))<3;e.globalAlpha=p.alpha.call(this,t[k]),e.fillStyle=e.strokeStyle=p.color.call(this,t[k]),e.beginPath();var C=u-x*L+(D?S?-1:1:0),Y=this.up(e,h-(p.border?.5:0),u,w+(p.border?.5:0),C,0,i.y);if(e.fill(),e.stroke(),j){e.save();var E=this.Oo(e,h,u,h+w,Y[1],j,T,"y");e.fillStyle=E.gradient,e.beginPath(),Y=this.up(e,h+E.offset,u,w-2*E.offset,C,p.border?1:0,i.y),e.fill(),e.restore()}p.border&&(e.save(),"string"==typeof p.border?e.strokeStyle=p.border:this.gp(e,T),e.beginPath(),this.up(e,h-.5,parseInt(u,10)+.5,w+1,parseInt(C,10)+.5,0,i.y,D),e.stroke(),e.restore()),e.globalAlpha=1,this.canvases[s].renderTextAt(!1,!0,h+Math.floor(w/2),Y[1]+(u-Y[1])/2-7,this.s.label(t[k])),a.addRect(t[k].id,[h-i.x,Y[1]-i.y,Y[0]-i.x,t[k][S?"$startYN":"$startY"]-i.y],s),t[k][S?"$startYN":"$startY"]=Y[1]}}},up:function(e,t,i,n,s,a,r,o){e.moveTo(t,i),s<r&&(s=r),e.lineTo(t,s);var l=t+n,h=s;e.lineTo(l,h);var u=t+n;return e.lineTo(u,i),o||e.lineTo(t,i),[u,h]}}),jeeplus.extend(jeeplus.ui.chart,{$render_stackedBarH:function(e,t,i,n,s,a){var r,o,l,h,u=n.x-i.x,d=!!this.s.yAxis,c=this.No(t);r=c.max,o=c.min;var p=Math.floor((n.y-i.y)/t.length);s||this.mp(e,t,i,n,o,r,p),d&&(r=parseFloat(this.s.xAxis.end),o=parseFloat(this.s.xAxis.start));var f=this.Ho(o,r);h=f[0],l=f[1];var m=h?u/h:10,g=0;d||(g=10,m=h?(u-g)/h:10);var v=parseInt(this.s.barWidth,10);p<v+4&&(v=p-4);var _=(p-v)/2,y=!1,b=this.s.gradient;b&&(y=!0),d||this.zo(e,i.x-.5,i.y,i.x-.5,n.y,"#000000",1);var x=0,w=0;for(M=0;M<this.go.length;M++)M==s&&(w=x),"stackedBarH"==this.go[M].type&&x++;for(var M=0;M<t.length;M++){w||(t[M].$startX=i.x);var j=Math.abs(parseFloat(this.s.value(t[M]||0)));r<j&&(j=r),j-=o,j*=l;var k=i.x,L=i.y+_+M*p;if(w?k=t[M].$startX:t[M].$startX=k,j&&!isNaN(j)){d||(j+=g/m);var S=this.s.color.call(this,t[M]);e.globalAlpha=this.s.alpha.call(this,t[M]),e.fillStyle=this.s.color.call(this,t[M]),e.beginPath();var T=this.qp(e,k,L,v,0,m,j,0);if(b&&!y&&e.lineTo(i.x+u,L+(this.s.border?1:0)),e.fill(),y){var D=this.Oo(e,k,L+v,k,L,y,S,"x");e.fillStyle=D.gradient,e.beginPath(),T=this.qp(e,k,L,v,0,m,j,0),e.fill()}this.s.border&&this.np(e,k,L,v,o,0,m,j,S),e.globalAlpha=1,this.canvases[s].renderTextAt("middle",!0,t[M].$startX+(T[0]-t[M].$startX)/2-1,L+(T[1]-L)/2,this.s.label(t[M])),a.addRect(t[M].id,[t[M].$startX-i.x,L-i.y,T[0]-i.x,T[1]-i.y],s),t[M].$startX=T[0]}}}}),jeeplus.extend(jeeplus.ui.chart,{$render_spline:function(e,t,i,n,s,a){var r,o,l,h,u,d,c,p,f,m,g,v,_;if(u=this.hp(e,t,i,n,s),r=this.s,this.kp=i,l=[],t.length){for(p=r.offset?i.x+.5*u.cellWidth:i.x,o=0;o<t.length;o++)((g=this.ip(t[o],i,n,u))||"0"==g)&&(c=o?u.cellWidth*o-.5+p:p,l.push({x:c,y:g,v:this.s.value(t[o]),index:o}));for(d=this.vp(l),o=0;o<l.length;o++){if(f=l[o].x,v=l[o].y,o<l.length-1){for(m=l[o+1].x,_=l[o+1].y,h=f;h<m;h++){var y=this.wp(h,f,o,d.a,d.b,d.c,d.d);y<i.y&&(y=i.y),y>n.y&&(y=n.y);var b=this.wp(h+1,f,o,d.a,d.b,d.c,d.d);b<i.y&&(b=i.y),b>n.y&&(b=n.y),this.zo(e,h,y,h+1,b,r.line.color(t[o]),r.line.width)}this.zo(e,m-1,this.wp(h,f,o,d.a,d.b,d.c,d.d),m,_,r.line.color(t[o]),r.line.width)}this.lp(e,f,v,t[l[o].index],r.label(t[l[o].index]),s,a)}}},vp:function(e){var t,i,n,s,a,r,o,l,h=[],u=[],d=e.length;for(a=0;a<d-1;a++)h[a]=e[a+1].x-e[a].x,u[a]=(e[a+1].y-e[a].y)/h[a];for(l=[],(o=[])[0]=0,o[1]=2*(h[0]+h[1]),l[0]=0,l[1]=6*(u[1]-u[0]),a=2;a<d-1;a++)o[a]=2*(h[a-1]+h[a])-h[a-1]*h[a-1]/o[a-1],l[a]=6*(u[a]-u[a-1])-h[a-1]*l[a-1]/o[a-1];for((r=[])[d-1]=r[0]=0,a=d-2;1<=a;a--)r[a]=(l[a]-h[a]*r[a+1])/o[a];for(t=[],i=[],n=[],s=[],a=0;a<d-1;a++)t[a]=e[a].y,i[a]=-h[a]*r[a+1]/6-h[a]*r[a]/3+(e[a+1].y-e[a].y)/h[a],n[a]=r[a]/2,s[a]=(r[a+1]-r[a])/(6*h[a]);for(a=0;a<e.length-1;a++)0===e[a].v&&0===e[a+1].v&&(t[a]=e[a].y,s[a]=n[a]=i[a]=0);return{a:t,b:i,c:n,d:s}},wp:function(e,t,i,n,s,a,r){return n[i]+(e-t)*(s[i]+(e-t)*(a[i]+(e-t)*r[i]))}}),jeeplus.extend(jeeplus.ui.chart,{$render_area:function(e,t,i,n,s,a){var r,o,l,h,u,d,c,p,f,m,g,v,_,y,b;if(d=this.hp(e,t,i,n,s),h=(o=this.s).eventRadius||Math.floor(d.cellWidth/2),t.length){for(c=[],m=o.offset?i.x+.5*d.cellWidth:i.x,l=0;l<t.length;l++)if(u=t[l],f=this.ip(u,i,n,d),_=m+d.cellWidth*l,f){if(y="object"==typeof f?f.y0:f,l&&this.s.fixOverflow){if((p=this.ip(t[l-1],i,n,d)).out&&p.out==f.out)continue;g=d.cellWidth*(l-1)-.5+m,v="object"==typeof p?p.y0:p,p.out&&(b="min"==p.out?n.y:i.y,c.push([this.jp(g,_,v,y,b),b])),f.out&&(b="min"==f.out?n.y:i.y,c.push([this.jp(g,_,v,y,b),b]),l==t.length-1&&b==i.y&&c.push([_,i.y]))}f.out||(c.push([_,y]),a.addRect(u.id,[_-h-i.x,y-h-i.y,_+h-i.x,y+h-i.y],s)),o.yAxis||(r=o.offset||l!=t.length-1?"center":"left",this.canvases[s].renderTextAt(!1,r,_,y-o.labelOffset,o.label(u)))}c.length&&(c.push([_,n.y]),c.push([c[0][0],n.y])),e.globalAlpha=this.s.alpha.call(this,t[0]),e.fillStyle=this.s.color.call(this,t[0]),e.beginPath(),this.Mo(e,c),e.fill(),e.lineWidth=1,e.globalAlpha=1,o.border&&(e.lineWidth=o.borderWidth||1,o.borderColor?e.strokeStyle=o.borderColor.call(this,t[0]):this.gp(e,e.fillStyle),e.beginPath(),this.Mo(e,c),e.stroke())}},$render_stackedArea:function(e,i,t,n,s,a){var r,o,l,h,u,d,c,p,f,m,g,v,_,y,b,x,w;if(f=this.hp(e,i,t,n,s),c=(h=this.s).eventRadius||Math.floor(f.cellWidth/2),i.length){m=[],_=[],g=h.offset?t.x+.5*f.cellWidth:t.x;var M=function(e,t){return s?i[e].$startY?t-n.y+i[e].$startY:0:t};for(u=0;u<i.length;u++)p=i[u],u?g+=f.cellWidth:(v=M(u,n.y),m.push([g,v])),v=M(u,this.ip(p,t,n,f)),_.push(isNaN(v)&&!u?i[u].$startY||n.y:v),v&&(m.push([g,v]),a.addRect(p.id,[g-c-t.x,v-c-t.y,g+c-t.x,v+c-t.y],s),h.yAxis||(h.offset,l="center",this.canvases[s].renderTextAt(!1,l,g,v-h.labelOffset,h.label(p))));if(m.push([g,M(u-1,n.y)]),s)for(u=i.length-2;0<u;u--)g-=f.cellWidth,(v=i[u].$startY)&&m.push([g,v]);for(m.push([m[0][0],m[0][1]]),e.globalAlpha=this.s.alpha.call(this,i[0]),e.fillStyle=this.s.color.call(this,i[0]),e.beginPath(),this.Mo(e,m),e.fill(),u=0;u<i.length;u++){if(!(v=_[u]))for(u==i.length-1&&(v=i[u].$startY),d=u+1;d<i.length;d++)if(_[d]){r={x:t.x,y:_[0]},o={x:t.x+f.cellWidth*d,y:_[d]},y=t.x+f.cellWidth*u,void 0,v=(w=((x=o).y-(b=r).y)/(x.x-b.x))*y+b.y-w*b.x;break}i[u].$startY=v}}}}),jeeplus.extend(jeeplus.ui.chart,{$render_radar:function(e,t,i,n,s,a){this.xp(e,t,i,n,s,a)},xp:function(e,t,i,n,s,a){if(t.length){for(var r=this.To(i,n),o=this.s.radius?this.s.radius:r.radius,l=this.s.x?this.s.x:r.x,h=this.s.y?this.s.y:r.y,u=[],d=0;d<t.length;d++)u.push(1);var c=this.Wo(u,t.length);this.kp=i,s||this.yp(c,l,h,o,t),this.zp(e,c,l,h,o,t,s,a)}},zp:function(e,t,i,n,s,a,r,o){var l,h,u,d,c,p,f,m,g,v,_,y,b,x,w,M,j,k,L;for(c=(u=this.s).yAxis.start,p=u.yAxis.end,k=(y=(L=this.Ho(c,p))[0])?s/y:s/2,j=L[1],l=h=b=-Math.PI/2,g=[],d=m=0;d<a.length;d++)M?w=M:(x=u.value(a[d]),this.Bo&&(x=this.Do(x)),w=(parseFloat(x||0)-c)*j),v=Math.floor(k*w),x=u.value(d!=a.length-1?a[d+1]:a[0]),this.Bo&&(x=this.Do(x)),M=(parseFloat(x||0)-c)*j,_=Math.floor(k*M),l=h,h=d!=a.length-1?b+t[d]-1e-4:b,f=m||this.Qo(l,i,n,v),m=this.Qo(h,i,n,_),g.push(f);u.fill&&this.Ap(e,g,a),!u.disableLines&&2<a.length&&this.Bp(e,g,a),(!u.disableItems||a.length<3)&&this.Cp(e,g,a,r,o),g=null},Cp:function(e,t,i,n,s){for(var a=0;a<t.length;a++)this.lp(e,t[a].x,t[a].y,i[a],this.s.label.call(this,i),n,s)},Ap:function(e,t,i){var n,s;e.globalAlpha=this.s.alpha.call(this,{}),e.beginPath();for(var a=0;a<t.length;a++)e.fillStyle=this.s.fill.call(this,i[a]),n=t[a],s=t[a+1]||t[0],a||e.moveTo(n.x,n.y),e.lineTo(s.x,s.y);e.fill(),e.globalAlpha=1},Bp:function(e,t,i){for(var n,s,a=0;a<t.length;a++)n=t[a],s=t[a+1]||t[0],this.zo(e,n.x,n.y,s.x,s.y,this.s.line.color.call(this,i[a]),this.s.line.width)},yp:function(e,t,i,n,s){var a=this.s.yAxis,r=this.s.xAxis,o=a.start,l=a.end,h=a.step,u={},d=this.to;if(void 0===d.step||void 0===d.start||void 0===d.end){var c=this.Go();o=(u=this.Ao(c.min,c.max)).start,l=u.end,h=u.step,a.end=l,a.start=o}var p,f,m,g,v,_=[],y=0,b=n*h/(l-o);h<1&&(g=Math.min(this.Do(h),o<=0?0:this.Do(o)),v=Math.pow(10,-g));var x=[];this.canvases.scale||(this.canvases.scale=this.lo("radar_scale"));var w=this.canvases.scale.getCanvas();for(p=l;o<=p;p-=h){var M=this.Bo?Math.pow(10,p):p;u.fixNum&&(M=parseFloat(p).toFixed(u.fixNum)),_.push(Math.floor(y*b)+.5),v&&!this.Bo&&(p=M=Math.round(M*v)/v);var j=i-n+_[_.length-1];if(this.canvases.scale.renderTextAt("middle","left",t,j,a.template(M.toString()),"jeeplus_axis_item_y jeeplus_radar"),e.length<2)return void this.Dp(w,"arc",t,i,n-_[_.length-1],-Math.PI/2,3*Math.PI/2,p);var k,L=-Math.PI/2,S=L;for(f=0;f<e.length;f++)y||x.push(S),k=L+e[f]-1e-4,this.Dp(w,2<e.length?d.lineShape||"line":"arc",t,i,n-_[_.length-1],S,k,p,f,s[p]),S=k;y++}for(p=0;p<x.length;p++)m=this.Qo(x[p],t,i,n),r.lines.call(this,s[p],p)&&this.zo(w,t,i,m.x,m.y,r?r.lineColor.call(this,s[p]):"#cfcfcf",1),this.Ep(w,t,i,n,x[p],r?r.template.call(this,s[p]):"&nbsp;")},Dp:function(e,t,i,n,s,a,r,o,l){var h,u;if(s<0)return!1;h=this.Qo(a,i,n,s),u=this.Qo(r,i,n,s);var d=this.s.yAxis;d.bg&&(e.beginPath(),e.moveTo(i,n),"arc"==t?e.arc(i,n,s,a,r,!1):(e.lineTo(h.x,h.y),e.lineTo(u.x,u.y)),e.fillStyle=d.bg(o,l),e.moveTo(i,n),e.fill(),e.closePath()),d.lines.call(this,o)&&(e.lineWidth=1,e.beginPath(),"arc"==t?e.arc(i,n,s,a,r,!1):(e.moveTo(h.x,h.y),e.lineTo(u.x,u.y)),e.strokeStyle=d.lineColor.call(this,o),e.stroke())},Ep:function(e,t,i,n,s,a){if(!a)return!1;var r=this.canvases.scale.renderText(0,0,a,"jeeplus_axis_radar_title",1),o=r.scrollWidth,l=r.offsetHeight,h=this.Qo(s,t,i,n+5),u=0,d=0;(s<0||s>Math.PI)&&(d=-l),s>Math.PI/2&&(u=-o),Math.abs(s+Math.PI/2)<.001||Math.abs(s-Math.PI/2)<.001?u=-o/2:(Math.abs(s)<.001||Math.abs(s-Math.PI)<.001)&&(d=-l/2),r.style.top=h.y+d+"px",r.style.left=h.x+u+"px",r.style.width=o+"px",r.style.whiteSpace="nowrap"}}),jeeplus.extend(jeeplus.ui.chart,{$render_scatter:function(e,t,i,n,s,a){if(!this.s.xValue)return!1;var r=this.Go(),o=this.Go("h","xValue");s||(this.canvases.x||(this.canvases.x=this.lo("axis_x")),this.canvases.y||(this.canvases.y=this.lo("axis_y")),this.vo(this.canvases.y.getCanvas(),t,i,n,r.min,r.max),this.rp(this.canvases.x.getCanvas(),t,i,n,o.min,o.max)),r={min:this.s.yAxis.start,max:this.s.yAxis.end},o={min:this.s.xAxis.start,max:this.s.xAxis.end};var l=this.Fp(e,t,i,n,o,r);this.kp=i;for(var h=0;h<t.length;h++)this.Gp(e,a,i,n,l,o,r,t[h],s)},Fp:function(e,t,i,n,s,a){var r={};return r.totalHeight=n.y-i.y,r.totalWidth=n.x-i.x,this.Hp(r,s.min,s.max,r.totalWidth,"X"),this.Hp(r,a.min,a.max,r.totalHeight,"Y"),r},Gp:function(e,t,i,n,s,a,r,o,l){var h=this.Ip(s,n,i,a,o,"X"),u=this.Ip(s,i,n,r,o,"Y");this.lp(e,h,u,o,this.s.label.call(this,o),l,t)},Ip:function(e,t,i,n,s,a){var r=this.s["X"==a?"xValue":"value"].call(this,s),o=e["valueFactor"+a],l=(parseFloat(r||0)-n.min)*o,h=e["unit"+a],u=i[a.toLowerCase()]-("X"==a?-1:1)*Math.floor(h*l);return l<0&&(u=i[a.toLowerCase()]),r>n.max&&(u=t[a.toLowerCase()]),r<n.min&&(u=i[a.toLowerCase()]),u},Hp:function(e,t,i,n,s){var a=this.Ho(t,i);e["relValue"+(s=s||"")]=a[0],e["valueFactor"+s]=a[1],e["unit"+s]=e["relValue"+s]?n/e["relValue"+s]:10}}),jeeplus.extend(jeeplus.ui.chart,{presets:{simple:{item:{borderColor:"#ffffff",color:"#2b7100",shadow:!1,borderWidth:2},line:{color:"#8ecf03",width:2}},plot:{color:"#1293f8",item:{borderColor:"#636363",borderWidth:1,color:"#ffffff",type:"r",shadow:!1},line:{color:"#1293f8",width:2}},diamond:{color:"#b64040",item:{borderColor:"#b64040",color:"#b64040",type:"d",radius:3,shadow:!0},line:{color:"#ff9000",width:2}},point:{color:"#fe5916",disableLines:!0,fill:!1,disableItems:!1,item:{color:"#feb916",borderColor:"#fe5916",radius:2,borderWidth:1,type:"r"},alpha:1},line:{line:{color:"#3399ff",width:2},item:{color:"#ffffff",borderColor:"#3399ff",radius:2,borderWidth:2,type:"d"},fill:!1,disableItems:!1,disableLines:!1,alpha:1},area:{fill:"#3399ff",line:{color:"#3399ff",width:1},disableItems:!0,alpha:.2,disableLines:!1},round:{item:{radius:3,borderColor:"#3f83ff",borderWidth:1,color:"#3f83ff",type:"r",shadow:!1,alpha:.6}},square:{item:{radius:3,borderColor:"#447900",borderWidth:2,color:"#69ba00",type:"s",shadow:!1,alpha:1}},column:{color:"RAINBOW",gradient:!1,barWidth:45,radius:0,alpha:1,border:!0},stick:{barWidth:5,gradient:!1,color:"#67b5c9",radius:2,alpha:1,border:!1},alpha:{color:"#b9a8f9",barWidth:70,gradient:"falling",radius:0,alpha:.5,border:!0}}}),jeeplus.extend(jeeplus.ui.chart,{$render_splineArea:function(e,t,i,n,s,a){var r,o,l,h,u,d,c,p,f,m,g,v,_,y=this.s,b=[];if(d=this.hp(e,t,i,n,s),u=y.eventRadius||Math.floor(d.cellWidth/2),l=[],t.length){for(f=i.x,o=0;o<t.length;o++)((v=this.ip(t[o],i,n,d))||"0"==v)&&(p=o?d.cellWidth*o-.5+f:f,l.push({x:p,y:v,index:o}),a.addRect(t[o].id,[p-u-i.x,v-u-i.y,p+u-i.x,v+u-i.y],s));for(c=this.vp(l),o=0;o<l.length;o++)if(m=l[o].x,l[o].y,o<l.length-1){for(g=l[o+1].x,_=l[o+1].y,h=m;h<g;h++){var x=this.wp(h,m,o,c.a,c.b,c.c,c.d);x<i.y&&(x=i.y),x>n.y&&(x=n.y);var w=this.wp(h+1,m,o,c.a,c.b,c.c,c.d);w<i.y&&(w=i.y),w>n.y&&(w=n.y),b.push([h,x]),b.push([h+1,w])}b.push([g,_])}r=this.s.color.call(this,t[0]),b.length&&(b.push([g,n.y]),b.push([b[0][0],n.y])),e.globalAlpha=this.s.alpha.call(this,t[0]),e.fillStyle=r,e.beginPath(),this.Mo(e,b),e.fill(),e.lineWidth=1,e.globalAlpha=1,y.border&&(e.lineWidth=y.borderWidth||1,y.borderColor?e.strokeStyle=y.borderColor.call(this,t[0]):this.gp(e,r),e.beginPath(),b.splice(b.length-3),this.Mo(e,b),e.stroke())}}}),function(){function t(r){if(!r.BE){var o=r.s;o.cellWidth||(o.cellWidth=30),o.animateDuration||(o.animateDuration=400),o.offset=!1,r.BE=r.attachEvent("onBeforeRender",function(e,t){var i,n,s,a=r.no(r.bc,r.dc);l(s=r,function(e,t){t._n(s.bc+2*s.s.cellWidth,s.dc)}),function(e,t,i,n){if(n&&e.length){var s=Math.ceil((i.x-t.x)/n);e.length>s+1&&e.splice(0,e.length-s-1)}}(e,a.start,a.end,o.cellWidth),"add"==t&&(n=(i=r).s.cellWidth,i.DE!=n&&(i.DE=n,i.render()),i.DE=0,i.EE=null,window.requestAnimationFrame&&!document.hidden&&window.requestAnimationFrame(function(e){!function t(i,e){var n,s=i.s.animateDuration,a=i.s.cellWidth;a&&1<i.count()&&(i.EE||(i.EE=e),n=e-i.EE,i.DE=Math.min(Math.max(n/s*a,1),a),i.render(),n<s&&window.requestAnimationFrame(function(e){t(i,e)}))}(i,e)}),i.FE||(i.FE=i.attachEvent("onAfterRender",function(e){!function(e,h){function i(e,t,i,n){var s=e.getCanvas(),a=e.Zn,r=e.Wn,o=e.AE;if(c&&(h.length<u||(h.length-1)*d>i-t)?(a.style.left=-c+"px",1<h.length&&(function(e,t,i){if(e.length){jeeplus.html.remove(e[0]);for(var n=1;n<e.length;n++)p(i,e[n])||(e[n].style.left=e[n].offsetLeft-t+"px")}}(r,c,o),s.clearRect(0,0,t+c,a.offsetHeight),s.clearRect(i+c,0,a.offsetWidth,a.offsetHeight))):(a.style.left="0px",n||c==d||s.clearRect(t+(h.length-1)*d-d+c,0,a.offsetWidth,a.offsetHeight)),1<r.length&&c&&c!=d){var l=r.length-1;p(o,r[l])&&(l-=1),r[l].style.display="none"}}var t,n,s,u=e.count(),a=e.no(e.bc,e.dc),d=e.s.cellWidth,c=e.DE||0,r=h.length<u||(h.length-1)*d>a.end.x-a.start.x;l(e,function(e,t){i(t,a.start.x,a.end.x,"x"==e)}),n=a,s=r?c:0,(t=e).w.t.style.left=n.start.x-s+"px",t.w.t.style.width=n.end.x-n.start.x+s+"px"}(i,e)})))}),r.CE=r.attachEvent("onBeforeXAxis",function(e,t,i,n,s,a){return function(e,t,i,n,s,a,r){var o,l,h,u,d=e.s,c=n.x-.5,p=parseInt(r||s.y,10)+.5,f=s.x;if(!d.dynamic)return;for(h=(i.length-1)*a>f-c||i.length<e.count(),l=0;l<i.length;l++)u=c+l*a,o=h?1<l:!!l,u=Math.ceil(u)-.5,e.xo(u,p,i[l],o),l&&d.xAxis.lines.call(e,i[l])&&e.yo(t,u,s.y,n.y,i[l]);e.canvases.x.renderTextAt(!0,!1,c,s.y+d.padding.bottom-3,d.xAxis.title,"jeeplus_axis_title_x",s.x-n.x),e.zo(t,c,p,f+(h?e.DE:0),p,d.xAxis.color,1)}(r,e,t,i,n,s,a),!1})}}function p(e,t){return"axis_x"===e&&-1!==t.className.indexOf("jeeplus_axis_title_x")}function l(e,t){if(e.canvases){for(var i=0;i<e.go.length;i++)e.canvases[i]&&t(i,e.canvases[i]);e.canvases.x&&t("x",e.canvases.x)}}jeeplus.extend(jeeplus.ui.chart,{dynamic_setter:function(e){return e&&t(this),e}})}(),jeeplus.protoUI({name:"calendar",defaults:{date:new Date,select:!1,navigation:!0,monthSelect:!0,weekHeader:!0,weekNumber:!1,skipEmptyWeeks:!1,calendarHeader:"%F %Y",calendarWeekHeader:"W#",events:jeeplus.Date.isHoliday,minuteStep:5,icons:!1,timepickerHeight:30,headerHeight:70,dayTemplate:function(e){return e.getDate()},width:260,height:250},dayTemplate_setter:jeeplus.template,calendarHeader_setter:jeeplus.Date.dateToStr,calendarWeekHeader_setter:jeeplus.Date.dateToStr,calendarTime_setter:function(e){return this._w=e,jeeplus.Date.dateToStr(e)},date_setter:function(e){return this.Jp(e)},maxDate_setter:function(e){return this.Jp(e)},minDate_setter:function(e){return this.Jp(e)},minTime_setter:function(e){return"string"==typeof e&&(e=[(e=jeeplus.i18n.parseTimeFormatDate(e)).getHours(),e.getMinutes()]),e},maxTime_setter:function(e){return"string"==typeof e&&(e=[(e=jeeplus.i18n.parseTimeFormatDate(e)).getHours(),e.getMinutes()]),e},fF:function(){var e="focus"+(jeeplus.env.isIE?"in":"");jeeplus.env.touch||jeeplus.UE(this.$view,e,jeeplus.bind(function(e){var t=e.target.className,i=-1!==t.indexOf("jeeplus_cal_day")?"jeeplus_cal_day":-1!==t.indexOf("jeeplus_cal_block")?"jeeplus_cal_block":"";if(300<new Date-jeeplus.UIManager.XE&&100<new Date-jeeplus.UIManager.lH&&i){var n=e.relatedTarget;if(n&&!jeeplus.isUndefined(n.className)){var s="jeeplus_cal_day"==i?this.gF(e.target):this.hF(e.target);this.ID(s)}}},this),{capture:!jeeplus.env.isIE})},$init:function(){this.x.className+=" jeeplus_calendar",this.x.setAttribute("role","region"),this.x.setAttribute("aria-label",jeeplus.i18n.aria.calendar),this.Kp={},this.UG={},this.Np=0,this.fF(),this.attachEvent("onKeyPress",this.DD),this.attachEvent("onAfterZoom",function(e){0<=e&&this.$view.querySelector(".jeeplus_cal_month_name").blur()})},type_setter:function(e){return"time"==e?(this.jq=!0,this.Np=-1):"year"==e&&(this.NC=!0),e},$setSize:function(e,t){jeeplus.ui.view.prototype.$setSize.call(this,e,t)&&this.render()},$getSize:function(e,t){if(this.s.cellHeight){var i=this.Op(this.s.date);this.s.height=this.s.cellHeight*i.Sp+(jeeplus.skin.$active.calendarHeight||70)}return jeeplus.ui.view.prototype.$getSize.call(this,e,t)},moveSelection:function(e,t,i){if(!this.config.master){var n=this.getSelectedDate();this.config.multiselect&&(n=n[0]);var s=jeeplus.Date.copy(n||this.getVisibleDate());this.ID(s,e,i)}},ID:function(e,t,i){var n=this.aq[this.Np].LD(e,t,this);if(!1!==i){var s=this.x.querySelector("."+n+"[tabindex='0']");s&&s.focus()}},Op:function(e,t){if(!this.Pp||t){var i=e.getMonth(),n=e.getFullYear(),s=new Date(n,i+1,1),a=jeeplus.Date.weekStart(new Date(n,i,1)),r=Math.round((s.valueOf()-a.valueOf())/864e5),o=this.s.skipEmptyWeeks?Math.ceil(r/7):6;this.Pp={Qp:i,Rp:a,zc:s,Sp:o}}return this.Pp},$skin:function(){jeeplus.skin.$active.calendar&&(jeeplus.skin.$active.calendar.width&&(this.defaults.width=jeeplus.skin.$active.calendar.width),jeeplus.skin.$active.calendar.height&&(this.defaults.height=jeeplus.skin.$active.calendar.height),jeeplus.skin.$active.calendar.headerHeight&&(this.defaults.headerHeight=jeeplus.skin.$active.calendar.headerHeight),jeeplus.skin.$active.calendar.timepickerHeight&&(this.defaults.timepickerHeight=jeeplus.skin.$active.calendar.timepickerHeight))},Tp:function(e){for(var t=this.Op(e),i=this.s,n=[],s=[],a=this.bc-36,r=this.dc-this.s.headerHeight-10-(this.s.timepicker||this.ax?this.s.timepickerHeight:0),o=i.weekNumber?8:7,l=0;l<o;l++)s[l]=Math.ceil(a/(o-l)),a-=s[l];for(var h=t.Sp,u=0;u<h;u++)n[u]=Math.ceil(r/(h-u)),r-=n[u];return[s,n]},icons_setter:function(e){this.ax=e?"object"==typeof e?e:this.Sx:null},ax:[],Sx:[{template:function(){return"<span role='button' tabindex='0' class='jeeplus_cal_icon_today jeeplus_cal_icon'>"+jeeplus.i18n.calendar.today+"</span>"},on_click:{jeeplus_cal_icon_today:function(){var e=new Date;this.s.timepicker||(e=jeeplus.Date.datePart(e)),this.setValue(e),this.callEvent("onTodaySet",[this.getSelectedDate()])}}},{template:function(){return"<span role='button' tabindex='0' class='jeeplus_cal_icon_clear jeeplus_cal_icon'>"+jeeplus.i18n.calendar.clear+"</span>"},on_click:{jeeplus_cal_icon_clear:function(){this.setValue(""),this.callEvent("onDateClear",[this.getSelectedDate()])}}}],refresh:function(){this.render()},render:function(){this.Np=0,this.Up=!1;var e=this.s;if(this.isVisible(e.id)){this.Vp=jeeplus.Date.datePart(new Date),this.callEvent("onBeforeRender",[]);var t=this.s.date,i=this.Op(t,!0),n=this.Tp(t),s=n[0],a=n[1],r="<div class='jeeplus_cal_month'><span role='button' tabindex='0' aria-live='assertive' aria-atomic='true' class='jeeplus_cal_month_name"+(this.s.monthSelect?"":" jeeplus_readonly")+"'>"+e.calendarHeader(t)+"</span>";if(e.navigation&&(r+="<div role='button' tabindex='0' aria-label='"+jeeplus.i18n.aria.navMonth[0]+"' class='jeeplus_cal_prev_button'></div><div role='button' tabindex='0' aria-label='"+jeeplus.i18n.aria.navMonth[1]+"' class='jeeplus_cal_next_button'></div>"),r+="</div>",e.weekHeader&&(r+="<div class='jeeplus_cal_header' aria-hidden='true'>"+this.Wp(s)+"</div>"),r+="<div class='jeeplus_cal_body'>"+this.Xp(s,a,i)+"</div>",(this.s.timepicker||this.ax)&&(r+="<div class='jeeplus_cal_footer'>",this.s.timepicker&&(r+=this.Yp(t)),this.ax&&(r+=this.bx()),r+="</div>"),this.w.innerHTML=r,"time"==this.s.type){var o=this.s.date;o&&("string"==typeof o?t=jeeplus.i18n.parseTimeFormatDate(o):jeeplus.isArray(o)&&(t.setHours(o[0]),t.setMinutes(o[1]))),this.yt(-1,t)}else"month"==this.s.type?this.yt(1,t):"year"==this.s.type&&this.yt(2,t);this.callEvent("onAfterRender",[])}},bx:function(e){for(var t="<div class='jeeplus_cal_icons'>",i=this.ax,n=0;n<i.length;n++){if(i[n].template)t+=("function"==typeof i[n].template?i[n].template:jeeplus.template(i[n].template)).call(this,e);i[n].on_click&&jeeplus.extend(this.on_click,i[n].on_click)}return t+"</div>"},Yp:function(e){var t=this.s.calendarTime||jeeplus.i18n.timeFormatStr,i="";if(this.s.master){var n=jeeplus.copy(jeeplus.$$(this.s.master).s.value);for(var s in jeeplus.Date.equal(n.end,e)&&(n.start=n.end),n)i+="<div role='button' tabindex='0' class='jeeplus_range_time_"+s+" jeeplus_cal_time'><span class='jeeplus_icon fa-clock-o'></span> "+t(n[s])+"</div>"}else i="<div role='button' tabindex='0' class='jeeplus_cal_time"+(this.ax?" jeeplus_cal_time_icons":"")+"'><span class='jeeplus_icon fa-clock-o'></span> "+t(e)+"</div>";return i},Wp:function(e){var t=this.s,i="",n=0;t.weekNumber&&(n=1,i+="<div class='jeeplus_cal_week_header' style='width: "+e[0]+"px;' >"+t.calendarWeekHeader()+"</div>");for(var s=jeeplus.Date.startOnMonday?1:0,a=0;a<7;a++){var r=(s+a)%7,o=jeeplus.i18n.calendar.dayShort[r];i+="<div day='"+r+"' style='width: "+e[a+n]+"px;' >"+o+"</div>"}return i},blockDates_setter:function(e){return jeeplus.toFunctor(e,this.$scope)},Zp:function(e,t){var i="";return jeeplus.Date.equal(e,this.Vp)&&(i+=" jeeplus_cal_today"),this.sz(e)||(i+=" jeeplus_cal_day_disabled"),this.VG(e)&&(i+=" jeeplus_cal_select"),e.getMonth()!=t.Qp&&(i+=" jeeplus_cal_outside"),this.s.events&&(i+=" "+(this.s.events(e)||"")),i+" jeeplus_cal_day"},Xp:function(e,t,i){for(var n=this.s,s="",a=jeeplus.Date.datePart(jeeplus.Date.copy(i.Rp)),r=n.weekNumber?1:0,o=jeeplus.Date.getISOWeek(jeeplus.Date.add(a,2,"day",!0)),l=(this.s.minDate||new Date(1,1,1),this.s.maxDate||new Date(9999,1,1),0);l<t.length;l++){s+="<div class='jeeplus_cal_row' style='height:"+t[l]+"px;line-height:"+t[l]+"px'>",r&&(!a.getMonth()&&a.getDate()<7&&(o=jeeplus.Date.getISOWeek(jeeplus.Date.add(a,2,"day",!0))),s+="<div class='jeeplus_cal_week_num' aria-hidden='true' style='width:"+e[0]+"px'>"+o+"</div>");for(var h=r;h<e.length;h++){var u=this.Zp(a,i),d=this.s.dayTemplate.call(this,a),c=this.VG(a),p="";"object"==typeof d?(p=d.aria||p,d=d.text):p=jeeplus.Date.dateToStr(jeeplus.i18n.aria.dateFormat)(a),s+="<div day='"+h+"' role='gridcell' "+(a.getMonth()!=i.Qp?"aria-hidden='true'":"")+" aria-label='"+p+"' tabindex='"+(c?"0":"-1")+"' aria-selected='"+(c?"true":"false")+"' class='"+u+"' style='width:"+e[h]+"px'><span aria-hidden='true' class='jeeplus_cal_day_inner'>"+d+"</span></div>",(a=jeeplus.Date.add(a,1,"day")).getHours()&&(a=jeeplus.Date.datePart(a))}s+="</div>",o++}return s},$p:function(e,t,i){var n=this.s.date;t||(t=this.aq[this.Np]._p),this.Np||(n=jeeplus.Date.copy(n)).setDate(1);var s=jeeplus.Date.add(n,e*t,"month",!0);this.bq(n,s)},bq:function(e,t){this.callEvent("onBeforeMonthChange",[e,t])&&(this.Np?this.cq(t):this.showCalendar(t),this.callEvent("onAfterMonthChange",[t,e]))},aq:{"-2":{lz:function(e){var t=this.s,i=t.date,n=!1,s=t.minTime?t.minTime[0]:0,a=t.maxTime?t.maxTime[0]+(t.maxTime[1]?1:0):24,r=t.minTime&&i.getHours()==s?t.minTime[1]:0,o=t.maxTime&&t.maxTime[1]&&i.getHours()==a-1?t.maxTime[1]:60;if(this.s.blockTime){var l=jeeplus.Date.copy(i);l.setMinutes(e),n=this.s.blockTime(l)}return e<r||o<=e||n},dq:function(e,t){e.setMinutes(t)},TD:function(e,t,i){if(!this.lz.call(i,e.getMinutes()))return e;var n=i.s.minuteStep,s=jeeplus.Date.add(e,"right"==t?n:-n,"minute",!0);return e.getHours()===s.getHours()?this.TD(s,t,i):void 0}},"-1":{lz:function(e){var t=this.s,i=t.date,n=t.minTime?t.minTime[0]:0,s=t.maxTime?t.maxTime[0]+(t.maxTime[1]?1:0):24;if(e<n||s<=e)return!0;if(t.blockTime){var a=jeeplus.Date.copy(i);a.setHours(e);for(var r=t.minTime&&e==n?t.minTime[1]:0,o=t.maxTime&&t.maxTime[1]&&e==s-1?t.maxTime[1]:60,l=r;l<o;l+=t.minuteStep)if(a.setMinutes(l),!t.blockTime(a))return!1;return!0}},dq:function(e,t){e.setHours(t)},LD:function(e,t,i){var n,s,a=i.s.minuteStep;return"bottom"===t||"top"===t?(e.setHours("bottom"===t?23:0),e.setMinutes("bottom"===t?55:0),e.setSeconds(0),e.setMilliseconds(0),n=e):"left"===t||"right"===t?(s="right"===t?a:-a,"left"===t&&e.getMinutes()<a&&(s=60-a),"right"===t&&e.getMinutes()>=60-a&&(s=a-60),s-=e.getMinutes()%a,n=i.aq[-2].TD(jeeplus.Date.add(e,s,"minute"),t,i)):"up"===t||"down"===t?(s="down"===t?1:-1,"down"===t&&23===e.getHours()&&(s=-23),"up"===t&&0===e.getHours()&&(s=23),n=this.TD(jeeplus.Date.add(e,s,"hour"),t,i)):!1===t&&(n=this.TD(e,t,i)),i.selectDate(n,!1),n&&(i.cq(n),i.selectDate(n,!1)),"jeeplus_cal_block"+("left"===t||"right"===t?"_min":"")},TD:function(e,t,i){if(!this.lz.call(i,e.getHours()))return e;var n=jeeplus.Date.add(e,"down"==t?1:-1,"hour",!0);return e.getDate()===n.getDate()?this.TD(n,t,i):void 0}},0:{_p:1,LD:function(e,t,i){var n=e;return"pgup"===t||"pgdown"===t?n=jeeplus.Date.add(e,"pgdown"===t?1:-1,"month"):"bottom"===t?n=new Date(e.getFullYear(),e.getMonth()+1,0):"top"===t?n=new Date(e.setDate(1)):"left"===t||"right"===t?n=jeeplus.Date.add(e,"right"===t?1:-1,"day"):("up"===t||"down"===t)&&(n=jeeplus.Date.add(e,"down"===t?1:-1,"week")),i.sz(n)||(n=i.TD(e,t)),n&&i.selectDate(n,!0),"jeeplus_cal_day"}},1:{lz:function(e,t){var i,n,s=!1,a=t.s.minDate||null,r=t.s.maxDate||null,o=t.s.date.getFullYear();return a&&r&&(i=a.getFullYear(),n=r.getFullYear(),(o<i||o==i&&a.getMonth()>e||n<o||o==n&&r.getMonth()<e)&&(s=!0)),s},Jv:function(e,t){return e<t.s.minDate?e=jeeplus.Date.copy(t.s.minDate):e>t.s.maxDate&&(e=jeeplus.Date.copy(t.s.maxDate)),e},eq:function(e){return e.getFullYear()},fq:function(e){return jeeplus.i18n.calendar.monthShort[e]},dq:function(e,t){t!=e.getMonth()&&e.setDate(1),e.setMonth(t)},_p:12,LD:function(e,t,i){var n=e;return"pgup"===t||"pgdown"===t?n=jeeplus.Date.add(e,"pgdown"===t?1:-1,"year"):"bottom"===t?n=new Date(e.setMonth(11)):"top"===t?n=new Date(e.setMonth(0)):"left"===t||"right"===t?n=jeeplus.Date.add(e,"right"===t?1:-1,"month"):("up"===t||"down"===t)&&(n=jeeplus.Date.add(e,"down"===t?4:-4,"month")),i.sz(n)||(n=i.TD(e,t)),n&&(i.cq(n),i.selectDate(n,!1)),"jeeplus_cal_block"}},2:{lz:function(e,t){e+=t.gq;var i=!1,n=t.s.minDate,s=t.s.maxDate;return n&&s&&(n.getFullYear()>e||s.getFullYear()<e)&&(i=!0),i},Jv:function(e,t){return e<t.s.minDate?e=jeeplus.Date.copy(t.s.minDate):e>t.s.maxDate&&(e=jeeplus.Date.copy(t.s.maxDate)),e},eq:function(e,t){var i=e.getFullYear();return t.gq=i=i-i%10-1,i+" - "+(i+10+1)},fq:function(e,t){return t.gq+e},dq:function(e,t,i){e.setFullYear(i.gq+t)},_p:120,LD:function(e,t,i){var n=e;return"pgup"===t||"pgdown"===t?n=jeeplus.Date.add(e,"pgdown"===t?10:-10,"year"):"bottom"===t?n=new Date(e.setYear(i.gq+10)):"top"===t?n=new Date(e.setYear(i.gq)):"left"===t||"right"===t?n=jeeplus.Date.add(e,"right"===t?1:-1,"year"):("up"===t||"down"===t)&&(n=jeeplus.Date.add(e,"down"===t?4:-4,"year")),i.sz(n)||(n=i.TD(e,t)),n&&(i.cq(n),i.selectDate(n,!1)),"jeeplus_cal_block"}}},mz:function(){var e;if(this.aq[-1].lz.call(this,this.s.date.getHours()))for(e=0;e<24;e++)if(!this.aq[-1].lz.call(this,e)){this.s.date.setHours(e);break}if(this.aq[-2].lz.call(this,this.s.date.getMinutes()))for(e=0;e<60;e+=this.s.minuteStep)if(!this.aq[-2].lz.call(this,e)){this.s.date.setMinutes(e);break}},cq:function(e){var t,i,n,s,a,r,o,l,h,u,d,c="";if(a=(t=this.s).weekHeader?2:1,u=this.aq[this.Np],r=this.w.childNodes,e&&(t.date=e),l=t.type,this.Up||(this.hq=this.w.offsetHeight-t.headerHeight,"year"!=l&&"month"!=l?this.hq-=t.timepickerHeight:this.ax&&(this.hq-=10),this.iq=r[a].offsetWidth,this.Up=1),this.jq){n=this.hq/6;var p=6,f=(this._w||jeeplus.i18n.timeFormat).match(/%([a,A])/);for(f&&p++,h=parseInt((this.iq-3)/p,10),c+="<div class='jeeplus_time_header'>"+this.kq(h,f)+"</div>",c+="<div class='jeeplus_cal_body' style='height:"+this.hq+"px'>",this.mz(),c+="<div class='jeeplus_hours'>",o=t.date.getHours(),d=jeeplus.Date.copy(t.date),s=0;s<24;s++){if(i="",f&&s%4==0){var m=s?12==s?jeeplus.i18n.pm[0]:"":jeeplus.i18n.am[0];c+="<div class='jeeplus_cal_block_empty"+i+"' style='"+this.lq(h,n)+"clear:both;'>"+m+"</div>"}this.aq[-1].lz.call(this,s)?i+=" jeeplus_cal_day_disabled":o==s&&(i+=" jeeplus_selected"),d.setHours(s),c+="<div aria-label='"+jeeplus.Date.dateToStr(jeeplus.i18n.aria.hourFormat)(d)+"' role='gridcell' tabindex='"+(o==s?"0":"-1")+"' aria-selected='"+(o==s?"true":"false")+"' class='jeeplus_cal_block"+i+"' data-value='"+s+"' style='"+this.lq(h,n)+(s%4!=0||f?"":"clear:both;")+"'>"+jeeplus.Date.toFixed(f?s&&12!=s?s%12:12:s)+"</div>"}for(c+="</div>",c+="<div class='jeeplus_minutes'>",o=t.date.getMinutes(),d=jeeplus.Date.copy(t.date),s=0;s<60;s+=t.minuteStep)i="",this.aq[-2].lz.call(this,s)?i=" jeeplus_cal_day_disabled":o==s&&(i=" jeeplus_selected"),d.setMinutes(s),c+="<div aria-label='"+jeeplus.Date.dateToStr(jeeplus.i18n.aria.minuteFormat)(d)+"' role='gridcell' tabindex='"+(o==s?"0":"-1")+"' aria-selected='"+(o==s?"true":"false")+"' class='jeeplus_cal_block jeeplus_cal_block_min"+i+"' data-value='"+s+"' style='"+this.lq(h,n)+(s%2==0?"clear:both;":"")+"'>"+jeeplus.Date.toFixed(s)+"</div>";c+="</div>",c+="</div>",c+="<div class='jeeplus_time_footer'>"+this.mq()+"</div>",this.w.innerHTML=c}else{var g=r[0].childNodes,v=jeeplus.i18n.aria["nav"+(1==this.Np?"Year":"Decade")];for(g[0].innerHTML=u.eq(t.date,this),g[1].setAttribute("aria-label",v[0]),g[2].setAttribute("aria-label",v[1]),n=this.hq/3,h=this.iq/4,this.sz(t.date)&&(o=1==this.Np?t.date.getMonth():t.date.getFullYear()),s=0;s<12;s++){i=o==(1==this.Np?s:u.fq(s,this))?" jeeplus_selected":"",u.lz(s,this)&&(i+=" jeeplus_cal_day_disabled");var _=jeeplus.i18n.aria[(1==this.Np?"month":"year")+"Format"];c+="<div role='gridcell' aria-label='"+jeeplus.Date.dateToStr(_)(t.date)+"' tabindex='"+(-1!==i.indexOf("selected")?"0":"-1")+"' aria-selected='"+(-1!==i.indexOf("selected")?"true":"false")+"' class='jeeplus_cal_block"+i+"' data-value='"+s+"' style='"+this.lq(h,n)+"'>"+u.fq(s,this)+"</div>"}a-1&&(r[a-1].style.display="none"),r[a].innerHTML=c,"year"!=l&&"month"!=l&&(r[a+1]?r[a+1].innerHTML=this.mq():this.w.innerHTML+="<div class='jeeplus_time_footer'>"+this.mq()+"</div>"),r[a].style.height=this.hq+"px"}},lq:function(e,t){return"width:"+e+"px; height:"+t+"px; line-height:"+t+"px;"},mq:function(){return"<input type='button' style='width:100%' class='jeeplus_cal_done' value='"+jeeplus.i18n.calendar.done+"'>"},kq:function(e,t){var i=2*e;return"<div class='jeeplus_cal_hours' style='width:"+e*(t?5:4)+"px'>"+jeeplus.i18n.calendar.hours+"</div><div class='jeeplus_cal_minutes' style='width:"+i+"px'>"+jeeplus.i18n.calendar.minutes+"</div>"},yt:function(e,t){var i=this.Np;this.callEvent("onBeforeZoom",[e,i])&&((this.Np=e)?this.cq(t):this.showCalendar(t),this.callEvent("onAfterZoom",[e,i]))},Jv:function(e){return!this.sz(e)&&this.aq[this.Np].Jv&&(e=this.aq[this.Np].Jv(e,this)),e},nq:function(e){var t=this.hF(e),i=this.Np-(this.NC?0:1);if(t=this.Jv(t),this.sz(t)){this.yt(i,t);var n=this.s.type;("month"==n||"year"==n)&&this.zt(t)}},zt:function(e,t){this.callEvent("onBeforeDateSelect",[e])&&(this.selectDate(e,!0,t),this.callEvent("onDateSelect",[e]),this.callEvent("onAfterDateSelect",[e]))},gF:function(e){var t=jeeplus.html.index(e)-(this.s.weekNumber?1:0),i=jeeplus.html.index(e.parentNode),n=jeeplus.Date.add(this.Op().Rp,t+7*i,"day",!0);return this.s.timepicker&&(n.setHours(this.s.date.getHours()),n.setMinutes(this.s.date.getMinutes())),n},hF:function(e){var t=1*e.getAttribute("data-value"),i=-1!=e.className.indexOf("jeeplus_cal_block_min")?this.Np-1:this.Np,n=this.s.date,s=jeeplus.Date.copy(n);return this.aq[i].dq(s,t,this),s},on_click:{jeeplus_cal_prev_button:function(e,t,i){this.$p(-1)},jeeplus_cal_next_button:function(e,t,i){this.$p(1)},jeeplus_cal_day_disabled:function(){return!1},jeeplus_cal_outside:function(){return!!this.s.navigation&&void 0},jeeplus_cal_day:function(e,t,i){var n=this.gF(i),s="touch"===this.s.multiselect||e.ctrlKey||e.metaKey;this.zt(n,s)},jeeplus_cal_time:function(e){if(this.aq[this.Np-1]){this.jq=!0;var t=this.Np-1;this.yt(t)}},jeeplus_range_time_start:function(){jeeplus.$$(this.s.master).UD="start"},jeeplus_range_time_end:function(){jeeplus.$$(this.s.master).UD="end"},jeeplus_cal_done:function(e){var t=jeeplus.Date.copy(this.s.date);t=this.Jv(t),this.zt(t)},jeeplus_cal_month_name:function(e){if(this.jq=!1,2!=this.Np&&this.s.monthSelect){var t=Math.max(this.Np,0)+1;this.yt(t)}},jeeplus_cal_block:function(e,t,i){if(this.jq){if(-1!==i.className.indexOf("jeeplus_cal_day_disabled"))return!1;var n=this.hF(i);this.cq(n)}else-1==i.className.indexOf("jeeplus_cal_day_disabled")&&this.nq(i)}},Jp:function(e,t){return e?("string"==typeof e&&(e=t?jeeplus.Date.strToDate(t)(e):jeeplus.i18n.parseFormatDate(e)),e):jeeplus.Date.datePart(new Date)},sz:function(e){var t=this.s.blockDates&&this.s.blockDates.call(this,e),i=this.s.minDate,n=this.s.maxDate;return!t&&!(e<i||n<e)},TD:function(e,t){var i,n="top"===t||"left"===t||"pgup"===t||"up"===t?-1:1,s=jeeplus.Date.add(e,n,"day",!0);return this.sz(s)?s:(0===this.Np?i=e.getMonth()===s.getMonth():1===this.Np?i=e.getFullYear()===s.getFullYear():2===this.Np&&(i=s.getFullYear()>this.gq&&s.getFullYear()<this.gq+10),i?this.TD(s,t):void 0)},showCalendar:function(e){e=this.Jp(e),this.s.date=e,this.render(),this.resize()},VG:function(e){return e&&this.UG[e.valueOf()]},getSelectedDate:function(){var e=[];for(var t in this.UG)e.push(jeeplus.Date.copy(this.UG[t]));return this.config.multiselect?e:e[0]||null},getVisibleDate:function(){return jeeplus.Date.copy(this.s.date)},setValue:function(e,t){this.selectDate(e,!0)},getValue:function(e){var t=this.getSelectedDate();return e&&(t=jeeplus.Date.dateToStr(e)(t)),t},selectDate:function(e,t,i){if(e&&i&&this.config.multiselect||(this.UG={}),e){jeeplus.isArray(e)||(e=[e]);for(var n=0;n<e.length;n++){var s=this.Jp(e[n]),a=jeeplus.Date.datePart(jeeplus.Date.copy(s)).valueOf();if(this.UG[a]&&i?delete this.UG[a]:this.UG[a]=s,!this.config.multiselect)break}}e&&t&&this.showCalendar(e[0]),!1!==t&&this.render(),this.callEvent("onChange",[e])},locate:function(){return null}},jeeplus.KeysNavigation,jeeplus.MouseEvents,jeeplus.ui.view,jeeplus.EventSystem),jeeplus.protoUI({name:"property",$init:function(){this.w.className+=" jeeplus_property",this.w.setAttribute("role","listbox"),this.Ns=[]},defaults:{nameWidth:100,editable:!0},on_render:{checkbox:function(e,t){return"<input type='checkbox' class='jeeplus_property_check' "+(e?"checked":"")+">"},color:function(e,t){return'<div class="jeeplus_property_col_val"><div class=\'jeeplus_property_col_ind\' style="background-color:'+(e||"#FFFFFF")+';"></div><span>'+e+"</span></div>"}},on_edit:{label:!1},ad:"jeeplus_f_id",on_click:{jeeplus_property_check:function(e){var t=this.locate(e);return this.getItem(t).value=!this.getItem(t).value,this.callEvent("onCheck",[t,this.getItem(t).value]),!1}},on_dblclick:{},registerType:function(e,t){if(t.template&&(this.on_render[e]=t.template),t.editor&&(this.on_edit[e]=t.editor),t.click)for(var i in t.click)this.on_click[i]=t.click[i]},elements_setter:function(e){this.oq={};for(var t=0;t<e.length;t++){var i=e[t];"multiselect"==i.type&&(i.optionslist=!0),i.id=i.id||jeeplus.uid(),i.label=i.label||"",i.value=i.value||"",this.oq[i.id]=t,this.template=this.Et(e[t])}return e},showItem:function(e){jeeplus.RenderStack.showItem.call(this,e)},locate:function(e){return jeeplus.html.locate(e,this.ad)},getItemNode:function(e){return this.y.childNodes[this.oq[e]]},getItem:function(e){return this.s.elements[this.oq[e]]},ii:function(e){var t=this.getItem(e).type;if("checkbox"==t)return"inline-checkbox";var i=this.on_edit[t];return!1!==i&&(i||t)},li:function(e){return this.getItem(e)},ui:function(e,t,i){var n=this.oq[e.id],s=this.s.elements;if(i){for(var a=n+1;a<s.length;a++)if(t.call(this,s[a].id))return s[a].id}else for(a=n-1;0<=a;a--)if(t.call(this,s[a].id))return s[a].id;return null},updateItem:function(e,t){t=t||{};var i=this.getItem(e);i&&jeeplus.extend(i,t,!0),this.refresh()},ug:function(e){var t=this.getItemNode(e);return{left:t.offsetLeft+this.s.nameWidth,top:t.offsetTop,height:t.firstChild.offsetHeight,width:this.pq,parent:this.w}},setValues:function(e,t){for(var i in this.s.complexData&&(e=jeeplus.CodeParser.collapseNames(e)),t||this.qq(),e){var n=this.getItem(i);n&&(n.value=e[i])}this.rq=e,this.refresh()},qq:function(){for(var e=this.s.elements,t=0;t<e.length;t++)e[t].value=""},getValues:function(){for(var e=jeeplus.clone(this.rq||{}),t=0;t<this.s.elements.length;t++){var i=this.s.elements[t];"label"!=i.type&&(e[i.id]=i.value)}return this.s.complexData&&(e=jeeplus.CodeParser.expandNames(e)),e},refresh:function(){this.render()},$setSize:function(e,t){jeeplus.ui.view.prototype.$setSize.call(this,e,t)&&(this.pq=this.bc-this.s.nameWidth,this.render())},$getSize:function(e,t){if(this.s.autoheight){var i=this.s.elements.length;this.s.height=Math.max(this.type.height*i,this.s.minHeight||0)}return jeeplus.ui.view.prototype.$getSize.call(this,e,t)},jb:function(){var e=[],t=this.s.elements;if(t)for(var i=0;i<t.length;i++){var n=t[i];n.css&&"object"==typeof n.css&&(n.css=jeeplus.html.createCss(n.css));var s='<div jeeplus_f_id="'+n.id+'"'+("label"!==n.type?'role="option" tabindex="0"':"")+' class="jeeplus_property_line '+(n.css||"")+'">';if("label"==n.type)e[i]=s+"<div class='jeeplus_property_label_line'>"+n.label+"</div></div>";else{var a,r=this.on_render[n.type],o="<div class='jeeplus_property_label' style='width:"+this.s.nameWidth+"px'>"+n.label+"</div><div class='jeeplus_property_value' style='width:"+this.pq+"px'>";a=n.collection||n.options?n.template(n,n.value):n.format?n.format(n.value):n.value,r&&(a=r.call(this,n.value,n)),e[i]=s+o+a+"</div></div>"}}return e.join("")},type:{height:24,templateStart:jeeplus.template(""),templateEnd:jeeplus.template("</div>")},$skin:function(){this.type.height=jeeplus.skin.$active.propertyItemHeight||24}},jeeplus.AutoTooltip,jeeplus.EditAbility,jeeplus.MapCollection,jeeplus.MouseEvents,jeeplus.Scrollable,jeeplus.SingleRender,jeeplus.AtomDataLoader,jeeplus.EventSystem,jeeplus.ui.view),jeeplus.protoUI({name:"colorboard",defaults:{template:'<div style="width:100%;height:100%;background-color:{obj.val}"></div>',palette:null,height:220,width:220,cols:12,rows:10,minLightness:.15,maxLightness:1,navigation:!0},$init:function(e){jeeplus.UE(this.x,"click",jeeplus.bind(function(e){var t=jeeplus.html.locate(e,"jeeplus_val");this.setValue(t),this.callEvent("onItemClick",[this.s.value,e]),this.callEvent("onSelect",[this.s.value])},this)),this.$view.setAttribute("role","grid"),this.x.setAttribute("aria-readonly","true")},sq:function(e){var t=this.s.palette;e=(e||"").toUpperCase();for(var i=0,n=t.length;i<n;i++)for(var s=0,a=t[i].length;s<a;s++)if(t[i][s].toUpperCase()==e)return{row:i,col:s};return null},$setSize:function(e,t){jeeplus.ui.view.prototype.$setSize.call(this,e,t)&&this.render()},getValue:function(){return this.s.value},re:function(){return this.x.firstChild},setValue:function(e){e&&"#"!=e.toString().charAt(0)&&(e="#"+e);var t=this.s.value;return this.s.value=e,this.$setValue(e,t),e},uq:null,vq:function(){if(this.uq&&this.uq.parentNode)return this.uq;var e=this.uq=document.createElement("div");return e.className="jeeplus_color_selector",this.x.lastChild.appendChild(e),e},$setValue:function(e,t){if(this.isVisible(this.s.id)){var i,n,s,a,r,o,l;if(t&&(s=this.sq(t)),s||(s={row:0,col:0}),this.x.lastChild.childNodes[s.row].childNodes[s.col].setAttribute("tabindex","-1"),(s=this.sq(e))&&(i=this.x.lastChild.childNodes[s.row].childNodes[s.col]),!(i&&i.parentNode&&i.parentNode.parentNode))return this.uq&&(this.uq.style.left="-100px"),void this.x.lastChild.childNodes[0].childNodes[0].setAttribute("tabindex","0");a=i.parentNode,o=i.offsetLeft-a.offsetLeft,l=-(this.$height-(i.offsetTop-a.parentNode.offsetTop)),i.setAttribute("tabindex","0"),i.setAttribute("aria-selected","true"),i.setAttribute("tabindex","0"),i.setAttribute("aria-selected","true"),n=this.vq(),r=["left:"+o+"px","top:"+l+"px","width:"+i.style.width,"height:"+i.style.height].join(";"),void 0!==n.style.cssText?n.style.cssText=r:n.setAttribute("style",r)}},wq:function(e){function n(e){return jeeplus.color.toHex(e,2)}function a(e,t,i){return"#"+n(Math.floor(e))+n(Math.floor(t))+n(Math.floor(i))}function t(e,t,i){var n,s,a;if(t){var r=i<.5?i*(1+t):i+t-i*t,o=2*i-r;n=l(o,r,e+1/3),s=l(o,r,e),a=l(o,r,e-1/3)}else n=s=a=i;return{r:255*n,g:255*s,b:255*a}}function l(e,t,i){return i<0&&(i+=1),1<i&&(i-=1),i<1/6?e+6*(t-e)*i:i<=.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}var i=[],s=e.rows-1,r=1/e.cols,o=(e.maxLightness-e.minLightness)/s,h=null;i.push(function(e){for(var t=[],i=255,n=i/e,s=0;s<e;s++)i=Math.round(0<i?i:0),t.push(a(i,i,i)),i-=n;return t[t.length-1]="#000000",t}(e.cols));for(var u=0,d=e.minLightness;u<s;u++){h=[];for(var c=0,p=0;c<e.cols;c++){var f=t(p,1,d);h.push(a(f.r,f.g,f.b)),p+=r}i.push(h),d+=o}this.s.palette=i},moveSelection:function(e,t,i){var n,s,a=this.getValue();if(a&&(n=this.sq(a)),n||(n={row:0,col:0}),n&&("up"==e||"down"==e?n.row=n.row+("up"==e?-1:1):"right"==e||"left"==e?n.col=n.col+("right"==e?1:-1):"top"==e?n.row=n.col=0:"bottom"==e&&(n.row=this.x.lastChild.querySelectorAll(".jeeplus_color_row").length-1,n.col=this.x.lastChild.childNodes[n.row].childNodes.length-1),0<=n.row&&(s=this.x.lastChild.childNodes[n.row].childNodes[n.col]),s&&(a=s.getAttribute("jeeplus_val"),this.setValue(a),this.callEvent("onSelect",[this.s.value]),!1!==i))){var r=this.x.querySelector("div[tabindex='0']");r&&r.focus()}},render:function(){function e(e,t,i){for(var n='<div class="jeeplus_color_row" role="row">',s=0;s<e.length;s++)r.width=t[s],r.height=i,r.val=e[s],n+=a(r);return n+"</div>"}if(this.isVisible(this.s.id)){this.s.palette||this.wq(this.s);var t=this.s.palette;this.callEvent("onBeforeRender",[]);for(var i=this.s,a=jeeplus.template('<div role=\'gridcell\' tabindex=\'-1\' aria-label="{obj.val}" style="width:{obj.width}px;height:{obj.height}px;" jeeplus_val="{obj.val}">'+(i.template||"")+"</div>"),r={width:0,height:0,val:0},n=this.$width,s=this.$height,o=[],l='<div class="jeeplus_color_palette"role="rowgroup">',h="object"==typeof t[0]?t[0]:t,u=0;u<h.length;u++)o[u]=Math.floor(n/(h.length-u)),n-=o[u];if("object"==typeof t[0])for(var d=0;d<t.length;d++){var c=Math.floor(s/(t.length-d));s-=c,l+=e(t[d],o,c)}else l+=e(t,o,s);l+="</div>",this.x.innerHTML=l,this.uq=null,this.s.value?this.$setValue(this.s.value):this.x.lastChild.childNodes[0].childNodes[0].setAttribute("tabindex","0"),this.callEvent("onAfterRender",[])}},refresh:function(){this.render()}},jeeplus.KeysNavigation,jeeplus.ui.view,jeeplus.EventSystem),jeeplus.protoUI({name:"daterange",defaults:{button:!1,icons:!1,calendarCount:2,borderless:!1},$init:function(e){e.calendar=e.calendar||{},e.value=this.SD(e.value),delete e.calendar.type,this.x.className+=" jeeplus_daterange",this.Np=this.ne[e.calendar.type]||0;for(var t=[],i=jeeplus.skin.$active.calendar,n=i&&i.height?i.height:250,s=i&&i.width?i.width:250,a=jeeplus.extend({view:"calendar",width:s,height:n},e.calendar||{},!0),r=e.calendarCount=0===this.Np&&e.calendarCount||this.defaults.calendarCount,o=(a.css?a.css+" ":"")+"jeeplus_range_",l=e.value.start||new Date,h=0;h<r;h++){var u=jeeplus.Date.add(l,this.VD[this.Np]*h,"month",!0);jeeplus.extend(a,{events:jeeplus.bind(this.WD,this),css:o+(1===r?"":0===h?"0":h+1==r?"N":"1"),timepicker:0===this.Np&&e.timepicker,borderless:!0,date:u,master:e.id},!0),t.push(jeeplus.copy(a))}e.rows=[{type:"clean",cols:t},this.XD(e,s*r)],e.height=e.height||a.height+(e.icons||e.button?35:0),e.type="line",this.$ready.push(this.av),jeeplus.event(this.$view,"keydown",jeeplus.bind(function(e){this.DD(e.which||e.keyCode,e)},this))},value_setter:function(e){return this.SD(e)},getValue:function(){return this.s.value},setValue:function(e,t){e=this.SD(e);var i=(this.s.value=e).start||e.end||new Date;if(!t){this.YD[0].showCalendar(e.start);for(var n=1;n<this.YD.length;n++)this.YD[n].s.date=i,this.ZD(this.YD[n],1,n)}this.callEvent("onChange",[e]),this.refresh()},refresh:function(){for(var e=(this.s.value,0);e<this.YD.length;e++)if(this.YD[e].Np===this.Np){jeeplus.html.removeCss(this.YD[e].$view,"jeeplus_cal_timepicker"),jeeplus.html.removeCss(this.YD[e].$view,"jeeplus_range_timepicker");var t=this.$D(this.YD[e].getVisibleDate());if(t.start||t.end){if(this.YD[e].s.date=t.start||t.end,this.s.timepicker){var i="jeeplus_"+(t.start&&t.end?"range":"cal")+"_timepicker";jeeplus.html.addCss(this.YD[e].$view,i)}}else jeeplus.Date.datePart(this.YD[e].s.date);this.YD[e].refresh()}},addToRange:function(e){var t=this._D(this.Jp(e));this.setValue(t)},ax:[{template:function(){return"<span role='button' tabindex='0' class='jeeplus_cal_icon_today jeeplus_cal_icon'>"+jeeplus.i18n.calendar.today+"</span>"},on_click:{jeeplus_cal_icon_today:function(){var e=new Date;this.s.timepicker||(e=jeeplus.Date.datePart(e)),this.addToRange(e),this.callEvent("onTodaySet",[this.getValue()])}}},{template:function(){return"<span role='button' tabindex='0' class='jeeplus_cal_icon_clear jeeplus_cal_icon'>"+jeeplus.i18n.calendar.clear+"</span>"},on_click:{jeeplus_cal_icon_clear:function(){this.setValue(""),this.callEvent("onDateClear",[])}}}],bx:function(e){if(e){e="object"==typeof e?e:this.ax;for(var t={css:"jeeplus_cal_footer ",borderless:!0,height:30,template:"<div class='jeeplus_cal_icons'>",onClick:{}},i=0;i<e.length;i++){if(e[i].template){var n="function"==typeof e[i].template?e[i].template:jeeplus.template(e[i].template);t.template+=n.call(this)}if(e[i].on_click)for(var s in e[i].on_click)t.onClick[s]=jeeplus.bind(e[i].on_click[s],this)}return t.template+="</div>",t.width=jeeplus.html.getTextSize(t.template).width+30,t}return{width:0}},XD:function(e,t){var i={view:"button",value:jeeplus.i18n.calendar.done,minWidth:100,maxWidth:230,align:"center",height:30,click:function(){this.getParentView().getParentView().hide()}},n=this.bx(e.icons),s={css:"jeeplus_range_footer",cols:[{width:n.width}]};return(e.button||e.icons)&&2*n.width+i.minWidth>t&&(s.cols[0].width=0),s.cols.push(e.button?i:{}),s.cols.push(n),s},ne:{time:-1,month:1,year:2},VD:{0:1,1:12,2:120},SD:function(e){return e||(e={start:null,end:null}),e.start||e.end||(e={start:e}),e.end=this.Jp(e.end)||null,e.start=this.Jp(e.start)||null,(e.end&&e.end<e.start||!e.start)&&(e.end=[e.start,e.start=e.end][0]),e},Jp:function(e,t){return"string"==typeof e&&(e=t?jeeplus.Date.strToDate(t)(e):jeeplus.i18n.parseFormatDate(e)),isNaN(1*e)?null:e},WD:function(e){var t=this.s.value,i=t.start?jeeplus.Date.datePart(jeeplus.Date.copy(t.start)):null,n=t.end?jeeplus.Date.datePart(jeeplus.Date.copy(t.end)):null,s=jeeplus.Date.datePart(e),a="";return i<=s&&n&&s<=n&&(a="jeeplus_cal_range"),jeeplus.Date.equal(s,i)&&(a="jeeplus_cal_range_start"),jeeplus.Date.equal(s,n)&&(a="jeeplus_cal_range_end"),a+" "+(jeeplus.Date.isHoliday(e)+" "||"")},av:function(){var e=this.YD=this.getChildViews()[0].getChildViews(),i=this;this.aE={};for(var t=0;t<e.length;t++)e[this.aE[e[t].config.id]=t].attachEvent("onBeforeDateSelect",function(e){return i.bE(this,e)}),e[t].attachEvent("onBeforeZoom",function(e){return i.cE(this,e)}),(0===t||t===e.length-1)&&(e[t].attachEvent("onAfterMonthChange",jeeplus.bind(this.dE,this)),e[t].attachEvent("onAfterZoom",function(e,t){i.eE(this,e,t)}));this.s.timepicker&&this.refresh()},cE:function(e,t){var i=this.fE(e.config.id);if(0<=t&&0<i&&i!==this.YD.length-1)return!1;if(-1===t){var n=this.$D(e.getVisibleDate());n.start&&n.end&&(e.s.date=n[this.UD])}return!0},dE:function(e,t){var i=t<e?1:-1,n=t<e?this.YD[this.YD.length-1]:this.YD[0],s=n.aq[n.Np]._p;this.gE(i,s,n),this.refresh()},eE:function(e,t,i){var n=e.aq[e.Np]._p,s=this.fE(e.config.id),a=0===s?1:-1;if(this.YD[s+a]){var r=this.YD[s+a].s.date;if(t<i&&0<=t){var o=0;if(1===t){var l=r.getFullYear();(this.Np||-1===a&&11===r.getMonth()||1===a&&0===r.getMonth())&&(l-=a),o=e.s.date.getFullYear()-l}else if(0===t){var h=r.getMonth()-a;(12===h||-1==h)&&(h=-1===h?11:0),o=e.s.date.getMonth()-h}this.gE(o,n,e),this.refresh()}}},ZD:function(e,t,i){e.blockEvent(),0<=e.Np&&e.$p(t,i),e.unblockEvent()},fE:function(e){return this.aE[e]},gE:function(e,t,i){for(var n=0;n<this.YD.length;n++){var s=this.YD[n];i&&s.config.id===i.config.id||this.ZD(s,e,t)}},$D:function(e){var t=this.s.value,i={};return t.start&&t.start.getYear()===e.getYear()&&t.start.getMonth()===e.getMonth()&&(i.start=t.start),t.end&&t.end.getYear()===e.getYear()&&t.end.getMonth()===e.getMonth()&&(i.end=t.end),i},hE:function(e,t){e.setHours(t.getHours()),e.setMinutes(t.getMinutes()),e.setSeconds(t.getSeconds()),e.setMilliseconds(t.getMilliseconds())},_D:function(e,t){var i=jeeplus.copy(this.s.value);0===this.Np||jeeplus.isUndefined(t)?i.start&&!i.end?i.end=e:(i.start=e,i.end=null):i[t?"end":"start"]=e;return i},bE:function(e,t){if(this.callEvent("onBeforeDateSelect",[t])){var i=this.s.value;if(e.Np<0){var n,s=jeeplus.copy(this.$D(t));(n=s.start&&s.end?s[this.UD]:s.start||s.end)&&this.hE(n,t),e.Np=0,i=jeeplus.extend(jeeplus.copy(i),s,!0)}else{var a=e.getVisibleDate(),r=this.fE(e.config.id);if(t.getMonth()!==a.getMonth()&&(0===r||r===this.YD.length-1)){var o=a<t?1:-1;this.gE(o,1)}i=this._D(t,r)}e.Np!==this.Np&&e.showCalendar(t),this.setValue(i,!0),this.callEvent("onAfterDateSelect",[this.getValue()])}return!1}},jeeplus.ui.layout),jeeplus.protoUI({name:"daterangesuggest",defaults:{type:"daterange",body:{view:"daterange",icons:!0,button:!0,borderless:!0}},getValue:function(){return this.getRange().getValue()},setValue:function(e){this.getRange().setValue(jeeplus.copy(e))},getRange:function(){return this.getBody()},getButton:function(){return this.getBody().getChildViews()[1].getChildViews()[1]},iE:function(e,t){var i=jeeplus.$$(this.s.master);i?(i.setValue(e),t&&this.hide()):this.setValue(e)},_d:function(){var e=this.getRange();e.attachEvent("onAfterDateSelect",jeeplus.bind(function(e){this.iE(e)},this)),e.attachEvent("onDateClear",jeeplus.bind(function(e){this.iE(e)},this)),e.attachEvent("onTodaySet",jeeplus.bind(function(e){this.iE(e)},this))}},jeeplus.ui.suggest),jeeplus.protoUI({$cssName:"datepicker",name:"daterangepicker",$init:function(){this.s.value={}},Je:function(){var e=this.s;e.suggest?e.popup=e.suggest:e.popup||(e.popup=e.suggest=this.suggest_setter({view:"daterangesuggest",body:{timepicker:e.timepicker,calendarCount:e.calendarCount,height:250+(e.button||e.icons?30:0)}})),this.ze=function(){}},$prepareValue:function(e){return(e=e||{}).start=jeeplus.ui.datepicker.prototype.$prepareValue.call(this,e.start?e.start:null),e.end=jeeplus.ui.datepicker.prototype.$prepareValue.call(this,e.end?e.end:null),e},$compareValue:function(e,t){var i=jeeplus.ui.datepicker.prototype.$compareValue,n=i.call(this,e.start,t.start),s=i.call(this,e.end,t.end);return n&&s},$setValue:function(e){e=e||{},jeeplus.$$(this.s.popup.toString()).getRange(),this.s.text=(e.start?this.YE(e.start):"")+(e.end?" - "+this.YE(e.end):""),this.ND()},$render:function(e){e.value=this.$prepareValue(e.value),this.$setValue(e.value)},getValue:function(){var e=this.s.type,t="time"==e,i=(this.config.timepicker,this.s.value);if(this.s.stringResult){var n=jeeplus.i18n.parseFormatStr;return t&&(n=jeeplus.i18n.parseTimeFormatStr),!this.Hx||"month"!=e&&"year"!=e||(n=this.Hx),this.kE(n,i)}return i||null},kE:function(e,t){var i=jeeplus.$$(this.s.popup.toString()).getRange();return(t=jeeplus.copy(i.SD(t))).start&&(t.start=e(t.start)),t.end&&(t.end=e(t.end)),t}},jeeplus.ui.datepicker),jeeplus.protoUI({name:"resizer",defaults:{width:7,height:7},$init:function(e){this.x.className+=" jeeplus_resizer";var t=this.getParentView().Cc;jeeplus.UE(this.x,jeeplus.env.mouse.down,this.xq,{bind:this}),jeeplus.event(document.body,jeeplus.env.mouse.up,this.yq,{bind:this});var i=this.zq();this.Aq=!1,this.Bq=i,this.Cq="x"==i?"width":"height","x"==i?e.height=0:e.width=0,0<t?(this.x.className+=" jeeplus_resizer_v"+i,this.x.style.marginRight="-"+t+"px","x"==i?e.width=t:e.height=t,this.$nospace=!0):this.x.className+=" jeeplus_resizer_"+i,this.x.innerHTML="<div class='jeeplus_resizer_content'></div>","y"==i&&0<t&&(this.x.style.marginBottom="-"+(e.height||this.defaults.height)+"px"),this.x.setAttribute("tabindex","-1"),this.x.setAttribute("aria-grabbed","false")},xq:function(e){var t=this.Dq();if(t&&!this.s.disabled){e=e||event,this.Aq=!0,this.Pl=jeeplus.html.pos(e),this.Eq=[],this.x.setAttribute("aria-grabbed","true");for(var i=0;i<2;i++)t[i].$view.setAttribute("aria-dropeffect","move");this.x.setAttribute("aria-dropeffect","move"),this.Fq(e,t[0])}},yq:function(){this.Aq=!1,this.Pl=!1},Fq:function(e,t){var i,n,s,a,r;e=e||event,i=this.Bq,this.getParentView().x.style.position="relative",s=jeeplus.html.offset(this.x),a=jeeplus.html.offset(this.getParentView().x),r=s[i]-a[i],n=jeeplus.html.offset(t.$view)[i]-jeeplus.html.offset(this.getParentView().$view)[i],this.Rl=[i,t,r,n],this.Gq=new jeeplus.ui.resizearea({container:this.getParentView().x,dir:i,eventPos:this.Pl[i],start:r-1,height:this.$height,width:this.$width,border:1,margin:this.getParentView()["_padding"+i.toUpperCase()]}),this.Gq.attachEvent("onResizeEnd",jeeplus.bind(this.Hq,this)),this.Gq.attachEvent("onResize",jeeplus.bind(this.Iq,this)),jeeplus.html.addCss(document.body,"jeeplus_noselect",1)},zq:function(){return this.getParentView().mc?"y":"x"},Iq:function(){var e,t,i,n,s,a,r,o,l,h;if(this.Rl)for(e=this.Dq(),s=this.Rl[0],n=this.Gq.Jl-this.Rl[2],l=this.Jq(e,s,n),h=e[0]["$"+this.Cq]+e[1]["$"+this.Cq],r="y"==s?["minHeight","maxHeight"]:["minWidth","maxWidth"],a=0;a<2;a++){i=a?-n:n;var u=(t=e[a].s)[r[0]],d=t[r[1]];if(0<i&&d&&d<=l[a]||i<0&&(u||3)>=l[a])return this.Eq[a]=0<i?d:u||3,o=this.Kq(e,s),void(this.Gq.Dl.style["y"==s?"top":"left"]=this.Rl[3]+o[0]+"px");l[a]<3?this.Gq.Dl.style["y"==s?"top":"left"]=this.Rl[3]+a*h+1+"px":this.Eq[a]=null}},Dq:function(){var e,t;for(e=this.getParentView().q,t=0;t<e.length;t++)if(e[t]==this)return!e[t-1]||e[t-1].s.$noresize?null:!e[t+1]||e[t+1].s.$noresize?null:[e[t-1],e[t+1]]},Hq:function(e){if(void 0!==e){var t,i,n,s,a=this.getParentView().mc;if(this.Lq=null,this.Rl){if(i=this.Rl[0],n=e-this.Rl[2],(t=this.Dq())[0]&&t[1]){s=this.Mq(t,i,n);for(var r=0;r<2;r++){var o=t[r].$getSize(0,0);if(a?o[2]==o[3]:Math.abs(o[1]-o[0])<3)t[r].s[this.Cq]=s[r],t[r].tc&&t[r].tc(this.Cq,s[r],a);else{var l=t[r].$view[a?"offsetHeight":"offsetWidth"];t[r].s.gravity=s[r]/l*t[r].s.gravity}}t[0].resize();for(r=0;r<2;r++)t[r].callEvent&&t[r].callEvent("onViewResize",[]),t[r].$view.removeAttribute("aria-dropeffect");jeeplus.callEvent("onLayoutResize",[t])}this.Rl=!1}this.Rl=!1,this.Aq=!1,this.Eq=null,jeeplus.html.removeCss(document.body,"jeeplus_noselect"),this.x.setAttribute("aria-grabbed","false"),this.x.removeAttribute("aria-dropeffect")}},Kq:function(e){var t,i,n;return n=e[0]["$"+this.Cq]+e[1]["$"+this.Cq],this.Eq[0]?i=n-(t=this.Eq[0]):this.Eq[1]&&(t=n-(i=this.Eq[1])),[t,i]},Jq:function(e,t,i){for(var n=[],s="height"==this.Cq?"offsetHeight":"offsetWidth",a=0;a<2;a++)n[a]=e[a].$view[s]+(a?-1:1)*i;return n},Mq:function(e,t,i){var n,s,a;if(this.Eq[0]||this.Eq[1])s=this.Kq(e,t);else for(s=this.Jq(e,t,i),n=0;n<2;n++)s[n]<0&&(a=s[0]+s[1],s[n]=1,s[1-n]=a-1);return s}},jeeplus.MouseEvents,jeeplus.Destruction,jeeplus.ui.view),jeeplus.protoUI({name:"multiview",defaults:{animate:{}},setValue:function(e){jeeplus.$$(e).show()},getValue:function(){return this.getActiveId()},$init:function(){this.Mh=0,this.mc=1,this.x.style.position="relative",this.x.className+=" jeeplus_multiview",this.Nq=[]},Oq:function(e,t){var i=jeeplus.$$(e);i.Pq||(i.Qq=[],i.Pq={}),i.Pq[t]||(i.Pq[t]=!0,i.Qq.push(t))},Rq:function(e){var t=jeeplus.$$(e);if(this.s.keepViews&&(t.x.style.display=""),this.Nq[this.Nq.length-2]!=e?(10==this.Nq.length&&this.Nq.splice(0,1),this.Nq.push(e)):this.Nq.splice(this.Nq.length-1,1),t.Pq){for(var i=0;i<t.Qq.length;i++){var n=jeeplus.$$(t.Qq[i]);n&&n.render()}t.Qq=[],t.Pq={}}},addView:function(){var e=jeeplus.ui.baselayout.prototype.addView.apply(this,arguments);return this.s.keepViews?jeeplus.$$(e).x.style.display="none":jeeplus.html.remove(jeeplus.$$(e).x),e},Vx:function(e,t){if(e==this.Mh){var i=Math.max(e-1,0);this.q[i]&&(this.Wh=!1,this.fc(this.q[i],!1))}e<this.Mh&&this.Mh--},Fb:function(){},kc:function(e){e=e||this.nc;for(var t=0;t<e.length;t++)e[t].Ob=this.s.borderless?{top:1,left:1,right:1,bottom:1}:this.s.Ob||{};jeeplus.ui.baselayout.prototype.kc.call(this,e);for(t=1;t<this.q.length;t++)this.s.keepViews?this.q[t].x.style.display="none":jeeplus.html.remove(this.q[t].x);for(t=0;t<e.length;t++){var i=this.q[t];if(!i.q||i.Gc){var n=i.s.Ob;n.top&&(i.x.style.borderTopWidth="0px"),n.left&&(i.x.style.borderLeftWidth="0px"),n.right&&(i.x.style.borderRightWidth="0px"),n.bottom&&(i.x.style.borderBottomWidth="0px"),i.x.setAttribute("role","tabpanel")}}this.Rq(this.getActiveId())},cells_setter:function(e){this.nc=e},Sq:function(e,t){var i=(this.s.animate||{}).direction,n="top"==i||"bottom"==i;return e<t?n?"bottom":"right":n?"top":"left"},fc:function(e,t){var i=this.getParentView();if(i&&i.getTabbar&&i.getTabbar().setValue(e.s.$id||e.s.id),this.Wh)return jeeplus.delay(this.fc,this,[e,t],100);for(var n=-1,s=0;s<this.q.length;s++)if(this.q[s]==e){n=s;break}if(!(n<0||n==this.Mh)){var a=this.q[this.Mh],r=this.q[n];if(a.$getSize(0,0),(t||void 0===t)&&jeeplus.animate.isSupported()&&this.s.animate){var o=jeeplus.extend({},this.s.animate);this.s.keepViews&&(o.keepViews=!0),o.direction=this.Sq(n,this.Mh),o=jeeplus.Settings.E(t||{},o);var l=jeeplus.animate.formLine(r.x,a.x,o);r.$getSize(0,0),r.$setSize(this.bc,this.dc);var h=o.callback;o.callback=function(){jeeplus.animate.breakLine(l,this.s.keepViews),this.Wh=!1,h&&h.call(this),h=o.master=o.callback=null,this.resize()},(o.master=this).Mh=n,this.Rq(this.getActiveId()),jeeplus.animate(l,o),this.Wh=!0}else this.s.keepViews?a.x.style.display="none":(jeeplus.html.remove(a.x),this.x.appendChild(this.q[s].x)),this.Mh=n,a.resize(),this.Rq(this.getActiveId());r.callEvent&&(r.callEvent("onViewShow",[]),jeeplus.ui.each(r,this.Lw)),this.callEvent("onViewChange",[a.s.id,r.s.id])}},$getSize:function(e,t){if(!this.q.length)return jeeplus.ui.baseview.prototype.$getSize.call(this,0,0);var i=this.q[this.Mh].$getSize(0,0);if(this.s.fitBiggest)for(var n=0;n<this.q.length;n++)if(n!=this.Mh)for(var s=this.q[n].$getSize(0,0),a=0;a<4;a++)i[a]=Math.max(i[a],s[a]);var r=jeeplus.ui.baseview.prototype.$getSize.call(this,0,0);return 1e5<=r[1]&&(r[1]=0),1e5<=r[3]&&(r[3]=0),r[0]=(r[0]||i[0])+e,r[1]=(r[1]||i[1])+e,r[2]=(r[2]||i[2])+t,r[3]=(r[3]||i[3])+t,r},$setSize:function(e,t){this.q.length&&(this.lc=[e,t],jeeplus.ui.baseview.prototype.$setSize.call(this,e,t),this.q[this.Mh].$setSize(e,t))},isVisible:function(e,t){return t&&t!=this.getActiveId()?(e&&this.Oq(t,e),!1):jeeplus.ui.view.prototype.isVisible.call(this,e,this.s.id)},getActiveId:function(){return this.q.length?this.q[this.Mh].s.id:null},back:function(e){if(e=e||1,this.callEvent("onBeforeBack",[this.getActiveId(),e])){if(this.Nq.length>e){var t=this.Nq[this.Nq.length-e-1];return jeeplus.$$(t).show(),t}return null}return null}},jeeplus.ui.baselayout),jeeplus.protoUI({name:"form",defaults:{type:"form",autoheight:!0},Tq:-1,_f:"jeeplus_form",ag:!0,$init:function(){this.x.setAttribute("role","form")},$getSize:function(e,t){this.cc&&!this.s.width&&(e+=jeeplus.ui.scrollSize);var i=jeeplus.ui.layout.prototype.$getSize.call(this,e,t);return(this.s.scroll||!this.s.autoheight)&&(i[2]=this.s.height||this.s.minHeight||0,i[3]+=1e5),i}},jeeplus.ui.toolbar),function(){var i={};for(var e in jeeplus.UIManager.nb)i[jeeplus.UIManager.nb[e]]=e;var n={9:"tab",38:"up",40:"down",37:"left",39:"right"};jeeplus.patterns={phone:{mask:"+# (###) ###-####",allow:/[0-9]/g},card:{mask:"#### #### #### ####",allow:/[0-9]/g},date:{mask:"####-##-## ##:##",allow:/[0-9]/g}},jeeplus.extend(jeeplus.ui.text,{$init:function(e){if((e.pattern||e.format&&!this.format_setter)&&(this.attachEvent("onKeyPress",function(e,t){if(!(t.ctrlKey||t.altKey||this.nH)){if(105<e&&e<112&&(e-=64),i[e]&&8!==e&&46!==e)return void(n[e]||jeeplus.html.preventEvent(t));jeeplus.html.preventEvent(t),this.$C(t,e)}}),this.attachEvent("onAfterRender",this.ye),this.getText=function(){return this.getInputNode().value},this.VC=function(e,t){return!1===t?this._C(e):this.aD(e)},e.format)){var t=jeeplus.Number.getConfig(e.format);this.nH=[function(e){return jeeplus.Number.parse(e,t)},function(e){return jeeplus.Number.format(e,t)}]}},pattern_setter:function(e){var t=jeeplus.patterns[e]||e;return"string"==typeof t&&(t={mask:t}),t.allow=t.allow||/[A-Za-z0-9]/g,this.bD(t),t},cD:function(){this.config.validate=this.config.validate||jeeplus.bind(function(){var e=this.getText(),t=e.replace(this.dD,"");return(e.toString().match(this.eD)||[]).join("").length==t.length&&e.length==this.s.pattern.mask.length},this)},ye:function(){var e=jeeplus.env.isIE8?"propertychange":"input";this.nH||jeeplus.UE(this.getInputNode(),e,function(e){var t=(new Date).valueOf();this.$view.offsetWidth,(!this.fD||100<t-this.fD)&&(this.fD=t,this.$setValue(this.getText()))},{bind:this}),jeeplus.UE(this.getInputNode(),"blur",function(e){this.Xy()},{bind:this})},bD:function(e){for(var t=e.mask,i={},n="",s=0,a=0;a<t.length;a++)"#"===t[a]?(i[a]=s,s++):(i[a]=!1,-1===n.indexOf(t[a])&&(n+="\\"+t[a]));this.eD=e.allow,this.dD=new RegExp("["+n+"]","g"),this.gD=i,this.cD()},$C:function(e,t){var i=this.getInputNode(),n=i.value,s=jeeplus.html.getSelectionRange(i),a="";8==t||46==t?s.start==s.end&&(8==t?s.start--:s.end++):(a=String.fromCharCode(t),e.shiftKey||(a=a.toLowerCase())),n=n.substr(0,s.start)+a+n.substr(s.end),s=this.hD(a,n.length,s.start,t),this.iD=t,this.$setValue(n),jeeplus.html.setSelectionRange(i,s)},hD:function(e,t,i,n){if(e&&e.match(this.eD)||8==n||46==n)i=e?i+1:i,i=this.jD(i,n);else if(t-1==i&&8!==n&&46!==n){var s=this.s.pattern.mask.indexOf("#",i);0<s&&(i+=s)}return i},jD:function(e,t){var i=e-1*(46!==t);return!1===this.gD[i]?(e+=8==t?-1:1,this.jD(e,t)):!1===this.gD[e]&&8!==t?this.jD(e+1,t)-1:e},_C:function(e){return this.nH?this.nH[0](e):((e=e||"").toString().match(this.eD)||[]).join("").replace(this.dD,"")},aD:function(e){if(this.nH)return this.nH[1](this.nH[0](e));var t=this._C(e),i=this.s.pattern.mask,n=this.s.pattern.mask,s=this.gD,a=!1,r=0,o=0,l=0;for(var h in s)if(!1!==s[h]){if(!a){r=1*h;var u=t[o=s[h]]||"",d=t[o+1];i=(u?i.substr(0,r):"")+u+(u&&d?i.substr(r+1):""),d||(a=!0)}l++}var c=this.iD;if(c&&8!==c||!c&&l-1===o&&i.length<n.length)if(t){var p=r+1;if("#"!==n.charAt(p)&&i.length<n.length){var f=n.indexOf("#",p);f<0&&(f=n.length),i+=n.substr(p,f-p)}}else 46!==c&&(i+=n.substr(0,n.indexOf("#")));return this.iD=null,i}})}(),jeeplus.protoUI({name:"gridsuggest",defaults:{type:"datatable",fitMaster:!1,width:0,body:{navigation:!0,autoheight:!0,autowidth:!0,select:!0},filter:function(e,t){return 0===this.config.template(e).toString().toLowerCase().indexOf(t.toLowerCase())}},$init:function(e){e.body.columns||(e.body.autoConfig=!0),e.template||(e.template=jeeplus.bind(this.bu,this))},bu:function(e,t){var i=this.getBody(),n=this.config.textValue||i.config.columns[0].id;return i.getText(e.id,n)}},jeeplus.ui.suggest),jeeplus.protoUI({name:"datasuggest",defaults:{type:"dataview",fitMaster:!1,width:0,body:{xCount:3,autoheight:!0,select:!0}}},jeeplus.ui.suggest),jeeplus.protoUI({name:"multiselect",$cssName:"richselect",defaults:{separator:","},Kt:function(e){var t=!jeeplus.isArray(e)&&"object"==typeof e&&!e.name,i={view:"checksuggest",separator:this.config.separator,buttonText:this.config.buttonText,button:this.config.button};this.s.optionWidth?i.width=this.s.optionWidth:i.fitMaster=!0,t&&jeeplus.extend(i,e,!0);var n=jeeplus.ui(i),s=n.getList();return"string"==typeof e?s.load(e):t||s.parse(e),n.attachEvent("onShow",function(e,t,i){n.setValue(jeeplus.$$(n.s.master).config.value)}),n},$setValue:function(e){if(this.se){var t=this.getPopup(),i="";t&&("object"==typeof(i=t.setValue(e))&&(i=i.join(this.config.separator+" "))),this.s.text=i,this.getInputNode().innerHTML=i||this.Yx()}},getValue:function(){return this.s.value||""}},jeeplus.ui.richselect),jeeplus.editors.multiselect=jeeplus.extend({popupType:"multiselect"},jeeplus.editors.richselect),jeeplus.type(jeeplus.ui.list,{name:"multilist",templateStart:jeeplus.template('<div jeeplus_l_id="#!id#" class="{common.classname()}" style="width:{common.widthSize()}; height:{common.heightSize()}; overflow:hidden;" {common.aria()}>')},"default"),jeeplus.type(jeeplus.ui.list,{name:"checklist",templateStart:jeeplus.template('<div jeeplus_l_id="#!id#" {common.aria()} class="{common.classname()}" style="width:{common.widthSize()}; height:{common.heightSize()}; overflow:hidden; white-space:nowrap;">{common.checkbox()}'),checkbox:function(e,t){var i=e.$checked?"fa-check-square":"fa-square-o";return"<span role='checkbox' tabindex='-1' aria-checked='"+(e.$checked?"true":"false")+"' class='jeeplus_icon "+i+"'></span>"},aria:function(e){return"role='option' tabindex='-1' "+(e.$checked?"aria-selected='true'":"")},template:jeeplus.template("#value#")},"default"),jeeplus.protoUI({name:"multisuggest",defaults:{separator:",",type:"layout",button:!0,width:0,filter:function(e,t){return-1<this.getItemText(e.id).toString().toLowerCase().indexOf(t.toLowerCase())},body:{rows:[{view:"list",type:"multilist",borderless:!0,autoheight:!0,yCount:5,multiselect:"touch",select:!0,on:{onItemClick:function(e){var t=this.getParentView().getParentView();jeeplus.delay(function(){t._y(e)})}}},{view:"button",click:function(){var e=this.getParentView().getParentView();e.setMasterValue({id:e.getValue()}),e.hide()}}]}},_y:function(e,t,i){var n=this.getValue(),s=i||jeeplus.toArray(n?this.getValue().split(this.s.separator):[]),a=jeeplus.$$(this.s.master);if(i||(s.find(e)<0?s.push(e):s.remove(e)),a)a.setValue(s.join(this.s.separator));else{var r=this.setValue(s);this.ae&&(this.ae.value=r.join(this.s.separator))}if(t){var o=this.getList().getItemNode(e).getElementsByTagName("SPAN");o&&o.length&&o[0].focus()}},Jt:function(e){return e.rows[0]},_d:function(){var e=this.getButton(),t=this.s.button?this.s.buttonText||jeeplus.i18n.combo.select:0;if(e&&(t?(e.s.value=t,e.refresh()):e.hide()),this.s.selectAll)return this.getBody().getChildViews()[0].show();this.getList().data.attachEvent("onAfterFilter",jeeplus.bind(function(){return this.be()},this))},ke:function(){var e=this.getList(),t=this.getMasterValue();if(t&&(t=t.toString().split(this.config.separator))[0])for(var i=0;i<t.length;i++)e.exists(t[i])&&e.select(t[i],!0)},getButton:function(){return this.getBody().getChildViews()[1]},getList:function(){return this.getBody().getChildViews()[0]},setValue:function(e){var t=[],i=this.getList();if(i.unselect(),e&&(jeeplus.isArray(e)||(e=e.toString().split(this.config.separator)),e[0]))for(var n=0;n<e.length;n++)i.getItem(e[n])&&(i.exists(e[n])&&i.select(e[n],!0),t.push(this.getItemText(e[n])));return this.s.value=e?e.join(this.config.separator):"",t},getValue:function(){return this.s.value}},jeeplus.ui.suggest),jeeplus.protoUI({name:"checksuggest",defaults:{button:!1,selectAll:!1,body:{rows:[{view:"checkbox",hidden:!0,customCheckbox:!1,borderless:!1,css:"jeeplus_checksuggest_select_all",labelRight:jeeplus.i18n.combo.selectAll,labelWidth:0,value:0,height:28,inputHeight:20,on:{onItemClick:function(e){for(var t=this.getParentView().getParentView(),i=t.getList(),n=i.data.order,s=0;s<n.length;s++){i.getItem(n[s]).$checked=this.getValue()}var a=this.getValue()?[].concat(n):[];t._y(n[0],e,a),i.refresh()},onChange:function(){var e=this.$view.querySelector("label"),t=jeeplus.i18n.combo;e.textContent=this.getValue()?t.unselectAll:t.selectAll},onAfterRender:function(){this.callEvent("onChange",[])}}},{view:"list",css:"jeeplus_multilist",borderless:!0,autoheight:!0,yCount:5,select:!0,type:"checklist",on:{onItemClick:function(e,t){var i=this.getItem(e);i.$checked=i.$checked?0:1,this.refresh(e);var n=this.getParentView().getParentView();if(n.FG=new Date,n._y(e,t),n.config.selectAll)if(i.$checked){(n.getValue()||"").split(",").length===this.count()&&n.getBody().q[0].setValue(1)}else n.getBody().q[0].setValue(0)}}},{view:"button",click:function(){var e=this.getParentView().getParentView();e.setMasterValue({id:e.getValue()}),e.hide()}}]}},Jt:function(e){return e.rows[1]},getButton:function(){return this.getBody().getChildViews()[2]},getList:function(){return this.getBody().getChildViews()[1]},$init:function(){this.dB={},this.$ready.push(this.eB)},eB:function(){var e=this.getList();if(e.config.dataFeed){var t=this;e.attachEvent("onAfterLoad",function(){t.setValue(t.s.value)}),e.getItem=function(e){return this.data.pull[e]||t.dB[e]}}this.config.master&&!this.config.selectAll&&this.getBody().getChildViews()[0].hide()},$enterKey:function(e,t){if(t.count&&t.count())if(e.isVisible()){var i=t.getSelectedId(!1,!0);i&&this._y(i),e.hide(!0)}else e.show(this.ae);else e.isVisible()&&e.hide(!0)},ke:function(){var e=this.getList();e.select&&e.unselect()},setValue:function(e){var t,i=this.getList(),n=[],s={},a=[];for(e=e||[],jeeplus.isArray(e)?i.config.dataFeed&&(e=this.fB(e)):e=e.toString().split(this.config.separator),t=0;t<e.length;t++)s[e[t]]=1,i.getItem(e[t])&&(this.dB&&(this.dB[e[t]]=jeeplus.copy(i.getItem(e[t]))),n.push(this.getItemText(e[t])));for(i.data.each(function(e){e.$checked?s[e.id]||(e.$checked=0,a.push(e.id)):s[e.id]&&(e.$checked=1,a.push(e.id))},this,!0),t=0;t<a.length;t++)i.refresh(a[t]);return this.s.value=e.length?e.join(this.config.separator):"",n},getValue:function(){return this.s.value},Rs:function(){var e;this.s.master&&(e=jeeplus.$$(this.s.master).getInputNode()),(e=e||this.ae)&&e.focus()},fB:function(e){if(e&&jeeplus.isArray(e)){for(var t=[],i=0;i<e.length;i++)e[i].id?(this.dB[e[i].id]=jeeplus.copy(e[i]),t.push(e[i].id)):t.push(e[i]);e=t}return e}},jeeplus.ui.multisuggest),jeeplus.protoUI({name:"multicombo",$cssName:"text",defaults:{keepText:!1,separator:",",icon:!1,iconWidth:0,tagMode:!0,tagTemplate:function(e){return e.length?e.length+" item(s)":""},template:function(e,t){return t.yy(e,t)}},$init:function(){this.$view.className+=" jeeplus_multicombo",this.attachEvent("onBeforeRender",function(){return this.zy||(this.zy=jeeplus.skin.$active.inputHeight),!0}),this.attachEvent("onAfterRender",function(){this.ac=null}),this.IA=0},on_click:{jeeplus_multicombo_delete:function(e,t,i){var n;return!this.s.readonly&&i&&(n=i.parentNode.getAttribute("optvalue"))&&this.Ay(n),!1}},_E:function(){var e=this.getInputNode().value;e&&this.s.newValues&&100<new Date-(this.getPopup().FG||0)&&this.HA(e),this.s.keepText||(this.xy=""),this.refresh()},Ay:function(e){var t=this.s.value,i=jeeplus.$$(this.config.suggest);"string"==typeof t&&(t=t.split(this.s.separator)),(t=jeeplus.toArray(jeeplus.copy(t))).remove(e),this.setValue(t.join(this.s.separator)),i&&i.s.selectAll&&i.getBody().q[0].setValue(0)},az:function(e){var t=jeeplus.$$(this.config.suggest);if(t.getList().getItem(e)){var i=t.getValue();i&&"string"==typeof i&&(i=i.split(t.config.separator)),(i=jeeplus.toArray(i||[])).find(e)<0&&(i.push(e),t.setValue(i),this.setValue(t.getValue()))}},HA:function(e){var t,i=jeeplus.$$(this.config.suggest),n=i.getList();if(e=e.replace(/^\s+|\s+$/g,""))for(var s in n.data.pull)i.getItemText(s)==e&&(t=s);!t&&e&&(t=n.add({id:e,value:e})),this.az(t)},Kt:function(e){var t=!jeeplus.isArray(e)&&"object"==typeof e&&!e.name,i={view:"checksuggest",separator:this.config.separator,buttonText:this.config.buttonText,button:this.config.button},n=this;this.s.optionWidth&&(i.width=this.s.optionWidth),t&&jeeplus.extend(i,e,!0);var s=jeeplus.ui(i);this.s.optionWidth||(s.$customWidth=function(e){this.config.width=n.Ee(n.s)}),s.attachEvent("onBeforeShow",function(e,t,i){return this.s.master&&(this.setValue(jeeplus.$$(this.s.master).config.value),jeeplus.$$(this.s.master).getInputNode().value?(this.getList().refresh(),this.je=!0):this.getList().filter(),e.tagName&&"input"==e.tagName.toLowerCase())?(jeeplus.ui.popup.prototype.show.apply(this,[e.parentNode,t,i]),!1):void 0});var a=s.getList();return"string"==typeof e?a.load(e):t||a.parse(e),s.be=function(){},s},yy:function(e,t){var i,n,s,a,r,o,l,h,u,d,c,p,f="",m="top"==this.s.labelPosition;return i="x"+jeeplus.uid(),p=t.Ee(e),n=e.inputAlign||"left",r=this.zy-2*jeeplus.skin.$active.inputPadding-2,a=this.xy||"",h="<ul class='jeeplus_multicombo_listbox' style='line-height:"+r+"px'></ul>",s="width: "+Math.min(p,t.By||7)+"px;height:"+r+"px;max-width:"+(p-20)+"px",c=e.readonly?" readonly ":"",o="<div class='jeeplus_inp_static' onclick='' style='line-height:"+r+"px;width: "+p+"px; text-align: "+n+";height:auto' >"+h+("<input id='"+i+"' role='combobox' aria-multiline='true' aria-label='"+jeeplus.template.escape(e.label)+"' tabindex='0' type='text' class='jeeplus_multicombo_input' "+c+" style='"+s+"' value='"+a+"'/>")+"</div>",l=t.$renderLabel(e,i),d=this.s.awidth-p-2*jeeplus.skin.$active.inputPadding,(u=(e.invalid?e.invalidMessage:"")||e.bottomLabel)&&(f="<div class='jeeplus_inp_bottom_label' style='width:"+p+"px;margin-left:"+Math.max(d,jeeplus.skin.$active.inputPadding)+"px;'>"+u+"</div>"),m?l+"<div class='jeeplus_el_box' style='width:"+this.s.awidth+"px; '>"+o+f+"</div>":"<div class='jeeplus_el_box' style='width:"+this.s.awidth+"px; min-height:"+this.s.aheight+"px;'>"+l+o+f+"</div>"},Cy:function(){return this.re().getElementsByTagName("UL")[0]},oe:function(){var e=this.getPopup();if(e){var t=e?e.setValue(this.s.value):null;e.fB&&(this.s.value=e.fB(this.s.value));var i="",n=this.Cy(),s=t&&t.length;if(s){var a=this.zy-2*jeeplus.skin.$active.inputPadding-8,r=this.s.value;if("string"==typeof r&&(r=r.split(this.s.separator)),this.s.tagMode)for(var o=0;o<t.length;o++){var l="<span>"+t[o]+"</span><span class='jeeplus_multicombo_delete' role='button' aria-label='"+jeeplus.i18n.aria.removeItem+"'>x</span>";i+="<li class='jeeplus_multicombo_value' style='line-height:"+a+"px;' optvalue='"+r[o]+"'>"+l+"</li>"}else i+="<li class='jeeplus_multicombo_tag' style='line-height:"+a+"px;'>"+this.s.tagTemplate(r)+"</li>"}n.innerHTML=i;var h=this.getInputNode();this.s.placeholder&&(s?(h.placeholder="",!h.value&&20<h.offsetWidth&&(h.style.width="20px")):h.value||(h.placeholder=this.s.placeholder,h.style.width=this.Ee(this.s)+"px")),!this.s.tagMode&&n.firstChild&&(h.style.width=this.lE()+"px")}this.Dy()},Ey:function(e){if(e=e||this.getInputNode())if(e.value.length){if(e.createTextRange){var t=e.createTextRange();t.moveStart("character",e.value.length),t.collapse(),t.select()}else if(e.selectionStart||"0"==e.selectionStart){var i=e.value.length;e.selectionStart=i,e.selectionEnd=i,e.focus()}}else e.focus()},Dy:function(){var e="top"==this.s.labelPosition,t=this.JA(),i=Math.max(t.offsetHeight+2*jeeplus.skin.$active.inputPadding,this.zy);if(e&&(i+=this.le),(i+=this.s.bottomPadding||0)!=this.$getSize(0,0)[2]){var n=t.offsetHeight+(e?this.le:0);if(n==this.Fy?this.IA++:this.IA=0,10<this.IA)return!1;this.Fy=n;var s=this.getTopParentView();clearTimeout(s.kg),s.kg=jeeplus.delay(function(){this.config.height=this.Fy+2*jeeplus.skin.$active.inputPadding,this.resize(),this.Hy&&(this.Ey(this.getInputNode()),this.Hy=!1),this.bz&&(this.s.keepText?this.getInputNode().select():this.getInputNode().value="",this.bz=!1),(this.getPopup().isVisible()||this.Hy)&&this.getPopup().show(this.JA())},this)}this.bz&&this.getInputNode().select()},JA:function(){for(var e=this.re(),t=e.childNodes,i=0;i<t.length;i++)if(t[i].className&&-1!=t[i].className.indexOf("jeeplus_inp_static"))return t[i];return e},getInputNode:function(){return this.re().getElementsByTagName("INPUT")[0]},$setValue:function(){this.se&&this.oe()},getValue:function(e){if("object"==typeof e&&e.options)return this.AD();var t=this.s.value;return t?"string"!=typeof t?t.join(this.s.separator):t:""},getText:function(){var e=this.s.value;if(!e)return"";"string"==typeof e&&(e=e.split(this.s.separator));for(var t=[],i=0;i<e.length;i++)t.push(this.getPopup().getItemText(e[i]));return t.join(this.s.separator)},AD:function(){var e,t,i,n=[],s=this.s.value;if(!s)return[];for("string"==typeof s&&(s=s.split(this.s.separator)),i=this.getPopup(),e=0;e<s.length;e++)(t=i.getList().getItem(s[e])||(i.dB?i.dB[s[e]]:null))&&n.push(t);return n},$setSize:function(e,t){var i=this.s;if(jeeplus.ui.view.prototype.$setSize.call(this,e,t)){if(!e||!t)return;"top"==i.labelPosition&&(i.labelWidth=0),this.render()}},Iy:function(e){var t=document.createElement("span");t.className="jeeplus_multicombo_input",t.style.visibility="visible",t.style.height="0px",t.innerHTML=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),document.body.appendChild(t);var i=t.offsetWidth+10;return document.body.removeChild(t),i},lE:function(){var e=this.Cy();return e.offsetWidth-e.firstChild.offsetWidth-17},De:function(){jeeplus.UE(this.re(),"click",function(){this.getInputNode().focus()},{bind:this}),jeeplus.UE(this.getInputNode(),"focus",function(){-1==this.re().className.indexOf("jeeplus_focused")&&(this.re().className+=" jeeplus_focused")},{bind:this}),jeeplus.UE(this.getInputNode(),"blur",function(){this.re().className=this.re().className.replace(" jeeplus_focused","")},{bind:this}),jeeplus.UE(this.getInputNode(),"input",function(){!this.getInputNode().value&&this.xy&&(this.getInputNode().style.width="20px",this.By=20,this.xy="",this.Hy=!0,this.getPopup().show(this.JA()),this.Dy())},{bind:this}),jeeplus.UE(this.getInputNode(),"keyup",function(e){var t,i,n=this.getInputNode();if(e=e||event,!this.s.placeholder||this.s.value||n.value?(i=t=this.Iy(n.value)+10,!this.s.tagMode&&this.Cy().firstChild&&(i=this.lE())):i=this.Ee(this.s),n.style.width=i+"px",t!=this.By?(this.s.keepText||13!=e.keyCode?this.xy=n.value:this.xy=!1,this.Hy=!0,this.By&&this.getPopup().show(this.JA()),this.By=t||i,this.Dy()):this.vA!=this.getPopup().$height&&this.getPopup().show(this.JA()),-1<n.value.indexOf(this.s.separator)&&this.s.tagMode){var s=n.value.replace(this.s.separator,"");if(s)if(this.s.newValues)this.HA(s);else{var a=this.getPopup().getItemId(s);a&&this.az(a)}this.s.keepText?(this.xy=s,n.value=s,this.bz=!0,this.Hy=!0,this.Dy()):n.value=""}},{bind:this}),jeeplus.UE(this.getInputNode(),"keydown",function(e){if(this.bz=!1,this.isVisible()){e=e||event;var t=this.Cy().lastChild;if(this.vA=this.getPopup().$height,8==e.keyCode&&t&&(!this.getInputNode().value&&100<(new Date).valueOf()-(this.Jy||0)?(this.Hy=!0,this.Ay(t.getAttribute("optvalue"))):this.Jy=(new Date).valueOf()),13==e.keyCode||9==e.keyCode){var i=this.getInputNode(),n="",s=jeeplus.$$(this.s.suggest);s.getList().getSelectedId()||(i.value&&(n=s.getSuggestion()),this.s.newValues?(13==e.keyCode&&(this.bz=!0),this.HA(i.value),this.s.keepText?this.xy=i.value:i.value=""):n&&(9==e.keyCode?(this.Hy=!1,this.xy="",this.By=10,i.value="",this.az(n)):(this.bz=!0,this.az(n),this.s.keepText?this.xy=i.value:i.value=""))),13==e.keyCode&&(this.bz=!0,this.Hy=!0,this.s.keepText?this.xy=i.value:i.value="")}}},{bind:this}),jeeplus.$$(this.s.suggest).linkInput(this)}},jeeplus.ui.richselect),jeeplus.protoUI({name:"menu",Oh:"jeeplus_menu",$init:function(e){this.data.qf=jeeplus.bind(function(e){e.disabled&&this.data.addMark(e.id,"jeeplus_disabled",!0,1,!0)},this),e.autowidth&&(this.KA=!0,delete e.autowidth),this.data.attachEvent("onStoreUpdated",jeeplus.bind(function(){this.Uq()},this)),this.attachEvent("onMouseMove",this.Vq),this.attachEvent("onMouseOut",function(e){this.Wq()&&"click"==this.s.openAction||!this.Xq&&e.relatedTarget&&this.Uq()}),this.attachEvent("onItemClick",function(e,t,i){var n=this.getItem(e);if(n){if(n.$template)return;var s=this.getTopMenu();if(!this.data.getMark(e,"jeeplus_disabled")){if(!s.callEvent("onMenuItemClick",[e,t,i]))return void(t.showpopup=!0);this!=s&&s.Le(e,t,i),n.submenu||s.sH?(this!==s&&!jeeplus.env.touch||"click"!=s.s.openAction||this.Yq(e,i),t.showpopup=!0):(s.Uq(!0),s.$q&&s.hide())}}}),this.attachEvent("onKeyPress",function(e,t){if(9===e)this.getTopMenu().Uq();else if(13===e||32===e){var i,n=this.getSelectedId();n&&(i=this.getItemNode(n)),i&&jeeplus.html.triggerEvent(i,"MouseEvents","click")}}),this.data.attachEvent("onClearAll",function(){this._q=[]}),this.data._q=[],this.x.setAttribute("role","menubar")},sizeToContent:function(){if("y"==this.s.layout){var t=[],i=!1;this.data.each(function(e){t.push(this.jb(e)),e.submenu&&(i=!0)},this),this.config.width=jeeplus.html.getTextSize(t,this.$view.className).width+16+2+(i?15:0),this.resize()}},getTopMenu:function(){for(var e=this;e.ar;)e=jeeplus.$$(e.ar);return e},Rh:function(e){this.s.autoheight&&(e=this.count());for(var t=0,i=0;i<e;i++){var n=this.data.pull[this.data.order[i]];t+=n&&"Separator"==n.$template?4:this.type.height}return t},on_mouse_move:{},type:{css:"menu",width:"auto",aria:function(e,t,i){return'role="menuitem"'+(i&&i.jeeplus_selected?' aria-selected="true" tabindex="0"':'tabindex="-1"')+(e.submenu||e.data?'aria-haspopup="true"':"")+(i&&i.jeeplus_disabled?' aria-disabled="true"':"")},templateStart:function(e,t,i){if("Separator"===e.$template||"Spacer"===e.$template)return'<div jeeplus_l_id="#id#" role="separator" tabindex="-1" class="jeeplus_context_'+e.$template.toLowerCase()+'">';var n=(e.href?" href='"+e.href+"' ":"")+(e.target?" target='"+e.target+"' ":"");return jeeplus.ui.list.prototype.type.templateStart(e,t,i).replace(/^<div/,"<a "+n)+((e.submenu||e.data)&&t.subsign?"<div class='jeeplus_submenu_icon'></div>":"")},templateEnd:function(e,t,i){return"Separator"===e.$template||"Spacer"===e.$template?"</div>":"</a>"},templateSeparator:jeeplus.template("<div class='sep_line'></div>"),templateSpacer:jeeplus.template("<div></div>")},getMenu:function(e){if(this.data.pull[e])return this;for(var t in this.data.pull){var i=this.getItem(t);if(i.submenu){var n=this.br(i).getMenu(e);if(n)return n}}},getSubMenu:function(e){var t=this.getMenu(e),i=t.getItem(e);return i.submenu?t.br(i):null},getMenuItem:function(e){return this.getMenu(e).getItem(e)},br:function(e){var t=jeeplus.$$(e.submenu);return t||(e.submenu=this.cr(e),t=jeeplus.$$(e.submenu)),t},Vq:function(e,t,i){this.Wq()&&this.Yq(e,i)},Wq:function(){var e=this.getTopMenu();if("click"==e.s.openAction){if(jeeplus.env.touch)return!1;var t=e.dr;return!(!t||!jeeplus.$$(t).isVisible())}return!0},Yq:function(e,t){var i=this.getItem(e);if(i&&(this.Xq=null,this.dr&&i.submenu!=this.dr&&this.Uq(!0),i.submenu||i.data&&!this.config.hidden)){var n=this.br(i);if(this.data.getMark(e,"jeeplus_disabled"))return;n.show(t,{pos:this.s.subMenuPos}),n.ar=this.s.id,this.dr=i.submenu}},disableItem:function(e){this.getMenu(e).addCss(e,"jeeplus_disabled")},enableItem:function(e){this.getMenu(e).removeCss(e,"jeeplus_disabled")},er:function(e,t){var i=this.data;i._q[e]!=t&&(i._q[e]=t,i.filter(function(e){return!i._q[e.id]}),this.resize())},hideItem:function(e){var t=this.getMenu(e);t&&t.er(e,!0)},showItem:function(e){var t=this.getMenu(e);return t?(t.er(e,!1),jeeplus.ui.list.prototype.showItem.call(t,e)):void 0},Uq:function(e){if(this.dr){var t=jeeplus.$$(this.dr);t.Uq&&t.Uq(e),(e||!t.gr)&&(t.hide(),this.dr=null)}},cr:function(e){var t={view:"submenu",data:e.submenu||e.data},i=this.getTopMenu().s.submenuConfig;i&&jeeplus.extend(t,i,!0);var n=this.getMenuItem(e.id);n&&n.config&&jeeplus.extend(t,n.config,!0);var s=jeeplus.ui(t);return s.ar=this,s.s.id},OD:function(e,t,i){var n=this.getItem(e);if("Separator"==n.$template||"Spacer"==n.$template||this.data.getMark(e,"jeeplus_disabled")){var s=this.getIndexById(e)+("up"==i?-1:1);return(e=0<=s?this.getIdByIndex(s):null)?this.OD(e,t,i):t}return e},$skin:function(){jeeplus.ui.list.prototype.$skin.call(this),this.type.height=jeeplus.skin.$active.menuHeight},defaults:{scroll:"",layout:"x",mouseEventDelay:100,subMenuPos:"bottom"}},jeeplus.ui.list),jeeplus.protoUI({name:"submenu",$init:function(){this.gd=jeeplus.clone(this.hr),(this.gd.A=this).attachEvent("onMouseOut",function(e){"click"!=this.getTopMenu().s.openAction&&(this.Xq||this.gr||!e.relatedTarget||this.hide())}),this.attachEvent("onMouseMoving",function(){this.ar&&(jeeplus.$$(this.ar).Xq=!0)}),this.attachEvent("onBeforeShow",function(){this.getTopMenu().KA&&this.sizeToContent&&!this.isVisible()&&this.sizeToContent()}),this.y.setAttribute("role","menu")},$skin:function(){jeeplus.ui.menu.prototype.$skin.call(this),jeeplus.ui.popup.prototype.$skin.call(this),this.type.height=jeeplus.skin.$active.menuHeight},hr:{$getSize:function(e,t){var i=1*this.A.s.height,n=1*this.A.s.width,s=jeeplus.ui.menu.prototype.$getSize.call(this.A,e,t);return this.A.s.height=i,this.A.s.width=n,s},$setSize:function(e,t){this.A.s.scroll&&(this.A.ed.style.height=t+"px")},destructor:function(){this.A=null}},body_setter:function(){},getChildViews:function(){return[]},defaults:{width:150,subMenuPos:"right",layout:"y",autoheight:!0},type:{height:jeeplus.skin.menuHeight,subsign:!0}},jeeplus.ui.menu,jeeplus.ui.popup),jeeplus.ContextHelper={defaults:{padding:"4",hidden:!0},body_setter:function(e){return e=jeeplus.ui.window.prototype.body_setter.call(this,e),this.gd.x.style.borderWidth="0px",e},attachTo:function(e){var t;t=e.on_context?e.attachEvent("onAfterContextMenu",jeeplus.bind(this.ir,this)):jeeplus.event(e,"contextmenu",this.jr,{bind:this}),this.attachEvent("onDestruct",function(){e.callEvent?e.detachEvent(t):jeeplus.eventRemove(t),e=null})},getContext:function(){return this.nh},setContext:function(e){this.nh=e},jr:function(e){return this.nh=jeeplus.toNode(e||event),this.kr(e)},ir:function(e,t,i){return this.nh={obj:jeeplus.$$(t),id:e},this.kr(t)},kr:function(e){var t=this.show(e,null,!0);return!1===t?t:(jeeplus.callEvent("onClick",[]),jeeplus.html.preventEvent(e))},gr:!0,master_setter:function(e){return this.attachTo(e),null}},jeeplus.protoUI({name:"context"},jeeplus.ContextHelper,jeeplus.ui.popup),jeeplus.protoUI({name:"contextmenu",$q:!0,$init:function(e){e.submenuConfig&&jeeplus.extend(e,e.submenuConfig)}},jeeplus.ContextHelper,jeeplus.ui.submenu),jeeplus.protoUI({name:"tabbar",$init:function(){this.attachEvent("onKeyPress",this.DD)},$skin:function(){var e=jeeplus.skin.$active,t=this.defaults;t.topOffset=e.tabTopOffset||0,t.tabOffset=void 0!==e.tabOffset?e.tabOffset:10,t.bottomOffset=e.tabBottomOffset||0,t.height=e.tabbarHeight,t.tabMargin=e.tabMargin,t.inputPadding=e.inputPadding,t.tabMinWidth=e.tabMinWidth||100,t.tabMoreWidth=e.tabMoreWidth||40},ut:function(){var e,t,i=this.s,n=this.OC||i.options,s=this.we-2*i.tabOffset,a=i.optionWidth||i.tabMinWidth;if(t=n.length,i.tabMinWidth&&s/t<a)return{max:parseInt(s/a,10)||1};if(!i.optionWidth)for(e=0;e<t;e++)n[e].width&&(s-=n[e].width+(e||i.type?0:i.tabMargin),t--);return{width:t?s/t:i.tabMinWidth}},Je:function(){var e=this.s;if(!e.tabbarPopup){var t={view:"popup",width:e.popupWidth||200,body:{view:"list",borderless:!0,select:!0,css:"jeeplus_tab_list",autoheight:!0,yCount:e.yCount,type:{template:e.popupTemplate}}},i=jeeplus.ui(t);i.getBody().attachEvent("onBeforeSelect",jeeplus.bind(function(e){return e&&this.callEvent("onBeforeTabClick",[e])?(this.setValue(e),jeeplus.$$(this.s.tabbarPopup).hide(),this.callEvent("onAfterTabClick",[e]),!0):void 0},this)),i.getBody().attachEvent("onAfterSelect",jeeplus.bind(function(e){this.refresh()},this)),e.tabbarPopup=i.s.id,this.Ns.push(i)}this.Je=function(){}},getPopup:function(){return this.Je(),jeeplus.$$(this.s.tabbarPopup)},moreTemplate_setter:jeeplus.template,popupTemplate_setter:jeeplus.template,defaults:{popupWidth:200,popupTemplate:"#value#",yCount:7,moreTemplate:'<span class="jeeplus_icon fa-ellipsis-h"></span>',template:function(e,t){var i,n,s,a,r,o,l,h,u;if(t.OC=l=t.yC(e.options),l.length){t.Be(l),!e.value&&l.length&&(e.value=l[0].id),i="",e.tabOffset&&(i+="<div class='jeeplus_tab_filler' style='width:"+e.tabOffset+"px;'>&nbsp;</div>"),t.we-2*e.tabOffset-(e.type?0:e.tabMargin*(l.length-1)),h=e.topOffset+e.bottomOffset;var d=t.ut();if(d.max&&d.max<l.length){var c=t.getPopup();c.hide();var p=c.getBody()||null;if(p)if(d.max){var f=!1;for(n=0;n<l.length&&!f;n++)if(l[n].id==e.value&&(f=!0,n+1>d.max)){var m=l.splice(n,1);l=l.splice(0,d.max-1).concat(m).concat(l)}p.clearAll(),p.parse(l.slice(d.max))}else p.clearAll()}else t.s.tabbarPopup&&jeeplus.$$(t.s.tabbarPopup).hide();o=e.tabOffset;var g=!1;for(n=0;n<l.length&&!g;n++)d&&d.max?(d.max==n+1&&(g=!0),u=(t.we-2*e.tabOffset-(!e.type&&1<d.max?e.tabMargin*(d.max-1):0)-e.tabMoreWidth)/d.max):u=d.width,o+=(u=l[n].width||e.optionWidth||u)+(n&&!e.type?e.tabMargin:0),0<e.tabMargin&&n&&!e.type&&(i+="<div class='jeeplus_tab_filler' style='width:"+e.tabMargin+"px;'></div>"),i+=t.vt(l[n],u),g&&(i+='<div role="button" tabindex="0" aria-label="'+jeeplus.i18n.aria.showTabs+'" class="jeeplus_tab_more_icon" style="width:'+e.tabMoreWidth+'px;">'+e.moreTemplate(e,t)+"</div>",o+=e.tabMoreWidth);0<(s=t.bc-o)&&!e.type&&(i+="<div class='jeeplus_tab_filler' style='width:"+s+"px;'>&nbsp;</div>")}else i="<div class='jeeplus_tab_filler' style='width:"+t.we+"px; border-right:0px;'></div>";return a="",r=h&&!e.type?"height:"+(t.dc-h)+"px":"",e.topOffset&&!e.type&&(a+="<div class='jeeplus_before_all_tabs' style='width:100%;height:"+e.topOffset+"px'></div>"),a+="<div style='"+r+"' role='tablist' class='jeeplus_all_tabs "+(e.type?"jeeplustype_"+e.type:"")+"'>"+i+"</div>",e.bottomOffset&&!e.type&&(a+="<div class='jeeplus_after_all_tabs' style='width:100%;height:"+e.bottomOffset+"px'></div>"),a}},Ie:function(){return this.$view.querySelectorAll(".jeeplus_item_tab")},vt:function(e,t){var i,n="",s=this.config;if(e.id==s.value&&(n=" jeeplus_selected"),e.css&&(n+=" "+e.css),t=e.width||t,i='<div class="jeeplus_item_tab'+n+'" button_id="'+e.id+'" role="tab" aria-selected="'+(e.id==s.value?"true":"false")+'" tabindex="'+(e.id==s.value?"0":"-1")+'" style="width:'+t+'px;">',this.lr){var a=this.dc-2*s.inputPadding-2,r=this.dc-2,o=jeeplus.extend({cheight:a,aheight:r},e);i+=this.lr(o)}else{i+=(e.icon?"<span class='jeeplus_icon fa-"+e.icon+"'></span> ":"")+e.value}return(e.close||s.close)&&(i+="<span role='button' tabindex='0' aria-label='"+jeeplus.i18n.aria.closeTab+"' class='jeeplus_tab_close jeeplus_icon fa-times'></span>"),i+"</div>"},ne:{image:"<div class='jeeplus_img_btn_top' style='height:#cheight#px;background-image:url(#image#);'><div class='jeeplus_img_btn_text'>#value#</div></div>",icon:"<div class='jeeplus_img_btn' style='line-height:#cheight#px;height:#cheight#px;'><span class='jeeplus_icon_btn fa-#icon#' style='max-width:#cheight#px;max-height:#cheight#px;'></span>#value#</div>",iconTop:"<div class='jeeplus_img_btn_top' style='height:#cheight#px;width:100%;top:0px;text-align:center;'><span class='jeeplus_icon fa-#icon#'></span><div class='jeeplus_img_btn_text'>#value#</div></div>"},type_setter:function(e){return this.s.tabOffset=0,this.ne[e]&&(this.lr=jeeplus.template(this.ne[e])),e}},jeeplus.ui.segmented),jeeplus.protoUI({name:"tabview",defaults:{type:"clean"},setValue:function(e){this.q[0].setValue(e)},getValue:function(){return this.q[0].getValue()},getTabbar:function(){return this.q[0]},getMultiview:function(){return this.q[1]},addView:function(e){var t=e.body.id=e.body.id||jeeplus.uid();return this.getMultiview().addView(e.body),e.id=e.body.id,e.value=e.header,delete e.body,delete e.header,this.getTabbar().addOption(e),t},removeView:function(e){var t=this.getTabbar();t.removeOption(e),t.refresh()},$init:function(e){this.$ready.push(this.Nv);for(var t=e.cells,i=[],n=t.length-1;0<=n;n--){var s=t[n].body||t[n];s.id||(s.id="view"+jeeplus.uid()),i[n]={value:t[n].header,id:s.id,close:t[n].close,width:t[n].width,hidden:!!t[n].hidden},t[n]=s}var a={view:"tabbar",multiview:!0},r={view:"multiview",cells:t,animate:!!e.animate};e.value&&(a.value=e.value),e.tabbar&&jeeplus.extend(a,e.tabbar,!0),e.multiview&&jeeplus.extend(r,e.multiview,!0),a.options=a.options||i,e.rows=[a,r],delete e.cells,delete e.tabs},Nv:function(){this.getTabbar().attachEvent("onOptionRemove",function(e){var t=jeeplus.$$(e);if(t){var i=t.getParentView();i&&i.removeView(t)}})}},jeeplus.ui.layout),jeeplus.protoUI({name:"fieldset",defaults:{borderless:!0,$cssName:"jeeplus_fieldset",paddingX:18,paddingY:30},$init:function(e){this.x.className+=" "+this.defaults.$cssName,this.x.innerHTML="<fieldset><legend></legend><div></div></fieldset>"},label_setter:function(e){return this.x.firstChild.childNodes[0].innerHTML=e},getChildViews:function(){return[this.os]},body_setter:function(e){return this.os=jeeplus.ui(e,this.x.firstChild.childNodes[1]),this.os.Xb=this,e},getBody:function(){return this.os},resizeChildren:function(){var e=this.$width-this.s.paddingX,t=this.$height-this.s.paddingY,i=this.os.$getSize(0,0);i[0]>e&&(e=i[0]),i[2]>t&&(t=i[2]),this.os.$setSize(e,t),this.resize()},$getSize:function(e,t){e+=this.s.paddingX,t+=this.s.paddingY;var i=this.os.$getSize(e,t),n=this.ps=jeeplus.ui.view.prototype.$getSize.call(this,e,t);return n[0]<i[0]&&(n[0]=i[0]),n[2]<i[2]&&(n[2]=i[2]),n[1]>i[1]&&(n[1]=i[1]),n[3]>i[3]&&(n[3]=i[3]),n},$setSize:function(e,t){jeeplus.ui.view.prototype.$setSize.call(this,e,t)&&(e=Math.min(this.ps[1],e),t=Math.min(this.ps[3],t),this.os.$setSize(e-this.s.paddingX,t-this.s.paddingY))}},jeeplus.ui.view),jeeplus.protoUI({name:"forminput",defaults:{$cssName:"jeeplus_forminput",labelWidth:80,labelAlign:"left"},setValue:function(e){this.os.setValue&&this.os.setValue(e)},focus:function(){this.os.focus()},getValue:function(){return this.os.setValue?this.os.getValue():void 0},value_setter:function(e){this.setValue(e)},getBody:function(){return this.os},$skin:function(){this.tF=jeeplus.skin.$active.inputPadding,this.$E=jeeplus.skin.$active.inputSpacing},$init:function(e){this.$ready.push(function(){var e=this.x.firstChild.childNodes[0];e.style.width=this.s.paddingX+"px",e.style.textAlign=this.s.labelAlign,this.s.labelWidth||(e.style.display="none")});var t=jeeplus.isUndefined(e.labelWidth)?this.defaults.labelWidth:e.labelWidth;e.paddingX=t-2*this.tF+2*this.$E},setBottomText:function(e){var t=this.s;if(void 0!==e){if(t.bottomLabel==e)return;t.bottomLabel=e}var i=(t.invalid?t.invalidMessage:"")||t.bottomLabel;this._F&&jeeplus.html.remove(this._F),i&&(this.$view.style.position="relative",this._F=jeeplus.html.create("div",{class:"jeeplus_inp_bottom_label",role:t.invalid?"alert":"","aria-relevant":"all",style:"position:absolute; bottom:0px; padding:2px; background: white; left:"+this.s.labelWidth+"px; "},i),this.x.appendChild(this._F))}},jeeplus.ui.fieldset),jeeplus.protoUI({name:"dbllist",defaults:{borderless:!0},$init:function(e){this.uF={},this.vF=jeeplus.bind(function(e){return this.uF[e.id]},this),this.wF=jeeplus.bind(function(e){return!this.uF[e.id]},this),this.$view.className+=" jeeplus_dbllist",this.$ready.unshift(this.HE)},$onLoad:function(e,t){this.xF(function(){this.$$("left").data.driver=t,this.$$("left").parse(e),this.$$("right").data.driver=t,this.$$("right").parse(e)}),this.QE()},yF:function(){if(!1===this.s.buttons)return{width:10};var e=jeeplus.i18n.dbllist,t={width:120,template:(t=[this.zF("deselect_all",e.deselectAll),this.zF("select_all",e.selectAll),this.zF("deselect_one",e.deselectOne),this.zF("select_one",e.selectOne)]).join(""),onClick:{dbllist_button:function(e,t,i){this.getTopParentView().AF(i.getAttribute("action"))}}};return this.s.buttons&&(t.template=this.s.buttons),t},zF:function(e,t){return"<button class='dbllist_button' action='"+e+"'>"+t+"</button>"},BF:function(e,t,i,n){var s={view:"list",select:"multiselect",multiselect:"touch",id:e,action:t,drag:!0,type:{margin:3,id:e},on:{onBeforeDrop:function(e){var t=e.from,i=e.to,n=t.getTopParentView();if(n===this.getTopParentView()){var s="select_one"!=i.s.action;n.select(e.source,s)}return!1},onItemDblClick:function(){return this.getTopParentView().AF(this.config.action)}}};return this.s.list&&jeeplus.extend(s,this.s.list,!0),i&&(s={rows:[{view:"label",label:i},s]}),n?{rows:[s,{view:"label",height:20,label:n,css:"bottom_label"}]}:s},HE:function(){var e=[{margin:10,type:"clean",cols:[this.BF("left","select_one",this.s.labelLeft,this.s.labelBottomLeft),this.yF(),this.BF("right","deselect_one",this.s.labelRight,this.s.labelBottomRight)]}];this.cols_setter(e)},AF:function(e){var t=null,i=!1;"select_all"===e?(t=this.$$("left").data.order,i=!0):"select_one"===e?(t=this.$$("left").getSelectedId(!0),i=!0):"deselect_all"===e?(t=this.$$("right").data.order,i=!1):"deselect_one"===e&&(t=this.$$("right").getSelectedId(!0),i=!1),this.select(t,i)},select:function(e,t){var i;if("object"!=typeof e&&(e=[e]),t)for(i=0;i<e.length;i++)this.uF[e[i]]=!0;else for(i=0;i<e.length;i++)delete this.uF[e[i]];this.QE(),this.callEvent("onChange",[])},xF:function(e,t){jeeplus.ui.freeze(jeeplus.bind(e,this),!1),t&&(this.$$("left").s.autoheight||this.$$("right").s.autoheight)&&this.resize()},QE:function(){var e=this.$$("left"),t=this.$$("right");e&&this.xF(function(){e.filter(this.wF),t.filter(this.vF)},!0)},focus:function(){jeeplus.UIManager.setFocus(this)},value_setter:function(e){this.setValue(e)},setValue:function(e){this.uF={},"object"!=typeof e&&(e=e.toString().split(","));for(var t=0;t<e.length;t++)this.uF[e[t]]=!0;this.QE()},getValue:function(){var e=[];for(var t in this.uF)e.push(t);return e.join(",")}},jeeplus.AtomDataLoader,jeeplus.IdSpace,jeeplus.ui.layout),jeeplus.i18n.dbllist={selectAll:"<span class='jeeplus_icon fa-angle-double-right'></span>",selectOne:"<span class='jeeplus_icon fa-angle-right'></span>",deselectAll:"<span class='jeeplus_icon fa-angle-double-left'></span>",deselectOne:"<span class='jeeplus_icon fa-angle-left'></span>"},function(){function l(e){return e.tagName?e.tagName.toLowerCase():null}function h(e,t){if(!e.getAttribute)return null;var i=e.getAttribute(t);return i?i.toLowerCase():null}function u(){var e=l(this);return t[e]?t[e](this):t.other(this)}function d(e){var t=l(this);return i[t]?i[t](this,e):i.other(this,e)}var t={radio:function(e){for(var t=0;t<e.length;t++)if(e[t].checked)return e[t].value;return""},input:function(e){return"checkbox"===h(e,"type")?e.checked:e.value},textarea:function(e){return e.value},select:function(e){var t=e.selectedIndex;return e.options[t].value},other:function(e){return e.innerHTML}},i={radio:function(e,t){for(var i=0;i<e.length;i++)e[i].checked=e[i].value==t},input:function(e,t){"checkbox"===h(e,"type")?e.checked=!!t:e.value=t},textarea:function(e,t){e.value=t},select:function(e,t){e.value=t||(e.firstElementChild.value||t)},other:function(e,t){e.innerHTML=t}};jeeplus.protoUI({name:"htmlform",$init:function(e){this.elements={},this.mr=!1,e.content&&(e.container==e.content||!e.container&&e.content==document.body)&&(this.nr=!0)},content_setter:function(e){if(e=jeeplus.toNode(e),this.nr)for(;1<e.childNodes.length;)this.x.childNodes[0].appendChild(e.childNodes[0]);else this.x.childNodes[0].appendChild(e);return this.pc(),!0},render:function(){jeeplus.ui.template.prototype.render.apply(this,arguments),this.pc()},pc:function(){var e=this.x.querySelectorAll("[name]");this.elements={};for(var t=0;t<e.length;t++){var i=e[t],n=h(i,"name");if(n){var s="button"===l(i),a=h(i,"type"),r=s||"button"===a||"submit"===a;if("radio"===a){var o=this.elements[n]||[];o.tagName="radio",o.push(i),i=o}(this.elements[n]=i).getValue=u,i.setValue=d,i.Ce=!r,i.s={defaultValue:i.getValue()}}}return this.elements},Te:function(e,t){this.Qe(e,t);var i=this.x.querySelector('[name="'+e+'"]');i&&jeeplus.html.addCss(i,"invalid")},Qe:function(e,t){var i=this.x.querySelector('[name="'+e+'"]');i&&jeeplus.html.removeCss(i,"invalid")}},jeeplus.ui.template,jeeplus.Values)}(),function(){var s,i;jeeplus.protoUI({name:"google-map",$init:function(e){this.$view.innerHTML="<div class='jeeplus_map_content' style='width:100%;height:100%'></div>",this.w=this.$view.firstChild,this.iF=jeeplus.promise.defer(),this.data.provideApi(this,!0),this.$ready.push(this.render)},getMap:function(e){return e?this.iF:this.eo},aG:function(e){return jeeplus.bind(function(){"function"==typeof e&&e(),s=s||window.google,this.mE.call(this)},this)},render:function(){if(void 0===window.google||void 0===window.google.maps){if(!i){(i=document.createElement("script")).type="text/javascript";var e=this.s,t=e.src||"//maps.google.com/maps/api/js";t+=-1===t.indexOf("?")?"?":"&",e.key&&(t+="&key="+e.key),e.libraries&&(t+="&libraries="+e.libraries),i.src=t,document.getElementsByTagName("head")[0].appendChild(i)}i.onload=this.aG(i.onload)}else this.aG()()},mE:function(){var e=this.config;this.isVisible(e.id)&&(this.eo=new s.maps.Map(this.w,{zoom:e.zoom,center:new s.maps.LatLng(e.center[0],e.center[1]),mapTypeId:s.maps.MapTypeId[e.mapType]}),this.iF.resolve(this.eo))},center_setter:function(e){return this.eo&&this.eo.setCenter(new s.maps.LatLng(e[0],e[1])),e},mapType_setter:function(e){return this.eo&&this.eo.setMapTypeId(s.maps.MapTypeId[e]),e},zoom_setter:function(e){return this.eo&&this.eo.setZoom(e),e},layerType_setter:function(e){return"heatmap"==e&&(this.config.libraries="visualization"),this.nE[e]&&(jeeplus.extend(this,this.nE[e],!0),this.data.attachEvent("onStoreUpdated",jeeplus.bind(function(){this.iF.then(jeeplus.bind(function(){this.drawData.call(this,arguments)},this))},this))),e},defaults:{zoom:5,center:[39.5,-98.5],mapType:"ROADMAP",layerType:"marker"},$setSize:function(){jeeplus.ui.view.prototype.$setSize.apply(this,arguments),this.eo&&s.maps.event.trigger(this.eo,"resize")},$onLoad:function(e){return!this.eo&&(this.iF.then(jeeplus.bind(function(){this.parse(e)},this)),!0)},nE:{marker:{drawData:function(e,t,i){switch(i){case"add":case"update":t.$marker=this.oE(t);break;case"delete":t.$marker.setMap(null);break;default:this.data.each(function(e){e.$marker=this.oE(e)},this)}},clearAll:function(e){this.data.each(function(e){e.$marker.setMap(null)}),this.data.clearAll(e)},showItem:function(e){var t=this.getItem(e);this.eo.setCenter(new s.maps.LatLng(t.lat,t.lng))},oE:function(e){var t={};for(var i in e)t[i]=e[i];t.position=new s.maps.LatLng(e.lat,e.lng),t.map=e.hidden?null:this.eo;var n=e.$marker;return n?e.$marker.setMap(t.map):(n=new s.maps.Marker(t),this.h(n)),this.callEvent("onItemRender",[e]),n},h:function(e){var t=this;e.addListener("click",function(){t.callEvent("onItemClick",[this.id,this])}),e.getDraggable()&&(e.addListener("dragend",function(){t.pE(this,!0)}),e.addListener("drag",function(){t.pE(this)}))},pE:function(e,t){var i=this.getItem(e.id),n=e.getPosition(),s=t?"onAfterDrop":"onDrag";i.lat=n.lat(),i.lng=n.lng(),this.callEvent(s,[i.id,i])}},heatmap:{heatmapConfig_setter:function(e){return e||{}},drawData:function(){this.jF&&(this.jF.setMap(null),this.jF=null);var t=[];if(this.data.each(function(e){t.push(this.qE(e))},this),t.length){var e=jeeplus.extend(this.config.heatmapConfig,{data:t,map:this.eo},!0);this.jF=new s.maps.visualization.HeatmapLayer(e),this.callEvent("onHeatMapRender",[this.jF])}},getHeatmap:function(){return this.jF},qE:function(e){var t={};for(var i in e)t[i]=e[i];return t.location=new s.maps.LatLng(e.lat,e.lng),t}}}},jeeplus.DataLoader,jeeplus.EventSystem,jeeplus.ui.view)}(),function(){var n,e;jeeplus.protoUI({name:"geochart",defaults:{chart:{displayMode:"auto",region:"world",resolution:"countries"}},$init:function(e){this.$view.innerHTML="<div class='jeeplus_map_content' style='width:100%;height:100%'></div>",this.w=this.$view.firstChild,this.iF=jeeplus.promise.defer(),e.chart=jeeplus.extend(e.chart||{},this.defaults.chart),this.data.provideApi(this,!0),this.$ready.push(this.render),this.data.attachEvent("onClearAll",jeeplus.bind(this.vG,this)),this.data.attachEvent("onStoreUpdated",jeeplus.bind(this.wG,this))},getMap:function(e){return e?this.iF:this.eo},aG:function(e){return jeeplus.bind(function(){"function"==typeof e&&e(),n=n||window.google,this.mE()},this)},render:function(){void 0===window.google||void 0===window.google.charts?(e||((e=document.createElement("script")).type="text/javascript",e.src="//www.gstatic.com/charts/loader.js",document.getElementsByTagName("head")[0].appendChild(e)),e.onload=this.aG(e.onload)):this.aG()()},mE:function(){n.visualization&&n.visualization.GeoChart?(this.eo=new n.visualization.GeoChart(this.w),this.xG(),this.iF.resolve(this.eo)):(n.charts.load("current",{packages:["geochart"],mapsApiKey:this.s.key}),n.charts.setOnLoadCallback(jeeplus.bind(function(){this.mE()},this)))},$onLoad:function(e,t){return!this.eo&&(this.iF.then(jeeplus.bind(function(){this.parse(e,this.s.datatype)},this)),!0)},wG:function(){if(this.eo){var a=this.fj&&this.fj.length?this.fj:this.yG(),r=[];if(this.data.each(function(e,t){for(var i=[],n=0;n<a.length;n++){var s=e[a[n].label];"number"==a[n].type?s*=1:"tooltip"==a[n].role&&(s=this.s.tooltip(e)),i.push(s)}r.push(i)},this),a.length){for(var e=new n.visualization.DataTable,t=0;t<a.length;t++)e.addColumn(a[t]);e.addRows(r);var i=new n.visualization.DataView(e);this.eo.draw(i,this.s.chart)}else this.eo.draw(n.visualization.arrayToDataTable([["",""]]),{})}else this.eo||this.iF.then(jeeplus.bind(this.wG,this))},setDisplayMode:function(e){this.s.chart.displayMode=e,this.refresh()},setRegion:function(e){this.s.chart.region=e,this.refresh()},refresh:function(){this.eo.clearChart(),this.wG()},tooltip_setter:function(e){var t=this.s.chart.tooltip;return this.s.chart.tooltip=jeeplus.extend(t||{},{isHtml:!0}),jeeplus.template(e)},$setSize:function(e,t){jeeplus.ui.view.prototype.$setSize.apply(this,arguments)&&this.eo&&(jeeplus.extend(this.s,{width:e,height:t}),this.refresh())},vG:function(){this.fj=null,this.wG()},zG:function(e,t){if(!e||jeeplus.isUndefined(e[t]))return"string";var i=typeof e[t];return"string"!=i||isNaN(1*e[t])||(i="number"),i},yG:function(e){var t=this.s.columns||[];e=this.data.pull[this.data.order[0]];if(!t.length&&e)for(var i in e)"id"!==i&&t.push(i);for(var n=0;n<t.length;n++)"object"!=typeof t[n]&&(t[n]={type:this.zG(e,t[n]),label:t[n]});return this.s.tooltip&&t.push({type:"string",role:"tooltip",p:{html:!0}}),this.fj=t},xG:function(){n.visualization.events.addListener(this.eo,"error",jeeplus.bind(function(){this.callEvent("onMapError",arguments)},this)),n.visualization.events.addListener(this.eo,"ready",jeeplus.bind(function(){this.callEvent("onMapReady",arguments)},this)),n.visualization.events.addListener(this.eo,"regionClick",jeeplus.bind(function(){this.callEvent("onRegionClick",arguments)},this)),n.visualization.events.addListener(this.eo,"select",jeeplus.bind(function(){var e=this.eo.getSelection()[0],t=e||this.AG;if(t){var i=this.data.order[t.row];this.AG=t,this.callEvent("onItemClick",[i,!!e])}},this))}},jeeplus.DataLoader,jeeplus.EventSystem,jeeplus.ui.view)}(),jeeplus.dp=function(e,t){if("object"==typeof e&&e.s&&(e=e.s.id),jeeplus.dp.ur[e]||t)return jeeplus.dp.ur[e];("string"==typeof e||"number"==typeof e)&&(e={master:jeeplus.$$(e)});var i=new jeeplus.DataProcessor(e),n=i.s.master.s.id;return jeeplus.dp.ur[n]=i,jeeplus.$$(n).attachEvent("onDestruct",function(){jeeplus.dp.ur[this.s.id]=null,delete jeeplus.dp.ur[this.s.id]}),i},jeeplus.dp.ur={},jeeplus.dp.$$=function(e){return jeeplus.dp.ur[e]},jeeplus.DataProcessor=jeeplus.proto({defaults:{autoupdate:!0,updateFromResponse:!1,mode:"post",operationName:"jeeplus_operation",trackMove:!1},$init:function(){this.reset(),this.vr=!1,this.name="DataProcessor",this.$ready.push(this.Mi)},reset:function(){this.zr=[]},url_setter:function(e){var t="";if("string"==typeof e){var i=e.split("->");1<i.length&&(e=i[1],t=i[0])}else e&&e.mode&&(t=e.mode,e=e.url);return t?jeeplus.proxy(t,e):e},master_setter:function(e){var t=e;return"DataStore"!=e.name&&(t=e.data),this.s.store=t,e},Mi:function(){this.s.store.attachEvent("onStoreUpdated",jeeplus.bind(this.Ar,this)),this.s.store.attachEvent("onDataMove",jeeplus.bind(this.Br,this))},ignore:function(e,t){var i=this.vr;this.vr=!0,e.call(t||this),this.vr=i},off:function(){this.vr=!0},on:function(){this.vr=!1},Cr:function(e){var t={};for(var i in e)0!==i.indexOf("$")&&(t[i]=e[i]);return t},save:function(e,t,i){t=t||"update",this.Dr(e,i||this.s.store.getItem(e),t)},Dr:function(e,t,i){if("object"==typeof e&&(e=e.toString()),!e||!0===this.vr||!i||"paint"==i)return!0;var n=this.s.store;n&&n.vf&&(t=n.vf(t));var s={id:e,data:this.Cr(t),operation:i};if(jeeplus.isUndefined(t.$parent)||(s.data.parent=t.$parent),"delete"!=s.operation){var a=this.s.master;a&&a.data&&a.data.getMark&&a.data.getMark(e,"jeeplus_invalid")&&(s.Er=!0),this.validate(null,s.data)||(s.Er=!0)}return this.Fr(s)&&this.zr.push(s),this.s.autoupdate&&this.send(),!0},Br:function(e,t,i,n){if(this.s.trackMove){var s=jeeplus.copy(this.s.store.getItem(e));this.s.store.order,s.jeeplus_move_index=t,s.jeeplus_move_id=n,s.jeeplus_move_parent=i,this.Dr(e,s,"order")}},Ar:function(e,t,i){switch(i){case"save":case"update":i="update";break;case"add":i="insert";break;case"delete":i="delete";break;default:return!0}return this.Dr(e,t,i)},Fr:function(e){for(var t=0;t<this.zr.length;t++){var i=this.zr[t];if(i.id==e.id)return"delete"==e.operation&&("insert"==i.operation?this.zr.splice(t,1):i.operation="delete"),i.data=e.data,i.Er=e.Er,!1}return!0},send:function(){this.Gr()},Gr:function(){if(this.s.url){for(var e=this.zr,t=[],i=this.s.url,n=0;n<e.length;n++){var s=e[n];if(!s.Hr&&!s.Er){var a=s.id,r=s.operation,o="object"!=typeof i||i.$proxy?i:i[r],l=o&&(o.$proxy||"function"==typeof o);if(o&&(this.s.store.uf&&this.s.store.uf(s.data),this.callEvent("onBefore"+r,[a,s]))){if(s.Hr=!0,!this.callEvent("onBeforeDataSend",[s]))return;s.data=this.Ir(s.data);var h=this.at({id:s.id,status:s.operation});o.$proxy?o.save?o.save(this.config.master,s,this,h):t.push(s):("insert"==r&&delete s.data.id,l?o(s.id,s.operation,s.data).then(function(e){e&&"function"==typeof e.json&&(e=e.json()),h.success("",e,-1)},function(e){h.error("",null,e)}):(s.data[this.s.operationName]=r,this.G(o,s.data,this.s.mode,r,h))),this.callEvent("onAfterDataSend",[s])}}}i.$proxy&&i.saveAll&&t.length&&i.saveAll(this.config.master,t,this,this.at({}))}},Ir:function(e){var t={};for(var i in e)0!==i.indexOf("$")&&(t[i]=e[i]);return t},G:function(e,t,i,n,s){return"function"==typeof e?e(t,n,s):void jeeplus.ajax()[i](e,t,s)},at:function(n){var s=this;return{success:function(e,t,i){return s.xr(n,e,t,i)},error:function(e,t,i){return s.yr(n,e,t,i)}}},attachProgress:function(e,t,i){this.attachEvent("onBeforeDataSend",e),this.attachEvent("onAfterSync",t),this.attachEvent("onAfterSaveError",i),this.attachEvent("onLoadError",i)},yr:function(e,t,i,n){e?this.Jr(!0,e.id,!1,e.status,!1,{text:t,data:i,loader:n}):(this.callEvent("onLoadError",arguments),jeeplus.callEvent("onLoadError",[t,i,n,this]))},Jr:function(e,t,i,n,s,a){var r=this.s.master,o=this.getItemState(t);if(o.Hr=!1,e){if(this.callEvent("onBeforeSaveError",[t,n,s,a]))return o.Er=!0,this.s.undoOnError&&r.s.undo&&(this.ignore(function(){r.undo(t)}),this.setItemState(t,!1)),void this.callEvent("onAfterSaveError",[t,n,s,a])}else this.setItemState(t,!1);i&&t!=i&&this.s.store.changeId(t,i),s&&"delete"!=n&&this.s.updateFromResponse&&this.ignore(function(){this.s.store.updateItem(i||t,s)}),this.s.undoOnError&&r.s.undo&&r.removeUndo(i||t),this.callEvent("onAfterSave",[s,t,a]),this.callEvent("onAfter"+n,[s,t,a])},processResult:function(e,t,i){var n=t&&("error"==t.status||"invalid"==t.status),s=!!t&&(t.newid||t.id);this.Jr(n,e.id,s,e.status,t,i)},xr:function(e,t,i,n){if(this.callEvent("onBeforeSync",[e,t,i,n]),-1===n)this.processResult(e,i,{});else{var s,a=this.s.url;if(a.$proxy&&a.result)a.result(e,this.s.master,this,t,i,n);else t&&(s=i.json(),!t||null!=s||(s={status:"error"})),this.processResult(e,s,{text:t,data:i,loader:n})}this.callEvent("onAfterSync",[e,t,i,n])},escape:function(e){return this.s.escape?this.s.escape(e):encodeURIComponent(e)},getState:function(){if(!this.zr.length)return!1;for(var e=this.zr.length-1;0<=e;e--)if(this.zr[e].Hr)return"saving";return!0},getItemState:function(e){var t=this.bt(e);return this.zr[t]||null},setItemState:function(e,t){if(t)this.save(e,t);else{var i=this.bt(e);-1<i&&this.zr.splice(i,1)}},bt:function(e){for(var t=-1,i=0;i<this.zr.length;i++)if(this.zr[i].id==e){t=i;break}return t}},jeeplus.Settings,jeeplus.EventSystem,jeeplus.ValidateData),function(){var u={};jeeplus.jsonp=function(e,t,i,n){var s=jeeplus.promise.defer(),a="jeeplus_jsonp_"+jeeplus.uid(),r=document.createElement("script");r.id=a,r.type="text/javascript";var o=document.getElementsByTagName("head")[0];"function"==typeof t&&(n=i,i=t,t={}),t||(t={}),t.jsonp="jeeplus.jsonp."+a,jeeplus.jsonp[a]=function(){i&&i.apply(n||window,arguments),s.resolve(arguments[0]),window.clearTimeout(u[a]),delete u[a],r.parentNode.removeChild(r),i=o=n=r=null,delete jeeplus.jsonp[a]},u[a]=window.setTimeout(function(){s.reject(),delete jeeplus.jsonp[a]},jeeplus.jsonp.timer);var l=[];for(var h in t)l.push(h+"="+encodeURIComponent(t[h]));return e+=(-1==e.indexOf("?")?"?":"&")+l.join("&"),r.src=e,o.appendChild(r),s},jeeplus.jsonp.timer=3e3}(),jeeplus.markup={namespace:"x",attribute:"data-",dataTag:"li",Ys:/-([a-z])/g,Zs:function(e){return e[1].toUpperCase()},Lr:{width:!0,height:!0,gravity:!0,margin:!0,padding:!0,paddingX:!0,paddingY:!0,minWidth:!0,maxWidth:!0,minHeight:!0,maxHeight:!0,headerRowHeight:!0},AA:{disabled:!0,hidden:!0},Mr:function(e,t){return jeeplus.ui.hasMethod(e,t)},init:function(e,t,i){e=e||document.body;for(var n=[],s=this.Nr(e),a=s.html,r=null,o=s.length-1;0<=o;o--)n[o]=s[o];for(o=0;o<n.length;o++){var l;(l=this.Or(n[o],a)).$scope=i,r=this.Pr(l,n[o],a,t)}return r},parse:function(e,t){"string"==typeof e&&(e=jeeplus.DataDriver[t||"xml"].toObject(e,e));var i=this.Nr(e,t);return this.Or(i[0],i.html)},Pr:function(e,t,i,n){return n?e.container=n:(e.container=t.parentNode,jeeplus.html.remove(t)),this.Mr(e.view,"setPosition")&&delete e.container,jeeplus.ui(e)},Nr:function(e){this.Qr=this.namespace?this.namespace+":":"",this.Rr=this.Qr+"ui";var t=e.getElementsByTagName(this.Rr);return!t.length&&e.documentElement&&e.documentElement.tagName==this.Rr&&(t=[e.documentElement]),!t.length&&this.namespace&&(!(t=e.getElementsByTagName("ui")).length&&e.documentElement&&"ui"==e.documentElement.tagName&&(t=[e.documentElement])),t.length||((t=this.Sr(e)).html=!0),t},Sr:function(e){if(e.getAttribute&&e.getAttribute(this.attribute+"view"))return[e];for(var t=e.querySelectorAll("["+this.attribute+"view]"),i=[],n=0;n<t.length;n++)t[n].parentNode.getAttribute(this.attribute+"view")||i.push(t[n]);return i},Or:function(e,t,i){var n=!1;if(!i){if("ui"==(d=this.Tr(e,t)))for(var s=e.childNodes,a=0;a<s.length;a++)if(1==s[a].nodeType)return this.Or(s[a],t);i={view:d},t&&"table"==e.tagName.toLowerCase()&&(i.data=e,i.datatype="htmltable",n=!0)}for(var r="cols"==i.view||"rows"==i.view||this.Mr(i.view,"addView"),o=[],l=0,h=!(t||e.style),u=e.firstChild;u;){if(1==u.nodeType){var d;if("data"==(d=this.Tr(u,t))){l=1;var c=u;u=u.nextSibling,i.data=this.Ur(c,t);continue}if("config"==d){this.Vr(u,i,t);var p=u;u=u.nextSibling,jeeplus.html.remove(p);continue}if("column"==d){l=1;var f=this.Wr(u,t);f.header=f.header||f.value,f.width=1*f.width||"",i.columns=i.columns||[],i.columns.push(f)}else if(d||r&&t){var m=this.Or(u,t,{view:d});"head"==m.view?i.head=m.rows?m.rows[0]:m.template:"body"==m.view?this.Mr(i.view,"addView")?o.push({body:m.rows?m.rows[0]:m.value,header:m.header||""}):i.body=m.rows?1==m.rows.length?m.rows[0]:{rows:m.rows}:m.value:o.push(m)}else if(h){l=1;var g=u.tagName;t&&(g=g.toLowerCase().replace(this.Ys,this.Zs)),i[g]=jeeplus.DataDriver.xml.tagToObject(u)}}u=u.nextSibling}if(this.Xr(e,i,t),o.length)i.stack?i[i.stack]=o:this.Mr(i.view,"setValues")?i.elements=o:"rows"==i.view?(i.view="layout",i.rows=o):"cols"==i.view?(i.view="layout",i.cols=o):this.Mr(i.view,"setValue")?i.cells=o:this.Mr(i.view,"getBody")?i.body=1==o.length?o[0]:{rows:o}:i.rows=o;else if(!n&&!l)if(!t||i.template||i.view&&"template"!=i.view){var v=this.Yr(e,t);if(v){var _="template";this.Mr(i.view,"setValue")&&(_="value"),i[_]=i[_]||v}}else i.view="template",i.content=e;return i},Zr:function(e){return!(0<e.replace(/\s+/gm,"").length)},$r:{body:1,head:1,data:1,rows:1,cols:1,cells:1,elements:1,ui:1,column:1,config:1},Vr:function(e,t,i){var n=this.Xr(e,{});n.name?delete(t[n.name]=n).name:n.stack?t[n.stack]=[]:t=n;for(var s=e.childNodes,a=0;a<s.length;a++){var r;r=1==s[a].nodeType&&"config"==s[a].tagName.toLowerCase()&&s[a].attributes.length?this.Vr(s[a],n,i):s[a].innerHTML,n.stack&&r&&t[n.stack].push(r)}return t},Tr:function(e,t){if(t)return e.getAttribute(this.attribute+"view")||("config"==e.tagName.toLowerCase()?"config":null);var i=e.tagName.toLowerCase();if(this.namespace){if(0===i.indexOf(this.Qr)||e.scopeName==this.namespace)return i.replace(this.Qr,"")}else if(jeeplus.ui[i]||this.$r[i])return i;return 0},Ur:function(e,t){for(var i=[],n=e.getElementsByTagName(jeeplus.markup.dataTag),s=0;s<n.length;s++){var a=n[s];if(a.parentNode.parentNode.tagName!=jeeplus.markup.dataTag){var r=this.Wr(a,t);a.className&&(r.$css=a.className),i.push(r)}}return jeeplus.html.remove(e),i},Yr:function(e,t){return e.style?e.innerHTML:e.firstChild&&(e.firstChild.wholeText||e.firstChild.data)||""},Wr:function(e,t){if(!t)return jeeplus.DataDriver.xml.tagToObject(e);var i=this.Xr(e,{},t);return!i.value&&e.childNodes.length&&(i.value=this.Yr(e,t)),i},Xr:function(e,t,i){for(var n=e.attributes,s=0;s<n.length;s++){var a=n[s].name;if(i){if(0!==a.indexOf(this.attribute))continue;a=a.replace(this.attribute,"").replace(this.Ys,this.Zs)}var r=n[s].value;-1!=r.indexOf("json://")&&(r=JSON.parse(r.replace("json://",""))),this.Lr[a]?r=parseInt(r,10):this.AA[a]&&(r=r&&"false"!==r&&"0"!=r),t[a]=r}return t}},function(){function o(e,t){var i=e.callback;l(!1),e.box.parentNode.removeChild(e.box),d=e.box=null,i&&i(t,e.details)}function r(e){if(d){var t=(e=e||event).which||event.keyCode;if(jeeplus.message.keyboard)return(13==t||32==t)&&o(d,!0),27==t&&o(d,!1),e.preventDefault&&e.preventDefault(),!(e.cancelBubble=!0)}}function l(e){l.cover&&l.cover.parentNode||((l.cover=document.createElement("DIV")).onkeydown=r,l.cover.className="jeeplus_modal_cover",document.body.appendChild(l.cover)),l.cover.style.display=e?"inline-block":"none"}function h(e,t,i){return"<div role='button' tabindex='0' aria-label='"+e+"' class='jeeplus_popup_button"+(i?" "+i:"")+"' result='"+t+"' ><div>"+e+"</div></div>"}function t(e,t,i){var n=e.tagName?e:function(n,e,t){var i=document.createElement("DIV");i.className=" jeeplus_modal_box jeeplus_"+n.type,i.setAttribute("jeeplusbox",1),i.setAttribute("role","alertdialog"),i.setAttribute("aria-label",n.title||""),i.setAttribute("tabindex","0");var s="";if(n.width&&(i.style.width=n.width+(jeeplus.rules.isNumber(n.width)?"px":"")),n.height&&(i.style.height=n.height+(jeeplus.rules.isNumber(n.height)?"px":"")),n.title&&(s+='<div class="jeeplus_popup_title">'+n.title+"</div>"),s+='<div class="jeeplus_popup_text"><span>'+(n.content?"":n.text)+'</span></div><div class="jeeplus_popup_controls">',(e||n.ok)&&(s+=h(n.ok||"OK",!0,"confirm")),(t||n.cancel)&&(s+=h(n.cancel||"Cancel",!1)),n.buttons)for(var a=0;a<n.buttons.length;a++)s+=h(n.buttons[a],a);if(s+="</div>",i.innerHTML=s,n.content){var r=n.content;"string"==typeof r&&(r=document.getElementById(r)),"none"==r.style.display&&(r.style.display=""),i.childNodes[n.title?1:0].appendChild(r)}return i.onclick=function(e){var t=(e=e||event).target||e.srcElement;if(t.className||(t=t.parentNode),-1!=t.className.indexOf("jeeplus_popup_button")){var i=t.getAttribute("result");o(n,i="true"==i||"false"!=i&&i)}e.cancelBubble=!0},n.box=i,(e||t||n.buttons)&&(d=n),i}(e,t,i);e.hidden||l(!0),jeeplus.toNode(e.container||document.body).appendChild(n);var s=e.left||Math.abs(Math.floor(((window.innerWidth||document.documentElement.offsetWidth)-n.offsetWidth)/2)),a=e.top||Math.abs(Math.floor(((window.innerHeight||document.documentElement.offsetHeight)-n.offsetHeight)/2));return"top"==e.position?n.style.top="-3px":n.style.top=a+"px",n.style.left=s+"px",n.onkeydown=r,n.focus(),e.hidden&&jeeplus.modalbox.hide(n),n}function s(e){return t(e,!0,!1)}function a(e){return t(e,!0,!0)}function u(e){return t(e)}function i(e,t,i){return"object"!=typeof e&&("function"==typeof t&&(i=t,t=""),e={text:e,type:t,callback:i}),e}var d=null;jeeplus.event(document,"keydown",r,{capture:!0}),jeeplus.alert=function(){var e=i.apply(this,arguments);return e.type=e.type||"confirm",s(e)},jeeplus.confirm=function(){var e=i.apply(this,arguments);return e.type=e.type||"alert",a(e)},jeeplus.modalbox=function(){var e=i.apply(this,arguments);return e.type=e.type||"alert",u(e)},jeeplus.modalbox.hide=function(e){if(e){for(;e&&e.getAttribute&&!e.getAttribute("jeeplusbox");)e=e.parentNode;e&&e.parentNode.removeChild(e)}l(!1),d=null};var c=jeeplus.message=function(e,t,i,n){switch((e=function(e,t,i,n){return"object"!=typeof e&&(e={text:e,type:t,expire:i,id:n}),e.id=e.id||c.uid(),e.expire=e.expire||c.expire,e}.apply(this,arguments)).type=e.type||"info",e.type.split("-")[0]){case"alert":return s(e);case"confirm":return a(e);case"modalbox":return u(e);default:return function(e){c.area||(c.area=document.createElement("DIV"),c.area.className="jeeplus_message_area",c.area.style[c.position]="5px",document.body.appendChild(c.area)),c.area.setAttribute("role","alert"),c.area.setAttribute("aria-atomic",!0),c.hide(e.id);var t=document.createElement("DIV");return t.innerHTML="<div>"+e.text+"</div>",t.className="jeeplus_info jeeplus_"+e.type,t.onclick=function(){c.hide(e.id),e=null},jeeplus.$testmode&&(t.className+=" jeeplus_no_transition"),"bottom"==c.position&&c.area.firstChild?c.area.insertBefore(t,c.area.firstChild):c.area.appendChild(t),0<e.expire&&(c.timers[e.id]=window.setTimeout(function(){c.hide(e.id)},e.expire)),t.style.height=t.offsetHeight-2+"px",c.pull[e.id]=t,t=null,e.id}(e)}};c.seed=(new Date).valueOf(),c.uid=function(){return c.seed++},c.expire=4e3,c.keyboard=!0,c.position="top",c.pull={},c.timers={},c.hideAll=function(){for(var e in c.pull)c.hide(e)},c.hide=function(e){var t=c.pull[e];t&&t.parentNode&&(window.setTimeout(function(){t.parentNode.removeChild(t),t=null},2e3),t.style.height=0,t.className+=" hidden",c.area.removeAttribute("role"),c.timers[e]&&window.clearTimeout(c.timers[e]),delete c.pull[e])}}(),jeeplus.protoUI({name:"carousel",defaults:{scrollSpeed:"300ms",type:"clean",navigation:{},animate:!0},$init:function(e){this.x.className+=" jeeplus_carousel",this.Ft=null,this.y=null,this.Mh=0,this.$ready.unshift(this.Gt),this.$ready.push(this.Mi)},addView:function(e,t){var i=this.Ft.addView(e,t);return this.bG(),i},removeView:function(e){this.Ft.removeView(e),this.bG()},Qb:function(e,t){this.Ft.Qb(e,t),this.bG()},bG:function(){this.q=this.Ft.q,this.Ch(),this.setActiveIndex(Math.min(this.Mh,this.q.length-1))},Gt:function(){this.Ft&&this.Ft.destructor&&this.Ft.destructor();var e="";this.config.cols?(e="cols",this.mc=0):(e="rows",this.mc=1);var t={borderless:!0,type:"clean"};t[e]=jeeplus.copy(this.s[e]);for(var i=["type","margin","marginX","marginY","padding","paddingX","paddingY"],n={},s=0;s<i.length;s++)this.s[i[s]]&&(n[i[s]]=this.s[i[s]]);jeeplus.extend(t,n,!0),this.Ft=jeeplus.ui.A(t),(this.Ft.Xb=this).x.appendChild(this.Ft.x),this.q=this.Ft.q,this.Ft.fc=jeeplus.bind(jeeplus.ui.carousel.prototype.fc,this),this.Ft.adjustScroll=jeeplus.bind(jeeplus.ui.carousel.prototype.adjustScroll,this),jeeplus.attachEvent("onReconstruct",jeeplus.bind(function(e){e==this.Ft&&this.Ht()},this)),this.w=this.x.firstChild},DD:function(e,t){this.s.navigation.items&&"tab"===t.target.getAttribute("role")&&this.PD(e,t),jeeplus.ui.baseview.prototype.DD.call(this,e,t)},getChildViews:function(){return[this.Ft]},getLayout:function(){return this.Ft},Mi:function(){this.w.setAttribute("touch_scroll",this.mc?"y":"x"),this.Ft.attachEvent("onAfterScroll",jeeplus.bind(function(e){this.callEvent("onShow",[this.getActiveId()])},this)),jeeplus.ui.each(this.Ft,function(e){e.x.setAttribute("role","tabpanel")})},adjustScroll:function(e){var t,i=this.mc?this.dc:this.bc;return this.mc?(t=Math.round(e.f/i),e.f=t*i):(t=Math.round(e.e/i),e.e=t*i),this.Mh=-t,this.s.navigation&&this.Eh(),!0},fc:function(e){var t,i,n,s,a,r;for(n=-1,i=this.Ft,t=0;t<i.q.length;t++)if(i.q[t]==e){n=t;break}n<0||n==this.Mh||(this.Mh=n,s=i.mc?this.dc:this.bc,a=-(i.mc?0:n*s),r=-(i.mc?n*s:0),this.scrollTo(a,r),this.callEvent("onShow",[i.q[this.Mh].s.id]),this.s.navigation&&this.Ch())},scrollTo:function(e,t){jeeplus.Touch&&jeeplus.animate.isSupported()&&this.s.animate?jeeplus.Touch.Nf(this.w,e,t,this.s.scrollSpeed||"100ms"):(this.w.style.marginLeft=e+"px",this.w.style.marginTop=t+"px")},navigation_setter:function(e){return this.E(e,{type:"corner",buttons:!0,items:!0}),e},showNext:function(){this.Mh<this.Ft.q.length-1&&this.setActiveIndex(this.Mh+1)},showPrev:function(){0<this.Mh&&this.setActiveIndex(this.Mh-1)},setActiveIndex:function(e){var t=this.Ft.q[e].s.id;jeeplus.$$(t).show()},getActiveIndex:function(){return this.Mh},$getSize:function(e,t){var i=this.Ft.$getSize(0,0),n=jeeplus.ui.view.prototype.$getSize.call(this,e,t);return this.Ft.mc?(n[0]=Math.max(n[0],i[0]),n[1]=Math.min(n[1],i[1])):(n[2]=Math.max(n[2],i[2]),n[3]=Math.min(n[3],i[3])),n},$setSize:function(e,t){var i=this.Ft,n=i.q.length,s=jeeplus.ui.view.prototype.$setSize.call(this,e,t),a=this.dc*(i.mc?n:1),r=this.bc*(i.mc?1:n);s?(this.w.style.height=a+"px",this.w.style.width=r+"px",i.$setSize(r,a),this.Ht()):i.$setSize(r,a)},Ht:function(){var e=this.Ft,t=this.Mh||0,i=e.mc?this.dc:this.bc,n=-(e.mc?0:t*i),s=-(e.mc?t*i:0);this.scrollTo(n,s),this.s.navigation&&this.Ch()},getActiveId:function(){var e=this.Ft.q[this.Mh];return e?e.s.id:null},setActive:function(e){jeeplus.$$(e).show()}},jeeplus.EventSystem,jeeplus.NavigationButtons,jeeplus.ui.view),jeeplus.type(jeeplus.ui.list,{name:"uploader",template:"#name# {common.removeIcon()}{common.percent()}<div style='float:right'>#sizetext#</div>",percent:function(e){return"transfer"==e.status?"<div style='width:60px; text-align:center; float:right'>"+e.percent+"%</div>":"<div class='jeeplus_upload_"+e.status+"'><span class='"+("error"==e.status?"error_icon":"fa-check jeeplus_icon")+"'></span></div>"},removeIcon:function(e){return"<div class='jeeplus_remove_upload'><span class='cancel_icon'></span></div>"},on_click:{jeeplus_remove_upload:function(e,t){jeeplus.$$(this.config.uploader).files.remove(t)}}}),jeeplus.UploadDriver={flash:{$render:function(e){window.swfobject||jeeplus.require("legacy/swfobject.js",!0);var t=this.s;t.swfId=t.swfId||"jeeplus_swf_"+jeeplus.uid(),this.re().innerHTML+="<div class='jeeplus_upload_flash'><div id='"+t.swfId+"'></div></div>",this._r=this.re().lastChild,swfobject.embedSWF(jeeplus.codebase+"/legacy/uploader.swf",t.swfId,"100%","100%","9",null,{uploaderId:t.id,ID:t.swfId,enableLogs:t.enableLogs?"1":"",paramName:t.inputName,multiple:t.multiple?"Y":""},{wmode:"transparent"}),swfobject.getFlashPlayerVersion(),jeeplus.UE(this.x,"click",jeeplus.bind(function(){250<new Date-(this.ds||0)&&this.fileDialog()},this)),this.files.attachEvent("onBeforeDelete",jeeplus.bind(this.as,this))},$applyFlash:function(e,t){return this[e].apply(this,t)},getSwfObject:function(){return swfobject.getObjectById(this.s.swfId)},fileDialog:function(){this.getSwfObject()&&this.getSwfObject().showDialog()},send:function(e){if("function"==typeof e&&(this.fs=e,e=0),e){var t=this.files.getItem(e);if("client"!==t.status)return!1;if(t.status="transfer",this.getSwfObject()){var i=this.rE(t),n=this.s.formData||{};"function"==typeof n&&(n=n.call(this));var s=jeeplus.extend(t.formData||{},n);this.getSwfObject().upload(e,i,s)}return!0}var a=this.files.data.order,r=!0;if(a.length)for(var o=0;o<a.length;o++)r=this.send(a[o])&&r;r&&this.gs()},$beforeAddFileToQueue:function(e,t,i){var n=t.split(".").pop(),s=this.ks(i);return this.callEvent("onBeforeFileAdd",[{id:e,name:t,size:i,sizetext:s,type:n}])},$addFileToQueue:function(e,t,i){if(this.files.exists(e))return!1;this.s.multiple||this.files.clearAll();var n=t.split(".").pop(),s={name:t,id:e,size:i,sizetext:this.ks(i),type:n,status:"client"};this.files.add(s),this.callEvent("onAfterFileAdd",[s]),e&&this.s.autosend&&this.send(e)},stopUpload:function(e){this.as(e)},as:function(e){var t=this.files.getItem(e);"transfer"==t.status&&(this.getSwfObject().uploadStop(e),t.status="client")},bs:function(){},$onUploadComplete:function(){this.s.autosend&&this.gs()},$onUploadSuccess:function(e,t,i){var n=this.files.getItem(e);n&&(n.status="server",n.progress=100,i.text&&"string"==typeof i.text&&(jeeplus.DataDriver.json.toObject(i.text),jeeplus.extend(n,i,!0)),this.callEvent("onFileUpload",[n,i]),this.callEvent("onChange",[]),this.files.updateItem(e))},$onUploadFail:function(e){var t=this.files.getItem(e);t.status="error",delete t.percent,this.files.updateItem(e),this.callEvent("onFileUploadError",[t,""])}},html5:{$render:function(e){if(this._r)this.w.firstChild.appendChild(this._r);else{this.files.attachEvent("onBeforeDelete",this.as);var t={type:"file",class:"jeeplus_hidden_upload",tabindex:-1};this.s.accept&&(t.accept=this.s.accept),this.s.multiple&&(t.multiple="true"),this.s.directory&&(t.webkitdirectory="true",t.mozdirectory="true",t.directory="true");var i=jeeplus.html.create("input",t);this._r=this.w.firstChild.appendChild(i),jeeplus.UE(this.x,"drop",jeeplus.bind(function(e){this.bs(e),jeeplus.html.preventEvent(e)},this)),jeeplus.UE(i,"change",jeeplus.bind(function(){if(this.cs(i.files),jeeplus.env.isIE){var e=document.createElement("form");e.appendChild(this._r),e.reset(),this.w.firstChild.appendChild(i)}else i.value=""},this)),jeeplus.UE(this.x,"click",jeeplus.bind(function(){250<new Date-(this.ds||0)&&this.fileDialog()},this)),jeeplus.UE(this.x,"dragenter",jeeplus.html.preventEvent),jeeplus.UE(this.x,"dragexit",jeeplus.html.preventEvent),jeeplus.UE(this.x,"dragover",jeeplus.html.preventEvent)}},kF:function(e){return e.isDirectory},lF:function(i,n,s){if(i.isFile)i.file(function(e){n.addFile(e,null,null,{name:s+"/"+e.name})});else if(i.isDirectory){i.createReader().readEntries(function(e){for(var t=0;t<e.length;t++)n.lF(e[t],n,(s?s+"/":"")+i.name)})}},bs:function(e){var t=e.dataTransfer.files,i=e.dataTransfer.items;if(this.callEvent("onBeforeFileDrop",[t,e])){i=i||t;for(var n=0;n<i.length;n++){var s=i[n];this.s.directory&&s.webkitGetAsEntry&&(s=s.webkitGetAsEntry()).isDirectory?this.lF(s,this,""):this.addFile(t[n])}}this.callEvent("onAfterFileDrop",[t,e])},fileDialog:function(e){this.ds=new Date,this.es=e;var t=this.x.getElementsByTagName("INPUT");t[t.length-1].click()},send:function(t){if("function"==typeof t&&(this.fs=t,t=0),t){var e=this.files.getItem(t);if("client"!==e.status)return!1;e.status="transfer";var i=new FormData;if(e.folder)for(d=0;d<e.folder.length;d++)i.append(this.config.inputName+d,e.folder[d],e.folder[d].webkitRelativePath);else i.append(this.config.inputName,e.file,e.name),this.s.directory&&i.append(this.config.inputName+"_fullpath",e.name);var n={},s=this.s.formData||{};"function"==typeof s&&(s=s.call(this));var a=jeeplus.extend(e.formData||{},s),r=new XMLHttpRequest,o=this.rE(e);if(jeeplus.callEvent("onBeforeAjax",["POST",o,a,r,n,i])){for(var l in a)i.append(l,a[l]);for(var l in(e.xhr=r).upload.addEventListener("progress",jeeplus.bind(function(e){this.$updateProgress(t,e.loaded/e.total*100)},this),!1),r.onload=jeeplus.bind(function(e){r.aborted||this.is(t)},this),r.open("POST",o,!0),n)r.setRequestHeader(l,n[l]);r.send(i)}return this.$updateProgress(t,0),!0}var h=this.files.data.order,u=!0;if(h.length)for(var d=0;d<h.length;d++)u=!this.send(h[d])&&u;u&&this.gs()},is:function(e){var t=this.files.getItem(e);if(t){var i=null;t.xhr.status<400&&(i=jeeplus.DataDriver[this.s.datatype||"json"].toObject(t.xhr.responseText)),i&&"error"!=i.status?this.js(e,i):(t.status="error",delete t.percent,this.files.updateItem(e),this.callEvent("onFileUploadError",[t,i])),delete t.xhr}},stopUpload:function(e){jeeplus.bind(this.as,this.files)(e)},as:function(e){var t=this.getItem(e);void 0!==t.xhr&&(t.xhr.aborted=!0,t.xhr.abort(),delete t.xhr,t.status="client")}}},jeeplus.protoUI({name:"uploader",defaults:{autosend:!0,multiple:!0,inputName:"upload"},$cssName:"button",Ce:!0,on_click:{jeeplus_hidden_upload:function(){return!1}},send:function(){},fileDialog:function(){},stopUpload:function(){},$init:function(e){var t=jeeplus.UploadDriver.html5;this.files=new jeeplus.DataCollection,this.Ns=[this.files],(jeeplus.isUndefined(XMLHttpRequest)||jeeplus.isUndefined((new XMLHttpRequest).upload))&&(t=jeeplus.UploadDriver.flash),jeeplus.extend(this,t,!0)},$setSize:function(e,t){jeeplus.ui.view.prototype.$setSize.call(this,e,t)&&this.render()},apiOnly_setter:function(e){return jeeplus.delay(this.render,this),this.$apiOnly=e},cs:function(e){for(var t=0;t<e.length;t++)this.addFile(e[t])},link_setter:function(e){return e&&jeeplus.delay(function(){var e=jeeplus.$$(this.s.link);if(!e){var t=this.getTopParentView();t.$$&&(e=t.$$(this.s.link))}e.sync&&e.filter?e.sync(this.files):e.setValues&&this.files.data.attachEvent("onStoreUpdated",function(){e.setValues(this)}),e.s.uploader=this.s.id},this),e},addFile:function(e,t,i,n){var s=null;"object"==typeof e&&(e=(s=e).name,t=s.size);var a=this.ks(t);i=i||e.split(".").pop();var r={file:s,name:e,id:jeeplus.uid(),size:t,sizetext:a,type:i,context:this.es,status:"client"};if(this.s.directory&&s.webkitRelativePath&&(r.name=s.webkitRelativePath),n&&jeeplus.extend(r,n,!0),this.callEvent("onBeforeFileAdd",[r])){this.s.multiple||this.files.clearAll();var o=this.files.add(r);this.callEvent("onAfterFileAdd",[r]),o&&this.s.autosend&&this.send(o)}return r},rE:function(e){var t=this.s.upload,i=jeeplus.extend(e.urlData||{},this.s.urlData||{});if(t&&i){var n=[];for(var s in i)n.push(encodeURIComponent(s)+"="+encodeURIComponent(i[s]));n.length&&(t+=(-1==t.indexOf("?")?"?":"&")+n.join("&"))}return t},addDropZone:function(e,t){var i=jeeplus.toNode(e),n="";t&&(n=" "+jeeplus.html.createCss({content:'"'+t+'"'},":before"));var s="jeeplus_drop_file"+n,a=null;jeeplus.UE(i,"dragover",jeeplus.html.preventEvent),jeeplus.UE(i,"dragover",function(e){jeeplus.html.addCss(i,s,!0),a&&(clearTimeout(a),a=null)}),jeeplus.UE(i,"dragleave",function(e){a=setTimeout(function(){jeeplus.html.removeCss(i,s)},150)}),jeeplus.UE(i,"drop",jeeplus.bind(function(e){return jeeplus.html.removeCss(i,s),this.bs(e),jeeplus.html.preventEvent(e)},this))},ks:function(e){for(var t=0;1024<e;)t++,e/=1024;return Math.round(100*e)/100+" "+jeeplus.i18n.fileSize[t]},js:function(e,t){var i=this.files.getItem(e);jeeplus.extend(i,t,!0),i.status="server",i.progress=100,this.callEvent("onFileUpload",[i,t]),this.callEvent("onChange",[]),this.files.updateItem(e),this.isUploaded()&&this.gs(t)},gs:function(e){this.callEvent("onUploadComplete",[e]),this.fs&&(this.fs.call(this,e),this.fs=0)},isUploaded:function(){for(var e=this.files.data.order,t=0;t<e.length;t++)if("server"!=this.files.getItem(e[t]).status)return!1;return!0},$onUploadComplete:function(){},$updateProgress:function(e,t){this.files.getItem(e).percent=Math.round(t),this.files.updateItem(e)},setValue:function(e){"string"==typeof e&&e&&(e={value:e,status:"server"}),this.files.clearAll(),e&&this.files.parse(e),this.callEvent("onChange",[])},getValue:function(){var t=[];return this.files.data.each(function(e){"server"==e.status&&t.push(e.value||e.name)}),t.join(",")}},jeeplus.ui.button),jeeplus.html.addMeta=function(e,t){document.getElementsByTagName("head").item(0).appendChild(jeeplus.html.create("meta",{name:e,content:t}))},function(){var i=function(){var e=!!(window.orientation%180);jeeplus.ui.orientation!==e&&(jeeplus.ui.orientation=e,jeeplus.callEvent("onRotate",[e]))};jeeplus.env.touch&&(jeeplus.ui.orientation=!!((jeeplus.isUndefined(window.orientation)?90:window.orientation)%180),jeeplus.event(window,"onorientationchange"in window?"orientationchange":"resize",i)),jeeplus.ui.fullScreen=function(){if(jeeplus.env.touch){jeeplus.html.addMeta("apple-mobile-web-app-capable","yes"),jeeplus.html.addMeta("viewport","initial-scale=1, maximum-scale=1, user-scalable=no, shrink-to-fit=no");var e=function(){var e=window.innerWidth,t=window.innerHeight;t&&(document.body.style.height=t+"px",document.body.style.width=e+"px"),jeeplus.ui.PG=!1,jeeplus.ui.resize()},t=function(){jeeplus.ui.PG=!0,jeeplus.delay(e,null,[],500)};jeeplus.attachEvent("onRotate",t),i(),jeeplus.delay(t)}}}(),jeeplus.history={track:function(e,t){if(this.ls(e,t),this.cG&&jeeplus.$$(this.dG).detachEvent(this.cG),e){this.dG=e;var i=jeeplus.$$(e),n=function(){jeeplus.history.ms||i.getValue&&jeeplus.history.push(e,i.getValue())};i.getActiveId?this.cG=i.attachEvent("onViewChange",n):this.cG=i.attachEvent("onChange",n)}},ns:function(e,t){jeeplus.history.ms=1,(e=jeeplus.$$(e)).callEvent("onBeforeHistoryNav",[t])&&e.setValue&&e.setValue(t),jeeplus.history.ms=0},push:function(e,t,i){e=jeeplus.$$(e);var n="";t&&(n="#!/"+t),jeeplus.isUndefined(i)&&(i=e.getValue?e.getValue():t),window.history.pushState({jeeplus:!0,id:e.s.id,value:i},"",n)},ls:function(e,t){jeeplus.event(window,"popstate",function(e){e.state&&e.state.jeeplus&&jeeplus.history.ns(e.state.id,e.state.value)});var i=window.location.hash;jeeplus.noanimate=!0,i&&0===i.indexOf("#!/")?jeeplus.history.ns(e,i.replace("#!/","")):t&&(jeeplus.history.push(e,t),jeeplus.history.ns(e,t)),jeeplus.noanimate=!1,this.ls=function(){}}},jeeplus.protoUI({name:"slider",$touchCapture:!0,defaults:{min:0,max:100,value:50,step:1,title:!1,moveTitle:!0,template:function(e,t){var i,n=t.qs="x"+jeeplus.uid(),s="<div class='jeeplus_slider_title"+(e.moveTitle?" jeeplus_slider_move":"")+"'"+(!e.moveTitle&&e.vertical?" style='line-height:"+(e.aheight-2*e.inputPadding)+"px;'":"")+"></div>",a="<div class='jeeplus_slider_left'>&nbsp;</div>",r="<div class='jeeplus_slider_right'></div>",o="<div class='jeeplus_slider_handle' role='slider' aria-label='"+e.label+(e.title?" "+e.title(e):"")+"' aria-valuemax='"+e.max+"' aria-valuemin='"+e.min+"' aria-valuenow='"+e.value+"' tabindex='0' id='"+n+"'>&nbsp;</div>";return i=e.vertical?"<div class='jeeplus_slider_box'>"+r+a+o+"</div>"+s:s+"<div class='jeeplus_slider_box'>"+a+r+o+"</div>",t.$renderInput(e,i,n)}},type_setter:function(e){this.x.className+=" jeeplus_slider_"+e},title_setter:function(e){return"string"==typeof e?jeeplus.template(e):e},rs:function(){return this.$view.querySelector(".jeeplus_slider_handle")},oe:function(){var e=this.rs(),t=this.s;if(e){var i=t.vertical?this.dc:this.Ee(t),n=t.value%t.step?Math.round(t.value/t.step)*t.step:t.value,s=t.max-t.min;n=Math.max(Math.min(n,t.max),t.min),n=t.vertical?s-(n-t.min):n-t.min;var a=Math.ceil((i-2*this.mF)*n/s),r=i-2*this.mF-a,o=t.vertical?"top":"left",l=t.vertical?"height":"width";e.style[o]=this.mF+a-this.nF/2+"px",e.parentNode.style[l]=i+"px",r=Math.min(Math.max(r,2*this.oF),i-2*this.mF-2*this.oF),a=Math.min(Math.max(a,2*this.oF),i-2*this.mF-2*this.oF);var h=e.previousSibling;h.style[l]=r+"px",h.previousSibling.style[l]=a+"px",this.BG(e,a,r,o)}},BG:function(e,t,i,n){var s=this.s;if(this.s.title){var a=e.parentNode[s.vertical?"nextSibling":"previousSibling"];if(a.innerHTML=this.s.title(this.s,this),this.s.moveTitle){var r=0;if(s.vertical)r=t+2*this.oF-this.nF/2;else{var o=a.clientWidth/2,l=t<o?o-t-2*this.oF:0,h=i<o?o-i-2*this.oF-this.nF/2:0;r=this.mF+t-o+l-h}a.style[n]=r+"px"}}},sE:function(){this.rs().setAttribute("aria-valuenow",this.s.value)},refresh:function(){var e=this.rs();e&&(this.sE(),this.s.title&&e.setAttribute("aria-label",this.s.label+" "+this.s.title(this.s,this)),this.oe())},$setValue:function(){this.refresh()},$getValue:function(){return this.s.value},$init:function(e){jeeplus.env.touch?this.attachEvent("onTouchStart",jeeplus.bind(this.ss,this)):jeeplus.UE(this.x,"mousedown",jeeplus.bind(this.ss,this)),jeeplus.UE(this.$view,"keydown",jeeplus.bind(this.tE,this)),e.vertical&&(e.height=e.height||jeeplus.skin.$active.vSliderHeight,this.x.className+=" jeeplus_slider_vertical",this.mF=jeeplus.skin.$active.vSliderPadding)},$skin:function(){this.nF=jeeplus.skin.$active.sliderHandleWidth,this.mF=jeeplus.skin.$active.sliderPadding,this.oF=jeeplus.skin.$active.sliderBorder},tE:function(e){var t=e.keyCode,i=this.s,n=i.value;if(32<t&&t<41){jeeplus.html.preventEvent(e);var s=e.target||e.srcElement,a=/jeeplus_slider_handle_(\d)/.exec(s.className);if(this.My=a?parseInt(a[1],10):-1,a&&(n=i.value[this.My]),n=n<i.min?i.min:n>i.max?i.max:n,35===t)n=i.min;else if(36===t)n=i.max;else{var r=37===t||40===t||34===t?-1:1;(33===t||34===t||1<i.step)&&(r*=i.step),n=1*n+r}if(a){var o=i.value[this.My?0:1];n=this.My&&n<=o||!this.My&&o<=n?o:n}if(n>=i.min&&n<=i.max){if(a){for(var l=[],h=0;h<i.value.length;h++)l[h]=h===this.My?n:i.value[h];n=l}this.setValue(n),this.My=-1}}},ss:function(e){var t=e.target||e.srcElement;this.Ky&&this.Ky(e);var i=this.s.value;return jeeplus.isArray(i)&&(i=jeeplus.copy(i)),-1!=t.className.indexOf("jeeplus_slider_handle")?(this.$x=i,this.ts.apply(this,arguments)):void(-1!=t.className.indexOf("jeeplus_slider")&&(this.$x=i,this.s.value=this.us.apply(this,arguments),this.ts(e)))},ts:function(e){jeeplus.env.touch?this.vs=[this.attachEvent("onTouchMove",jeeplus.bind(this.ws,this)),this.attachEvent("onTouchEnd",jeeplus.bind(this.xs,this))]:this.vs=[jeeplus.event(document.body,"mousemove",jeeplus.bind(this.ws,this)),jeeplus.event(window,"mouseup",jeeplus.bind(this.xs,this))],jeeplus.html.addCss(document.body,"jeeplus_noselect")},xs:function(e){this.vs&&(jeeplus.env.touch?(jeeplus.detachEvent(this.vs[0]),jeeplus.detachEvent(this.vs[1])):(jeeplus.eventRemove(this.vs[0]),jeeplus.eventRemove(this.vs[1])),this.vs=[]),jeeplus.html.removeCss(document.body,"jeeplus_noselect");var t=this.s.value;jeeplus.isArray(t)&&(t=jeeplus.copy(t)),this.s.value=this.$x,this.setValue(t),this.rs(this.My).focus(),this.My=-1},ws:function(e){this.s.value=this.us.apply(this,arguments),this.refresh(),this.callEvent("onSliderDrag",[])},us:function(e,t){var i,n=this.s.vertical?"y":"x";return i=jeeplus.env.touch?t?t[n]:e[n]:jeeplus.html.pos(e)[n],this.ys(i)},ys:function(e){var t=this.s,i=t.max-t.min,n=t.vertical?"y":"x",s=jeeplus.html.offset(this.rs().parentNode)[n]+this.mF,a=(t.vertical?this.dc:this.Ee(t))-2*this.mF,r=a?(e-s)*i/a:0;return t.vertical&&(r=i-r),r=Math.round((r+t.min)/t.step)*t.step,Math.max(Math.min(r,t.max),t.min)},De:function(){}},jeeplus.ui.text),jeeplus.protoUI({name:"rangeslider",$cssName:"slider jeeplus_rangeslider",defaults:{separator:",",value:"20,80",template:function(e,t){var i="x"+jeeplus.uid();t.qs=[i+"_0",i+"_1"];var n="role='slider' aria-label='"+e.label+(e.title?" "+e.title(e):"")+"' aria-valuemax='"+e.max+"' aria-valuemin='"+e.min+"' tabindex='0'",s="<div class='jeeplus_slider_handle jeeplus_slider_handle_0' id='"+t.qs[0]+"' "+n+" aria-valuenow='"+e.value[0]+"'>&nbsp;</div>";s+="<div class='jeeplus_slider_handle jeeplus_slider_handle_1' id='"+t.qs[1]+"' "+n+" aria-valuenow='"+e.value[1]+"'>&nbsp;</div>";var a="<div class='jeeplus_slider_title"+(e.moveTitle?" jeeplus_slider_move":"")+"'"+(!e.moveTitle&&e.vertical?" style='line-height:"+(e.aheight-t.mF-2*e.inputPadding)+"px;'":"")+"></div>";e.moveTitle&&(a="<div class='jeeplus_slider_title_box'>"+(a+a)+"</div>");var r,o="<div class='jeeplus_slider_right'>&nbsp;</div><div class='jeeplus_slider_left'></div>";return r=e.vertical?"<div class='jeeplus_slider_box'>"+o+s+"</div>"+a:a+"<div class='jeeplus_slider_box'>"+o+s+"</div>",t.$renderInput(e,r,i)}},value_setter:function(e){return jeeplus.isArray(e)||(e=e.toString().split(this.s.separator)),e.length<2&&(e[1]=e[0]),e[0]=parseFloat(e[0]),e[1]=parseFloat(e[1]),e},rs:function(e){return e=e&&0<=e?e:0,this.$view.querySelector(".jeeplus_slider_handle_"+(e||0))},Ly:function(e,t){var i,n,s;return n=(i=this.s).max-i.min,s=i.value[t]%i.step?Math.round(i.value[t]/i.step)*i.step:i.value[t],s=Math.max(Math.min(s,i.max),i.min),Math.ceil((e-2*this.mF)*(s-i.min)/n)},tH:function(e,t,i){var n=this.mF+t-this.nF/2*(i?-1:1);return(n=i?e-n:n)+"px"},uH:function(e,t,i,n){var s=t+this.mF+2*this.oF;return n&&(s=e-s-i),s+"px"},oe:function(){var e,t,i,n,s,a,r,o,l,h,u;t=this.rs(0),i=this.rs(1),e=this.s,jeeplus.isArray(e.value)||this.define("value",e.value),t&&(l=e.vertical?"height":"width",u=e.vertical?"top":"left",a=(h=e.vertical?this.dc:this.Ee(e))-2*this.mF-2*this.oF,n=this.Ly(h,0),r=(s=this.Ly(h,1))-n,t.style[u]=this.tH(h,n,e.vertical),i.style[u]=this.tH(h,s,e.vertical),(o=t.parentNode).style[l]=h+"px",o.firstChild.style[l]=a+"px",o.childNodes[1].style[l]=r+"px",o.childNodes[1].style[u]=this.uH(h,n,r,e.vertical),this.BG(t,[n,s],a,u))},vH:0,wH:function(e,t){jeeplus.isUndefined(this.vH)||(e[this.vH].style.visibility="visible"),jeeplus.isUndefined(t)||(e[t].style.visibility="hidden",this.vH=t)},BG:function(e,t,i,n){var s=this.s;if(this.s.title){var a=e.parentNode,r=s.vertical?"nextSibling":"previousSibling";if(s.moveTitle){for(var o=a[r].childNodes,l=[],h=0;h<2;h++)l.push(this.xH(o[h],s.value[h],t[h],i,n,h));var u=s.vertical?l[0]-l[1]-this.nF:l[1]-l[0],d=s.vertical?"clientHeight":"clientWidth";o[0][d]/2+o[1][d]/2>u?this.wH(o,jeeplus.isUndefined(this.My)?0:this.My?0:1):this.wH(o);for(h=0;h<2;h++)o[h].style[n]=l[h]+"px"}else a[r].innerHTML=this.s.title(this.s,this)}},xH:function(e,t,i,n,s,a){e.innerHTML=this.s.title({value:t},this);var r=e.clientWidth/2,o=0;return this.s.vertical?o=n-i-this.nF/2-(a?this.mF+this.config.inputPadding:0)+2*this.oF:(o=i+this.nF/2+2*this.oF-r,o=!a&&i<r?r-i+o:o,o=a&&n<r+i?o-r+(n-i):o),o},sE:function(){for(var e=0;e<2;e++)this.rs(e).setAttribute("aria-valuenow",this.s.value[e])},Ky:function(e){var t=e.target||e.srcElement,i=/jeeplus_slider_handle_(\d)/.exec(t.className);this.My=i?parseInt(i[1],10):-1,i&&this.Ny(this.My)},setValue:function(e){var t=this.s.value,i="object"==typeof e?e.join(this.s.separator):e;return t.join(this.s.separator)!=i&&(this.s.value=e,this.se&&this.$setValue(e),void this.callEvent("onChange",[e,t]))},$getValue:function(){var e=this.s.value;return this.s.stringResult?e.join(this.s.separator):e},Ny:function(e){var t=this.rs(e),i=this.rs(1-e);-1==t.className.indexOf("jeeplus_slider_active")&&(t.className+=" jeeplus_slider_active"),i.className=i.className.replace(" jeeplus_slider_active","")},ys:function(e){var t=this.s,i=t.value,n=t.max-t.min,s=t.vertical?"y":"x",a=jeeplus.html.offset(this.rs().parentNode)[s],r=Math.ceil((e-a)*n/(t.vertical?this.dc:this.Ee(t)));r=Math.round((r+t.min)/t.step)*t.step,t.vertical&&(r=n-r);var o=null,l=jeeplus.html.offset(this.rs(0))[s],h=jeeplus.html.offset(this.rs(1))[s];if(l!=h||t.value[0]!=t.min&&t.value[0]!=t.max)if(0<=this.My)o=this.My;else if(l==h)o=e<l?0:1;else{o=Math.abs(l-e)<Math.abs(h-e)?0:1,this.My=o}else o=t.value[0]==t.min?1:0,this.Ny(o);return i[o]=o?Math.max(Math.min(r,t.max),i[0]):Math.max(Math.min(r,i[1]),t.min),i}},jeeplus.ui.slider),jeeplus.proxy.offline={$proxy:!0,storage:jeeplus.storage.local,cache:!1,data:"",zs:function(){this.cache||jeeplus.env.offline||(jeeplus.callEvent("onOfflineMode",[]),jeeplus.env.offline=!0)},As:function(){!this.cache&&jeeplus.env.offline&&(jeeplus.env.offline=!1,jeeplus.callEvent("onOnlineMode",[]))},load:function(n,s){var e={error:function(){var e=this.getCache()||this.data,t={responseText:e},i=jeeplus.ajax.prototype.J(t);this.zs(),jeeplus.ajax.$callback(n,s,e,i,t)},success:function(e,t,i){this.As(),jeeplus.ajax.$callback(n,s,e,t,i),this.setCache(e)}};this.cache&&this.getCache()?e.error.call(this):this.source.$proxy?this.source.load(this,e):jeeplus.ajax(this.source,e,this)},getCache:function(){return this.storage.get(this.Bs())},clearCache:function(){this.storage.remove(this.Bs())},setCache:function(e){this.storage.put(this.Bs(),e)},Bs:function(){return this.source.$proxy?this.source.source+"_$proxy$_data":this.source+"_$proxy$_data"},saveAll:function(e,t,i,n){this.setCache(e.serialize()),jeeplus.ajax.$callback(e,n,"",t)},result:function(e,t,i,n,s){for(var a=0;a<s.length;a++)i.processResult({id:s[a].id,status:s[a].operation},{},{})}},jeeplus.proxy.cache={init:function(){jeeplus.extend(this,jeeplus.proxy.offline)},cache:!0},jeeplus.proxy.local={init:function(){jeeplus.extend(this,jeeplus.proxy.offline)},cache:!0,data:[]},jeeplus.ActiveContent={$init:function(e){if(e.activeContent)for(var t in this.$ready.push(this.Ds),this.Es={},this.Fs={},this.Gs={},this.Hs={},e.activeContent)if(this[t]=this.Is(t),e.activeContent[t].earlyInit){var i=jeeplus.Xb;jeeplus.Xb=null,this[t].call(this,{},this,e.activeContent),jeeplus.Xb=i}},uE:function(){for(var e in this.Hs){var t=this.Hs[e];t.destructor&&t.destructor()}},Ds:function(){if(this.attachEvent("onDestruct",jeeplus.bind(this.uE,this)),jeeplus.UE(this.$view,"blur",function(e){if("BUTTON"!=(e.target||e.srcElement).tagName){var t=jeeplus.$$(e);if(t&&t!==this&&t.getValue&&t.setValue){t.getNode(e);var i=t.getValue();i!=t.s.value&&t.setValue(i)}}},{bind:this,capture:!0}),this.filter){for(var e in this.s.activeContent)this.type[e]=this[e],this[e]=this.Js(e);this.attachEvent("onBeforeRender",function(){this.type.masterUI=this}),this.type.masterUI=this}},Js:function(a){return function(e){for(var t=this.Hs[a],i=t.s.id,n=this.getItemNode(e).getElementsByTagName("DIV"),s=0;s<n.length;s++)if(n[s].getAttribute("view_id")==i){t.x=t.y=n[s];break}return t}},Ks:function(s,a,r){return function(e){if(e)for(var t=e.target||e.srcElement;t;){if(t.getAttribute&&t.getAttribute("view_id")){if(r.vE(s,t),r.locate){var i=r.locate(t.parentNode),n=r.Gs[a][i];s.s.value=n,s.s.$masterId=i}return t}t=t.parentNode}return s.x}},Ls:function(n,s){return function(e){var t=s.data;if(s.filter){var i=s.locate(this.x.parentNode);t=s.getItem(i),this.refresh(),s.Fs[n][i]=this.x.outerHTML||(new XMLSerializer).serializeToString(this.x),s.Gs[n][i]=e}t&&(t[n]=e)}},Is:function(r){return function(e,t,i){var n=t.Es?t:t.masterUI;if(!n.Es[r]){var s=document.createElement("DIV");i=i||n.s.activeContent;var a=jeeplus.ui(i[r],s);s.firstChild.setAttribute("onclick","event.processed = true; if (jeeplus.env.isIE8) event.srcElement.w_view = '"+a.s.id+"';"),a.getNode=n.Ks(a,r,n),a.attachEvent("onChange",n.Ls(r,n)),n.Hs[r]=a,n.Es[r]=s.innerHTML,n.Fs[r]={},n.Gs[r]={},a.$activeEl=a.$view}n.filter&&e[r]!=n.Gs[r]&&!jeeplus.isUndefined(e[r])&&((a=n.Hs[r]).blockEvent(),n.vE(a,a.$activeEl),a.$view.firstChild||a.refresh(),a.setValue(e[r]),a.refresh(),a.unblockEvent(),n.Gs[r][e.id]=e[r],n.Fs[r][e.id]=a.x.outerHTML||(new XMLSerializer).serializeToString(a.x));return n.Fs[r][e.id]||n.Es[r]}},vE:function(e,t){e.y=e.x=e.$view=t}},jeeplus.ProgressBar={$init:function(){jeeplus.isUndefined(this.cu)&&this.attachEvent&&(this.attachEvent("onBeforeLoad",this.showProgress),this.attachEvent("onAfterLoad",this.hideProgress),this.cu=null)},showProgress:function(a){if(!this.cu){var e="icon"==(a=jeeplus.extend({position:0,delay:2e3,type:"icon",icon:"refresh",hide:!1},a||{},!0)).type?"fa-"+a.icon+" fa-spin":"";if(this.cu=jeeplus.html.create("DIV",{class:"jeeplus_progress_"+a.type,role:"progressbar","aria-valuemin":"0","aria-valuemax":"100",tabindex:"0"},"<div class='jeeplus_progress_state "+e+"'></div>"),this.setPosition||(this.x.style.position="relative"),jeeplus.html.insertBefore(this.cu,this.x.firstChild,this.x),this.x.setAttribute("aria-busy","true"),!jeeplus.Touch.$active&&this.getScrollState){var t=this.getScrollState();this.x.scrollWidth!=this.$width&&(this.cu.style.left=t.x+"px"),this.x.scrollHeight!=this.$height&&("bottom"!=a.type?this.cu.style.top=t.y+"px":this.cu.style.top=t.y+this.$height-this.cu.offsetHeight+"px")}this.du=1}a&&"icon"!=a.type?jeeplus.delay(function(){if(this.cu){var e=a.position||1;if(this.cu.style[jeeplus.env.transitionDuration]===jeeplus.undefined&&a.delay){var t=0,i=0,n=e/a.delay*30,s=this;this.Oy&&(window.clearInterval(this.Oy),i=this.cu.firstChild.offsetWidth/this.cu.offsetWidth*100),this.Oy=window.setInterval(function(){30*t==a.delay?window.clearInterval(s.Oy):(s.cu&&s.cu.firstChild&&(s.cu.firstChild.style.width=i+t*n*e*100+"%"),t++)},30)}else this.cu.firstChild.style.width=100*e+"%",a.delay&&(this.cu.firstChild.style[jeeplus.env.transitionDuration]=a.delay+"ms");a.hide&&jeeplus.delay(this.hideProgress,this,[1],a.delay)}this.du=0},this):a&&"icon"==a.type&&a.hide&&jeeplus.delay(this.hideProgress,this,[1],a.delay)},hideProgress:function(e){this.du&&(e=!0),this.cu&&(e?(this.Oy&&window.clearInterval(this.Oy),jeeplus.html.remove(this.cu),this.cu=null,this.x.removeAttribute("aria-busy")):this.showProgress({position:1.1,delay:300,hide:!0}))}},jeeplus.protoUI({name:"multitext",$cssName:"text",defaults:{icon:"plus-circle",iconWidth:25,separator:", "},getValueHere:function(){return jeeplus.ui.text.prototype.getValue.call(this)},setValueHere:function(e){return jeeplus.ui.text.prototype.$setValue.call(this,e)},getValue:function(){if("extra"==this.config.mode)return this.getValueHere();if(this.rH)return this.rH;for(var e=[this.getValueHere(this)],t=0;t<this.eu.length;t++){var i=jeeplus.$$(this.eu[t]).getValueHere();i&&e.push(i)}return e.join(this.config.separator)},$setValue:function(e){if(e=e||"","extra"==this.config.mode)return this.setValueHere(e);var t=(this.rH=e).split(this.config.separator);if(t.length!=this.eu.length+1){this.removeSection(),this.setValueHere.call(this,t[0]);for(var i=1;i<t.length;i++)this.addSection(t[i]);this.rH=""}else{this.setValueHere(t[0]);for(i=0;i<this.eu.length;i++)jeeplus.$$(this.eu[i]).setValueHere(t[i+1])}},yB:function(e){var t=this.config.master?jeeplus.$$(this.config.master):this,i=t.getValue(),n=t.s.value;i!==n&&(t.s.value=i,t.callEvent("onChange",[i,n]))},addSection:function(e){var t=this.config,i={labelWidth:t.labelWidth,inputWidth:t.inputWidth,width:t.width,label:t.label?"&nbsp;":"",view:this.name,mode:"extra",value:e||"",icon:"minus-circle",suggest:t.suggest||null,master:t.id};jeeplus.extend(i,t.subConfig||{},!0);var n=this.getParentView().addView(i);return jeeplus.$$(n).attachEvent("onChange",this.yB),this.eu.push(n),this.callEvent("onSectionAdd",[n,this.eu.length]),n},removeSection:function(e){for(var t=this.config.master?jeeplus.$$(this.config.master):this,i=t.eu.length-1;0<=i;i--){var n=t.eu[i];e&&n!=e||(t.eu.removeAt(i),this.getParentView().removeView(n),t.callEvent("onSectionRemove",[n,i+1]))}},on_click:{jeeplus_input_icon:function(e,t,i){if("extra"==this.config.mode){this.removeSection(this.config.id);var n=this.getParentView().getChildViews();n[n.length-1].focus(),this.yB()}else jeeplus.$$(this.addSection()).focus();return!1}},$init:function(){this.eu=jeeplus.toArray([]),this.attachEvent("onKeyPress",this.DD)},$render:function(e){this.$setValue(e.value)}},jeeplus.ui.text),jeeplus.protoUI({name:"organogram",defaults:{scroll:"auto",ariaLabel:"lines"},$init:function(){this.x.className+=" jeeplus_organogram",this.v=document.createElement("DIV"),this.$ready.push(this.Av),jeeplus.extend(this.data,jeeplus.TreeStore,!0),this.data.provideApi(this,!0)},ad:"jeeplus_dg_id",on_click:{jeeplus_organogram_item:function(e,t){this.s.select&&("multiselect"==this.s.select||this.s.multiselect?this.select(t,!1,e.ctrlKey||e.metaKey||"touch"==this.s.multiselect,e.shiftKey):this.select(t),this.Qh=!1)}},on_context:{},on_dblclick:{},Av:function(){this.y.style.position="relative",this.data.attachEvent("onStoreUpdated",jeeplus.bind(this.render,this))},pg:function(e){var t=this.data.Me[e.id];return this.callEvent("onItemRender",[e]),this.type.templateStart.call(this,e,this.type,t)+(e.$template?this.type["template"+e.$template].call(this,e,this.type,t):this.type.template.call(this,e,this.type,t))+this.type.templateEnd.call(this)},jb:function(e){var t=this.pg(e);return this.data.branch[e.id]&&(t+=this._x(e.id)),t},LA:function(){return this.type.listMarginX||this.type.listMarginY},_x:function(e,t){var i,n,s,a,r="",o=this.data.branch[e],l=this.data.Me[e],h=this.getItem(e),u=!!h&&h.$type;if(t=t||0,"list"===u&&(t+=this.type.listMarginX),e||(this.ay=[],this.$xy={},a=this.$width-2*this.type.padding,this.$xy[0]={totalWidth:a,start:this.type.padding,width:0,height:0,left:a/2,top:this.type.padding||0}),o){s=this.$xy[e],"list"!=u||this.LA()||(r+=this.type.templateListStart.call(this,h,this.type,l));var d=0,c=0;for(i=0;i<o.length;i++){n=o[i],a=this.by[n],(v=this.getItem(n)).open==jeeplus.undefined&&(v.open=!0),"list"==u&&this.data.addMark(n,"list_item","",1,!0);var p=this.cy(n);if("list"==u){var f=0;this.LA()?f=this.type.listMarginY:i||(f=this.type.marginY),this.$xy[n]={totalWidth:a,start:s.start,width:this.type.width,height:p,left:s.start+a/2-this.type.width/2+t,top:i?this.$xy[o[i-1]].top+this.$xy[o[i-1]].height+f+c:s.top+s.height+f},c=this.data.branch[n]?this.GG(n):0}else this.$xy[n]={totalWidth:a,start:s.start+d,width:this.type.width,height:p,left:s.start+d+a/2-this.type.width/2,top:s.top+s.height+(e?this.type.marginY:0)};r+=this.pg(v),d+=a}for(i=0;i<o.length;i++)n=o[i],this.data.branch[n]&&this.getItem(n).open?r+=this._x(n,t):h&&("list"!=h.$type?this.ay.push(this.$xy[n].top+this.$xy[n].height):i==o.length-1&&this.ay.push(this.$xy[n].top+this.$xy[n].height));var m=0;for(var g in this.$xy){var v=this.$xy[g];m=Math.max(v.left+v.width,m)}this.y.style.width=m+this.type.padding+this.type.marginX/2+"px","list"!=u||this.LA()||(r+=this.type.templateListEnd(h,this.type,l))}return r},GG:function(e){for(var t=this.data.branch[e],i=0,n=0;n<t.length;n++)i+=this.cy(t[n])+this.type.listMarginY,this.data.branch[t[n]]&&(i+=this.GG(t[n]));return i+this.type.marginY},cy:function(e){var t=this.getItem(e),i=this.type.height;return"function"==typeof i&&(i=i.call(t,this.type,this.data.Me[e])),this.dy||(this.dy=jeeplus.html.create("div"),this.y.appendChild(this.dy)),this.dy.className=this.type.classname(t,this.type,this.data.Me[e]),this.dy.style.cssText="width:"+this.type.width+"px;height:"+i+("auto"==i?"":"px")+";",this.dy.innerHTML=this.type.template.call(this,t,this.type,this.data.Me[e]),this.dy.scrollHeight},ey:function(){var s={},a=this.type.width,r=this.type.marginX;return this.data.each(function(e){s[e.id]=a+r;var t=this.getParentId(e.id);if(t&&"list"!=this.getItem(t).$type)for(;t;){for(var i=this.branch[t],n=s[t]=0;n<i.length;n++)s[t]+=s[i[n]]||0;t=this.getParentId(t)}}),this.by=s},getItemNode:function(e){if(this.t)return this.t[e];this.t={};for(var t=this.y.childNodes,i=0;i<t.length;i++){var n=t[i].getAttribute(this.ad);if(n&&(this.t[n]=t[i]),-1!=t[i].className.indexOf("jeeplus_organogram_list")&&!this.LA())for(var s=t[i].childNodes,a=0;a<s.length;a++)(n=s[a].getAttribute(this.ad))&&(this.t[n]=s[a])}return this.getItemNode(e)},Ne:function(e){return this.v.innerHTML=this.pg(e),this.v.firstChild},render:function(e,t,i){if(this.isVisible(this.s.id)&&!this.$blockRender){if("update"==i){var n=this.getItemNode(e),s=this.t[e]=this.Ne(t);return jeeplus.html.insertBefore(s,n),jeeplus.html.remove(n),!0}return this.callEvent("onBeforeRender",[this.data])&&(this.ey(),this.t=null,this.y.innerHTML=this._x(0),this.dy=null,this.y.style.height=Math.max.apply(Math,this.ay)+this.type.padding+"px",this.fy(),this.resize(),this.callEvent("onAfterRender",[])),!0}},fy:function(){this.canvas&&this.canvas.clearCanvas(!0),this.canvas=new jeeplus.Canvas({container:this.y,name:this.name,title:this.s.ariaLabel,width:this.y.offsetWidth,height:this.y.offsetHeight}),this.gy(0)},zo:function(e,t,i,n,s,a,r){e.strokeStyle=a,e.lineCap="square",e.lineWidth=r,e.beginPath(),e.moveTo(t,i),e.lineTo(n,s),e.stroke(),e.lineWidth=1},gy:function(e,t){var i,n,s,a,r,o,l,h,u,d;if(this.config.layout,t||(t=this.canvas.getCanvas()),this.$xy&&(e=e||0,s=this.data.branch[e],n=this.getItem(e),s&&s.length)){if(a=this.$xy[e],e)if(o=parseInt(a.left+a.width/2,10)+.5,l=parseInt(a.top+a.height,10),h=parseInt(a.top+a.height+this.type.marginY/2,10),"list"==n.$type){if(!this.LA())return h=parseInt(a.top+a.height+this.type.marginY,10),void this.zo(t,o,l,o,h,this.type.lineColor)}else this.zo(t,o,l,o,h,this.type.lineColor);for(l=parseInt(a.top+a.height+this.type.marginY/2,10)+.5,i=0;i<s.length;i++)e&&(r=this.$xy[s[i]],"list"==n.$type&&this.LA()?(o=parseInt(a.left+this.type.listMarginX/2,10)+.5,i?i==s.length-1&&(d=o):u=o,h=parseInt(r.top+r.height/2,10),this.zo(t,o,l-this.type.marginY/2,o,h,this.type.lineColor),this.zo(t,o,h,o+this.type.listMarginX/2,h,this.type.lineColor)):(o=parseInt(r.left+r.width/2,10)+.5,i?i==s.length-1&&(d=o):u=o,h=parseInt(r.top,10),this.zo(t,o,l,o,h,this.type.lineColor))),this.getItem(s[i]).open&&this.gy(s[i],t);e&&this.zo(t,u,l,d,l,this.type.lineColor)}},$getSize:function(e,t){var i=this.s.autowidth,n=this.s.autoheight;return i&&(e=this.y.offsetWidth+(this.y.offsetHeight>t&&!n?jeeplus.ui.scrollSize:0)),n&&(t=this.y.offsetHeight+(this.y.offsetWidth>e&&!i?jeeplus.ui.scrollSize:0)),jeeplus.ui.view.prototype.$getSize.call(this,e,t)},$setSize:function(e,t){jeeplus.ui.view.prototype.$setSize.call(this,e,t)&&(this.y.style.width=this.$width+"px",this.y.style.height=this.$height+"px",this.render())},type:{width:120,height:"auto",padding:20,marginX:20,marginY:20,listMarginX:0,listMarginY:0,lineColor:"#90caf9",classname:function(e,t,i){var n="jeeplus_organogram_item ";return e.$css&&("object"==typeof e.$css&&(e.$css=jeeplus.html.createCss(e.$css)),n+=" "+e.$css),i&&i.list_item&&(n+=" jeeplus_organogram_list_item "),i&&i.$css&&(n+=i.$css),n+" jeeplus_organogram_level_"+e.$level},listClassName:function(e){var t="jeeplus_organogram_list jeeplus_organogram_list_"+e.$level;return e.$listCss&&("object"==typeof e.$listCss&&(e.$listCss=jeeplus.html.createCss(e.$listCss)),t+=" "+e.$listCss),t},template:jeeplus.template("#value#"),templateStart:function(e,t,i){var n="";if((!i||!i.list_item||t.listMarginX||t.listMarginY)&&this.$xy){var s=this.$xy[e.id];n+="width: "+s.width+"px; height: "+s.height+"px;",n+="top: "+s.top+"px; left: "+s.left+"px;"}return'<div jeeplus_dg_id="'+e.id+'" class="'+t.classname.call(this,e,t,i)+'"'+(n?'style="'+n+'"':"")+'">'},templateEnd:jeeplus.template("</div>"),templateListStart:function(e,t,i){var n="";if(this.$xy){var s=this.$xy[e.id];n+="width: "+s.width+"px;",n+="top: "+(s.top+s.height+t.marginY)+"px; left: "+s.left+"px;"}return'<div class="'+t.listClassName.call(this,e,t,i)+'"'+(n?'style="'+n+'"':"")+'">'},templateListEnd:jeeplus.template("</div>")}},jeeplus.AutoTooltip,jeeplus.Group,jeeplus.TreeAPI,jeeplus.DataMarks,jeeplus.SelectionModel,jeeplus.MouseEvents,jeeplus.Scrollable,jeeplus.RenderStack,jeeplus.TreeDataLoader,jeeplus.DataLoader,jeeplus.ui.view,jeeplus.EventSystem),jeeplus.protoUI({name:"barcode",defaults:{type:"ean13",height:160,width:220,paddingY:10,paddingX:20,textHeight:20,color:"#000",ariaLabel:"bars"},$init:function(){this.$view.className+=" jeeplus_barcode",this.types||(this.types={default:this.type},this.type.name="default")},type:{},render:function(){this.isVisible(this.s.id)&&(this.canvas&&this.canvas.clearCanvas(!0),this.$view.innerHTML="",this.fy())},fy:function(){this.canvas=new jeeplus.Canvas({container:this.$view,name:this.name,title:this.s.ariaLabel,width:this.$width,height:this.$height}),this.hy()},hy:function(){var e,t,i,n,s=this.s.value,a=this.s.type;if(!a||!this.types[a]||!s)return!1;if(n=(e=this.type.encode(s)).length,t=this.canvas.getCanvas(),n){var r=(this.$width-2*this.config.paddingX)/n,o=0;for(i=0;i<n;i++){parseInt(e.charAt(i),10)?(o++,i==n-1&&this.bp(t,i+1,r,o,n)):o&&(this.bp(t,i,r,o,n),o=0)}this.iy(s,r)}},bp:function(e,t,i,n,s){var a,r,o,l;r=parseInt(t*i+this.config.paddingX,10),a=parseInt(r-n*i,10),o=this.config.paddingY,l=this.$height-this.config.paddingY-this.config.textHeight,this.jy()&&(t<4||s-4<t||t<s/2+2&&s/2-2<t)&&(l+=this.config.textHeight/2),e.fillStyle=this.config.color,e.beginPath(),e.moveTo(a,o),e.lineTo(r,o),e.lineTo(r,l),e.lineTo(a,l),e.lineTo(a,o),e.fill()},iy:function(e,t){var i,n,s;if(this.type.template&&(e=this.type.template(e)),this.jy()){if(this.type.firstDigit&&(this.canvas.renderTextAt(!0,"left",this.config.paddingX,this.$height-this.config.paddingY,e.charAt(0)),e=e.slice(1)),n=e.length,this.type.lastDigit&&n--,n){var a=(this.$width-2*this.config.paddingX-11*t)/n;for(i=0;i<n;i++)s=this.config.paddingX+i*a+(i<n/2?3:8)*t+a/2,this.canvas.renderTextAt(!0,!0,s,this.$height-this.config.paddingY,e.charAt(i));this.type.lastDigit&&(s=this.config.paddingX+n*a+11*t,this.canvas.renderTextAt(!0,!1,s,this.$height-this.config.paddingY,e.charAt(n)))}}else this.canvas.renderTextAt(!0,!0,this.$width/2,this.$height-this.config.paddingY,e)},setValue:function(e){return this.s.value=e,this.render(),e},getValue:function(){var e=this.s.value;return this.type.template?this.type.template(e):e},type_setter:function(e){return this.types[e]?(this.type=jeeplus.clone(this.types[e]),this.type.css&&(this.w.className+=" "+this.type.css)):this.customize(e),e},jy:function(){var e=this.config.type;return 0===e.indexOf("ean")||-1!=e.indexOf("upcA")},$setSize:function(e,t){jeeplus.ui.view.prototype.$setSize.call(this,e,t)&&this.render()}},jeeplus.ui.view),jeeplus.type(jeeplus.ui.barcode,{name:"ean8",encodings:[["0001101","1110010"],["0011001","1100110"],["0010011","1101100"],["0111101","1000010"],["0100011","1011100"],["0110001","1001110"],["0101111","1010000"],["0111011","1000100"],["0110111","1001000"],["0001011","1110100"]],encode:function(e){var t,i;if(7!=(e=e.replace(/[^0-9]/g,"").substring(0,7)).length)return"";for(e+=this.checksum(e),t="101",i=0;i<4;i++)t+=this.encodings[parseInt(e.charAt(i),10)][0];for(t+="01010",i=4;i<8;i++)t+=this.encodings[parseInt(e.charAt(i),10)][1];return t+"101"},template:function(e){return e.replace(/[^0-9]/g,"").substring(0,7)+this.checksum(e)},checksum:function(e){e=e.substring(0,7);var t,i=!0,n=0;for(t=0;t<7;t++)n+=(i?3:1)*parseInt(e.charAt(t),10),i=!i;return((10-n%10)%10).toString()}}),jeeplus.type(jeeplus.ui.barcode,{name:"ean13",firstDigit:!0,encodings:[["0001101","0100111","1110010","000000"],["0011001","0110011","1100110","001011"],["0010011","0011011","1101100","001101"],["0111101","0100001","1000010","001110"],["0100011","0011101","1011100","010011"],["0110001","0111001","1001110","011001"],["0101111","0000101","1010000","011100"],["0111011","0010001","1000100","010101"],["0110111","0001001","1001000","010110"],["0001011","0010111","1110100","011010"]],encode:function(e){var t,i,n;if(12!=(e=e.replace(/[^0-9]/g,"").substring(0,12)).length)return"";for(e+=this.checksum(e),t="101",i=this.encodings[parseInt(e.charAt(0),10)][3],n=1;n<7;n++)t+=this.encodings[parseInt(e.charAt(n),10)][parseInt(i.charAt(n-1),10)];for(t+="01010",n=7;n<13;n++)t+=this.encodings[parseInt(e.charAt(n),10)][2];return t+"101"},template:function(e){return e.replace(/[^0-9]/g,"").substring(0,12)+this.checksum(e)},checksum:function(e){var t,i=!1,n=0;for(e=e.substring(0,12),t=0;t<12;t++)n+=(i?3:1)*parseInt(e.charAt(t),10),i=!i;return((10-n%10)%10).toString()}}),jeeplus.type(jeeplus.ui.barcode,{name:"upcA",firstDigit:!0,lastDigit:!0,encode:function(e){return e.length<12&&(e="0"+e),jeeplus.ui.barcode.prototype.types.ean13.encode(e)},template:function(e){return e.replace(/[^0-9]/g,"").substring(0,11)+this.checksum(e)},checksum:function(e){return e.length<12&&(e="0"+e),jeeplus.ui.barcode.prototype.types.ean13.checksum(e)}}),jeeplus.protoUI({name:"abslayout",$init:function(){this.$view.className+=" jeeplus_abslayout",delete this.rows_setter,delete this.cols_setter,this.nc=[]},cells_setter:function(e){this.nc=e},kc:function(){jeeplus.ui.baselayout.prototype.kc.call(this,this.nc)},$getSize:function(e,t){for(var i=jeeplus.ui.baseview.prototype.$getSize.call(this,0,0),n=null,s=0;s<this.q.length;s++)this.q[s].s.relative&&(n=this.q[s].$getSize(0,0));return n&&(1e5<=i[1]&&(i[1]=0),1e5<=i[3]&&(i[3]=0),i[0]=Math.max(i[0],n[0]),i[1]=Math.max(i[1],n[1]),i[2]=Math.max(i[2],n[2]),i[3]=Math.max(i[3],n[3])),i},$setSize:function(e,t){this.lc=[e,t],jeeplus.ui.baseview.prototype.$setSize.call(this,e,t),this.rc(e,t)},rc:function(e,t){for(var i=0;i<this.q.length;i++){var n=this.q[i],s=n.s,a=n.$getSize(0,0);s.relative?(s.left=s.top=0,n.$setSize(e,t)):n.$setSize(a[0],a[2]);for(var r=n.$view,o=["left","right","top","bottom"],l=0;l<o.length;l++){var h=o[l];h in s&&(r.style[h]=s[h]+"px")}}}},jeeplus.ui.baselayout),jeeplus.protoUI({name:"datalayout",$init:function(){this.data.provideApi(this,!0),this.data.attachEvent("onStoreUpdated",jeeplus.bind(this.render,this))},kc:function(e){return this.cC||(this.cC=this.nc,this.nc=[{}]),jeeplus.ui.layout.prototype.kc.call(this,this.nc)},setValue:function(e){this.parse(e)},getValue:function(e){for(var t=this.cC.length,i=0;i<this.q.length;i++){var n=this.data.order[Math.floor(i/t)],s=this.data.getItem(n);this.HG(this.q[i],s)}return this.data.serialize()},HG:function(e,t){var i=e.s.name;if(i){var n=null;e.getValues?n=e.getValues():e.getValue?n=e.getValue():e.serialize&&(n=e.serialize()),"$value"==i?jeeplus.extend(t,n,!0):t[i]=n}else{var s=e.q;if(s)for(var a=0;a<s.length;a++)this.HG(s[a],t)}},sC:function(e,t){var i,n=e.s.name;if(n)i="$value"==n?t:t[n],e.setValues?e.setValues(i):e.setValue?e.setValue(i):e.parse&&(e.openAll&&(i=jeeplus.copy(i)),e.parse(i));else{var s=e.q;if(s)for(var a=0;a<s.length;a++)this.sC(s[a],t)}},render:function(e,t,i){var n=this.cC.length;if(e&&"update"===i){t=this.getItem(e);for(var s=this.getIndexById(e),a=0;a<n;a++)this.sC(this.q[s*n+a],t)}else{var r=this.nc=[],o=this.data.order;for(a=0;a<o.length;a++)if(n)for(var l=0;l<n;l++)r.push(jeeplus.copy(this.cC[l]));else r.push(this.getItem(o[a]));if(r.length||r.push({}),this.reconstruct(),n)for(a=0;a<o.length;a++){var h=this.getItem(o[a]);for(l=0;l<n;l++){var u=this.q[a*n+l];this.sC(u,h)}}}}},jeeplus.DataLoader,jeeplus.ui.layout),jeeplus.protoUI({$init:function(){jeeplus.extend(this,jeeplus.FlexLayout,!0)},name:"flexdatalayout"},jeeplus.ui.datalayout),jeeplus.protoUI({name:"gridlayout",defaults:{gridColumns:2,gridRows:2,margin:10,padding:10},gridRows_setter:function(e){return this.WG=e},kc:function(){for(var e=0;e<this.nc.length;e++)this.nc[e].Ob={};jeeplus.ui.baselayout.prototype.kc.call(this,this.nc)},removeView:function(e){jeeplus.ui.abslayout.prototype.removeView.call(this,e),this.pH(),this.callEvent("onChange",[])},XG:function(e){if(e.dx=e.dx||1,e.dy=e.dy||1,jeeplus.isUndefined(e.y)||jeeplus.isUndefined(e.x)){for(var t=this.YG(),i=0;i<this.WG;i++)for(var n=0;n<this.s.gridColumns;n++)if(!t[n][i]&&this.ZG(t,n,i,n+e.dx,i+e.dy))return e.x=n,void(e.y=i);e.x=0,e.y=this.WG}var s=e.x+e.dx-this.s.gridColumns;0<s&&(e.dx-=s)},Qb:function(e,t){this.XG(e.config),this.q.push(e),(e.Xb=this).$view.appendChild(e.x),this.$G(e.config,e.config.id),this._G||this.callEvent("onChange",[])},ZG:function(e,t,i,n,s){for(var a=t;a<n;a++)for(var r=i;r<s;r++)if(!e[a]||e[a][r])return!1;return!0},aH:function(e,t,i){for(var n=0;n<t.dx;n++)for(var s=0;s<t.dy;s++)e[n+t.x][s+t.y]=i},bH:function(e,t,i){for(var n=this.s.gridColumns,s=t.x+t.dx;s+i.dx<=n;s++)if(this.ZG(e,s,i.y,s+i.dx,i.y+i.dy))return s-i.x;return 0},cH:function(e,t,i){for(var n=t.x-i.dx;0<=n;n--)if(this.ZG(e,n,i.y,n+i.dx,i.y+i.dy))return i.x-n;return 0},dH:function(e,t,i){for(var n=t.y-i.dy;0<=n;n--)if(this.ZG(e,i.x,n,i.x+i.dx,n+i.dy))return i.y-n;return 0},YG:function(e){for(var t=[],i=0;i<this.s.gridColumns;i++)t[i]=[];for(var n=0;n<this.q.length;n++){var s=this.q[n].config;s.id!==e&&this.aH(t,s,s.id)}return t},pH:function(){this.kH()&&this.eH()},kH:function(){var e=this.s.gridColumns,t=this.WG,i=this.YG(),n=!1;e:for(var s=t-1;0<=s;s--){for(var a=e-1;0<=a;a--)if(i[a][s])continue e;n=!0;for(var r=0;r<this.q.length;r++){var o=this.q[r].config;o.y>=s&&(o.y-=1)}}return n},$G:function(e,t,i){e.x-=Math.max(0,e.x+e.dx-this.s.gridColumns);for(var n=[],s=this.YG(t),a=0;a<this.q.length;a++){(o=this.q[a].config).id!==t&&o.y<e.y+e.dy&&o.y+o.dy>e.y&&o.x<e.x+e.dx&&o.x+o.dx>e.x&&n.push(o)}var r=[];for(a=0;a<n.length;a++){var o=n[a];this.aH(s,o,0);var l=this.bH(s,e,o);if(l)o.x+=l;else{var h=this.cH(s,e,o);if(h)o.x-=h;else{var u=this.dH(s,e,o);u?o.y-=u:(o.y=e.y+e.dy,r.push(o))}}this.aH(s,o,o.id)}for(a=0;a<r.length;a++)this.$G(r[a],r[a].id,!0);i||(this.kH(),this.eH())},eH:function(){for(var e=this.s.gridRows,t=0;t<this.q.length;t++){var i=this.q[t].config;e=Math.max(e,i.y+i.dy)}this.WG!=e&&(this.WG=e,this.resize()),this.rc()},moveView:function(e,t){t=jeeplus.extend(jeeplus.$$(e).config,t,!0),this.$G(t,e),this.callEvent("onChange",[])},serialize:function(e){for(var t=[],i=0;i<this.q.length;i++)if(e)t.push(e.call(this,this.q[i]));else{var n=this.q[i].config;t.push({id:n.id,name:n.name,x:n.x,y:n.y,dx:n.dx,dy:n.dy})}return t},clearAll:function(){for(var e=0;e<this.q.length;e++)this.q[e].destructor();this.q=[]},restore:function(e,t){t=t||this.s.factory,e=jeeplus.copy(e),this._G=!0;for(var i={},n=0;n<e.length;n++){var s,a=e[n],r=jeeplus.$$(a.id);r?(jeeplus.extend(r.config,a,!0),s=r.config.id):(r=t.call(this,a),s=this.addView(r)),i[s]=1}for(n=this.q.length-1;0<=n;n--)i[this.q[n].config.id]||(this.q[n].destructor(),this.q.splice(n,1));this.eH(),this._G=!1},$getSize:function(e,t){for(var i=jeeplus.ui.baseview.prototype.$getSize.call(this,0,0),n=0;n<this.q.length;n++)this.q[n].$getSize(0,0);var s=this.s.cellWidth,a=this.s.cellHeight,r=this.fH(0,0,this.s.gridColumns,this.WG);return s&&(i[0]=r.dx+2*r.x),a&&(i[2]=r.dy+2*r.y),i},fH:function(e,t,i,n){var s=this.s.margin,a=this.s.paddingX||this.s.padding,r=this.s.paddingY||this.s.padding,o=this.s.cellWidth;o||(o=(this.$width-2*a+s)/this.s.gridColumns-s);var l=this.s.cellHeight;return l||(l=(this.$height-2*r+s)/this.WG-s),{x:a+(o+s)*e,y:r+(l+s)*t,dx:Math.ceil(o+(o+s)*(i-1)),dy:Math.ceil(l+(l+s)*(n-1))}},rc:function(e,t){for(var i=0;i<this.q.length;i++){var n=this.q[i],s=n.s,a=this.fH(s.x,s.y,s.dx,s.dy);n.$getSize(0,0),n.$setSize(a.dx,a.dy);var r=n.$view;r.style.left=a.x+"px",r.style.top=a.y+"px"}}},jeeplus.ui.abslayout),jeeplus.protoUI({name:"dashboard",$init:function(){jeeplus.DragControl.addDrag(this.$view,this),jeeplus.DragControl.addDrop(this.$view,this,!0)},gH:function(e){return!(!e.getAttribute||e.getAttribute("jeeplus_disable_drag")||e.getAttribute("jeeplusignore"))&&(-1!=(e.className||"").toString().indexOf("panel_drag")?e:!(!e.parentNode||e==this.$view)&&this.gH(e.parentNode))},$dragCreate:function(e,t){if(t.target){if(!this.gH(t.target))return!1;var i=jeeplus.$$(t);i.$resizeMove||(i=i.queryView(function(e){return!!e.config.dx},"parent"));var n=jeeplus.html.offset(this.$view),s=jeeplus.html.pos(t);return jeeplus.DragControl.Gd={source:i,from:this,dashboard:{sx:s.x-n.x-parseInt(i.$view.style.left)+this.s.margin/2,sy:s.y-n.y-parseInt(i.$view.style.top)+this.s.margin/2}},this.hH(i.s.dx,i.s.dy),i.$view}},hH:function(e,t){var i=this.iH=jeeplus.html.create("div",{class:"panel_target"}),n=this.fH(0,0,e,t);i.style.width=n.dx+"px",i.style.height=n.dy+"px",this.$view.appendChild(this.iH)},$drop:function(e,t){var i=jeeplus.DragControl.Gd,n={x:i.dashboard.x,y:i.dashboard.y};if(i.from===this){var s=i.source.config;this.moveView(s.id,n)}else n.name=i.source[0],n.dx=i.dashboard.dx,n.dy=i.dashboard.dy,n.id=n.name+":"+jeeplus.uid(),n=this.s.factory.call(this,n),this.addView(n)},$dragDestroy:function(e,t,i){t.style.zIndex=1,jeeplus.html.remove(this.iH),this.iH=null,this.eH()},jH:function(e,t){var i=this.s.margin,n=this.s.paddingX||this.s.padding,s=this.s.paddingY||this.s.padding,a=this.s.cellWidth;a||(a=(this.$width-2*n+i)/this.s.gridColumns-i);var r=this.s.cellHeight;return r||(r=(this.$height-2*s+i)/this.WG-i),e=Math.round((e-n)/(a+i/2)-.2),t=Math.round((t-n)/(r+i/2)-.2),{x:e=Math.max(0,Math.min(e,this.s.gridColumns)),y:t=Math.max(0,Math.min(t,this.WG)),width:a,height:r,margin:i,rx:e*a+i*e+n,ry:t*r+i*t+s}},$dragOut:function(){var e=jeeplus.DragControl.Gd;this.iH&&e.external&&(jeeplus.html.remove(this.iH),this.iH=null)},$dragIn:function(e,t,i){var n=jeeplus.DragControl.Gd;if(!this.iH){n.external=!0;var s=n.from.getItem(n.source);n.dashboard={dx:s.dx,dy:s.dy},this.hH(s.dx,s.dy)}if(n.external){var a=this.iH,r=jeeplus.env.mouse.context(i),o=jeeplus.html.offset(this.$view),l=this.jH(r.x-o.x,r.y-o.y);jeeplus.extend(n.dashboard,l,!0),a.style.left=l.rx+"px",a.style.top=l.ry+"px"}return!0},$dragPos:function(e,t,i){var n=jeeplus.DragControl.Gd;i.style.left="-10000px";var s=jeeplus.env.mouse.context(t),a=jeeplus.html.offset(this.$view),r=n.dashboard,o=this.jH(s.x-a.x-r.sx,s.y-a.y-r.sy);e.x=s.x-r.sx-a.x,e.y=s.y-r.sy-a.y;var l=this.iH;l.style.left=o.rx+"px",l.style.top=o.ry+"px",jeeplus.extend(r,o,!0)}},jeeplus.ui.gridlayout),jeeplus.protoUI({name:"panel",$init:function(e){if(e.header&&e.body){var t=e.header;"object"!=typeof t&&(t={template:e.header,type:"header",css:"jeeplus_header"}),e.body=[t,e.body]}jeeplus.html.addCss(this.$view,"panel_drag_view"),this.$ready.push(this.Py)},Py:function(){var e=this.getChildViews(),t=1===e.length?this:e[1];if(this.s.icon){var i=jeeplus.html.create("div",{class:"panel_icon"},"<span class='jeeplus_icon fa-"+this.s.icon+" panel_icon_span'></span>");t!=this&&(t.$view.style.position="relative"),t.$view.appendChild(i)}},body_setter:function(e){return this.rows_setter(jeeplus.isArray(e)?e:[e])},$resizeEnd:function(e){var t=this.getParentView();if(t&&t.jH){var i=t.jH(e.x,e.y),n=(this.s,Math.max(i.x,1)),s=Math.max(i.y,1);t.moveView(this.s.id,{dx:n,dy:s})}},$resizeMove:function(e){var t=this.getParentView();if(t&&t.jH){var i=t.jH(e.x,e.y);e.x=i.width*i.x+i.margin*(i.x-1),e.y=i.height*i.y+i.margin*(i.y-1)}}},jeeplus.ui.layout,jeeplus.ResizeArea),jeeplus.protoUI({name:"video",$init:function(e){e.id||(e.id=jeeplus.uid()),this.$ready.push(this.Ms)},Ms:function(){var e=this.s;if(this.w=jeeplus.html.create("video",{class:"jeeplus_view_video",style:"width:100%;height:100%;",autobuffer:"autobuffer"},""),e.poster&&(this.w.poster=e.poster),e.src){"object"!=typeof e.src&&(e.src=[e.src]);for(var t=0;t<e.src.length;t++)this.w.innerHTML+=' <source src="'+e.src[t]+'">'}e.controls&&(this.w.controls=!0),e.autoplay&&(this.w.autoplay=!0),this.x.appendChild(this.w)},getVideo:function(){return this.w},defaults:{src:"",controls:!0}},jeeplus.ui.view),jeeplus.protoUI({name:"sidemenu",defaults:{animate:!0,position:"left",width:200,borderless:!0},$init:function(){this.$view.className+=" jeeplus_sidemenu"},$skin:function(){this.defaults.padding=0},position_setter:function(e){var t=this.s.position;return t&&jeeplus.html.removeCss(this.$view," jeeplus_sidemenu_"+t),jeeplus.html.addCss(this.$view," jeeplus_sidemenu_"+e),e},$getSize:function(){var e=jeeplus.ui.window.prototype.$getSize.apply(this,arguments);return this.MA=e},$setSize:function(e,t){jeeplus.ui.view.prototype.$setSize.call(this,e,t),e=this.bc-2*this.s.padding,t=this.dc-2*this.s.padding,this.w.style.padding=this.s.padding+"px",this.bd.style.display="none",this.ed.style.height=t+"px",this.gd.$setSize(e,t)},show:function(){return!!this.callEvent("onBeforeShow",arguments)&&(this.s.hidden=!1,this.x.style.zIndex=this.s.zIndex||jeeplus.ui.zIndex(),(this.s.modal||this.my)&&(this.Md(!0),this.my=null),this.x.style.display="block",this.Qd(),this.s.position&&this.Td(),this.Ww=1,jeeplus.delay(function(){this.Ww=0},this,[],jeeplus.env.touch?400:100),this.config.autofocus&&(this.Vd=jeeplus.UIManager.getFocus(),jeeplus.UIManager.setFocus(this)),-1==jeeplus.ui.et.find(this)&&jeeplus.ui.et.push(this),void this.callEvent("onShow",[]))},Td:function(e){var t,i,n,s,a,r=0,o=0,l={};this.$view.style.position="fixed",n=window.innerWidth||document.documentElement.offsetWidth,s=window.innerHeight||document.documentElement.offsetHeight,t=this.MA[0]||n,i=this.MA[2]||s,"top"==(a=this.s.position)?t=n:"right"==a?(i=s,r=n-t):"bottom"==a?(t=n,o=s-i):i=s,l={left:r,top:o,width:t,height:i,maxWidth:n,maxHeight:s},"function"==typeof this.s.state&&this.s.state.call(this,l),this.NA=l,this.$setSize(l.width,l.height),void 0===e&&this.OA()?(jeeplus.html.removeCss(this.$view,"jeeplus_animate",!0),this.Qf[this.s.position].beforeShow.call(this,l),jeeplus.delay(function(){jeeplus.html.addCss(this.$view,"jeeplus_animate",!0)},this,null,1),jeeplus.delay(function(){this.Qf[this.s.position].show.call(this,l)},this,null,10)):("right"===this.s.position&&(l.left=l.right?n-l.width-l.right:n-l.width),this.setPosition(l.left,l.top))},OA:function(){return jeeplus.animate.isSupported()&&this.s.animate&&!(jeeplus.env.isIE&&-1!=navigator.appVersion.indexOf("MSIE 9"))},hidden_setter:function(e){return e?this.hide(!0):this.show(),!!e},Qf:{left:{beforeShow:function(e){this.$view.style.left=-e.width+"px",this.$view.style.top=e.top+"px"},show:function(e){this.$view.style.left=e.left?e.left+"px":"0px"},hide:function(e){this.$view.style.left=-e.width+"px"}},right:{beforeShow:function(e){this.$view.style.left="auto",this.$view.style.right=-e.width+"px",this.$view.style.top=e.top+"px"},show:function(e){this.$view.style.right=e.right?e.right+"px":"0px"},hide:function(e){this.$view.style.right=-e.width+"px"}},top:{beforeShow:function(e){this.setPosition(e.left,e.top),this.$view.style.height="0px",this.ed.style.height="0px"},show:function(e){this.$view.style.height=e.height+"px",this.ed.style.height=e.height+"px"},hide:function(){this.$view.style.height="0px",this.ed.style.height="0px"}},bottom:{beforeShow:function(e){this.$view.style.left=e.left+"px",this.$view.style.top="auto";var t=e.bottom!=jeeplus.undefined?e.bottom:e.maxHeight-e.top-e.height;this.$view.style.bottom=t+"px",this.$view.style.height="0px"},show:function(e){this.$view.style.height=e.height+"px"},hide:function(){this.$view.style.height="0px"}}},hide:function(e){if(!this.$destructed){this.s.modal&&this.Md(!1);var t=window.innerWidth||document.documentElement.offsetWidth,i=window.innerHeight||document.documentElement.offsetHeight;if(!e&&this.OA()&&t==this.NA.maxWidth&&i==this.NA.maxHeight){this.Qf[this.s.position].hide.call(this,this.NA);var n=jeeplus.event(this.$view,jeeplus.env.transitionEnd,jeeplus.bind(function(e){this.Wd(),jeeplus.eventRemove(n)},this))}else this.Wd();if(this.s.autofocus){var s=document.activeElement;s&&this.x&&this.x.contains(s)&&(jeeplus.UIManager.setFocus(this.Vd),this.Vd=null)}this.ny()}}},jeeplus.ui.popup),jeeplus.protoUI({name:"sidebar",defaults:{titleHeight:40,type:"sideBar",activeTitle:!0,select:!0,scroll:!1,collapsed:!1,collapsedWidth:41,position:"left",width:250,mouseEventDelay:10},$init:function(e){this.$ready.push(this.yH),this.$ready.push(this.zH),this.data.qf=function(e){e.data&&(e.menu=jeeplus.copy(e.data))}},on_context:{},on_mouse_move:{},yH:function(){this.AH=this.config.width,this.attachEvent("onBeforeOpen",function(e){if(!this.config.multipleOpen)for(var t=this.getOpenItems(),i=0;i<t.length;i++)this.getParentId(e)==this.getParentId(t[i])&&this.close(t[i]);return!this.config.collapsed}),this.attachEvent("onItemClick",function(e,t,i){this.getPopup()&&!this.getPopup().config.hidden&&(t.showpopup=!0),jeeplus.env.touch&&this.BH(e,i)}),this.attachEvent("onBeforeSelect",function(e){return!this.getItem(e).$count&&(this.clearCss("jeeplus_sidebar_selected"),!0)}),this.attachEvent("onAfterSelect",function(e){this.CH(this,e,!0),this.getPopup().DH(e)}),this.attachEvent("onMouseMove",function(e,t,i){this.BH(e,i)}),this.config.collapsed&&this.collapse()},BH:function(e,t){if(this.config.collapsed){var i=this.getPopup();i&&(this.EH(e),this.FH(e),i.show(t,{x:"left"==this.config.position?this.config.collapsedWidth:-i.config.width,y:-1}))}},EH:function(e){var t=this.getPopup().getBody().getChildViews()[0];if(t){var i=this.getSelectedId();t.masterId=e,t.parse(this.getItem(e)),i&&this.getParentId(i)==e?jeeplus.html.addCss(t.$view,"jeeplus_sidebar_selected",!0):jeeplus.html.removeCss(t.$view,"jeeplus_sidebar_selected"),i==e?jeeplus.html.addCss(t.$view,"jeeplus_selected",!0):jeeplus.html.removeCss(t.$view,"jeeplus_selected")}},FH:function(e){var t=this.getPopup().getBody().getChildViews()[1];if(t){t.clearCss("jeeplus_sidebar_selected"),t.masterId=e;var i=this.getSelectedId(),n=this.getItem(e).menu?jeeplus.copy(this.getItem(e).menu):[].concat(jeeplus.copy(this.data.getBranch(e)));t.unselect(),n.length?(t.show(),t.data.importData(n),t.exists(i)?t.select(i):i&&this.CH(t,i)):t.hide()}},zH:function(){var i,s=this,t=s.config;if(t.popup&&(i=jeeplus.$$(t.popup)),!i){var e="left"==t.position?"jeeplus_sidebar_popup_left":"jeeplus_sidebar_popup_right",n="left"==t.position?"right":"left",a=function(e){return(e.submenu||e.data?'<div class="jeeplus_icon fa-angle-'+("left"==t.position?"right":"left")+'"></div>':"")+e.value},r={view:"popup",css:"jeeplus_sidebar_popup "+e,autofit:!1,width:this.AH-this.config.collapsedWidth,borderless:!0,padding:0,body:{rows:[{view:"template",borderless:!0,css:"jeeplus_sidebar_popup_title",template:"#value#",height:this.config.titleHeight+2,onClick:{jeeplus_template:function(){var e=this.masterId;s.getItem(e).$count||s.select(e)}}},{view:"menu",submenu:"data",layout:"y",subMenuPos:n,select:!0,borderless:!0,autoheight:!0,css:"jeeplus_sidebar_popup_list "+e,template:a,type:{subsign:!1},submenuConfig:{padding:0,subMenuPos:n,template:a,select:!0,type:{subsign:!1},css:"jeeplus_sidebar_popup_list "+e,on:{onShow:function(){this.clearCss("jeeplus_sidebar_selected"),this.unselectAll();var e=s.getSelectedId();e&&this.exists(e)?this.select(e):e&&s.CH(this,e)},onBeforeSelect:function(e){return!this.getSubMenu(e)&&void 0},onAfterSelect:function(e){for(var t=s.getPopup().queryView({view:"menu"}),i=s.getParentId(e);i;){var n=t.getMenu(i);n&&(n.unselectAll(),s.CH(n,e)),i=s.getParentId(i)}s.CH(this,e)}}},on:{onBeforeSelect:function(e){return!this.getSubMenu(e)&&void 0},onMenuItemClick:function(e){this.getSubMenu(e)||s.select(e)}}}]}};jeeplus.extend(r,t.popup||{},!0),(i=jeeplus.ui(r)).DH=function(e){s&&s.getParentId(e)==this.masterId&&jeeplus.html.addCss(this.$view,"jeeplus_sidebar_selected",!0),s.config.collapsed&&1==s.getItem(e).$level&&jeeplus.html.addCss(this.$view,"jeeplus_selected",!0)},i.queryView({view:"menu"}).sH=!0}i.attachEvent("onBeforeShow",function(){return t.collapsed}),this.Ns=[i],t.popupId=i.config.id,jeeplus.UE(document.body,"mousemove",function(e){var t=e.target||e.srcElement;i.config.hidden||i.$view.contains(t)||this.$view.firstChild.contains(t)||i.queryView({view:"menu"}).dr||i.hide()},{bind:this})},CH:function(t,i,n){var s="jeeplus_sidebar_selected";t.data.each(function(e){!this.GH(i,e.id)||n&&"0"!=this.getParentId(e.id)?t.hasCss(e.id,s)&&t.removeCss(e.id,s):t.addCss(e.id,s)},this)},GH:function(e,t){var i=this.getParentId(e);return t==i||!!i&&this.GH(i,t)},getPopup:function(){return jeeplus.$$(this.config.popupId)},position_setter:function(e){var t=e,i="left"==e?"right":"left";jeeplus.html.removeCss(this.$view,"jeeplus_sidebar_"+i),jeeplus.html.addCss(this.$view,"jeeplus_sidebar_"+t,!0);var n=this.getPopup();if(n){var s=n.$view;jeeplus.html.removeCss(s,"jeeplus_sidebar_popup_"+i),jeeplus.html.addCss(s,"jeeplus_sidebar_popup_"+t,!0)}return e},collapse:function(){this.define("collapsed",!0)},expand:function(){this.define("collapsed",!1)},toggle:function(){var e=!this.config.collapsed;this.define("collapsed",e)},collapsed_setter:function(e){var t;return e?(t=this.config.collapsedWidth,this.closeAll(),this.type.collapsed=!0,jeeplus.html.removeCss(this.$view,"jeeplus_sidebar_expanded")):(t=this.AH,this.type.collapsed=!1,jeeplus.html.addCss(this.$view,"jeeplus_sidebar_expanded",!0)),this.define("width",t),this.resize(),e}},jeeplus.ui.tree),jeeplus.type(jeeplus.ui.tree,{name:"sideBar",height:"auto",css:"jeeplus_sidebar",template:function(e,t){return t.collapsed?t.icon(e,t):t.arrow(e,t)+t.icon(e,t)+"<span>"+e.value+"</span>"},arrow:function(e,t){for(var i="",n=1;n<=e.$level;n++)if(n==e.$level&&e.$count){i+="<span class='"+("jeeplus_sidebar_dir_icon jeeplus_icon fa-angle-"+(e.open?"down":"left"))+"'></span>"}return i},icon:function(e,t){var i="";return 2<e.$level&&(i='style="padding-left:'+40*(e.$level-2)+'px"'),e.icon?"<span class='jeeplus_icon jeeplus_sidebar_icon fa-"+e.icon+"' "+i+"></span>":"<span "+i+"></span>"}}),function(){var o=jeeplus.CustomScroll={scrollStep:40,init:function(){this.ze(),jeeplus.env.$customScroll=!0,jeeplus.ui.scrollSize=0,jeeplus.destructors.push({obj:{destructor:function(){this.gu=null}}}),jeeplus.attachEvent("onReconstruct",o.hu),jeeplus.attachEvent("onResize",o.hu),jeeplus.attachEvent("onClick",o.hu)},resize:function(){this.hu()},mk:function(e){e.Vf.iu=e.s.id,e.attachEvent("onAfterRender",function(){var e=o.ju(this),t=Math.max(e.dy-e.py,0),i=Math.max(e.dx-e.px,0);this.Wj&&this.jk>t?this.Wj.scrollTo(t):this.Zj&&this.bk>i&&this.Zj.scrollTo(i),o.gu==this.Vf&&o.hu()}),jeeplus.UE(e.Vf,"mouseover",o.ku),jeeplus.UE(e.Vf,"mouseout",o.lu)},enable:function(e,t){if(o.ze(),e.mapCells)return this.mk(e);var i=e;e.y&&(i=e.y.parentNode),i.mu=t||"xy",jeeplus.UE(i,"mouseover",o.ku),jeeplus.UE(i,"mouseout",o.lu),jeeplus.UE(i,"mousewheel",o.nu),jeeplus.UE(i,"DOMMouseScroll",o.nu),this.wE(e)},hu:function(){var e=o.gu;e&&e.ou&&(o.pu.call(e),o.ku.call(e))},ze:function(e){jeeplus.event(document.body,"mousemove",function(e){o.qu&&o.ru(o.qu,o.qu.su,jeeplus.html.pos(e))}),o.ze=function(){}},ku:function(e){if(o.gu=this,clearTimeout(this.tu),!this.ou&&!o.qu){var t;if(this.iu){var i=jeeplus.$$(this.iu);if(!i)return;t=o.ju(i)}else(t={dx:this.scrollWidth,dy:this.scrollHeight,px:this.clientWidth,py:this.clientHeight}).ec=t.dx>t.px&&-1!=this.mu.indexOf("x"),t.cc=t.dy>t.py&&-1!=this.mu.indexOf("y");(this.ou=t).ec&&(t.uu=o.Om(this,"x",t.dx,t.px,"width","height"),t.vu=t.px-t.uu.offsetWidth-4,t.wu=t.dx-t.px,o.trackBar&&(t.wA=o.xA(this,"x"))),t.cc&&(t.xu=o.Om(this,"y",t.dy,t.py,"height","width"),t.yu=t.py-t.xu.offsetHeight-4,t.zu=t.dy-t.py,o.trackBar&&(t.yA=o.xA(this,"y"))),o.sk(this)}},xA:function(e,t){var i=jeeplus.html.create("DIV",{jeeplusignore:"1",class:"jeeplus_c_scroll_bar_"+t},"");return e.appendChild(i),i},ru:function(e,t,i){var n=e.ou,s=e.iu;if(s&&(s=jeeplus.$$(s)),n.uu==e.Au){var a=(i.x-t.x)*n.wu/n.vu;s?s.Zj.scrollTo(s.bk+a):o.Bu(e,"scrollLeft",a)}if(n.xu==e.Au){a=(i.y-t.y)*n.zu/n.yu;s?s.Wj.scrollTo(s.jk+a):o.Bu(e,"scrollTop",a)}e.su=i,o.sk(e)},ju:function(e){var t={};return e.Zj&&e.s.scrollX&&(t.dx=e.Zj.s.scrollWidth,t.px=e.Zj.Si||1,t.ec=1<t.dx-t.px),e.Wj&&e.s.scrollY&&(t.dy=e.Wj.s.scrollHeight,t.py=e.Wj.Si||1,t.cc=1<t.dy-t.py),t},lu:function(){clearTimeout(this.tu),this.tu=jeeplus.delay(o.pu,this,[],200)},Cu:function(e){e&&(jeeplus.html.remove(e),e.Du&&(jeeplus.eventRemove(e.Du),jeeplus.eventRemove(e.Eu)))},pu:function(){if(this.ou){if(this.Au)return void(this.Fu=!0);var e=this.ou;o.Cu(e.uu),o.Cu(e.xu),jeeplus.html.removeCss(document.body,"jeeplus_noselect"),e.wA&&jeeplus.html.remove(e.wA),e.yA&&jeeplus.html.remove(e.yA),this.ou=null}},nu:function(e){var t=this.ou,i=e.wheelDelta/-40,n=!0;if(!i&&e.detail&&jeeplus.isUndefined(e.wheelDelta)&&(i=e.detail),t)if(t.uu&&(e.wheelDeltaX||i&&!t.xu)){var s=e.wheelDeltaX/-40||i;n=o.Bu(this,"scrollLeft",s*o.scrollStep)}else i&&t.xu&&(n=o.Bu(this,"scrollTop",i*o.scrollStep));return o.sk(this),!1!==n?jeeplus.html.preventEvent(e):void 0},Bu:function(e,t,i){var n=e.ou,s="scrollLeft"==t?n.dx-n.px:n.dy-n.py,a=e[t];return s<a+i&&(i=s-a),!(!i||a+i<0&&0===a)&&(jeeplus.env.isIE&&o.sk(e,t,i+a),e[t]+=i,!0)},Om:function(e,t,i,n,s,a){var r=jeeplus.html.create("DIV",{jeeplusignore:"1",class:"jeeplus_c_scroll_"+t},"<div></div>");return r.style[s]=Math.max(n*n/i-7,40)+"px",e.style.position="relative",e.appendChild(r),e.Du=jeeplus.event(r,"mousedown",o.Gu(e)),e.Eu=jeeplus.event(document.body,"mouseup",jeeplus.bind(o.Hu,e)),r},Gu:function(t){return function(e){jeeplus.html.addCss(document.body,"jeeplus_noselect",1),this.className+=" jeeplus_scroll_active",(o.qu=t).Au=this,t.su=jeeplus.html.pos(e)}},Hu:function(e){this.Au&&(jeeplus.html.removeCss(document.body,"jeeplus_noselect"),this.Au.className=this.Au.className.toString().replace(" jeeplus_scroll_active",""),this.Au=!1,o.qu=0,this.Fu&&(o.pu.call(this),this.Fu=!1))},sk:function(e,t,i){var n=e.ou;if(n&&(n.uu||n.xu)){var s=e.iu,a="scrollLeft"==t?i:e.scrollLeft,r=s?jeeplus.$$(s).bk:a,o=s?0:r,l="scrollTop"==t?i:e.scrollTop,h=s?jeeplus.$$(s).jk:l,u=s?0:h;n.uu&&(n.uu.style.bottom=1-u+"px",n.uu.style.left=Math.round(n.vu*r/(n.dx-n.px))+o+1+"px",n.wA&&(n.wA.style.bottom=1-u+"px",n.wA.style.left=o+"px")),n.xu&&(n.xu.style.right=0-o+"px",n.xu.style.top=Math.round(n.yu*h/(n.dy-n.py))+u+1+"px",n.yA&&(n.yA.style.right=0-o+"px",n.yA.style.top=u+"px"))}},wE:function(t){t.data&&t.data.attachEvent&&t.data.attachEvent("onStoreUpdated",function(){var e=o.gu;e&&t.$view.contains(e)&&o.resize()})}}}(),jeeplus.protoUI({name:"portlet",defaults:{layoutType:"wide",icon:"bars"},$init:function(e){this.x.style.position="relative",e.header&&e.body&&(e.body=[{template:e.header,type:"header"},e.body]),this.$ready.push(this.Py),jeeplus.attachEvent("onAfterPortletMove",this.xC)},xC:function(e){jeeplus.ui.each(e,function(e){e.Ow&&e.Ow()})},Py:function(){var e=this.getChildViews();if(1<e.length)jeeplus.DragControl.addDrag(e[0].$view,this);else if(this.s.icon){var t=jeeplus.html.create("div",{class:"portlet_drag"},"<span class='jeeplus_icon fa-"+this.s.icon+"'></span>");this.x.appendChild(t),jeeplus.DragControl.addDrag(t,this)}else jeeplus.DragControl.addDrag(this.$view,this)},body_setter:function(e){return this.rows_setter(jeeplus.isArray(e)?e:[e])},markDropArea:function(e,t){return e?(e=jeeplus.$$(e),this.Qy||(this.Qy=jeeplus.html.create("div",null,"&nbsp;")),e.$view.appendChild(this.Qy),void(this.Qy.className="portlet_marker"+t)):jeeplus.html.remove(this.Qy)},movePortlet:function(e,t){var i=e.getParentView(),n=this.getParentView(),s=i.index(e),a=n.index(this);if(jeeplus.callEvent("onBeforePortletMove",[n,i,this,e,t])){jeeplus.ui.PG=!0;var r=n!=i?1:0,o=i.mc;"top"==t||"bottom"==t?(1!==o&&(i=jeeplus.ui({type:e.s.layoutType,rows:[]},i,s+r),jeeplus.ui(e,i,0),s=0,r=1),"bottom"==t&&(r+=1)):("left"==t||"right"==t)&&(0!==o&&(i=jeeplus.ui({type:e.s.layoutType,cols:[]},i,s+r),jeeplus.ui(e,i,0),s=0,r=1),"right"==t&&(r+=1)),a<s&&(r-=1),jeeplus.ui(this,i,s+r),"replace"==t&&jeeplus.ui(e,n,a),this.Ry(n),jeeplus.ui.PG=!1,n.getTopParentView(),e.resize(),n.resize(),jeeplus.callEvent("onAfterPortletMove",[n,i,this,e,t])}},Ry:function(e){for(var t,i=0;e.getChildViews().length<=i;)e=(t=e).getParentView(),i=1;i&&e.removeView(t)},$drag:function(e,t){return jeeplus.html.addCss(this.x,"portlet_in_drag"),jeeplus.DragControl.Gd={source:e,from:e},this.x.innerHTML},$dragDestroy:function(e,t,i){jeeplus.html.removeCss(this.x,"portlet_in_drag"),jeeplus.html.remove(t),this.Sy&&(this.movePortlet(this.Sy,this.Ty),this.markDropArea(),this.Sy=null)},WB:function(){return jeeplus.html.offset(this.$view)},$dragPos:function(e,t,i){i.style.left="-10000px";var n=jeeplus.env.mouse.context(t),s=document.body.scrollTop||document.documentElement.scrollTop||0,a=document.body.scrollLeft||document.documentElement.scrollLeft||0,r=document.elementFromPoint(n.x-a,n.y-s),o=null;r&&(o=jeeplus.$$(r)),this.Sy=this.Uy(o),this.Ty=this.Vy(this.Sy,t),e.x=e.x-this.bc+10,e.y=e.y-20,jeeplus.DragControl.Ed=!0},Vy:function(e,t){var i="",n="";if(t&&e){var s=jeeplus.html.offset(e.$view),a=jeeplus.html.pos(t),r=a.x-s.x-s.width/2,o=a.y-s.y-s.height/2;(n=e.s.mode)||(n=Math.abs(r)*(s.height/s.width)>Math.abs(o)?"cols":"rows"),"cols"==n?i=0<=r?"right":"left":"rows"==n&&(i=0<=o?"bottom":"top"),this.markDropArea(e,i)}return this.markDropArea(e,i),i||n},Uy:function(e){for(;e;){if(e.movePortlet)return e;e=e.getParentView()}}},jeeplus.ui.layout),jeeplus.UIManager.getState=function(e,t){t=t||!1;var i={id:(e=jeeplus.$$(e)).config.id,width:e.config.width,height:e.config.height,gravity:e.config.gravity};if(jeeplus.isUndefined(e.config.collapsed)||(i.collapsed=e.config.collapsed),("tabs"===e.name||"tabbar"===e.name)&&(i.activeCell=e.getValue()),t&&(i=[i],e.q))for(var n=0;n<e.q.length;n++)i=i.concat(this.getState(e.q[n],t));return i},jeeplus.UIManager.setState=function(e){jeeplus.isArray(e)||(e=[e]);for(var t=0;t<e.length;t++){var i=e[t],n=jeeplus.$$(i.id);n&&(jeeplus.isUndefined(i.collapsed)||n.define("collapsed",i.collapsed),jeeplus.isUndefined(i.activeCell)||n.setValue(i.activeCell),n.define("width",i.width),n.define("height",i.height),n.define("gravity",i.gravity))}var s=jeeplus.$$(e[0].id);s&&s.resize()},function(){function M(t,i,e){return!e&&i.format?function(e){return i.format(e[t])}:function(e){return e[t]}}function m(e,t){var i=[],n=0,s=0,a=e.getColumnConfig,r=t.columns,o=!!t.rawValues;if(i.heights={},r){if(!r.length){var l=[];for(var h in r)l.push(jeeplus.extend({id:h},jeeplus.extend({},r[h])));r=l}}else if(a)r=[].concat(e.fj);else{r=[];var u=e.data.pull[e.data.order[0]];for(var h in u)"id"!==h&&"$"!=h[0]&&r.push({id:h})}if(t.ignore)for(var d=r.length-1;0<=d;d--)t.ignore[r[d].id]&&r.splice(d,1);if(t.id&&i.push({id:"id",width:50,header:" ",template:function(e){return e.id}}),t.flatTree){var c=t.flatTree.id,p=[].concat(t.flatTree.columns),f=[],m=!!t.flatTree.fill;for(d=1;d<=p.length;d++)p[d-1].template=function(t,e){return function(e){return e.$level==t?f[t]=e[c]:m&&t<e.$level?f[t]:""}}(d);var g=0;for(d=r.length-1;0<=d;d--)r[d].id===c&&(g=d);r=[].concat(r.slice(0,g)).concat(p).concat(r.slice(g+1))}for(var v=0;v<r.length;v++){var _=r[v];h=_.id;if(!_.noExport){a&&e.Aj[h]&&(_=jeeplus.extend(jeeplus.extend({},_),e.Aj[h]));var y={id:_.id,template:o||!_.template?M(h,_,o):_.template,width:(_.width||200)*("excel"===t.export_mode?8.43/70:1),header:!1!==_.header?_.header||h:""};"excel"===t.export_mode&&jeeplus.extend(y,{type:_.exportType||"",format:_.exportFormat||""}),"string"==typeof y.header?y.header=[{text:y.header}]:y.header=jeeplus.copy(y.header);for(d=0;d<y.header.length;d++)y.header[d]=y.header[d]?y.header[d].contentId?"":y.header[d].text:"";if(n=Math.max(n,y.header.length),e.s.footer){var b=_.footer||"";b="string"==typeof b?[{text:b}]:jeeplus.copy(b);for(d=0;d<b.length;d++)b[d]?b[d]=b[d].contentId?e.getHeaderContent(b[d].contentId).getValue():b[d].text:b[d]="";y.footer=b,s=Math.max(s,y.footer.length)}i.push(y)}}for(d=0;d<i.length;d++){for(var x=n-i[d].header.length,w=0;w<x;w++)i[d].header.push("");if(e.s.footer){x=s-i[d].footer.length;for(w=0;w<x;w++)i[d].footer.push("")}}return i}function g(r,o,l){var e,t,h=!!o.filterHTML,u=/<[^>]*>/gi,d=[];if("excel"===o.export_mode&&o.docHeader&&(d=[[(o.docHeader.text||o.docHeader).toString()],[""]],o.docHeader.height&&(l.heights[0]=o.docHeader.height)),!1!==o.header&&l.length)for(var i=0;i<l[0].header.length;i++){t=[];for(var n=0;n<l.length;n++)e="",l[n].header[i]&&(e=l[n].header[i],h&&(e=l[n].header[i]=e.replace(u,""))),t.push(e);"excel"!=o.export_mode||!r.fj||!1===o.heights||r.Mt[i]===jeeplus.skin.$active.barHeight&&"all"!=o.heights||(l.heights[d.length]=r.Mt[i]),"pdf"!==o.export_mode&&(d[d.length]=t)}o.yCorrection=(o.yCorrection||0)-d.length;var c="TreeStore"==r.data.name,p=o.flatTree||o.plainOutput?"":" - ";if(r.data.each(function(e){if(!o.filter||o.filter(e)){for(var t=[],i=0;i<l.length;i++){var n=l[i],s=null;if(o.math&&e["$"+n.id]&&"="==e["$"+n.id].charAt(0)&&!e["$"+n.id].match(/^=(image|link|sparkline)\(/i)&&(s=e["$"+n.id]),this.Rt){var a=this.getSpan(e.id,n.id);a&&a[4]&&a[0]==e.id&&a[1]==n.id&&(s=a[4],h&&"string"==typeof s&&(s=s.replace(u,"")))}s||((s=n.template(e,r.type,e[n.id],n,i))||0===s||(s=""),h&&"string"==typeof s&&(c&&(s=s.replace(/<div class=.jeeplus_tree_none.><\/div>/,p)),s=s.replace(u,"")),"string"==typeof s&&"csv"===o.export_mode&&(s=s.trim()),"string"!=typeof s||"excel"!==o.export_mode&&"csv"!==o.export_mode||(s=s.replace(/<br\s*\/?>/gm,"\n"))),t.push(s)}"excel"==o.export_mode&&r.fj&&!1!==o.heights&&(e.$height&&e.$height!==jeeplus.skin.$active.rowHeight||"all"==o.heights)&&(l.heights[d.length]=e.$height||this.config.rowHeight),d.push(t)}},r),!1!==o.footer)for(var s=l[0].footer?l[0].footer.length:0,a=0;a<s;a++){var f=[];for(n=0;n<l.length;n++){var m=l[n].footer[a];h&&(m=l[n].footer[a]=m.toString().replace(u,"")),f.push(m)}"excel"!=o.export_mode||!r.fj||!1===o.heights||r.Nt[a]===jeeplus.skin.$active.barHeight&&"all"!=o.heights||(l.heights[d.length]=r.Nt[a]),"pdf"!==o.export_mode&&d.push(f)}return"excel"===o.export_mode&&o.docFooter&&(d=d.concat([[],[(o.docFooter.text||o.docFooter).toString()]]),o.docFooter.height&&(l.heights[d.length-1]=o.docFooter.height)),d}function v(e,t){var i=e.getColumnConfig,n=e.Rt,s=[];if(i){if(!1!==t.header&&(s=f(e,t,"header",s)),n){var a=t.xCorrection||0,r=t.yCorrection||0;for(var o in n){var l=n[o];for(var h in l){var u=e.getColumnIndex(h)-a,d=e.getIndexById(o)-r,c=u+l[h][0]-1,p=d+(l[h][1]-1);s.push({s:{c:u,r:d},e:{c:c,r:p}})}}}!1!==t.footer&&(s=f(e,t,"footer",s))}return s}function f(e,t,i,n){for(var s=e.config.columns,a=(t.docHeader?2:0)+("header"==i?0:(!1!==t.header?e.Mt.length:0)+e.count()),r=0;r<s.length;r++)for(var o=s[r][i],l=0;l<o.length;l++)o[l]&&(o[l].colspan||o[l].rowspan)&&n.push({s:{c:r,r:l+a},e:{c:r+(o[l].colspan||1)-1,r:l+(o[l].rowspan||1)-1+a}});return n}function _(e,t,i,n){for(var s={},a={s:{c:1e7,r:1e7},e:{c:0,r:0}},r=0;r!=e.length;++r)for(var o=0;o!=e[r].length;++o){a.s.r>r&&(a.s.r=r),a.s.c>o&&(a.s.c=o),a.e.r<r&&(a.e.r=r),a.e.c<o&&(a.e.c=o);var l={v:e[r][o]};if(null!==l.v){var h=XLSX.utils.encode_cell({c:o,r:r});if(l.v instanceof Date?(l.t="n",l.z=XLSX.SSF[x][14],l.v=(f=l.v,Math.round(25569+f/864e5))):"boolean"==typeof l.v?l.t="b":"number"==typeof l.v||l.v&&!isNaN(1*l.v)?(l.v=1*l.v,l.t="n"):"="==l.v.charAt(0)?(l.t="n",l.f=l.v,delete l.v):l.t="s",r>=t[0].header.length&&!l.f){var u=t[o];u.type&&(l.t=b[u.type]||l.t),u.format&&(l.z=u.format)}n&&(l.s=(c=o,(p=n)[d=r]&&p[d][c]?p[d][c]:"")),s[h]=l}}var d,c,p,f;return a.s.c<1e7&&(s["!ref"]=XLSX.utils.encode_range(a)),s["!rows"]=function(e){for(var t in e)e[t]={hpx:e[t],hpt:.75*e[t]};return e}(t.heights),s["!cols"]=function(e){for(var t=[],i=0;i<e.length;i++)t.push({wch:e[i].width});return t}(t),i.length&&(s["!merges"]=i),s}function o(e,t,s,a){s.header=jeeplus.isUndefined(s.header)||!0===s.header?{}:s.header,s.footer=jeeplus.isUndefined(s.footer)||!0===s.footer?{}:s.footer,s.table=s.table||{};var i=s.width||595.296,n=s.height||841.896;if(s.orientation&&"landscape"===s.orientation&&(n=[i,i=n][0]),s.autowidth){i=80;for(var r=0;r<e.length;r++)i+=e[r].width}var o=new pdfjs.Document({padding:40,font:s.hB,threshold:256,width:i,height:n}),l=!1===s.header?0:e[0].header.length,h=!1!==s.footer&&e[0].footer?e[0].footer.length:0,u=[];for(r=0;r<e.length;r++)u[r]=e[r].width;var d=jeeplus.extend(s.table,{borderWidth:1,height:20,lineHeight:1.1,borderColor:15658734,backgroundColor:16777215,color:6710886,textAlign:"left",paddingRight:10,paddingLeft:10,headerRows:l,widths:u.length?u:["100%"]}),c=o.table(d);if(l){var p=jeeplus.extend(s.header,{borderRightColor:11587299,borderBottomColor:11587299,color:4868682,backgroundColor:13820911,height:27,lineHeight:1.2});for(r=0;r<l;r++)for(var f=c.tr(p),m=0;m<e.length;m++)f.td(e[m].header[r].toString())}for(var g=0;g<t.length;g++)for(var v=c.tr({}),_=0;_<t[g].length;_++)v.td(t[g][_]);if(h){var y=jeeplus.extend(s.footer,{borderRightColor:15658734,borderBottomColor:15658734,backgroundColor:16448250,color:6710886,height:27,lineHeight:1.2});for(r=0;r<h;r++){var b=c.tr(y);for(m=0;m<e.length;m++)b.td(e[m].footer[r].toString())}}!1!==s.docFooter&&o.footer().text({color:6710886,textAlign:"center"}).append(jeeplus.i18n.dataExport.page||"Page").pageNumber().append(" "+(jeeplus.i18n.dataExport.of||"of")+" ").pageCount();var x={text:0,image:1};if(s.docHeader&&("string"==typeof s.docHeader&&(s.docHeader={text:s.docHeader}),jeeplus.extend(s.docHeader,{color:6710886,textAlign:"right",order:0}),x.text=s.docHeader.order),s.docHeaderImage&&("string"==typeof s.docHeaderImage&&(s.docHeaderImage={url:s.docHeaderImage}),jeeplus.extend(s.docHeaderImage,{align:"right",order:1}),x.image=s.docHeaderImage.order),s.docHeader&&x.image>x.text&&o.header({paddingBottom:10}).text(s.docHeader.text,s.docHeader),s.docHeaderImage)pdfjs.load(s.docHeaderImage.url,function(e,t){if(!e){var i=new pdfjs.Image(t);o.header({paddingBottom:10}).image(i,s.docHeaderImage),s.docHeader&&x.image<x.text&&o.header({paddingBottom:10}).text(s.docHeader.text,s.docHeader)}var n=o.render();a(n,s)});else{var w=o.render();a(w,s)}}var l,y="non-existing view for export";jeeplus.toPNG=function(n,s){var a=jeeplus.promise.defer();return jeeplus.require(jeeplus.cdn+"/extras/html2canvas.min.js",function(){"string"==typeof s&&(s={filename:s}),s=s||{};var e=jeeplus.$$(n);if(e&&e.$exportView&&(e=e.$exportView(s)),!e)return a.reject(y);var t=e?e.$view:jeeplus.toNode(n),i=(s.filename||"Data")+".png";window.html2canvas(t).then(function(t){var e=function(e){!1!==s.download&&jeeplus.html.download(e,i),t.remove(),a.resolve(e)};t.msToBlob?e(t.msToBlob()):t.toBlob(e,"image/png")})}),a},jeeplus.toExcel=function(e,c){(c=c||{}).export_mode="excel",e=jeeplus.isArray(e)?e:[e];for(var p=[],t=0;t<e.length;t++){var i=jeeplus.$$(e[t]);if(i&&i.$exportView&&(i=i.$exportView(c)),i&&(p=p.concat(i)),c.dataOnly){var n=m(i,c);p[t]={scheme:n,exportData:g(i,c,n),spans:c.spans?v(i,c):[]}}}if(c.dataOnly)return p;var f=jeeplus.promise.defer();return jeeplus.require(jeeplus.cdn+"/extras/xlsx.core.styles.min.js",function(){if(!p.length)return f.reject(y);for(var e={SheetNames:[],Sheets:{},Workbook:{WBProps:{},Names:[]}},t=jeeplus.isArray(c.sheets)?c.sheets:[c.name||"Data"],i=0;i<p.length;i++){var n=p[i].scheme||m(p[i],c),s=p[i].exportData||g(p[i],c,n),a=p[i].spans?p[i].spans:c.spans?v(p[i],c):[],r=p[i].ranges||[],o=_(s,n,a,p[i].styles||[]),l=(t[i]||"Data"+i).replace(/[\*\?\:\[\]\\\/]/g,"").replace(/&/g,"&amp;").substring(0,31);e.SheetNames.push(l),e.Sheets[l]=o,e.Workbook.Names=e.Workbook.Names.concat(r)}var h=XLSX.write(e,{bookType:"xlsx",bookSST:!1,type:"binary"}),u=(c.filename||t.join(","))+".xlsx",d=new Blob([function(e){for(var t=new ArrayBuffer(e.length),i=new Uint8Array(t),n=0;n!=e.length;++n)i[n]=255&e.charCodeAt(n);return t}(h)],{type:"application/xlsx"});!1!==c.download&&jeeplus.html.download(d,u),f.resolve(d)}),f},jeeplus.toCSV=function(e,t){t=t||{};var i=jeeplus.$$(e);if(i&&i.$exportView&&(i=i.$exportView(t)),!i)return jeeplus.promise.reject(y);t.export_mode="csv",t.filterHTML=!0;var n,s=m(i,t),a=g(i,t,s),r=(n=a,jeeplus.csv.stringify(n)),o=(t.filename||"Data")+".csv",l=new Blob(["\ufeff"+r],{type:"text/csv"});return!1!==t.download&&jeeplus.html.download(l,o),jeeplus.promise.resolve(l)},jeeplus.toPDF=function(t,a){var r=jeeplus.promise.defer();return jeeplus.require(jeeplus.cdn+"/extras/pdfjs.js",function(){a=a||{};var e=jeeplus.$$(t);if(e&&e.$exportView&&(e=e.$exportView(a)),!e)return r.reject();a.export_mode="pdf",a.hB=l,a.fontName=a.fontName||"pt-sans.regular";var i=m(e,a),n=g(e,a,i),s=function(e,t){var i=(t.filename||"Data")+".pdf",n=new Blob([e.toString()],{type:"application/pdf"});!1!==t.download&&jeeplus.html.download(n,i),r.resolve(n)};a.hB?o(i,n,a,s):pdfjs.load(jeeplus.cdn+"/extras/"+a.fontName+".ttf",function(e,t){if(e)throw e;l=a.hB=new pdfjs.TTFFont(t),o(i,n,a,s)})}),r};var b={number:"n",date:"n",string:"s",boolean:"b"},x="_table"}(),jeeplus.protoUI({name:"pdfviewer",defaults:{scale:"auto"},$init:function(e){this.$view.className+=" jeeplus_pdf";var t=document.createElement("DIV");t.className="canvas_wrapper";var i=document.createElement("canvas");this.uz=this.$view,this.gt=this.$view.appendChild(t),this.Zn=this.gt.appendChild(i),this.$pdfDoc=null,this.$pageNum=0,this.$numPages=0,this.vz=!1,this.wz=null,this.xz=this.Zn.getContext("2d"),this.zz=.1,this.Az=e.scaleDelta||1.1,this.Bz=e.minScale||.25,this.Cz=e.maxScale||10,this.Dz=1.25,this.Ez=40,this.Fz=10,this.$ready.push(this.Hz)},toolbar_setter:function(e){if("string"==typeof e){var t=jeeplus.$$(e);return t&&(t.$master=this,t.refresh()),this.attachEvent("onDocumentReady",function(){t?(t.setPage(this.$pageNum),t.setValues(this.$numPages,this.s.scale)):this.toolbar_setter(e)}),e}},Hz:function(){if(delete this.s.datatype,this.attachEvent("onScaleChange",function(e,t){t&&this.s.toolbar&&jeeplus.$$(this.s.toolbar).setScale&&jeeplus.$$(this.s.toolbar).setScale(e)}),jeeplus.env.touch)this.xE=!1,jeeplus.UE(this.x,"touchstart",jeeplus.bind(function(e){var t=e.targetTouches;2===t.length&&(jeeplus.html.preventEvent(e),this.xE=Math.abs(t[0].pageY-t[1].pageY))},this)),jeeplus.UE(this.$view,"touchmove",jeeplus.bind(function(e){var t=e.targetTouches;2===t.length&&!1!==this.xE&&(jeeplus.html.preventEvent(e),Math.abs(t[0].pageY-t[1].pageY)>this.xE?this.zoomIn():this.zoomOut(),this.xE=!1)},this)),this.attachEvent("onSwipeX",function(e,t){this.$view.scrollLeft=this.$view.scrollLeft-(t.x-e.x)}),this.attachEvent("onSwipeY",function(e,t){var i=this.$view.clientHeight,n=this.$view.scrollHeight,s=this.$view.offsetHeight,a=this.$view.scrollTop,r=t.y-e.y;if(i===n||r<0&&n-s<a||0<r&&0===a){var o=this.$pageNum+(0<r?-1:1);0<o&&o<=this.$numPages&&(this.$pageNum=o,this.Mz(this.$pageNum),this.$view.scrollTop=0<r?n:0)}else this.$view.scrollTop=a-r});else{var e=jeeplus.env.isFF?"DOMMouseScroll":"mousewheel";jeeplus.event(window,e,jeeplus.bind(function(e){var t=("DOMMouseScroll"===e.type?-e.detail:e.wheelDelta)<0?"out":"in";e.ctrlKey&&(jeeplus.html.preventEvent(e),"in"==t?this.zoomIn():this.zoomOut())},this))}},yE:function(e){if(e.name){var t=new FileReader;t.onload=jeeplus.bind(function(e){this.yE({data:e.target.result})},this),t.readAsArrayBuffer(e)}else PDFJS.getDocument({data:e.data}).then(jeeplus.bind(function(e){this.clear(),this.$pdfDoc=e,this.$numPages=this.$pdfDoc.numPages,this.$pageNum=1,this.Jz(this.$pageNum).then(jeeplus.bind(function(){this.callEvent("onDocumentReady")},this))},this))},$onLoad:function(e){return window.PDFJS?this.yE(e):jeeplus.require([jeeplus.cdn+"/extras/pdfjs/compatibility.min.js",jeeplus.cdn+"/extras/pdfjs/pdf.min.js"],function(){PDFJS.workerSrc=jeeplus.cdn+"/extras/pdfjs/pdf.worker.min.js",this.yE(e)},this),!0},Kz:function(e,t){var i=e.getViewport(t);return this.Zn.height=i.height,this.Zn.width=i.width,this.gt.style.width=i.width+"px",this.gt.style.height=i.height+"px",i},Jz:function(e){var s=this;return s.vz=!0,this.$pdfDoc.getPage(e).then(function(e){var t=isNaN(parseFloat(s.s.scale))?s.zz:s.s.scale,i=s.Kz(e,t);t!==s.s.scale&&(t=s.Lz(s.s.scale),i=s.Kz(e,t),s.s.scale=t);var n={canvasContext:s.xz,viewport:i};return e.cleanupAfterRender=!0,e.render(n).promise.then(function(){s.callEvent("onPageRender",[s.$pageNum]),s.vz=!1,null!==s.wz&&(s.Jz(s.wz),s.wz=null)})})},Mz:function(e){this.vz?this.wz=e:this.Jz(e)},renderPage:function(e){!this.$pdfDoc||e<0||e>this.$numPages||(this.$pageNum=e,this.Mz(this.$pageNum))},prevPage:function(){this.$pageNum<=1||(this.$pageNum--,this.Mz(this.$pageNum))},nextPage:function(){this.$pageNum>=this.$numPages||(this.$pageNum++,this.Mz(this.$pageNum))},zoomIn:function(){var e=this.s.scale;e=(e*this.Az).toFixed(2),e=Math.ceil(10*e)/10,e=Math.min(this.Cz,e),this.setScale(e,!0)},zoomOut:function(){var e=this.s.scale;e=(e/this.Az).toFixed(2),e=Math.floor(10*e)/10,e=Math.max(this.Bz,e),this.setScale(e,!0)},Lz:function(e){if(!isNaN(parseFloat(e)))return e;isNaN(parseFloat(this.s.scale))&&(this.s.scale=this.zz);var t=1,i=((this.uz.clientWidth-this.Ez)*this.s.scale/this.Zn.clientWidth).toFixed(2),n=((this.uz.clientHeight-this.Fz)*this.s.scale/this.Zn.clientHeight).toFixed(2);switch(e){case"page-actual":t=1;break;case"page-width":t=i;break;case"page-height":t=n;break;case"page-fit":t=Math.min(i,n);break;case"auto":var s=this.uz.clientWidth>this.uz.clientHeight?Math.min(n,i):i;t=Math.min(this.Dz,s)}return t},setScale:function(e,t){if(isNaN(parseFloat(e))){var i=this.Lz(e);this.Nz(i,t)}else this.Nz(e,t)},Nz:function(e,t){this.s.scale=e,this.renderPage(this.$pageNum),this.callEvent("onScaleChange",[e,t])},download:function(){if(this.$pdfDoc){var i=(this.s.downloadName||"document")+".pdf";this.$pdfDoc.getData().then(function(e){var t=PDFJS.createBlob(e,"application/pdf");jeeplus.html.download(t,i)})}},clear:function(){this.$pdfDoc&&(this.xz.clearRect(0,0,this.Zn.width,this.Zn.height),this.gt.style.height=this.gt.style.width=this.Zn.width=this.Zn.height=0,this.s.scale="auto",this.$pageNum=this.$numPages=0,this.$pdfDoc.transport.startCleanup(),this.$pdfDoc.destroy(),this.$pdfDoc=null,this.s.toolbar&&jeeplus.$$(this.s.toolbar)&&jeeplus.$$(this.s.toolbar).reset())}},jeeplus.EventSystem,jeeplus.AtomDataLoader,jeeplus.ui.view),jeeplus.protoUI({name:"pdfbar",reset:function(){this.setPage(0),this.setValues(0,"auto")},$init:function(e){this.$view.className+=" pdf_bar",e.cols=[{view:"button",type:"icon",icon:"arrow-left",width:35,click:function(){this.getParentView().he("prev")}},{view:"text",width:70,value:"0",on:{onBlur:function(){this.getParentView().he(this.getValue())},onKeyPress:function(e){13===e&&this.getParentView().he(this.getValue())}}},{template:jeeplus.i18n.PDFviewer.of+" #limit#",width:70,data:{limit:0},borderless:!0},{view:"button",type:"icon",icon:"arrow-right",width:35,click:function(){this.getParentView().he("next")}},{},{view:"button",type:"icon",icon:"minus",width:35,click:function(){this.getParentView().zoom("out")}},{view:"richselect",options:[],maxWidth:195,suggest:{padding:0,css:"pdf_opt_list",borderless:!0,body:{type:{height:25},scroll:!1,yCount:13}},on:{onChange:function(){this.getParentView().setMasterScale(this.getValue())}}},{view:"button",type:"icon",icon:"plus",width:35,click:function(){this.getParentView().zoom("in")}},{view:"button",type:"icon",icon:"download",width:35,click:function(){this.getParentView().download()}}],this.$ready.push(this.Oz)},Oz:function(){var e=this.getChildViews()[6].getPopup().getBody();e.clearAll(),e.parse([{id:"auto",value:jeeplus.i18n.PDFviewer.automaticZoom},{id:"page-actual",value:jeeplus.i18n.PDFviewer.actualSize},{id:"page-fit",value:jeeplus.i18n.PDFviewer.pageFit},{id:"page-width",value:jeeplus.i18n.PDFviewer.pageWidth},{id:"page-height",value:jeeplus.i18n.PDFviewer.pageHeight},{id:"0.5",value:"50%"},{id:"0.75",value:"75%"},{id:"1",value:"100%"},{id:"1.25",value:"125%"},{id:"1.5",value:"150%"},{id:"2",value:"200%"},{id:"3",value:"300%"},{id:"4",value:"400%"}]);var t=0;e.data.each(function(e){t=Math.max(jeeplus.html.getTextSize(e.value,"jeeplusbutton").width,t)}),this.getChildViews()[6].define("width",t+20),this.getChildViews()[6].resize()},he:function(e){this.setMasterPage(e),this.setPage(this.$master.$pageNum)},setScale:function(e){var t=this.getChildViews()[6];t.blockEvent(),t.getPopup().getList().exists(e)?t.setValue(e):(t.setValue(""),t.getInputNode().innerHTML=(100*e).toFixed(0)+"%"),t.unblockEvent()},setMasterScale:function(e){this.$master&&this.$master.setScale(e)},setMasterPage:function(e){this.$master&&("prev"===e?this.$master.prevPage():"next"===e?this.$master.nextPage():isNaN(parseInt(e))||this.$master.renderPage(parseInt(e)))},zoom:function(e){this.$master&&("out"===e?this.$master.zoomOut():"in"===e&&this.$master.zoomIn())},setPage:function(e){this.getChildViews()[1].setValue(e)},setValues:function(e,t){this.getChildViews()[2].data.limit=e,this.getChildViews()[2].refresh(),this.setScale(t)},download:function(){this.$master&&this.$master.download()}},jeeplus.ui.toolbar),jeeplus.protoUI({name:"excelbar",defaults:{padding:0,type:"line"},$init:function(e){e.cols=[{view:"tabbar",options:[""],optionWidth:200,on:{onaftertabclick:function(){this.getParentView().callEvent("onExcelSheetSelect",[this.getValue()])}}}]},getValue:function(){return this.getInput().getValue()},setValue:function(e){return this.getInput().setValue(e)},getInput:function(){return this.getChildViews()[0]},setSheets:function(e){var t=this.getInput();t.config.options=e,t.refresh()}},jeeplus.ui.toolbar),jeeplus.protoUI({name:"excelviewer",$init:function(){this.$ready.push(function(){this.s.toolbar&&jeeplus.$$(this.s.toolbar).attachEvent("onExcelSheetSelect",jeeplus.bind(this.showSheet,this))})},defaults:{datatype:"excel"},$onLoad:function(e){if(e.sheets){this.zA=e,this.s.toolbar&&jeeplus.$$(this.s.toolbar).setSheets(e.names);var t=e.names[0];return this.showSheet(t.id||t),!0}return!1},$exportView:function(e){if("excel"!==e.export_mode||e.dataOnly)return this;!0===e.sheets?e.sheets=this.getSheets():e.sheets&&e.sheets.length?"string"==typeof e.sheets&&(e.sheets=[e.sheets]):e.sheets=[this.IG],e.dataOnly=!0,e.heights=jeeplus.isUndefined(e.heights)&&e.styles?"all":e.heights;for(var t=[],i=this.IG,n=0;n<e.sheets.length;n++)this.showSheet(e.sheets[n]),t=t.concat(jeeplus.toExcel(this,e)),e.styles&&(t[n].styles=this.oG(e));return this.showSheet(i),delete e.dataOnly,t},showSheet:function(e){this.clearAll();var t=this.data.driver.sheetToArray(this.zA.sheets[e],{spans:this.s.spans}),i=this.s.excelHeader,n={},s={};if(t.sizes)for(var a=0;a<t.sizes.length;a++)"column"==t.sizes[a][0]?n[t.sizes[a][1]]=Math.round(t.sizes[a][2]):"row"==t.sizes[a][0]&&(s[t.sizes[a][1]]=Math.round(t.sizes[a][2]));if(i)if(!0===i){i=t.data.splice(0,1)[0];for(a=0;a<i.length;a++)i[a]={header:i[a],id:"data"+a,width:n[a],adjust:!n[a],editor:"text",sort:"string"}}else i=jeeplus.copy(i);else{i=jeeplus.copy(t.data[0]);for(a=0;a<i.length;a++)i[a]={header:"ABCDEFGHIJKLMNOPQRSTUVWXYZ"[a],id:"data"+a,width:n[a],adjust:!n[a],editor:"text",sort:"string"}}this.config.columns=i,this.refreshColumns(),this.parse(t,this.s.datatype),this.IG=e;var r=this.eG(t.spans),o=this.JG(s),l=this.KG(t.styles,r);(r||o||l)&&this.refresh()},getSheets:function(){return this.zA.names},LG:function(e,t,i,n){for(var s=!1,a=0;a<e.length;a++)if(e[a][0]===t&&e[a][1]===i){e[a][5]=jeeplus.html.createCss(this.MG(n)),this.addSpan(e[a][0],e[a][1],e[a][2],e[a][3],e[a][4],e[a][5]),s=!0;break}return s},KG:function(e,t){var i=0;if(e&&e.length){for(var n=0;n<e.length;n++){var s=e[n][0]-(this.config.excelHeader?1:0);if(0<=s){var a=this.getIdByIndex(s);if(this.exists(a)){var r=this.getItem(a),o=this.columnId(e[n][1]);o&&(t.length&&this.LG(t,a,o,e[n][2])||(r.$cellCss=r.$cellCss||{},r.$cellCss[o]=this.MG(e[n][2])),i++)}}}return i}return!1},NG:function(e){return 8===(e=e||"000000").length&&(e=e.substring(2)),"#"+e},MG:function(e){var t={};if(e.fill&&e.fill.fgColor&&(t["background-color"]=this.NG(e.fill.fgColor.rgb)),e.font){var i=e.font;i.name&&(t["font-family"]=i.name),i.sz&&(t["font-size"]=i.sz/.75+"px"),i.color&&i.color.rgb&&(t.color=this.NG(i.color.rgb)),i.bold&&(t["font-weight"]="bold"),i.underline&&(t["text-decoration"]="underline"),i.italic&&(t["font-style"]="italic"),i.strike&&(t["text-decoration"]="line-through")}if(e.alignment){var n=e.alignment;n.vertical&&"center"==n.vertical&&(t.display="flex",t["justify-content"]="flex-start",t["align-items"]="center"),n.vertical&&"bottom"==n.vertical&&(t.display="flex",t["justify-content"]="flex-end",t["align-items"]="flex-end"),n.horizontal&&(!n.vertical||"center"!=n.vertical&&"bottom"!=n.vertical?t["text-align"]=n.horizontal:t["justify-content"]="center"),n.wrapText&&(t["white-space"]="normal")}if(e.border){var s=e.border;s.top&&(t["border-top"]="1px solid "+this.NG(s.top.color.rgb)),s.bottom&&(t["border-bottom"]="1px solid "+this.NG(s.bottom.color.rgb)+" !important"),s.left&&(t["border-left"]="1px solid "+this.NG(s.left.color.rgb)),s.right&&(t["border-right"]="1px solid "+this.NG(s.right.color.rgb)+" !important")}return t},JG:function(e){var t=0;for(var i in e){var n=this.config.excelHeader?i-1:i;if(0<=n){var s=this.getIdByIndex(n);this.exists(s)&&(this.getItem(s).$height=e[i],t++)}}return this.config.fixedRowHeight=!t,t},eG:function(e){var t=[];if(this.s.spans&&e&&e.length){this.Rt={};for(var i=0;i<e.length;i++)this.config.excelHeader&&e[i][0]--,0<=e[i][0]&&(e[i][0]=this.getIdByIndex(e[i][0]),e[i][1]="data"+e[i][1],t.push(e[i]));return this.addSpan(t),t}return!1}},jeeplus.ui.datatable),jeeplus.DataDriver.excel=jeeplus.extend({toObject:function(e){if(!e.excel){var t=e.options||{};t.dataurl&&jeeplus.extend(t,this.zB(t.dataurl)),e=e.data||e;var i=jeeplus.promise.defer();if(e.name){t.ext=e.name.split(".").pop();var n=new FileReader;n.onload=jeeplus.bind(function(e){i.resolve(this.parseData(e.target.result,t))},this),n.readAsArrayBuffer(e)}else i.resolve(this.parseData(e,t));return i}return e},parseData:function(e,i){e=new Uint8Array(e);for(var n=[],t=0;t!=e.length;++t)n[t]=String.fromCharCode(e[t]);var s=(i.ext||i).toLowerCase();return"xls"!=s&&(s="xlsx"),jeeplus.require(jeeplus.cdn+"/extras/xlsx.core.styles.min.js").then(jeeplus.bind(function(){var e="xls"==s?XLS.read(n.join(""),{type:"binary",cellStyles:!0,cellDates:!0}):XLSX.read(n.join(""),{type:"binary",cellStyles:!0,cellDates:!0}),t={sheets:e.Sheets,names:e.SheetNames,options:i,ranges:e.Workbook&&e.Workbook.Names||[]};return jeeplus.extend(this.getSheet(t,i),t)},this))},getSheet:function(e,t){var i=t.name||e.names[0];return e=this.sheetToArray(e.sheets[i],t),t.rows&&t.rows.length&&(e.data=e.data.splice(t.rows[0],Math.min(t.rows[1],e.data.length)-t.rows[0])),e},sheetToArray:function(e,t){var i=[],n=[],s=[],a=[];if(e&&e["!ref"]){var r,o,l,h=XLS.utils.decode_range(e["!ref"]),u=h.s.c,d=h.s.r+(t.rows?t.rows[0]:0);for(r=h.s.r;r<=h.e.r;r++){var c=[];for(o=h.s.c;o<=h.e.c;o++)if(l=e[XLS.utils.encode_cell({r:r,c:o})]){var p;p=t.math&&l.f?"="==l.f.charAt(0)?l.f:"="+l.f:"d"==l.t&&jeeplus.isDate(l.v)?jeeplus.i18n.dateFormatStr(l.v):l.v,c.push(p),l.s&&s.push([r-d,o-u,l.s])}else c.push("");i.push(c)}if(e["!merges"])for(var f=e["!merges"],m=0;m<f.length;m++){var g=f[m].s,v=f[m].e;(!t.rows||0<=g.r-d&&v.r-d<=t.rows[1])&&n.push([g.r-d,g.c-u,v.c-g.c+1,v.r-g.r+1])}if(e["!cols"]){var _=e["!cols"];for(m=0;m<_.length;m++)_[m]&&a.push(["column",m-u,Math.round(_[m].wch/(8.43/70))])}if(e["!rows"]){var y=e["!rows"];for(m=0;m<y.length;m++)y[m]&&a.push(["row",m-d,y[m].hpx])}}return{data:i,spans:n,styles:s,sizes:a,excel:!0}},zB:function(e){var t=e.split("["),i={};if(i.name=t[0],t[1]){var n=t[1].split(/[^0-9]+/g);n[0]=1*n[0]||0,n[1]=1*n[1]||9999999,i.rows=n}return i}},jeeplus.DataDriver.jsarray),jeeplus.protoUI({name:"treemap",defaults:{activeItem:!1,subRender:!0,header:!0,headerHeight:35,value:jeeplus.template("#value#"),headerTemplate:"",navigation:!0},value_setter:jeeplus.template,headerTemplate_setter:jeeplus.template,header_setter:function(e){return e&&!0!==e&&(this.type.header=e),e},$init:function(e){this.$view.className+=" jeeplus_treemap",this.x.setAttribute("role","tree"),this.PA=document.createElement("DIV"),jeeplus.extend(this.data,jeeplus.TreeStore,!0),this.data.provideApi(this,!0),this.data.attachEvent("onClearAll",jeeplus.bind(function(){this.v="",this.$values={},this.$xy={}},this)),this.attachEvent("onKeyPress",this.DD)},pg:function(e){var t=this.data.Me[e.id];this.callEvent("onItemRender",[e]);var i=e.$template?this.type["template"+e.$template].call(this,e,this.type,t):this.type.template.call(this,e,this.type,t);return this.type.templateStart.call(this,e,this.type,t)+i+this.type.templateEnd.call(this)},QA:function(e){var t=this.getItem(e),i=this.s.headerHeight,n="<div class='jeeplus_treemap_header' style='height:"+i+"px;line-height:"+i+"px;'>";return(n+=this.type.header.call(this,t,this.type))+"</div>"},_x:function(e){var t,i,n,s,a=[];if(!this.$width||!this.count())return this.v="",!1;if(e||(e=this.config.branch||0,this.v="",this.$values={},this.$xy={},this.$xy[e]={width:this.$width,height:this.$height,top:0,left:0},e&&this.s.header&&(this.$xy[e].height-=this.s.headerHeight,this.$xy[e].top=this.s.headerHeight,this.v+=this.QA(e)),s=0,this.data.each(function(e){var t=this.getParentId(e.id);if(!this.data.branch[e.id]&&(n=1*this.config.value.call(this,e),!isNaN(n)&&n))for(this.$values[e.id]=n,s+=n;t;)this.$values[t]||(this.$values[t]=0),this.$values[t]+=n,t=this.getParentId(t)},this,!1,e)),this.data.eachChild(e,function(e){this.$values[e.id]&&a.push(jeeplus.copy(e))},this),s=s||this.$values[e],a.length&&s){(i={top:(t=this.$xy[e]).top,left:t.left,dx:t.width,dy:t.height,set:[],sum:0}).dim=Math.min(i.dx,i.dy);var r=i.dx*i.dy/s;for(l=0;l<a.length;l++)a[l].$value=this.$values[a[l].id]*r;a.sort(function(e,t){return e.$value>t.$value?-1:1});for(var o=1/0,l=0;a[l];){var h=this.RA(i,a[l]);if(h<o)i.sum+=a[l].$value,i.set.push(a[l]),o=h,l++;else{this.SA(i);var u={top:i.top,left:i.left,dx:i.dx,dy:i.dy,set:[],sum:0};r=i.sum/i.dim;i.dx>i.dy?(u.left+=r,u.dx-=r):(u.top+=r,u.dy-=r),(i=u).dim=Math.min(i.dx,i.dy),o=1/0}}}i&&this.SA(i)},SA:function(e){var t,i,n,s,a=e.top,r=e.left;for(e.mode=e.dy<e.dx,e.contra=e.sum/e.dim,t=0;t<e.set.length;t++)i=e.set[t].id,e.mode?(n=e.contra,s=e.set[t].$value/e.contra):(n=e.set[t].$value/e.contra,s=e.contra),this.$xy[i]={},this.$xy[i].top=a,this.$xy[i].left=r,e.mode?a+=s:r+=n,this.$xy[i].width=n,this.$xy[i].height=s,this.v+=this.pg(this.getItem(i)),this.s.subRender&&this.data.branch[i]&&this._x(i)},RA:function(e,t){var i=e.sum+t.$value,n=i*i/(e.dim*e.dim*t.$value);return e.set.length&&(n=Math.max(e.dim*e.dim*e.set[0].$value/(i*i),n)),1<n?n:1/n},Ne:function(e){return this.PA.innerHTML=this.pg(e),this.PA.firstChild},showBranch:function(e){this.s.branch=e,this.refresh()},render:function(e,t,i){if(this.isVisible(this.s.id)&&!this.$blockRender){if("update"==i){var n=this.getItemNode(e);if(n){var s=this.t[e]=this.Ne(t);jeeplus.html.insertBefore(s,n),jeeplus.html.remove(n)}}else!this.data.branch||this.s.branch&&!this.data.branch[this.s.branch]||(this.t=null,this.callEvent("onBeforeRender",[]),this._x(),this.y.innerHTML=this.v,this.callEvent("onAfterRender",[]));return!0}},ad:"jeeplus_dm_id",on_click:{jeeplus_treemap_item:function(e,t){this.s.select&&("multiselect"==this.s.select||this.s.multiselect?this.select(t,!1,e.ctrlKey||e.metaKey||"touch"==this.s.multiselect,e.shiftKey):this.select(t)),this.s.activeItem&&this.isBranch(t)&&this.showBranch(t)},jeeplus_treemap_header_item:function(e){var t=jeeplus.html.locate(e,"jeeplus_dm_header_id");this.define("branch",t),this.refresh()},jeeplus_treemap_reset:function(e){this.define("branch",0),this.refresh()}},on_dblclick:{},on_mouse_move:{},TA:function(e){var t="";for(var i in e)t+=i+":"+e[i]+";";return t},type:{template:jeeplus.template("#value#"),header:function(e,t){for(var i=e.id,n="<div role='button' tabindex='0' aria-label='"+jeeplus.i18n.aria.resetTreeMap+"' class='jeeplus_treemap_reset'></div>",s=[];i;)e=this.getItem(i),s.push(t.headerItem.call(this,e,t)),i=this.getParentId(i);return s.reverse(),n+s.join("<span class='jeeplus_icon fa-angle-right jeeplus_treemap_path_icon'></span>")},headerItem:function(e){var t=this.config.headerTemplate(e),i='<a role="button" tabindex="0" aria-label="'+t+'" jeeplus_dm_header_id="'+e.id+'" class="jeeplus_treemap_header_item">';return(i+=t)+"</a>"},classname:function(e,t,i){var n="jeeplus_treemap_item";t.css&&(n+=t.css+" "),e.$css&&("object"==typeof e.$css&&(e.$css=jeeplus.html.createCss(e.$css)),n+=" "+e.$css);var s=this.$xy[e.id];i&&i.$css&&(n+=" "+i.$css),n+=" jeeplus_treemap_level_"+this.getItem(e.id).$level;var a=this.getParentId(e.id);if(a&&a!=this.s.branch||(n+=" jeeplus_treemap_level_top"),this.$height-s.top-s.height<1&&(n+=" jeeplus_treemap_item_bottom"),this.$width-s.left-s.width<1&&(n+=" jeeplus_treemap_item_right"),t.cssClass){var r=t.cssClass.call(this,e,t,i);r&&(n+="object"==typeof r?" "+jeeplus.html.createCss(r):" "+r)}return n},templateStart:function(e,t,i){var n="";if(this.$xy){var s=this.$xy[e.id];n+="width: "+s.width+"px; height: "+s.height+"px;",n+="top: "+s.top+"px; left: "+s.left+"px;"}return'<div role="treeitem" aria-level="'+e.$level+'" '+(i&&i.jeeplus_selected?'aria-selected="true" tabindex="0"':"")+' jeeplus_dm_id="'+e.id+'" class="'+t.classname.call(this,e,t,i)+'" style="'+n+'">'},templateEnd:jeeplus.template("</div>")}},jeeplus.AutoTooltip,jeeplus.Group,jeeplus.TreeAPI,jeeplus.SelectionModel,jeeplus.KeysNavigation,jeeplus.MouseEvents,jeeplus.Scrollable,jeeplus.TreeDataLoader,jeeplus.ui.proto,jeeplus.TreeRenderStack,jeeplus.CopyPaste,jeeplus.EventSystem),jeeplus.extend(jeeplus.ui.datatable,{iB:function(){this.jB=!0,this.kB={},this.define("select","area"),this.attachEvent("onAfterScroll",function(){this.refreshSelectArea()}),this.attachEvent("onAfterRender",function(){this.refreshSelectArea()}),this.attachEvent("onBeforeColumnHide",function(e){this.tC=this.getColumnIndex(e)}),this.attachEvent("onAfterColumnHide",function(){this.uC(this.tC)}),this.attachEvent("onAfterRender",function(){this.qH()}),this.wB=function(e,t,i,n){if(e.row&&t.row){if(i)return this.addSelectArea(e,t,!0),!(this.jB=!0);if(!this.callEvent("onAreaDrag",[e,t,n]))return!1;this.mB?this.nB(this.mB):!this.jB||this.s.multiselect&&n&&n.ctrlKey||(this.removeSelectArea(),this.jB=!1)}},this.attachEvent("onBeforeAreaAdd",this.oB),jeeplus.UE(this.Vf,"mousedown",this.pB,{bind:this})},ql:!0,uC:function(e){var t=this.kB;for(var i in t){var n=t[i];if(this.getColumnIndex(n.start.column)<0)if(n.start.column==n.end.column)this.removeSelectArea(n.name);else{(s=this.columnId(e+1))&&this.vC(n.name,{row:n.start.row,column:s},null)}else if(this.getColumnIndex(n.end.column)<0){var s;(s=this.columnId(e-1))&&this.vC(n.name,null,{row:n.end.row,column:s})}}},gC:function(e,t,i,n){var s,a,r,o,l,h,u,d;if(t){s=this.getColumnIndex(t.start.column),a=this.getColumnIndex(t.end.column),r=this.getIndexById(t.start.row),o=this.getIndexById(t.end.row),l=this.getColumnIndex(e.column),h=this.getIndexById(e.row),u=this.getIndexById(t.init.row),d=this.getColumnIndex(t.init.column),l<s||"left"==i?"left"===i&&n.ctrl?(s=this.OG(u,s,i),a=d):"left"===i&&d<a?a--:s=l:(a<=l||"right"==i)&&("right"==i&&n.ctrl?(a=this.OG(u,a,i),s=d):"right"==i&&s<d?s++:a=l),h<r||"up"==i?"up"==i&&n.ctrl?(r=this.OG(r,d,i),o=u):"up"==i&&u<o?o--:r=h:(o<h||"down"==i)&&("down"==i&&n.ctrl?(o=this.OG(o,d,i),r=u):"down"==i&&r<u?r++:o=h);var c={row:this.getIdByIndex(r),column:this.columnId(s)},p={row:this.getIdByIndex(o),column:this.columnId(a)};this.callEvent("onBeforeBlockSelect",[c,p,!0])&&(this.vC(t.name,c,p),this.callEvent("onSelectChange",[]),this.callEvent("onAfterBlockSelect",[c,p]))}},OG:function(e,t,i){var n=this.config.columns,s=this.data.order,a=this.data.pull[s[e]],r=n[t].id,o=0;if("right"==i)for(var l=t+1;l<n.length;l++){if(a[n[l].id]){o=l;break}o=l}else if("left"==i){for(l=t-1;0<=l;l--)if(a[n[l].id]){o=l;break}}else if("down"==i)for(l=e+1;l<s.length;l++){if(this.getItem(s[l])[r]){o=l;break}o=l}else if("up"==i)for(l=e-1;0<=l;l--)if(this.getItem(s[l])[r]){o=l;break}return o},vC:function(e,t,i,n){var s=this.kB[e];if(!s)return!1;var a=jeeplus.copy(s),r={start:t||s.start,end:i||s.end};this.oB(r),jeeplus.extend(s,r,!0),this.refreshSelectArea(),this.qH(a),n&&this.callEvent("onSelectChange",[])},areaselect_setter:function(e){return e&&(this.iB(),this.iB=function(){}),this.define("blockselect",e),e},addSelectArea:function(e,t,i,n,s,a){var r,o,l,h,u;r=this.getIndexById(e.row),o=this.getIndexById(t.row),l=this.getColumnIndex(e.column),o<r&&(u=r,r=o,o=u),(h=this.getColumnIndex(t.column))<l&&(u=l,l=h,h=u),n=n||this.mB||jeeplus.uid(),this.mB=null;var d={start:{row:this.getIdByIndex(r),column:this.columnId(l)},end:{row:this.getIdByIndex(o),column:this.columnId(h)}};return s&&(d.css=s),(a||!1===a)&&(d.handle=a),this.kB[n]?this.vC(n,d.start,d.end,!0):(d.handle=!0,d.name=n,d.init=d.start,void(this.callEvent("onBeforeAreaAdd",[d])&&(this.qB=n,i||this.removeSelectArea(),this.kB[d.name]=d,this.el.push(d),this.refreshSelectArea(),this.qH(),this.callEvent("onAfterAreaAdd",[d]),this.callEvent("onSelectChange",[]))))},PC:function(){var e=jeeplus.html.create("DIV");return e.className="jeeplus_area_selection_layer",e.style.top=this.ck+"px",e},refreshSelectArea:function(){var e,t,i,n,s=null,a=null,r=null,o=this.s.prerender;if(this.wk){e=this.Xj(o),t=this.Sj(!0===o),this.rB||(this.rB=this.PC(),this.Vf.childNodes[1].appendChild(this.rB),this.QC=this.PC(),this.Vf.childNodes[0].appendChild(this.QC),this.RC=this.PC(),this.Vf.childNodes[2].appendChild(this.RC)),this.rB.innerHTML="",this.QC.innerHTML="",this.RC.innerHTML="";var l=this.s.leftSplit,h=this.s.rightSplit;for(i in this.kB){n=this.kB[i];var u=this.BD(n,e,t);if(null!==u){var d=this.getColumnIndex(n.start.column),c=this.getColumnIndex(n.end.column);if(u.r0<=u.r1){if(this.s.topSplit&&this.s.topSplit<=void 0&&void 0<this.ak)return!1;d<l&&(a=this.SC(u.r0,d,u.r1,Math.min(c,l-1))),u.c0<=u.c1&&(s=this.SC(u.r0,u.c0,u.r1,u.c1)),h&&c>=this.Fj&&(r=this.SC(u.r0,Math.max(d,this.Fj),u.r1,c)),(a||s||r)&&this.sB(a,s,r,i,n.css,n.handle)}}else this.removeSelectArea(i)}}},BD:function(e,t,i){var n,s,a=this.getIndexById(e.start.row),r=this.getIndexById(e.end.row),o=this.getColumnIndex(e.start.column),l=this.getColumnIndex(e.end.column);if(-1===o||-1===l)return null;if(-1===a||-1===r)return null;if(s=Math.min(i[1],r),this.s.topSplit){if((n=a)>=this.s.topSplit&&(n=Math.max(i[0]-this.s.topSplit,a)),s>=this.s.topSplit){var h=this.ug(this.getIdByIndex(r),e.end.column),u=this.ug(this.getIdByIndex(this.s.topSplit-1),e.end.column);u.top+u.height>h.top+h.height&&(s=this.s.topSplit-1)}}else n=Math.max(i[0],this.getIndexById(e.start.row));return{r0:n,r1:s,c0:Math.max(t[0],o),c1:Math.min(this.Fj?t[1]-1:t[1],l)}},SC:function(e,t,i,n){return[this.ug(this.getIdByIndex(e),this.columnId(t)),this.ug(this.getIdByIndex(i),this.columnId(n))]},sB:function(e,t,i,p,f,n){var s,a,r=this.kB[p],m=0;this.s.topSplit&&(m=this.zD(r.start,!0));var o=function(e,t,i,n,s){var a,r,o,l,h,u,d={top:1,right:1,bottom:1,left:1};for(a in n&&delete d.left,s&&delete d.right,r=i.top-t.top+i.height-1,o=i.left-t.left+i.width,d){l=t.top+m,"bottom"==a&&(l=i.top+i.height),h=t.left,"right"==a&&(h=i.left+i.width),u="top"==a||"bottom"==a,e.appendChild(jeeplus.html.create("DIV",{class:"jeeplus_area_selection jeeplus_area_selection_"+a+(f?" "+f:""),style:"left:"+h+"px;top:"+l+"px;"+(u?"width:"+o+"px;":"height:"+(r-m)+"px;"),jeeplus_area_name:p},""));var c=e.lastChild;"right"==a&&(c.style.left=h-c.offsetWidth+"px"),"bottom"==a&&(c.style.top=l-c.offsetHeight+"px"),m&&("top"==a&&(c.style.display="none"),i.height==m&&"bottom"==a&&(c.style.display="none"))}};i&&o(this.RC,i[0],i[1],!!t,!1),t&&o(this.rB,t[0],t[1],!!e,!!i),e&&o(this.QC,e[0],e[1],!1,!!t),n&&(a=i?i[1]:t?t[1]:e[1],(s=i?this.RC:t?this.rB:this.QC).appendChild(jeeplus.html.create("DIV",{class:"jeeplus_area_selection_handle"+(f?" "+f:""),style:"left:"+(a.left+a.width)+"px;top:"+(a.top+a.height)+"px;",jeeplus_area_name:p},"")),m&&a.height==m&&(s.lastChild.style.display="none"))},nB:function(n){if(n){var e=function(e){for(var t=e.childNodes,i=t.length-1;0<=i;i--)t[i].getAttribute("jeeplus_area_name")==n&&e.removeChild(t[i])};e(this.rB),e(this.QC),e(this.RC)}},removeSelectArea:function(e){if(e&&this.kB[e]){if(this.callEvent("onBeforeAreaRemove",[e])){for(var t in this.qH(jeeplus.copy(this.kB[e]),!0),delete this.kB[e],this.nB(e),this.el=[],this.kB)this.el.push(this.kB[t]);this.callEvent("onAfterAreaRemove",[e])}}else for(var i in this.kB)this.removeSelectArea(i)},pB:function(e){var t=e.target||e.srcElement,i=jeeplus.html.TC(t);if(i&&-1!=i.indexOf("jeeplus_area_selection_handle")){var n=t.getAttribute("jeeplus_area_name");this.mB=n;var s=this.kB[n],a=this.ug(s.start.row,s.start.column),r=this.ug(s.end.row,s.end.column),o=this.s.prerender,l=this.getColumnIndex(s.start.column)<this.s.leftSplit?0:this.dk,h=this.getColumnIndex(s.end.column)<this.s.leftSplit?0:this.dk;return this.ul=[a.left+1+l-this.bk,a.top+1-(o?this.jk:0),{row:s.start.row,column:s.start.column}],this.xl=jeeplus.html.offset(this.Vf),this.Al(e),this.vl=[r.left+1+h-this.bk,r.top+1-(o?this.jk:0)],this.jz(!1,!1),jeeplus.html.preventEvent(e)}},getSelectArea:function(e){return this.kB[e||this.qB]},getAllSelectAreas:function(){return this.kB},oB:function(e,t){var i,n,s,a,r,o,l,h,u,d,c,p,f,m=!1,g=e.start,v=e.end;for(d=r=this.getIndexById(g.row),c=s=this.getColumnIndex(g.column),p=o=this.getIndexById(v.row),f=a=this.getColumnIndex(v.column),i=r;i<=o;i++){if(this.getItem(this.getIdByIndex(i)).$row&&!t)m=!0,f=this.fj.length-1;else if(this.config.spans)for(n=s;n<=a;n++)(l=this.getSpan(this.getIdByIndex(i),this.columnId(n)))&&((h=this.getIndexById(l[0]))<d&&(d=h,m=!0),(u=this.getColumnIndex(l[1]))<c&&(m=!0,c=u),h+l[3]-1>p&&(m=!0,p=h+l[3]-1),u+l[2]-1>f&&(m=!0,f=u+l[2]-1))}m&&(e.start={row:this.getIdByIndex(d),column:this.columnId(c)},e.end={row:this.getIdByIndex(p),column:this.columnId(f)},this.oB(e,!0))},qH:function(e,t){if(e){var i=this.getIndexById(e.end.row)-this.getIndexById(e.start.row)+1,n=this.getColumnIndex(e.end.column)-this.getColumnIndex(e.start.column)+1;this.mapCells(e.start.row,e.start.column,i,n,jeeplus.bind(function(e,t,i){var n=this.getItemNode({row:t,column:i});n&&n.removeAttribute("tabindex")},this),!0)}!t&&this.el.length&&this.mapSelection(jeeplus.bind(function(e,t,i){var n=this.getItemNode({row:t,column:i});return n&&n.setAttribute("tabindex","1"),e},this))}}),jeeplus.protoUI({name:"rangechart",$init:function(){this.attachEvent("onAfterRender",this.AB),this.BB()},AB:function(){return!this.eo.sA.length||this.CB?void this.pF(!0):(this.TE(),this.EB=(this.eo.sA[0].points[2]-this.eo.sA[0].points[0])/2,this.FB=jeeplus.html.create("div",{class:"jeeplus_chart_resizer right",tabindex:"0",role:"button","aria-label":jeeplus.i18n.aria.resizeChart}),this.GB=jeeplus.html.create("div",{class:"jeeplus_chart_resizer left",tabindex:"0",role:"button","aria-label":jeeplus.i18n.aria.resizeChart}),this.CB=jeeplus.html.create("div",{class:"jeeplus_chart_frame"}),this.x.appendChild(this.GB),this.x.appendChild(this.CB),this.x.appendChild(this.FB),this.pF(),jeeplus.UE(this.FB,jeeplus.env.mouse.down,this.IB,{bind:this}),jeeplus.UE(this.GB,jeeplus.env.mouse.down,this.IB,{bind:this}),jeeplus.UE(this.CB,jeeplus.env.mouse.down,this.IB,{bind:this}),jeeplus.UE(jeeplus.toNode(this.FB),"keydown",this.zE,{bind:this}),jeeplus.UE(jeeplus.toNode(this.GB),"keydown",this.zE,{bind:this}),this.JB&&(this.s.range=this.BB(this.JB)),this.KB(),this.callEvent("onAfterRangeChange",[this.JB]),void this.data.attachEvent("onStoreUpdated",jeeplus.bind(this.KB,this)))},$setSize:function(e,t){jeeplus.ui.chart.prototype.$setSize.call(this,e,t)&&(this.TE(),this.KB())},pF:function(e){this.FB&&!this.HB&&(this.HB=this.FB.clientWidth/2,e&&this.KB())},TE:function(){var e=this.no(this.bc,this.dc);this.kp=e.start,this.DB=e.end},removeAllSeries:function(){this.CB=this.FB=this.GB=null,jeeplus.ui.chart.prototype.removeAllSeries.apply(this,arguments)},zE:function(e){var t=e.which||e.keyCode;if(37===t||39===t){jeeplus.html.preventEvent(e);var i=-1!==e.target.className.indexOf("right")?"eindex":"sindex",n=-1!==e.target.className.indexOf("right")?"end":"start",s=this.JB;s[i]=s[i]+(37===t?-1:1),this.eo.sA[s[i]]&&(s[n]=this.SB(s[i]),this.setFrameRange(s))}},IB:function(e){if(-1!==e.target.className.indexOf("jeeplus_chart_resizer"))this.LB=e.target;else if(this.eo.sA.length){var t=this.eo.sA[this.JB.sindex].points[2]-this.EB,i=this.eo.sA[this.JB.eindex].points[2]-this.EB;this.MB={ex:jeeplus.html.pos(e).x,fx:t+this.kp.x,fw:i-t}}jeeplus.html.addCss(this.x,"jeeplus_noselect jeeplus_wresize_cursor"),this.GE(),this.NB=jeeplus.event(document.body,jeeplus.env.mouse.move,this.OB,{bind:this}),this.PB=jeeplus.event(document.body,jeeplus.env.mouse.up,this.QB,{bind:this})},GE:function(){jeeplus.h[this.NB]&&(jeeplus.eventRemove(this.NB),jeeplus.eventRemove(this.PB))},OB:function(e){if(this.LB){var t=jeeplus.html.pos(e).x-jeeplus.html.offset(this.$view).x;t>=this.kp.x&&t<=this.DB.x&&(-1!==this.LB.className.indexOf("left")?t<this.FB.offsetLeft&&(this.LB.style.left=t-this.HB+"px",this.CB.style.left=t+"px",this.CB.style.width=this.FB.offsetLeft-this.GB.offsetLeft-1+"px"):t>this.GB.offsetLeft+this.HB&&(this.LB.style.left=t-this.HB+"px",this.CB.style.width=this.FB.offsetLeft-this.GB.offsetLeft-1+"px"))}else if(this.MB){var i=jeeplus.html.pos(e).x-this.MB.ex,n=this.MB.fx+i,s=n+this.MB.fw;this.kp.x<=n&&this.DB.x>=s&&(jeeplus.extend(this.MB,{lx:n,rx:s},!0),this.GB.style.left=n-this.HB+"px",this.FB.style.left=s-this.HB+"px",this.CB.style.left=n+"px")}},QB:function(e){if(this.GE(),jeeplus.html.removeCss(this.x,"jeeplus_noselect"),jeeplus.html.removeCss(this.x,"jeeplus_wresize_cursor"),this.count()){if(this.LB){var t=jeeplus.env.touch?e.changedTouches[0].pageX:jeeplus.html.pos(e).x;t-=jeeplus.html.offset(this.$view).x+this.kp.x;var i=this.RB(t),n=this.SB(i);this.LB===this.GB?(i>=this.JB.eindex&&(i=this.JB.eindex,n=this.SB(i)),this.JB.start=n,this.JB.sindex=i):(i<=this.JB.sindex&&(i=this.JB.sindex,n=this.SB(i)),this.JB.end=n,this.JB.eindex=i),this.LB=null}else if(this.MB&&this.MB.lx){var s=this.JB.sindex=this.RB(this.MB.lx-this.kp.x),a=this.JB.eindex=this.RB(this.MB.rx-this.kp.x);this.JB.start=this.SB(s),this.JB.end=this.SB(a),this.MB=null}this.KB(),this.callEvent("onAfterRangeChange",[this.JB.start,this.JB.end])}},SB:function(e){return e>=this.data.order.length&&(e=this.data.order.length-1),this.getItem(this.data.order[e])[this.s.frameId||"id"]},RB:function(e){for(var t=this.eo.sA,i=0;i<t.length;i++)if(e<=t[i].points[2]-this.EB)return i;return t.length-1},TB:function(e){for(var t=this.s.frameId||"id",i=0;i<this.data.order.length;i++)if(this.getItem(this.data.order[i])[t]==e)return i;return-1},BB:function(e){e?(e.start&&(e.sindex=this.TB(e.start)),e.end&&(e.eindex=this.TB(e.end)),e.start=e.start||this.SB(e.sindex),e.end=e.end||this.SB(e.eindex)):e={start:0,end:0,sindex:0,eindex:0},this.JB=e},range_setter:function(e){return this.BB(e),this.JB},getFrameData:function(){for(var e=[],t=this.JB.sindex;t<=this.JB.eindex;t++){var i=this.getItem(this.data.order[t]);i&&e.push(i)}return e},setFrameRange:function(e){this.BB(e),this.KB(),this.callEvent("onAfterRangeChange",[e])},KB:function(){if(this.eo){var e=this.eo.sA;if(e.length){var t=e[this.JB.sindex].points[0]+this.kp.x+this.EB-1,i=e[this.JB.eindex].points[0]+this.kp.x+this.EB-1;this.GB.style.left=t-this.HB+"px",this.FB.style.left=i-this.HB+"px",this.CB.style.left=t+"px",this.CB.style.width=i-t+"px",this.s.range=this.JB}}},getFrameRange:function(){return this.s.range}},jeeplus.ui.chart),jeeplus.protoUI({name:"richtext",defaults:{label:"",labelWidth:80,labelPosition:"left"},$init:function(e){this.$ready.unshift(this.HE)},getInputNode:function(){return this.$view.querySelector(".jeeplus_richtext_editor")},IE:function(e){return{view:"toggle",type:"iconButton",icon:e,name:e,id:e,label:jeeplus.i18n.richtext[e],autowidth:!0,action:e,click:this.JE}},HE:function(){var e=this,t={view:"template",css:"jeeplus_richtext_container",borderless:!0,template:"<div class='jeeplus_richtext_editor' contenteditable='true'>"+this.getValue()+"</div>",on:{onAfterRender:function(){jeeplus.UE(e.getInputNode(),"blur",function(){e.CG(this.innerHTML)}),jeeplus.UE(e.getInputNode(),"keyup",function(){e.KE()})}},onClick:{jeeplus_richtext_editor:function(){e.KE()}}},i={view:"toolbar",id:"toolbar",elements:[this.IE("underline"),this.IE("bold"),this.IE("italic"),{}]},n=[i,t];"top"!==this.config.labelPosition&&this.config.labelWidth?(this.config.borderless=!0,this.cols_setter([{template:this.config.label||" ",width:this.config.labelWidth},{rows:n}])):(i.elements.push({view:"label",label:this.config.label,align:"right"}),this.rows_setter(n))},KE:function(){var e;this.$$("toolbar").setValues({italic:!1,underline:!1,bold:!1}),e=window.getSelection?window.getSelection():document.selection.createRange();for(var t=0;t<e.rangeCount;++t)e.getRangeAt(t),this.$view.contains(this.getInputNode())&&(document.queryCommandState("bold")&&this.$$("bold").setValue(!0),document.queryCommandState("underline")&&this.$$("underline").setValue(!0),document.queryCommandState("italic")&&this.$$("italic").setValue(!0))},refresh:function(){this.getInputNode().innerHTML=this.config.value},LE:function(e,t){var i,n;if(window.getSelection()?n=(i=window.getSelection()).toString().length:n=(i=document.selection.createRange()).text.length,0<n)for(var s=0;s<i.rangeCount;++s){var a=i.getRangeAt(s);if(i.isCollapsed){var r=i.focusNode.textContent,o=i.focusNode,l=i.anchorOffset,h=r.substring(0,l).match(/[A-Za-z]*$/)[0],u=r.substring(l).match(/^[A-Za-z]*/)[0],d=l-h.length,c=l+u.length;a.setStart(o,d),a.setEnd(o,c),i.removeAllRanges(),window.getSelection().addRange(a),document.execCommand(t,!1,"")}else document.execCommand(t,!1,"")}},JE:function(){var e=(this.config.action,this.getTopParentView()),t=e.getInputNode();this.$view.contains(this.getInputNode())&&e.LE(t,this.config.action)},focus:function(){this.$view.querySelector(".jeeplus_richtext_editor").focus()},CG:function(e){var t=this.config.value;this.config.value=e||"",t!==e&&this.callEvent("onChange",[e,t])},setValue:function(e){this.CG(e),this.refresh()},getValue:function(){this.getInputNode()&&(this.config.value=this.getInputNode().innerHTML);var e=this.config.value;return e||(0===e?"0":"")}},jeeplus.IdSpace,jeeplus.ui.layout),jeeplus.protoUI({name:"gage",defaults:{value:0,minRange:0,maxRange:100,minWidth:250,minHeight:200,smoothFlow:!0,scale:3,stroke:7},$init:function(){this.$ready.push(jeeplus.bind(this.ME,this)),this.attachEvent("onDestruct",function(){this.NE=this.OE=this.PE=null})},$setSize:function(e,t){jeeplus.ui.view.prototype.$setSize.call(this,e,t)&&(this.QE(this.config.value),this.Qf(this.config.value))},QE:function(){var e=this.$view.querySelector(".jeeplus_gage_curves"),t=this.$view.querySelector(".jeeplus_gage_info"),i=this.config.scale,n=this.$width;e.setAttribute("r",n/i),e.setAttribute("strokeDasharray",Math.round(Math.PI*n/i)),e.style.r=n/i,e.style.strokeDasharray=Math.round(Math.PI*n/i),t.setAttribute("style","width: "+Math.round(n/i*2)+"px;"),this.PE.setAttribute("style","height: "+(n/i+20)+"px;"),this.NE.setAttribute("r",n/i),this.NE.setAttribute("style","stroke-dasharray: "+Math.round(this.gradientLength*Math.PI*n/i)+", 1900;"),this.RE(e.style.r)},sF:function(e){return Math.min(Math.max(e,this.s.minRange),this.s.maxRange)},RE:function(e){var t=this.$width,i=this.config.value,n=(i=this.sF(i))-this.config.minRange,s=Math.round(180*n/(this.config.maxRange-this.config.minRange));(0===s||180===s)&&(this.PE.style.paddingTop="3px"),this.OE.style.transformOrigin=t/2-.55+"px 0 0",this.OE.setAttribute("y1","0"),this.OE.setAttribute("x1",Math.round(.55*t)),this.OE.setAttribute("y2",0),this.OE.setAttribute("x2",Math.round(.525*t+parseInt(e)))},Qf:function(e){var t=this.$view.querySelector(".jeeplus_gage-value"),i=this.sF(e)-this.config.minRange,n=Math.round(180*i/(this.config.maxRange-this.config.minRange)),s=this.$width;s=Math.floor(s/10),this.$view.style.fontSize=s+"px",t.innerHTML=e,this.NE.style.stroke=this.color,this.NE.setAttribute("stroke",this.color),this.OE.setAttribute("transform","rotate("+n+" "+this.$width/2+" 0)"),this.OE.style.transform="rotate("+n+"deg)"},SE:function(){this.gradientLength=(this.sF(this.config.value)-this.config.minRange)/(this.config.maxRange-this.config.minRange);var e=this.config.color;this.color=e?"function"==typeof e?e.call(this,this.config.value):e:"hsl("+(120-Math.round(120*this.gradientLength))+", 100%, 50%)",!0===this.config.animation?this.defaultColor="hsl(125, 100%, 50%)":this.defaultColor="hsl("+(120-Math.round(120*this.gradientLength))+", 100%, 50%)"},ME:function(){this.gradientLength=0,this.SE(),this.$view.innerHTML='<div class="jeeplus_gage_label"><span>'+(this.config.label||"")+'</span></div><svg class="jeeplus_gage" style="height:300px; position: relative;"><circle class="jeeplus_gage_curves" r="0" cx="50%" cy="0" stroke="#EEEEEE" stroke-width="'+this.config.stroke+'%" fill="none"></circle><circle class="jeeplus_gage_gradient" r="0" stroke="'+this.defaultColor+'" cx="50%" cy="0" stroke-width="'+this.config.stroke+'%" fill="none" style="stroke-dasharray: 0, 1900;"></circle><line class="jeeplus_gage_gradient_point" x1="0" x2="0" y1="0" y2="0" style="stroke:#B0B0B0; stroke-width:4;"></line></svg><div class="jeeplus_gage_info"><div class="jeeplus_gage_min_range">'+this.config.minRange+'</div><div class="jeeplus_gage_max_range">'+this.config.maxRange+'</div><div class="jeeplus_gage_placeholder"><div class="jeeplus_gage-value">'+this.config.value+'</div><div class="jeeplus_gage_range_info">'+(this.config.placeholder||"")+"</div></div></div>",this.NE=this.$view.querySelector(".jeeplus_gage_gradient"),this.OE=this.$view.querySelector(".jeeplus_gage_gradient_point"),this.PE=this.$view.querySelector(".jeeplus_gage"),!0===this.isVisible()&&!0===this.config.smoothFlow&&jeeplus.env.svganimation&&!jeeplus.env.isEdge&&(this.NE.setAttribute("class","jeeplus_gage_gradient jeeplus_gage_animated"),this.OE.setAttribute("class","jeeplus_gage_gradient_point jeeplus_gage_gradient_point_animated"))},setValue:function(e){this.config.value=e,this.SE(),this.QE(),this.Qf(e)},getValue:function(){return this.config.value}},jeeplus.EventSystem,jeeplus.ui.view),jeeplus.protoUI({name:"bullet",defaults:{color:"#394646",marker:!1,layout:"x",barWidth:40,flowTime:500,labelWidth:150,stroke:8,bands:[{value:100,color:"#5be5d6"},{value:80,color:"#fff07e"},{value:60,color:"#fd8b8c"}],scale:{step:10}},label_setter:jeeplus.template,placeholder_setter:jeeplus.template,$init:function(e){e&&(e.layout&&"x"!==e.layout||e.height||(e.height=!1===e.scale?60:90),"y"!==e.layout||e.width||(e.width=!1===e.scale?60:97))},scale_setter:function(e){return e.step=e.step||10,e.template=jeeplus.template(e.template||"#value#"),e},$setSize:function(e,t){jeeplus.ui.view.prototype.$setSize.call(this,e,t)&&(this.ME("y"===this.s.layout?t:e),(this.s.value||0===this.s.value)&&this.Qf(0,this.s.value))},sF:function(e){return Math.min(Math.max(e,this.s.minRange),this.s.maxRange)},CF:function(e){var t;this.DF=e-(this.um||e),this.um=e,(1e3<(t=this.s.flowTime>this.DF?this.s.flowTime/this.DF:this.s.flowTime)||t<5)&&(t=30);var i=(this.s.value-this.EF)/t;this.FF+=i,Math.abs(this.FF-this.s.value)<Math.abs(i)&&(this.FF=this.s.value),this.FF!=this.s.value?this.GF=requestAnimationFrame(this.CF.bind(this)):(cancelAnimationFrame(this.GF),this.GF=null),this.HF.setAttribute("width",Math.floor(this.FF*this.JF))},Qf:function(e,t){this.EF=this.FF=e,this.s.value=t;var i=this.s.label;i&&(this.$view.querySelector(".jeeplus_bullet_header").textContent=i(this.s));var n=this.s.placeholder;"function"==typeof n&&(this.$view.querySelector(".jeeplus_bullet_subheader").textContent=n(this.s)),!0===this.isVisible()&&!0===this.s.smoothFlow&&window.requestAnimationFrame?this.GF||(this.GF=requestAnimationFrame(this.CF.bind(this))):this.HF.setAttribute("width",Math.floor(t*this.JF))},KF:function(e,t,i){for(var n=0;n<t.length;n++)e.setAttribute(t[n],i[n])},LF:function(e,t,i){var n=document.createElementNS("http://www.w3.org/2000/svg",e);return t&&this.KF(n,t,i),n},SF:function(e){var t=this.LF(e[0],e[1],e[2]),i=e[3];if(i)for(var n=0;n<i.length;n++)t.appendChild(this.SF(i[n]));return t},MF:function(){var e="d"+jeeplus.uid(),t=this.LF("svg",["class"],["jeeplus_bullet_graph_svg"]),i=this.LF("g"),n=this.LF("g"),s=this.LF("rect",["x","y","width","height","class","style"],[this.IF,this.TF,100,this.s.stroke,"jeeplus_bullet_value","filter:url(#"+e+");fill:"+this.s.color]),a=this.LF("rect",["x","y","width","height","fill"],[0,5,3,this.s.barWidth-10,"rgba(0,0,0,0.5)"]),r=this.LF("g",["stroke","stroke-width","fill"],["#8b94ac","2","none"]),o=this.LF("text",["text-anchor","stroke","fill"],["end","none","#8b94ac"]),l="y"==this.s.layout?"50%":this.IF-10,h="y"==this.s.layout?11:17,u=this.LF("tspan",["x","y","class"],[l,h,"jeeplus_bullet_header"]),d=this.LF("tspan",["x","y","class"],[l,h+17,"jeeplus_bullet_subheader"]),c=this.LF("text",["text-anchor","stroke","class","fill"],["middle","none","jeeplus_bullet_scale","#8b94ac"]),p=this.SF(["filter",["id","x","y","width","height"],[e,"0","-150%","110%","400%"],[["feOffset",["in","dx","dy"],["SourceAlpha",0,0]],["feGaussianBlur",["stdDeviation"],["2"]],["feComponentTransfer",0,0,[["feFuncA",["type","slope"],["linear","0.5"]]]],["feMerge",0,0,[["feMergeNode"],["feMergeNode",["in"],["SourceGraphic"]]]]]]);t.appendChild(p);var f=document.createElement("div");i.appendChild(n),!1!==this.s.marker&&(a.setAttribute("x",this.IF+this.sF(this.s.marker)*this.JF-2),i.appendChild(a)),i.appendChild(s),o.appendChild(u),o.appendChild(d),t.appendChild(o);var m="y"===this.s.layout;if(this.s.scale){for(var g=this.s.minRange;g<=this.s.maxRange;g+=this.s.scale.step){var v=this.s.labelHeight||this.s.labelWidth,_=(l=Math.floor(v+g*this.JF-(g?.1:-1)),m?(this.$width-this.s.barWidth)/2-10:l),y=m?this.NF-l+v+44:this.s.barWidth+28,b=m?-13:this.s.barWidth+3,x=m?"end":"middle",w=this.LF("tspan",["x","y","text-anchor"],[_,y,x]),M=this.LF("line",["x1","y1","x2","y2","stroke-width"],[l,b,l,b+10,1]);f.innerHTML=this.s.scale.template({value:g}),w.appendChild(f.childNodes[0]),c.appendChild(w),r.appendChild(M)}i.appendChild(r),t.appendChild(c)}for(g=0;g<this.s.bands.length;g++){var j=this.s.bands[g],k=this.LF("path");s=this.sF(j.value)*this.JF;k.setAttribute("d","M "+this.IF+",0 l "+s+",0 l 0,"+this.s.barWidth+" l -"+s+",0 z"),k.setAttribute("fill",j.color),n.appendChild(k)}if(t.appendChild(i),"y"===this.s.layout){var L=this.s.scale?this.$width/2-10:0,S=this.$height+this.IF-28;i.setAttribute("transform","translate("+L+", "+S+") rotate(270)"),o.setAttribute("text-anchor","middle"),o.childNodes[0].setAttribute("x","55%"),o.childNodes[1].setAttribute("x","55%"),c.setAttribute("text-anchor","right")}return t.setAttribute("viewBox","0 0 "+this.$width+" "+this.$height),t},ME:function(e){if(e){var t=this.$view;t.innerHTML="";var i=this.s.labelHeight||this.s.labelWidth;this.IF=this.s.label?i:7,this.TF=Math.floor((this.s.barWidth-this.s.stroke)/2),this.NF=e-this.IF-30,this.JF=this.NF/(this.s.maxRange-this.s.minRange);var n=this.MF();n.setAttribute("height",this.$height),n.setAttribute("width",this.$width),t.appendChild(n),this.HF=t.querySelector(".jeeplus_bullet_value")}},setValue:function(e){this.s.value!=e&&this.Qf(this.s.value,e)},getValue:function(){return this.s.value}},jeeplus.ui.gage,jeeplus.ui.view),jeeplus.protoUI({name:"switch",defaults:{template:function(e,t){t.HH();var i=e.name||"x"+jeeplus.uid(),n="";e.labelRight&&(n="<label class='jeeplus_label_right'>"+e.labelRight+"</label>",e.labelWidth&&(e.label=e.label||"&nbsp;"));var s=e.checkValue==e.value,a='<label class="jeeplus_switch_box '+(s?" jeeplus_switch_on":"")+'" style="width:'+t.IH+'px" for="'+i+'"><span class="jeeplus_switch_text">'+((s?e.onLabel:e.offLabel)||"")+'</span><span class="jeeplus_switch_handle" style="left:'+(s?t.IH-t.JH:0)+'px;"><input id="'+i+'" class="jeeplus_switch_toggle" type="checkbox" '+(s?"checked":"")+"></span></label>"+n;return t.$renderInput(e,a)}},$skin:function(){this.JH=jeeplus.skin.$active.switchHeight,this.IH=jeeplus.skin.$active.switchWidth},$setValue:function(e){var t=this.s,i=e==t.checkValue,n=this.$view.querySelector(".jeeplus_switch_box");if(n){var s=n.childNodes[1],a=(i?t.onLabel:t.offLabel)||"";i?jeeplus.html.addCss(n,"jeeplus_switch_on"):jeeplus.html.removeCss(n,"jeeplus_switch_on"),s.style.left=(i?this.IH-this.JH:0)+"px",s.firstChild.checked=i,a&&(n.childNodes[0].innerHTML=a)}},HH:function(){var e=this.s;if(e.onLabel||e.offLabel){var t=e.onLabel?jeeplus.html.getTextSize(e.onLabel,"jeeplus_switch_text").width:0,i=e.onLabel?jeeplus.html.getTextSize(e.offLabel,"jeeplus_switch_text").width:0;this.IH=Math.max(t,i)+this.JH}},on_click:{jeeplus_switch_toggle:function(e,t,i){this.toggle()}}},jeeplus.ui.checkbox),function(i){function n(e){if(s[e])return s[e].exports;var t=s[e]={exports:{},id:e,loaded:!1};return i[e].call(t.exports,t,t.exports,n),t.loaded=!0,t.exports}var s={};n.m=i,n.c=s,n.p="",n(0)}([function(e,t,i){"use strict";function n(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}i(3),i(9),i(10),i(11);var s=n(i(18)),a=n(i(19)),r=n(i(20)),o=n(i(21)),l=n(i(23)),h=n(i(24)),u=n(i(25)),d=n(i(26)),c=n(i(48));jeeplus.protoUI({name:"filemanager",$init:function(e){var t=this;this.$view.className+=" jeeplus_fmanager",jeeplus.extend(this.data,jeeplus.TreeStore,!0),this.data.provideApi(this,!0),jeeplus.extend(e,this.defaults),d.init(this,e),r.init(this),o.init(this),e.legacyUploader=e.legacyUploader||jeeplus.isUndefined(XMLHttpRequest)||jeeplus.isUndefined((new XMLHttpRequest).upload),this.$ready.push(function(){t._beforeInit(),t.callEvent("onComponentInit",[])}),jeeplus.UIManager.tabControl=!0,jeeplus.extend(e,d.getUI(this,e)),this.attachEvent("onAfterLoad",function(){var e=this;if(!this.getCursor||!this.getCursor()){var t=this.config.defaultSelection;t=t?t.call(this):this.getFirstChildId(0),this.setCursor?this.setCursor(t):this.attachEvent("onComponentInit",function(){e.setCursor(t)})}})},handlers_setter:function(e){for(var t in e){var i=e[t];if("string"==typeof i)if(-1!=i.indexOf("->")){var n=i.split("->");i=jeeplus.proxy(n[0],n[1])}else"upload"!=t&&"download"!=t&&(i=jeeplus.proxy("post",i));e[t]=i}return e},_beforeInit:function(){s.init(this),c.init(this),this.config.scheme||this.define("scheme",{init:function(e){var t=this.getItem(e.id);t&&t.$count&&(e.type="folder")}}),this.attachEvent("onFolderSelect",function(e){this.setCursor(e)}),this.attachEvent("onBeforeDragIn",function(e){var t=e.target;if(t)for(var i=e.source,n=0;n<i.length;n++)for(;t;){if(t==i[n])return!1;t=this._getParentId(t)}return!0})},_getParentId:function(e){if(!this.getItem(e)){var t=this.$$(this.config.mode).getItem(e);return t&&t.parent&&this.getItem(t.parent)?t.parent:null}return jeeplus.TreeStore.getParentId.apply(this,arguments)},getMenu:function(){return this._contextMenu},getPath:function(e){return l.getPath(this,e)},getPathNames:function(e){return l.getPathNames(this,e)},setPath:function(e){return l.setPath(this,e)},_getLocation:function(e){var t,i="";if(this.getItem(e.id)||e.parent&&this.getItem(e.parent)){e.parent?(t=this.getPathNames(e.parent)).shift():((t=this.getPathNames(e.id)).shift(),t.pop());for(var n=[],s=0;s<t.length;s++)n.push(t[s].value);i="/"+n.join("/")}else if(e.location)i=e.location;else if("string"==typeof e.id){var a=e.id.split("/");a.pop(),i="/"+a.join("/")}return i},getSearchData:function(e,t){var i=[];return this.data.each(function(e){0<=this.config.templateName(e).toLowerCase().indexOf(t.toLowerCase())&&i.push(jeeplus.copy(e))},this,!0,e),i},showSearchResults:function(e){var t=this.getCursor();if(this.config.handlers.search)o.loadSearchData(this,this.config.handlers.search,t,e);else{var i=this.getSearchData(t,e);o.parseSearchData(this,i)}},hideSearchResults:function(e){if(this.$searchResults&&(this.callEvent("onHideSearchResults",[]),this.$searchResults=!1,!e)){var t=this.getCursor();this.blockEvent(),this.setCursor(null),this.unblockEvent(),this.setCursor(t)}},goBack:function(e){return e=e?-1*Math.abs(e):-1,r.changeCursor(this,e)},goForward:function(e){return r.changeCursor(this,e||1)},levelUp:function(e){(e=e||this.getCursor())&&(e=this.getParentId(e),this.setCursor(e))},markCopy:function(e){e&&(jeeplus.isArray(e)||(e=[e]),this._moveData=e,this._copyFiles=!0)},markCut:function(e){e&&(jeeplus.isArray(e)||(e=[e]),this._moveData=e,this._copyFiles=!1)},pasteFile:function(e){if(jeeplus.isArray(e)&&(e=e[0]),e){e=e.toString();var t=this.getActiveView().getItem(e);(this.data.branch[e]&&"folder"==this.getItem(e).type||t&&"folder"==t.type)&&this._moveData&&(this._copyFiles?this.copyFile(this._moveData,e):this.moveFile(this._moveData,e))}},download:function(e){var t=this.config.handlers.download;t&&jeeplus.send(t,{action:"download",source:e})},fileExists:function(t,e,i){var n=!1;return this.data.eachChild(e,jeeplus.bind(function(e){t!=e.value||i&&e.id==i||(n=e.id)},this)),n},_refreshActiveFolder:function(){this.$skipDynLoading=!0,this.$$(this.config.mode).$skipBinding=!1,this.refreshCursor()},_setFSId:function(e){var t=this.getParentId(e.id)+"/"+e.value;e.id!=t&&this.data.changeId(e.id,t)},_changeChildIds:function(e){this.data.eachSubItem(e,jeeplus.bind(function(e){e.value&&this._setFSId(e)},this))},_callbackRename:function(e,t){var i=this.getItem(e);i.value!=t&&(i.value=t,this._refreshActiveFolder(),this.callEvent("onItemRename",[e]))},_moveFile:function(e,t,i){var n=i?"copy":"move",s=[];e.reverse();for(var a=0;a<e.length;a++)if(this.getItem(e[a])){var r=this.move(e[a],0,this,{parent:t,copy:!!i});s.push(r)}this._refreshActiveFolder();var o=this.config.handlers[n];o&&h.makeSaveRequest(this,o,{action:n,source:e.join(","),temp:s.join(","),target:t.toString()},function(e,t){if(t&&jeeplus.isArray(t))for(var i=e.temp.split(","),n=0;n<t.length;n++)t[n].id&&t[n].id!=i[n]&&this.data.pull[i[n]]&&(this.data.changeId(i[n],t[n].id),this.config.fsIds&&this._changeChildIds(t[n].id),t[n].value&&this._callbackRename(t[n].id,t[n].value));this._updateDynSearch()})},_updateDynSearch:function(){this.$searchResults&&this.$searchValue&&this.showSearchResults(this.$searchValue)},copyFile:function(e,t){this.moveFile(e,t,!0)},moveFile:function(e,t,i){var n,s,a;for("string"==typeof e&&(e=e.split(",")),jeeplus.isArray(e)||(e=[e]),t?this.data.branch[t]||"folder"==this.getItem(t.toString()).type||(t=this.getParentId(t)):t=this.getCursor(),a=!0,t=t.toString(),n=0;n<e.length;n++)s=e[n].toString(),a=a&&this._isMovingAllowed(s,t);a?this._moveFile(e,t,!!i):this.callEvent(i?"onCopyError":"onMoveError",[])},deleteFile:function(e,t){"string"==typeof e&&(e=e.split(",")),jeeplus.isArray(e)||(e=[e]);for(var i=0;i<e.length;i++){var n=e[i];this.$$(this.config.mode).isSelected(n)&&this.$$(this.config.mode).unselect(n),n==this.getCursor()&&this.setCursor(this.getFirstId()),n&&this.remove(n)}this._refreshActiveFolder();var s=this.config.handlers.remove;s?(t&&(t=jeeplus.bind(t,this)),h.makeSaveRequest(this,s,{action:"remove",source:e.join(",")},t)):t&&t.call(this)},_createFolder:function(e,t){this.add(e,0,t),e.source=e.value,e.target=t,this._refreshActiveFolder();var i=this.config.handlers.create;i&&(e.action="create",h.makeSaveRequest(this,i,e,function(e,t){t.id&&(e.id!=t.id&&this.data.changeId(e.id,t.id),this.config.fsIds&&this._changeChildIds(t.id),t.value&&this._callbackRename(t.id,t.value))}))},createFolder:function(e){if("string"==typeof e&&(e=e.split(",")),jeeplus.isArray(e)&&(e=e[0]),e){e=""+e;var t=this.getItem(e);this.data.branch[e]||"folder"==t.type||(e=this.getParentId(e));var i=this.config.templateCreate(t);e=""+e,this._createFolder(i,e)}},editFile:function(e){jeeplus.isArray(e)&&(e=e[0]),this.getActiveView()&&this.getActiveView().edit&&this.getActiveView().edit(e)},renameFile:function(e,t,i){var n=this.getItem(e);i=i||"value",n&&(n[i]=t),this.refresh(n?e:""),this._refreshActiveFolder(),this.callEvent("onFolderSelect",[this.getCursor()]);var s=this.config.handlers.rename;if(s){var a={source:e,action:"rename",target:t};h.makeSaveRequest(this,s,a,function(e,t){t.id&&this.getItem(e.source)&&(e.source!=t.id&&this.data.changeId(e.source,t.id),this.config.fsIds&&this._changeChildIds(t.id),t.value&&this._callbackRename(t.id,t.value)),this._updateDynSearch()})}},_isMovingAllowed:function(e,t){for(;t;){if(t==e||!this.data.branch[t]&&"folder"!=this.getItem(t.toString()).type)return!1;t=this.getParentId(t)}return!0},getActiveView:function(){return this._activeView||this.$$("tree")||null},getActive:function(){var e=this.getSelectedFile();return e||this.getCursor()},getCurrentFolder:function(){return this.$$("tree").getSelectedId()},getSelectedFile:function(){var e=null,t=this.$$(this.config.mode).getSelectedId();if(t)if(jeeplus.isArray(t)){e=[];for(var i=0;i<t.length;i++)e.push(t[i].toString())}else e=t.toString();return e},_openFolder:function(e){this.callEvent("onBeforeLevelDown",[e])&&(this.setCursor(e),this.callEvent("onAfterLevelDown",[e]))},_runFile:function(e){this.callEvent("onBeforeRun",[e])&&(this.download(e),this.callEvent("onAfterRun",[e]))},_onFileDblClick:function(e){e=e.toString();var t=this.getItem(e);if(t)this.data.branch[e]||"folder"==t.type?this._openFolder(e):this._runFile(e);else if(this.$$(this.config.mode).filter)if("folder"!=(t=this.$$(this.config.mode).getItem(e)).type)this._runFile(e);else{var i=t&&t.parents?t.parents:l.getParentFolders(e);i.length&&this.openFolders(i).then(jeeplus.bind(function(){this._openFolder(e)},this))}},openFolders:function(e){return o.openFolders(this,e)},_addElementHotKey:function(e,t,i){var n=jeeplus.UIManager.addHotKey(e,t,i);(i||this).attachEvent("onDestruct",function(){jeeplus.UIManager.removeHotKey(n,t,i)})},clearBranch:function(e){o.clearBranch(this,e)},parseData:function(e){o.parseData(this,e)},_getDynMode:function(){return o.getDynMode(this)},loadDynData:function(e,t,i,n){o.loadDynData(this,e,t,i,n)},getUploader:function(){return c.getUploader(this)},uploadFile:function(e,t){return c.uploadFile(this,e,t)},hideTree:function(){this.callEvent("onBeforeHideTree",[])&&(u.hideTree(this),this.callEvent("onAfterHideTree",[]))},showTree:function(){this.callEvent("onBeforeShowTree",[])&&(u.showTree(this),this.callEvent("onAfterShowTree",[]))},defaults:a.values},jeeplus.ProgressBar,jeeplus.IdSpace,jeeplus.ui.layout,jeeplus.TreeDataMove,jeeplus.TreeDataLoader,jeeplus.DataLoader,jeeplus.EventSystem,jeeplus.Settings)},,,function(e,t){},,,,,,function(e,t){"use strict";jeeplus.type(jeeplus.ui.tree,{name:"FileTree",css:"jeeplus_fmanager_tree",dragTemplate:jeeplus.template("#value#"),icon:function(e){for(var t="",i=1;i<e.$level;i++)t+="<div class='jeeplus_tree_none'></div>";return t+(e.jeeplus_child_branch&&!e.$count?"<div class='jeeplus_tree_child_branch jeeplus_fmanager_icon jeeplus_tree_close'></div>":0<e.$count?e.open?"<div class='jeeplus_fmanager_icon jeeplus_tree_open'></div>":"<div class='jeeplus_fmanager_icon jeeplus_tree_close'></div>":"<div class='jeeplus_tree_none'></div>")},folder:function(e){return e.$count&&e.open?' <svg class="icon" aria-hidden="true">\n <use xlink:href="#icon-open"></use>\n </svg>':' <svg class="icon" aria-hidden="true">\n <use xlink:href="#icon-wenjianjiaweigongxiang"></use>\n </svg>'}}),jeeplus.type(jeeplus.ui.dataview,{name:"FileView",css:"jeeplus_fmanager_files",height:110,margin:10,width:150,template:function(e,t){var i=t.templateName(e,t),n=i;if(16<i.replace(/[^\x00-\xff]/g,"aa").length)for(var s=0,a=0;a<i.length;a++){if(255<i.charCodeAt(a)?s+=2:s++,16==s){n=i.substring(0,a+1)+"...";break}if(16<s){n=i.substring(0,a)+"...";break}}return'<div class=\'jeeplus_fmanager_file\'><svg class="icon" style=\'width: 5em;height: 5em;\' aria-hidden="true">\n <use xlink:href="#'+t.templateAliIcon(e,t)+'"></use>\n </svg><div class="name" title=\''+i+"'>"+n+"</div></div>"}})},function(e,t){"use strict";jeeplus.i18n.filemanager={actions:"快捷",back:"返回",forward:"前进",levelUp:"向上一层",name:"文件名",size:"大小",type:"类型",date:"上传日期",copy:"复制",cut:"剪切",paste:"粘贴",upload:"上传",download:"下载",remove:"删除",create:"创建目录",rename:"重命名",location:"位置",select:"选择文件",sizeLabels:["B","KB","MB","GB"],iconsView:"图标",tableView:"列表",hideTree:"隐藏",showTree:"展开",collapseTree:"全部关闭",expandTree:"全部展开",saving:"保存中...",errorResponse:"错误: 保存失败!",replaceConfirmation:"文件夹中存在同名的文件你想替换已经存在的文件吗?",createConfirmation:"同名文件夹已经存在,你想替换它吗 ?",renameConfirmation:"同名文件已经存在,你想替换它吗?",yes:"是",no:"否",types:{folder:"Folder",doc:"Document",excel:"Excel",pdf:"PDF",pp:"PowerPoint",text:"Text File",video:"Video File",image:"Image",code:"Code",audio:"Audio",archive:"Archive",file:"File"}}},function(e,t,i){"use strict";i(12),i(13),i(14),i(15),i(16),i(17)},function(e,t){"use strict";jeeplus.protoUI({name:"filelist"},jeeplus.EditAbility,jeeplus.ui.list)},function(e,t){"use strict";jeeplus.protoUI({name:"filemenu"},jeeplus.ContextHelper,jeeplus.ui.submenu)},function(e,t){"use strict";jeeplus.protoUI({name:"filetree",$dragHTML:function(e,t){var i=jeeplus.DragControl.getContext(),n=this.type,s=n.dragTemplate(e,n),a=jeeplus.html.getTextSize(s),r=jeeplus.html.offset(this.$view),o=t.x-r.x;return i.x_offset=o>a.width?-a.width/4:-o,i.y_offset=-a.height/2,"<div class='jeeplus_tree_item jeeplus_fmanager_drag' style='width:auto'>"+s+"</div>"}},jeeplus.EditAbility,jeeplus.ui.tree)},function(e,t){"use strict";jeeplus.protoUI({name:"filetable",$dragHTML:function(e,t){var i=jeeplus.DragControl.getContext(),n=this.getColumnIndex("value"),s=this.config.columns[n].template(e,this.type),a=jeeplus.html.getTextSize(s),r=jeeplus.html.offset(this.$view),o=t.x-r.x;i.x_offset=o>a.width?-a.width/4:-o,i.y_offset=-a.height/2;var l="<div class='jeeplus_dd_drag jeeplus_fmanager_drag' >";return(l+="<div style='width:"+(a.width+40)+"px'>"+s+"</div>")+"</div>"}},jeeplus.ui.datatable)},function(e,t){"use strict";jeeplus.protoUI({name:"fileview"},jeeplus.EditAbility,jeeplus.ui.dataview)},function(e,t){"use strict";jeeplus.protoUI({name:"path",defaults:{layout:"x",separator:",",scroll:!1},$skin:function(){this.type.height=jeeplus.skin.$active.buttonHeight||jeeplus.skin.$active.inputHeight},$init:function(){this.$view.className+=" jeeplus_path"},value_setter:function(e){return this.setValue(),e},setValue:function(e){this.clearAll(),e&&("string"==typeof e&&(e=e.split(this.config.separator)),this.parse(jeeplus.copy(e)))},getValue:function(){return this.serialize()}},jeeplus.ui.list)},function(e,t){"use strict";t.__esModule=!0,t.init=function(e){e.attachEvent("onComponentInit",function(){var r,o;(o=(r=e).getMenu())&&(o.attachEvent("onItemClick",function(e,t){var i=this.getItem(e),n=r[i.method]||r[e];if(n){var s=r.getActive();if(r.callEvent("onbefore"+(i.event||i.method||e),[s])){"upload"==e&&r.config.legacyUploader||(r._uploadPopup&&r._uploadPopup.hide(),o.hide());var a=[s];"upload"==e&&(t=jeeplus.html.pos(t),a.push(t)),jeeplus.delay(function(){n.apply(r,a),r.callEvent("onafter"+(i.event||i.method||e),[])})}}}),o.attachEvent("onBeforeShow",function(e){o.filter(""),o.hide();var t=o.getContext();return t&&t.obj&&!t.id&&t.obj.unselectAll(),!t||!t.obj||t.obj.callEvent("onBeforeMenuShow",[t.id,e])}))});var s=e.config.templateName,t={view:"filemenu",id:"actions",width:200,padding:0,autofocus:!1,css:"jeeplus_fmanager_actions",template:function(e,t){var i=s(e,t),n=-1==e.icon.indexOf("fm-")?""+e.icon:e.icon;return e.icon.indexOf("fm-"),"<span class='jeeplus_fmanager_icon "+n+"'></span> "+i},data:[{id:"view",batch:"file",icon:"fa fa-search-plus",value:"预览"},{id:"copy",batch:"file",method:"markCopy",icon:"fm-copy",value:jeeplus.i18n.filemanager.copy},{id:"cut",batch:"item",method:"markCut",icon:"fm-cut",value:jeeplus.i18n.filemanager.cut},{id:"paste",method:"pasteFile",icon:"fm-paste",value:jeeplus.i18n.filemanager.paste},{$template:"Separator"},{id:"create",method:"createFolder",icon:"fm-folder",value:jeeplus.i18n.filemanager.create},{id:"remove",batch:"item",method:"deleteFile",icon:"fm-delete",value:jeeplus.i18n.filemanager.remove},{id:"edit",batch:"item",method:"editFile",icon:"fm-edit",value:jeeplus.i18n.filemanager.rename},{id:"upload",method:"uploadFile",event:"UploadDialog",icon:"fm-upload",value:jeeplus.i18n.filemanager.upload},{id:"download",batch:"file",method:"download",icon:"fa fa-download",value:jeeplus.i18n.filemanager.download}]};e.callEvent("onViewInit",["actions",t]),e._contextMenu=e.ui(t),e.attachEvent("onDestruct",function(){e._contextMenu.destructor()})}},function(e,t){"use strict";t.__esModule=!0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.values={modes:["files","table"],mode:"files",handlers:{},structure:{},fsIds:!0,templateName:jeeplus.template("#value#"),templateSize:function(e){for(var t=e.size,i=jeeplus.i18n.filemanager.sizeLabels,n=0;1<t/1024;)t/=1024,n++;var s=parseInt(t,10)==t;return jeeplus.Number.numToStr({decimalDelimiter:jeeplus.i18n.decimalDelimiter,groupDelimiter:jeeplus.i18n.groupDelimiter,decimalSize:s?0:jeeplus.i18n.groupSize})(t)+""+i[n]},templateType:function(e){var t=jeeplus.i18n.filemanager.types;return t&&t[e.type]?t[e.type]:e.type},templateDate:function(e){var t=e.date;return"object"!=(void 0===t?"undefined":i(t))&&(t=new Date(1e3*parseInt(e.date,10))),jeeplus.i18n.fullDateFormatStr(t)},templateCreate:function(){return{value:"newFolder",type:"folder",date:new Date}},templateIcon:function(e,t){return"<div class='jeeplus_fmanager_icon fm-"+(t.icons[e.type]||t.icons.file)+"'></div>"},templateListIcon:function(e,t){return'<svg class="icon" aria-hidden="true">\n <use xlink:href="#'+(t.icons[e.type]||t.icons.file)+'"></use>\n </svg> '},templateAliIcon:function(e,t){return t.icons[e.type]||t.icons.file},uploadProgress:{type:"icon",hide:!1},icons:{folder:"icon-wenjian",excel:"icon-ELX",pdf:"icon-PDF",pp:"icon-PPT",text:"icon-TXT",video:"icon-video1",image:"icon-img",code:"icon-code1",audio:"icon-file-audio",archive:"icon-zip",doc:"icon-DOCs",file:"icon-file"}}},function(e,t){"use strict";t.__esModule=!0,t.init=function(e){e._cursorHistory=jeeplus.extend([],jeeplus.PowerArray,!0),e.$ready.push(function(){return(n=e).attachEvent("onAfterLoad",function(){if(!n.config.disabledHistory){var e=window.location.hash;e&&0===e.indexOf("#!/")&&n.setPath(e.replace("#!/",""))}}),void n.attachEvent("onAfterCursorChange",function(e){var t,i;n._historyIgnore||(n._historyCursor||n._cursorHistory.splice(1),n._cursorHistory[this._historyCursor]!=e&&(20==n._cursorHistory.length&&n._cursorHistory.splice(0,1),n._cursorHistory.push(e),n._historyCursor=this._cursorHistory.length-1)),n._historyIgnore=!1,n.config.disabledHistory||(t=n,i=(i=e)||t.getCursor(),window.history&&window.history.replaceState?window.history.replaceState({jeeplus:!0,id:t.config.id,value:i},"","#!/"+i):window.location.hash="#!/"+i),n.callEvent("onHistoryChange",[e,n._cursorHistory,n._historyCursor])});var n})},t.changeCursor=function(e,t){if(1<e._cursorHistory.length){var i=e._historyCursor+t;-1<i&&i<e._cursorHistory.length&&(e._historyIgnore=!0,e._historyCursor=i,e.setCursor(e._cursorHistory[i]))}return e.getCursor()}},function(e,t,i){"use strict";function n(t,e){var i=[];t.data.eachChild(e,function(e){t.data.branch[e.id]||"folder"==e.type||i.push(e.id)},t,!0);for(var n=0;n<i.length;n++)t.remove(i[n])}function s(e,t){e.parse(t),e.$skipDynLoading=!0,e._refreshActiveFolder(),e.$skipDynLoading=!1}function h(s,a,r,o){var l=s.getItem(a[0]);s.showProgress();var e=s.config.handlers[r],t={success:function(e,t){s.hideProgress();var i=s.data.driver.toObject(e,t);if(s.callEvent("onBeforeDynParse",[l,i,r])){l.open=!0,s.dataParser[r].call(s,l,i);var n=a.shift();a.length&&"folder"==s.getItem(a[0]).type?h(s,a,r,o):(s.refreshCursor(),o.resolve(n)),s.callEvent("onAfterDynParse",[l,i,r])}}};if(e.load)return e.load(null,t,{action:r,source:a[0]})}function r(e){for(var t in e.dataParser)if(e.config.handlers[t])return t;return null}function o(e,t){e.callEvent("onShowSearchResults",[]),e.$searchResults=!0;var i=e.$$(e.config.mode);i&&i.filter&&(i.clearAll(),e.sortState&&e.sortState.view==i.config.id&&(t=a.sortData(e.sortState.sort,t)),i.parse(t))}t.__esModule=!0,t.init=function(e){e.attachEvent("onBeforeCursorChange",function(){return!(e.$skipDynLoading=!1)}),e.dataParser={files:function(e,t){this.config.noFileCache?n(this,e.id):e.jeeplus_files=0,s(this,t)},branch:function(e,t){this.config.noFileCache?n(this,e.id):(e.jeeplus_branch=0,e.jeeplus_child_branch=0),s(this,t)}}},t.loadDynData=function(n,e,s,a,r){if(n.showProgress(),n.callEvent("onBeforeDynLoad",[e,s,a,r])){var t={success:function(e,t){n.hideProgress();var i=n.data.driver.toObject(e,t);r&&(s.open=!0),n.callEvent("onBeforeDynParse",[s,i,a])&&(n.dataParser[a].call(n,s,i),n.callEvent("onAfterDynParse",[s,i,a]))},error:function(){n.hideProgress(),n.callEvent("onDynLoadError",[])}};if(e.load)return e.load(null,t,{action:a,source:s.id})}},t.clearBranch=n,t.parseData=s,t.openFolders=function(e,t){var i,n,s,a=jeeplus.promise.defer();if((i=r(e))&&t.length){for(n=0;n<t.length;n++){if(!(s=e.getItem(t[n]))||s["jeeplus_"+i])return h(e,t.slice(n),i,a),a;s.open=!0,e.$$("tree")&&e.$$("tree").refresh(t[n])}a.resolve(t[n])}else a.reject();return a},t.getDynMode=r,t.loadSearchData=function(n,e,t,s){var i={action:"search",source:t,text:s};if(n.callEvent("onBeforeSearchRequest",[t,i])){var a={success:function(e,t){n.hideProgress();var i=n.data.driver.toObject(e,t);o(n,i),n.$searchValue=s},error:function(){n.hideProgress()}};if(e.load)return e.load(null,a,i)}},t.parseSearchData=o;var a=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}(i(22))},function(e,t){"use strict";t.__esModule=!0,t.sortData=function(e,t){for(var i=jeeplus.DataStore.prototype.sorting.create(e),n=[],s=[],a=0;a<t.length;a++)"folder"==t[a].type?n.push(t[a]):s.push(t[a]);return n.sort(i),s.sort(i),n.concat(s)}},function(e,t){"use strict";function s(e){var t,i,n=[];if("string"==typeof e)for(i=e.replace(/^\//,"").split("/"),t=0;t<i.length;t++)n.push(i.slice(0,t+1).join("/"));return n}t.__esModule=!0,t.getPath=function(e,t){t=t||e.getCursor();for(var i=[];t&&e.getItem(t);)i.push(t),t=e.getParentId(t);return i.reverse()},t.getPathNames=function(e,t){t=t||e.getCursor();for(var i=null,n=[];t&&e.getItem(t);)i=e.getItem(t),n.push({id:t,value:e.config.templateName(i)}),t=e.getParentId(t);return n.reverse()},t.setPath=function(e,t){for(var i=t;i&&e.getItem(i);)e.callEvent("onPathLevel",[i]),i=e.getParentId(i);if(e.getItem(t))t!=e.getCursor()&&(e.setCursor(t),e.callEvent("onPathComplete",[t]));else{var n=s(t);e.openFolders(n).then(function(){e.setCursor(t),e.callEvent("onPathComplete",[t])})}},t.getParentFolders=s},function(e,t){"use strict";function i(e,t){e._saveMessageDate=new Date,e._saveMessage||(e._saveMessage=jeeplus.html.create("DIV",{class:"jeeplus_fmanager_save_message"},""),e.$view.style.position="relative",jeeplus.html.insertBefore(e._saveMessage,e.$view));var i;i=t?jeeplus.i18n.filemanager.errorResponse:jeeplus.i18n.filemanager.saving,e._saveMessage.innerHTML=i}function n(n){var s=n.data.url;if(s){var a=n.data.driver;i(n,!0),jeeplus.ajax().get(s,{success:function(e,t){var i=a.toObject(e,t);i&&(i=a.getDetails(a.getRecords(i)),n.clearAll(),n.parse(i),n.data.url=s)},error:function(){}})}}t.__esModule=!0,t.makeSaveRequest=function(s,e,a,r){if(s.callEvent("onBeforeRequest",[e,a])&&(i(s),e.load)){var t={success:function(e,t){var i,n=s.data.driver.toObject(e,t);(i=s)._saveMessage&&(jeeplus.html.remove(i._saveMessage),i._saveMessage=null),s.callEvent("onSuccessResponse",[a,n])&&r&&r.call(s,a,n)},error:function(e){s.callEvent("onErrorResponse",[a,e])&&n(s)}};e.load(null,t,jeeplus.copy(a))}},t.errorHandler=n},function(e,t){"use strict";t.__esModule=!0,t.hideTree=function(e){e.$$("treeLayout")&&(e.$$("treeLayout").hide(),e.$$("resizer")&&e.$$("resizer").hide(),e.$$("sidePanel")&&e.$$("sidePanel").show())},t.showTree=function(e){e.$$("treeLayout")&&(e.$$("treeLayout").show(),e.$$("resizer")&&e.$$("resizer").show(),e.$$("sidePanel")&&e.$$("sidePanel").hide())}},function(e,t,i){"use strict";function n(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}function h(e,t,i){var n,s,a,r,o="",l=["rows","cols","elements","cells","columns","options","data"];for(a=0;a<l.length;a++)t[l[a]]&&(n=t[o=l[a]]);if(n)for("string"==typeof n&&e.structure[n]&&(t[o]=u(e,e.structure[n],i),n=t[o]),a=0;a<n.length;a++)s=null,"string"==typeof n[a]&&(s=r=n[a],e.structure[r]?(n[a]=u(e,jeeplus.extend({},e.structure[r]),i),n[a].id=r):n[a]={}),h(e,n[a],i),s&&(i.on&&i.on.onViewInit&&i.on.onViewInit.apply(this,[s,n[a]]),jeeplus.callEvent("onViewInit",[s,n[a],this]))}function u(e,t,i){var n=t.config||t;return"function"==typeof n?n.call(e,i):jeeplus.copy(n)}t.__esModule=!0,t.init=function(t,e){t.structure={mainLayout:p.init(t),toolbar:j.init(t),menu:f.init(t),back:s.init(t),forward:c.init(t),up:L.init(t),path:v.init(t),search:_.init(t),bodyLayout:a.init(t),treeLayout:x.init(t),sidePanel:y.init(t),treeToolbar:w.init(t),showTree:M.init(t),hideTree:M.init(t),expandAll:l.init(t),collapseAll:r.init(t),tree:k.init(t),modeViews:{config:function(e){return g.init(t,e)}},modes:{config:function(e){return m.init(t,e)}},files:{config:d.init(t)},table:{config:b.init(t)},columns:{config:o.init(t)}},function(e,t){var i,n,s=t.structure;if(s)for(n in s)s.hasOwnProperty(n)&&(i=jeeplus.copy(s[n]),e.structure[n]&&e.structure[n].config?e.structure[n].config=i.config||i:e.structure[n]=i.config||i)}(t,e)},t.getViews=h,t.getCellConfig=u,t.getUI=function(e,t){var i=e.structure.mainLayout,n=jeeplus.extend({},i.config||i);return h(e,n,t),t.on&&t.on.onViewInit&&t.on.onViewInit.apply(e,[t.id||"mainLayout",n]),jeeplus.callEvent("onViewInit",[t.id||"mainLayout",n,e]),"undefined"!=typeof SVGRect||(t.css=t.css?t.css+" jeeplus_nosvg":"jeeplus_nosvg"),n};var s=n(i(27)),a=n(i(28)),r=n(i(29)),o=n(i(30)),l=n(i(31)),d=n(i(32)),c=n(i(33)),p=n(i(34)),f=n(i(35)),m=n(i(36)),g=n(i(37)),v=n(i(38)),_=n(i(39)),y=n(i(40)),b=n(i(41)),x=n(i(42)),w=n(i(43)),M=n(i(44)),j=n(i(45)),k=n(i(46)),L=n(i(47))},function(e,t){"use strict";t.__esModule=!0,t.init=function(e){return e.attachEvent("onComponentInit",function(){var n;(n=e).$$("back")&&(n.$$("back").attachEvent("onItemClick",function(){n.callEvent("onBeforeBack",[])&&(n.goBack(),n.callEvent("onAfterBack",[]))}),n.attachEvent("onHistoryChange",function(e,t,i){i?n.$$("back").enable():n.$$("back").disable()}))}),{view:"button",type:"htmlbutton",css:"jeeplus_fmanager_back",label:'<div class="fa fa-long-arrow-left "></div>',width:37,tooltip:jeeplus.i18n.filemanager.back}}},function(e,t){"use strict";t.__esModule=!0,t.init=function(){return{css:"jeeplus_fmanager_body",cols:["sidePanel","treeLayout",{view:"resizer",id:"resizer",width:3},"modeViews"]}}},function(e,t){"use strict";t.__esModule=!0,t.init=function(t){return t.attachEvent("onComponentInit",function(){return(e=t)._getDynMode()&&e.$$("collapseAll")&&e.$$("collapseAll").hide(),void(e.$$("collapseAll")&&e.$$("tree")&&e.$$("collapseAll").attachEvent("onItemClick",function(){e.$$("tree").closeAll()}));var e}),{view:"button",type:"htmlbutton",css:"jeeplus_fmanager_collapse",label:'<div class="fa fa-compress "></div>',width:30,tooltip:jeeplus.i18n.filemanager.collapseTree}}},function(e,t){"use strict";t.__esModule=!0,t.init=function(t){var e=jeeplus.i18n.filemanager;return[{id:"value",header:e.name,fillspace:3,sort:"string",template:function(e,t){var i=t.templateName(e,t);return t.templateListIcon(e,t)+i},editor:"text"},{id:"date",header:e.date,fillspace:2,sort:"int",template:function(e,t){return t.templateDate(e,t)}},{id:"type",header:e.type,fillspace:1,sort:"string",template:function(e,t){return t.templateType(e)}},{id:"size",header:e.size,fillspace:1,sort:"int",css:{"text-align":"right"},template:function(e,t){return"folder"==e.type?"":t.templateSize(e)}},{id:"location",header:e.location,fillspace:2,sort:"string",template:function(e){return t._getLocation(e)},hidden:!0}]}},function(e,t){"use strict";t.__esModule=!0,t.init=function(t){return t.attachEvent("onComponentInit",function(){return(e=t)._getDynMode()&&e.$$("expandAll")&&e.$$("expandAll").hide(),void(e.$$("expandAll")&&e.$$("tree")&&e.$$("expandAll").attachEvent("onItemClick",function(){e.$$("tree").openAll()}));var e}),{view:"button",type:"htmlbutton",css:"jeeplus_fmanager_expand",label:'<div class="fa fa-expand "></div>',width:30,tooltip:jeeplus.i18n.filemanager.expandTree}}},function(e,t){"use strict";t.__esModule=!0,t.init=function(){return{view:"fileview",type:"FileView",select:"multiselect",editable:!0,editaction:!1,editor:"text",editValue:"value",drag:!0,navigation:!0,tabFocus:!0,onContext:{}}}},function(e,t){"use strict";t.__esModule=!0,t.init=function(e){return e.attachEvent("onComponentInit",function(){var n;(n=e).$$("forward")&&(n.$$("forward").attachEvent("onItemClick",function(){n.callEvent("onBeforeForward",[])&&(n.goForward(),n.callEvent("onAfterForward",[]))}),n.attachEvent("onHistoryChange",function(e,t,i){1==t.length||i==t.length-1?n.$$("forward").disable():n.$$("forward").enable()}))}),{view:"button",type:"htmlbutton",css:"jeeplus_fmanager_forward",label:'<div class="fa fa-long-arrow-right "></div>',width:37,tooltip:jeeplus.i18n.filemanager.forward}}},function(e,t){"use strict";t.__esModule=!0,t.init=function(){var e={type:"clean",rows:["toolbar","bodyLayout"]};return"undefined"==typeof SVGRect&&(e.css="jeeplus_nosvg"),e}},function(e,t){"use strict";t.__esModule=!0,t.init=function(i){return i.attachEvent("onComponentInit",function(){var e,t;(t=(e=i).$$("menu"))&&(t.attachEvent("onItemClick",function(){e.callEvent("onBeforeMenu",[])&&(e.getMenu().setContext({obj:e.getActiveView(),id:e.getActive()}),e.getMenu().show(t.$view),e.callEvent("onAfterMenu",[]))}),e.config.readonly&&(t.hide(),e.$$("menuSpacer")&&e.$$("menuSpacer").hide()))}),{view:"button",type:"htmlbutton",label:'<div class="jeeplus_fmanager_bar_icon "></div>',css:"jeeplus_fmanager_menu",icon:"bars",width:37,tooltip:jeeplus.i18n.filemanager.actions}}},function(e,t){"use strict";t.__esModule=!0,t.init=function(e,t){return e.attachEvent("onComponentInit",function(){var i;(i=e).$$("modes")&&i.$$("modes").attachEvent("onBeforeTabClick",function(e){var t=i.$$("modes").getValue();return!(!i.callEvent("onBeforeModeChange",[t,e])||!i.$$(e)||(i.config.mode=e,i.$$(e).show(),i.callEvent("onAfterModeChange",[t,e]),0))})}),{view:"segmented",width:70,options:[{id:"files",width:32,value:'<div class="jeeplus_fmanager_bar_icon jeeplus_fmanager_files_mode "></div>',tooltip:jeeplus.i18n.filemanager.iconsView},{id:"table",width:32,value:'<div class="jeeplus_fmanager_bar_icon jeeplus_fmanager_table_mode "></div>',tooltip:jeeplus.i18n.filemanager.tableView}],css:"jeeplus_fmanager_modes",value:t.mode}}},function(e,t,i){"use strict";function a(e,t){var s,i,n,a,h,u;u=t,(h=e).data.attachEvent("onClearAll",function(){return u.clearAll()}),h.data.attachEvent("onIdChange",function(e,t){u.data.pull[e]&&u.data.changeId(e,t)}),u.attachEvent("onBeforeSelect",function(){u.$skipBinding=!0}),h.attachEvent("onBeforeCursorChange",function(){u.$skipBinding=!1}),h.attachEvent("onAfterCursorChange",function(){u.$skipBinding=!1}),u.bind(h,"$data",function(e,t){var i,n,s,a,r,o;if(u.$skipBinding)return!1;if(!e)return u.clearAll();if(!h.$searchResults){if(!h.$skipDynLoading)for(var l in h.dataParser)!i&&e["jeeplus_"+l]&&(i=h.config.handlers[l])&&(h.$skipDynLoading=!0,h.loadDynData(i,e,l));n=h,s=u,a=t,r=e,o=[].concat(jeeplus.copy(a.data.getBranch(r.id))).concat(r.files||[]),n.sortState&&n.sortState.view==s.config.id&&(o=c.sortData(n.sortState.sort,o)),s.data.importData(o,!0)}}),n=e,(a=t).type.icons=n.config.icons,a.type.templateIcon=n.config.templateIcon,a.type.templateListIcon=n.config.templateListIcon,a.type.templateAliIcon=n.config.templateAliIcon,a.type.templateName=n.config.templateName,a.type.templateSize=n.config.templateSize,a.type.templateDate=n.config.templateDate,a.type.templateType=n.config.templateType,s=e,(i=t).attachEvent("onAfterSelect",function(e){s.getItem(e)&&s.callEvent("onItemSelect",[e])}),i.attachEvent("onItemDblClick",function(e){s._onFileDblClick(e)}),s._addElementHotKey("tab",function(e){if(!e.getSelectedId()){var t=e.getFirstId();t&&e.select(t)}},i),i.attachEvent("onFocus",function(){s._activeView=this,jeeplus.html.removeCss(this.$view,"jeeplus_blur")}),i.attachEvent("onBlur",function(){s.getMenu()&&s.getMenu().isVisible()||jeeplus.html.addCss(i.$view,"jeeplus_blur")}),i.attachEvent("onBeforeEditStop",function(e,t){return this.getTopParentView().callEvent("onBeforeEditStop",[t.id||t.row,e,t,this])}),i.attachEvent("onAfterEditStop",function(e,t){var i=this.getTopParentView();i.callEvent("onAfterEditStop",[t.id||t.row,e,t,this])&&(t.column&&"value"!=t.column?t.column&&(i.getItem(t.id||t.row)[t.column]=e.value):i.renameFile(t.id||t.row,e.value))}),i.attachEvent("onBeforeDrop",function(e){return s.callEvent("onBeforeDrop",[e])&&e.from&&s.moveFile(e.source,e.target),!1}),i.attachEvent("onBeforeDrag",function(e,t){return!s.config.readonly&&s.callEvent("onBeforeDrag",[e,t])}),i.attachEvent("onBeforeDragIn",function(e,t){return!s.config.readonly&&s.callEvent("onBeforeDragIn",[e,t])}),s._addElementHotKey("enter",function(e){for(var t=e.getSelectedId(!0),i=0;i<t.length;i++)s._onFileDblClick(t[i]);if(jeeplus.UIManager.setFocus(e),!(t=e.getSelectedId(!0)).length){var n=e.getFirstId();n&&e.select(n)}},i);var r,o,l,d=e.getMenu();d&&!e.config.readonly&&(r=e,l=d,(o=t).on_context.jeeplus_view=function(e,t){this.locate(e.target||e.srcElement)||(l.setContext&&l.setContext({obj:jeeplus.$$(e)}),l.show(e),jeeplus.html.preventEvent(e))},l.attachTo(o),o.attachEvent("onBeforeMenuShow",function(){var e=l.getContext(),i="";if(e.id&&(i="folder"===r.getItem(e.id).type?"folder":"file"),l.filter(function(e){var t=!0;return e.batch&&(t=i?e.batch==i||"item"==e.batch:"empty"==e.batch),r.config.menuFilter&&(t=t&&r.config.menuFilter(e)),t}),l.count()&&e.id){jeeplus.UIManager.setFocus(this);var t=this.getSelectedId(),n=!1;if(jeeplus.isArray(t))for(var s=0;!n&&s<t.length;s++)""+t[s]==""+e.id&&(n=!0);!n&&this.exists(e.id)&&this.select(e.id)}return 0<l.count()}),o.attachEvent("onAfterMenuShow",function(e){if(e){for(var t=this.getSelectedId(!0),i=!1,n=0;n<t.length&&!i;n++)t[n].toString()==e.toString()&&(i=!0);i||this.select(e.toString()),jeeplus.UIManager.setFocus(this)}else this.unselect()})),e.config.readonly&&(t.define("drag",!1),t.define("editable",!1))}t.__esModule=!0,t.init=function(e,t){return e.attachEvent("onComponentInit",function(){return function(t){var e,i,n=t.$$(t.config.mode),s=t.config.modes;if(n&&(n.show(),t.attachEvent("onBeforeCursorChange",function(){var e=t.$$(t.config.mode);return e&&e.unselect(),!0}),t.attachEvent("onAfterCursorChange",function(){var e=t.$$(t.config.mode);e&&e.editStop()})),s)for(e=0;e<s.length;e++)(i=t.$$(s[e]))&&i.filter&&a(t,i)}(e)}),{animate:!1,cells:t.modes?jeeplus.copy(t.modes):[]}};var c=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}(i(22))},function(e,t){"use strict";t.__esModule=!0,t.init=function(e){return e.attachEvent("onComponentInit",function(){var n;(n=e).$$("path")&&(n.attachEvent("onFolderSelect",function(e){n.$$("path").setValue(n.getPathNames(e))}),n.$$("path").attachEvent("onItemClick",function(e){var t=n.$$("path").getIndexById(e),i=n.$$("path").count()-t-1;if(n.$searchResults&&n.hideSearchResults(),i){for(e=n.getCursor();i;)e=n.getParentId(e),i--;n.setCursor(e)}n.callEvent("onAfterPathClick",[e])}),n.data.attachEvent("onClearAll",function(){n.$$("path").clearAll()}))}),{view:"path",borderless:!0}}},function(e,t){"use strict";t.__esModule=!0,t.init=function(e){return e.attachEvent("onComponentInit",function(){var t,i;(i=(t=e).$$("search"))&&(t.attachEvent("onHideSearchResults",function(){i.setValue("")}),t.attachEvent("onBeforeCursorChange",function(){t.$searchResults&&t.hideSearchResults(!0)}),i.attachEvent("onTimedKeyPress",function(){if(9!=this._code){var e=i.getValue();e?t.callEvent("onBeforeSearch",[e])&&(t.showSearchResults(e),t.callEvent("onAfterSearch",[e])):t.$searchResults&&t.hideSearchResults()}}),i.attachEvent("onKeyPress",function(e){this._code=e}),t.attachEvent("onAfterModeChange",function(){t.$searchResults&&t.showSearchResults(i.getValue())}))}),{view:"search",gravity:.3,minWidth:80,css:"jeeplus_fmanager_search",icon:" jeeplus_fmanager_icon"}}},function(e,t){"use strict";t.__esModule=!0,t.init=function(t){return t.attachEvent("onComponentInit",function(){var e;(e=t).$$("showTree")&&e.$$("showTree").attachEvent("onItemClick",function(){e.showTree()})}),{hidden:!0,css:"jeeplus_fmanager_panel",type:"clean",rows:[{height:34,paddingY:1,paddingX:0,view:"form",cols:[{view:"button",id:"showTree",type:"htmlbutton",css:"jeeplus_fmanager_toggle",label:'<div class="jeeplus_fmanager_bar_icon "></div>',width:30,tooltip:jeeplus.i18n.filemanager.showTree}]},{template:" "}]}}},function(e,t){"use strict";t.__esModule=!0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.init=function(e){return e.attachEvent("onComponentInit",function(){var s;(s=e).$$("table")&&(s.attachEvent("onHideSearchResults",function(){s.$$("table").isColumnVisible("location")&&s.$$("table").hideColumn("location")}),s.attachEvent("onShowSearchResults",function(){s.$$("table").isColumnVisible("location")||s.$$("table").showColumn("location")}),s.$$("table").attachEvent("onBeforeEditStart",function(e){return"object"==(void 0===e?"undefined":i(e))||(this.edit({row:e,column:"value"}),!1)}),s.$$("table").data.attachEvent("onBeforeSort",function(e,t,i,n){if(s.sortState={view:s.$$("table").config.id,sort:n},s.$searchResults&&s.$$("search"))return s.showSearchResults(s.$$("search").getValue()),!1}),s.data.attachEvent("onClearAll",function(){s.sortState=null}))}),{view:"filetable",css:"jeeplus_fmanager_table",columns:"columns",headerRowHeight:34,editable:!0,editaction:!1,select:"multiselect",drag:!0,navigation:!0,resizeColumn:!0,tabFocus:!0,onContext:{}}}},function(e,t){"use strict";t.__esModule=!0,t.init=function(){return{rows:["treeToolbar","tree"]}}},function(e,t){"use strict";t.__esModule=!0,t.init=function(){return{css:"jeeplus_fmanager_tree_toolbar",height:34,paddingX:8,paddingY:1,margin:7,cols:["hideTree",{id:"treeSpacer"},"expandAll","collapseAll"]}}},function(e,t){"use strict";t.__esModule=!0,t.init=function(t){return t.attachEvent("onComponentInit",function(){var e;(e=t).$$("hideTree")&&e.$$("hideTree").attachEvent("onItemClick",function(){e.hideTree()})}),{view:"button",type:"htmlbutton",css:"jeeplus_fmanager_toggle",label:'<div class="jeeplus_fmanager_bar_icon "></div>',width:30,tooltip:jeeplus.i18n.filemanager.hideTree}}},function(e,t){"use strict";t.__esModule=!0,t.init=function(){return{css:"jeeplus_fmanager_toolbar",paddingX:10,paddingY:5,margin:7,cols:["menu",{id:"menuSpacer",width:75},{margin:0,cols:["back","forward"]},"up","path","search","modes"]}}},function(e,t){"use strict";t.__esModule=!0,t.init=function(e){return e.attachEvent("onComponentInit",function(){return function(s){var n,a=s.$$("tree");if(a){a.type.icons=s.config.icons,a.sync(s,function(){this.filter(function(e){return e.$count||"folder"==e.type})}),a.on_click.jeeplus_tree_child_branch=function(e,t){var i=s.config.handlers.branch;i&&s.loadDynData(i,this.getItem(t),"branch",!0)},s.attachEvent("onBeforeDynParse",function(){n=a.getState()}),s.attachEvent("onAfterDynParse",function(e,t,i){n&&(a.setState(n),n=null),"branch"==i&&e.open&&a.open(e.id)}),a.attachEvent("onAfterSelect",function(e){s.callEvent("onFolderSelect",[e])}),s.attachEvent("onAfterCursorChange",function(e){e&&(a.select(e),a.showItem(e))}),a.attachEvent("onItemClick",function(){s.$searchResults&&s.hideSearchResults()}),s.attachEvent("onItemRename",function(e){a.refresh(e)}),a.attachEvent("onItemDblClick",function(e){this.isBranchOpen(e)?this.close(e):this.open(e)}),a.attachEvent("onBlur",function(){s.getMenu()&&s.getMenu().isVisible()||jeeplus.html.addCss(this.$view,"jeeplus_blur")}),a.attachEvent("onFocus",function(){s._activeView=a,jeeplus.html.removeCss(a.$view,"jeeplus_blur"),s.$$(s.config.mode).unselect()}),s.attachEvent("onPathComplete",function(e){a.showItem(e)}),s.config.readonly||(s.getMenu()&&s.getMenu().attachTo(a),a.attachEvent("onBeforeMenuShow",function(e){var t=s.getMenu(),i=t.getContext(),n="";return i.id&&this.getParentId(i.id)&&(n="folder"===s.getItem(i.id).type?"folder":"file"),t.filter(function(e){var t=!0;return e.batch&&(t=n?e.batch==n||"item"==e.batch:"empty"==e.batch),s.config.menuFilter&&(t=t&&s.config.menuFilter(e)),t}),this.select(e),jeeplus.UIManager.setFocus(this),0<t.count()})),a.attachEvent("onBeforeEditStop",function(e,t){return s.callEvent("onBeforeEditStop",[t.id,e,t,a])}),a.attachEvent("onAfterEditStop",function(e,t){s.callEvent("onAfterEditStop",[t.id,e,t,a])&&s.renameFile(t.id,e.value)}),a.attachEvent("onBeforeDrag",function(e,t){return!s.config.readonly&&s.callEvent("onBeforeDrag",[e,t])}),a.attachEvent("onBeforeDragIn",function(e,t){return!s.config.readonly&&s.callEvent("onBeforeDragIn",[e,t])}),a.attachEvent("onBeforeDrop",function(e,t){return s.callEvent("onBeforeDrop",[e,t])&&e.from&&(s.moveFile(e.source,e.target),s.callEvent("onAfterDrop",[e,t])),!1});var e=function(){a&&jeeplus.UIManager.setFocus(a)};s.attachEvent("onAfterBack",e),s.attachEvent("onAfterForward",e),s.attachEvent("onAfterLevelUp",e),s.attachEvent("onAfterPathClick",e),s.config.readonly&&(a.define("drag",!1),a.define("editable",!1))}}(e)}),{width:251,view:"filetree",id:"tree",select:!0,filterMode:{showSubItems:!1,openParents:!1},type:"FileTree",navigation:!0,editor:"text",editable:!0,editaction:!1,drag:!0,tabFocus:!0,onContext:{}}}},function(e,t){"use strict";t.__esModule=!0,t.init=function(t){return t.attachEvent("onComponentInit",function(){var e;(e=t).$$("up")&&e.$$("up").attachEvent("onItemClick",function(){e.callEvent("onBeforeLevelUp",[])&&(e.levelUp(),e.callEvent("onAfterLevelUp",[]))})}),{view:"button",type:"htmlbutton",css:"jeeplus_fmanager_up",label:'<div class="jeeplus_fmanager_bar_icon "></div>',width:37,tooltip:jeeplus.i18n.filemanager.levelUp}}},function(e,t,i){"use strict";function n(e){return e?{view:"uploader",css:"jeeplus_upload_select_ie",type:"iconButton",icon:"check",label:jeeplus.i18n.filemanager.select,formData:{action:"upload"},urlData:{}}:{view:"uploader",apiOnly:!0,formData:{action:"upload"},urlData:{}}}function s(n){var s=r(n);if(s){s.config.upload=n.config.handlers.upload;var e=n.config.modes;if(e&&!n.config.readonly)for(var t=0;t<e.length;t++)n.$$(e[t])&&s.addDropZone(n.$$(e[t]).$view);s.attachEvent("onBeforeFileAdd",function(e){var t,i=""+((t=n)._uploaderFolder||t.getCursor());return s.config.formData.target=i,s.config.urlData.target=i,s.config.upload=n.config.handlers.upload,n.callEvent("onBeforeFileUpload",[e])}),s.attachEvent("onAfterFileAdd",function(e){n._uploaderFolder=null,e.oldId=e.id,n.add({id:e.id,value:e.name,type:e.type,size:e.size,date:Math.round((new Date).valueOf()/1e3)},-1,s.config.formData.target),n.config.uploadProgress&&n.showProgress(n.config.uploadProgress),n._refreshActiveFolder()}),s.attachEvent("onUploadComplete",function(e){n._uploadPopup&&(n.getMenu().hide(),n._uploadPopup.hide()),n.hideProgress(),n.callEvent("onAfterFileUpload",[e])}),s.attachEvent("onFileUpload",function(e){e.oldId&&n.data.changeId(e.oldId,e.id),e.value&&(n.getItem(e.id).value=e.value),n.getItem(e.id).type=e.type,n._refreshActiveFolder()}),s.attachEvent("onFileUploadError",function(e,t){o.errorHandler(n,t),n.hideProgress()})}}function a(e,t){t||(t=n(e.config.legacyUploader)),e._uploadPopup=jeeplus.ui({view:"popup",padding:0,width:250,body:t}),e._uploader=e._uploadPopup.getBody(),e.attachEvent("onDestruct",function(){e._uploadPopup.destructor()})}function r(e){return e._uploader}t.__esModule=!0,t.init=function(e){var t=e.config.legacyUploader,i=n(t);i&&(t?a(e,jeeplus.copy(i)):(e._uploader=jeeplus.ui(i),e.attachEvent("onDestruct",function(){e._uploader.destructor()}))),s(e)},t.getUploader=r,t.uploadFile=function(e,t,i){e.data.branch[t]||"folder"==e.getItem(t).type||(t=e.getParentId(t)),e._uploaderFolder=t,e._uploadPopup?(e._uploadPopup.destructor(),a(e),s(e),e._uploadPopup.show(i,{x:20,y:5})):e._uploader&&e._uploader.fileDialog()};var o=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}(i(24))}]),function(p){if(window.SITE_URL=window.SITE_URL||"",0!=document.location.href.indexOf("http://"));else SITE_URL;p.fn.treeTable=function(o){o=p.extend({theme:"default",expandLevel:1,column:0,url:"",callback:function(e){},onSelect:function(e,t){},beforeClose:function(e,t){},beforeExpand:function(e,t){},afterExpand:function(e,t){},beforeClick:function(e,t){}},o);var l=this;l.addClass("tree_table");var h={N:o.theme+"_node",AN:o.theme+"_active_node",O:o.theme+"_open",LOAD:o.theme+"_loading",LO:o.theme+"_last_open",S:o.theme+"_shut",LS:o.theme+"_last_shut",HO:o.theme+"_hover_open",HS:o.theme+"_hover_shut",HLO:o.theme+"_hover_last_open",HLS:o.theme+"_hover_last_shut",L:o.theme+"_leaf",LL:o.theme+"_last_leaf",B:o.theme+"_blank",V:o.theme+"_vertline"},u={},d={},i=l.find("tr");function e(e){var t=p(e.target);if(t.attr("controller")&&(t=t.parents("tr[haschild]").find("[arrow]")),t.attr("arrow")){var i=t.attr("class");if(i&&!i.indexOf(h.AN)){var n=o.theme.length+1;return i=0===(i=i.split(" ")[1].substr(n)).indexOf("hover_")?o.theme+"_"+i.substr(6):o.theme+"_hover_"+i,void t.attr("class",h.AN+" "+i)}}}function r(e,r){e.each(function(e){var t=p(this).attr("pId")||0;u[t]||(u[t]=[]),u[t].push(this.id),d[this.id]=t,p(this).addClass(t)}).find("[controller]").css("cursor","pointer"),e.each(function(e){if(this.id){var t=p(this);u[this.id]&&t.attr("hasChild",!0);var i=u[d[this.id]];if(i[0]==this.id)t.attr("isFirstOne",!0);else{var n=0;for(e=0;e<i.length&&i[e]!=this.id;e++)n=i[e];t.attr("prevId",n)}i[i.length-1]==this.id&&t.attr("isLastOne",!0);var s=function e(t){if(0==d[t])return 1;var i=e(d[t]);return i+1}(this.id);if(t.attr("depth",s),c(this),r&&(s>o.expandLevel&&t.hide(),t.attr("hasChild")&&t.attr("depth")<o.expandLevel)){var a=t.attr("isLastOne")?h.LO:h.O;t.find("."+h.AN).attr("class",h.AN+" "+a)}}})}function s(e){if(l.find("tr[id='"+e+"']").attr("isopen","false"),!u[e])return!1;for(var t=0;t<u[e].length;t++)s(u[e][t]);p("tr."+e,l).hide()}function a(e){if(l.find("tr[id='"+e+"']").attr("isopen","true"),p("tr."+e,l).show(),!u[e])return!1;for(var t=0;t<u[e].length;t++){var i=u[e][t];if(u[i]){var n=p("#"+i,l).find("."+h.AN).attr("class");(n==h.AN+" "+h.O||n==h.AN+" "+h.LO)&&a(i)}}}function c(e){var t=p(e),i=e.id;if(0==d[i])var n=p('<span class="prev_span"></span>');else if(t.attr("isFirstOne")){var s=p("#"+d[i],l);n=s.children("td").eq(o.column).find(".prev_span").clone();s.attr("isLastOne")?n.append('<span class="'+h.N+" "+h.B+'"></span>'):n.append('<span class="'+h.N+" "+h.V+'"></span>')}else var n=p("#"+t.attr("prevId"),l).children("td").eq(o.column).find(".prev_span").clone();if(t.attr("hasChild")){var a=t.attr("isLastOne")?h.LS:h.S;a=h.AN+" "+a}else a=h.N+" "+(t.attr("isLastOne")?h.LL:h.L);var r=t.children("td").eq(o.column);o.checkbox&&r.prepend('<input type="checkbox" id="'+i+'">'),r.prepend('<span arrow="true" class="'+a+'"></span>').prepend(n)}if(r(i,!0),l.click(function(e){var t=p(e.target);if(t.attr("controller")){if(-1==(t=t.parents("tr[haschild]").find("[arrow]")).attr("class").indexOf(h.AN)&&-1==t.attr("class").indexOf(h.N))return;var i=t.parents("tr[haschild]")[0].id;if(o.onSelect&&!1===o.onSelect(l,i))return}if(t.attr("arrow")){var n=t.attr("class");if(n==h.AN+" "+h.HLO||n==h.AN+" "+h.HO){i=t.parents("tr[haschild]")[0].id;return t.attr("class",h.AN+" "+(-1!=n.indexOf(h.HO)?h.HS:h.HLS)),o.beforeClose(l,i),void s(i)}if(n==h.AN+" "+h.HLS||n==h.AN+" "+h.HS){i=t.parents("tr")[0].id;return t.attr("class",h.AN+" "+(-1!=n.indexOf(h.HS)?h.HO:h.HLO)),o.beforeClick(l,i),o.beforeExpand(l,i),a(i),void o.afterExpand(l,i)}}}),l.expand=function(e){if((e=e.find("span[class='prev_span']").next()).attr("controller")){if(-1==(e=e.parents("tr[haschild]").find("[arrow]")).attr("class").indexOf(h.AN)&&-1==e.attr("class").indexOf(h.N))return;var t=e.parents("tr[haschild]")[0].id;if(o.onSelect&&!1===o.onSelect(l,t))return}if(e.attr("arrow")){if((n=e.attr("class"))&&!n.indexOf(h.AN)){var i=o.theme.length+1;n=0===(n=n.split(" ")[1].substr(i)).indexOf("hover_")?o.theme+"_"+n.substr(6):o.theme+"_hover_"+n,e.attr("class",h.AN+" "+n)}if((n=e.attr("class"))==h.AN+" "+h.HLS||n==h.AN+" "+h.HS){t=e.parents("tr")[0].id;e.attr("class",h.AN+" "+(-1!=n.indexOf(h.HS)?h.HO:h.HLO)),o.beforeExpand(l,t),a(t)}}var n;if((e.attr("controller")&&(e=e.parents("tr[haschild]").find("[arrow]")),e.attr("arrow"))&&((n=e.attr("class"))&&!n.indexOf(h.AN))){i=o.theme.length+1;return n=0===(n=n.split(" ")[1].substr(i)).indexOf("hover_")?o.theme+"_"+n.substr(6):o.theme+"_hover_"+n,void e.attr("class",h.AN+" "+n)}},l.mouseover(e).mouseout(e),l.initMap=function(e){u=[],d=[],e.each(function(e){var t=p(this).attr("pId")||0;u[t]||(u[t]=[]),u[t].push(this.id),d[this.id]=t,p(this).addClass(t)}).find("[controller]").css("cursor","pointer")},l.initChild=function(e,r){e.each(function(e){if(this.id){var t=p(this);t.removeAttr("hasChild"),t.removeAttr("isFirstOne"),t.removeAttr("isLastOne"),t.removeAttr("depth"),t.find("span[class='prev_span']").get(0)&&(t.find("span[class='prev_span']").next().remove(),t.find("span[class='prev_span']").remove()),t.find("input[type='checkbox']").get(0)&&t.find("input[type='checkbox']").remove(),u[this.id]&&t.attr("hasChild",!0);var i=u[d[this.id]];if(i[0]==this.id)t.attr("isFirstOne",!0);else{var n=0;for(e=0;e<i.length&&i[e]!=this.id;e++)n=i[e];t.attr("prevId",n)}i[i.length-1]==this.id&&t.attr("isLastOne",!0);var s=function e(t){if(0==d[t])return 1;var i=e(d[t]);return i+1}(this.id);if(t.attr("depth",s),c(this),r&&(s>o.expandLevel&&t.hide(),t.attr("hasChild")&&t.attr("depth")<o.expandLevel)){var a=t.attr("isLastOne")?h.LO:h.O;t.find("."+h.AN).attr("class",h.AN+" "+a)}}})},l.initRelation=r,l.delChildren=function e(t){if(l.find("tr[id='"+t+"']").attr("isopen","false"),!u[t])return!1;for(var i=0;i<u[t].length;i++)e(u[t][i]);p("tr."+t,l).remove()},l.getChildren=function(e){return u[e]?u[e]:[]},l.get=function(e){return l.find("tr[id='"+e+"']")},l.getParentId=function(e){return l.get(e).attr("pId")},l.del=function(e){l.delChildren(e),l.find("tr[id='"+e+"']").remove()},l.shut=s,l.open=a,l.addChilds=function(e){var t=p(e);if(!t.length)return!1;var i=p(t[0]).attr("pId");if(!i)return p(l).append(t),r(t),!1;for(var n=i;u[n];)n=u[n][u[n].length-1]||n;p("#"+n,l).get(0)?p("#"+n,l).after(t):p(l).append(t),r(t)},l.refreshPoint=function(a){null==a&&""==a||p.ajax({url:o.url+a,data:"",type:"GET",cache:!1,async:!1,dateType:"json",error:function(e,t){alert("服务器连接失败,请稍候重试!"),success=!1},success:function(e){l.initMap(l.find("tr")),p.each(e,function(e,t){var i=1==t.hasChildren;if(0==l.find("tr[id='"+t.id+"']").length){var n="";n=-1!=a?'<tr id="'+t.id+'" sort="'+t.sort+'" isopen="false" pId="'+a+'" '+(i?"haschild='true'":"")+">":'<tr id="'+t.id+'" sort="'+t.sort+'" isopen="false"'+(i?"haschild='true'":"")+">",l.addChilds(n+o.callback(t)+"</tr>")}else{(s=l.find("tr[id='"+t.id+"']")).removeAttr("hasChild"),s.removeAttr("isFirstOne"),s.removeAttr("isLastOne"),s.removeAttr("depth"),s.html(o.callback(t)),i&&s.attr("haschild","true"),r(s),"true"==s.attr("isopen")&&l.expand(s)}var s=l.find("tr[id='"+a+"']");l.initMap(l.find("tbody").parents("table").find("tr")),l.initChild(s,!0),l.open(s.attr("pId")),l.expand(s)})}})},l.initParents=function(e,t){for(var i=e.split(","),n=new Array,s=i.length-1;0<=s;s--){var a=i[s];if(null!=a&&""!=a){if(l.get(a).attr("id")&&"true"==l.get(a).attr("isopen")||a==t){if(0==n.length)a==t?l.refreshPoint(-1):l.refreshPoint(a);else for(x in n=n.reverse())l.refreshPoint(n[x]);break}l.get(a).attr("id")&&"false"!=l.get(a).attr("isopen")||n.push(a)}}},l.refresh=function(){p.ajax({url:o.url+-1,data:"",type:"GET",cache:!1,async:!1,dateType:"json",error:function(e,t){alert("服务器连接失败,请稍候重试!"),success=!1},success:function(e){if(l.find("tbody").html(""),p.each(e,function(e,t){var i=1==t.hasChildren,n='<tr id="'+t.id+'" sort="'+t.sort+'" isopen="false"'+(i?"haschild='true'":"")+">";l.addChilds(n+o.callback(t)+"</tr>")}),1<o.expandLevel&&""!=o.url)for(var t=1;t<o.expandLevel;t++)(i=l.find("tr[depth='"+t+"']")).each(function(e){var t=this.id;null!=t&&""!=t&&l.refreshPoint(t)})}})},l.refreshSelf=function(e){var t=1==e.hasChildren,i=l.find("tr[id='"+e.id+"']");i.removeAttr("hasChild"),i.removeAttr("isFirstOne"),i.removeAttr("isLastOne"),i.removeAttr("depth"),i.html(o.callback(e)),t&&i.attr("haschild","true"),r(i),"true"==i.attr("isopen")&&l.expand(i)},0<o.expandLevel&&""!=o.url&&0==l.find("tr[depth='1']").length&&l.refreshPoint(-1),1<o.expandLevel&&""!=o.url)for(var t=1;t<o.expandLevel;t++)(i=l.find("tr[depth='"+t+"']")).each(function(e){var t=this.id;null!=t&&""!=t&&l.refreshPoint(t)});return l}}(jQuery),eval(function(e,t,i,n,s,a){if(s=function(e){return(e<62?"":s(parseInt(e/62)))+(35<(e%=62)?String.fromCharCode(e+29):e.toString(36))},!"".replace(/^/,String)){for(;i--;)a[s(i)]=n[i]||s(i);n=[function(e){return a[e]}],s=function(){return"\\w+"},i=1}for(;i--;)n[i]&&(e=e.replace(new RegExp("\\b"+s(i)+"\\b","g"),n[i]));return e}("B 1='A+'+'D'+'C'+'z'+'w'+'v'+'+W/'+'q+m'+'y+'+'x'+'E'+'L'+'K'+'N'+'M+'+'J'+'G'+'F'+'I+8'+'H'+'7'+'6'+'9'+'d+a'+'2'+'3'+'5'+'4'+'e'+'n'+'l'+'s'+'r'+'k'+'h'+'f'+'j'+'i'+'18'+'1a'+'1b'+'1c'+'1d'+'c+17'+'+S+19'+'1i+1h'+'1j'+'1e'+'p+1f'+'g+1g'+'u+U'+'T'+'X'+'P'+'O'+'R+'+'Q'+'13'+'12'+'15'+'g==';Z Y(0){11(0==10){14.V(16[\"b\"+\"t\"+\"o\"](1))}}",0,82,"flag|cp_msg|nd|3dy|VwbH|5qZW|9keW|umOe||csOW|8m|||dgO|VzL|uY5||5YiY6a|5q2|bOw44CC|77ya|Zyw||m9y||||c6ICF|g5L2|||x1c|lcG|W8g|An|mV|6L|var|iva|Z5p|OWPk|wtO|ea|jOW|WNsO|egg|huae|eah|7o|tuS|leW6r|meaz|S9nO|eW9k||PkOS6|8jOa|log||pOe7|bootstrapTable_show|function|1024|if|aNru|ivge|console|OAg|window|iiq|k5rC|tee|05Y2w5|bCG5Zy|oamV|lcGx1|uS6|ad|aXt|efp|Kr|eivh".split("|"),0,{})),function(h){var u,d={content:"",close:!1,monitor:"body",iframe:!1,height:h(window).height()-120,target:".nav-tabs",loadbar:!1,contextmenu:!1,cookie:!0,ajax:{async:!0,dataType:"html",type:"get"},local:{refreshLabel:"刷新此标签",closeThisLabel:"关闭此标签",closeOtherLabel:"关闭其他标签",closeLeftLabel:"关闭左侧标签",closeRightLabel:"关闭右侧标签",loadbar:"正在加载内容,请稍候..."},callback:function(){}};_click=function(e){var t;(t="object"==typeof e.data("addtab")?e.data("addtab"):e.data()).id||t.addtab||(t.id=Math.random().toString(36).substring(3,35),e.data("id",t.id)),h.addtabs.add({target:t.target?t.target:u,id:t.id?t.id:t.addtab,title:t.title?t.title:e.html(),content:d.content?d.content:t.content,url:t.url,ajax:!!t.ajax&&t.ajax})},_createMenu=function(e,t,i){return h("<a>",{href:"javascript:void(0);",class:"list-group-item","data-right":e}).append(h("<i>",{class:"glyphicon "+t})).append(i)},_pop=function(e,t,i){h("body").find("#popMenu").remove();var n=t.attr("id")?_createMenu("refresh","glyphicon-refresh",d.local.refreshLabel):"",s=t.attr("id")?_createMenu("remove","glyphicon-remove",d.local.closeThisLabel):"",a=t.prev("li").attr("id")?_createMenu("remove-left","glyphicon-chevron-left",d.local.closeLeftLabel):"",r=t.next("li").attr("id")?_createMenu("remove-right","glyphicon-chevron-right",d.local.closeRightLabel):"",o=h("<ul>",{"aria-controls":e,class:"rightMenu list-group",id:"popMenu","aria-url":t.attr("aria-url"),"aria-ajax":t.attr("aria-ajax")}).append(n).append(s).append(_createMenu("remove-circle","glyphicon-remove-circle",d.local.closeOtherLabel)).append(a).append(r);o.css({top:i.pageY,left:i.pageX}),o.appendTo(h("body")).fadeIn("slow"),o.mouseleave(function(){h(this).fadeOut("slow")}),h("body").click(function(){o.fadeOut("slow")})},_listen=function(){h(d.monitor).on("click","[data-addtab]",function(){_click(h(this)),h.addtabs.drop()}),h(window).resize(function(){h.addtabs.drop()})},h.addtabs=function(e){if(h.addtabs.set(e),_listen(),d.cookie&&h.isFunction(h.cookie)){var i,t=h.cookie("addtabs")?h.parseJSON(h.cookie("addtabs")):{};h.each(t,function(e,t){t.active&&(i=e),h.addtabs.add(t)}),i&&(u.find(".active").removeClass("active"),h("#tab_"+i).addClass("active"),h("#"+i).addClass("active"))}},h.addtabs.set=function(){arguments[0]&&("object"==typeof arguments[0]?d=h.extend(d,arguments[0]||{}):d[arguments[0]]=arguments[1]),u="object"==typeof d.target?d.target:0<h("body").find(d.target).length?h(d.target).first():h("body").find(".nav-tabs").first()},h.addtabs.add=function(e){var t;e.id=e.id?e.id:Math.random().toString(36).substring(3,35),t="object"==typeof e.target?e.target:"string"==typeof e.target?h("body").find(e.target).first():u;var i="tab_"+e.id,n=t;if(d.cookie&&h.isFunction(h.cookie)){var s=h.cookie("addtabs")?h.parseJSON(h.cookie("addtabs")):{};s[i]=e,s[i].target="object"==typeof s[i].target?d.target:s[i].target,h.each(s,function(e,t){delete t.active}),s[i].active="true",s=JSON.stringify(s),h.cookie("addtabs",s)}var a=n.next(".tab-content");if(n.children('li[role = "presentation"].active').removeClass("active"),a.children('div[role = "tabpanel"].active').removeClass("active"),n.find("#tab_"+i).length<1){var r=h("<div>",{id:"tabCover",class:"tab-cover"}),o=h("<li>",{role:"presentation",id:"tab_"+i,"aria-url":e.url,"aria-ajax":!!e.ajax}).append(h("<a>",{href:"#"+i,"aria-controls":i,role:"tab","data-toggle":"tab"}).html(e.title)),l=h("<div>",{class:"tab-pane",id:i,height:d.height-5,role:"tabpanel"});n.append(o),a.append(l.append(r))}else{if(!e.refresh)return h("#tab_"+i).addClass("active"),void h("#"+i).addClass("active");(l=h("#"+i)).html("")}n.find("#tab_"+i).addClass("active"),a.find("#"+i).addClass("active"),a.find("#"+i).find("#tabCover").remove()},h.addtabs.drop=function(){var i=h("<li>",{class:"dropdown pull-right hide tabdrop tab-drop"}).append(h("<a>",{class:"dropdown-toggle","data-toggle":"dropdown",href:"#"}).append(h("<i>",{class:"glyphicon glyphicon-align-justify"})).append(h("<b>",{class:"caret"}))).append(h("<ul>",{class:"dropdown-menu"}));h("body").find(".nav-tabs").each(function(){var e=h(this);e.find(".tabdrop").length<1?i.appendTo(e):i=e.find(".tabdrop"),e.parent().is(".tabs-below")&&i.addClass("dropup");var t=0;e.append(i.find("li")).find(">li").not(".tabdrop").each(function(){(0<this.offsetTop||e.width()-h(this).position().left-h(this).width()<83)&&(i.find("ul").append(h(this)),t++)}),0<t?(i.removeClass("hide"),1==i.find(".active").length?i.addClass("active"):i.removeClass("active")):i.addClass("hide")})}}(jQuery),$(function(){$.addtabs()});var flag=!1;function toggleFullScreen(){flag?exitFullscreen():fullscreen()}function fullscreen(){flag=!0;var e=document.documentElement;e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullScreen?e.webkitRequestFullScreen():e.msRequestFullscreen&&e.msRequestFullscreen()}function exitFullscreen(){flag=!1,document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen()}!function(e,t){if("object"==typeof exports&&exports)t(exports);else{var i={};t(i),"function"==typeof define&&define.amd?define(i):e.Mustache=i}}(this,function(_){var y=/\s*/,b=/\s+/,n=/\S/,x=/\s*=/,w=/\s*\}/,M=/#|\^|\/|>|\{|&|=|!/,s=RegExp.prototype.test;function j(e){return t=n,i=e,!s.call(t,i);var t,i}var t=Object.prototype.toString,m=Array.isArray||function(e){return"[object Array]"===t.call(e)};function g(e){return"function"==typeof e}function k(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}var i={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function L(e){this.string=e,this.tail=e,this.pos=0}function r(e,t){this.view=null==e?{}:e,this.parent=t,this._cache={".":this.view}}function e(){this.clearCache()}function S(e){return[new RegExp(k(e[0])+"\\s*"),new RegExp("\\s*"+k(e[1]))]}L.prototype.eos=function(){return""===this.tail},L.prototype.scan=function(e){var t=this.tail.match(e);if(t&&0===t.index){var i=t[0];return this.tail=this.tail.substring(i.length),this.pos+=i.length,i}return""},L.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.make=function(e){return e instanceof r?e:new r(e)},r.prototype.push=function(e){return new r(e,this)},r.prototype.lookup=function(e){var t;if(e in this._cache)t=this._cache[e];else{for(var i=this;i;){if(0<e.indexOf(".")){t=i.view;for(var n=e.split("."),s=0;null!=t&&s<n.length;)t=t[n[s++]]}else t=i.view[e];if(null!=t)break;i=i.parent}this._cache[e]=t}return g(t)&&(t=t.call(this.view)),t},e.prototype.clearCache=function(){this._cache={},this._partialCache={}},e.prototype.compile=function(e,t){var i=this._cache[e];if(!i){var n=_.parse(e,t);i=this._cache[e]=this.compileTokens(n,e)}return i},e.prototype.compilePartial=function(e,t,i){var n=this.compile(t,i);return this._partialCache[e]=n},e.prototype.getPartial=function(e){return e in this._partialCache||!this._loadPartial||this.compilePartial(e,this._loadPartial(e)),this._partialCache[e]},e.prototype.compileTokens=function(n,s){var a=this;return function(e,t){if(t)if(g(t))a._loadPartial=t;else for(var i in t)a.compilePartial(i,t[i]);return function e(t,i,n,s){var a="";function r(e){return i.render(e,n)}var o,l,h;for(var u=0,d=t.length;u<d;++u)switch(o=t[u],l=o[1],o[0]){case"#":if("object"==typeof(h=n.lookup(l))||"string"==typeof h)if(m(h))for(var c=0,p=h.length;c<p;++c)a+=e(o[4],i,n.push(h[c]),s);else h&&(a+=e(o[4],i,n.push(h),s));else if(g(h)){var f=null==s?null:s.slice(o[3],o[5]);null!=(h=h.call(n.view,f,r))&&(a+=h)}else h&&(a+=e(o[4],i,n,s));break;case"^":(!(h=n.lookup(l))||m(h)&&0===h.length)&&(a+=e(o[4],i,n,s));break;case">":g(h=i.getPartial(l))&&(a+=h(n));break;case"&":null!=(h=n.lookup(l))&&(a+=h);break;case"name":null!=(h=n.lookup(l))&&(a+=_.escape(h));break;case"text":a+=l}return a}(n,a,r.make(e),s)}},e.prototype.render=function(e,t,i){return this.compile(e)(t,i)},_.name="mustache.js",_.version="0.7.3",_.tags=["{{","}}"],_.Scanner=L,_.Context=r,_.Writer=e,_.parse=function(e,t){if(e=e||"","string"==typeof(t=t||_.tags)&&(t=t.split(b)),2!==t.length)throw new Error("Invalid tags: "+t.join(", "));var i,n,s,a,r,o,l=S(t),h=new L(e),u=[],d=[],c=[],p=!1,f=!1;function m(){if(p&&!f)for(;c.length;)delete d[c.pop()];else c=[];f=p=!1}for(;!h.eos();){if(i=h.pos,s=h.scanUntil(l[0]))for(var g=0,v=s.length;g<v;++g)j(a=s.charAt(g))?c.push(d.length):f=!0,d.push(["text",a,i,i+1]),i+=1,"\n"==a&&m();if(!h.scan(l[0]))break;if(p=!0,n=h.scan(M)||"name",h.scan(y),"="===n?(s=h.scanUntil(x),h.scan(x),h.scanUntil(l[1])):"{"===n?(s=h.scanUntil(new RegExp("\\s*"+k("}"+t[1]))),h.scan(w),h.scanUntil(l[1]),n="&"):s=h.scanUntil(l[1]),!h.scan(l[1]))throw new Error("Unclosed tag at "+h.pos);if(r=[n,s,i,h.pos],d.push(r),"#"===n||"^"===n)u.push(r);else if("/"===n){if(!(o=u.pop()))throw new Error('Unopened section "'+s+'" at '+i);if(o[1]!==s)throw new Error('Unclosed section "'+o[1]+'" at '+i)}else if("name"===n||"{"===n||"&"===n)f=!0;else if("="===n){if(2!==(t=s.split(b)).length)throw new Error("Invalid tags at "+i+": "+t.join(", "));l=S(t)}}if(o=u.pop())throw new Error('Unclosed section "'+o[1]+'" at '+h.pos);return function(e){for(var t,i=[],n=i,s=[],a=0,r=e.length;a<r;++a)switch((t=e[a])[0]){case"#":case"^":s.push(t),n.push(t),n=t[4]=[];break;case"/":s.pop()[5]=t[2],n=0<s.length?s[s.length-1][4]:i;break;default:n.push(t)}return i}(function(e){for(var t,i,n=[],s=0,a=e.length;s<a;++s)(t=e[s])&&("text"===t[0]&&i&&"text"===i[0]?(i[1]+=t[1],i[3]=t[3]):(i=t,n.push(t)));return n}(d))},_.escape=function(e){return String(e).replace(/[&<>"'\/]/g,function(e){return i[e]})};var a=new e;_.clearCache=function(){return a.clearCache()},_.compile=function(e,t){return a.compile(e,t)},_.compilePartial=function(e,t,i){return a.compilePartial(e,t,i)},_.compileTokens=function(e,t){return a.compileTokens(e,t)},_.render=function(e,t,i){return a.render(e,t,i)},_.to_html=function(e,t,i,n){var s=_.render(e,t,i);if(!g(n))return s;n(s)}});var bootstrapTable_version="jeeplus.org";!function(k){var s=null,L=function(e){var t=arguments,i=!0,n=1;return e=e.replace(/%s/g,function(){var e=t[n++];return void 0===e?(i=!1,""):e}),i?e:""},S=function(e,i){var n=-1;return k.each(e,function(e,t){return t.field!==i||(n=e,!1)}),n},h=function(){if(null===s){var e,t,i=k("<p/>").addClass("fixed-table-scroll-inner"),n=k("<div/>").addClass("fixed-table-scroll-outer");n.append(i),k("body").append(n),e=i[0].offsetWidth,n.css("overflow","scroll"),e===(t=i[0].offsetWidth)&&(t=n[0].clientWidth),n.remove(),s=e-t}return s},T=function(e,t,i,n){var s=t;if("string"==typeof t){var a=t.split(".");1<a.length?(s=window,k.each(a,function(e,t){s=s[t]})):s=window[t]}return"object"==typeof s?s:"function"==typeof s?s.apply(e,i):!s&&"string"==typeof t&&L.apply(this,[t].concat(i))?L.apply(this,[t].concat(i)):n},t=function(e,t,i){var n=Object.getOwnPropertyNames(e),s=Object.getOwnPropertyNames(t),a="";if(i&&n.length!==s.length)return!1;for(var r=0;r<n.length;r++)if(a=n[r],-1<k.inArray(a,s)&&e[a]!==t[a])return!1;return!0},a=function(e){var t=0;return e.children().each(function(){t<k(this).outerHeight(!0)&&(t=k(this).outerHeight(!0))}),t},r=function(e){for(var t in e){var i=t.split(/(?=[A-Z])/).join("-").toLowerCase();i!==t&&(e[i]=e[t],delete e[t])}return e},D=function(e,t){var i=e;if("string"!=typeof t||e.hasOwnProperty(t))return e[t];var n=t.split(".");for(var s in n){if(null===i||""===i||void 0===i)return"";i=i[n[s]]}return i},o=function(e,t){this.options=t,this.$el=k(e),this.$el_=this.$el.clone(),this.timeoutId_=0,this.timeoutFooter_=0,this.init()};o.DEFAULTS={classes:"table table-hover",locale:void 0,height:void 0,undefinedText:"-",sortName:void 0,sortOrder:"asc",striped:!1,columns:[[]],data:[],dataField:"rows",method:"get",url:void 0,ajax:void 0,cache:!0,contentType:"application/json",dataType:"json",ajaxOptions:{},queryParams:function(e){return e},queryParamsType:"limit",responseHandler:function(e){return e},pagination:!1,onlyInfoPagination:!1,sidePagination:"client",totalRows:0,pageNumber:1,pageSize:10,pageList:[10,25,50,100],paginationHAlign:"right",paginationVAlign:"bottom",paginationDetailHAlign:"left",paginationFirstText:"&laquo;",paginationPreText:"&lsaquo;",paginationNextText:"&rsaquo;",paginationLastText:"&raquo;",search:!1,strictSearch:!1,searchAlign:"right",selectItemName:"btSelectItem",showHeader:!0,showFooter:!1,showColumns:!1,showSearch:!1,showPaginationSwitch:!1,showRefresh:!1,showToggle:!1,buttonsAlign:"right",smartDisplay:!0,minimumCountColumns:1,idField:void 0,uniqueId:void 0,cardView:!1,detailView:!1,detailFormatter:function(e,t){return""},trimOnSearch:!0,clickToSelect:!1,singleSelect:!1,toolbar:void 0,toolbarAlign:"left",checkboxHeader:!0,sortable:!0,silentSort:!0,maintainSelected:!1,searchTimeOut:500,searchText:"",iconSize:void 0,iconsPrefix:"glyphicon",icons:{search:"glyphicon-search",paginationSwitchDown:"glyphicon-collapse-down icon-chevron-down",paginationSwitchUp:"glyphicon-collapse-up icon-chevron-up",refresh:"glyphicon-refresh icon-refresh",toggle:"glyphicon-list-alt icon-list-alt",columns:"glyphicon-th icon-th",detailOpen:"glyphicon-plus icon-plus",detailClose:"glyphicon-minus icon-minus"},rowStyle:function(e,t){return{}},rowAttributes:function(e,t){return{}},onAll:function(e,t){return!1},onClickCell:function(e,t,i,n){return!1},onDblClickCell:function(e,t,i,n){return!1},onClickRow:function(e,t){return!1},onDblClickRow:function(e,t){return!1},onSort:function(e,t){return!1},onCheck:function(e){return!1},onUncheck:function(e){return!1},onCheckAll:function(e){return!1},onUncheckAll:function(e){return!1},onCheckSome:function(e){return!1},onUncheckSome:function(e){return!1},onLoadSuccess:function(e){return!1},onLoadError:function(e){return!1},onColumnSwitch:function(e,t){return!1},onPageChange:function(e,t){return!1},onSearch:function(e){return!1},onShowSearch:function(e){return!1},onToggle:function(e){return!1},onPreBody:function(e){return!1},onPostBody:function(){return!1},onPostHeader:function(){return!1},onExpandRow:function(e,t,i){return!1},onCollapseRow:function(e,t){return!1},onRefreshOptions:function(e){return!1},onResetView:function(){return!1}},(o.LOCALES=[])["en-US"]=o.LOCALES.en={formatLoadingMessage:function(){return"Loading, please wait..."},formatRecordsPerPage:function(e){return L("%s records per page",e)},formatShowingRows:function(e,t,i){return L("Showing %s to %s of %s rows",e,t,i)},formatDetailPagination:function(e){return L("Showing %s rows",e)},formatSearch:function(){return"Search"},formatNoMatches:function(){return"No matching records found"},formatPaginationSwitch:function(){return"Hide/Show pagination"},formatRefresh:function(){return"Refresh"},formatToggle:function(){return"Toggle"},formatColumns:function(){return"Columns"},formatAllRows:function(){return"All"}},k.extend(o.DEFAULTS,o.LOCALES["en-US"]),o.COLUMN_DEFAULTS={radio:!1,checkbox:!1,checkboxEnabled:!0,field:void 0,title:void 0,titleTooltip:void 0,class:void 0,align:void 0,halign:void 0,falign:void 0,valign:void 0,width:void 0,sortable:!1,order:"asc",visible:!0,switchable:!0,clickToSelect:!0,formatter:void 0,footerFormatter:void 0,events:void 0,sorter:void 0,sortName:void 0,cellStyle:void 0,searchable:!0,searchFormatter:!0,cardVisible:!0},o.EVENTS={"all.bs.table":"onAll","click-cell.bs.table":"onClickCell","dbl-click-cell.bs.table":"onDblClickCell","click-row.bs.table":"onClickRow","dbl-click-row.bs.table":"onDblClickRow","sort.bs.table":"onSort","check.bs.table":"onCheck","uncheck.bs.table":"onUncheck","check-all.bs.table":"onCheckAll","uncheck-all.bs.table":"onUncheckAll","check-some.bs.table":"onCheckSome","uncheck-some.bs.table":"onUncheckSome","load-success.bs.table":"onLoadSuccess","load-error.bs.table":"onLoadError","column-switch.bs.table":"onColumnSwitch","page-change.bs.table":"onPageChange","search.bs.table":"onSearch","toggle.bs.table":"onToggle","show-search.bs.table":"onShowSearch","pre-body.bs.table":"onPreBody","post-body.bs.table":"onPostBody","post-header.bs.table":"onPostHeader","expand-row.bs.table":"onExpandRow","collapse-row.bs.table":"onCollapseRow","refresh-options.bs.table":"onRefreshOptions","reset-view.bs.table":"onResetView"},o.prototype.init=function(){this.initLocale(),this.initContainer(),this.initTable(),this.initHeader(),this.initData(),this.initFooter(),this.initToolbar(),this.initPagination(),this.initBody(),this.initSearchText(),this.initServer()},o.prototype.initLocale=function(){if(this.options.locale){var e=this.options.locale.split(/-|_/);e[0].toLowerCase(),e[1]&&e[1].toUpperCase(),k.fn.bootstrapTable.locales[this.options.locale]?k.extend(this.options,k.fn.bootstrapTable.locales[this.options.locale]):k.fn.bootstrapTable.locales[e.join("-")]?k.extend(this.options,k.fn.bootstrapTable.locales[e.join("-")]):k.fn.bootstrapTable.locales[e[0]]&&k.extend(this.options,k.fn.bootstrapTable.locales[e[0]])}},o.prototype.initContainer=function(){this.$container=k(['<div class="bootstrap-table">','<div class="fixed-table-toolbar"></div>',"top"===this.options.paginationVAlign||"both"===this.options.paginationVAlign?'<div class="fixed-table-pagination" style="clear: both;"></div>':"",'<div class="fixed-table-container">','<div class="fixed-table-header"><table></table></div>','<div class="fixed-table-body">','<div class="fixed-table-loading">',this.options.formatLoadingMessage(),"</div>","</div>",'<div class="fixed-table-footer"><table><tr></tr></table></div>',"bottom"===this.options.paginationVAlign||"both"===this.options.paginationVAlign?'<div class="fixed-table-pagination"></div>':"","</div>","</div>"].join("")),this.$container.insertAfter(this.$el),this.$tableContainer=this.$container.find(".fixed-table-container"),this.$tableHeader=this.$container.find(".fixed-table-header"),this.$tableBody=this.$container.find(".fixed-table-body"),this.$tableLoading=this.$container.find(".fixed-table-loading"),this.$tableFooter=this.$container.find(".fixed-table-footer"),this.$toolbar=this.$container.find(".fixed-table-toolbar"),this.$pagination=this.$container.find(".fixed-table-pagination"),this.$tableBody.append(this.$el),this.$container.after('<div class="clearfix"></div>'),this.$el.addClass(this.options.classes),this.options.striped&&this.$el.addClass("table-striped"),-1!==k.inArray("table-no-bordered",this.options.classes.split(" "))&&this.$tableContainer.addClass("table-no-bordered")},o.prototype.initTable=function(){var n=this,t=[],e=[];this.$header=this.$el.find(">thead"),this.$header.length||(this.$header=k("<thead></thead>").appendTo(this.$el)),this.$header.find("tr").each(function(){var e=[];k(this).find("th").each(function(){e.push(k.extend({},{title:k(this).html(),class:k(this).attr("class"),titleTooltip:k(this).attr("title"),rowspan:k(this).attr("rowspan")?+k(this).attr("rowspan"):void 0,colspan:k(this).attr("colspan")?+k(this).attr("colspan"):void 0},k(this).data()))}),t.push(e)}),k.isArray(this.options.columns[0])||(this.options.columns=[this.options.columns]),this.options.columns=k.extend(!0,[],t,this.options.columns),this.columns=[],function(e){var t,i,n,s=0,a=[];for(t=0;t<e[0].length;t++)s+=e[0][t].colspan||1;for(t=0;t<e.length;t++)for(a[t]=[],i=0;i<s;i++)a[t][i]=!1;for(t=0;t<e.length;t++)for(i=0;i<e[t].length;i++){var r=e[t][i],o=r.rowspan||1,l=r.colspan||1,h=k.inArray(!1,a[t]);for(1===l&&(r.fieldIndex=h,void 0===r.field&&(r.field=h)),n=0;n<o;n++)a[t+n][h]=!0;for(n=0;n<l;n++)a[t][h+n]=!0}}(this.options.columns),k.each(this.options.columns,function(i,e){k.each(e,function(e,t){void 0!==(t=k.extend({},o.COLUMN_DEFAULTS,t)).fieldIndex&&(n.columns[t.fieldIndex]=t),n.options.columns[i][e]=t})}),this.options.data.length||(this.$el.find(">tbody>tr").each(function(){var i={};i._id=k(this).attr("id"),i._class=k(this).attr("class"),i._data=r(k(this).data()),k(this).find("td").each(function(e){var t=n.columns[e].field;i[t]=k(this).html(),i["_"+t+"_id"]=k(this).attr("id"),i["_"+t+"_class"]=k(this).attr("class"),i["_"+t+"_rowspan"]=k(this).attr("rowspan"),i["_"+t+"_title"]=k(this).attr("title"),i["_"+t+"_data"]=r(k(this).data())}),e.push(i)}),this.options.data=e)},o.prototype.initHeader=function(){var h=this,u={},d=[];this.header={fields:[],styles:[],classes:[],formatters:[],events:[],sorters:[],sortNames:[],cellStyles:[],searchables:[]},k.each(this.options.columns,function(e,t){d.push("<tr>"),0==e&&!h.options.cardView&&h.options.detailView&&d.push(L('<th class="detail" rowspan="%s"><div class="fht-cell"></div></th>',h.options.columns.length)),k.each(t,function(e,t){var i,n,s="",a="",r=L(' class="%s"',t.class),o=(h.options.sortOrder||t.order,"px"),l=t.width;if(void 0===t.width||h.options.cardView||"string"==typeof t.width&&-1!==t.width.indexOf("%")&&(o="%"),t.width&&"string"==typeof t.width&&(l=t.width.replace("%","").replace("px","")),i=L("text-align: %s; ",t.halign?t.halign:t.align),n=L("text-align: %s; ",t.align),a=L("vertical-align: %s; ",t.valign),a+=L("width: %s; ",!t.checkbox&&!t.radio||l?l?l+o:void 0:"36px"),void 0!==t.fieldIndex){if(h.header.fields[t.fieldIndex]=t.field,h.header.styles[t.fieldIndex]=n+a,h.header.classes[t.fieldIndex]=r,h.header.formatters[t.fieldIndex]=t.formatter,h.header.events[t.fieldIndex]=t.events,h.header.sorters[t.fieldIndex]=t.sorter,h.header.sortNames[t.fieldIndex]=t.sortName,h.header.cellStyles[t.fieldIndex]=t.cellStyle,h.header.searchables[t.fieldIndex]=t.searchable,!t.visible)return;if(h.options.cardView&&!t.cardVisible)return;u[t.field]=t}d.push("<th"+L(' title="%s"',t.titleTooltip),t.checkbox||t.radio?L(' class="bs-checkbox %s"',t.class||""):r,L(' style="%s"',i+a),L(' rowspan="%s"',t.rowspan),L(' colspan="%s"',t.colspan),L(' data-field="%s"',t.field),"tabindex='0'",">"),d.push(L('<div class="th-inner %s">',h.options.sortable&&t.sortable?"sortable both":"")),s=t.title,t.checkbox&&(!h.options.singleSelect&&h.options.checkboxHeader&&(s='<label class="bootstrap-table-checkbox"><input name="btSelectAll" type="checkbox" /><span> </span></label>'),h.header.stateField=t.field),t.radio&&(s="",h.header.stateField=t.field,h.options.singleSelect=!0),d.push(s),d.push("</div>"),d.push('<div class="fht-cell"></div>'),d.push("</div>"),d.push("</th>")}),d.push("</tr>")}),this.$header.html(d.join("")),this.$header.find("th[data-field]").each(function(e){k(this).data(u[k(this).data("field")])}),this.$container.off("click",".th-inner").on("click",".th-inner",function(e){h.options.sortable&&k(this).parent().data().sortable&&h.onSort(e)}),this.$header.children().children().off("keypress").on("keypress",function(e){h.options.sortable&&k(this).data().sortable&&(13==(e.keyCode||e.which)&&h.onSort(e))}),!this.options.showHeader||this.options.cardView?(this.$header.hide(),this.$tableHeader.hide(),this.$tableLoading.css("top",0)):(this.$header.show(),this.$tableHeader.show(),this.$tableLoading.css("top",this.$header.outerHeight()+1),this.getCaret()),this.$selectAll=this.$header.find('[name="btSelectAll"]'),this.$container.off("click",'[name="btSelectAll"]').on("click",'[name="btSelectAll"]',function(){var e=k(this).prop("checked");h[e?"checkAll":"uncheckAll"](),h.updateSelected()})},o.prototype.initFooter=function(){!this.options.showFooter||this.options.cardView?this.$tableFooter.hide():this.$tableFooter.show()},o.prototype.initData=function(e,t){this.data="append"===t?this.data.concat(e):"prepend"===t?[].concat(e).concat(this.data):e||this.options.data,this.options.data="append"===t?this.options.data.concat(e):"prepend"===t?[].concat(e).concat(this.options.data):this.data,"server"!==this.options.sidePagination&&this.initSort()},o.prototype.initSort=function(){var a=this,r=this.options.sortName,o="desc"===this.options.sortOrder?-1:1,l=k.inArray(this.options.sortName,this.header.fields);-1!==l&&this.data.sort(function(e,t){a.header.sortNames[l]&&(r=a.header.sortNames[l]);var i=D(e,r),n=D(t,r),s=T(a.header,a.header.sorters[l],[i,n]);return void 0!==s?o*s:(null==i&&(i=""),null==n&&(n=""),k.isNumeric(i)&&k.isNumeric(n)?(i=parseFloat(i))<(n=parseFloat(n))?-1*o:o:i===n?0:("string"!=typeof i&&(i=i.toString()),-1===i.localeCompare(n)?-1*o:o))})},o.prototype.onSort=function(e){var t="keypress"===e.type?k(e.currentTarget):k(e.currentTarget).parent(),i=this.$header.find("th").eq(t.index());this.$header.add(this.$header_).find("span.order").remove();var n=t.data("field");t.data("sortName")&&(n=t.data("sortName")),this.options.sortName===n?this.options.sortOrder="asc"===this.options.sortOrder?"desc":"asc":(this.options.sortName=n,this.options.sortOrder="asc"===t.data("order")?"desc":"asc"),this.trigger("sort",this.options.sortName,this.options.sortOrder),t.add(i).data("order",this.options.sortOrder),this.getCaret(),"server"!==this.options.sidePagination?(this.initSort(),this.initBody()):this.initServer(this.options.silentSort)},o.prototype.initToolbar=function(){var e,n=this,s=[],t=0,a=0;this.$toolbar.html(""),"string"!=typeof this.options.toolbar&&"object"!=typeof this.options.toolbar||k(L('<div class="bars pull-%s"></div>',this.options.toolbarAlign)).appendTo(this.$toolbar).append(k(this.options.toolbar)),s=[L('<div class="columns columns-%s btn-group pull-%s">',this.options.buttonsAlign,this.options.buttonsAlign)],"string"==typeof this.options.icons&&(this.options.icons=T(null,this.options.icons)),this.options.showSearch&&s.push(L('<button class="btn btn-default" type="button" name="showSearch" title="%s">',this.options.formatSearch()),L('<i class="%s %s"></i>',this.options.iconsPrefix,this.options.icons.search),"</button>"),this.options.showPaginationSwitch&&s.push(L('<button class="btn btn-default" type="button" name="paginationSwitch" title="%s">',this.options.formatPaginationSwitch()),L('<i class="%s %s"></i>',this.options.iconsPrefix,this.options.icons.paginationSwitchDown),"</button>"),this.options.showRefresh&&s.push(L('<button class="btn btn-default'+L(" btn-%s",this.options.iconSize)+'" type="button" name="refresh" title="%s">',this.options.formatRefresh()),L('<i class="%s %s"></i>',this.options.iconsPrefix,this.options.icons.refresh),"</button>"),this.options.showToggle&&s.push(L('<button class="btn btn-default'+L(" btn-%s",this.options.iconSize)+'" type="button" name="toggle" title="%s">',this.options.formatToggle()),L('<i class="%s %s"></i>',this.options.iconsPrefix,this.options.icons.toggle),"</button>"),this.options.showColumns&&(s.push(L('<div class="keep-open btn-group" title="%s">',this.options.formatColumns()),'<button type="button" class="btn btn-default'+L(" btn-%s",this.options.iconSize)+' dropdown-toggle" data-toggle="dropdown">',L('<i class="%s %s"></i>',this.options.iconsPrefix,this.options.icons.columns),' <span class="caret"></span>',"</button>",'<ul class="dropdown-menu" role="menu">'),k.each(this.columns,function(e,t){if(!t.radio&&!t.checkbox&&(!n.options.cardView||t.cardVisible)){var i=t.visible?' checked="checked"':"";t.switchable&&(s.push(L('<li><label><input type="checkbox" data-field="%s" value="%s"%s> %s</label></li>',t.field,e,i,t.title)),a++)}}),s.push("</ul>","</div>")),s.push("</div>"),(this.showToolbar||2<s.length)&&this.$toolbar.append(s.join("")),this.options.showPaginationSwitch&&this.$toolbar.find('button[name="paginationSwitch"]').off("click").on("click",k.proxy(this.togglePagination,this)),this.options.showRefresh&&this.$toolbar.find('button[name="refresh"]').off("click").on("click",k.proxy(this.refresh,this)),this.options.showToggle&&this.$toolbar.find('button[name="toggle"]').off("click").on("click",function(){n.toggleView()}),this.options.showSearch&&this.$toolbar.find('button[name="showSearch"]').off("click").on("click",function(){n.trigger("show-search")}),this.options.showColumns&&(e=this.$toolbar.find(".keep-open"),a<=this.options.minimumCountColumns&&e.find("input").prop("disabled",!0),e.find("li").off("click").on("click",function(e){e.stopImmediatePropagation()}),e.find("input").off("click").on("click",function(){var e=k(this);n.toggleColumn(S(n.columns,k(this).data("field")),e.prop("checked"),!1),n.trigger("column-switch",k(this).data("field"),e.prop("checked"))})),this.options.search&&((s=[]).push('<div class="pull-'+this.options.searchAlign+' search">',L('<input class="form-control'+L(" input-%s",this.options.iconSize)+'" type="text" placeholder="%s">',this.options.formatSearch()),"</div>"),this.$toolbar.append(s.join("")),this.$toolbar.find(".search input").off("keyup drop").on("keyup drop",function(e){clearTimeout(t),t=setTimeout(function(){n.onSearch(e)},n.options.searchTimeOut)}))},o.prototype.onSearch=function(e){var t=k.trim(k(e.currentTarget).val());this.options.trimOnSearch&&k(e.currentTarget).val()!==t&&k(e.currentTarget).val(t),t!==this.searchText&&(this.searchText=t,this.options.pageNumber=1,this.initSearch(),this.updatePagination(),this.trigger("search",t))},o.prototype.initSearch=function(){var o=this;if("server"!==this.options.sidePagination){var l=this.searchText&&this.searchText.toLowerCase(),n=k.isEmptyObject(this.filterColumns)?null:this.filterColumns;this.data=n?k.grep(this.options.data,function(e,t){for(var i in n)if(k.isArray(n[i])){if(-1===k.inArray(e[i],n[i]))return!1}else if(e[i]!==n[i])return!1;return!0}):this.options.data,this.data=l?k.grep(this.data,function(e,t){for(var i in e){var n=e[i=k.isNumeric(i)?parseInt(i,10):i],s=o.columns[S(o.columns,i)],a=k.inArray(i,o.header.fields);s&&s.searchFormatter&&(n=T(s,o.header.formatters[a],[n,e,t],n));var r=k.inArray(i,o.header.fields);if(-1!==r&&o.header.searchables[r]&&("string"==typeof n||"number"==typeof n))if(o.options.strictSearch){if((n+"").toLowerCase()===l)return!0}else if(-1!==(n+"").toLowerCase().indexOf(l))return!0}return!1}):this.data}},o.prototype.initPagination=function(){if(this.options.pagination){this.$pagination.show();var e,t,i,n,s,a,r,o,l,h=this,u=[],d=!1,c=this.getData();if("server"!==this.options.sidePagination&&(this.options.totalRows=c.length),this.totalPages=0,this.options.totalRows){if(this.options.pageSize===this.options.formatAllRows())this.options.pageSize=this.options.totalRows,d=!0;else if(this.options.pageSize===this.options.totalRows){var p="string"==typeof this.options.pageList?this.options.pageList.replace("[","").replace("]","").replace(/ /g,"").toLowerCase().split(","):this.options.pageList;-1<k.inArray(this.options.formatAllRows().toLowerCase(),p)&&(d=!0)}this.totalPages=1+~~((this.options.totalRows-1)/this.options.pageSize),this.options.totalPages=this.totalPages}if(0<this.totalPages&&this.options.pageNumber>this.totalPages&&(this.options.pageNumber=this.totalPages),this.pageFrom=(this.options.pageNumber-1)*this.options.pageSize+1,this.pageTo=this.options.pageNumber*this.options.pageSize,this.pageTo>this.options.totalRows&&(this.pageTo=this.options.totalRows),u.push('<div class="pull-'+this.options.paginationDetailHAlign+' pagination-detail">','<span class="pagination-info">',this.options.onlyInfoPagination?this.options.formatDetailPagination(this.options.totalRows):this.options.formatShowingRows(this.pageFrom,this.pageTo,this.options.totalRows),"</span>"),!this.options.onlyInfoPagination){u.push('<span class="page-list">');var f=[L('<span class="btn-group %s">',"top"===this.options.paginationVAlign||"both"===this.options.paginationVAlign?"dropdown":"dropup"),'<button type="button" class="btn btn-default '+L(" btn-%s",this.options.iconSize)+' dropdown-toggle" data-toggle="dropdown">','<span class="page-size">',d?this.options.formatAllRows():this.options.pageSize,"</span>",' <span class="caret"></span>',"</button>",'<ul class="dropdown-menu" role="menu">'],m=this.options.pageList;if("string"==typeof this.options.pageList){var g=this.options.pageList.replace("[","").replace("]","").replace(/ /g,"").split(",");m=[],k.each(g,function(e,t){m.push(t.toUpperCase()===h.options.formatAllRows().toUpperCase()?h.options.formatAllRows():+t)})}for(k.each(m,function(e,t){var i;(!h.options.smartDisplay||0===e||m[e-1]<=h.options.totalRows)&&(i=d?t===h.options.formatAllRows()?' class="active"':"":t===h.options.pageSize?' class="active"':"",f.push(L('<li%s><a href="javascript:void(0)">%s</a></li>',i,t)))}),f.push("</ul></span>"),u.push(this.options.formatRecordsPerPage(f.join(""))),u.push("</span>"),u.push("</div>",'<div class="pull-'+this.options.paginationHAlign+' pagination">','<ul class="pagination'+L(" pagination-%s",this.options.iconSize)+'">','<li class="page-first"><a href="javascript:void(0)">'+this.options.paginationFirstText+"</a></li>",'<li class="page-pre"><a href="javascript:void(0)">'+this.options.paginationPreText+"</a></li>"),this.totalPages<5?(t=1,i=this.totalPages):(i=(t=this.options.pageNumber-2)+4,t<1&&(t=1,i=5),i>this.totalPages&&(t=(i=this.totalPages)-4)),e=t;e<=i;e++)u.push('<li class="page-number'+(e===this.options.pageNumber?" active":"")+'">','<a href="javascript:void(0)">',e,"</a>","</li>");u.push('<li class="page-next"><a href="javascript:void(0)">'+this.options.paginationNextText+"</a></li>",'<li class="page-last"><a href="javascript:void(0)">'+this.options.paginationLastText+"</a></li>","</ul>","</div>")}this.$pagination.html(u.join("")),this.options.onlyInfoPagination||(n=this.$pagination.find(".page-list a"),s=this.$pagination.find(".page-first"),a=this.$pagination.find(".page-pre"),r=this.$pagination.find(".page-next"),o=this.$pagination.find(".page-last"),l=this.$pagination.find(".page-number"),this.options.pageNumber<=1&&(s.addClass("disabled"),a.addClass("disabled")),this.options.pageNumber>=this.totalPages&&(r.addClass("disabled"),o.addClass("disabled")),this.options.smartDisplay&&(this.totalPages<=1&&this.$pagination.find("div.pagination").hide(),(m.length<2||this.options.totalRows<=m[0])&&this.$pagination.find("span.page-list").hide(),this.$pagination[this.getData().length?"show":"hide"]()),d&&(this.options.pageSize=this.options.formatAllRows()),n.off("click").on("click",k.proxy(this.onPageListChange,this)),s.off("click").on("click",k.proxy(this.onPageFirst,this)),a.off("click").on("click",k.proxy(this.onPagePre,this)),r.off("click").on("click",k.proxy(this.onPageNext,this)),o.off("click").on("click",k.proxy(this.onPageLast,this)),l.off("click").on("click",k.proxy(this.onPageNumber,this)))}else this.$pagination.hide()},o.prototype.updatePagination=function(e){e&&k(e.currentTarget).hasClass("disabled")||(this.options.maintainSelected||this.resetRows(),this.initPagination(),"server"===this.options.sidePagination?this.initServer():this.initBody(),this.trigger("page-change",this.options.pageNumber,this.options.pageSize))},o.prototype.onPageListChange=function(e){var t=k(e.currentTarget);t.parent().addClass("active").siblings().removeClass("active"),this.options.pageSize=t.text().toUpperCase()===this.options.formatAllRows().toUpperCase()?this.options.formatAllRows():+t.text(),this.$toolbar.find(".page-size").text(this.options.pageSize),this.updatePagination(e)},o.prototype.onPageFirst=function(e){this.options.pageNumber=1,this.updatePagination(e)},o.prototype.onPagePre=function(e){this.options.pageNumber--,this.updatePagination(e)},o.prototype.onPageNext=function(e){this.options.pageNumber++,this.updatePagination(e)},o.prototype.onPageLast=function(e){this.options.pageNumber=this.totalPages,this.updatePagination(e)},o.prototype.onPageNumber=function(e){this.options.pageNumber!==+k(e.currentTarget).text()&&(this.options.pageNumber=+k(e.currentTarget).text(),this.updatePagination(e))},o.prototype.initBody=function(e){var t,y=this,b=[],s=this.getData();this.trigger("pre-body",s),this.$body=this.$el.find(">tbody"),this.$body.length||(this.$body=k("<tbody></tbody>").appendTo(this.$el)),this.options.pagination&&"server"!==this.options.sidePagination||(this.pageFrom=1,this.pageTo=s.length);for(var x=this.pageFrom-1;x<this.pageTo;x++){var i,w=s[x],M={},j=[],n="",a={},r=[];if((M=T(this.options,this.options.rowStyle,[w,x],M))&&M.css)for(i in M.css)j.push(i+": "+M.css[i]);if(a=T(this.options,this.options.rowAttributes,[w,x],a))for(i in a)r.push(L('%s="%s"',i,"string"==typeof(t=a[i])?t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;"):t));w._data&&!k.isEmptyObject(w._data)&&k.each(w._data,function(e,t){"index"!==e&&(n+=L(' data-%s="%s"',e,t))}),b.push("<tr",L(" %s",r.join(" ")),L(' id="%s"',k.isArray(w)?void 0:w._id),L(' class="%s"',M.classes||(k.isArray(w)?void 0:w._class)),L(' data-index="%s"',x),L(' data-uniqueid="%s"',w[this.options.uniqueId]),L("%s",n),">"),this.options.cardView&&b.push(L('<td colspan="%s">',this.header.fields.length)),!this.options.cardView&&this.options.detailView&&b.push("<td>",'<a class="detail-icon" href="javascript:">',L('<i class="%s %s"></i>',this.options.iconsPrefix,this.options.icons.detailOpen),"</a>","</td>"),k.each(this.header.fields,function(e,t){var i="",n=D(w,t),s="",a={},r="",o=y.header.classes[e],l="",h="",u="",d=y.columns[S(y.columns,t)];if(d.visible){if(M=L('style="%s"',j.concat(y.header.styles[e]).join("; ")),n=T(d,y.header.formatters[e],[n,w,x],n),w["_"+t+"_id"]&&(r=L(' id="%s"',w["_"+t+"_id"])),w["_"+t+"_class"]&&(o=L(' class="%s"',w["_"+t+"_class"])),w["_"+t+"_rowspan"]&&(h=L(' rowspan="%s"',w["_"+t+"_rowspan"])),w["_"+t+"_title"]&&(u=L(' title="%s"',w["_"+t+"_title"])),(a=T(y.header,y.header.cellStyles[e],[n,w,x],a)).classes&&(o=L(' class="%s"',a.classes)),a.css){var c=[];for(var p in a.css)c.push(p+": "+a.css[p]);M=L('style="%s"',c.concat(y.header.styles[e]).join("; "))}var f,m,g,v,_;w["_"+t+"_data"]&&!k.isEmptyObject(w["_"+t+"_data"])&&k.each(w["_"+t+"_data"],function(e,t){"index"!==e&&(l+=L(' data-%s="%s"',e,t))}),d.checkbox||d.radio?(s=d.checkbox?"checkbox":s,s=d.radio?"radio":s,i=[y.options.cardView?'<div class="card-view">':'<td class="bs-checkbox">','<label class="bootstrap-table-'+s+'"><input'+L(' data-index="%s"',x)+L(' name="%s"',y.options.selectItemName)+L(' type="%s"',s)+L(' value="%s"',w[y.options.idField])+L(' checked="%s"',!0===n||n&&n.checked?"checked":void 0)+L(' disabled="%s"',!d.checkboxEnabled||n&&n.disabled?"disabled":void 0)+" /><span></span> </label>",y.header.formatters[e]&&"string"==typeof n?n:"",y.options.cardView?"</div>":"</td>"].join(""),w[y.header.stateField]=!0===n||n&&n.checked):(n=null==n?y.options.undefinedText:n,i=y.options.cardView?['<div class="card-view">',y.options.showHeader?L('<span class="title" %s>%s</span>',M,(f=y.columns,m="field",g="title",v=t,_="",k.each(f,function(e,t){return t[m]!==v||(_=t[g],!1)}),_)):"",L('<span class="value">%s</span>',n),"</div>"].join(""):[L("<td%s %s %s %s %s %s>",r,o,M,l,h,u),n,"</td>"].join(""),y.options.cardView&&y.options.smartDisplay&&""===n&&(i='<div class="card-view"></div>')),b.push(i)}}),this.options.cardView&&b.push("</td>"),b.push("</tr>")}b.length||b.push('<tr class="no-records-found">',L('<td colspan="%s">%s</td>',this.$header.find("th").length,this.options.formatNoMatches()),"</tr>"),this.$body.html(b.join("")),e||this.scrollTo(0),this.$body.find("> tr[data-index] > td").off("click dblclick").on("click dblclick",function(e){var t=k(this),i=t.parent(),n=y.data[i.data("index")],s=t[0].cellIndex,a=y.header.fields[y.options.detailView&&!y.options.cardView?s-1:s],r=y.columns[S(y.columns,a)],o=D(n,a);if(!t.find(".detail-icon").length&&(y.trigger("click"===e.type?"click-cell":"dbl-click-cell",a,o,n,t),y.trigger("click"===e.type?"click-row":"dbl-click-row",n,i),"click"===e.type&&y.options.clickToSelect&&r.clickToSelect)){var l=i.find(L('[name="%s"]',y.options.selectItemName));l.length&&l[0].click()}}),this.$body.find("> tr[data-index] > td > .detail-icon").off("click").on("click",function(){var e=k(this),t=e.parent().parent(),i=t.data("index"),n=s[i];t.next().is("tr.detail-view")?(e.find("i").attr("class",L("%s %s",y.options.iconsPrefix,y.options.icons.detailOpen)),t.next().remove(),y.trigger("collapse-row",i,n)):(e.find("i").attr("class",L("%s %s",y.options.iconsPrefix,y.options.icons.detailClose)),t.after(L('<tr class="detail-view"><td colspan="%s">%s</td></tr>',t.find("td").length,T(y.options,y.options.detailFormatter,[i,n],""))),y.trigger("expand-row",i,n,t.next().find("td"))),y.resetView()}),this.$selectItem=this.$body.find(L('[name="%s"]',this.options.selectItemName)),this.$selectItem.off("click").on("click",function(e){e.stopImmediatePropagation();var t=k(this),i=t.prop("checked"),n=y.data[t.data("index")];y.options.maintainSelected&&k(this).is(":radio")&&k.each(y.options.data,function(e,t){t[y.header.stateField]=!1}),n[y.header.stateField]=i,y.options.singleSelect&&(y.$selectItem.not(this).each(function(){y.data[k(this).data("index")][y.header.stateField]=!1}),y.$selectItem.filter(":checked").not(this).prop("checked",!1)),y.updateSelected(),y.trigger(i?"check":"uncheck",n,t)}),k.each(this.header.events,function(e,r){if(r){"string"==typeof r&&(r=T(null,r));var o=y.header.fields[e],l=k.inArray(o,y.getVisibleFields());for(var h in y.options.detailView&&!y.options.cardView&&(l+=1),r)y.$body.find(">tr:not(.no-records-found)").each(function(){var s=k(this),e=s.find(y.options.cardView?".card-view":"td").eq(l),t=h.indexOf(" "),i=h.substring(0,t),n=h.substring(t+1),a=r[h];e.find(n).off(i).on(i,function(e){var t=s.data("index"),i=y.data[t],n=i[o];a.apply(this,[e,n,i,t])})})}}),this.updateSelected(),this.resetView(),this.trigger("post-body")},o.prototype.initServer=function(e,t){var i,n=this,s={},a={pageSize:this.options.pageSize===this.options.formatAllRows()?this.options.totalRows:this.options.pageSize,pageNumber:this.options.pageNumber,searchText:this.searchText,sortName:this.options.sortName,sortOrder:this.options.sortOrder};(this.options.url||this.options.ajax)&&("limit"===this.options.queryParamsType&&(a={search:a.searchText,sort:a.sortName,order:a.sortOrder},this.options.pagination&&(a.limit=this.options.pageSize===this.options.formatAllRows()?this.options.totalRows:this.options.pageSize,a.offset=this.options.pageSize===this.options.formatAllRows()?0:this.options.pageSize*(this.options.pageNumber-1))),k.isEmptyObject(this.filterColumnsPartial)||(a.filter=JSON.stringify(this.filterColumnsPartial,null)),s=T(this.options,this.options.queryParams,[a],s),k.extend(s,t||{}),!1!==s&&(e||this.$tableLoading.show(),i=k.extend({},T(null,this.options.ajaxOptions),{type:this.options.method,url:this.options.url,data:"application/json"===this.options.contentType&&"post"===this.options.method?JSON.stringify(s):s,cache:this.options.cache,contentType:this.options.contentType,dataType:this.options.dataType,success:function(e){e=T(n.options,n.options.responseHandler,[e],e),n.load(e),n.trigger("load-success",e)},error:function(e){n.trigger("load-error",e.status,e)},complete:function(){e||n.$tableLoading.hide()}}),this.options.ajax?T(this,this.options.ajax,[i],null):k.ajax(i)))},o.prototype.initSearchText=function(){if(this.options.search&&""!==this.options.searchText){var e=this.$toolbar.find(".search input");e.val(this.options.searchText),this.onSearch({currentTarget:e})}},o.prototype.getCaret=function(){var n=this;k.each(this.$header.find("th"),function(e,t){var i=k(t).data("field");k(t).data("sortName")&&(i=k(t).data("sortName")),k(t).find(".sortable").removeClass("desc asc").addClass(i===n.options.sortName?n.options.sortOrder:"both")})},o.prototype.updateSelected=function(){var e=this.$selectItem.filter(":enabled").length&&this.$selectItem.filter(":enabled").length===this.$selectItem.filter(":enabled").filter(":checked").length;this.$selectAll.add(this.$selectAll_).prop("checked",e),this.$selectItem.each(function(){k(this).closest("tr")[k(this).prop("checked")?"addClass":"removeClass"]("selected")})},o.prototype.updateRows=function(){var e=this;this.$selectItem.each(function(){e.data[k(this).data("index")][e.header.stateField]=k(this).prop("checked")})},o.prototype.resetRows=function(){var i=this;k.each(this.data,function(e,t){i.$selectAll.prop("checked",!1),i.$selectItem.prop("checked",!1),i.header.stateField&&(t[i.header.stateField]=!1)})},o.prototype.trigger=function(e){var t=Array.prototype.slice.call(arguments,1);e+=".bs.table",this.options[o.EVENTS[e]].apply(this.options,t),this.$el.trigger(k.Event(e),t),this.options.onAll(e,t),this.$el.trigger(k.Event("all.bs.table"),[e,t])},o.prototype.resetHeader=function(){clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(k.proxy(this.fitHeader,this),this.$el.is(":hidden")?100:0)},o.prototype.fitHeader=function(){var e,t,i,n,s=this;if(s.$el.is(":hidden"))s.timeoutId_=setTimeout(k.proxy(s.fitHeader,s),100);else{if(t=(e=this.$tableBody.get(0)).scrollWidth>e.clientWidth&&e.scrollHeight>e.clientHeight+this.$header.outerHeight()?h():0,this.$el.css("margin-top",-this.$header.outerHeight()),0<(i=k(":focus")).length){var a=i.parents("th");if(0<a.length){var r=a.attr("data-field");if(void 0!==r){var o=this.$header.find("[data-field='"+r+"']");0<o.length&&o.find(":input").addClass("focus-temp")}}}this.$header_=this.$header.clone(!0,!0),this.$selectAll_=this.$header_.find('[name="btSelectAll"]'),this.$tableHeader.css({"margin-right":t}).find("table").css("width",this.$el.outerWidth()).html("").attr("class",this.$el.attr("class")).append(this.$header_),0<(n=k(".focus-temp:visible:eq(0)")).length&&(n.focus(),this.$header.find(".focus-temp").removeClass("focus-temp")),this.$header.find("th[data-field]").each(function(e){s.$header_.find(L('th[data-field="%s"]',k(this).data("field"))).data(k(this).data())});var l=this.getVisibleFields();this.$body.find(">tr:first-child:not(.no-records-found) > *").each(function(e){var t=k(this),i=e;s.options.detailView&&!s.options.cardView&&(0===e&&s.$header_.find("th.detail").find(".fht-cell").width(t.innerWidth()),i=e-1),s.$header_.find(L('th[data-field="%s"]',l[i])).find(".fht-cell").width(t.innerWidth())}),this.$tableBody.off("scroll").on("scroll",function(){s.$tableHeader.scrollLeft(k(this).scrollLeft()),s.options.showFooter&&!s.options.cardView&&s.$tableFooter.scrollLeft(k(this).scrollLeft())}),s.trigger("post-header")}},o.prototype.resetFooter=function(){var a=this,r=a.getData(),o=[];this.options.showFooter&&!this.options.cardView&&(!this.options.cardView&&this.options.detailView&&o.push('<td><div class="th-inner">&nbsp;</div><div class="fht-cell"></div></td>'),k.each(this.columns,function(e,t){var i,n,s=L(' class="%s"',t.class);t.visible&&(a.options.cardView&&!t.cardVisible||(i=L("text-align: %s; ",t.falign?t.falign:t.align),n=L("vertical-align: %s; ",t.valign),o.push("<td",s,L(' style="%s"',i+n),">"),o.push('<div class="th-inner">'),o.push(T(t,t.footerFormatter,[r],"&nbsp;")||"&nbsp;"),o.push("</div>"),o.push('<div class="fht-cell"></div>'),o.push("</div>"),o.push("</td>")))}),this.$tableFooter.find("tr").html(o.join("")),clearTimeout(this.timeoutFooter_),this.timeoutFooter_=setTimeout(k.proxy(this.fitFooter,this),this.$el.is(":hidden")?100:0))},o.prototype.fitFooter=function(){var i,e,t;clearTimeout(this.timeoutFooter_),this.$el.is(":hidden")?this.timeoutFooter_=setTimeout(k.proxy(this.fitFooter,this),100):(t=(e=this.$el.css("width"))>this.$tableBody.width()?h():0,this.$tableFooter.css({"margin-right":t}).find("table").css("width",e).attr("class",this.$el.attr("class")),i=this.$tableFooter.find("td"),this.$body.find(">tr:first-child:not(.no-records-found) > *").each(function(e){var t=k(this);i.eq(e).find(".fht-cell").width(t.innerWidth())}))},o.prototype.toggleColumn=function(e,t,i){if(-1!==e&&(this.columns[e].visible=t,this.initHeader(),this.initSearch(),this.initPagination(),this.initBody(),this.options.showColumns)){var n=this.$toolbar.find(".keep-open input").prop("disabled",!1);i&&n.filter(L('[value="%s"]',e)).prop("checked",t),n.filter(":checked").length<=this.options.minimumCountColumns&&n.filter(":checked").prop("disabled",!0)}},o.prototype.toggleRow=function(e,t,i){-1!==e&&this.$body.find(void 0!==e?L('tr[data-index="%s"]',e):L('tr[data-uniqueid="%s"]',t))[i?"show":"hide"]()},o.prototype.getVisibleFields=function(){var i=this,n=[];return k.each(this.header.fields,function(e,t){i.columns[S(i.columns,t)].visible&&n.push(t)}),n},o.prototype.resetView=function(e){var t=0;if(e&&e.height&&(this.options.height=e.height),this.$selectAll.prop("checked",0<this.$selectItem.length&&this.$selectItem.length===this.$selectItem.filter(":checked").length),this.options.height){var i=a(this.$toolbar),n=a(this.$pagination),s=this.options.height-i-n;this.$tableContainer.css("height",s+"px")}if(this.options.cardView)return this.$el.css("margin-top","0"),void this.$tableContainer.css("padding-bottom","0");this.options.showHeader&&this.options.height?(this.$tableHeader.show(),this.resetHeader(),t+=this.$header.outerHeight()):(this.$tableHeader.hide(),this.trigger("post-header")),this.options.showFooter&&(this.resetFooter(),this.options.height&&(t+=this.$tableFooter.outerHeight()+1)),this.getCaret(),this.$tableContainer.css("padding-bottom",t+"px"),this.trigger("reset-view")},o.prototype.getData=function(e){return!this.searchText&&k.isEmptyObject(this.filterColumns)&&k.isEmptyObject(this.filterColumnsPartial)?e?this.options.data.slice(this.pageFrom-1,this.pageTo):this.options.data:e?this.data.slice(this.pageFrom-1,this.pageTo):this.data},o.prototype.load=function(e){var t=!1;"server"===this.options.sidePagination?(this.options.totalRows=e.total,t=e.fixedScroll,e=e[this.options.dataField]):k.isArray(e)||(t=e.fixedScroll,e=e.data),this.initData(e),this.initSearch(),this.initPagination(),this.initBody(t)},o.prototype.append=function(e){this.initData(e,"append"),this.initSearch(),this.initPagination(),this.initBody(!0)},o.prototype.prepend=function(e){this.initData(e,"prepend"),this.initSearch(),this.initPagination(),this.initBody(!0)},o.prototype.remove=function(e){var t,i,n=this.options.data.length;if(e.hasOwnProperty("field")&&e.hasOwnProperty("values")){for(t=n-1;0<=t;t--)(i=this.options.data[t]).hasOwnProperty(e.field)&&-1!==k.inArray(i[e.field],e.values)&&this.options.data.splice(t,1);n!==this.options.data.length&&(this.initSearch(),this.initPagination(),this.initBody(!0))}},o.prototype.removeAll=function(){0<this.options.data.length&&(this.options.data.splice(0,this.options.data.length),this.initSearch(),this.initPagination(),this.initBody(!0))},o.prototype.getRowByUniqueId=function(e){var t,i,n,s=this.options.uniqueId,a=null;for(t=this.options.data.length-1;0<=t;t--){if((i=this.options.data[t]).hasOwnProperty(s))n=i[s];else{if(!i._data.hasOwnProperty(s))continue;n=i._data[s]}if("string"==typeof n?e=e.toString():"number"==typeof n&&(Number(n)===n&&n%1==0?e=parseInt(e):n===Number(n)&&0!==n&&(e=parseFloat(e))),n===e){a=i;break}}return a},o.prototype.removeByUniqueId=function(e){var t=this.options.data.length,i=this.getRowByUniqueId(e);i&&this.options.data.splice(this.options.data.indexOf(i),1),t!==this.options.data.length&&(this.initSearch(),this.initPagination(),this.initBody(!0))},o.prototype.updateByUniqueId=function(e){var t;e.hasOwnProperty("id")&&e.hasOwnProperty("row")&&-1!==(t=k.inArray(this.getRowByUniqueId(e.id),this.options.data))&&(k.extend(this.data[t],e.row),this.initSort(),this.initBody(!0))},o.prototype.insertRow=function(e){e.hasOwnProperty("index")&&e.hasOwnProperty("row")&&(this.data.splice(e.index,0,e.row),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0))},o.prototype.updateRow=function(e){e.hasOwnProperty("index")&&e.hasOwnProperty("row")&&(k.extend(this.data[e.index],e.row),this.initSort(),this.initBody(!0))},o.prototype.showRow=function(e){e.hasOwnProperty("index")&&e.hasOwnProperty("uniqueId")&&this.toggleRow(e.index,e.uniqueId,!0)},o.prototype.hideRow=function(e){e.hasOwnProperty("index")&&e.hasOwnProperty("uniqueId")&&this.toggleRow(e.index,e.uniqueId,!1)},o.prototype.getRowsHidden=function(e){var t=k(this.$body[0]).children().filter(":hidden"),i=0;if(e)for(;i<t.length;i++)k(t[i]).show();return t},o.prototype.mergeCells=function(e){var t,i,n,s=e.index,a=k.inArray(e.field,this.getVisibleFields()),r=e.rowspan||1,o=e.colspan||1,l=this.$body.find(">tr");if(this.options.detailView&&!this.options.cardView&&(a+=1),n=l.eq(s).find(">td").eq(a),!(s<0||a<0||s>=this.data.length)){for(t=s;t<s+r;t++)for(i=a;i<a+o;i++)l.eq(t).find(">td").eq(i).hide();n.attr("rowspan",r).attr("colspan",o).show()}},o.prototype.updateCell=function(e){e.hasOwnProperty("index")&&e.hasOwnProperty("field")&&e.hasOwnProperty("value")&&(this.data[e.index][e.field]=e.value,this.initSort(),this.initBody(!0))},o.prototype.getOptions=function(){return this.options},o.prototype.getSelections=function(){var t=this;return k.grep(this.data,function(e){return e[t.header.stateField]})},o.prototype.getAllSelections=function(){var t=this;return k.grep(this.options.data,function(e){return e[t.header.stateField]})},o.prototype.checkAll=function(){this.checkAll_(!0)},o.prototype.uncheckAll=function(){this.checkAll_(!1)},o.prototype.checkAll_=function(e){var t;e||(t=this.getSelections()),this.$selectAll.add(this.$selectAll_).prop("checked",e),this.$selectItem.filter(":enabled").prop("checked",e),this.updateRows(),e&&(t=this.getSelections()),this.trigger(e?"check-all":"uncheck-all",t)},o.prototype.check=function(e){this.check_(!0,e)},o.prototype.uncheck=function(e){this.check_(!1,e)},o.prototype.check_=function(e,t){var i=this.$selectItem.filter(L('[data-index="%s"]',t)).prop("checked",e);this.data[t][this.header.stateField]=e,this.updateSelected(),this.trigger(e?"check":"uncheck",this.data[t],i)},o.prototype.checkBy=function(e){this.checkBy_(!0,e)},o.prototype.uncheckBy=function(e){this.checkBy_(!1,e)},o.prototype.checkBy_=function(n,s){if(s.hasOwnProperty("field")&&s.hasOwnProperty("values")){var a=this,r=[];k.each(this.options.data,function(e,t){if(!t.hasOwnProperty(s.field))return!1;if(-1!==k.inArray(t[s.field],s.values)){var i=a.$selectItem.filter(":enabled").filter(L('[data-index="%s"]',e)).prop("checked",n);t[a.header.stateField]=n,r.push(t),a.trigger(n?"check":"uncheck",t,i)}}),this.updateSelected(),this.trigger(n?"check-some":"uncheck-some",r)}},o.prototype.destroy=function(){this.$el.insertBefore(this.$container),k(this.options.toolbar).insertBefore(this.$el),this.$container.next().remove(),this.$container.remove(),this.$el.html(this.$el_.html()).css("margin-top","0").attr("class",this.$el_.attr("class")||"")},o.prototype.showLoading=function(){this.$tableLoading.show()},o.prototype.hideLoading=function(){this.$tableLoading.hide()},o.prototype.togglePagination=function(){this.options.pagination=!this.options.pagination;var e=this.$toolbar.find('button[name="paginationSwitch"] i');this.options.pagination?e.attr("class",this.options.iconsPrefix+" "+this.options.icons.paginationSwitchDown):e.attr("class",this.options.iconsPrefix+" "+this.options.icons.paginationSwitchUp),this.updatePagination()},o.prototype.refresh=function(e){e&&e.url&&(this.options.url=e.url,this.options.pageNumber=1),this.initServer(e&&e.silent,e&&e.query)},o.prototype.resetWidth=function(){this.options.showHeader&&this.options.height&&this.fitHeader(),this.options.showFooter&&this.fitFooter()},o.prototype.showColumn=function(e){this.toggleColumn(S(this.columns,e),!0,!0)},o.prototype.hideColumn=function(e){this.toggleColumn(S(this.columns,e),!1,!0)},o.prototype.getHiddenColumns=function(){return k.grep(this.columns,function(e){return!e.visible})},o.prototype.filterBy=function(e){this.filterColumns=k.isEmptyObject(e)?{}:e,this.options.pageNumber=1,this.initSearch(),this.updatePagination()},o.prototype.scrollTo=function(e){if("string"==typeof e&&(e="bottom"===e?this.$tableBody[0].scrollHeight:0),"number"==typeof e&&this.$tableBody.scrollTop(e),void 0===e)return this.$tableBody.scrollTop()},o.prototype.getScrollPosition=function(){return this.scrollTo()},o.prototype.selectPage=function(e){0<e&&e<=this.options.totalPages&&(this.options.pageNumber=e,this.updatePagination())},o.prototype.prevPage=function(){1<this.options.pageNumber&&(this.options.pageNumber--,this.updatePagination())},o.prototype.nextPage=function(){this.options.pageNumber<this.options.totalPages&&(this.options.pageNumber++,this.updatePagination())},o.prototype.toggleView=function(){this.options.cardView=!this.options.cardView,this.initHeader(),this.initBody(),this.trigger("toggle",this.options.cardView)},o.prototype.refreshOptions=function(e){t(this.options,e,!1)||(this.options=k.extend(this.options,e),this.trigger("refresh-options",this.options),this.destroy(),this.init())},o.prototype.resetSearch=function(e){var t=this.$toolbar.find(".search input");t.val(e||""),this.onSearch({currentTarget:t})},o.prototype.expandRow_=function(e,t){var i=this.$body.find(L('> tr[data-index="%s"]',t));i.next().is("tr.detail-view")===!e&&i.find("> td > .detail-icon").click()},o.prototype.expandRow=function(e){this.expandRow_(!0,e)},o.prototype.collapseRow=function(e){this.expandRow_(!1,e)},o.prototype.expandAllRows=function(e){if(e){var t=this.$body.find(L('> tr[data-index="%s"]',0)),i=this,n=null,s=!1,a=-1;if(t.next().is("tr.detail-view")?t.next().next().is("tr.detail-view")||(t.next().find(".detail-icon").click(),s=!0):(t.find("> td > .detail-icon").click(),s=!0),s)try{a=setInterval(function(){0<(n=i.$body.find("tr.detail-view").last().find(".detail-icon")).length?n.click():clearInterval(a)},1)}catch(e){clearInterval(a)}}else for(var r=this.$body.children(),o=0;o<r.length;o++)this.expandRow_(!0,k(r[o]).data("index"))},o.prototype.collapseAllRows=function(e){if(e)this.expandRow_(!1,0);else for(var t=this.$body.children(),i=0;i<t.length;i++)this.expandRow_(!1,k(t[i]).data("index"))};var l=["getOptions","getSelections","getAllSelections","getData","load","append","prepend","remove","removeAll","insertRow","updateRow","updateCell","updateByUniqueId","removeByUniqueId","getRowByUniqueId","showRow","hideRow","getRowsHidden","mergeCells","checkAll","uncheckAll","check","uncheck","checkBy","uncheckBy","refresh","resetView","resetWidth","destroy","showLoading","hideLoading","showColumn","hideColumn","getHiddenColumns","filterBy","scrollTo","getScrollPosition","selectPage","prevPage","nextPage","togglePagination","toggleView","refreshOptions","resetSearch","expandRow","collapseRow","expandAllRows","collapseAllRows"];k.fn.bootstrapTable=function(n){var s,a=Array.prototype.slice.call(arguments,1);return this.each(function(){var e=k(this),t=e.data("bootstrap.table"),i=k.extend({},o.DEFAULTS,e.data(),"object"==typeof n&&n);if("string"==typeof n){if(k.inArray(n,l)<0)throw new Error("Unknown method: "+n);if(!t)return;s=t[n].apply(t,a),"destroy"===n&&e.removeData("bootstrap.table")}t||e.data("bootstrap.table",t=new o(this,i))}),void 0===s?this:s},k.fn.bootstrapTable.Constructor=o,k.fn.bootstrapTable.defaults=o.DEFAULTS,k.fn.bootstrapTable.columnDefaults=o.COLUMN_DEFAULTS,k.fn.bootstrapTable.locales=o.LOCALES,k.fn.bootstrapTable.methods=l,k.fn.bootstrapTable.utils={sprintf:L,getFieldIndex:S,compareObjects:t,calculateObjectValue:T},k(function(){k('[data-toggle="table"]').bootstrapTable()})}(jQuery);