phpvms/public/assets/admin/js/vendor.js
2020-01-31 13:57:21 -05:00

17 lines
492 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

if(function(){function t(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function e(t,e,n,i){for(var r=-1,o=null==t?0:t.length;++r<o;){var a=t[r];e(i,a,n(a),t)}return i}function n(t,e){for(var n=-1,i=null==t?0:t.length;++n<i&&!1!==e(t[n],n,t););return t}function i(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function r(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(!e(t[n],n,t))return!1;return!0}function o(t,e){for(var n=-1,i=null==t?0:t.length,r=0,o=[];++n<i;){var a=t[n];e(a,n,t)&&(o[r++]=a)}return o}function a(t,e){return!!(null==t?0:t.length)&&v(t,e,0)>-1}function s(t,e,n){for(var i=-1,r=null==t?0:t.length;++i<r;)if(n(e,t[i]))return!0;return!1}function l(t,e){for(var n=-1,i=null==t?0:t.length,r=Array(i);++n<i;)r[n]=e(t[n],n,t);return r}function u(t,e){for(var n=-1,i=e.length,r=t.length;++n<i;)t[r+n]=e[n];return t}function c(t,e,n,i){var r=-1,o=null==t?0:t.length;for(i&&o&&(n=t[++r]);++r<o;)n=e(n,t[r],r,t);return n}function d(t,e,n,i){var r=null==t?0:t.length;for(i&&r&&(n=t[--r]);r--;)n=e(n,t[r],r,t);return n}function h(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(e(t[n],n,t))return!0;return!1}function f(t){return t.split("")}function p(t){return t.match(Ae)||[]}function m(t,e,n){var i;return n(t,function(t,n,r){if(e(t,n,r))return i=n,!1}),i}function g(t,e,n,i){for(var r=t.length,o=n+(i?1:-1);i?o--:++o<r;)if(e(t[o],o,t))return o;return-1}function v(t,e,n){return e===e?q(t,e,n):g(t,b,n)}function y(t,e,n,i){for(var r=n-1,o=t.length;++r<o;)if(i(t[r],e))return r;return-1}function b(t){return t!==t}function w(t,e){var n=null==t?0:t.length;return n?C(t,e)/n:$t}function _(t){return function(e){return null==e?K:e[t]}}function x(t){return function(e){return null==t?K:t[e]}}function D(t,e,n,i,r){return r(t,function(t,r,o){n=i?(i=!1,t):e(n,t,r,o)}),n}function k(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}function C(t,e){for(var n,i=-1,r=t.length;++i<r;){var o=e(t[i]);o!==K&&(n=n===K?o:n+o)}return n}function T(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}function S(t,e){return l(e,function(e){return[e,t[e]]})}function $(t){return function(e){return t(e)}}function E(t,e){return l(e,function(e){return t[e]})}function O(t,e){return t.has(e)}function M(t,e){for(var n=-1,i=t.length;++n<i&&v(e,t[n],0)>-1;);return n}function A(t,e){for(var n=t.length;n--&&v(e,t[n],0)>-1;);return n}function j(t,e){for(var n=t.length,i=0;n--;)t[n]===e&&++i;return i}function N(t){return"\\"+wn[t]}function I(t,e){return null==t?K:t[e]}function P(t){return dn.test(t)}function L(t){return hn.test(t)}function R(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}function H(t){var e=-1,n=Array(t.size);return t.forEach(function(t,i){n[++e]=[i,t]}),n}function Y(t,e){return function(n){return t(e(n))}}function F(t,e){for(var n=-1,i=t.length,r=0,o=[];++n<i;){var a=t[n];a!==e&&a!==it||(t[n]=it,o[r++]=n)}return o}function U(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}function W(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=[t,t]}),n}function q(t,e,n){for(var i=n-1,r=t.length;++i<r;)if(t[i]===e)return i;return-1}function B(t,e,n){for(var i=n+1;i--;)if(t[i]===e)return i;return i}function z(t){return P(t)?G(t):Ln(t)}function V(t){return P(t)?Z(t):f(t)}function G(t){for(var e=un.lastIndex=0;un.test(t);)++e;return e}function Z(t){return t.match(un)||[]}function Q(t){return t.match(cn)||[]}var K,J=200,X="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",tt="Expected a function",et="__lodash_hash_undefined__",nt=500,it="__lodash_placeholder__",rt=1,ot=2,at=4,st=1,lt=2,ut=1,ct=2,dt=4,ht=8,ft=16,pt=32,mt=64,gt=128,vt=256,yt=512,bt=30,wt="...",_t=800,xt=16,Dt=1,kt=2,Ct=1/0,Tt=9007199254740991,St=1.7976931348623157e308,$t=NaN,Et=4294967295,Ot=Et-1,Mt=Et>>>1,At=[["ary",gt],["bind",ut],["bindKey",ct],["curry",ht],["curryRight",ft],["flip",yt],["partial",pt],["partialRight",mt],["rearg",vt]],jt="[object Arguments]",Nt="[object Array]",It="[object AsyncFunction]",Pt="[object Boolean]",Lt="[object Date]",Rt="[object DOMException]",Ht="[object Error]",Yt="[object Function]",Ft="[object GeneratorFunction]",Ut="[object Map]",Wt="[object Number]",qt="[object Null]",Bt="[object Object]",zt="[object Proxy]",Vt="[object RegExp]",Gt="[object Set]",Zt="[object String]",Qt="[object Symbol]",Kt="[object Undefined]",Jt="[object WeakMap]",Xt="[object WeakSet]",te="[object ArrayBuffer]",ee="[object DataView]",ne="[object Float32Array]",ie="[object Float64Array]",re="[object Int8Array]",oe="[object Int16Array]",ae="[object Int32Array]",se="[object Uint8Array]",le="[object Uint8ClampedArray]",ue="[object Uint16Array]",ce="[object Uint32Array]",de=/\b__p \+= '';/g,he=/\b(__p \+=) '' \+/g,fe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,pe=/&(?:amp|lt|gt|quot|#39);/g,me=/[&<>"']/g,ge=RegExp(pe.source),ve=RegExp(me.source),ye=/<%-([\s\S]+?)%>/g,be=/<%([\s\S]+?)%>/g,we=/<%=([\s\S]+?)%>/g,_e=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xe=/^\w*$/,De=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ke=/[\\^$.*+?()[\]{}|]/g,Ce=RegExp(ke.source),Te=/^\s+|\s+$/g,Se=/^\s+/,$e=/\s+$/,Ee=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Oe=/\{\n\/\* \[wrapped with (.+)\] \*/,Me=/,? & /,Ae=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,je=/\\(\\)?/g,Ne=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ie=/\w*$/,Pe=/^[-+]0x[0-9a-f]+$/i,Le=/^0b[01]+$/i,Re=/^\[object .+?Constructor\]$/,He=/^0o[0-7]+$/i,Ye=/^(?:0|[1-9]\d*)$/,Fe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ue=/($^)/,We=/['\n\r\u2028\u2029\\]/g,qe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Be="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ze="["+Be+"]",Ve="["+qe+"]",Ge="[a-z\\xdf-\\xf6\\xf8-\\xff]",Ze="[^\\ud800-\\udfff"+Be+"\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Qe="\\ud83c[\\udffb-\\udfff]",Ke="(?:\\ud83c[\\udde6-\\uddff]){2}",Je="[\\ud800-\\udbff][\\udc00-\\udfff]",Xe="[A-Z\\xc0-\\xd6\\xd8-\\xde]",tn="(?:"+Ge+"|"+Ze+")",en="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",nn="(?:\\u200d(?:"+["[^\\ud800-\\udfff]",Ke,Je].join("|")+")[\\ufe0e\\ufe0f]?"+en+")*",rn="[\\ufe0e\\ufe0f]?"+en+nn,on="(?:"+["[\\u2700-\\u27bf]",Ke,Je].join("|")+")"+rn,an="(?:"+["[^\\ud800-\\udfff]"+Ve+"?",Ve,Ke,Je,"[\\ud800-\\udfff]"].join("|")+")",sn=RegExp("[']","g"),ln=RegExp(Ve,"g"),un=RegExp(Qe+"(?="+Qe+")|"+an+rn,"g"),cn=RegExp([Xe+"?"+Ge+"+(?:['](?:d|ll|m|re|s|t|ve))?(?="+[ze,Xe,"$"].join("|")+")","(?:[A-Z\\xc0-\\xd6\\xd8-\\xde]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])+(?:['](?:D|LL|M|RE|S|T|VE))?(?="+[ze,Xe+tn,"$"].join("|")+")",Xe+"?"+tn+"+(?:['](?:d|ll|m|re|s|t|ve))?",Xe+"+(?:['](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",on].join("|"),"g"),dn=RegExp("[\\u200d\\ud800-\\udfff"+qe+"\\ufe0e\\ufe0f]"),hn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,fn=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],pn=-1,mn={};mn[ne]=mn[ie]=mn[re]=mn[oe]=mn[ae]=mn[se]=mn[le]=mn[ue]=mn[ce]=!0,mn[jt]=mn[Nt]=mn[te]=mn[Pt]=mn[ee]=mn[Lt]=mn[Ht]=mn[Yt]=mn[Ut]=mn[Wt]=mn[Bt]=mn[Vt]=mn[Gt]=mn[Zt]=mn[Jt]=!1;var gn={};gn[jt]=gn[Nt]=gn[te]=gn[ee]=gn[Pt]=gn[Lt]=gn[ne]=gn[ie]=gn[re]=gn[oe]=gn[ae]=gn[Ut]=gn[Wt]=gn[Bt]=gn[Vt]=gn[Gt]=gn[Zt]=gn[Qt]=gn[se]=gn[le]=gn[ue]=gn[ce]=!0,gn[Ht]=gn[Yt]=gn[Jt]=!1;var vn={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},yn={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},bn={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},wn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},_n=parseFloat,xn=parseInt,Dn="object"==typeof global&&global&&global.Object===Object&&global,kn="object"==typeof self&&self&&self.Object===Object&&self,Cn=Dn||kn||Function("return this")(),Tn="object"==typeof exports&&exports&&!exports.nodeType&&exports,Sn=Tn&&"object"==typeof module&&module&&!module.nodeType&&module,$n=Sn&&Sn.exports===Tn,En=$n&&Dn.process,On=function(){try{var t=Sn&&Sn.require&&Sn.require("util").types;return t||En&&En.binding&&En.binding("util")}catch(t){}}(),Mn=On&&On.isArrayBuffer,An=On&&On.isDate,jn=On&&On.isMap,Nn=On&&On.isRegExp,In=On&&On.isSet,Pn=On&&On.isTypedArray,Ln=_("length"),Rn=x(vn),Hn=x(yn),Yn=x(bn),Fn=function f(x){function q(t){if(el(t)&&!hh(t)&&!(t instanceof Ae)){if(t instanceof Z)return t;if(hc.call(t,"__wrapped__"))return Jo(t)}return new Z(t)}function G(){}function Z(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=K}function Ae(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Et,this.__views__=[]}function qe(){var t=new Ae(this.__wrapped__);return t.__actions__=Ar(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Ar(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Ar(this.__views__),t}function Be(){if(this.__filtered__){var t=new Ae(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function ze(){var t=this.__wrapped__.value(),e=this.__dir__,n=hh(t),i=e<0,r=n?t.length:0,o=xo(0,r,this.__views__),a=o.start,s=o.end,l=s-a,u=i?s:a-1,c=this.__iteratees__,d=c.length,h=0,f=Uc(l,this.__takeCount__);if(!n||!i&&r==l&&f==l)return mr(t,this.__actions__);var p=[];t:for(;l--&&h<f;){u+=e;for(var m=-1,g=t[u];++m<d;){var v=c[m],y=v.iteratee,b=v.type,w=y(g);if(b==kt)g=w;else if(!w){if(b==Dt)continue t;break t}}p[h++]=g}return p}function Ve(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function Ge(){this.__data__=Jc?Jc(null):{},this.size=0}function Ze(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}function Qe(t){var e=this.__data__;if(Jc){var n=e[t];return n===et?K:n}return hc.call(e,t)?e[t]:K}function Ke(t){var e=this.__data__;return Jc?e[t]!==K:hc.call(e,t)}function Je(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Jc&&e===K?et:e,this}function Xe(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function tn(){this.__data__=[],this.size=0}function en(t){var e=this.__data__,n=Vn(e,t);return!(n<0)&&(n==e.length-1?e.pop():Tc.call(e,n,1),--this.size,!0)}function nn(t){var e=this.__data__,n=Vn(e,t);return n<0?K:e[n][1]}function rn(t){return Vn(this.__data__,t)>-1}function on(t,e){var n=this.__data__,i=Vn(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}function an(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function un(){this.size=0,this.__data__={hash:new Ve,map:new(Gc||Xe),string:new Ve}}function cn(t){var e=yo(this,t).delete(t);return this.size-=e?1:0,e}function dn(t){return yo(this,t).get(t)}function hn(t){return yo(this,t).has(t)}function vn(t,e){var n=yo(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}function yn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new an;++e<n;)this.add(t[e])}function bn(t){return this.__data__.set(t,et),this}function wn(t){return this.__data__.has(t)}function Dn(t){var e=this.__data__=new Xe(t);this.size=e.size}function kn(){this.__data__=new Xe,this.size=0}function Tn(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function Sn(t){return this.__data__.get(t)}function En(t){return this.__data__.has(t)}function On(t,e){var n=this.__data__;if(n instanceof Xe){var i=n.__data__;if(!Gc||i.length<J-1)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new an(i)}return n.set(t,e),this.size=n.size,this}function Ln(t,e){var n=hh(t),i=!n&&dh(t),r=!n&&!i&&ph(t),o=!n&&!i&&!r&&bh(t),a=n||i||r||o,s=a?T(t.length,oc):[],l=s.length;for(var u in t)!e&&!hc.call(t,u)||a&&("length"==u||r&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Oo(u,l))||s.push(u);return s}function Un(t){var e=t.length;return e?t[Qi(0,e-1)]:K}function Wn(t,e){return Go(Ar(t),Xn(e,0,t.length))}function qn(t){return Go(Ar(t))}function Bn(t,e,n){(n===K||Fs(t[e],n))&&(n!==K||e in t)||Kn(t,e,n)}function zn(t,e,n){var i=t[e];hc.call(t,e)&&Fs(i,n)&&(n!==K||e in t)||Kn(t,e,n)}function Vn(t,e){for(var n=t.length;n--;)if(Fs(t[n][0],e))return n;return-1}function Gn(t,e,n,i){return cd(t,function(t,r,o){e(i,t,n(t),o)}),i}function Zn(t,e){return t&&jr(e,Pl(e),t)}function Qn(t,e){return t&&jr(e,Ll(e),t)}function Kn(t,e,n){"__proto__"==e&&Oc?Oc(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function Jn(t,e){for(var n=-1,i=e.length,r=Ju(i),o=null==t;++n<i;)r[n]=o?K:jl(t,e[n]);return r}function Xn(t,e,n){return t===t&&(n!==K&&(t=t<=n?t:n),e!==K&&(t=t>=e?t:e)),t}function ti(t,e,i,r,o,a){var s,l=e&rt,u=e&ot,c=e&at;if(i&&(s=o?i(t,r,o,a):i(t)),s!==K)return s;if(!tl(t))return t;var d=hh(t);if(d){if(s=Co(t),!l)return Ar(t,s)}else{var h=xd(t),f=h==Yt||h==Ft;if(ph(t))return xr(t,l);if(h==Bt||h==jt||f&&!o){if(s=u||f?{}:To(t),!l)return u?Ir(t,Qn(s,t)):Nr(t,Zn(s,t))}else{if(!gn[h])return o?t:{};s=So(t,h,l)}}a||(a=new Dn);var p=a.get(t);if(p)return p;a.set(t,s),yh(t)?t.forEach(function(n){s.add(ti(n,e,i,n,t,a))}):gh(t)&&t.forEach(function(n,r){s.set(r,ti(n,e,i,r,t,a))});var m=c?u?po:fo:u?Ll:Pl,g=d?K:m(t);return n(g||t,function(n,r){g&&(r=n,n=t[r]),zn(s,r,ti(n,e,i,r,t,a))}),s}function ei(t){var e=Pl(t);return function(n){return ni(n,t,e)}}function ni(t,e,n){var i=n.length;if(null==t)return!i;for(t=ic(t);i--;){var r=n[i],o=e[r],a=t[r];if(a===K&&!(r in t)||!o(a))return!1}return!0}function ii(t,e,n){if("function"!=typeof t)throw new ac(tt);return Cd(function(){t.apply(K,n)},e)}function ri(t,e,n,i){var r=-1,o=a,u=!0,c=t.length,d=[],h=e.length;if(!c)return d;n&&(e=l(e,$(n))),i?(o=s,u=!1):e.length>=J&&(o=O,u=!1,e=new yn(e));t:for(;++r<c;){var f=t[r],p=null==n?f:n(f);if(f=i||0!==f?f:0,u&&p===p){for(var m=h;m--;)if(e[m]===p)continue t;d.push(f)}else o(e,p,i)||d.push(f)}return d}function oi(t,e){var n=!0;return cd(t,function(t,i,r){return n=!!e(t,i,r)}),n}function ai(t,e,n){for(var i=-1,r=t.length;++i<r;){var o=t[i],a=e(o);if(null!=a&&(s===K?a===a&&!hl(a):n(a,s)))var s=a,l=o}return l}function si(t,e,n,i){var r=t.length;for(n=yl(n),n<0&&(n=-n>r?0:r+n),i=i===K||i>r?r:yl(i),i<0&&(i+=r),i=n>i?0:bl(i);n<i;)t[n++]=e;return t}function li(t,e){var n=[];return cd(t,function(t,i,r){e(t,i,r)&&n.push(t)}),n}function ui(t,e,n,i,r){var o=-1,a=t.length;for(n||(n=Eo),r||(r=[]);++o<a;){var s=t[o];e>0&&n(s)?e>1?ui(s,e-1,n,i,r):u(r,s):i||(r[r.length]=s)}return r}function ci(t,e){return t&&hd(t,e,Pl)}function di(t,e){return t&&fd(t,e,Pl)}function hi(t,e){return o(e,function(e){return Ks(t[e])})}function fi(t,e){e=wr(e,t);for(var n=0,i=e.length;null!=t&&n<i;)t=t[Zo(e[n++])];return n&&n==i?t:K}function pi(t,e,n){var i=e(t);return hh(t)?i:u(i,n(t))}function mi(t){return null==t?t===K?Kt:qt:Ec&&Ec in ic(t)?_o(t):Fo(t)}function gi(t,e){return t>e}function vi(t,e){return null!=t&&hc.call(t,e)}function yi(t,e){return null!=t&&e in ic(t)}function bi(t,e,n){return t>=Uc(e,n)&&t<Fc(e,n)}function wi(t,e,n){for(var i=n?s:a,r=t[0].length,o=t.length,u=o,c=Ju(o),d=1/0,h=[];u--;){var f=t[u];u&&e&&(f=l(f,$(e))),d=Uc(f.length,d),c[u]=!n&&(e||r>=120&&f.length>=120)?new yn(u&&f):K}f=t[0];var p=-1,m=c[0];t:for(;++p<r&&h.length<d;){var g=f[p],v=e?e(g):g;if(g=n||0!==g?g:0,!(m?O(m,v):i(h,v,n))){for(u=o;--u;){var y=c[u];if(!(y?O(y,v):i(t[u],v,n)))continue t}m&&m.push(v),h.push(g)}}return h}function _i(t,e,n,i){return ci(t,function(t,r,o){e(i,n(t),r,o)}),i}function xi(e,n,i){n=wr(n,e),e=Wo(e,n);var r=null==e?e:e[Zo(va(n))];return null==r?K:t(r,e,i)}function Di(t){return el(t)&&mi(t)==jt}function ki(t){return el(t)&&mi(t)==te}function Ci(t){return el(t)&&mi(t)==Lt}function Ti(t,e,n,i,r){return t===e||(null==t||null==e||!el(t)&&!el(e)?t!==t&&e!==e:Si(t,e,n,i,Ti,r))}function Si(t,e,n,i,r,o){var a=hh(t),s=hh(e),l=a?Nt:xd(t),u=s?Nt:xd(e);l=l==jt?Bt:l,u=u==jt?Bt:u;var c=l==Bt,d=u==Bt,h=l==u;if(h&&ph(t)){if(!ph(e))return!1;a=!0,c=!1}if(h&&!c)return o||(o=new Dn),a||bh(t)?lo(t,e,n,i,r,o):uo(t,e,l,n,i,r,o);if(!(n&st)){var f=c&&hc.call(t,"__wrapped__"),p=d&&hc.call(e,"__wrapped__");if(f||p){var m=f?t.value():t,g=p?e.value():e;return o||(o=new Dn),r(m,g,n,i,o)}}return!!h&&(o||(o=new Dn),co(t,e,n,i,r,o))}function $i(t){return el(t)&&xd(t)==Ut}function Ei(t,e,n,i){var r=n.length,o=r,a=!i;if(null==t)return!o;for(t=ic(t);r--;){var s=n[r];if(a&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++r<o;){s=n[r];var l=s[0],u=t[l],c=s[1];if(a&&s[2]){if(u===K&&!(l in t))return!1}else{var d=new Dn;if(i)var h=i(u,c,l,t,e,d);if(!(h===K?Ti(c,u,st|lt,i,d):h))return!1}}return!0}function Oi(t){return!(!tl(t)||Io(t))&&(Ks(t)?yc:Re).test(Qo(t))}function Mi(t){return el(t)&&mi(t)==Vt}function Ai(t){return el(t)&&xd(t)==Gt}function ji(t){return el(t)&&Xs(t.length)&&!!mn[mi(t)]}function Ni(t){return"function"==typeof t?t:null==t?Tu:"object"==typeof t?hh(t)?Yi(t[0],t[1]):Hi(t):Nu(t)}function Ii(t){if(!Po(t))return Yc(t);var e=[];for(var n in ic(t))hc.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Pi(t){if(!tl(t))return Yo(t);var e=Po(t),n=[];for(var i in t)("constructor"!=i||!e&&hc.call(t,i))&&n.push(i);return n}function Li(t,e){return t<e}function Ri(t,e){var n=-1,i=Us(t)?Ju(t.length):[];return cd(t,function(t,r,o){i[++n]=e(t,r,o)}),i}function Hi(t){var e=bo(t);return 1==e.length&&e[0][2]?Ro(e[0][0],e[0][1]):function(n){return n===t||Ei(n,t,e)}}function Yi(t,e){return Ao(t)&&Lo(e)?Ro(Zo(t),e):function(n){var i=jl(n,t);return i===K&&i===e?Il(n,t):Ti(e,i,st|lt)}}function Fi(t,e,n,i,r){t!==e&&hd(e,function(o,a){if(r||(r=new Dn),tl(o))Ui(t,e,a,n,Fi,i,r);else{var s=i?i(Bo(t,a),o,a+"",t,e,r):K;s===K&&(s=o),Bn(t,a,s)}},Ll)}function Ui(t,e,n,i,r,o,a){var s=Bo(t,n),l=Bo(e,n),u=a.get(l);if(u)return void Bn(t,n,u);var c=o?o(s,l,n+"",t,e,a):K,d=c===K;if(d){var h=hh(l),f=!h&&ph(l),p=!h&&!f&&bh(l);c=l,h||f||p?hh(s)?c=s:Ws(s)?c=Ar(s):f?(d=!1,c=xr(l,!0)):p?(d=!1,c=Sr(l,!0)):c=[]:ul(l)||dh(l)?(c=s,dh(s)?c=_l(s):tl(s)&&!Ks(s)||(c=To(l))):d=!1}d&&(a.set(l,c),r(c,l,i,o,a),a.delete(l)),Bn(t,n,c)}function Wi(t,e){var n=t.length;if(n)return e+=e<0?n:0,Oo(e,n)?t[e]:K}function qi(t,e,n){var i=-1;return e=l(e.length?e:[Tu],$(vo())),k(Ri(t,function(t,n,r){return{criteria:l(e,function(e){return e(t)}),index:++i,value:t}}),function(t,e){return Er(t,e,n)})}function Bi(t,e){return zi(t,e,function(e,n){return Il(t,n)})}function zi(t,e,n){for(var i=-1,r=e.length,o={};++i<r;){var a=e[i],s=fi(t,a);n(s,a)&&nr(o,wr(a,t),s)}return o}function Vi(t){return function(e){return fi(e,t)}}function Gi(t,e,n,i){var r=i?y:v,o=-1,a=e.length,s=t;for(t===e&&(e=Ar(e)),n&&(s=l(t,$(n)));++o<a;)for(var u=0,c=e[o],d=n?n(c):c;(u=r(s,d,u,i))>-1;)s!==t&&Tc.call(s,u,1),Tc.call(t,u,1);return t}function Zi(t,e){for(var n=t?e.length:0,i=n-1;n--;){var r=e[n];if(n==i||r!==o){var o=r;Oo(r)?Tc.call(t,r,1):hr(t,r)}}return t}function Qi(t,e){return t+Ic(Bc()*(e-t+1))}function Ki(t,e,n,i){for(var r=-1,o=Fc(Nc((e-t)/(n||1)),0),a=Ju(o);o--;)a[i?o:++r]=t,t+=n;return a}function Ji(t,e){var n="";if(!t||e<1||e>Tt)return n;do{e%2&&(n+=t),(e=Ic(e/2))&&(t+=t)}while(e);return n}function Xi(t,e){return Td(Uo(t,e,Tu),t+"")}function tr(t){return Un(Zl(t))}function er(t,e){var n=Zl(t);return Go(n,Xn(e,0,n.length))}function nr(t,e,n,i){if(!tl(t))return t;e=wr(e,t);for(var r=-1,o=e.length,a=o-1,s=t;null!=s&&++r<o;){var l=Zo(e[r]),u=n;if(r!=a){var c=s[l];u=i?i(c,l,s):K,u===K&&(u=tl(c)?c:Oo(e[r+1])?[]:{})}zn(s,l,u),s=s[l]}return t}function ir(t){return Go(Zl(t))}function rr(t,e,n){var i=-1,r=t.length;e<0&&(e=-e>r?0:r+e),n=n>r?r:n,n<0&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0;for(var o=Ju(r);++i<r;)o[i]=t[i+e];return o}function or(t,e){var n;return cd(t,function(t,i,r){return!(n=e(t,i,r))}),!!n}function ar(t,e,n){var i=0,r=null==t?i:t.length;if("number"==typeof e&&e===e&&r<=Mt){for(;i<r;){var o=i+r>>>1,a=t[o];null!==a&&!hl(a)&&(n?a<=e:a<e)?i=o+1:r=o}return r}return sr(t,e,Tu,n)}function sr(t,e,n,i){e=n(e);for(var r=0,o=null==t?0:t.length,a=e!==e,s=null===e,l=hl(e),u=e===K;r<o;){var c=Ic((r+o)/2),d=n(t[c]),h=d!==K,f=null===d,p=d===d,m=hl(d);if(a)var g=i||p;else g=u?p&&(i||h):s?p&&h&&(i||!f):l?p&&h&&!f&&(i||!m):!f&&!m&&(i?d<=e:d<e);g?r=c+1:o=c}return Uc(o,Ot)}function lr(t,e){for(var n=-1,i=t.length,r=0,o=[];++n<i;){var a=t[n],s=e?e(a):a;if(!n||!Fs(s,l)){var l=s;o[r++]=0===a?0:a}}return o}function ur(t){return"number"==typeof t?t:hl(t)?$t:+t}function cr(t){if("string"==typeof t)return t;if(hh(t))return l(t,cr)+"";if(hl(t))return ld?ld.call(t):"";var e=t+"";return"0"==e&&1/t==-Ct?"-0":e}function dr(t,e,n){var i=-1,r=a,o=t.length,l=!0,u=[],c=u;if(n)l=!1,r=s;else if(o>=J){var d=e?null:yd(t);if(d)return U(d);l=!1,r=O,c=new yn}else c=e?[]:u;t:for(;++i<o;){var h=t[i],f=e?e(h):h;if(h=n||0!==h?h:0,l&&f===f){for(var p=c.length;p--;)if(c[p]===f)continue t;e&&c.push(f),u.push(h)}else r(c,f,n)||(c!==u&&c.push(f),u.push(h))}return u}function hr(t,e){return e=wr(e,t),null==(t=Wo(t,e))||delete t[Zo(va(e))]}function fr(t,e,n,i){return nr(t,e,n(fi(t,e)),i)}function pr(t,e,n,i){for(var r=t.length,o=i?r:-1;(i?o--:++o<r)&&e(t[o],o,t););return n?rr(t,i?0:o,i?o+1:r):rr(t,i?o+1:0,i?r:o)}function mr(t,e){var n=t;return n instanceof Ae&&(n=n.value()),c(e,function(t,e){return e.func.apply(e.thisArg,u([t],e.args))},n)}function gr(t,e,n){var i=t.length;if(i<2)return i?dr(t[0]):[];for(var r=-1,o=Ju(i);++r<i;)for(var a=t[r],s=-1;++s<i;)s!=r&&(o[r]=ri(o[r]||a,t[s],e,n));return dr(ui(o,1),e,n)}function vr(t,e,n){for(var i=-1,r=t.length,o=e.length,a={};++i<r;){var s=i<o?e[i]:K;n(a,t[i],s)}return a}function yr(t){return Ws(t)?t:[]}function br(t){return"function"==typeof t?t:Tu}function wr(t,e){return hh(t)?t:Ao(t,e)?[t]:Sd(Dl(t))}function _r(t,e,n){var i=t.length;return n=n===K?i:n,!e&&n>=i?t:rr(t,e,n)}function xr(t,e){if(e)return t.slice();var n=t.length,i=xc?xc(n):new t.constructor(n);return t.copy(i),i}function Dr(t){var e=new t.constructor(t.byteLength);return new _c(e).set(new _c(t)),e}function kr(t,e){var n=e?Dr(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}function Cr(t){var e=new t.constructor(t.source,Ie.exec(t));return e.lastIndex=t.lastIndex,e}function Tr(t){return sd?ic(sd.call(t)):{}}function Sr(t,e){var n=e?Dr(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function $r(t,e){if(t!==e){var n=t!==K,i=null===t,r=t===t,o=hl(t),a=e!==K,s=null===e,l=e===e,u=hl(e);if(!s&&!u&&!o&&t>e||o&&a&&l&&!s&&!u||i&&a&&l||!n&&l||!r)return 1;if(!i&&!o&&!u&&t<e||u&&n&&r&&!i&&!o||s&&n&&r||!a&&r||!l)return-1}return 0}function Er(t,e,n){for(var i=-1,r=t.criteria,o=e.criteria,a=r.length,s=n.length;++i<a;){var l=$r(r[i],o[i]);if(l){if(i>=s)return l;return l*("desc"==n[i]?-1:1)}}return t.index-e.index}function Or(t,e,n,i){for(var r=-1,o=t.length,a=n.length,s=-1,l=e.length,u=Fc(o-a,0),c=Ju(l+u),d=!i;++s<l;)c[s]=e[s];for(;++r<a;)(d||r<o)&&(c[n[r]]=t[r]);for(;u--;)c[s++]=t[r++];return c}function Mr(t,e,n,i){for(var r=-1,o=t.length,a=-1,s=n.length,l=-1,u=e.length,c=Fc(o-s,0),d=Ju(c+u),h=!i;++r<c;)d[r]=t[r];for(var f=r;++l<u;)d[f+l]=e[l];for(;++a<s;)(h||r<o)&&(d[f+n[a]]=t[r++]);return d}function Ar(t,e){var n=-1,i=t.length;for(e||(e=Ju(i));++n<i;)e[n]=t[n];return e}function jr(t,e,n,i){var r=!n;n||(n={});for(var o=-1,a=e.length;++o<a;){var s=e[o],l=i?i(n[s],t[s],s,n,t):K;l===K&&(l=t[s]),r?Kn(n,s,l):zn(n,s,l)}return n}function Nr(t,e){return jr(t,wd(t),e)}function Ir(t,e){return jr(t,_d(t),e)}function Pr(t,n){return function(i,r){var o=hh(i)?e:Gn,a=n?n():{};return o(i,t,vo(r,2),a)}}function Lr(t){return Xi(function(e,n){var i=-1,r=n.length,o=r>1?n[r-1]:K,a=r>2?n[2]:K;for(o=t.length>3&&"function"==typeof o?(r--,o):K,a&&Mo(n[0],n[1],a)&&(o=r<3?K:o,r=1),e=ic(e);++i<r;){var s=n[i];s&&t(e,s,i,o)}return e})}function Rr(t,e){return function(n,i){if(null==n)return n;if(!Us(n))return t(n,i);for(var r=n.length,o=e?r:-1,a=ic(n);(e?o--:++o<r)&&!1!==i(a[o],o,a););return n}}function Hr(t){return function(e,n,i){for(var r=-1,o=ic(e),a=i(e),s=a.length;s--;){var l=a[t?s:++r];if(!1===n(o[l],l,o))break}return e}}function Yr(t,e,n){function i(){return(this&&this!==Cn&&this instanceof i?o:t).apply(r?n:this,arguments)}var r=e&ut,o=Wr(t);return i}function Fr(t){return function(e){e=Dl(e);var n=P(e)?V(e):K,i=n?n[0]:e.charAt(0),r=n?_r(n,1).join(""):e.slice(1);return i[t]()+r}}function Ur(t){return function(e){return c(_u(eu(e).replace(sn,"")),t,"")}}function Wr(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=ud(t.prototype),i=t.apply(n,e);return tl(i)?i:n}}function qr(e,n,i){function r(){for(var a=arguments.length,s=Ju(a),l=a,u=go(r);l--;)s[l]=arguments[l];var c=a<3&&s[0]!==u&&s[a-1]!==u?[]:F(s,u);return(a-=c.length)<i?eo(e,n,Vr,r.placeholder,K,s,c,K,K,i-a):t(this&&this!==Cn&&this instanceof r?o:e,this,s)}var o=Wr(e);return r}function Br(t){return function(e,n,i){var r=ic(e);if(!Us(e)){var o=vo(n,3);e=Pl(e),n=function(t){return o(r[t],t,r)}}var a=t(e,n,i);return a>-1?r[o?e[a]:a]:K}}function zr(t){return ho(function(e){var n=e.length,i=n,r=Z.prototype.thru;for(t&&e.reverse();i--;){var o=e[i];if("function"!=typeof o)throw new ac(tt);if(r&&!a&&"wrapper"==mo(o))var a=new Z([],!0)}for(i=a?i:n;++i<n;){o=e[i];var s=mo(o),l="wrapper"==s?bd(o):K;a=l&&No(l[0])&&l[1]==(gt|ht|pt|vt)&&!l[4].length&&1==l[9]?a[mo(l[0])].apply(a,l[3]):1==o.length&&No(o)?a[s]():a.thru(o)}return function(){var t=arguments,i=t[0];if(a&&1==t.length&&hh(i))return a.plant(i).value();for(var r=0,o=n?e[r].apply(this,t):i;++r<n;)o=e[r].call(this,o);return o}})}function Vr(t,e,n,i,r,o,a,s,l,u){function c(){for(var v=arguments.length,y=Ju(v),b=v;b--;)y[b]=arguments[b];if(p)var w=go(c),_=j(y,w);if(i&&(y=Or(y,i,r,p)),o&&(y=Mr(y,o,a,p)),v-=_,p&&v<u){var x=F(y,w);return eo(t,e,Vr,c.placeholder,n,y,x,s,l,u-v)}var D=h?n:this,k=f?D[t]:t;return v=y.length,s?y=qo(y,s):m&&v>1&&y.reverse(),d&&l<v&&(y.length=l),this&&this!==Cn&&this instanceof c&&(k=g||Wr(k)),k.apply(D,y)}var d=e&gt,h=e&ut,f=e&ct,p=e&(ht|ft),m=e&yt,g=f?K:Wr(t);return c}function Gr(t,e){return function(n,i){return _i(n,t,e(i),{})}}function Zr(t,e){return function(n,i){var r;if(n===K&&i===K)return e;if(n!==K&&(r=n),i!==K){if(r===K)return i;"string"==typeof n||"string"==typeof i?(n=cr(n),i=cr(i)):(n=ur(n),i=ur(i)),r=t(n,i)}return r}}function Qr(e){return ho(function(n){return n=l(n,$(vo())),Xi(function(i){var r=this;return e(n,function(e){return t(e,r,i)})})})}function Kr(t,e){e=e===K?" ":cr(e);var n=e.length;if(n<2)return n?Ji(e,t):e;var i=Ji(e,Nc(t/z(e)));return P(e)?_r(V(i),0,t).join(""):i.slice(0,t)}function Jr(e,n,i,r){function o(){for(var n=-1,l=arguments.length,u=-1,c=r.length,d=Ju(c+l),h=this&&this!==Cn&&this instanceof o?s:e;++u<c;)d[u]=r[u];for(;l--;)d[u++]=arguments[++n];return t(h,a?i:this,d)}var a=n&ut,s=Wr(e);return o}function Xr(t){return function(e,n,i){return i&&"number"!=typeof i&&Mo(e,n,i)&&(n=i=K),e=vl(e),n===K?(n=e,e=0):n=vl(n),i=i===K?e<n?1:-1:vl(i),Ki(e,n,i,t)}}function to(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=wl(e),n=wl(n)),t(e,n)}}function eo(t,e,n,i,r,o,a,s,l,u){var c=e&ht,d=c?a:K,h=c?K:a,f=c?o:K,p=c?K:o;e|=c?pt:mt,(e&=~(c?mt:pt))&dt||(e&=~(ut|ct));var m=[t,e,r,f,d,p,h,s,l,u],g=n.apply(K,m);return No(t)&&kd(g,m),g.placeholder=i,zo(g,t,e)}function no(t){var e=nc[t];return function(t,n){if(t=wl(t),(n=null==n?0:Uc(yl(n),292))&&Rc(t)){var i=(Dl(t)+"e").split("e");return i=(Dl(e(i[0]+"e"+(+i[1]+n)))+"e").split("e"),+(i[0]+"e"+(+i[1]-n))}return e(t)}}function io(t){return function(e){var n=xd(e);return n==Ut?H(e):n==Gt?W(e):S(e,t(e))}}function ro(t,e,n,i,r,o,a,s){var l=e&ct;if(!l&&"function"!=typeof t)throw new ac(tt);var u=i?i.length:0;if(u||(e&=~(pt|mt),i=r=K),a=a===K?a:Fc(yl(a),0),s=s===K?s:yl(s),u-=r?r.length:0,e&mt){var c=i,d=r;i=r=K}var h=l?K:bd(t),f=[t,e,n,i,r,c,d,o,a,s];if(h&&Ho(f,h),t=f[0],e=f[1],n=f[2],i=f[3],r=f[4],s=f[9]=f[9]===K?l?0:t.length:Fc(f[9]-u,0),!s&&e&(ht|ft)&&(e&=~(ht|ft)),e&&e!=ut)p=e==ht||e==ft?qr(t,e,s):e!=pt&&e!=(ut|pt)||r.length?Vr.apply(K,f):Jr(t,e,n,i);else var p=Yr(t,e,n);return zo((h?pd:kd)(p,f),t,e)}function oo(t,e,n,i){return t===K||Fs(t,uc[n])&&!hc.call(i,n)?e:t}function ao(t,e,n,i,r,o){return tl(t)&&tl(e)&&(o.set(e,t),Fi(t,e,K,ao,o),o.delete(e)),t}function so(t){return ul(t)?K:t}function lo(t,e,n,i,r,o){var a=n&st,s=t.length,l=e.length;if(s!=l&&!(a&&l>s))return!1;var u=o.get(t);if(u&&o.get(e))return u==e;var c=-1,d=!0,f=n&lt?new yn:K;for(o.set(t,e),o.set(e,t);++c<s;){var p=t[c],m=e[c];if(i)var g=a?i(m,p,c,e,t,o):i(p,m,c,t,e,o);if(g!==K){if(g)continue;d=!1;break}if(f){if(!h(e,function(t,e){if(!O(f,e)&&(p===t||r(p,t,n,i,o)))return f.push(e)})){d=!1;break}}else if(p!==m&&!r(p,m,n,i,o)){d=!1;break}}return o.delete(t),o.delete(e),d}function uo(t,e,n,i,r,o,a){switch(n){case ee:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case te:return!(t.byteLength!=e.byteLength||!o(new _c(t),new _c(e)));case Pt:case Lt:case Wt:return Fs(+t,+e);case Ht:return t.name==e.name&&t.message==e.message;case Vt:case Zt:return t==e+"";case Ut:var s=H;case Gt:var l=i&st;if(s||(s=U),t.size!=e.size&&!l)return!1;var u=a.get(t);if(u)return u==e;i|=lt,a.set(t,e);var c=lo(s(t),s(e),i,r,o,a);return a.delete(t),c;case Qt:if(sd)return sd.call(t)==sd.call(e)}return!1}function co(t,e,n,i,r,o){var a=n&st,s=fo(t),l=s.length;if(l!=fo(e).length&&!a)return!1;for(var u=l;u--;){var c=s[u];if(!(a?c in e:hc.call(e,c)))return!1}var d=o.get(t);if(d&&o.get(e))return d==e;var h=!0;o.set(t,e),o.set(e,t);for(var f=a;++u<l;){c=s[u]
;var p=t[c],m=e[c];if(i)var g=a?i(m,p,c,e,t,o):i(p,m,c,t,e,o);if(!(g===K?p===m||r(p,m,n,i,o):g)){h=!1;break}f||(f="constructor"==c)}if(h&&!f){var v=t.constructor,y=e.constructor;v!=y&&"constructor"in t&&"constructor"in e&&!("function"==typeof v&&v instanceof v&&"function"==typeof y&&y instanceof y)&&(h=!1)}return o.delete(t),o.delete(e),h}function ho(t){return Td(Uo(t,K,ua),t+"")}function fo(t){return pi(t,Pl,wd)}function po(t){return pi(t,Ll,_d)}function mo(t){for(var e=t.name+"",n=td[e],i=hc.call(td,e)?n.length:0;i--;){var r=n[i],o=r.func;if(null==o||o==t)return r.name}return e}function go(t){return(hc.call(q,"placeholder")?q:t).placeholder}function vo(){var t=q.iteratee||Su;return t=t===Su?Ni:t,arguments.length?t(arguments[0],arguments[1]):t}function yo(t,e){var n=t.__data__;return jo(e)?n["string"==typeof e?"string":"hash"]:n.map}function bo(t){for(var e=Pl(t),n=e.length;n--;){var i=e[n],r=t[i];e[n]=[i,r,Lo(r)]}return e}function wo(t,e){var n=I(t,e);return Oi(n)?n:K}function _o(t){var e=hc.call(t,Ec),n=t[Ec];try{t[Ec]=K;var i=!0}catch(t){}var r=mc.call(t);return i&&(e?t[Ec]=n:delete t[Ec]),r}function xo(t,e,n){for(var i=-1,r=n.length;++i<r;){var o=n[i],a=o.size;switch(o.type){case"drop":t+=a;break;case"dropRight":e-=a;break;case"take":e=Uc(e,t+a);break;case"takeRight":t=Fc(t,e-a)}}return{start:t,end:e}}function Do(t){var e=t.match(Oe);return e?e[1].split(Me):[]}function ko(t,e,n){e=wr(e,t);for(var i=-1,r=e.length,o=!1;++i<r;){var a=Zo(e[i]);if(!(o=null!=t&&n(t,a)))break;t=t[a]}return o||++i!=r?o:!!(r=null==t?0:t.length)&&Xs(r)&&Oo(a,r)&&(hh(t)||dh(t))}function Co(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&hc.call(t,"index")&&(n.index=t.index,n.input=t.input),n}function To(t){return"function"!=typeof t.constructor||Po(t)?{}:ud(Dc(t))}function So(t,e,n){var i=t.constructor;switch(e){case te:return Dr(t);case Pt:case Lt:return new i(+t);case ee:return kr(t,n);case ne:case ie:case re:case oe:case ae:case se:case le:case ue:case ce:return Sr(t,n);case Ut:return new i;case Wt:case Zt:return new i(t);case Vt:return Cr(t);case Gt:return new i;case Qt:return Tr(t)}}function $o(t,e){var n=e.length;if(!n)return t;var i=n-1;return e[i]=(n>1?"& ":"")+e[i],e=e.join(n>2?", ":" "),t.replace(Ee,"{\n/* [wrapped with "+e+"] */\n")}function Eo(t){return hh(t)||dh(t)||!!(Sc&&t&&t[Sc])}function Oo(t,e){var n=typeof t;return!!(e=null==e?Tt:e)&&("number"==n||"symbol"!=n&&Ye.test(t))&&t>-1&&t%1==0&&t<e}function Mo(t,e,n){if(!tl(n))return!1;var i=typeof e;return!!("number"==i?Us(n)&&Oo(e,n.length):"string"==i&&e in n)&&Fs(n[e],t)}function Ao(t,e){if(hh(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!hl(t))||(xe.test(t)||!_e.test(t)||null!=e&&t in ic(e))}function jo(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}function No(t){var e=mo(t),n=q[e];if("function"!=typeof n||!(e in Ae.prototype))return!1;if(t===n)return!0;var i=bd(n);return!!i&&t===i[0]}function Io(t){return!!pc&&pc in t}function Po(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||uc)}function Lo(t){return t===t&&!tl(t)}function Ro(t,e){return function(n){return null!=n&&(n[t]===e&&(e!==K||t in ic(n)))}}function Ho(t,e){var n=t[1],i=e[1],r=n|i,o=r<(ut|ct|gt),a=i==gt&&n==ht||i==gt&&n==vt&&t[7].length<=e[8]||i==(gt|vt)&&e[7].length<=e[8]&&n==ht;if(!o&&!a)return t;i&ut&&(t[2]=e[2],r|=n&ut?0:dt);var s=e[3];if(s){var l=t[3];t[3]=l?Or(l,s,e[4]):s,t[4]=l?F(t[3],it):e[4]}return s=e[5],s&&(l=t[5],t[5]=l?Mr(l,s,e[6]):s,t[6]=l?F(t[5],it):e[6]),s=e[7],s&&(t[7]=s),i&gt&&(t[8]=null==t[8]?e[8]:Uc(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=r,t}function Yo(t){var e=[];if(null!=t)for(var n in ic(t))e.push(n);return e}function Fo(t){return mc.call(t)}function Uo(e,n,i){return n=Fc(n===K?e.length-1:n,0),function(){for(var r=arguments,o=-1,a=Fc(r.length-n,0),s=Ju(a);++o<a;)s[o]=r[n+o];o=-1;for(var l=Ju(n+1);++o<n;)l[o]=r[o];return l[n]=i(s),t(e,this,l)}}function Wo(t,e){return e.length<2?t:fi(t,rr(e,0,-1))}function qo(t,e){for(var n=t.length,i=Uc(e.length,n),r=Ar(t);i--;){var o=e[i];t[i]=Oo(o,n)?r[o]:K}return t}function Bo(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}function zo(t,e,n){var i=e+"";return Td(t,$o(i,Ko(Do(i),n)))}function Vo(t){var e=0,n=0;return function(){var i=Wc(),r=xt-(i-n);if(n=i,r>0){if(++e>=_t)return arguments[0]}else e=0;return t.apply(K,arguments)}}function Go(t,e){var n=-1,i=t.length,r=i-1;for(e=e===K?i:e;++n<e;){var o=Qi(n,r),a=t[o];t[o]=t[n],t[n]=a}return t.length=e,t}function Zo(t){if("string"==typeof t||hl(t))return t;var e=t+"";return"0"==e&&1/t==-Ct?"-0":e}function Qo(t){if(null!=t){try{return dc.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Ko(t,e){return n(At,function(n){var i="_."+n[0];e&n[1]&&!a(t,i)&&t.push(i)}),t.sort()}function Jo(t){if(t instanceof Ae)return t.clone();var e=new Z(t.__wrapped__,t.__chain__);return e.__actions__=Ar(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}function Xo(t,e,n){e=(n?Mo(t,e,n):e===K)?1:Fc(yl(e),0);var i=null==t?0:t.length;if(!i||e<1)return[];for(var r=0,o=0,a=Ju(Nc(i/e));r<i;)a[o++]=rr(t,r,r+=e);return a}function ta(t){for(var e=-1,n=null==t?0:t.length,i=0,r=[];++e<n;){var o=t[e];o&&(r[i++]=o)}return r}function ea(){var t=arguments.length;if(!t)return[];for(var e=Ju(t-1),n=arguments[0],i=t;i--;)e[i-1]=arguments[i];return u(hh(n)?Ar(n):[n],ui(e,1))}function na(t,e,n){var i=null==t?0:t.length;return i?(e=n||e===K?1:yl(e),rr(t,e<0?0:e,i)):[]}function ia(t,e,n){var i=null==t?0:t.length;return i?(e=n||e===K?1:yl(e),e=i-e,rr(t,0,e<0?0:e)):[]}function ra(t,e){return t&&t.length?pr(t,vo(e,3),!0,!0):[]}function oa(t,e){return t&&t.length?pr(t,vo(e,3),!0):[]}function aa(t,e,n,i){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&Mo(t,e,n)&&(n=0,i=r),si(t,e,n,i)):[]}function sa(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=null==n?0:yl(n);return r<0&&(r=Fc(i+r,0)),g(t,vo(e,3),r)}function la(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=i-1;return n!==K&&(r=yl(n),r=n<0?Fc(i+r,0):Uc(r,i-1)),g(t,vo(e,3),r,!0)}function ua(t){return(null==t?0:t.length)?ui(t,1):[]}function ca(t){return(null==t?0:t.length)?ui(t,Ct):[]}function da(t,e){return(null==t?0:t.length)?(e=e===K?1:yl(e),ui(t,e)):[]}function ha(t){for(var e=-1,n=null==t?0:t.length,i={};++e<n;){var r=t[e];i[r[0]]=r[1]}return i}function fa(t){return t&&t.length?t[0]:K}function pa(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=null==n?0:yl(n);return r<0&&(r=Fc(i+r,0)),v(t,e,r)}function ma(t){return(null==t?0:t.length)?rr(t,0,-1):[]}function ga(t,e){return null==t?"":Hc.call(t,e)}function va(t){var e=null==t?0:t.length;return e?t[e-1]:K}function ya(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=i;return n!==K&&(r=yl(n),r=r<0?Fc(i+r,0):Uc(r,i-1)),e===e?B(t,e,r):g(t,b,r,!0)}function ba(t,e){return t&&t.length?Wi(t,yl(e)):K}function wa(t,e){return t&&t.length&&e&&e.length?Gi(t,e):t}function _a(t,e,n){return t&&t.length&&e&&e.length?Gi(t,e,vo(n,2)):t}function xa(t,e,n){return t&&t.length&&e&&e.length?Gi(t,e,K,n):t}function Da(t,e){var n=[];if(!t||!t.length)return n;var i=-1,r=[],o=t.length;for(e=vo(e,3);++i<o;){var a=t[i];e(a,i,t)&&(n.push(a),r.push(i))}return Zi(t,r),n}function ka(t){return null==t?t:zc.call(t)}function Ca(t,e,n){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&Mo(t,e,n)?(e=0,n=i):(e=null==e?0:yl(e),n=n===K?i:yl(n)),rr(t,e,n)):[]}function Ta(t,e){return ar(t,e)}function Sa(t,e,n){return sr(t,e,vo(n,2))}function $a(t,e){var n=null==t?0:t.length;if(n){var i=ar(t,e);if(i<n&&Fs(t[i],e))return i}return-1}function Ea(t,e){return ar(t,e,!0)}function Oa(t,e,n){return sr(t,e,vo(n,2),!0)}function Ma(t,e){if(null==t?0:t.length){var n=ar(t,e,!0)-1;if(Fs(t[n],e))return n}return-1}function Aa(t){return t&&t.length?lr(t):[]}function ja(t,e){return t&&t.length?lr(t,vo(e,2)):[]}function Na(t){var e=null==t?0:t.length;return e?rr(t,1,e):[]}function Ia(t,e,n){return t&&t.length?(e=n||e===K?1:yl(e),rr(t,0,e<0?0:e)):[]}function Pa(t,e,n){var i=null==t?0:t.length;return i?(e=n||e===K?1:yl(e),e=i-e,rr(t,e<0?0:e,i)):[]}function La(t,e){return t&&t.length?pr(t,vo(e,3),!1,!0):[]}function Ra(t,e){return t&&t.length?pr(t,vo(e,3)):[]}function Ha(t){return t&&t.length?dr(t):[]}function Ya(t,e){return t&&t.length?dr(t,vo(e,2)):[]}function Fa(t,e){return e="function"==typeof e?e:K,t&&t.length?dr(t,K,e):[]}function Ua(t){if(!t||!t.length)return[];var e=0;return t=o(t,function(t){if(Ws(t))return e=Fc(t.length,e),!0}),T(e,function(e){return l(t,_(e))})}function Wa(e,n){if(!e||!e.length)return[];var i=Ua(e);return null==n?i:l(i,function(e){return t(n,K,e)})}function qa(t,e){return vr(t||[],e||[],zn)}function Ba(t,e){return vr(t||[],e||[],nr)}function za(t){var e=q(t);return e.__chain__=!0,e}function Va(t,e){return e(t),t}function Ga(t,e){return e(t)}function Za(){return za(this)}function Qa(){return new Z(this.value(),this.__chain__)}function Ka(){this.__values__===K&&(this.__values__=gl(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?K:this.__values__[this.__index__++]}}function Ja(){return this}function Xa(t){for(var e,n=this;n instanceof G;){var i=Jo(n);i.__index__=0,i.__values__=K,e?r.__wrapped__=i:e=i;var r=i;n=n.__wrapped__}return r.__wrapped__=t,e}function ts(){var t=this.__wrapped__;if(t instanceof Ae){var e=t;return this.__actions__.length&&(e=new Ae(this)),e=e.reverse(),e.__actions__.push({func:Ga,args:[ka],thisArg:K}),new Z(e,this.__chain__)}return this.thru(ka)}function es(){return mr(this.__wrapped__,this.__actions__)}function ns(t,e,n){var i=hh(t)?r:oi;return n&&Mo(t,e,n)&&(e=K),i(t,vo(e,3))}function is(t,e){return(hh(t)?o:li)(t,vo(e,3))}function rs(t,e){return ui(cs(t,e),1)}function os(t,e){return ui(cs(t,e),Ct)}function as(t,e,n){return n=n===K?1:yl(n),ui(cs(t,e),n)}function ss(t,e){return(hh(t)?n:cd)(t,vo(e,3))}function ls(t,e){return(hh(t)?i:dd)(t,vo(e,3))}function us(t,e,n,i){t=Us(t)?t:Zl(t),n=n&&!i?yl(n):0;var r=t.length;return n<0&&(n=Fc(r+n,0)),dl(t)?n<=r&&t.indexOf(e,n)>-1:!!r&&v(t,e,n)>-1}function cs(t,e){return(hh(t)?l:Ri)(t,vo(e,3))}function ds(t,e,n,i){return null==t?[]:(hh(e)||(e=null==e?[]:[e]),n=i?K:n,hh(n)||(n=null==n?[]:[n]),qi(t,e,n))}function hs(t,e,n){var i=hh(t)?c:D,r=arguments.length<3;return i(t,vo(e,4),n,r,cd)}function fs(t,e,n){var i=hh(t)?d:D,r=arguments.length<3;return i(t,vo(e,4),n,r,dd)}function ps(t,e){return(hh(t)?o:li)(t,$s(vo(e,3)))}function ms(t){return(hh(t)?Un:tr)(t)}function gs(t,e,n){return e=(n?Mo(t,e,n):e===K)?1:yl(e),(hh(t)?Wn:er)(t,e)}function vs(t){return(hh(t)?qn:ir)(t)}function ys(t){if(null==t)return 0;if(Us(t))return dl(t)?z(t):t.length;var e=xd(t);return e==Ut||e==Gt?t.size:Ii(t).length}function bs(t,e,n){var i=hh(t)?h:or;return n&&Mo(t,e,n)&&(e=K),i(t,vo(e,3))}function ws(t,e){if("function"!=typeof e)throw new ac(tt);return t=yl(t),function(){if(--t<1)return e.apply(this,arguments)}}function _s(t,e,n){return e=n?K:e,e=t&&null==e?t.length:e,ro(t,gt,K,K,K,K,e)}function xs(t,e){var n;if("function"!=typeof e)throw new ac(tt);return t=yl(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=K),n}}function Ds(t,e,n){e=n?K:e;var i=ro(t,ht,K,K,K,K,K,e);return i.placeholder=Ds.placeholder,i}function ks(t,e,n){e=n?K:e;var i=ro(t,ft,K,K,K,K,K,e);return i.placeholder=ks.placeholder,i}function Cs(t,e,n){function i(e){var n=h,i=f;return h=f=K,y=e,m=t.apply(i,n)}function r(t){return y=t,g=Cd(s,e),b?i(t):m}function o(t){var n=t-v,i=t-y,r=e-n;return w?Uc(r,p-i):r}function a(t){var n=t-v,i=t-y;return v===K||n>=e||n<0||w&&i>=p}function s(){var t=th();if(a(t))return l(t);g=Cd(s,o(t))}function l(t){return g=K,_&&h?i(t):(h=f=K,m)}function u(){g!==K&&vd(g),y=0,h=v=f=g=K}function c(){return g===K?m:l(th())}function d(){var t=th(),n=a(t);if(h=arguments,f=this,v=t,n){if(g===K)return r(v);if(w)return vd(g),g=Cd(s,e),i(v)}return g===K&&(g=Cd(s,e)),m}var h,f,p,m,g,v,y=0,b=!1,w=!1,_=!0;if("function"!=typeof t)throw new ac(tt);return e=wl(e)||0,tl(n)&&(b=!!n.leading,w="maxWait"in n,p=w?Fc(wl(n.maxWait)||0,e):p,_="trailing"in n?!!n.trailing:_),d.cancel=u,d.flush=c,d}function Ts(t){return ro(t,yt)}function Ss(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new ac(tt);var n=function(){var i=arguments,r=e?e.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var a=t.apply(this,i);return n.cache=o.set(r,a)||o,a};return n.cache=new(Ss.Cache||an),n}function $s(t){if("function"!=typeof t)throw new ac(tt);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}function Es(t){return xs(2,t)}function Os(t,e){if("function"!=typeof t)throw new ac(tt);return e=e===K?e:yl(e),Xi(t,e)}function Ms(e,n){if("function"!=typeof e)throw new ac(tt);return n=null==n?0:Fc(yl(n),0),Xi(function(i){var r=i[n],o=_r(i,0,n);return r&&u(o,r),t(e,this,o)})}function As(t,e,n){var i=!0,r=!0;if("function"!=typeof t)throw new ac(tt);return tl(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),Cs(t,e,{leading:i,maxWait:e,trailing:r})}function js(t){return _s(t,1)}function Ns(t,e){return ah(br(e),t)}function Is(){if(!arguments.length)return[];var t=arguments[0];return hh(t)?t:[t]}function Ps(t){return ti(t,at)}function Ls(t,e){return e="function"==typeof e?e:K,ti(t,at,e)}function Rs(t){return ti(t,rt|at)}function Hs(t,e){return e="function"==typeof e?e:K,ti(t,rt|at,e)}function Ys(t,e){return null==e||ni(t,e,Pl(e))}function Fs(t,e){return t===e||t!==t&&e!==e}function Us(t){return null!=t&&Xs(t.length)&&!Ks(t)}function Ws(t){return el(t)&&Us(t)}function qs(t){return!0===t||!1===t||el(t)&&mi(t)==Pt}function Bs(t){return el(t)&&1===t.nodeType&&!ul(t)}function zs(t){if(null==t)return!0;if(Us(t)&&(hh(t)||"string"==typeof t||"function"==typeof t.splice||ph(t)||bh(t)||dh(t)))return!t.length;var e=xd(t);if(e==Ut||e==Gt)return!t.size;if(Po(t))return!Ii(t).length;for(var n in t)if(hc.call(t,n))return!1;return!0}function Vs(t,e){return Ti(t,e)}function Gs(t,e,n){n="function"==typeof n?n:K;var i=n?n(t,e):K;return i===K?Ti(t,e,K,n):!!i}function Zs(t){if(!el(t))return!1;var e=mi(t);return e==Ht||e==Rt||"string"==typeof t.message&&"string"==typeof t.name&&!ul(t)}function Qs(t){return"number"==typeof t&&Rc(t)}function Ks(t){if(!tl(t))return!1;var e=mi(t);return e==Yt||e==Ft||e==It||e==zt}function Js(t){return"number"==typeof t&&t==yl(t)}function Xs(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=Tt}function tl(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function el(t){return null!=t&&"object"==typeof t}function nl(t,e){return t===e||Ei(t,e,bo(e))}function il(t,e,n){return n="function"==typeof n?n:K,Ei(t,e,bo(e),n)}function rl(t){return ll(t)&&t!=+t}function ol(t){if(Dd(t))throw new tc(X);return Oi(t)}function al(t){return null===t}function sl(t){return null==t}function ll(t){return"number"==typeof t||el(t)&&mi(t)==Wt}function ul(t){if(!el(t)||mi(t)!=Bt)return!1;var e=Dc(t);if(null===e)return!0;var n=hc.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&dc.call(n)==gc}function cl(t){return Js(t)&&t>=-Tt&&t<=Tt}function dl(t){return"string"==typeof t||!hh(t)&&el(t)&&mi(t)==Zt}function hl(t){return"symbol"==typeof t||el(t)&&mi(t)==Qt}function fl(t){return t===K}function pl(t){return el(t)&&xd(t)==Jt}function ml(t){return el(t)&&mi(t)==Xt}function gl(t){if(!t)return[];if(Us(t))return dl(t)?V(t):Ar(t);if($c&&t[$c])return R(t[$c]());var e=xd(t);return(e==Ut?H:e==Gt?U:Zl)(t)}function vl(t){if(!t)return 0===t?t:0;if((t=wl(t))===Ct||t===-Ct){return(t<0?-1:1)*St}return t===t?t:0}function yl(t){var e=vl(t),n=e%1;return e===e?n?e-n:e:0}function bl(t){return t?Xn(yl(t),0,Et):0}function wl(t){if("number"==typeof t)return t;if(hl(t))return $t;if(tl(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=tl(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Te,"");var n=Le.test(t);return n||He.test(t)?xn(t.slice(2),n?2:8):Pe.test(t)?$t:+t}function _l(t){return jr(t,Ll(t))}function xl(t){return t?Xn(yl(t),-Tt,Tt):0===t?t:0}function Dl(t){return null==t?"":cr(t)}function kl(t,e){var n=ud(t);return null==e?n:Zn(n,e)}function Cl(t,e){return m(t,vo(e,3),ci)}function Tl(t,e){return m(t,vo(e,3),di)}function Sl(t,e){return null==t?t:hd(t,vo(e,3),Ll)}function $l(t,e){return null==t?t:fd(t,vo(e,3),Ll)}function El(t,e){return t&&ci(t,vo(e,3))}function Ol(t,e){return t&&di(t,vo(e,3))}function Ml(t){return null==t?[]:hi(t,Pl(t))}function Al(t){return null==t?[]:hi(t,Ll(t))}function jl(t,e,n){var i=null==t?K:fi(t,e);return i===K?n:i}function Nl(t,e){return null!=t&&ko(t,e,vi)}function Il(t,e){return null!=t&&ko(t,e,yi)}function Pl(t){return Us(t)?Ln(t):Ii(t)}function Ll(t){return Us(t)?Ln(t,!0):Pi(t)}function Rl(t,e){var n={};return e=vo(e,3),ci(t,function(t,i,r){Kn(n,e(t,i,r),t)}),n}function Hl(t,e){var n={};return e=vo(e,3),ci(t,function(t,i,r){Kn(n,i,e(t,i,r))}),n}function Yl(t,e){return Fl(t,$s(vo(e)))}function Fl(t,e){if(null==t)return{};var n=l(po(t),function(t){return[t]});return e=vo(e),zi(t,n,function(t,n){return e(t,n[0])})}function Ul(t,e,n){e=wr(e,t);var i=-1,r=e.length;for(r||(r=1,t=K);++i<r;){var o=null==t?K:t[Zo(e[i])];o===K&&(i=r,o=n),t=Ks(o)?o.call(t):o}return t}function Wl(t,e,n){return null==t?t:nr(t,e,n)}function ql(t,e,n,i){return i="function"==typeof i?i:K,null==t?t:nr(t,e,n,i)}function Bl(t,e,i){var r=hh(t),o=r||ph(t)||bh(t);if(e=vo(e,4),null==i){var a=t&&t.constructor;i=o?r?new a:[]:tl(t)&&Ks(a)?ud(Dc(t)):{}}return(o?n:ci)(t,function(t,n,r){return e(i,t,n,r)}),i}function zl(t,e){return null==t||hr(t,e)}function Vl(t,e,n){return null==t?t:fr(t,e,br(n))}function Gl(t,e,n,i){return i="function"==typeof i?i:K,null==t?t:fr(t,e,br(n),i)}function Zl(t){return null==t?[]:E(t,Pl(t))}function Ql(t){return null==t?[]:E(t,Ll(t))}function Kl(t,e,n){return n===K&&(n=e,e=K),n!==K&&(n=wl(n),n=n===n?n:0),e!==K&&(e=wl(e),e=e===e?e:0),Xn(wl(t),e,n)}function Jl(t,e,n){return e=vl(e),n===K?(n=e,e=0):n=vl(n),t=wl(t),bi(t,e,n)}function Xl(t,e,n){if(n&&"boolean"!=typeof n&&Mo(t,e,n)&&(e=n=K),n===K&&("boolean"==typeof e?(n=e,e=K):"boolean"==typeof t&&(n=t,t=K)),t===K&&e===K?(t=0,e=1):(t=vl(t),e===K?(e=t,t=0):e=vl(e)),t>e){var i=t;t=e,e=i}if(n||t%1||e%1){var r=Bc();return Uc(t+r*(e-t+_n("1e-"+((r+"").length-1))),e)}return Qi(t,e)}function tu(t){return Bh(Dl(t).toLowerCase())}function eu(t){return(t=Dl(t))&&t.replace(Fe,Rn).replace(ln,"")}function nu(t,e,n){t=Dl(t),e=cr(e);var i=t.length;n=n===K?i:Xn(yl(n),0,i);var r=n;return(n-=e.length)>=0&&t.slice(n,r)==e}function iu(t){return t=Dl(t),t&&ve.test(t)?t.replace(me,Hn):t}function ru(t){return t=Dl(t),t&&Ce.test(t)?t.replace(ke,"\\$&"):t}function ou(t,e,n){t=Dl(t),e=yl(e);var i=e?z(t):0;if(!e||i>=e)return t;var r=(e-i)/2;return Kr(Ic(r),n)+t+Kr(Nc(r),n)}function au(t,e,n){t=Dl(t),e=yl(e);var i=e?z(t):0;return e&&i<e?t+Kr(e-i,n):t}function su(t,e,n){t=Dl(t),e=yl(e);var i=e?z(t):0;return e&&i<e?Kr(e-i,n)+t:t}function lu(t,e,n){return n||null==e?e=0:e&&(e=+e),qc(Dl(t).replace(Se,""),e||0)}function uu(t,e,n){return e=(n?Mo(t,e,n):e===K)?1:yl(e),Ji(Dl(t),e)}function cu(){var t=arguments,e=Dl(t[0]);return t.length<3?e:e.replace(t[1],t[2])}function du(t,e,n){return n&&"number"!=typeof n&&Mo(t,e,n)&&(e=n=K),(n=n===K?Et:n>>>0)?(t=Dl(t),t&&("string"==typeof e||null!=e&&!vh(e))&&!(e=cr(e))&&P(t)?_r(V(t),0,n):t.split(e,n)):[]}function hu(t,e,n){return t=Dl(t),n=null==n?0:Xn(yl(n),0,t.length),e=cr(e),t.slice(n,n+e.length)==e}function fu(t,e,n){var i=q.templateSettings;n&&Mo(t,e,n)&&(e=K),t=Dl(t),e=kh({},e,i,oo);var r,o,a=kh({},e.imports,i.imports,oo),s=Pl(a),l=E(a,s),u=0,c=e.interpolate||Ue,d="__p += '",h=rc((e.escape||Ue).source+"|"+c.source+"|"+(c===we?Ne:Ue).source+"|"+(e.evaluate||Ue).source+"|$","g"),f="//# sourceURL="+(hc.call(e,"sourceURL")?(e.sourceURL+"").replace(/[\r\n]/g," "):"lodash.templateSources["+ ++pn+"]")+"\n";t.replace(h,function(e,n,i,a,s,l){return i||(i=a),d+=t.slice(u,l).replace(We,N),n&&(r=!0,d+="' +\n__e("+n+") +\n'"),s&&(o=!0,d+="';\n"+s+";\n__p += '"),i&&(d+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),u=l+e.length,e}),d+="';\n";var p=hc.call(e,"variable")&&e.variable;p||(d="with (obj) {\n"+d+"\n}\n"),d=(o?d.replace(de,""):d).replace(he,"$1").replace(fe,"$1;"),d="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(r?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var m=zh(function(){return ec(s,f+"return "+d).apply(K,l)});if(m.source=d,Zs(m))throw m;return m}function pu(t){return Dl(t).toLowerCase()}function mu(t){return Dl(t).toUpperCase()}function gu(t,e,n){if((t=Dl(t))&&(n||e===K))return t.replace(Te,"");if(!t||!(e=cr(e)))return t;var i=V(t),r=V(e);return _r(i,M(i,r),A(i,r)+1).join("")}function vu(t,e,n){if((t=Dl(t))&&(n||e===K))return t.replace($e,"");if(!t||!(e=cr(e)))return t;var i=V(t);return _r(i,0,A(i,V(e))+1).join("")}function yu(t,e,n){if((t=Dl(t))&&(n||e===K))return t.replace(Se,"");if(!t||!(e=cr(e)))return t;var i=V(t);return _r(i,M(i,V(e))).join("")}function bu(t,e){var n=bt,i=wt;if(tl(e)){var r="separator"in e?e.separator:r;n="length"in e?yl(e.length):n,i="omission"in e?cr(e.omission):i}t=Dl(t);var o=t.length;if(P(t)){var a=V(t);o=a.length}if(n>=o)return t;var s=n-z(i);if(s<1)return i;var l=a?_r(a,0,s).join(""):t.slice(0,s);if(r===K)return l+i;if(a&&(s+=l.length-s),vh(r)){if(t.slice(s).search(r)){var u,c=l;for(r.global||(r=rc(r.source,Dl(Ie.exec(r))+"g")),r.lastIndex=0;u=r.exec(c);)var d=u.index;l=l.slice(0,d===K?s:d)}}else if(t.indexOf(cr(r),s)!=s){var h=l.lastIndexOf(r);h>-1&&(l=l.slice(0,h))}return l+i}function wu(t){return t=Dl(t),t&&ge.test(t)?t.replace(pe,Yn):t}function _u(t,e,n){return t=Dl(t),e=n?K:e,e===K?L(t)?Q(t):p(t):t.match(e)||[]}function xu(e){var n=null==e?0:e.length,i=vo();return e=n?l(e,function(t){if("function"!=typeof t[1])throw new ac(tt);return[i(t[0]),t[1]]}):[],Xi(function(i){for(var r=-1;++r<n;){var o=e[r];if(t(o[0],this,i))return t(o[1],this,i)}})}function Du(t){return ei(ti(t,rt))}function ku(t){return function(){return t}}function Cu(t,e){return null==t||t!==t?e:t}function Tu(t){return t}function Su(t){return Ni("function"==typeof t?t:ti(t,rt))}function $u(t){return Hi(ti(t,rt))}function Eu(t,e){return Yi(t,ti(e,rt))}function Ou(t,e,i){var r=Pl(e),o=hi(e,r);null!=i||tl(e)&&(o.length||!r.length)||(i=e,e=t,t=this,o=hi(e,Pl(e)));var a=!(tl(i)&&"chain"in i&&!i.chain),s=Ks(t);return n(o,function(n){var i=e[n];t[n]=i,s&&(t.prototype[n]=function(){var e=this.__chain__;if(a||e){var n=t(this.__wrapped__);return(n.__actions__=Ar(this.__actions__)).push({func:i,args:arguments,thisArg:t}),n.__chain__=e,n}return i.apply(t,u([this.value()],arguments))})}),t}function Mu(){return Cn._===this&&(Cn._=vc),this}function Au(){}function ju(t){return t=yl(t),Xi(function(e){return Wi(e,t)})}function Nu(t){return Ao(t)?_(Zo(t)):Vi(t)}function Iu(t){return function(e){return null==t?K:fi(t,e)}}function Pu(){return[]}function Lu(){return!1}function Ru(){return{}}function Hu(){return""}function Yu(){return!0}function Fu(t,e){if((t=yl(t))<1||t>Tt)return[];var n=Et,i=Uc(t,Et);e=vo(e),t-=Et;for(var r=T(i,e);++n<t;)e(n);return r}function Uu(t){return hh(t)?l(t,Zo):hl(t)?[t]:Ar(Sd(Dl(t)))}function Wu(t){var e=++fc;return Dl(t)+e}function qu(t){return t&&t.length?ai(t,Tu,gi):K}function Bu(t,e){return t&&t.length?ai(t,vo(e,2),gi):K}function zu(t){return w(t,Tu)}function Vu(t,e){return w(t,vo(e,2))}function Gu(t){return t&&t.length?ai(t,Tu,Li):K}function Zu(t,e){return t&&t.length?ai(t,vo(e,2),Li):K}function Qu(t){return t&&t.length?C(t,Tu):0}function Ku(t,e){return t&&t.length?C(t,vo(e,2)):0}x=null==x?Cn:Fn.defaults(Cn.Object(),x,Fn.pick(Cn,fn));var Ju=x.Array,Xu=x.Date,tc=x.Error,ec=x.Function,nc=x.Math,ic=x.Object,rc=x.RegExp,oc=x.String,ac=x.TypeError,sc=Ju.prototype,lc=ec.prototype,uc=ic.prototype,cc=x["__core-js_shared__"],dc=lc.toString,hc=uc.hasOwnProperty,fc=0,pc=function(){var t=/[^.]+$/.exec(cc&&cc.keys&&cc.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),mc=uc.toString,gc=dc.call(ic),vc=Cn._,yc=rc("^"+dc.call(hc).replace(ke,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),bc=$n?x.Buffer:K,wc=x.Symbol,_c=x.Uint8Array,xc=bc?bc.allocUnsafe:K,Dc=Y(ic.getPrototypeOf,ic),kc=ic.create,Cc=uc.propertyIsEnumerable,Tc=sc.splice,Sc=wc?wc.isConcatSpreadable:K,$c=wc?wc.iterator:K,Ec=wc?wc.toStringTag:K,Oc=function(){try{var t=wo(ic,"defineProperty");return t({},"",{}),t}catch(t){}}(),Mc=x.clearTimeout!==Cn.clearTimeout&&x.clearTimeout,Ac=Xu&&Xu.now!==Cn.Date.now&&Xu.now,jc=x.setTimeout!==Cn.setTimeout&&x.setTimeout,Nc=nc.ceil,Ic=nc.floor,Pc=ic.getOwnPropertySymbols,Lc=bc?bc.isBuffer:K,Rc=x.isFinite,Hc=sc.join,Yc=Y(ic.keys,ic),Fc=nc.max,Uc=nc.min,Wc=Xu.now,qc=x.parseInt,Bc=nc.random,zc=sc.reverse,Vc=wo(x,"DataView"),Gc=wo(x,"Map"),Zc=wo(x,"Promise"),Qc=wo(x,"Set"),Kc=wo(x,"WeakMap"),Jc=wo(ic,"create"),Xc=Kc&&new Kc,td={},ed=Qo(Vc),nd=Qo(Gc),id=Qo(Zc),rd=Qo(Qc),od=Qo(Kc),ad=wc?wc.prototype:K,sd=ad?ad.valueOf:K,ld=ad?ad.toString:K,ud=function(){function t(){}return function(e){if(!tl(e))return{};if(kc)return kc(e);t.prototype=e;var n=new t;return t.prototype=K,n}}();q.templateSettings={escape:ye,evaluate:be,interpolate:we,variable:"",imports:{_:q}},q.prototype=G.prototype,q.prototype.constructor=q,Z.prototype=ud(G.prototype),Z.prototype.constructor=Z,Ae.prototype=ud(G.prototype),Ae.prototype.constructor=Ae,Ve.prototype.clear=Ge,Ve.prototype.delete=Ze,Ve.prototype.get=Qe,Ve.prototype.has=Ke,Ve.prototype.set=Je,Xe.prototype.clear=tn,Xe.prototype.delete=en,Xe.prototype.get=nn,Xe.prototype.has=rn,Xe.prototype.set=on,an.prototype.clear=un,an.prototype.delete=cn,an.prototype.get=dn,an.prototype.has=hn,an.prototype.set=vn,yn.prototype.add=yn.prototype.push=bn,yn.prototype.has=wn,Dn.prototype.clear=kn,Dn.prototype.delete=Tn,Dn.prototype.get=Sn,Dn.prototype.has=En,Dn.prototype.set=On;var cd=Rr(ci),dd=Rr(di,!0),hd=Hr(),fd=Hr(!0),pd=Xc?function(t,e){return Xc.set(t,e),t}:Tu,md=Oc?function(t,e){return Oc(t,"toString",{configurable:!0,enumerable:!1,value:ku(e),writable:!0})}:Tu,gd=Xi,vd=Mc||function(t){return Cn.clearTimeout(t)},yd=Qc&&1/U(new Qc([,-0]))[1]==Ct?function(t){return new Qc(t)}:Au,bd=Xc?function(t){return Xc.get(t)}:Au,wd=Pc?function(t){return null==t?[]:(t=ic(t),o(Pc(t),function(e){return Cc.call(t,e)}))}:Pu,_d=Pc?function(t){for(var e=[];t;)u(e,wd(t)),t=Dc(t);return e}:Pu,xd=mi;(Vc&&xd(new Vc(new ArrayBuffer(1)))!=ee||Gc&&xd(new Gc)!=Ut||Zc&&"[object Promise]"!=xd(Zc.resolve())||Qc&&xd(new Qc)!=Gt||Kc&&xd(new Kc)!=Jt)&&(xd=function(t){var e=mi(t),n=e==Bt?t.constructor:K,i=n?Qo(n):"";if(i)switch(i){case ed:return ee;case nd:return Ut;case id:return"[object Promise]";case rd:return Gt;case od:return Jt}return e});var Dd=cc?Ks:Lu,kd=Vo(pd),Cd=jc||function(t,e){return Cn.setTimeout(t,e)},Td=Vo(md),Sd=function(t){var e=Ss(t,function(t){return n.size===nt&&n.clear(),t}),n=e.cache;return e}(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(De,function(t,n,i,r){e.push(i?r.replace(je,"$1"):n||t)}),e}),$d=Xi(function(t,e){return Ws(t)?ri(t,ui(e,1,Ws,!0)):[]}),Ed=Xi(function(t,e){var n=va(e);return Ws(n)&&(n=K),Ws(t)?ri(t,ui(e,1,Ws,!0),vo(n,2)):[]}),Od=Xi(function(t,e){var n=va(e);return Ws(n)&&(n=K),Ws(t)?ri(t,ui(e,1,Ws,!0),K,n):[]}),Md=Xi(function(t){var e=l(t,yr);return e.length&&e[0]===t[0]?wi(e):[]}),Ad=Xi(function(t){var e=va(t),n=l(t,yr);return e===va(n)?e=K:n.pop(),n.length&&n[0]===t[0]?wi(n,vo(e,2)):[]}),jd=Xi(function(t){var e=va(t),n=l(t,yr);return e="function"==typeof e?e:K,e&&n.pop(),n.length&&n[0]===t[0]?wi(n,K,e):[]}),Nd=Xi(wa),Id=ho(function(t,e){var n=null==t?0:t.length,i=Jn(t,e);return Zi(t,l(e,function(t){return Oo(t,n)?+t:t}).sort($r)),i}),Pd=Xi(function(t){return dr(ui(t,1,Ws,!0))}),Ld=Xi(function(t){var e=va(t);return Ws(e)&&(e=K),dr(ui(t,1,Ws,!0),vo(e,2))}),Rd=Xi(function(t){var e=va(t);return e="function"==typeof e?e:K,dr(ui(t,1,Ws,!0),K,e)}),Hd=Xi(function(t,e){return Ws(t)?ri(t,e):[]}),Yd=Xi(function(t){return gr(o(t,Ws))}),Fd=Xi(function(t){var e=va(t);return Ws(e)&&(e=K),gr(o(t,Ws),vo(e,2))}),Ud=Xi(function(t){var e=va(t);return e="function"==typeof e?e:K,gr(o(t,Ws),K,e)}),Wd=Xi(Ua),qd=Xi(function(t){var e=t.length,n=e>1?t[e-1]:K;return n="function"==typeof n?(t.pop(),n):K,Wa(t,n)}),Bd=ho(function(t){var e=t.length,n=e?t[0]:0,i=this.__wrapped__,r=function(e){return Jn(e,t)};return!(e>1||this.__actions__.length)&&i instanceof Ae&&Oo(n)?(i=i.slice(n,+n+(e?1:0)),i.__actions__.push({func:Ga,args:[r],thisArg:K}),new Z(i,this.__chain__).thru(function(t){return e&&!t.length&&t.push(K),t})):this.thru(r)}),zd=Pr(function(t,e,n){hc.call(t,n)?++t[n]:Kn(t,n,1)}),Vd=Br(sa),Gd=Br(la),Zd=Pr(function(t,e,n){hc.call(t,n)?t[n].push(e):Kn(t,n,[e])}),Qd=Xi(function(e,n,i){var r=-1,o="function"==typeof n,a=Us(e)?Ju(e.length):[];return cd(e,function(e){a[++r]=o?t(n,e,i):xi(e,n,i)}),a}),Kd=Pr(function(t,e,n){Kn(t,n,e)}),Jd=Pr(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]}),Xd=Xi(function(t,e){if(null==t)return[];var n=e.length;return n>1&&Mo(t,e[0],e[1])?e=[]:n>2&&Mo(e[0],e[1],e[2])&&(e=[e[0]]),qi(t,ui(e,1),[])}),th=Ac||function(){return Cn.Date.now()},eh=Xi(function(t,e,n){var i=ut;if(n.length){var r=F(n,go(eh));i|=pt}return ro(t,i,e,n,r)}),nh=Xi(function(t,e,n){var i=ut|ct;if(n.length){var r=F(n,go(nh));i|=pt}return ro(e,i,t,n,r)}),ih=Xi(function(t,e){return ii(t,1,e)}),rh=Xi(function(t,e,n){return ii(t,wl(e)||0,n)});Ss.Cache=an;var oh=gd(function(e,n){n=1==n.length&&hh(n[0])?l(n[0],$(vo())):l(ui(n,1),$(vo()));var i=n.length;return Xi(function(r){for(var o=-1,a=Uc(r.length,i);++o<a;)r[o]=n[o].call(this,r[o]);return t(e,this,r)})}),ah=Xi(function(t,e){var n=F(e,go(ah));return ro(t,pt,K,e,n)}),sh=Xi(function(t,e){var n=F(e,go(sh));return ro(t,mt,K,e,n)}),lh=ho(function(t,e){return ro(t,vt,K,K,K,e)}),uh=to(gi),ch=to(function(t,e){return t>=e}),dh=Di(function(){return arguments}())?Di:function(t){return el(t)&&hc.call(t,"callee")&&!Cc.call(t,"callee")},hh=Ju.isArray,fh=Mn?$(Mn):ki,ph=Lc||Lu,mh=An?$(An):Ci,gh=jn?$(jn):$i,vh=Nn?$(Nn):Mi,yh=In?$(In):Ai,bh=Pn?$(Pn):ji,wh=to(Li),_h=to(function(t,e){return t<=e}),xh=Lr(function(t,e){if(Po(e)||Us(e))return void jr(e,Pl(e),t);for(var n in e)hc.call(e,n)&&zn(t,n,e[n])}),Dh=Lr(function(t,e){jr(e,Ll(e),t)}),kh=Lr(function(t,e,n,i){jr(e,Ll(e),t,i)}),Ch=Lr(function(t,e,n,i){jr(e,Pl(e),t,i)}),Th=ho(Jn),Sh=Xi(function(t,e){t=ic(t);var n=-1,i=e.length,r=i>2?e[2]:K;for(r&&Mo(e[0],e[1],r)&&(i=1);++n<i;)for(var o=e[n],a=Ll(o),s=-1,l=a.length;++s<l;){var u=a[s],c=t[u];(c===K||Fs(c,uc[u])&&!hc.call(t,u))&&(t[u]=o[u])}return t}),$h=Xi(function(e){return e.push(K,ao),t(jh,K,e)}),Eh=Gr(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=mc.call(e)),t[e]=n},ku(Tu)),Oh=Gr(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=mc.call(e)),hc.call(t,e)?t[e].push(n):t[e]=[n]},vo),Mh=Xi(xi),Ah=Lr(function(t,e,n){Fi(t,e,n)}),jh=Lr(function(t,e,n,i){Fi(t,e,n,i)}),Nh=ho(function(t,e){var n={};if(null==t)return n;var i=!1;e=l(e,function(e){return e=wr(e,t),i||(i=e.length>1),e}),jr(t,po(t),n),i&&(n=ti(n,rt|ot|at,so));for(var r=e.length;r--;)hr(n,e[r]);return n}),Ih=ho(function(t,e){return null==t?{}:Bi(t,e)}),Ph=io(Pl),Lh=io(Ll),Rh=Ur(function(t,e,n){return e=e.toLowerCase(),t+(n?tu(e):e)}),Hh=Ur(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),Yh=Ur(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}),Fh=Fr("toLowerCase"),Uh=Ur(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}),Wh=Ur(function(t,e,n){return t+(n?" ":"")+Bh(e)}),qh=Ur(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}),Bh=Fr("toUpperCase"),zh=Xi(function(e,n){try{return t(e,K,n)}catch(t){return Zs(t)?t:new tc(t)}}),Vh=ho(function(t,e){return n(e,function(e){e=Zo(e),Kn(t,e,eh(t[e],t))}),t}),Gh=zr(),Zh=zr(!0),Qh=Xi(function(t,e){return function(n){return xi(n,t,e)}}),Kh=Xi(function(t,e){return function(n){
return xi(t,n,e)}}),Jh=Qr(l),Xh=Qr(r),tf=Qr(h),ef=Xr(),nf=Xr(!0),rf=Zr(function(t,e){return t+e},0),of=no("ceil"),af=Zr(function(t,e){return t/e},1),sf=no("floor"),lf=Zr(function(t,e){return t*e},1),uf=no("round"),cf=Zr(function(t,e){return t-e},0);return q.after=ws,q.ary=_s,q.assign=xh,q.assignIn=Dh,q.assignInWith=kh,q.assignWith=Ch,q.at=Th,q.before=xs,q.bind=eh,q.bindAll=Vh,q.bindKey=nh,q.castArray=Is,q.chain=za,q.chunk=Xo,q.compact=ta,q.concat=ea,q.cond=xu,q.conforms=Du,q.constant=ku,q.countBy=zd,q.create=kl,q.curry=Ds,q.curryRight=ks,q.debounce=Cs,q.defaults=Sh,q.defaultsDeep=$h,q.defer=ih,q.delay=rh,q.difference=$d,q.differenceBy=Ed,q.differenceWith=Od,q.drop=na,q.dropRight=ia,q.dropRightWhile=ra,q.dropWhile=oa,q.fill=aa,q.filter=is,q.flatMap=rs,q.flatMapDeep=os,q.flatMapDepth=as,q.flatten=ua,q.flattenDeep=ca,q.flattenDepth=da,q.flip=Ts,q.flow=Gh,q.flowRight=Zh,q.fromPairs=ha,q.functions=Ml,q.functionsIn=Al,q.groupBy=Zd,q.initial=ma,q.intersection=Md,q.intersectionBy=Ad,q.intersectionWith=jd,q.invert=Eh,q.invertBy=Oh,q.invokeMap=Qd,q.iteratee=Su,q.keyBy=Kd,q.keys=Pl,q.keysIn=Ll,q.map=cs,q.mapKeys=Rl,q.mapValues=Hl,q.matches=$u,q.matchesProperty=Eu,q.memoize=Ss,q.merge=Ah,q.mergeWith=jh,q.method=Qh,q.methodOf=Kh,q.mixin=Ou,q.negate=$s,q.nthArg=ju,q.omit=Nh,q.omitBy=Yl,q.once=Es,q.orderBy=ds,q.over=Jh,q.overArgs=oh,q.overEvery=Xh,q.overSome=tf,q.partial=ah,q.partialRight=sh,q.partition=Jd,q.pick=Ih,q.pickBy=Fl,q.property=Nu,q.propertyOf=Iu,q.pull=Nd,q.pullAll=wa,q.pullAllBy=_a,q.pullAllWith=xa,q.pullAt=Id,q.range=ef,q.rangeRight=nf,q.rearg=lh,q.reject=ps,q.remove=Da,q.rest=Os,q.reverse=ka,q.sampleSize=gs,q.set=Wl,q.setWith=ql,q.shuffle=vs,q.slice=Ca,q.sortBy=Xd,q.sortedUniq=Aa,q.sortedUniqBy=ja,q.split=du,q.spread=Ms,q.tail=Na,q.take=Ia,q.takeRight=Pa,q.takeRightWhile=La,q.takeWhile=Ra,q.tap=Va,q.throttle=As,q.thru=Ga,q.toArray=gl,q.toPairs=Ph,q.toPairsIn=Lh,q.toPath=Uu,q.toPlainObject=_l,q.transform=Bl,q.unary=js,q.union=Pd,q.unionBy=Ld,q.unionWith=Rd,q.uniq=Ha,q.uniqBy=Ya,q.uniqWith=Fa,q.unset=zl,q.unzip=Ua,q.unzipWith=Wa,q.update=Vl,q.updateWith=Gl,q.values=Zl,q.valuesIn=Ql,q.without=Hd,q.words=_u,q.wrap=Ns,q.xor=Yd,q.xorBy=Fd,q.xorWith=Ud,q.zip=Wd,q.zipObject=qa,q.zipObjectDeep=Ba,q.zipWith=qd,q.entries=Ph,q.entriesIn=Lh,q.extend=Dh,q.extendWith=kh,Ou(q,q),q.add=rf,q.attempt=zh,q.camelCase=Rh,q.capitalize=tu,q.ceil=of,q.clamp=Kl,q.clone=Ps,q.cloneDeep=Rs,q.cloneDeepWith=Hs,q.cloneWith=Ls,q.conformsTo=Ys,q.deburr=eu,q.defaultTo=Cu,q.divide=af,q.endsWith=nu,q.eq=Fs,q.escape=iu,q.escapeRegExp=ru,q.every=ns,q.find=Vd,q.findIndex=sa,q.findKey=Cl,q.findLast=Gd,q.findLastIndex=la,q.findLastKey=Tl,q.floor=sf,q.forEach=ss,q.forEachRight=ls,q.forIn=Sl,q.forInRight=$l,q.forOwn=El,q.forOwnRight=Ol,q.get=jl,q.gt=uh,q.gte=ch,q.has=Nl,q.hasIn=Il,q.head=fa,q.identity=Tu,q.includes=us,q.indexOf=pa,q.inRange=Jl,q.invoke=Mh,q.isArguments=dh,q.isArray=hh,q.isArrayBuffer=fh,q.isArrayLike=Us,q.isArrayLikeObject=Ws,q.isBoolean=qs,q.isBuffer=ph,q.isDate=mh,q.isElement=Bs,q.isEmpty=zs,q.isEqual=Vs,q.isEqualWith=Gs,q.isError=Zs,q.isFinite=Qs,q.isFunction=Ks,q.isInteger=Js,q.isLength=Xs,q.isMap=gh,q.isMatch=nl,q.isMatchWith=il,q.isNaN=rl,q.isNative=ol,q.isNil=sl,q.isNull=al,q.isNumber=ll,q.isObject=tl,q.isObjectLike=el,q.isPlainObject=ul,q.isRegExp=vh,q.isSafeInteger=cl,q.isSet=yh,q.isString=dl,q.isSymbol=hl,q.isTypedArray=bh,q.isUndefined=fl,q.isWeakMap=pl,q.isWeakSet=ml,q.join=ga,q.kebabCase=Hh,q.last=va,q.lastIndexOf=ya,q.lowerCase=Yh,q.lowerFirst=Fh,q.lt=wh,q.lte=_h,q.max=qu,q.maxBy=Bu,q.mean=zu,q.meanBy=Vu,q.min=Gu,q.minBy=Zu,q.stubArray=Pu,q.stubFalse=Lu,q.stubObject=Ru,q.stubString=Hu,q.stubTrue=Yu,q.multiply=lf,q.nth=ba,q.noConflict=Mu,q.noop=Au,q.now=th,q.pad=ou,q.padEnd=au,q.padStart=su,q.parseInt=lu,q.random=Xl,q.reduce=hs,q.reduceRight=fs,q.repeat=uu,q.replace=cu,q.result=Ul,q.round=uf,q.runInContext=f,q.sample=ms,q.size=ys,q.snakeCase=Uh,q.some=bs,q.sortedIndex=Ta,q.sortedIndexBy=Sa,q.sortedIndexOf=$a,q.sortedLastIndex=Ea,q.sortedLastIndexBy=Oa,q.sortedLastIndexOf=Ma,q.startCase=Wh,q.startsWith=hu,q.subtract=cf,q.sum=Qu,q.sumBy=Ku,q.template=fu,q.times=Fu,q.toFinite=vl,q.toInteger=yl,q.toLength=bl,q.toLower=pu,q.toNumber=wl,q.toSafeInteger=xl,q.toString=Dl,q.toUpper=mu,q.trim=gu,q.trimEnd=vu,q.trimStart=yu,q.truncate=bu,q.unescape=wu,q.uniqueId=Wu,q.upperCase=qh,q.upperFirst=Bh,q.each=ss,q.eachRight=ls,q.first=fa,Ou(q,function(){var t={};return ci(q,function(e,n){hc.call(q.prototype,n)||(t[n]=e)}),t}(),{chain:!1}),q.VERSION="4.17.15",n(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){q[t].placeholder=q}),n(["drop","take"],function(t,e){Ae.prototype[t]=function(n){n=n===K?1:Fc(yl(n),0);var i=this.__filtered__&&!e?new Ae(this):this.clone();return i.__filtered__?i.__takeCount__=Uc(n,i.__takeCount__):i.__views__.push({size:Uc(n,Et),type:t+(i.__dir__<0?"Right":"")}),i},Ae.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),n(["filter","map","takeWhile"],function(t,e){var n=e+1,i=n==Dt||3==n;Ae.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:vo(t,3),type:n}),e.__filtered__=e.__filtered__||i,e}}),n(["head","last"],function(t,e){var n="take"+(e?"Right":"");Ae.prototype[t]=function(){return this[n](1).value()[0]}}),n(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");Ae.prototype[t]=function(){return this.__filtered__?new Ae(this):this[n](1)}}),Ae.prototype.compact=function(){return this.filter(Tu)},Ae.prototype.find=function(t){return this.filter(t).head()},Ae.prototype.findLast=function(t){return this.reverse().find(t)},Ae.prototype.invokeMap=Xi(function(t,e){return"function"==typeof t?new Ae(this):this.map(function(n){return xi(n,t,e)})}),Ae.prototype.reject=function(t){return this.filter($s(vo(t)))},Ae.prototype.slice=function(t,e){t=yl(t);var n=this;return n.__filtered__&&(t>0||e<0)?new Ae(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==K&&(e=yl(e),n=e<0?n.dropRight(-e):n.take(e-t)),n)},Ae.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Ae.prototype.toArray=function(){return this.take(Et)},ci(Ae.prototype,function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),i=/^(?:head|last)$/.test(e),r=q[i?"take"+("last"==e?"Right":""):e],o=i||/^find/.test(e);r&&(q.prototype[e]=function(){var e=this.__wrapped__,a=i?[1]:arguments,s=e instanceof Ae,l=a[0],c=s||hh(e),d=function(t){var e=r.apply(q,u([t],a));return i&&h?e[0]:e};c&&n&&"function"==typeof l&&1!=l.length&&(s=c=!1);var h=this.__chain__,f=!!this.__actions__.length,p=o&&!h,m=s&&!f;if(!o&&c){e=m?e:new Ae(this);var g=t.apply(e,a);return g.__actions__.push({func:Ga,args:[d],thisArg:K}),new Z(g,h)}return p&&m?t.apply(this,a):(g=this.thru(d),p?i?g.value()[0]:g.value():g)})}),n(["pop","push","shift","sort","splice","unshift"],function(t){var e=sc[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",i=/^(?:pop|shift)$/.test(t);q.prototype[t]=function(){var t=arguments;if(i&&!this.__chain__){var r=this.value();return e.apply(hh(r)?r:[],t)}return this[n](function(n){return e.apply(hh(n)?n:[],t)})}}),ci(Ae.prototype,function(t,e){var n=q[e];if(n){var i=n.name+"";hc.call(td,i)||(td[i]=[]),td[i].push({name:e,func:n})}}),td[Vr(K,ct).name]=[{name:"wrapper",func:K}],Ae.prototype.clone=qe,Ae.prototype.reverse=Be,Ae.prototype.value=ze,q.prototype.at=Bd,q.prototype.chain=Za,q.prototype.commit=Qa,q.prototype.next=Ka,q.prototype.plant=Xa,q.prototype.reverse=ts,q.prototype.toJSON=q.prototype.valueOf=q.prototype.value=es,q.prototype.first=q.prototype.head,$c&&(q.prototype[$c]=Ja),q}();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(Cn._=Fn,define(function(){return Fn})):Sn?((Sn.exports=Fn)._=Fn,Tn._=Fn):Cn._=Fn}.call(this),function(t,e){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(t,e){"use strict";function n(t,e,n){n=n||lt;var i,r,o=n.createElement("script");if(o.text=t,e)for(i in xt)(r=e[i]||e.getAttribute&&e.getAttribute(i))&&o.setAttribute(i,r);n.head.appendChild(o).parentNode.removeChild(o)}function i(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?pt[mt.call(t)]||"object":typeof t}function r(t){var e=!!t&&"length"in t&&t.length,n=i(t);return!wt(t)&&!_t(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function o(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}function a(t,e,n){return wt(e)?Dt.grep(t,function(t,i){return!!e.call(t,i,t)!==n}):e.nodeType?Dt.grep(t,function(t){return t===e!==n}):"string"!=typeof e?Dt.grep(t,function(t){return ft.call(e,t)>-1!==n}):Dt.filter(e,t,n)}function s(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function l(t){var e={};return Dt.each(t.match(Nt)||[],function(t,n){e[n]=!0}),e}function u(t){return t}function c(t){throw t}function d(t,e,n,i){var r;try{t&&wt(r=t.promise)?r.call(t).done(e).fail(n):t&&wt(r=t.then)?r.call(t,e,n):e.apply(void 0,[t].slice(i))}catch(t){n.apply(void 0,[t])}}function h(){lt.removeEventListener("DOMContentLoaded",h),t.removeEventListener("load",h),Dt.ready()}function f(t,e){return e.toUpperCase()}function p(t){return t.replace(Rt,"ms-").replace(Ht,f)}function m(){this.expando=Dt.expando+m.uid++}function g(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:Wt.test(t)?JSON.parse(t):t)}function v(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(qt,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n=g(n)}catch(t){}Ut.set(t,e,n)}else n=void 0;return n}function y(t,e,n,i){var r,o,a=20,s=i?function(){return i.cur()}:function(){return Dt.css(t,e,"")},l=s(),u=n&&n[3]||(Dt.cssNumber[e]?"":"px"),c=t.nodeType&&(Dt.cssNumber[e]||"px"!==u&&+l)&&zt.exec(Dt.css(t,e));if(c&&c[3]!==u){for(l/=2,u=u||c[3],c=+l||1;a--;)Dt.style(t,e,c+u),(1-o)*(1-(o=s()/l||.5))<=0&&(a=0),c/=o;c*=2,Dt.style(t,e,c+u),n=n||[]}return n&&(c=+c||+l||0,r=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=u,i.start=c,i.end=r)),r}function b(t){var e,n=t.ownerDocument,i=t.nodeName,r=Xt[i];return r||(e=n.body.appendChild(n.createElement(i)),r=Dt.css(e,"display"),e.parentNode.removeChild(e),"none"===r&&(r="block"),Xt[i]=r,r)}function w(t,e){for(var n,i,r=[],o=0,a=t.length;o<a;o++)i=t[o],i.style&&(n=i.style.display,e?("none"===n&&(r[o]=Ft.get(i,"display")||null,r[o]||(i.style.display="")),""===i.style.display&&Kt(i)&&(r[o]=b(i))):"none"!==n&&(r[o]="none",Ft.set(i,"display",n)));for(o=0;o<a;o++)null!=r[o]&&(t[o].style.display=r[o]);return t}function _(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&o(t,e)?Dt.merge([t],n):n}function x(t,e){for(var n=0,i=t.length;n<i;n++)Ft.set(t[n],"globalEval",!e||Ft.get(e[n],"globalEval"))}function D(t,e,n,r,o){for(var a,s,l,u,c,d,h=e.createDocumentFragment(),f=[],p=0,m=t.length;p<m;p++)if((a=t[p])||0===a)if("object"===i(a))Dt.merge(f,a.nodeType?[a]:a);else if(re.test(a)){for(s=s||h.appendChild(e.createElement("div")),l=(ee.exec(a)||["",""])[1].toLowerCase(),u=ie[l]||ie._default,s.innerHTML=u[1]+Dt.htmlPrefilter(a)+u[2],d=u[0];d--;)s=s.lastChild;Dt.merge(f,s.childNodes),s=h.firstChild,s.textContent=""}else f.push(e.createTextNode(a));for(h.textContent="",p=0;a=f[p++];)if(r&&Dt.inArray(a,r)>-1)o&&o.push(a);else if(c=Zt(a),s=_(h.appendChild(a),"script"),c&&x(s),n)for(d=0;a=s[d++];)ne.test(a.type||"")&&n.push(a);return h}function k(){return!0}function C(){return!1}function T(t,e){return t===S()==("focus"===e)}function S(){try{return lt.activeElement}catch(t){}}function $(t,e,n,i,r,o){var a,s;if("object"==typeof e){"string"!=typeof n&&(i=i||n,n=void 0);for(s in e)$(t,s,n,i,e[s],o);return t}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=C;else if(!r)return t;return 1===o&&(a=r,r=function(t){return Dt().off(t),a.apply(this,arguments)},r.guid=a.guid||(a.guid=Dt.guid++)),t.each(function(){Dt.event.add(this,e,r,i,n)})}function E(t,e,n){if(!n)return void(void 0===Ft.get(t,e)&&Dt.event.add(t,e,k));Ft.set(t,e,!1),Dt.event.add(t,e,{namespace:!1,handler:function(t){var i,r,o=Ft.get(this,e);if(1&t.isTrigger&&this[e]){if(o.length)(Dt.event.special[e]||{}).delegateType&&t.stopPropagation();else if(o=ct.call(arguments),Ft.set(this,e,o),i=n(this,e),this[e](),r=Ft.get(this,e),o!==r||i?Ft.set(this,e,!1):r={},o!==r)return t.stopImmediatePropagation(),t.preventDefault(),r.value}else o.length&&(Ft.set(this,e,{value:Dt.event.trigger(Dt.extend(o[0],Dt.Event.prototype),o.slice(1),this)}),t.stopImmediatePropagation())}})}function O(t,e){return o(t,"table")&&o(11!==e.nodeType?e:e.firstChild,"tr")?Dt(t).children("tbody")[0]||t:t}function M(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function A(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function j(t,e){var n,i,r,o,a,s,l,u;if(1===e.nodeType){if(Ft.hasData(t)&&(o=Ft.access(t),a=Ft.set(e,o),u=o.events)){delete a.handle,a.events={};for(r in u)for(n=0,i=u[r].length;n<i;n++)Dt.event.add(e,r,u[r][n])}Ut.hasData(t)&&(s=Ut.access(t),l=Dt.extend({},s),Ut.set(e,l))}}function N(t,e){var n=e.nodeName.toLowerCase();"input"===n&&te.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function I(t,e,i,r){e=dt.apply([],e);var o,a,s,l,u,c,d=0,h=t.length,f=h-1,p=e[0],m=wt(p);if(m||h>1&&"string"==typeof p&&!bt.checkClone&&ce.test(p))return t.each(function(n){var o=t.eq(n);m&&(e[0]=p.call(this,n,o.html())),I(o,e,i,r)});if(h&&(o=D(e,t[0].ownerDocument,!1,t,r),a=o.firstChild,1===o.childNodes.length&&(o=a),a||r)){for(s=Dt.map(_(o,"script"),M),l=s.length;d<h;d++)u=o,d!==f&&(u=Dt.clone(u,!0,!0),l&&Dt.merge(s,_(u,"script"))),i.call(t[d],u,d);if(l)for(c=s[s.length-1].ownerDocument,Dt.map(s,A),d=0;d<l;d++)u=s[d],ne.test(u.type||"")&&!Ft.access(u,"globalEval")&&Dt.contains(c,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?Dt._evalUrl&&!u.noModule&&Dt._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")}):n(u.textContent.replace(de,""),u,c))}return t}function P(t,e,n){for(var i,r=e?Dt.filter(e,t):t,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||Dt.cleanData(_(i)),i.parentNode&&(n&&Zt(i)&&x(_(i,"script")),i.parentNode.removeChild(i));return t}function L(t,e,n){var i,r,o,a,s=t.style;return n=n||fe(t),n&&(a=n.getPropertyValue(e)||n[e],""!==a||Zt(t)||(a=Dt.style(t,e)),!bt.pixelBoxStyles()&&he.test(a)&&pe.test(e)&&(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 R(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}function H(t){for(var e=t[0].toUpperCase()+t.slice(1),n=me.length;n--;)if((t=me[n]+e)in ge)return t}function Y(t){var e=Dt.cssProps[t]||ve[t];return e||(t in ge?t:ve[t]=H(t)||t)}function F(t,e,n){var i=zt.exec(e);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):e}function U(t,e,n,i,r,o){var a="width"===e?1:0,s=0,l=0;if(n===(i?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=Dt.css(t,n+Vt[a],!0,r)),i?("content"===n&&(l-=Dt.css(t,"padding"+Vt[a],!0,r)),"margin"!==n&&(l-=Dt.css(t,"border"+Vt[a]+"Width",!0,r))):(l+=Dt.css(t,"padding"+Vt[a],!0,r),"padding"!==n?l+=Dt.css(t,"border"+Vt[a]+"Width",!0,r):s+=Dt.css(t,"border"+Vt[a]+"Width",!0,r));return!i&&o>=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-l-s-.5))||0),l}function W(t,e,n){var i=fe(t),r=!bt.boxSizingReliable()||n,o=r&&"border-box"===Dt.css(t,"boxSizing",!1,i),a=o,s=L(t,e,i),l="offset"+e[0].toUpperCase()+e.slice(1);if(he.test(s)){if(!n)return s;s="auto"}return(!bt.boxSizingReliable()&&o||"auto"===s||!parseFloat(s)&&"inline"===Dt.css(t,"display",!1,i))&&t.getClientRects().length&&(o="border-box"===Dt.css(t,"boxSizing",!1,i),(a=l in t)&&(s=t[l])),(s=parseFloat(s)||0)+U(t,e,n||(o?"border":"content"),a,i,s)+"px"}function q(t,e,n,i,r){return new q.prototype.init(t,e,n,i,r)}function B(){De&&(!1===lt.hidden&&t.requestAnimationFrame?t.requestAnimationFrame(B):t.setTimeout(B,Dt.fx.interval),Dt.fx.tick())}function z(){return t.setTimeout(function(){xe=void 0}),xe=Date.now()}function V(t,e){var n,i=0,r={height:t};for(e=e?1:0;i<4;i+=2-e)n=Vt[i],r["margin"+n]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function G(t,e,n){for(var i,r=(K.tweeners[e]||[]).concat(K.tweeners["*"]),o=0,a=r.length;o<a;o++)if(i=r[o].call(n,e,t))return i}function Z(t,e,n){var i,r,o,a,s,l,u,c,d="width"in e||"height"in e,h=this,f={},p=t.style,m=t.nodeType&&Kt(t),g=Ft.get(t,"fxshow");n.queue||(a=Dt._queueHooks(t,"fx"),null==a.unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,h.always(function(){h.always(function(){a.unqueued--,Dt.queue(t,"fx").length||a.empty.fire()})}));for(i in e)if(r=e[i],ke.test(r)){if(delete e[i],o=o||"toggle"===r,r===(m?"hide":"show")){if("show"!==r||!g||void 0===g[i])continue;m=!0}f[i]=g&&g[i]||Dt.style(t,i)}if((l=!Dt.isEmptyObject(e))||!Dt.isEmptyObject(f)){d&&1===t.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],u=g&&g.display,null==u&&(u=Ft.get(t,"display")),c=Dt.css(t,"display"),"none"===c&&(u?c=u:(w([t],!0),u=t.style.display||u,c=Dt.css(t,"display"),w([t]))),("inline"===c||"inline-block"===c&&null!=u)&&"none"===Dt.css(t,"float")&&(l||(h.done(function(){p.display=u}),null==u&&(c=p.display,u="none"===c?"":c)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",h.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]})),l=!1;for(i in f)l||(g?"hidden"in g&&(m=g.hidden):g=Ft.access(t,"fxshow",{display:u}),o&&(g.hidden=!m),m&&w([t],!0),h.done(function(){m||w([t]),Ft.remove(t,"fxshow");for(i in f)Dt.style(t,i,f[i])})),l=G(m?g[i]:0,i,h),i in g||(g[i]=l.start,m&&(l.end=l.start,l.start=0))}}function Q(t,e){var n,i,r,o,a;for(n in t)if(i=p(n),r=e[i],o=t[n],Array.isArray(o)&&(r=o[1],o=t[n]=o[0]),n!==i&&(t[i]=o,delete t[n]),(a=Dt.cssHooks[i])&&"expand"in a){o=a.expand(o),delete t[i];for(n in o)n in t||(t[n]=o[n],e[n]=r)}else e[i]=r}function K(t,e,n){var i,r,o=0,a=K.prefilters.length,s=Dt.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var e=xe||z(),n=Math.max(0,u.startTime+u.duration-e),i=n/u.duration||0,o=1-i,a=0,l=u.tweens.length;a<l;a++)u.tweens[a].run(o);return s.notifyWith(t,[u,o,n]),o<1&&l?n:(l||s.notifyWith(t,[u,1,0]),s.resolveWith(t,[u]),!1)},u=s.promise({elem:t,props:Dt.extend({},e),opts:Dt.extend(!0,{specialEasing:{},easing:Dt.easing._default},n),originalProperties:e,originalOptions:n,startTime:xe||z(),duration:n.duration,tweens:[],createTween:function(e,n){var i=Dt.Tween(t,u.opts,e,n,u.opts.specialEasing[e]||u.opts.easing);return u.tweens.push(i),i},stop:function(e){var n=0,i=e?u.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)u.tweens[n].run(1);return e?(s.notifyWith(t,[u,1,0]),s.resolveWith(t,[u,e])):s.rejectWith(t,[u,e]),this}}),c=u.props;for(Q(c,u.opts.specialEasing);o<a;o++)if(i=K.prefilters[o].call(u,t,c,u.opts))return wt(i.stop)&&(Dt._queueHooks(u.elem,u.opts.queue).stop=i.stop.bind(i)),i;return Dt.map(c,G,u),wt(u.opts.start)&&u.opts.start.call(t,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),Dt.fx.timer(Dt.extend(l,{elem:t,anim:u,queue:u.opts.queue})),u}function J(t){return(t.match(Nt)||[]).join(" ")}function X(t){return t.getAttribute&&t.getAttribute("class")||""}function tt(t){return Array.isArray(t)?t:"string"==typeof t?t.match(Nt)||[]:[]}function et(t,e,n,r){var o;if(Array.isArray(e))Dt.each(e,function(e,i){n||Pe.test(t)?r(t,i):et(t+"["+("object"==typeof i&&null!=i?e:"")+"]",i,n,r)});else if(n||"object"!==i(e))r(t,e);else for(o in e)et(t+"["+o+"]",e[o],n,r)}function nt(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,r=0,o=e.toLowerCase().match(Nt)||[];if(wt(n))for(;i=o[r++];)"+"===i[0]?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function it(t,e,n,i){function r(s){var l;return o[s]=!0,Dt.each(t[s]||[],function(t,s){var u=s(e,n,i);return"string"!=typeof u||a||o[u]?a?!(l=u):void 0:(e.dataTypes.unshift(u),r(u),!1)}),l}var o={},a=t===Ge;return r(e.dataTypes[0])||!o["*"]&&r("*")}function rt(t,e){var n,i,r=Dt.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((r[n]?t:i||(i={}))[n]=e[n]);return i&&Dt.extend(!0,t,i),t}function ot(t,e,n){for(var i,r,o,a,s=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(r in s)if(s[r]&&s[r].test(i)){l.unshift(r);break}if(l[0]in n)o=l[0];else{for(r in n){if(!l[0]||t.converters[r+" "+l[0]]){o=r;break}a||(a=r)}o=o||a}if(o)return o!==l[0]&&l.unshift(o),n[o]}function at(t,e,n,i){var r,o,a,s,l,u={},c=t.dataTypes.slice();if(c[1])for(a in t.converters)u[a.toLowerCase()]=t.converters[a];for(o=c.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=u[l+" "+o]||u["* "+o]))for(r in u)if(s=r.split(" "),s[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){!0===a?a=u[r]:!0!==u[r]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}var st=[],lt=t.document,ut=Object.getPrototypeOf,ct=st.slice,dt=st.concat,ht=st.push,ft=st.indexOf,pt={},mt=pt.toString,gt=pt.hasOwnProperty,vt=gt.toString,yt=vt.call(Object),bt={},wt=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType},_t=function(t){return null!=t&&t===t.window},xt={type:!0,src:!0,nonce:!0,noModule:!0},Dt=function(t,e){return new Dt.fn.init(t,e)},kt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;Dt.fn=Dt.prototype={jquery:"3.4.1",constructor:Dt,length:0,toArray:function(){return ct.call(this)},get:function(t){return null==t?ct.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=Dt.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return Dt.each(this,t)},map:function(t){return this.pushStack(Dt.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(ct.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:ht,sort:st.sort,splice:st.splice},Dt.extend=Dt.fn.extend=function(){var t,e,n,i,r,o,a=arguments[0]||{},s=1,l=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[s]||{},s++),"object"==typeof a||wt(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(t=arguments[s]))for(e in t)i=t[e],"__proto__"!==e&&a!==i&&(u&&i&&(Dt.isPlainObject(i)||(r=Array.isArray(i)))?(n=a[e],o=r&&!Array.isArray(n)?[]:r||Dt.isPlainObject(n)?n:{},r=!1,a[e]=Dt.extend(u,o,i)):void 0!==i&&(a[e]=i));return a},Dt.extend({expando:"jQuery"+("3.4.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,n;return!(!t||"[object Object]"!==mt.call(t))&&(!(e=ut(t))||"function"==typeof(n=gt.call(e,"constructor")&&e.constructor)&&vt.call(n)===yt)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e){n(t,{nonce:e&&e.nonce})},each:function(t,e){var n,i=0;if(r(t))for(n=t.length;i<n&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(!1===e.call(t[i],i,t[i]))break;return t},trim:function(t){return null==t?"":(t+"").replace(kt,"")},makeArray:function(t,e){var n=e||[];return null!=t&&(r(Object(t))?Dt.merge(n,"string"==typeof t?[t]:t):ht.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:ft.call(e,t,n)},merge:function(t,e){for(var n=+e.length,i=0,r=t.length;i<n;i++)t[r++]=e[i];return t.length=r,t},grep:function(t,e,n){for(var i=[],r=0,o=t.length,a=!n;r<o;r++)!e(t[r],r)!==a&&i.push(t[r]);return i},map:function(t,e,n){var i,o,a=0,s=[];if(r(t))for(i=t.length;a<i;a++)null!=(o=e(t[a],a,n))&&s.push(o);else for(a in t)null!=(o=e(t[a],a,n))&&s.push(o);return dt.apply([],s)},guid:1,support:bt}),"function"==typeof Symbol&&(Dt.fn[Symbol.iterator]=st[Symbol.iterator]),Dt.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){pt["[object "+e+"]"]=e.toLowerCase()});var Ct=function(t){function e(t,e,n,i){var r,o,a,s,l,c,h,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!i&&((e?e.ownerDocument||e:H)!==M&&O(e),e=e||M,j)){if(11!==p&&(l=vt.exec(t)))if(r=l[1]){if(9===p){if(!(a=e.getElementById(r)))return n;if(a.id===r)return n.push(a),n}else if(f&&(a=f.getElementById(r))&&L(e,a)&&a.id===r)return n.push(a),n}else{if(l[2])return K.apply(n,e.getElementsByTagName(t)),n;if((r=l[3])&&w.getElementsByClassName&&e.getElementsByClassName)return K.apply(n,e.getElementsByClassName(r)),n}if(w.qsa&&!B[t+" "]&&(!N||!N.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(h=t,f=e,1===p&&ut.test(t)){for((s=e.getAttribute("id"))?s=s.replace(_t,xt):e.setAttribute("id",s=R),c=k(t),o=c.length;o--;)c[o]="#"+s+" "+d(c[o]);h=c.join(","),f=yt.test(t)&&u(e.parentNode)||e}try{return K.apply(n,f.querySelectorAll(h)),n}catch(e){B(t,!0)}finally{s===R&&e.removeAttribute("id")}}}return T(t.replace(at,"$1"),e,n,i)}function n(){function t(n,i){return e.push(n+" ")>_.cacheLength&&delete t[e.shift()],t[n+" "]=i}var e=[];return t}function i(t){return t[R]=!0,t}function r(t){var e=M.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function o(t,e){for(var n=t.split("|"),i=n.length;i--;)_.attrHandle[n[i]]=e}function a(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function s(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&kt(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function l(t){return i(function(e){return e=+e,i(function(n,i){for(var r,o=t([],n.length,e),a=o.length;a--;)n[r=o[a]]&&(n[r]=!(i[r]=n[r]))})})}function u(t){return t&&void 0!==t.getElementsByTagName&&t}function c(){}function d(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function h(t,e,n){var i=e.dir,r=e.next,o=r||i,a=n&&"parentNode"===o,s=F++;return e.first?function(e,n,r){for(;e=e[i];)if(1===e.nodeType||a)return t(e,n,r);return!1}:function(e,n,l){var u,c,d,h=[Y,s];if(l){for(;e=e[i];)if((1===e.nodeType||a)&&t(e,n,l))return!0}else for(;e=e[i];)if(1===e.nodeType||a)if(d=e[R]||(e[R]={}),c=d[e.uniqueID]||(d[e.uniqueID]={}),r&&r===e.nodeName.toLowerCase())e=e[i]||e;else{if((u=c[o])&&u[0]===Y&&u[1]===s)return h[2]=u[2];if(c[o]=h,h[2]=t(e,n,l))return!0}return!1}}function f(t){return t.length>1?function(e,n,i){for(var r=t.length;r--;)if(!t[r](e,n,i))return!1;return!0}:t[0]}function p(t,n,i){for(var r=0,o=n.length;r<o;r++)e(t,n[r],i);return i}function m(t,e,n,i,r){for(var o,a=[],s=0,l=t.length,u=null!=e;s<l;s++)(o=t[s])&&(n&&!n(o,i,r)||(a.push(o),u&&e.push(s)));return a}function g(t,e,n,r,o,a){return r&&!r[R]&&(r=g(r)),o&&!o[R]&&(o=g(o,a)),i(function(i,a,s,l){var u,c,d,h=[],f=[],g=a.length,v=i||p(e||"*",s.nodeType?[s]:s,[]),y=!t||!i&&e?v:m(v,h,t,s,l),b=n?o||(i?t:g||r)?[]:a:y;if(n&&n(y,b,s,l),r)for(u=m(b,f),r(u,[],s,l),c=u.length;c--;)(d=u[c])&&(b[f[c]]=!(y[f[c]]=d));if(i){if(o||t){if(o){for(u=[],c=b.length;c--;)(d=b[c])&&u.push(y[c]=d);o(null,b=[],u,l)}for(c=b.length;c--;)(d=b[c])&&(u=o?X(i,d):h[c])>-1&&(i[u]=!(a[u]=d))}}else b=m(b===a?b.splice(g,b.length):b),o?o(null,a,b,l):K.apply(a,b)})}function v(t){for(var e,n,i,r=t.length,o=_.relative[t[0].type],a=o||_.relative[" "],s=o?1:0,l=h(function(t){return t===e},a,!0),u=h(function(t){return X(e,t)>-1},a,!0),c=[function(t,n,i){var r=!o&&(i||n!==S)||((e=n).nodeType?l(t,n,i):u(t,n,i));return e=null,r}];s<r;s++)if(n=_.relative[t[s].type])c=[h(f(c),n)];else{if(n=_.filter[t[s].type].apply(null,t[s].matches),n[R]){for(i=++s;i<r&&!_.relative[t[i].type];i++);return g(s>1&&f(c),s>1&&d(t.slice(0,s-1).concat({value:" "===t[s-2].type?"*":""})).replace(at,"$1"),n,s<i&&v(t.slice(s,i)),i<r&&v(t=t.slice(i)),i<r&&d(t))}c.push(n)}return f(c)}function y(t,n){var r=n.length>0,o=t.length>0,a=function(i,a,s,l,u){var c,d,h,f=0,p="0",g=i&&[],v=[],y=S,b=i||o&&_.find.TAG("*",u),w=Y+=null==y?1:Math.random()||.1,x=b.length;for(u&&(S=a===M||a||u);p!==x&&null!=(c=b[p]);p++){if(o&&c){for(d=0,a||c.ownerDocument===M||(O(c),s=!j);h=t[d++];)if(h(c,a||M,s)){l.push(c);break}u&&(Y=w)}r&&((c=!h&&c)&&f--,i&&g.push(c))}if(f+=p,r&&p!==f){for(d=0;h=n[d++];)h(g,v,a,s);if(i){if(f>0)for(;p--;)g[p]||v[p]||(v[p]=Z.call(l));v=m(v)}K.apply(l,v),u&&!i&&v.length>0&&f+n.length>1&&e.uniqueSort(l)}return u&&(Y=w,S=y),g};return r?i(a):a}var b,w,_,x,D,k,C,T,S,$,E,O,M,A,j,N,I,P,L,R="sizzle"+1*new Date,H=t.document,Y=0,F=0,U=n(),W=n(),q=n(),B=n(),z=function(t,e){return t===e&&(E=!0),0},V={}.hasOwnProperty,G=[],Z=G.pop,Q=G.push,K=G.push,J=G.slice,X=function(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1},tt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",et="[\\x20\\t\\r\\n\\f]",nt="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",it="\\["+et+"*("+nt+")(?:"+et+"*([*^$|!~]?=)"+et+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+nt+"))|)"+et+"*\\]",rt=":("+nt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+it+")*)|.*)\\)|)",ot=new RegExp(et+"+","g"),at=new RegExp("^"+et+"+|((?:^|[^\\\\])(?:\\\\.)*)"+et+"+$","g"),st=new RegExp("^"+et+"*,"+et+"*"),lt=new RegExp("^"+et+"*([>+~]|"+et+")"+et+"*"),ut=new RegExp(et+"|>"),ct=new RegExp(rt),dt=new RegExp("^"+nt+"$"),ht={ID:new RegExp("^#("+nt+")"),CLASS:new RegExp("^\\.("+nt+")"),TAG:new RegExp("^("+nt+"|[*])"),ATTR:new RegExp("^"+it),PSEUDO:new RegExp("^"+rt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+et+"*(even|odd|(([+-]|)(\\d*)n|)"+et+"*(?:([+-]|)"+et+"*(\\d+)|))"+et+"*\\)|)","i"),bool:new RegExp("^(?:"+tt+")$","i"),needsContext:new RegExp("^"+et+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+et+"*((?:-\\d)?\\d*)"+et+"*\\)|)(?=[^-]|$)","i")},ft=/HTML$/i,pt=/^(?:input|select|textarea|button)$/i,mt=/^h\d$/i,gt=/^[^{]+\{\s*\[native \w/,vt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,yt=/[+~]/,bt=new RegExp("\\\\([\\da-f]{1,6}"+et+"?|("+et+")|.)","ig"),wt=function(t,e,n){var i="0x"+e-65536;return i!==i||n?e:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},_t=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,xt=function(t,e){return e?"\0"===t?"<22>":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},Dt=function(){O()},kt=h(function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{K.apply(G=J.call(H.childNodes),H.childNodes),G[H.childNodes.length].nodeType}catch(t){K={apply:G.length?function(t,e){Q.apply(t,J.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}w=e.support={},D=e.isXML=function(t){var e=t.namespaceURI,n=(t.ownerDocument||t).documentElement;return!ft.test(e||n&&n.nodeName||"HTML")},O=e.setDocument=function(t){var e,n,i=t?t.ownerDocument||t:H;return i!==M&&9===i.nodeType&&i.documentElement?(M=i,A=M.documentElement,j=!D(M),H!==M&&(n=M.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",Dt,!1):n.attachEvent&&n.attachEvent("onunload",Dt)),w.attributes=r(function(t){return t.className="i",!t.getAttribute("className")}),w.getElementsByTagName=r(function(t){return t.appendChild(M.createComment("")),!t.getElementsByTagName("*").length}),w.getElementsByClassName=gt.test(M.getElementsByClassName),w.getById=r(function(t){return A.appendChild(t).id=R,
!M.getElementsByName||!M.getElementsByName(R).length}),w.getById?(_.filter.ID=function(t){var e=t.replace(bt,wt);return function(t){return t.getAttribute("id")===e}},_.find.ID=function(t,e){if(void 0!==e.getElementById&&j){var n=e.getElementById(t);return n?[n]:[]}}):(_.filter.ID=function(t){var e=t.replace(bt,wt);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},_.find.ID=function(t,e){if(void 0!==e.getElementById&&j){var n,i,r,o=e.getElementById(t);if(o){if((n=o.getAttributeNode("id"))&&n.value===t)return[o];for(r=e.getElementsByName(t),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===t)return[o]}return[]}}),_.find.TAG=w.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):w.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],r=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[r++];)1===n.nodeType&&i.push(n);return i}return o},_.find.CLASS=w.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&j)return e.getElementsByClassName(t)},I=[],N=[],(w.qsa=gt.test(M.querySelectorAll))&&(r(function(t){A.appendChild(t).innerHTML="<a id='"+R+"'></a><select id='"+R+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&N.push("[*^$]="+et+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||N.push("\\["+et+"*(?:value|"+tt+")"),t.querySelectorAll("[id~="+R+"-]").length||N.push("~="),t.querySelectorAll(":checked").length||N.push(":checked"),t.querySelectorAll("a#"+R+"+*").length||N.push(".#.+[+~]")}),r(function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=M.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&N.push("name"+et+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&N.push(":enabled",":disabled"),A.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&N.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),N.push(",.*:")})),(w.matchesSelector=gt.test(P=A.matches||A.webkitMatchesSelector||A.mozMatchesSelector||A.oMatchesSelector||A.msMatchesSelector))&&r(function(t){w.disconnectedMatch=P.call(t,"*"),P.call(t,"[s!='']:x"),I.push("!=",rt)}),N=N.length&&new RegExp(N.join("|")),I=I.length&&new RegExp(I.join("|")),e=gt.test(A.compareDocumentPosition),L=e||gt.test(A.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},z=e?function(t,e){if(t===e)return E=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&n||!w.sortDetached&&e.compareDocumentPosition(t)===n?t===M||t.ownerDocument===H&&L(H,t)?-1:e===M||e.ownerDocument===H&&L(H,e)?1:$?X($,t)-X($,e):0:4&n?-1:1)}:function(t,e){if(t===e)return E=!0,0;var n,i=0,r=t.parentNode,o=e.parentNode,s=[t],l=[e];if(!r||!o)return t===M?-1:e===M?1:r?-1:o?1:$?X($,t)-X($,e):0;if(r===o)return a(t,e);for(n=t;n=n.parentNode;)s.unshift(n);for(n=e;n=n.parentNode;)l.unshift(n);for(;s[i]===l[i];)i++;return i?a(s[i],l[i]):s[i]===H?-1:l[i]===H?1:0},M):M},e.matches=function(t,n){return e(t,null,null,n)},e.matchesSelector=function(t,n){if((t.ownerDocument||t)!==M&&O(t),w.matchesSelector&&j&&!B[n+" "]&&(!I||!I.test(n))&&(!N||!N.test(n)))try{var i=P.call(t,n);if(i||w.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){B(n,!0)}return e(n,M,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==M&&O(t),L(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==M&&O(t);var n=_.attrHandle[e.toLowerCase()],i=n&&V.call(_.attrHandle,e.toLowerCase())?n(t,e,!j):void 0;return void 0!==i?i:w.attributes||!j?t.getAttribute(e):(i=t.getAttributeNode(e))&&i.specified?i.value:null},e.escape=function(t){return(t+"").replace(_t,xt)},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,n=[],i=0,r=0;if(E=!w.detectDuplicates,$=!w.sortStable&&t.slice(0),t.sort(z),E){for(;e=t[r++];)e===t[r]&&(i=n.push(r));for(;i--;)t.splice(n[i],1)}return $=null,t},x=e.getText=function(t){var e,n="",i=0,r=t.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=x(t)}else if(3===r||4===r)return t.nodeValue}else for(;e=t[i++];)n+=x(e);return n},_=e.selectors={cacheLength:50,createPseudo:i,match:ht,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(bt,wt),t[3]=(t[3]||t[4]||t[5]||"").replace(bt,wt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||e.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&e.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return ht.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&ct.test(n)&&(e=k(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(bt,wt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=U[t+" "];return e||(e=new RegExp("(^|"+et+")"+t+"("+et+"|$)"))&&U(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,n,i){return function(r){var o=e.attr(r,t);return null==o?"!="===n:!n||(o+="","="===n?o===i:"!="===n?o!==i:"^="===n?i&&0===o.indexOf(i):"*="===n?i&&o.indexOf(i)>-1:"$="===n?i&&o.slice(-i.length)===i:"~="===n?(" "+o.replace(ot," ")+" ").indexOf(i)>-1:"|="===n&&(o===i||o.slice(0,i.length+1)===i+"-"))}},CHILD:function(t,e,n,i,r){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===i&&0===r?function(t){return!!t.parentNode}:function(e,n,l){var u,c,d,h,f,p,m=o!==a?"nextSibling":"previousSibling",g=e.parentNode,v=s&&e.nodeName.toLowerCase(),y=!l&&!s,b=!1;if(g){if(o){for(;m;){for(h=e;h=h[m];)if(s?h.nodeName.toLowerCase()===v:1===h.nodeType)return!1;p=m="only"===t&&!p&&"nextSibling"}return!0}if(p=[a?g.firstChild:g.lastChild],a&&y){for(h=g,d=h[R]||(h[R]={}),c=d[h.uniqueID]||(d[h.uniqueID]={}),u=c[t]||[],f=u[0]===Y&&u[1],b=f&&u[2],h=f&&g.childNodes[f];h=++f&&h&&h[m]||(b=f=0)||p.pop();)if(1===h.nodeType&&++b&&h===e){c[t]=[Y,f,b];break}}else if(y&&(h=e,d=h[R]||(h[R]={}),c=d[h.uniqueID]||(d[h.uniqueID]={}),u=c[t]||[],f=u[0]===Y&&u[1],b=f),!1===b)for(;(h=++f&&h&&h[m]||(b=f=0)||p.pop())&&((s?h.nodeName.toLowerCase()!==v:1!==h.nodeType)||!++b||(y&&(d=h[R]||(h[R]={}),c=d[h.uniqueID]||(d[h.uniqueID]={}),c[t]=[Y,b]),h!==e)););return(b-=r)===i||b%i==0&&b/i>=0}}},PSEUDO:function(t,n){var r,o=_.pseudos[t]||_.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return o[R]?o(n):o.length>1?(r=[t,t,"",n],_.setFilters.hasOwnProperty(t.toLowerCase())?i(function(t,e){for(var i,r=o(t,n),a=r.length;a--;)i=X(t,r[a]),t[i]=!(e[i]=r[a])}):function(t){return o(t,0,r)}):o}},pseudos:{not:i(function(t){var e=[],n=[],r=C(t.replace(at,"$1"));return r[R]?i(function(t,e,n,i){for(var o,a=r(t,null,i,[]),s=t.length;s--;)(o=a[s])&&(t[s]=!(e[s]=o))}):function(t,i,o){return e[0]=t,r(e,null,o,n),e[0]=null,!n.pop()}}),has:i(function(t){return function(n){return e(t,n).length>0}}),contains:i(function(t){return t=t.replace(bt,wt),function(e){return(e.textContent||x(e)).indexOf(t)>-1}}),lang:i(function(t){return dt.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(bt,wt).toLowerCase(),function(e){var n;do{if(n=j?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===A},focus:function(t){return t===M.activeElement&&(!M.hasFocus||M.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:s(!1),disabled:s(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!_.pseudos.empty(t)},header:function(t){return mt.test(t.nodeName)},input:function(t){return pt.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:l(function(){return[0]}),last:l(function(t,e){return[e-1]}),eq:l(function(t,e,n){return[n<0?n+e:n]}),even:l(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:l(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:l(function(t,e,n){for(var i=n<0?n+e:n>e?e:n;--i>=0;)t.push(i);return t}),gt:l(function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t})}},_.pseudos.nth=_.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})_.pseudos[b]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(b);for(b in{submit:!0,reset:!0})_.pseudos[b]=function(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}(b);return c.prototype=_.filters=_.pseudos,_.setFilters=new c,k=e.tokenize=function(t,n){var i,r,o,a,s,l,u,c=W[t+" "];if(c)return n?0:c.slice(0);for(s=t,l=[],u=_.preFilter;s;){i&&!(r=st.exec(s))||(r&&(s=s.slice(r[0].length)||s),l.push(o=[])),i=!1,(r=lt.exec(s))&&(i=r.shift(),o.push({value:i,type:r[0].replace(at," ")}),s=s.slice(i.length));for(a in _.filter)!(r=ht[a].exec(s))||u[a]&&!(r=u[a](r))||(i=r.shift(),o.push({value:i,type:a,matches:r}),s=s.slice(i.length));if(!i)break}return n?s.length:s?e.error(t):W(t,l).slice(0)},C=e.compile=function(t,e){var n,i=[],r=[],o=q[t+" "];if(!o){for(e||(e=k(t)),n=e.length;n--;)o=v(e[n]),o[R]?i.push(o):r.push(o);o=q(t,y(r,i)),o.selector=t}return o},T=e.select=function(t,e,n,i){var r,o,a,s,l,c="function"==typeof t&&t,h=!i&&k(t=c.selector||t);if(n=n||[],1===h.length){if(o=h[0]=h[0].slice(0),o.length>2&&"ID"===(a=o[0]).type&&9===e.nodeType&&j&&_.relative[o[1].type]){if(!(e=(_.find.ID(a.matches[0].replace(bt,wt),e)||[])[0]))return n;c&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(r=ht.needsContext.test(t)?0:o.length;r--&&(a=o[r],!_.relative[s=a.type]);)if((l=_.find[s])&&(i=l(a.matches[0].replace(bt,wt),yt.test(o[0].type)&&u(e.parentNode)||e))){if(o.splice(r,1),!(t=i.length&&d(o)))return K.apply(n,i),n;break}}return(c||C(t,h))(i,e,!j,n,!e||yt.test(t)&&u(e.parentNode)||e),n},w.sortStable=R.split("").sort(z).join("")===R,w.detectDuplicates=!!E,O(),w.sortDetached=r(function(t){return 1&t.compareDocumentPosition(M.createElement("fieldset"))}),r(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||o("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),w.attributes&&r(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||o("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),r(function(t){return null==t.getAttribute("disabled")})||o(tt,function(t,e,n){var i;if(!n)return!0===t[e]?e.toLowerCase():(i=t.getAttributeNode(e))&&i.specified?i.value:null}),e}(t);Dt.find=Ct,Dt.expr=Ct.selectors,Dt.expr[":"]=Dt.expr.pseudos,Dt.uniqueSort=Dt.unique=Ct.uniqueSort,Dt.text=Ct.getText,Dt.isXMLDoc=Ct.isXML,Dt.contains=Ct.contains,Dt.escapeSelector=Ct.escape;var Tt=function(t,e,n){for(var i=[],r=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&Dt(t).is(n))break;i.push(t)}return i},St=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},$t=Dt.expr.match.needsContext,Et=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;Dt.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?Dt.find.matchesSelector(i,t)?[i]:[]:Dt.find.matches(t,Dt.grep(e,function(t){return 1===t.nodeType}))},Dt.fn.extend({find:function(t){var e,n,i=this.length,r=this;if("string"!=typeof t)return this.pushStack(Dt(t).filter(function(){for(e=0;e<i;e++)if(Dt.contains(r[e],this))return!0}));for(n=this.pushStack([]),e=0;e<i;e++)Dt.find(t,r[e],n);return i>1?Dt.uniqueSort(n):n},filter:function(t){return this.pushStack(a(this,t||[],!1))},not:function(t){return this.pushStack(a(this,t||[],!0))},is:function(t){return!!a(this,"string"==typeof t&&$t.test(t)?Dt(t):t||[],!1).length}});var Ot,Mt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(Dt.fn.init=function(t,e,n){var i,r;if(!t)return this;if(n=n||Ot,"string"==typeof t){if(!(i="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:Mt.exec(t))||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof Dt?e[0]:e,Dt.merge(this,Dt.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:lt,!0)),Et.test(i[1])&&Dt.isPlainObject(e))for(i in e)wt(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return r=lt.getElementById(i[2]),r&&(this[0]=r,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):wt(t)?void 0!==n.ready?n.ready(t):t(Dt):Dt.makeArray(t,this)}).prototype=Dt.fn,Ot=Dt(lt);var At=/^(?:parents|prev(?:Until|All))/,jt={children:!0,contents:!0,next:!0,prev:!0};Dt.fn.extend({has:function(t){var e=Dt(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(Dt.contains(this,e[t]))return!0})},closest:function(t,e){var n,i=0,r=this.length,o=[],a="string"!=typeof t&&Dt(t);if(!$t.test(t))for(;i<r;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&Dt.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?Dt.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?ft.call(Dt(t),this[0]):ft.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(Dt.uniqueSort(Dt.merge(this.get(),Dt(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),Dt.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return Tt(t,"parentNode")},parentsUntil:function(t,e,n){return Tt(t,"parentNode",n)},next:function(t){return s(t,"nextSibling")},prev:function(t){return s(t,"previousSibling")},nextAll:function(t){return Tt(t,"nextSibling")},prevAll:function(t){return Tt(t,"previousSibling")},nextUntil:function(t,e,n){return Tt(t,"nextSibling",n)},prevUntil:function(t,e,n){return Tt(t,"previousSibling",n)},siblings:function(t){return St((t.parentNode||{}).firstChild,t)},children:function(t){return St(t.firstChild)},contents:function(t){return void 0!==t.contentDocument?t.contentDocument:(o(t,"template")&&(t=t.content||t),Dt.merge([],t.childNodes))}},function(t,e){Dt.fn[t]=function(n,i){var r=Dt.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=Dt.filter(i,r)),this.length>1&&(jt[t]||Dt.uniqueSort(r),At.test(t)&&r.reverse()),this.pushStack(r)}});var Nt=/[^\x20\t\r\n\f]+/g;Dt.Callbacks=function(t){t="string"==typeof t?l(t):Dt.extend({},t);var e,n,r,o,a=[],s=[],u=-1,c=function(){for(o=o||t.once,r=e=!0;s.length;u=-1)for(n=s.shift();++u<a.length;)!1===a[u].apply(n[0],n[1])&&t.stopOnFalse&&(u=a.length,n=!1);t.memory||(n=!1),e=!1,o&&(a=n?[]:"")},d={add:function(){return a&&(n&&!e&&(u=a.length-1,s.push(n)),function e(n){Dt.each(n,function(n,r){wt(r)?t.unique&&d.has(r)||a.push(r):r&&r.length&&"string"!==i(r)&&e(r)})}(arguments),n&&!e&&c()),this},remove:function(){return Dt.each(arguments,function(t,e){for(var n;(n=Dt.inArray(e,a,n))>-1;)a.splice(n,1),n<=u&&u--}),this},has:function(t){return t?Dt.inArray(t,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return o=s=[],a=n="",this},disabled:function(){return!a},lock:function(){return o=s=[],n||e||(a=n=""),this},locked:function(){return!!o},fireWith:function(t,n){return o||(n=n||[],n=[t,n.slice?n.slice():n],s.push(n),e||c()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!r}};return d},Dt.extend({Deferred:function(e){var n=[["notify","progress",Dt.Callbacks("memory"),Dt.Callbacks("memory"),2],["resolve","done",Dt.Callbacks("once memory"),Dt.Callbacks("once memory"),0,"resolved"],["reject","fail",Dt.Callbacks("once memory"),Dt.Callbacks("once memory"),1,"rejected"]],i="pending",r={state:function(){return i},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return r.then(null,t)},pipe:function(){var t=arguments;return Dt.Deferred(function(e){Dt.each(n,function(n,i){var r=wt(t[i[4]])&&t[i[4]];o[i[1]](function(){var t=r&&r.apply(this,arguments);t&&wt(t.promise)?t.promise().progress(e.notify).done(e.resolve).fail(e.reject):e[i[0]+"With"](this,r?[t]:arguments)})}),t=null}).promise()},then:function(e,i,r){function o(e,n,i,r){return function(){var s=this,l=arguments,d=function(){var t,d;if(!(e<a)){if((t=i.apply(s,l))===n.promise())throw new TypeError("Thenable self-resolution");d=t&&("object"==typeof t||"function"==typeof t)&&t.then,wt(d)?r?d.call(t,o(a,n,u,r),o(a,n,c,r)):(a++,d.call(t,o(a,n,u,r),o(a,n,c,r),o(a,n,u,n.notifyWith))):(i!==u&&(s=void 0,l=[t]),(r||n.resolveWith)(s,l))}},h=r?d:function(){try{d()}catch(t){Dt.Deferred.exceptionHook&&Dt.Deferred.exceptionHook(t,h.stackTrace),e+1>=a&&(i!==c&&(s=void 0,l=[t]),n.rejectWith(s,l))}};e?h():(Dt.Deferred.getStackHook&&(h.stackTrace=Dt.Deferred.getStackHook()),t.setTimeout(h))}}var a=0;return Dt.Deferred(function(t){n[0][3].add(o(0,t,wt(r)?r:u,t.notifyWith)),n[1][3].add(o(0,t,wt(e)?e:u)),n[2][3].add(o(0,t,wt(i)?i:c))}).promise()},promise:function(t){return null!=t?Dt.extend(t,r):r}},o={};return Dt.each(n,function(t,e){var a=e[2],s=e[5];r[e[1]]=a.add,s&&a.add(function(){i=s},n[3-t][2].disable,n[3-t][3].disable,n[0][2].lock,n[0][3].lock),a.add(e[3].fire),o[e[0]]=function(){return o[e[0]+"With"](this===o?void 0:this,arguments),this},o[e[0]+"With"]=a.fireWith}),r.promise(o),e&&e.call(o,o),o},when:function(t){var e=arguments.length,n=e,i=Array(n),r=ct.call(arguments),o=Dt.Deferred(),a=function(t){return function(n){i[t]=this,r[t]=arguments.length>1?ct.call(arguments):n,--e||o.resolveWith(i,r)}};if(e<=1&&(d(t,o.done(a(n)).resolve,o.reject,!e),"pending"===o.state()||wt(r[n]&&r[n].then)))return o.then();for(;n--;)d(r[n],a(n),o.reject);return o.promise()}});var It=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;Dt.Deferred.exceptionHook=function(e,n){t.console&&t.console.warn&&e&&It.test(e.name)&&t.console.warn("jQuery.Deferred exception: "+e.message,e.stack,n)},Dt.readyException=function(e){t.setTimeout(function(){throw e})};var Pt=Dt.Deferred();Dt.fn.ready=function(t){return Pt.then(t).catch(function(t){Dt.readyException(t)}),this},Dt.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--Dt.readyWait:Dt.isReady)||(Dt.isReady=!0,!0!==t&&--Dt.readyWait>0||Pt.resolveWith(lt,[Dt]))}}),Dt.ready.then=Pt.then,"complete"===lt.readyState||"loading"!==lt.readyState&&!lt.documentElement.doScroll?t.setTimeout(Dt.ready):(lt.addEventListener("DOMContentLoaded",h),t.addEventListener("load",h));var Lt=function(t,e,n,r,o,a,s){var l=0,u=t.length,c=null==n;if("object"===i(n)){o=!0;for(l in n)Lt(t,e,l,n[l],!0,a,s)}else if(void 0!==r&&(o=!0,wt(r)||(s=!0),c&&(s?(e.call(t,r),e=null):(c=e,e=function(t,e,n){return c.call(Dt(t),n)})),e))for(;l<u;l++)e(t[l],n,s?r:r.call(t[l],l,e(t[l],n)));return o?t:c?e.call(t):u?e(t[0],n):a},Rt=/^-ms-/,Ht=/-([a-z])/g,Yt=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};m.uid=1,m.prototype={cache:function(t){var e=t[this.expando];return e||(e={},Yt(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var i,r=this.cache(t);if("string"==typeof e)r[p(e)]=n;else for(i in e)r[p(i)]=e[i];return r},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][p(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i=t[this.expando];if(void 0!==i){if(void 0!==e){Array.isArray(e)?e=e.map(p):(e=p(e),e=e in i?[e]:e.match(Nt)||[]),n=e.length;for(;n--;)delete i[e[n]]}(void 0===e||Dt.isEmptyObject(i))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!Dt.isEmptyObject(e)}};var Ft=new m,Ut=new m,Wt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,qt=/[A-Z]/g;Dt.extend({hasData:function(t){return Ut.hasData(t)||Ft.hasData(t)},data:function(t,e,n){return Ut.access(t,e,n)},removeData:function(t,e){Ut.remove(t,e)},_data:function(t,e,n){return Ft.access(t,e,n)},_removeData:function(t,e){Ft.remove(t,e)}}),Dt.fn.extend({data:function(t,e){var n,i,r,o=this[0],a=o&&o.attributes;if(void 0===t){if(this.length&&(r=Ut.get(o),1===o.nodeType&&!Ft.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&(i=a[n].name,0===i.indexOf("data-")&&(i=p(i.slice(5)),v(o,i,r[i])));Ft.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof t?this.each(function(){Ut.set(this,t)}):Lt(this,function(e){var n;if(o&&void 0===e){if(void 0!==(n=Ut.get(o,t)))return n;if(void 0!==(n=v(o,t)))return n}else this.each(function(){Ut.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){Ut.remove(this,t)})}}),Dt.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=Ft.get(t,e),n&&(!i||Array.isArray(n)?i=Ft.access(t,e,Dt.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=Dt.queue(t,e),i=n.length,r=n.shift(),o=Dt._queueHooks(t,e),a=function(){Dt.dequeue(t,e)};"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===e&&n.unshift("inprogress"),delete o.stop,r.call(t,a,o)),!i&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return Ft.get(t,n)||Ft.access(t,n,{empty:Dt.Callbacks("once memory").add(function(){Ft.remove(t,[e+"queue",n])})})}}),Dt.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?Dt.queue(this[0],t):void 0===e?this:this.each(function(){var n=Dt.queue(this,t,e);Dt._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&Dt.dequeue(this,t)})},dequeue:function(t){return this.each(function(){Dt.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,r=Dt.Deferred(),o=this,a=this.length,s=function(){--i||r.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)(n=Ft.get(o[a],t+"queueHooks"))&&n.empty&&(i++,n.empty.add(s));return s(),r.promise(e)}});var Bt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,zt=new RegExp("^(?:([+-])=|)("+Bt+")([a-z%]*)$","i"),Vt=["Top","Right","Bottom","Left"],Gt=lt.documentElement,Zt=function(t){return Dt.contains(t.ownerDocument,t)},Qt={composed:!0};Gt.getRootNode&&(Zt=function(t){return Dt.contains(t.ownerDocument,t)||t.getRootNode(Qt)===t.ownerDocument});var Kt=function(t,e){return t=e||t,"none"===t.style.display||""===t.style.display&&Zt(t)&&"none"===Dt.css(t,"display")},Jt=function(t,e,n,i){var r,o,a={};for(o in e)a[o]=t.style[o],t.style[o]=e[o];r=n.apply(t,i||[]);for(o in e)t.style[o]=a[o];return r},Xt={};Dt.fn.extend({show:function(){return w(this,!0)},hide:function(){return w(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){Kt(this)?Dt(this).show():Dt(this).hide()})}});var te=/^(?:checkbox|radio)$/i,ee=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ne=/^$|^module$|\/(?:java|ecma)script/i,ie={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};ie.optgroup=ie.option,ie.tbody=ie.tfoot=ie.colgroup=ie.caption=ie.thead,ie.th=ie.td;var re=/<|&#?\w+;/;!function(){var t=lt.createDocumentFragment(),e=t.appendChild(lt.createElement("div")),n=lt.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),e.appendChild(n),bt.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",bt.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var oe=/^key/,ae=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,se=/^([^.]*)(?:\.(.+)|)/;Dt.event={global:{},add:function(t,e,n,i,r){var o,a,s,l,u,c,d,h,f,p,m,g=Ft.get(t);if(g)for(n.handler&&(o=n,n=o.handler,r=o.selector),r&&Dt.find.matchesSelector(Gt,r),n.guid||(n.guid=Dt.guid++),(l=g.events)||(l=g.events={}),(a=g.handle)||(a=g.handle=function(e){return void 0!==Dt&&Dt.event.triggered!==e.type?Dt.event.dispatch.apply(t,arguments):void 0}),e=(e||"").match(Nt)||[""],u=e.length;u--;)s=se.exec(e[u])||[],f=m=s[1],p=(s[2]||"").split(".").sort(),f&&(d=Dt.event.special[f]||{},f=(r?d.delegateType:d.bindType)||f,d=Dt.event.special[f]||{},c=Dt.extend({type:f,origType:m,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&Dt.expr.match.needsContext.test(r),namespace:p.join(".")},o),(h=l[f])||(h=l[f]=[],h.delegateCount=0,d.setup&&!1!==d.setup.call(t,i,p,a)||t.addEventListener&&t.addEventListener(f,a)),d.add&&(d.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),r?h.splice(h.delegateCount++,0,c):h.push(c),Dt.event.global[f]=!0)},remove:function(t,e,n,i,r){var o,a,s,l,u,c,d,h,f,p,m,g=Ft.hasData(t)&&Ft.get(t);if(g&&(l=g.events)){for(e=(e||"").match(Nt)||[""],u=e.length;u--;)if(s=se.exec(e[u])||[],f=m=s[1],p=(s[2]||"").split(".").sort(),f){for(d=Dt.event.special[f]||{},f=(i?d.delegateType:d.bindType)||f,h=l[f]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)c=h[o],!r&&m!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(h.splice(o,1),c.selector&&h.delegateCount--,d.remove&&d.remove.call(t,c));a&&!h.length&&(d.teardown&&!1!==d.teardown.call(t,p,g.handle)||Dt.removeEvent(t,f,g.handle),delete l[f])}else for(f in l)Dt.event.remove(t,f+e[u],n,i,!0);Dt.isEmptyObject(l)&&Ft.remove(t,"handle events")}},dispatch:function(t){var e,n,i,r,o,a,s=Dt.event.fix(t),l=new Array(arguments.length),u=(Ft.get(this,"events")||{})[s.type]||[],c=Dt.event.special[s.type]||{};for(l[0]=s,e=1;e<arguments.length;e++)l[e]=arguments[e];if(s.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,s)){for(a=Dt.event.handlers.call(this,s,u),e=0;(r=a[e++])&&!s.isPropagationStopped();)for(s.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!1!==o.namespace&&!s.rnamespace.test(o.namespace)||(s.handleObj=o,s.data=o.data,void 0!==(i=((Dt.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,l))&&!1===(s.result=i)&&(s.preventDefault(),s.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,s),s.result}},handlers:function(t,e){var n,i,r,o,a,s=[],l=e.delegateCount,u=t.target;if(l&&u.nodeType&&!("click"===t.type&&t.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==t.type||!0!==u.disabled)){for(o=[],a={},n=0;n<l;n++)i=e[n],r=i.selector+" ",void 0===a[r]&&(a[r]=i.needsContext?Dt(r,this).index(u)>-1:Dt.find(r,this,null,[u]).length),a[r]&&o.push(i);o.length&&s.push({elem:u,handlers:o})}return u=this,l<e.length&&s.push({elem:u,handlers:e.slice(l)}),s},addProp:function(t,e){Object.defineProperty(Dt.Event.prototype,t,{enumerable:!0,configurable:!0,get:wt(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[Dt.expando]?t:new Dt.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return te.test(e.type)&&e.click&&o(e,"input")&&E(e,"click",k),!1},trigger:function(t){var e=this||t;return te.test(e.type)&&e.click&&o(e,"input")&&E(e,"click"),!0},_default:function(t){var e=t.target;return te.test(e.type)&&e.click&&o(e,"input")&&Ft.get(e,"click")||o(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},Dt.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},Dt.Event=function(t,e){if(!(this instanceof Dt.Event))return new Dt.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?k:C,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&Dt.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[Dt.expando]=!0},Dt.Event.prototype={constructor:Dt.Event,isDefaultPrevented:C,isPropagationStopped:C,isImmediatePropagationStopped:C,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=k,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=k,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=k,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},Dt.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(t){var e=t.button;return null==t.which&&oe.test(t.type)?null!=t.charCode?t.charCode:t.keyCode:!t.which&&void 0!==e&&ae.test(t.type)?1&e?1:2&e?3:4&e?2:0:t.which}},Dt.event.addProp),Dt.each({focus:"focusin",blur:"focusout"},function(t,e){Dt.event.special[t]={setup:function(){return E(this,t,T),!1},trigger:function(){return E(this,t),!0},delegateType:e}}),Dt.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){Dt.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=this,r=t.relatedTarget,o=t.handleObj;return r&&(r===i||Dt.contains(i,r))||(t.type=o.origType,n=o.handler.apply(this,arguments),t.type=e),n}}}),Dt.fn.extend({on:function(t,e,n,i){return $(this,t,e,n,i)},one:function(t,e,n,i){return $(this,t,e,n,i,1)},off:function(t,e,n){var i,r;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,Dt(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof t){for(r in t)this.off(r,e,t[r]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=C),this.each(function(){Dt.event.remove(this,t,n,e)})}});var le=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,ue=/<script|<style|<link/i,ce=/checked\s*(?:[^=]|=\s*.checked.)/i,de=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;Dt.extend({htmlPrefilter:function(t){return t.replace(le,"<$1></$2>")},clone:function(t,e,n){var i,r,o,a,s=t.cloneNode(!0),l=Zt(t);if(!(bt.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||Dt.isXMLDoc(t)))for(a=_(s),o=_(t),i=0,r=o.length;i<r;i++)N(o[i],a[i]);if(e)if(n)for(o=o||_(t),a=a||_(s),i=0,r=o.length;i<r;i++)j(o[i],a[i]);else j(t,s);return a=_(s,"script"),a.length>0&&x(a,!l&&_(t,"script")),s},cleanData:function(t){
for(var e,n,i,r=Dt.event.special,o=0;void 0!==(n=t[o]);o++)if(Yt(n)){if(e=n[Ft.expando]){if(e.events)for(i in e.events)r[i]?Dt.event.remove(n,i):Dt.removeEvent(n,i,e.handle);n[Ft.expando]=void 0}n[Ut.expando]&&(n[Ut.expando]=void 0)}}}),Dt.fn.extend({detach:function(t){return P(this,t,!0)},remove:function(t){return P(this,t)},text:function(t){return Lt(this,function(t){return void 0===t?Dt.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return I(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){O(this,t).appendChild(t)}})},prepend:function(){return I(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=O(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return I(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return I(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(Dt.cleanData(_(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return Dt.clone(this,t,e)})},html:function(t){return Lt(this,function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!ue.test(t)&&!ie[(ee.exec(t)||["",""])[1].toLowerCase()]){t=Dt.htmlPrefilter(t);try{for(;n<i;n++)e=this[n]||{},1===e.nodeType&&(Dt.cleanData(_(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return I(this,arguments,function(e){var n=this.parentNode;Dt.inArray(this,t)<0&&(Dt.cleanData(_(this)),n&&n.replaceChild(e,this))},t)}}),Dt.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){Dt.fn[t]=function(t){for(var n,i=[],r=Dt(t),o=r.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),Dt(r[a])[e](n),ht.apply(i,n.get());return this.pushStack(i)}});var he=new RegExp("^("+Bt+")(?!px)[a-z%]+$","i"),fe=function(e){var n=e.ownerDocument.defaultView;return n&&n.opener||(n=t),n.getComputedStyle(e)},pe=new RegExp(Vt.join("|"),"i");!function(){function e(){if(u){l.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",Gt.appendChild(l).appendChild(u);var e=t.getComputedStyle(u);i="1%"!==e.top,s=12===n(e.marginLeft),u.style.right="60%",a=36===n(e.right),r=36===n(e.width),u.style.position="absolute",o=12===n(u.offsetWidth/3),Gt.removeChild(l),u=null}}function n(t){return Math.round(parseFloat(t))}var i,r,o,a,s,l=lt.createElement("div"),u=lt.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",bt.clearCloneStyle="content-box"===u.style.backgroundClip,Dt.extend(bt,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),a},pixelPosition:function(){return e(),i},reliableMarginLeft:function(){return e(),s},scrollboxSize:function(){return e(),o}}))}();var me=["Webkit","Moz","ms"],ge=lt.createElement("div").style,ve={},ye=/^(none|table(?!-c[ea]).+)/,be=/^--/,we={position:"absolute",visibility:"hidden",display:"block"},_e={letterSpacing:"0",fontWeight:"400"};Dt.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=L(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,o,a,s=p(e),l=be.test(e),u=t.style;if(l||(e=Y(s)),a=Dt.cssHooks[e]||Dt.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(r=a.get(t,!1,i))?r:u[e];o=typeof n,"string"===o&&(r=zt.exec(n))&&r[1]&&(n=y(t,e,r),o="number"),null!=n&&n===n&&("number"!==o||l||(n+=r&&r[3]||(Dt.cssNumber[s]?"":"px")),bt.clearCloneStyle||""!==n||0!==e.indexOf("background")||(u[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,i))||(l?u.setProperty(e,n):u[e]=n))}},css:function(t,e,n,i){var r,o,a,s=p(e);return be.test(e)||(e=Y(s)),a=Dt.cssHooks[e]||Dt.cssHooks[s],a&&"get"in a&&(r=a.get(t,!0,n)),void 0===r&&(r=L(t,e,i)),"normal"===r&&e in _e&&(r=_e[e]),""===n||n?(o=parseFloat(r),!0===n||isFinite(o)?o||0:r):r}}),Dt.each(["height","width"],function(t,e){Dt.cssHooks[e]={get:function(t,n,i){if(n)return!ye.test(Dt.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?W(t,e,i):Jt(t,we,function(){return W(t,e,i)})},set:function(t,n,i){var r,o=fe(t),a=!bt.scrollboxSize()&&"absolute"===o.position,s=a||i,l=s&&"border-box"===Dt.css(t,"boxSizing",!1,o),u=i?U(t,e,i,l,o):0;return l&&a&&(u-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-U(t,e,"border",!1,o)-.5)),u&&(r=zt.exec(n))&&"px"!==(r[3]||"px")&&(t.style[e]=n,n=Dt.css(t,e)),F(t,n,u)}}}),Dt.cssHooks.marginLeft=R(bt.reliableMarginLeft,function(t,e){if(e)return(parseFloat(L(t,"marginLeft"))||t.getBoundingClientRect().left-Jt(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),Dt.each({margin:"",padding:"",border:"Width"},function(t,e){Dt.cssHooks[t+e]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];i<4;i++)r[t+Vt[i]+e]=o[i]||o[i-2]||o[0];return r}},"margin"!==t&&(Dt.cssHooks[t+e].set=F)}),Dt.fn.extend({css:function(t,e){return Lt(this,function(t,e,n){var i,r,o={},a=0;if(Array.isArray(e)){for(i=fe(t),r=e.length;a<r;a++)o[e[a]]=Dt.css(t,e[a],!1,i);return o}return void 0!==n?Dt.style(t,e,n):Dt.css(t,e)},t,e,arguments.length>1)}}),Dt.Tween=q,q.prototype={constructor:q,init:function(t,e,n,i,r,o){this.elem=t,this.prop=n,this.easing=r||Dt.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=o||(Dt.cssNumber[n]?"":"px")},cur:function(){var t=q.propHooks[this.prop];return t&&t.get?t.get(this):q.propHooks._default.get(this)},run:function(t){var e,n=q.propHooks[this.prop];return this.options.duration?this.pos=e=Dt.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):q.propHooks._default.set(this),this}},q.prototype.init.prototype=q.prototype,q.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=Dt.css(t.elem,t.prop,""),e&&"auto"!==e?e:0)},set:function(t){Dt.fx.step[t.prop]?Dt.fx.step[t.prop](t):1!==t.elem.nodeType||!Dt.cssHooks[t.prop]&&null==t.elem.style[Y(t.prop)]?t.elem[t.prop]=t.now:Dt.style(t.elem,t.prop,t.now+t.unit)}}},q.propHooks.scrollTop=q.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},Dt.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},Dt.fx=q.prototype.init,Dt.fx.step={};var xe,De,ke=/^(?:toggle|show|hide)$/,Ce=/queueHooks$/;Dt.Animation=Dt.extend(K,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return y(n.elem,t,zt.exec(e),n),n}]},tweener:function(t,e){wt(t)?(e=t,t=["*"]):t=t.match(Nt);for(var n,i=0,r=t.length;i<r;i++)n=t[i],K.tweeners[n]=K.tweeners[n]||[],K.tweeners[n].unshift(e)},prefilters:[Z],prefilter:function(t,e){e?K.prefilters.unshift(t):K.prefilters.push(t)}}),Dt.speed=function(t,e,n){var i=t&&"object"==typeof t?Dt.extend({},t):{complete:n||!n&&e||wt(t)&&t,duration:t,easing:n&&e||e&&!wt(e)&&e};return Dt.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in Dt.fx.speeds?i.duration=Dt.fx.speeds[i.duration]:i.duration=Dt.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){wt(i.old)&&i.old.call(this),i.queue&&Dt.dequeue(this,i.queue)},i},Dt.fn.extend({fadeTo:function(t,e,n,i){return this.filter(Kt).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var r=Dt.isEmptyObject(t),o=Dt.speed(e,n,i),a=function(){var e=K(this,Dt.extend({},t),o);(r||Ft.get(this,"finish"))&&e.stop(!0)};return a.finish=a,r||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(t,e,n){var i=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&!1!==t&&this.queue(t||"fx",[]),this.each(function(){var e=!0,r=null!=t&&t+"queueHooks",o=Dt.timers,a=Ft.get(this);if(r)a[r]&&a[r].stop&&i(a[r]);else for(r in a)a[r]&&a[r].stop&&Ce.test(r)&&i(a[r]);for(r=o.length;r--;)o[r].elem!==this||null!=t&&o[r].queue!==t||(o[r].anim.stop(n),e=!1,o.splice(r,1));!e&&n||Dt.dequeue(this,t)})},finish:function(t){return!1!==t&&(t=t||"fx"),this.each(function(){var e,n=Ft.get(this),i=n[t+"queue"],r=n[t+"queueHooks"],o=Dt.timers,a=i?i.length:0;for(n.finish=!0,Dt.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<a;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish})}}),Dt.each(["toggle","show","hide"],function(t,e){var n=Dt.fn[e];Dt.fn[e]=function(t,i,r){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(V(e,!0),t,i,r)}}),Dt.each({slideDown:V("show"),slideUp:V("hide"),slideToggle:V("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){Dt.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}}),Dt.timers=[],Dt.fx.tick=function(){var t,e=0,n=Dt.timers;for(xe=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||Dt.fx.stop(),xe=void 0},Dt.fx.timer=function(t){Dt.timers.push(t),Dt.fx.start()},Dt.fx.interval=13,Dt.fx.start=function(){De||(De=!0,B())},Dt.fx.stop=function(){De=null},Dt.fx.speeds={slow:600,fast:200,_default:400},Dt.fn.delay=function(e,n){return e=Dt.fx?Dt.fx.speeds[e]||e:e,n=n||"fx",this.queue(n,function(n,i){var r=t.setTimeout(n,e);i.stop=function(){t.clearTimeout(r)}})},function(){var t=lt.createElement("input"),e=lt.createElement("select"),n=e.appendChild(lt.createElement("option"));t.type="checkbox",bt.checkOn=""!==t.value,bt.optSelected=n.selected,t=lt.createElement("input"),t.value="t",t.type="radio",bt.radioValue="t"===t.value}();var Te,Se=Dt.expr.attrHandle;Dt.fn.extend({attr:function(t,e){return Lt(this,Dt.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){Dt.removeAttr(this,t)})}}),Dt.extend({attr:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?Dt.prop(t,e,n):(1===o&&Dt.isXMLDoc(t)||(r=Dt.attrHooks[e.toLowerCase()]||(Dt.expr.match.bool.test(e)?Te:void 0)),void 0!==n?null===n?void Dt.removeAttr(t,e):r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:(t.setAttribute(e,n+""),n):r&&"get"in r&&null!==(i=r.get(t,e))?i:(i=Dt.find.attr(t,e),null==i?void 0:i))},attrHooks:{type:{set:function(t,e){if(!bt.radioValue&&"radio"===e&&o(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i=0,r=e&&e.match(Nt);if(r&&1===t.nodeType)for(;n=r[i++];)t.removeAttribute(n)}}),Te={set:function(t,e,n){return!1===e?Dt.removeAttr(t,n):t.setAttribute(n,n),n}},Dt.each(Dt.expr.match.bool.source.match(/\w+/g),function(t,e){var n=Se[e]||Dt.find.attr;Se[e]=function(t,e,i){var r,o,a=e.toLowerCase();return i||(o=Se[a],Se[a]=r,r=null!=n(t,e,i)?a:null,Se[a]=o),r}});var $e=/^(?:input|select|textarea|button)$/i,Ee=/^(?:a|area)$/i;Dt.fn.extend({prop:function(t,e){return Lt(this,Dt.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[Dt.propFix[t]||t]})}}),Dt.extend({prop:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&Dt.isXMLDoc(t)||(e=Dt.propFix[e]||e,r=Dt.propHooks[e]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:t[e]=n:r&&"get"in r&&null!==(i=r.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=Dt.find.attr(t,"tabindex");return e?parseInt(e,10):$e.test(t.nodeName)||Ee.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),bt.optSelected||(Dt.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),Dt.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){Dt.propFix[this.toLowerCase()]=this}),Dt.fn.extend({addClass:function(t){var e,n,i,r,o,a,s,l=0;if(wt(t))return this.each(function(e){Dt(this).addClass(t.call(this,e,X(this)))});if(e=tt(t),e.length)for(;n=this[l++];)if(r=X(n),i=1===n.nodeType&&" "+J(r)+" "){for(a=0;o=e[a++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");s=J(i),r!==s&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,i,r,o,a,s,l=0;if(wt(t))return this.each(function(e){Dt(this).removeClass(t.call(this,e,X(this)))});if(!arguments.length)return this.attr("class","");if(e=tt(t),e.length)for(;n=this[l++];)if(r=X(n),i=1===n.nodeType&&" "+J(r)+" "){for(a=0;o=e[a++];)for(;i.indexOf(" "+o+" ")>-1;)i=i.replace(" "+o+" "," ");s=J(i),r!==s&&n.setAttribute("class",s)}return this},toggleClass:function(t,e){var n=typeof t,i="string"===n||Array.isArray(t);return"boolean"==typeof e&&i?e?this.addClass(t):this.removeClass(t):wt(t)?this.each(function(n){Dt(this).toggleClass(t.call(this,n,X(this),e),e)}):this.each(function(){var e,r,o,a;if(i)for(r=0,o=Dt(this),a=tt(t);e=a[r++];)o.hasClass(e)?o.removeClass(e):o.addClass(e);else void 0!==t&&"boolean"!==n||(e=X(this),e&&Ft.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":Ft.get(this,"__className__")||""))})},hasClass:function(t){var e,n,i=0;for(e=" "+t+" ";n=this[i++];)if(1===n.nodeType&&(" "+J(X(n))+" ").indexOf(e)>-1)return!0;return!1}});var Oe=/\r/g;Dt.fn.extend({val:function(t){var e,n,i,r=this[0];{if(arguments.length)return i=wt(t),this.each(function(n){var r;1===this.nodeType&&(r=i?t.call(this,n,Dt(this).val()):t,null==r?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=Dt.map(r,function(t){return null==t?"":t+""})),(e=Dt.valHooks[this.type]||Dt.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))});if(r)return(e=Dt.valHooks[r.type]||Dt.valHooks[r.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(r,"value"))?n:(n=r.value,"string"==typeof n?n.replace(Oe,""):null==n?"":n)}}}),Dt.extend({valHooks:{option:{get:function(t){var e=Dt.find.attr(t,"value");return null!=e?e:J(Dt.text(t))}},select:{get:function(t){var e,n,i,r=t.options,a=t.selectedIndex,s="select-one"===t.type,l=s?null:[],u=s?a+1:r.length;for(i=a<0?u:s?a:0;i<u;i++)if(n=r[i],(n.selected||i===a)&&!n.disabled&&(!n.parentNode.disabled||!o(n.parentNode,"optgroup"))){if(e=Dt(n).val(),s)return e;l.push(e)}return l},set:function(t,e){for(var n,i,r=t.options,o=Dt.makeArray(e),a=r.length;a--;)i=r[a],(i.selected=Dt.inArray(Dt.valHooks.option.get(i),o)>-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),Dt.each(["radio","checkbox"],function(){Dt.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=Dt.inArray(Dt(t).val(),e)>-1}},bt.checkOn||(Dt.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),bt.focusin="onfocusin"in t;var Me=/^(?:focusinfocus|focusoutblur)$/,Ae=function(t){t.stopPropagation()};Dt.extend(Dt.event,{trigger:function(e,n,i,r){var o,a,s,l,u,c,d,h,f=[i||lt],p=gt.call(e,"type")?e.type:e,m=gt.call(e,"namespace")?e.namespace.split("."):[];if(a=h=s=i=i||lt,3!==i.nodeType&&8!==i.nodeType&&!Me.test(p+Dt.event.triggered)&&(p.indexOf(".")>-1&&(m=p.split("."),p=m.shift(),m.sort()),u=p.indexOf(":")<0&&"on"+p,e=e[Dt.expando]?e:new Dt.Event(p,"object"==typeof e&&e),e.isTrigger=r?2:3,e.namespace=m.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),n=null==n?[e]:Dt.makeArray(n,[e]),d=Dt.event.special[p]||{},r||!d.trigger||!1!==d.trigger.apply(i,n))){if(!r&&!d.noBubble&&!_t(i)){for(l=d.delegateType||p,Me.test(l+p)||(a=a.parentNode);a;a=a.parentNode)f.push(a),s=a;s===(i.ownerDocument||lt)&&f.push(s.defaultView||s.parentWindow||t)}for(o=0;(a=f[o++])&&!e.isPropagationStopped();)h=a,e.type=o>1?l:d.bindType||p,c=(Ft.get(a,"events")||{})[e.type]&&Ft.get(a,"handle"),c&&c.apply(a,n),(c=u&&a[u])&&c.apply&&Yt(a)&&(e.result=c.apply(a,n),!1===e.result&&e.preventDefault());return e.type=p,r||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(f.pop(),n)||!Yt(i)||u&&wt(i[p])&&!_t(i)&&(s=i[u],s&&(i[u]=null),Dt.event.triggered=p,e.isPropagationStopped()&&h.addEventListener(p,Ae),i[p](),e.isPropagationStopped()&&h.removeEventListener(p,Ae),Dt.event.triggered=void 0,s&&(i[u]=s)),e.result}},simulate:function(t,e,n){var i=Dt.extend(new Dt.Event,n,{type:t,isSimulated:!0});Dt.event.trigger(i,null,e)}}),Dt.fn.extend({trigger:function(t,e){return this.each(function(){Dt.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return Dt.event.trigger(t,e,n,!0)}}),bt.focusin||Dt.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){Dt.event.simulate(e,t.target,Dt.event.fix(t))};Dt.event.special[e]={setup:function(){var i=this.ownerDocument||this,r=Ft.access(i,e);r||i.addEventListener(t,n,!0),Ft.access(i,e,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this,r=Ft.access(i,e)-1;r?Ft.access(i,e,r):(i.removeEventListener(t,n,!0),Ft.remove(i,e))}}});var je=t.location,Ne=Date.now(),Ie=/\?/;Dt.parseXML=function(e){var n;if(!e||"string"!=typeof e)return null;try{n=(new t.DOMParser).parseFromString(e,"text/xml")}catch(t){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||Dt.error("Invalid XML: "+e),n};var Pe=/\[\]$/,Le=/\r?\n/g,Re=/^(?:submit|button|image|reset|file)$/i,He=/^(?:input|select|textarea|keygen)/i;Dt.param=function(t,e){var n,i=[],r=function(t,e){var n=wt(e)?e():e;i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!Dt.isPlainObject(t))Dt.each(t,function(){r(this.name,this.value)});else for(n in t)et(n,t[n],e,r);return i.join("&")},Dt.fn.extend({serialize:function(){return Dt.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=Dt.prop(this,"elements");return t?Dt.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!Dt(this).is(":disabled")&&He.test(this.nodeName)&&!Re.test(t)&&(this.checked||!te.test(t))}).map(function(t,e){var n=Dt(this).val();return null==n?null:Array.isArray(n)?Dt.map(n,function(t){return{name:e.name,value:t.replace(Le,"\r\n")}}):{name:e.name,value:n.replace(Le,"\r\n")}}).get()}});var Ye=/%20/g,Fe=/#.*$/,Ue=/([?&])_=[^&]*/,We=/^(.*?):[ \t]*([^\r\n]*)$/gm,qe=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Be=/^(?:GET|HEAD)$/,ze=/^\/\//,Ve={},Ge={},Ze="*/".concat("*"),Qe=lt.createElement("a");Qe.href=je.href,Dt.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:je.href,type:"GET",isLocal:qe.test(je.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ze,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":Dt.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?rt(rt(t,Dt.ajaxSettings),e):rt(Dt.ajaxSettings,t)},ajaxPrefilter:nt(Ve),ajaxTransport:nt(Ge),ajax:function(e,n){function i(e,n,i,s){var u,h,f,w,_,x=n;c||(c=!0,l&&t.clearTimeout(l),r=void 0,a=s||"",D.readyState=e>0?4:0,u=e>=200&&e<300||304===e,i&&(w=ot(p,D,i)),w=at(p,w,D,u),u?(p.ifModified&&(_=D.getResponseHeader("Last-Modified"),_&&(Dt.lastModified[o]=_),(_=D.getResponseHeader("etag"))&&(Dt.etag[o]=_)),204===e||"HEAD"===p.type?x="nocontent":304===e?x="notmodified":(x=w.state,h=w.data,f=w.error,u=!f)):(f=x,!e&&x||(x="error",e<0&&(e=0))),D.status=e,D.statusText=(n||x)+"",u?v.resolveWith(m,[h,x,D]):v.rejectWith(m,[D,x,f]),D.statusCode(b),b=void 0,d&&g.trigger(u?"ajaxSuccess":"ajaxError",[D,p,u?h:f]),y.fireWith(m,[D,x]),d&&(g.trigger("ajaxComplete",[D,p]),--Dt.active||Dt.event.trigger("ajaxStop")))}"object"==typeof e&&(n=e,e=void 0),n=n||{};var r,o,a,s,l,u,c,d,h,f,p=Dt.ajaxSetup({},n),m=p.context||p,g=p.context&&(m.nodeType||m.jquery)?Dt(m):Dt.event,v=Dt.Deferred(),y=Dt.Callbacks("once memory"),b=p.statusCode||{},w={},_={},x="canceled",D={readyState:0,getResponseHeader:function(t){var e;if(c){if(!s)for(s={};e=We.exec(a);)s[e[1].toLowerCase()+" "]=(s[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=s[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return c?a:null},setRequestHeader:function(t,e){return null==c&&(t=_[t.toLowerCase()]=_[t.toLowerCase()]||t,w[t]=e),this},overrideMimeType:function(t){return null==c&&(p.mimeType=t),this},statusCode:function(t){var e;if(t)if(c)D.always(t[D.status]);else for(e in t)b[e]=[b[e],t[e]];return this},abort:function(t){var e=t||x;return r&&r.abort(e),i(0,e),this}};if(v.promise(D),p.url=((e||p.url||je.href)+"").replace(ze,je.protocol+"//"),p.type=n.method||n.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(Nt)||[""],null==p.crossDomain){u=lt.createElement("a");try{u.href=p.url,u.href=u.href,p.crossDomain=Qe.protocol+"//"+Qe.host!=u.protocol+"//"+u.host}catch(t){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=Dt.param(p.data,p.traditional)),it(Ve,p,n,D),c)return D;d=Dt.event&&p.global,d&&0==Dt.active++&&Dt.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Be.test(p.type),o=p.url.replace(Fe,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Ye,"+")):(f=p.url.slice(o.length),p.data&&(p.processData||"string"==typeof p.data)&&(o+=(Ie.test(o)?"&":"?")+p.data,delete p.data),!1===p.cache&&(o=o.replace(Ue,"$1"),f=(Ie.test(o)?"&":"?")+"_="+Ne+++f),p.url=o+f),p.ifModified&&(Dt.lastModified[o]&&D.setRequestHeader("If-Modified-Since",Dt.lastModified[o]),Dt.etag[o]&&D.setRequestHeader("If-None-Match",Dt.etag[o])),(p.data&&p.hasContent&&!1!==p.contentType||n.contentType)&&D.setRequestHeader("Content-Type",p.contentType),D.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Ze+"; q=0.01":""):p.accepts["*"]);for(h in p.headers)D.setRequestHeader(h,p.headers[h]);if(p.beforeSend&&(!1===p.beforeSend.call(m,D,p)||c))return D.abort();if(x="abort",y.add(p.complete),D.done(p.success),D.fail(p.error),r=it(Ge,p,n,D)){if(D.readyState=1,d&&g.trigger("ajaxSend",[D,p]),c)return D;p.async&&p.timeout>0&&(l=t.setTimeout(function(){D.abort("timeout")},p.timeout));try{c=!1,r.send(w,i)}catch(t){if(c)throw t;i(-1,t)}}else i(-1,"No Transport");return D},getJSON:function(t,e,n){return Dt.get(t,e,n,"json")},getScript:function(t,e){return Dt.get(t,void 0,e,"script")}}),Dt.each(["get","post"],function(t,e){Dt[e]=function(t,n,i,r){return wt(n)&&(r=r||i,i=n,n=void 0),Dt.ajax(Dt.extend({url:t,type:e,dataType:r,data:n,success:i},Dt.isPlainObject(t)&&t))}}),Dt._evalUrl=function(t,e){return Dt.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){Dt.globalEval(t,e)}})},Dt.fn.extend({wrapAll:function(t){var e;return this[0]&&(wt(t)&&(t=t.call(this[0])),e=Dt(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(t){return wt(t)?this.each(function(e){Dt(this).wrapInner(t.call(this,e))}):this.each(function(){var e=Dt(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=wt(t);return this.each(function(n){Dt(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){Dt(this).replaceWith(this.childNodes)}),this}}),Dt.expr.pseudos.hidden=function(t){return!Dt.expr.pseudos.visible(t)},Dt.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},Dt.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch(t){}};var Ke={0:200,1223:204},Je=Dt.ajaxSettings.xhr();bt.cors=!!Je&&"withCredentials"in Je,bt.ajax=Je=!!Je,Dt.ajaxTransport(function(e){var n,i;if(bt.cors||Je&&!e.crossDomain)return{send:function(r,o){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");for(a in r)s.setRequestHeader(a,r[a]);n=function(t){return function(){n&&(n=i=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===t?s.abort():"error"===t?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Ke[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=n(),i=s.onerror=s.ontimeout=n("error"),void 0!==s.onabort?s.onabort=i:s.onreadystatechange=function(){4===s.readyState&&t.setTimeout(function(){n&&i()})},n=n("abort");try{s.send(e.hasContent&&e.data||null)}catch(t){if(n)throw t}},abort:function(){n&&n()}}}),Dt.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),Dt.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return Dt.globalEval(t),t}}}),Dt.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),Dt.ajaxTransport("script",function(t){if(t.crossDomain||t.scriptAttrs){var e,n;return{send:function(i,r){e=Dt("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&r("error"===t.type?404:200,t.type)}),lt.head.appendChild(e[0])},abort:function(){n&&n()}}}});var Xe=[],tn=/(=)\?(?=&|$)|\?\?/;Dt.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Xe.pop()||Dt.expando+"_"+Ne++;return this[t]=!0,t}}),Dt.ajaxPrefilter("json jsonp",function(e,n,i){var r,o,a,s=!1!==e.jsonp&&(tn.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&tn.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=wt(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(tn,"$1"+r):!1!==e.jsonp&&(e.url+=(Ie.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return a||Dt.error(r+" was not called"),a[0]},e.dataTypes[0]="json",o=t[r],t[r]=function(){a=arguments},i.always(function(){void 0===o?Dt(t).removeProp(r):t[r]=o,e[r]&&(e.jsonpCallback=n.jsonpCallback,Xe.push(r)),a&&wt(o)&&o(a[0]),a=o=void 0}),"script"}),bt.createHTMLDocument=function(){var t=lt.implementation.createHTMLDocument("").body;return t.innerHTML="<form></form><form></form>",2===t.childNodes.length}(),Dt.parseHTML=function(t,e,n){if("string"!=typeof t)return[];"boolean"==typeof e&&(n=e,e=!1);var i,r,o;return e||(bt.createHTMLDocument?(e=lt.implementation.createHTMLDocument(""),i=e.createElement("base"),i.href=lt.location.href,e.head.appendChild(i)):e=lt),r=Et.exec(t),o=!n&&[],r?[e.createElement(r[1])]:(r=D([t],e,o),o&&o.length&&Dt(o).remove(),Dt.merge([],r.childNodes))},Dt.fn.load=function(t,e,n){var i,r,o,a=this,s=t.indexOf(" ");return s>-1&&(i=J(t.slice(s)),t=t.slice(0,s)),wt(e)?(n=e,e=void 0):e&&"object"==typeof e&&(r="POST"),a.length>0&&Dt.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done(function(t){o=arguments,a.html(i?Dt("<div>").append(Dt.parseHTML(t)).find(i):t)}).always(n&&function(t,e){a.each(function(){n.apply(this,o||[t.responseText,e,t])})}),this},Dt.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){Dt.fn[e]=function(t){return this.on(e,t)}}),Dt.expr.pseudos.animated=function(t){return Dt.grep(Dt.timers,function(e){return t===e.elem}).length},Dt.offset={setOffset:function(t,e,n){var i,r,o,a,s,l,u,c=Dt.css(t,"position"),d=Dt(t),h={};"static"===c&&(t.style.position="relative"),s=d.offset(),o=Dt.css(t,"top"),l=Dt.css(t,"left"),u=("absolute"===c||"fixed"===c)&&(o+l).indexOf("auto")>-1,u?(i=d.position(),a=i.top,r=i.left):(a=parseFloat(o)||0,r=parseFloat(l)||0),wt(e)&&(e=e.call(t,n,Dt.extend({},s))),null!=e.top&&(h.top=e.top-s.top+a),null!=e.left&&(h.left=e.left-s.left+r),"using"in e?e.using.call(t,h):d.css(h)}},Dt.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){Dt.offset.setOffset(this,t,e)});var e,n,i=this[0];if(i)return i.getClientRects().length?(e=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var t,e,n,i=this[0],r={top:0,left:0};if("fixed"===Dt.css(i,"position"))e=i.getBoundingClientRect();else{for(e=this.offset(),n=i.ownerDocument,t=i.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===Dt.css(t,"position");)t=t.parentNode;t&&t!==i&&1===t.nodeType&&(r=Dt(t).offset(),r.top+=Dt.css(t,"borderTopWidth",!0),r.left+=Dt.css(t,"borderLeftWidth",!0))}return{top:e.top-r.top-Dt.css(i,"marginTop",!0),left:e.left-r.left-Dt.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===Dt.css(t,"position");)t=t.offsetParent;return t||Gt})}}),Dt.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n="pageYOffset"===e;Dt.fn[t]=function(i){return Lt(this,function(t,i,r){var o;if(_t(t)?o=t:9===t.nodeType&&(o=t.defaultView),void 0===r)return o?o[e]:t[i];o?o.scrollTo(n?o.pageXOffset:r,n?r:o.pageYOffset):t[i]=r},t,i,arguments.length)}}),Dt.each(["top","left"],function(t,e){Dt.cssHooks[e]=R(bt.pixelPosition,function(t,n){if(n)return n=L(t,e),he.test(n)?Dt(t).position()[e]+"px":n})}),Dt.each({Height:"height",Width:"width"},function(t,e){Dt.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,i){Dt.fn[i]=function(r,o){var a=arguments.length&&(n||"boolean"!=typeof r),s=n||(!0===r||!0===o?"margin":"border");return Lt(this,function(e,n,r){var o;return _t(e)?0===i.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+t],o["scroll"+t],e.body["offset"+t],o["offset"+t],o["client"+t])):void 0===r?Dt.css(e,n,s):Dt.style(e,n,r,s)},e,a?r:void 0,a)}})}),Dt.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,e){Dt.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),Dt.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),Dt.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)}}),Dt.proxy=function(t,e){var n,i,r;if("string"==typeof e&&(n=t[e],e=t,t=n),wt(t))return i=ct.call(arguments,2),r=function(){return t.apply(e||this,i.concat(ct.call(arguments)))},r.guid=t.guid=t.guid||Dt.guid++,r},Dt.holdReady=function(t){
t?Dt.readyWait++:Dt.ready(!0)},Dt.isArray=Array.isArray,Dt.parseJSON=JSON.parse,Dt.nodeName=o,Dt.isFunction=wt,Dt.isWindow=_t,Dt.camelCase=p,Dt.type=i,Dt.now=Date.now,Dt.isNumeric=function(t){var e=Dt.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},"function"==typeof define&&define.amd&&define("jquery",[],function(){return Dt});var en=t.jQuery,nn=t.$;return Dt.noConflict=function(e){return t.$===Dt&&(t.$=nn),e&&t.jQuery===Dt&&(t.jQuery=en),Dt},e||(t.jQuery=t.$=Dt),Dt}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.moment=e()}(this,function(){"use strict";function t(){return Oi.apply(null,arguments)}function e(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function n(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function i(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(t.hasOwnProperty(e))return!1;return!0}function r(t){return void 0===t}function o(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function a(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function s(t,e){var n,i=[];for(n=0;n<t.length;++n)i.push(e(t[n],n));return i}function l(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function u(t,e){for(var n in e)l(e,n)&&(t[n]=e[n]);return l(e,"toString")&&(t.toString=e.toString),l(e,"valueOf")&&(t.valueOf=e.valueOf),t}function c(t,e,n,i){return ke(t,e,n,i,!0).utc()}function d(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function h(t){return null==t._pf&&(t._pf=d()),t._pf}function f(t){if(null==t._isValid){var e=h(t),n=Mi.call(e.parsedDateParts,function(t){return null!=t}),i=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n);if(t._strict&&(i=i&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return i;t._isValid=i}return t._isValid}function p(t){var e=c(NaN);return null!=t?u(h(e),t):h(e).userInvalidated=!0,e}function m(t,e){var n,i,o;if(r(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),r(e._i)||(t._i=e._i),r(e._f)||(t._f=e._f),r(e._l)||(t._l=e._l),r(e._strict)||(t._strict=e._strict),r(e._tzm)||(t._tzm=e._tzm),r(e._isUTC)||(t._isUTC=e._isUTC),r(e._offset)||(t._offset=e._offset),r(e._pf)||(t._pf=h(e)),r(e._locale)||(t._locale=e._locale),Ai.length>0)for(n=0;n<Ai.length;n++)i=Ai[n],o=e[i],r(o)||(t[i]=o);return t}function g(e){m(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===ji&&(ji=!0,t.updateOffset(this),ji=!1)}function v(t){return t instanceof g||null!=t&&null!=t._isAMomentObject}function y(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function b(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=y(e)),n}function w(t,e,n){var i,r=Math.min(t.length,e.length),o=Math.abs(t.length-e.length),a=0;for(i=0;i<r;i++)(n&&t[i]!==e[i]||!n&&b(t[i])!==b(e[i]))&&a++;return a+o}function _(e){!1===t.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function x(e,n){var i=!0;return u(function(){if(null!=t.deprecationHandler&&t.deprecationHandler(null,e),i){for(var r,o=[],a=0;a<arguments.length;a++){if(r="","object"==typeof arguments[a]){r+="\n["+a+"] ";for(var s in arguments[0])r+=s+": "+arguments[0][s]+", ";r=r.slice(0,-2)}else r=arguments[a];o.push(r)}_(e+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),i=!1}return n.apply(this,arguments)},n)}function D(e,n){null!=t.deprecationHandler&&t.deprecationHandler(e,n),Ni[e]||(_(n),Ni[e]=!0)}function k(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function C(t){var e,n;for(n in t)e=t[n],k(e)?this[n]=e:this["_"+n]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function T(t,e){var i,r=u({},t);for(i in e)l(e,i)&&(n(t[i])&&n(e[i])?(r[i]={},u(r[i],t[i]),u(r[i],e[i])):null!=e[i]?r[i]=e[i]:delete r[i]);for(i in t)l(t,i)&&!l(e,i)&&n(t[i])&&(r[i]=u({},r[i]));return r}function S(t){null!=t&&this.set(t)}function $(t,e,n){var i=this._calendar[t]||this._calendar.sameElse;return k(i)?i.call(e,n):i}function E(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])}function O(){return this._invalidDate}function M(t){return this._ordinal.replace("%d",t)}function A(t,e,n,i){var r=this._relativeTime[n];return k(r)?r(t,e,n,i):r.replace(/%d/i,t)}function j(t,e){var n=this._relativeTime[t>0?"future":"past"];return k(n)?n(e):n.replace(/%s/i,e)}function N(t,e){var n=t.toLowerCase();Yi[n]=Yi[n+"s"]=Yi[e]=t}function I(t){return"string"==typeof t?Yi[t]||Yi[t.toLowerCase()]:void 0}function P(t){var e,n,i={};for(n in t)l(t,n)&&(e=I(n))&&(i[e]=t[n]);return i}function L(t,e){Fi[t]=e}function R(t){var e=[];for(var n in t)e.push({unit:n,priority:Fi[n]});return e.sort(function(t,e){return t.priority-e.priority}),e}function H(t,e,n){var i=""+Math.abs(t),r=e-i.length;return(t>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}function Y(t,e,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),t&&(Bi[t]=r),e&&(Bi[e[0]]=function(){return H(r.apply(this,arguments),e[1],e[2])}),n&&(Bi[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function F(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function U(t){var e,n,i=t.match(Ui);for(e=0,n=i.length;e<n;e++)Bi[i[e]]?i[e]=Bi[i[e]]:i[e]=F(i[e]);return function(e){var r,o="";for(r=0;r<n;r++)o+=k(i[r])?i[r].call(e,t):i[r];return o}}function W(t,e){return t.isValid()?(e=q(e,t.localeData()),qi[e]=qi[e]||U(e),qi[e](t)):t.localeData().invalidDate()}function q(t,e){function n(t){return e.longDateFormat(t)||t}var i=5;for(Wi.lastIndex=0;i>=0&&Wi.test(t);)t=t.replace(Wi,n),Wi.lastIndex=0,i-=1;return t}function B(t,e,n){ur[t]=k(e)?e:function(t,i){return t&&n?n:e}}function z(t,e){return l(ur,t)?ur[t](e._strict,e._locale):new RegExp(V(t))}function V(t){return G(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,i,r){return e||n||i||r}))}function G(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Z(t,e){var n,i=e;for("string"==typeof t&&(t=[t]),o(e)&&(i=function(t,n){n[e]=b(t)}),n=0;n<t.length;n++)cr[t[n]]=i}function Q(t,e){Z(t,function(t,n,i,r){i._w=i._w||{},e(t,i._w,i,r)})}function K(t,e,n){null!=e&&l(cr,t)&&cr[t](e,n._a,n,t)}function J(t){return X(t)?366:365}function X(t){return t%4==0&&t%100!=0||t%400==0}function tt(){return X(this.year())}function et(e,n){return function(i){return null!=i?(it(this,e,i),t.updateOffset(this,n),this):nt(this,e)}}function nt(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function it(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&X(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),st(n,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function rt(t){return t=I(t),k(this[t])?this[t]():this}function ot(t,e){if("object"==typeof t){t=P(t);for(var n=R(t),i=0;i<n.length;i++)this[n[i].unit](t[n[i].unit])}else if(t=I(t),k(this[t]))return this[t](e);return this}function at(t,e){return(t%e+e)%e}function st(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=at(e,12);return t+=(e-n)/12,1===n?X(t)?29:28:31-n%7%2}function lt(t,n){return t?e(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||xr).test(n)?"format":"standalone"][t.month()]:e(this._months)?this._months:this._months.standalone}function ut(t,n){return t?e(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[xr.test(n)?"format":"standalone"][t.month()]:e(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ct(t,e,n){var i,r,o,a=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)o=c([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===e?(r=wr.call(this._shortMonthsParse,a),-1!==r?r:null):(r=wr.call(this._longMonthsParse,a),-1!==r?r:null):"MMM"===e?-1!==(r=wr.call(this._shortMonthsParse,a))?r:(r=wr.call(this._longMonthsParse,a),-1!==r?r:null):-1!==(r=wr.call(this._longMonthsParse,a))?r:(r=wr.call(this._shortMonthsParse,a),-1!==r?r:null)}function dt(t,e,n){var i,r,o;if(this._monthsParseExact)return ct.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=c([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(o="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i;if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!n&&this._monthsParse[i].test(t))return i}}function ht(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=b(e);else if(e=t.localeData().monthsParse(e),!o(e))return t;return n=Math.min(t.date(),st(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function ft(e){return null!=e?(ht(this,e),t.updateOffset(this,!0),this):nt(this,"Month")}function pt(){return st(this.year(),this.month())}function mt(t){return this._monthsParseExact?(l(this,"_monthsRegex")||vt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=Cr),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function gt(t){return this._monthsParseExact?(l(this,"_monthsRegex")||vt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=Tr),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function vt(){function t(t,e){return e.length-t.length}var e,n,i=[],r=[],o=[];for(e=0;e<12;e++)n=c([2e3,e]),i.push(this.monthsShort(n,"")),r.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(i.sort(t),r.sort(t),o.sort(t),e=0;e<12;e++)i[e]=G(i[e]),r[e]=G(r[e]);for(e=0;e<24;e++)o[e]=G(o[e]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function yt(t,e,n,i,r,o,a){var s;return t<100&&t>=0?(s=new Date(t+400,e,n,i,r,o,a),isFinite(s.getFullYear())&&s.setFullYear(t)):s=new Date(t,e,n,i,r,o,a),s}function bt(t){var e;if(t<100&&t>=0){var n=Array.prototype.slice.call(arguments);n[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)}else e=new Date(Date.UTC.apply(null,arguments));return e}function wt(t,e,n){var i=7+e-n;return-(7+bt(t,0,i).getUTCDay()-e)%7+i-1}function _t(t,e,n,i,r){var o,a,s=(7+n-i)%7,l=wt(t,i,r),u=1+7*(e-1)+s+l;return u<=0?(o=t-1,a=J(o)+u):u>J(t)?(o=t+1,a=u-J(t)):(o=t,a=u),{year:o,dayOfYear:a}}function xt(t,e,n){var i,r,o=wt(t.year(),e,n),a=Math.floor((t.dayOfYear()-o-1)/7)+1;return a<1?(r=t.year()-1,i=a+Dt(r,e,n)):a>Dt(t.year(),e,n)?(i=a-Dt(t.year(),e,n),r=t.year()+1):(r=t.year(),i=a),{week:i,year:r}}function Dt(t,e,n){var i=wt(t,e,n),r=wt(t+1,e,n);return(J(t)-i+r)/7}function kt(t){return xt(t,this._week.dow,this._week.doy).week}function Ct(){return this._week.dow}function Tt(){return this._week.doy}function St(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function $t(t){var e=xt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function Et(t,e){return"string"!=typeof t?t:isNaN(t)?(t=e.weekdaysParse(t),"number"==typeof t?t:null):parseInt(t,10)}function Ot(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function Mt(t,e){return t.slice(e,7).concat(t.slice(0,e))}function At(t,n){var i=e(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(n)?"format":"standalone"];return!0===t?Mt(i,this._week.dow):t?i[t.day()]:i}function jt(t){return!0===t?Mt(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function Nt(t){return!0===t?Mt(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function It(t,e,n){var i,r,o,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=c([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===e?(r=wr.call(this._weekdaysParse,a),-1!==r?r:null):"ddd"===e?(r=wr.call(this._shortWeekdaysParse,a),-1!==r?r:null):(r=wr.call(this._minWeekdaysParse,a),-1!==r?r:null):"dddd"===e?-1!==(r=wr.call(this._weekdaysParse,a))?r:-1!==(r=wr.call(this._shortWeekdaysParse,a))?r:(r=wr.call(this._minWeekdaysParse,a),-1!==r?r:null):"ddd"===e?-1!==(r=wr.call(this._shortWeekdaysParse,a))?r:-1!==(r=wr.call(this._weekdaysParse,a))?r:(r=wr.call(this._minWeekdaysParse,a),-1!==r?r:null):-1!==(r=wr.call(this._minWeekdaysParse,a))?r:-1!==(r=wr.call(this._weekdaysParse,a))?r:(r=wr.call(this._shortWeekdaysParse,a),-1!==r?r:null)}function Pt(t,e,n){var i,r,o;if(this._weekdaysParseExact)return It.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=c([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}}function Lt(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=Et(t,this.localeData()),this.add(t-e,"d")):e}function Rt(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")}function Ht(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=Ot(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}function Yt(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Wt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=Mr),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ft(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Wt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ar),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Ut(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Wt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=jr),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Wt(){function t(t,e){return e.length-t.length}var e,n,i,r,o,a=[],s=[],l=[],u=[];for(e=0;e<7;e++)n=c([2e3,1]).day(e),i=this.weekdaysMin(n,""),r=this.weekdaysShort(n,""),o=this.weekdays(n,""),a.push(i),s.push(r),l.push(o),u.push(i),u.push(r),u.push(o);for(a.sort(t),s.sort(t),l.sort(t),u.sort(t),e=0;e<7;e++)s[e]=G(s[e]),l[e]=G(l[e]),u[e]=G(u[e]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function qt(){return this.hours()%12||12}function Bt(){return this.hours()||24}function zt(t,e){Y(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function Vt(t,e){return e._meridiemParse}function Gt(t){return"p"===(t+"").toLowerCase().charAt(0)}function Zt(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}function Qt(t){return t?t.toLowerCase().replace("_","-"):t}function Kt(t){for(var e,n,i,r,o=0;o<t.length;){for(r=Qt(t[o]).split("-"),e=r.length,n=Qt(t[o+1]),n=n?n.split("-"):null;e>0;){if(i=Jt(r.slice(0,e).join("-")))return i;if(n&&n.length>=e&&w(r,n,!0)>=e-1)break;e--}o++}return Nr}function Jt(t){var e=null;if(!Rr[t]&&"undefined"!=typeof module&&module&&module.exports)try{e=Nr._abbr;require("./locale/"+t),Xt(e)}catch(t){}return Rr[t]}function Xt(t,e){var n;return t&&(n=r(e)?ne(t):te(t,e),n?Nr=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),Nr._abbr}function te(t,e){if(null!==e){var n,i=Lr;if(e.abbr=t,null!=Rr[t])D("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=Rr[t]._config;else if(null!=e.parentLocale)if(null!=Rr[e.parentLocale])i=Rr[e.parentLocale]._config;else{if(null==(n=Jt(e.parentLocale)))return Hr[e.parentLocale]||(Hr[e.parentLocale]=[]),Hr[e.parentLocale].push({name:t,config:e}),null;i=n._config}return Rr[t]=new S(T(i,e)),Hr[t]&&Hr[t].forEach(function(t){te(t.name,t.config)}),Xt(t),Rr[t]}return delete Rr[t],null}function ee(t,e){if(null!=e){var n,i,r=Lr;i=Jt(t),null!=i&&(r=i._config),e=T(r,e),n=new S(e),n.parentLocale=Rr[t],Rr[t]=n,Xt(t)}else null!=Rr[t]&&(null!=Rr[t].parentLocale?Rr[t]=Rr[t].parentLocale:null!=Rr[t]&&delete Rr[t]);return Rr[t]}function ne(t){var n;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Nr;if(!e(t)){if(n=Jt(t))return n;t=[t]}return Kt(t)}function ie(){return Ii(Rr)}function re(t){var e,n=t._a;return n&&-2===h(t).overflow&&(e=n[hr]<0||n[hr]>11?hr:n[fr]<1||n[fr]>st(n[dr],n[hr])?fr:n[pr]<0||n[pr]>24||24===n[pr]&&(0!==n[mr]||0!==n[gr]||0!==n[vr])?pr:n[mr]<0||n[mr]>59?mr:n[gr]<0||n[gr]>59?gr:n[vr]<0||n[vr]>999?vr:-1,h(t)._overflowDayOfYear&&(e<dr||e>fr)&&(e=fr),h(t)._overflowWeeks&&-1===e&&(e=yr),h(t)._overflowWeekday&&-1===e&&(e=br),h(t).overflow=e),t}function oe(t,e,n){return null!=t?t:null!=e?e:n}function ae(e){var n=new Date(t.now());return e._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function se(t){var e,n,i,r,o,a=[];if(!t._d){for(i=ae(t),t._w&&null==t._a[fr]&&null==t._a[hr]&&le(t),null!=t._dayOfYear&&(o=oe(t._a[dr],i[dr]),(t._dayOfYear>J(o)||0===t._dayOfYear)&&(h(t)._overflowDayOfYear=!0),n=bt(o,0,t._dayOfYear),t._a[hr]=n.getUTCMonth(),t._a[fr]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=i[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[pr]&&0===t._a[mr]&&0===t._a[gr]&&0===t._a[vr]&&(t._nextDay=!0,t._a[pr]=0),t._d=(t._useUTC?bt:yt).apply(null,a),r=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[pr]=24),t._w&&void 0!==t._w.d&&t._w.d!==r&&(h(t).weekdayMismatch=!0)}}function le(t){var e,n,i,r,o,a,s,l;if(e=t._w,null!=e.GG||null!=e.W||null!=e.E)o=1,a=4,n=oe(e.GG,t._a[dr],xt(Ce(),1,4).year),i=oe(e.W,1),((r=oe(e.E,1))<1||r>7)&&(l=!0);else{o=t._locale._week.dow,a=t._locale._week.doy;var u=xt(Ce(),o,a);n=oe(e.gg,t._a[dr],u.year),i=oe(e.w,u.week),null!=e.d?((r=e.d)<0||r>6)&&(l=!0):null!=e.e?(r=e.e+o,(e.e<0||e.e>6)&&(l=!0)):r=o}i<1||i>Dt(n,o,a)?h(t)._overflowWeeks=!0:null!=l?h(t)._overflowWeekday=!0:(s=_t(n,i,r,o,a),t._a[dr]=s.year,t._dayOfYear=s.dayOfYear)}function ue(t){var e,n,i,r,o,a,s=t._i,l=Yr.exec(s)||Fr.exec(s);if(l){for(h(t).iso=!0,e=0,n=Wr.length;e<n;e++)if(Wr[e][1].exec(l[1])){r=Wr[e][0],i=!1!==Wr[e][2];break}if(null==r)return void(t._isValid=!1);if(l[3]){for(e=0,n=qr.length;e<n;e++)if(qr[e][1].exec(l[3])){o=(l[2]||" ")+qr[e][0];break}if(null==o)return void(t._isValid=!1)}if(!i&&null!=o)return void(t._isValid=!1);if(l[4]){if(!Ur.exec(l[4]))return void(t._isValid=!1);a="Z"}t._f=r+(o||"")+(a||""),ve(t)}else t._isValid=!1}function ce(t,e,n,i,r,o){var a=[de(t),kr.indexOf(e),parseInt(n,10),parseInt(i,10),parseInt(r,10)];return o&&a.push(parseInt(o,10)),a}function de(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function he(t){return t.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function fe(t,e,n){if(t){if(Er.indexOf(t)!==new Date(e[0],e[1],e[2]).getDay())return h(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function pe(t,e,n){if(t)return Vr[t];if(e)return 0;var i=parseInt(n,10),r=i%100;return(i-r)/100*60+r}function me(t){var e=zr.exec(he(t._i));if(e){var n=ce(e[4],e[3],e[2],e[5],e[6],e[7]);if(!fe(e[1],n,t))return;t._a=n,t._tzm=pe(e[8],e[9],e[10]),t._d=bt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),h(t).rfc2822=!0}else t._isValid=!1}function ge(e){var n=Br.exec(e._i);if(null!==n)return void(e._d=new Date(+n[1]));ue(e),!1===e._isValid&&(delete e._isValid,me(e),!1===e._isValid&&(delete e._isValid,t.createFromInputFallback(e)))}function ve(e){if(e._f===t.ISO_8601)return void ue(e);if(e._f===t.RFC_2822)return void me(e);e._a=[],h(e).empty=!0;var n,i,r,o,a,s=""+e._i,l=s.length,u=0;for(r=q(e._f,e._locale).match(Ui)||[],n=0;n<r.length;n++)o=r[n],i=(s.match(z(o,e))||[])[0],i&&(a=s.substr(0,s.indexOf(i)),a.length>0&&h(e).unusedInput.push(a),s=s.slice(s.indexOf(i)+i.length),u+=i.length),Bi[o]?(i?h(e).empty=!1:h(e).unusedTokens.push(o),K(o,i,e)):e._strict&&!i&&h(e).unusedTokens.push(o);h(e).charsLeftOver=l-u,s.length>0&&h(e).unusedInput.push(s),e._a[pr]<=12&&!0===h(e).bigHour&&e._a[pr]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[pr]=ye(e._locale,e._a[pr],e._meridiem),se(e),re(e)}function ye(t,e,n){var i;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?(i=t.isPM(n),i&&e<12&&(e+=12),i||12!==e||(e=0),e):e}function be(t){var e,n,i,r,o;if(0===t._f.length)return h(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;r<t._f.length;r++)o=0,e=m({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[r],ve(e),f(e)&&(o+=h(e).charsLeftOver,o+=10*h(e).unusedTokens.length,h(e).score=o,(null==i||o<i)&&(i=o,n=e));u(t,n||e)}function we(t){if(!t._d){var e=P(t._i);t._a=s([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),se(t)}}function _e(t){var e=new g(re(xe(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function xe(t){var n=t._i,i=t._f;return t._locale=t._locale||ne(t._l),null===n||void 0===i&&""===n?p({nullInput:!0}):("string"==typeof n&&(t._i=n=t._locale.preparse(n)),v(n)?new g(re(n)):(a(n)?t._d=n:e(i)?be(t):i?ve(t):De(t),f(t)||(t._d=null),t))}function De(i){var l=i._i;r(l)?i._d=new Date(t.now()):a(l)?i._d=new Date(l.valueOf()):"string"==typeof l?ge(i):e(l)?(i._a=s(l.slice(0),function(t){return parseInt(t,10)}),se(i)):n(l)?we(i):o(l)?i._d=new Date(l):t.createFromInputFallback(i)}function ke(t,r,o,a,s){var l={};return!0!==o&&!1!==o||(a=o,o=void 0),(n(t)&&i(t)||e(t)&&0===t.length)&&(t=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=s,l._l=o,l._i=t,l._f=r,l._strict=a,_e(l)}function Ce(t,e,n,i){return ke(t,e,n,i,!1)}function Te(t,n){var i,r;if(1===n.length&&e(n[0])&&(n=n[0]),!n.length)return Ce();for(i=n[0],r=1;r<n.length;++r)n[r].isValid()&&!n[r][t](i)||(i=n[r]);return i}function Se(){return Te("isBefore",[].slice.call(arguments,0))}function $e(){return Te("isAfter",[].slice.call(arguments,0))}function Ee(t){for(var e in t)if(-1===wr.call(Kr,e)||null!=t[e]&&isNaN(t[e]))return!1;for(var n=!1,i=0;i<Kr.length;++i)if(t[Kr[i]]){if(n)return!1;parseFloat(t[Kr[i]])!==b(t[Kr[i]])&&(n=!0)}return!0}function Oe(){return this._isValid}function Me(){return Qe(NaN)}function Ae(t){var e=P(t),n=e.year||0,i=e.quarter||0,r=e.month||0,o=e.week||e.isoWeek||0,a=e.day||0,s=e.hour||0,l=e.minute||0,u=e.second||0,c=e.millisecond||0;this._isValid=Ee(e),this._milliseconds=+c+1e3*u+6e4*l+1e3*s*60*60,this._days=+a+7*o,this._months=+r+3*i+12*n,this._data={},this._locale=ne(),this._bubble()}function je(t){return t instanceof Ae}function Ne(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Ie(t,e){Y(t,0,0,function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+H(~~(t/60),2)+e+H(~~t%60,2)})}function Pe(t,e){var n=(e||"").match(t);if(null===n)return null;var i=n[n.length-1]||[],r=(i+"").match(Jr)||["-",0,0],o=60*r[1]+b(r[2]);return 0===o?0:"+"===r[0]?o:-o}function Le(e,n){var i,r;return n._isUTC?(i=n.clone(),r=(v(e)||a(e)?e.valueOf():Ce(e).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+r),t.updateOffset(i,!1),i):Ce(e).local()}function Re(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function He(e,n,i){var r,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Pe(ar,e)))return this}else Math.abs(e)<16&&!i&&(e*=60);return!this._isUTC&&n&&(r=Re(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==e&&(!n||this._changeInProgress?en(this,Qe(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Re(this)}function Ye(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function Fe(t){return this.utcOffset(0,t)}function Ue(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Re(this),"m")),this}function We(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=Pe(or,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this}function qe(t){return!!this.isValid()&&(t=t?Ce(t).utcOffset():0,(this.utcOffset()-t)%60==0)}function Be(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function ze(){if(!r(this._isDSTShifted))return this._isDSTShifted;var t={};if(m(t,this),t=xe(t),t._a){var e=t._isUTC?c(t._a):Ce(t._a);this._isDSTShifted=this.isValid()&&w(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Ve(){return!!this.isValid()&&!this._isUTC}function Ge(){return!!this.isValid()&&this._isUTC}function Ze(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Qe(t,e){var n,i,r,a=t,s=null;return je(t)?a={ms:t._milliseconds,d:t._days,M:t._months}:o(t)?(a={},e?a[e]=t:a.milliseconds=t):(s=Xr.exec(t))?(n="-"===s[1]?-1:1,a={y:0,d:b(s[fr])*n,h:b(s[pr])*n,m:b(s[mr])*n,s:b(s[gr])*n,ms:b(Ne(1e3*s[vr]))*n}):(s=to.exec(t))?(n="-"===s[1]?-1:1,a={y:Ke(s[2],n),M:Ke(s[3],n),w:Ke(s[4],n),d:Ke(s[5],n),h:Ke(s[6],n),m:Ke(s[7],n),s:Ke(s[8],n)}):null==a?a={}:"object"==typeof a&&("from"in a||"to"in a)&&(r=Xe(Ce(a.from),Ce(a.to)),a={},a.ms=r.milliseconds,a.M=r.months),i=new Ae(a),je(t)&&l(t,"_locale")&&(i._locale=t._locale),i}function Ke(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Je(t,e){var n={};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Xe(t,e){var n;return t.isValid()&&e.isValid()?(e=Le(e,t),t.isBefore(e)?n=Je(t,e):(n=Je(e,t),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function tn(t,e){return function(n,i){var r,o;return null===i||isNaN(+i)||(D(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=i,i=o),n="string"==typeof n?+n:n,r=Qe(n,i),en(this,r,t),this}}function en(e,n,i,r){var o=n._milliseconds,a=Ne(n._days),s=Ne(n._months);e.isValid()&&(r=null==r||r,s&&ht(e,nt(e,"Month")+s*i),a&&it(e,"Date",nt(e,"Date")+a*i),o&&e._d.setTime(e._d.valueOf()+o*i),r&&t.updateOffset(e,a||s))}function nn(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function rn(e,n){var i=e||Ce(),r=Le(i,this).startOf("day"),o=t.calendarFormat(this,r)||"sameElse",a=n&&(k(n[o])?n[o].call(this,i):n[o]);return this.format(a||this.localeData().calendar(o,this,Ce(i)))}function on(){return new g(this)}function an(t,e){var n=v(t)?t:Ce(t);return!(!this.isValid()||!n.isValid())&&(e=I(e)||"millisecond","millisecond"===e?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf())}function sn(t,e){var n=v(t)?t:Ce(t);return!(!this.isValid()||!n.isValid())&&(e=I(e)||"millisecond","millisecond"===e?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf())}function ln(t,e,n,i){var r=v(t)?t:Ce(t),o=v(e)?e:Ce(e);return!!(this.isValid()&&r.isValid()&&o.isValid())&&(i=i||"()",("("===i[0]?this.isAfter(r,n):!this.isBefore(r,n))&&(")"===i[1]?this.isBefore(o,n):!this.isAfter(o,n)))}function un(t,e){var n,i=v(t)?t:Ce(t);return!(!this.isValid()||!i.isValid())&&(e=I(e)||"millisecond","millisecond"===e?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf()))}function cn(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function dn(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function hn(t,e,n){var i,r,o;if(!this.isValid())return NaN;if(i=Le(t,this),!i.isValid())return NaN;switch(r=6e4*(i.utcOffset()-this.utcOffset()),e=I(e)){case"year":o=fn(this,i)/12;break;case"month":o=fn(this,i);break;case"quarter":o=fn(this,i)/3;break;case"second":o=(this-i)/1e3;break;case"minute":o=(this-i)/6e4;break;case"hour":o=(this-i)/36e5;break;case"day":o=(this-i-r)/864e5;break;case"week":o=(this-i-r)/6048e5;break;default:o=this-i}return n?o:y(o)}function fn(t,e){var n,i,r=12*(e.year()-t.year())+(e.month()-t.month()),o=t.clone().add(r,"months");return e-o<0?(n=t.clone().add(r-1,"months"),i=(e-o)/(o-n)):(n=t.clone().add(r+1,"months"),i=(e-o)/(n-o)),-(r+i)||0}function pn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function mn(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;return n.year()<0||n.year()>9999?W(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):k(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",W(n,"Z")):W(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function gn(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var n="["+t+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r=e+'[")]';return this.format(n+i+"-MM-DD[T]HH:mm:ss.SSS"+r)}function vn(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var n=W(this,e);return this.localeData().postformat(n)}function yn(t,e){
return this.isValid()&&(v(t)&&t.isValid()||Ce(t).isValid())?Qe({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function bn(t){return this.from(Ce(),t)}function wn(t,e){return this.isValid()&&(v(t)&&t.isValid()||Ce(t).isValid())?Qe({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function _n(t){return this.to(Ce(),t)}function xn(t){var e;return void 0===t?this._locale._abbr:(e=ne(t),null!=e&&(this._locale=e),this)}function Dn(){return this._locale}function kn(t,e){return(t%e+e)%e}function Cn(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-so:new Date(t,e,n).valueOf()}function Tn(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-so:Date.UTC(t,e,n)}function Sn(e){var n;if(void 0===(e=I(e))||"millisecond"===e||!this.isValid())return this;var i=this._isUTC?Tn:Cn;switch(e){case"year":n=i(this.year(),0,1);break;case"quarter":n=i(this.year(),this.month()-this.month()%3,1);break;case"month":n=i(this.year(),this.month(),1);break;case"week":n=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":n=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":n=i(this.year(),this.month(),this.date());break;case"hour":n=this._d.valueOf(),n-=kn(n+(this._isUTC?0:this.utcOffset()*oo),ao);break;case"minute":n=this._d.valueOf(),n-=kn(n,oo);break;case"second":n=this._d.valueOf(),n-=kn(n,ro)}return this._d.setTime(n),t.updateOffset(this,!0),this}function $n(e){var n;if(void 0===(e=I(e))||"millisecond"===e||!this.isValid())return this;var i=this._isUTC?Tn:Cn;switch(e){case"year":n=i(this.year()+1,0,1)-1;break;case"quarter":n=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":n=i(this.year(),this.month()+1,1)-1;break;case"week":n=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":n=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":n=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":n=this._d.valueOf(),n+=ao-kn(n+(this._isUTC?0:this.utcOffset()*oo),ao)-1;break;case"minute":n=this._d.valueOf(),n+=oo-kn(n,oo)-1;break;case"second":n=this._d.valueOf(),n+=ro-kn(n,ro)-1}return this._d.setTime(n),t.updateOffset(this,!0),this}function En(){return this._d.valueOf()-6e4*(this._offset||0)}function On(){return Math.floor(this.valueOf()/1e3)}function Mn(){return new Date(this.valueOf())}function An(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function jn(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function Nn(){return this.isValid()?this.toISOString():null}function In(){return f(this)}function Pn(){return u({},h(this))}function Ln(){return h(this).overflow}function Rn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Hn(t,e){Y(0,[t,t.length],0,e)}function Yn(t){return qn.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Fn(t){return qn.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function Un(){return Dt(this.year(),1,4)}function Wn(){var t=this.localeData()._week;return Dt(this.year(),t.dow,t.doy)}function qn(t,e,n,i,r){var o;return null==t?xt(this,i,r).year:(o=Dt(t,i,r),e>o&&(e=o),Bn.call(this,t,e,n,i,r))}function Bn(t,e,n,i,r){var o=_t(t,e,n,i,r),a=bt(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function zn(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}function Vn(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}function Gn(t,e){e[vr]=b(1e3*("0."+t))}function Zn(){return this._isUTC?"UTC":""}function Qn(){return this._isUTC?"Coordinated Universal Time":""}function Kn(t){return Ce(1e3*t)}function Jn(){return Ce.apply(null,arguments).parseZone()}function Xn(t){return t}function ti(t,e,n,i){var r=ne(),o=c().set(i,e);return r[n](o,t)}function ei(t,e,n){if(o(t)&&(e=t,t=void 0),t=t||"",null!=e)return ti(t,e,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=ti(t,i,n,"month");return r}function ni(t,e,n,i){"boolean"==typeof t?(o(e)&&(n=e,e=void 0),e=e||""):(e=t,n=e,t=!1,o(e)&&(n=e,e=void 0),e=e||"");var r=ne(),a=t?r._week.dow:0;if(null!=n)return ti(e,(n+a)%7,i,"day");var s,l=[];for(s=0;s<7;s++)l[s]=ti(e,(s+a)%7,i,"day");return l}function ii(t,e){return ei(t,e,"months")}function ri(t,e){return ei(t,e,"monthsShort")}function oi(t,e,n){return ni(t,e,n,"weekdays")}function ai(t,e,n){return ni(t,e,n,"weekdaysShort")}function si(t,e,n){return ni(t,e,n,"weekdaysMin")}function li(){var t=this._data;return this._milliseconds=go(this._milliseconds),this._days=go(this._days),this._months=go(this._months),t.milliseconds=go(t.milliseconds),t.seconds=go(t.seconds),t.minutes=go(t.minutes),t.hours=go(t.hours),t.months=go(t.months),t.years=go(t.years),this}function ui(t,e,n,i){var r=Qe(e,n);return t._milliseconds+=i*r._milliseconds,t._days+=i*r._days,t._months+=i*r._months,t._bubble()}function ci(t,e){return ui(this,t,e,1)}function di(t,e){return ui(this,t,e,-1)}function hi(t){return t<0?Math.floor(t):Math.ceil(t)}function fi(){var t,e,n,i,r,o=this._milliseconds,a=this._days,s=this._months,l=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*hi(mi(s)+a),a=0,s=0),l.milliseconds=o%1e3,t=y(o/1e3),l.seconds=t%60,e=y(t/60),l.minutes=e%60,n=y(e/60),l.hours=n%24,a+=y(n/24),r=y(pi(a)),s+=r,a-=hi(mi(r)),i=y(s/12),s%=12,l.days=a,l.months=s,l.years=i,this}function pi(t){return 4800*t/146097}function mi(t){return 146097*t/4800}function gi(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if("month"===(t=I(t))||"quarter"===t||"year"===t)switch(e=this._days+i/864e5,n=this._months+pi(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(mi(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}}function vi(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*b(this._months/12):NaN}function yi(t){return function(){return this.as(t)}}function bi(){return Qe(this)}function wi(t){return t=I(t),this.isValid()?this[t+"s"]():NaN}function _i(t){return function(){return this.isValid()?this._data[t]:NaN}}function xi(){return y(this.days()/7)}function Di(t,e,n,i,r){return r.relativeTime(e||1,!!n,t,i)}function ki(t,e,n){var i=Qe(t).abs(),r=jo(i.as("s")),o=jo(i.as("m")),a=jo(i.as("h")),s=jo(i.as("d")),l=jo(i.as("M")),u=jo(i.as("y")),c=r<=No.ss&&["s",r]||r<No.s&&["ss",r]||o<=1&&["m"]||o<No.m&&["mm",o]||a<=1&&["h"]||a<No.h&&["hh",a]||s<=1&&["d"]||s<No.d&&["dd",s]||l<=1&&["M"]||l<No.M&&["MM",l]||u<=1&&["y"]||["yy",u];return c[2]=e,c[3]=+t>0,c[4]=n,Di.apply(null,c)}function Ci(t){return void 0===t?jo:"function"==typeof t&&(jo=t,!0)}function Ti(t,e){return void 0!==No[t]&&(void 0===e?No[t]:(No[t]=e,"s"===t&&(No.ss=e-1),!0))}function Si(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),n=ki(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)}function $i(t){return(t>0)-(t<0)||+t}function Ei(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,i=Io(this._milliseconds)/1e3,r=Io(this._days),o=Io(this._months);t=y(i/60),e=y(t/60),i%=60,t%=60,n=y(o/12),o%=12;var a=n,s=o,l=r,u=e,c=t,d=i?i.toFixed(3).replace(/\.?0+$/,""):"",h=this.asSeconds();if(!h)return"P0D";var f=h<0?"-":"",p=$i(this._months)!==$i(h)?"-":"",m=$i(this._days)!==$i(h)?"-":"",g=$i(this._milliseconds)!==$i(h)?"-":"";return f+"P"+(a?p+a+"Y":"")+(s?p+s+"M":"")+(l?m+l+"D":"")+(u||c||d?"T":"")+(u?g+u+"H":"")+(c?g+c+"M":"")+(d?g+d+"S":"")}var Oi,Mi;Mi=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),n=e.length>>>0,i=0;i<n;i++)if(i in e&&t.call(this,e[i],i,e))return!0;return!1};var Ai=t.momentProperties=[],ji=!1,Ni={};t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;var Ii;Ii=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)l(t,e)&&n.push(e);return n};var Pi={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Li={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},Ri=/\d{1,2}/,Hi={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},Yi={},Fi={},Ui=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Wi=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,qi={},Bi={},zi=/\d/,Vi=/\d\d/,Gi=/\d{3}/,Zi=/\d{4}/,Qi=/[+-]?\d{6}/,Ki=/\d\d?/,Ji=/\d\d\d\d?/,Xi=/\d\d\d\d\d\d?/,tr=/\d{1,3}/,er=/\d{1,4}/,nr=/[+-]?\d{1,6}/,ir=/\d+/,rr=/[+-]?\d+/,or=/Z|[+-]\d\d:?\d\d/gi,ar=/Z|[+-]\d\d(?::?\d\d)?/gi,sr=/[+-]?\d+(\.\d{1,3})?/,lr=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ur={},cr={},dr=0,hr=1,fr=2,pr=3,mr=4,gr=5,vr=6,yr=7,br=8;Y("Y",0,0,function(){var t=this.year();return t<=9999?""+t:"+"+t}),Y(0,["YY",2],0,function(){return this.year()%100}),Y(0,["YYYY",4],0,"year"),Y(0,["YYYYY",5],0,"year"),Y(0,["YYYYYY",6,!0],0,"year"),N("year","y"),L("year",1),B("Y",rr),B("YY",Ki,Vi),B("YYYY",er,Zi),B("YYYYY",nr,Qi),B("YYYYYY",nr,Qi),Z(["YYYYY","YYYYYY"],dr),Z("YYYY",function(e,n){n[dr]=2===e.length?t.parseTwoDigitYear(e):b(e)}),Z("YY",function(e,n){n[dr]=t.parseTwoDigitYear(e)}),Z("Y",function(t,e){e[dr]=parseInt(t,10)}),t.parseTwoDigitYear=function(t){return b(t)+(b(t)>68?1900:2e3)};var wr,_r=et("FullYear",!0);wr=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},Y("M",["MM",2],"Mo",function(){return this.month()+1}),Y("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),Y("MMMM",0,0,function(t){return this.localeData().months(this,t)}),N("month","M"),L("month",8),B("M",Ki),B("MM",Ki,Vi),B("MMM",function(t,e){return e.monthsShortRegex(t)}),B("MMMM",function(t,e){return e.monthsRegex(t)}),Z(["M","MM"],function(t,e){e[hr]=b(t)-1}),Z(["MMM","MMMM"],function(t,e,n,i){var r=n._locale.monthsParse(t,i,n._strict);null!=r?e[hr]=r:h(n).invalidMonth=t});var xr=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Dr="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),kr="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Cr=lr,Tr=lr;Y("w",["ww",2],"wo","week"),Y("W",["WW",2],"Wo","isoWeek"),N("week","w"),N("isoWeek","W"),L("week",5),L("isoWeek",5),B("w",Ki),B("ww",Ki,Vi),B("W",Ki),B("WW",Ki,Vi),Q(["w","ww","W","WW"],function(t,e,n,i){e[i.substr(0,1)]=b(t)});var Sr={dow:0,doy:6};Y("d",0,"do","day"),Y("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),Y("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),Y("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),Y("e",0,0,"weekday"),Y("E",0,0,"isoWeekday"),N("day","d"),N("weekday","e"),N("isoWeekday","E"),L("day",11),L("weekday",11),L("isoWeekday",11),B("d",Ki),B("e",Ki),B("E",Ki),B("dd",function(t,e){return e.weekdaysMinRegex(t)}),B("ddd",function(t,e){return e.weekdaysShortRegex(t)}),B("dddd",function(t,e){return e.weekdaysRegex(t)}),Q(["dd","ddd","dddd"],function(t,e,n,i){var r=n._locale.weekdaysParse(t,i,n._strict);null!=r?e.d=r:h(n).invalidWeekday=t}),Q(["d","e","E"],function(t,e,n,i){e[i]=b(t)});var $r="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Er="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Or="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Mr=lr,Ar=lr,jr=lr;Y("H",["HH",2],0,"hour"),Y("h",["hh",2],0,qt),Y("k",["kk",2],0,Bt),Y("hmm",0,0,function(){return""+qt.apply(this)+H(this.minutes(),2)}),Y("hmmss",0,0,function(){return""+qt.apply(this)+H(this.minutes(),2)+H(this.seconds(),2)}),Y("Hmm",0,0,function(){return""+this.hours()+H(this.minutes(),2)}),Y("Hmmss",0,0,function(){return""+this.hours()+H(this.minutes(),2)+H(this.seconds(),2)}),zt("a",!0),zt("A",!1),N("hour","h"),L("hour",13),B("a",Vt),B("A",Vt),B("H",Ki),B("h",Ki),B("k",Ki),B("HH",Ki,Vi),B("hh",Ki,Vi),B("kk",Ki,Vi),B("hmm",Ji),B("hmmss",Xi),B("Hmm",Ji),B("Hmmss",Xi),Z(["H","HH"],pr),Z(["k","kk"],function(t,e,n){var i=b(t);e[pr]=24===i?0:i}),Z(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),Z(["h","hh"],function(t,e,n){e[pr]=b(t),h(n).bigHour=!0}),Z("hmm",function(t,e,n){var i=t.length-2;e[pr]=b(t.substr(0,i)),e[mr]=b(t.substr(i)),h(n).bigHour=!0}),Z("hmmss",function(t,e,n){var i=t.length-4,r=t.length-2;e[pr]=b(t.substr(0,i)),e[mr]=b(t.substr(i,2)),e[gr]=b(t.substr(r)),h(n).bigHour=!0}),Z("Hmm",function(t,e,n){var i=t.length-2;e[pr]=b(t.substr(0,i)),e[mr]=b(t.substr(i))}),Z("Hmmss",function(t,e,n){var i=t.length-4,r=t.length-2;e[pr]=b(t.substr(0,i)),e[mr]=b(t.substr(i,2)),e[gr]=b(t.substr(r))});var Nr,Ir=/[ap]\.?m?\.?/i,Pr=et("Hours",!0),Lr={calendar:Pi,longDateFormat:Li,invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:Ri,relativeTime:Hi,months:Dr,monthsShort:kr,week:Sr,weekdays:$r,weekdaysMin:Or,weekdaysShort:Er,meridiemParse:Ir},Rr={},Hr={},Yr=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Fr=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ur=/Z|[+-]\d\d(?::?\d\d)?/,Wr=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],qr=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Br=/^\/?Date\((\-?\d+)/i,zr=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Vr={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};t.createFromInputFallback=x("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),t.ISO_8601=function(){},t.RFC_2822=function(){};var Gr=x("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Ce.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:p()}),Zr=x("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Ce.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:p()}),Qr=function(){return Date.now?Date.now():+new Date},Kr=["year","quarter","month","week","day","hour","minute","second","millisecond"];Ie("Z",":"),Ie("ZZ",""),B("Z",ar),B("ZZ",ar),Z(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=Pe(ar,t)});var Jr=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var Xr=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,to=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;Qe.fn=Ae.prototype,Qe.invalid=Me;var eo=tn(1,"add"),no=tn(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var io=x("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)}),ro=1e3,oo=60*ro,ao=60*oo,so=3506328*ao;Y(0,["gg",2],0,function(){return this.weekYear()%100}),Y(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Hn("gggg","weekYear"),Hn("ggggg","weekYear"),Hn("GGGG","isoWeekYear"),Hn("GGGGG","isoWeekYear"),N("weekYear","gg"),N("isoWeekYear","GG"),L("weekYear",1),L("isoWeekYear",1),B("G",rr),B("g",rr),B("GG",Ki,Vi),B("gg",Ki,Vi),B("GGGG",er,Zi),B("gggg",er,Zi),B("GGGGG",nr,Qi),B("ggggg",nr,Qi),Q(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,i){e[i.substr(0,2)]=b(t)}),Q(["gg","GG"],function(e,n,i,r){n[r]=t.parseTwoDigitYear(e)}),Y("Q",0,"Qo","quarter"),N("quarter","Q"),L("quarter",7),B("Q",zi),Z("Q",function(t,e){e[hr]=3*(b(t)-1)}),Y("D",["DD",2],"Do","date"),N("date","D"),L("date",9),B("D",Ki),B("DD",Ki,Vi),B("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),Z(["D","DD"],fr),Z("Do",function(t,e){e[fr]=b(t.match(Ki)[0])});var lo=et("Date",!0);Y("DDD",["DDDD",3],"DDDo","dayOfYear"),N("dayOfYear","DDD"),L("dayOfYear",4),B("DDD",tr),B("DDDD",Gi),Z(["DDD","DDDD"],function(t,e,n){n._dayOfYear=b(t)}),Y("m",["mm",2],0,"minute"),N("minute","m"),L("minute",14),B("m",Ki),B("mm",Ki,Vi),Z(["m","mm"],mr);var uo=et("Minutes",!1);Y("s",["ss",2],0,"second"),N("second","s"),L("second",15),B("s",Ki),B("ss",Ki,Vi),Z(["s","ss"],gr);var co=et("Seconds",!1);Y("S",0,0,function(){return~~(this.millisecond()/100)}),Y(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Y(0,["SSS",3],0,"millisecond"),Y(0,["SSSS",4],0,function(){return 10*this.millisecond()}),Y(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),Y(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),Y(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),Y(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),Y(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),N("millisecond","ms"),L("millisecond",16),B("S",tr,zi),B("SS",tr,Vi),B("SSS",tr,Gi);var ho;for(ho="SSSS";ho.length<=9;ho+="S")B(ho,ir);for(ho="S";ho.length<=9;ho+="S")Z(ho,Gn);var fo=et("Milliseconds",!1);Y("z",0,0,"zoneAbbr"),Y("zz",0,0,"zoneName");var po=g.prototype;po.add=eo,po.calendar=rn,po.clone=on,po.diff=hn,po.endOf=$n,po.format=vn,po.from=yn,po.fromNow=bn,po.to=wn,po.toNow=_n,po.get=rt,po.invalidAt=Ln,po.isAfter=an,po.isBefore=sn,po.isBetween=ln,po.isSame=un,po.isSameOrAfter=cn,po.isSameOrBefore=dn,po.isValid=In,po.lang=io,po.locale=xn,po.localeData=Dn,po.max=Zr,po.min=Gr,po.parsingFlags=Pn,po.set=ot,po.startOf=Sn,po.subtract=no,po.toArray=An,po.toObject=jn,po.toDate=Mn,po.toISOString=mn,po.inspect=gn,po.toJSON=Nn,po.toString=pn,po.unix=On,po.valueOf=En,po.creationData=Rn,po.year=_r,po.isLeapYear=tt,po.weekYear=Yn,po.isoWeekYear=Fn,po.quarter=po.quarters=zn,po.month=ft,po.daysInMonth=pt,po.week=po.weeks=St,po.isoWeek=po.isoWeeks=$t,po.weeksInYear=Wn,po.isoWeeksInYear=Un,po.date=lo,po.day=po.days=Lt,po.weekday=Rt,po.isoWeekday=Ht,po.dayOfYear=Vn,po.hour=po.hours=Pr,po.minute=po.minutes=uo,po.second=po.seconds=co,po.millisecond=po.milliseconds=fo,po.utcOffset=He,po.utc=Fe,po.local=Ue,po.parseZone=We,po.hasAlignedHourOffset=qe,po.isDST=Be,po.isLocal=Ve,po.isUtcOffset=Ge,po.isUtc=Ze,po.isUTC=Ze,po.zoneAbbr=Zn,po.zoneName=Qn,po.dates=x("dates accessor is deprecated. Use date instead.",lo),po.months=x("months accessor is deprecated. Use month instead",ft),po.years=x("years accessor is deprecated. Use year instead",_r),po.zone=x("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Ye),po.isDSTShifted=x("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",ze);var mo=S.prototype;mo.calendar=$,mo.longDateFormat=E,mo.invalidDate=O,mo.ordinal=M,mo.preparse=Xn,mo.postformat=Xn,mo.relativeTime=A,mo.pastFuture=j,mo.set=C,mo.months=lt,mo.monthsShort=ut,mo.monthsParse=dt,mo.monthsRegex=gt,mo.monthsShortRegex=mt,mo.week=kt,mo.firstDayOfYear=Tt,mo.firstDayOfWeek=Ct,mo.weekdays=At,mo.weekdaysMin=Nt,mo.weekdaysShort=jt,mo.weekdaysParse=Pt,mo.weekdaysRegex=Yt,mo.weekdaysShortRegex=Ft,mo.weekdaysMinRegex=Ut,mo.isPM=Gt,mo.meridiem=Zt,Xt("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===b(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),t.lang=x("moment.lang is deprecated. Use moment.locale instead.",Xt),t.langData=x("moment.langData is deprecated. Use moment.localeData instead.",ne);var go=Math.abs,vo=yi("ms"),yo=yi("s"),bo=yi("m"),wo=yi("h"),_o=yi("d"),xo=yi("w"),Do=yi("M"),ko=yi("Q"),Co=yi("y"),To=_i("milliseconds"),So=_i("seconds"),$o=_i("minutes"),Eo=_i("hours"),Oo=_i("days"),Mo=_i("months"),Ao=_i("years"),jo=Math.round,No={ss:44,s:45,m:45,h:22,d:26,M:11},Io=Math.abs,Po=Ae.prototype;return Po.isValid=Oe,Po.abs=li,Po.add=ci,Po.subtract=di,Po.as=gi,Po.asMilliseconds=vo,Po.asSeconds=yo,Po.asMinutes=bo,Po.asHours=wo,Po.asDays=_o,Po.asWeeks=xo,Po.asMonths=Do,Po.asQuarters=ko,Po.asYears=Co,Po.valueOf=vi,Po._bubble=fi,Po.clone=bi,Po.get=wi,Po.milliseconds=To,Po.seconds=So,Po.minutes=$o,Po.hours=Eo,Po.days=Oo,Po.weeks=xi,Po.months=Mo,Po.years=Ao,Po.humanize=Si,Po.toISOString=Ei,Po.toString=Ei,Po.toJSON=Ei,Po.locale=xn,Po.localeData=Dn,Po.toIsoString=x("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ei),Po.lang=io,Y("X",0,0,"unix"),Y("x",0,0,"valueOf"),B("x",rr),B("X",sr),Z("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),Z("x",function(t,e,n){n._d=new Date(b(t))}),t.version="2.24.0",function(t){Oi=t}(Ce),t.fn=po,t.min=Se,t.max=$e,t.now=Qr,t.utc=c,t.unix=Kn,t.months=ii,t.isDate=a,t.locale=Xt,t.invalid=p,t.duration=Qe,t.isMoment=v,t.weekdays=oi,t.parseZone=Jn,t.localeData=ne,t.isDuration=je,t.monthsShort=ri,t.weekdaysMin=si,t.defineLocale=te,t.updateLocale=ee,t.locales=ie,t.weekdaysShort=ai,t.normalizeUnits=I,t.relativeTimeRounding=Ci,t.relativeTimeThreshold=Ti,t.calendarFormat=nn,t.prototype=po,t.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},t}),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(t){"use strict";var e=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1||e[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(jQuery),function(t){"use strict";function e(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in e)if(void 0!==t.style[n])return{end:e[n]};return!1}t.fn.emulateTransitionEnd=function(e){var n=!1,i=this;t(this).one("bsTransitionEnd",function(){n=!0});var r=function(){n||t(i).trigger(t.support.transition.end)};return setTimeout(r,e),this},t(function(){t.support.transition=e(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}})})}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var n=t(this),r=n.data("bs.alert");r||n.data("bs.alert",r=new i(this)),"string"==typeof e&&r[e].call(n)})}var n='[data-dismiss="alert"]',i=function(e){t(e).on("click",n,this.close)};i.VERSION="3.4.1",i.TRANSITION_DURATION=150,i.prototype.close=function(e){function n(){a.detach().trigger("closed.bs.alert").remove()}var r=t(this),o=r.attr("data-target");o||(o=r.attr("href"),o=o&&o.replace(/.*(?=#[^\s]*$)/,"")),o="#"===o?[]:o;var a=t(document).find(o);e&&e.preventDefault(),a.length||(a=r.closest(".alert")),a.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(a.removeClass("in"),t.support.transition&&a.hasClass("fade")?a.one("bsTransitionEnd",n).emulateTransitionEnd(i.TRANSITION_DURATION):n())};var r=t.fn.alert;t.fn.alert=e,t.fn.alert.Constructor=i,t.fn.alert.noConflict=function(){return t.fn.alert=r,this},t(document).on("click.bs.alert.data-api",n,i.prototype.close)}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var i=t(this),r=i.data("bs.button"),o="object"==typeof e&&e;r||i.data("bs.button",r=new n(this,o)),"toggle"==e?r.toggle():e&&r.setState(e)})}var n=function(e,i){this.$element=t(e),this.options=t.extend({},n.DEFAULTS,i),this.isLoading=!1};n.VERSION="3.4.1",n.DEFAULTS={loadingText:"loading..."},n.prototype.setState=function(e){var n="disabled",i=this.$element,r=i.is("input")?"val":"html",o=i.data();e+="Text",null==o.resetText&&i.data("resetText",i[r]()),setTimeout(t.proxy(function(){i[r](null==o[e]?this.options[e]:o[e]),"loadingText"==e?(this.isLoading=!0,i.addClass(n).attr(n,n).prop(n,!0)):this.isLoading&&(this.isLoading=!1,i.removeClass(n).removeAttr(n).prop(n,!1))},this),0)},n.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var n=this.$element.find("input");"radio"==n.prop("type")?(n.prop("checked")&&(t=!1),e.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),t&&n.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var i=t.fn.button;t.fn.button=e,t.fn.button.Constructor=n,t.fn.button.noConflict=function(){return t.fn.button=i,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(n){var i=t(n.target).closest(".btn");e.call(i,"toggle"),t(n.target).is('input[type="radio"], input[type="checkbox"]')||(n.preventDefault(),i.is("input,button")?i.trigger("focus"):i.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(e){t(e.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(e.type))})}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var i=t(this),r=i.data("bs.carousel"),o=t.extend({},n.DEFAULTS,i.data(),"object"==typeof e&&e),a="string"==typeof e?e:o.slide;r||i.data("bs.carousel",r=new n(this,o)),"number"==typeof e?r.to(e):a?r[a]():o.interval&&r.pause().cycle()})}var n=function(e,n){this.$element=t(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",t.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",t.proxy(this.pause,this)).on("mouseleave.bs.carousel",t.proxy(this.cycle,this))};n.VERSION="3.4.1",n.TRANSITION_DURATION=600,n.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},n.prototype.keydown=function(t){if(!/input|textarea/i.test(t.target.tagName)){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()}},n.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},n.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},n.prototype.getItemForDirection=function(t,e){var n=this.getItemIndex(e);if(("prev"==t&&0===n||"next"==t&&n==this.$items.length-1)&&!this.options.wrap)return e;var i="prev"==t?-1:1,r=(n+i)%this.$items.length;return this.$items.eq(r)},n.prototype.to=function(t){var e=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(t>this.$items.length-1||t<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):n==t?this.pause().cycle():this.slide(t>n?"next":"prev",this.$items.eq(t))},n.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},n.prototype.next=function(){if(!this.sliding)return this.slide("next")},n.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},n.prototype.slide=function(e,i){var r=this.$element.find(".item.active"),o=i||this.getItemForDirection(e,r),a=this.interval,s="next"==e?"left":"right",l=this;if(o.hasClass("active"))return this.sliding=!1;var u=o[0],c=t.Event("slide.bs.carousel",{relatedTarget:u,direction:s});if(this.$element.trigger(c),!c.isDefaultPrevented()){if(this.sliding=!0,a&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var d=t(this.$indicators.children()[this.getItemIndex(o)]);d&&d.addClass("active")}var h=t.Event("slid.bs.carousel",{relatedTarget:u,direction:s});return t.support.transition&&this.$element.hasClass("slide")?(o.addClass(e),"object"==typeof o&&o.length&&o[0].offsetWidth,r.addClass(s),o.addClass(s),r.one("bsTransitionEnd",function(){o.removeClass([e,s].join(" ")).addClass("active"),r.removeClass(["active",s].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger(h)},0)}).emulateTransitionEnd(n.TRANSITION_DURATION)):(r.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger(h)),a&&this.cycle(),this}};var i=t.fn.carousel;t.fn.carousel=e,t.fn.carousel.Constructor=n,t.fn.carousel.noConflict=function(){return t.fn.carousel=i,this};var r=function(n){var i=t(this),r=i.attr("href");r&&(r=r.replace(/.*(?=#[^\s]+$)/,""));var o=i.attr("data-target")||r,a=t(document).find(o);if(a.hasClass("carousel")){var s=t.extend({},a.data(),i.data()),l=i.attr("data-slide-to");l&&(s.interval=!1),e.call(a,s),l&&a.data("bs.carousel").to(l),n.preventDefault()}};t(document).on("click.bs.carousel.data-api","[data-slide]",r).on("click.bs.carousel.data-api","[data-slide-to]",r),t(window).on("load",function(){t('[data-ride="carousel"]').each(function(){var n=t(this);e.call(n,n.data())})})}(jQuery),function(t){"use strict";function e(e){var n,i=e.attr("data-target")||(n=e.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return t(document).find(i)}function n(e){return this.each(function(){var n=t(this),r=n.data("bs.collapse"),o=t.extend({},i.DEFAULTS,n.data(),"object"==typeof e&&e);!r&&o.toggle&&/show|hide/.test(e)&&(o.toggle=!1),r||n.data("bs.collapse",r=new i(this,o)),"string"==typeof e&&r[e]()})}var i=function(e,n){this.$element=t(e),this.options=t.extend({},i.DEFAULTS,n),this.$trigger=t('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};i.VERSION="3.4.1",i.TRANSITION_DURATION=350,i.DEFAULTS={toggle:!0},i.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},i.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e,r=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing")
;if(!(r&&r.length&&(e=r.data("bs.collapse"))&&e.transitioning)){var o=t.Event("show.bs.collapse");if(this.$element.trigger(o),!o.isDefaultPrevented()){r&&r.length&&(n.call(r,"hide"),e||r.data("bs.collapse",null));var a=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[a](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var s=function(){this.$element.removeClass("collapsing").addClass("collapse in")[a](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return s.call(this);var l=t.camelCase(["scroll",a].join("-"));this.$element.one("bsTransitionEnd",t.proxy(s,this)).emulateTransitionEnd(i.TRANSITION_DURATION)[a](this.$element[0][l])}}}},i.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=t.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var n=this.dimension();this.$element[n](this.$element[n]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var r=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!t.support.transition)return r.call(this);this.$element[n](0).one("bsTransitionEnd",t.proxy(r,this)).emulateTransitionEnd(i.TRANSITION_DURATION)}}},i.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},i.prototype.getParent=function(){return t(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy(function(n,i){var r=t(i);this.addAriaAndCollapsedClass(e(r),r)},this)).end()},i.prototype.addAriaAndCollapsedClass=function(t,e){var n=t.hasClass("in");t.attr("aria-expanded",n),e.toggleClass("collapsed",!n).attr("aria-expanded",n)};var r=t.fn.collapse;t.fn.collapse=n,t.fn.collapse.Constructor=i,t.fn.collapse.noConflict=function(){return t.fn.collapse=r,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(i){var r=t(this);r.attr("data-target")||i.preventDefault();var o=e(r),a=o.data("bs.collapse"),s=a?"toggle":r.data();n.call(o,s)})}(jQuery),function(t){"use strict";function e(e){var n=e.attr("data-target");n||(n=e.attr("href"),n=n&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var i="#"!==n?t(document).find(n):null;return i&&i.length?i:e.parent()}function n(n){n&&3===n.which||(t(r).remove(),t(o).each(function(){var i=t(this),r=e(i),o={relatedTarget:this};r.hasClass("open")&&(n&&"click"==n.type&&/input|textarea/i.test(n.target.tagName)&&t.contains(r[0],n.target)||(r.trigger(n=t.Event("hide.bs.dropdown",o)),n.isDefaultPrevented()||(i.attr("aria-expanded","false"),r.removeClass("open").trigger(t.Event("hidden.bs.dropdown",o)))))}))}function i(e){return this.each(function(){var n=t(this),i=n.data("bs.dropdown");i||n.data("bs.dropdown",i=new a(this)),"string"==typeof e&&i[e].call(n)})}var r=".dropdown-backdrop",o='[data-toggle="dropdown"]',a=function(e){t(e).on("click.bs.dropdown",this.toggle)};a.VERSION="3.4.1",a.prototype.toggle=function(i){var r=t(this);if(!r.is(".disabled, :disabled")){var o=e(r),a=o.hasClass("open");if(n(),!a){"ontouchstart"in document.documentElement&&!o.closest(".navbar-nav").length&&t(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(t(this)).on("click",n);var s={relatedTarget:this};if(o.trigger(i=t.Event("show.bs.dropdown",s)),i.isDefaultPrevented())return;r.trigger("focus").attr("aria-expanded","true"),o.toggleClass("open").trigger(t.Event("shown.bs.dropdown",s))}return!1}},a.prototype.keydown=function(n){if(/(38|40|27|32)/.test(n.which)&&!/input|textarea/i.test(n.target.tagName)){var i=t(this);if(n.preventDefault(),n.stopPropagation(),!i.is(".disabled, :disabled")){var r=e(i),a=r.hasClass("open");if(!a&&27!=n.which||a&&27==n.which)return 27==n.which&&r.find(o).trigger("focus"),i.trigger("click");var s=r.find(".dropdown-menu li:not(.disabled):visible a");if(s.length){var l=s.index(n.target);38==n.which&&l>0&&l--,40==n.which&&l<s.length-1&&l++,~l||(l=0),s.eq(l).trigger("focus")}}}};var s=t.fn.dropdown;t.fn.dropdown=i,t.fn.dropdown.Constructor=a,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=s,this},t(document).on("click.bs.dropdown.data-api",n).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",o,a.prototype.toggle).on("keydown.bs.dropdown.data-api",o,a.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",a.prototype.keydown)}(jQuery),function(t){"use strict";function e(e,i){return this.each(function(){var r=t(this),o=r.data("bs.modal"),a=t.extend({},n.DEFAULTS,r.data(),"object"==typeof e&&e);o||r.data("bs.modal",o=new n(this,a)),"string"==typeof e?o[e](i):a.show&&o.show(i)})}var n=function(e,n){this.options=n,this.$body=t(document.body),this.$element=t(e),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.fixedContent=".navbar-fixed-top, .navbar-fixed-bottom",this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,t.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};n.VERSION="3.4.1",n.TRANSITION_DURATION=300,n.BACKDROP_TRANSITION_DURATION=150,n.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},n.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},n.prototype.show=function(e){var i=this,r=t.Event("show.bs.modal",{relatedTarget:e});this.$element.trigger(r),this.isShown||r.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',t.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){i.$element.one("mouseup.dismiss.bs.modal",function(e){t(e.target).is(i.$element)&&(i.ignoreBackdropClick=!0)})}),this.backdrop(function(){var r=t.support.transition&&i.$element.hasClass("fade");i.$element.parent().length||i.$element.appendTo(i.$body),i.$element.show().scrollTop(0),i.adjustDialog(),r&&i.$element[0].offsetWidth,i.$element.addClass("in"),i.enforceFocus();var o=t.Event("shown.bs.modal",{relatedTarget:e});r?i.$dialog.one("bsTransitionEnd",function(){i.$element.trigger("focus").trigger(o)}).emulateTransitionEnd(n.TRANSITION_DURATION):i.$element.trigger("focus").trigger(o)}))},n.prototype.hide=function(e){e&&e.preventDefault(),e=t.Event("hide.bs.modal"),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),t(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),t.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",t.proxy(this.hideModal,this)).emulateTransitionEnd(n.TRANSITION_DURATION):this.hideModal())},n.prototype.enforceFocus=function(){t(document).off("focusin.bs.modal").on("focusin.bs.modal",t.proxy(function(t){document===t.target||this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},n.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",t.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},n.prototype.resize=function(){this.isShown?t(window).on("resize.bs.modal",t.proxy(this.handleUpdate,this)):t(window).off("resize.bs.modal")},n.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$body.removeClass("modal-open"),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")})},n.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},n.prototype.backdrop=function(e){var i=this,r=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var o=t.support.transition&&r;if(this.$backdrop=t(document.createElement("div")).addClass("modal-backdrop "+r).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",t.proxy(function(t){if(this.ignoreBackdropClick)return void(this.ignoreBackdropClick=!1);t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())},this)),o&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!e)return;o?this.$backdrop.one("bsTransitionEnd",e).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):e()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var a=function(){i.removeBackdrop(),e&&e()};t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",a).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):a()}else e&&e()},n.prototype.handleUpdate=function(){this.adjustDialog()},n.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},n.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},n.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)}this.bodyIsOverflowing=document.body.clientWidth<t,this.scrollbarWidth=this.measureScrollbar()},n.prototype.setScrollbar=function(){var e=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"";var n=this.scrollbarWidth;this.bodyIsOverflowing&&(this.$body.css("padding-right",e+n),t(this.fixedContent).each(function(e,i){var r=i.style.paddingRight,o=t(i).css("padding-right");t(i).data("padding-right",r).css("padding-right",parseFloat(o)+n+"px")}))},n.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad),t(this.fixedContent).each(function(e,n){var i=t(n).data("padding-right");t(n).removeData("padding-right"),n.style.paddingRight=i||""})},n.prototype.measureScrollbar=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var i=t.fn.modal;t.fn.modal=e,t.fn.modal.Constructor=n,t.fn.modal.noConflict=function(){return t.fn.modal=i,this},t(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(n){var i=t(this),r=i.attr("href"),o=i.attr("data-target")||r&&r.replace(/.*(?=#[^\s]+$)/,""),a=t(document).find(o),s=a.data("bs.modal")?"toggle":t.extend({remote:!/#/.test(r)&&r},a.data(),i.data());i.is("a")&&n.preventDefault(),a.one("show.bs.modal",function(t){t.isDefaultPrevented()||a.one("hidden.bs.modal",function(){i.is(":visible")&&i.trigger("focus")})}),e.call(a,s,this)})}(jQuery),function(t){"use strict";function e(e,n){var i=e.nodeName.toLowerCase();if(-1!==t.inArray(i,n))return-1===t.inArray(i,o)||Boolean(e.nodeValue.match(l)||e.nodeValue.match(u));for(var r=t(n).filter(function(t,e){return e instanceof RegExp}),a=0,s=r.length;a<s;a++)if(i.match(r[a]))return!0;return!1}function n(n,i,r){if(0===n.length)return n;if(r&&"function"==typeof r)return r(n);if(!document.implementation||!document.implementation.createHTMLDocument)return n;var o=document.implementation.createHTMLDocument("sanitization");o.body.innerHTML=n;for(var a=t.map(i,function(t,e){return e}),s=t(o.body).find("*"),l=0,u=s.length;l<u;l++){var c=s[l],d=c.nodeName.toLowerCase();if(-1!==t.inArray(d,a))for(var h=t.map(c.attributes,function(t){return t}),f=[].concat(i["*"]||[],i[d]||[]),p=0,m=h.length;p<m;p++)e(h[p],f)||c.removeAttribute(h[p].nodeName);else c.parentNode.removeChild(c)}return o.body.innerHTML}function i(e){return this.each(function(){var n=t(this),i=n.data("bs.tooltip"),r="object"==typeof e&&e;!i&&/destroy|hide/.test(e)||(i||n.data("bs.tooltip",i=new c(this,r)),"string"==typeof e&&i[e]())})}var r=["sanitize","whiteList","sanitizeFn"],o=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],a=/^aria-[\w-]*$/i,s={"*":["class","dir","id","lang","role",a],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},l=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,u=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i,c=function(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",t,e)};c.VERSION="3.4.1",c.TRANSITION_DURATION=150,c.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:s},c.prototype.init=function(e,n,i){if(this.enabled=!0,this.type=e,this.$element=t(n),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&t(document).find(t.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 r=this.options.trigger.split(" "),o=r.length;o--;){var a=r[o];if("click"==a)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=a){var s="hover"==a?"mouseenter":"focusin",l="hover"==a?"mouseleave":"focusout";this.$element.on(s+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.getOptions=function(e){var i=this.$element.data();for(var o in i)i.hasOwnProperty(o)&&-1!==t.inArray(o,r)&&delete i[o];return e=t.extend({},this.getDefaults(),i,e),e.delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e.sanitize&&(e.template=n(e.template,e.whiteList,e.sanitizeFn)),e},c.prototype.getDelegateOptions=function(){var e={},n=this.getDefaults();return this._options&&t.each(this._options,function(t,i){n[t]!=i&&(e[t]=i)}),e},c.prototype.enter=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),e instanceof t.Event&&(n.inState["focusin"==e.type?"focus":"hover"]=!0),n.tip().hasClass("in")||"in"==n.hoverState?void(n.hoverState="in"):(clearTimeout(n.timeout),n.hoverState="in",n.options.delay&&n.options.delay.show?void(n.timeout=setTimeout(function(){"in"==n.hoverState&&n.show()},n.options.delay.show)):n.show())},c.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},c.prototype.leave=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),e instanceof t.Event&&(n.inState["focusout"==e.type?"focus":"hover"]=!1),!n.isInStateTrue()){if(clearTimeout(n.timeout),n.hoverState="out",!n.options.delay||!n.options.delay.hide)return n.hide();n.timeout=setTimeout(function(){"out"==n.hoverState&&n.hide()},n.options.delay.hide)}},c.prototype.show=function(){var e=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var n=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!n)return;var i=this,r=this.tip(),o=this.getUID(this.type);this.setContent(),r.attr("id",o),this.$element.attr("aria-describedby",o),this.options.animation&&r.addClass("fade");var a="function"==typeof this.options.placement?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,s=/\s?auto?\s?/i,l=s.test(a);l&&(a=a.replace(s,"")||"top"),r.detach().css({top:0,left:0,display:"block"}).addClass(a).data("bs."+this.type,this),this.options.container?r.appendTo(t(document).find(this.options.container)):r.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var u=this.getPosition(),d=r[0].offsetWidth,h=r[0].offsetHeight;if(l){var f=a,p=this.getPosition(this.$viewport);a="bottom"==a&&u.bottom+h>p.bottom?"top":"top"==a&&u.top-h<p.top?"bottom":"right"==a&&u.right+d>p.width?"left":"left"==a&&u.left-d<p.left?"right":a,r.removeClass(f).addClass(a)}var m=this.getCalculatedOffset(a,u,d,h);this.applyPlacement(m,a);var g=function(){var t=i.hoverState;i.$element.trigger("shown.bs."+i.type),i.hoverState=null,"out"==t&&i.leave(i)};t.support.transition&&this.$tip.hasClass("fade")?r.one("bsTransitionEnd",g).emulateTransitionEnd(c.TRANSITION_DURATION):g()}},c.prototype.applyPlacement=function(e,n){var i=this.tip(),r=i[0].offsetWidth,o=i[0].offsetHeight,a=parseInt(i.css("margin-top"),10),s=parseInt(i.css("margin-left"),10);isNaN(a)&&(a=0),isNaN(s)&&(s=0),e.top+=a,e.left+=s,t.offset.setOffset(i[0],t.extend({using:function(t){i.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),i.addClass("in");var l=i[0].offsetWidth,u=i[0].offsetHeight;"top"==n&&u!=o&&(e.top=e.top+o-u);var c=this.getViewportAdjustedDelta(n,e,l,u);c.left?e.left+=c.left:e.top+=c.top;var d=/top|bottom/.test(n),h=d?2*c.left-r+l:2*c.top-o+u,f=d?"offsetWidth":"offsetHeight";i.offset(e),this.replaceArrow(h,i[0][f],d)},c.prototype.replaceArrow=function(t,e,n){this.arrow().css(n?"left":"top",50*(1-t/e)+"%").css(n?"top":"left","")},c.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();this.options.html?(this.options.sanitize&&(e=n(e,this.options.whiteList,this.options.sanitizeFn)),t.find(".tooltip-inner").html(e)):t.find(".tooltip-inner").text(e),t.removeClass("fade in top bottom left right")},c.prototype.hide=function(e){function n(){"in"!=i.hoverState&&r.detach(),i.$element&&i.$element.removeAttr("aria-describedby").trigger("hidden.bs."+i.type),e&&e()}var i=this,r=t(this.$tip),o=t.Event("hide.bs."+this.type);if(this.$element.trigger(o),!o.isDefaultPrevented())return r.removeClass("in"),t.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",n).emulateTransitionEnd(c.TRANSITION_DURATION):n(),this.hoverState=null,this},c.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},c.prototype.hasContent=function(){return this.getTitle()},c.prototype.getPosition=function(e){e=e||this.$element;var n=e[0],i="BODY"==n.tagName,r=n.getBoundingClientRect();null==r.width&&(r=t.extend({},r,{width:r.right-r.left,height:r.bottom-r.top}));var o=window.SVGElement&&n instanceof window.SVGElement,a=i?{top:0,left:0}:o?null:e.offset(),s={scroll:i?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},l=i?{width:t(window).width(),height:t(window).height()}:null;return t.extend({},r,s,l,a)},c.prototype.getCalculatedOffset=function(t,e,n,i){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-n/2}:"top"==t?{top:e.top-i,left:e.left+e.width/2-n/2}:"left"==t?{top:e.top+e.height/2-i/2,left:e.left-n}:{top:e.top+e.height/2-i/2,left:e.left+e.width}},c.prototype.getViewportAdjustedDelta=function(t,e,n,i){var r={top:0,left:0};if(!this.$viewport)return r;var o=this.options.viewport&&this.options.viewport.padding||0,a=this.getPosition(this.$viewport);if(/right|left/.test(t)){var s=e.top-o-a.scroll,l=e.top+o-a.scroll+i;s<a.top?r.top=a.top-s:l>a.top+a.height&&(r.top=a.top+a.height-l)}else{var u=e.left-o,c=e.left+o+n;u<a.left?r.left=a.left-u:c>a.right&&(r.left=a.left+a.width-c)}return r},c.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},c.prototype.getUID=function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},c.prototype.tip=function(){if(!this.$tip&&(this.$tip=t(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},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},c.prototype.enable=function(){this.enabled=!0},c.prototype.disable=function(){this.enabled=!1},c.prototype.toggleEnabled=function(){this.enabled=!this.enabled},c.prototype.toggle=function(e){var n=this;e&&((n=t(e.currentTarget).data("bs."+this.type))||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n))),e?(n.inState.click=!n.inState.click,n.isInStateTrue()?n.enter(n):n.leave(n)):n.tip().hasClass("in")?n.leave(n):n.enter(n)},c.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null,t.$element=null})},c.prototype.sanitizeHtml=function(t){return n(t,this.options.whiteList,this.options.sanitizeFn)};var d=t.fn.tooltip;t.fn.tooltip=i,t.fn.tooltip.Constructor=c,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=d,this}}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var i=t(this),r=i.data("bs.popover"),o="object"==typeof e&&e;!r&&/destroy|hide/.test(e)||(r||i.data("bs.popover",r=new n(this,o)),"string"==typeof e&&r[e]())})}var n=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");n.VERSION="3.4.1",n.DEFAULTS=t.extend({},t.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),n.prototype=t.extend({},t.fn.tooltip.Constructor.prototype),n.prototype.constructor=n,n.prototype.getDefaults=function(){return n.DEFAULTS},n.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),n=this.getContent();if(this.options.html){var i=typeof n;this.options.sanitize&&(e=this.sanitizeHtml(e),"string"===i&&(n=this.sanitizeHtml(n))),t.find(".popover-title").html(e),t.find(".popover-content").children().detach().end()["string"===i?"html":"append"](n)}else t.find(".popover-title").text(e),t.find(".popover-content").children().detach().end().text(n);t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},n.prototype.hasContent=function(){return this.getTitle()||this.getContent()},n.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},n.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var i=t.fn.popover;t.fn.popover=e,t.fn.popover.Constructor=n,t.fn.popover.noConflict=function(){return t.fn.popover=i,this}}(jQuery),function(t){"use strict";function e(n,i){this.$body=t(document.body),this.$scrollElement=t(t(n).is(document.body)?window:n),this.options=t.extend({},e.DEFAULTS,i),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",t.proxy(this.process,this)),this.refresh(),this.process()}function n(n){return this.each(function(){var i=t(this),r=i.data("bs.scrollspy"),o="object"==typeof n&&n;r||i.data("bs.scrollspy",r=new e(this,o)),"string"==typeof n&&r[n]()})}e.VERSION="3.4.1",e.DEFAULTS={offset:10},e.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},e.prototype.refresh=function(){var e=this,n="offset",i=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),t.isWindow(this.$scrollElement[0])||(n="position",i=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var e=t(this),r=e.data("target")||e.attr("href"),o=/^#./.test(r)&&t(r);return o&&o.length&&o.is(":visible")&&[[o[n]().top+i,r]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){e.offsets.push(this[0]),e.targets.push(this[1])})},e.prototype.process=function(){var t,e=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(),e>=i)return a!=(t=o[o.length-1])&&this.activate(t);if(a&&e<r[0])return this.activeTarget=null,this.clear();for(t=r.length;t--;)a!=o[t]&&e>=r[t]&&(void 0===r[t+1]||e<r[t+1])&&this.activate(o[t])},e.prototype.activate=function(e){this.activeTarget=e,this.clear();var n=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',i=t(n).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active")),i.trigger("activate.bs.scrollspy")},e.prototype.clear=function(){t(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var i=t.fn.scrollspy;t.fn.scrollspy=n,t.fn.scrollspy.Constructor=e,t.fn.scrollspy.noConflict=function(){return t.fn.scrollspy=i,this},t(window).on("load.bs.scrollspy.data-api",function(){t('[data-spy="scroll"]').each(function(){var e=t(this);n.call(e,e.data())})})}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var i=t(this),r=i.data("bs.tab");r||i.data("bs.tab",r=new n(this)),"string"==typeof e&&r[e]()})}var n=function(e){this.element=t(e)};n.VERSION="3.4.1",n.TRANSITION_DURATION=150,n.prototype.show=function(){var e=this.element,n=e.closest("ul:not(.dropdown-menu)"),i=e.data("target");if(i||(i=e.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var r=n.find(".active:last a"),o=t.Event("hide.bs.tab",{relatedTarget:e[0]}),a=t.Event("show.bs.tab",{relatedTarget:r[0]});if(r.trigger(o),e.trigger(a),!a.isDefaultPrevented()&&!o.isDefaultPrevented()){var s=t(document).find(i);this.activate(e.closest("li"),n),this.activate(s,s.parent(),function(){r.trigger({type:"hidden.bs.tab",relatedTarget:e[0]}),e.trigger({type:"shown.bs.tab",relatedTarget:r[0]})})}}},n.prototype.activate=function(e,i,r){function o(){a.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),e.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),s?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu").length&&e.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),r&&r()}var a=i.find("> .active"),s=r&&t.support.transition&&(a.length&&a.hasClass("fade")||!!i.find("> .fade").length);a.length&&s?a.one("bsTransitionEnd",o).emulateTransitionEnd(n.TRANSITION_DURATION):o(),a.removeClass("in")};var i=t.fn.tab;t.fn.tab=e,t.fn.tab.Constructor=n,t.fn.tab.noConflict=function(){return t.fn.tab=i,this};var r=function(n){n.preventDefault(),e.call(t(this),"show")};t(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',r).on("click.bs.tab.data-api",'[data-toggle="pill"]',r)}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var i=t(this),r=i.data("bs.affix"),o="object"==typeof e&&e;r||i.data("bs.affix",r=new n(this,o)),"string"==typeof e&&r[e]()})}var n=function(e,i){this.options=t.extend({},n.DEFAULTS,i);var r=this.options.target===n.DEFAULTS.target?t(this.options.target):t(document).find(this.options.target);this.$target=r.on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(e),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};n.VERSION="3.4.1",n.RESET="affix affix-top affix-bottom",n.DEFAULTS={offset:0,target:window},n.prototype.getState=function(t,e,n,i){var r=this.$target.scrollTop(),o=this.$element.offset(),a=this.$target.height();if(null!=n&&"top"==this.affixed)return r<n&&"top";if("bottom"==this.affixed)return null!=n?!(r+this.unpin<=o.top)&&"bottom":!(r+a<=t-i)&&"bottom";var s=null==this.affixed,l=s?r:o.top,u=s?a:e;return null!=n&&r<=n?"top":null!=i&&l+u>=t-i&&"bottom"},n.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(n.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},n.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},n.prototype.checkPosition=function(){if(this.$element.is(":visible")){var e=this.$element.height(),i=this.options.offset,r=i.top,o=i.bottom,a=Math.max(t(document).height(),t(document.body).height());"object"!=typeof i&&(o=r=i),"function"==typeof r&&(r=i.top(this.$element)),"function"==typeof o&&(o=i.bottom(this.$element));var s=this.getState(a,e,r,o);if(this.affixed!=s){null!=this.unpin&&this.$element.css("top","");var l="affix"+(s?"-"+s:""),u=t.Event(l+".bs.affix");if(this.$element.trigger(u),u.isDefaultPrevented())return;this.affixed=s,this.unpin="bottom"==s?this.getPinnedOffset():null,this.$element.removeClass(n.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==s&&this.$element.offset({top:a-e-o})}};var i=t.fn.affix;t.fn.affix=e,t.fn.affix.Constructor=n,t.fn.affix.noConflict=function(){return t.fn.affix=i,this},t(window).on("load",function(){t('[data-spy="affix"]').each(function(){var n=t(this),i=n.data();i.offset=i.offset||{},null!=i.offsetBottom&&(i.offset.bottom=i.offsetBottom),null!=i.offsetTop&&(i.offset.top=i.offsetTop),e.call(n,i)})})}(jQuery),function(t){"use strict";function e(e){var n,i=e.attr("data-target")||(n=e.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return t(document).find(i)}function n(e){return this.each(function(){var n=t(this),r=n.data("bs.collapse"),o=t.extend({},i.DEFAULTS,n.data(),"object"==typeof e&&e);!r&&o.toggle&&/show|hide/.test(e)&&(o.toggle=!1),r||n.data("bs.collapse",r=new i(this,o)),"string"==typeof e&&r[e]()})}var i=function(e,n){this.$element=t(e),this.options=t.extend({},i.DEFAULTS,n),this.$trigger=t('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};i.VERSION="3.4.1",i.TRANSITION_DURATION=350,i.DEFAULTS={toggle:!0},i.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},i.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e,r=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(r&&r.length&&(e=r.data("bs.collapse"))&&e.transitioning)){var o=t.Event("show.bs.collapse");if(this.$element.trigger(o),!o.isDefaultPrevented()){r&&r.length&&(n.call(r,"hide"),e||r.data("bs.collapse",null));var a=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[a](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var s=function(){
this.$element.removeClass("collapsing").addClass("collapse in")[a](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return s.call(this);var l=t.camelCase(["scroll",a].join("-"));this.$element.one("bsTransitionEnd",t.proxy(s,this)).emulateTransitionEnd(i.TRANSITION_DURATION)[a](this.$element[0][l])}}}},i.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=t.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var n=this.dimension();this.$element[n](this.$element[n]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var r=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!t.support.transition)return r.call(this);this.$element[n](0).one("bsTransitionEnd",t.proxy(r,this)).emulateTransitionEnd(i.TRANSITION_DURATION)}}},i.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},i.prototype.getParent=function(){return t(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy(function(n,i){var r=t(i);this.addAriaAndCollapsedClass(e(r),r)},this)).end()},i.prototype.addAriaAndCollapsedClass=function(t,e){var n=t.hasClass("in");t.attr("aria-expanded",n),e.toggleClass("collapsed",!n).attr("aria-expanded",n)};var r=t.fn.collapse;t.fn.collapse=n,t.fn.collapse.Constructor=i,t.fn.collapse.noConflict=function(){return t.fn.collapse=r,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(i){var r=t(this);r.attr("data-target")||i.preventDefault();var o=e(r),a=o.data("bs.collapse"),s=a?"toggle":r.data();n.call(o,s)})}(jQuery),function(t){"use strict";function e(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in e)if(void 0!==t.style[n])return{end:e[n]};return!1}t.fn.emulateTransitionEnd=function(e){var n=!1,i=this;t(this).one("bsTransitionEnd",function(){n=!0});var r=function(){n||t(i).trigger(t.support.transition.end)};return setTimeout(r,e),this},t(function(){t.support.transition=e(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}})})}(jQuery),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Popper=e()}(this,function(){"use strict";function t(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,t()}))}}function e(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},ct))}}function n(t){var e={};return t&&"[object Function]"===e.toString.call(t)}function i(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView,i=n.getComputedStyle(t,null);return e?i[e]:i}function r(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function o(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=i(t),n=e.overflow,a=e.overflowX;return/(auto|scroll|overlay)/.test(n+e.overflowY+a)?t:o(r(t))}function a(t){return t&&t.referenceNode?t.referenceNode:t}function s(t){return 11===t?ft:10===t?pt:ft||pt}function l(t){if(!t)return document.documentElement;for(var e=s(10)?document.body:null,n=t.offsetParent||null;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===i(n,"position")?l(n):n:t?t.ownerDocument.documentElement:document.documentElement}function u(t){var e=t.nodeName;return"BODY"!==e&&("HTML"===e||l(t.firstElementChild)===t)}function c(t){return null!==t.parentNode?c(t.parentNode):t}function d(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?t:e,r=n?e:t,o=document.createRange();o.setStart(i,0),o.setEnd(r,0);var a=o.commonAncestorContainer;if(t!==a&&e!==a||i.contains(r))return u(a)?a:l(a);var s=c(t);return s.host?d(s.host,e):d(t,c(e).host)}function h(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===e?"scrollTop":"scrollLeft",i=t.nodeName;if("BODY"===i||"HTML"===i){var r=t.ownerDocument.documentElement;return(t.ownerDocument.scrollingElement||r)[n]}return t[n]}function f(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=h(e,"top"),r=h(e,"left"),o=n?-1:1;return t.top+=i*o,t.bottom+=i*o,t.left+=r*o,t.right+=r*o,t}function p(t,e){var n="x"===e?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"],10)+parseFloat(t["border"+i+"Width"],10)}function m(t,e,n,i){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],s(10)?parseInt(n["offset"+t])+parseInt(i["margin"+("Height"===t?"Top":"Left")])+parseInt(i["margin"+("Height"===t?"Bottom":"Right")]):0)}function g(t){var e=t.body,n=t.documentElement,i=s(10)&&getComputedStyle(n);return{height:m("Height",e,n,i),width:m("Width",e,n,i)}}function v(t){return yt({},t,{right:t.left+t.width,bottom:t.top+t.height})}function y(t){var e={};try{if(s(10)){e=t.getBoundingClientRect();var n=h(t,"top"),r=h(t,"left");e.top+=n,e.left+=r,e.bottom+=n,e.right+=r}else e=t.getBoundingClientRect()}catch(t){}var o={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},a="HTML"===t.nodeName?g(t.ownerDocument):{},l=a.width||t.clientWidth||o.width,u=a.height||t.clientHeight||o.height,c=t.offsetWidth-l,d=t.offsetHeight-u;if(c||d){var f=i(t);c-=p(f,"x"),d-=p(f,"y"),o.width-=c,o.height-=d}return v(o)}function b(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=s(10),a="HTML"===e.nodeName,l=y(t),u=y(e),c=o(t),d=i(e),h=parseFloat(d.borderTopWidth,10),p=parseFloat(d.borderLeftWidth,10);n&&a&&(u.top=Math.max(u.top,0),u.left=Math.max(u.left,0));var m=v({top:l.top-u.top-h,left:l.left-u.left-p,width:l.width,height:l.height});if(m.marginTop=0,m.marginLeft=0,!r&&a){var g=parseFloat(d.marginTop,10),b=parseFloat(d.marginLeft,10);m.top-=h-g,m.bottom-=h-g,m.left-=p-b,m.right-=p-b,m.marginTop=g,m.marginLeft=b}return(r&&!n?e.contains(c):e===c&&"BODY"!==c.nodeName)&&(m=f(m,e)),m}function w(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,i=b(t,n),r=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=e?0:h(n),s=e?0:h(n,"left");return v({top:a-i.top+i.marginTop,left:s-i.left+i.marginLeft,width:r,height:o})}function _(t){var e=t.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===i(t,"position"))return!0;var n=r(t);return!!n&&_(n)}function x(t){if(!t||!t.parentElement||s())return document.documentElement;for(var e=t.parentElement;e&&"none"===i(e,"transform");)e=e.parentElement;return e||document.documentElement}function D(t,e,n,i){var s=arguments.length>4&&void 0!==arguments[4]&&arguments[4],l={top:0,left:0},u=s?x(t):d(t,a(e));if("viewport"===i)l=w(u,s);else{var c=void 0;"scrollParent"===i?(c=o(r(e)),"BODY"===c.nodeName&&(c=t.ownerDocument.documentElement)):c="window"===i?t.ownerDocument.documentElement:i;var h=b(c,u,s);if("HTML"!==c.nodeName||_(u))l=h;else{var f=g(t.ownerDocument),p=f.height,m=f.width;l.top+=h.top-h.marginTop,l.bottom=p+h.top,l.left+=h.left-h.marginLeft,l.right=m+h.left}}n=n||0;var v="number"==typeof n;return l.left+=v?n:n.left||0,l.top+=v?n:n.top||0,l.right-=v?n:n.right||0,l.bottom-=v?n:n.bottom||0,l}function k(t){return t.width*t.height}function C(t,e,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var a=D(n,i,o,r),s={top:{width:a.width,height:e.top-a.top},right:{width:a.right-e.right,height:a.height},bottom:{width:a.width,height:a.bottom-e.bottom},left:{width:e.left-a.left,height:a.height}},l=Object.keys(s).map(function(t){return yt({key:t},s[t],{area:k(s[t])})}).sort(function(t,e){return e.area-t.area}),u=l.filter(function(t){var e=t.width,i=t.height;return e>=n.clientWidth&&i>=n.clientHeight}),c=u.length>0?u[0].key:l[0].key,d=t.split("-")[1];return c+(d?"-"+d:"")}function T(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return b(n,i?x(e):d(e,a(n)),i)}function S(t){var e=t.ownerDocument.defaultView,n=e.getComputedStyle(t),i=parseFloat(n.marginTop||0)+parseFloat(n.marginBottom||0),r=parseFloat(n.marginLeft||0)+parseFloat(n.marginRight||0);return{width:t.offsetWidth+r,height:t.offsetHeight+i}}function $(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,function(t){return e[t]})}function E(t,e,n){n=n.split("-")[0];var i=S(t),r={width:i.width,height:i.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",l=o?"height":"width",u=o?"width":"height";return r[a]=e[a]+e[l]/2-i[l]/2,r[s]=n===s?e[s]-i[u]:e[$(s)],r}function O(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function M(t,e,n){if(Array.prototype.findIndex)return t.findIndex(function(t){return t[e]===n});var i=O(t,function(t){return t[e]===n});return t.indexOf(i)}function A(t,e,i){return(void 0===i?t:t.slice(0,M(t,"name",i))).forEach(function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var i=t.function||t.fn;t.enabled&&n(i)&&(e.offsets.popper=v(e.offsets.popper),e.offsets.reference=v(e.offsets.reference),e=i(e,t))}),e}function j(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=T(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=C(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=E(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=A(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function N(t,e){return t.some(function(t){var n=t.name;return t.enabled&&n===e})}function I(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),i=0;i<e.length;i++){var r=e[i],o=r?""+r+n:t;if(void 0!==document.body.style[o])return o}return null}function P(){return this.state.isDestroyed=!0,N(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[I("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function L(t){var e=t.ownerDocument;return e?e.defaultView:window}function R(t,e,n,i){var r="BODY"===t.nodeName,a=r?t.ownerDocument.defaultView:t;a.addEventListener(e,n,{passive:!0}),r||R(o(a.parentNode),e,n,i),i.push(a)}function H(t,e,n,i){n.updateBound=i,L(t).addEventListener("resize",n.updateBound,{passive:!0});var r=o(t);return R(r,"scroll",n.updateBound,n.scrollParents),n.scrollElement=r,n.eventsEnabled=!0,n}function Y(){this.state.eventsEnabled||(this.state=H(this.reference,this.options,this.state,this.scheduleUpdate))}function F(t,e){return L(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach(function(t){t.removeEventListener("scroll",e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e}function U(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=F(this.reference,this.state))}function W(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function q(t,e){Object.keys(e).forEach(function(n){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&W(e[n])&&(i="px"),t.style[n]=e[n]+i})}function B(t,e){Object.keys(e).forEach(function(n){!1!==e[n]?t.setAttribute(n,e[n]):t.removeAttribute(n)})}function z(t){return q(t.instance.popper,t.styles),B(t.instance.popper,t.attributes),t.arrowElement&&Object.keys(t.arrowStyles).length&&q(t.arrowElement,t.arrowStyles),t}function V(t,e,n,i,r){var o=T(r,e,t,n.positionFixed),a=C(n.placement,o,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",a),q(e,{position:n.positionFixed?"fixed":"absolute"}),n}function G(t,e){var n=t.offsets,i=n.popper,r=n.reference,o=Math.round,a=Math.floor,s=function(t){return t},l=o(r.width),u=o(i.width),c=-1!==["left","right"].indexOf(t.placement),d=-1!==t.placement.indexOf("-"),h=l%2==u%2,f=l%2==1&&u%2==1,p=e?c||d||h?o:a:s,m=e?o:s;return{left:p(f&&!d&&e?i.left-1:i.left),top:m(i.top),bottom:m(i.bottom),right:p(i.right)}}function Z(t,e){var n=e.x,i=e.y,r=t.offsets.popper,o=O(t.instance.modifiers,function(t){return"applyStyle"===t.name}).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==o?o:e.gpuAcceleration,s=l(t.instance.popper),u=y(s),c={position:r.position},d=G(t,window.devicePixelRatio<2||!bt),h="bottom"===n?"top":"bottom",f="right"===i?"left":"right",p=I("transform"),m=void 0,g=void 0;if(g="bottom"===h?"HTML"===s.nodeName?-s.clientHeight+d.bottom:-u.height+d.bottom:d.top,m="right"===f?"HTML"===s.nodeName?-s.clientWidth+d.right:-u.width+d.right:d.left,a&&p)c[p]="translate3d("+m+"px, "+g+"px, 0)",c[h]=0,c[f]=0,c.willChange="transform";else{var v="bottom"===h?-1:1,b="right"===f?-1:1;c[h]=g*v,c[f]=m*b,c.willChange=h+", "+f}var w={"x-placement":t.placement};return t.attributes=yt({},w,t.attributes),t.styles=yt({},c,t.styles),t.arrowStyles=yt({},t.offsets.arrow,t.arrowStyles),t}function Q(t,e,n){var i=O(t,function(t){return t.name===e}),r=!!i&&t.some(function(t){return t.name===n&&t.enabled&&t.order<i.order});if(!r){var o="`"+e+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return r}function K(t,e){var n;if(!Q(t.instance.modifiers,"arrow","keepTogether"))return t;var r=e.element;if("string"==typeof r){if(!(r=t.instance.popper.querySelector(r)))return t}else if(!t.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var o=t.placement.split("-")[0],a=t.offsets,s=a.popper,l=a.reference,u=-1!==["left","right"].indexOf(o),c=u?"height":"width",d=u?"Top":"Left",h=d.toLowerCase(),f=u?"left":"top",p=u?"bottom":"right",m=S(r)[c];l[p]-m<s[h]&&(t.offsets.popper[h]-=s[h]-(l[p]-m)),l[h]+m>s[p]&&(t.offsets.popper[h]+=l[h]+m-s[p]),t.offsets.popper=v(t.offsets.popper);var g=l[h]+l[c]/2-m/2,y=i(t.instance.popper),b=parseFloat(y["margin"+d],10),w=parseFloat(y["border"+d+"Width"],10),_=g-t.offsets.popper[h]-b-w;return _=Math.max(Math.min(s[c]-m,_),0),t.arrowElement=r,t.offsets.arrow=(n={},vt(n,h,Math.round(_)),vt(n,f,""),n),t}function J(t){return"end"===t?"start":"start"===t?"end":t}function X(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=_t.indexOf(t),i=_t.slice(n+1).concat(_t.slice(0,n));return e?i.reverse():i}function tt(t,e){if(N(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=D(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),i=t.placement.split("-")[0],r=$(i),o=t.placement.split("-")[1]||"",a=[];switch(e.behavior){case xt.FLIP:a=[i,r];break;case xt.CLOCKWISE:a=X(i);break;case xt.COUNTERCLOCKWISE:a=X(i,!0);break;default:a=e.behavior}return a.forEach(function(s,l){if(i!==s||a.length===l+1)return t;i=t.placement.split("-")[0],r=$(i);var u=t.offsets.popper,c=t.offsets.reference,d=Math.floor,h="left"===i&&d(u.right)>d(c.left)||"right"===i&&d(u.left)<d(c.right)||"top"===i&&d(u.bottom)>d(c.top)||"bottom"===i&&d(u.top)<d(c.bottom),f=d(u.left)<d(n.left),p=d(u.right)>d(n.right),m=d(u.top)<d(n.top),g=d(u.bottom)>d(n.bottom),v="left"===i&&f||"right"===i&&p||"top"===i&&m||"bottom"===i&&g,y=-1!==["top","bottom"].indexOf(i),b=!!e.flipVariations&&(y&&"start"===o&&f||y&&"end"===o&&p||!y&&"start"===o&&m||!y&&"end"===o&&g),w=!!e.flipVariationsByContent&&(y&&"start"===o&&p||y&&"end"===o&&f||!y&&"start"===o&&g||!y&&"end"===o&&m),_=b||w;(h||v||_)&&(t.flipped=!0,(h||v)&&(i=a[l+1]),_&&(o=J(o)),t.placement=i+(o?"-"+o:""),t.offsets.popper=yt({},t.offsets.popper,E(t.instance.popper,t.offsets.reference,t.placement)),t=A(t.instance.modifiers,t,"flip"))}),t}function et(t){var e=t.offsets,n=e.popper,i=e.reference,r=t.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(r),s=a?"right":"bottom",l=a?"left":"top",u=a?"width":"height";return n[s]<o(i[l])&&(t.offsets.popper[l]=o(i[l])-n[u]),n[l]>o(i[s])&&(t.offsets.popper[l]=o(i[s])),t}function nt(t,e,n,i){var r=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+r[1],a=r[2];if(!o)return t;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=i}return v(s)[e]/100*o}if("vh"===a||"vw"===a){return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o}return o}function it(t,e,n,i){var r=[0,0],o=-1!==["right","left"].indexOf(i),a=t.split(/(\+|\-)/).map(function(t){return t.trim()}),s=a.indexOf(O(a,function(t){return-1!==t.search(/,|\s/)}));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,u=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return u=u.map(function(t,i){var r=(1===i?!o:o)?"height":"width",a=!1;return t.reduce(function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,a=!0,t):a?(t[t.length-1]+=e,a=!1,t):t.concat(e)},[]).map(function(t){return nt(t,r,e,n)})}),u.forEach(function(t,e){t.forEach(function(n,i){W(n)&&(r[e]+=n*("-"===t[i-1]?-1:1))})}),r}function rt(t,e){var n=e.offset,i=t.placement,r=t.offsets,o=r.popper,a=r.reference,s=i.split("-")[0],l=void 0;return l=W(+n)?[+n,0]:it(n,o,a,s),"left"===s?(o.top+=l[0],o.left-=l[1]):"right"===s?(o.top+=l[0],o.left+=l[1]):"top"===s?(o.left+=l[0],o.top-=l[1]):"bottom"===s&&(o.left+=l[0],o.top+=l[1]),t.popper=o,t}function ot(t,e){var n=e.boundariesElement||l(t.instance.popper);t.instance.reference===n&&(n=l(n));var i=I("transform"),r=t.instance.popper.style,o=r.top,a=r.left,s=r[i];r.top="",r.left="",r[i]="";var u=D(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);r.top=o,r.left=a,r[i]=s,e.boundaries=u;var c=e.priority,d=t.offsets.popper,h={primary:function(t){var n=d[t];return d[t]<u[t]&&!e.escapeWithReference&&(n=Math.max(d[t],u[t])),vt({},t,n)},secondary:function(t){var n="right"===t?"left":"top",i=d[n];return d[t]>u[t]&&!e.escapeWithReference&&(i=Math.min(d[n],u[t]-("right"===t?d.width:d.height))),vt({},n,i)}};return c.forEach(function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";d=yt({},d,h[e](t))}),t.offsets.popper=d,t}function at(t){var e=t.placement,n=e.split("-")[0],i=e.split("-")[1];if(i){var r=t.offsets,o=r.reference,a=r.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",u=s?"width":"height",c={start:vt({},l,o[l]),end:vt({},l,o[l]+o[u]-a[u])};t.offsets.popper=yt({},a,c[i])}return t}function st(t){if(!Q(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=O(t.instance.modifiers,function(t){return"preventOverflow"===t.name}).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}function lt(t){var e=t.placement,n=e.split("-")[0],i=t.offsets,r=i.popper,o=i.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return r[a?"left":"top"]=o[n]-(s?r[a?"width":"height"]:0),t.placement=$(e),t.offsets.popper=v(r),t}var ut="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,ct=function(){for(var t=["Edge","Trident","Firefox"],e=0;e<t.length;e+=1)if(ut&&navigator.userAgent.indexOf(t[e])>=0)return 1;return 0}(),dt=ut&&window.Promise,ht=dt?t:e,ft=ut&&!(!window.MSInputMethodContext||!document.documentMode),pt=ut&&/MSIE 10/.test(navigator.userAgent),mt=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},gt=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),vt=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},yt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},bt=ut&&/Firefox/i.test(navigator.userAgent),wt=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],_t=wt.slice(3),xt={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"},Dt={shift:{order:100,enabled:!0,fn:at},offset:{order:200,enabled:!0,fn:rt,offset:0},preventOverflow:{order:300,enabled:!0,fn:ot,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:et},arrow:{order:500,enabled:!0,fn:K,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:tt,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:lt},hide:{order:800,enabled:!0,fn:st},computeStyle:{order:850,enabled:!0,fn:Z,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:z,onLoad:V,gpuAcceleration:void 0}},kt={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:Dt},Ct=function(){function t(e,i){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};mt(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=ht(this.update.bind(this)),this.options=yt({},t.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=i&&i.jquery?i[0]:i,this.options.modifiers={},Object.keys(yt({},t.Defaults.modifiers,o.modifiers)).forEach(function(e){r.options.modifiers[e]=yt({},t.Defaults.modifiers[e]||{},o.modifiers?o.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(t){return yt({name:t},r.options.modifiers[t])}).sort(function(t,e){return t.order-e.order}),this.modifiers.forEach(function(t){t.enabled&&n(t.onLoad)&&t.onLoad(r.reference,r.popper,r.options,t,r.state)}),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return gt(t,[{key:"update",value:function(){return j.call(this)}},{key:"destroy",value:function(){return P.call(this)}},{key:"enableEventListeners",value:function(){return Y.call(this)}},{key:"disableEventListeners",value:function(){return U.call(this)}}]),t}();return Ct.Utils=("undefined"!=typeof window?window:global).PopperUtils,Ct.placements=wt,Ct.Defaults=kt,Ct}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.PopperUtils={})}(this,function(t){"use strict";function e(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView,i=n.getComputedStyle(t,null);return e?i[e]:i}function n(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function i(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var r=e(t),o=r.overflow,a=r.overflowX;return/(auto|scroll|overlay)/.test(o+r.overflowY+a)?t:i(n(t))}function r(t){return t&&t.referenceNode?t.referenceNode:t}function o(t){return 11===t?z:10===t?V:z||V}function a(t){if(!t)return document.documentElement;for(var n=o(10)?document.body:null,i=t.offsetParent||null;i===n&&t.nextElementSibling;)i=(t=t.nextElementSibling).offsetParent;var r=i&&i.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(i.nodeName)&&"static"===e(i,"position")?a(i):i:t?t.ownerDocument.documentElement:document.documentElement}function s(t){var e=t.nodeName;return"BODY"!==e&&("HTML"===e||a(t.firstElementChild)===t)}function l(t){return null!==t.parentNode?l(t.parentNode):t}function u(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?t:e,r=n?e:t,o=document.createRange();o.setStart(i,0),o.setEnd(r,0);var c=o.commonAncestorContainer;if(t!==c&&e!==c||i.contains(r))return s(c)?c:a(c);var d=l(t);return d.host?u(d.host,e):u(t,l(e).host)}function c(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===e?"scrollTop":"scrollLeft",i=t.nodeName;if("BODY"===i||"HTML"===i){var r=t.ownerDocument.documentElement;return(t.ownerDocument.scrollingElement||r)[n]}return t[n]}function d(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=c(e,"top"),r=c(e,"left"),o=n?-1:1;return t.top+=i*o,t.bottom+=i*o,t.left+=r*o,t.right+=r*o,t}function h(t,e){var n="x"===e?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"],10)+parseFloat(t["border"+i+"Width"],10)}function f(t,e,n,i){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],o(10)?parseInt(n["offset"+t])+parseInt(i["margin"+("Height"===t?"Top":"Left")])+parseInt(i["margin"+("Height"===t?"Bottom":"Right")]):0)}function p(t){var e=t.body,n=t.documentElement,i=o(10)&&getComputedStyle(n);return{height:f("Height",e,n,i),width:f("Width",e,n,i)}}function m(t){return G({},t,{right:t.left+t.width,bottom:t.top+t.height})}function g(t){var n={};try{if(o(10)){n=t.getBoundingClientRect();var i=c(t,"top"),r=c(t,"left");n.top+=i,n.left+=r,n.bottom+=i,n.right+=r}else n=t.getBoundingClientRect()}catch(t){}var a={left:n.left,top:n.top,width:n.right-n.left,height:n.bottom-n.top},s="HTML"===t.nodeName?p(t.ownerDocument):{},l=s.width||t.clientWidth||a.width,u=s.height||t.clientHeight||a.height,d=t.offsetWidth-l,f=t.offsetHeight-u;if(d||f){var g=e(t);d-=h(g,"x"),f-=h(g,"y"),a.width-=d,a.height-=f}return m(a)}function v(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=o(10),s="HTML"===n.nodeName,l=g(t),u=g(n),c=i(t),h=e(n),f=parseFloat(h.borderTopWidth,10),p=parseFloat(h.borderLeftWidth,10);r&&s&&(u.top=Math.max(u.top,0),u.left=Math.max(u.left,0));var v=m({top:l.top-u.top-f,left:l.left-u.left-p,width:l.width,height:l.height});if(v.marginTop=0,v.marginLeft=0,!a&&s){var y=parseFloat(h.marginTop,10),b=parseFloat(h.marginLeft,10);v.top-=f-y,v.bottom-=f-y,v.left-=p-b,v.right-=p-b,v.marginTop=y,v.marginLeft=b}return(a&&!r?n.contains(c):n===c&&"BODY"!==c.nodeName)&&(v=d(v,n)),v}function y(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,i=v(t,n),r=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=e?0:c(n),s=e?0:c(n,"left");return m({top:a-i.top+i.marginTop,left:s-i.left+i.marginLeft,width:r,height:o})}function b(t){var i=t.nodeName;if("BODY"===i||"HTML"===i)return!1;if("fixed"===e(t,"position"))return!0;var r=n(t);return!!r&&b(r)}function w(t){if(!t||!t.parentElement||o())return document.documentElement;for(var n=t.parentElement;n&&"none"===e(n,"transform");)n=n.parentElement;return n||document.documentElement}function _(t,e,o,a){var s=arguments.length>4&&void 0!==arguments[4]&&arguments[4],l={top:0,left:0},c=s?w(t):u(t,r(e));if("viewport"===a)l=y(c,s);else{var d=void 0;"scrollParent"===a?(d=i(n(e)),"BODY"===d.nodeName&&(d=t.ownerDocument.documentElement)):d="window"===a?t.ownerDocument.documentElement:a;var h=v(d,c,s);if("HTML"!==d.nodeName||b(c))l=h;else{var f=p(t.ownerDocument),m=f.height,g=f.width;l.top+=h.top-h.marginTop,l.bottom=m+h.top,l.left+=h.left-h.marginLeft,l.right=g+h.left}}o=o||0;var _="number"==typeof o;return l.left+=_?o:o.left||0,l.top+=_?o:o.top||0,l.right-=_?o:o.right||0,l.bottom-=_?o:o.bottom||0,l}function x(t){return t.width*t.height}function D(t,e,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var a=_(n,i,o,r),s={top:{width:a.width,height:e.top-a.top},right:{width:a.right-e.right,height:a.height},bottom:{width:a.width,height:a.bottom-e.bottom},left:{width:e.left-a.left,height:a.height}},l=Object.keys(s).map(function(t){return G({key:t},s[t],{area:x(s[t])})}).sort(function(t,e){return e.area-t.area}),u=l.filter(function(t){var e=t.width,i=t.height;return e>=n.clientWidth&&i>=n.clientHeight}),c=u.length>0?u[0].key:l[0].key,d=t.split("-")[1];return c+(d?"-"+d:"")}function k(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,t()}))}}function C(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},Z))}}function T(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function S(t,e,n){if(Array.prototype.findIndex)return t.findIndex(function(t){return t[e]===n});var i=T(t,function(t){return t[e]===n});return t.indexOf(i)}function $(t){var e=void 0;if("HTML"===t.nodeName){var n=p(t.ownerDocument);e={width:n.width,height:n.height,left:0,top:0}}else e={width:t.offsetWidth,height:t.offsetHeight,left:t.offsetLeft,top:t.offsetTop};return m(e)}function E(t){var e=t.ownerDocument.defaultView,n=e.getComputedStyle(t),i=parseFloat(n.marginTop||0)+parseFloat(n.marginBottom||0),r=parseFloat(n.marginLeft||0)+parseFloat(n.marginRight||0);return{width:t.offsetWidth+r,height:t.offsetHeight+i}}function O(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,function(t){return e[t]})}function M(t,e,n){n=n.split("-")[0];var i=E(t),r={width:i.width,height:i.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",l=o?"height":"width",u=o?"width":"height";return r[a]=e[a]+e[l]/2-i[l]/2,r[s]=n===s?e[s]-i[u]:e[O(s)],r}function A(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return v(n,i?w(e):u(e,r(n)),i)}function j(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),i=0;i<e.length;i++){var r=e[i],o=r?""+r+n:t;if(void 0!==document.body.style[o])return o}return null}function N(t){var e={};return t&&"[object Function]"===e.toString.call(t)}function I(t,e){return t.some(function(t){var n=t.name;return t.enabled&&n===e})}function P(t,e,n){var i=T(t,function(t){return t.name===e}),r=!!i&&t.some(function(t){return t.name===n&&t.enabled&&t.order<i.order});if(!r){var o="`"+e+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return r}function L(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function R(t){var e=t.ownerDocument;return e?e.defaultView:window}function H(t,e){return R(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach(function(t){t.removeEventListener("scroll",e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e}function Y(t,e,n){return(void 0===n?t:t.slice(0,S(t,"name",n))).forEach(function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=t.function||t.fn
;t.enabled&&N(n)&&(e.offsets.popper=m(e.offsets.popper),e.offsets.reference=m(e.offsets.reference),e=n(e,t))}),e}function F(t,e){Object.keys(e).forEach(function(n){!1!==e[n]?t.setAttribute(n,e[n]):t.removeAttribute(n)})}function U(t,e){Object.keys(e).forEach(function(n){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&L(e[n])&&(i="px"),t.style[n]=e[n]+i})}function W(t,e,n,r){var o="BODY"===t.nodeName,a=o?t.ownerDocument.defaultView:t;a.addEventListener(e,n,{passive:!0}),o||W(i(a.parentNode),e,n,r),r.push(a)}function q(t,e,n,r){n.updateBound=r,R(t).addEventListener("resize",n.updateBound,{passive:!0});var o=i(t);return W(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}var B="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,z=B&&!(!window.MSInputMethodContext||!document.documentMode),V=B&&/MSIE 10/.test(navigator.userAgent),G=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Z=function(){for(var t=["Edge","Trident","Firefox"],e=0;e<t.length;e+=1)if(B&&navigator.userAgent.indexOf(t[e])>=0)return 1;return 0}(),Q=B&&window.Promise,K=Q?k:C,J={computeAutoPlacement:D,debounce:K,findIndex:S,getBordersSize:h,getBoundaries:_,getBoundingClientRect:g,getClientRect:m,getOffsetParent:a,getOffsetRect:$,getOffsetRectRelativeToArbitraryNode:v,getOuterSizes:E,getParentNode:n,getPopperOffsets:M,getReferenceOffsets:A,getScroll:c,getScrollParent:i,getStyleComputedProperty:e,getSupportedPropertyName:j,getWindowSizes:p,isFixed:b,isFunction:N,isModifierEnabled:I,isModifierRequired:P,isNumeric:L,removeEventListeners:H,runModifiers:Y,setAttributes:F,setStyles:U,setupEventListeners:q};t.computeAutoPlacement=D,t.debounce=K,t.findIndex=S,t.getBordersSize=h,t.getBoundaries=_,t.getBoundingClientRect=g,t.getClientRect=m,t.getOffsetParent=a,t.getOffsetRect=$,t.getOffsetRectRelativeToArbitraryNode=v,t.getOuterSizes=E,t.getParentNode=n,t.getPopperOffsets=M,t.getReferenceOffsets=A,t.getScroll=c,t.getScrollParent=i,t.getStyleComputedProperty=e,t.getSupportedPropertyName=j,t.getWindowSizes=p,t.isFixed=b,t.isFunction=N,t.isModifierEnabled=I,t.isModifierRequired=P,t.isNumeric=L,t.removeEventListeners=H,t.runModifiers=Y,t.setAttributes=F,t.setStyles=U,t.setupEventListeners=q,t.default=J,Object.defineProperty(t,"__esModule",{value:!0})}),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&module.exports?module.exports=function(e,n){return void 0===n&&(n="undefined"!=typeof window?require("jquery"):require("jquery")(e)),t(n),n}:t(jQuery)}(function(t){var e=function(){if(t&&t.fn&&t.fn.select2&&t.fn.select2.amd)var e=t.fn.select2.amd;var e;return function(){if(!e||!e.requirejs){e?n=e:e={};var t,n,i;!function(e){function r(t,e){return _.call(t,e)}function o(t,e){var n,i,r,o,a,s,l,u,c,d,h,f,p=e&&e.split("/"),m=b.map,g=m&&m["*"]||{};if(t){for(t=t.split("/"),a=t.length-1,b.nodeIdCompat&&D.test(t[a])&&(t[a]=t[a].replace(D,"")),"."===t[0].charAt(0)&&p&&(f=p.slice(0,p.length-1),t=f.concat(t)),c=0;c<t.length;c++)if("."===(h=t[c]))t.splice(c,1),c-=1;else if(".."===h){if(0===c||1===c&&".."===t[2]||".."===t[c-1])continue;c>0&&(t.splice(c-1,2),c-=2)}t=t.join("/")}if((p||g)&&m){for(n=t.split("/"),c=n.length;c>0;c-=1){if(i=n.slice(0,c).join("/"),p)for(d=p.length;d>0;d-=1)if((r=m[p.slice(0,d).join("/")])&&(r=r[i])){o=r,s=c;break}if(o)break;!l&&g&&g[i]&&(l=g[i],u=c)}!o&&l&&(o=l,s=u),o&&(n.splice(0,s,o),t=n.join("/"))}return t}function a(t,n){return function(){var i=x.call(arguments,0);return"string"!=typeof i[0]&&1===i.length&&i.push(null),p.apply(e,i.concat([t,n]))}}function s(t){return function(e){return o(e,t)}}function l(t){return function(e){v[t]=e}}function u(t){if(r(y,t)){var n=y[t];delete y[t],w[t]=!0,f.apply(e,n)}if(!r(v,t)&&!r(w,t))throw new Error("No "+t);return v[t]}function c(t){var e,n=t?t.indexOf("!"):-1;return n>-1&&(e=t.substring(0,n),t=t.substring(n+1,t.length)),[e,t]}function d(t){return t?c(t):[]}function h(t){return function(){return b&&b.config&&b.config[t]||{}}}var f,p,m,g,v={},y={},b={},w={},_=Object.prototype.hasOwnProperty,x=[].slice,D=/\.js$/;m=function(t,e){var n,i=c(t),r=i[0],a=e[1];return t=i[1],r&&(r=o(r,a),n=u(r)),r?t=n&&n.normalize?n.normalize(t,s(a)):o(t,a):(t=o(t,a),i=c(t),r=i[0],t=i[1],r&&(n=u(r))),{f:r?r+"!"+t:t,n:t,pr:r,p:n}},g={require:function(t){return a(t)},exports:function(t){var e=v[t];return void 0!==e?e:v[t]={}},module:function(t){return{id:t,uri:"",exports:v[t],config:h(t)}}},f=function(t,n,i,o){var s,c,h,f,p,b,_,x=[],D=typeof i;if(o=o||t,b=d(o),"undefined"===D||"function"===D){for(n=!n.length&&i.length?["require","exports","module"]:n,p=0;p<n.length;p+=1)if(f=m(n[p],b),"require"===(c=f.f))x[p]=g.require(t);else if("exports"===c)x[p]=g.exports(t),_=!0;else if("module"===c)s=x[p]=g.module(t);else if(r(v,c)||r(y,c)||r(w,c))x[p]=u(c);else{if(!f.p)throw new Error(t+" missing "+c);f.p.load(f.n,a(o,!0),l(c),{}),x[p]=v[c]}h=i?i.apply(v[t],x):void 0,t&&(s&&s.exports!==e&&s.exports!==v[t]?v[t]=s.exports:h===e&&_||(v[t]=h))}else t&&(v[t]=i)},t=n=p=function(t,n,i,r,o){if("string"==typeof t)return g[t]?g[t](n):u(m(t,d(n)).f);if(!t.splice){if(b=t,b.deps&&p(b.deps,b.callback),!n)return;n.splice?(t=n,n=i,i=null):t=e}return n=n||function(){},"function"==typeof i&&(i=r,r=o),r?f(e,t,n,i):setTimeout(function(){f(e,t,n,i)},4),p},p.config=function(t){return p(t)},t._defined=v,i=function(t,e,n){if("string"!=typeof t)throw new Error("See almond README: incorrect module build, no module name");e.splice||(n=e,e=[]),r(v,t)||r(y,t)||(y[t]=[t,e,n])},i.amd={jQuery:!0}}(),e.requirejs=t,e.require=n,e.define=i}}(),e.define("almond",function(){}),e.define("jquery",[],function(){var e=t||$;return null==e&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),e}),e.define("select2/utils",["jquery"],function(t){function e(t){var e=t.prototype,n=[];for(var i in e){"function"==typeof e[i]&&("constructor"!==i&&n.push(i))}return n}var n={};n.Extend=function(t,e){function n(){this.constructor=t}var i={}.hasOwnProperty;for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},n.Decorate=function(t,n){function i(){var e=Array.prototype.unshift,i=n.prototype.constructor.length,r=t.prototype.constructor;i>0&&(e.call(arguments,t.prototype.constructor),r=n.prototype.constructor),r.apply(this,arguments)}function r(){this.constructor=i}var o=e(n),a=e(t);n.displayName=t.displayName,i.prototype=new r;for(var s=0;s<a.length;s++){var l=a[s];i.prototype[l]=t.prototype[l]}for(var u=0;u<o.length;u++){var c=o[u];i.prototype[c]=function(t){var e=function(){};t in i.prototype&&(e=i.prototype[t]);var r=n.prototype[t];return function(){return Array.prototype.unshift.call(arguments,e),r.apply(this,arguments)}}(c)}return i};var i=function(){this.listeners={}};i.prototype.on=function(t,e){this.listeners=this.listeners||{},t in this.listeners?this.listeners[t].push(e):this.listeners[t]=[e]},i.prototype.trigger=function(t){var e=Array.prototype.slice,n=e.call(arguments,1);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),n[0]._type=t,t in this.listeners&&this.invoke(this.listeners[t],e.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},i.prototype.invoke=function(t,e){for(var n=0,i=t.length;n<i;n++)t[n].apply(this,e)},n.Observable=i,n.generateChars=function(t){for(var e="",n=0;n<t;n++){e+=Math.floor(36*Math.random()).toString(36)}return e},n.bind=function(t,e){return function(){t.apply(e,arguments)}},n._convertData=function(t){for(var e in t){var n=e.split("-"),i=t;if(1!==n.length){for(var r=0;r<n.length;r++){var o=n[r];o=o.substring(0,1).toLowerCase()+o.substring(1),o in i||(i[o]={}),r==n.length-1&&(i[o]=t[e]),i=i[o]}delete t[e]}}return t},n.hasScroll=function(e,n){var i=t(n),r=n.style.overflowX,o=n.style.overflowY;return(r!==o||"hidden"!==o&&"visible"!==o)&&("scroll"===r||"scroll"===o||(i.innerHeight()<n.scrollHeight||i.innerWidth()<n.scrollWidth))},n.escapeMarkup=function(t){var e={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof t?t:String(t).replace(/[&<>"'\/\\]/g,function(t){return e[t]})},n.appendMany=function(e,n){if("1.7"===t.fn.jquery.substr(0,3)){var i=t();t.map(n,function(t){i=i.add(t)}),n=i}e.append(n)},n.__cache={};var r=0;return n.GetUniqueElementId=function(t){var e=t.getAttribute("data-select2-id");return null==e&&(t.id?(e=t.id,t.setAttribute("data-select2-id",e)):(t.setAttribute("data-select2-id",++r),e=r.toString())),e},n.StoreData=function(t,e,i){var r=n.GetUniqueElementId(t);n.__cache[r]||(n.__cache[r]={}),n.__cache[r][e]=i},n.GetData=function(e,i){var r=n.GetUniqueElementId(e);return i?n.__cache[r]&&null!=n.__cache[r][i]?n.__cache[r][i]:t(e).data(i):n.__cache[r]},n.RemoveData=function(t){var e=n.GetUniqueElementId(t);null!=n.__cache[e]&&delete n.__cache[e],t.removeAttribute("data-select2-id")},n}),e.define("select2/results",["jquery","./utils"],function(t,e){function n(t,e,i){this.$element=t,this.data=i,this.options=e,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e,e},n.prototype.clear=function(){this.$results.empty()},n.prototype.displayMessage=function(e){var n=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var i=t('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),r=this.options.get("translations").get(e.message);i.append(n(r(e.args))),i[0].className+=" select2-results__message",this.$results.append(i)},n.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},n.prototype.append=function(t){this.hideLoading();var e=[];if(null==t.results||0===t.results.length)return void(0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"}));t.results=this.sort(t.results);for(var n=0;n<t.results.length;n++){var i=t.results[n],r=this.option(i);e.push(r)}this.$results.append(e)},n.prototype.position=function(t,e){e.find(".select2-results").append(t)},n.prototype.sort=function(t){return this.options.get("sorter")(t)},n.prototype.highlightFirstItem=function(){var t=this.$results.find(".select2-results__option[aria-selected]"),e=t.filter("[aria-selected=true]");e.length>0?e.first().trigger("mouseenter"):t.first().trigger("mouseenter"),this.ensureHighlightVisible()},n.prototype.setClasses=function(){var n=this;this.data.current(function(i){var r=t.map(i,function(t){return t.id.toString()});n.$results.find(".select2-results__option[aria-selected]").each(function(){var n=t(this),i=e.GetData(this,"data"),o=""+i.id;null!=i.element&&i.element.selected||null==i.element&&t.inArray(o,r)>-1?n.attr("aria-selected","true"):n.attr("aria-selected","false")})})},n.prototype.showLoading=function(t){this.hideLoading();var e=this.options.get("translations").get("searching"),n={disabled:!0,loading:!0,text:e(t)},i=this.option(n);i.className+=" loading-results",this.$results.prepend(i)},n.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},n.prototype.option=function(n){var i=document.createElement("li");i.className="select2-results__option";var r={role:"option","aria-selected":"false"},o=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;(null!=n.element&&o.call(n.element,":disabled")||null==n.element&&n.disabled)&&(delete r["aria-selected"],r["aria-disabled"]="true"),null==n.id&&delete r["aria-selected"],null!=n._resultId&&(i.id=n._resultId),n.title&&(i.title=n.title),n.children&&(r.role="group",r["aria-label"]=n.text,delete r["aria-selected"]);for(var a in r){var s=r[a];i.setAttribute(a,s)}if(n.children){var l=t(i),u=document.createElement("strong");u.className="select2-results__group";t(u);this.template(n,u);for(var c=[],d=0;d<n.children.length;d++){var h=n.children[d],f=this.option(h);c.push(f)}var p=t("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});p.append(c),l.append(u),l.append(p)}else this.template(n,i);return e.StoreData(i,"data",n),i},n.prototype.bind=function(n,i){var r=this,o=n.id+"-results";this.$results.attr("id",o),n.on("results:all",function(t){r.clear(),r.append(t.data),n.isOpen()&&(r.setClasses(),r.highlightFirstItem())}),n.on("results:append",function(t){r.append(t.data),n.isOpen()&&r.setClasses()}),n.on("query",function(t){r.hideMessages(),r.showLoading(t)}),n.on("select",function(){n.isOpen()&&(r.setClasses(),r.options.get("scrollAfterSelect")&&r.highlightFirstItem())}),n.on("unselect",function(){n.isOpen()&&(r.setClasses(),r.options.get("scrollAfterSelect")&&r.highlightFirstItem())}),n.on("open",function(){r.$results.attr("aria-expanded","true"),r.$results.attr("aria-hidden","false"),r.setClasses(),r.ensureHighlightVisible()}),n.on("close",function(){r.$results.attr("aria-expanded","false"),r.$results.attr("aria-hidden","true"),r.$results.removeAttr("aria-activedescendant")}),n.on("results:toggle",function(){var t=r.getHighlightedResults();0!==t.length&&t.trigger("mouseup")}),n.on("results:select",function(){var t=r.getHighlightedResults();if(0!==t.length){var n=e.GetData(t[0],"data");"true"==t.attr("aria-selected")?r.trigger("close",{}):r.trigger("select",{data:n})}}),n.on("results:previous",function(){var t=r.getHighlightedResults(),e=r.$results.find("[aria-selected]"),n=e.index(t);if(!(n<=0)){var i=n-1;0===t.length&&(i=0);var o=e.eq(i);o.trigger("mouseenter");var a=r.$results.offset().top,s=o.offset().top,l=r.$results.scrollTop()+(s-a);0===i?r.$results.scrollTop(0):s-a<0&&r.$results.scrollTop(l)}}),n.on("results:next",function(){var t=r.getHighlightedResults(),e=r.$results.find("[aria-selected]"),n=e.index(t),i=n+1;if(!(i>=e.length)){var o=e.eq(i);o.trigger("mouseenter");var a=r.$results.offset().top+r.$results.outerHeight(!1),s=o.offset().top+o.outerHeight(!1),l=r.$results.scrollTop()+s-a;0===i?r.$results.scrollTop(0):s>a&&r.$results.scrollTop(l)}}),n.on("results:focus",function(t){t.element.addClass("select2-results__option--highlighted")}),n.on("results:message",function(t){r.displayMessage(t)}),t.fn.mousewheel&&this.$results.on("mousewheel",function(t){var e=r.$results.scrollTop(),n=r.$results.get(0).scrollHeight-e+t.deltaY,i=t.deltaY>0&&e-t.deltaY<=0,o=t.deltaY<0&&n<=r.$results.height();i?(r.$results.scrollTop(0),t.preventDefault(),t.stopPropagation()):o&&(r.$results.scrollTop(r.$results.get(0).scrollHeight-r.$results.height()),t.preventDefault(),t.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(n){var i=t(this),o=e.GetData(this,"data");if("true"===i.attr("aria-selected"))return void(r.options.get("multiple")?r.trigger("unselect",{originalEvent:n,data:o}):r.trigger("close",{}));r.trigger("select",{originalEvent:n,data:o})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(n){var i=e.GetData(this,"data");r.getHighlightedResults().removeClass("select2-results__option--highlighted"),r.trigger("results:focus",{data:i,element:t(this)})})},n.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},n.prototype.destroy=function(){this.$results.remove()},n.prototype.ensureHighlightVisible=function(){var t=this.getHighlightedResults();if(0!==t.length){var e=this.$results.find("[aria-selected]"),n=e.index(t),i=this.$results.offset().top,r=t.offset().top,o=this.$results.scrollTop()+(r-i),a=r-i;o-=2*t.outerHeight(!1),n<=2?this.$results.scrollTop(0):(a>this.$results.outerHeight()||a<0)&&this.$results.scrollTop(o)}},n.prototype.template=function(e,n){var i=this.options.get("templateResult"),r=this.options.get("escapeMarkup"),o=i(e,n);null==o?n.style.display="none":"string"==typeof o?n.innerHTML=r(o):t(n).append(o)},n}),e.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),e.define("select2/selection/base",["jquery","../utils","../keys"],function(t,e,n){function i(t,e){this.$element=t,this.options=e,i.__super__.constructor.call(this)}return e.Extend(i,e.Observable),i.prototype.render=function(){var n=t('<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=e.GetData(this.$element[0],"old-tabindex")?this._tabindex=e.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),n.attr("title",this.$element.attr("title")),n.attr("tabindex",this._tabindex),n.attr("aria-disabled","false"),this.$selection=n,n},i.prototype.bind=function(t,e){var i=this,r=t.id+"-results";this.container=t,this.$selection.on("focus",function(t){i.trigger("focus",t)}),this.$selection.on("blur",function(t){i._handleBlur(t)}),this.$selection.on("keydown",function(t){i.trigger("keypress",t),t.which===n.SPACE&&t.preventDefault()}),t.on("results:focus",function(t){i.$selection.attr("aria-activedescendant",t.data._resultId)}),t.on("selection:update",function(t){i.update(t.data)}),t.on("open",function(){i.$selection.attr("aria-expanded","true"),i.$selection.attr("aria-owns",r),i._attachCloseHandler(t)}),t.on("close",function(){i.$selection.attr("aria-expanded","false"),i.$selection.removeAttr("aria-activedescendant"),i.$selection.removeAttr("aria-owns"),i.$selection.trigger("focus"),i._detachCloseHandler(t)}),t.on("enable",function(){i.$selection.attr("tabindex",i._tabindex),i.$selection.attr("aria-disabled","false")}),t.on("disable",function(){i.$selection.attr("tabindex","-1"),i.$selection.attr("aria-disabled","true")})},i.prototype._handleBlur=function(e){var n=this;window.setTimeout(function(){document.activeElement==n.$selection[0]||t.contains(n.$selection[0],document.activeElement)||n.trigger("blur",e)},1)},i.prototype._attachCloseHandler=function(n){t(document.body).on("mousedown.select2."+n.id,function(n){var i=t(n.target),r=i.closest(".select2");t(".select2.select2-container--open").each(function(){this!=r[0]&&e.GetData(this,"element").select2("close")})})},i.prototype._detachCloseHandler=function(e){t(document.body).off("mousedown.select2."+e.id)},i.prototype.position=function(t,e){e.find(".selection").append(t)},i.prototype.destroy=function(){this._detachCloseHandler(this.container)},i.prototype.update=function(t){throw new Error("The `update` method must be defined in child classes.")},i}),e.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(t,e,n,i){function r(){r.__super__.constructor.apply(this,arguments)}return n.Extend(r,e),r.prototype.render=function(){var t=r.__super__.render.call(this);return t.addClass("select2-selection--single"),t.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),t},r.prototype.bind=function(t,e){var n=this;r.__super__.bind.apply(this,arguments);var i=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",i).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",i),this.$selection.on("mousedown",function(t){1===t.which&&n.trigger("toggle",{originalEvent:t})}),this.$selection.on("focus",function(t){}),this.$selection.on("blur",function(t){}),t.on("focus",function(e){t.isOpen()||n.$selection.trigger("focus")})},r.prototype.clear=function(){var t=this.$selection.find(".select2-selection__rendered");t.empty(),t.removeAttr("title")},r.prototype.display=function(t,e){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(t,e))},r.prototype.selectionContainer=function(){return t("<span></span>")},r.prototype.update=function(t){if(0===t.length)return void this.clear();var e=t[0],n=this.$selection.find(".select2-selection__rendered"),i=this.display(e,n);n.empty().append(i);var r=e.title||e.text;r?n.attr("title",r):n.removeAttr("title")},r}),e.define("select2/selection/multiple",["jquery","./base","../utils"],function(t,e,n){function i(t,e){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,e),i.prototype.render=function(){var t=i.__super__.render.call(this);return t.addClass("select2-selection--multiple"),t.html('<ul class="select2-selection__rendered"></ul>'),t},i.prototype.bind=function(e,r){var o=this;i.__super__.bind.apply(this,arguments),this.$selection.on("click",function(t){o.trigger("toggle",{originalEvent:t})}),this.$selection.on("click",".select2-selection__choice__remove",function(e){if(!o.options.get("disabled")){var i=t(this),r=i.parent(),a=n.GetData(r[0],"data");o.trigger("unselect",{originalEvent:e,data:a})}})},i.prototype.clear=function(){var t=this.$selection.find(".select2-selection__rendered");t.empty(),t.removeAttr("title")},i.prototype.display=function(t,e){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(t,e))},i.prototype.selectionContainer=function(){return t('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">&times;</span></li>')},i.prototype.update=function(t){if(this.clear(),0!==t.length){for(var e=[],i=0;i<t.length;i++){var r=t[i],o=this.selectionContainer(),a=this.display(r,o);o.append(a);var s=r.title||r.text;s&&o.attr("title",s),n.StoreData(o[0],"data",r),e.push(o)}var l=this.$selection.find(".select2-selection__rendered");n.appendMany(l,e)}},i}),e.define("select2/selection/placeholder",["../utils"],function(t){function e(t,e,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),t.call(this,e,n)}return e.prototype.normalizePlaceholder=function(t,e){return"string"==typeof e&&(e={id:"",text:e}),e},e.prototype.createPlaceholder=function(t,e){var n=this.selectionContainer();return n.html(this.display(e)),n.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),n},e.prototype.update=function(t,e){var n=1==e.length&&e[0].id!=this.placeholder.id;if(e.length>1||n)return t.call(this,e);this.clear();var i=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(i)},e}),e.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(t,e,n){function i(){}return i.prototype.bind=function(t,e,n){var i=this;t.call(this,e,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(t){i._handleClear(t)}),e.on("keypress",function(t){i._handleKeyboardClear(t,e)})},i.prototype._handleClear=function(t,e){if(!this.options.get("disabled")){var i=this.$selection.find(".select2-selection__clear");if(0!==i.length){e.stopPropagation();var r=n.GetData(i[0],"data"),o=this.$element.val();this.$element.val(this.placeholder.id);var a={data:r};if(this.trigger("clear",a),a.prevented)return void this.$element.val(o);for(var s=0;s<r.length;s++)if(a={data:r[s]},this.trigger("unselect",a),a.prevented)return void this.$element.val(o);this.$element.trigger("change"),this.trigger("toggle",{})}}},i.prototype._handleKeyboardClear=function(t,n,i){i.isOpen()||n.which!=e.DELETE&&n.which!=e.BACKSPACE||this._handleClear(n)},i.prototype.update=function(e,i){if(e.call(this,i),!(this.$selection.find(".select2-selection__placeholder").length>0||0===i.length)){var r=this.options.get("translations").get("removeAllItems"),o=t('<span class="select2-selection__clear" title="'+r()+'">&times;</span>');n.StoreData(o[0],"data",i),this.$selection.find(".select2-selection__rendered").prepend(o)}},i}),e.define("select2/selection/search",["jquery","../utils","../keys"],function(t,e,n){function i(t,e,n){t.call(this,e,n)}return i.prototype.render=function(e){var n=t('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></li>');this.$searchContainer=n,this.$search=n.find("input");var i=e.call(this);return this._transferTabIndex(),i},i.prototype.bind=function(t,i,r){var o=this,a=i.id+"-results";t.call(this,i,r),i.on("open",function(){o.$search.attr("aria-controls",a),o.$search.trigger("focus")}),i.on("close",function(){o.$search.val(""),o.$search.removeAttr("aria-controls"),o.$search.removeAttr("aria-activedescendant"),o.$search.trigger("focus")}),i.on("enable",function(){o.$search.prop("disabled",!1),o._transferTabIndex()}),i.on("disable",function(){o.$search.prop("disabled",!0)}),i.on("focus",function(t){o.$search.trigger("focus")}),i.on("results:focus",function(t){t.data._resultId?o.$search.attr("aria-activedescendant",t.data._resultId):o.$search.removeAttr("aria-activedescendant")}),this.$selection.on("focusin",".select2-search--inline",function(t){o.trigger("focus",t)}),this.$selection.on("focusout",".select2-search--inline",function(t){o._handleBlur(t)}),this.$selection.on("keydown",".select2-search--inline",function(t){if(t.stopPropagation(),o.trigger("keypress",t),o._keyUpPrevented=t.isDefaultPrevented(),t.which===n.BACKSPACE&&""===o.$search.val()){var i=o.$searchContainer.prev(".select2-selection__choice");if(i.length>0){var r=e.GetData(i[0],"data");o.searchRemoveChoice(r),t.preventDefault()}}}),this.$selection.on("click",".select2-search--inline",function(t){o.$search.val()&&t.stopPropagation()});var s=document.documentMode,l=s&&s<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(t){if(l)return void o.$selection.off("input.search input.searchcheck");o.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(t){if(l&&"input"===t.type)return void o.$selection.off("input.search input.searchcheck");var e=t.which;e!=n.SHIFT&&e!=n.CTRL&&e!=n.ALT&&e!=n.TAB&&o.handleSearch(t)})},i.prototype._transferTabIndex=function(t){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},i.prototype.createPlaceholder=function(t,e){this.$search.attr("placeholder",e.text)},i.prototype.update=function(t,e){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),t.call(this,e),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n&&this.$search.trigger("focus")},i.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},i.prototype.searchRemoveChoice=function(t,e){this.trigger("unselect",{data:e}),this.$search.val(e.text),this.handleSearch()},i.prototype.resizeSearch=function(){this.$search.css("width","25px");var t="";if(""!==this.$search.attr("placeholder"))t=this.$selection.find(".select2-selection__rendered").width();else{t=.75*(this.$search.val().length+1)+"em"}this.$search.css("width",t)},i}),e.define("select2/selection/eventRelay",["jquery"],function(t){function e(){}return e.prototype.bind=function(e,n,i){var r=this,o=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],a=["opening","closing","selecting","unselecting","clearing"];e.call(this,n,i),n.on("*",function(e,n){if(-1!==t.inArray(e,o)){n=n||{};var i=t.Event("select2:"+e,{params:n});r.$element.trigger(i),-1!==t.inArray(e,a)&&(n.prevented=i.isDefaultPrevented())}})},e}),e.define("select2/translation",["jquery","require"],function(t,e){function n(t){this.dict=t||{}}return n.prototype.all=function(){return this.dict},n.prototype.get=function(t){return this.dict[t]},n.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},n._cache={},n.loadPath=function(t){if(!(t in n._cache)){var i=e(t);n._cache[t]=i}return new n(n._cache[t])},n}),e.define("select2/diacritics",[],function(){return{"Ⓐ":"A","":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Œ":"OE","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","":"b",
"ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","œ":"oe","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","":"x","ẋ":"x","ẍ":"x","ⓨ":"y","":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ώ":"ω","ς":"σ","":"'"}}),e.define("select2/data/base",["../utils"],function(t){function e(t,n){e.__super__.constructor.call(this)}return t.Extend(e,t.Observable),e.prototype.current=function(t){throw new Error("The `current` method must be defined in child classes.")},e.prototype.query=function(t,e){throw new Error("The `query` method must be defined in child classes.")},e.prototype.bind=function(t,e){},e.prototype.destroy=function(){},e.prototype.generateResultId=function(e,n){var i=e.id+"-result-";return i+=t.generateChars(4),null!=n.id?i+="-"+n.id.toString():i+="-"+t.generateChars(4),i},e}),e.define("select2/data/select",["./base","../utils","jquery"],function(t,e,n){function i(t,e){this.$element=t,this.options=e,i.__super__.constructor.call(this)}return e.Extend(i,t),i.prototype.current=function(t){var e=[],i=this;this.$element.find(":selected").each(function(){var t=n(this),r=i.item(t);e.push(r)}),t(e)},i.prototype.select=function(t){var e=this;if(t.selected=!0,n(t.element).is("option"))return t.element.selected=!0,void this.$element.trigger("change");if(this.$element.prop("multiple"))this.current(function(i){var r=[];t=[t],t.push.apply(t,i);for(var o=0;o<t.length;o++){var a=t[o].id;-1===n.inArray(a,r)&&r.push(a)}e.$element.val(r),e.$element.trigger("change")});else{var i=t.id;this.$element.val(i),this.$element.trigger("change")}},i.prototype.unselect=function(t){var e=this;if(this.$element.prop("multiple")){if(t.selected=!1,n(t.element).is("option"))return t.element.selected=!1,void this.$element.trigger("change");this.current(function(i){for(var r=[],o=0;o<i.length;o++){var a=i[o].id;a!==t.id&&-1===n.inArray(a,r)&&r.push(a)}e.$element.val(r),e.$element.trigger("change")})}},i.prototype.bind=function(t,e){var n=this;this.container=t,t.on("select",function(t){n.select(t.data)}),t.on("unselect",function(t){n.unselect(t.data)})},i.prototype.destroy=function(){this.$element.find("*").each(function(){e.RemoveData(this)})},i.prototype.query=function(t,e){var i=[],r=this;this.$element.children().each(function(){var e=n(this);if(e.is("option")||e.is("optgroup")){var o=r.item(e),a=r.matches(t,o);null!==a&&i.push(a)}}),e({results:i})},i.prototype.addOptions=function(t){e.appendMany(this.$element,t)},i.prototype.option=function(t){var i;t.children?(i=document.createElement("optgroup"),i.label=t.text):(i=document.createElement("option"),void 0!==i.textContent?i.textContent=t.text:i.innerText=t.text),void 0!==t.id&&(i.value=t.id),t.disabled&&(i.disabled=!0),t.selected&&(i.selected=!0),t.title&&(i.title=t.title);var r=n(i),o=this._normalizeItem(t);return o.element=i,e.StoreData(i,"data",o),r},i.prototype.item=function(t){var i={};if(null!=(i=e.GetData(t[0],"data")))return i;if(t.is("option"))i={id:t.val(),text:t.text(),disabled:t.prop("disabled"),selected:t.prop("selected"),title:t.prop("title")};else if(t.is("optgroup")){i={text:t.prop("label"),children:[],title:t.prop("title")};for(var r=t.children("option"),o=[],a=0;a<r.length;a++){var s=n(r[a]),l=this.item(s);o.push(l)}i.children=o}return i=this._normalizeItem(i),i.element=t[0],e.StoreData(t[0],"data",i),i},i.prototype._normalizeItem=function(t){t!==Object(t)&&(t={id:t,text:t}),t=n.extend({},{text:""},t);var e={selected:!1,disabled:!1};return null!=t.id&&(t.id=t.id.toString()),null!=t.text&&(t.text=t.text.toString()),null==t._resultId&&t.id&&null!=this.container&&(t._resultId=this.generateResultId(this.container,t)),n.extend({},e,t)},i.prototype.matches=function(t,e){return this.options.get("matcher")(t,e)},i}),e.define("select2/data/array",["./select","../utils","jquery"],function(t,e,n){function i(t,e){this._dataToConvert=e.get("data")||[],i.__super__.constructor.call(this,t,e)}return e.Extend(i,t),i.prototype.bind=function(t,e){i.__super__.bind.call(this,t,e),this.addOptions(this.convertToOptions(this._dataToConvert))},i.prototype.select=function(t){var e=this.$element.find("option").filter(function(e,n){return n.value==t.id.toString()});0===e.length&&(e=this.option(t),this.addOptions(e)),i.__super__.select.call(this,t)},i.prototype.convertToOptions=function(t){for(var i=this,r=this.$element.find("option"),o=r.map(function(){return i.item(n(this)).id}).get(),a=[],s=0;s<t.length;s++){var l=this._normalizeItem(t[s]);if(n.inArray(l.id,o)>=0){var u=r.filter(function(t){return function(){return n(this).val()==t.id}}(l)),c=this.item(u),d=n.extend(!0,{},l,c),h=this.option(d);u.replaceWith(h)}else{var f=this.option(l);if(l.children){var p=this.convertToOptions(l.children);e.appendMany(f,p)}a.push(f)}}return a},i}),e.define("select2/data/ajax",["./array","../utils","jquery"],function(t,e,n){function i(t,e){this.ajaxOptions=this._applyDefaults(e.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),i.__super__.constructor.call(this,t,e)}return e.Extend(i,t),i.prototype._applyDefaults=function(t){var e={data:function(t){return n.extend({},t,{q:t.term})},transport:function(t,e,i){var r=n.ajax(t);return r.then(e),r.fail(i),r}};return n.extend({},e,t,!0)},i.prototype.processResults=function(t){return t},i.prototype.query=function(t,e){function i(){var i=o.transport(o,function(i){var o=r.processResults(i,t);r.options.get("debug")&&window.console&&console.error&&(o&&o.results&&n.isArray(o.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),e(o)},function(){"status"in i&&(0===i.status||"0"===i.status)||r.trigger("results:message",{message:"errorLoading"})});r._request=i}var r=this;null!=this._request&&(n.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var o=n.extend({type:"GET"},this.ajaxOptions);"function"==typeof o.url&&(o.url=o.url.call(this.$element,t)),"function"==typeof o.data&&(o.data=o.data.call(this.$element,t)),this.ajaxOptions.delay&&null!=t.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(i,this.ajaxOptions.delay)):i()},i}),e.define("select2/data/tags",["jquery"],function(t){function e(e,n,i){var r=i.get("tags"),o=i.get("createTag");void 0!==o&&(this.createTag=o);var a=i.get("insertTag");if(void 0!==a&&(this.insertTag=a),e.call(this,n,i),t.isArray(r))for(var s=0;s<r.length;s++){var l=r[s],u=this._normalizeItem(l),c=this.option(u);this.$element.append(c)}}return e.prototype.query=function(t,e,n){function i(t,o){for(var a=t.results,s=0;s<a.length;s++){var l=a[s],u=null!=l.children&&!i({results:l.children},!0);if((l.text||"").toUpperCase()===(e.term||"").toUpperCase()||u)return!o&&(t.data=a,void n(t))}if(o)return!0;var c=r.createTag(e);if(null!=c){var d=r.option(c);d.attr("data-select2-tag",!0),r.addOptions([d]),r.insertTag(a,c)}t.results=a,n(t)}var r=this;if(this._removeOldTags(),null==e.term||null!=e.page)return void t.call(this,e,n);t.call(this,e,i)},e.prototype.createTag=function(e,n){var i=t.trim(n.term);return""===i?null:{id:i,text:i}},e.prototype.insertTag=function(t,e,n){e.unshift(n)},e.prototype._removeOldTags=function(e){this.$element.find("option[data-select2-tag]").each(function(){this.selected||t(this).remove()})},e}),e.define("select2/data/tokenizer",["jquery"],function(t){function e(t,e,n){var i=n.get("tokenizer");void 0!==i&&(this.tokenizer=i),t.call(this,e,n)}return e.prototype.bind=function(t,e,n){t.call(this,e,n),this.$search=e.dropdown.$search||e.selection.$search||n.find(".select2-search__field")},e.prototype.query=function(e,n,i){function r(e){var n=a._normalizeItem(e);if(!a.$element.find("option").filter(function(){return t(this).val()===n.id}).length){var i=a.option(n);i.attr("data-select2-tag",!0),a._removeOldTags(),a.addOptions([i])}o(n)}function o(t){a.trigger("select",{data:t})}var a=this;n.term=n.term||"";var s=this.tokenizer(n,this.options,r);s.term!==n.term&&(this.$search.length&&(this.$search.val(s.term),this.$search.trigger("focus")),n.term=s.term),e.call(this,n,i)},e.prototype.tokenizer=function(e,n,i,r){for(var o=i.get("tokenSeparators")||[],a=n.term,s=0,l=this.createTag||function(t){return{id:t.term,text:t.term}};s<a.length;){var u=a[s];if(-1!==t.inArray(u,o)){var c=a.substr(0,s),d=t.extend({},n,{term:c}),h=l(d);null!=h?(r(h),a=a.substr(s+1)||"",s=0):s++}else s++}return{term:a}},e}),e.define("select2/data/minimumInputLength",[],function(){function t(t,e,n){this.minimumInputLength=n.get("minimumInputLength"),t.call(this,e,n)}return t.prototype.query=function(t,e,n){if(e.term=e.term||"",e.term.length<this.minimumInputLength)return void this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:e.term,params:e}});t.call(this,e,n)},t}),e.define("select2/data/maximumInputLength",[],function(){function t(t,e,n){this.maximumInputLength=n.get("maximumInputLength"),t.call(this,e,n)}return t.prototype.query=function(t,e,n){if(e.term=e.term||"",this.maximumInputLength>0&&e.term.length>this.maximumInputLength)return void this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:e.term,params:e}});t.call(this,e,n)},t}),e.define("select2/data/maximumSelectionLength",[],function(){function t(t,e,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),t.call(this,e,n)}return t.prototype.bind=function(t,e,n){var i=this;t.call(this,e,n),e.on("select",function(){i._checkIfMaximumSelected()})},t.prototype.query=function(t,e,n){var i=this;this._checkIfMaximumSelected(function(){t.call(i,e,n)})},t.prototype._checkIfMaximumSelected=function(t,e){var n=this;this.current(function(t){var i=null!=t?t.length:0;if(n.maximumSelectionLength>0&&i>=n.maximumSelectionLength)return void n.trigger("results:message",{message:"maximumSelected",args:{maximum:n.maximumSelectionLength}});e&&e()})},t}),e.define("select2/dropdown",["jquery","./utils"],function(t,e){function n(t,e){this.$element=t,this.options=e,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('<span class="select2-dropdown"><span class="select2-results"></span></span>');return e.attr("dir",this.options.get("dir")),this.$dropdown=e,e},n.prototype.bind=function(){},n.prototype.position=function(t,e){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),e.define("select2/dropdown/search",["jquery","../utils"],function(t,e){function n(){}return n.prototype.render=function(e){var n=e.call(this),i=t('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=i,this.$search=i.find("input"),n.prepend(i),n},n.prototype.bind=function(e,n,i){var r=this,o=n.id+"-results";e.call(this,n,i),this.$search.on("keydown",function(t){r.trigger("keypress",t),r._keyUpPrevented=t.isDefaultPrevented()}),this.$search.on("input",function(e){t(this).off("keyup")}),this.$search.on("keyup input",function(t){r.handleSearch(t)}),n.on("open",function(){r.$search.attr("tabindex",0),r.$search.attr("aria-controls",o),r.$search.trigger("focus"),window.setTimeout(function(){r.$search.trigger("focus")},0)}),n.on("close",function(){r.$search.attr("tabindex",-1),r.$search.removeAttr("aria-controls"),r.$search.removeAttr("aria-activedescendant"),r.$search.val(""),r.$search.trigger("blur")}),n.on("focus",function(){n.isOpen()||r.$search.trigger("focus")}),n.on("results:all",function(t){if(null==t.query.term||""===t.query.term){r.showSearch(t)?r.$searchContainer.removeClass("select2-search--hide"):r.$searchContainer.addClass("select2-search--hide")}}),n.on("results:focus",function(t){t.data._resultId?r.$search.attr("aria-activedescendant",t.data._resultId):r.$search.removeAttr("aria-activedescendant")})},n.prototype.handleSearch=function(t){if(!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},n.prototype.showSearch=function(t,e){return!0},n}),e.define("select2/dropdown/hidePlaceholder",[],function(){function t(t,e,n,i){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),t.call(this,e,n,i)}return t.prototype.append=function(t,e){e.results=this.removePlaceholder(e.results),t.call(this,e)},t.prototype.normalizePlaceholder=function(t,e){return"string"==typeof e&&(e={id:"",text:e}),e},t.prototype.removePlaceholder=function(t,e){for(var n=e.slice(0),i=e.length-1;i>=0;i--){var r=e[i];this.placeholder.id===r.id&&n.splice(i,1)}return n},t}),e.define("select2/dropdown/infiniteScroll",["jquery"],function(t){function e(t,e,n,i){this.lastParams={},t.call(this,e,n,i),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(t,e){this.$loadingMore.remove(),this.loading=!1,t.call(this,e),this.showLoadingMore(e)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},e.prototype.bind=function(t,e,n){var i=this;t.call(this,e,n),e.on("query",function(t){i.lastParams=t,i.loading=!0}),e.on("query:append",function(t){i.lastParams=t,i.loading=!0}),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},e.prototype.loadMoreIfNeeded=function(){var e=t.contains(document.documentElement,this.$loadingMore[0]);if(!this.loading&&e){this.$results.offset().top+this.$results.outerHeight(!1)+50>=this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)&&this.loadMore()}},e.prototype.loadMore=function(){this.loading=!0;var e=t.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(t,e){return e.pagination&&e.pagination.more},e.prototype.createLoadingMore=function(){var e=t('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),n=this.options.get("translations").get("loadingMore");return e.html(n(this.lastParams)),e},e}),e.define("select2/dropdown/attachBody",["jquery","../utils"],function(t,e){function n(e,n,i){this.$dropdownParent=t(i.get("dropdownParent")||document.body),e.call(this,n,i)}return n.prototype.bind=function(t,e,n){var i=this;t.call(this,e,n),e.on("open",function(){i._showDropdown(),i._attachPositioningHandler(e),i._bindContainerResultHandlers(e)}),e.on("close",function(){i._hideDropdown(),i._detachPositioningHandler(e)}),this.$dropdownContainer.on("mousedown",function(t){t.stopPropagation()})},n.prototype.destroy=function(t){t.call(this),this.$dropdownContainer.remove()},n.prototype.position=function(t,e,n){e.attr("class",n.attr("class")),e.removeClass("select2"),e.addClass("select2-container--open"),e.css({position:"absolute",top:-999999}),this.$container=n},n.prototype.render=function(e){var n=t("<span></span>"),i=e.call(this);return n.append(i),this.$dropdownContainer=n,n},n.prototype._hideDropdown=function(t){this.$dropdownContainer.detach()},n.prototype._bindContainerResultHandlers=function(t,e){if(!this._containerResultsHandlersBound){var n=this;e.on("results:all",function(){n._positionDropdown(),n._resizeDropdown()}),e.on("results:append",function(){n._positionDropdown(),n._resizeDropdown()}),e.on("results:message",function(){n._positionDropdown(),n._resizeDropdown()}),e.on("select",function(){n._positionDropdown(),n._resizeDropdown()}),e.on("unselect",function(){n._positionDropdown(),n._resizeDropdown()}),this._containerResultsHandlersBound=!0}},n.prototype._attachPositioningHandler=function(n,i){var r=this,o="scroll.select2."+i.id,a="resize.select2."+i.id,s="orientationchange.select2."+i.id,l=this.$container.parents().filter(e.hasScroll);l.each(function(){e.StoreData(this,"select2-scroll-position",{x:t(this).scrollLeft(),y:t(this).scrollTop()})}),l.on(o,function(n){var i=e.GetData(this,"select2-scroll-position");t(this).scrollTop(i.y)}),t(window).on(o+" "+a+" "+s,function(t){r._positionDropdown(),r._resizeDropdown()})},n.prototype._detachPositioningHandler=function(n,i){var r="scroll.select2."+i.id,o="resize.select2."+i.id,a="orientationchange.select2."+i.id;this.$container.parents().filter(e.hasScroll).off(r),t(window).off(r+" "+o+" "+a)},n.prototype._positionDropdown=function(){var e=t(window),n=this.$dropdown.hasClass("select2-dropdown--above"),i=this.$dropdown.hasClass("select2-dropdown--below"),r=null,o=this.$container.offset();o.bottom=o.top+this.$container.outerHeight(!1);var a={height:this.$container.outerHeight(!1)};a.top=o.top,a.bottom=o.top+a.height;var s={height:this.$dropdown.outerHeight(!1)},l={top:e.scrollTop(),bottom:e.scrollTop()+e.height()},u=l.top<o.top-s.height,c=l.bottom>o.bottom+s.height,d={left:o.left,top:a.bottom},h=this.$dropdownParent;"static"===h.css("position")&&(h=h.offsetParent());var f={top:0,left:0};(t.contains(document.body,h[0])||h[0].isConnected)&&(f=h.offset()),d.top-=f.top,d.left-=f.left,n||i||(r="below"),c||!u||n?!u&&c&&n&&(r="below"):r="above",("above"==r||n&&"below"!==r)&&(d.top=a.top-f.top-s.height),null!=r&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+r),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+r)),this.$dropdownContainer.css(d)},n.prototype._resizeDropdown=function(){var t={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(t.minWidth=t.width,t.position="relative",t.width="auto"),this.$dropdown.css(t)},n.prototype._showDropdown=function(t){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},n}),e.define("select2/dropdown/minimumResultsForSearch",[],function(){function t(e){for(var n=0,i=0;i<e.length;i++){var r=e[i];r.children?n+=t(r.children):n++}return n}function e(t,e,n,i){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),t.call(this,e,n,i)}return e.prototype.showSearch=function(e,n){return!(t(n.data.results)<this.minimumResultsForSearch)&&e.call(this,n)},e}),e.define("select2/dropdown/selectOnClose",["../utils"],function(t){function e(){}return e.prototype.bind=function(t,e,n){var i=this;t.call(this,e,n),e.on("close",function(t){i._handleSelectOnClose(t)})},e.prototype._handleSelectOnClose=function(e,n){if(n&&null!=n.originalSelect2Event){var i=n.originalSelect2Event;if("select"===i._type||"unselect"===i._type)return}var r=this.getHighlightedResults();if(!(r.length<1)){var o=t.GetData(r[0],"data");null!=o.element&&o.element.selected||null==o.element&&o.selected||this.trigger("select",{data:o})}},e}),e.define("select2/dropdown/closeOnSelect",[],function(){function t(){}return t.prototype.bind=function(t,e,n){var i=this;t.call(this,e,n),e.on("select",function(t){i._selectTriggered(t)}),e.on("unselect",function(t){i._selectTriggered(t)})},t.prototype._selectTriggered=function(t,e){var n=e.originalEvent;n&&(n.ctrlKey||n.metaKey)||this.trigger("close",{originalEvent:n,originalSelect2Event:e})},t}),e.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(t){var e=t.input.length-t.maximum,n="Please delete "+e+" character";return 1!=e&&(n+="s"),n},inputTooShort:function(t){return"Please enter "+(t.minimum-t.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(t){var e="You can only select "+t.maximum+" item";return 1!=t.maximum&&(e+="s"),e},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"}}}),e.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(t,e,n,i,r,o,a,s,l,u,c,d,h,f,p,m,g,v,y,b,w,_,x,D,k,C,T,S,$){function E(){this.reset()}return E.prototype.apply=function(c){if(c=t.extend(!0,{},this.defaults,c),null==c.dataAdapter){if(null!=c.ajax?c.dataAdapter=p:null!=c.data?c.dataAdapter=f:c.dataAdapter=h,c.minimumInputLength>0&&(c.dataAdapter=u.Decorate(c.dataAdapter,v)),c.maximumInputLength>0&&(c.dataAdapter=u.Decorate(c.dataAdapter,y)),c.maximumSelectionLength>0&&(c.dataAdapter=u.Decorate(c.dataAdapter,b)),c.tags&&(c.dataAdapter=u.Decorate(c.dataAdapter,m)),null==c.tokenSeparators&&null==c.tokenizer||(c.dataAdapter=u.Decorate(c.dataAdapter,g)),null!=c.query){var d=e(c.amdBase+"compat/query");c.dataAdapter=u.Decorate(c.dataAdapter,d)}if(null!=c.initSelection){var $=e(c.amdBase+"compat/initSelection");c.dataAdapter=u.Decorate(c.dataAdapter,$)}}if(null==c.resultsAdapter&&(c.resultsAdapter=n,null!=c.ajax&&(c.resultsAdapter=u.Decorate(c.resultsAdapter,D)),null!=c.placeholder&&(c.resultsAdapter=u.Decorate(c.resultsAdapter,x)),c.selectOnClose&&(c.resultsAdapter=u.Decorate(c.resultsAdapter,T))),null==c.dropdownAdapter){if(c.multiple)c.dropdownAdapter=w;else{var E=u.Decorate(w,_);c.dropdownAdapter=E}if(0!==c.minimumResultsForSearch&&(c.dropdownAdapter=u.Decorate(c.dropdownAdapter,C)),c.closeOnSelect&&(c.dropdownAdapter=u.Decorate(c.dropdownAdapter,S)),null!=c.dropdownCssClass||null!=c.dropdownCss||null!=c.adaptDropdownCssClass){var O=e(c.amdBase+"compat/dropdownCss");c.dropdownAdapter=u.Decorate(c.dropdownAdapter,O)}c.dropdownAdapter=u.Decorate(c.dropdownAdapter,k)}if(null==c.selectionAdapter){if(c.multiple?c.selectionAdapter=r:c.selectionAdapter=i,null!=c.placeholder&&(c.selectionAdapter=u.Decorate(c.selectionAdapter,o)),c.allowClear&&(c.selectionAdapter=u.Decorate(c.selectionAdapter,a)),c.multiple&&(c.selectionAdapter=u.Decorate(c.selectionAdapter,s)),null!=c.containerCssClass||null!=c.containerCss||null!=c.adaptContainerCssClass){var M=e(c.amdBase+"compat/containerCss");c.selectionAdapter=u.Decorate(c.selectionAdapter,M)}c.selectionAdapter=u.Decorate(c.selectionAdapter,l)}c.language=this._resolveLanguage(c.language),c.language.push("en");for(var A=[],j=0;j<c.language.length;j++){var N=c.language[j];-1===A.indexOf(N)&&A.push(N)}return c.language=A,c.translations=this._processTranslations(c.language,c.debug),c},E.prototype.reset=function(){function e(t){function e(t){return d[t]||t}return t.replace(/[^\u0000-\u007E]/g,e)}function n(i,r){if(""===t.trim(i.term))return r;if(r.children&&r.children.length>0){for(var o=t.extend(!0,{},r),a=r.children.length-1;a>=0;a--){null==n(i,r.children[a])&&o.children.splice(a,1)}return o.children.length>0?o:n(i,o)}var s=e(r.text).toUpperCase(),l=e(i.term).toUpperCase();return s.indexOf(l)>-1?r:null}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:u.escapeMarkup,language:{},matcher:n,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(t){return t},templateResult:function(t){return t.text},templateSelection:function(t){return t.text},theme:"default",width:"resolve"}},E.prototype.applyFromElement=function(t,e){var n=t.language,i=this.defaults.language,r=e.prop("lang"),o=e.closest("[lang]").prop("lang"),a=Array.prototype.concat.call(this._resolveLanguage(r),this._resolveLanguage(n),this._resolveLanguage(i),this._resolveLanguage(o));return t.language=a,t},E.prototype._resolveLanguage=function(e){if(!e)return[];if(t.isEmptyObject(e))return[];if(t.isPlainObject(e))return[e];var n;n=t.isArray(e)?e:[e];for(var i=[],r=0;r<n.length;r++)if(i.push(n[r]),"string"==typeof n[r]&&n[r].indexOf("-")>0){var o=n[r].split("-"),a=o[0];i.push(a)}return i},E.prototype._processTranslations=function(e,n){for(var i=new c,r=0;r<e.length;r++){var o=new c,a=e[r];if("string"==typeof a)try{o=c.loadPath(a)}catch(t){try{a=this.defaults.amdLanguageBase+a,o=c.loadPath(a)}catch(t){n&&window.console&&console.warn&&console.warn('Select2: The language file for "'+a+'" could not be automatically loaded. A fallback will be used instead.')}}else o=t.isPlainObject(a)?new c(a):a;i.extend(o)}return i},E.prototype.set=function(e,n){var i=t.camelCase(e),r={};r[i]=n;var o=u._convertData(r);t.extend(!0,this.defaults,o)},new E}),e.define("select2/options",["require","jquery","./defaults","./utils"],function(t,e,n,i){function r(e,r){if(this.options=e,null!=r&&this.fromElement(r),null!=r&&(this.options=n.applyFromElement(this.options,r)),this.options=n.apply(this.options),r&&r.is("input")){var o=t(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=i.Decorate(this.options.dataAdapter,o)}}return r.prototype.fromElement=function(t){function n(t,e){return e.toUpperCase()}var r=["select2"];null==this.options.multiple&&(this.options.multiple=t.prop("multiple")),null==this.options.disabled&&(this.options.disabled=t.prop("disabled")),null==this.options.dir&&(t.prop("dir")?this.options.dir=t.prop("dir"):t.closest("[dir]").prop("dir")?this.options.dir=t.closest("[dir]").prop("dir"):this.options.dir="ltr"),t.prop("disabled",this.options.disabled),t.prop("multiple",this.options.multiple),i.GetData(t[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),i.StoreData(t[0],"data",i.GetData(t[0],"select2Tags")),i.StoreData(t[0],"tags",!0)),i.GetData(t[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),t.attr("ajax--url",i.GetData(t[0],"ajaxUrl")),i.StoreData(t[0],"ajax-Url",i.GetData(t[0],"ajaxUrl")));for(var o={},a=0;a<t[0].attributes.length;a++){var s=t[0].attributes[a].name;if("data-"==s.substr(0,"data-".length)){var l=s.substring("data-".length),u=i.GetData(t[0],l);o[l.replace(/-([a-z])/g,n)]=u}}e.fn.jquery&&"1."==e.fn.jquery.substr(0,2)&&t[0].dataset&&(o=e.extend(!0,{},t[0].dataset,o));var c=e.extend(!0,{},i.GetData(t[0]),o);c=i._convertData(c);for(var d in c)e.inArray(d,r)>-1||(e.isPlainObject(this.options[d])?e.extend(this.options[d],c[d]):this.options[d]=c[d]);return this},r.prototype.get=function(t){return this.options[t]},r.prototype.set=function(t,e){this.options[t]=e},r}),e.define("select2/core",["jquery","./options","./utils","./keys"],function(t,e,n,i){var r=function(t,i){null!=n.GetData(t[0],"select2")&&n.GetData(t[0],"select2").destroy(),this.$element=t,this.id=this._generateId(t),i=i||{},this.options=new e(i,t),r.__super__.constructor.call(this);var o=t.attr("tabindex")||0;n.StoreData(t[0],"old-tabindex",o),t.attr("tabindex","-1");var a=this.options.get("dataAdapter");this.dataAdapter=new a(t,this.options);var s=this.render();this._placeContainer(s);var l=this.options.get("selectionAdapter");this.selection=new l(t,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,s);var u=this.options.get("dropdownAdapter");this.dropdown=new u(t,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,s);var c=this.options.get("resultsAdapter");this.results=new c(t,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var d=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(t){d.trigger("selection:update",{data:t})}),t.addClass("select2-hidden-accessible"),t.attr("aria-hidden","true"),this._syncAttributes(),n.StoreData(t[0],"select2",this),t.data("select2",this)};return n.Extend(r,n.Observable),r.prototype._generateId=function(t){var e="";return e=null!=t.attr("id")?t.attr("id"):null!=t.attr("name")?t.attr("name")+"-"+n.generateChars(2):n.generateChars(4),e=e.replace(/(:|\.|\[|\]|,)/g,""),e="select2-"+e},r.prototype._placeContainer=function(t){t.insertAfter(this.$element);var e=this._resolveWidth(this.$element,this.options.get("width"));null!=e&&t.css("width",e)},r.prototype._resolveWidth=function(t,e){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==e){var i=this._resolveWidth(t,"style");return null!=i?i:this._resolveWidth(t,"element")}if("element"==e){var r=t.outerWidth(!1);return r<=0?"auto":r+"px"}if("style"==e){var o=t.attr("style");if("string"!=typeof o)return null;for(var a=o.split(";"),s=0,l=a.length;s<l;s+=1){var u=a[s].replace(/\s/g,""),c=u.match(n);if(null!==c&&c.length>=1)return c[1]}
return null}if("computedstyle"==e){return window.getComputedStyle(t[0]).width}return e},r.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},r.prototype._registerDomEvents=function(){var e=this;this.$element.on("change.select2",function(){e.dataAdapter.current(function(t){e.trigger("selection:update",{data:t})})}),this.$element.on("focus.select2",function(t){e.trigger("focus",t)}),this._syncA=n.bind(this._syncAttributes,this),this._syncS=n.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var i=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=i?(this._observer=new i(function(n){t.each(n,e._syncA),t.each(n,e._syncS)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",e._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",e._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",e._syncS,!1))},r.prototype._registerDataEvents=function(){var t=this;this.dataAdapter.on("*",function(e,n){t.trigger(e,n)})},r.prototype._registerSelectionEvents=function(){var e=this,n=["toggle","focus"];this.selection.on("toggle",function(){e.toggleDropdown()}),this.selection.on("focus",function(t){e.focus(t)}),this.selection.on("*",function(i,r){-1===t.inArray(i,n)&&e.trigger(i,r)})},r.prototype._registerDropdownEvents=function(){var t=this;this.dropdown.on("*",function(e,n){t.trigger(e,n)})},r.prototype._registerResultsEvents=function(){var t=this;this.results.on("*",function(e,n){t.trigger(e,n)})},r.prototype._registerEvents=function(){var t=this;this.on("open",function(){t.$container.addClass("select2-container--open")}),this.on("close",function(){t.$container.removeClass("select2-container--open")}),this.on("enable",function(){t.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){t.$container.addClass("select2-container--disabled")}),this.on("blur",function(){t.$container.removeClass("select2-container--focus")}),this.on("query",function(e){t.isOpen()||t.trigger("open",{}),this.dataAdapter.query(e,function(n){t.trigger("results:all",{data:n,query:e})})}),this.on("query:append",function(e){this.dataAdapter.query(e,function(n){t.trigger("results:append",{data:n,query:e})})}),this.on("keypress",function(e){var n=e.which;t.isOpen()?n===i.ESC||n===i.TAB||n===i.UP&&e.altKey?(t.close(),e.preventDefault()):n===i.ENTER?(t.trigger("results:select",{}),e.preventDefault()):n===i.SPACE&&e.ctrlKey?(t.trigger("results:toggle",{}),e.preventDefault()):n===i.UP?(t.trigger("results:previous",{}),e.preventDefault()):n===i.DOWN&&(t.trigger("results:next",{}),e.preventDefault()):(n===i.ENTER||n===i.SPACE||n===i.DOWN&&e.altKey)&&(t.open(),e.preventDefault())})},r.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},r.prototype._syncSubtree=function(t,e){var n=!1,i=this;if(!t||!t.target||"OPTION"===t.target.nodeName||"OPTGROUP"===t.target.nodeName){if(e)if(e.addedNodes&&e.addedNodes.length>0)for(var r=0;r<e.addedNodes.length;r++){var o=e.addedNodes[r];o.selected&&(n=!0)}else e.removedNodes&&e.removedNodes.length>0&&(n=!0);else n=!0;n&&this.dataAdapter.current(function(t){i.trigger("selection:update",{data:t})})}},r.prototype.trigger=function(t,e){var n=r.__super__.trigger,i={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===e&&(e={}),t in i){var o=i[t],a={prevented:!1,name:t,args:e};if(n.call(this,o,a),a.prevented)return void(e.prevented=!0)}n.call(this,t,e)},r.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},r.prototype.open=function(){this.isOpen()||this.trigger("query",{})},r.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},r.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},r.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},r.prototype.focus=function(t){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},r.prototype.enable=function(t){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=t&&0!==t.length||(t=[!0]);var e=!t[0];this.$element.prop("disabled",e)},r.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var t=[];return this.dataAdapter.current(function(e){t=e}),t},r.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();var n=e[0];t.isArray(n)&&(n=t.map(n,function(t){return t.toString()})),this.$element.val(n).trigger("change")},r.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",n.GetData(this.$element[0],"old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),n.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},r.prototype.render=function(){var e=t('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container.addClass("select2-container--"+this.options.get("theme")),n.StoreData(e[0],"element",this.$element),e},r}),e.define("jquery-mousewheel",["jquery"],function(t){return t}),e.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(t,e,n,i,r){if(null==t.fn.select2){var o=["open","close","destroy"];t.fn.select2=function(e){if("object"==typeof(e=e||{}))return this.each(function(){var i=t.extend(!0,{},e);new n(t(this),i)}),this;if("string"==typeof e){var i,a=Array.prototype.slice.call(arguments,1);return this.each(function(){var t=r.GetData(this,"select2");null==t&&window.console&&console.error&&console.error("The select2('"+e+"') method was called on an element that is not using Select2."),i=t[e].apply(t,a)}),t.inArray(e,o)>-1?this:i}throw new Error("Invalid arguments for Select2: "+e)}}return null==t.fn.select2.defaults&&(t.fn.select2.defaults=i),n}),{define:e.define,require:e.require}}(),n=e.require("jquery.select2");return t.fn.select2.amd=e,n}),function(t){function e(t,e,r){var o=t[0],a=/er/.test(r)?m:/bl/.test(r)?f:d,s=r==g?{checked:o[d],disabled:o[f],indeterminate:"true"==t.attr(m)||"false"==t.attr(p)}:o[a];if(/^(ch|di|in)/.test(r)&&!s)n(t,a);else if(/^(un|en|de)/.test(r)&&s)i(t,a);else if(r==g)for(var l in s)s[l]?n(t,l,!0):i(t,l,!0);else e&&"toggle"!=r||(e||t[_]("ifClicked"),s?o[v]!==c&&i(t,a):n(t,a))}function n(e,n,r){var g=e[0],y=e.parent(),_=n==d,x=n==m,k=n==f,C=x?p:_?h:"enabled",T=o(e,C+a(g[v])),S=o(e,n+a(g[v]));if(!0!==g[n]){if(!r&&n==d&&g[v]==c&&g.name){var $=e.closest("form"),E='input[name="'+g.name+'"]';E=$.length?$.find(E):t(E),E.each(function(){this!==g&&t(this).data(l)&&i(t(this),n)})}x?(g[n]=!0,g[d]&&i(e,d,"force")):(r||(g[n]=!0),_&&g[m]&&i(e,m,!1)),s(e,_,n,r)}g[f]&&o(e,D,!0)&&y.find("."+u).css(D,"default"),y[b](S||o(e,n)||""),y.attr("role")&&!x&&y.attr("aria-"+(k?f:d),"true"),y[w](T||o(e,C)||"")}function i(t,e,n){var i=t[0],r=t.parent(),l=e==d,c=e==m,g=e==f,y=c?p:l?h:"enabled",_=o(t,y+a(i[v])),x=o(t,e+a(i[v]));!1!==i[e]&&(!c&&n&&"force"!=n||(i[e]=!1),s(t,l,y,n)),!i[f]&&o(t,D,!0)&&r.find("."+u).css(D,"pointer"),r[w](x||o(t,e)||""),r.attr("role")&&!c&&r.attr("aria-"+(g?f:d),"false"),r[b](_||o(t,y)||"")}function r(e,n){e.data(l)&&(e.parent().html(e.attr("style",e.data(l).s||"")),n&&e[_](n),e.off(".i").unwrap(),t(x+'[for="'+e[0].id+'"]').add(e.closest(x)).off(".i"))}function o(t,e,n){if(t.data(l))return t.data(l).o[e+(n?"":"Class")]}function a(t){return t.charAt(0).toUpperCase()+t.slice(1)}function s(t,e,n,i){i||(e&&t[_]("ifToggled"),t[_]("ifChanged")[_]("if"+a(n)))}var l="iCheck",u=l+"-helper",c="radio",d="checked",h="un"+d,f="disabled",p="determinate",m="in"+p,g="update",v="type",y="touchbegin.i touchend.i",b="addClass",w="removeClass",_="trigger",x="label",D="cursor",k=/ipad|iphone|ipod|android|blackberry|windows phone|opera mini|silk/i.test(navigator.userAgent);t.fn[l]=function(o,a){var s='input[type="checkbox"], input[type="'+c+'"]',h=t(),p=function(e){e.each(function(){var e=t(this);h=e.is(s)?h.add(e):h.add(e.find(s))})};if(/^(check|uncheck|toggle|indeterminate|determinate|disable|enable|update|destroy)$/i.test(o))return o=o.toLowerCase(),p(this),h.each(function(){var n=t(this);"destroy"==o?r(n,"ifDestroyed"):e(n,!0,o),t.isFunction(a)&&a()});if("object"!=typeof o&&o)return this;var D=t.extend({checkedClass:d,disabledClass:f,indeterminateClass:m,labelHover:!0},o),C=D.handle,T=D.hoverClass||"hover",S=D.focusClass||"focus",$=D.activeClass||"active",E=!!D.labelHover,O=D.labelHoverClass||"hover",M=0|(""+D.increaseArea).replace("%","");return"checkbox"!=C&&C!=c||(s='input[type="'+C+'"]'),M<-50&&(M=-50),p(this),h.each(function(){var o=t(this);r(o);var a,s=this,h=s.id,p=-M+"%",m=100+2*M+"%",C={position:"absolute",top:p,left:p,display:"block",width:m,height:m,margin:0,padding:0,background:"#fff",border:0,opacity:0},A=k?{position:"absolute",visibility:"hidden"}:M?C:{position:"absolute",opacity:0},j="checkbox"==s[v]?D.checkboxClass||"icheckbox":D.radioClass||"i"+c,N=t(x+'[for="'+h+'"]').add(o.closest(x)),I=!!D.aria,P=l+"-"+Math.random().toString(36).substr(2,6),L='<div class="'+j+'" '+(I?'role="'+s[v]+'" ':"");I&&N.each(function(){L+='aria-labelledby="',this.id?L+=this.id:(this.id=P,L+=P),L+='"'}),L=o.wrap(L+"/>")[_]("ifCreated").parent().append(D.insert),a=t('<ins class="'+u+'"/>').css(C).appendTo(L),o.data(l,{o:D,s:o.attr("style")}).css(A),!!D.inheritClass&&L[b](s.className||""),!!D.inheritID&&h&&L.attr("id",l+"-"+h),"static"==L.css("position")&&L.css("position","relative"),e(o,!0,g),N.length&&N.on("click.i mouseover.i mouseout.i "+y,function(n){var i=n[v],r=t(this);if(!s[f]){if("click"==i){if(t(n.target).is("a"))return;e(o,!1,!0)}else E&&(/ut|nd/.test(i)?(L[w](T),r[w](O)):(L[b](T),r[b](O)));if(!k)return!1;n.stopPropagation()}}),o.on("click.i focus.i blur.i keyup.i keydown.i keypress.i",function(t){var e=t[v],r=t.keyCode;return"click"!=e&&("keydown"==e&&32==r?(s[v]==c&&s[d]||(s[d]?i(o,d):n(o,d)),!1):void("keyup"==e&&s[v]==c?!s[d]&&n(o,d):/us|ur/.test(e)&&L["blur"==e?w:b](S)))}),a.on("click mousedown mouseup mouseover mouseout "+y,function(t){var n=t[v],i=/wn|up/.test(n)?$:T;if(!s[f]){if("click"==n?e(o,!1,!0):(/wn|er|in/.test(n)?L[b](i):L[w](i+" "+$),N.length&&E&&i==T&&N[/ut|nd/.test(n)?w:b](O)),!k)return!1;t.stopPropagation()}})})}}(window.jQuery||window.Zepto),function(t,e){"use strict";var n;if("object"==typeof exports){try{n=require("moment")}catch(t){}module.exports=e(n)}else"function"==typeof define&&define.amd?define(function(t){try{n=t("moment")}catch(t){}return e(n)}):t.Pikaday=e(t.moment)}(this,function(t){"use strict";var e="function"==typeof t,n=!!window.addEventListener,i=window.document,r=window.setTimeout,o=function(t,e,i,r){n?t.addEventListener(e,i,!!r):t.attachEvent("on"+e,i)},a=function(t,e,i,r){n?t.removeEventListener(e,i,!!r):t.detachEvent("on"+e,i)},s=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},l=function(t,e){return-1!==(" "+t.className+" ").indexOf(" "+e+" ")},u=function(t,e){l(t,e)||(t.className=""===t.className?e:t.className+" "+e)},c=function(t,e){t.className=s((" "+t.className+" ").replace(" "+e+" "," "))},d=function(t){return/Array/.test(Object.prototype.toString.call(t))},h=function(t){return/Date/.test(Object.prototype.toString.call(t))&&!isNaN(t.getTime())},f=function(t){var e=t.getDay();return 0===e||6===e},p=function(t){return t%4==0&&t%100!=0||t%400==0},m=function(t,e){return[31,p(t)?29:28,31,30,31,30,31,31,30,31,30,31][e]},g=function(t){h(t)&&t.setHours(0,0,0,0)},v=function(t,e){return t.getTime()===e.getTime()},y=function(t,e,n){var i,r;for(i in e)r=void 0!==t[i],r&&"object"==typeof e[i]&&null!==e[i]&&void 0===e[i].nodeName?h(e[i])?n&&(t[i]=new Date(e[i].getTime())):d(e[i])?n&&(t[i]=e[i].slice(0)):t[i]=y({},e[i],n):!n&&r||(t[i]=e[i]);return t},b=function(t,e,n){var r;i.createEvent?(r=i.createEvent("HTMLEvents"),r.initEvent(e,!0,!1),r=y(r,n),t.dispatchEvent(r)):i.createEventObject&&(r=i.createEventObject(),r=y(r,n),t.fireEvent("on"+e,r))},w=function(t){return t.month<0&&(t.year-=Math.ceil(Math.abs(t.month)/12),t.month+=12),t.month>11&&(t.year+=Math.floor(Math.abs(t.month)/12),t.month-=12),t},_={field:null,bound:void 0,ariaLabel:"Use the arrow keys to pick a date",position:"bottom left",reposition:!0,format:"YYYY-MM-DD",toString:null,parse:null,defaultDate:null,setDefaultDate:!1,firstDay:0,formatStrict:!1,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,pickWholeWeek:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,enableSelectionDaysInNextAndPreviousMonths:!1,numberOfMonths:1,mainCalendar:"left",container:void 0,blurFieldOnSelect:!0,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,events:[],onSelect:null,onOpen:null,onClose:null,onDraw:null,keyboardInput:!0},x=function(t,e,n){for(e+=t.firstDay;e>=7;)e-=7;return n?t.i18n.weekdaysShort[e]:t.i18n.weekdays[e]},D=function(t){var e=[],n="false";if(t.isEmpty){if(!t.showDaysInNextAndPreviousMonths)return'<td class="is-empty"></td>';e.push("is-outside-current-month"),t.enableSelectionDaysInNextAndPreviousMonths||e.push("is-selection-disabled")}return t.isDisabled&&e.push("is-disabled"),t.isToday&&e.push("is-today"),t.isSelected&&(e.push("is-selected"),n="true"),t.hasEvent&&e.push("has-event"),t.isInRange&&e.push("is-inrange"),t.isStartRange&&e.push("is-startrange"),t.isEndRange&&e.push("is-endrange"),'<td data-day="'+t.day+'" class="'+e.join(" ")+'" aria-selected="'+n+'"><button class="pika-button pika-day" type="button" data-pika-year="'+t.year+'" data-pika-month="'+t.month+'" data-pika-day="'+t.day+'">'+t.day+"</button></td>"},k=function(t,e,n){var i=new Date(n,0,1);return'<td class="pika-week">'+Math.ceil(((new Date(n,e,t)-i)/864e5+i.getDay()+1)/7)+"</td>"},C=function(t,e,n,i){return'<tr class="pika-row'+(n?" pick-whole-week":"")+(i?" is-selected":"")+'">'+(e?t.reverse():t).join("")+"</tr>"},T=function(t){return"<tbody>"+t.join("")+"</tbody>"},S=function(t){var e,n=[];for(t.showWeekNumber&&n.push("<th></th>"),e=0;e<7;e++)n.push('<th scope="col"><abbr title="'+x(t,e)+'">'+x(t,e,!0)+"</abbr></th>");return"<thead><tr>"+(t.isRTL?n.reverse():n).join("")+"</tr></thead>"},$=function(t,e,n,i,r,o){var a,s,l,u,c,h=t._o,f=n===h.minYear,p=n===h.maxYear,m='<div id="'+o+'" class="pika-title" role="heading" aria-live="assertive">',g=!0,v=!0;for(l=[],a=0;a<12;a++)l.push('<option value="'+(n===r?a-e:12+a-e)+'"'+(a===i?' selected="selected"':"")+(f&&a<h.minMonth||p&&a>h.maxMonth?'disabled="disabled"':"")+">"+h.i18n.months[a]+"</option>");for(u='<div class="pika-label">'+h.i18n.months[i]+'<select class="pika-select pika-select-month" tabindex="-1">'+l.join("")+"</select></div>",d(h.yearRange)?(a=h.yearRange[0],s=h.yearRange[1]+1):(a=n-h.yearRange,s=1+n+h.yearRange),l=[];a<s&&a<=h.maxYear;a++)a>=h.minYear&&l.push('<option value="'+a+'"'+(a===n?' selected="selected"':"")+">"+a+"</option>");return c='<div class="pika-label">'+n+h.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+l.join("")+"</select></div>",h.showMonthAfterYear?m+=c+u:m+=u+c,f&&(0===i||h.minMonth>=i)&&(g=!1),p&&(11===i||h.maxMonth<=i)&&(v=!1),0===e&&(m+='<button class="pika-prev'+(g?"":" is-disabled")+'" type="button">'+h.i18n.previousMonth+"</button>"),e===t._o.numberOfMonths-1&&(m+='<button class="pika-next'+(v?"":" is-disabled")+'" type="button">'+h.i18n.nextMonth+"</button>"),m+="</div>"},E=function(t,e,n){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+n+'">'+S(t)+T(e)+"</table>"},O=function(a){var s=this,u=s.config(a);s._onMouseDown=function(t){if(s._v){t=t||window.event;var e=t.target||t.srcElement;if(e)if(l(e,"is-disabled")||(!l(e,"pika-button")||l(e,"is-empty")||l(e.parentNode,"is-disabled")?l(e,"pika-prev")?s.prevMonth():l(e,"pika-next")&&s.nextMonth():(s.setDate(new Date(e.getAttribute("data-pika-year"),e.getAttribute("data-pika-month"),e.getAttribute("data-pika-day"))),u.bound&&r(function(){s.hide(),u.blurFieldOnSelect&&u.field&&u.field.blur()},100))),l(e,"pika-select"))s._c=!0;else{if(!t.preventDefault)return t.returnValue=!1,!1;t.preventDefault()}}},s._onChange=function(t){t=t||window.event;var e=t.target||t.srcElement;e&&(l(e,"pika-select-month")?s.gotoMonth(e.value):l(e,"pika-select-year")&&s.gotoYear(e.value))},s._onKeyChange=function(t){if(t=t||window.event,s.isVisible())switch(t.keyCode){case 13:case 27:u.field&&u.field.blur();break;case 37:t.preventDefault(),s.adjustDate("subtract",1);break;case 38:s.adjustDate("subtract",7);break;case 39:s.adjustDate("add",1);break;case 40:s.adjustDate("add",7)}},s._onInputChange=function(n){var i;n.firedBy!==s&&(u.parse?i=u.parse(u.field.value,u.format):e?(i=t(u.field.value,u.format,u.formatStrict),i=i&&i.isValid()?i.toDate():null):i=new Date(Date.parse(u.field.value)),h(i)&&s.setDate(i),s._v||s.show())},s._onInputFocus=function(){s.show()},s._onInputClick=function(){s.show()},s._onInputBlur=function(){var t=i.activeElement;do{if(l(t,"pika-single"))return}while(t=t.parentNode);s._c||(s._b=r(function(){s.hide()},50)),s._c=!1},s._onClick=function(t){t=t||window.event;var e=t.target||t.srcElement,i=e;if(e){!n&&l(e,"pika-select")&&(e.onchange||(e.setAttribute("onchange","return;"),o(e,"change",s._onChange)));do{if(l(i,"pika-single")||i===u.trigger)return}while(i=i.parentNode);s._v&&e!==u.trigger&&i!==u.trigger&&s.hide()}},s.el=i.createElement("div"),s.el.className="pika-single"+(u.isRTL?" is-rtl":"")+(u.theme?" "+u.theme:""),o(s.el,"mousedown",s._onMouseDown,!0),o(s.el,"touchend",s._onMouseDown,!0),o(s.el,"change",s._onChange),u.keyboardInput&&o(i,"keydown",s._onKeyChange),u.field&&(u.container?u.container.appendChild(s.el):u.bound?i.body.appendChild(s.el):u.field.parentNode.insertBefore(s.el,u.field.nextSibling),o(u.field,"change",s._onInputChange),u.defaultDate||(e&&u.field.value?u.defaultDate=t(u.field.value,u.format).toDate():u.defaultDate=new Date(Date.parse(u.field.value)),u.setDefaultDate=!0));var c=u.defaultDate;h(c)?u.setDefaultDate?s.setDate(c,!0):s.gotoDate(c):s.gotoDate(new Date),u.bound?(this.hide(),s.el.className+=" is-bound",o(u.trigger,"click",s._onInputClick),o(u.trigger,"focus",s._onInputFocus),o(u.trigger,"blur",s._onInputBlur)):this.show()};return O.prototype={config:function(t){this._o||(this._o=y({},_,!0));var e=y(this._o,t,!0);e.isRTL=!!e.isRTL,e.field=e.field&&e.field.nodeName?e.field:null,e.theme="string"==typeof e.theme&&e.theme?e.theme:null,e.bound=!!(void 0!==e.bound?e.field&&e.bound:e.field),e.trigger=e.trigger&&e.trigger.nodeName?e.trigger:e.field,e.disableWeekends=!!e.disableWeekends,e.disableDayFn="function"==typeof e.disableDayFn?e.disableDayFn:null;var n=parseInt(e.numberOfMonths,10)||1;if(e.numberOfMonths=n>4?4:n,h(e.minDate)||(e.minDate=!1),h(e.maxDate)||(e.maxDate=!1),e.minDate&&e.maxDate&&e.maxDate<e.minDate&&(e.maxDate=e.minDate=!1),e.minDate&&this.setMinDate(e.minDate),e.maxDate&&this.setMaxDate(e.maxDate),d(e.yearRange)){var i=(new Date).getFullYear()-10;e.yearRange[0]=parseInt(e.yearRange[0],10)||i,e.yearRange[1]=parseInt(e.yearRange[1],10)||i}else e.yearRange=Math.abs(parseInt(e.yearRange,10))||_.yearRange,e.yearRange>100&&(e.yearRange=100);return e},toString:function(n){return n=n||this._o.format,h(this._d)?this._o.toString?this._o.toString(this._d,n):e?t(this._d).format(n):this._d.toDateString():""},getMoment:function(){return e?t(this._d):null},setMoment:function(n,i){e&&t.isMoment(n)&&this.setDate(n.toDate(),i)},getDate:function(){return h(this._d)?new Date(this._d.getTime()):null},setDate:function(t,e){if(!t)return this._d=null,this._o.field&&(this._o.field.value="",b(this._o.field,"change",{firedBy:this})),this.draw();if("string"==typeof t&&(t=new Date(Date.parse(t))),h(t)){var n=this._o.minDate,i=this._o.maxDate;h(n)&&t<n?t=n:h(i)&&t>i&&(t=i),this._d=new Date(t.getTime()),g(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),b(this._o.field,"change",{firedBy:this})),e||"function"!=typeof this._o.onSelect||this._o.onSelect.call(this,this.getDate())}},gotoDate:function(t){var e=!0;if(h(t)){if(this.calendars){var n=new Date(this.calendars[0].year,this.calendars[0].month,1),i=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),r=t.getTime();i.setMonth(i.getMonth()+1),i.setDate(i.getDate()-1),e=r<n.getTime()||i.getTime()<r}e&&(this.calendars=[{month:t.getMonth(),year:t.getFullYear()}],"right"===this._o.mainCalendar&&(this.calendars[0].month+=1-this._o.numberOfMonths)),this.adjustCalendars()}},adjustDate:function(t,e){var n,i=this.getDate()||new Date,r=24*parseInt(e)*60*60*1e3;"add"===t?n=new Date(i.valueOf()+r):"subtract"===t&&(n=new Date(i.valueOf()-r)),this.setDate(n)},adjustCalendars:function(){this.calendars[0]=w(this.calendars[0]);for(var t=1;t<this._o.numberOfMonths;t++)this.calendars[t]=w({month:this.calendars[0].month+t,year:this.calendars[0].year});this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(t){isNaN(t)||(this.calendars[0].month=parseInt(t,10),this.adjustCalendars())},nextMonth:function(){this.calendars[0].month++,this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--,this.adjustCalendars()},gotoYear:function(t){isNaN(t)||(this.calendars[0].year=parseInt(t,10),this.adjustCalendars())},setMinDate:function(t){t instanceof Date?(g(t),this._o.minDate=t,this._o.minYear=t.getFullYear(),this._o.minMonth=t.getMonth()):(this._o.minDate=_.minDate,this._o.minYear=_.minYear,this._o.minMonth=_.minMonth,this._o.startRange=_.startRange),this.draw()},setMaxDate:function(t){t instanceof Date?(g(t),this._o.maxDate=t,this._o.maxYear=t.getFullYear(),this._o.maxMonth=t.getMonth()):(this._o.maxDate=_.maxDate,this._o.maxYear=_.maxYear,this._o.maxMonth=_.maxMonth,this._o.endRange=_.endRange),this.draw()},setStartRange:function(t){this._o.startRange=t},setEndRange:function(t){this._o.endRange=t},draw:function(t){if(this._v||t){var e,n=this._o,i=n.minYear,o=n.maxYear,a=n.minMonth,s=n.maxMonth,l="";this._y<=i&&(this._y=i,!isNaN(a)&&this._m<a&&(this._m=a)),this._y>=o&&(this._y=o,!isNaN(s)&&this._m>s&&(this._m=s)),e="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2);for(var u=0;u<n.numberOfMonths;u++)l+='<div class="pika-lendar">'+$(this,u,this.calendars[u].year,this.calendars[u].month,this.calendars[0].year,e)+this.render(this.calendars[u].year,this.calendars[u].month,e)+"</div>";this.el.innerHTML=l,n.bound&&"hidden"!==n.field.type&&r(function(){n.trigger.focus()},1),"function"==typeof this._o.onDraw&&this._o.onDraw(this),n.bound&&n.field.setAttribute("aria-label",n.ariaLabel)}},adjustPosition:function(){var t,e,n,r,o,a,s,l,d,h,f,p;if(!this._o.container){if(this.el.style.position="absolute",t=this._o.trigger,e=t,n=this.el.offsetWidth,r=this.el.offsetHeight,o=window.innerWidth||i.documentElement.clientWidth,a=window.innerHeight||i.documentElement.clientHeight,s=window.pageYOffset||i.body.scrollTop||i.documentElement.scrollTop,f=!0,p=!0,"function"==typeof t.getBoundingClientRect)h=t.getBoundingClientRect(),l=h.left+window.pageXOffset,d=h.bottom+window.pageYOffset;else for(l=e.offsetLeft,d=e.offsetTop+e.offsetHeight;e=e.offsetParent;)l+=e.offsetLeft,d+=e.offsetTop;(this._o.reposition&&l+n>o||this._o.position.indexOf("right")>-1&&l-n+t.offsetWidth>0)&&(l=l-n+t.offsetWidth,f=!1),(this._o.reposition&&d+r>a+s||this._o.position.indexOf("top")>-1&&d-r-t.offsetHeight>0)&&(d=d-r-t.offsetHeight,p=!1),this.el.style.left=l+"px",this.el.style.top=d+"px",u(this.el,f?"left-aligned":"right-aligned"),u(this.el,p?"bottom-aligned":"top-aligned"),c(this.el,f?"right-aligned":"left-aligned"),c(this.el,p?"top-aligned":"bottom-aligned")}},render:function(t,e,n){var i=this._o,r=new Date,o=m(t,e),a=new Date(t,e,1).getDay(),s=[],l=[];g(r),i.firstDay>0&&(a-=i.firstDay)<0&&(a+=7);for(var u=0===e?11:e-1,c=11===e?0:e+1,d=0===e?t-1:t,p=11===e?t+1:t,y=m(d,u),b=o+a,w=b;w>7;)w-=7;b+=7-w;for(var _=!1,x=0,T=0;x<b;x++){var S=new Date(t,e,x-a+1),$=!!h(this._d)&&v(S,this._d),O=v(S,r),M=-1!==i.events.indexOf(S.toDateString()),A=x<a||x>=o+a,j=x-a+1,N=e,I=t,P=i.startRange&&v(i.startRange,S),L=i.endRange&&v(i.endRange,S),R=i.startRange&&i.endRange&&i.startRange<S&&S<i.endRange,H=i.minDate&&S<i.minDate||i.maxDate&&S>i.maxDate||i.disableWeekends&&f(S)||i.disableDayFn&&i.disableDayFn(S);A&&(x<a?(j=y+j,N=u,I=d):(j-=o,N=c,I=p));var Y={day:j,month:N,year:I,hasEvent:M,isSelected:$,isToday:O,isDisabled:H,isEmpty:A,isStartRange:P,isEndRange:L,isInRange:R,showDaysInNextAndPreviousMonths:i.showDaysInNextAndPreviousMonths,enableSelectionDaysInNextAndPreviousMonths:i.enableSelectionDaysInNextAndPreviousMonths};i.pickWholeWeek&&$&&(_=!0),l.push(D(Y)),7==++T&&(i.showWeekNumber&&l.unshift(k(x-a,e,t)),s.push(C(l,i.isRTL,i.pickWholeWeek,_)),l=[],T=0,_=!1)}return E(i,s,n)},isVisible:function(){return this._v},show:function(){this.isVisible()||(this._v=!0,this.draw(),c(this.el,"is-hidden"),this._o.bound&&(o(i,"click",this._onClick),this.adjustPosition()),"function"==typeof this._o.onOpen&&this._o.onOpen.call(this))},hide:function(){var t=this._v;!1!==t&&(this._o.bound&&a(i,"click",this._onClick),this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto",u(this.el,"is-hidden"),this._v=!1,void 0!==t&&"function"==typeof this._o.onClose&&this._o.onClose.call(this))},destroy:function(){var t=this._o;this.hide(),a(this.el,"mousedown",this._onMouseDown,!0),a(this.el,"touchend",this._onMouseDown,!0),a(this.el,"change",this._onChange),t.keyboardInput&&a(i,"keydown",this._onKeyChange),t.field&&(a(t.field,"change",this._onInputChange),t.bound&&(a(t.trigger,"click",this._onInputClick),a(t.trigger,"focus",this._onInputFocus),a(t.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},O}),function(t){"use strict";var e=function(e,n){this.options=t.extend({},t.fn.editableform.defaults,n),this.$div=t(e),this.options.scope||(this.options.scope=this)};e.prototype={constructor:e,initInput:function(){this.input=this.options.input,this.value=this.input.str2value(this.options.value),this.input.prerender()},initTemplate:function(){this.$form=t(t.fn.editableform.template)},initButtons:function(){var e=this.$form.find(".editable-buttons");e.append(t.fn.editableform.buttons),"bottom"===this.options.showbuttons&&e.addClass("editable-buttons-bottom")},render:function(){this.$loading=t(t.fn.editableform.loading),this.$div.empty().append(this.$loading),this.initTemplate(),this.options.showbuttons?this.initButtons():this.$form.find(".editable-buttons").remove(),this.showLoading(),this.isSaving=!1,this.$div.triggerHandler("rendering"),this.initInput(),this.$form.find("div.editable-input").append(this.input.$tpl),this.$div.append(this.$form),t.when(this.input.render()).then(t.proxy(function(){if(this.options.showbuttons||this.input.autosubmit(),this.$form.find(".editable-cancel").click(t.proxy(this.cancel,this)),this.input.error)this.error(this.input.error),this.$form.find(".editable-submit").attr("disabled",!0),this.input.$input.attr("disabled",!0),this.$form.submit(function(t){t.preventDefault()});else{this.error(!1),this.input.$input.removeAttr("disabled"),this.$form.find(".editable-submit").removeAttr("disabled");var e=null===this.value||void 0===this.value||""===this.value?this.options.defaultValue:this.value;this.input.value2input(e),this.$form.submit(t.proxy(this.submit,this))}this.$div.triggerHandler("rendered"),this.showForm(),this.input.postrender&&this.input.postrender()},this))},cancel:function(){this.$div.triggerHandler("cancel")},showLoading:function(){var t,e;this.$form?(t=this.$form.outerWidth(),e=this.$form.outerHeight(),t&&this.$loading.width(t),e&&this.$loading.height(e),this.$form.hide()):(t=this.$loading.parent().width())&&this.$loading.width(t),this.$loading.show()},showForm:function(t){this.$loading.hide(),this.$form.show(),!1!==t&&this.input.activate(),this.$div.triggerHandler("show")},error:function(e){var n,i=this.$form.find(".control-group"),r=this.$form.find(".editable-error-block");if(!1===e)i.removeClass(t.fn.editableform.errorGroupClass),r.removeClass(t.fn.editableform.errorBlockClass).empty().hide();else{if(e){n=(""+e).split("\n");for(var o=0;o<n.length;o++)n[o]=t("<div>").text(n[o]).html();e=n.join("<br>")}i.addClass(t.fn.editableform.errorGroupClass),r.addClass(t.fn.editableform.errorBlockClass).html(e).show()}},submit:function(e){e.stopPropagation(),e.preventDefault();var n=this.input.input2value(),i=this.validate(n);if("object"===t.type(i)&&void 0!==i.newValue){if(n=i.newValue,this.input.value2input(n),"string"==typeof i.msg)return this.error(i.msg),void this.showForm()}else if(i)return this.error(i),void this.showForm();if(!this.options.savenochange&&this.input.value2str(n)==this.input.value2str(this.value))return void this.$div.triggerHandler("nochange");var r=this.input.value2submit(n);this.isSaving=!0,t.when(this.save(r)).done(t.proxy(function(t){this.isSaving=!1;var e="function"==typeof this.options.success?this.options.success.call(this.options.scope,t,n):null;return!1===e?(this.error(!1),void this.showForm(!1)):"string"==typeof e?(this.error(e),void this.showForm()):(e&&"object"==typeof e&&e.hasOwnProperty("newValue")&&(n=e.newValue),this.error(!1),this.value=n,void this.$div.triggerHandler("save",{newValue:n,submitValue:r,response:t}))},this)).fail(t.proxy(function(t){this.isSaving=!1;var e;e="function"==typeof this.options.error?this.options.error.call(this.options.scope,t,n):"string"==typeof t?t:t.responseText||t.statusText||"Unknown error!",this.error(e),this.showForm()},this))},save:function(e){this.options.pk=t.fn.editableutils.tryParseJson(this.options.pk,!0);var n,i="function"==typeof this.options.pk?this.options.pk.call(this.options.scope):this.options.pk,r=!!("function"==typeof this.options.url||this.options.url&&("always"===this.options.send||"auto"===this.options.send&&null!==i&&void 0!==i));if(r)return this.showLoading(),n={name:this.options.name||"",
value:e,pk:i},"function"==typeof this.options.params?n=this.options.params.call(this.options.scope,n):(this.options.params=t.fn.editableutils.tryParseJson(this.options.params,!0),t.extend(n,this.options.params)),"function"==typeof this.options.url?this.options.url.call(this.options.scope,n):t.ajax(t.extend({url:this.options.url,data:n,type:"POST"},this.options.ajaxOptions))},validate:function(t){if(void 0===t&&(t=this.value),"function"==typeof this.options.validate)return this.options.validate.call(this.options.scope,t)},option:function(t,e){t in this.options&&(this.options[t]=e),"value"===t&&this.setValue(e)},setValue:function(t,e){this.value=e?this.input.str2value(t):t,this.$form&&this.$form.is(":visible")&&this.input.value2input(this.value)}},t.fn.editableform=function(n){var i=arguments;return this.each(function(){var r=t(this),o=r.data("editableform"),a="object"==typeof n&&n;o||r.data("editableform",o=new e(this,a)),"string"==typeof n&&o[n].apply(o,Array.prototype.slice.call(i,1))})},t.fn.editableform.Constructor=e,t.fn.editableform.defaults={type:"text",url:null,params:null,name:null,pk:null,value:null,defaultValue:null,send:"auto",validate:null,success:null,error:null,ajaxOptions:null,showbuttons:!0,scope:null,savenochange:!1},t.fn.editableform.template='<form class="form-inline editableform"><div class="control-group"><div><div class="editable-input"></div><div class="editable-buttons"></div></div><div class="editable-error-block"></div></div></form>',t.fn.editableform.loading='<div class="editableform-loading"></div>',t.fn.editableform.buttons='<button type="submit" class="editable-submit">ok</button><button type="button" class="editable-cancel">cancel</button>',t.fn.editableform.errorGroupClass=null,t.fn.editableform.errorBlockClass="editable-error",t.fn.editableform.engine="jquery"}(window.jQuery),function(t){"use strict";t.fn.editableutils={inherit:function(t,e){var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t,t.superclass=e.prototype},setCursorPosition:function(t,e){if(t.setSelectionRange)t.setSelectionRange(e,e);else if(t.createTextRange){var n=t.createTextRange();n.collapse(!0),n.moveEnd("character",e),n.moveStart("character",e),n.select()}},tryParseJson:function(t,e){if("string"==typeof t&&t.length&&t.match(/^[\{\[].*[\}\]]$/))if(e)try{t=new Function("return "+t)()}catch(t){}finally{return t}else t=new Function("return "+t)();return t},sliceObj:function(e,n,i){var r,o,a={};if(!t.isArray(n)||!n.length)return a;for(var s=0;s<n.length;s++)r=n[s],e.hasOwnProperty(r)&&(a[r]=e[r]),!0!==i&&(o=r.toLowerCase(),e.hasOwnProperty(o)&&(a[r]=e[o]));return a},getConfigData:function(e){var n={};return t.each(e.data(),function(t,e){("object"!=typeof e||e&&"object"==typeof e&&(e.constructor===Object||e.constructor===Array))&&(n[t]=e)}),n},objectKeys:function(t){if(Object.keys)return Object.keys(t);if(t!==Object(t))throw new TypeError("Object.keys called on a non-object");var e,n=[];for(e in t)Object.prototype.hasOwnProperty.call(t,e)&&n.push(e);return n},escape:function(e){return t("<div>").text(e).html()},itemsByValue:function(e,n,i){if(!n||null===e)return[];if("function"!=typeof i){var r=i||"value";i=function(t){return t[r]}}var o=t.isArray(e),a=[],s=this;return t.each(n,function(n,r){if(r.children)a=a.concat(s.itemsByValue(e,r.children,i));else if(o)t.grep(e,function(t){return t==(r&&"object"==typeof r?i(r):r)}).length&&a.push(r);else{var l=r&&"object"==typeof r?i(r):r;e==l&&a.push(r)}}),a},createInput:function(e){var n,i,r=e.type;return"date"===r&&("inline"===e.mode?t.fn.editabletypes.datefield?r="datefield":t.fn.editabletypes.dateuifield&&(r="dateuifield"):t.fn.editabletypes.date?r="date":t.fn.editabletypes.dateui&&(r="dateui"),"date"!==r||t.fn.editabletypes.date||(r="combodate")),"datetime"===r&&"inline"===e.mode&&(r="datetimefield"),"wysihtml5"!==r||t.fn.editabletypes[r]||(r="textarea"),"function"==typeof t.fn.editabletypes[r]?(n=t.fn.editabletypes[r],i=this.sliceObj(e,this.objectKeys(n.defaults)),new n(i)):(t.error("Unknown type: "+r),!1)},supportsTransitions:function(){var t=document.body||document.documentElement,e=t.style,n="transition",i=["Moz","Webkit","Khtml","O","ms"];if("string"==typeof e[n])return!0;n=n.charAt(0).toUpperCase()+n.substr(1);for(var r=0;r<i.length;r++)if("string"==typeof e[i[r]+n])return!0;return!1}}}(window.jQuery),function(t){"use strict";var e=function(t,e){this.init(t,e)},n=function(t,e){this.init(t,e)};e.prototype={containerName:null,containerDataName:null,innerCss:null,containerClass:"editable-container editable-popup",defaults:{},init:function(n,i){this.$element=t(n),this.options=t.extend({},t.fn.editableContainer.defaults,i),this.splitOptions(),this.formOptions.scope=this.$element[0],this.initContainer(),this.delayedHide=!1,this.$element.on("destroyed",t.proxy(function(){this.destroy()},this)),t(document).data("editable-handlers-attached")||(t(document).on("keyup.editable",function(e){27===e.which&&t(".editable-open").editableContainer("hide")}),t(document).on("click.editable",function(n){var i,r=t(n.target),o=[".editable-container",".ui-datepicker-header",".datepicker",".modal-backdrop",".bootstrap-wysihtml5-insert-image-modal",".bootstrap-wysihtml5-insert-link-modal"];if(t.contains(document.documentElement,n.target)&&!r.is(document)){for(i=0;i<o.length;i++)if(r.is(o[i])||r.parents(o[i]).length)return;e.prototype.closeOthers(n.target)}}),t(document).data("editable-handlers-attached",!0))},splitOptions:function(){if(this.containerOptions={},this.formOptions={},!t.fn[this.containerName])throw new Error(this.containerName+" not found. Have you included corresponding js file?");for(var e in this.options)e in this.defaults?this.containerOptions[e]=this.options[e]:this.formOptions[e]=this.options[e]},tip:function(){return this.container()?this.container().$tip:null},container:function(){var t;return this.containerDataName&&(t=this.$element.data(this.containerDataName))?t:t=this.$element.data(this.containerName)},call:function(){this.$element[this.containerName].apply(this.$element,arguments)},initContainer:function(){this.call(this.containerOptions)},renderForm:function(){this.$form.editableform(this.formOptions).on({save:t.proxy(this.save,this),nochange:t.proxy(function(){this.hide("nochange")},this),cancel:t.proxy(function(){this.hide("cancel")},this),show:t.proxy(function(){this.delayedHide?(this.hide(this.delayedHide.reason),this.delayedHide=!1):this.setPosition()},this),rendering:t.proxy(this.setPosition,this),resize:t.proxy(this.setPosition,this),rendered:t.proxy(function(){this.$element.triggerHandler("shown",t(this.options.scope).data("editable"))},this)}).editableform("render")},show:function(e){this.$element.addClass("editable-open"),!1!==e&&this.closeOthers(this.$element[0]),this.innerShow(),this.tip().addClass(this.containerClass),this.$form,this.$form=t("<div>"),this.tip().is(this.innerCss)?this.tip().append(this.$form):this.tip().find(this.innerCss).append(this.$form),this.renderForm()},hide:function(t){if(this.tip()&&this.tip().is(":visible")&&this.$element.hasClass("editable-open")){if(this.$form.data("editableform").isSaving)return void(this.delayedHide={reason:t});this.delayedHide=!1,this.$element.removeClass("editable-open"),this.innerHide(),this.$element.triggerHandler("hidden",t||"manual")}},innerShow:function(){},innerHide:function(){},toggle:function(t){this.container()&&this.tip()&&this.tip().is(":visible")?this.hide():this.show(t)},setPosition:function(){},save:function(t,e){this.$element.triggerHandler("save",e),this.hide("save")},option:function(t,e){this.options[t]=e,t in this.containerOptions?(this.containerOptions[t]=e,this.setContainerOption(t,e)):(this.formOptions[t]=e,this.$form&&this.$form.editableform("option",t,e))},setContainerOption:function(t,e){this.call("option",t,e)},destroy:function(){this.hide(),this.innerDestroy(),this.$element.off("destroyed"),this.$element.removeData("editableContainer")},innerDestroy:function(){},closeOthers:function(e){t(".editable-open").each(function(n,i){if(i!==e&&!t(i).find(e).length){var r=t(i),o=r.data("editableContainer");o&&("cancel"===o.options.onblur?r.data("editableContainer").hide("onblur"):"submit"===o.options.onblur&&r.data("editableContainer").tip().find("form").submit())}})},activate:function(){this.tip&&this.tip().is(":visible")&&this.$form&&this.$form.data("editableform").input.activate()}},t.fn.editableContainer=function(i){var r=arguments;return this.each(function(){var o=t(this),a=o.data("editableContainer"),s="object"==typeof i&&i,l="inline"===s.mode?n:e;a||o.data("editableContainer",a=new l(this,s)),"string"==typeof i&&a[i].apply(a,Array.prototype.slice.call(r,1))})},t.fn.editableContainer.Popup=e,t.fn.editableContainer.Inline=n,t.fn.editableContainer.defaults={value:null,placement:"top",autohide:!0,onblur:"cancel",anim:!1,mode:"popup"},jQuery.event.special.destroyed={remove:function(t){t.handler&&t.handler()}}}(window.jQuery),function(t){"use strict";t.extend(t.fn.editableContainer.Inline.prototype,t.fn.editableContainer.Popup.prototype,{containerName:"editableform",innerCss:".editable-inline",containerClass:"editable-container editable-inline",initContainer:function(){this.$tip=t("<span></span>"),this.options.anim||(this.options.anim=0)},splitOptions:function(){this.containerOptions={},this.formOptions=this.options},tip:function(){return this.$tip},innerShow:function(){this.$element.hide(),this.tip().insertAfter(this.$element).show()},innerHide:function(){this.$tip.hide(this.options.anim,t.proxy(function(){this.$element.show(),this.innerDestroy()},this))},innerDestroy:function(){this.tip()&&this.tip().empty().remove()}})}(window.jQuery),function(t){"use strict";var e=function(e,n){this.$element=t(e),this.options=t.extend({},t.fn.editable.defaults,n,t.fn.editableutils.getConfigData(this.$element)),this.options.selector?this.initLive():this.init(),this.options.highlight&&!t.fn.editableutils.supportsTransitions()&&(this.options.highlight=!1)};e.prototype={constructor:e,init:function(){var e,n=!1;if(this.options.name=this.options.name||this.$element.attr("id"),this.options.scope=this.$element[0],this.input=t.fn.editableutils.createInput(this.options),this.input){switch(void 0===this.options.value||null===this.options.value?(this.value=this.input.html2value(t.trim(this.$element.html())),n=!0):(this.options.value=t.fn.editableutils.tryParseJson(this.options.value,!0),"string"==typeof this.options.value?this.value=this.input.str2value(this.options.value):this.value=this.options.value),this.$element.addClass("editable"),"textarea"===this.input.type&&this.$element.addClass("editable-pre-wrapped"),"manual"!==this.options.toggle?(this.$element.addClass("editable-click"),this.$element.on(this.options.toggle+".editable",t.proxy(function(t){if(this.options.disabled||t.preventDefault(),"mouseenter"===this.options.toggle)this.show();else{var e="click"!==this.options.toggle;this.toggle(e)}},this))):this.$element.attr("tabindex",-1),"function"==typeof this.options.display&&(this.options.autotext="always"),this.options.autotext){case"always":e=!0;break;case"auto":e=!t.trim(this.$element.text()).length&&null!==this.value&&void 0!==this.value&&!n;break;default:e=!1}t.when(!e||this.render()).then(t.proxy(function(){this.options.disabled?this.disable():this.enable(),this.$element.triggerHandler("init",this)},this))}},initLive:function(){var e=this.options.selector;this.options.selector=!1,this.options.autotext="never",this.$element.on(this.options.toggle+".editable",e,t.proxy(function(e){var n=t(e.target);n.data("editable")||(n.hasClass(this.options.emptyclass)&&n.empty(),n.editable(this.options).trigger(e))},this))},render:function(t){if(!1!==this.options.display)return this.input.value2htmlFinal?this.input.value2html(this.value,this.$element[0],this.options.display,t):"function"==typeof this.options.display?this.options.display.call(this.$element[0],this.value,t):this.input.value2html(this.value,this.$element[0])},enable:function(){this.options.disabled=!1,this.$element.removeClass("editable-disabled"),this.handleEmpty(this.isEmpty),"manual"!==this.options.toggle&&"-1"===this.$element.attr("tabindex")&&this.$element.removeAttr("tabindex")},disable:function(){this.options.disabled=!0,this.hide(),this.$element.addClass("editable-disabled"),this.handleEmpty(this.isEmpty),this.$element.attr("tabindex",-1)},toggleDisabled:function(){this.options.disabled?this.enable():this.disable()},option:function(e,n){return e&&"object"==typeof e?void t.each(e,t.proxy(function(e,n){this.option(t.trim(e),n)},this)):(this.options[e]=n,"disabled"===e?n?this.disable():this.enable():("value"===e&&this.setValue(n),this.container&&this.container.option(e,n),void(this.input.option&&this.input.option(e,n))))},handleEmpty:function(e){!1!==this.options.display&&(void 0!==e?this.isEmpty=e:"function"==typeof this.input.isEmpty?this.isEmpty=this.input.isEmpty(this.$element):this.isEmpty=""===t.trim(this.$element.html()),this.options.disabled?this.isEmpty&&(this.$element.empty(),this.options.emptyclass&&this.$element.removeClass(this.options.emptyclass)):this.isEmpty?(this.$element.html(this.options.emptytext),this.options.emptyclass&&this.$element.addClass(this.options.emptyclass)):this.options.emptyclass&&this.$element.removeClass(this.options.emptyclass))},show:function(e){if(!this.options.disabled){if(this.container){if(this.container.tip().is(":visible"))return}else{var n=t.extend({},this.options,{value:this.value,input:this.input});this.$element.editableContainer(n),this.$element.on("save.internal",t.proxy(this.save,this)),this.container=this.$element.data("editableContainer")}this.container.show(e)}},hide:function(){this.container&&this.container.hide()},toggle:function(t){this.container&&this.container.tip().is(":visible")?this.hide():this.show(t)},save:function(t,e){if(this.options.unsavedclass){var n=!1;n=n||"function"==typeof this.options.url,n=n||!1===this.options.display,n=n||void 0!==e.response,n=n||this.options.savenochange&&this.input.value2str(this.value)!==this.input.value2str(e.newValue),n?this.$element.removeClass(this.options.unsavedclass):this.$element.addClass(this.options.unsavedclass)}if(this.options.highlight){var i=this.$element,r=i.css("background-color");i.css("background-color",this.options.highlight),setTimeout(function(){"transparent"===r&&(r=""),i.css("background-color",r),i.addClass("editable-bg-transition"),setTimeout(function(){i.removeClass("editable-bg-transition")},1700)},10)}this.setValue(e.newValue,!1,e.response)},validate:function(){if("function"==typeof this.options.validate)return this.options.validate.call(this,this.value)},setValue:function(e,n,i){this.value=n?this.input.str2value(e):e,this.container&&this.container.option("value",this.value),t.when(this.render(i)).then(t.proxy(function(){this.handleEmpty()},this))},activate:function(){this.container&&this.container.activate()},destroy:function(){this.disable(),this.container&&this.container.destroy(),this.input.destroy(),"manual"!==this.options.toggle&&(this.$element.removeClass("editable-click"),this.$element.off(this.options.toggle+".editable")),this.$element.off("save.internal"),this.$element.removeClass("editable editable-open editable-disabled"),this.$element.removeData("editable")}},t.fn.editable=function(n){var i={},r=arguments;switch(n){case"validate":return this.each(function(){var e,n=t(this),r=n.data("editable");r&&(e=r.validate())&&(i[r.options.name]=e)}),i;case"getValue":return 2===arguments.length&&!0===arguments[1]?i=this.eq(0).data("editable").value:this.each(function(){var e=t(this),n=e.data("editable");n&&void 0!==n.value&&null!==n.value&&(i[n.options.name]=n.input.value2submit(n.value))}),i;case"submit":var o=arguments[1]||{},a=this,s=this.editable("validate");if(t.isEmptyObject(s)){var l={};if(1===a.length){var u=a.data("editable"),c={name:u.options.name||"",value:u.input.value2submit(u.value),pk:"function"==typeof u.options.pk?u.options.pk.call(u.options.scope):u.options.pk};"function"==typeof u.options.params?c=u.options.params.call(u.options.scope,c):(u.options.params=t.fn.editableutils.tryParseJson(u.options.params,!0),t.extend(c,u.options.params)),l={url:u.options.url,data:c,type:"POST"},o.success=o.success||u.options.success,o.error=o.error||u.options.error}else{var d=this.editable("getValue");l={url:o.url,data:d,type:"POST"}}l.success="function"==typeof o.success?function(t){o.success.call(a,t,o)}:t.noop,l.error="function"==typeof o.error?function(){o.error.apply(a,arguments)}:t.noop,o.ajaxOptions&&t.extend(l,o.ajaxOptions),o.data&&t.extend(l.data,o.data),t.ajax(l)}else"function"==typeof o.error&&o.error.call(a,s);return this}return this.each(function(){var i=t(this),o=i.data("editable"),a="object"==typeof n&&n;if(a&&a.selector)return void(o=new e(this,a));o||i.data("editable",o=new e(this,a)),"string"==typeof n&&o[n].apply(o,Array.prototype.slice.call(r,1))})},t.fn.editable.defaults={type:"text",disabled:!1,toggle:"click",emptytext:"Empty",autotext:"auto",value:null,display:null,emptyclass:"editable-empty",unsavedclass:"editable-unsaved",selector:null,highlight:"#FFFF80"}}(window.jQuery),function(t){"use strict";t.fn.editabletypes={};var e=function(){};e.prototype={init:function(e,n,i){this.type=e,this.options=t.extend({},i,n)},prerender:function(){this.$tpl=t(this.options.tpl),this.$input=this.$tpl,this.$clear=null,this.error=null},render:function(){},value2html:function(e,n){t(n)[this.options.escape?"text":"html"](t.trim(e))},html2value:function(e){return t("<div>").html(e).text()},value2str:function(t){return t},str2value:function(t){return t},value2submit:function(t){return t},value2input:function(t){this.$input.val(t)},input2value:function(){return this.$input.val()},activate:function(){this.$input.is(":visible")&&this.$input.focus()},clear:function(){this.$input.val(null)},escape:function(e){return t("<div>").text(e).html()},autosubmit:function(){},destroy:function(){},setClass:function(){this.options.inputclass&&this.$input.addClass(this.options.inputclass)},setAttr:function(t){void 0!==this.options[t]&&null!==this.options[t]&&this.$input.attr(t,this.options[t])},option:function(t,e){this.options[t]=e}},e.defaults={tpl:"",inputclass:null,escape:!0,scope:null,showbuttons:!0},t.extend(t.fn.editabletypes,{abstractinput:e})}(window.jQuery),function(t){"use strict";var e=function(t){};t.fn.editableutils.inherit(e,t.fn.editabletypes.abstractinput),t.extend(e.prototype,{render:function(){var e=t.Deferred();return this.error=null,this.onSourceReady(function(){this.renderList(),e.resolve()},function(){this.error=this.options.sourceError,e.resolve()}),e.promise()},html2value:function(t){return null},value2html:function(e,n,i,r){var o=t.Deferred(),a=function(){"function"==typeof i?i.call(n,e,this.sourceData,r):this.value2htmlFinal(e,n),o.resolve()};return null===e?a.call(this):this.onSourceReady(a,function(){o.resolve()}),o.promise()},onSourceReady:function(e,n){var i;if(t.isFunction(this.options.source)?(i=this.options.source.call(this.options.scope),this.sourceData=null):i=this.options.source,this.options.sourceCache&&t.isArray(this.sourceData))return void e.call(this);try{i=t.fn.editableutils.tryParseJson(i,!1)}catch(t){return void n.call(this)}if("string"==typeof i){if(this.options.sourceCache){var r,o=i;if(t(document).data(o)||t(document).data(o,{}),r=t(document).data(o),!1===r.loading&&r.sourceData)return this.sourceData=r.sourceData,this.doPrepend(),void e.call(this);if(!0===r.loading)return r.callbacks.push(t.proxy(function(){this.sourceData=r.sourceData,this.doPrepend(),e.call(this)},this)),void r.err_callbacks.push(t.proxy(n,this));r.loading=!0,r.callbacks=[],r.err_callbacks=[]}var a=t.extend({url:i,type:"get",cache:!1,dataType:"json",success:t.proxy(function(i){r&&(r.loading=!1),this.sourceData=this.makeArray(i),t.isArray(this.sourceData)?(r&&(r.sourceData=this.sourceData,t.each(r.callbacks,function(){this.call()})),this.doPrepend(),e.call(this)):(n.call(this),r&&t.each(r.err_callbacks,function(){this.call()}))},this),error:t.proxy(function(){n.call(this),r&&(r.loading=!1,t.each(r.err_callbacks,function(){this.call()}))},this)},this.options.sourceOptions);t.ajax(a)}else this.sourceData=this.makeArray(i),t.isArray(this.sourceData)?(this.doPrepend(),e.call(this)):n.call(this)},doPrepend:function(){null!==this.options.prepend&&void 0!==this.options.prepend&&(t.isArray(this.prependData)||(t.isFunction(this.options.prepend)&&(this.options.prepend=this.options.prepend.call(this.options.scope)),this.options.prepend=t.fn.editableutils.tryParseJson(this.options.prepend,!0),"string"==typeof this.options.prepend&&(this.options.prepend={"":this.options.prepend}),this.prependData=this.makeArray(this.options.prepend)),t.isArray(this.prependData)&&t.isArray(this.sourceData)&&(this.sourceData=this.prependData.concat(this.sourceData)))},renderList:function(){},value2htmlFinal:function(t,e){},makeArray:function(e){var n,i,r,o,a=[];if(!e||"string"==typeof e)return null;if(t.isArray(e)){o=function(t,e){if(i={value:t,text:e},n++>=2)return!1};for(var s=0;s<e.length;s++)r=e[s],"object"==typeof r?(n=0,t.each(r,o),1===n?a.push(i):n>1&&(r.children&&(r.children=this.makeArray(r.children)),a.push(r))):a.push({value:r,text:r})}else t.each(e,function(t,e){a.push({value:t,text:e})});return a},option:function(t,e){this.options[t]=e,"source"===t&&(this.sourceData=null),"prepend"===t&&(this.prependData=null)}}),e.defaults=t.extend({},t.fn.editabletypes.abstractinput.defaults,{source:null,prepend:!1,sourceError:"Error when loading list",sourceCache:!0,sourceOptions:null}),t.fn.editabletypes.list=e}(window.jQuery),function(t){"use strict";var e=function(t){this.init("text",t,e.defaults)};t.fn.editableutils.inherit(e,t.fn.editabletypes.abstractinput),t.extend(e.prototype,{render:function(){this.renderClear(),this.setClass(),this.setAttr("placeholder")},activate:function(){this.$input.is(":visible")&&(this.$input.focus(),t.fn.editableutils.setCursorPosition(this.$input.get(0),this.$input.val().length),this.toggleClear&&this.toggleClear())},renderClear:function(){this.options.clear&&(this.$clear=t('<span class="editable-clear-x"></span>'),this.$input.after(this.$clear).css("padding-right",24).keyup(t.proxy(function(e){if(!~t.inArray(e.keyCode,[40,38,9,13,27])){clearTimeout(this.t);var n=this;this.t=setTimeout(function(){n.toggleClear(e)},100)}},this)).parent().css("position","relative"),this.$clear.click(t.proxy(this.clear,this)))},postrender:function(){},toggleClear:function(t){if(this.$clear){var e=this.$input.val().length,n=this.$clear.is(":visible");e&&!n&&this.$clear.show(),!e&&n&&this.$clear.hide()}},clear:function(){this.$clear.hide(),this.$input.val("").focus()}}),e.defaults=t.extend({},t.fn.editabletypes.abstractinput.defaults,{tpl:'<input type="text">',placeholder:null,clear:!0}),t.fn.editabletypes.text=e}(window.jQuery),function(t){"use strict";var e=function(t){this.init("textarea",t,e.defaults)};t.fn.editableutils.inherit(e,t.fn.editabletypes.abstractinput),t.extend(e.prototype,{render:function(){this.setClass(),this.setAttr("placeholder"),this.setAttr("rows"),this.$input.keydown(function(e){e.ctrlKey&&13===e.which&&t(this).closest("form").submit()})},activate:function(){t.fn.editabletypes.text.prototype.activate.call(this)}}),e.defaults=t.extend({},t.fn.editabletypes.abstractinput.defaults,{tpl:"<textarea></textarea>",inputclass:"input-large",placeholder:null,rows:7}),t.fn.editabletypes.textarea=e}(window.jQuery),function(t){"use strict";var e=function(t){this.init("select",t,e.defaults)};t.fn.editableutils.inherit(e,t.fn.editabletypes.list),t.extend(e.prototype,{renderList:function(){this.$input.empty();var e=function(n,i){var r;if(t.isArray(i))for(var o=0;o<i.length;o++)r={},i[o].children?(r.label=i[o].text,n.append(e(t("<optgroup>",r),i[o].children))):(r.value=i[o].value,i[o].disabled&&(r.disabled=!0),n.append(t("<option>",r).text(i[o].text)));return n};e(this.$input,this.sourceData),this.setClass(),this.$input.on("keydown.editable",function(e){13===e.which&&t(this).closest("form").submit()})},value2htmlFinal:function(e,n){var i="",r=t.fn.editableutils.itemsByValue(e,this.sourceData);r.length&&(i=r[0].text),t.fn.editabletypes.abstractinput.prototype.value2html.call(this,i,n)},autosubmit:function(){this.$input.off("keydown.editable").on("change.editable",function(){t(this).closest("form").submit()})}}),e.defaults=t.extend({},t.fn.editabletypes.list.defaults,{tpl:"<select></select>"}),t.fn.editabletypes.select=e}(window.jQuery),function(t){"use strict";var e=function(t){this.init("checklist",t,e.defaults)};t.fn.editableutils.inherit(e,t.fn.editabletypes.list),t.extend(e.prototype,{renderList:function(){var e;if(this.$tpl.empty(),t.isArray(this.sourceData)){for(var n=0;n<this.sourceData.length;n++)e=t("<label>").append(t("<input>",{type:"checkbox",value:this.sourceData[n].value})).append(t("<span>").text(" "+this.sourceData[n].text)),t("<div>").append(e).appendTo(this.$tpl);this.$input=this.$tpl.find('input[type="checkbox"]'),this.setClass()}},value2str:function(e){return t.isArray(e)?e.sort().join(t.trim(this.options.separator)):""},str2value:function(e){var n,i=null;return"string"==typeof e&&e.length?(n=new RegExp("\\s*"+t.trim(this.options.separator)+"\\s*"),i=e.split(n)):i=t.isArray(e)?e:[e],i},value2input:function(e){this.$input.prop("checked",!1),t.isArray(e)&&e.length&&this.$input.each(function(n,i){var r=t(i);t.each(e,function(t,e){r.val()==e&&r.prop("checked",!0)})})},input2value:function(){var e=[];return this.$input.filter(":checked").each(function(n,i){e.push(t(i).val())}),e},value2htmlFinal:function(e,n){var i=[],r=t.fn.editableutils.itemsByValue(e,this.sourceData),o=this.options.escape;r.length?(t.each(r,function(e,n){var r=o?t.fn.editableutils.escape(n.text):n.text;i.push(r)}),t(n).html(i.join("<br>"))):t(n).empty()},activate:function(){this.$input.first().focus()},autosubmit:function(){this.$input.on("keydown",function(e){13===e.which&&t(this).closest("form").submit()})}}),e.defaults=t.extend({},t.fn.editabletypes.list.defaults,{tpl:'<div class="editable-checklist"></div>',inputclass:null,separator:","}),t.fn.editabletypes.checklist=e}(window.jQuery),function(t){"use strict";var e=function(t){this.init("password",t,e.defaults)};t.fn.editableutils.inherit(e,t.fn.editabletypes.text),t.extend(e.prototype,{value2html:function(e,n){e?t(n).text("[hidden]"):t(n).empty()},html2value:function(t){return null}}),e.defaults=t.extend({},t.fn.editabletypes.text.defaults,{tpl:'<input type="password">'}),t.fn.editabletypes.password=e}(window.jQuery),function(t){"use strict";var e=function(t){this.init("email",t,e.defaults)};t.fn.editableutils.inherit(e,t.fn.editabletypes.text),e.defaults=t.extend({},t.fn.editabletypes.text.defaults,{tpl:'<input type="email">'}),t.fn.editabletypes.email=e}(window.jQuery),function(t){"use strict";var e=function(t){this.init("url",t,e.defaults)};t.fn.editableutils.inherit(e,t.fn.editabletypes.text),e.defaults=t.extend({},t.fn.editabletypes.text.defaults,{tpl:'<input type="url">'}),t.fn.editabletypes.url=e}(window.jQuery),function(t){"use strict";var e=function(t){this.init("tel",t,e.defaults)};t.fn.editableutils.inherit(e,t.fn.editabletypes.text),e.defaults=t.extend({},t.fn.editabletypes.text.defaults,{tpl:'<input type="tel">'}),t.fn.editabletypes.tel=e}(window.jQuery),function(t){"use strict";var e=function(t){this.init("number",t,e.defaults)};t.fn.editableutils.inherit(e,t.fn.editabletypes.text),t.extend(e.prototype,{render:function(){e.superclass.render.call(this),this.setAttr("min"),this.setAttr("max"),this.setAttr("step")},postrender:function(){this.$clear&&this.$clear.css({right:24})}}),e.defaults=t.extend({},t.fn.editabletypes.text.defaults,{tpl:'<input type="number">',inputclass:"input-mini",min:null,max:null,step:null}),t.fn.editabletypes.number=e}(window.jQuery),function(t){"use strict";var e=function(t){this.init("range",t,e.defaults)};t.fn.editableutils.inherit(e,t.fn.editabletypes.number),t.extend(e.prototype,{render:function(){this.$input=this.$tpl.filter("input"),this.setClass(),this.setAttr("min"),this.setAttr("max"),this.setAttr("step"),this.$input.on("input",function(){t(this).siblings("output").text(t(this).val())})},activate:function(){this.$input.focus()}}),e.defaults=t.extend({},t.fn.editabletypes.number.defaults,{tpl:'<input type="range"><output style="width: 30px; display: inline-block"></output>',inputclass:"input-medium"}),t.fn.editabletypes.range=e}(window.jQuery),function(t){"use strict";var e=function(t){this.init("time",t,e.defaults)};t.fn.editableutils.inherit(e,t.fn.editabletypes.abstractinput),t.extend(e.prototype,{render:function(){this.setClass()}}),e.defaults=t.extend({},t.fn.editabletypes.abstractinput.defaults,{tpl:'<input type="time">'}),t.fn.editabletypes.time=e}(window.jQuery),function(t){"use strict";var e=function(n){if(this.init("select2",n,e.defaults),n.select2=n.select2||{},this.sourceData=null,n.placeholder&&(n.select2.placeholder=n.placeholder),!n.select2.tags&&n.source){var i=n.source;t.isFunction(n.source)&&(i=n.source.call(n.scope)),"string"==typeof i?(n.select2.ajax=n.select2.ajax||{},n.select2.ajax.data||(n.select2.ajax.data=function(t){return{query:t}}),n.select2.ajax.results||(n.select2.ajax.results=function(t){return{results:t}}),n.select2.ajax.url=i):(this.sourceData=this.convertSource(i),n.select2.data=this.sourceData)}if(this.options.select2=t.extend({},e.defaults.select2,n.select2),this.isMultiple=this.options.select2.tags||this.options.select2.multiple,this.isRemote="ajax"in this.options.select2,this.idFunc=this.options.select2.id,"function"!=typeof this.idFunc){var r=this.idFunc||"id";this.idFunc=function(t){return t[r]}}this.formatSelection=this.options.select2.formatSelection,"function"!=typeof this.formatSelection&&(this.formatSelection=function(t){return t.text})};t.fn.editableutils.inherit(e,t.fn.editabletypes.abstractinput),t.extend(e.prototype,{render:function(){this.setClass(),this.isRemote&&this.$input.on("select2-loaded",t.proxy(function(t){this.sourceData=t.items.results},this)),this.isMultiple&&this.$input.on("change",function(){t(this).closest("form").parent().triggerHandler("resize")})},value2html:function(n,i){var r,o="",a=this;this.options.select2.tags?r=n:this.sourceData&&(r=t.fn.editableutils.itemsByValue(n,this.sourceData,this.idFunc)),t.isArray(r)?(o=[],t.each(r,function(t,e){o.push(e&&"object"==typeof e?a.formatSelection(e):e)})):r&&(o=a.formatSelection(r)),o=t.isArray(o)?o.join(this.options.viewseparator):o,e.superclass.value2html.call(this,o,i)},html2value:function(t){return this.options.select2.tags?this.str2value(t,this.options.viewseparator):null},value2input:function(e){if(t.isArray(e)&&(e=e.join(this.getSeparator())),this.$input.data("select2")?this.$input.val(e).trigger("change",!0):(this.$input.val(e),this.$input.select2(this.options.select2)),this.isRemote&&!this.isMultiple&&!this.options.select2.initSelection){var n=this.options.select2.id,i=this.options.select2.formatSelection;if(!n&&!i){var r=t(this.options.scope);if(!r.data("editable").isEmpty){var o={id:e,text:r.text()};this.$input.select2("data",o)}}}},input2value:function(){return this.$input.select2("val")},str2value:function(e,n){if("string"!=typeof e||!this.isMultiple)return e;n=n||this.getSeparator();var i,r,o;if(null===e||e.length<1)return null;for(i=e.split(n),r=0,o=i.length;r<o;r+=1)i[r]=t.trim(i[r]);return i},autosubmit:function(){this.$input.on("change",function(e,n){n||t(this).closest("form").submit()})},getSeparator:function(){return this.options.select2.separator||t.fn.select2.defaults.separator},convertSource:function(e){if(t.isArray(e)&&e.length&&void 0!==e[0].value)for(var n=0;n<e.length;n++)void 0!==e[n].value&&(e[n].id=e[n].value,delete e[n].value);return e},destroy:function(){this.$input.data("select2")&&this.$input.select2("destroy")}}),e.defaults=t.extend({},t.fn.editabletypes.abstractinput.defaults,{tpl:'<input type="hidden">',select2:null,placeholder:null,source:null,
viewseparator:", "}),t.fn.editabletypes.select2=e}(window.jQuery),function(t){var e=function(e,n){if(this.$element=t(e),!this.$element.is("input"))return void t.error("Combodate should be applied to INPUT element");this.options=t.extend({},t.fn.combodate.defaults,n,this.$element.data()),this.init()};e.prototype={constructor:e,init:function(){this.map={day:["D","date"],month:["M","month"],year:["Y","year"],hour:["[Hh]","hours"],minute:["m","minutes"],second:["s","seconds"],ampm:["[Aa]",""]},this.$widget=t('<span class="combodate"></span>').html(this.getTemplate()),this.initCombos(),this.$widget.on("change","select",t.proxy(function(e){this.$element.val(this.getValue()).change(),this.options.smartDays&&(t(e.target).is(".month")||t(e.target).is(".year"))&&this.fillCombo("day")},this)),this.$widget.find("select").css("width","auto"),this.$element.hide().after(this.$widget),this.setValue(this.$element.val()||this.options.value)},getTemplate:function(){var e=this.options.template;return t.each(this.map,function(t,n){n=n[0];var i=new RegExp(n+"+"),r=n.length>1?n.substring(1,2):n;e=e.replace(i,"{"+r+"}")}),e=e.replace(/ /g,"&nbsp;"),t.each(this.map,function(t,n){n=n[0];var i=n.length>1?n.substring(1,2):n;e=e.replace("{"+i+"}",'<select class="'+t+'"></select>')}),e},initCombos:function(){for(var t in this.map){var e=this.$widget.find("."+t);this["$"+t]=e.length?e:null,this.fillCombo(t)}},fillCombo:function(t){var e=this["$"+t];if(e){var n="fill"+t.charAt(0).toUpperCase()+t.slice(1),i=this[n](),r=e.val();e.empty();for(var o=0;o<i.length;o++)e.append('<option value="'+i[o][0]+'">'+i[o][1]+"</option>");e.val(r)}},fillCommon:function(t){var e,n=[];if("name"===this.options.firstItem){e=moment.relativeTime||moment.langData()._relativeTime;var i="function"==typeof e[t]?e[t](1,!0,t,!1):e[t];i=i.split(" ").reverse()[0],n.push(["",i])}else"empty"===this.options.firstItem&&n.push(["",""]);return n},fillDay:function(){var t,e,n=this.fillCommon("d"),i=-1!==this.options.template.indexOf("DD"),r=31;if(this.options.smartDays&&this.$month&&this.$year){var o=parseInt(this.$month.val(),10),a=parseInt(this.$year.val(),10);isNaN(o)||isNaN(a)||(r=moment([a,o]).daysInMonth())}for(e=1;e<=r;e++)t=i?this.leadZero(e):e,n.push([e,t]);return n},fillMonth:function(){var t,e,n=this.fillCommon("M"),i=-1!==this.options.template.indexOf("MMMM"),r=-1!==this.options.template.indexOf("MMM"),o=-1!==this.options.template.indexOf("MM");for(e=0;e<=11;e++)t=i?moment().date(1).month(e).format("MMMM"):r?moment().date(1).month(e).format("MMM"):o?this.leadZero(e+1):e+1,n.push([e,t]);return n},fillYear:function(){var t,e,n=[],i=-1!==this.options.template.indexOf("YYYY");for(e=this.options.maxYear;e>=this.options.minYear;e--)t=i?e:(e+"").substring(2),n[this.options.yearDescending?"push":"unshift"]([e,t]);return n=this.fillCommon("y").concat(n)},fillHour:function(){var t,e,n=this.fillCommon("h"),i=-1!==this.options.template.indexOf("h"),r=(this.options.template.indexOf("H"),-1!==this.options.template.toLowerCase().indexOf("hh")),o=i?1:0,a=i?12:23;for(e=o;e<=a;e++)t=r?this.leadZero(e):e,n.push([e,t]);return n},fillMinute:function(){var t,e,n=this.fillCommon("m"),i=-1!==this.options.template.indexOf("mm");for(e=0;e<=59;e+=this.options.minuteStep)t=i?this.leadZero(e):e,n.push([e,t]);return n},fillSecond:function(){var t,e,n=this.fillCommon("s"),i=-1!==this.options.template.indexOf("ss");for(e=0;e<=59;e+=this.options.secondStep)t=i?this.leadZero(e):e,n.push([e,t]);return n},fillAmpm:function(){var t=-1!==this.options.template.indexOf("a");this.options.template.indexOf("A");return[["am",t?"am":"AM"],["pm",t?"pm":"PM"]]},getValue:function(e){var n,i={},r=this,o=!1;return t.each(this.map,function(t,e){if("ampm"!==t){var n="day"===t?1:0;return i[t]=r["$"+t]?parseInt(r["$"+t].val(),10):n,isNaN(i[t])?(o=!0,!1):void 0}}),o?"":(this.$ampm&&(12===i.hour?i.hour="am"===this.$ampm.val()?0:12:i.hour="am"===this.$ampm.val()?i.hour:i.hour+12),n=moment([i.year,i.month,i.day,i.hour,i.minute,i.second]),this.highlight(n),e=void 0===e?this.options.format:e,null===e?n.isValid()?n:null:n.isValid()?n.format(e):"")},setValue:function(e){function n(e,n){var i={};return e.children("option").each(function(e,r){var o,a=t(r).attr("value");""!==a&&(o=Math.abs(a-n),(void 0===i.distance||o<i.distance)&&(i={value:a,distance:o}))}),i.value}if(e){var i="string"==typeof e?moment(e,this.options.format):moment(e),r=this,o={};i.isValid()&&(t.each(this.map,function(t,e){"ampm"!==t&&(o[t]=i[e[1]]())}),this.$ampm&&(o.hour>=12?(o.ampm="pm",o.hour>12&&(o.hour-=12)):(o.ampm="am",0===o.hour&&(o.hour=12))),t.each(o,function(t,e){r["$"+t]&&("minute"===t&&r.options.minuteStep>1&&r.options.roundTime&&(e=n(r["$"+t],e)),"second"===t&&r.options.secondStep>1&&r.options.roundTime&&(e=n(r["$"+t],e)),r["$"+t].val(e))}),this.options.smartDays&&this.fillCombo("day"),this.$element.val(i.format(this.options.format)).change())}},highlight:function(t){t.isValid()?this.options.errorClass?this.$widget.removeClass(this.options.errorClass):this.$widget.find("select").css("border-color",this.borderColor):this.options.errorClass?this.$widget.addClass(this.options.errorClass):(this.borderColor||(this.borderColor=this.$widget.find("select").css("border-color")),this.$widget.find("select").css("border-color","red"))},leadZero:function(t){return t<=9?"0"+t:t},destroy:function(){this.$widget.remove(),this.$element.removeData("combodate").show()}},t.fn.combodate=function(n){var i,r=Array.apply(null,arguments);return r.shift(),"getValue"===n&&this.length&&(i=this.eq(0).data("combodate"))?i.getValue.apply(i,r):this.each(function(){var i=t(this),o=i.data("combodate"),a="object"==typeof n&&n;o||i.data("combodate",o=new e(this,a)),"string"==typeof n&&"function"==typeof o[n]&&o[n].apply(o,r)})},t.fn.combodate.defaults={format:"DD-MM-YYYY HH:mm",template:"D / MMM / YYYY H : mm",value:null,minYear:1970,maxYear:2015,yearDescending:!0,minuteStep:5,secondStep:1,firstItem:"empty",errorClass:null,roundTime:!0,smartDays:!1}}(window.jQuery),function(t){"use strict";var e=function(n){this.init("combodate",n,e.defaults),this.options.viewformat||(this.options.viewformat=this.options.format),n.combodate=t.fn.editableutils.tryParseJson(n.combodate,!0),this.options.combodate=t.extend({},e.defaults.combodate,n.combodate,{format:this.options.format,template:this.options.template})};t.fn.editableutils.inherit(e,t.fn.editabletypes.abstractinput),t.extend(e.prototype,{render:function(){this.$input.combodate(this.options.combodate),"bs3"===t.fn.editableform.engine&&this.$input.siblings().find("select").addClass("form-control"),this.options.inputclass&&this.$input.siblings().find("select").addClass(this.options.inputclass)},value2html:function(t,n){var i=t?t.format(this.options.viewformat):"";e.superclass.value2html.call(this,i,n)},html2value:function(t){return t?moment(t,this.options.viewformat):null},value2str:function(t){return t?t.format(this.options.format):""},str2value:function(t){return t?moment(t,this.options.format):null},value2submit:function(t){return this.value2str(t)},value2input:function(t){this.$input.combodate("setValue",t)},input2value:function(){return this.$input.combodate("getValue",null)},activate:function(){this.$input.siblings(".combodate").find("select").eq(0).focus()},autosubmit:function(){}}),e.defaults=t.extend({},t.fn.editabletypes.abstractinput.defaults,{tpl:'<input type="text">',inputclass:null,format:"YYYY-MM-DD",viewformat:null,template:"D / MMM / YYYY",combodate:null}),t.fn.editabletypes.combodate=e}(window.jQuery),function(t){"use strict";var e=t.fn.editableform.Constructor.prototype.initInput;t.extend(t.fn.editableform.Constructor.prototype,{initTemplate:function(){this.$form=t(t.fn.editableform.template),this.$form.find(".control-group").addClass("form-group"),this.$form.find(".editable-error-block").addClass("help-block")},initInput:function(){e.apply(this);var n=null===this.input.options.inputclass||!1===this.input.options.inputclass,i="text,select,textarea,password,email,url,tel,number,range,time,typeaheadjs".split(",");~t.inArray(this.input.type,i)&&(this.input.$input.addClass("form-control"),n&&(this.input.options.inputclass="input-sm",this.input.$input.addClass("input-sm")));for(var r=this.$form.find(".editable-buttons"),o=n?["input-sm"]:this.input.options.inputclass.split(" "),a=0;a<o.length;a++)"input-lg"===o[a].toLowerCase()&&r.find("button").removeClass("btn-sm").addClass("btn-lg")}}),t.fn.editableform.buttons='<button type="submit" class="btn btn-primary btn-sm editable-submit"><i class="glyphicon glyphicon-ok"></i></button><button type="button" class="btn btn-default btn-sm editable-cancel"><i class="glyphicon glyphicon-remove"></i></button>',t.fn.editableform.errorGroupClass="has-error",t.fn.editableform.errorBlockClass=null,t.fn.editableform.engine="bs3"}(window.jQuery),function(t){"use strict";t.extend(t.fn.editableContainer.Popup.prototype,{containerName:"popover",containerDataName:"bs.popover",innerCss:".popover-content",defaults:t.fn.popover.Constructor.DEFAULTS,initContainer:function(){t.extend(this.containerOptions,{trigger:"manual",selector:!1,content:" ",template:this.defaults.template});var e;this.$element.data("template")&&(e=this.$element.data("template"),this.$element.removeData("template")),this.call(this.containerOptions),e&&this.$element.data("template",e)},innerShow:function(){this.call("show")},innerHide:function(){this.call("hide")},innerDestroy:function(){this.call("destroy")},setContainerOption:function(t,e){this.container().options[t]=e},setPosition:function(){(function(){var t=this.tip(),e="function"==typeof this.options.placement?this.options.placement.call(this,t[0],this.$element[0]):this.options.placement,n=/\s?auto?\s?/i,i=n.test(e);i&&(e=e.replace(n,"")||"top");var r=this.getPosition(),o=t[0].offsetWidth,a=t[0].offsetHeight;if(i){var s=this.$element.parent(),l=e,u=document.documentElement.scrollTop||document.body.scrollTop,c="body"==this.options.container?window.innerWidth:s.outerWidth(),d="body"==this.options.container?window.innerHeight:s.outerHeight(),h="body"==this.options.container?0:s.offset().left;e="bottom"==e&&r.top+r.height+a-u>d?"top":"top"==e&&r.top-u-a<0?"bottom":"right"==e&&r.right+o>c?"left":"left"==e&&r.left-o<h?"right":e,t.removeClass(l).addClass(e)}var f=this.getCalculatedOffset(e,r,o,a);this.applyPlacement(f,e)}).call(this.container())}})}(window.jQuery),function(t){function e(){return new Date(Date.UTC.apply(Date,arguments))}function n(e,n){var i,r=t(e).data(),o={},a=new RegExp("^"+n.toLowerCase()+"([A-Z])"),n=new RegExp("^"+n.toLowerCase());for(var s in r)n.test(s)&&(i=s.replace(a,function(t,e){return e.toLowerCase()}),o[i]=r[s]);return o}function i(e){var n={};if(c[e]||(e=e.split("-")[0],c[e])){var i=c[e];return t.each(u,function(t,e){e in i&&(n[e]=i[e])}),n}}var r=function(e,n){this._process_options(n),this.element=t(e),this.isInline=!1,this.isInput=this.element.is("input"),this.component=!!this.element.is(".date")&&this.element.find(".add-on, .btn"),this.hasInput=this.component&&this.element.find("input").length,this.component&&0===this.component.length&&(this.component=!1),this.picker=t(d.template),this._buildEvents(),this._attachEvents(),this.isInline?this.picker.addClass("datepicker-inline").appendTo(this.element):this.picker.addClass("datepicker-dropdown dropdown-menu"),this.o.rtl&&(this.picker.addClass("datepicker-rtl"),this.picker.find(".prev i, .next i").toggleClass("icon-arrow-left icon-arrow-right")),this.viewMode=this.o.startView,this.o.calendarWeeks&&this.picker.find("tfoot th.today").attr("colspan",function(t,e){return parseInt(e)+1}),this._allow_update=!1,this.setStartDate(this.o.startDate),this.setEndDate(this.o.endDate),this.setDaysOfWeekDisabled(this.o.daysOfWeekDisabled),this.fillDow(),this.fillMonths(),this._allow_update=!0,this.update(),this.showMode(),this.isInline&&this.show()};r.prototype={constructor:r,_process_options:function(e){this._o=t.extend({},this._o,e);var n=this.o=t.extend({},this._o),i=n.language;switch(c[i]||(i=i.split("-")[0],c[i]||(i=l.language)),n.language=i,n.startView){case 2:case"decade":n.startView=2;break;case 1:case"year":n.startView=1;break;default:n.startView=0}switch(n.minViewMode){case 1:case"months":n.minViewMode=1;break;case 2:case"years":n.minViewMode=2;break;default:n.minViewMode=0}n.startView=Math.max(n.startView,n.minViewMode),n.weekStart%=7,n.weekEnd=(n.weekStart+6)%7;var r=d.parseFormat(n.format);n.startDate!==-1/0&&(n.startDate=d.parseDate(n.startDate,r,n.language)),n.endDate!==1/0&&(n.endDate=d.parseDate(n.endDate,r,n.language)),n.daysOfWeekDisabled=n.daysOfWeekDisabled||[],t.isArray(n.daysOfWeekDisabled)||(n.daysOfWeekDisabled=n.daysOfWeekDisabled.split(/[,\s]*/)),n.daysOfWeekDisabled=t.map(n.daysOfWeekDisabled,function(t){return parseInt(t,10)})},_events:[],_secondaryEvents:[],_applyEvents:function(t){for(var e,n,i=0;i<t.length;i++)e=t[i][0],n=t[i][1],e.on(n)},_unapplyEvents:function(t){for(var e,n,i=0;i<t.length;i++)e=t[i][0],n=t[i][1],e.off(n)},_buildEvents:function(){this.isInput?this._events=[[this.element,{focus:t.proxy(this.show,this),keyup:t.proxy(this.update,this),keydown:t.proxy(this.keydown,this)}]]:this.component&&this.hasInput?this._events=[[this.element.find("input"),{focus:t.proxy(this.show,this),keyup:t.proxy(this.update,this),keydown:t.proxy(this.keydown,this)}],[this.component,{click:t.proxy(this.show,this)}]]:this.element.is("div")?this.isInline=!0:this._events=[[this.element,{click:t.proxy(this.show,this)}]],this._secondaryEvents=[[this.picker,{click:t.proxy(this.click,this)}],[t(window),{resize:t.proxy(this.place,this)}],[t(document),{mousedown:t.proxy(function(t){this.element.is(t.target)||this.element.find(t.target).size()||this.picker.is(t.target)||this.picker.find(t.target).size()||this.hide()},this)}]]},_attachEvents:function(){this._detachEvents(),this._applyEvents(this._events)},_detachEvents:function(){this._unapplyEvents(this._events)},_attachSecondaryEvents:function(){this._detachSecondaryEvents(),this._applyEvents(this._secondaryEvents)},_detachSecondaryEvents:function(){this._unapplyEvents(this._secondaryEvents)},_trigger:function(e,n){var i=n||this.date,r=new Date(i.getTime()+6e4*i.getTimezoneOffset());this.element.trigger({type:e,date:r,format:t.proxy(function(t){var e=t||this.o.format;return d.formatDate(i,e,this.o.language)},this)})},show:function(t){this.isInline||this.picker.appendTo("body"),this.picker.show(),this.height=this.component?this.component.outerHeight():this.element.outerHeight(),this.place(),this._attachSecondaryEvents(),t&&t.preventDefault(),this._trigger("show")},hide:function(t){this.isInline||this.picker.is(":visible")&&(this.picker.hide().detach(),this._detachSecondaryEvents(),this.viewMode=this.o.startView,this.showMode(),this.o.forceParse&&(this.isInput&&this.element.val()||this.hasInput&&this.element.find("input").val())&&this.setValue(),this._trigger("hide"))},remove:function(){this.hide(),this._detachEvents(),this._detachSecondaryEvents(),this.picker.remove(),delete this.element.data().datepicker,this.isInput||delete this.element.data().date},getDate:function(){var t=this.getUTCDate();return new Date(t.getTime()+6e4*t.getTimezoneOffset())},getUTCDate:function(){return this.date},setDate:function(t){this.setUTCDate(new Date(t.getTime()-6e4*t.getTimezoneOffset()))},setUTCDate:function(t){this.date=t,this.setValue()},setValue:function(){var t=this.getFormattedDate();this.isInput?this.element.val(t):this.component&&this.element.find("input").val(t)},getFormattedDate:function(t){return void 0===t&&(t=this.o.format),d.formatDate(this.date,t,this.o.language)},setStartDate:function(t){this._process_options({startDate:t}),this.update(),this.updateNavArrows()},setEndDate:function(t){this._process_options({endDate:t}),this.update(),this.updateNavArrows()},setDaysOfWeekDisabled:function(t){this._process_options({daysOfWeekDisabled:t}),this.update(),this.updateNavArrows()},place:function(){if(!this.isInline){var e=parseInt(this.element.parents().filter(function(){return"auto"!=t(this).css("z-index")}).first().css("z-index"))+10,n=this.component?this.component.parent().offset():this.element.offset(),i=this.component?this.component.outerHeight(!0):this.element.outerHeight(!0);this.picker.css({top:n.top+i,left:n.left,zIndex:e})}},_allow_update:!0,update:function(){if(this._allow_update){var t,e=!1;arguments&&arguments.length&&("string"==typeof arguments[0]||arguments[0]instanceof Date)?(t=arguments[0],e=!0):(t=this.isInput?this.element.val():this.element.data("date")||this.element.find("input").val(),delete this.element.data().date),this.date=d.parseDate(t,this.o.format,this.o.language),e&&this.setValue(),this.date<this.o.startDate?this.viewDate=new Date(this.o.startDate):this.date>this.o.endDate?this.viewDate=new Date(this.o.endDate):this.viewDate=new Date(this.date),this.fill()}},fillDow:function(){var t=this.o.weekStart,e="<tr>";if(this.o.calendarWeeks){var n='<th class="cw">&nbsp;</th>';e+=n,this.picker.find(".datepicker-days thead tr:first-child").prepend(n)}for(;t<this.o.weekStart+7;)e+='<th class="dow">'+c[this.o.language].daysMin[t++%7]+"</th>";e+="</tr>",this.picker.find(".datepicker-days thead").append(e)},fillMonths:function(){for(var t="",e=0;e<12;)t+='<span class="month">'+c[this.o.language].monthsShort[e++]+"</span>";this.picker.find(".datepicker-months td").html(t)},setRange:function(e){e&&e.length?this.range=t.map(e,function(t){return t.valueOf()}):delete this.range,this.fill()},getClassNames:function(e){var n=[],i=this.viewDate.getUTCFullYear(),r=this.viewDate.getUTCMonth(),o=this.date.valueOf(),a=new Date;return e.getUTCFullYear()<i||e.getUTCFullYear()==i&&e.getUTCMonth()<r?n.push("old"):(e.getUTCFullYear()>i||e.getUTCFullYear()==i&&e.getUTCMonth()>r)&&n.push("new"),this.o.todayHighlight&&e.getUTCFullYear()==a.getFullYear()&&e.getUTCMonth()==a.getMonth()&&e.getUTCDate()==a.getDate()&&n.push("today"),o&&e.valueOf()==o&&n.push("active"),(e.valueOf()<this.o.startDate||e.valueOf()>this.o.endDate||-1!==t.inArray(e.getUTCDay(),this.o.daysOfWeekDisabled))&&n.push("disabled"),this.range&&(e>this.range[0]&&e<this.range[this.range.length-1]&&n.push("range"),-1!=t.inArray(e.valueOf(),this.range)&&n.push("selected")),n},fill:function(){var n,i=new Date(this.viewDate),r=i.getUTCFullYear(),o=i.getUTCMonth(),a=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,s=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,l=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,u=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0;this.date&&this.date.valueOf();this.picker.find(".datepicker-days thead th.datepicker-switch").text(c[this.o.language].months[o]+" "+r),this.picker.find("tfoot th.today").text(c[this.o.language].today).toggle(!1!==this.o.todayBtn),this.picker.find("tfoot th.clear").text(c[this.o.language].clear).toggle(!1!==this.o.clearBtn),this.updateNavArrows(),this.fillMonths();var h=e(r,o-1,28,0,0,0,0),f=d.getDaysInMonth(h.getUTCFullYear(),h.getUTCMonth());h.setUTCDate(f),h.setUTCDate(f-(h.getUTCDay()-this.o.weekStart+7)%7);var p=new Date(h);p.setUTCDate(p.getUTCDate()+42),p=p.valueOf();for(var m,g=[];h.valueOf()<p;){if(h.getUTCDay()==this.o.weekStart&&(g.push("<tr>"),this.o.calendarWeeks)){var v=new Date(+h+(this.o.weekStart-h.getUTCDay()-7)%7*864e5),y=new Date(+v+(11-v.getUTCDay())%7*864e5),b=new Date(+(b=e(y.getUTCFullYear(),0,1))+(11-b.getUTCDay())%7*864e5),w=(y-b)/864e5/7+1;g.push('<td class="cw">'+w+"</td>")}m=this.getClassNames(h),m.push("day");var _=this.o.beforeShowDay(h);void 0===_?_={}:"boolean"==typeof _?_={enabled:_}:"string"==typeof _&&(_={classes:_}),!1===_.enabled&&m.push("disabled"),_.classes&&(m=m.concat(_.classes.split(/\s+/))),_.tooltip&&(n=_.tooltip),m=t.unique(m),g.push('<td class="'+m.join(" ")+'"'+(n?' title="'+n+'"':"")+">"+h.getUTCDate()+"</td>"),h.getUTCDay()==this.o.weekEnd&&g.push("</tr>"),h.setUTCDate(h.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").empty().append(g.join(""));var x=this.date&&this.date.getUTCFullYear(),D=this.picker.find(".datepicker-months").find("th:eq(1)").text(r).end().find("span").removeClass("active");x&&x==r&&D.eq(this.date.getUTCMonth()).addClass("active"),(r<a||r>l)&&D.addClass("disabled"),r==a&&D.slice(0,s).addClass("disabled"),r==l&&D.slice(u+1).addClass("disabled"),g="",r=10*parseInt(r/10,10);var k=this.picker.find(".datepicker-years").find("th:eq(1)").text(r+"-"+(r+9)).end().find("td");r-=1;for(var C=-1;C<11;C++)g+='<span class="year'+(-1==C?" old":10==C?" new":"")+(x==r?" active":"")+(r<a||r>l?" disabled":"")+'">'+r+"</span>",r+=1;k.html(g)},updateNavArrows:function(){if(this._allow_update){var t=new Date(this.viewDate),e=t.getUTCFullYear(),n=t.getUTCMonth();switch(this.viewMode){case 0:this.o.startDate!==-1/0&&e<=this.o.startDate.getUTCFullYear()&&n<=this.o.startDate.getUTCMonth()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),this.o.endDate!==1/0&&e>=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:this.o.startDate!==-1/0&&e<=this.o.startDate.getUTCFullYear()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),this.o.endDate!==1/0&&e>=this.o.endDate.getUTCFullYear()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"})}}},click:function(n){n.preventDefault();var i=t(n.target).closest("span, td, th");if(1==i.length)switch(i[0].nodeName.toLowerCase()){case"th":switch(i[0].className){case"datepicker-switch":this.showMode(1);break;case"prev":case"next":var r=d.modes[this.viewMode].navStep*("prev"==i[0].className?-1:1);switch(this.viewMode){case 0:this.viewDate=this.moveMonth(this.viewDate,r);break;case 1:case 2:this.viewDate=this.moveYear(this.viewDate,r)}this.fill();break;case"today":var o=new Date;o=e(o.getFullYear(),o.getMonth(),o.getDate(),0,0,0),this.showMode(-2);var a="linked"==this.o.todayBtn?null:"view";this._setDate(o,a);break;case"clear":var s;this.isInput?s=this.element:this.component&&(s=this.element.find("input")),s&&s.val("").change(),this._trigger("changeDate"),this.update(),this.o.autoclose&&this.hide()}break;case"span":if(!i.is(".disabled")){if(this.viewDate.setUTCDate(1),i.is(".month")){var l=1,u=i.parent().find("span").index(i),c=this.viewDate.getUTCFullYear();this.viewDate.setUTCMonth(u),this._trigger("changeMonth",this.viewDate),1===this.o.minViewMode&&this._setDate(e(c,u,l,0,0,0,0))}else{var c=parseInt(i.text(),10)||0,l=1,u=0;this.viewDate.setUTCFullYear(c),this._trigger("changeYear",this.viewDate),2===this.o.minViewMode&&this._setDate(e(c,u,l,0,0,0,0))}this.showMode(-1),this.fill()}break;case"td":if(i.is(".day")&&!i.is(".disabled")){var l=parseInt(i.text(),10)||1,c=this.viewDate.getUTCFullYear(),u=this.viewDate.getUTCMonth();i.is(".old")?0===u?(u=11,c-=1):u-=1:i.is(".new")&&(11==u?(u=0,c+=1):u+=1),this._setDate(e(c,u,l,0,0,0,0))}}},_setDate:function(t,e){e&&"date"!=e||(this.date=new Date(t)),e&&"view"!=e||(this.viewDate=new Date(t)),this.fill(),this.setValue(),this._trigger("changeDate");var n;this.isInput?n=this.element:this.component&&(n=this.element.find("input")),n&&(n.change(),!this.o.autoclose||e&&"date"!=e||this.hide())},moveMonth:function(t,e){if(!e)return t;var n,i,r=new Date(t.valueOf()),o=r.getUTCDate(),a=r.getUTCMonth(),s=Math.abs(e);if(e=e>0?1:-1,1==s)i=-1==e?function(){return r.getUTCMonth()==a}:function(){return r.getUTCMonth()!=n},n=a+e,r.setUTCMonth(n),(n<0||n>11)&&(n=(n+12)%12);else{for(var l=0;l<s;l++)r=this.moveMonth(r,e);n=r.getUTCMonth(),r.setUTCDate(o),i=function(){return n!=r.getUTCMonth()}}for(;i();)r.setUTCDate(--o),r.setUTCMonth(n);return r},moveYear:function(t,e){return this.moveMonth(t,12*e)},dateWithinRange:function(t){return t>=this.o.startDate&&t<=this.o.endDate},keydown:function(t){if(this.picker.is(":not(:visible)"))return void(27==t.keyCode&&this.show());var e,n,i,r=!1;switch(t.keyCode){case 27:this.hide(),t.preventDefault();break;case 37:case 39:if(!this.o.keyboardNavigation)break;e=37==t.keyCode?-1:1,t.ctrlKey?(n=this.moveYear(this.date,e),i=this.moveYear(this.viewDate,e)):t.shiftKey?(n=this.moveMonth(this.date,e),i=this.moveMonth(this.viewDate,e)):(n=new Date(this.date),n.setUTCDate(this.date.getUTCDate()+e),i=new Date(this.viewDate),i.setUTCDate(this.viewDate.getUTCDate()+e)),this.dateWithinRange(n)&&(this.date=n,this.viewDate=i,this.setValue(),this.update(),t.preventDefault(),r=!0);break;case 38:case 40:if(!this.o.keyboardNavigation)break;e=38==t.keyCode?-1:1,t.ctrlKey?(n=this.moveYear(this.date,e),i=this.moveYear(this.viewDate,e)):t.shiftKey?(n=this.moveMonth(this.date,e),i=this.moveMonth(this.viewDate,e)):(n=new Date(this.date),n.setUTCDate(this.date.getUTCDate()+7*e),i=new Date(this.viewDate),i.setUTCDate(this.viewDate.getUTCDate()+7*e)),this.dateWithinRange(n)&&(this.date=n,this.viewDate=i,this.setValue(),this.update(),t.preventDefault(),r=!0);break;case 13:this.hide(),t.preventDefault();break;case 9:this.hide()}if(r){this._trigger("changeDate");var o;this.isInput?o=this.element:this.component&&(o=this.element.find("input")),o&&o.change()}},showMode:function(t){t&&(this.viewMode=Math.max(this.o.minViewMode,Math.min(2,this.viewMode+t))),this.picker.find(">div").hide().filter(".datepicker-"+d.modes[this.viewMode].clsName).css("display","block"),this.updateNavArrows()}};var o=function(e,n){this.element=t(e),this.inputs=t.map(n.inputs,function(t){return t.jquery?t[0]:t}),delete n.inputs,t(this.inputs).datepicker(n).bind("changeDate",t.proxy(this.dateUpdated,this)),this.pickers=t.map(this.inputs,function(e){return t(e).data("datepicker")}),this.updateDates()};o.prototype={updateDates:function(){this.dates=t.map(this.pickers,function(t){return t.date}),this.updateRanges()},updateRanges:function(){var e=t.map(this.dates,function(t){return t.valueOf()});t.each(this.pickers,function(t,n){n.setRange(e)})},dateUpdated:function(e){var n=t(e.target).data("datepicker"),i=n.getUTCDate(),r=t.inArray(e.target,this.inputs),o=this.inputs.length;if(-1!=r){if(i<this.dates[r])for(;r>=0&&i<this.dates[r];)this.pickers[r--].setUTCDate(i);else if(i>this.dates[r])for(;r<o&&i>this.dates[r];)this.pickers[r++].setUTCDate(i);this.updateDates()}},remove:function(){t.map(this.pickers,function(t){t.remove()}),delete this.element.data().datepicker}};var a=t.fn.datepicker,s=t.fn.datepicker=function(e){var a=Array.apply(null,arguments);a.shift();var s;return this.each(function(){var u=t(this),c=u.data("datepicker"),d="object"==typeof e&&e;if(!c){var h=n(this,"date"),f=t.extend({},l,h,d),p=i(f.language),m=t.extend({},l,p,h,d);if(u.is(".input-daterange")||m.inputs){var g={inputs:m.inputs||u.find("input").toArray()};u.data("datepicker",c=new o(this,t.extend(m,g)))}else u.data("datepicker",c=new r(this,m))}if("string"==typeof e&&"function"==typeof c[e]&&void 0!==(s=c[e].apply(c,a)))return!1}),void 0!==s?s:this},l=t.fn.datepicker.defaults={autoclose:!1,beforeShowDay:t.noop,calendarWeeks:!1,clearBtn:!1,daysOfWeekDisabled:[],endDate:1/0,forceParse:!0,format:"mm/dd/yyyy",keyboardNavigation:!0,language:"en",minViewMode:0,rtl:!1,startDate:-1/0,startView:0,todayBtn:!1,todayHighlight:!1,weekStart:0},u=t.fn.datepicker.locale_opts=["format","rtl","weekStart"];t.fn.datepicker.Constructor=r;var c=t.fn.datepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa","Su"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear"}},d={modes:[{clsName:"days",navFnc:"Month",navStep:1},{clsName:"months",navFnc:"FullYear",navStep:1},{clsName:"years",navFnc:"FullYear",navStep:10}],isLeapYear:function(t){return t%4==0&&t%100!=0||t%400==0},getDaysInMonth:function(t,e){return[31,d.isLeapYear(t)?29:28,31,30,31,30,31,31,30,31,30,31][e]},validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\[\u3400-\u9fff-`{-~\t\n\r]+/g,parseFormat:function(t){var e=t.replace(this.validParts,"\0").split("\0"),n=t.match(this.validParts);if(!e||!e.length||!n||0===n.length)throw new Error("Invalid date format.");return{separators:e,parts:n}},parseDate:function(n,i,o){if(n instanceof Date)return n;if("string"==typeof i&&(i=d.parseFormat(i)),/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/.test(n)){var a,s,l=/([\-+]\d+)([dmwy])/,u=n.match(/([\-+]\d+)([dmwy])/g);n=new Date;for(var h=0;h<u.length;h++)switch(a=l.exec(u[h]),s=parseInt(a[1]),a[2]){case"d":n.setUTCDate(n.getUTCDate()+s);break;case"m":n=r.prototype.moveMonth.call(r.prototype,n,s);break;case"w":n.setUTCDate(n.getUTCDate()+7*s);break;case"y":n=r.prototype.moveYear.call(r.prototype,n,s)}return e(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),0,0,0)}var f,p,a,u=n&&n.match(this.nonpunctuation)||[],n=new Date,m={},g=["yyyy","yy","M","MM","m","mm","d","dd"],v={yyyy:function(t,e){return t.setUTCFullYear(e)},yy:function(t,e){return t.setUTCFullYear(2e3+e)},m:function(t,e){for(e-=1;e<0;)e+=12;for(e%=12,t.setUTCMonth(e);t.getUTCMonth()!=e;)t.setUTCDate(t.getUTCDate()-1);return t},d:function(t,e){return t.setUTCDate(e)}};v.M=v.MM=v.mm=v.m,v.dd=v.d,n=e(n.getFullYear(),n.getMonth(),n.getDate(),0,0,0);var y=i.parts.slice();if(u.length!=y.length&&(y=t(y).filter(function(e,n){return-1!==t.inArray(n,g)}).toArray()),u.length==y.length){for(var h=0,b=y.length;h<b;h++){if(f=parseInt(u[h],10),a=y[h],isNaN(f))switch(a){case"MM":p=t(c[o].months).filter(function(){var t=this.slice(0,u[h].length);return t==u[h].slice(0,t.length)}),f=t.inArray(p[0],c[o].months)+1;break;case"M":p=t(c[o].monthsShort).filter(function(){var t=this.slice(0,u[h].length);return t==u[h].slice(0,t.length)}),f=t.inArray(p[0],c[o].monthsShort)+1}m[a]=f}for(var w,h=0;h<g.length;h++)(w=g[h])in m&&!isNaN(m[w])&&v[w](n,m[w])}return n},formatDate:function(e,n,i){"string"==typeof n&&(n=d.parseFormat(n));var r={d:e.getUTCDate(),D:c[i].daysShort[e.getUTCDay()],DD:c[i].days[e.getUTCDay()],m:e.getUTCMonth()+1,M:c[i].monthsShort[e.getUTCMonth()],MM:c[i].months[e.getUTCMonth()],yy:e.getUTCFullYear().toString().substring(2),yyyy:e.getUTCFullYear()};r.dd=(r.d<10?"0":"")+r.d,r.mm=(r.m<10?"0":"")+r.m;for(var e=[],o=t.extend([],n.separators),a=0,s=n.parts.length;a<=s;a++)o.length&&e.push(o.shift()),e.push(r[n.parts[a]]);return e.join("")},headTemplate:'<thead><tr><th class="prev"><i class="icon-arrow-left"/></th><th colspan="5" class="datepicker-switch"></th><th class="next"><i class="icon-arrow-right"/></th></tr></thead>',contTemplate:'<tbody><tr><td colspan="7"></td></tr></tbody>',footTemplate:'<tfoot><tr><th colspan="7" class="today"></th></tr><tr><th colspan="7" class="clear"></th></tr></tfoot>'};d.template='<div class="datepicker"><div class="datepicker-days"><table class=" table-condensed">'+d.headTemplate+"<tbody></tbody>"+d.footTemplate+'</table></div><div class="datepicker-months"><table class="table-condensed">'+d.headTemplate+d.contTemplate+d.footTemplate+'</table></div><div class="datepicker-years"><table class="table-condensed">'+d.headTemplate+d.contTemplate+d.footTemplate+"</table></div></div>",t.fn.datepicker.DPGlobal=d,t.fn.datepicker.noConflict=function(){return t.fn.datepicker=a,this},t(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',function(e){var n=t(this);n.data("datepicker")||(e.preventDefault(),s.call(n,"show"))}),t(function(){s.call(t('[data-provide="datepicker-inline"]'))})}(window.jQuery),function(t){"use strict";t.fn.bdatepicker=t.fn.datepicker.noConflict(),t.fn.datepicker||(t.fn.datepicker=t.fn.bdatepicker);var e=function(t){this.init("date",t,e.defaults),this.initPicker(t,e.defaults)};t.fn.editableutils.inherit(e,t.fn.editabletypes.abstractinput),
t.extend(e.prototype,{initPicker:function(e,n){this.options.viewformat||(this.options.viewformat=this.options.format),e.datepicker=t.fn.editableutils.tryParseJson(e.datepicker,!0),this.options.datepicker=t.extend({},n.datepicker,e.datepicker,{format:this.options.viewformat}),this.options.datepicker.language=this.options.datepicker.language||"en",this.dpg=t.fn.bdatepicker.DPGlobal,this.parsedFormat=this.dpg.parseFormat(this.options.format),this.parsedViewFormat=this.dpg.parseFormat(this.options.viewformat)},render:function(){this.$input.bdatepicker(this.options.datepicker),this.options.clear&&(this.$clear=t('<a href="#"></a>').html(this.options.clear).click(t.proxy(function(t){t.preventDefault(),t.stopPropagation(),this.clear()},this)),this.$tpl.parent().append(t('<div class="editable-clear">').append(this.$clear)))},value2html:function(t,n){var i=t?this.dpg.formatDate(t,this.parsedViewFormat,this.options.datepicker.language):"";e.superclass.value2html.call(this,i,n)},html2value:function(t){return this.parseDate(t,this.parsedViewFormat)},value2str:function(t){return t?this.dpg.formatDate(t,this.parsedFormat,this.options.datepicker.language):""},str2value:function(t){return this.parseDate(t,this.parsedFormat)},value2submit:function(t){return this.value2str(t)},value2input:function(t){this.$input.bdatepicker("update",t)},input2value:function(){return this.$input.data("datepicker").date},activate:function(){},clear:function(){this.$input.data("datepicker").date=null,this.$input.find(".active").removeClass("active"),this.options.showbuttons||this.$input.closest("form").submit()},autosubmit:function(){this.$input.on("mouseup",".day",function(e){if(!t(e.currentTarget).is(".old")&&!t(e.currentTarget).is(".new")){var n=t(this).closest("form");setTimeout(function(){n.submit()},200)}})},parseDate:function(t,e){var n,i=null;return t&&(i=this.dpg.parseDate(t,e,this.options.datepicker.language),"string"==typeof t&&(n=this.dpg.formatDate(i,e,this.options.datepicker.language),t!==n&&(i=null))),i}}),e.defaults=t.extend({},t.fn.editabletypes.abstractinput.defaults,{tpl:'<div class="editable-date well"></div>',inputclass:null,format:"yyyy-mm-dd",viewformat:null,datepicker:{weekStart:0,startView:0,minViewMode:0,autoclose:!1},clear:"&times; clear"}),t.fn.editabletypes.date=e}(window.jQuery),function(t){"use strict";var e=function(t){this.init("datefield",t,e.defaults),this.initPicker(t,e.defaults)};t.fn.editableutils.inherit(e,t.fn.editabletypes.date),t.extend(e.prototype,{render:function(){this.$input=this.$tpl.find("input"),this.setClass(),this.setAttr("placeholder"),this.$tpl.bdatepicker(this.options.datepicker),this.$input.off("focus keydown"),this.$input.keyup(t.proxy(function(){this.$tpl.removeData("date"),this.$tpl.bdatepicker("update")},this))},value2input:function(t){this.$input.val(t?this.dpg.formatDate(t,this.parsedViewFormat,this.options.datepicker.language):""),this.$tpl.bdatepicker("update")},input2value:function(){return this.html2value(this.$input.val())},activate:function(){t.fn.editabletypes.text.prototype.activate.call(this)},autosubmit:function(){}}),e.defaults=t.extend({},t.fn.editabletypes.date.defaults,{tpl:'<div class="input-append date"><input type="text"/><span class="add-on"><i class="icon-th"></i></span></div>',inputclass:"input-small",datepicker:{weekStart:0,startView:0,minViewMode:0,autoclose:!0}}),t.fn.editabletypes.datefield=e}(window.jQuery),function(t){"use strict";var e=function(t){this.init("datetime",t,e.defaults),this.initPicker(t,e.defaults)};t.fn.editableutils.inherit(e,t.fn.editabletypes.abstractinput),t.extend(e.prototype,{initPicker:function(e,n){this.options.viewformat||(this.options.viewformat=this.options.format),e.datetimepicker=t.fn.editableutils.tryParseJson(e.datetimepicker,!0),this.options.datetimepicker=t.extend({},n.datetimepicker,e.datetimepicker,{format:this.options.viewformat}),this.options.datetimepicker.language=this.options.datetimepicker.language||"en",this.dpg=t.fn.datetimepicker.DPGlobal,this.parsedFormat=this.dpg.parseFormat(this.options.format,this.options.formatType),this.parsedViewFormat=this.dpg.parseFormat(this.options.viewformat,this.options.formatType)},render:function(){this.$input.datetimepicker(this.options.datetimepicker),this.$input.on("changeMode",function(e){var n=t(this).closest("form").parent();setTimeout(function(){n.triggerHandler("resize")},0)}),this.options.clear&&(this.$clear=t('<a href="#"></a>').html(this.options.clear).click(t.proxy(function(t){t.preventDefault(),t.stopPropagation(),this.clear()},this)),this.$tpl.parent().append(t('<div class="editable-clear">').append(this.$clear)))},value2html:function(t,n){var i=t?this.dpg.formatDate(this.toUTC(t),this.parsedViewFormat,this.options.datetimepicker.language,this.options.formatType):"";if(!n)return i;e.superclass.value2html.call(this,i,n)},html2value:function(t){var e=this.parseDate(t,this.parsedViewFormat);return e?this.fromUTC(e):null},value2str:function(t){return t?this.dpg.formatDate(this.toUTC(t),this.parsedFormat,this.options.datetimepicker.language,this.options.formatType):""},str2value:function(t){var e=this.parseDate(t,this.parsedFormat);return e?this.fromUTC(e):null},value2submit:function(t){return this.value2str(t)},value2input:function(t){t&&this.$input.data("datetimepicker").setDate(t)},input2value:function(){var t=this.$input.data("datetimepicker");return t.date?t.getDate():null},activate:function(){},clear:function(){this.$input.data("datetimepicker").date=null,this.$input.find(".active").removeClass("active"),this.options.showbuttons||this.$input.closest("form").submit()},autosubmit:function(){this.$input.on("mouseup",".minute",function(e){var n=t(this).closest("form");setTimeout(function(){n.submit()},200)})},toUTC:function(t){return t?new Date(t.valueOf()-6e4*t.getTimezoneOffset()):t},fromUTC:function(t){return t?new Date(t.valueOf()+6e4*t.getTimezoneOffset()):t},parseDate:function(t,e){var n,i=null;return t&&(i=this.dpg.parseDate(t,e,this.options.datetimepicker.language,this.options.formatType),"string"==typeof t&&(n=this.dpg.formatDate(i,e,this.options.datetimepicker.language,this.options.formatType),t!==n&&(i=null))),i}}),e.defaults=t.extend({},t.fn.editabletypes.abstractinput.defaults,{tpl:'<div class="editable-date well"></div>',inputclass:null,format:"yyyy-mm-dd hh:ii",formatType:"standard",viewformat:null,datetimepicker:{todayHighlight:!1,autoclose:!1},clear:"&times; clear"}),t.fn.editabletypes.datetime=e}(window.jQuery),function(t){"use strict";var e=function(t){this.init("datetimefield",t,e.defaults),this.initPicker(t,e.defaults)};t.fn.editableutils.inherit(e,t.fn.editabletypes.datetime),t.extend(e.prototype,{render:function(){this.$input=this.$tpl.find("input"),this.setClass(),this.setAttr("placeholder"),this.$tpl.datetimepicker(this.options.datetimepicker),this.$input.off("focus keydown"),this.$input.keyup(t.proxy(function(){this.$tpl.removeData("date"),this.$tpl.datetimepicker("update")},this))},value2input:function(t){this.$input.val(this.value2html(t)),this.$tpl.datetimepicker("update")},input2value:function(){return this.html2value(this.$input.val())},activate:function(){t.fn.editabletypes.text.prototype.activate.call(this)},autosubmit:function(){}}),e.defaults=t.extend({},t.fn.editabletypes.datetime.defaults,{tpl:'<div class="input-append date"><input type="text"/><span class="add-on"><i class="icon-th"></i></span></div>',inputclass:"input-medium",datetimepicker:{todayHighlight:!1,autoclose:!0}}),t.fn.editabletypes.datetimefield=e}(window.jQuery),function(t){"use strict";if("function"==typeof define&&define.amd)define(["jquery","moment"],t);else if("object"==typeof exports)module.exports=t(require("jquery"),require("moment"));else{if("undefined"==typeof jQuery)throw"bootstrap-datetimepicker requires jQuery to be loaded first";if("undefined"==typeof moment)throw"bootstrap-datetimepicker requires Moment.js to be loaded first";t(jQuery,moment)}}(function(t,e){"use strict";if(!e)throw new Error("bootstrap-datetimepicker requires Moment.js to be loaded first");var n=function(n,i){var r,o,a,s,l,u,c,d={},h=!0,f=!1,p=!1,m=0,g=[{clsName:"days",navFnc:"M",navStep:1},{clsName:"months",navFnc:"y",navStep:1},{clsName:"years",navFnc:"y",navStep:10},{clsName:"decades",navFnc:"y",navStep:100}],v=["days","months","years","decades"],y=["top","bottom","auto"],b=["left","right","auto"],w=["default","top","bottom"],_={up:38,38:"up",down:40,40:"down",left:37,37:"left",right:39,39:"right",tab:9,9:"tab",escape:27,27:"escape",enter:13,13:"enter",pageUp:33,33:"pageUp",pageDown:34,34:"pageDown",shift:16,16:"shift",control:17,17:"control",space:32,32:"space",t:84,84:"t",delete:46,46:"delete"},x={},D=function(){return void 0!==e.tz&&void 0!==i.timeZone&&null!==i.timeZone&&""!==i.timeZone},k=function(t){var n;return n=void 0===t||null===t?e():e.isDate(t)||e.isMoment(t)?e(t):D()?e.tz(t,u,i.useStrict,i.timeZone):e(t,u,i.useStrict),D()&&n.tz(i.timeZone),n},C=function(t){if("string"!=typeof t||t.length>1)throw new TypeError("isEnabled expects a single character string parameter");switch(t){case"y":return-1!==l.indexOf("Y");case"M":return-1!==l.indexOf("M");case"d":return-1!==l.toLowerCase().indexOf("d");case"h":case"H":return-1!==l.toLowerCase().indexOf("h");case"m":return-1!==l.indexOf("m");case"s":return-1!==l.indexOf("s");default:return!1}},T=function(){return C("h")||C("m")||C("s")},S=function(){return C("y")||C("M")||C("d")},$=function(){var e=t("<thead>").append(t("<tr>").append(t("<th>").addClass("prev").attr("data-action","previous").append(t("<span>").addClass(i.icons.previous))).append(t("<th>").addClass("picker-switch").attr("data-action","pickerSwitch").attr("colspan",i.calendarWeeks?"6":"5")).append(t("<th>").addClass("next").attr("data-action","next").append(t("<span>").addClass(i.icons.next)))),n=t("<tbody>").append(t("<tr>").append(t("<td>").attr("colspan",i.calendarWeeks?"8":"7")));return[t("<div>").addClass("datepicker-days").append(t("<table>").addClass("table-condensed").append(e).append(t("<tbody>"))),t("<div>").addClass("datepicker-months").append(t("<table>").addClass("table-condensed").append(e.clone()).append(n.clone())),t("<div>").addClass("datepicker-years").append(t("<table>").addClass("table-condensed").append(e.clone()).append(n.clone())),t("<div>").addClass("datepicker-decades").append(t("<table>").addClass("table-condensed").append(e.clone()).append(n.clone()))]},E=function(){var e=t("<tr>"),n=t("<tr>"),r=t("<tr>");return C("h")&&(e.append(t("<td>").append(t("<a>").attr({href:"#",tabindex:"-1",title:i.tooltips.incrementHour}).addClass("btn").attr("data-action","incrementHours").append(t("<span>").addClass(i.icons.up)))),n.append(t("<td>").append(t("<span>").addClass("timepicker-hour").attr({"data-time-component":"hours",title:i.tooltips.pickHour}).attr("data-action","showHours"))),r.append(t("<td>").append(t("<a>").attr({href:"#",tabindex:"-1",title:i.tooltips.decrementHour}).addClass("btn").attr("data-action","decrementHours").append(t("<span>").addClass(i.icons.down))))),C("m")&&(C("h")&&(e.append(t("<td>").addClass("separator")),n.append(t("<td>").addClass("separator").html(":")),r.append(t("<td>").addClass("separator"))),e.append(t("<td>").append(t("<a>").attr({href:"#",tabindex:"-1",title:i.tooltips.incrementMinute}).addClass("btn").attr("data-action","incrementMinutes").append(t("<span>").addClass(i.icons.up)))),n.append(t("<td>").append(t("<span>").addClass("timepicker-minute").attr({"data-time-component":"minutes",title:i.tooltips.pickMinute}).attr("data-action","showMinutes"))),r.append(t("<td>").append(t("<a>").attr({href:"#",tabindex:"-1",title:i.tooltips.decrementMinute}).addClass("btn").attr("data-action","decrementMinutes").append(t("<span>").addClass(i.icons.down))))),C("s")&&(C("m")&&(e.append(t("<td>").addClass("separator")),n.append(t("<td>").addClass("separator").html(":")),r.append(t("<td>").addClass("separator"))),e.append(t("<td>").append(t("<a>").attr({href:"#",tabindex:"-1",title:i.tooltips.incrementSecond}).addClass("btn").attr("data-action","incrementSeconds").append(t("<span>").addClass(i.icons.up)))),n.append(t("<td>").append(t("<span>").addClass("timepicker-second").attr({"data-time-component":"seconds",title:i.tooltips.pickSecond}).attr("data-action","showSeconds"))),r.append(t("<td>").append(t("<a>").attr({href:"#",tabindex:"-1",title:i.tooltips.decrementSecond}).addClass("btn").attr("data-action","decrementSeconds").append(t("<span>").addClass(i.icons.down))))),s||(e.append(t("<td>").addClass("separator")),n.append(t("<td>").append(t("<button>").addClass("btn btn-primary").attr({"data-action":"togglePeriod",tabindex:"-1",title:i.tooltips.togglePeriod}))),r.append(t("<td>").addClass("separator"))),t("<div>").addClass("timepicker-picker").append(t("<table>").addClass("table-condensed").append([e,n,r]))},O=function(){var e=t("<div>").addClass("timepicker-hours").append(t("<table>").addClass("table-condensed")),n=t("<div>").addClass("timepicker-minutes").append(t("<table>").addClass("table-condensed")),i=t("<div>").addClass("timepicker-seconds").append(t("<table>").addClass("table-condensed")),r=[E()];return C("h")&&r.push(e),C("m")&&r.push(n),C("s")&&r.push(i),r},M=function(){var e=[];return i.showTodayButton&&e.push(t("<td>").append(t("<a>").attr({"data-action":"today",title:i.tooltips.today}).append(t("<span>").addClass(i.icons.today)))),!i.sideBySide&&S()&&T()&&e.push(t("<td>").append(t("<a>").attr({"data-action":"togglePicker",title:i.tooltips.selectTime}).append(t("<span>").addClass(i.icons.time)))),i.showClear&&e.push(t("<td>").append(t("<a>").attr({"data-action":"clear",title:i.tooltips.clear}).append(t("<span>").addClass(i.icons.clear)))),i.showClose&&e.push(t("<td>").append(t("<a>").attr({"data-action":"close",title:i.tooltips.close}).append(t("<span>").addClass(i.icons.close)))),t("<table>").addClass("table-condensed").append(t("<tbody>").append(t("<tr>").append(e)))},A=function(){var e=t("<div>").addClass("bootstrap-datetimepicker-widget dropdown-menu"),n=t("<div>").addClass("datepicker").append($()),r=t("<div>").addClass("timepicker").append(O()),o=t("<ul>").addClass("list-unstyled"),a=t("<li>").addClass("picker-switch"+(i.collapse?" accordion-toggle":"")).append(M());return i.inline&&e.removeClass("dropdown-menu"),s&&e.addClass("usetwentyfour"),C("s")&&!s&&e.addClass("wider"),i.sideBySide&&S()&&T()?(e.addClass("timepicker-sbs"),"top"===i.toolbarPlacement&&e.append(a),e.append(t("<div>").addClass("row").append(n.addClass("col-md-6")).append(r.addClass("col-md-6"))),"bottom"===i.toolbarPlacement&&e.append(a),e):("top"===i.toolbarPlacement&&o.append(a),S()&&o.append(t("<li>").addClass(i.collapse&&T()?"collapse in":"").append(n)),"default"===i.toolbarPlacement&&o.append(a),T()&&o.append(t("<li>").addClass(i.collapse&&S()?"collapse":"").append(r)),"bottom"===i.toolbarPlacement&&o.append(a),e.append(o))},j=function(){var e,r=(f||n).position(),o=(f||n).offset(),a=i.widgetPositioning.vertical,s=i.widgetPositioning.horizontal;if(i.widgetParent)e=i.widgetParent.append(p);else if(n.is("input"))e=n.after(p).parent();else{if(i.inline)return void(e=n.append(p));e=n,n.children().first().after(p)}if("auto"===a&&(a=o.top+1.5*p.height()>=t(window).height()+t(window).scrollTop()&&p.height()+n.outerHeight()<o.top?"top":"bottom"),"auto"===s&&(s=e.width()<o.left+p.outerWidth()/2&&o.left+p.outerWidth()>t(window).width()?"right":"left"),"top"===a?p.addClass("top").removeClass("bottom"):p.addClass("bottom").removeClass("top"),"right"===s?p.addClass("pull-right"):p.removeClass("pull-right"),"static"===e.css("position")&&(e=e.parents().filter(function(){return"static"!==t(this).css("position")}).first()),0===e.length)throw new Error("datetimepicker component should be placed within a non-static positioned container");p.css({top:"top"===a?"auto":r.top+n.outerHeight(),bottom:"top"===a?e.outerHeight()-(e===n?0:r.top):"auto",left:"left"===s?e===n?0:r.left:"auto",right:"left"===s?"auto":e.outerWidth()-n.outerWidth()-(e===n?0:r.left)})},N=function(t){"dp.change"===t.type&&(t.date&&t.date.isSame(t.oldDate)||!t.date&&!t.oldDate)||n.trigger(t)},I=function(t){"y"===t&&(t="YYYY"),N({type:"dp.update",change:t,viewDate:o.clone()})},P=function(t){p&&(t&&(c=Math.max(m,Math.min(3,c+t))),p.find(".datepicker > div").hide().filter(".datepicker-"+g[c].clsName).show())},L=function(){var e=t("<tr>"),n=o.clone().startOf("w").startOf("d");for(!0===i.calendarWeeks&&e.append(t("<th>").addClass("cw").text("#"));n.isBefore(o.clone().endOf("w"));)e.append(t("<th>").addClass("dow").text(n.format("dd"))),n.add(1,"d");p.find(".datepicker-days thead").append(e)},R=function(t){return!0===i.disabledDates[t.format("YYYY-MM-DD")]},H=function(t){return!0===i.enabledDates[t.format("YYYY-MM-DD")]},Y=function(t){return!0===i.disabledHours[t.format("H")]},F=function(t){return!0===i.enabledHours[t.format("H")]},U=function(e,n){if(!e.isValid())return!1;if(i.disabledDates&&"d"===n&&R(e))return!1;if(i.enabledDates&&"d"===n&&!H(e))return!1;if(i.minDate&&e.isBefore(i.minDate,n))return!1;if(i.maxDate&&e.isAfter(i.maxDate,n))return!1;if(i.daysOfWeekDisabled&&"d"===n&&-1!==i.daysOfWeekDisabled.indexOf(e.day()))return!1;if(i.disabledHours&&("h"===n||"m"===n||"s"===n)&&Y(e))return!1;if(i.enabledHours&&("h"===n||"m"===n||"s"===n)&&!F(e))return!1;if(i.disabledTimeIntervals&&("h"===n||"m"===n||"s"===n)){var r=!1;if(t.each(i.disabledTimeIntervals,function(){if(e.isBetween(this[0],this[1]))return r=!0,!1}),r)return!1}return!0},W=function(){for(var e=[],n=o.clone().startOf("y").startOf("d");n.isSame(o,"y");)e.push(t("<span>").attr("data-action","selectMonth").addClass("month").text(n.format("MMM"))),n.add(1,"M");p.find(".datepicker-months td").empty().append(e)},q=function(){var e=p.find(".datepicker-months"),n=e.find("th"),a=e.find("tbody").find("span");n.eq(0).find("span").attr("title",i.tooltips.prevYear),n.eq(1).attr("title",i.tooltips.selectYear),n.eq(2).find("span").attr("title",i.tooltips.nextYear),e.find(".disabled").removeClass("disabled"),U(o.clone().subtract(1,"y"),"y")||n.eq(0).addClass("disabled"),n.eq(1).text(o.year()),U(o.clone().add(1,"y"),"y")||n.eq(2).addClass("disabled"),a.removeClass("active"),r.isSame(o,"y")&&!h&&a.eq(r.month()).addClass("active"),a.each(function(e){U(o.clone().month(e),"M")||t(this).addClass("disabled")})},B=function(){var t=p.find(".datepicker-years"),e=t.find("th"),n=o.clone().subtract(5,"y"),a=o.clone().add(6,"y"),s="";for(e.eq(0).find("span").attr("title",i.tooltips.prevDecade),e.eq(1).attr("title",i.tooltips.selectDecade),e.eq(2).find("span").attr("title",i.tooltips.nextDecade),t.find(".disabled").removeClass("disabled"),i.minDate&&i.minDate.isAfter(n,"y")&&e.eq(0).addClass("disabled"),e.eq(1).text(n.year()+"-"+a.year()),i.maxDate&&i.maxDate.isBefore(a,"y")&&e.eq(2).addClass("disabled");!n.isAfter(a,"y");)s+='<span data-action="selectYear" class="year'+(n.isSame(r,"y")&&!h?" active":"")+(U(n,"y")?"":" disabled")+'">'+n.year()+"</span>",n.add(1,"y");t.find("td").html(s)},z=function(){var t,n=p.find(".datepicker-decades"),a=n.find("th"),s=e({y:o.year()-o.year()%100-1}),l=s.clone().add(100,"y"),u=s.clone(),c=!1,d=!1,h="";for(a.eq(0).find("span").attr("title",i.tooltips.prevCentury),a.eq(2).find("span").attr("title",i.tooltips.nextCentury),n.find(".disabled").removeClass("disabled"),(s.isSame(e({y:1900}))||i.minDate&&i.minDate.isAfter(s,"y"))&&a.eq(0).addClass("disabled"),a.eq(1).text(s.year()+"-"+l.year()),(s.isSame(e({y:2e3}))||i.maxDate&&i.maxDate.isBefore(l,"y"))&&a.eq(2).addClass("disabled");!s.isAfter(l,"y");)t=s.year()+12,c=i.minDate&&i.minDate.isAfter(s,"y")&&i.minDate.year()<=t,d=i.maxDate&&i.maxDate.isAfter(s,"y")&&i.maxDate.year()<=t,h+='<span data-action="selectDecade" class="decade'+(r.isAfter(s)&&r.year()<=t?" active":"")+(U(s,"y")||c||d?"":" disabled")+'" data-selection="'+(s.year()+6)+'">'+(s.year()+1)+" - "+(s.year()+12)+"</span>",s.add(12,"y");h+="<span></span><span></span><span></span>",n.find("td").html(h),a.eq(1).text(u.year()+1+"-"+s.year())},V=function(){var e,n,a,s=p.find(".datepicker-days"),l=s.find("th"),u=[],c=[];if(S()){for(l.eq(0).find("span").attr("title",i.tooltips.prevMonth),l.eq(1).attr("title",i.tooltips.selectMonth),l.eq(2).find("span").attr("title",i.tooltips.nextMonth),s.find(".disabled").removeClass("disabled"),l.eq(1).text(o.format(i.dayViewHeaderFormat)),U(o.clone().subtract(1,"M"),"M")||l.eq(0).addClass("disabled"),U(o.clone().add(1,"M"),"M")||l.eq(2).addClass("disabled"),e=o.clone().startOf("M").startOf("w").startOf("d"),a=0;a<42;a++)0===e.weekday()&&(n=t("<tr>"),i.calendarWeeks&&n.append('<td class="cw">'+e.week()+"</td>"),u.push(n)),c=["day"],e.isBefore(o,"M")&&c.push("old"),e.isAfter(o,"M")&&c.push("new"),e.isSame(r,"d")&&!h&&c.push("active"),U(e,"d")||c.push("disabled"),e.isSame(k(),"d")&&c.push("today"),0!==e.day()&&6!==e.day()||c.push("weekend"),N({type:"dp.classify",date:e,classNames:c}),n.append('<td data-action="selectDay" data-day="'+e.format("L")+'" class="'+c.join(" ")+'">'+e.date()+"</td>"),e.add(1,"d");s.find("tbody").empty().append(u),q(),B(),z()}},G=function(){var e=p.find(".timepicker-hours table"),n=o.clone().startOf("d"),i=[],r=t("<tr>");for(o.hour()>11&&!s&&n.hour(12);n.isSame(o,"d")&&(s||o.hour()<12&&n.hour()<12||o.hour()>11);)n.hour()%4==0&&(r=t("<tr>"),i.push(r)),r.append('<td data-action="selectHour" class="hour'+(U(n,"h")?"":" disabled")+'">'+n.format(s?"HH":"hh")+"</td>"),n.add(1,"h");e.empty().append(i)},Z=function(){for(var e=p.find(".timepicker-minutes table"),n=o.clone().startOf("h"),r=[],a=t("<tr>"),s=1===i.stepping?5:i.stepping;o.isSame(n,"h");)n.minute()%(4*s)==0&&(a=t("<tr>"),r.push(a)),a.append('<td data-action="selectMinute" class="minute'+(U(n,"m")?"":" disabled")+'">'+n.format("mm")+"</td>"),n.add(s,"m");e.empty().append(r)},Q=function(){for(var e=p.find(".timepicker-seconds table"),n=o.clone().startOf("m"),i=[],r=t("<tr>");o.isSame(n,"m");)n.second()%20==0&&(r=t("<tr>"),i.push(r)),r.append('<td data-action="selectSecond" class="second'+(U(n,"s")?"":" disabled")+'">'+n.format("ss")+"</td>"),n.add(5,"s");e.empty().append(i)},K=function(){var t,e,n=p.find(".timepicker span[data-time-component]");s||(t=p.find(".timepicker [data-action=togglePeriod]"),e=r.clone().add(r.hours()>=12?-12:12,"h"),t.text(r.format("A")),U(e,"h")?t.removeClass("disabled"):t.addClass("disabled")),n.filter("[data-time-component=hours]").text(r.format(s?"HH":"hh")),n.filter("[data-time-component=minutes]").text(r.format("mm")),n.filter("[data-time-component=seconds]").text(r.format("ss")),G(),Z(),Q()},J=function(){p&&(V(),K())},X=function(t){var e=h?null:r;if(!t)return h=!0,a.val(""),n.data("date",""),N({type:"dp.change",date:!1,oldDate:e}),void J();if(t=t.clone().locale(i.locale),D()&&t.tz(i.timeZone),1!==i.stepping)for(t.minutes(Math.round(t.minutes()/i.stepping)*i.stepping).seconds(0);i.minDate&&t.isBefore(i.minDate);)t.add(i.stepping,"minutes");U(t)?(r=t,o=r.clone(),a.val(r.format(l)),n.data("date",r.format(l)),h=!1,J(),N({type:"dp.change",date:r.clone(),oldDate:e})):(i.keepInvalid?N({type:"dp.change",date:t,oldDate:e}):a.val(h?"":r.format(l)),N({type:"dp.error",date:t,oldDate:e}))},tt=function(){var e=!1;return p?(p.find(".collapse").each(function(){var n=t(this).data("collapse");return!n||!n.transitioning||(e=!0,!1)}),e?d:(f&&f.hasClass("btn")&&f.toggleClass("active"),p.hide(),t(window).off("resize",j),p.off("click","[data-action]"),p.off("mousedown",!1),p.remove(),p=!1,N({type:"dp.hide",date:r.clone()}),a.blur(),o=r.clone(),d)):d},et=function(){X(null)},nt=function(t){return void 0===i.parseInputDate?(!e.isMoment(t)||t instanceof Date)&&(t=k(t)):t=i.parseInputDate(t),t},it={next:function(){var t=g[c].navFnc;o.add(g[c].navStep,t),V(),I(t)},previous:function(){var t=g[c].navFnc;o.subtract(g[c].navStep,t),V(),I(t)},pickerSwitch:function(){P(1)},selectMonth:function(e){var n=t(e.target).closest("tbody").find("span").index(t(e.target));o.month(n),c===m?(X(r.clone().year(o.year()).month(o.month())),i.inline||tt()):(P(-1),V()),I("M")},selectYear:function(e){var n=parseInt(t(e.target).text(),10)||0;o.year(n),c===m?(X(r.clone().year(o.year())),i.inline||tt()):(P(-1),V()),I("YYYY")},selectDecade:function(e){var n=parseInt(t(e.target).data("selection"),10)||0;o.year(n),c===m?(X(r.clone().year(o.year())),i.inline||tt()):(P(-1),V()),I("YYYY")},selectDay:function(e){var n=o.clone();t(e.target).is(".old")&&n.subtract(1,"M"),t(e.target).is(".new")&&n.add(1,"M"),X(n.date(parseInt(t(e.target).text(),10))),T()||i.keepOpen||i.inline||tt()},incrementHours:function(){var t=r.clone().add(1,"h");U(t,"h")&&X(t)},incrementMinutes:function(){var t=r.clone().add(i.stepping,"m");U(t,"m")&&X(t)},incrementSeconds:function(){var t=r.clone().add(1,"s");U(t,"s")&&X(t)},decrementHours:function(){var t=r.clone().subtract(1,"h");U(t,"h")&&X(t)},decrementMinutes:function(){var t=r.clone().subtract(i.stepping,"m");U(t,"m")&&X(t)},decrementSeconds:function(){var t=r.clone().subtract(1,"s");U(t,"s")&&X(t)},togglePeriod:function(){X(r.clone().add(r.hours()>=12?-12:12,"h"))},togglePicker:function(e){var n,r=t(e.target),o=r.closest("ul"),a=o.find(".in"),s=o.find(".collapse:not(.in)");if(a&&a.length){if((n=a.data("collapse"))&&n.transitioning)return;a.collapse?(a.collapse("hide"),s.collapse("show")):(a.removeClass("in"),s.addClass("in")),r.is("span")?r.toggleClass(i.icons.time+" "+i.icons.date):r.find("span").toggleClass(i.icons.time+" "+i.icons.date)}},showPicker:function(){p.find(".timepicker > div:not(.timepicker-picker)").hide(),p.find(".timepicker .timepicker-picker").show()},showHours:function(){p.find(".timepicker .timepicker-picker").hide(),p.find(".timepicker .timepicker-hours").show()},showMinutes:function(){p.find(".timepicker .timepicker-picker").hide(),p.find(".timepicker .timepicker-minutes").show()},showSeconds:function(){p.find(".timepicker .timepicker-picker").hide(),p.find(".timepicker .timepicker-seconds").show()},selectHour:function(e){var n=parseInt(t(e.target).text(),10);s||(r.hours()>=12?12!==n&&(n+=12):12===n&&(n=0)),X(r.clone().hours(n)),it.showPicker.call(d)},selectMinute:function(e){X(r.clone().minutes(parseInt(t(e.target).text(),10))),it.showPicker.call(d)},selectSecond:function(e){X(r.clone().seconds(parseInt(t(e.target).text(),10))),it.showPicker.call(d)},clear:et,today:function(){var t=k();U(t,"d")&&X(t)},close:tt},rt=function(e){return!t(e.currentTarget).is(".disabled")&&(it[t(e.currentTarget).data("action")].apply(d,arguments),!1)},ot=function(){var e,n={year:function(t){return t.month(0).date(1).hours(0).seconds(0).minutes(0)},month:function(t){return t.date(1).hours(0).seconds(0).minutes(0)},day:function(t){return t.hours(0).seconds(0).minutes(0)},hour:function(t){return t.seconds(0).minutes(0)},minute:function(t){return t.seconds(0)}};return a.prop("disabled")||!i.ignoreReadonly&&a.prop("readonly")||p?d:(void 0!==a.val()&&0!==a.val().trim().length?X(nt(a.val().trim())):h&&i.useCurrent&&(i.inline||a.is("input")&&0===a.val().trim().length)&&(e=k(),"string"==typeof i.useCurrent&&(e=n[i.useCurrent](e)),X(e)),p=A(),L(),W(),p.find(".timepicker-hours").hide(),p.find(".timepicker-minutes").hide(),p.find(".timepicker-seconds").hide(),J(),P(),t(window).on("resize",j),p.on("click","[data-action]",rt),p.on("mousedown",!1),f&&f.hasClass("btn")&&f.toggleClass("active"),j(),p.show(),i.focusOnShow&&!a.is(":focus")&&a.focus(),N({type:"dp.show"}),d)},at=function(){return p?tt():ot()},st=function(t){var e,n,r,o,a=null,s=[],l={},u=t.which;x[u]="p";for(e in x)x.hasOwnProperty(e)&&"p"===x[e]&&(s.push(e),parseInt(e,10)!==u&&(l[e]=!0));for(e in i.keyBinds)if(i.keyBinds.hasOwnProperty(e)&&"function"==typeof i.keyBinds[e]&&(r=e.split(" "),r.length===s.length&&_[u]===r[r.length-1])){for(o=!0,n=r.length-2;n>=0;n--)if(!(_[r[n]]in l)){o=!1;break}if(o){a=i.keyBinds[e];break}}a&&(a.call(d,p),t.stopPropagation(),t.preventDefault())},lt=function(t){x[t.which]="r",t.stopPropagation(),t.preventDefault()},ut=function(e){var n=t(e.target).val().trim(),i=n?nt(n):null;return X(i),e.stopImmediatePropagation(),!1},ct=function(){a.off({change:ut,blur:blur,keydown:st,keyup:lt,focus:i.allowInputToggle?tt:""}),n.is("input")?a.off({focus:ot}):f&&(f.off("click",at),f.off("mousedown",!1))},dt=function(e){var n={};return t.each(e,function(){var t=nt(this);t.isValid()&&(n[t.format("YYYY-MM-DD")]=!0)}),!!Object.keys(n).length&&n},ht=function(e){var n={};return t.each(e,function(){n[this]=!0}),!!Object.keys(n).length&&n},ft=function(){var t=i.format||"L LT";l=t.replace(/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,function(t){return(r.localeData().longDateFormat(t)||t).replace(/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,function(t){return r.localeData().longDateFormat(t)||t})}),u=i.extraFormats?i.extraFormats.slice():[],u.indexOf(t)<0&&u.indexOf(l)<0&&u.push(l),s=l.toLowerCase().indexOf("a")<1&&l.replace(/\[.*?\]/g,"").indexOf("h")<1,C("y")&&(m=2),C("M")&&(m=1),C("d")&&(m=0),c=Math.max(m,c),h||X(r)};if(d.destroy=function(){tt(),ct(),n.removeData("DateTimePicker"),n.removeData("date")},d.toggle=at,d.show=ot,d.hide=tt,d.disable=function(){return tt(),f&&f.hasClass("btn")&&f.addClass("disabled"),a.prop("disabled",!0),d},d.enable=function(){return f&&f.hasClass("btn")&&f.removeClass("disabled"),a.prop("disabled",!1),d},d.ignoreReadonly=function(t){if(0===arguments.length)return i.ignoreReadonly;if("boolean"!=typeof t)throw new TypeError("ignoreReadonly () expects a boolean parameter");return i.ignoreReadonly=t,d},d.options=function(e){if(0===arguments.length)return t.extend(!0,{},i);if(!(e instanceof Object))throw new TypeError("options() options parameter should be an object");return t.extend(!0,i,e),t.each(i,function(t,e){if(void 0===d[t])throw new TypeError("option "+t+" is not recognized!");d[t](e)}),d},d.date=function(t){if(0===arguments.length)return h?null:r.clone();if(!(null===t||"string"==typeof t||e.isMoment(t)||t instanceof Date))throw new TypeError("date() parameter must be one of [null, string, moment or Date]");return X(null===t?null:nt(t)),d},d.format=function(t){if(0===arguments.length)return i.format;if("string"!=typeof t&&("boolean"!=typeof t||!1!==t))throw new TypeError("format() expects a string or boolean:false parameter "+t);return i.format=t,l&&ft(),d},d.timeZone=function(t){if(0===arguments.length)return i.timeZone;if("string"!=typeof t)throw new TypeError("newZone() expects a string parameter");return i.timeZone=t,d},d.dayViewHeaderFormat=function(t){if(0===arguments.length)return i.dayViewHeaderFormat;if("string"!=typeof t)throw new TypeError("dayViewHeaderFormat() expects a string parameter");return i.dayViewHeaderFormat=t,d},d.extraFormats=function(t){if(0===arguments.length)return i.extraFormats;if(!1!==t&&!(t instanceof Array))throw new TypeError("extraFormats() expects an array or false parameter");return i.extraFormats=t,u&&ft(),d},d.disabledDates=function(e){if(0===arguments.length)return i.disabledDates?t.extend({},i.disabledDates):i.disabledDates;if(!e)return i.disabledDates=!1,J(),d;if(!(e instanceof Array))throw new TypeError("disabledDates() expects an array parameter");return i.disabledDates=dt(e),i.enabledDates=!1,J(),d},d.enabledDates=function(e){if(0===arguments.length)return i.enabledDates?t.extend({},i.enabledDates):i.enabledDates;if(!e)return i.enabledDates=!1,J(),d;if(!(e instanceof Array))throw new TypeError("enabledDates() expects an array parameter");return i.enabledDates=dt(e),i.disabledDates=!1,J(),d},d.daysOfWeekDisabled=function(t){if(0===arguments.length)return i.daysOfWeekDisabled.splice(0);if("boolean"==typeof t&&!t)return i.daysOfWeekDisabled=!1,J(),d;if(!(t instanceof Array))throw new TypeError("daysOfWeekDisabled() expects an array parameter");if(i.daysOfWeekDisabled=t.reduce(function(t,e){return(e=parseInt(e,10))>6||e<0||isNaN(e)?t:(-1===t.indexOf(e)&&t.push(e),t)},[]).sort(),i.useCurrent&&!i.keepInvalid){for(var e=0;!U(r,"d");){if(r.add(1,"d"),31===e)throw"Tried 31 times to find a valid date";e++}X(r)}return J(),d},d.maxDate=function(t){
if(0===arguments.length)return i.maxDate?i.maxDate.clone():i.maxDate;if("boolean"==typeof t&&!1===t)return i.maxDate=!1,J(),d;"string"==typeof t&&("now"!==t&&"moment"!==t||(t=k()));var e=nt(t);if(!e.isValid())throw new TypeError("maxDate() Could not parse date parameter: "+t);if(i.minDate&&e.isBefore(i.minDate))throw new TypeError("maxDate() date parameter is before options.minDate: "+e.format(l));return i.maxDate=e,i.useCurrent&&!i.keepInvalid&&r.isAfter(t)&&X(i.maxDate),o.isAfter(e)&&(o=e.clone().subtract(i.stepping,"m")),J(),d},d.minDate=function(t){if(0===arguments.length)return i.minDate?i.minDate.clone():i.minDate;if("boolean"==typeof t&&!1===t)return i.minDate=!1,J(),d;"string"==typeof t&&("now"!==t&&"moment"!==t||(t=k()));var e=nt(t);if(!e.isValid())throw new TypeError("minDate() Could not parse date parameter: "+t);if(i.maxDate&&e.isAfter(i.maxDate))throw new TypeError("minDate() date parameter is after options.maxDate: "+e.format(l));return i.minDate=e,i.useCurrent&&!i.keepInvalid&&r.isBefore(t)&&X(i.minDate),o.isBefore(e)&&(o=e.clone().add(i.stepping,"m")),J(),d},d.defaultDate=function(t){if(0===arguments.length)return i.defaultDate?i.defaultDate.clone():i.defaultDate;if(!t)return i.defaultDate=!1,d;"string"==typeof t&&(t="now"===t||"moment"===t?k():k(t));var e=nt(t);if(!e.isValid())throw new TypeError("defaultDate() Could not parse date parameter: "+t);if(!U(e))throw new TypeError("defaultDate() date passed is invalid according to component setup validations");return i.defaultDate=e,(i.defaultDate&&i.inline||""===a.val().trim())&&X(i.defaultDate),d},d.locale=function(t){if(0===arguments.length)return i.locale;if(!e.localeData(t))throw new TypeError("locale() locale "+t+" is not loaded from moment locales!");return i.locale=t,r.locale(i.locale),o.locale(i.locale),l&&ft(),p&&(tt(),ot()),d},d.stepping=function(t){return 0===arguments.length?i.stepping:(t=parseInt(t,10),(isNaN(t)||t<1)&&(t=1),i.stepping=t,d)},d.useCurrent=function(t){var e=["year","month","day","hour","minute"];if(0===arguments.length)return i.useCurrent;if("boolean"!=typeof t&&"string"!=typeof t)throw new TypeError("useCurrent() expects a boolean or string parameter");if("string"==typeof t&&-1===e.indexOf(t.toLowerCase()))throw new TypeError("useCurrent() expects a string parameter of "+e.join(", "));return i.useCurrent=t,d},d.collapse=function(t){if(0===arguments.length)return i.collapse;if("boolean"!=typeof t)throw new TypeError("collapse() expects a boolean parameter");return i.collapse===t?d:(i.collapse=t,p&&(tt(),ot()),d)},d.icons=function(e){if(0===arguments.length)return t.extend({},i.icons);if(!(e instanceof Object))throw new TypeError("icons() expects parameter to be an Object");return t.extend(i.icons,e),p&&(tt(),ot()),d},d.tooltips=function(e){if(0===arguments.length)return t.extend({},i.tooltips);if(!(e instanceof Object))throw new TypeError("tooltips() expects parameter to be an Object");return t.extend(i.tooltips,e),p&&(tt(),ot()),d},d.useStrict=function(t){if(0===arguments.length)return i.useStrict;if("boolean"!=typeof t)throw new TypeError("useStrict() expects a boolean parameter");return i.useStrict=t,d},d.sideBySide=function(t){if(0===arguments.length)return i.sideBySide;if("boolean"!=typeof t)throw new TypeError("sideBySide() expects a boolean parameter");return i.sideBySide=t,p&&(tt(),ot()),d},d.viewMode=function(t){if(0===arguments.length)return i.viewMode;if("string"!=typeof t)throw new TypeError("viewMode() expects a string parameter");if(-1===v.indexOf(t))throw new TypeError("viewMode() parameter must be one of ("+v.join(", ")+") value");return i.viewMode=t,c=Math.max(v.indexOf(t),m),P(),d},d.toolbarPlacement=function(t){if(0===arguments.length)return i.toolbarPlacement;if("string"!=typeof t)throw new TypeError("toolbarPlacement() expects a string parameter");if(-1===w.indexOf(t))throw new TypeError("toolbarPlacement() parameter must be one of ("+w.join(", ")+") value");return i.toolbarPlacement=t,p&&(tt(),ot()),d},d.widgetPositioning=function(e){if(0===arguments.length)return t.extend({},i.widgetPositioning);if("[object Object]"!=={}.toString.call(e))throw new TypeError("widgetPositioning() expects an object variable");if(e.horizontal){if("string"!=typeof e.horizontal)throw new TypeError("widgetPositioning() horizontal variable must be a string");if(e.horizontal=e.horizontal.toLowerCase(),-1===b.indexOf(e.horizontal))throw new TypeError("widgetPositioning() expects horizontal parameter to be one of ("+b.join(", ")+")");i.widgetPositioning.horizontal=e.horizontal}if(e.vertical){if("string"!=typeof e.vertical)throw new TypeError("widgetPositioning() vertical variable must be a string");if(e.vertical=e.vertical.toLowerCase(),-1===y.indexOf(e.vertical))throw new TypeError("widgetPositioning() expects vertical parameter to be one of ("+y.join(", ")+")");i.widgetPositioning.vertical=e.vertical}return J(),d},d.calendarWeeks=function(t){if(0===arguments.length)return i.calendarWeeks;if("boolean"!=typeof t)throw new TypeError("calendarWeeks() expects parameter to be a boolean value");return i.calendarWeeks=t,J(),d},d.showTodayButton=function(t){if(0===arguments.length)return i.showTodayButton;if("boolean"!=typeof t)throw new TypeError("showTodayButton() expects a boolean parameter");return i.showTodayButton=t,p&&(tt(),ot()),d},d.showClear=function(t){if(0===arguments.length)return i.showClear;if("boolean"!=typeof t)throw new TypeError("showClear() expects a boolean parameter");return i.showClear=t,p&&(tt(),ot()),d},d.widgetParent=function(e){if(0===arguments.length)return i.widgetParent;if("string"==typeof e&&(e=t(e)),null!==e&&"string"!=typeof e&&!(e instanceof t))throw new TypeError("widgetParent() expects a string or a jQuery object parameter");return i.widgetParent=e,p&&(tt(),ot()),d},d.keepOpen=function(t){if(0===arguments.length)return i.keepOpen;if("boolean"!=typeof t)throw new TypeError("keepOpen() expects a boolean parameter");return i.keepOpen=t,d},d.focusOnShow=function(t){if(0===arguments.length)return i.focusOnShow;if("boolean"!=typeof t)throw new TypeError("focusOnShow() expects a boolean parameter");return i.focusOnShow=t,d},d.inline=function(t){if(0===arguments.length)return i.inline;if("boolean"!=typeof t)throw new TypeError("inline() expects a boolean parameter");return i.inline=t,d},d.clear=function(){return et(),d},d.keyBinds=function(t){return 0===arguments.length?i.keyBinds:(i.keyBinds=t,d)},d.getMoment=function(t){return k(t)},d.debug=function(t){if("boolean"!=typeof t)throw new TypeError("debug() expects a boolean parameter");return i.debug=t,d},d.allowInputToggle=function(t){if(0===arguments.length)return i.allowInputToggle;if("boolean"!=typeof t)throw new TypeError("allowInputToggle() expects a boolean parameter");return i.allowInputToggle=t,d},d.showClose=function(t){if(0===arguments.length)return i.showClose;if("boolean"!=typeof t)throw new TypeError("showClose() expects a boolean parameter");return i.showClose=t,d},d.keepInvalid=function(t){if(0===arguments.length)return i.keepInvalid;if("boolean"!=typeof t)throw new TypeError("keepInvalid() expects a boolean parameter");return i.keepInvalid=t,d},d.datepickerInput=function(t){if(0===arguments.length)return i.datepickerInput;if("string"!=typeof t)throw new TypeError("datepickerInput() expects a string parameter");return i.datepickerInput=t,d},d.parseInputDate=function(t){if(0===arguments.length)return i.parseInputDate;if("function"!=typeof t)throw new TypeError("parseInputDate() sholud be as function");return i.parseInputDate=t,d},d.disabledTimeIntervals=function(e){if(0===arguments.length)return i.disabledTimeIntervals?t.extend({},i.disabledTimeIntervals):i.disabledTimeIntervals;if(!e)return i.disabledTimeIntervals=!1,J(),d;if(!(e instanceof Array))throw new TypeError("disabledTimeIntervals() expects an array parameter");return i.disabledTimeIntervals=e,J(),d},d.disabledHours=function(e){if(0===arguments.length)return i.disabledHours?t.extend({},i.disabledHours):i.disabledHours;if(!e)return i.disabledHours=!1,J(),d;if(!(e instanceof Array))throw new TypeError("disabledHours() expects an array parameter");if(i.disabledHours=ht(e),i.enabledHours=!1,i.useCurrent&&!i.keepInvalid){for(var n=0;!U(r,"h");){if(r.add(1,"h"),24===n)throw"Tried 24 times to find a valid date";n++}X(r)}return J(),d},d.enabledHours=function(e){if(0===arguments.length)return i.enabledHours?t.extend({},i.enabledHours):i.enabledHours;if(!e)return i.enabledHours=!1,J(),d;if(!(e instanceof Array))throw new TypeError("enabledHours() expects an array parameter");if(i.enabledHours=ht(e),i.disabledHours=!1,i.useCurrent&&!i.keepInvalid){for(var n=0;!U(r,"h");){if(r.add(1,"h"),24===n)throw"Tried 24 times to find a valid date";n++}X(r)}return J(),d},d.viewDate=function(t){if(0===arguments.length)return o.clone();if(!t)return o=r.clone(),d;if(!("string"==typeof t||e.isMoment(t)||t instanceof Date))throw new TypeError("viewDate() parameter must be one of [string, moment or Date]");return o=nt(t),I(),d},n.is("input"))a=n;else if(a=n.find(i.datepickerInput),0===a.length)a=n.find("input");else if(!a.is("input"))throw new Error('CSS class "'+i.datepickerInput+'" cannot be applied to non input element');if(n.hasClass("input-group")&&(f=0===n.find(".datepickerbutton").length?n.find(".input-group-addon"):n.find(".datepickerbutton")),!i.inline&&!a.is("input"))throw new Error("Could not initialize DateTimePicker without an input element");return r=k(),o=r.clone(),t.extend(!0,i,function(){var e,r={};return e=n.is("input")||i.inline?n.data():n.find("input").data(),e.dateOptions&&e.dateOptions instanceof Object&&(r=t.extend(!0,r,e.dateOptions)),t.each(i,function(t){var n="date"+t.charAt(0).toUpperCase()+t.slice(1);void 0!==e[n]&&(r[t]=e[n])}),r}()),d.options(i),ft(),function(){a.on({change:ut,blur:i.debug?"":tt,keydown:st,keyup:lt,focus:i.allowInputToggle?ot:""}),n.is("input")?a.on({focus:ot}):f&&(f.on("click",at),f.on("mousedown",!1))}(),a.prop("disabled")&&d.disable(),a.is("input")&&0!==a.val().trim().length?X(nt(a.val().trim())):i.defaultDate&&void 0===a.attr("placeholder")&&X(i.defaultDate),i.inline&&ot(),d};return t.fn.datetimepicker=function(e){e=e||{};var i,r=Array.prototype.slice.call(arguments,1),o=!0,a=["destroy","hide","show","toggle"];if("object"==typeof e)return this.each(function(){var i,r=t(this);r.data("DateTimePicker")||(i=t.extend(!0,{},t.fn.datetimepicker.defaults,e),r.data("DateTimePicker",n(r,i)))});if("string"==typeof e)return this.each(function(){var n=t(this),a=n.data("DateTimePicker");if(!a)throw new Error('bootstrap-datetimepicker("'+e+'") method was called on an element that is not using DateTimePicker');i=a[e].apply(a,r),o=i===a}),o||t.inArray(e,a)>-1?this:i;throw new TypeError("Invalid arguments for DateTimePicker: "+e)},t.fn.datetimepicker.defaults={timeZone:"",format:!1,dayViewHeaderFormat:"MMMM YYYY",extraFormats:!1,stepping:1,minDate:!1,maxDate:!1,useCurrent:!0,collapse:!0,locale:e.locale(),defaultDate:!1,disabledDates:!1,enabledDates:!1,icons:{time:"glyphicon glyphicon-time",date:"glyphicon glyphicon-calendar",up:"glyphicon glyphicon-chevron-up",down:"glyphicon glyphicon-chevron-down",previous:"glyphicon glyphicon-chevron-left",next:"glyphicon glyphicon-chevron-right",today:"glyphicon glyphicon-screenshot",clear:"glyphicon glyphicon-trash",close:"glyphicon glyphicon-remove"},tooltips:{today:"Go to today",clear:"Clear selection",close:"Close the picker",selectMonth:"Select Month",prevMonth:"Previous Month",nextMonth:"Next Month",selectYear:"Select Year",prevYear:"Previous Year",nextYear:"Next Year",selectDecade:"Select Decade",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevCentury:"Previous Century",nextCentury:"Next Century",pickHour:"Pick Hour",incrementHour:"Increment Hour",decrementHour:"Decrement Hour",pickMinute:"Pick Minute",incrementMinute:"Increment Minute",decrementMinute:"Decrement Minute",pickSecond:"Pick Second",incrementSecond:"Increment Second",decrementSecond:"Decrement Second",togglePeriod:"Toggle Period",selectTime:"Select Time"},useStrict:!1,sideBySide:!1,daysOfWeekDisabled:!1,calendarWeeks:!1,viewMode:"days",toolbarPlacement:"default",showTodayButton:!1,showClear:!1,showClose:!1,widgetPositioning:{horizontal:"auto",vertical:"auto"},widgetParent:null,ignoreReadonly:!1,keepOpen:!1,focusOnShow:!0,inline:!1,keepInvalid:!1,datepickerInput:".datepickerinput",keyBinds:{up:function(t){if(t){var e=this.date()||this.getMoment();t.find(".datepicker").is(":visible")?this.date(e.clone().subtract(7,"d")):this.date(e.clone().add(this.stepping(),"m"))}},down:function(t){if(!t)return void this.show();var e=this.date()||this.getMoment();t.find(".datepicker").is(":visible")?this.date(e.clone().add(7,"d")):this.date(e.clone().subtract(this.stepping(),"m"))},"control up":function(t){if(t){var e=this.date()||this.getMoment();t.find(".datepicker").is(":visible")?this.date(e.clone().subtract(1,"y")):this.date(e.clone().add(1,"h"))}},"control down":function(t){if(t){var e=this.date()||this.getMoment();t.find(".datepicker").is(":visible")?this.date(e.clone().add(1,"y")):this.date(e.clone().subtract(1,"h"))}},left:function(t){if(t){var e=this.date()||this.getMoment();t.find(".datepicker").is(":visible")&&this.date(e.clone().subtract(1,"d"))}},right:function(t){if(t){var e=this.date()||this.getMoment();t.find(".datepicker").is(":visible")&&this.date(e.clone().add(1,"d"))}},pageUp:function(t){if(t){var e=this.date()||this.getMoment();t.find(".datepicker").is(":visible")&&this.date(e.clone().subtract(1,"M"))}},pageDown:function(t){if(t){var e=this.date()||this.getMoment();t.find(".datepicker").is(":visible")&&this.date(e.clone().add(1,"M"))}},enter:function(){this.hide()},escape:function(){this.hide()},"control space":function(t){t&&t.find(".timepicker").is(":visible")&&t.find('.btn[data-action="togglePeriod"]').click()},t:function(){this.date(this.getMoment())},delete:function(){this.clear()}},debug:!1,allowInputToggle:!1,disabledTimeIntervals:!1,disabledHours:!1,enabledHours:!1,viewDate:!1},t.fn.datetimepicker}),function(t){function e(e,i,r){return r=m(i,r),this.on("click.pjax",e,function(e){var i=r;i.container||(i=t.extend({},r),i.container=t(this).attr("data-pjax")),n(e,i)})}function n(e,n,i){i=m(n,i);var o=e.currentTarget,a=t(o);if("A"!==o.tagName.toUpperCase())throw"$.fn.pjax or $.pjax.click requires an anchor element";if(!(e.which>1||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||location.protocol!==o.protocol||location.hostname!==o.hostname||o.href.indexOf("#")>-1&&p(o)==p(location)||e.isDefaultPrevented())){var s={url:o.href,container:a.attr("data-pjax"),target:o},l=t.extend({},s,i),u=t.Event("pjax:click");a.trigger(u,[l]),u.isDefaultPrevented()||(r(l),e.preventDefault(),a.trigger("pjax:clicked",[l]))}}function i(e,n,i){i=m(n,i);var o=e.currentTarget,a=t(o);if("FORM"!==o.tagName.toUpperCase())throw"$.pjax.submit requires a form element";var s={type:(a.attr("method")||"GET").toUpperCase(),url:a.attr("action"),container:a.attr("data-pjax"),target:o};if("GET"!==s.type&&void 0!==window.FormData)s.data=new FormData(o),s.processData=!1,s.contentType=!1;else{if(a.find(":file").length)return;s.data=a.serializeArray()}r(t.extend({},s,i)),e.preventDefault()}function r(e){function n(n,i,r){r||(r={}),r.relatedTarget=e.target;var o=t.Event(n,r);return s.trigger(o,i),!o.isDefaultPrevented()}e=t.extend(!0,{},t.ajaxSettings,r.defaults,e),t.isFunction(e.url)&&(e.url=e.url());var i=f(e.url).hash,o=t.type(e.container);if("string"!==o)throw"expected string value for 'container' option; got "+o;var s=e.context=t(e.container);if(!s.length)throw"the container selector '"+e.container+"' did not match anything";e.data||(e.data={}),t.isArray(e.data)?e.data.push({name:"_pjax",value:e.container}):e.data._pjax=e.container;var l;e.beforeSend=function(t,r){if("GET"!==r.type&&(r.timeout=0),t.setRequestHeader("X-PJAX","true"),t.setRequestHeader("X-PJAX-Container",e.container),!n("pjax:beforeSend",[t,r]))return!1;r.timeout>0&&(l=setTimeout(function(){n("pjax:timeout",[t,e])&&t.abort("timeout")},r.timeout),r.timeout=0);var o=f(r.url);i&&(o.hash=i),e.requestUrl=h(o)},e.complete=function(t,i){l&&clearTimeout(l),n("pjax:complete",[t,i,e]),n("pjax:end",[t,e])},e.error=function(t,i,r){var o=y("",t,e),s=n("pjax:error",[t,i,r,e]);"GET"==e.type&&"abort"!==i&&s&&a(o.url)},e.success=function(o,l,u){var d=r.state,h="function"==typeof t.pjax.defaults.version?t.pjax.defaults.version():t.pjax.defaults.version,p=u.getResponseHeader("X-PJAX-Version"),m=y(o,u,e),g=f(m.url);if(i&&(g.hash=i,m.url=g.href),h&&p&&h!==p)return void a(m.url);if(!m.contents)return void a(m.url);if(r.state={id:e.id||c(),url:m.url,title:m.title,container:e.container,fragment:e.fragment,timeout:e.timeout},(e.push||e.replace)&&window.history.replaceState(r.state,m.title,m.url),t.contains(s,document.activeElement))try{document.activeElement.blur()}catch(t){}m.title&&(document.title=m.title),n("pjax:beforeReplace",[m.contents,e],{state:r.state,previousState:d}),s.html(m.contents);var v=s.find("input[autofocus], textarea[autofocus]").last()[0];v&&document.activeElement!==v&&v.focus(),b(m.scripts);var w=e.scrollTo;if(i){var _=decodeURIComponent(i.slice(1)),x=document.getElementById(_)||document.getElementsByName(_)[0];x&&(w=t(x).offset().top)}"number"==typeof w&&t(window).scrollTop(w),n("pjax:success",[o,l,u,e])},r.state||(r.state={id:c(),url:window.location.href,title:document.title,container:e.container,fragment:e.fragment,timeout:e.timeout},window.history.replaceState(r.state,document.title)),u(r.xhr),r.options=e;var p=r.xhr=t.ajax(e);return p.readyState>0&&(e.push&&!e.replace&&(w(r.state.id,[e.container,d(s)]),window.history.pushState(null,"",e.requestUrl)),n("pjax:start",[p,e]),n("pjax:send",[p,e])),r.xhr}function o(e,n){var i={url:window.location.href,push:!1,replace:!0,scrollTo:!1};return r(t.extend(i,m(e,n)))}function a(t){window.history.replaceState(null,"",r.state.url),window.location.replace(t)}function s(e){T||u(r.xhr);var n,i=r.state,o=e.state;if(o&&o.container){if(T&&S==o.url)return;if(i){if(i.id===o.id)return;n=i.id<o.id?"forward":"back"}var s=E[o.id]||[],l=s[0]||o.container,c=t(l),h=s[1];if(c.length){i&&_(n,i.id,[l,d(c)]);var f=t.Event("pjax:popstate",{state:o,direction:n});c.trigger(f);var p={id:o.id,url:o.url,container:l,push:!1,fragment:o.fragment,timeout:o.timeout,scrollTo:!1};if(h){c.trigger("pjax:start",[null,p]),r.state=o,o.title&&(document.title=o.title);var m=t.Event("pjax:beforeReplace",{state:o,previousState:i});c.trigger(m,[h,p]),c.html(h),c.trigger("pjax:end",[null,p])}else r(p);c[0].offsetHeight}else a(location.href)}T=!1}function l(e){var n=t.isFunction(e.url)?e.url():e.url,i=e.type?e.type.toUpperCase():"GET",r=t("<form>",{method:"GET"===i?"GET":"POST",action:n,style:"display:none"});"GET"!==i&&"POST"!==i&&r.append(t("<input>",{type:"hidden",name:"_method",value:i.toLowerCase()}));var o=e.data;if("string"==typeof o)t.each(o.split("&"),function(e,n){var i=n.split("=");r.append(t("<input>",{type:"hidden",name:i[0],value:i[1]}))});else if(t.isArray(o))t.each(o,function(e,n){r.append(t("<input>",{type:"hidden",name:n.name,value:n.value}))});else if("object"==typeof o){var a;for(a in o)r.append(t("<input>",{type:"hidden",name:a,value:o[a]}))}t(document.body).append(r),r.submit()}function u(e){e&&e.readyState<4&&(e.onreadystatechange=t.noop,e.abort())}function c(){return(new Date).getTime()}function d(e){var n=e.clone();return n.find("script").each(function(){this.src||t._data(this,"globalEval",!1)}),n.contents()}function h(t){return t.search=t.search.replace(/([?&])(_pjax|_)=[^&]*/g,"").replace(/^&/,""),t.href.replace(/\?($|#)/,"$1")}function f(t){var e=document.createElement("a");return e.href=t,e}function p(t){return t.href.replace(/#.*/,"")}function m(e,n){return e&&n?(n=t.extend({},n),n.container=e,n):t.isPlainObject(e)?e:{container:e}}function g(t,e){return t.filter(e).add(t.find(e))}function v(e){return t.parseHTML(e,document,!0)}function y(e,n,i){var r={},o=/<html/i.test(e),a=n.getResponseHeader("X-PJAX-URL");r.url=a?h(f(a)):i.requestUrl;var s,l;if(o){l=t(v(e.match(/<body[^>]*>([\s\S.]*)<\/body>/i)[0]));var u=e.match(/<head[^>]*>([\s\S.]*)<\/head>/i);s=null!=u?t(v(u[0])):l}else s=l=t(v(e));if(0===l.length)return r;if(r.title=g(s,"title").last().text(),i.fragment){var c=l;"body"!==i.fragment&&(c=g(c,i.fragment).first()),c.length&&(r.contents="body"===i.fragment?c:c.contents(),r.title||(r.title=c.attr("title")||c.data("title")))}else o||(r.contents=l);return r.contents&&(r.contents=r.contents.not(function(){return t(this).is("title")}),r.contents.find("title").remove(),r.scripts=g(r.contents,"script[src]").remove(),r.contents=r.contents.not(r.scripts)),r.title&&(r.title=t.trim(r.title)),r}function b(e){if(e){var n=t("script[src]");e.each(function(){var e=this.src;if(!n.filter(function(){return this.src===e}).length){var i=document.createElement("script"),r=t(this).attr("type");r&&(i.type=r),i.src=t(this).attr("src"),document.head.appendChild(i)}})}}function w(t,e){E[t]=e,M.push(t),x(O,0),x(M,r.defaults.maxCacheLength)}function _(t,e,n){var i,o;E[e]=n,"forward"===t?(i=M,o=O):(i=O,o=M),i.push(e),e=o.pop(),e&&delete E[e],x(i,r.defaults.maxCacheLength)}function x(t,e){for(;t.length>e;)delete E[t.shift()]}function D(){return t("meta").filter(function(){var e=t(this).attr("http-equiv");return e&&"X-PJAX-VERSION"===e.toUpperCase()}).attr("content")}function k(){t.fn.pjax=e,t.pjax=r,t.pjax.enable=t.noop,t.pjax.disable=C,t.pjax.click=n,t.pjax.submit=i,t.pjax.reload=o,t.pjax.defaults={timeout:650,push:!0,replace:!1,type:"GET",dataType:"html",scrollTo:0,maxCacheLength:20,version:D},t(window).on("popstate.pjax",s)}function C(){t.fn.pjax=function(){return this},t.pjax=l,t.pjax.enable=k,t.pjax.disable=t.noop,t.pjax.click=t.noop,t.pjax.submit=t.noop,t.pjax.reload=function(){window.location.reload()},t(window).off("popstate.pjax",s)}var T=!0,S=window.location.href,$=window.history.state;$&&$.container&&(r.state=$),"state"in window.history&&(T=!1);var E={},O=[],M=[];t.event.props&&t.inArray("state",t.event.props)<0?t.event.props.push("state"):"state"in t.Event.prototype||t.event.addProp("state"),t.support.pjax=window.history&&window.history.pushState&&window.history.replaceState&&!navigator.userAgent.match(/((iPod|iPhone|iPad).+\bOS\s+[1-4]\D|WebApps\/.+CFNetwork)/),t.support.pjax?k():C()}(jQuery);