diff --git a/dist.java/java/404.html b/dist.java/java/404.html index 3e4f2698d0..191ccf4ab5 100644 --- a/dist.java/java/404.html +++ b/dist.java/java/404.html @@ -38,7 +38,7 @@

Connected to

- + diff --git a/dist.java/java/index.html b/dist.java/java/index.html index 63cce62ab1..598296e33b 100644 --- a/dist.java/java/index.html +++ b/dist.java/java/index.html @@ -38,7 +38,7 @@

Connected to

- + diff --git a/dist.java/java/libs-a07e8842c6.js b/dist.java/java/libs-a07e8842c6.js new file mode 100644 index 0000000000..1942920c77 --- /dev/null +++ b/dist.java/java/libs-a07e8842c6.js @@ -0,0 +1 @@ +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,g=t.concat,s=t.push,r=t.indexOf,n={},i=n.toString,m=n.hasOwnProperty,v={},y=f.document,o="2.1.4",S=function(e,t){return new S.fn.init(e,t)},a=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,l=/^-ms-/,c=/-([\da-z])/gi,d=function(e,t){return t.toUpperCase()};function h(e){var t="length"in e&&e.length,n=S.type(e);return"function"!==n&&!S.isWindow(e)&&(!(1!==e.nodeType||!t)||("array"===n||0===t||"number"==typeof t&&0+~]|"+L+")"+L+"*"),z=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),W=new RegExp(q),G=new RegExp("^"+R+"$"),Y={ID:new RegExp("^#("+j+")"),CLASS:new RegExp("^\\.("+j+")"),TAG:new RegExp("^("+j.replace("w","w*")+")"),ATTR:new RegExp("^"+F),PSEUDO:new RegExp("^"+q),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+N+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},X=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Z=/[+~]/,ee=/'|\\/g,te=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),ne=function(e,t,n){var i="0x"+t-65536;return i!=i||n?t:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},ie=function(){v()};try{$.apply(t=M.call(_.childNodes),_.childNodes),t[_.childNodes.length].nodeType}catch(e){$={apply:t.length?function(e,t){P.apply(e,M.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function re(e,t,n,i){var r,o,a,s,l,c,u,d,h,p;if((t?t.ownerDocument||t:_)!==C&&v(t),n=n||[],s=(t=t||C).nodeType,"string"!=typeof e||!e||1!==s&&9!==s&&11!==s)return n;if(!i&&y){if(11!==s&&(r=Q.exec(e)))if(a=r[1]){if(9===s){if(!(o=t.getElementById(a))||!o.parentNode)return n;if(o.id===a)return n.push(o),n}else if(t.ownerDocument&&(o=t.ownerDocument.getElementById(a))&&S(t,o)&&o.id===a)return n.push(o),n}else{if(r[2])return $.apply(n,t.getElementsByTagName(e)),n;if((a=r[3])&&f.getElementsByClassName)return $.apply(n,t.getElementsByClassName(a)),n}if(f.qsa&&(!b||!b.test(e))){if(d=u=k,h=t,p=1!==s&&e,1===s&&"object"!==t.nodeName.toLowerCase()){for(c=g(e),(u=t.getAttribute("id"))?d=u.replace(ee,"\\$&"):t.setAttribute("id",d),d="[id='"+d+"'] ",l=c.length;l--;)c[l]=d+ge(c[l]);h=Z.test(e)&&pe(t.parentNode)||t,p=c.join(",")}if(p)try{return $.apply(n,h.querySelectorAll(p)),n}catch(e){}finally{u||t.removeAttribute("id")}}}return m(e.replace(B,"$1"),t,n,i)}function oe(){var i=[];return function e(t,n){return i.push(t+" ")>w.cacheLength&&delete e[i.shift()],e[t+" "]=n}}function ae(e){return e[k]=!0,e}function se(e){var t=C.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 n=e.split("|"),i=e.length;i--;)w.attrHandle[n[i]]=t}function ce(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||1<<31)-(~e.sourceIndex||1<<31);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function ue(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function de(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function he(a){return ae(function(o){return o=+o,ae(function(e,t){for(var n,i=a([],e.length,o),r=i.length;r--;)e[n=i[r]]&&(e[n]=!(t[n]=e[n]))})})}function pe(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in f=re.support={},i=re.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},v=re.setDocument=function(e){var t,n,l=e?e.ownerDocument||e:_;return l!==C&&9===l.nodeType&&l.documentElement?(r=(C=l).documentElement,(n=l.defaultView)&&n!==n.top&&(n.addEventListener?n.addEventListener("unload",ie,!1):n.attachEvent&&n.attachEvent("onunload",ie)),y=!i(l),f.attributes=se(function(e){return e.className="i",!e.getAttribute("className")}),f.getElementsByTagName=se(function(e){return e.appendChild(l.createComment("")),!e.getElementsByTagName("*").length}),f.getElementsByClassName=K.test(l.getElementsByClassName),f.getById=se(function(e){return r.appendChild(e).id=k,!l.getElementsByName||!l.getElementsByName(k).length}),f.getById?(w.find.ID=function(e,t){if(void 0!==t.getElementById&&y){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},w.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}}):(delete w.find.ID,w.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}}),w.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 n,i=[],r=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;n=o[r++];)1===n.nodeType&&i.push(n);return i},w.find.CLASS=f.getElementsByClassName&&function(e,t){if(y)return t.getElementsByClassName(e)},a=[],b=[],(f.qsa=K.test(l.querySelectorAll))&&(se(function(e){r.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&b.push("[*^$]="+L+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||b.push("\\["+L+"*(?:value|"+N+")"),e.querySelectorAll("[id~="+k+"-]").length||b.push("~="),e.querySelectorAll(":checked").length||b.push(":checked"),e.querySelectorAll("a#"+k+"+*").length||b.push(".#.+[+~]")}),se(function(e){var t=l.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&b.push("name"+L+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||b.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),b.push(",.*:")})),(f.matchesSelector=K.test(s=r.matches||r.webkitMatchesSelector||r.mozMatchesSelector||r.oMatchesSelector||r.msMatchesSelector))&&se(function(e){f.disconnectedMatch=s.call(e,"div"),s.call(e,"[s!='']:x"),a.push("!=",q)}),b=b.length&&new RegExp(b.join("|")),a=a.length&&new RegExp(a.join("|")),t=K.test(r.compareDocumentPosition),S=t||K.test(r.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},A=t?function(e,t){if(e===t)return u=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!f.sortDetached&&t.compareDocumentPosition(e)===n?e===l||e.ownerDocument===_&&S(_,e)?-1:t===l||t.ownerDocument===_&&S(_,t)?1:c?O(c,e)-O(c,t):0:4&n?-1:1)}:function(e,t){if(e===t)return u=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!r||!o)return e===l?-1:t===l?1:r?-1:o?1:c?O(c,e)-O(c,t):0;if(r===o)return ce(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[i]===s[i];)i++;return i?ce(a[i],s[i]):a[i]===_?-1:s[i]===_?1:0},l):C},re.matches=function(e,t){return re(e,null,null,t)},re.matchesSelector=function(e,t){if((e.ownerDocument||e)!==C&&v(e),t=t.replace(z,"='$1']"),f.matchesSelector&&y&&(!a||!a.test(t))&&(!b||!b.test(t)))try{var n=s.call(e,t);if(n||f.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||re.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&re.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Y.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&W.test(n)&&(t=g(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=l[e+" "];return t||(t=new RegExp("(^|"+L+")"+e+"("+L+"|$)"))&&l(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,i,r){return function(e){var t=re.attr(e,n);return null==t?"!="===i:!i||(t+="","="===i?t===r:"!="===i?t!==r:"^="===i?r&&0===t.indexOf(r):"*="===i?r&&-1(?:<\/\1>|)$/,x=/^.[^:#\[\.,]*$/;function C(e,n,i){if(S.isFunction(n))return S.grep(e,function(e,t){return!!n.call(e,t,e)!==i});if(n.nodeType)return S.grep(e,function(e){return e===n!==i});if("string"==typeof n){if(x.test(n))return S.filter(n,e,i);n=S.filter(n,e)}return S.grep(e,function(e){return 0<=r.call(n,e)!==i})}S.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?S.find.matchesSelector(i,e)?[i]:[]:S.find.matches(e,S.grep(t,function(e){return 1===e.nodeType}))},S.fn.extend({find:function(e){var t,n=this.length,i=[],r=this;if("string"!=typeof e)return this.pushStack(S(e).filter(function(){for(t=0;t)[^>]*|#([\w-]*))$/;(S.fn.init=function(e,t){var n,i;if(!e)return this;if("string"!=typeof e)return e.nodeType?(this.context=this[0]=e,this.length=1,this):S.isFunction(e)?void 0!==k.ready?k.ready(e):e(S):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),S.makeArray(e,this));if(!(n="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:_.exec(e))||!n[1]&&t)return!t||t.jquery?(t||k).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof S?t[0]:t,S.merge(this,S.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:y,!0)),w.test(n[1])&&S.isPlainObject(t))for(n in t)S.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}return(i=y.getElementById(n[2]))&&i.parentNode&&(this.length=1,this[0]=i),this.context=y,this.selector=e,this}).prototype=S.fn,k=S(y);var T=/^(?:parents|prev(?:Until|All))/,D={children:!0,contents:!0,next:!0,prev:!0};function A(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}S.extend({dir:function(e,t,n){for(var i=[],r=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&S(e).is(n))break;i.push(e)}return i},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}}),S.fn.extend({has:function(e){var t=S(e,this),n=t.length;return this.filter(function(){for(var e=0;ex",v.noCloneChecked=!!q.cloneNode(!0).lastChild.defaultValue;var W="undefined";v.focusinBubbles="onfocusin"in f;var G=/^key/,Y=/^(?:mouse|pointer|contextmenu)|click/,X=/^(?:focusinfocus|focusoutblur)$/,J=/^([^.]*)(?:\.(.+)|)$/;function K(){return!0}function Q(){return!1}function Z(){try{return y.activeElement}catch(e){}}S.event={global:{},add:function(t,e,n,i,r){var o,a,s,l,c,u,d,h,p,f,g,m=N.get(t);if(m)for(n.handler&&(n=(o=n).handler,r=o.selector),n.guid||(n.guid=S.guid++),(l=m.events)||(l=m.events={}),(a=m.handle)||(a=m.handle=function(e){return typeof S!==W&&S.event.triggered!==e.type?S.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(I)||[""]).length;c--;)p=g=(s=J.exec(e[c])||[])[1],f=(s[2]||"").split(".").sort(),p&&(d=S.event.special[p]||{},p=(r?d.delegateType:d.bindType)||p,d=S.event.special[p]||{},u=S.extend({type:p,origType:g,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&S.expr.match.needsContext.test(r),namespace:f.join(".")},o),(h=l[p])||((h=l[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(t,i,f,a)||t.addEventListener&&t.addEventListener(p,a,!1)),d.add&&(d.add.call(t,u),u.handler.guid||(u.handler.guid=n.guid)),r?h.splice(h.delegateCount++,0,u):h.push(u),S.event.global[p]=!0)},remove:function(e,t,n,i,r){var o,a,s,l,c,u,d,h,p,f,g,m=N.hasData(e)&&N.get(e);if(m&&(l=m.events)){for(c=(t=(t||"").match(I)||[""]).length;c--;)if(p=g=(s=J.exec(t[c])||[])[1],f=(s[2]||"").split(".").sort(),p){for(d=S.event.special[p]||{},h=l[p=(i?d.delegateType:d.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)u=h[o],!r&&g!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(h.splice(o,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(e,u));a&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,f,m.handle)||S.removeEvent(e,p,m.handle),delete l[p])}else for(p in l)S.event.remove(e,p+t[c],n,i,!0);S.isEmptyObject(l)&&(delete m.handle,N.remove(e,"events"))}},trigger:function(e,t,n,i){var r,o,a,s,l,c,u,d=[n||y],h=m.call(e,"type")?e.type:e,p=m.call(e,"namespace")?e.namespace.split("."):[];if(o=a=n=n||y,3!==n.nodeType&&8!==n.nodeType&&!X.test(h+S.event.triggered)&&(0<=h.indexOf(".")&&(h=(p=h.split(".")).shift(),p.sort()),l=h.indexOf(":")<0&&"on"+h,(e=e[S.expando]?e:new S.Event(h,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=p.join("."),e.namespace_re=e.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:S.makeArray(t,[e]),u=S.event.special[h]||{},i||!u.trigger||!1!==u.trigger.apply(n,t))){if(!i&&!u.noBubble&&!S.isWindow(n)){for(s=u.delegateType||h,X.test(s+h)||(o=o.parentNode);o;o=o.parentNode)d.push(o),a=o;a===(n.ownerDocument||y)&&d.push(a.defaultView||a.parentWindow||f)}for(r=0;(o=d[r++])&&!e.isPropagationStopped();)e.type=1]*)\/>/gi,te=/<([\w:]+)/,ne=/<|&#?\w+;/,ie=/<(?:script|style|link)/i,re=/checked\s*(?:[^=]|=\s*.checked.)/i,oe=/^$|\/(?:java|ecma)script/i,ae=/^true\/(.*)/,se=/^\s*\s*$/g,le={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function ce(e,t){return S.nodeName(e,"table")&&S.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=ae.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function he(e,t){for(var n=0,i=e.length;n")+s[2],c=s[0];c--;)o=o.lastChild;S.merge(d,o.childNodes),(o=u.firstChild).textContent=""}else d.push(t.createTextNode(r));for(u.textContent="",h=0;r=d[h++];)if((!i||-1===S.inArray(r,i))&&(l=S.contains(r.ownerDocument,r),o=fe(u.appendChild(r),"script"),l&&he(o),n))for(c=0;r=o[c++];)oe.test(r.type||"")&&n.push(r);return u},cleanData:function(e){for(var t,n,i,r,o=S.event.special,a=0;void 0!==(n=e[a]);a++){if(S.acceptData(n)&&(r=n[N.expando])&&(t=N.cache[r])){if(t.events)for(i in t.events)o[i]?S.event.remove(n,i):S.removeEvent(n,i,t.handle);N.cache[r]&&delete N.cache[r]}delete L.cache[n[L.expando]]}}}),S.fn.extend({text:function(e){return M(this,function(e){return void 0===e?S.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||ce(this,e).appendChild(e)})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=ce(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 n,i=e?S.filter(e,this):this,r=0;null!=(n=i[r]);r++)t||1!==n.nodeType||S.cleanData(fe(n)),n.parentNode&&(t&&S.contains(n.ownerDocument,n)&&he(fe(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(S.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 S.clone(this,e,t)})},html:function(e){return M(this,function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!ie.test(e)&&!le[(te.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(ee,"<$1>");try{for(;n")).appendTo(t.documentElement))[0].contentDocument).write(),t.close(),n=ve(e,t),ge.detach()),me[e]=n),n}var be=/^margin/,we=new RegExp("^("+B+")(?!px)[a-z%]+$","i"),xe=function(e){return e.ownerDocument.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):f.getComputedStyle(e,null)};function Ce(e,t,n){var i,r,o,a,s=e.style;return(n=n||xe(e))&&(a=n.getPropertyValue(t)||n[t]),n&&(""!==a||S.contains(e.ownerDocument,e)||(a=S.style(e,t)),we.test(a)&&be.test(t)&&(i=s.width,r=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=i,s.minWidth=r,s.maxWidth=o)),void 0!==a?a+"":a}function Se(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){var t,n,i=y.documentElement,r=y.createElement("div"),o=y.createElement("div");function e(){o.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",o.innerHTML="",i.appendChild(r);var e=f.getComputedStyle(o,null);t="1%"!==e.top,n="4px"===e.width,i.removeChild(r)}o.style&&(o.style.backgroundClip="content-box",o.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle="content-box"===o.style.backgroundClip,r.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",r.appendChild(o),f.getComputedStyle&&S.extend(v,{pixelPosition:function(){return e(),t},boxSizingReliable:function(){return null==n&&e(),n},reliableMarginRight:function(){var e,t=o.appendChild(y.createElement("div"));return t.style.cssText=o.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",o.style.width="1px",i.appendChild(r),e=!parseFloat(f.getComputedStyle(t,null).marginRight),i.removeChild(r),o.removeChild(t),e}}))}(),S.swap=function(e,t,n,i){var r,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];for(o in r=n.apply(e,i||[]),t)e.style[o]=a[o];return r};var ke=/^(none|table(?!-c[ea]).+)/,_e=new RegExp("^("+B+")(.*)$","i"),Te=new RegExp("^([+-])=("+B+")","i"),De={position:"absolute",visibility:"hidden",display:"block"},Ae={letterSpacing:"0",fontWeight:"400"},Ee=["Webkit","O","Moz","ms"];function Ie(e,t){if(t in e)return t;for(var n=t[0].toUpperCase()+t.slice(1),i=t,r=Ee.length;r--;)if((t=Ee[r]+n)in e)return t;return i}function Pe(e,t,n){var i=_e.exec(t);return i?Math.max(0,i[1]-(n||0))+(i[2]||"px"):t}function $e(e,t,n,i,r){for(var o=n===(i?"border":"content")?4:"width"===t?1:0,a=0;o<4;o+=2)"margin"===n&&(a+=S.css(e,n+V[o],!0,r)),i?("content"===n&&(a-=S.css(e,"padding"+V[o],!0,r)),"margin"!==n&&(a-=S.css(e,"border"+V[o]+"Width",!0,r))):(a+=S.css(e,"padding"+V[o],!0,r),"padding"!==n&&(a+=S.css(e,"border"+V[o]+"Width",!0,r)));return a}function Me(e,t,n){var i=!0,r="width"===t?e.offsetWidth:e.offsetHeight,o=xe(e),a="border-box"===S.css(e,"boxSizing",!1,o);if(r<=0||null==r){if(((r=Ce(e,t,o))<0||null==r)&&(r=e.style[t]),we.test(r))return r;i=a&&(v.boxSizingReliable()||r===e.style[t]),r=parseFloat(r)||0}return r+$e(e,t,n||(a?"border":"content"),i,o)+"px"}function Oe(e,t){for(var n,i,r,o=[],a=0,s=e.length;a").prop({async:!0,charset:n.scriptCharset,src:n.url}).on("load error",r=function(e){i.remove(),r=null,e&&t("error"===e.type?404:200,e.type)}),y.head.appendChild(i[0])},abort:function(){r&&r()}}});var Dt=[],At=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Dt.pop()||S.expando+"_"+tt++;return this[e]=!0,e}}),S.ajaxPrefilter("json jsonp",function(e,t,n){var i,r,o,a=!1!==e.jsonp&&(At.test(e.url)?"url":"string"==typeof e.data&&!(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&At.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=S.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(At,"$1"+i):!1!==e.jsonp&&(e.url+=(nt.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return o||S.error(i+" was not called"),o[0]},e.dataTypes[0]="json",r=f[i],f[i]=function(){o=arguments},n.always(function(){f[i]=r,e[i]&&(e.jsonpCallback=t.jsonpCallback,Dt.push(i)),o&&S.isFunction(r)&&r(o[0]),o=r=void 0}),"script"}),S.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||y;var i=w.exec(e),r=!n&&[];return i?[t.createElement(i[1])]:(i=S.buildFragment([e],t,r),r&&r.length&&S(r).remove(),S.merge([],i.childNodes))};var Et=S.fn.load;S.fn.load=function(e,t,n){if("string"!=typeof e&&Et)return Et.apply(this,arguments);var i,r,o,a=this,s=e.indexOf(" ");return 0<=s&&(i=S.trim(e.slice(s)),e=e.slice(0,s)),S.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(r="POST"),0").append(S.parseHTML(e)).find(i):e)}).complete(n&&function(e,t){a.each(n,o||[e.responseText,t,e])}),this},S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){S.fn[t]=function(e){return this.on(t,e)}}),S.expr.filters.animated=function(t){return S.grep(S.timers,function(e){return t===e.elem}).length};var It=f.document.documentElement;function Pt(e){return S.isWindow(e)?e:9===e.nodeType&&e.defaultView}S.offset={setOffset:function(e,t,n){var i,r,o,a,s,l,c=S.css(e,"position"),u=S(e),d={};"static"===c&&(e.style.position="relative"),s=u.offset(),o=S.css(e,"top"),l=S.css(e,"left"),("absolute"===c||"fixed"===c)&&-1<(o+l).indexOf("auto")?(a=(i=u.position()).top,r=i.left):(a=parseFloat(o)||0,r=parseFloat(l)||0),S.isFunction(t)&&(t=t.call(e,n,s)),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+r),"using"in t?t.using.call(e,d):u.css(d)}},S.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){S.offset.setOffset(this,t,e)});var e,n,i=this[0],r={top:0,left:0},o=i&&i.ownerDocument;return o?(e=o.documentElement,S.contains(e,i)?(typeof i.getBoundingClientRect!==W&&(r=i.getBoundingClientRect()),n=Pt(o),{top:r.top+n.pageYOffset-e.clientTop,left:r.left+n.pageXOffset-e.clientLeft}):r):void 0},position:function(){if(this[0]){var e,t,n=this[0],i={top:0,left:0};return"fixed"===S.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),S.nodeName(e[0],"html")||(i=e.offset()),i.top+=S.css(e[0],"borderTopWidth",!0),i.left+=S.css(e[0],"borderLeftWidth",!0)),{top:t.top-i.top-S.css(n,"marginTop",!0),left:t.left-i.left-S.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||It;e&&!S.nodeName(e,"html")&&"static"===S.css(e,"position");)e=e.offsetParent;return e||It})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,r){var o="pageYOffset"===r;S.fn[t]=function(e){return M(this,function(e,t,n){var i=Pt(e);if(void 0===n)return i?i[r]:e[t];i?i.scrollTo(o?f.pageXOffset:n,o?n:f.pageYOffset):e[t]=n},t,e,arguments.length,null)}}),S.each(["top","left"],function(e,n){S.cssHooks[n]=Se(v.pixelPosition,function(e,t){if(t)return t=Ce(e,n),we.test(t)?S(e).position()[n]+"px":t})}),S.each({Height:"height",Width:"width"},function(o,a){S.each({padding:"inner"+o,content:a,"":"outer"+o},function(i,e){S.fn[e]=function(e,t){var n=arguments.length&&(i||"boolean"!=typeof e),r=i||(!0===e||!0===t?"margin":"border");return M(this,function(e,t,n){var i;return S.isWindow(e)?e.document.documentElement["client"+o]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+o],i["scroll"+o],e.body["offset"+o],i["offset"+o],i["client"+o])):void 0===n?S.css(e,t,r):S.style(e,t,n,r)},a,n?e:void 0,n,null)}})}),S.fn.size=function(){return this.length},S.fn.andSelf=S.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return S});var $t=f.jQuery,Mt=f.$;return S.noConflict=function(e){return f.$===S&&(f.$=Mt),e&&f.jQuery===S&&(f.jQuery=$t),S},typeof e===W&&(f.jQuery=f.$=S),S}),"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||3this.$items.length-1||e<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){t.to(e)}):n==e?this.pause().cycle():this.slide(ndocument.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},a.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},a.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
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},m.prototype.init=function(e,t,n){if(this.enabled=!0,this.type=e,this.$element=g(t),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&g(g.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 i=this.options.trigger.split(" "),r=i.length;r--;){var o=i[r];if("click"==o)this.$element.on("click."+this.type,this.options.selector,g.proxy(this.toggle,this));else if("manual"!=o){var a="hover"==o?"mouseenter":"focusin",s="hover"==o?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,g.proxy(this.enter,this)),this.$element.on(s+"."+this.type,this.options.selector,g.proxy(this.leave,this))}}this.options.selector?this._options=g.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},m.prototype.getDefaults=function(){return m.DEFAULTS},m.prototype.getOptions=function(e){return(e=g.extend({},this.getDefaults(),this.$element.data(),e)).delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},m.prototype.getDelegateOptions=function(){var n={},i=this.getDefaults();return this._options&&g.each(this._options,function(e,t){i[e]!=t&&(n[e]=t)}),n},m.prototype.enter=function(e){var t=e instanceof this.constructor?e:g(e.currentTarget).data("bs."+this.type);if(t||(t=new this.constructor(e.currentTarget,this.getDelegateOptions()),g(e.currentTarget).data("bs."+this.type,t)),e instanceof g.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)}},m.prototype.isInStateTrue=function(){for(var e in this.inState)if(this.inState[e])return!0;return!1},m.prototype.leave=function(e){var t=e instanceof this.constructor?e:g(e.currentTarget).data("bs."+this.type);if(t||(t=new this.constructor(e.currentTarget,this.getDelegateOptions()),g(e.currentTarget).data("bs."+this.type,t)),e instanceof g.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)}},m.prototype.show=function(){var e=g.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var t=g.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!t)return;var n=this,i=this.tip(),r=this.getUID(this.type);this.setContent(),i.attr("id",r),this.$element.attr("aria-describedby",r),this.options.animation&&i.addClass("fade");var o="function"==typeof this.options.placement?this.options.placement.call(this,i[0],this.$element[0]):this.options.placement,a=/\s?auto?\s?/i,s=a.test(o);s&&(o=o.replace(a,"")||"top"),i.detach().css({top:0,left:0,display:"block"}).addClass(o).data("bs."+this.type,this),this.options.container?i.appendTo(this.options.container):i.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var l=this.getPosition(),c=i[0].offsetWidth,u=i[0].offsetHeight;if(s){var d=o,h=this.getPosition(this.$viewport);o="bottom"==o&&l.bottom+u>h.bottom?"top":"top"==o&&l.top-uh.width?"left":"left"==o&&l.left-ca.top+a.height&&(r.top=a.top+a.height-l)}else{var c=t.left-o,u=t.left+o+n;ca.right&&(r.left=a.left+a.width-u)}return r},m.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)},m.prototype.getUID=function(e){for(;e+=~~(1e6*Math.random()),document.getElementById(e););return e},m.prototype.tip=function(){if(!this.$tip&&(this.$tip=g(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},m.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},m.prototype.enable=function(){this.enabled=!0},m.prototype.disable=function(){this.enabled=!1},m.prototype.toggleEnabled=function(){this.enabled=!this.enabled},m.prototype.toggle=function(e){var t=this;e&&((t=g(e.currentTarget).data("bs."+this.type))||(t=new this.constructor(e.currentTarget,this.getDelegateOptions()),g(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)},m.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,e.$element=null})};var e=g.fn.tooltip;g.fn.tooltip=function(i){return this.each(function(){var e=g(this),t=e.data("bs.tooltip"),n="object"==typeof i&&i;!t&&/destroy|hide/.test(i)||(t||e.data("bs.tooltip",t=new m(this,n)),"string"==typeof i&&t[i]())})},g.fn.tooltip.Constructor=m,g.fn.tooltip.noConflict=function(){return g.fn.tooltip=e,this}}(jQuery),function(r){"use strict";var o=function(e,t){this.init("popover",e,t)};if(!r.fn.tooltip)throw new Error("Popover requires tooltip.js");o.VERSION="3.3.7",o.DEFAULTS=r.extend({},r.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),((o.prototype=r.extend({},r.fn.tooltip.Constructor.prototype)).constructor=o).prototype.getDefaults=function(){return o.DEFAULTS},o.prototype.setContent=function(){var e=this.tip(),t=this.getTitle(),n=this.getContent();e.find(".popover-title")[this.options.html?"html":"text"](t),e.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof n?"html":"append":"text"](n),e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},o.prototype.hasContent=function(){return this.getTitle()||this.getContent()},o.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)},o.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var e=r.fn.popover;r.fn.popover=function(i){return this.each(function(){var e=r(this),t=e.data("bs.popover"),n="object"==typeof i&&i;!t&&/destroy|hide/.test(i)||(t||e.data("bs.popover",t=new o(this,n)),"string"==typeof i&&t[i]())})},r.fn.popover.Constructor=o,r.fn.popover.noConflict=function(){return r.fn.popover=e,this}}(jQuery),function(o){"use strict";function r(e,t){this.$body=o(document.body),this.$scrollElement=o(e).is(document.body)?o(window):o(e),this.options=o.extend({},r.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",o.proxy(this.process,this)),this.refresh(),this.process()}function t(i){return this.each(function(){var e=o(this),t=e.data("bs.scrollspy"),n="object"==typeof i&&i;t||e.data("bs.scrollspy",t=new r(this,n)),"string"==typeof i&&t[i]()})}r.VERSION="3.3.7",r.DEFAULTS={offset:10},r.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},r.prototype.refresh=function(){var e=this,i="offset",r=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),o.isWindow(this.$scrollElement[0])||(i="position",r=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var e=o(this),t=e.data("target")||e.attr("href"),n=/^#./.test(t)&&o(t);return n&&n.length&&n.is(":visible")&&[[n[i]().top+r,t]]||null}).sort(function(e,t){return e[0]-t[0]}).each(function(){e.offsets.push(this[0]),e.targets.push(this[1])})},r.prototype.process=function(){var e,t=this.$scrollElement.scrollTop()+this.options.offset,n=this.getScrollHeight(),i=this.options.offset+n-this.$scrollElement.height(),r=this.offsets,o=this.targets,a=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),i<=t)return a!=(e=o[o.length-1])&&this.activate(e);if(a&&t=r[e]&&(void 0===r[e+1]||t .active"),r=n&&s.support.transition&&(i.length&&i.hasClass("fade")||!!t.find("> .fade").length);function o(){i.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),r?(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),n&&n()}i.length&&r?i.one("bsTransitionEnd",o).emulateTransitionEnd(a.TRANSITION_DURATION):o(),i.removeClass("in")};var e=s.fn.tab;s.fn.tab=t,s.fn.tab.Constructor=a,s.fn.tab.noConflict=function(){return s.fn.tab=e,this};var n=function(e){e.preventDefault(),t.call(s(this),"show")};s(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',n).on("click.bs.tab.data-api",'[data-toggle="pill"]',n)}(jQuery),function(l){"use strict";var c=function(e,t){this.options=l.extend({},c.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 n(i){return this.each(function(){var e=l(this),t=e.data("bs.affix"),n="object"==typeof i&&i;t||e.data("bs.affix",t=new c(this,n)),"string"==typeof i&&t[i]()})}c.VERSION="3.3.7",c.RESET="affix affix-top affix-bottom",c.DEFAULTS={offset:0,target:window},c.prototype.getState=function(e,t,n,i){var r=this.$target.scrollTop(),o=this.$element.offset(),a=this.$target.height();if(null!=n&&"top"==this.affixed)return r]/g)||[]).length<=0||0this.o.endDate?this.viewDate=new Date(this.o.endDate):this.viewDate=this.o.defaultViewDate,t?this.setValue():n.length&&String(e)!==String(this.dates)&&this._trigger("changeDate"),!this.dates.length&&e.length&&this._trigger("clearDate"),this.fill(),this.element.change(),this},fillDow:function(){var e=this.o.weekStart,t="";for(this.o.calendarWeeks&&(this.picker.find(".datepicker-days .datepicker-switch").attr("colspan",function(e,t){return parseInt(t)+1}),t+=' ');e";t+="",this.picker.find(".datepicker-days thead").append(t)},fillMonths:function(){for(var e=this._utc_to_local(this.viewDate),t="",n=0;n<12;){t+=''+A[this.o.language].monthsShort[n++]+""}this.picker.find(".datepicker-months td").html(t)},setRange:function(e){e&&e.length?this.range=k.map(e,function(e){return e.valueOf()}):delete this.range,this.fill()},getClassNames:function(e){var t=[],n=this.viewDate.getUTCFullYear(),i=this.viewDate.getUTCMonth(),r=new Date;return e.getUTCFullYear()n||e.getUTCFullYear()===n&&e.getUTCMonth()>i)&&t.push("new"),this.focusDate&&e.valueOf()===this.focusDate.valueOf()&&t.push("focused"),this.o.todayHighlight&&e.getUTCFullYear()===r.getFullYear()&&e.getUTCMonth()===r.getMonth()&&e.getUTCDate()===r.getDate()&&t.push("today"),-1!==this.dates.contains(e)&&t.push("active"),this.dateWithinRange(e)||t.push("disabled"),this.dateIsDisabled(e)&&t.push("disabled","disabled-date"),-1!==k.inArray(e.getUTCDay(),this.o.daysOfWeekHighlighted)&&t.push("highlighted"),this.range&&(e>this.range[0]&&e"+f+"",f+=i;c.find("td").html(l)},fill:function(){var e,t,n=new Date(this.viewDate),r=n.getUTCFullYear(),i=n.getUTCMonth(),o=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,a=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,s=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,l=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,c=A[this.o.language].today||A.en.today||"",u=A[this.o.language].clear||A.en.clear||"",d=A[this.o.language].titleFormat||A.en.titleFormat;if(!isNaN(r)&&!isNaN(i)){this.picker.find(".datepicker-days .datepicker-switch").text(E.formatDate(n,d,this.o.language)),this.picker.find("tfoot .today").text(c).toggle(!1!==this.o.todayBtn),this.picker.find("tfoot .clear").text(u).toggle(!1!==this.o.clearBtn),this.picker.find("thead .datepicker-title").text(this.o.title).toggle(""!==this.o.title),this.updateNavArrows(),this.fillMonths();var h=T(r,i-1,28),p=E.getDaysInMonth(h.getUTCFullYear(),h.getUTCMonth());h.setUTCDate(p),h.setUTCDate(p-(h.getUTCDay()-this.o.weekStart+7)%7);var f=new Date(h);h.getUTCFullYear()<100&&f.setUTCFullYear(h.getUTCFullYear()),f.setUTCDate(f.getUTCDate()+42),f=f.valueOf();for(var g,m=[];h.valueOf()"),this.o.calendarWeeks)){var v=new Date(+h+(this.o.weekStart-h.getUTCDay()-7)%7*864e5),y=new Date(Number(v)+(11-v.getUTCDay())%7*864e5),b=new Date(Number(b=T(y.getUTCFullYear(),0,1))+(11-b.getUTCDay())%7*864e5),w=(y-b)/864e5/7+1;m.push(''+w+"")}(g=this.getClassNames(h)).push("day"),this.o.beforeShowDay!==k.noop&&((t=this.o.beforeShowDay(this._utc_to_local(h)))===_?t={}:"boolean"==typeof t?t={enabled:t}:"string"==typeof t&&(t={classes:t}),!1===t.enabled&&g.push("disabled"),t.classes&&(g=g.concat(t.classes.split(/\s+/))),t.tooltip&&(e=t.tooltip)),g=k.isFunction(k.uniqueSort)?k.uniqueSort(g):k.unique(g),m.push('"+h.getUTCDate()+""),e=null,h.getUTCDay()===this.o.weekEnd&&m.push(""),h.setUTCDate(h.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").empty().append(m.join(""));var x=A[this.o.language].monthsTitle||A.en.monthsTitle||"Months",C=this.picker.find(".datepicker-months").find(".datepicker-switch").text(this.o.maxViewMode<2?x:r).end().find("span").removeClass("active");if(k.each(this.dates,function(e,t){t.getUTCFullYear()===r&&C.eq(t.getUTCMonth()).addClass("active")}),(r=this.o.endDate.getUTCFullYear()&&n>=this.o.endDate.getUTCMonth()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"});break;case 1:case 2:case 3:case 4:this.o.startDate!==-1/0&&t<=this.o.startDate.getUTCFullYear()||this.o.maxViewMode<2?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),this.o.endDate!==1/0&&t>=this.o.endDate.getUTCFullYear()||this.o.maxViewMode<2?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"})}}},click:function(e){var t,n,i,r,o,a,s;e.preventDefault(),e.stopPropagation(),(t=k(e.target)).hasClass("datepicker-switch")&&this.showMode(1);var l=t.closest(".prev, .next");0this.o.multidate;)this.dates.remove(0)},_setDate:function(e,t){t&&"date"!==t||this._toggle_multidate(e&&new Date(e)),t&&"view"!==t||(this.viewDate=e&&new Date(e)),this.fill(),this.setValue(),t&&"view"===t||this._trigger("changeDate"),this.inputField&&this.inputField.change(),!this.o.autoclose||t&&"date"!==t||this.hide()},moveDay:function(e,t){var n=new Date(e);return n.setUTCDate(e.getUTCDate()+t),n},moveWeek:function(e,t){return this.moveDay(e,7*t)},moveMonth:function(e,t){if(!(n=e)||isNaN(n.getTime()))return this.o.defaultViewDate;var n;if(!t)return e;var i,r,o=new Date(e.valueOf()),a=o.getUTCDate(),s=o.getUTCMonth(),l=Math.abs(t);if(t=0=this.o.startDate&&e<=this.o.endDate},keydown:function(e){if(this.picker.is(":visible")){var t,n,i=!1,r=this.focusDate||this.viewDate;switch(e.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide(),e.preventDefault(),e.stopPropagation();break;case 37:case 38:case 39:case 40:if(!this.o.keyboardNavigation||7===this.o.daysOfWeekDisabled.length)break;t=37===e.keyCode||38===e.keyCode?-1:1,0===this.viewMode?e.ctrlKey?(n=this.moveAvailableDate(r,t,"moveYear"))&&this._trigger("changeYear",this.viewDate):e.shiftKey?(n=this.moveAvailableDate(r,t,"moveMonth"))&&this._trigger("changeMonth",this.viewDate):37===e.keyCode||39===e.keyCode?n=this.moveAvailableDate(r,t,"moveDay"):this.weekOfDateIsDisabled(r)||(n=this.moveAvailableDate(r,t,"moveWeek")):1===this.viewMode?((38===e.keyCode||40===e.keyCode)&&(t*=4),n=this.moveAvailableDate(r,t,"moveMonth")):2===this.viewMode&&((38===e.keyCode||40===e.keyCode)&&(t*=4),n=this.moveAvailableDate(r,t,"moveYear")),n&&(this.focusDate=this.viewDate=n,this.setValue(),this.fill(),e.preventDefault());break;case 13:if(!this.o.forceParse)break;r=this.focusDate||this.dates.get(-1)||this.viewDate,this.o.keyboardNavigation&&(this._toggle_multidate(r),i=!0),this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.setValue(),this.fill(),this.picker.is(":visible")&&(e.preventDefault(),e.stopPropagation(),this.o.autoclose&&this.hide());break;case 9:this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill(),this.hide()}i&&(this.dates.length?this._trigger("changeDate"):this._trigger("clearDate"),this.inputField&&this.inputField.change())}else(40===e.keyCode||27===e.keyCode)&&(this.show(),e.stopPropagation())},showMode:function(e){e&&(this.viewMode=Math.max(this.o.minViewMode,Math.min(this.o.maxViewMode,this.viewMode+e))),this.picker.children("div").hide().filter(".datepicker-"+E.modes[this.viewMode].clsName).show(),this.updateNavArrows()}};var c=function(e,t){k(e).data("datepicker",this),this.element=k(e),this.inputs=k.map(t.inputs,function(e){return e.jquery?e[0]:e}),delete t.inputs,r.call(k(this.inputs),t).on("changeDate",k.proxy(this.dateUpdated,this)),this.pickers=k.map(this.inputs,function(e){return k(e).data("datepicker")}),this.updateDates()};c.prototype={updateDates:function(){this.dates=k.map(this.pickers,function(e){return e.getUTCDate()}),this.updateRanges()},updateRanges:function(){var n=k.map(this.dates,function(e){return e.valueOf()});k.each(this.pickers,function(e,t){t.setRange(n)})},dateUpdated:function(e){if(!this.updating){this.updating=!0;var t=k(e.target).data("datepicker");if(void 0!==t){var n=t.getUTCDate(),i=k.inArray(e.target,this.inputs),r=i-1,o=i+1,a=this.inputs.length;if(-1!==i){if(k.each(this.pickers,function(e,t){t.getUTCDate()||t.setUTCDate(n)}),nthis.dates[o])for(;othis.dates[o];)this.pickers[o++].setUTCDate(n);this.updateDates(),delete this.updating}}}},remove:function(){k.map(this.pickers,function(e){e.remove()}),delete this.element.data().datepicker}};var i=k.fn.datepicker,r=function(a){var s,l=Array.apply(null,arguments);if(l.shift(),this.each(function(){var e=k(this),t=e.data("datepicker"),n="object"==typeof a&&a;if(!t){var i=function(e,t){function n(e,t){return t.toLowerCase()}var i=k(e).data(),r={},o=new RegExp("^"+t.toLowerCase()+"([A-Z])");for(var a in t=new RegExp("^"+t.toLowerCase()),i)t.test(a)&&(r[a.replace(o,n)]=i[a]);return r}(this,"date"),r=function(e){var n={};if(A[e]||(e=e.split("-")[0],A[e])){var i=A[e];return k.each(d,function(e,t){t in i&&(n[t]=i[t])}),n}}(k.extend({},u,i,n).language),o=k.extend({},u,r,i,n);e.hasClass("input-daterange")||o.inputs?(k.extend(o,{inputs:o.inputs||e.find("input").toArray()}),t=new c(this,o)):t=new D(this,o),e.data("datepicker",t)}"string"==typeof a&&"function"==typeof t[a]&&(s=t[a].apply(t,l))}),s===_||s instanceof D||s instanceof c)return this;if(1(new Date).getFullYear()+t&&(e-=100)),e}function o(){var e=this.slice(0,d[l].length),t=d[l].slice(0,e.length);return e.toLowerCase()===t.toLowerCase()}if(!e)return _;if(e instanceof Date)return e;if("string"==typeof t&&(t=E.parseFormat(t)),t.toValue)return t.toValue(e,t,n);var a,s,l,c,u=/([\-+]\d+)([dmwy])/,d=e.match(/([\-+]\d+)([dmwy])/g),h={d:"moveDay",m:"moveMonth",w:"moveWeek",y:"moveYear"},p={yesterday:"-1d",today:"+0d",tomorrow:"+1d"};if(/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/.test(e)){for(e=new Date,l=0;l«»',contTemplate:'',footTemplate:''};E.template='
'+E.headTemplate+""+E.footTemplate+'
'+E.headTemplate+E.contTemplate+E.footTemplate+'
'+E.headTemplate+E.contTemplate+E.footTemplate+'
'+E.headTemplate+E.contTemplate+E.footTemplate+'
'+E.headTemplate+E.contTemplate+E.footTemplate+"
",k.fn.datepicker.DPGlobal=E,k.fn.datepicker.noConflict=function(){return k.fn.datepicker=i,this},k.fn.datepicker.version="1.6.4",k(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',function(e){var t=k(this);t.data("datepicker")||(e.preventDefault(),r.call(t,"show"))}),k(function(){r.call(k('[data-provide="datepicker-inline"]'))})}),function(e,t){"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e)}):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)}(0,function(e){!function(S){"use strict";var s,e,l,t,n,c,i;function b(e){return S.each([{re:/[\xC0-\xC6]/g,ch:"A"},{re:/[\xE0-\xE6]/g,ch:"a"},{re:/[\xC8-\xCB]/g,ch:"E"},{re:/[\xE8-\xEB]/g,ch:"e"},{re:/[\xCC-\xCF]/g,ch:"I"},{re:/[\xEC-\xEF]/g,ch:"i"},{re:/[\xD2-\xD6]/g,ch:"O"},{re:/[\xF2-\xF6]/g,ch:"o"},{re:/[\xD9-\xDC]/g,ch:"U"},{re:/[\xF9-\xFC]/g,ch:"u"},{re:/[\xC7-\xE7]/g,ch:"c"},{re:/[\xD1]/g,ch:"N"},{re:/[\xF1]/g,ch:"n"}],function(){e=e.replace(this.re,this.ch)}),e}function u(e){var t={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},n="(?:"+Object.keys(t).join("|")+")",i=new RegExp(n),r=new RegExp(n,"g"),o=null==e?"":""+e;return i.test(o)?o.replace(r,function(e){return t[e]}):o}String.prototype.includes||(s={}.toString,e=function(){try{var e={},t=Object.defineProperty,n=t(e,e,e)&&t}catch(e){}return n}(),l="".indexOf,t=function(e){if(null==this)throw new TypeError;var t=String(this);if(e&&"[object RegExp]"==s.call(e))throw new TypeError;var n=t.length,i=String(e),r=i.length,o=1'},maxOptions:!1,mobile:!1,selectOnTab:!1,dropdownAlignRight:!1},d.prototype={constructor:d,init:function(){var t=this,e=this.$element.attr("id");this.$element.addClass("bs-select-hidden"),this.liObj={},this.multiple=this.$element.prop("multiple"),this.autofocus=this.$element.prop("autofocus"),this.$newElement=this.createView(),this.$element.after(this.$newElement).appendTo(this.$newElement),this.$button=this.$newElement.children("button"),this.$menu=this.$newElement.children(".dropdown-menu"),this.$menuInner=this.$menu.children(".inner"),this.$searchbox=this.$menu.find("input"),this.$element.removeClass("bs-select-hidden"),this.options.dropdownAlignRight&&this.$menu.addClass("dropdown-menu-right"),void 0!==e&&(this.$button.attr("data-id",e),S('label[for="'+e+'"]').click(function(e){e.preventDefault(),t.$button.focus()})),this.checkDisabled(),this.clickListener(),this.options.liveSearch&&this.liveSearchListener(),this.render(),this.setStyle(),this.setWidth(),this.options.container&&this.selectPosition(),this.$menu.data("this",this),this.$newElement.data("this",this),this.options.mobile&&this.mobile(),this.$newElement.on({"hide.bs.dropdown":function(e){t.$element.trigger("hide.bs.select",e)},"hidden.bs.dropdown":function(e){t.$element.trigger("hidden.bs.select",e)},"show.bs.dropdown":function(e){t.$element.trigger("show.bs.select",e)},"shown.bs.dropdown":function(e){t.$element.trigger("shown.bs.select",e)}}),t.$element[0].hasAttribute("required")&&this.$element.on("invalid",function(){t.$button.addClass("bs-invalid").focus(),t.$element.on({"focus.bs.select":function(){t.$button.focus(),t.$element.off("focus.bs.select")},"shown.bs.select":function(){t.$element.val(t.$element.val()).off("shown.bs.select")},"rendered.bs.select":function(){this.validity.valid&&t.$button.removeClass("bs-invalid"),t.$element.off("rendered.bs.select")}})}),setTimeout(function(){t.$element.trigger("loaded.bs.select")})},createDropdown:function(){var e=this.multiple||this.options.showTick?" show-tick":"",t=this.$element.parent().hasClass("input-group")?" input-group-btn":"",n=this.autofocus?" autofocus":"",i=this.options.header?'
'+this.options.header+"
":"",r=this.options.liveSearch?'":"",o=this.multiple&&this.options.actionsBox?'
":"",a=this.multiple&&this.options.doneButton?'
":"",s='
";return S(s)},createView:function(){var e=this.createDropdown(),t=this.createLi();return e.find("ul")[0].innerHTML=t,e},reloadLi:function(){this.destroyLi();var e=this.createLi();this.$menuInner[0].innerHTML=e},destroyLi:function(){this.$menu.find("li").remove()},createLi:function(){var p=this,f=[],g=0,e=document.createElement("option"),m=-1,v=function(e,t,n,i){return""+e+""},y=function(e,t,n,i){return'"+e+''};if(this.options.title&&!this.multiple&&(m--,!this.$element.find(".bs-title-option").length)){var t=this.$element[0];e.className="bs-title-option",e.appendChild(document.createTextNode(this.options.title)),e.value="",t.insertBefore(e,t.firstChild),void 0===S(t.options[t.selectedIndex]).attr("selected")&&(e.selected=!0)}return this.$element.find("option").each(function(e){var t=S(this);if(m++,!t.hasClass("bs-title-option")){var n=this.className||"",i=this.style.cssText,r=t.data("content")?t.data("content"):t.html(),o=t.data("tokens")?t.data("tokens"):null,a=void 0!==t.data("subtext")?''+t.data("subtext")+"":"",s=void 0!==t.data("icon")?' ':"",l="OPTGROUP"===this.parentNode.tagName,c=this.disabled||l&&this.parentNode.disabled;if(""!==s&&c&&(s=""+s+""),p.options.hideDisabled&&c&&!l)m--;else{if(t.data("content")||(r=s+''+r+a+""),l&&!0!==t.data("divider")){var u=" "+this.parentNode.className||"";if(0===t.index()){g+=1;var d=this.parentNode.label,h=void 0!==t.parent().data("subtext")?''+t.parent().data("subtext")+"":"";d=(t.parent().data("icon")?' ':"")+''+d+h+"",0!==e&&0 ':"";return e=i.options.showSubtext&&t.data("subtext")&&!i.multiple?' '+t.data("subtext")+"":"",void 0!==t.attr("title")?t.attr("title"):t.data("content")&&i.options.showContent?t.data("content"):n+t.html()+e}}).toArray(),r=this.multiple?n.join(this.options.multipleSeparator):n[0];if(this.multiple&&-1");if(1o[1]||1==o.length&&2<=n.length){t=this.options.hideDisabled?", [disabled]":"";var a=this.$element.find("option").not('[data-divider="true"], [data-hidden="true"]'+t).length;r=("function"==typeof this.options.countSelectedText?this.options.countSelectedText(n.length,a):this.options.countSelectedText).replace("{0}",n.length.toString()).replace("{1}",a.toString())}}null==this.options.title&&(this.options.title=this.$element.attr("title")),"static"==this.options.selectedTextFormat&&(r=this.options.title),r||(r=void 0!==this.options.title?this.options.title:this.options.noneSelectedText),this.$button.attr("title",S.trim(r.replace(/<[^>]*>?/g,""))),this.$button.children(".filter-option").html(r),this.$element.trigger("rendered.bs.select")},setStyle:function(e,t){this.$element.attr("class")&&this.$newElement.addClass(this.$element.attr("class").replace(/selectpicker|mobile-device|bs-select-hidden|validate\[.*\]/gi,""));var n=e||this.options.style;"add"==t?this.$button.addClass(n):"remove"==t?this.$button.removeClass(n):(this.$button.removeClass(this.options.style),this.$button.addClass(n))},liHeight:function(e){if(e||!1!==this.options.size&&!this.sizeInfo){var t=document.createElement("div"),n=document.createElement("div"),i=document.createElement("ul"),r=document.createElement("li"),o=document.createElement("li"),a=document.createElement("a"),s=document.createElement("span"),l=this.options.header&&0this.options.size){var w=this.$lis.not(".divider").not(i).children().slice(0,this.options.size).last().parent().index(),x=this.$lis.slice(0,w+1).filter(".divider").length;o=h*this.options.size+x*n+v,c.options.container?(u.data("height")||u.data("height",u.height()),a=u.data("height")):a=u.height(),c.options.dropupAuto&&this.$newElement.toggleClass("dropup",l');var t,n,i=this,r=function(e){i.$bsContainer.addClass(e.attr("class").replace(/form-control|fit-width/gi,"")).toggleClass("dropup",e.hasClass("dropup")),t=e.offset(),n=e.hasClass("dropup")?0:e[0].offsetHeight,i.$bsContainer.css({top:t.top+n,left:t.left,width:e[0].offsetWidth})};this.$button.on("click",function(){var e=S(this);i.isDisabled()||(r(i.$newElement),i.$bsContainer.appendTo(i.options.container).toggleClass("open",!e.hasClass("open")).append(i.$menu))}),S(window).on("resize scroll",function(){r(i.$newElement)}),this.$element.on("hide.bs.select",function(){i.$menu.data("height",i.$menu.height()),i.$bsContainer.detach()})},setSelected:function(e,t,n){n||(n=this.findLis().eq(this.liObj[e])),n.toggleClass("selected",t)},setDisabled:function(e,t,n){n||(n=this.findLis().eq(this.liObj[e])),t?n.addClass("disabled").children("a").attr("href","#").attr("tabindex",-1):n.removeClass("disabled").children("a").removeAttr("href").attr("tabindex",0)},isDisabled:function(){return this.$element[0].disabled},checkDisabled:function(){var e=this;this.isDisabled()?(this.$newElement.addClass("disabled"),this.$button.addClass("disabled").attr("tabindex",-1)):(this.$button.hasClass("disabled")&&(this.$newElement.removeClass("disabled"),this.$button.removeClass("disabled")),-1!=this.$button.attr("tabindex")||this.$element.data("tabindex")||this.$button.removeAttr("tabindex")),this.$button.click(function(){return!e.isDisabled()})},tabIndex:function(){this.$element.data("tabindex")!==this.$element.attr("tabindex")&&-98!==this.$element.attr("tabindex")&&"-98"!==this.$element.attr("tabindex")&&(this.$element.data("tabindex",this.$element.attr("tabindex")),this.$button.attr("tabindex",this.$element.data("tabindex"))),this.$element.attr("tabindex",-98)},clickListener:function(){var y=this,t=S(document);this.$newElement.on("touchstart.dropdown",".dropdown-menu",function(e){e.stopPropagation()}),t.data("spaceSelect",!1),this.$button.on("keyup",function(e){/(32)/.test(e.keyCode.toString(10))&&t.data("spaceSelect")&&(e.preventDefault(),t.data("spaceSelect",!1))}),this.$button.on("click",function(){y.setSize()}),this.$element.on("shown.bs.select",function(){if(y.options.liveSearch||y.multiple){if(!y.multiple){var e=y.liObj[y.$element[0].selectedIndex];if("number"!=typeof e||!1===y.options.size)return;var t=y.$lis.eq(e)[0].offsetTop-y.$menuInner[0].offsetTop;t=t-y.$menuInner[0].offsetHeight/2+y.sizeInfo.liHeight/2,y.$menuInner[0].scrollTop=t}}else y.$menuInner.find(".selected a").focus()}),this.$menuInner.on("click","li a",function(e){var t=S(this),n=t.parent().data("originalIndex"),i=y.$element.val(),r=y.$element.prop("selectedIndex");if(y.multiple&&e.stopPropagation(),e.preventDefault(),!y.isDisabled()&&!t.parent().hasClass("disabled")){var o=y.$element.find("option"),a=o.eq(n),s=a.prop("selected"),l=a.parent("optgroup"),c=y.options.maxOptions,u=l.data("maxOptions")||!1;if(y.multiple){if(a.prop("selected",!s),y.setSelected(n,!s),t.blur(),!1!==c||!1!==u){var d=c');f[2]&&(g=g.replace("{var}",f[2][1"+g+"")),y.$element.trigger("maxReached.bs.select")),u&&h&&(v.append(S("
"+m+"
")),y.$element.trigger("maxReachedGrp.bs.select")),setTimeout(function(){y.setSelected(n,!1)},10),v.delay(750).fadeOut(300,function(){S(this).remove()})}}}else o.prop("selected",!1),a.prop("selected",!0),y.$menuInner.find(".selected").removeClass("selected"),y.setSelected(n,!0);y.multiple?y.options.liveSearch&&y.$searchbox.focus():y.$button.focus(),(i!=y.$element.val()&&y.multiple||r!=y.$element.prop("selectedIndex")&&!y.multiple)&&y.$element.trigger("changed.bs.select",[n,a.prop("selected"),s]).triggerNative("change")}}),this.$menu.on("click","li.disabled a, .popover-title, .popover-title :not(.close)",function(e){e.currentTarget==this&&(e.preventDefault(),e.stopPropagation(),y.options.liveSearch&&!S(e.target).hasClass("close")?y.$searchbox.focus():y.$button.focus())}),this.$menuInner.on("click",".divider, .dropdown-header",function(e){e.preventDefault(),e.stopPropagation(),y.options.liveSearch?y.$searchbox.focus():y.$button.focus()}),this.$menu.on("click",".popover-title .close",function(){y.$button.click()}),this.$searchbox.on("click",function(e){e.stopPropagation()}),this.$menu.on("click",".actions-btn",function(e){y.options.liveSearch?y.$searchbox.focus():y.$button.focus(),e.preventDefault(),e.stopPropagation(),S(this).hasClass("bs-select-all")?y.selectAll():y.deselectAll()}),this.$element.change(function(){y.render(!1)})},liveSearchListener:function(){var i=this,t=S('
  • ');this.$button.on("click.dropdown.data-api touchstart.dropdown.data-api",function(){i.$menuInner.find(".active").removeClass("active"),i.$searchbox.val()&&(i.$searchbox.val(""),i.$lis.not(".is-hidden").removeClass("hidden"),t.parent().length&&t.remove()),i.multiple||i.$menuInner.find(".selected").addClass("active"),setTimeout(function(){i.$searchbox.focus()},10)}),this.$searchbox.on("click.dropdown.data-api focus.dropdown.data-api touchend.dropdown.data-api",function(e){e.stopPropagation()}),this.$searchbox.on("input propertychange",function(){if(i.$searchbox.val()){var e=i.$lis.not(".is-hidden").removeClass("hidden").children("a");(e=i.options.liveSearchNormalize?e.not(":a"+i._searchStyle()+'("'+b(i.$searchbox.val())+'")'):e.not(":"+i._searchStyle()+'("'+i.$searchbox.val()+'")')).parent().addClass("hidden"),i.$lis.filter(".dropdown-header").each(function(){var e=S(this),t=e.data("optgroup");0===i.$lis.filter("[data-optgroup="+t+"]").not(e).not(".hidden").length&&(e.addClass("hidden"),i.$lis.filter("[data-optgroup="+t+"div]").addClass("hidden"))});var n=i.$lis.not(".hidden");n.each(function(e){var t=S(this);t.hasClass("divider")&&(t.index()===n.first().index()||t.index()===n.last().index()||n.eq(e+1).hasClass("divider"))&&t.addClass("hidden")}),i.$lis.not(".hidden, .no-results").length?t.parent().length&&t.remove():(t.parent().length&&t.remove(),t.html(i.options.noneResultsText.replace("{0}",'"'+u(i.$searchbox.val())+'"')).show(),i.$menuInner.append(t))}else i.$lis.not(".is-hidden").removeClass("hidden"),t.parent().length&&t.remove();i.$lis.filter(".active").removeClass("active"),i.$searchbox.val()&&i.$lis.not(".hidden, .divider, .dropdown-header").eq(0).addClass("active").children("a").focus(),S(this).focus()})},_searchStyle:function(){return{begins:"ibegins",startsWith:"ibegins"}[this.options.liveSearchStyle]||"icontains"},val:function(e){return void 0!==e?(this.$element.val(e),this.render(),this.$element):this.$element.val()},changeAll:function(e){void 0===e&&(e=!0),this.findLis();for(var t=this.$element.find("option"),n=this.$lis.not(".divider, .dropdown-header, .disabled, .hidden").toggleClass("selected",e),i=n.length,r=[],o=0;o=m.length&&(S(document).data("keycount",0),g>m.length&&(g=1)),t.eq(m[g-1]).children("a").focus()}if((/(13|32)/.test(e.keyCode.toString(10))||/(^9$)/.test(e.keyCode.toString(10))&&h.options.selectOnTab)&&c){if(/(32)/.test(e.keyCode.toString(10))||e.preventDefault(),h.options.liveSearch)/(32)/.test(e.keyCode.toString(10))||(h.$menuInner.find(".active a").click(),u.focus());else{var v=S(":focus");v.click(),v.focus(),e.preventDefault(),S(document).data("spaceSelect",!0)}S(document).data("keycount",0)}(/(^9$|27)/.test(e.keyCode.toString(10))&&c&&(h.multiple||h.options.liveSearch)||/(27)/.test(e.keyCode.toString(10))&&!c)&&(h.$menu.parent().removeClass("open"),h.options.container&&h.$newElement.removeClass("open"),h.$button.focus())}},mobile:function(){this.$element.addClass("mobile-device")},refresh:function(){this.$lis=null,this.liObj={},this.reloadLi(),this.render(),this.checkDisabled(),this.liHeight(!0),this.setStyle(),this.setWidth(),this.$lis&&this.$searchbox.trigger("propertychange"),this.$element.trigger("refreshed.bs.select")},hide:function(){this.$newElement.hide()},show:function(){this.$newElement.show()},remove:function(){this.$newElement.remove(),this.$element.remove()},destroy:function(){this.$newElement.before(this.$element).remove(),this.$bsContainer?this.$bsContainer.remove():this.$menu.remove(),this.$element.off(".bs.select").removeData("selectpicker").removeClass("bs-select-hidden selectpicker")}};var o=S.fn.selectpicker;S.fn.selectpicker=r,S.fn.selectpicker.Constructor=d,S.fn.selectpicker.noConflict=function(){return S.fn.selectpicker=o,this},S(document).data("keycount",0).on("keydown.bs.select",'.bootstrap-select [data-toggle=dropdown], .bootstrap-select [role="menu"], .bs-searchbox input',d.prototype.keydown).on("focusin.modal",'.bootstrap-select [data-toggle=dropdown], .bootstrap-select [role="menu"], .bs-searchbox input',function(e){e.stopPropagation()}),S(window).on("load.bs.select.data-api",function(){S(".selectpicker").each(function(){var e=S(this);r.call(e,e.data())})})}(e)}),function(e,t){if("function"==typeof define&&define.amd)define(["jquery"],t);else if("undefined"!=typeof exports)t(require("jquery"));else{t(e.jquery),e.bootstrapSwitch={}}}(this,function(e){"use strict";var t,n=(t=e)&&t.__esModule?t:{default:t};var i=Object.assign||function(e){for(var t=1;t",{class:function(){var e=[];return e.push(r.options.state?"on":"off"),r.options.size&&e.push(r.options.size),r.options.disabled&&e.push("disabled"),r.options.readonly&&e.push("readonly"),r.options.indeterminate&&e.push("indeterminate"),r.options.inverse&&e.push("inverse"),r.$element.attr("id")&&e.push("id-"+r.$element.attr("id")),e.map(r._getClass.bind(r)).concat([r.options.baseClass],r._getClasses(r.options.wrapperClass)).join(" ")}}),this.$container=s("
    ",{class:this._getClass("container")}),this.$on=s("",{html:this.options.onText,class:this._getClass("handle-on")+" "+this._getClass(this.options.onColor)}),this.$off=s("",{html:this.options.offText,class:this._getClass("handle-off")+" "+this._getClass(this.options.offColor)}),this.$label=s("",{html:this.options.labelText,class:this._getClass("label")}),this.$element.on("init.bootstrapSwitch",this.options.onInit.bind(this,i)),this.$element.on("switchChange.bootstrapSwitch",function(){for(var e=arguments.length,t=Array(e),n=0;n-n._handleWidth/2;n._dragEnd=!1,n.state(n.options.inverse?!t:t)}else n.state(!n.options.state);n._dragStart=!1}},"mouseleave.bootstrapSwitch":function(){n.$label.trigger("mouseup.bootstrapSwitch")}};this.$label.on(e)}},{key:"_externalLabelHandler",value:function(){var t=this,n=this.$element.closest("label");n.on("click",function(e){e.preventDefault(),e.stopImmediatePropagation(),e.target===n[0]&&t.toggleState()})}},{key:"_formHandler",value:function(){var e=this.$element.closest("form");e.data("bootstrap-switch")||e.on("reset.bootstrapSwitch",function(){window.setTimeout(function(){e.find("input").filter(function(){return s(this).data("bootstrap-switch")}).each(function(){return s(this).bootstrapSwitch("state",this.checked)})},1)}).data("bootstrap-switch",!0)}},{key:"_getClass",value:function(e){return this.options.baseClass+"-"+e}},{key:"_getClasses",value:function(e){return s.isArray(e)?e.map(this._getClass.bind(this)):[this._getClass(e)]}}]),t}();s.fn.bootstrapSwitch=function(o){for(var e=arguments.length,a=Array(1s.max&&(n=s.max),n=function(e){switch(s.forcestepdivisibility){case"round":return(Math.round(e/s.step)*s.step).toFixed(s.decimals);case"floor":return(Math.floor(e/s.step)*s.step).toFixed(s.decimals);case"ceil":return(Math.ceil(e/s.step)*s.step).toFixed(s.decimals);default:return e}}(n),Number(e).toString()!==n.toString()&&(c.val(n),c.trigger("change"))):""!==s.replacementval&&(c.val(s.replacementval),c.trigger("change"))}function p(){if(s.booster){var e=Math.pow(2,Math.floor(u/s.boostat))*s.step;return s.maxboostedstep&&e>s.maxboostedstep&&(e=s.maxboostedstep,n=Math.round(n/e)*e),Math.max(s.step,e)}return s.step}function f(){h(),n=parseFloat(r.input.val()),isNaN(n)&&(n=0);var e=n,t=p();(n+=t)>s.max&&(n=s.max,c.trigger("touchspin.on.max"),y()),r.input.val(Number(n).toFixed(s.decimals)),e!==n&&c.trigger("change")}function g(){h(),n=parseFloat(r.input.val()),isNaN(n)&&(n=0);var e=n,t=p();(n-=t)'+s.prefix+"",a=''+s.postfix+"";i.hasClass("input-group-btn")?(t='",i.append(t)):(t='",C(t).insertBefore(c));r.hasClass("input-group-btn")?(n='",r.prepend(n)):(n='",C(n).insertAfter(c));C(o).insertBefore(c),C(a).insertAfter(c),l=e}(t):function(){var e;e=s.verticalbuttons?'
    '+s.prefix+''+s.postfix+'
    ':'
    '+s.prefix+''+s.postfix+'
    ";l=C(e).insertBefore(c),C(".bootstrap-touchspin-prefix",l).after(c),c.hasClass("input-sm")?l.addClass("input-group-sm"):c.hasClass("input-lg")&&l.addClass("input-group-lg")}()}(),r={down:C(".bootstrap-touchspin-down",l),up:C(".bootstrap-touchspin-up",l),input:C("input",l),prefix:C(".bootstrap-touchspin-prefix",l).addClass(s.prefix_extraclass),postfix:C(".bootstrap-touchspin-postfix",l).addClass(s.postfix_extraclass)},function(){""===s.prefix&&r.prefix.hide();""===s.postfix&&r.postfix.hide()}(),c.on("keydown",function(e){var t=e.keyCode||e.which;38===t?("up"!==d&&(f(),v()),e.preventDefault()):40===t&&("down"!==d&&(g(),m()),e.preventDefault())}),c.on("keyup",function(e){var t=e.keyCode||e.which;38===t?y():40===t&&y()}),c.on("blur",function(){h()}),r.down.on("keydown",function(e){var t=e.keyCode||e.which;32!==t&&13!==t||("down"!==d&&(g(),m()),e.preventDefault())}),r.down.on("keyup",function(e){var t=e.keyCode||e.which;32!==t&&13!==t||y()}),r.up.on("keydown",function(e){var t=e.keyCode||e.which;32!==t&&13!==t||("up"!==d&&(f(),v()),e.preventDefault())}),r.up.on("keyup",function(e){var t=e.keyCode||e.which;32!==t&&13!==t||y()}),r.down.on("mousedown.touchspin",function(e){r.down.off("touchstart.touchspin"),c.is(":disabled")||(g(),m(),e.preventDefault(),e.stopPropagation())}),r.down.on("touchstart.touchspin",function(e){r.down.off("mousedown.touchspin"),c.is(":disabled")||(g(),m(),e.preventDefault(),e.stopPropagation())}),r.up.on("mousedown.touchspin",function(e){r.up.off("touchstart.touchspin"),c.is(":disabled")||(f(),v(),e.preventDefault(),e.stopPropagation())}),r.up.on("touchstart.touchspin",function(e){r.up.off("mousedown.touchspin"),c.is(":disabled")||(f(),v(),e.preventDefault(),e.stopPropagation())}),r.up.on("mouseout touchleave touchend touchcancel",function(e){d&&(e.stopPropagation(),y())}),r.down.on("mouseout touchleave touchend touchcancel",function(e){d&&(e.stopPropagation(),y())}),r.down.on("mousemove touchmove",function(e){d&&(e.stopPropagation(),e.preventDefault())}),r.up.on("mousemove touchmove",function(e){d&&(e.stopPropagation(),e.preventDefault())}),C(document).on(k(["mouseup","touchend","touchcancel"],S).join(" "),function(e){d&&(e.preventDefault(),y())}),C(document).on(k(["mousemove","touchmove","scroll","scrollstart"],S).join(" "),function(e){d&&(e.preventDefault(),y())}),c.on("mousewheel DOMMouseScroll",function(e){if(s.mousewheel&&c.is(":focus")){var t=e.originalEvent.wheelDelta||-e.originalEvent.deltaY||-e.originalEvent.detail;e.stopPropagation(),e.preventDefault(),t<0?g():f()}}),c.on("touchspin.uponce",function(){y(),f()}),c.on("touchspin.downonce",function(){y(),g()}),c.on("touchspin.startupspin",function(){v()}),c.on("touchspin.startdownspin",function(){m()}),c.on("touchspin.stopspin",function(){y()}),c.on("touchspin.updatesettings",function(e,t){!function(e){var t;t=e,s=C.extend({},s,t),t.postfix&&c.parent().find(".bootstrap-touchspin-postfix").text(t.postfix),t.prefix&&c.parent().find(".bootstrap-touchspin-prefix").text(t.prefix),h();var n=r.input.val();""!==n&&(n=Number(r.input.val()),r.input.val(n.toFixed(s.decimals)))}(t)}),r.input.css("display","block");var i}()})}this.each(function(){var e=C(this).data();C(document).off(k(["mouseup","touchend","touchcancel","mousemove","touchmove","scroll","scrollstart"],e.spinnerid).join(" "))})}}(jQuery),function(){var O={version:"3.5.17"},o=[].slice,h=function(e){return o.call(e)},b=this.document;function s(e){return e&&(e.ownerDocument||e.document||e).documentElement}function N(e){return e&&(e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView)}if(b)try{h(b.documentElement.childNodes)[0].nodeType}catch(e){h=function(e){for(var t=e.length,n=new Array(t);t--;)n[t]=e[t];return n}}if(Date.now||(Date.now=function(){return+new Date}),b)try{b.createElement("DIV").style.setProperty("opacity",0,"")}catch(e){var t=this.Element.prototype,n=t.setAttribute,i=t.setAttributeNS,r=this.CSSStyleDeclaration.prototype,a=r.setProperty;t.setAttribute=function(e,t){n.call(this,e,t+"")},t.setAttributeNS=function(e,t,n){i.call(this,e,t,n+"")},r.setProperty=function(e,t,n){a.call(this,e,t+"",n)}}function l(e,t){return e>>1;o(e[r],t)<0?n=r+1:i=r}return n},right:function(e,t,n,i){for(arguments.length<3&&(n=0),arguments.length<4&&(i=e.length);n>>1;0t;)r.push(i/o);else for(;(i=e+n*++a)=f.length)return h?h.call(p,e):d?e.sort(d):e;for(var t,r,o,a,s=-1,l=e.length,c=f[i++],u=new y;++s=f.length)return e;var r=[],o=t[i++];return e.forEach(function(e,t){r.push({key:e,values:n(t,i)})}),o?r.sort(function(e,t){return o(e.key,t.key)}):r}(g(O.map,e,0),0)},p.key=function(e){return f.push(e),p},p.sortKeys=function(e){return t[f.length-1]=e,p},p.sortValues=function(e){return d=e,p},p.rollup=function(e){return h=e,p},p},O.set=function(e){var t=new T;if(e)for(var n=0,i=e.length;n>16,e>>8&255,255&e)}function at(e){return ot(e)+""}Qe.brighter=function(e){return new Ge(Math.min(100,this.l+Ye*(arguments.length?e:1)),this.a,this.b)},Qe.darker=function(e){return new Ge(Math.max(0,this.l-Ye*(arguments.length?e:1)),this.a,this.b)},Qe.rgb=function(){return Ze(this.l,this.a,this.b)};var st=(O.rgb=rt).prototype=new qe;function lt(e){return e<16?"0"+Math.max(0,e).toString(16):Math.min(255,e).toString(16)}function ct(e,t,n){var i,r,o,a=0,s=0,l=0;if(i=/([a-z]+)\((.*)\)/.exec(e=e.toLowerCase()))switch(r=i[2].split(","),i[1]){case"hsl":return n(parseFloat(r[0]),parseFloat(r[1])/100,parseFloat(r[2])/100);case"rgb":return t(pt(r[0]),pt(r[1]),pt(r[2]))}return(o=ft.get(e))?t(o.r,o.g,o.b):(null==e||"#"!==e.charAt(0)||isNaN(o=parseInt(e.slice(1),16))||(4===e.length?(a=(3840&o)>>4,a|=a>>4,s=240&o,s|=s>>4,l=15&o,l|=l<<4):7===e.length&&(a=(16711680&o)>>16,s=(65280&o)>>8,l=255&o)),t(a,s,l))}function ut(e,t,n){var i,r,o=Math.min(e/=255,t/=255,n/=255),a=Math.max(e,t,n),s=a-o,l=(a+o)/2;return s?(r=l<.5?s/(a+o):s/(2-a-o),i=e==a?(t-n)/s+(t=t.t&&t.c(e-t.t)&&(t.c=null),t=t.n;return e}function Tt(){for(var e,t=yt,n=1/0;t;)t.c?(t.t=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,It=O.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=O.round(e,Dt(e,t))).toFixed(Math.max(0,Math.min(20,Dt(e*(1+1e-15),t))))}});function Pt(e){return e+""}var $t=O.time={},Mt=Date;function Ot(){this._=new Date(1t));)o=l[r=(r+1)%l.length];return i.reverse().join(s)}:L,function(e){var t=Et.exec(e),u=t[1]||" ",d=t[2]||">",h=t[3]||"-",n=t[4]||"",p=t[5],f=+t[6],g=t[7],m=t[8],v=t[9],y=1,b="",w="",x=!1,C=!0;switch(m&&(m=+m.substring(1)),(p||"0"===u&&"="===d)&&(p=u="0",d="="),v){case"n":g=!0,v="g";break;case"%":y=100,w="%",v="f";break;case"p":y=100,w="%",v="r";break;case"b":case"o":case"x":case"X":"#"===n&&(b="0"+v.toLowerCase());case"c":C=!1;case"d":x=!0,m=0;break;case"s":y=-1,v="r"}"$"===n&&(b=i[0],w=i[1]),"r"!=v||m||(v="g"),null!=m&&("g"==v?m=Math.max(1,Math.min(21,m)):"e"!=v&&"f"!=v||(m=Math.max(0,Math.min(20,m)))),v=It.get(v)||Pt;var S=p&&g;return function(e){var t=w;if(x&&e%1)return"";var n=e<0||0===e&&1/e<0?(e=-e,"-"):"-"===h?"":h;if(y<0){var i=O.formatPrefix(e,m);e=i.scale(e),t=i.symbol+w}else e*=y;var r,o,a=(e=v(e,m)).lastIndexOf(".");if(a<0){var s=C?e.lastIndexOf("e"):-1;s<0?(r=e,o=""):(r=e.substring(0,s),o=e.substring(s))}else r=e.substring(0,a),o=k+e.substring(a+1);!p&&g&&(r=_(r,1/0));var l=b.length+r.length+o.length+(S?0:n.length),c=l"===d?c+n+e:"^"===d?c.substring(0,l>>=1)+n+e+c.substring(l):n+(S?e:c+e))+t}}),timeFormat:function(e){var t=e.dateTime,n=e.date,i=e.time,r=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths;function c(s){var l=s.length;function e(e){for(var t,n,i,r=[],o=-1,a=0;++ob(u,h)&&(h=e):b(e,h)>b(u,h)&&(u=e):u<=h?(eb(u,h)&&(h=e):b(e,h)>b(u,h)&&(u=e)}else v(e,t);g=n,f=e}function e(){m.point=a}function t(){c[0]=u,c[1]=h,m.point=v,g=null}function n(e,t){if(g){var n=e-f;o+=180Ce&&(u=-(h=180)),c[0]=u,c[1]=h,g=null}function b(e,t){return(t-=e)<0?t+360:t}function w(e,t){return e[0]-t[0]}function x(e,t){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:eb(s[0],s[1])&&(s[1]=o[1]),b(o[0],s[1])>b(s[0],s[1])&&(s[0]=o[0])):n.push(s=o);for(var i,r,o,a=-1/0,s=(t=0,n[r=n.length-1]);t<=r;s=o,++t)o=n[t],(i=b(s[1],o[0]))>a&&(a=i,u=o[0],h=s[1])}return l=c=null,u===1/0||d===1/0?[[NaN,NaN],[NaN,NaN]]:[[u,d],[h,p]]}}(),O.geo.centroid=function(e){vn=yn=bn=wn=xn=Cn=Sn=kn=_n=Tn=Dn=0,O.geo.stream(e,Fn);var t=_n,n=Tn,i=Dn,r=t*t+n*n+i*i;return rCe?Math.atan((Math.sin(i)*(s=Math.cos(o))*Math.sin(r)-Math.sin(o)*(a=Math.cos(i))*Math.sin(n))/(a*s*l)):(i+o)/2,d.point(g,f),d.lineEnd(),d.lineStart(),d.point(c,f),h=0),d.point(p=e,f=t),g=c},lineEnd:function(){d.lineEnd(),p=f=NaN},clean:function(){return 2-h}}},function(e,t,n,i){var r;if(null==e)r=n*De,i.point(-ke,r),i.point(0,r),i.point(ke,r),i.point(ke,0),i.point(ke,-r),i.point(0,-r),i.point(-ke,-r),i.point(-ke,0),i.point(-ke,r);else if(M(e[0]-t[0])>Ce){var o=e[0]i&&0Ce;return Jn(g,function(s){var l,c,u,d,h;return{lineStart:function(){d=u=!1,h=1},point:function(e,t){var n,i=[e,t],r=g(e,t),o=p?r?0:v(e,t):r?v(e+(e<0?ke:-ke),t):0;if(!l&&(d=u=r)&&s.lineStart(),r!==u&&(n=m(l,i),(Rn(l,n)||Rn(i,n))&&(i[0]+=Ce,i[1]+=Ce,r=g(i[0],i[1]))),r!==u)h=0,r?(s.lineStart(),n=m(i,l),s.point(n[0],n[1])):(n=m(l,i),s.point(n[0],n[1]),s.lineEnd()),l=n;else if(f&&l&&p^r){var a;o&c||!(a=m(i,l,!0))||(h=0,p?(s.lineStart(),s.point(a[0][0],a[0][1]),s.point(a[1][0],a[1][1]),s.lineEnd()):(s.point(a[1][0],a[1][1]),s.lineEnd(),s.lineStart(),s.point(a[0][0],a[0][1])))}!r||l&&Rn(l,i)||s.point(i[0],i[1]),l=i,u=r,c=o},lineEnd:function(){u&&s.lineEnd(),l=null},clean:function(){return h|(d&&u)<<1}}},Li(r,6*Ae),p?[0,-r]:[-ke,r-ke]);function g(e,t){return Math.cos(e)*Math.cos(t)>T}function m(e,t,n){var i=[1,0,0],r=Mn(Pn(e),Pn(t)),o=$n(r,r),a=r[0],s=o-a*a;if(!s)return!n&&e;var l=T*o/s,c=-T*a/s,u=Mn(i,r),d=Nn(i,l);On(d,Nn(r,c));var h=u,p=$n(d,h),f=$n(h,h),g=p*p-f*($n(d,d)-1);if(!(g<0)){var m=Math.sqrt(g),v=Nn(h,(-p-m)/f);if(On(v,d),v=jn(v),!n)return v;var y,b=e[0],w=t[0],x=e[1],C=t[1];wCe}).map(c)).concat(O.range(Math.ceil(a/f)*f,o,f).filter(function(e){return M(e%m)>Ce}).map(u))}return y.lines=function(){return e().map(function(e){return{type:"LineString",coordinates:e}})},y.outline=function(){return{type:"Polygon",coordinates:[d(r).concat(h(s).slice(1),d(i).reverse().slice(1),h(l).reverse().slice(1))]}},y.extent=function(e){return arguments.length?y.majorExtent(e).minorExtent(e):y.minorExtent()},y.majorExtent=function(e){return arguments.length?(r=+e[0][0],i=+e[1][0],l=+e[0][1],s=+e[1][1],i=c)return}else o={x:m,y:l};n={x:m,y:c}}else{if(o){if(o.y=c)return}else o={x:(l-r)/i,y:l};n={x:(c-r)/i,y:c}}else{if(o){if(o.y=s)return}else o={x:a,y:i*a+r};n={x:s,y:i*s+r}}else{if(o){if(o.xCe||M(r-n)>Ce)&&(s.splice(a,0,new Pr((v=o.site,y=u,b=M(i-d)=a&&i.x<=l&&i.y>=s&&i.y<=c?[[a,c],[l,c],[l,s],[a,s]]:[]).point=r[t]}),o}function d(e){return e.map(function(e,t){return{x:Math.round(i(e,t)/Ce)*Ce,y:Math.round(r(e,t)/Ce)*Ce,i:t}})}return o.links=function(t){return jr(d(t)).edges.filter(function(e){return e.l&&e.r}).map(function(e){return{source:t[e.l.i],target:t[e.r.i]}})},o.triangles=function(h){var p=[];return jr(d(h)).cells.forEach(function(e,t){for(var n,i,r,o,a=e.site,s=e.edges.sort(Sr),l=-1,c=s.length,u=s[c-1].edge,d=u.l===a?u.r:u.l;++lo&&(r=i.slice(o,r),s[a]?s[a]+=r:s[++a]=r),(t=t[0])===(n=n[0])?s[a]?s[a]+=n:s[++a]=n:(s[++a]=null,l.push({i:a,x:Ur(t,n)})),o=Gr.lastIndex;return ol&&(l=t.x),t.y>c&&(c=t.y),n.push(t.x),i.push(t.y);else for(r=0;rr&&(i=n,r=t);return i}function Vo(e){return e.reduce(Uo,0)}function Uo(e,t){return e+t[1]}function zo(e,t){return Wo(e,Math.ceil(Math.log(t.length)/Math.LN2+1))}function Wo(e,t){for(var n=-1,i=+e[0],r=(e[1]-i)/t,o=[];++n<=t;)o[n]=r*n+i;return o}function Go(e){return[O.min(e),O.max(e)]}function Yo(e,t){return e.value-t.value}function Xo(e,t){var n=e._pack_next;(e._pack_next=t)._pack_prev=e,(t._pack_next=n)._pack_prev=t}function Jo(e,t){(e._pack_next=t)._pack_prev=e}function Ko(e,t){var n=t.x-e.x,i=t.y-e.y,r=e.r+t.r;return n*n+i*i<.999*r*r}function Qo(e){if((t=e.children)&&(l=t.length)){var t,n,i,r,o,a,s,l,c=1/0,u=-1/0,d=1/0,h=-1/0;if(t.forEach(Zo),(n=t[0]).x=-n.r,n.y=0,b(n),1=a[0]&&i<=a[1]&&((n=r[O.bisect(s,i,1,c)-1]).y+=u,n.push(e[t]));return r}return n.value=function(e){return arguments.length?(h=e,n):h},n.range=function(e){return arguments.length?(p=gt(e),n):p},n.bins=function(t){return arguments.length?(f="number"==typeof t?function(e){return Wo(e,t)}:gt(t),n):f},n.frequency=function(e){return arguments.length?(d=!!e,n):d},n},O.layout.pack=function(){var l,c=O.layout.hierarchy().sort(Yo),u=0,d=[1,1];function t(e,t){var n=c.call(this,e,t),i=n[0],r=d[0],o=d[1],a=null==l?Math.sqrt:"function"==typeof l?l:function(){return l};if(i.x=i.y=0,Eo(i,function(e){e.r=+a(e.value)}),Eo(i,Qo),u){var s=u*(l?1:Math.max(2*i.r/r,2*i.r/o))/2;Eo(i,function(e){e.r+=s}),Eo(i,Qo),Eo(i,function(e){e.r-=s})}return function e(t,n,i,r){var o=t.children;t.x=n+=r*t.x;t.y=i+=r*t.y;t.r*=r;if(o)for(var a=-1,s=o.length;++aa.x&&(a=e),e.depth>s.depth&&(s=e)});var l=g(o,a)/2-o.x,c=h[0]/(a.x+g(a,o)/2+l),u=h[1]/(s.depth||1);Ao(i,function(e){e.x=(e.x+l)*c,e.y=e.depth*u})}return n}function f(e){var t=e.children,n=e.parent.children,i=e.i?n[e.i-1]:null;if(t.length){!function(e){var t,n=0,i=0,r=e.children,o=r.length;for(;0<=--o;)(t=r[o]).z+=n,t.m+=n,n+=t.s+(i+=t.c)}(e);var r=(t[0].z+t[t.length-1].z)/2;i?(e.z=i.z+g(e._,i._),e.m=e.z-r):e.z=r}else i&&(e.z=i.z+g(e._,i._));e.parent.A=function(e,t,n){if(t){for(var i,r=e,o=e,a=t,s=r.parent.children[0],l=r.m,c=o.m,u=a.m,d=s.m;a=ra(a),r=ia(r),a&&r;)s=ia(s),(o=ra(o)).a=e,0<(i=a.z+u-r.z-l+g(a._,r._))&&(oa((p=e,f=n,(h=a).a.parent===p.parent?h.a:f),e,i),l+=i,c+=i),u+=a.m,l+=r.m,d+=s.m,c+=o.m;a&&!ra(o)&&(o.t=a,o.m+=u-c),r&&!ia(s)&&(s.t=r,s.m+=l-d,n=e)}var h,p,f;return n}(e,i,e.parent.A||n[0])}function m(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function v(e){e.x*=h[0],e.y=e.depth*h[1]}return t.separation=function(e){return arguments.length?(g=e,t):g},t.size=function(e){return arguments.length?(p=null==(h=e)?v:null,t):p?null:h},t.nodeSize=function(e){return arguments.length?(p=null==(h=e)?null:v,t):p?h:null},Do(t,d)},O.layout.cluster=function(){var u=O.layout.hierarchy().sort(null).value(null),d=na,h=[1,1],p=!1;function t(e,t){var r,n=u.call(this,e,t),i=n[0],o=0;Eo(i,function(e){var t,n,i=e.children;i&&i.length?(e.x=(n=i).reduce(function(e,t){return e+t.x},0)/n.length,e.y=(t=i,1+O.max(t,function(e){return e.y}))):(e.x=r?o+=d(e,r):0,e.y=0,r=e)});var a=function e(t){var n=t.children;return n&&n.length?e(n[0]):t}(i),s=function e(t){var n,i=t.children;return i&&(n=i.length)?e(i[n-1]):t}(i),l=a.x-d(a,s)/2,c=s.x+d(s,a)/2;return Eo(i,p?function(e){e.x=(e.x-i.x)*h[0],e.y=(i.y-e.y)*h[1]}:function(e){e.x=(e.x-l)/(c-l)*h[0],e.y=(1-(i.y?e.y/i.y:1))*h[1]}),n}return t.separation=function(e){return arguments.length?(d=e,t):d},t.size=function(e){return arguments.length?(p=null==(h=e),t):p?null:h},t.nodeSize=function(e){return arguments.length?(p=null!=(h=e),t):p?h:null},Do(t,u)},O.layout.treemap=function(){var i,r=O.layout.hierarchy(),u=Math.round,o=[1,1],a=null,d=aa,s=!1,h="squarify",l=.5*(1+Math.sqrt(5));function p(e,t){for(var n,i,r=-1,o=e.length;++rn.dy)&&(c=n.dy);++on.dx)&&(c=n.dx);++oi;o--);t=t.slice(r,o)}return t};r.tickFormat=function(e,n){if(!arguments.length)return Ca;arguments.length<2?n=Ca:"function"!=typeof n&&(n=O.format(n));var i=Math.max(1,l*e/r.ticks().length);return function(e){var t=e/h(Math.round(d(e)));return t*lrect,.s>rect").attr("width",S[1]-S[0])}function I(e){e.select(".extent").attr("y",k[0]),e.selectAll(".extent,.e>rect,.w>rect").attr("height",k[1]-k[0])}function s(){var d,n,i=this,e=O.select(O.event.target),r=w.of(i,arguments),o=O.select(i),t=e.datum(),a=!/^(n|s)$/.test(t)&&x,s=!/^(e|w)$/.test(t)&&C,h=e.classed("extent"),l=ye(i),p=O.mouse(i),c=O.select(N(i)).on("keydown.brush",function(){32==O.event.keyCode&&(h||(d=null,p[0]-=S[1],p[1]-=k[1],h=2),j())}).on("keyup.brush",function(){32==O.event.keyCode&&2==h&&(p[0]+=S[1],p[1]+=k[1],h=0,j())});if(O.event.changedTouches?c.on("touchmove.brush",g).on("touchend.brush",v):c.on("mousemove.brush",g).on("mouseup.brush",v),o.interrupt().selectAll("*").interrupt(),h)p[0]=S[0]-p[0],p[1]=k[0]-p[1];else if(t){var u=+/w$/.test(t),f=+/^n/.test(t);n=[S[1-u]-p[0],k[1-f]-p[1]],p[0]=S[u],p[1]=k[f]}else O.event.altKey&&(d=p.slice());function g(){var e=O.mouse(i),t=!1;n&&(e[0]+=n[0],e[1]+=n[1]),h||(O.event.altKey?(d||(d=[(S[0]+S[1])/2,(k[0]+k[1])/2]),p[0]=S[+(e[0]/g,">"):e},y=function(e){var t=e.getBoundingClientRect(),n=[e.pathSegList.getItem(0),e.pathSegList.getItem(1)];return{x:n[0].x,y:Math.min(n[0].y,n[1].y),width:t.width,height:t.height}};function u(e,t){var n=this;n.component=e,n.params=t||{},n.d3=e.d3,n.scale=n.d3.scale.linear(),n.range,n.orient="bottom",n.innerTickSize=6,n.outerTickSize=this.params.withOuterTick?6:0,n.tickPadding=3,n.tickValues=null,n.tickFormat,n.tickArguments,n.tickOffset=0,n.tickCulling=!0,n.tickCentered,n.tickTextCharSize,n.tickTextRotate=n.params.tickTextRotate,n.tickLength,n.axis=n.generateAxis()}(o=u.prototype).axisX=function(e,t,n){e.attr("transform",function(e){return"translate("+Math.ceil(t(e)+n)+", 0)"})},o.axisY=function(e,t){e.attr("transform",function(e){return"translate(0,"+Math.ceil(t(e))+")"})},o.scaleExtent=function(e){var t=e[0],n=e[e.length-1];return tt.getTotalLength())break;n--}while(0=this.numberOfItems)throw"INDEX_SIZE_ERR"},window.SVGPathSegList.prototype.getItem=function(e){return this._checkPathSynchronizedToList(),this._checkValidIndex(e),this._list[e]},window.SVGPathSegList.prototype.insertItemBefore=function(e,t){return this._checkPathSynchronizedToList(),t>this.numberOfItems&&(t=this.numberOfItems),e._owningPathSegList&&(e=e.clone()),this._list.splice(t,0,e),(e._owningPathSegList=this)._writeListToPath(),e},window.SVGPathSegList.prototype.replaceItem=function(e,t){return this._checkPathSynchronizedToList(),e._owningPathSegList&&(e=e.clone()),this._checkValidIndex(t),((this._list[t]=e)._owningPathSegList=this)._writeListToPath(),e},window.SVGPathSegList.prototype.removeItem=function(e){this._checkPathSynchronizedToList(),this._checkValidIndex(e);var t=this._list[e];return this._list.splice(e,1),this._writeListToPath(),t},window.SVGPathSegList.prototype.appendItem=function(e){return this._checkPathSynchronizedToList(),e._owningPathSegList&&(e=e.clone()),this._list.push(e),(e._owningPathSegList=this)._writeListToPath(),e},window.SVGPathSegList._pathSegArrayAsString=function(e){var t="",n=!0;return e.forEach(function(e){n?(n=!1,t+=e._asPathString()):t+=" "+e._asPathString()}),t},window.SVGPathSegList.prototype._parsePath=function(e){if(!e||0==e.length)return[];var i=this,t=function(){this.pathSegList=[]};t.prototype.appendSegment=function(e){this.pathSegList.push(e)};var n=function(e){this._string=e,this._currentIndex=0,this._endIndex=this._string.length,this._previousCommand=window.SVGPathSeg.PATHSEG_UNKNOWN,this._skipOptionalSpaces()};n.prototype._isCurrentSpace=function(){var e=this._string[this._currentIndex];return e<=" "&&(" "==e||"\n"==e||"\t"==e||"\r"==e||"\f"==e)},n.prototype._skipOptionalSpaces=function(){for(;this._currentIndex=this._endIndex||this._string.charAt(this._currentIndex)<"0"||"9"=this._endIndex||this._string.charAt(this._currentIndex)<"0"||"9"=this._endIndex)){var e=!1,t=this._string.charAt(this._currentIndex++);if("0"==t)e=!1;else{if("1"!=t)return;e=!0}return this._skipOptionalSpacesOrDelimiter(),e}},n.prototype.parseSegment=function(){var e=this._string[this._currentIndex],t=this._pathSegTypeFromChar(e);if(t==window.SVGPathSeg.PATHSEG_UNKNOWN){if(this._previousCommand==window.SVGPathSeg.PATHSEG_UNKNOWN)return null;if((t=this._nextCommandHelper(e,this._previousCommand))==window.SVGPathSeg.PATHSEG_UNKNOWN)return null}else this._currentIndex++;switch(this._previousCommand=t){case window.SVGPathSeg.PATHSEG_MOVETO_REL:return new window.SVGPathSegMovetoRel(i,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_MOVETO_ABS:return new window.SVGPathSegMovetoAbs(i,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_REL:return new window.SVGPathSegLinetoRel(i,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_ABS:return new window.SVGPathSegLinetoAbs(i,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL:return new window.SVGPathSegLinetoHorizontalRel(i,this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS:return new window.SVGPathSegLinetoHorizontalAbs(i,this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL:return new window.SVGPathSegLinetoVerticalRel(i,this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS:return new window.SVGPathSegLinetoVerticalAbs(i,this._parseNumber());case window.SVGPathSeg.PATHSEG_CLOSEPATH:return this._skipOptionalSpaces(),new window.SVGPathSegClosePath(i);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL:var n={x1:this._parseNumber(),y1:this._parseNumber(),x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new window.SVGPathSegCurvetoCubicRel(i,n.x,n.y,n.x1,n.y1,n.x2,n.y2);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS:return n={x1:this._parseNumber(),y1:this._parseNumber(),x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoCubicAbs(i,n.x,n.y,n.x1,n.y1,n.x2,n.y2);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL:return n={x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoCubicSmoothRel(i,n.x,n.y,n.x2,n.y2);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS:return n={x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoCubicSmoothAbs(i,n.x,n.y,n.x2,n.y2);case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL:return n={x1:this._parseNumber(),y1:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoQuadraticRel(i,n.x,n.y,n.x1,n.y1);case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS:return n={x1:this._parseNumber(),y1:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoQuadraticAbs(i,n.x,n.y,n.x1,n.y1);case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL:return new window.SVGPathSegCurvetoQuadraticSmoothRel(i,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS:return new window.SVGPathSegCurvetoQuadraticSmoothAbs(i,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_ARC_REL:return n={x1:this._parseNumber(),y1:this._parseNumber(),arcAngle:this._parseNumber(),arcLarge:this._parseArcFlag(),arcSweep:this._parseArcFlag(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegArcRel(i,n.x,n.y,n.x1,n.y1,n.arcAngle,n.arcLarge,n.arcSweep);case window.SVGPathSeg.PATHSEG_ARC_ABS:return n={x1:this._parseNumber(),y1:this._parseNumber(),arcAngle:this._parseNumber(),arcLarge:this._parseArcFlag(),arcSweep:this._parseArcFlag(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegArcAbs(i,n.x,n.y,n.x1,n.y1,n.arcAngle,n.arcLarge,n.arcSweep);default:throw"Unknown path seg type."}};var r=new t,o=new n(e);if(!o.initialCommandIsMoveTo())return[];for(;o.hasMoreData();){var a=o.parseSegment();if(!a)return[];r.appendSegment(a)}return r.pathSegList}),String.prototype.padEnd||(String.prototype.padEnd=function(e,t){return e>>=0,t=String(void 0!==t?t:" "),this.length>e?String(this):((e-=this.length)>t.length&&(t+=t.repeat(e/t.length)),String(this)+t.slice(0,e))}),f.axis=function(){},f.axis.labels=function(t){var n=this.internal;arguments.length&&(Object.keys(t).forEach(function(e){n.axis.setLabelText(e,t[e])}),n.axis.updateLabels())},f.axis.max=function(e){var t=this.internal,n=t.config;if(!arguments.length)return{x:n.axis_x_max,y:n.axis_y_max,y2:n.axis_y2_max};"object"===(void 0===e?"undefined":s(e))?(T(e.x)&&(n.axis_x_max=e.x),T(e.y)&&(n.axis_y_max=e.y),T(e.y2)&&(n.axis_y2_max=e.y2)):n.axis_y_max=n.axis_y2_max=e,t.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})},f.axis.min=function(e){var t=this.internal,n=t.config;if(!arguments.length)return{x:n.axis_x_min,y:n.axis_y_min,y2:n.axis_y2_min};"object"===(void 0===e?"undefined":s(e))?(T(e.x)&&(n.axis_x_min=e.x),T(e.y)&&(n.axis_y_min=e.y),T(e.y2)&&(n.axis_y2_min=e.y2)):n.axis_y_min=n.axis_y2_min=e,t.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})},f.axis.range=function(e){if(!arguments.length)return{max:this.axis.max(),min:this.axis.min()};N(e.max)&&this.axis.max(e.max),N(e.min)&&this.axis.min(e.min)},f.category=function(e,t){var n=this.internal,i=n.config;return 1'":;\[\]\/|~`{}\\]/g,"-"):""},m.selectorTarget=function(e,t){return(t||"")+"."+H.target+this.getTargetSelectorSuffix(e)},m.selectorTargets=function(e,t){var n=this;return(e=e||[]).length?e.map(function(e){return n.selectorTarget(e,t)}):null},m.selectorLegend=function(e){return"."+H.legendItem+this.getTargetSelectorSuffix(e)},m.selectorLegends=function(e){var t=this;return e&&e.length?e.map(function(e){return t.selectorLegend(e)}):null},m.getClipPath=function(e){return"url("+(0<=window.navigator.appVersion.toLowerCase().indexOf("msie 9.")?"":document.URL.split("#")[0])+"#"+e+")"},m.appendClip=function(e,t){return e.append("clipPath").attr("id",t).append("rect")},m.getAxisClipX=function(e){var t=Math.max(30,this.margin.left);return e?-(1+t):-(t-1)},m.getAxisClipY=function(e){return e?-20:-this.margin.top},m.getXAxisClipX=function(){return this.getAxisClipX(!this.config.axis_rotated)},m.getXAxisClipY=function(){return this.getAxisClipY(!this.config.axis_rotated)},m.getYAxisClipX=function(){return this.config.axis_y_inner?-1:this.getAxisClipX(this.config.axis_rotated)},m.getYAxisClipY=function(){return this.getAxisClipY(this.config.axis_rotated)},m.getAxisClipWidth=function(e){var t=Math.max(30,this.margin.left),n=Math.max(30,this.margin.right);return e?this.width+2+t+n:this.margin.left+20},m.getAxisClipHeight=function(e){return(e?this.margin.bottom:this.margin.top+this.height)+20},m.getXAxisClipWidth=function(){return this.getAxisClipWidth(!this.config.axis_rotated)},m.getXAxisClipHeight=function(){return this.getAxisClipHeight(!this.config.axis_rotated)},m.getYAxisClipWidth=function(){return this.getAxisClipWidth(this.config.axis_rotated)+(this.config.axis_y_inner?20:0)},m.getYAxisClipHeight=function(){return this.getAxisClipHeight(this.config.axis_rotated)},m.generateColor=function(){var e=this.config,t=this.d3,i=e.data_colors,r=D(e.color_pattern)?e.color_pattern:t.scale.category10().range(),o=e.data_color,a=[];return function(e){var t,n=e.id||e.data&&e.data.id||e;return i[n]instanceof Function?t=i[n](e):i[n]?t=i[n]:(a.indexOf(n)<0&&a.push(n),t=r[a.indexOf(n)%r.length],i[n]=t),o instanceof Function?o(t,e):t}},m.generateLevelColor=function(){var e=this.config,i=e.color_pattern,t=e.color_threshold,r="value"===t.unit,o=t.values&&t.values.length?t.values:[],a=t.max||100;return D(e.color_threshold)?function(e){var t,n=i[i.length-1];for(t=0;ti&&(i=(t=e).values.length)}):t=n?e[0]:null,t},m.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]},m.mapToIds=function(e){return e.map(function(e){return e.id})},m.mapToTargetIds=function(e){return e?[].concat(e):this.mapToIds(this.data.targets)},m.hasTarget=function(e,t){var n,i=this.mapToIds(e);for(n=0;ns&&(a=a.filter(function(e){return(""+e).indexOf(".")<0}));return a},m.getGridFilterToRemove=function(e){return e?function(t){var n=!1;return[].concat(e).forEach(function(e){("value"in e&&t.value===e.value||"class"in e&&t.class===e.class)&&(n=!0)}),n}:function(){return!0}},m.removeGridLines=function(e,t){var n=this.config,i=this.getGridFilterToRemove(e),r=function(e){return!i(e)},o=t?H.xgridLines:H.ygridLines,a=t?H.xgridLine:H.ygridLine;this.main.select("."+o).selectAll("."+a).filter(i).transition().duration(n.transition_duration).style("opacity",0).remove(),t?n.grid_x_lines=n.grid_x_lines.filter(r):n.grid_y_lines=n.grid_y_lines.filter(r)},m.initEventRect=function(){this.main.select("."+H.chart).append("g").attr("class",H.eventRects).style("fill-opacity",0)},m.redrawEventRect=function(){var e,t,n=this,i=n.config,r=n.isMultipleX(),o=n.main.select("."+H.eventRects).style("cursor",i.zoom_enabled?i.axis_rotated?"ns-resize":"ew-resize":null).classed(H.eventRectsMultiple,r).classed(H.eventRectsSingle,!r);o.selectAll("."+H.eventRect).remove(),n.eventRect=o.selectAll("."+H.eventRect),r?(e=n.eventRect.data([0]),n.generateEventRectsForMultipleXs(e.enter()),n.updateEventRect(e)):(t=n.getMaxDataCountTarget(n.data.targets),o.datum(t?t.values:[]),n.eventRect=o.selectAll("."+H.eventRect),e=n.eventRect.data(function(e){return e}),n.generateEventRectsForSingleX(e.enter()),n.updateEventRect(e),e.exit().remove())},m.updateEventRect=function(e){var t,n,i,r,o,a,s=this,l=s.config;e=e||s.eventRect.data(function(e){return e}),s.isMultipleX()?(n=t=0,i=s.width,r=s.height):(!s.isCustomX()&&!s.isTimeSeries()||s.isCategorized()?(o=s.getEventRectWidth(),a=function(e){return s.x(e.x)-o/2}):(s.updateXs(),o=function(e){var t=s.getPrevX(e.index),n=s.getNextX(e.index);return null===t&&null===n?l.axis_rotated?s.height:s.width:(null===t&&(t=s.x.domain()[0]),null===n&&(n=s.x.domain()[1]),Math.max(0,(s.x(n)-s.x(t))/2))},a=function(e){var t=s.getPrevX(e.index),n=s.getNextX(e.index),i=s.data.xs[e.id][e.index];return null===t&&null===n?0:(null===t&&(t=s.x.domain()[0]),(s.x(i)+s.x(t))/2)}),t=l.axis_rotated?0:a,n=l.axis_rotated?a:0,i=l.axis_rotated?s.width:o,r=l.axis_rotated?o:s.height),e.attr("class",s.classEvent.bind(s)).attr("x",t).attr("y",n).attr("width",i).attr("height",r)},m.generateEventRectsForSingleX=function(e){var r=this,o=r.d3,a=r.config;e.append("rect").attr("class",r.classEvent.bind(r)).style("cursor",a.data_selection_enabled&&a.data_selection_grouped?"pointer":null).on("mouseover",function(e){var t=e.index;r.dragging||r.flowing||r.hasArcType()||(a.point_focus_expand_enabled&&r.expandCircles(t,null,!0),r.expandBars(t,null,!0),r.main.selectAll("."+H.shape+"-"+t).each(function(e){a.data_onmouseover.call(r.api,e)}))}).on("mouseout",function(e){var t=e.index;r.config&&(r.hasArcType()||(r.hideXGridFocus(),r.hideTooltip(),r.unexpandCircles(),r.unexpandBars(),r.main.selectAll("."+H.shape+"-"+t).each(function(e){a.data_onmouseout.call(r.api,e)})))}).on("mousemove",function(e){var t,n=e.index,i=r.svg.select("."+H.eventRect+"-"+n);r.dragging||r.flowing||r.hasArcType()||(r.isStepType(e)&&"step-after"===r.config.line_step_type&&o.mouse(this)[0]n.bar_width_max?n.bar_width_max:i},m.getBars=function(e,t){return(t?this.main.selectAll("."+H.bars+this.getTargetSelectorSuffix(t)):this.main).selectAll("."+H.bar+(T(e)?"-"+e:""))},m.expandBars=function(e,t,n){n&&this.unexpandBars(),this.getBars(e,t).classed(H.EXPANDED,!0)},m.unexpandBars=function(e){this.getBars(e).classed(H.EXPANDED,!1)},m.generateDrawBar=function(e,t){var o=this.config,a=this.generateGetBarPoints(e,t);return function(e,t){var n=a(e,t),i=o.axis_rotated?1:0,r=o.axis_rotated?0:1;return"M "+n[0][i]+","+n[0][r]+" L"+n[1][i]+","+n[1][r]+" L"+n[2][i]+","+n[2][r]+" L"+n[3][i]+","+n[3][r]+" z"}},m.generateGetBarPoints=function(e,t){var a=this,n=t?a.subXAxis:a.xAxis,i=e.__max__+1,s=a.getBarW(n,i),l=a.getShapeX(s,i,e,!!t),c=a.getShapeY(!!t),u=a.getShapeOffset(a.isBarType,e,!!t),d=s*(a.config.bar_space/2),h=t?a.getSubYScale:a.getYScale;return function(e,t){var n=h.call(a,e.id)(0),i=u(e,t)||n,r=l(e),o=c(e);return a.config.axis_rotated&&(0this.width?i=this.width-o.width:i<0&&(i=4)),i},m.getYForText=function(e,t,n){var i,r=n.getBoundingClientRect();return this.config.axis_rotated?i=(e[0][0]+e[2][0]+.6*r.height)/2:(i=e[2][1],t.value<0||0===t.value&&!this.hasPositiveValue?(i+=r.height,this.isBarType(t)&&this.isSafari()?i-=3:!this.isBarType(t)&&this.isChrome()&&(i+=3)):i+=this.isBarType(t)?-3:-6),null!==t.value||this.config.axis_rotated||(ithis.height&&(i=this.height-4)),i},m.initTitle=function(){this.title=this.svg.append("text").text(this.config.title_text).attr("class",this.CLASS.title)},m.redrawTitle=function(){this.title.attr("x",this.xForTitle.bind(this)).attr("y",this.yForTitle.bind(this))},m.xForTitle=function(){var e=this,t=e.config,n=t.title_position||"left";return 0<=n.indexOf("right")?e.currentWidth-e.getTextRect(e.title.node().textContent,e.CLASS.title,e.title.node()).width-t.title_padding.right:0<=n.indexOf("center")?(e.currentWidth-e.getTextRect(e.title.node().textContent,e.CLASS.title,e.title.node()).width)/2:t.title_padding.left},m.yForTitle=function(){return this.config.title_padding.top+this.getTextRect(this.title.node().textContent,this.CLASS.title,this.title.node()).height},m.getTitlePadding=function(){return this.yForTitle()+this.config.title_padding.bottom},m.initTooltip=function(){var e,t=this,n=t.config;if(t.tooltip=t.selectChart.style("position","relative").append("div").attr("class",H.tooltipContainer).style("position","absolute").style("pointer-events","none").style("display","none"),n.tooltip_init_show){if(t.isTimeSeries()&&l(n.tooltip_init_x)){for(n.tooltip_init_x=t.parseDate(n.tooltip_init_x),e=0;e"+(a||0===a?""+a+"":"")),void 0!==(s=g(p(e[o].value,e[o].ratio,e[o].id,e[o].index,e))))){if(null===e[o].name)continue;l=g(h(e[o].name,e[o].ratio,e[o].id,e[o].index)),c=this.levelColor?this.levelColor(e[o].value):i(e[o].id),r+="",r+=""+l+"",r+=""+s+"",r+=""}return r+""},m.tooltipPosition=function(e,t,n,i){var r,o,a,s,l,c=this,u=c.config,d=c.d3,h=c.hasArcType(),p=d.mouse(i);return h?(o=(c.width-(c.isLegendRight?c.getLegendWidth():0))/2+p[0],s=(c.hasType("gauge")?c.height:c.height/2)+p[1]+20):(r=c.getSvgLeft(!0),u.axis_rotated?(a=(o=r+p[0]+100)+t,l=c.currentWidth-c.getCurrentPaddingRight(),s=c.x(e[0].x)+20):(a=(o=r+c.getCurrentPaddingLeft(!0)+c.x(e[0].x)+20)+t,l=r+c.currentWidth-c.getCurrentPaddingRight(),s=p[1]+15),lc.currentHeight&&(s-=n+30)),s<0&&(s=0),{top:s,left:o}},m.showTooltip=function(e,t){var n,i,r,o=this,a=o.config,s=o.hasArcType(),l=e.filter(function(e){return e&&T(e.value)}),c=a.tooltip_position||m.tooltipPosition;0!==l.length&&a.tooltip_show&&(o.tooltip.html(a.tooltip_contents.call(o,e,o.axis.getXAxisTickFormat(),o.getYFormat(s),o.color)).style("display","block"),n=o.tooltip.property("offsetWidth"),i=o.tooltip.property("offsetHeight"),r=c.call(this,l,n,i,t),o.tooltip.style("top",r.top+"px").style("left",r.left+"px"))},m.hideTooltip=function(){this.tooltip.style("display","none")},m.setTargetType=function(e,t){var n=this,i=n.config;n.mapToTargetIds(e).forEach(function(e){n.withoutFadeIn[e]=t===i.data_types[e],i.data_types[e]=t}),e||(i.data_type=t)},m.hasType=function(n,e){var i=this.config.data_types,r=!1;return(e=e||this.data.targets)&&e.length?e.forEach(function(e){var t=i[e.id];(t&&0<=t.indexOf(n)||!t&&"line"===n)&&(r=!0)}):Object.keys(i).length?Object.keys(i).forEach(function(e){i[e]===n&&(r=!0)}):r=this.config.data_type===n,r},m.hasArcType=function(e){return this.hasType("pie",e)||this.hasType("donut",e)||this.hasType("gauge",e)},m.isLineType=function(e){var t=this.config,n=l(e)?e:e.id;return!t.data_types[n]||0<=["line","spline","area","area-spline","step","area-step"].indexOf(t.data_types[n])},m.isStepType=function(e){var t=l(e)?e:e.id;return 0<=["step","area-step"].indexOf(this.config.data_types[t])},m.isSplineType=function(e){var t=l(e)?e:e.id;return 0<=["spline","area-spline"].indexOf(this.config.data_types[t])},m.isAreaType=function(e){var t=l(e)?e:e.id;return 0<=["area","area-spline","area-step"].indexOf(this.config.data_types[t])},m.isBarType=function(e){var t=l(e)?e:e.id;return"bar"===this.config.data_types[t]},m.isScatterType=function(e){var t=l(e)?e:e.id;return"scatter"===this.config.data_types[t]},m.isPieType=function(e){var t=l(e)?e:e.id;return"pie"===this.config.data_types[t]},m.isGaugeType=function(e){var t=l(e)?e:e.id;return"gauge"===this.config.data_types[t]},m.isDonutType=function(e){var t=l(e)?e:e.id;return"donut"===this.config.data_types[t]},m.isArcType=function(e){return this.isPieType(e)||this.isDonutType(e)||this.isGaugeType(e)},m.lineData=function(e){return this.isLineType(e)?[e]:[]},m.arcData=function(e){return this.isArcType(e.data)?[e]:[]},m.barData=function(e){return this.isBarType(e)?e.values:[]},m.lineOrScatterData=function(e){return this.isLineType(e)||this.isScatterType(e)?e.values:[]},m.barOrLineData=function(e){return this.isBarType(e)||this.isLineType(e)?e.values:[]},m.isInterpolationType=function(e){return 0<=["linear","linear-closed","basis","basis-open","basis-closed","bundle","cardinal","cardinal-open","cardinal-closed","monotone"].indexOf(e)},m.isSafari=function(){var e=window.navigator.userAgent;return 0<=e.indexOf("Safari")&&e.indexOf("Chrome")<0},m.isChrome=function(){return 0<=window.navigator.userAgent.indexOf("Chrome")},m.initZoom=function(){var t,n=this,i=n.d3,r=n.config;n.zoom=i.behavior.zoom().on("zoomstart",function(){t=i.event.sourceEvent,n.zoom.altDomain=i.event.sourceEvent.altKey?n.x.orgDomain():null,r.zoom_onzoomstart.call(n.api,i.event.sourceEvent)}).on("zoom",function(){n.redrawForZoom.call(n)}).on("zoomend",function(){var e=i.event.sourceEvent;e&&t.clientX===e.clientX&&t.clientY===e.clientY||(n.redrawEventRect(),n.updateZoom(),r.zoom_onzoomend.call(n.api,n.x.orgDomain()))}),n.zoom.scale=function(e){return r.axis_rotated?this.y(e):this.x(e)},n.zoom.orgScaleExtent=function(){var e=r.zoom_extent?r.zoom_extent:[1,10];return[e[0],Math.max(n.getMaxDataCount()/e[1],e[1])]},n.zoom.updateScaleExtent=function(){var e=L(n.x.orgDomain())/L(n.getZoomDomain()),t=this.orgScaleExtent();return this.scaleExtent([t[0]*e,t[1]*e]),this}},m.getZoomDomain=function(){var e=this.config,t=this.d3;return[t.min([this.orgXDomain[0],e.zoom_x_min]),t.max([this.orgXDomain[1],e.zoom_x_max])]},m.updateZoom=function(){var e=this.config.zoom_enabled?this.zoom:function(){};this.main.select("."+H.zoomRect).call(e).on("dblclick.zoom",null),this.main.selectAll("."+H.eventRect).call(e).on("dblclick.zoom",null)},m.redrawForZoom=function(){var e=this,t=e.d3,n=e.config,i=e.zoom,r=e.x;if(n.zoom_enabled&&0!==e.filterTargetsToShow(e.data.targets).length){if("mousemove"===t.event.sourceEvent.type&&i.altDomain)return r.domain(i.altDomain),void i.scale(r).updateScaleExtent();e.isCategorized()&&r.orgDomain()[0]===e.orgXDomain[0]&&r.domain([e.orgXDomain[0]-1e-10,r.orgDomain()[1]]),e.redraw({withTransition:!1,withY:n.zoom_rescale,withSubchart:!1,withEventRect:!1,withDimension:!1}),"mousemove"===t.event.sourceEvent.type&&(e.cancelClick=!0),n.zoom_onzoom.call(e.api,r.orgDomain())}},v}),function(n){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(e){return n(e,window,document)}):"object"==typeof exports?module.exports=function(e,t){return e||(e=window),t||(t="undefined"!=typeof window?require("jquery"):require("jquery")(e)),n(t,e,e.document)}:n(jQuery,window,document)}(function(B,A,y,V){"use strict";var f,b,t,e,D=function(S){this.$=function(e,t){return this.api(!0).$(e,t)},this._=function(e,t){return this.api(!0).rows(e,t).data()},this.api=function(e){return new b(e?ot(this[f.iApiIndex]):this)},this.fnAddData=function(e,t){var n=this.api(!0),i=B.isArray(e)&&(B.isArray(e[0])||B.isPlainObject(e[0]))?n.rows.add(e):n.row.add(e);return(t===V||t)&&n.draw(),i.flatten().toArray()},this.fnAdjustColumnSizing=function(e){var t=this.api(!0).columns.adjust(),n=t.settings()[0],i=n.oScroll;e===V||e?t.draw(!1):""===i.sX&&""===i.sY||He(n)},this.fnClearTable=function(e){var t=this.api(!0).clear();(e===V||e)&&t.draw()},this.fnClose=function(e){this.api(!0).row(e).child.hide()},this.fnDeleteRow=function(e,t,n){var i=this.api(!0),r=i.rows(e),o=r.settings()[0],a=o.aoData[r[0][0]];return r.remove(),t&&t.call(this,o,a),(n===V||n)&&i.draw(),a},this.fnDestroy=function(e){this.api(!0).destroy(e)},this.fnDraw=function(e){this.api(!0).draw(e)},this.fnFilter=function(e,t,n,i,r,o){var a=this.api(!0);null===t||t===V?a.search(e,n,i,o):a.column(t).search(e,n,i,o),a.draw()},this.fnGetData=function(e,t){var n=this.api(!0);if(e===V)return n.data().toArray();var i=e.nodeName?e.nodeName.toLowerCase():"";return t!==V||"td"==i||"th"==i?n.cell(e,t).data():n.row(e).data()||null},this.fnGetNodes=function(e){var t=this.api(!0);return e!==V?t.row(e).node():t.rows().nodes().flatten().toArray()},this.fnGetPosition=function(e){var t=this.api(!0),n=e.nodeName.toUpperCase();if("TR"==n)return t.row(e).index();if("TD"!=n&&"TH"!=n)return null;var i=t.cell(e).index();return[i.row,i.columnVisible,i.column]},this.fnIsOpen=function(e){return this.api(!0).row(e).child.isShown()},this.fnOpen=function(e,t,n){return this.api(!0).row(e).child(t,n).show().child()[0]},this.fnPageChange=function(e,t){var n=this.api(!0).page(e);(t===V||t)&&n.draw(!1)},this.fnSetColumnVis=function(e,t,n){var i=this.api(!0).column(e).visible(t);(n===V||n)&&i.columns.adjust().draw()},this.fnSettings=function(){return ot(this[f.iApiIndex])},this.fnSort=function(e){this.api(!0).order(e).draw()},this.fnSortListener=function(e,t,n){this.api(!0).order.listener(e,t,n)},this.fnUpdate=function(e,t,n,i,r){var o=this.api(!0);return n===V||null===n?o.row(t).data(e):o.cell(t,n).data(e),(r===V||r)&&o.columns.adjust(),(i===V||i)&&o.draw(),0},this.fnVersionCheck=f.fnVersionCheck;var k=this,_=S===V,T=this.length;for(var e in _&&(S={}),this.oApi=this.internal=f.internal,D.ext.internal)e&&(this[e]=Ot(e));return this.each(function(){var o,a=1").appendTo(c)),d.nTHead=n[0];var i=c.children("tbody");0===i.length&&(i=B("").appendTo(c)),d.nTBody=i[0];var r=c.children("tfoot");if(0===r.length&&0").appendTo(c)),0===r.length||0===r.children().length?c.addClass(h.sNoFooter):0/g,o=/^\d{2,4}[\.\/\-]\d{1,2}[\.\/\-]\d{1,2}([T ]{1}\d{1,2}[:\.]\d{2}([\.:]\d{2})?)?$/,a=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^","-"].join("|\\")+")","g"),s=/[',$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfkɃΞ]/gi,l=function(e){return!e||!0===e||"-"===e},p=function(e){var t=parseInt(e,10);return!isNaN(t)&&isFinite(e)?t:null},c=function(e,t){return n[t]||(n[t]=new RegExp(Se(t),"g")),"string"==typeof e&&"."!==t?e.replace(/\./g,"").replace(n[t],"."):e},u=function(e,t,n){var i="string"==typeof e;return!!l(e)||(t&&i&&(e=c(e,t)),n&&i&&(e=e.replace(s,"")),!isNaN(parseFloat(e))&&isFinite(e))},d=function(e,t,n){return!!l(e)||((l(i=e)||"string"==typeof i)&&!!u(h(e),t,n)||null);var i},U=function(e,t,n){var i=[],r=0,o=e.length;if(n!==V)for(;r").css({position:"fixed",top:0,left:-1*B(A).scrollLeft(),height:1,width:1,overflow:"hidden"}).append(B("
    ").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(B("
    ").css({width:"100%",height:10}))).appendTo("body"),i=n.children(),r=i.children();t.barWidth=i[0].offsetWidth-i[0].clientWidth,t.bScrollOversize=100===r[0].offsetWidth&&100!==i[0].clientWidth,t.bScrollbarLeft=1!==Math.round(r.offset().left),t.bBounding=!!n[0].getBoundingClientRect().width,n.remove()}B.extend(e.oBrowser,D.__browser),e.oScroll.iBarWidth=D.__browser.barWidth}function S(e,t,n,i,r,o){var a,s=i,l=!1;for(n!==V&&(a=n,l=!0);s!==r;)e.hasOwnProperty(s)&&(a=l?t(a,e[s],s,e):e[s],l=!0,s+=o);return a}function O(e,t){var n=D.defaults.column,i=e.aoColumns.length,r=B.extend({},D.models.oColumn,n,{nTh:t||y.createElement("th"),sTitle:n.sTitle?n.sTitle:t?t.innerHTML:"",aDataSort:n.aDataSort?n.aDataSort:[i],mData:n.mData?n.mData:i,idx:i});e.aoColumns.push(r);var o=e.aoPreSearchCols;o[i]=B.extend({},D.models.oSearch,o[i]),N(e,i,B(t).data())}function N(e,t,n){var i=e.aoColumns[t],r=e.oClasses,o=B(i.nTh);if(!i.sWidthOrig){i.sWidthOrig=o.attr("width")||null;var a=(o.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);a&&(i.sWidthOrig=a[1])}n!==V&&null!==n&&($(n),E(D.defaults.column,n),n.mDataProp===V||n.mData||(n.mData=n.mDataProp),n.sType&&(i._sManualType=n.sType),n.className&&!n.sClass&&(n.sClass=n.className),n.sClass&&o.addClass(n.sClass),B.extend(i,n),st(i,n,"sWidth","sWidthOrig"),n.iDataSort!==V&&(i.aDataSort=[n.iDataSort]),st(i,n,"aDataSort"));var s=i.mData,l=J(s),c=i.mRender?J(i.mRender):null,u=function(e){return"string"==typeof e&&-1!==e.indexOf("@")};i._bAttrSrc=B.isPlainObject(s)&&(u(s.sort)||u(s.type)||u(s.filter)),i._setter=null,i.fnGetData=function(e,t,n){var i=l(e,t,V,n);return c&&t?c(i,t,e,n):i},i.fnSetData=function(e,t,n){return K(s)(e,t,n)},"number"!=typeof s&&(e._rowReadObject=!0),e.oFeatures.bSort||(i.bSortable=!1,o.addClass(r.sSortableNone));var d=-1!==B.inArray("asc",i.asSorting),h=-1!==B.inArray("desc",i.asSorting);i.bSortable&&(d||h)?d&&!h?(i.sSortingClass=r.sSortableAsc,i.sSortingClassJUI=r.sSortJUIAscAllowed):!d&&h?(i.sSortingClass=r.sSortableDesc,i.sSortingClassJUI=r.sSortJUIDescAllowed):(i.sSortingClass=r.sSortable,i.sSortingClassJUI=r.sSortJUI):(i.sSortingClass=r.sSortableNone,i.sSortingClassJUI="")}function z(e){if(!1!==e.oFeatures.bAutoWidth){var t=e.aoColumns;Ue(e);for(var n=0,i=t.length;nt&&e[r]--;-1!=i&&n===V&&e.splice(i,1)}function te(n,i,e,t){var r,o,a=n.aoData[i],s=function(e,t){for(;e.childNodes.length;)e.removeChild(e.firstChild);e.innerHTML=T(n,i,t,"display")};if("dom"!==e&&(e&&"auto"!==e||"dom"!==a.src)){var l=a.anCells;if(l)if(t!==V)s(l[t],t);else for(r=0,o=l.length;r").appendTo(a)),t=0,n=u.length;ttr").attr("role","row"),B(a).find(">tr>th, >tr>td").addClass(c.sHeaderTH),B(s).find(">tr>th, >tr>td").addClass(c.sFooterTH),null!==s){var d=e.aoFooter[0];for(t=0,n=d.length;t=e.fnRecordsDisplay()?0:s,e.iInitDisplayStart=-1);var u=e._iDisplayStart,d=e.fnDisplayEnd();if(e.bDeferLoading)e.bDeferLoading=!1,e.iDraw++,Fe(e,!1);else if(l){if(!e.bDestroying&&!pe(e))return}else e.iDraw++;if(0!==c.length)for(var h=l?0:u,p=l?e.aoData.length:d,f=h;f",{class:o?r[0]:""}).append(B("",{valign:"top",colSpan:L(e),class:e.oClasses.sRowEmpty}).html(b))[0]}dt(e,"aoHeaderCallback","header",[B(e.nTHead).children("tr")[0],Q(e),u,d,c]),dt(e,"aoFooterCallback","footer",[B(e.nTFoot).children("tr")[0],Q(e),u,d,c]);var w=B(e.nTBody);w.children().detach(),w.append(B(n)),dt(e,"aoDrawCallback","draw",[e]),e.bSorted=!1,e.bFiltered=!1,e.bDrawing=!1}else Fe(e,!1)}function le(e,t){var n=e.oFeatures,i=n.bSort,r=n.bFilter;i&&Ke(e),r?ye(e,e.oPreviousSearch):e.aiDisplay=e.aiDisplayMaster.slice(),!0!==t&&(e._iDisplayStart=0),e._drawHold=t,se(e),e._drawHold=!1}function ce(e){var t=e.oClasses,n=B(e.nTable),i=B("
    ").insertBefore(n),r=e.oFeatures,o=B("
    ",{id:e.sTableId+"_wrapper",class:t.sWrapper+(e.nTFoot?"":" "+t.sNoFooter)});e.nHolding=i[0],e.nTableWrapper=o[0],e.nTableReinsertBefore=e.nTable.nextSibling;for(var a,s,l,c,u,d,h=e.sDom.split(""),p=0;p")[0],"'"==(c=h[p+1])||'"'==c){for(u="",d=2;h[p+d]!=c;)u+=h[p+d],d++;if("H"==u?u=t.sJUIHeader:"F"==u&&(u=t.sJUIFooter),-1!=u.indexOf(".")){var f=u.split(".");l.id=f[0].substr(1,f[0].length-1),l.className=f[1]}else"#"==u.charAt(0)?l.id=u.substr(1,u.length-1):l.className=u;p+=d}o.append(l),o=B(l)}else if(">"==s)o=o.parent();else if("l"==s&&r.bPaginate&&r.bLengthChange)a=Ne(e);else if("f"==s&&r.bFilter)a=ve(e);else if("r"==s&&r.bProcessing)a=Re(e);else if("t"==s)a=qe(e);else if("i"==s&&r.bInfo)a=Ee(e);else if("p"==s&&r.bPaginate)a=Le(e);else if(0!==D.ext.feature.length)for(var g=D.ext.feature,m=0,v=g.length;m',s=i.sSearch;s=s.match(/_INPUT_/)?s.replace("_INPUT_",a):s+a;var l=B("
    ",{id:o.f?null:t+"_filter",class:e.sFilter}).append(B("
    ").addClass(e.sLength);return i.aanFeatures.l||(u[0].id=t+"_length"),u.children().append(i.oLanguage.sLengthMenu.replace("_MENU_",s[0].outerHTML)),B("select",u).val(i._iDisplayLength).on("change.DT",function(e){Oe(i,B(this).val()),se(i)}),B(i.nTable).on("length.dt.DT",function(e,t,n){i===t&&B("select",u).val(n)}),u[0]}function Le(e){var t=e.sPaginationType,u=D.ext.pager[t],d="function"==typeof u,h=function(e){se(e)},n=B("
    ").addClass(e.oClasses.sPaging+t)[0],p=e.aanFeatures;return d||u.fnInit(e,n,h),p.p||(n.id=e.sTableId+"_paginate",e.aoDrawCallback.push({fn:function(e){if(d){var t,n,i=e._iDisplayStart,r=e._iDisplayLength,o=e.fnRecordsDisplay(),a=-1===r,s=a?0:Math.ceil(i/r),l=a?1:Math.ceil(o/r),c=u(s,l);for(t=0,n=p.p.length;t",{id:e.aanFeatures.r?null:e.sTableId+"_processing",class:e.oClasses.sProcessing}).html(e.oLanguage.sProcessing).insertBefore(e.nTable)[0]}function Fe(e,t){e.oFeatures.bProcessing&&B(e.aanFeatures.r).css("display",t?"block":"none"),dt(e,null,"processing",[e,t])}function qe(e){var t=B(e.nTable);t.attr("role","grid");var n=e.oScroll;if(""===n.sX&&""===n.sY)return e.nTable;var i=n.sX,r=n.sY,o=e.oClasses,a=t.children("caption"),s=a.length?a[0]._captionSide:null,l=B(t[0].cloneNode(!1)),c=B(t[0].cloneNode(!1)),u=t.children("tfoot"),d="
    ",h=function(e){return e?Xe(e):null};u.length||(u=null);var p=B(d,{class:o.sScrollWrapper}).append(B(d,{class:o.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:i?h(i):"100%"}).append(B(d,{class:o.sScrollHeadInner}).css({"box-sizing":"content-box",width:n.sXInner||"100%"}).append(l.removeAttr("id").css("margin-left",0).append("top"===s?a:null).append(t.children("thead"))))).append(B(d,{class:o.sScrollBody}).css({position:"relative",overflow:"auto",width:h(i)}).append(t));u&&p.append(B(d,{class:o.sScrollFoot}).css({overflow:"hidden",border:0,width:i?h(i):"100%"}).append(B(d,{class:o.sScrollFootInner}).append(c.removeAttr("id").css("margin-left",0).append("bottom"===s?a:null).append(t.children("tfoot")))));var f=p.children(),g=f[0],m=f[1],v=u?f[2]:null;return i&&B(m).on("scroll.DT",function(e){var t=this.scrollLeft;g.scrollLeft=t,u&&(v.scrollLeft=t)}),B(m).css(r&&n.bCollapse?"max-height":"height",r),e.nScrollHead=g,e.nScrollBody=m,e.nScrollFoot=v,e.aoDrawCallback.push({fn:He,sName:"scrolling"}),p[0]}function He(n){var e,t,i,r,o,a,s,l,c,u=n.oScroll,d=u.sX,h=u.sXInner,p=u.sY,f=u.iBarWidth,g=B(n.nScrollHead),m=g[0].style,v=g.children("div"),y=v[0].style,b=v.children("table"),w=n.nScrollBody,x=B(w),C=w.style,S=B(n.nScrollFoot).children("div"),k=S.children("table"),_=B(n.nTHead),T=B(n.nTable),D=T[0],A=D.style,E=n.nTFoot?B(n.nTFoot):null,I=n.oBrowser,P=I.bScrollOversize,$=U(n.aoColumns,"nTh"),M=[],O=[],N=[],L=[],j=function(e){var t=e.style;t.paddingTop="0",t.paddingBottom="0",t.borderTopWidth="0",t.borderBottomWidth="0",t.height=0},R=w.scrollHeight>w.clientHeight;if(n.scrollBarVis!==R&&n.scrollBarVis!==V)return n.scrollBarVis=R,void z(n);n.scrollBarVis=R,T.children("thead, tfoot").remove(),E&&(a=E.clone().prependTo(T),t=E.find("tr"),r=a.find("tr")),o=_.clone().prependTo(T),e=_.find("tr"),i=o.find("tr"),o.find("th, td").removeAttr("tabindex"),d||(C.width="100%",g[0].style.width="100%"),B.each(de(n,o),function(e,t){s=W(n,e),t.style.width=n.aoColumns[s].sWidth}),E&&Be(function(e){e.style.width=""},r),c=T.outerWidth(),""===d?(A.width="100%",P&&(T.find("tbody").height()>w.offsetHeight||"scroll"==x.css("overflow-y"))&&(A.width=Xe(T.outerWidth()-f)),c=T.outerWidth()):""!==h&&(A.width=Xe(h),c=T.outerWidth()),Be(j,i),Be(function(e){N.push(e.innerHTML),M.push(Xe(B(e).css("width")))},i),Be(function(e,t){-1!==B.inArray(e,$)&&(e.style.width=M[t])},e),B(i).height(0),E&&(Be(j,r),Be(function(e){L.push(e.innerHTML),O.push(Xe(B(e).css("width")))},r),Be(function(e,t){e.style.width=O[t]},t),B(r).height(0)),Be(function(e,t){e.innerHTML='
    '+N[t]+"
    ",e.childNodes[0].style.height="0",e.childNodes[0].style.overflow="hidden",e.style.width=M[t]},i),E&&Be(function(e,t){e.innerHTML='
    '+L[t]+"
    ",e.childNodes[0].style.height="0",e.childNodes[0].style.overflow="hidden",e.style.width=O[t]},r),T.outerWidth()w.offsetHeight||"scroll"==x.css("overflow-y")?c+f:c,P&&(w.scrollHeight>w.offsetHeight||"scroll"==x.css("overflow-y"))&&(A.width=Xe(l-f)),""!==d&&""===h||at(n,1,"Possible column misalignment",6)):l="100%",C.width=Xe(l),m.width=Xe(l),E&&(n.nScrollFoot.style.width=Xe(l)),p||P&&(C.height=Xe(D.offsetHeight+f));var F=T.outerWidth();b[0].style.width=Xe(F),y.width=Xe(F);var q=T.height()>w.clientHeight||"scroll"==x.css("overflow-y"),H="padding"+(I.bScrollbarLeft?"Left":"Right");y[H]=q?f+"px":"0px",E&&(k[0].style.width=Xe(F),S[0].style.width=Xe(F),S[0].style[H]=q?f+"px":"0px"),T.children("colgroup").insertBefore(T.children("thead")),x.scroll(),!n.bSorted&&!n.bFiltered||n._drawHold||(w.scrollTop=0)}function Be(e,t,n){for(var i,r,o=0,a=0,s=t.length;a/g;function Ue(e){var t,n,i,r=e.nTable,o=e.aoColumns,a=e.oScroll,s=a.sY,l=a.sX,c=a.sXInner,u=o.length,d=j(e,"bVisible"),h=B("th",e.nTHead),p=r.getAttribute("width"),f=r.parentNode,g=!1,m=e.oBrowser,v=m.bScrollOversize,y=r.style.width;for(y&&-1!==y.indexOf("%")&&(p=y),t=0;t").appendTo(w.find("tbody"));for(w.find("thead, tfoot").remove(),w.append(B(e.nTHead).clone()).append(B(e.nTFoot).clone()),w.find("tfoot th, tfoot td").css("width",""),h=de(e,w.find("thead")[0]),t=0;t").css({width:n.sWidthOrig,margin:0,padding:0,border:0,height:1}));if(e.aoData.length)for(t=0;t").css(l||s?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(w).appendTo(f);l&&c?w.width(c):l?(w.css("width","auto"),w.removeAttr("width"),w.width()").css("width",Xe(e)).appendTo(t||y.body),i=n[0].offsetWidth;return n.remove(),i}function Ge(e,t){var n=Ye(e,t);if(n<0)return null;var i=e.aoData[n];return i.nTr?i.anCells[t]:B("").html(T(e,n,t,"display"))[0]}function Ye(e,t){for(var n,i=-1,r=-1,o=0,a=e.aoData.length;oi&&(i=n.length,r=o);return r}function Xe(e){return null===e?"0px":"number"==typeof e?e<0?"0px":e+"px":e.match(/\d$/)?e+"px":e}function Je(e){var t,n,i,r,o,a,s,l=[],c=e.aoColumns,u=e.aaSortingFixed,d=B.isPlainObject(u),h=[],p=function(e){e.length&&!B.isArray(e[0])?h.push(e):B.merge(h,e)};for(B.isArray(u)&&p(u),d&&u.pre&&p(u.pre),p(e.aaSorting),d&&u.post&&p(u.post),t=0;t/g,""),d=l.nTh;d.removeAttribute("aria-sort"),l.bSortable?(0=l.length?[0,t[1]]:t)})),e.search!==V&&B.extend(r.oPreviousSearch,Ae(e.search)),e.columns)for(a=0,s=e.columns.length;ae?new b(t[e],this[e]):null},filter:function(e){var t=[];if(mt.filter)t=mt.filter.call(this,e,this);else for(var n=0,i=this.length;n").addClass(t);B("td",r).addClass(t).html(e)[0].colSpan=L(o),a.push(r[0])}})(e,t),n._details&&n._details.detach(),n._details=B(a),n._detailsShow&&n._details.insertAfter(n.nTr)),this)}),t([_t+".show()",Tt+".show()"],function(e){return St(this,!0),this}),t([_t+".hide()",Tt+".hide()"],function(){return St(this,!1),this}),t([_t+".remove()",Tt+".remove()"],function(){return Ct(this),this}),t(_t+".isShown()",function(){var e=this.context;return e.length&&this.length&&e[0].aoData[this[0]]._detailsShow||!1});var Dt=/^([^:]+):(name|visIdx|visible)$/,At=function(e,t,n,i,r){for(var o=[],a=0,s=r.length;a").appendTo(e);v(a,r)}else{switch(d=null,h="",r){case"ellipsis":e.append('');break;case"first":d=f.sFirst,h=r+(0",{class:p.sPageButton+" "+h,"aria-controls":s.sTableId,"aria-label":g[r],"data-dt-idx":m,tabindex:s.iTabIndex,id:0===l&&"string"==typeof r?s.sTableId+"_"+r:null}).html(d).appendTo(e),{action:r},o),m++)}};try{n=B(e).find(y.activeElement).data("dt-idx")}catch(e){}v(B(e).empty(),t),n!==V&&B(e).find("[data-dt-idx="+n+"]").focus()}}}),B.extend(D.ext.type.detect,[function(e,t){var n=t.oLanguage.sDecimal;return u(e,n)?"num"+n:null},function(e,t){if(e&&!(e instanceof Date)&&!o.test(e))return null;var n=Date.parse(e);return null!==n&&!isNaN(n)||l(e)?"date":null},function(e,t){var n=t.oLanguage.sDecimal;return u(e,n,!0)?"num-fmt"+n:null},function(e,t){var n=t.oLanguage.sDecimal;return d(e,n)?"html-num"+n:null},function(e,t){var n=t.oLanguage.sDecimal;return d(e,n,!0)?"html-num-fmt"+n:null},function(e,t){return l(e)||"string"==typeof e&&-1!==e.indexOf("<")?"html":null}]),B.extend(D.ext.type.search,{html:function(e){return l(e)?e:"string"==typeof e?e.replace(i," ").replace(r,""):""},string:function(e){return l(e)?e:"string"==typeof e?e.replace(i," "):e}});var Pt=function(e,t,n,i){return 0===e||e&&"-"!==e?(t&&(e=c(e,t)),e.replace&&(n&&(e=e.replace(n,"")),i&&(e=e.replace(i,""))),1*e):-1/0};function $t(n){B.each({num:function(e){return Pt(e,n)},"num-fmt":function(e){return Pt(e,n,s)},"html-num":function(e){return Pt(e,n,r)},"html-num-fmt":function(e){return Pt(e,n,r,s)}},function(e,t){f.type.order[e+n+"-pre"]=t,e.match(/^html\-/)&&(f.type.search[e+n]=f.type.search.html)})}B.extend(f.type.order,{"date-pre":function(e){var t=Date.parse(e);return isNaN(t)?-1/0:t},"html-pre":function(e){return l(e)?"":e.replace?e.replace(/<.*?>/g,"").toLowerCase():e+""},"string-pre":function(e){return l(e)?"":"string"==typeof e?e.toLowerCase():e.toString?e.toString():""},"string-asc":function(e,t){return e").addClass(l.sSortJUIWrapper).append(a.contents()).append(B("").addClass(l.sSortIcon+" "+s.sSortingClassJUI)).appendTo(a),B(o.nTable).on("order.dt.DT",function(e,t,n,i){if(o===t){var r=s.idx;a.removeClass(l.sSortAsc+" "+l.sSortDesc).addClass("asc"==i[r]?l.sSortAsc:"desc"==i[r]?l.sSortDesc:s.sSortingClass),a.find("span."+l.sSortIcon).removeClass(l.sSortJUIAsc+" "+l.sSortJUIDesc+" "+l.sSortJUI+" "+l.sSortJUIAscAllowed+" "+l.sSortJUIDescAllowed).addClass("asc"==i[r]?l.sSortJUIAsc:"desc"==i[r]?l.sSortJUIDesc:s.sSortingClassJUI)}})}}});var Mt=function(e){return"string"==typeof e?e.replace(//g,">").replace(/"/g,"""):e};function Ot(t){return function(){var e=[ot(this[D.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return D.ext.internal[t].apply(this,e)}}return D.render={number:function(o,a,s,l,c){return{display:function(e){if("number"!=typeof e&&"string"!=typeof e)return e;var t=e<0?"-":"",n=parseFloat(e);if(isNaN(n))return Mt(e);n=n.toFixed(s),e=Math.abs(n);var i=parseInt(e,10),r=s?a+(e-i).toFixed(s).substring(2):"";return t+(l||"")+i.toString().replace(/\B(?=(\d{3})+(?!\d))/g,o)+r+(c||"")}}},text:function(){return{display:Mt,filter:Mt}}},B.extend(D.ext.internal,{_fnExternApiFunc:Ot,_fnBuildAjax:he,_fnAjaxUpdate:pe,_fnAjaxParameters:fe,_fnAjaxUpdateDraw:ge,_fnAjaxDataSrc:me,_fnAddColumn:O,_fnColumnOptions:N,_fnAdjustColumnSizing:z,_fnVisibleToColumnIndex:W,_fnColumnIndexToVisible:k,_fnVisbleColumns:L,_fnGetColumns:j,_fnColumnTypes:_,_fnApplyColumnDefs:R,_fnHungarianMap:v,_fnCamelToHungarian:E,_fnLanguageCompat:I,_fnBrowserDetect:M,_fnAddData:F,_fnAddTr:q,_fnNodeToDataIndex:function(e,t){return t._DT_RowIndex!==V?t._DT_RowIndex:null},_fnNodeToColumnIndex:function(e,t,n){return B.inArray(n,e.aoData[t].anCells)},_fnGetCellData:T,_fnSetCellData:H,_fnSplitObjNotation:X,_fnGetObjectDataFn:J,_fnSetObjectDataFn:K,_fnGetDataMaster:Q,_fnClearTable:Z,_fnDeleteIndex:ee,_fnInvalidate:te,_fnGetRowElements:ne,_fnCreateTr:ie,_fnBuildHead:oe,_fnDrawHead:ae,_fnDraw:se,_fnReDraw:le,_fnAddOptionsHtml:ce,_fnDetectHeader:ue,_fnGetUniqueThs:de,_fnFeatureHtmlFilter:ve,_fnFilterComplete:ye,_fnFilterCustom:be,_fnFilterColumn:we,_fnFilter:xe,_fnFilterCreateSearch:Ce,_fnEscapeRegex:Se,_fnFilterData:Te,_fnFeatureHtmlInfo:Ee,_fnUpdateInfo:Ie,_fnInfoMacros:Pe,_fnInitialise:$e,_fnInitComplete:Me,_fnLengthChange:Oe,_fnFeatureHtmlLength:Ne,_fnFeatureHtmlPaginate:Le,_fnPageChange:je,_fnFeatureHtmlProcessing:Re,_fnProcessingDisplay:Fe,_fnFeatureHtmlTable:qe,_fnScrollDraw:He,_fnApplyToChildren:Be,_fnCalculateColumnWidths:Ue,_fnThrottle:ze,_fnConvertToWidth:We,_fnGetWidestNode:Ge,_fnGetMaxLenString:Ye,_fnStringToCss:Xe,_fnSortFlatten:Je,_fnSort:Ke,_fnSortAria:Qe,_fnSortListener:Ze,_fnSortAttachListener:et,_fnSortingClasses:tt,_fnSortData:nt,_fnSaveState:it,_fnLoadState:rt,_fnSettingsFromNode:ot,_fnLog:at,_fnMap:st,_fnBindAction:ct,_fnCallbackReg:ut,_fnCallbackFire:dt,_fnLengthOverflow:ht,_fnRenderer:pt,_fnDataSource:ft,_fnRowAttributes:re,_fnExtend:lt,_fnCalculateEnd:function(){}}),((B.fn.dataTable=D).$=B).fn.dataTableSettings=D.settings,B.fn.dataTableExt=D.ext,B.fn.DataTable=function(e){return B(this).dataTable(e).api()},B.each(D,function(e,t){B.fn.DataTable[e]=t}),B.fn.dataTable}),function(n){"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return n(e,window,document)}):"object"==typeof exports?module.exports=function(e,t){return e||(e=window),t&&t.fn.dataTable||(t=require("datatables.net")(e,t).$),n(t,e,e.document)}:n(jQuery,window,document)}(function(w,e,o,x){"use strict";var a=w.fn.dataTable;function C(e){for(var t=[],n=0,i=e.length;nthis.s.fixed-1&&e
    ").addClass("DTCR_pointer").css({position:"absolute",top:e?w("div.dataTables_scroll",this.s.dt.nTableWrapper).offset().top:w(this.s.dt.nTable).offset().top,height:e?w("div.dataTables_scroll",this.s.dt.nTableWrapper).height():w(this.s.dt.nTable).height()}).appendTo("body")},_fnSetColumnIndexes:function(){w.each(this.s.dt.aoColumns,function(e,t){w(t.nTh).attr("data-column-index",e)})},_fnCursorPosition:function(e,t){return-1!==e.type.indexOf("touch")?e.originalEvent.touches[0][t]:e[t]}}),s.defaults={aiOrder:null,bRealtime:!0,iFixedColumnsLeft:0,iFixedColumnsRight:0,fnReorderCallback:null},s.version="1.3.3",w.fn.dataTable.ColReorder=s,w.fn.DataTable.ColReorder=s,"function"==typeof w.fn.dataTable&&"function"==typeof w.fn.dataTableExt.fnVersionCheck&&w.fn.dataTableExt.fnVersionCheck("1.10.8")?w.fn.dataTableExt.aoFeatures.push({fnInit:function(e){var t=e.oInstance;if(e._colReorder)t.oApi._fnLog(e,1,"ColReorder attempted to initialise twice. Ignoring second");else{var n=e.oInit,i=n.colReorder||n.oColReorder||{};new s(e,i)}return null},cFeature:"R",sFeature:"ColReorder"}):alert("Warning: ColReorder requires DataTables 1.10.8 or greater - www.datatables.net/download"),w(o).on("preInit.dt.colReorder",function(e,t){if("dt"===e.namespace){var n=t.oInit.colReorder,i=a.defaults.colReorder;if(n||i){var r=w.extend({},n,i);!1!==n&&new s(t,r)}}}),w.fn.dataTable.Api.register("colReorder.reset()",function(){return this.iterator("table",function(e){e._colReorder.fnReset()})}),w.fn.dataTable.Api.register("colReorder.order()",function(t,n){return t?this.iterator("table",function(e){e._colReorder.fnOrder(t,n)}):this.context.length?this.context[0]._colReorder.fnOrder():null}),w.fn.dataTable.Api.register("colReorder.transpose()",function(e,t){return this.context.length&&this.context[0]._colReorder?this.context[0]._colReorder.fnTranspose(e,t):e}),s}),function(e,d,t){var n=function(u,e){"use strict";var o=function(e,t){this.CLASS&&"ColVis"==this.CLASS||alert("Warning: ColVis must be initialised with the keyword 'new'"),void 0===t&&(t={});var n=u.fn.dataTable.camelToHungarian;return n&&(n(o.defaults,o.defaults,!0),n(o.defaults,t)),this.s={dt:null,oInit:t,hidden:!0,abOriginal:[]},this.dom={wrapper:null,button:null,collection:null,background:null,catcher:null,buttons:[],groupButtons:[],restore:null},o.aInstances.push(this),this.s.dt=u.fn.dataTable.Api?new u.fn.dataTable.Api(e).settings()[0]:e,this._fnConstruct(t),this};return o.prototype={button:function(){return this.dom.wrapper},fnRebuild:function(){this.rebuild()},rebuild:function(){for(var e=this.dom.buttons.length-1;0<=e;e--)this.dom.collection.removeChild(this.dom.buttons[e]);this.dom.buttons.splice(0,this.dom.buttons.length),this.dom.groupButtons.splice(0,this.dom.groupButtons.length),this.dom.restore&&this.dom.restore.parentNode(this.dom.restore),this._fnAddGroups(),this._fnAddButtons(),this._fnDrawCallback()},_fnConstruct:function(e){this._fnApplyCustomisation(e);var r,o,a=this;for(this.dom.wrapper=d.createElement("div"),this.dom.wrapper.className="ColVis",this.dom.button=u("