text:  
  //begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery 
  //begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery 
  //begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery 
  //begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery 
  //begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery 
  //begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery 
  //begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery 
  //begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery 
  //begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery 
  //begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery 
  //begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery 
  //begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery 
  //begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery 
  //begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery 
  //begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery begin  jquery 
  
  /*! jQuery v1.12.4 | (c) jQuery Foundation | jquery.org/license */
  !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=a.document,e=c.slice,f=c.concat,g=c.push,h=c.indexOf,i={},j=i.toString,k=i.hasOwnProperty,l={},m="1.12.4",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return e.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:e.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a){return n.each(this,a)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(e.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor()},push:g,sort:c.sort,splice:c.splice},n.extend=n.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||n.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(e=arguments[h]))for(d in e)a=g[d],c=e[d],g!==c&&(j&&c&&(n.isPlainObject(c)||(b=n.isArray(c)))?(b?(b=!1,f=a&&n.isArray(a)?a:[]):f=a&&n.isPlainObject(a)?a:{},g[d]=n.extend(j,f,c)):void 0!==c&&(g[d]=c));return g},n.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===n.type(a)},isArray:Array.isArray||function(a){return"array"===n.type(a)},isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a){var b=a&&a.toString();return!n.isArray(a)&&b-parseFloat(b)+1>=0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},isPlainObject:function(a){var b;if(!a||"object"!==n.type(a)||a.nodeType||n.isWindow(a))return!1;try{if(a.constructor&&!k.call(a,"constructor")&&!k.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}if(!l.ownFirst)for(b in a)return k.call(a,b);for(b in a);return void 0===b||k.call(a,b)},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?i[j.call(a)]||"object":typeof a},globalEval:function(b){b&&n.trim(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b){var c,d=0;if(s(a)){for(c=a.length;c>d;d++)if(b.call(a[d],d,a[d])===!1)break}else for(d in a)if(b.call(a[d],d,a[d])===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(o,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?n.merge(c,"string"==typeof a?[a]:a):g.call(c,a)),c},inArray:function(a,b,c){var d;if(b){if(h)return h.call(b,a,c);for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,b){var c=+b.length,d=0,e=a.length;while(c>d)a[e++]=b[d++];if(c!==c)while(void 0!==b[d])a[e++]=b[d++];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,e,g=0,h=[];if(s(a))for(d=a.length;d>g;g++)e=b(a[g],g,c),null!=e&&h.push(e);else for(g in a)e=b(a[g],g,c),null!=e&&h.push(e);return f.apply([],h)},guid:1,proxy:function(a,b){var c,d,f;return"string"==typeof b&&(f=a[b],b=a,a=f),n.isFunction(a)?(c=e.call(arguments,2),d=function(){return a.apply(b||this,c.concat(e.call(arguments)))},d.guid=a.guid=a.guid||n.guid++,d):void 0},now:function(){return+new Date},support:l}),"function"==typeof Symbol&&(n.fn[Symbol.iterator]=c[Symbol.iterator]),n.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(a,b){i["[object "+b+"]"]=b.toLowerCase()});function s(a){var b=!!a&&"length"in a&&a.length,c=n.type(a);return"function"===c||n.isWindow(a)?!1:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ga(),z=ga(),A=ga(),B=function(a,b){return a===b&&(l=!0),0},C=1<<31,D={}.hasOwnProperty,E=[],F=E.pop,G=E.push,H=E.push,I=E.slice,J=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",N="\\["+L+"*("+M+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+M+"))|)"+L+"*\\]",O=":("+M+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+N+")*)|.*)\\)|)",P=new RegExp(L+"+","g"),Q=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),R=new RegExp("^"+L+"*,"+L+"*"),S=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),T=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),U=new RegExp(O),V=new RegExp("^"+M+"$"),W={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M+"|[*])"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+O),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+K+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},X=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,$=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,_=/[+~]/,aa=/'|\\/g,ba=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),ca=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},da=function(){m()};try{H.apply(E=I.call(v.childNodes),v.childNodes),E[v.childNodes.length].nodeType}catch(ea){H={apply:E.length?function(a,b){G.apply(a,I.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function fa(a,b,d,e){var f,h,j,k,l,o,r,s,w=b&&b.ownerDocument,x=b?b.nodeType:9;if(d=d||[],"string"!=typeof a||!a||1!==x&&9!==x&&11!==x)return d;if(!e&&((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,p)){if(11!==x&&(o=$.exec(a)))if(f=o[1]){if(9===x){if(!(j=b.getElementById(f)))return d;if(j.id===f)return d.push(j),d}else if(w&&(j=w.getElementById(f))&&t(b,j)&&j.id===f)return d.push(j),d}else{if(o[2])return H.apply(d,b.getElementsByTagName(a)),d;if((f=o[3])&&c.getElementsByClassName&&b.getElementsByClassName)return H.apply(d,b.getElementsByClassName(f)),d}if(c.qsa&&!A[a+" "]&&(!q||!q.test(a))){if(1!==x)w=b,s=a;else if("object"!==b.nodeName.toLowerCase()){(k=b.getAttribute("id"))?k=k.replace(aa,"\\$&"):b.setAttribute("id",k=u),r=g(a),h=r.length,l=V.test(k)?"#"+k:"[id='"+k+"']";while(h--)r[h]=l+" "+qa(r[h]);s=r.join(","),w=_.test(a)&&oa(b.parentNode)||b}if(s)try{return H.apply(d,w.querySelectorAll(s)),d}catch(y){}finally{k===u&&b.removeAttribute("id")}}}return i(a.replace(Q,"$1"),b,d,e)}function ga(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ha(a){return a[u]=!0,a}function ia(a){var b=n.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ja(a,b){var c=a.split("|"),e=c.length;while(e--)d.attrHandle[c[e]]=b}function ka(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||C)-(~a.sourceIndex||C);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function la(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function ma(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function na(a){return ha(function(b){return b=+b,ha(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function oa(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=fa.support={},f=fa.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=fa.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=n.documentElement,p=!f(n),(e=n.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",da,!1):e.attachEvent&&e.attachEvent("onunload",da)),c.attributes=ia(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ia(function(a){return a.appendChild(n.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Z.test(n.getElementsByClassName),c.getById=ia(function(a){return o.appendChild(a).id=u,!n.getElementsByName||!n.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c?[c]:[]}},d.filter.ID=function(a){var b=a.replace(ba,ca);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ba,ca);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return"undefined"!=typeof b.getElementsByClassName&&p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=Z.test(n.querySelectorAll))&&(ia(function(a){o.appendChild(a).innerHTML="<a id='"+u+"'></a><select id='"+u+"-\r\\' msallowcapture=''><option selected=''></option></select>",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+L+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+L+"*(?:value|"+K+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),ia(function(a){var b=n.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+L+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=Z.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ia(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",O)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=Z.test(o.compareDocumentPosition),t=b||Z.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===n||a.ownerDocument===v&&t(v,a)?-1:b===n||b.ownerDocument===v&&t(v,b)?1:k?J(k,a)-J(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,g=[a],h=[b];if(!e||!f)return a===n?-1:b===n?1:e?-1:f?1:k?J(k,a)-J(k,b):0;if(e===f)return ka(a,b);c=a;while(c=c.parentNode)g.unshift(c);c=b;while(c=c.parentNode)h.unshift(c);while(g[d]===h[d])d++;return d?ka(g[d],h[d]):g[d]===v?-1:h[d]===v?1:0},n):n},fa.matches=function(a,b){return fa(a,null,null,b)},fa.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(T,"='$1']"),c.matchesSelector&&p&&!A[b+" "]&&(!r||!r.test(b))&&(!q||!q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return fa(b,n,null,[a]).length>0},fa.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},fa.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&D.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},fa.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},fa.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=fa.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=fa.selectors={cacheLength:50,createPseudo:ha,match:W,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ba,ca),a[3]=(a[3]||a[4]||a[5]||"").replace(ba,ca),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||fa.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&fa.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return W.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&U.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ba,ca).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+L+")"+a+"("+L+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=fa.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(P," ")+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h,t=!1;if(q){if(f){while(p){m=b;while(m=m[p])if(h?m.nodeName.toLowerCase()===r:1===m.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){m=q,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n&&j[2],m=n&&q.childNodes[n];while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if(1===m.nodeType&&++t&&m===b){k[a]=[w,n,t];break}}else if(s&&(m=b,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n),t===!1)while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if((h?m.nodeName.toLowerCase()===r:1===m.nodeType)&&++t&&(s&&(l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),k[a]=[w,t]),m===b))break;return t-=e,t===d||t%d===0&&t/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||fa.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ha(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=J(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ha(function(a){var b=[],c=[],d=h(a.replace(Q,"$1"));return d[u]?ha(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ha(function(a){return function(b){return fa(a,b).length>0}}),contains:ha(function(a){return a=a.replace(ba,ca),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ha(function(a){return V.test(a||"")||fa.error("unsupported lang: "+a),a=a.replace(ba,ca).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Y.test(a.nodeName)},input:function(a){return X.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:na(function(){return[0]}),last:na(function(a,b){return[b-1]}),eq:na(function(a,b,c){return[0>c?c+b:c]}),even:na(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:na(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:na(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:na(function(a,b,c){for(var d=0>c?c+b:c;++d<b;)a.push(d);return a})}},d.pseudos.nth=d.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})d.pseudos[b]=la(b);for(b in{submit:!0,reset:!0})d.pseudos[b]=ma(b);function pa(){}pa.prototype=d.filters=d.pseudos,d.setFilters=new pa,g=fa.tokenize=function(a,b){var c,e,f,g,h,i,j,k=z[a+" "];if(k)return b?0:k.slice(0);h=a,i=[],j=d.preFilter;while(h){c&&!(e=R.exec(h))||(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=S.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(Q," ")}),h=h.slice(c.length));for(g in d.filter)!(e=W[g].exec(h))||j[g]&&!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length));if(!c)break}return b?h.length:h?fa.error(a):z(a,i).slice(0)};function qa(a){for(var b=0,c=a.length,d="";c>b;b++)d+=a[b].value;return d}function ra(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j,k=[w,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(j=b[u]||(b[u]={}),i=j[b.uniqueID]||(j[b.uniqueID]={}),(h=i[d])&&h[0]===w&&h[1]===f)return k[2]=h[2];if(i[d]=k,k[2]=a(b,c,g))return!0}}}function sa(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function ta(a,b,c){for(var d=0,e=b.length;e>d;d++)fa(a,b[d],c);return c}function ua(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(c&&!c(f,d,e)||(g.push(f),j&&b.push(h)));return g}function va(a,b,c,d,e,f){return d&&!d[u]&&(d=va(d)),e&&!e[u]&&(e=va(e,f)),ha(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||ta(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:ua(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=ua(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?J(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=ua(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):H.apply(g,r)})}function wa(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=ra(function(a){return a===b},h,!0),l=ra(function(a){return J(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];f>i;i++)if(c=d.relative[a[i].type])m=[ra(sa(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++)if(d.relative[a[e].type])break;return va(i>1&&sa(m),i>1&&qa(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(Q,"$1"),c,e>i&&wa(a.slice(i,e)),f>e&&wa(a=a.slice(e)),f>e&&qa(a))}m.push(c)}return sa(m)}function xa(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,o,q,r=0,s="0",t=f&&[],u=[],v=j,x=f||e&&d.find.TAG("*",k),y=w+=null==v?1:Math.random()||.1,z=x.length;for(k&&(j=g===n||g||k);s!==z&&null!=(l=x[s]);s++){if(e&&l){o=0,g||l.ownerDocument===n||(m(l),h=!p);while(q=a[o++])if(q(l,g||n,h)){i.push(l);break}k&&(w=y)}c&&((l=!q&&l)&&r--,f&&t.push(l))}if(r+=s,c&&s!==r){o=0;while(q=b[o++])q(t,u,g,h);if(f){if(r>0)while(s--)t[s]||u[s]||(u[s]=F.call(i));u=ua(u)}H.apply(i,u),k&&!f&&u.length>0&&r+b.length>1&&fa.uniqueSort(i)}return k&&(w=y,j=v),t};return c?ha(f):f}return h=fa.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=wa(b[c]),f[u]?d.push(f):e.push(f);f=A(a,xa(e,d)),f.selector=a}return f},i=fa.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(ba,ca),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=W.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(ba,ca),_.test(j[0].type)&&oa(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&qa(j),!a)return H.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,!b||_.test(a)&&oa(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ia(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ia(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||ja("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ia(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||ja("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),ia(function(a){return null==a.getAttribute("disabled")})||ja(K,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),fa}(a);n.find=t,n.expr=t.selectors,n.expr[":"]=n.expr.pseudos,n.uniqueSort=n.unique=t.uniqueSort,n.text=t.getText,n.isXMLDoc=t.isXML,n.contains=t.contains;var u=function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&n(a).is(c))break;d.push(a)}return d},v=function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c},w=n.expr.match.needsContext,x=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,y=/^.[^:#\[\.,]*$/;function z(a,b,c){if(n.isFunction(b))return n.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return n.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(y.test(b))return n.filter(b,a,c);b=n.filter(b,a)}return n.grep(a,function(a){return n.inArray(a,b)>-1!==c})}n.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?n.find.matchesSelector(d,a)?[d]:[]:n.find.matches(a,n.grep(b,function(a){return 1===a.nodeType}))},n.fn.extend({find:function(a){var b,c=[],d=this,e=d.length;if("string"!=typeof a)return this.pushStack(n(a).filter(function(){for(b=0;e>b;b++)if(n.contains(d[b],this))return!0}));for(b=0;e>b;b++)n.find(a,d[b],c);return c=this.pushStack(e>1?n.unique(c):c),c.selector=this.selector?this.selector+" "+a:a,c},filter:function(a){return this.pushStack(z(this,a||[],!1))},not:function(a){return this.pushStack(z(this,a||[],!0))},is:function(a){return!!z(this,"string"==typeof a&&w.test(a)?n(a):a||[],!1).length}});var A,B=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,C=n.fn.init=function(a,b,c){var e,f;if(!a)return this;if(c=c||A,"string"==typeof a){if(e="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&a.length>=3?[null,a,null]:B.exec(a),!e||!e[1]&&b)return!b||b.jquery?(b||c).find(a):this.constructor(b).find(a);if(e[1]){if(b=b instanceof n?b[0]:b,n.merge(this,n.parseHTML(e[1],b&&b.nodeType?b.ownerDocument||b:d,!0)),x.test(e[1])&&n.isPlainObject(b))for(e in b)n.isFunction(this[e])?this[e](b[e]):this.attr(e,b[e]);return this}if(f=d.getElementById(e[2]),f&&f.parentNode){if(f.id!==e[2])return A.find(a);this.length=1,this[0]=f}return this.context=d,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):n.isFunction(a)?"undefined"!=typeof c.ready?c.ready(a):a(n):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),n.makeArray(a,this))};C.prototype=n.fn,A=n(d);var D=/^(?:parents|prev(?:Until|All))/,E={children:!0,contents:!0,next:!0,prev:!0};n.fn.extend({has:function(a){var b,c=n(a,this),d=c.length;return this.filter(function(){for(b=0;d>b;b++)if(n.contains(this,c[b]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=w.test(a)||"string"!=typeof a?n(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&n.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?n.uniqueSort(f):f)},index:function(a){return a?"string"==typeof a?n.inArray(this[0],n(a)):n.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(n.uniqueSort(n.merge(this.get(),n(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function F(a,b){do a=a[b];while(a&&1!==a.nodeType);return a}n.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return u(a,"parentNode")},parentsUntil:function(a,b,c){return u(a,"parentNode",c)},next:function(a){return F(a,"nextSibling")},prev:function(a){return F(a,"previousSibling")},nextAll:function(a){return u(a,"nextSibling")},prevAll:function(a){return u(a,"previousSibling")},nextUntil:function(a,b,c){return u(a,"nextSibling",c)},prevUntil:function(a,b,c){return u(a,"previousSibling",c)},siblings:function(a){return v((a.parentNode||{}).firstChild,a)},children:function(a){return v(a.firstChild)},contents:function(a){return n.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:n.merge([],a.childNodes)}},function(a,b){n.fn[a]=function(c,d){var e=n.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=n.filter(d,e)),this.length>1&&(E[a]||(e=n.uniqueSort(e)),D.test(a)&&(e=e.reverse())),this.pushStack(e)}});var G=/\S+/g;function H(a){var b={};return n.each(a.match(G)||[],function(a,c){b[c]=!0}),b}n.Callbacks=function(a){a="string"==typeof a?H(a):n.extend({},a);var b,c,d,e,f=[],g=[],h=-1,i=function(){for(e=a.once,d=b=!0;g.length;h=-1){c=g.shift();while(++h<f.length)f[h].apply(c[0],c[1])===!1&&a.stopOnFalse&&(h=f.length,c=!1)}a.memory||(c=!1),b=!1,e&&(f=c?[]:"")},j={add:function(){return f&&(c&&!b&&(h=f.length-1,g.push(c)),function d(b){n.each(b,function(b,c){n.isFunction(c)?a.unique&&j.has(c)||f.push(c):c&&c.length&&"string"!==n.type(c)&&d(c)})}(arguments),c&&!b&&i()),this},remove:function(){return n.each(arguments,function(a,b){var c;while((c=n.inArray(b,f,c))>-1)f.splice(c,1),h>=c&&h--}),this},has:function(a){return a?n.inArray(a,f)>-1:f.length>0},empty:function(){return f&&(f=[]),this},disable:function(){return e=g=[],f=c="",this},disabled:function(){return!f},lock:function(){return e=!0,c||j.disable(),this},locked:function(){return!!e},fireWith:function(a,c){return e||(c=c||[],c=[a,c.slice?c.slice():c],g.push(c),b||i()),this},fire:function(){return j.fireWith(this,arguments),this},fired:function(){return!!d}};return j},n.extend({Deferred:function(a){var b=[["resolve","done",n.Callbacks("once memory"),"resolved"],["reject","fail",n.Callbacks("once memory"),"rejected"],["notify","progress",n.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return n.Deferred(function(c){n.each(b,function(b,f){var g=n.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&n.isFunction(a.promise)?a.promise().progress(c.notify).done(c.resolve).fail(c.reject):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?n.extend(a,d):d}},e={};return d.pipe=d.then,n.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=e.call(arguments),d=c.length,f=1!==d||a&&n.isFunction(a.promise)?d:0,g=1===f?a:n.Deferred(),h=function(a,b,c){return function(d){b[a]=this,c[a]=arguments.length>1?e.call(arguments):d,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(d>1)for(i=new Array(d),j=new Array(d),k=new Array(d);d>b;b++)c[b]&&n.isFunction(c[b].promise)?c[b].promise().progress(h(b,j,i)).done(h(b,k,c)).fail(g.reject):--f;return f||g.resolveWith(k,c),g.promise()}});var I;n.fn.ready=function(a){return n.ready.promise().done(a),this},n.extend({isReady:!1,readyWait:1,holdReady:function(a){a?n.readyWait++:n.ready(!0)},ready:function(a){(a===!0?--n.readyWait:n.isReady)||(n.isReady=!0,a!==!0&&--n.readyWait>0||(I.resolveWith(d,[n]),n.fn.triggerHandler&&(n(d).triggerHandler("ready"),n(d).off("ready"))))}});function J(){d.addEventListener?(d.removeEventListener("DOMContentLoaded",K),a.removeEventListener("load",K)):(d.detachEvent("onreadystatechange",K),a.detachEvent("onload",K))}function K(){(d.addEventListener||"load"===a.event.type||"complete"===d.readyState)&&(J(),n.ready())}n.ready.promise=function(b){if(!I)if(I=n.Deferred(),"complete"===d.readyState||"loading"!==d.readyState&&!d.documentElement.doScroll)a.setTimeout(n.ready);else if(d.addEventListener)d.addEventListener("DOMContentLoaded",K),a.addEventListener("load",K);else{d.attachEvent("onreadystatechange",K),a.attachEvent("onload",K);var c=!1;try{c=null==a.frameElement&&d.documentElement}catch(e){}c&&c.doScroll&&!function f(){if(!n.isReady){try{c.doScroll("left")}catch(b){return a.setTimeout(f,50)}J(),n.ready()}}()}return I.promise(b)},n.ready.promise();var L;for(L in n(l))break;l.ownFirst="0"===L,l.inlineBlockNeedsLayout=!1,n(function(){var a,b,c,e;c=d.getElementsByTagName("body")[0],c&&c.style&&(b=d.createElement("div"),e=d.createElement("div"),e.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(e).appendChild(b),"undefined"!=typeof b.style.zoom&&(b.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",l.inlineBlockNeedsLayout=a=3===b.offsetWidth,a&&(c.style.zoom=1)),c.removeChild(e))}),function(){var a=d.createElement("div");l.deleteExpando=!0;try{delete a.test}catch(b){l.deleteExpando=!1}a=null}();var M=function(a){var b=n.noData[(a.nodeName+" ").toLowerCase()],c=+a.nodeType||1;return 1!==c&&9!==c?!1:!b||b!==!0&&a.getAttribute("classid")===b},N=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,O=/([A-Z])/g;function P(a,b,c){if(void 0===c&&1===a.nodeType){var d="data-"+b.replace(O,"-$1").toLowerCase();if(c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:N.test(c)?n.parseJSON(c):c}catch(e){}n.data(a,b,c)}else c=void 0;
  }return c}function Q(a){var b;for(b in a)if(("data"!==b||!n.isEmptyObject(a[b]))&&"toJSON"!==b)return!1;return!0}function R(a,b,d,e){if(M(a)){var f,g,h=n.expando,i=a.nodeType,j=i?n.cache:a,k=i?a[h]:a[h]&&h;if(k&&j[k]&&(e||j[k].data)||void 0!==d||"string"!=typeof b)return k||(k=i?a[h]=c.pop()||n.guid++:h),j[k]||(j[k]=i?{}:{toJSON:n.noop}),"object"!=typeof b&&"function"!=typeof b||(e?j[k]=n.extend(j[k],b):j[k].data=n.extend(j[k].data,b)),g=j[k],e||(g.data||(g.data={}),g=g.data),void 0!==d&&(g[n.camelCase(b)]=d),"string"==typeof b?(f=g[b],null==f&&(f=g[n.camelCase(b)])):f=g,f}}function S(a,b,c){if(M(a)){var d,e,f=a.nodeType,g=f?n.cache:a,h=f?a[n.expando]:n.expando;if(g[h]){if(b&&(d=c?g[h]:g[h].data)){n.isArray(b)?b=b.concat(n.map(b,n.camelCase)):b in d?b=[b]:(b=n.camelCase(b),b=b in d?[b]:b.split(" ")),e=b.length;while(e--)delete d[b[e]];if(c?!Q(d):!n.isEmptyObject(d))return}(c||(delete g[h].data,Q(g[h])))&&(f?n.cleanData([a],!0):l.deleteExpando||g!=g.window?delete g[h]:g[h]=void 0)}}}n.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(a){return a=a.nodeType?n.cache[a[n.expando]]:a[n.expando],!!a&&!Q(a)},data:function(a,b,c){return R(a,b,c)},removeData:function(a,b){return S(a,b)},_data:function(a,b,c){return R(a,b,c,!0)},_removeData:function(a,b){return S(a,b,!0)}}),n.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=n.data(f),1===f.nodeType&&!n._data(f,"parsedAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=n.camelCase(d.slice(5)),P(f,d,e[d])));n._data(f,"parsedAttrs",!0)}return e}return"object"==typeof a?this.each(function(){n.data(this,a)}):arguments.length>1?this.each(function(){n.data(this,a,b)}):f?P(f,a,n.data(f,a)):void 0},removeData:function(a){return this.each(function(){n.removeData(this,a)})}}),n.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=n._data(a,b),c&&(!d||n.isArray(c)?d=n._data(a,b,n.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=n.queue(a,b),d=c.length,e=c.shift(),f=n._queueHooks(a,b),g=function(){n.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return n._data(a,c)||n._data(a,c,{empty:n.Callbacks("once memory").add(function(){n._removeData(a,b+"queue"),n._removeData(a,c)})})}}),n.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?n.queue(this[0],a):void 0===b?this:this.each(function(){var c=n.queue(this,a,b);n._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&n.dequeue(this,a)})},dequeue:function(a){return this.each(function(){n.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=n.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};"string"!=typeof a&&(b=a,a=void 0),a=a||"fx";while(g--)c=n._data(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}}),function(){var a;l.shrinkWrapBlocks=function(){if(null!=a)return a;a=!1;var b,c,e;return c=d.getElementsByTagName("body")[0],c&&c.style?(b=d.createElement("div"),e=d.createElement("div"),e.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(e).appendChild(b),"undefined"!=typeof b.style.zoom&&(b.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",b.appendChild(d.createElement("div")).style.width="5px",a=3!==b.offsetWidth),c.removeChild(e),a):void 0}}();var T=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,U=new RegExp("^(?:([+-])=|)("+T+")([a-z%]*)$","i"),V=["Top","Right","Bottom","Left"],W=function(a,b){return a=b||a,"none"===n.css(a,"display")||!n.contains(a.ownerDocument,a)};function X(a,b,c,d){var e,f=1,g=20,h=d?function(){return d.cur()}:function(){return n.css(a,b,"")},i=h(),j=c&&c[3]||(n.cssNumber[b]?"":"px"),k=(n.cssNumber[b]||"px"!==j&&+i)&&U.exec(n.css(a,b));if(k&&k[3]!==j){j=j||k[3],c=c||[],k=+i||1;do f=f||".5",k/=f,n.style(a,b,k+j);while(f!==(f=h()/i)&&1!==f&&--g)}return c&&(k=+k||+i||0,e=c[1]?k+(c[1]+1)*c[2]:+c[2],d&&(d.unit=j,d.start=k,d.end=e)),e}var Y=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===n.type(c)){e=!0;for(h in c)Y(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,n.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(n(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},Z=/^(?:checkbox|radio)$/i,$=/<([\w:-]+)/,_=/^$|\/(?:java|ecma)script/i,aa=/^\s+/,ba="abbr|article|aside|audio|bdi|canvas|data|datalist|details|dialog|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|picture|progress|section|summary|template|time|video";function ca(a){var b=ba.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}!function(){var a=d.createElement("div"),b=d.createDocumentFragment(),c=d.createElement("input");a.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",l.leadingWhitespace=3===a.firstChild.nodeType,l.tbody=!a.getElementsByTagName("tbody").length,l.htmlSerialize=!!a.getElementsByTagName("link").length,l.html5Clone="<:nav></:nav>"!==d.createElement("nav").cloneNode(!0).outerHTML,c.type="checkbox",c.checked=!0,b.appendChild(c),l.appendChecked=c.checked,a.innerHTML="<textarea>x</textarea>",l.noCloneChecked=!!a.cloneNode(!0).lastChild.defaultValue,b.appendChild(a),c=d.createElement("input"),c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),a.appendChild(c),l.checkClone=a.cloneNode(!0).cloneNode(!0).lastChild.checked,l.noCloneEvent=!!a.addEventListener,a[n.expando]=1,l.attributes=!a.getAttribute(n.expando)}();var da={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:l.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]};da.optgroup=da.option,da.tbody=da.tfoot=da.colgroup=da.caption=da.thead,da.th=da.td;function ea(a,b){var c,d,e=0,f="undefined"!=typeof a.getElementsByTagName?a.getElementsByTagName(b||"*"):"undefined"!=typeof a.querySelectorAll?a.querySelectorAll(b||"*"):void 0;if(!f)for(f=[],c=a.childNodes||a;null!=(d=c[e]);e++)!b||n.nodeName(d,b)?f.push(d):n.merge(f,ea(d,b));return void 0===b||b&&n.nodeName(a,b)?n.merge([a],f):f}function fa(a,b){for(var c,d=0;null!=(c=a[d]);d++)n._data(c,"globalEval",!b||n._data(b[d],"globalEval"))}var ga=/<|&#?\w+;/,ha=/<tbody/i;function ia(a){Z.test(a.type)&&(a.defaultChecked=a.checked)}function ja(a,b,c,d,e){for(var f,g,h,i,j,k,m,o=a.length,p=ca(b),q=[],r=0;o>r;r++)if(g=a[r],g||0===g)if("object"===n.type(g))n.merge(q,g.nodeType?[g]:g);else if(ga.test(g)){i=i||p.appendChild(b.createElement("div")),j=($.exec(g)||["",""])[1].toLowerCase(),m=da[j]||da._default,i.innerHTML=m[1]+n.htmlPrefilter(g)+m[2],f=m[0];while(f--)i=i.lastChild;if(!l.leadingWhitespace&&aa.test(g)&&q.push(b.createTextNode(aa.exec(g)[0])),!l.tbody){g="table"!==j||ha.test(g)?"<table>"!==m[1]||ha.test(g)?0:i:i.firstChild,f=g&&g.childNodes.length;while(f--)n.nodeName(k=g.childNodes[f],"tbody")&&!k.childNodes.length&&g.removeChild(k)}n.merge(q,i.childNodes),i.textContent="";while(i.firstChild)i.removeChild(i.firstChild);i=p.lastChild}else q.push(b.createTextNode(g));i&&p.removeChild(i),l.appendChecked||n.grep(ea(q,"input"),ia),r=0;while(g=q[r++])if(d&&n.inArray(g,d)>-1)e&&e.push(g);else if(h=n.contains(g.ownerDocument,g),i=ea(p.appendChild(g),"script"),h&&fa(i),c){f=0;while(g=i[f++])_.test(g.type||"")&&c.push(g)}return i=null,p}!function(){var b,c,e=d.createElement("div");for(b in{submit:!0,change:!0,focusin:!0})c="on"+b,(l[b]=c in a)||(e.setAttribute(c,"t"),l[b]=e.attributes[c].expando===!1);e=null}();var ka=/^(?:input|select|textarea)$/i,la=/^key/,ma=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,na=/^(?:focusinfocus|focusoutblur)$/,oa=/^([^.]*)(?:\.(.+)|)/;function pa(){return!0}function qa(){return!1}function ra(){try{return d.activeElement}catch(a){}}function sa(a,b,c,d,e,f){var g,h;if("object"==typeof b){"string"!=typeof c&&(d=d||c,c=void 0);for(h in b)sa(a,h,c,d,b[h],f);return a}if(null==d&&null==e?(e=c,d=c=void 0):null==e&&("string"==typeof c?(e=d,d=void 0):(e=d,d=c,c=void 0)),e===!1)e=qa;else if(!e)return a;return 1===f&&(g=e,e=function(a){return n().off(a),g.apply(this,arguments)},e.guid=g.guid||(g.guid=n.guid++)),a.each(function(){n.event.add(this,b,e,d,c)})}n.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=n._data(a);if(r){c.handler&&(i=c,c=i.handler,e=i.selector),c.guid||(c.guid=n.guid++),(g=r.events)||(g=r.events={}),(k=r.handle)||(k=r.handle=function(a){return"undefined"==typeof n||a&&n.event.triggered===a.type?void 0:n.event.dispatch.apply(k.elem,arguments)},k.elem=a),b=(b||"").match(G)||[""],h=b.length;while(h--)f=oa.exec(b[h])||[],o=q=f[1],p=(f[2]||"").split(".").sort(),o&&(j=n.event.special[o]||{},o=(e?j.delegateType:j.bindType)||o,j=n.event.special[o]||{},l=n.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&n.expr.match.needsContext.test(e),namespace:p.join(".")},i),(m=g[o])||(m=g[o]=[],m.delegateCount=0,j.setup&&j.setup.call(a,d,p,k)!==!1||(a.addEventListener?a.addEventListener(o,k,!1):a.attachEvent&&a.attachEvent("on"+o,k))),j.add&&(j.add.call(a,l),l.handler.guid||(l.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,l):m.push(l),n.event.global[o]=!0);a=null}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=n.hasData(a)&&n._data(a);if(r&&(k=r.events)){b=(b||"").match(G)||[""],j=b.length;while(j--)if(h=oa.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=n.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,m=k[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=f=m.length;while(f--)g=m[f],!e&&q!==g.origType||c&&c.guid!==g.guid||h&&!h.test(g.namespace)||d&&d!==g.selector&&("**"!==d||!g.selector)||(m.splice(f,1),g.selector&&m.delegateCount--,l.remove&&l.remove.call(a,g));i&&!m.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||n.removeEvent(a,o,r.handle),delete k[o])}else for(o in k)n.event.remove(a,o+b[j],c,d,!0);n.isEmptyObject(k)&&(delete r.handle,n._removeData(a,"events"))}},trigger:function(b,c,e,f){var g,h,i,j,l,m,o,p=[e||d],q=k.call(b,"type")?b.type:b,r=k.call(b,"namespace")?b.namespace.split("."):[];if(i=m=e=e||d,3!==e.nodeType&&8!==e.nodeType&&!na.test(q+n.event.triggered)&&(q.indexOf(".")>-1&&(r=q.split("."),q=r.shift(),r.sort()),h=q.indexOf(":")<0&&"on"+q,b=b[n.expando]?b:new n.Event(q,"object"==typeof b&&b),b.isTrigger=f?2:3,b.namespace=r.join("."),b.rnamespace=b.namespace?new RegExp("(^|\\.)"+r.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=e),c=null==c?[b]:n.makeArray(c,[b]),l=n.event.special[q]||{},f||!l.trigger||l.trigger.apply(e,c)!==!1)){if(!f&&!l.noBubble&&!n.isWindow(e)){for(j=l.delegateType||q,na.test(j+q)||(i=i.parentNode);i;i=i.parentNode)p.push(i),m=i;m===(e.ownerDocument||d)&&p.push(m.defaultView||m.parentWindow||a)}o=0;while((i=p[o++])&&!b.isPropagationStopped())b.type=o>1?j:l.bindType||q,g=(n._data(i,"events")||{})[b.type]&&n._data(i,"handle"),g&&g.apply(i,c),g=h&&i[h],g&&g.apply&&M(i)&&(b.result=g.apply(i,c),b.result===!1&&b.preventDefault());if(b.type=q,!f&&!b.isDefaultPrevented()&&(!l._default||l._default.apply(p.pop(),c)===!1)&&M(e)&&h&&e[q]&&!n.isWindow(e)){m=e[h],m&&(e[h]=null),n.event.triggered=q;try{e[q]()}catch(s){}n.event.triggered=void 0,m&&(e[h]=m)}return b.result}},dispatch:function(a){a=n.event.fix(a);var b,c,d,f,g,h=[],i=e.call(arguments),j=(n._data(this,"events")||{})[a.type]||[],k=n.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=n.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,c=0;while((g=f.handlers[c++])&&!a.isImmediatePropagationStopped())a.rnamespace&&!a.rnamespace.test(g.namespace)||(a.handleObj=g,a.data=g.data,d=((n.event.special[g.origType]||{}).handle||g.handler).apply(f.elem,i),void 0!==d&&(a.result=d)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&("click"!==a.type||isNaN(a.button)||a.button<1))for(;i!=this;i=i.parentNode||this)if(1===i.nodeType&&(i.disabled!==!0||"click"!==a.type)){for(d=[],c=0;h>c;c++)f=b[c],e=f.selector+" ",void 0===d[e]&&(d[e]=f.needsContext?n(e,this).index(i)>-1:n.find(e,this,null,[i]).length),d[e]&&d.push(f);d.length&&g.push({elem:i,handlers:d})}return h<b.length&&g.push({elem:this,handlers:b.slice(h)}),g},fix:function(a){if(a[n.expando])return a;var b,c,e,f=a.type,g=a,h=this.fixHooks[f];h||(this.fixHooks[f]=h=ma.test(f)?this.mouseHooks:la.test(f)?this.keyHooks:{}),e=h.props?this.props.concat(h.props):this.props,a=new n.Event(g),b=e.length;while(b--)c=e[b],a[c]=g[c];return a.target||(a.target=g.srcElement||d),3===a.target.nodeType&&(a.target=a.target.parentNode),a.metaKey=!!a.metaKey,h.filter?h.filter(a,g):a},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){return null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var c,e,f,g=b.button,h=b.fromElement;return null==a.pageX&&null!=b.clientX&&(e=a.target.ownerDocument||d,f=e.documentElement,c=e.body,a.pageX=b.clientX+(f&&f.scrollLeft||c&&c.scrollLeft||0)-(f&&f.clientLeft||c&&c.clientLeft||0),a.pageY=b.clientY+(f&&f.scrollTop||c&&c.scrollTop||0)-(f&&f.clientTop||c&&c.clientTop||0)),!a.relatedTarget&&h&&(a.relatedTarget=h===a.target?b.toElement:h),a.which||void 0===g||(a.which=1&g?1:2&g?3:4&g?2:0),a}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==ra()&&this.focus)try{return this.focus(),!1}catch(a){}},delegateType:"focusin"},blur:{trigger:function(){return this===ra()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return n.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):void 0},_default:function(a){return n.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}},simulate:function(a,b,c){var d=n.extend(new n.Event,c,{type:a,isSimulated:!0});n.event.trigger(d,null,b),d.isDefaultPrevented()&&c.preventDefault()}},n.removeEvent=d.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c)}:function(a,b,c){var d="on"+b;a.detachEvent&&("undefined"==typeof a[d]&&(a[d]=null),a.detachEvent(d,c))},n.Event=function(a,b){return this instanceof n.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&a.returnValue===!1?pa:qa):this.type=a,b&&n.extend(this,b),this.timeStamp=a&&a.timeStamp||n.now(),void(this[n.expando]=!0)):new n.Event(a,b)},n.Event.prototype={constructor:n.Event,isDefaultPrevented:qa,isPropagationStopped:qa,isImmediatePropagationStopped:qa,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=pa,a&&(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=pa,a&&!this.isSimulated&&(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=pa,a&&a.stopImmediatePropagation&&a.stopImmediatePropagation(),this.stopPropagation()}},n.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){n.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return e&&(e===d||n.contains(d,e))||(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),l.submit||(n.event.special.submit={setup:function(){return n.nodeName(this,"form")?!1:void n.event.add(this,"click._submit keypress._submit",function(a){var b=a.target,c=n.nodeName(b,"input")||n.nodeName(b,"button")?n.prop(b,"form"):void 0;c&&!n._data(c,"submit")&&(n.event.add(c,"submit._submit",function(a){a._submitBubble=!0}),n._data(c,"submit",!0))})},postDispatch:function(a){a._submitBubble&&(delete a._submitBubble,this.parentNode&&!a.isTrigger&&n.event.simulate("submit",this.parentNode,a))},teardown:function(){return n.nodeName(this,"form")?!1:void n.event.remove(this,"._submit")}}),l.change||(n.event.special.change={setup:function(){return ka.test(this.nodeName)?("checkbox"!==this.type&&"radio"!==this.type||(n.event.add(this,"propertychange._change",function(a){"checked"===a.originalEvent.propertyName&&(this._justChanged=!0)}),n.event.add(this,"click._change",function(a){this._justChanged&&!a.isTrigger&&(this._justChanged=!1),n.event.simulate("change",this,a)})),!1):void n.event.add(this,"beforeactivate._change",function(a){var b=a.target;ka.test(b.nodeName)&&!n._data(b,"change")&&(n.event.add(b,"change._change",function(a){!this.parentNode||a.isSimulated||a.isTrigger||n.event.simulate("change",this.parentNode,a)}),n._data(b,"change",!0))})},handle:function(a){var b=a.target;return this!==b||a.isSimulated||a.isTrigger||"radio"!==b.type&&"checkbox"!==b.type?a.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return n.event.remove(this,"._change"),!ka.test(this.nodeName)}}),l.focusin||n.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){n.event.simulate(b,a.target,n.event.fix(a))};n.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=n._data(d,b);e||d.addEventListener(a,c,!0),n._data(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=n._data(d,b)-1;e?n._data(d,b,e):(d.removeEventListener(a,c,!0),n._removeData(d,b))}}}),n.fn.extend({on:function(a,b,c,d){return sa(this,a,b,c,d)},one:function(a,b,c,d){return sa(this,a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,n(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return b!==!1&&"function"!=typeof b||(c=b,b=void 0),c===!1&&(c=qa),this.each(function(){n.event.remove(this,a,c,b)})},trigger:function(a,b){return this.each(function(){n.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];return c?n.event.trigger(a,b,c,!0):void 0}});var ta=/ jQuery\d+="(?:null|\d+)"/g,ua=new RegExp("<(?:"+ba+")[\\s/>]","i"),va=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,wa=/<script|<style|<link/i,xa=/checked\s*(?:[^=]|=\s*.checked.)/i,ya=/^true\/(.*)/,za=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Aa=ca(d),Ba=Aa.appendChild(d.createElement("div"));function Ca(a,b){return n.nodeName(a,"table")&&n.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function Da(a){return a.type=(null!==n.find.attr(a,"type"))+"/"+a.type,a}function Ea(a){var b=ya.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function Fa(a,b){if(1===b.nodeType&&n.hasData(a)){var c,d,e,f=n._data(a),g=n._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;e>d;d++)n.event.add(b,c,h[c][d])}g.data&&(g.data=n.extend({},g.data))}}function Ga(a,b){var c,d,e;if(1===b.nodeType){if(c=b.nodeName.toLowerCase(),!l.noCloneEvent&&b[n.expando]){e=n._data(b);for(d in e.events)n.removeEvent(b,d,e.handle);b.removeAttribute(n.expando)}"script"===c&&b.text!==a.text?(Da(b).text=a.text,Ea(b)):"object"===c?(b.parentNode&&(b.outerHTML=a.outerHTML),l.html5Clone&&a.innerHTML&&!n.trim(b.innerHTML)&&(b.innerHTML=a.innerHTML)):"input"===c&&Z.test(a.type)?(b.defaultChecked=b.checked=a.checked,b.value!==a.value&&(b.value=a.value)):"option"===c?b.defaultSelected=b.selected=a.defaultSelected:"input"!==c&&"textarea"!==c||(b.defaultValue=a.defaultValue)}}function Ha(a,b,c,d){b=f.apply([],b);var e,g,h,i,j,k,m=0,o=a.length,p=o-1,q=b[0],r=n.isFunction(q);if(r||o>1&&"string"==typeof q&&!l.checkClone&&xa.test(q))return a.each(function(e){var f=a.eq(e);r&&(b[0]=q.call(this,e,f.html())),Ha(f,b,c,d)});if(o&&(k=ja(b,a[0].ownerDocument,!1,a,d),e=k.firstChild,1===k.childNodes.length&&(k=e),e||d)){for(i=n.map(ea(k,"script"),Da),h=i.length;o>m;m++)g=k,m!==p&&(g=n.clone(g,!0,!0),h&&n.merge(i,ea(g,"script"))),c.call(a[m],g,m);if(h)for(j=i[i.length-1].ownerDocument,n.map(i,Ea),m=0;h>m;m++)g=i[m],_.test(g.type||"")&&!n._data(g,"globalEval")&&n.contains(j,g)&&(g.src?n._evalUrl&&n._evalUrl(g.src):n.globalEval((g.text||g.textContent||g.innerHTML||"").replace(za,"")));k=e=null}return a}function Ia(a,b,c){for(var d,e=b?n.filter(b,a):a,f=0;null!=(d=e[f]);f++)c||1!==d.nodeType||n.cleanData(ea(d)),d.parentNode&&(c&&n.contains(d.ownerDocument,d)&&fa(ea(d,"script")),d.parentNode.removeChild(d));return a}n.extend({htmlPrefilter:function(a){return a.replace(va,"<$1></$2>")},clone:function(a,b,c){var d,e,f,g,h,i=n.contains(a.ownerDocument,a);if(l.html5Clone||n.isXMLDoc(a)||!ua.test("<"+a.nodeName+">")?f=a.cloneNode(!0):(Ba.innerHTML=a.outerHTML,Ba.removeChild(f=Ba.firstChild)),!(l.noCloneEvent&&l.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||n.isXMLDoc(a)))for(d=ea(f),h=ea(a),g=0;null!=(e=h[g]);++g)d[g]&&Ga(e,d[g]);if(b)if(c)for(h=h||ea(a),d=d||ea(f),g=0;null!=(e=h[g]);g++)Fa(e,d[g]);else Fa(a,f);return d=ea(f,"script"),d.length>0&&fa(d,!i&&ea(a,"script")),d=h=e=null,f},cleanData:function(a,b){for(var d,e,f,g,h=0,i=n.expando,j=n.cache,k=l.attributes,m=n.event.special;null!=(d=a[h]);h++)if((b||M(d))&&(f=d[i],g=f&&j[f])){if(g.events)for(e in g.events)m[e]?n.event.remove(d,e):n.removeEvent(d,e,g.handle);j[f]&&(delete j[f],k||"undefined"==typeof d.removeAttribute?d[i]=void 0:d.removeAttribute(i),c.push(f))}}}),n.fn.extend({domManip:Ha,detach:function(a){return Ia(this,a,!0)},remove:function(a){return Ia(this,a)},text:function(a){return Y(this,function(a){return void 0===a?n.text(this):this.empty().append((this[0]&&this[0].ownerDocument||d).createTextNode(a))},null,a,arguments.length)},append:function(){return Ha(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=Ca(this,a);b.appendChild(a)}})},prepend:function(){return Ha(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=Ca(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return Ha(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return Ha(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},empty:function(){for(var a,b=0;null!=(a=this[b]);b++){1===a.nodeType&&n.cleanData(ea(a,!1));while(a.firstChild)a.removeChild(a.firstChild);a.options&&n.nodeName(a,"select")&&(a.options.length=0)}return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return n.clone(this,a,b)})},html:function(a){return Y(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a)return 1===b.nodeType?b.innerHTML.replace(ta,""):void 0;if("string"==typeof a&&!wa.test(a)&&(l.htmlSerialize||!ua.test(a))&&(l.leadingWhitespace||!aa.test(a))&&!da[($.exec(a)||["",""])[1].toLowerCase()]){a=n.htmlPrefilter(a);try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(n.cleanData(ea(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=[];return Ha(this,arguments,function(b){var c=this.parentNode;n.inArray(this,a)<0&&(n.cleanData(ea(this)),c&&c.replaceChild(b,this))},a)}}),n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){n.fn[a]=function(a){for(var c,d=0,e=[],f=n(a),h=f.length-1;h>=d;d++)c=d===h?this:this.clone(!0),n(f[d])[b](c),g.apply(e,c.get());return this.pushStack(e)}});var Ja,Ka={HTML:"block",BODY:"block"};function La(a,b){var c=n(b.createElement(a)).appendTo(b.body),d=n.css(c[0],"display");return c.detach(),d}function Ma(a){var b=d,c=Ka[a];return c||(c=La(a,b),"none"!==c&&c||(Ja=(Ja||n("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement),b=(Ja[0].contentWindow||Ja[0].contentDocument).document,b.write(),b.close(),c=La(a,b),Ja.detach()),Ka[a]=c),c}var Na=/^margin/,Oa=new RegExp("^("+T+")(?!px)[a-z%]+$","i"),Pa=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e},Qa=d.documentElement;!function(){var b,c,e,f,g,h,i=d.createElement("div"),j=d.createElement("div");if(j.style){j.style.cssText="float:left;opacity:.5",l.opacity="0.5"===j.style.opacity,l.cssFloat=!!j.style.cssFloat,j.style.backgroundClip="content-box",j.cloneNode(!0).style.backgroundClip="",l.clearCloneStyle="content-box"===j.style.backgroundClip,i=d.createElement("div"),i.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",j.innerHTML="",i.appendChild(j),l.boxSizing=""===j.style.boxSizing||""===j.style.MozBoxSizing||""===j.style.WebkitBoxSizing,n.extend(l,{reliableHiddenOffsets:function(){return null==b&&k(),f},boxSizingReliable:function(){return null==b&&k(),e},pixelMarginRight:function(){return null==b&&k(),c},pixelPosition:function(){return null==b&&k(),b},reliableMarginRight:function(){return null==b&&k(),g},reliableMarginLeft:function(){return null==b&&k(),h}});function k(){var k,l,m=d.documentElement;m.appendChild(i),j.style.cssText="-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",b=e=h=!1,c=g=!0,a.getComputedStyle&&(l=a.getComputedStyle(j),b="1%"!==(l||{}).top,h="2px"===(l||{}).marginLeft,e="4px"===(l||{width:"4px"}).width,j.style.marginRight="50%",c="4px"===(l||{marginRight:"4px"}).marginRight,k=j.appendChild(d.createElement("div")),k.style.cssText=j.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",k.style.marginRight=k.style.width="0",j.style.width="1px",g=!parseFloat((a.getComputedStyle(k)||{}).marginRight),j.removeChild(k)),j.style.display="none",f=0===j.getClientRects().length,f&&(j.style.display="",j.innerHTML="<table><tr><td></td><td>t</td></tr></table>",j.childNodes[0].style.borderCollapse="separate",k=j.getElementsByTagName("td"),k[0].style.cssText="margin:0;border:0;padding:0;display:none",f=0===k[0].offsetHeight,f&&(k[0].style.display="",k[1].style.display="none",f=0===k[0].offsetHeight)),m.removeChild(i)}}}();var Ra,Sa,Ta=/^(top|right|bottom|left)$/;a.getComputedStyle?(Ra=function(b){var c=b.ownerDocument.defaultView;return c&&c.opener||(c=a),c.getComputedStyle(b)},Sa=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Ra(a),g=c?c.getPropertyValue(b)||c[b]:void 0,""!==g&&void 0!==g||n.contains(a.ownerDocument,a)||(g=n.style(a,b)),c&&!l.pixelMarginRight()&&Oa.test(g)&&Na.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f),void 0===g?g:g+""}):Qa.currentStyle&&(Ra=function(a){return a.currentStyle},Sa=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Ra(a),g=c?c[b]:void 0,null==g&&h&&h[b]&&(g=h[b]),Oa.test(g)&&!Ta.test(b)&&(d=h.left,e=a.runtimeStyle,f=e&&e.left,f&&(e.left=a.currentStyle.left),h.left="fontSize"===b?"1em":g,g=h.pixelLeft+"px",h.left=d,f&&(e.left=f)),void 0===g?g:g+""||"auto"});function Ua(a,b){return{get:function(){return a()?void delete this.get:(this.get=b).apply(this,arguments)}}}var Va=/alpha\([^)]*\)/i,Wa=/opacity\s*=\s*([^)]*)/i,Xa=/^(none|table(?!-c[ea]).+)/,Ya=new RegExp("^("+T+")(.*)$","i"),Za={position:"absolute",visibility:"hidden",display:"block"},$a={letterSpacing:"0",fontWeight:"400"},_a=["Webkit","O","Moz","ms"],ab=d.createElement("div").style;function bb(a){if(a in ab)return a;var b=a.charAt(0).toUpperCase()+a.slice(1),c=_a.length;while(c--)if(a=_a[c]+b,a in ab)return a}function cb(a,b){for(var c,d,e,f=[],g=0,h=a.length;h>g;g++)d=a[g],d.style&&(f[g]=n._data(d,"olddisplay"),c=d.style.display,b?(f[g]||"none"!==c||(d.style.display=""),""===d.style.display&&W(d)&&(f[g]=n._data(d,"olddisplay",Ma(d.nodeName)))):(e=W(d),(c&&"none"!==c||!e)&&n._data(d,"olddisplay",e?c:n.css(d,"display"))));for(g=0;h>g;g++)d=a[g],d.style&&(b&&"none"!==d.style.display&&""!==d.style.display||(d.style.display=b?f[g]||"":"none"));return a}function db(a,b,c){var d=Ya.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||"px"):b}function eb(a,b,c,d,e){for(var f=c===(d?"border":"content")?4:"width"===b?1:0,g=0;4>f;f+=2)"margin"===c&&(g+=n.css(a,c+V[f],!0,e)),d?("content"===c&&(g-=n.css(a,"padding"+V[f],!0,e)),"margin"!==c&&(g-=n.css(a,"border"+V[f]+"Width",!0,e))):(g+=n.css(a,"padding"+V[f],!0,e),"padding"!==c&&(g+=n.css(a,"border"+V[f]+"Width",!0,e)));return g}function fb(a,b,c){var d=!0,e="width"===b?a.offsetWidth:a.offsetHeight,f=Ra(a),g=l.boxSizing&&"border-box"===n.css(a,"boxSizing",!1,f);if(0>=e||null==e){if(e=Sa(a,b,f),(0>e||null==e)&&(e=a.style[b]),Oa.test(e))return e;d=g&&(l.boxSizingReliable()||e===a.style[b]),e=parseFloat(e)||0}return e+eb(a,b,c||(g?"border":"content"),d,f)+"px"}n.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=Sa(a,"opacity");return""===c?"1":c}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":l.cssFloat?"cssFloat":"styleFloat"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=n.camelCase(b),i=a.style;if(b=n.cssProps[h]||(n.cssProps[h]=bb(h)||h),g=n.cssHooks[b]||n.cssHooks[h],void 0===c)return g&&"get"in g&&void 0!==(e=g.get(a,!1,d))?e:i[b];if(f=typeof c,"string"===f&&(e=U.exec(c))&&e[1]&&(c=X(a,b,e),f="number"),null!=c&&c===c&&("number"===f&&(c+=e&&e[3]||(n.cssNumber[h]?"":"px")),l.clearCloneStyle||""!==c||0!==b.indexOf("background")||(i[b]="inherit"),!(g&&"set"in g&&void 0===(c=g.set(a,c,d)))))try{i[b]=c}catch(j){}}},css:function(a,b,c,d){var e,f,g,h=n.camelCase(b);return b=n.cssProps[h]||(n.cssProps[h]=bb(h)||h),g=n.cssHooks[b]||n.cssHooks[h],g&&"get"in g&&(f=g.get(a,!0,c)),void 0===f&&(f=Sa(a,b,d)),"normal"===f&&b in $a&&(f=$a[b]),""===c||c?(e=parseFloat(f),c===!0||isFinite(e)?e||0:f):f}}),n.each(["height","width"],function(a,b){n.cssHooks[b]={get:function(a,c,d){return c?Xa.test(n.css(a,"display"))&&0===a.offsetWidth?Pa(a,Za,function(){return fb(a,b,d)}):fb(a,b,d):void 0},set:function(a,c,d){var e=d&&Ra(a);return db(a,c,d?eb(a,b,d,l.boxSizing&&"border-box"===n.css(a,"boxSizing",!1,e),e):0)}}}),l.opacity||(n.cssHooks.opacity={get:function(a,b){return Wa.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=n.isNumeric(b)?"alpha(opacity="+100*b+")":"",f=d&&d.filter||c.filter||"";c.zoom=1,(b>=1||""===b)&&""===n.trim(f.replace(Va,""))&&c.removeAttribute&&(c.removeAttribute("filter"),""===b||d&&!d.filter)||(c.filter=Va.test(f)?f.replace(Va,e):f+" "+e)}}),n.cssHooks.marginRight=Ua(l.reliableMarginRight,function(a,b){return b?Pa(a,{display:"inline-block"},Sa,[a,"marginRight"]):void 0}),n.cssHooks.marginLeft=Ua(l.reliableMarginLeft,function(a,b){return b?(parseFloat(Sa(a,"marginLeft"))||(n.contains(a.ownerDocument,a)?a.getBoundingClientRect().left-Pa(a,{
  marginLeft:0},function(){return a.getBoundingClientRect().left}):0))+"px":void 0}),n.each({margin:"",padding:"",border:"Width"},function(a,b){n.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];4>d;d++)e[a+V[d]+b]=f[d]||f[d-2]||f[0];return e}},Na.test(a)||(n.cssHooks[a+b].set=db)}),n.fn.extend({css:function(a,b){return Y(this,function(a,b,c){var d,e,f={},g=0;if(n.isArray(b)){for(d=Ra(a),e=b.length;e>g;g++)f[b[g]]=n.css(a,b[g],!1,d);return f}return void 0!==c?n.style(a,b,c):n.css(a,b)},a,b,arguments.length>1)},show:function(){return cb(this,!0)},hide:function(){return cb(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){W(this)?n(this).show():n(this).hide()})}});function gb(a,b,c,d,e){return new gb.prototype.init(a,b,c,d,e)}n.Tween=gb,gb.prototype={constructor:gb,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||n.easing._default,this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(n.cssNumber[c]?"":"px")},cur:function(){var a=gb.propHooks[this.prop];return a&&a.get?a.get(this):gb.propHooks._default.get(this)},run:function(a){var b,c=gb.propHooks[this.prop];return this.options.duration?this.pos=b=n.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):gb.propHooks._default.set(this),this}},gb.prototype.init.prototype=gb.prototype,gb.propHooks={_default:{get:function(a){var b;return 1!==a.elem.nodeType||null!=a.elem[a.prop]&&null==a.elem.style[a.prop]?a.elem[a.prop]:(b=n.css(a.elem,a.prop,""),b&&"auto"!==b?b:0)},set:function(a){n.fx.step[a.prop]?n.fx.step[a.prop](a):1!==a.elem.nodeType||null==a.elem.style[n.cssProps[a.prop]]&&!n.cssHooks[a.prop]?a.elem[a.prop]=a.now:n.style(a.elem,a.prop,a.now+a.unit)}}},gb.propHooks.scrollTop=gb.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},n.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2},_default:"swing"},n.fx=gb.prototype.init,n.fx.step={};var hb,ib,jb=/^(?:toggle|show|hide)$/,kb=/queueHooks$/;function lb(){return a.setTimeout(function(){hb=void 0}),hb=n.now()}function mb(a,b){var c,d={height:a},e=0;for(b=b?1:0;4>e;e+=2-b)c=V[e],d["margin"+c]=d["padding"+c]=a;return b&&(d.opacity=d.width=a),d}function nb(a,b,c){for(var d,e=(qb.tweeners[b]||[]).concat(qb.tweeners["*"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function ob(a,b,c){var d,e,f,g,h,i,j,k,m=this,o={},p=a.style,q=a.nodeType&&W(a),r=n._data(a,"fxshow");c.queue||(h=n._queueHooks(a,"fx"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,m.always(function(){m.always(function(){h.unqueued--,n.queue(a,"fx").length||h.empty.fire()})})),1===a.nodeType&&("height"in b||"width"in b)&&(c.overflow=[p.overflow,p.overflowX,p.overflowY],j=n.css(a,"display"),k="none"===j?n._data(a,"olddisplay")||Ma(a.nodeName):j,"inline"===k&&"none"===n.css(a,"float")&&(l.inlineBlockNeedsLayout&&"inline"!==Ma(a.nodeName)?p.zoom=1:p.display="inline-block")),c.overflow&&(p.overflow="hidden",l.shrinkWrapBlocks()||m.always(function(){p.overflow=c.overflow[0],p.overflowX=c.overflow[1],p.overflowY=c.overflow[2]}));for(d in b)if(e=b[d],jb.exec(e)){if(delete b[d],f=f||"toggle"===e,e===(q?"hide":"show")){if("show"!==e||!r||void 0===r[d])continue;q=!0}o[d]=r&&r[d]||n.style(a,d)}else j=void 0;if(n.isEmptyObject(o))"inline"===("none"===j?Ma(a.nodeName):j)&&(p.display=j);else{r?"hidden"in r&&(q=r.hidden):r=n._data(a,"fxshow",{}),f&&(r.hidden=!q),q?n(a).show():m.done(function(){n(a).hide()}),m.done(function(){var b;n._removeData(a,"fxshow");for(b in o)n.style(a,b,o[b])});for(d in o)g=nb(q?r[d]:0,d,m),d in r||(r[d]=g.start,q&&(g.end=g.start,g.start="width"===d||"height"===d?1:0))}}function pb(a,b){var c,d,e,f,g;for(c in a)if(d=n.camelCase(c),e=b[d],f=a[c],n.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=n.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function qb(a,b,c){var d,e,f=0,g=qb.prefilters.length,h=n.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=hb||lb(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),1>f&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:n.extend({},b),opts:n.extend(!0,{specialEasing:{},easing:n.easing._default},c),originalProperties:b,originalOptions:c,startTime:hb||lb(),duration:c.duration,tweens:[],createTween:function(b,c){var d=n.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;d>c;c++)j.tweens[c].run(1);return b?(h.notifyWith(a,[j,1,0]),h.resolveWith(a,[j,b])):h.rejectWith(a,[j,b]),this}}),k=j.props;for(pb(k,j.opts.specialEasing);g>f;f++)if(d=qb.prefilters[f].call(j,a,k,j.opts))return n.isFunction(d.stop)&&(n._queueHooks(j.elem,j.opts.queue).stop=n.proxy(d.stop,d)),d;return n.map(k,nb,j),n.isFunction(j.opts.start)&&j.opts.start.call(a,j),n.fx.timer(n.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}n.Animation=n.extend(qb,{tweeners:{"*":[function(a,b){var c=this.createTween(a,b);return X(c.elem,a,U.exec(b),c),c}]},tweener:function(a,b){n.isFunction(a)?(b=a,a=["*"]):a=a.match(G);for(var c,d=0,e=a.length;e>d;d++)c=a[d],qb.tweeners[c]=qb.tweeners[c]||[],qb.tweeners[c].unshift(b)},prefilters:[ob],prefilter:function(a,b){b?qb.prefilters.unshift(a):qb.prefilters.push(a)}}),n.speed=function(a,b,c){var d=a&&"object"==typeof a?n.extend({},a):{complete:c||!c&&b||n.isFunction(a)&&a,duration:a,easing:c&&b||b&&!n.isFunction(b)&&b};return d.duration=n.fx.off?0:"number"==typeof d.duration?d.duration:d.duration in n.fx.speeds?n.fx.speeds[d.duration]:n.fx.speeds._default,null!=d.queue&&d.queue!==!0||(d.queue="fx"),d.old=d.complete,d.complete=function(){n.isFunction(d.old)&&d.old.call(this),d.queue&&n.dequeue(this,d.queue)},d},n.fn.extend({fadeTo:function(a,b,c,d){return this.filter(W).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=n.isEmptyObject(a),f=n.speed(b,c,d),g=function(){var b=qb(this,n.extend({},a),f);(e||n._data(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=n.timers,g=n._data(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&kb.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));!b&&c||n.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=n._data(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=n.timers,g=d?d.length:0;for(c.finish=!0,n.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;g>b;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),n.each(["toggle","show","hide"],function(a,b){var c=n.fn[b];n.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(mb(b,!0),a,d,e)}}),n.each({slideDown:mb("show"),slideUp:mb("hide"),slideToggle:mb("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){n.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),n.timers=[],n.fx.tick=function(){var a,b=n.timers,c=0;for(hb=n.now();c<b.length;c++)a=b[c],a()||b[c]!==a||b.splice(c--,1);b.length||n.fx.stop(),hb=void 0},n.fx.timer=function(a){n.timers.push(a),a()?n.fx.start():n.timers.pop()},n.fx.interval=13,n.fx.start=function(){ib||(ib=a.setInterval(n.fx.tick,n.fx.interval))},n.fx.stop=function(){a.clearInterval(ib),ib=null},n.fx.speeds={slow:600,fast:200,_default:400},n.fn.delay=function(b,c){return b=n.fx?n.fx.speeds[b]||b:b,c=c||"fx",this.queue(c,function(c,d){var e=a.setTimeout(c,b);d.stop=function(){a.clearTimeout(e)}})},function(){var a,b=d.createElement("input"),c=d.createElement("div"),e=d.createElement("select"),f=e.appendChild(d.createElement("option"));c=d.createElement("div"),c.setAttribute("className","t"),c.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",a=c.getElementsByTagName("a")[0],b.setAttribute("type","checkbox"),c.appendChild(b),a=c.getElementsByTagName("a")[0],a.style.cssText="top:1px",l.getSetAttribute="t"!==c.className,l.style=/top/.test(a.getAttribute("style")),l.hrefNormalized="/a"===a.getAttribute("href"),l.checkOn=!!b.value,l.optSelected=f.selected,l.enctype=!!d.createElement("form").enctype,e.disabled=!0,l.optDisabled=!f.disabled,b=d.createElement("input"),b.setAttribute("value",""),l.input=""===b.getAttribute("value"),b.value="t",b.setAttribute("type","radio"),l.radioValue="t"===b.value}();var rb=/\r/g,sb=/[\x20\t\r\n\f]+/g;n.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=n.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,n(this).val()):a,null==e?e="":"number"==typeof e?e+="":n.isArray(e)&&(e=n.map(e,function(a){return null==a?"":a+""})),b=n.valHooks[this.type]||n.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=n.valHooks[e.type]||n.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(rb,""):null==c?"":c)}}}),n.extend({valHooks:{option:{get:function(a){var b=n.find.attr(a,"value");return null!=b?b:n.trim(n.text(a)).replace(sb," ")}},select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f="select-one"===a.type||0>e,g=f?null:[],h=f?e+1:d.length,i=0>e?h:f?e:0;h>i;i++)if(c=d[i],(c.selected||i===e)&&(l.optDisabled?!c.disabled:null===c.getAttribute("disabled"))&&(!c.parentNode.disabled||!n.nodeName(c.parentNode,"optgroup"))){if(b=n(c).val(),f)return b;g.push(b)}return g},set:function(a,b){var c,d,e=a.options,f=n.makeArray(b),g=e.length;while(g--)if(d=e[g],n.inArray(n.valHooks.option.get(d),f)>-1)try{d.selected=c=!0}catch(h){d.scrollHeight}else d.selected=!1;return c||(a.selectedIndex=-1),e}}}}),n.each(["radio","checkbox"],function(){n.valHooks[this]={set:function(a,b){return n.isArray(b)?a.checked=n.inArray(n(a).val(),b)>-1:void 0}},l.checkOn||(n.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var tb,ub,vb=n.expr.attrHandle,wb=/^(?:checked|selected)$/i,xb=l.getSetAttribute,yb=l.input;n.fn.extend({attr:function(a,b){return Y(this,n.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){n.removeAttr(this,a)})}}),n.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return"undefined"==typeof a.getAttribute?n.prop(a,b,c):(1===f&&n.isXMLDoc(a)||(b=b.toLowerCase(),e=n.attrHooks[b]||(n.expr.match.bool.test(b)?ub:tb)),void 0!==c?null===c?void n.removeAttr(a,b):e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:(a.setAttribute(b,c+""),c):e&&"get"in e&&null!==(d=e.get(a,b))?d:(d=n.find.attr(a,b),null==d?void 0:d))},attrHooks:{type:{set:function(a,b){if(!l.radioValue&&"radio"===b&&n.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}},removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(G);if(f&&1===a.nodeType)while(c=f[e++])d=n.propFix[c]||c,n.expr.match.bool.test(c)?yb&&xb||!wb.test(c)?a[d]=!1:a[n.camelCase("default-"+c)]=a[d]=!1:n.attr(a,c,""),a.removeAttribute(xb?c:d)}}),ub={set:function(a,b,c){return b===!1?n.removeAttr(a,c):yb&&xb||!wb.test(c)?a.setAttribute(!xb&&n.propFix[c]||c,c):a[n.camelCase("default-"+c)]=a[c]=!0,c}},n.each(n.expr.match.bool.source.match(/\w+/g),function(a,b){var c=vb[b]||n.find.attr;yb&&xb||!wb.test(b)?vb[b]=function(a,b,d){var e,f;return d||(f=vb[b],vb[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,vb[b]=f),e}:vb[b]=function(a,b,c){return c?void 0:a[n.camelCase("default-"+b)]?b.toLowerCase():null}}),yb&&xb||(n.attrHooks.value={set:function(a,b,c){return n.nodeName(a,"input")?void(a.defaultValue=b):tb&&tb.set(a,b,c)}}),xb||(tb={set:function(a,b,c){var d=a.getAttributeNode(c);return d||a.setAttributeNode(d=a.ownerDocument.createAttribute(c)),d.value=b+="","value"===c||b===a.getAttribute(c)?b:void 0}},vb.id=vb.name=vb.coords=function(a,b,c){var d;return c?void 0:(d=a.getAttributeNode(b))&&""!==d.value?d.value:null},n.valHooks.button={get:function(a,b){var c=a.getAttributeNode(b);return c&&c.specified?c.value:void 0},set:tb.set},n.attrHooks.contenteditable={set:function(a,b,c){tb.set(a,""===b?!1:b,c)}},n.each(["width","height"],function(a,b){n.attrHooks[b]={set:function(a,c){return""===c?(a.setAttribute(b,"auto"),c):void 0}}})),l.style||(n.attrHooks.style={get:function(a){return a.style.cssText||void 0},set:function(a,b){return a.style.cssText=b+""}});var zb=/^(?:input|select|textarea|button|object)$/i,Ab=/^(?:a|area)$/i;n.fn.extend({prop:function(a,b){return Y(this,n.prop,a,b,arguments.length>1)},removeProp:function(a){return a=n.propFix[a]||a,this.each(function(){try{this[a]=void 0,delete this[a]}catch(b){}})}}),n.extend({prop:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return 1===f&&n.isXMLDoc(a)||(b=n.propFix[b]||b,e=n.propHooks[b]),void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){var b=n.find.attr(a,"tabindex");return b?parseInt(b,10):zb.test(a.nodeName)||Ab.test(a.nodeName)&&a.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),l.hrefNormalized||n.each(["href","src"],function(a,b){n.propHooks[b]={get:function(a){return a.getAttribute(b,4)}}}),l.optSelected||(n.propHooks.selected={get:function(a){var b=a.parentNode;return b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex),null},set:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex)}}),n.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){n.propFix[this.toLowerCase()]=this}),l.enctype||(n.propFix.enctype="encoding");var Bb=/[\t\r\n\f]/g;function Cb(a){return n.attr(a,"class")||""}n.fn.extend({addClass:function(a){var b,c,d,e,f,g,h,i=0;if(n.isFunction(a))return this.each(function(b){n(this).addClass(a.call(this,b,Cb(this)))});if("string"==typeof a&&a){b=a.match(G)||[];while(c=this[i++])if(e=Cb(c),d=1===c.nodeType&&(" "+e+" ").replace(Bb," ")){g=0;while(f=b[g++])d.indexOf(" "+f+" ")<0&&(d+=f+" ");h=n.trim(d),e!==h&&n.attr(c,"class",h)}}return this},removeClass:function(a){var b,c,d,e,f,g,h,i=0;if(n.isFunction(a))return this.each(function(b){n(this).removeClass(a.call(this,b,Cb(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof a&&a){b=a.match(G)||[];while(c=this[i++])if(e=Cb(c),d=1===c.nodeType&&(" "+e+" ").replace(Bb," ")){g=0;while(f=b[g++])while(d.indexOf(" "+f+" ")>-1)d=d.replace(" "+f+" "," ");h=n.trim(d),e!==h&&n.attr(c,"class",h)}}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):n.isFunction(a)?this.each(function(c){n(this).toggleClass(a.call(this,c,Cb(this),b),b)}):this.each(function(){var b,d,e,f;if("string"===c){d=0,e=n(this),f=a.match(G)||[];while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else void 0!==a&&"boolean"!==c||(b=Cb(this),b&&n._data(this,"__className__",b),n.attr(this,"class",b||a===!1?"":n._data(this,"__className__")||""))})},hasClass:function(a){var b,c,d=0;b=" "+a+" ";while(c=this[d++])if(1===c.nodeType&&(" "+Cb(c)+" ").replace(Bb," ").indexOf(b)>-1)return!0;return!1}}),n.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){n.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),n.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var Db=a.location,Eb=n.now(),Fb=/\?/,Gb=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;n.parseJSON=function(b){if(a.JSON&&a.JSON.parse)return a.JSON.parse(b+"");var c,d=null,e=n.trim(b+"");return e&&!n.trim(e.replace(Gb,function(a,b,e,f){return c&&b&&(d=0),0===d?a:(c=e||b,d+=!f-!e,"")}))?Function("return "+e)():n.error("Invalid JSON: "+b)},n.parseXML=function(b){var c,d;if(!b||"string"!=typeof b)return null;try{a.DOMParser?(d=new a.DOMParser,c=d.parseFromString(b,"text/xml")):(c=new a.ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b))}catch(e){c=void 0}return c&&c.documentElement&&!c.getElementsByTagName("parsererror").length||n.error("Invalid XML: "+b),c};var Hb=/#.*$/,Ib=/([?&])_=[^&]*/,Jb=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Kb=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Lb=/^(?:GET|HEAD)$/,Mb=/^\/\//,Nb=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Ob={},Pb={},Qb="*/".concat("*"),Rb=Db.href,Sb=Nb.exec(Rb.toLowerCase())||[];function Tb(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(G)||[];if(n.isFunction(c))while(d=f[e++])"+"===d.charAt(0)?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function Ub(a,b,c,d){var e={},f=a===Pb;function g(h){var i;return e[h]=!0,n.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||f||e[j]?f?!(i=j):void 0:(b.dataTypes.unshift(j),g(j),!1)}),i}return g(b.dataTypes[0])||!e["*"]&&g("*")}function Vb(a,b){var c,d,e=n.ajaxSettings.flatOptions||{};for(d in b)void 0!==b[d]&&((e[d]?a:c||(c={}))[d]=b[d]);return c&&n.extend(!0,a,c),a}function Wb(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while("*"===i[0])i.shift(),void 0===e&&(e=a.mimeType||b.getResponseHeader("Content-Type"));if(e)for(g in h)if(h[g]&&h[g].test(e)){i.unshift(g);break}if(i[0]in c)f=i[0];else{for(g in c){if(!i[0]||a.converters[g+" "+i[0]]){f=g;break}d||(d=g)}f=f||d}return f?(f!==i[0]&&i.unshift(f),c[f]):void 0}function Xb(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];f=k.shift();while(f)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g)for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a["throws"])b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}n.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Rb,type:"GET",isLocal:Kb.test(Sb[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Qb,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":n.parseJSON,"text xml":n.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?Vb(Vb(a,n.ajaxSettings),b):Vb(n.ajaxSettings,a)},ajaxPrefilter:Tb(Ob),ajaxTransport:Tb(Pb),ajax:function(b,c){"object"==typeof b&&(c=b,b=void 0),c=c||{};var d,e,f,g,h,i,j,k,l=n.ajaxSetup({},c),m=l.context||l,o=l.context&&(m.nodeType||m.jquery)?n(m):n.event,p=n.Deferred(),q=n.Callbacks("once memory"),r=l.statusCode||{},s={},t={},u=0,v="canceled",w={readyState:0,getResponseHeader:function(a){var b;if(2===u){if(!k){k={};while(b=Jb.exec(g))k[b[1].toLowerCase()]=b[2]}b=k[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===u?g:null},setRequestHeader:function(a,b){var c=a.toLowerCase();return u||(a=t[c]=t[c]||a,s[a]=b),this},overrideMimeType:function(a){return u||(l.mimeType=a),this},statusCode:function(a){var b;if(a)if(2>u)for(b in a)r[b]=[r[b],a[b]];else w.always(a[w.status]);return this},abort:function(a){var b=a||v;return j&&j.abort(b),y(0,b),this}};if(p.promise(w).complete=q.add,w.success=w.done,w.error=w.fail,l.url=((b||l.url||Rb)+"").replace(Hb,"").replace(Mb,Sb[1]+"//"),l.type=c.method||c.type||l.method||l.type,l.dataTypes=n.trim(l.dataType||"*").toLowerCase().match(G)||[""],null==l.crossDomain&&(d=Nb.exec(l.url.toLowerCase()),l.crossDomain=!(!d||d[1]===Sb[1]&&d[2]===Sb[2]&&(d[3]||("http:"===d[1]?"80":"443"))===(Sb[3]||("http:"===Sb[1]?"80":"443")))),l.data&&l.processData&&"string"!=typeof l.data&&(l.data=n.param(l.data,l.traditional)),Ub(Ob,l,c,w),2===u)return w;i=n.event&&l.global,i&&0===n.active++&&n.event.trigger("ajaxStart"),l.type=l.type.toUpperCase(),l.hasContent=!Lb.test(l.type),f=l.url,l.hasContent||(l.data&&(f=l.url+=(Fb.test(f)?"&":"?")+l.data,delete l.data),l.cache===!1&&(l.url=Ib.test(f)?f.replace(Ib,"$1_="+Eb++):f+(Fb.test(f)?"&":"?")+"_="+Eb++)),l.ifModified&&(n.lastModified[f]&&w.setRequestHeader("If-Modified-Since",n.lastModified[f]),n.etag[f]&&w.setRequestHeader("If-None-Match",n.etag[f])),(l.data&&l.hasContent&&l.contentType!==!1||c.contentType)&&w.setRequestHeader("Content-Type",l.contentType),w.setRequestHeader("Accept",l.dataTypes[0]&&l.accepts[l.dataTypes[0]]?l.accepts[l.dataTypes[0]]+("*"!==l.dataTypes[0]?", "+Qb+"; q=0.01":""):l.accepts["*"]);for(e in l.headers)w.setRequestHeader(e,l.headers[e]);if(l.beforeSend&&(l.beforeSend.call(m,w,l)===!1||2===u))return w.abort();v="abort";for(e in{success:1,error:1,complete:1})w[e](l[e]);if(j=Ub(Pb,l,c,w)){if(w.readyState=1,i&&o.trigger("ajaxSend",[w,l]),2===u)return w;l.async&&l.timeout>0&&(h=a.setTimeout(function(){w.abort("timeout")},l.timeout));try{u=1,j.send(s,y)}catch(x){if(!(2>u))throw x;y(-1,x)}}else y(-1,"No Transport");function y(b,c,d,e){var k,s,t,v,x,y=c;2!==u&&(u=2,h&&a.clearTimeout(h),j=void 0,g=e||"",w.readyState=b>0?4:0,k=b>=200&&300>b||304===b,d&&(v=Wb(l,w,d)),v=Xb(l,v,w,k),k?(l.ifModified&&(x=w.getResponseHeader("Last-Modified"),x&&(n.lastModified[f]=x),x=w.getResponseHeader("etag"),x&&(n.etag[f]=x)),204===b||"HEAD"===l.type?y="nocontent":304===b?y="notmodified":(y=v.state,s=v.data,t=v.error,k=!t)):(t=y,!b&&y||(y="error",0>b&&(b=0))),w.status=b,w.statusText=(c||y)+"",k?p.resolveWith(m,[s,y,w]):p.rejectWith(m,[w,y,t]),w.statusCode(r),r=void 0,i&&o.trigger(k?"ajaxSuccess":"ajaxError",[w,l,k?s:t]),q.fireWith(m,[w,y]),i&&(o.trigger("ajaxComplete",[w,l]),--n.active||n.event.trigger("ajaxStop")))}return w},getJSON:function(a,b,c){return n.get(a,b,c,"json")},getScript:function(a,b){return n.get(a,void 0,b,"script")}}),n.each(["get","post"],function(a,b){n[b]=function(a,c,d,e){return n.isFunction(c)&&(e=e||d,d=c,c=void 0),n.ajax(n.extend({url:a,type:b,dataType:e,data:c,success:d},n.isPlainObject(a)&&a))}}),n._evalUrl=function(a){return n.ajax({url:a,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,"throws":!0})},n.fn.extend({wrapAll:function(a){if(n.isFunction(a))return this.each(function(b){n(this).wrapAll(a.call(this,b))});if(this[0]){var b=n(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&1===a.firstChild.nodeType)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return n.isFunction(a)?this.each(function(b){n(this).wrapInner(a.call(this,b))}):this.each(function(){var b=n(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=n.isFunction(a);return this.each(function(c){n(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){n.nodeName(this,"body")||n(this).replaceWith(this.childNodes)}).end()}});function Yb(a){return a.style&&a.style.display||n.css(a,"display")}function Zb(a){if(!n.contains(a.ownerDocument||d,a))return!0;while(a&&1===a.nodeType){if("none"===Yb(a)||"hidden"===a.type)return!0;a=a.parentNode}return!1}n.expr.filters.hidden=function(a){return l.reliableHiddenOffsets()?a.offsetWidth<=0&&a.offsetHeight<=0&&!a.getClientRects().length:Zb(a)},n.expr.filters.visible=function(a){return!n.expr.filters.hidden(a)};var $b=/%20/g,_b=/\[\]$/,ac=/\r?\n/g,bc=/^(?:submit|button|image|reset|file)$/i,cc=/^(?:input|select|textarea|keygen)/i;function dc(a,b,c,d){var e;if(n.isArray(b))n.each(b,function(b,e){c||_b.test(a)?d(a,e):dc(a+"["+("object"==typeof e&&null!=e?b:"")+"]",e,c,d)});else if(c||"object"!==n.type(b))d(a,b);else for(e in b)dc(a+"["+e+"]",b[e],c,d)}n.param=function(a,b){var c,d=[],e=function(a,b){b=n.isFunction(b)?b():null==b?"":b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(void 0===b&&(b=n.ajaxSettings&&n.ajaxSettings.traditional),n.isArray(a)||a.jquery&&!n.isPlainObject(a))n.each(a,function(){e(this.name,this.value)});else for(c in a)dc(c,a[c],b,e);return d.join("&").replace($b,"+")},n.fn.extend({serialize:function(){return n.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=n.prop(this,"elements");return a?n.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!n(this).is(":disabled")&&cc.test(this.nodeName)&&!bc.test(a)&&(this.checked||!Z.test(a))}).map(function(a,b){var c=n(this).val();return null==c?null:n.isArray(c)?n.map(c,function(a){return{name:b.name,value:a.replace(ac,"\r\n")}}):{name:b.name,value:c.replace(ac,"\r\n")}}).get()}}),n.ajaxSettings.xhr=void 0!==a.ActiveXObject?function(){return this.isLocal?ic():d.documentMode>8?hc():/^(get|post|head|put|delete|options)$/i.test(this.type)&&hc()||ic()}:hc;var ec=0,fc={},gc=n.ajaxSettings.xhr();a.attachEvent&&a.attachEvent("onunload",function(){for(var a in fc)fc[a](void 0,!0)}),l.cors=!!gc&&"withCredentials"in gc,gc=l.ajax=!!gc,gc&&n.ajaxTransport(function(b){if(!b.crossDomain||l.cors){var c;return{send:function(d,e){var f,g=b.xhr(),h=++ec;if(g.open(b.type,b.url,b.async,b.username,b.password),b.xhrFields)for(f in b.xhrFields)g[f]=b.xhrFields[f];b.mimeType&&g.overrideMimeType&&g.overrideMimeType(b.mimeType),b.crossDomain||d["X-Requested-With"]||(d["X-Requested-With"]="XMLHttpRequest");for(f in d)void 0!==d[f]&&g.setRequestHeader(f,d[f]+"");g.send(b.hasContent&&b.data||null),c=function(a,d){var f,i,j;if(c&&(d||4===g.readyState))if(delete fc[h],c=void 0,g.onreadystatechange=n.noop,d)4!==g.readyState&&g.abort();else{j={},f=g.status,"string"==typeof g.responseText&&(j.text=g.responseText);try{i=g.statusText}catch(k){i=""}f||!b.isLocal||b.crossDomain?1223===f&&(f=204):f=j.text?200:404}j&&e(f,i,j,g.getAllResponseHeaders())},b.async?4===g.readyState?a.setTimeout(c):g.onreadystatechange=fc[h]=c:c()},abort:function(){c&&c(void 0,!0)}}}});function hc(){try{return new a.XMLHttpRequest}catch(b){}}function ic(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}n.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(a){return n.globalEval(a),a}}}),n.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),n.ajaxTransport("script",function(a){if(a.crossDomain){var b,c=d.head||n("head")[0]||d.documentElement;return{send:function(e,f){b=d.createElement("script"),b.async=!0,a.scriptCharset&&(b.charset=a.scriptCharset),b.src=a.url,b.onload=b.onreadystatechange=function(a,c){(c||!b.readyState||/loaded|complete/.test(b.readyState))&&(b.onload=b.onreadystatechange=null,b.parentNode&&b.parentNode.removeChild(b),b=null,c||f(200,"success"))},c.insertBefore(b,c.firstChild)},abort:function(){b&&b.onload(void 0,!0)}}}});var jc=[],kc=/(=)\?(?=&|$)|\?\?/;n.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=jc.pop()||n.expando+"_"+Eb++;return this[a]=!0,a}}),n.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(kc.test(b.url)?"url":"string"==typeof b.data&&0===(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&kc.test(b.data)&&"data");return h||"jsonp"===b.dataTypes[0]?(e=b.jsonpCallback=n.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(kc,"$1"+e):b.jsonp!==!1&&(b.url+=(Fb.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||n.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){void 0===f?n(a).removeProp(e):a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,jc.push(e)),g&&n.isFunction(f)&&f(g[0]),g=f=void 0}),"script"):void 0}),n.parseHTML=function(a,b,c){if(!a||"string"!=typeof a)return null;"boolean"==typeof b&&(c=b,b=!1),b=b||d;var e=x.exec(a),f=!c&&[];return e?[b.createElement(e[1])]:(e=ja([a],b,f),f&&f.length&&n(f).remove(),n.merge([],e.childNodes))};var lc=n.fn.load;n.fn.load=function(a,b,c){if("string"!=typeof a&&lc)return lc.apply(this,arguments);var d,e,f,g=this,h=a.indexOf(" ");return h>-1&&(d=n.trim(a.slice(h,a.length)),a=a.slice(0,h)),n.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(e="POST"),g.length>0&&n.ajax({url:a,type:e||"GET",dataType:"html",data:b}).done(function(a){f=arguments,g.html(d?n("<div>").append(n.parseHTML(a)).find(d):a)}).always(c&&function(a,b){g.each(function(){c.apply(this,f||[a.responseText,b,a])})}),this},n.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){n.fn[b]=function(a){return this.on(b,a)}}),n.expr.filters.animated=function(a){return n.grep(n.timers,function(b){return a===b.elem}).length};function mc(a){return n.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}n.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=n.css(a,"position"),l=n(a),m={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=n.css(a,"top"),i=n.css(a,"left"),j=("absolute"===k||"fixed"===k)&&n.inArray("auto",[f,i])>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),n.isFunction(b)&&(b=b.call(a,c,n.extend({},h))),null!=b.top&&(m.top=b.top-h.top+g),null!=b.left&&(m.left=b.left-h.left+e),"using"in b?b.using.call(a,m):l.css(m)}},n.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){n.offset.setOffset(this,a,b)});var b,c,d={top:0,left:0},e=this[0],f=e&&e.ownerDocument;if(f)return b=f.documentElement,n.contains(b,e)?("undefined"!=typeof e.getBoundingClientRect&&(d=e.getBoundingClientRect()),c=mc(f),{top:d.top+(c.pageYOffset||b.scrollTop)-(b.clientTop||0),left:d.left+(c.pageXOffset||b.scrollLeft)-(b.clientLeft||0)}):d},position:function(){if(this[0]){var a,b,c={top:0,left:0},d=this[0];return"fixed"===n.css(d,"position")?b=d.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),n.nodeName(a[0],"html")||(c=a.offset()),c.top+=n.css(a[0],"borderTopWidth",!0),c.left+=n.css(a[0],"borderLeftWidth",!0)),{top:b.top-c.top-n.css(d,"marginTop",!0),left:b.left-c.left-n.css(d,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent;while(a&&!n.nodeName(a,"html")&&"static"===n.css(a,"position"))a=a.offsetParent;return a||Qa})}}),n.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c=/Y/.test(b);n.fn[a]=function(d){return Y(this,function(a,d,e){var f=mc(a);return void 0===e?f?b in f?f[b]:f.document.documentElement[d]:a[d]:void(f?f.scrollTo(c?n(f).scrollLeft():e,c?e:n(f).scrollTop()):a[d]=e)},a,d,arguments.length,null)}}),n.each(["top","left"],function(a,b){n.cssHooks[b]=Ua(l.pixelPosition,function(a,c){return c?(c=Sa(a,b),Oa.test(c)?n(a).position()[b]+"px":c):void 0})}),n.each({Height:"height",Width:"width"},function(a,b){n.each({
  padding:"inner"+a,content:b,"":"outer"+a},function(c,d){n.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(d===!0||e===!0?"margin":"border");return Y(this,function(b,c,d){var e;return n.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?n.css(b,c,g):n.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),n.fn.extend({bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}}),n.fn.size=function(){return this.length},n.fn.andSelf=n.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return n});var nc=a.jQuery,oc=a.$;return n.noConflict=function(b){return a.$===n&&(a.$=oc),b&&a.jQuery===n&&(a.jQuery=nc),n},b||(a.jQuery=a.$=n),n});
  //end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery 
  //end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery 
  //end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery 
  //end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery 
  //end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery 
  //end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery 
  //end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery 
  //end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery 
  //end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery end jquery 
  
  
  //begin TETHER BEGIN 
  
  
  !function(t,e){"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e(require,exports,module):t.Tether=e()}(this,function(t,e,o){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t){var e=t.getBoundingClientRect(),o={};for(var n in e)o[n]=e[n];if(t.ownerDocument!==document){var r=t.ownerDocument.defaultView.frameElement;if(r){var s=i(r);o.top+=s.top,o.bottom+=s.top,o.left+=s.left,o.right+=s.left}}return o}function r(t){var e=getComputedStyle(t)||{},o=e.position,n=[];if("fixed"===o)return[t];for(var i=t;(i=i.parentNode)&&i&&1===i.nodeType;){var r=void 0;try{r=getComputedStyle(i)}catch(s){}if("undefined"==typeof r||null===r)return n.push(i),n;var a=r,f=a.overflow,l=a.overflowX,h=a.overflowY;/(auto|scroll)/.test(f+h+l)&&("absolute"!==o||["relative","absolute","fixed"].indexOf(r.position)>=0)&&n.push(i)}return n.push(t.ownerDocument.body),t.ownerDocument!==document&&n.push(t.ownerDocument.defaultView),n}function s(){A&&document.body.removeChild(A),A=null}function a(t){var e=void 0;t===document?(e=document,t=document.documentElement):e=t.ownerDocument;var o=e.documentElement,n=i(t),r=P();return n.top-=r.top,n.left-=r.left,"undefined"==typeof n.width&&(n.width=document.body.scrollWidth-n.left-n.right),"undefined"==typeof n.height&&(n.height=document.body.scrollHeight-n.top-n.bottom),n.top=n.top-o.clientTop,n.left=n.left-o.clientLeft,n.right=e.body.clientWidth-n.width-n.left,n.bottom=e.body.clientHeight-n.height-n.top,n}function f(t){return t.offsetParent||document.documentElement}function l(){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var e=document.createElement("div");h(e.style,{position:"absolute",top:0,left:0,pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),e.appendChild(t),document.body.appendChild(e);var o=t.offsetWidth;e.style.overflow="scroll";var n=t.offsetWidth;o===n&&(n=e.clientWidth),document.body.removeChild(e);var i=o-n;return{width:i,height:i}}function h(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],e=[];return Array.prototype.push.apply(e,arguments),e.slice(1).forEach(function(e){if(e)for(var o in e)({}).hasOwnProperty.call(e,o)&&(t[o]=e[o])}),t}function u(t,e){if("undefined"!=typeof t.classList)e.split(" ").forEach(function(e){e.trim()&&t.classList.remove(e)});else{var o=new RegExp("(^| )"+e.split(" ").join("|")+"( |$)","gi"),n=c(t).replace(o," ");g(t,n)}}function d(t,e){if("undefined"!=typeof t.classList)e.split(" ").forEach(function(e){e.trim()&&t.classList.add(e)});else{u(t,e);var o=c(t)+(" "+e);g(t,o)}}function p(t,e){if("undefined"!=typeof t.classList)return t.classList.contains(e);var o=c(t);return new RegExp("(^| )"+e+"( |$)","gi").test(o)}function c(t){return t.className instanceof t.ownerDocument.defaultView.SVGAnimatedString?t.className.baseVal:t.className}function g(t,e){t.setAttribute("class",e)}function m(t,e,o){o.forEach(function(o){-1===e.indexOf(o)&&p(t,o)&&u(t,o)}),e.forEach(function(e){p(t,e)||d(t,e)})}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function y(t,e){var o=arguments.length<=2||void 0===arguments[2]?1:arguments[2];return t+o>=e&&e>=t-o}function b(){return"undefined"!=typeof performance&&"undefined"!=typeof performance.now?performance.now():+new Date}function w(){for(var t={top:0,left:0},e=arguments.length,o=Array(e),n=0;e>n;n++)o[n]=arguments[n];return o.forEach(function(e){var o=e.top,n=e.left;"string"==typeof o&&(o=parseFloat(o,10)),"string"==typeof n&&(n=parseFloat(n,10)),t.top+=o,t.left+=n}),t}function C(t,e){return"string"==typeof t.left&&-1!==t.left.indexOf("%")&&(t.left=parseFloat(t.left,10)/100*e.width),"string"==typeof t.top&&-1!==t.top.indexOf("%")&&(t.top=parseFloat(t.top,10)/100*e.height),t}function O(t,e){return"scrollParent"===e?e=t.scrollParents[0]:"window"===e&&(e=[pageXOffset,pageYOffset,innerWidth+pageXOffset,innerHeight+pageYOffset]),e===document&&(e=e.documentElement),"undefined"!=typeof e.nodeType&&!function(){var t=e,o=a(e),n=o,i=getComputedStyle(e);if(e=[n.left,n.top,o.width+n.left,o.height+n.top],t.ownerDocument!==document){var r=t.ownerDocument.defaultView;e[0]+=r.pageXOffset,e[1]+=r.pageYOffset,e[2]+=r.pageXOffset,e[3]+=r.pageYOffset}$.forEach(function(t,o){t=t[0].toUpperCase()+t.substr(1),"Top"===t||"Left"===t?e[o]+=parseFloat(i["border"+t+"Width"]):e[o]-=parseFloat(i["border"+t+"Width"])})}(),e}var E=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}(),x=void 0;"undefined"==typeof x&&(x={modules:[]});var A=null,T=function(){var t=0;return function(){return++t}}(),S={},P=function(){var t=A;t||(t=document.createElement("div"),t.setAttribute("data-tether-id",T()),h(t.style,{top:0,left:0,position:"absolute"}),document.body.appendChild(t),A=t);var e=t.getAttribute("data-tether-id");return"undefined"==typeof S[e]&&(S[e]=i(t),M(function(){delete S[e]})),S[e]},W=[],M=function(t){W.push(t)},_=function(){for(var t=void 0;t=W.pop();)t()},k=function(){function t(){n(this,t)}return E(t,[{key:"on",value:function(t,e,o){var n=arguments.length<=3||void 0===arguments[3]?!1:arguments[3];"undefined"==typeof this.bindings&&(this.bindings={}),"undefined"==typeof this.bindings[t]&&(this.bindings[t]=[]),this.bindings[t].push({handler:e,ctx:o,once:n})}},{key:"once",value:function(t,e,o){this.on(t,e,o,!0)}},{key:"off",value:function(t,e){if("undefined"!=typeof this.bindings&&"undefined"!=typeof this.bindings[t])if("undefined"==typeof e)delete this.bindings[t];else for(var o=0;o<this.bindings[t].length;)this.bindings[t][o].handler===e?this.bindings[t].splice(o,1):++o}},{key:"trigger",value:function(t){if("undefined"!=typeof this.bindings&&this.bindings[t]){for(var e=0,o=arguments.length,n=Array(o>1?o-1:0),i=1;o>i;i++)n[i-1]=arguments[i];for(;e<this.bindings[t].length;){var r=this.bindings[t][e],s=r.handler,a=r.ctx,f=r.once,l=a;"undefined"==typeof l&&(l=this),s.apply(l,n),f?this.bindings[t].splice(e,1):++e}}}}]),t}();x.Utils={getActualBoundingClientRect:i,getScrollParents:r,getBounds:a,getOffsetParent:f,extend:h,addClass:d,removeClass:u,hasClass:p,updateClasses:m,defer:M,flush:_,uniqueId:T,Evented:k,getScrollBarSize:l,removeUtilElements:s};var B=function(){function t(t,e){var o=[],n=!0,i=!1,r=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done)&&(o.push(s.value),!e||o.length!==e);n=!0);}catch(f){i=!0,r=f}finally{try{!n&&a["return"]&&a["return"]()}finally{if(i)throw r}}return o}return function(e,o){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,o);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),E=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}(),z=function(t,e,o){for(var n=!0;n;){var i=t,r=e,s=o;n=!1,null===i&&(i=Function.prototype);var a=Object.getOwnPropertyDescriptor(i,r);if(void 0!==a){if("value"in a)return a.value;var f=a.get;if(void 0===f)return;return f.call(s)}var l=Object.getPrototypeOf(i);if(null===l)return;t=l,e=r,o=s,n=!0,a=l=void 0}};if("undefined"==typeof x)throw new Error("You must include the utils.js file before tether.js");var j=x.Utils,r=j.getScrollParents,a=j.getBounds,f=j.getOffsetParent,h=j.extend,d=j.addClass,u=j.removeClass,m=j.updateClasses,M=j.defer,_=j.flush,l=j.getScrollBarSize,s=j.removeUtilElements,Y=function(){if("undefined"==typeof document)return"";for(var t=document.createElement("div"),e=["transform","WebkitTransform","OTransform","MozTransform","msTransform"],o=0;o<e.length;++o){var n=e[o];if(void 0!==t.style[n])return n}}(),L=[],D=function(){L.forEach(function(t){t.position(!1)}),_()};!function(){var t=null,e=null,o=null,n=function i(){return"undefined"!=typeof e&&e>16?(e=Math.min(e-16,250),void(o=setTimeout(i,250))):void("undefined"!=typeof t&&b()-t<10||(null!=o&&(clearTimeout(o),o=null),t=b(),D(),e=b()-t))};"undefined"!=typeof window&&"undefined"!=typeof window.addEventListener&&["resize","scroll","touchmove"].forEach(function(t){window.addEventListener(t,n)})}();var X={center:"center",left:"right",right:"left"},F={middle:"middle",top:"bottom",bottom:"top"},H={top:0,left:0,middle:"50%",center:"50%",bottom:"100%",right:"100%"},N=function(t,e){var o=t.left,n=t.top;return"auto"===o&&(o=X[e.left]),"auto"===n&&(n=F[e.top]),{left:o,top:n}},U=function(t){var e=t.left,o=t.top;return"undefined"!=typeof H[t.left]&&(e=H[t.left]),"undefined"!=typeof H[t.top]&&(o=H[t.top]),{left:e,top:o}},V=function(t){var e=t.split(" "),o=B(e,2),n=o[0],i=o[1];return{top:n,left:i}},R=V,q=function(t){function e(t){var o=this;n(this,e),z(Object.getPrototypeOf(e.prototype),"constructor",this).call(this),this.position=this.position.bind(this),L.push(this),this.history=[],this.setOptions(t,!1),x.modules.forEach(function(t){"undefined"!=typeof t.initialize&&t.initialize.call(o)}),this.position()}return v(e,t),E(e,[{key:"getClass",value:function(){var t=arguments.length<=0||void 0===arguments[0]?"":arguments[0],e=this.options.classes;return"undefined"!=typeof e&&e[t]?this.options.classes[t]:this.options.classPrefix?this.options.classPrefix+"-"+t:t}},{key:"setOptions",value:function(t){var e=this,o=arguments.length<=1||void 0===arguments[1]?!0:arguments[1],n={offset:"0 0",targetOffset:"0 0",targetAttachment:"auto auto",classPrefix:"tether"};this.options=h(n,t);var i=this.options,s=i.element,a=i.target,f=i.targetModifier;if(this.element=s,this.target=a,this.targetModifier=f,"viewport"===this.target?(this.target=document.body,this.targetModifier="visible"):"scroll-handle"===this.target&&(this.target=document.body,this.targetModifier="scroll-handle"),["element","target"].forEach(function(t){if("undefined"==typeof e[t])throw new Error("Tether Error: Both element and target must be defined");"undefined"!=typeof e[t].jquery?e[t]=e[t][0]:"string"==typeof e[t]&&(e[t]=document.querySelector(e[t]))}),d(this.element,this.getClass("element")),this.options.addTargetClasses!==!1&&d(this.target,this.getClass("target")),!this.options.attachment)throw new Error("Tether Error: You must provide an attachment");this.targetAttachment=R(this.options.targetAttachment),this.attachment=R(this.options.attachment),this.offset=V(this.options.offset),this.targetOffset=V(this.options.targetOffset),"undefined"!=typeof this.scrollParents&&this.disable(),"scroll-handle"===this.targetModifier?this.scrollParents=[this.target]:this.scrollParents=r(this.target),this.options.enabled!==!1&&this.enable(o)}},{key:"getTargetBounds",value:function(){if("undefined"==typeof this.targetModifier)return a(this.target);if("visible"===this.targetModifier){if(this.target===document.body)return{top:pageYOffset,left:pageXOffset,height:innerHeight,width:innerWidth};var t=a(this.target),e={height:t.height,width:t.width,top:t.top,left:t.left};return e.height=Math.min(e.height,t.height-(pageYOffset-t.top)),e.height=Math.min(e.height,t.height-(t.top+t.height-(pageYOffset+innerHeight))),e.height=Math.min(innerHeight,e.height),e.height-=2,e.width=Math.min(e.width,t.width-(pageXOffset-t.left)),e.width=Math.min(e.width,t.width-(t.left+t.width-(pageXOffset+innerWidth))),e.width=Math.min(innerWidth,e.width),e.width-=2,e.top<pageYOffset&&(e.top=pageYOffset),e.left<pageXOffset&&(e.left=pageXOffset),e}if("scroll-handle"===this.targetModifier){var t=void 0,o=this.target;o===document.body?(o=document.documentElement,t={left:pageXOffset,top:pageYOffset,height:innerHeight,width:innerWidth}):t=a(o);var n=getComputedStyle(o),i=o.scrollWidth>o.clientWidth||[n.overflow,n.overflowX].indexOf("scroll")>=0||this.target!==document.body,r=0;i&&(r=15);var s=t.height-parseFloat(n.borderTopWidth)-parseFloat(n.borderBottomWidth)-r,e={width:15,height:.975*s*(s/o.scrollHeight),left:t.left+t.width-parseFloat(n.borderLeftWidth)-15},f=0;408>s&&this.target===document.body&&(f=-11e-5*Math.pow(s,2)-.00727*s+22.58),this.target!==document.body&&(e.height=Math.max(e.height,24));var l=this.target.scrollTop/(o.scrollHeight-s);return e.top=l*(s-e.height-f)+t.top+parseFloat(n.borderTopWidth),this.target===document.body&&(e.height=Math.max(e.height,24)),e}}},{key:"clearCache",value:function(){this._cache={}}},{key:"cache",value:function(t,e){return"undefined"==typeof this._cache&&(this._cache={}),"undefined"==typeof this._cache[t]&&(this._cache[t]=e.call(this)),this._cache[t]}},{key:"enable",value:function(){var t=this,e=arguments.length<=0||void 0===arguments[0]?!0:arguments[0];this.options.addTargetClasses!==!1&&d(this.target,this.getClass("enabled")),d(this.element,this.getClass("enabled")),this.enabled=!0,this.scrollParents.forEach(function(e){e!==t.target.ownerDocument&&e.addEventListener("scroll",t.position)}),e&&this.position()}},{key:"disable",value:function(){var t=this;u(this.target,this.getClass("enabled")),u(this.element,this.getClass("enabled")),this.enabled=!1,"undefined"!=typeof this.scrollParents&&this.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.position)})}},{key:"destroy",value:function(){var t=this;this.disable(),L.forEach(function(e,o){e===t&&L.splice(o,1)}),0===L.length&&s()}},{key:"updateAttachClasses",value:function(t,e){var o=this;t=t||this.attachment,e=e||this.targetAttachment;var n=["left","top","bottom","right","middle","center"];"undefined"!=typeof this._addAttachClasses&&this._addAttachClasses.length&&this._addAttachClasses.splice(0,this._addAttachClasses.length),"undefined"==typeof this._addAttachClasses&&(this._addAttachClasses=[]);var i=this._addAttachClasses;t.top&&i.push(this.getClass("element-attached")+"-"+t.top),t.left&&i.push(this.getClass("element-attached")+"-"+t.left),e.top&&i.push(this.getClass("target-attached")+"-"+e.top),e.left&&i.push(this.getClass("target-attached")+"-"+e.left);var r=[];n.forEach(function(t){r.push(o.getClass("element-attached")+"-"+t),r.push(o.getClass("target-attached")+"-"+t)}),M(function(){"undefined"!=typeof o._addAttachClasses&&(m(o.element,o._addAttachClasses,r),o.options.addTargetClasses!==!1&&m(o.target,o._addAttachClasses,r),delete o._addAttachClasses)})}},{key:"position",value:function(){var t=this,e=arguments.length<=0||void 0===arguments[0]?!0:arguments[0];if(this.enabled){this.clearCache();var o=N(this.targetAttachment,this.attachment);this.updateAttachClasses(this.attachment,o);var n=this.cache("element-bounds",function(){return a(t.element)}),i=n.width,r=n.height;if(0===i&&0===r&&"undefined"!=typeof this.lastSize){var s=this.lastSize;i=s.width,r=s.height}else this.lastSize={width:i,height:r};var h=this.cache("target-bounds",function(){return t.getTargetBounds()}),u=h,d=C(U(this.attachment),{width:i,height:r}),p=C(U(o),u),c=C(this.offset,{width:i,height:r}),g=C(this.targetOffset,u);d=w(d,c),p=w(p,g);for(var m=h.left+p.left-d.left,v=h.top+p.top-d.top,y=0;y<x.modules.length;++y){var b=x.modules[y],O=b.position.call(this,{left:m,top:v,targetAttachment:o,targetPos:h,elementPos:n,offset:d,targetOffset:p,manualOffset:c,manualTargetOffset:g,scrollbarSize:S,attachment:this.attachment});if(O===!1)return!1;"undefined"!=typeof O&&"object"==typeof O&&(v=O.top,m=O.left)}var E={page:{top:v,left:m},viewport:{top:v-pageYOffset,bottom:pageYOffset-v-r+innerHeight,left:m-pageXOffset,right:pageXOffset-m-i+innerWidth}},A=this.target.ownerDocument,T=A.defaultView,S=void 0;return A.body.scrollWidth>T.innerWidth&&(S=this.cache("scrollbar-size",l),E.viewport.bottom-=S.height),A.body.scrollHeight>T.innerHeight&&(S=this.cache("scrollbar-size",l),E.viewport.right-=S.width),(-1===["","static"].indexOf(A.body.style.position)||-1===["","static"].indexOf(A.body.parentElement.style.position))&&(E.page.bottom=A.body.scrollHeight-v-r,E.page.right=A.body.scrollWidth-m-i),"undefined"!=typeof this.options.optimizations&&this.options.optimizations.moveElement!==!1&&"undefined"==typeof this.targetModifier&&!function(){var e=t.cache("target-offsetparent",function(){return f(t.target)}),o=t.cache("target-offsetparent-bounds",function(){return a(e)}),n=getComputedStyle(e),i=o,r={};if(["Top","Left","Bottom","Right"].forEach(function(t){r[t.toLowerCase()]=parseFloat(n["border"+t+"Width"])}),o.right=A.body.scrollWidth-o.left-i.width+r.right,o.bottom=A.body.scrollHeight-o.top-i.height+r.bottom,E.page.top>=o.top+r.top&&E.page.bottom>=o.bottom&&E.page.left>=o.left+r.left&&E.page.right>=o.right){var s=e.scrollTop,l=e.scrollLeft;E.offset={top:E.page.top-o.top+s-r.top,left:E.page.left-o.left+l-r.left}}}(),this.move(E),this.history.unshift(E),this.history.length>3&&this.history.pop(),e&&_(),!0}}},{key:"move",value:function(t){var e=this;if("undefined"!=typeof this.element.parentNode){var o={};for(var n in t){o[n]={};for(var i in t[n]){for(var r=!1,s=0;s<this.history.length;++s){var a=this.history[s];if("undefined"!=typeof a[n]&&!y(a[n][i],t[n][i])){r=!0;break}}r||(o[n][i]=!0)}}var l={top:"",left:"",right:"",bottom:""},u=function(t,o){var n="undefined"!=typeof e.options.optimizations,i=n?e.options.optimizations.gpu:null;if(i!==!1){var r=void 0,s=void 0;t.top?(l.top=0,r=o.top):(l.bottom=0,r=-o.bottom),t.left?(l.left=0,s=o.left):(l.right=0,s=-o.right),l[Y]="translateX("+Math.round(s)+"px) translateY("+Math.round(r)+"px)","msTransform"!==Y&&(l[Y]+=" translateZ(0)")}else t.top?l.top=o.top+"px":l.bottom=o.bottom+"px",t.left?l.left=o.left+"px":l.right=o.right+"px"},d=!1;if((o.page.top||o.page.bottom)&&(o.page.left||o.page.right)?(l.position="absolute",u(o.page,t.page)):(o.viewport.top||o.viewport.bottom)&&(o.viewport.left||o.viewport.right)?(l.position="fixed",u(o.viewport,t.viewport)):"undefined"!=typeof o.offset&&o.offset.top&&o.offset.left?!function(){l.position="absolute";var n=e.cache("target-offsetparent",function(){return f(e.target)});f(e.element)!==n&&M(function(){e.element.parentNode.removeChild(e.element),n.appendChild(e.element)}),u(o.offset,t.offset),d=!0}():(l.position="absolute",u({top:!0,left:!0},t.page)),!d){for(var p=!0,c=this.element.parentNode;c&&1===c.nodeType&&"BODY"!==c.tagName;){if("static"!==getComputedStyle(c).position){p=!1;break}c=c.parentNode}p||(this.element.parentNode.removeChild(this.element),this.element.ownerDocument.body.appendChild(this.element))}var g={},m=!1;for(var i in l){var v=l[i],b=this.element.style[i];b!==v&&(m=!0,g[i]=v)}m&&M(function(){h(e.element.style,g)})}}}]),e}(k);q.modules=[],x.position=D;var I=h(q,x),B=function(){function t(t,e){var o=[],n=!0,i=!1,r=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done)&&(o.push(s.value),!e||o.length!==e);n=!0);}catch(f){i=!0,r=f}finally{try{!n&&a["return"]&&a["return"]()}finally{if(i)throw r}}return o}return function(e,o){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,o);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),j=x.Utils,a=j.getBounds,h=j.extend,m=j.updateClasses,M=j.defer,$=["left","top","right","bottom"];x.modules.push({position:function(t){var e=this,o=t.top,n=t.left,i=t.targetAttachment;if(!this.options.constraints)return!0;var r=this.cache("element-bounds",function(){return a(e.element)}),s=r.height,f=r.width;if(0===f&&0===s&&"undefined"!=typeof this.lastSize){var l=this.lastSize;f=l.width,s=l.height}var u=this.cache("target-bounds",function(){return e.getTargetBounds()}),d=u.height,p=u.width,c=[this.getClass("pinned"),this.getClass("out-of-bounds")];this.options.constraints.forEach(function(t){var e=t.outOfBoundsClass,o=t.pinnedClass;e&&c.push(e),o&&c.push(o)}),c.forEach(function(t){["left","top","right","bottom"].forEach(function(e){c.push(t+"-"+e)})});var g=[],v=h({},i),y=h({},this.attachment);return this.options.constraints.forEach(function(t){var r=t.to,a=t.attachment,l=t.pin;"undefined"==typeof a&&(a="");var h=void 0,u=void 0;if(a.indexOf(" ")>=0){var c=a.split(" "),m=B(c,2);u=m[0],h=m[1]}else h=u=a;var b=O(e,r);("target"===u||"both"===u)&&(o<b[1]&&"top"===v.top&&(o+=d,v.top="bottom"),o+s>b[3]&&"bottom"===v.top&&(o-=d,v.top="top")),"together"===u&&("top"===v.top&&("bottom"===y.top&&o<b[1]?(o+=d,v.top="bottom",o+=s,y.top="top"):"top"===y.top&&o+s>b[3]&&o-(s-d)>=b[1]&&(o-=s-d,v.top="bottom",y.top="bottom")),"bottom"===v.top&&("top"===y.top&&o+s>b[3]?(o-=d,v.top="top",o-=s,y.top="bottom"):"bottom"===y.top&&o<b[1]&&o+(2*s-d)<=b[3]&&(o+=s-d,v.top="top",y.top="top")),"middle"===v.top&&(o+s>b[3]&&"top"===y.top?(o-=s,y.top="bottom"):o<b[1]&&"bottom"===y.top&&(o+=s,y.top="top"))),("target"===h||"both"===h)&&(n<b[0]&&"left"===v.left&&(n+=p,v.left="right"),n+f>b[2]&&"right"===v.left&&(n-=p,v.left="left")),"together"===h&&(n<b[0]&&"left"===v.left?"right"===y.left?(n+=p,v.left="right",n+=f,y.left="left"):"left"===y.left&&(n+=p,v.left="right",n-=f,y.left="right"):n+f>b[2]&&"right"===v.left?"left"===y.left?(n-=p,v.left="left",n-=f,y.left="right"):"right"===y.left&&(n-=p,v.left="left",n+=f,y.left="left"):"center"===v.left&&(n+f>b[2]&&"left"===y.left?(n-=f,y.left="right"):n<b[0]&&"right"===y.left&&(n+=f,y.left="left"))),("element"===u||"both"===u)&&(o<b[1]&&"bottom"===y.top&&(o+=s,y.top="top"),o+s>b[3]&&"top"===y.top&&(o-=s,y.top="bottom")),("element"===h||"both"===h)&&(n<b[0]&&("right"===y.left?(n+=f,y.left="left"):"center"===y.left&&(n+=f/2,y.left="left")),n+f>b[2]&&("left"===y.left?(n-=f,y.left="right"):"center"===y.left&&(n-=f/2,y.left="right"))),"string"==typeof l?l=l.split(",").map(function(t){return t.trim()}):l===!0&&(l=["top","left","right","bottom"]),l=l||[];var w=[],C=[];o<b[1]&&(l.indexOf("top")>=0?(o=b[1],w.push("top")):C.push("top")),o+s>b[3]&&(l.indexOf("bottom")>=0?(o=b[3]-s,w.push("bottom")):C.push("bottom")),n<b[0]&&(l.indexOf("left")>=0?(n=b[0],w.push("left")):C.push("left")),n+f>b[2]&&(l.indexOf("right")>=0?(n=b[2]-f,w.push("right")):C.push("right")),w.length&&!function(){var t=void 0;t="undefined"!=typeof e.options.pinnedClass?e.options.pinnedClass:e.getClass("pinned"),g.push(t),w.forEach(function(e){g.push(t+"-"+e)})}(),C.length&&!function(){var t=void 0;t="undefined"!=typeof e.options.outOfBoundsClass?e.options.outOfBoundsClass:e.getClass("out-of-bounds"),g.push(t),C.forEach(function(e){g.push(t+"-"+e)})}(),(w.indexOf("left")>=0||w.indexOf("right")>=0)&&(y.left=v.left=!1),(w.indexOf("top")>=0||w.indexOf("bottom")>=0)&&(y.top=v.top=!1),(v.top!==i.top||v.left!==i.left||y.top!==e.attachment.top||y.left!==e.attachment.left)&&(e.updateAttachClasses(y,v),e.trigger("update",{attachment:y,targetAttachment:v}))}),M(function(){e.options.addTargetClasses!==!1&&m(e.target,g,c),m(e.element,g,c)}),{top:o,left:n}}});var j=x.Utils,a=j.getBounds,m=j.updateClasses,M=j.defer;x.modules.push({position:function(t){var e=this,o=t.top,n=t.left,i=this.cache("element-bounds",function(){return a(e.element)}),r=i.height,s=i.width,f=this.getTargetBounds(),l=o+r,h=n+s,u=[];o<=f.bottom&&l>=f.top&&["left","right"].forEach(function(t){var e=f[t];(e===n||e===h)&&u.push(t)}),n<=f.right&&h>=f.left&&["top","bottom"].forEach(function(t){var e=f[t];(e===o||e===l)&&u.push(t)});var d=[],p=[],c=["left","top","right","bottom"];return d.push(this.getClass("abutted")),c.forEach(function(t){d.push(e.getClass("abutted")+"-"+t)}),u.length&&p.push(this.getClass("abutted")),u.forEach(function(t){p.push(e.getClass("abutted")+"-"+t)}),M(function(){e.options.addTargetClasses!==!1&&m(e.target,p,d),m(e.element,p,d)}),!0}});var B=function(){function t(t,e){var o=[],n=!0,i=!1,r=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done)&&(o.push(s.value),!e||o.length!==e);n=!0);}catch(f){i=!0,r=f}finally{try{!n&&a["return"]&&a["return"]()}finally{if(i)throw r}}return o}return function(e,o){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,o);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();return x.modules.push({position:function(t){var e=t.top,o=t.left;if(this.options.shift){var n=this.options.shift;"function"==typeof this.options.shift&&(n=this.options.shift.call(this,{top:e,left:o}));var i=void 0,r=void 0;if("string"==typeof n){n=n.split(" "),n[1]=n[1]||n[0];var s=n,a=B(s,2);i=a[0],r=a[1],i=parseFloat(i,10),r=parseFloat(r,10)}else i=n.top,r=n.left;return e+=i,o+=r,{top:e,left:o}}}}),I});
  
  // END TETHER 
  
  
  var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
  
  var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  
  /**
   * --------------------------------------------------------------------------
   * Bootstrap (v4.0.0-alpha.6): tooltip.js
   * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
   * --------------------------------------------------------------------------
   */
  
  var Tooltip = function ($) {
  
    /**
     * Check for Tether dependency
     * Tether - http://tether.io/
     */
    if (typeof Tether === 'undefined') {
      throw new Error('Bootstrap tooltips require Tether (http://tether.io/)');
    }
  
    /**
     * ------------------------------------------------------------------------
     * Constants
     * ------------------------------------------------------------------------
     */
  
    var NAME = 'tooltip';
    var VERSION = '4.0.0-alpha.6';
    var DATA_KEY = 'bs.tooltip';
    var EVENT_KEY = '.' + DATA_KEY;
    var JQUERY_NO_CONFLICT = $.fn[NAME];
    var TRANSITION_DURATION = 150;
    var CLASS_PREFIX = 'bs-tether';
  
    var Default = {
      animation: true,
      template: '<div class="tooltip" role="tooltip">' + '<div class="tooltip-inner"></div></div>',
      trigger: 'hover focus',
      title: '',
      delay: 0,
      html: false,
      selector: false,
      placement: 'top',
      offset: '0 0',
      constraints: [],
      container: false
    };
  
    var DefaultType = {
      animation: 'boolean',
      template: 'string',
      title: '(string|element|function)',
      trigger: 'string',
      delay: '(number|object)',
      html: 'boolean',
      selector: '(string|boolean)',
      placement: '(string|function)',
      offset: 'string',
      constraints: 'array',
      container: '(string|element|boolean)'
    };
  
    var AttachmentMap = {
      TOP: 'bottom center',
      RIGHT: 'middle left',
      BOTTOM: 'top center',
      LEFT: 'middle right'
    };
  
    var HoverState = {
      SHOW: 'show',
      OUT: 'out'
    };
  
    var Event = {
      HIDE: 'hide' + EVENT_KEY,
      HIDDEN: 'hidden' + EVENT_KEY,
      SHOW: 'show' + EVENT_KEY,
      SHOWN: 'shown' + EVENT_KEY,
      INSERTED: 'inserted' + EVENT_KEY,
      CLICK: 'click' + EVENT_KEY,
      FOCUSIN: 'focusin' + EVENT_KEY,
      FOCUSOUT: 'focusout' + EVENT_KEY,
      MOUSEENTER: 'mouseenter' + EVENT_KEY,
      MOUSELEAVE: 'mouseleave' + EVENT_KEY
    };
  
    var ClassName = {
      FADE: 'fade',
      SHOW: 'show'
    };
  
    var Selector = {
      TOOLTIP: '.tooltip',
      TOOLTIP_INNER: '.tooltip-inner'
    };
  
    var TetherClass = {
      element: false,
      enabled: false
    };
  
    var Trigger = {
      HOVER: 'hover',
      FOCUS: 'focus',
      CLICK: 'click',
      MANUAL: 'manual'
    };
  
    /**
     * ------------------------------------------------------------------------
     * Class Definition
     * ------------------------------------------------------------------------
     */
  
    var Tooltip = function () {
      function Tooltip(element, config) {
        _classCallCheck(this, Tooltip);
  
        // private
        this._isEnabled = true;
        this._timeout = 0;
        this._hoverState = '';
        this._activeTrigger = {};
        this._isTransitioning = false;
        this._tether = null;
  
        // protected
        this.element = element;
        this.config = this._getConfig(config);
        this.tip = null;
  
        this._setListeners();
      }
  
      // getters
  
      // public
  
      Tooltip.prototype.enable = function enable() {
        this._isEnabled = true;
      };
  
      Tooltip.prototype.disable = function disable() {
        this._isEnabled = false;
      };
  
      Tooltip.prototype.toggleEnabled = function toggleEnabled() {
        this._isEnabled = !this._isEnabled;
      };
  
      Tooltip.prototype.toggle = function toggle(event) {
        if (event) {
          var dataKey = this.constructor.DATA_KEY;
          var context = $(event.currentTarget).data(dataKey);
  
          if (!context) {
            context = new this.constructor(event.currentTarget, this._getDelegateConfig());
            $(event.currentTarget).data(dataKey, context);
          }
  
          context._activeTrigger.click = !context._activeTrigger.click;
  
          if (context._isWithActiveTrigger()) {
            context._enter(null, context);
          } else {
            context._leave(null, context);
          }
        } else {
  
          if ($(this.getTipElement()).hasClass(ClassName.SHOW)) {
            this._leave(null, this);
            return;
          }
  
          this._enter(null, this);
        }
      };
  
      Tooltip.prototype.dispose = function dispose() {
        clearTimeout(this._timeout);
  
        this.cleanupTether();
  
        $.removeData(this.element, this.constructor.DATA_KEY);
  
        $(this.element).off(this.constructor.EVENT_KEY);
        $(this.element).closest('.modal').off('hide.bs.modal');
  
        if (this.tip) {
          $(this.tip).remove();
        }
  
        this._isEnabled = null;
        this._timeout = null;
        this._hoverState = null;
        this._activeTrigger = null;
        this._tether = null;
  
        this.element = null;
        this.config = null;
        this.tip = null;
      };
  
      Tooltip.prototype.show = function show() {
        var _this = this;
  
        if ($(this.element).css('display') === 'none') {
          throw new Error('Please use show on visible elements');
        }
  
        var showEvent = $.Event(this.constructor.Event.SHOW);
        if (this.isWithContent() && this._isEnabled) {
          if (this._isTransitioning) {
            throw new Error('Tooltip is transitioning');
          }
          $(this.element).trigger(showEvent);
  
          var isInTheDom = $.contains(this.element.ownerDocument.documentElement, this.element);
  
          if (showEvent.isDefaultPrevented() || !isInTheDom) {
            return;
          }
  
          var tip = this.getTipElement();
          var tipId = Util.getUID(this.constructor.NAME);
  
          tip.setAttribute('id', tipId);
          this.element.setAttribute('aria-describedby', tipId);
  
          this.setContent();
  
          if (this.config.animation) {
            $(tip).addClass(ClassName.FADE);
          }
  
          var placement = typeof this.config.placement === 'function' ? this.config.placement.call(this, tip, this.element) : this.config.placement;
  
          var attachment = this._getAttachment(placement);
  
          var container = this.config.container === false ? document.body : $(this.config.container);
  
          $(tip).data(this.constructor.DATA_KEY, this).appendTo(container);
  
          $(this.element).trigger(this.constructor.Event.INSERTED);
  
          this._tether = new Tether({
            attachment: attachment,
            element: tip,
            target: this.element,
            classes: TetherClass,
            classPrefix: CLASS_PREFIX,
            offset: this.config.offset,
            constraints: this.config.constraints,
            addTargetClasses: false
          });
  
          Util.reflow(tip);
          this._tether.position();
  
          $(tip).addClass(ClassName.SHOW);
  
          var complete = function complete() {
            var prevHoverState = _this._hoverState;
            _this._hoverState = null;
            _this._isTransitioning = false;
  
            $(_this.element).trigger(_this.constructor.Event.SHOWN);
  
            if (prevHoverState === HoverState.OUT) {
              _this._leave(null, _this);
            }
          };
  
          if (Util.supportsTransitionEnd() && $(this.tip).hasClass(ClassName.FADE)) {
            this._isTransitioning = true;
            $(this.tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(Tooltip._TRANSITION_DURATION);
            return;
          }
  
          complete();
        }
      };
  
      Tooltip.prototype.hide = function hide(callback) {
        var _this2 = this;
  
        var tip = this.getTipElement();
        var hideEvent = $.Event(this.constructor.Event.HIDE);
        if (this._isTransitioning) {
          throw new Error('Tooltip is transitioning');
        }
        var complete = function complete() {
          if (_this2._hoverState !== HoverState.SHOW && tip.parentNode) {
            tip.parentNode.removeChild(tip);
          }
  
          _this2.element.removeAttribute('aria-describedby');
          $(_this2.element).trigger(_this2.constructor.Event.HIDDEN);
          _this2._isTransitioning = false;
          _this2.cleanupTether();
  
          if (callback) {
            callback();
          }
        };
  
        $(this.element).trigger(hideEvent);
  
        if (hideEvent.isDefaultPrevented()) {
          return;
        }
  
        $(tip).removeClass(ClassName.SHOW);
  
        this._activeTrigger[Trigger.CLICK] = false;
        this._activeTrigger[Trigger.FOCUS] = false;
        this._activeTrigger[Trigger.HOVER] = false;
  
        if (Util.supportsTransitionEnd() && $(this.tip).hasClass(ClassName.FADE)) {
          this._isTransitioning = true;
          $(tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(TRANSITION_DURATION);
        } else {
          complete();
        }
  
        this._hoverState = '';
      };
  
      // protected
  
      Tooltip.prototype.isWithContent = function isWithContent() {
        return Boolean(this.getTitle());
      };
  
      Tooltip.prototype.getTipElement = function getTipElement() {
        return this.tip = this.tip || $(this.config.template)[0];
      };
  
      Tooltip.prototype.setContent = function setContent() {
        var $tip = $(this.getTipElement());
  
        this.setElementContent($tip.find(Selector.TOOLTIP_INNER), this.getTitle());
  
        $tip.removeClass(ClassName.FADE + ' ' + ClassName.SHOW);
  
        this.cleanupTether();
      };
  
      Tooltip.prototype.setElementContent = function setElementContent($element, content) {
        var html = this.config.html;
        if ((typeof content === 'undefined' ? 'undefined' : _typeof(content)) === 'object' && (content.nodeType || content.jquery)) {
          // content is a DOM node or a jQuery
          if (html) {
            if (!$(content).parent().is($element)) {
              $element.empty().append(content);
            }
          } else {
            $element.text($(content).text());
          }
        } else {
          $element[html ? 'html' : 'text'](content);
        }
      };
  
      Tooltip.prototype.getTitle = function getTitle() {
        var title = this.element.getAttribute('data-original-title');
  
        if (!title) {
          title = typeof this.config.title === 'function' ? this.config.title.call(this.element) : this.config.title;
        }
  
        return title;
      };
  
      Tooltip.prototype.cleanupTether = function cleanupTether() {
        if (this._tether) {
          this._tether.destroy();
        }
      };
  
      // private
  
      Tooltip.prototype._getAttachment = function _getAttachment(placement) {
        return AttachmentMap[placement.toUpperCase()];
      };
  
      Tooltip.prototype._setListeners = function _setListeners() {
        var _this3 = this;
  
        var triggers = this.config.trigger.split(' ');
  
        triggers.forEach(function (trigger) {
          if (trigger === 'click') {
            $(_this3.element).on(_this3.constructor.Event.CLICK, _this3.config.selector, function (event) {
              return _this3.toggle(event);
            });
          } else if (trigger !== Trigger.MANUAL) {
            var eventIn = trigger === Trigger.HOVER ? _this3.constructor.Event.MOUSEENTER : _this3.constructor.Event.FOCUSIN;
            var eventOut = trigger === Trigger.HOVER ? _this3.constructor.Event.MOUSELEAVE : _this3.constructor.Event.FOCUSOUT;
  
            $(_this3.element).on(eventIn, _this3.config.selector, function (event) {
              return _this3._enter(event);
            }).on(eventOut, _this3.config.selector, function (event) {
              return _this3._leave(event);
            });
          }
  
          $(_this3.element).closest('.modal').on('hide.bs.modal', function () {
            return _this3.hide();
          });
        });
  
        if (this.config.selector) {
          this.config = $.extend({}, this.config, {
            trigger: 'manual',
            selector: ''
          });
        } else {
          this._fixTitle();
        }
      };
  
      Tooltip.prototype._fixTitle = function _fixTitle() {
        var titleType = _typeof(this.element.getAttribute('data-original-title'));
        if (this.element.getAttribute('title') || titleType !== 'string') {
          this.element.setAttribute('data-original-title', this.element.getAttribute('title') || '');
          this.element.setAttribute('title', '');
        }
      };
  
      Tooltip.prototype._enter = function _enter(event, context) {
        var dataKey = this.constructor.DATA_KEY;
  
        context = context || $(event.currentTarget).data(dataKey);
  
        if (!context) {
          context = new this.constructor(event.currentTarget, this._getDelegateConfig());
          $(event.currentTarget).data(dataKey, context);
        }
  
        if (event) {
          context._activeTrigger[event.type === 'focusin' ? Trigger.FOCUS : Trigger.HOVER] = true;
        }
  
        if ($(context.getTipElement()).hasClass(ClassName.SHOW) || context._hoverState === HoverState.SHOW) {
          context._hoverState = HoverState.SHOW;
          return;
        }
  
        clearTimeout(context._timeout);
  
        context._hoverState = HoverState.SHOW;
  
        if (!context.config.delay || !context.config.delay.show) {
          context.show();
          return;
        }
  
        context._timeout = setTimeout(function () {
          if (context._hoverState === HoverState.SHOW) {
            context.show();
          }
        }, context.config.delay.show);
      };
  
      Tooltip.prototype._leave = function _leave(event, context) {
        var dataKey = this.constructor.DATA_KEY;
  
        context = context || $(event.currentTarget).data(dataKey);
  
        if (!context) {
          context = new this.constructor(event.currentTarget, this._getDelegateConfig());
          $(event.currentTarget).data(dataKey, context);
        }
  
        if (event) {
          context._activeTrigger[event.type === 'focusout' ? Trigger.FOCUS : Trigger.HOVER] = false;
        }
  
        if (context._isWithActiveTrigger()) {
          return;
        }
  
        clearTimeout(context._timeout);
  
        context._hoverState = HoverState.OUT;
  
        if (!context.config.delay || !context.config.delay.hide) {
          context.hide();
          return;
        }
  
        context._timeout = setTimeout(function () {
          if (context._hoverState === HoverState.OUT) {
            context.hide();
          }
        }, context.config.delay.hide);
      };
  
      Tooltip.prototype._isWithActiveTrigger = function _isWithActiveTrigger() {
        for (var trigger in this._activeTrigger) {
          if (this._activeTrigger[trigger]) {
            return true;
          }
        }
  
        return false;
      };
  
      Tooltip.prototype._getConfig = function _getConfig(config) {
        config = $.extend({}, this.constructor.Default, $(this.element).data(), config);
  
        if (config.delay && typeof config.delay === 'number') {
          config.delay = {
            show: config.delay,
            hide: config.delay
          };
        }
  
        Util.typeCheckConfig(NAME, config, this.constructor.DefaultType);
  
        return config;
      };
  
      Tooltip.prototype._getDelegateConfig = function _getDelegateConfig() {
        var config = {};
  
        if (this.config) {
          for (var key in this.config) {
            if (this.constructor.Default[key] !== this.config[key]) {
              config[key] = this.config[key];
            }
          }
        }
  
        return config;
      };
  
      // static
  
      Tooltip._jQueryInterface = function _jQueryInterface(config) {
        return this.each(function () {
          var data = $(this).data(DATA_KEY);
          var _config = (typeof config === 'undefined' ? 'undefined' : _typeof(config)) === 'object' && config;
  
          if (!data && /dispose|hide/.test(config)) {
            return;
          }
  
          if (!data) {
            data = new Tooltip(this, _config);
            $(this).data(DATA_KEY, data);
          }
  
          if (typeof config === 'string') {
            if (data[config] === undefined) {
              throw new Error('No method named "' + config + '"');
            }
            data[config]();
          }
        });
      };
  
      _createClass(Tooltip, null, [{
        key: 'VERSION',
        get: function get() {
          return VERSION;
        }
      }, {
        key: 'Default',
        get: function get() {
          return Default;
        }
      }, {
        key: 'NAME',
        get: function get() {
          return NAME;
        }
      }, {
        key: 'DATA_KEY',
        get: function get() {
          return DATA_KEY;
        }
      }, {
        key: 'Event',
        get: function get() {
          return Event;
        }
      }, {
        key: 'EVENT_KEY',
        get: function get() {
          return EVENT_KEY;
        }
      }, {
        key: 'DefaultType',
        get: function get() {
          return DefaultType;
        }
      }]);
  
      return Tooltip;
    }();
  
    /**
     * ------------------------------------------------------------------------
     * jQuery
     * ------------------------------------------------------------------------
     */
  
    $.fn[NAME] = Tooltip._jQueryInterface;
    $.fn[NAME].Constructor = Tooltip;
    $.fn[NAME].noConflict = function () {
      $.fn[NAME] = JQUERY_NO_CONFLICT;
      return Tooltip._jQueryInterface;
    };
  
    return Tooltip;
  }(jQuery); /* global Tether */
  //# sourceMappingURL=tooltip.js.map
  
  /**
   * --------------------------------------------------------------------------
   * Bootstrap (v4.0.0-alpha.6): util.js
   * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
   * --------------------------------------------------------------------------
   */
  
  var Util = function ($) {
  
    /**
     * ------------------------------------------------------------------------
     * Private TransitionEnd Helpers
     * ------------------------------------------------------------------------
     */
  
    var transition = false;
  
    var MAX_UID = 1000000;
  
    var TransitionEndEvent = {
      WebkitTransition: 'webkitTransitionEnd',
      MozTransition: 'transitionend',
      OTransition: 'oTransitionEnd otransitionend',
      transition: 'transitionend'
    };
  
    // shoutout AngusCroll (https://goo.gl/pxwQGp)
    function toType(obj) {
      return {}.toString.call(obj).match(/\s([a-zA-Z]+)/)[1].toLowerCase();
    }
  
    function isElement(obj) {
      return (obj[0] || obj).nodeType;
    }
  
    function getSpecialTransitionEndEvent() {
      return {
        bindType: transition.end,
        delegateType: transition.end,
        handle: function handle(event) {
          if ($(event.target).is(this)) {
            return event.handleObj.handler.apply(this, arguments); // eslint-disable-line prefer-rest-params
          }
          return undefined;
        }
      };
    }
  
    function transitionEndTest() {
      if (window.QUnit) {
        return false;
      }
  
      var el = document.createElement('bootstrap');
  
      for (var name in TransitionEndEvent) {
        if (el.style[name] !== undefined) {
          return {
            end: TransitionEndEvent[name]
          };
        }
      }
  
      return false;
    }
  
    function transitionEndEmulator(duration) {
      var _this = this;
  
      var called = false;
  
      $(this).one(Util.TRANSITION_END, function () {
        called = true;
      });
  
      setTimeout(function () {
        if (!called) {
          Util.triggerTransitionEnd(_this);
        }
      }, duration);
  
      return this;
    }
  
    function setTransitionEndSupport() {
      transition = transitionEndTest();
  
      $.fn.emulateTransitionEnd = transitionEndEmulator;
  
      if (Util.supportsTransitionEnd()) {
        $.event.special[Util.TRANSITION_END] = getSpecialTransitionEndEvent();
      }
    }
  
    /**
     * --------------------------------------------------------------------------
     * Public Util Api
     * --------------------------------------------------------------------------
     */
  
    var Util = {
  
      TRANSITION_END: 'bsTransitionEnd',
  
      getUID: function getUID(prefix) {
        do {
          // eslint-disable-next-line no-bitwise
          prefix += ~~(Math.random() * MAX_UID); // "~~" acts like a faster Math.floor() here
        } while (document.getElementById(prefix));
        return prefix;
      },
      getSelectorFromElement: function getSelectorFromElement(element) {
        var selector = element.getAttribute('data-target');
  
        if (!selector) {
          selector = element.getAttribute('href') || '';
          selector = /^#[a-z]/i.test(selector) ? selector : null;
        }
  
        return selector;
      },
      reflow: function reflow(element) {
        return element.offsetHeight;
      },
      triggerTransitionEnd: function triggerTransitionEnd(element) {
        $(element).trigger(transition.end);
      },
      supportsTransitionEnd: function supportsTransitionEnd() {
        return Boolean(transition);
      },
      typeCheckConfig: function typeCheckConfig(componentName, config, configTypes) {
        for (var property in configTypes) {
          if (configTypes.hasOwnProperty(property)) {
            var expectedTypes = configTypes[property];
            var value = config[property];
            var valueType = value && isElement(value) ? 'element' : toType(value);
  
            if (!new RegExp(expectedTypes).test(valueType)) {
              throw new Error(componentName.toUpperCase() + ': ' + ('Option "' + property + '" provided type "' + valueType + '" ') + ('but expected type "' + expectedTypes + '".'));
            }
          }
        }
      }
    };
  
    setTransitionEndSupport();
  
    return Util;
  }(jQuery);
  //# sourceMappingURL=util.js.map
  
  
  
  
  
  
  
  
  
  
  /**
   * --------------------------------------------------------------------------
   * Bootstrap (v4.0.0-alpha.6): alert.js
   * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
   * --------------------------------------------------------------------------
   */
  
  const Alert = (($) => {
  
  
    /**
     * ------------------------------------------------------------------------
     * Constants
     * ------------------------------------------------------------------------
     */
  
    const NAME                = 'alert'
    const VERSION             = '4.0.0-alpha.6'
    const DATA_KEY            = 'bs.alert'
    const EVENT_KEY           = `.${DATA_KEY}`
    const DATA_API_KEY        = '.data-api'
    const JQUERY_NO_CONFLICT  = $.fn[NAME]
    const TRANSITION_DURATION = 150
  
    const Selector = {
      DISMISS : '[data-dismiss="alert"]'
    }
  
    const Event = {
      CLOSE          : `close${EVENT_KEY}`,
      CLOSED         : `closed${EVENT_KEY}`,
      CLICK_DATA_API : `click${EVENT_KEY}${DATA_API_KEY}`
    }
  
    const ClassName = {
      ALERT : 'alert',
      FADE  : 'fade',
      SHOW  : 'show'
    }
  
  
    /**
     * ------------------------------------------------------------------------
     * Class Definition
     * ------------------------------------------------------------------------
     */
  
    class Alert {
  
      constructor(element) {
        this._element = element
      }
  
  
      // getters
  
      static get VERSION() {
        return VERSION
      }
  
  
      // public
  
      close(element) {
        element = element || this._element
  
        const rootElement = this._getRootElement(element)
        const customEvent = this._triggerCloseEvent(rootElement)
  
        if (customEvent.isDefaultPrevented()) {
          return
        }
  
        this._removeElement(rootElement)
      }
  
      dispose() {
        $.removeData(this._element, DATA_KEY)
        this._element = null
      }
  
  
      // private
  
      _getRootElement(element) {
        const selector = Util.getSelectorFromElement(element)
        let parent     = false
  
        if (selector) {
          parent = $(selector)[0]
        }
  
        if (!parent) {
          parent = $(element).closest(`.${ClassName.ALERT}`)[0]
        }
  
        return parent
      }
  
      _triggerCloseEvent(element) {
        const closeEvent = $.Event(Event.CLOSE)
  
        $(element).trigger(closeEvent)
        return closeEvent
      }
  
      _removeElement(element) {
        $(element).removeClass(ClassName.SHOW)
  
        if (!Util.supportsTransitionEnd() ||
            !$(element).hasClass(ClassName.FADE)) {
          this._destroyElement(element)
          return
        }
  
        $(element)
          .one(Util.TRANSITION_END, (event) => this._destroyElement(element, event))
          .emulateTransitionEnd(TRANSITION_DURATION)
      }
  
      _destroyElement(element) {
        $(element)
          .detach()
          .trigger(Event.CLOSED)
          .remove()
      }
  
  
      // static
  
      static _jQueryInterface(config) {
        return this.each(function () {
          const $element = $(this)
          let data       = $element.data(DATA_KEY)
  
          if (!data) {
            data = new Alert(this)
            $element.data(DATA_KEY, data)
          }
  
          if (config === 'close') {
            data[config](this)
          }
        })
      }
  
      static _handleDismiss(alertInstance) {
        return function (event) {
          if (event) {
            event.preventDefault()
          }
  
          alertInstance.close(this)
        }
      }
  
    }
  
  
    /**
     * ------------------------------------------------------------------------
     * Data Api implementation
     * ------------------------------------------------------------------------
     */
  
    $(document).on(
      Event.CLICK_DATA_API,
      Selector.DISMISS,
      Alert._handleDismiss(new Alert())
    )
  
  
    /**
     * ------------------------------------------------------------------------
     * jQuery
     * ------------------------------------------------------------------------
     */
  
    $.fn[NAME]             = Alert._jQueryInterface
    $.fn[NAME].Constructor = Alert
    $.fn[NAME].noConflict  = function () {
      $.fn[NAME] = JQUERY_NO_CONFLICT
      return Alert._jQueryInterface
    }
  
    return Alert
  
  })(jQuery)
  /*
  export default Alert*/
  
  
  
  
  
  
  var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
  
  var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  
  /**
   * --------------------------------------------------------------------------
   * Bootstrap (v4.0.0-alpha.6): scrollspy.js
   * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
   * --------------------------------------------------------------------------
   */
  
  var ScrollSpy = function ($) {
  
    /**
     * ------------------------------------------------------------------------
     * Constants
     * ------------------------------------------------------------------------
     */
  
    var NAME = 'scrollspy';
    var VERSION = '4.0.0-alpha.6';
    var DATA_KEY = 'bs.scrollspy';
    var EVENT_KEY = '.' + DATA_KEY;
    var DATA_API_KEY = '.data-api';
    var JQUERY_NO_CONFLICT = $.fn[NAME];
  
    var Default = {
      offset: 10,
      method: 'auto',
      target: ''
    };
  
    var DefaultType = {
      offset: 'number',
      method: 'string',
      target: '(string|element)'
    };
  
    var Event = {
      ACTIVATE: 'activate' + EVENT_KEY,
      SCROLL: 'scroll' + EVENT_KEY,
      LOAD_DATA_API: 'load' + EVENT_KEY + DATA_API_KEY
    };
  
    var ClassName = {
      DROPDOWN_ITEM: 'dropdown-item',
      DROPDOWN_MENU: 'dropdown-menu',
      NAV_LINK: 'nav-link',
      NAV: 'nav',
      ACTIVE: 'active'
    };
  
    var Selector = {
      DATA_SPY: '[data-spy="scroll"]',
      ACTIVE: '.active',
      LIST_ITEM: '.list-item',
      LI: 'li',
      LI_DROPDOWN: 'li.dropdown',
      NAV_LINKS: '.nav-link',
      DROPDOWN: '.dropdown',
      DROPDOWN_ITEMS: '.dropdown-item',
      DROPDOWN_TOGGLE: '.dropdown-toggle'
    };
  
    var OffsetMethod = {
      OFFSET: 'offset',
      POSITION: 'position'
    };
  
    /**
     * ------------------------------------------------------------------------
     * Class Definition
     * ------------------------------------------------------------------------
     */
  
    var ScrollSpy = function () {
      function ScrollSpy(element, config) {
        var _this = this;
  
        _classCallCheck(this, ScrollSpy);
  
        this._element = element;
        this._scrollElement = element.tagName === 'BODY' ? window : element;
        this._config = this._getConfig(config);
        this._selector = this._config.target + ' ' + Selector.NAV_LINKS + ',' + (this._config.target + ' ' + Selector.DROPDOWN_ITEMS);
        this._offsets = [];
        this._targets = [];
        this._activeTarget = null;
        this._scrollHeight = 0;
  
        $(this._scrollElement).on(Event.SCROLL, function (event) {
          return _this._process(event);
        });
  
        this.refresh();
        this._process();
      }
  
      // getters
  
      // public
  
      ScrollSpy.prototype.refresh = function refresh() {
        var _this2 = this;
  
        var autoMethod = this._scrollElement !== this._scrollElement.window ? OffsetMethod.POSITION : OffsetMethod.OFFSET;
  
        var offsetMethod = this._config.method === 'auto' ? autoMethod : this._config.method;
  
        var offsetBase = offsetMethod === OffsetMethod.POSITION ? this._getScrollTop() : 0;
  
        this._offsets = [];
        this._targets = [];
  
        this._scrollHeight = this._getScrollHeight();
  
        var targets = $.makeArray($(this._selector));
  
        targets.map(function (element) {
          var target = void 0;
          var targetSelector = Util.getSelectorFromElement(element);
  
          if (targetSelector) {
            target = $(targetSelector)[0];
          }
  
          if (target && (target.offsetWidth || target.offsetHeight)) {
            // todo (fat): remove sketch reliance on jQuery position/offset
            return [$(target)[offsetMethod]().top + offsetBase, targetSelector];
          }
          return null;
        }).filter(function (item) {
          return item;
        }).sort(function (a, b) {
          return a[0] - b[0];
        }).forEach(function (item) {
          _this2._offsets.push(item[0]);
          _this2._targets.push(item[1]);
        });
      };
  
      ScrollSpy.prototype.dispose = function dispose() {
        $.removeData(this._element, DATA_KEY);
        $(this._scrollElement).off(EVENT_KEY);
  
        this._element = null;
        this._scrollElement = null;
        this._config = null;
        this._selector = null;
        this._offsets = null;
        this._targets = null;
        this._activeTarget = null;
        this._scrollHeight = null;
      };
  
      // private
  
      ScrollSpy.prototype._getConfig = function _getConfig(config) {
        config = $.extend({}, Default, config);
  
        if (typeof config.target !== 'string') {
          var id = $(config.target).attr('id');
          if (!id) {
            id = Util.getUID(NAME);
            $(config.target).attr('id', id);
          }
          config.target = '#' + id;
        }
  
        Util.typeCheckConfig(NAME, config, DefaultType);
  
        return config;
      };
  
      ScrollSpy.prototype._getScrollTop = function _getScrollTop() {
        return this._scrollElement === window ? this._scrollElement.pageYOffset : this._scrollElement.scrollTop;
      };
  
      ScrollSpy.prototype._getScrollHeight = function _getScrollHeight() {
        return this._scrollElement.scrollHeight || Math.max(document.body.scrollHeight, document.documentElement.scrollHeight);
      };
  
      ScrollSpy.prototype._getOffsetHeight = function _getOffsetHeight() {
        return this._scrollElement === window ? window.innerHeight : this._scrollElement.offsetHeight;
      };
  
      ScrollSpy.prototype._process = function _process() {
        var scrollTop = this._getScrollTop() + this._config.offset;
        var scrollHeight = this._getScrollHeight();
        var maxScroll = this._config.offset + scrollHeight - this._getOffsetHeight();
  
        if (this._scrollHeight !== scrollHeight) {
          this.refresh();
        }
  
        if (scrollTop >= maxScroll) {
          var target = this._targets[this._targets.length - 1];
  
          if (this._activeTarget !== target) {
            this._activate(target);
          }
          return;
        }
  
        if (this._activeTarget && scrollTop < this._offsets[0] && this._offsets[0] > 0) {
          this._activeTarget = null;
          this._clear();
          return;
        }
  
        for (var i = this._offsets.length; i--;) {
          var isActiveTarget = this._activeTarget !== this._targets[i] && scrollTop >= this._offsets[i] && (this._offsets[i + 1] === undefined || scrollTop < this._offsets[i + 1]);
  
          if (isActiveTarget) {
            this._activate(this._targets[i]);
          }
        }
      };
  
      ScrollSpy.prototype._activate = function _activate(target) {
        this._activeTarget = target;
  
        this._clear();
  
        var queries = this._selector.split(',');
        queries = queries.map(function (selector) {
          return selector + '[data-target="' + target + '"],' + (selector + '[href="' + target + '"]');
        });
  
        var $link = $(queries.join(','));
  
        if ($link.hasClass(ClassName.DROPDOWN_ITEM)) {
          $link.closest(Selector.DROPDOWN).find(Selector.DROPDOWN_TOGGLE).addClass(ClassName.ACTIVE);
          $link.addClass(ClassName.ACTIVE);
        } else {
          // todo (fat) this is kinda sus...
          // recursively add actives to tested nav-links
          $link.parents(Selector.LI).find('> ' + Selector.NAV_LINKS).addClass(ClassName.ACTIVE);
        }
  
        $(this._scrollElement).trigger(Event.ACTIVATE, {
          relatedTarget: target
        });
      };
  
      ScrollSpy.prototype._clear = function _clear() {
        $(this._selector).filter(Selector.ACTIVE).removeClass(ClassName.ACTIVE);
      };
  
      // static
  
      ScrollSpy._jQueryInterface = function _jQueryInterface(config) {
        return this.each(function () {
          var data = $(this).data(DATA_KEY);
          var _config = (typeof config === 'undefined' ? 'undefined' : _typeof(config)) === 'object' && config;
  
          if (!data) {
            data = new ScrollSpy(this, _config);
            $(this).data(DATA_KEY, data);
          }
  
          if (typeof config === 'string') {
            if (data[config] === undefined) {
              throw new Error('No method named "' + config + '"');
            }
            data[config]();
          }
        });
      };
  
      _createClass(ScrollSpy, null, [{
        key: 'VERSION',
        get: function get() {
          return VERSION;
        }
      }, {
        key: 'Default',
        get: function get() {
          return Default;
        }
      }]);
  
      return ScrollSpy;
    }();
  
    /**
     * ------------------------------------------------------------------------
     * Data Api implementation
     * ------------------------------------------------------------------------
     */
  
    $(window).on(Event.LOAD_DATA_API, function () {
      var scrollSpys = $.makeArray($(Selector.DATA_SPY));
  
      for (var i = scrollSpys.length; i--;) {
        var $spy = $(scrollSpys[i]);
        ScrollSpy._jQueryInterface.call($spy, $spy.data());
      }
    });
  
    /**
     * ------------------------------------------------------------------------
     * jQuery
     * ------------------------------------------------------------------------
     */
  
    $.fn[NAME] = ScrollSpy._jQueryInterface;
    $.fn[NAME].Constructor = ScrollSpy;
    $.fn[NAME].noConflict = function () {
      $.fn[NAME] = JQUERY_NO_CONFLICT;
      return ScrollSpy._jQueryInterface;
    };
  
    return ScrollSpy;
  }(jQuery);
  //# sourceMappingURL=scrollspy.js.map
  
  
  var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
  
  var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  
  function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  
  /**
   * --------------------------------------------------------------------------
   * Bootstrap (v4.0.0-alpha.6): popover.js
   * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
   * --------------------------------------------------------------------------
   */
  
  var Popover = function ($) {
  
    /**
     * ------------------------------------------------------------------------
     * Constants
     * ------------------------------------------------------------------------
     */
  
    var NAME = 'popover';
    var VERSION = '4.0.0-alpha.6';
    var DATA_KEY = 'bs.popover';
    var EVENT_KEY = '.' + DATA_KEY;
    var JQUERY_NO_CONFLICT = $.fn[NAME];
  
    var Default = $.extend({}, Tooltip.Default, {
      placement: 'right',
      trigger: 'click',
      content: '',
      template: '<div class="popover" role="tooltip">' + '<h3 class="popover-title"></h3>' + '<div class="popover-content"></div></div>'
    });
  
    var DefaultType = $.extend({}, Tooltip.DefaultType, {
      content: '(string|element|function)'
    });
  
    var ClassName = {
      FADE: 'fade',
      SHOW: 'show'
    };
  
    var Selector = {
      TITLE: '.popover-title',
      CONTENT: '.popover-content'
    };
  
    var Event = {
      HIDE: 'hide' + EVENT_KEY,
      HIDDEN: 'hidden' + EVENT_KEY,
      SHOW: 'show' + EVENT_KEY,
      SHOWN: 'shown' + EVENT_KEY,
      INSERTED: 'inserted' + EVENT_KEY,
      CLICK: 'click' + EVENT_KEY,
      FOCUSIN: 'focusin' + EVENT_KEY,
      FOCUSOUT: 'focusout' + EVENT_KEY,
      MOUSEENTER: 'mouseenter' + EVENT_KEY,
      MOUSELEAVE: 'mouseleave' + EVENT_KEY
    };
  
    /**
     * ------------------------------------------------------------------------
     * Class Definition
     * ------------------------------------------------------------------------
     */
  
    var Popover = function (_Tooltip) {
      _inherits(Popover, _Tooltip);
  
      function Popover() {
        _classCallCheck(this, Popover);
  
        return _possibleConstructorReturn(this, _Tooltip.apply(this, arguments));
      }
  
      // overrides
  
      Popover.prototype.isWithContent = function isWithContent() {
        return this.getTitle() || this._getContent();
      };
  
      Popover.prototype.getTipElement = function getTipElement() {
        return this.tip = this.tip || $(this.config.template)[0];
      };
  
      Popover.prototype.setContent = function setContent() {
        var $tip = $(this.getTipElement());
  
        // we use append for html objects to maintain js events
        this.setElementContent($tip.find(Selector.TITLE), this.getTitle());
        this.setElementContent($tip.find(Selector.CONTENT), this._getContent());
  
        $tip.removeClass(ClassName.FADE + ' ' + ClassName.SHOW);
  
        this.cleanupTether();
      };
  
      // private
  
      Popover.prototype._getContent = function _getContent() {
        return this.element.getAttribute('data-content') || (typeof this.config.content === 'function' ? this.config.content.call(this.element) : this.config.content);
      };
  
      // static
  
      Popover._jQueryInterface = function _jQueryInterface(config) {
        return this.each(function () {
          var data = $(this).data(DATA_KEY);
          var _config = (typeof config === 'undefined' ? 'undefined' : _typeof(config)) === 'object' ? config : null;
  
          if (!data && /destroy|hide/.test(config)) {
            return;
          }
  
          if (!data) {
            data = new Popover(this, _config);
            $(this).data(DATA_KEY, data);
          }
  
          if (typeof config === 'string') {
            if (data[config] === undefined) {
              throw new Error('No method named "' + config + '"');
            }
            data[config]();
          }
        });
      };
  
      _createClass(Popover, null, [{
        key: 'VERSION',
  
  
        // getters
  
        get: function get() {
          return VERSION;
        }
      }, {
        key: 'Default',
        get: function get() {
          return Default;
        }
      }, {
        key: 'NAME',
        get: function get() {
          return NAME;
        }
      }, {
        key: 'DATA_KEY',
        get: function get() {
          return DATA_KEY;
        }
      }, {
        key: 'Event',
        get: function get() {
          return Event;
        }
      }, {
        key: 'EVENT_KEY',
        get: function get() {
          return EVENT_KEY;
        }
      }, {
        key: 'DefaultType',
        get: function get() {
          return DefaultType;
        }
      }]);
  
      return Popover;
    }(Tooltip);
  
    /**
     * ------------------------------------------------------------------------
     * jQuery
     * ------------------------------------------------------------------------
     */
  
    $.fn[NAME] = Popover._jQueryInterface;
    $.fn[NAME].Constructor = Popover;
    $.fn[NAME].noConflict = function () {
      $.fn[NAME] = JQUERY_NO_CONFLICT;
      return Popover._jQueryInterface;
    };
  
    return Popover;
  }(jQuery);
  //# sourceMappingURL=popover.js.map
  
  var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
  
  var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  
  /**
   * --------------------------------------------------------------------------
   * Bootstrap (v4.0.0-alpha.6): modal.js
   * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
   * --------------------------------------------------------------------------
   */
  
  var Modal = function ($) {
  
    /**
     * ------------------------------------------------------------------------
     * Constants
     * ------------------------------------------------------------------------
     */
  
    var NAME = 'modal';
    var VERSION = '4.0.0-alpha.6';
    var DATA_KEY = 'bs.modal';
    var EVENT_KEY = '.' + DATA_KEY;
    var DATA_API_KEY = '.data-api';
    var JQUERY_NO_CONFLICT = $.fn[NAME];
    var TRANSITION_DURATION = 300;
    var BACKDROP_TRANSITION_DURATION = 150;
    var ESCAPE_KEYCODE = 27; // KeyboardEvent.which value for Escape (Esc) key
  
    var Default = {
      backdrop: true,
      keyboard: true,
      focus: true,
      show: true
    };
  
    var DefaultType = {
      backdrop: '(boolean|string)',
      keyboard: 'boolean',
      focus: 'boolean',
      show: 'boolean'
    };
  
    var Event = {
      HIDE: 'hide' + EVENT_KEY,
      HIDDEN: 'hidden' + EVENT_KEY,
      SHOW: 'show' + EVENT_KEY,
      SHOWN: 'shown' + EVENT_KEY,
      FOCUSIN: 'focusin' + EVENT_KEY,
      RESIZE: 'resize' + EVENT_KEY,
      CLICK_DISMISS: 'click.dismiss' + EVENT_KEY,
      KEYDOWN_DISMISS: 'keydown.dismiss' + EVENT_KEY,
      MOUSEUP_DISMISS: 'mouseup.dismiss' + EVENT_KEY,
      MOUSEDOWN_DISMISS: 'mousedown.dismiss' + EVENT_KEY,
      CLICK_DATA_API: 'click' + EVENT_KEY + DATA_API_KEY
    };
  
    var ClassName = {
      SCROLLBAR_MEASURER: 'modal-scrollbar-measure',
      BACKDROP: 'modal-backdrop',
      OPEN: 'modal-open',
      FADE: 'fade',
      SHOW: 'show'
    };
  
    var Selector = {
      DIALOG: '.modal-dialog',
      DATA_TOGGLE: '[data-toggle="modal"]',
      DATA_DISMISS: '[data-dismiss="modal"]',
      FIXED_CONTENT: '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top'
    };
  
    /**
     * ------------------------------------------------------------------------
     * Class Definition
     * ------------------------------------------------------------------------
     */
  
    var Modal = function () {
      function Modal(element, config) {
        _classCallCheck(this, Modal);
  
        this._config = this._getConfig(config);
        this._element = element;
        this._dialog = $(element).find(Selector.DIALOG)[0];
        this._backdrop = null;
        this._isShown = false;
        this._isBodyOverflowing = false;
        this._ignoreBackdropClick = false;
        this._isTransitioning = false;
        this._originalBodyPadding = 0;
        this._scrollbarWidth = 0;
      }
  
      // getters
  
      // public
  
      Modal.prototype.toggle = function toggle(relatedTarget) {
        return this._isShown ? this.hide() : this.show(relatedTarget);
      };
  
      Modal.prototype.show = function show(relatedTarget) {
        var _this = this;
  
        if (this._isTransitioning) {
          throw new Error('Modal is transitioning');
        }
  
        if (Util.supportsTransitionEnd() && $(this._element).hasClass(ClassName.FADE)) {
          this._isTransitioning = true;
        }
        var showEvent = $.Event(Event.SHOW, {
          relatedTarget: relatedTarget
        });
  
        $(this._element).trigger(showEvent);
  
        if (this._isShown || showEvent.isDefaultPrevented()) {
          return;
        }
  
        this._isShown = true;
  
        this._checkScrollbar();
        this._setScrollbar();
  
        $(document.body).addClass(ClassName.OPEN);
  
        this._setEscapeEvent();
        this._setResizeEvent();
  
        $(this._element).on(Event.CLICK_DISMISS, Selector.DATA_DISMISS, function (event) {
          return _this.hide(event);
        });
  
        $(this._dialog).on(Event.MOUSEDOWN_DISMISS, function () {
          $(_this._element).one(Event.MOUSEUP_DISMISS, function (event) {
            if ($(event.target).is(_this._element)) {
              _this._ignoreBackdropClick = true;
            }
          });
        });
  
        this._showBackdrop(function () {
          return _this._showElement(relatedTarget);
        });
      };
  
      Modal.prototype.hide = function hide(event) {
        var _this2 = this;
  
        if (event) {
          event.preventDefault();
        }
  
        if (this._isTransitioning) {
          throw new Error('Modal is transitioning');
        }
  
        var transition = Util.supportsTransitionEnd() && $(this._element).hasClass(ClassName.FADE);
        if (transition) {
          this._isTransitioning = true;
        }
  
        var hideEvent = $.Event(Event.HIDE);
        $(this._element).trigger(hideEvent);
  
        if (!this._isShown || hideEvent.isDefaultPrevented()) {
          return;
        }
  
        this._isShown = false;
  
        this._setEscapeEvent();
        this._setResizeEvent();
  
        $(document).off(Event.FOCUSIN);
  
        $(this._element).removeClass(ClassName.SHOW);
  
        $(this._element).off(Event.CLICK_DISMISS);
        $(this._dialog).off(Event.MOUSEDOWN_DISMISS);
  
        if (transition) {
          $(this._element).one(Util.TRANSITION_END, function (event) {
            return _this2._hideModal(event);
          }).emulateTransitionEnd(TRANSITION_DURATION);
        } else {
          this._hideModal();
        }
      };
  
      Modal.prototype.dispose = function dispose() {
        $.removeData(this._element, DATA_KEY);
  
        $(window, document, this._element, this._backdrop).off(EVENT_KEY);
  
        this._config = null;
        this._element = null;
        this._dialog = null;
        this._backdrop = null;
        this._isShown = null;
        this._isBodyOverflowing = null;
        this._ignoreBackdropClick = null;
        this._originalBodyPadding = null;
        this._scrollbarWidth = null;
      };
  
      // private
  
      Modal.prototype._getConfig = function _getConfig(config) {
        config = $.extend({}, Default, config);
        Util.typeCheckConfig(NAME, config, DefaultType);
        return config;
      };
  
      Modal.prototype._showElement = function _showElement(relatedTarget) {
        var _this3 = this;
  
        var transition = Util.supportsTransitionEnd() && $(this._element).hasClass(ClassName.FADE);
  
        if (!this._element.parentNode || this._element.parentNode.nodeType !== Node.ELEMENT_NODE) {
          // don't move modals dom position
          document.body.appendChild(this._element);
        }
  
        this._element.style.display = 'block';
        this._element.removeAttribute('aria-hidden');
        this._element.scrollTop = 0;
  
        if (transition) {
          Util.reflow(this._element);
        }
  
        $(this._element).addClass(ClassName.SHOW);
  
        if (this._config.focus) {
          this._enforceFocus();
        }
  
        var shownEvent = $.Event(Event.SHOWN, {
          relatedTarget: relatedTarget
        });
  
        var transitionComplete = function transitionComplete() {
          if (_this3._config.focus) {
            _this3._element.focus();
          }
          _this3._isTransitioning = false;
          $(_this3._element).trigger(shownEvent);
        };
  
        if (transition) {
          $(this._dialog).one(Util.TRANSITION_END, transitionComplete).emulateTransitionEnd(TRANSITION_DURATION);
        } else {
          transitionComplete();
        }
      };
  
      Modal.prototype._enforceFocus = function _enforceFocus() {
        var _this4 = this;
  
        $(document).off(Event.FOCUSIN) // guard against infinite focus loop
        .on(Event.FOCUSIN, function (event) {
          if (document !== event.target && _this4._element !== event.target && !$(_this4._element).has(event.target).length) {
            _this4._element.focus();
          }
        });
      };
  
      Modal.prototype._setEscapeEvent = function _setEscapeEvent() {
        var _this5 = this;
  
        if (this._isShown && this._config.keyboard) {
          $(this._element).on(Event.KEYDOWN_DISMISS, function (event) {
            if (event.which === ESCAPE_KEYCODE) {
              _this5.hide();
            }
          });
        } else if (!this._isShown) {
          $(this._element).off(Event.KEYDOWN_DISMISS);
        }
      };
  
      Modal.prototype._setResizeEvent = function _setResizeEvent() {
        var _this6 = this;
  
        if (this._isShown) {
          $(window).on(Event.RESIZE, function (event) {
            return _this6._handleUpdate(event);
          });
        } else {
          $(window).off(Event.RESIZE);
        }
      };
  
      Modal.prototype._hideModal = function _hideModal() {
        var _this7 = this;
  
        this._element.style.display = 'none';
        this._element.setAttribute('aria-hidden', 'true');
        this._isTransitioning = false;
        this._showBackdrop(function () {
          $(document.body).removeClass(ClassName.OPEN);
          _this7._resetAdjustments();
          _this7._resetScrollbar();
          $(_this7._element).trigger(Event.HIDDEN);
        });
      };
  
      Modal.prototype._removeBackdrop = function _removeBackdrop() {
        if (this._backdrop) {
          $(this._backdrop).remove();
          this._backdrop = null;
        }
      };
  
      Modal.prototype._showBackdrop = function _showBackdrop(callback) {
        var _this8 = this;
  
        var animate = $(this._element).hasClass(ClassName.FADE) ? ClassName.FADE : '';
  
        if (this._isShown && this._config.backdrop) {
          var doAnimate = Util.supportsTransitionEnd() && animate;
  
          this._backdrop = document.createElement('div');
          this._backdrop.className = ClassName.BACKDROP;
  
          if (animate) {
            $(this._backdrop).addClass(animate);
          }
  
          $(this._backdrop).appendTo(document.body);
  
          $(this._element).on(Event.CLICK_DISMISS, function (event) {
            if (_this8._ignoreBackdropClick) {
              _this8._ignoreBackdropClick = false;
              return;
            }
            if (event.target !== event.currentTarget) {
              return;
            }
            if (_this8._config.backdrop === 'static') {
              _this8._element.focus();
            } else {
              _this8.hide();
            }
          });
  
          if (doAnimate) {
            Util.reflow(this._backdrop);
          }
  
          $(this._backdrop).addClass(ClassName.SHOW);
  
          if (!callback) {
            return;
          }
  
          if (!doAnimate) {
            callback();
            return;
          }
  
          $(this._backdrop).one(Util.TRANSITION_END, callback).emulateTransitionEnd(BACKDROP_TRANSITION_DURATION);
        } else if (!this._isShown && this._backdrop) {
          $(this._backdrop).removeClass(ClassName.SHOW);
  
          var callbackRemove = function callbackRemove() {
            _this8._removeBackdrop();
            if (callback) {
              callback();
            }
          };
  
          if (Util.supportsTransitionEnd() && $(this._element).hasClass(ClassName.FADE)) {
            $(this._backdrop).one(Util.TRANSITION_END, callbackRemove).emulateTransitionEnd(BACKDROP_TRANSITION_DURATION);
          } else {
            callbackRemove();
          }
        } else if (callback) {
          callback();
        }
      };
  
      // ----------------------------------------------------------------------
      // the following methods are used to handle overflowing modals
      // todo (fat): these should probably be refactored out of modal.js
      // ----------------------------------------------------------------------
  
      Modal.prototype._handleUpdate = function _handleUpdate() {
        this._adjustDialog();
      };
  
      Modal.prototype._adjustDialog = function _adjustDialog() {
        var isModalOverflowing = this._element.scrollHeight > document.documentElement.clientHeight;
  
        if (!this._isBodyOverflowing && isModalOverflowing) {
          this._element.style.paddingLeft = this._scrollbarWidth + 'px';
        }
  
        if (this._isBodyOverflowing && !isModalOverflowing) {
          this._element.style.paddingRight = this._scrollbarWidth + 'px';
        }
      };
  
      Modal.prototype._resetAdjustments = function _resetAdjustments() {
        this._element.style.paddingLeft = '';
        this._element.style.paddingRight = '';
      };
  
      Modal.prototype._checkScrollbar = function _checkScrollbar() {
        this._isBodyOverflowing = document.body.clientWidth < window.innerWidth;
        this._scrollbarWidth = this._getScrollbarWidth();
      };
  
      Modal.prototype._setScrollbar = function _setScrollbar() {
        var bodyPadding = parseInt($(Selector.FIXED_CONTENT).css('padding-right') || 0, 10);
  
        this._originalBodyPadding = document.body.style.paddingRight || '';
  
        if (this._isBodyOverflowing) {
          document.body.style.paddingRight = bodyPadding + this._scrollbarWidth + 'px';
        }
      };
  
      Modal.prototype._resetScrollbar = function _resetScrollbar() {
        document.body.style.paddingRight = this._originalBodyPadding;
      };
  
      Modal.prototype._getScrollbarWidth = function _getScrollbarWidth() {
        // thx d.walsh
        var scrollDiv = document.createElement('div');
        scrollDiv.className = ClassName.SCROLLBAR_MEASURER;
        document.body.appendChild(scrollDiv);
        var scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth;
        document.body.removeChild(scrollDiv);
        return scrollbarWidth;
      };
  
      // static
  
      Modal._jQueryInterface = function _jQueryInterface(config, relatedTarget) {
        return this.each(function () {
          var data = $(this).data(DATA_KEY);
          var _config = $.extend({}, Modal.Default, $(this).data(), (typeof config === 'undefined' ? 'undefined' : _typeof(config)) === 'object' && config);
  
          if (!data) {
            data = new Modal(this, _config);
            $(this).data(DATA_KEY, data);
          }
  
          if (typeof config === 'string') {
            if (data[config] === undefined) {
              throw new Error('No method named "' + config + '"');
            }
            data[config](relatedTarget);
          } else if (_config.show) {
            data.show(relatedTarget);
          }
        });
      };
  
      _createClass(Modal, null, [{
        key: 'VERSION',
        get: function get() {
          return VERSION;
        }
      }, {
        key: 'Default',
        get: function get() {
          return Default;
        }
      }]);
  
      return Modal;
    }();
  
    /**
     * ------------------------------------------------------------------------
     * Data Api implementation
     * ------------------------------------------------------------------------
     */
  
    $(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) {
      var _this9 = this;
  
      var target = void 0;
      var selector = Util.getSelectorFromElement(this);
  
      if (selector) {
        target = $(selector)[0];
      }
  
      var config = $(target).data(DATA_KEY) ? 'toggle' : $.extend({}, $(target).data(), $(this).data());
  
      if (this.tagName === 'A' || this.tagName === 'AREA') {
        event.preventDefault();
      }
  
      var $target = $(target).one(Event.SHOW, function (showEvent) {
        if (showEvent.isDefaultPrevented()) {
          // only register focus restorer if modal will actually get shown
          return;
        }
  
        $target.one(Event.HIDDEN, function () {
          if ($(_this9).is(':visible')) {
            _this9.focus();
          }
        });
      });
  
      Modal._jQueryInterface.call($(target), config, this);
    });
  
    /**
     * ------------------------------------------------------------------------
     * jQuery
     * ------------------------------------------------------------------------
     */
  
    $.fn[NAME] = Modal._jQueryInterface;
    $.fn[NAME].Constructor = Modal;
    $.fn[NAME].noConflict = function () {
      $.fn[NAME] = JQUERY_NO_CONFLICT;
      return Modal._jQueryInterface;
    };
  
    return Modal;
  }(jQuery);
  //# sourceMappingURL=modal.js.map
  var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  
  /**
   * --------------------------------------------------------------------------
   * Bootstrap (v4.0.0-alpha.6): dropdown.js
   * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
   * --------------------------------------------------------------------------
   */
  
  var Dropdown = function ($) {
  
    /**
     * ------------------------------------------------------------------------
     * Constants
     * ------------------------------------------------------------------------
     */
  
    var NAME = 'dropdown';
    var VERSION = '4.0.0-alpha.6';
    var DATA_KEY = 'bs.dropdown';
    var EVENT_KEY = '.' + DATA_KEY;
    var DATA_API_KEY = '.data-api';
    var JQUERY_NO_CONFLICT = $.fn[NAME];
    var ESCAPE_KEYCODE = 27; // KeyboardEvent.which value for Escape (Esc) key
    var ARROW_UP_KEYCODE = 38; // KeyboardEvent.which value for up arrow key
    var ARROW_DOWN_KEYCODE = 40; // KeyboardEvent.which value for down arrow key
    var RIGHT_MOUSE_BUTTON_WHICH = 3; // MouseEvent.which value for the right button (assuming a right-handed mouse)
  
    var Event = {
      HIDE: 'hide' + EVENT_KEY,
      HIDDEN: 'hidden' + EVENT_KEY,
      SHOW: 'show' + EVENT_KEY,
      SHOWN: 'shown' + EVENT_KEY,
      CLICK: 'click' + EVENT_KEY,
      CLICK_DATA_API: 'click' + EVENT_KEY + DATA_API_KEY,
      FOCUSIN_DATA_API: 'focusin' + EVENT_KEY + DATA_API_KEY,
      KEYDOWN_DATA_API: 'keydown' + EVENT_KEY + DATA_API_KEY
    };
  
    var ClassName = {
      BACKDROP: 'dropdown-backdrop',
      DISABLED: 'disabled',
      SHOW: 'show'
    };
  
    var Selector = {
      BACKDROP: '.dropdown-backdrop',
      DATA_TOGGLE: '[data-toggle="dropdown"]',
      FORM_CHILD: '.dropdown form',
      ROLE_MENU: '[role="menu"]',
      ROLE_LISTBOX: '[role="listbox"]',
      NAVBAR_NAV: '.navbar-nav',
      VISIBLE_ITEMS: '[role="menu"] li:not(.disabled) a, ' + '[role="listbox"] li:not(.disabled) a'
    };
  
    /**
     * ------------------------------------------------------------------------
     * Class Definition
     * ------------------------------------------------------------------------
     */
  
    var Dropdown = function () {
      function Dropdown(element) {
        _classCallCheck(this, Dropdown);
  
        this._element = element;
  
        this._addEventListeners();
      }
  
      // getters
  
      // public
  
      Dropdown.prototype.toggle = function toggle() {
        if (this.disabled || $(this).hasClass(ClassName.DISABLED)) {
          return false;
        }
  
        var parent = Dropdown._getParentFromElement(this);
        var isActive = $(parent).hasClass(ClassName.SHOW);
  
        Dropdown._clearMenus();
  
        if (isActive) {
          return false;
        }
  
        if ('ontouchstart' in document.documentElement && !$(parent).closest(Selector.NAVBAR_NAV).length) {
  
          // if mobile we use a backdrop because click events don't delegate
          var dropdown = document.createElement('div');
          dropdown.className = ClassName.BACKDROP;
          $(dropdown).insertBefore(this);
          $(dropdown).on('click', Dropdown._clearMenus);
        }
  
        var relatedTarget = {
          relatedTarget: this
        };
        var showEvent = $.Event(Event.SHOW, relatedTarget);
  
        $(parent).trigger(showEvent);
  
        if (showEvent.isDefaultPrevented()) {
          return false;
        }
  
        this.focus();
        this.setAttribute('aria-expanded', true);
  
        $(parent).toggleClass(ClassName.SHOW);
        $(parent).trigger($.Event(Event.SHOWN, relatedTarget));
  
        return false;
      };
  
      Dropdown.prototype.dispose = function dispose() {
        $.removeData(this._element, DATA_KEY);
        $(this._element).off(EVENT_KEY);
        this._element = null;
      };
  
      // private
  
      Dropdown.prototype._addEventListeners = function _addEventListeners() {
        $(this._element).on(Event.CLICK, this.toggle);
      };
  
      // static
  
      Dropdown._jQueryInterface = function _jQueryInterface(config) {
        return this.each(function () {
          var data = $(this).data(DATA_KEY);
  
          if (!data) {
            data = new Dropdown(this);
            $(this).data(DATA_KEY, data);
          }
  
          if (typeof config === 'string') {
            if (data[config] === undefined) {
              throw new Error('No method named "' + config + '"');
            }
            data[config].call(this);
          }
        });
      };
  
      Dropdown._clearMenus = function _clearMenus(event) {
        if (event && event.which === RIGHT_MOUSE_BUTTON_WHICH) {
          return;
        }
  
        var backdrop = $(Selector.BACKDROP)[0];
        if (backdrop) {
          backdrop.parentNode.removeChild(backdrop);
        }
  
        var toggles = $.makeArray($(Selector.DATA_TOGGLE));
  
        for (var i = 0; i < toggles.length; i++) {
          var parent = Dropdown._getParentFromElement(toggles[i]);
          var relatedTarget = {
            relatedTarget: toggles[i]
          };
  
          if (!$(parent).hasClass(ClassName.SHOW)) {
            continue;
          }
  
          if (event && (event.type === 'click' && /input|textarea/i.test(event.target.tagName) || event.type === 'focusin') && $.contains(parent, event.target)) {
            continue;
          }
  
          var hideEvent = $.Event(Event.HIDE, relatedTarget);
          $(parent).trigger(hideEvent);
          if (hideEvent.isDefaultPrevented()) {
            continue;
          }
  
          toggles[i].setAttribute('aria-expanded', 'false');
  
          $(parent).removeClass(ClassName.SHOW).trigger($.Event(Event.HIDDEN, relatedTarget));
        }
      };
  
      Dropdown._getParentFromElement = function _getParentFromElement(element) {
        var parent = void 0;
        var selector = Util.getSelectorFromElement(element);
  
        if (selector) {
          parent = $(selector)[0];
        }
  
        return parent || element.parentNode;
      };
  
      Dropdown._dataApiKeydownHandler = function _dataApiKeydownHandler(event) {
        if (!/(38|40|27|32)/.test(event.which) || /input|textarea/i.test(event.target.tagName)) {
          return;
        }
  
        event.preventDefault();
        event.stopPropagation();
  
        if (this.disabled || $(this).hasClass(ClassName.DISABLED)) {
          return;
        }
  
        var parent = Dropdown._getParentFromElement(this);
        var isActive = $(parent).hasClass(ClassName.SHOW);
  
        if (!isActive && event.which !== ESCAPE_KEYCODE || isActive && event.which === ESCAPE_KEYCODE) {
  
          if (event.which === ESCAPE_KEYCODE) {
            var toggle = $(parent).find(Selector.DATA_TOGGLE)[0];
            $(toggle).trigger('focus');
          }
  
          $(this).trigger('click');
          return;
        }
  
        var items = $(parent).find(Selector.VISIBLE_ITEMS).get();
  
        if (!items.length) {
          return;
        }
  
        var index = items.indexOf(event.target);
  
        if (event.which === ARROW_UP_KEYCODE && index > 0) {
          // up
          index--;
        }
  
        if (event.which === ARROW_DOWN_KEYCODE && index < items.length - 1) {
          // down
          index++;
        }
  
        if (index < 0) {
          index = 0;
        }
  
        items[index].focus();
      };
  
      _createClass(Dropdown, null, [{
        key: 'VERSION',
        get: function get() {
          return VERSION;
        }
      }]);
  
      return Dropdown;
    }();
  
    /**
     * ------------------------------------------------------------------------
     * Data Api implementation
     * ------------------------------------------------------------------------
     */
  
    $(document).on(Event.KEYDOWN_DATA_API, Selector.DATA_TOGGLE, Dropdown._dataApiKeydownHandler).on(Event.KEYDOWN_DATA_API, Selector.ROLE_MENU, Dropdown._dataApiKeydownHandler).on(Event.KEYDOWN_DATA_API, Selector.ROLE_LISTBOX, Dropdown._dataApiKeydownHandler).on(Event.CLICK_DATA_API + ' ' + Event.FOCUSIN_DATA_API, Dropdown._clearMenus).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, Dropdown.prototype.toggle).on(Event.CLICK_DATA_API, Selector.FORM_CHILD, function (e) {
      e.stopPropagation();
    });
  
    /**
     * ------------------------------------------------------------------------
     * jQuery
     * ------------------------------------------------------------------------
     */
  
    $.fn[NAME] = Dropdown._jQueryInterface;
    $.fn[NAME].Constructor = Dropdown;
    $.fn[NAME].noConflict = function () {
      $.fn[NAME] = JQUERY_NO_CONFLICT;
      return Dropdown._jQueryInterface;
    };
  
    return Dropdown;
  }(jQuery);
  //# sourceMappingURL=dropdown.js.map
  var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
  
  var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  
  /**
   * --------------------------------------------------------------------------
   * Bootstrap (v4.0.0-alpha.6): collapse.js
   * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
   * --------------------------------------------------------------------------
   */
  
  var Collapse = function ($) {
  
    /**
     * ------------------------------------------------------------------------
     * Constants
     * ------------------------------------------------------------------------
     */
  
    var NAME = 'collapse';
    var VERSION = '4.0.0-alpha.6';
    var DATA_KEY = 'bs.collapse';
    var EVENT_KEY = '.' + DATA_KEY;
    var DATA_API_KEY = '.data-api';
    var JQUERY_NO_CONFLICT = $.fn[NAME];
    var TRANSITION_DURATION = 600;
  
    var Default = {
      toggle: true,
      parent: ''
    };
  
    var DefaultType = {
      toggle: 'boolean',
      parent: 'string'
    };
  
    var Event = {
      SHOW: 'show' + EVENT_KEY,
      SHOWN: 'shown' + EVENT_KEY,
      HIDE: 'hide' + EVENT_KEY,
      HIDDEN: 'hidden' + EVENT_KEY,
      CLICK_DATA_API: 'click' + EVENT_KEY + DATA_API_KEY
    };
  
    var ClassName = {
      SHOW: 'show',
      COLLAPSE: 'collapse',
      COLLAPSING: 'collapsing',
      COLLAPSED: 'collapsed'
    };
  
    var Dimension = {
      WIDTH: 'width',
      HEIGHT: 'height'
    };
  
    var Selector = {
      ACTIVES: '.card > .show, .card > .collapsing',
      DATA_TOGGLE: '[data-toggle="collapse"]'
    };
  
    /**
     * ------------------------------------------------------------------------
     * Class Definition
     * ------------------------------------------------------------------------
     */
  
    var Collapse = function () {
      function Collapse(element, config) {
        _classCallCheck(this, Collapse);
  
        this._isTransitioning = false;
        this._element = element;
        this._config = this._getConfig(config);
        this._triggerArray = $.makeArray($('[data-toggle="collapse"][href="#' + element.id + '"],' + ('[data-toggle="collapse"][data-target="#' + element.id + '"]')));
  
        this._parent = this._config.parent ? this._getParent() : null;
  
        if (!this._config.parent) {
          this._addAriaAndCollapsedClass(this._element, this._triggerArray);
        }
  
        if (this._config.toggle) {
          this.toggle();
        }
      }
  
      // getters
  
      // public
  
      Collapse.prototype.toggle = function toggle() {
        if ($(this._element).hasClass(ClassName.SHOW)) {
          this.hide();
        } else {
          this.show();
        }
      };
  
      Collapse.prototype.show = function show() {
        var _this = this;
  
        if (this._isTransitioning) {
          throw new Error('Collapse is transitioning');
        }
  
        if ($(this._element).hasClass(ClassName.SHOW)) {
          return;
        }
  
        var actives = void 0;
        var activesData = void 0;
  
        if (this._parent) {
          actives = $.makeArray($(this._parent).find(Selector.ACTIVES));
          if (!actives.length) {
            actives = null;
          }
        }
  
        if (actives) {
          activesData = $(actives).data(DATA_KEY);
          if (activesData && activesData._isTransitioning) {
            return;
          }
        }
  
        var startEvent = $.Event(Event.SHOW);
        $(this._element).trigger(startEvent);
        if (startEvent.isDefaultPrevented()) {
          return;
        }
  
        if (actives) {
          Collapse._jQueryInterface.call($(actives), 'hide');
          if (!activesData) {
            $(actives).data(DATA_KEY, null);
          }
        }
  
        var dimension = this._getDimension();
  
        $(this._element).removeClass(ClassName.COLLAPSE).addClass(ClassName.COLLAPSING);
  
        this._element.style[dimension] = 0;
        this._element.setAttribute('aria-expanded', true);
  
        if (this._triggerArray.length) {
          $(this._triggerArray).removeClass(ClassName.COLLAPSED).attr('aria-expanded', true);
        }
  
        this.setTransitioning(true);
  
        var complete = function complete() {
          $(_this._element).removeClass(ClassName.COLLAPSING).addClass(ClassName.COLLAPSE).addClass(ClassName.SHOW);
  
          _this._element.style[dimension] = '';
  
          _this.setTransitioning(false);
  
          $(_this._element).trigger(Event.SHOWN);
        };
  
        if (!Util.supportsTransitionEnd()) {
          complete();
          return;
        }
  
        var capitalizedDimension = dimension[0].toUpperCase() + dimension.slice(1);
        var scrollSize = 'scroll' + capitalizedDimension;
  
        $(this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(TRANSITION_DURATION);
  
        this._element.style[dimension] = this._element[scrollSize] + 'px';
      };
  
      Collapse.prototype.hide = function hide() {
        var _this2 = this;
  
        if (this._isTransitioning) {
          throw new Error('Collapse is transitioning');
        }
  
        if (!$(this._element).hasClass(ClassName.SHOW)) {
          return;
        }
  
        var startEvent = $.Event(Event.HIDE);
        $(this._element).trigger(startEvent);
        if (startEvent.isDefaultPrevented()) {
          return;
        }
  
        var dimension = this._getDimension();
        var offsetDimension = dimension === Dimension.WIDTH ? 'offsetWidth' : 'offsetHeight';
  
        this._element.style[dimension] = this._element[offsetDimension] + 'px';
  
        Util.reflow(this._element);
  
        $(this._element).addClass(ClassName.COLLAPSING).removeClass(ClassName.COLLAPSE).removeClass(ClassName.SHOW);
  
        this._element.setAttribute('aria-expanded', false);
  
        if (this._triggerArray.length) {
          $(this._triggerArray).addClass(ClassName.COLLAPSED).attr('aria-expanded', false);
        }
  
        this.setTransitioning(true);
  
        var complete = function complete() {
          _this2.setTransitioning(false);
          $(_this2._element).removeClass(ClassName.COLLAPSING).addClass(ClassName.COLLAPSE).trigger(Event.HIDDEN);
        };
  
        this._element.style[dimension] = '';
  
        if (!Util.supportsTransitionEnd()) {
          complete();
          return;
        }
  
        $(this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(TRANSITION_DURATION);
      };
  
      Collapse.prototype.setTransitioning = function setTransitioning(isTransitioning) {
        this._isTransitioning = isTransitioning;
      };
  
      Collapse.prototype.dispose = function dispose() {
        $.removeData(this._element, DATA_KEY);
  
        this._config = null;
        this._parent = null;
        this._element = null;
        this._triggerArray = null;
        this._isTransitioning = null;
      };
  
      // private
  
      Collapse.prototype._getConfig = function _getConfig(config) {
        config = $.extend({}, Default, config);
        config.toggle = Boolean(config.toggle); // coerce string values
        Util.typeCheckConfig(NAME, config, DefaultType);
        return config;
      };
  
      Collapse.prototype._getDimension = function _getDimension() {
        var hasWidth = $(this._element).hasClass(Dimension.WIDTH);
        return hasWidth ? Dimension.WIDTH : Dimension.HEIGHT;
      };
  
      Collapse.prototype._getParent = function _getParent() {
        var _this3 = this;
  
        var parent = $(this._config.parent)[0];
        var selector = '[data-toggle="collapse"][data-parent="' + this._config.parent + '"]';
  
        $(parent).find(selector).each(function (i, element) {
          _this3._addAriaAndCollapsedClass(Collapse._getTargetFromElement(element), [element]);
        });
  
        return parent;
      };
  
      Collapse.prototype._addAriaAndCollapsedClass = function _addAriaAndCollapsedClass(element, triggerArray) {
        if (element) {
          var isOpen = $(element).hasClass(ClassName.SHOW);
          element.setAttribute('aria-expanded', isOpen);
  
          if (triggerArray.length) {
            $(triggerArray).toggleClass(ClassName.COLLAPSED, !isOpen).attr('aria-expanded', isOpen);
          }
        }
      };
  
      // static
  
      Collapse._getTargetFromElement = function _getTargetFromElement(element) {
        var selector = Util.getSelectorFromElement(element);
        return selector ? $(selector)[0] : null;
      };
  
      Collapse._jQueryInterface = function _jQueryInterface(config) {
        return this.each(function () {
          var $this = $(this);
          var data = $this.data(DATA_KEY);
          var _config = $.extend({}, Default, $this.data(), (typeof config === 'undefined' ? 'undefined' : _typeof(config)) === 'object' && config);
  
          if (!data && _config.toggle && /show|hide/.test(config)) {
            _config.toggle = false;
          }
  
          if (!data) {
            data = new Collapse(this, _config);
            $this.data(DATA_KEY, data);
          }
  
          if (typeof config === 'string') {
            if (data[config] === undefined) {
              throw new Error('No method named "' + config + '"');
            }
            data[config]();
          }
        });
      };
  
      _createClass(Collapse, null, [{
        key: 'VERSION',
        get: function get() {
          return VERSION;
        }
      }, {
        key: 'Default',
        get: function get() {
          return Default;
        }
      }]);
  
      return Collapse;
    }();
  
    /**
     * ------------------------------------------------------------------------
     * Data Api implementation
     * ------------------------------------------------------------------------
     */
  
    $(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) {
      event.preventDefault();
  
      var target = Collapse._getTargetFromElement(this);
      var data = $(target).data(DATA_KEY);
      var config = data ? 'toggle' : $(this).data();
  
      Collapse._jQueryInterface.call($(target), config);
    });
  
    /**
     * ------------------------------------------------------------------------
     * jQuery
     * ------------------------------------------------------------------------
     */
  
    $.fn[NAME] = Collapse._jQueryInterface;
    $.fn[NAME].Constructor = Collapse;
    $.fn[NAME].noConflict = function () {
      $.fn[NAME] = JQUERY_NO_CONFLICT;
      return Collapse._jQueryInterface;
    };
  
    return Collapse;
  }(jQuery);
  //# sourceMappingURL=collapse.js.map
  var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
  
  var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  
  /**
   * --------------------------------------------------------------------------
   * Bootstrap (v4.0.0-alpha.6): carousel.js
   * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
   * --------------------------------------------------------------------------
   */
  
  var Carousel = function ($) {
  
    /**
     * ------------------------------------------------------------------------
     * Constants
     * ------------------------------------------------------------------------
     */
  
    var NAME = 'carousel';
    var VERSION = '4.0.0-alpha.6';
    var DATA_KEY = 'bs.carousel';
    var EVENT_KEY = '.' + DATA_KEY;
    var DATA_API_KEY = '.data-api';
    var JQUERY_NO_CONFLICT = $.fn[NAME];
    var TRANSITION_DURATION = 600;
    var ARROW_LEFT_KEYCODE = 37; // KeyboardEvent.which value for left arrow key
    var ARROW_RIGHT_KEYCODE = 39; // KeyboardEvent.which value for right arrow key
  
    var Default = {
      interval: 5000,
      keyboard: true,
      slide: false,
      pause: 'hover',
      wrap: true
    };
  
    var DefaultType = {
      interval: '(number|boolean)',
      keyboard: 'boolean',
      slide: '(boolean|string)',
      pause: '(string|boolean)',
      wrap: 'boolean'
    };
  
    var Direction = {
      NEXT: 'next',
      PREV: 'prev',
      LEFT: 'left',
      RIGHT: 'right'
    };
  
    var Event = {
      SLIDE: 'slide' + EVENT_KEY,
      SLID: 'slid' + EVENT_KEY,
      KEYDOWN: 'keydown' + EVENT_KEY,
      MOUSEENTER: 'mouseenter' + EVENT_KEY,
      MOUSELEAVE: 'mouseleave' + EVENT_KEY,
      LOAD_DATA_API: 'load' + EVENT_KEY + DATA_API_KEY,
      CLICK_DATA_API: 'click' + EVENT_KEY + DATA_API_KEY
    };
  
    var ClassName = {
      CAROUSEL: 'carousel',
      ACTIVE: 'active',
      SLIDE: 'slide',
      RIGHT: 'carousel-item-right',
      LEFT: 'carousel-item-left',
      NEXT: 'carousel-item-next',
      PREV: 'carousel-item-prev',
      ITEM: 'carousel-item'
    };
  
    var Selector = {
      ACTIVE: '.active',
      ACTIVE_ITEM: '.active.carousel-item',
      ITEM: '.carousel-item',
      NEXT_PREV: '.carousel-item-next, .carousel-item-prev',
      INDICATORS: '.carousel-indicators',
      DATA_SLIDE: '[data-slide], [data-slide-to]',
      DATA_RIDE: '[data-ride="carousel"]'
    };
  
    /**
     * ------------------------------------------------------------------------
     * Class Definition
     * ------------------------------------------------------------------------
     */
  
    var Carousel = function () {
      function Carousel(element, config) {
        _classCallCheck(this, Carousel);
  
        this._items = null;
        this._interval = null;
        this._activeElement = null;
  
        this._isPaused = false;
        this._isSliding = false;
  
        this._config = this._getConfig(config);
        this._element = $(element)[0];
        this._indicatorsElement = $(this._element).find(Selector.INDICATORS)[0];
  
        this._addEventListeners();
      }
  
      // getters
  
      // public
  
      Carousel.prototype.next = function next() {
        if (this._isSliding) {
          throw new Error('Carousel is sliding');
        }
        this._slide(Direction.NEXT);
      };
  
      Carousel.prototype.nextWhenVisible = function nextWhenVisible() {
        // Don't call next when the page isn't visible
        if (!document.hidden) {
          this.next();
        }
      };
  
      Carousel.prototype.prev = function prev() {
        if (this._isSliding) {
          throw new Error('Carousel is sliding');
        }
        this._slide(Direction.PREVIOUS);
      };
  
      Carousel.prototype.pause = function pause(event) {
        if (!event) {
          this._isPaused = true;
        }
  
        if ($(this._element).find(Selector.NEXT_PREV)[0] && Util.supportsTransitionEnd()) {
          Util.triggerTransitionEnd(this._element);
          this.cycle(true);
        }
  
        clearInterval(this._interval);
        this._interval = null;
      };
  
      Carousel.prototype.cycle = function cycle(event) {
        if (!event) {
          this._isPaused = false;
        }
  
        if (this._interval) {
          clearInterval(this._interval);
          this._interval = null;
        }
  
        if (this._config.interval && !this._isPaused) {
          this._interval = setInterval((document.visibilityState ? this.nextWhenVisible : this.next).bind(this), this._config.interval);
        }
      };
  
      Carousel.prototype.to = function to(index) {
        var _this = this;
  
        this._activeElement = $(this._element).find(Selector.ACTIVE_ITEM)[0];
  
        var activeIndex = this._getItemIndex(this._activeElement);
  
        if (index > this._items.length - 1 || index < 0) {
          return;
        }
  
        if (this._isSliding) {
          $(this._element).one(Event.SLID, function () {
            return _this.to(index);
          });
          return;
        }
  
        if (activeIndex === index) {
          this.pause();
          this.cycle();
          return;
        }
  
        var direction = index > activeIndex ? Direction.NEXT : Direction.PREVIOUS;
  
        this._slide(direction, this._items[index]);
      };
  
      Carousel.prototype.dispose = function dispose() {
        $(this._element).off(EVENT_KEY);
        $.removeData(this._element, DATA_KEY);
  
        this._items = null;
        this._config = null;
        this._element = null;
        this._interval = null;
        this._isPaused = null;
        this._isSliding = null;
        this._activeElement = null;
        this._indicatorsElement = null;
      };
  
      // private
  
      Carousel.prototype._getConfig = function _getConfig(config) {
        config = $.extend({}, Default, config);
        Util.typeCheckConfig(NAME, config, DefaultType);
        return config;
      };
  
      Carousel.prototype._addEventListeners = function _addEventListeners() {
        var _this2 = this;
  
        if (this._config.keyboard) {
          $(this._element).on(Event.KEYDOWN, function (event) {
            return _this2._keydown(event);
          });
        }
  
        if (this._config.pause === 'hover' && !('ontouchstart' in document.documentElement)) {
          $(this._element).on(Event.MOUSEENTER, function (event) {
            return _this2.pause(event);
          }).on(Event.MOUSELEAVE, function (event) {
            return _this2.cycle(event);
          });
        }
      };
  
      Carousel.prototype._keydown = function _keydown(event) {
        if (/input|textarea/i.test(event.target.tagName)) {
          return;
        }
  
        switch (event.which) {
          case ARROW_LEFT_KEYCODE:
            event.preventDefault();
            this.prev();
            break;
          case ARROW_RIGHT_KEYCODE:
            event.preventDefault();
            this.next();
            break;
          default:
            return;
        }
      };
  
      Carousel.prototype._getItemIndex = function _getItemIndex(element) {
        this._items = $.makeArray($(element).parent().find(Selector.ITEM));
        return this._items.indexOf(element);
      };
  
      Carousel.prototype._getItemByDirection = function _getItemByDirection(direction, activeElement) {
        var isNextDirection = direction === Direction.NEXT;
        var isPrevDirection = direction === Direction.PREVIOUS;
        var activeIndex = this._getItemIndex(activeElement);
        var lastItemIndex = this._items.length - 1;
        var isGoingToWrap = isPrevDirection && activeIndex === 0 || isNextDirection && activeIndex === lastItemIndex;
  
        if (isGoingToWrap && !this._config.wrap) {
          return activeElement;
        }
  
        var delta = direction === Direction.PREVIOUS ? -1 : 1;
        var itemIndex = (activeIndex + delta) % this._items.length;
  
        return itemIndex === -1 ? this._items[this._items.length - 1] : this._items[itemIndex];
      };
  
      Carousel.prototype._triggerSlideEvent = function _triggerSlideEvent(relatedTarget, eventDirectionName) {
        var slideEvent = $.Event(Event.SLIDE, {
          relatedTarget: relatedTarget,
          direction: eventDirectionName
        });
  
        $(this._element).trigger(slideEvent);
  
        return slideEvent;
      };
  
      Carousel.prototype._setActiveIndicatorElement = function _setActiveIndicatorElement(element) {
        if (this._indicatorsElement) {
          $(this._indicatorsElement).find(Selector.ACTIVE).removeClass(ClassName.ACTIVE);
  
          var nextIndicator = this._indicatorsElement.children[this._getItemIndex(element)];
  
          if (nextIndicator) {
            $(nextIndicator).addClass(ClassName.ACTIVE);
          }
        }
      };
  
      Carousel.prototype._slide = function _slide(direction, element) {
        var _this3 = this;
  
        var activeElement = $(this._element).find(Selector.ACTIVE_ITEM)[0];
        var nextElement = element || activeElement && this._getItemByDirection(direction, activeElement);
  
        var isCycling = Boolean(this._interval);
  
        var directionalClassName = void 0;
        var orderClassName = void 0;
        var eventDirectionName = void 0;
  
        if (direction === Direction.NEXT) {
          directionalClassName = ClassName.LEFT;
          orderClassName = ClassName.NEXT;
          eventDirectionName = Direction.LEFT;
        } else {
          directionalClassName = ClassName.RIGHT;
          orderClassName = ClassName.PREV;
          eventDirectionName = Direction.RIGHT;
        }
  
        if (nextElement && $(nextElement).hasClass(ClassName.ACTIVE)) {
          this._isSliding = false;
          return;
        }
  
        var slideEvent = this._triggerSlideEvent(nextElement, eventDirectionName);
        if (slideEvent.isDefaultPrevented()) {
          return;
        }
  
        if (!activeElement || !nextElement) {
          // some weirdness is happening, so we bail
          return;
        }
  
        this._isSliding = true;
  
        if (isCycling) {
          this.pause();
        }
  
        this._setActiveIndicatorElement(nextElement);
  
        var slidEvent = $.Event(Event.SLID, {
          relatedTarget: nextElement,
          direction: eventDirectionName
        });
  
        if (Util.supportsTransitionEnd() && $(this._element).hasClass(ClassName.SLIDE)) {
  
          $(nextElement).addClass(orderClassName);
  
          Util.reflow(nextElement);
  
          $(activeElement).addClass(directionalClassName);
          $(nextElement).addClass(directionalClassName);
  
          $(activeElement).one(Util.TRANSITION_END, function () {
            $(nextElement).removeClass(directionalClassName + ' ' + orderClassName).addClass(ClassName.ACTIVE);
  
            $(activeElement).removeClass(ClassName.ACTIVE + ' ' + orderClassName + ' ' + directionalClassName);
  
            _this3._isSliding = false;
  
            setTimeout(function () {
              return $(_this3._element).trigger(slidEvent);
            }, 0);
          }).emulateTransitionEnd(TRANSITION_DURATION);
        } else {
          $(activeElement).removeClass(ClassName.ACTIVE);
          $(nextElement).addClass(ClassName.ACTIVE);
  
          this._isSliding = false;
          $(this._element).trigger(slidEvent);
        }
  
        if (isCycling) {
          this.cycle();
        }
      };
  
      // static
  
      Carousel._jQueryInterface = function _jQueryInterface(config) {
        return this.each(function () {
          var data = $(this).data(DATA_KEY);
          var _config = $.extend({}, Default, $(this).data());
  
          if ((typeof config === 'undefined' ? 'undefined' : _typeof(config)) === 'object') {
            $.extend(_config, config);
          }
  
          var action = typeof config === 'string' ? config : _config.slide;
  
          if (!data) {
            data = new Carousel(this, _config);
            $(this).data(DATA_KEY, data);
          }
  
          if (typeof config === 'number') {
            data.to(config);
          } else if (typeof action === 'string') {
            if (data[action] === undefined) {
              throw new Error('No method named "' + action + '"');
            }
            data[action]();
          } else if (_config.interval) {
            data.pause();
            data.cycle();
          }
        });
      };
  
      Carousel._dataApiClickHandler = function _dataApiClickHandler(event) {
        var selector = Util.getSelectorFromElement(this);
  
        if (!selector) {
          return;
        }
  
        var target = $(selector)[0];
  
        if (!target || !$(target).hasClass(ClassName.CAROUSEL)) {
          return;
        }
  
        var config = $.extend({}, $(target).data(), $(this).data());
        var slideIndex = this.getAttribute('data-slide-to');
  
        if (slideIndex) {
          config.interval = false;
        }
  
        Carousel._jQueryInterface.call($(target), config);
  
        if (slideIndex) {
          $(target).data(DATA_KEY).to(slideIndex);
        }
  
        event.preventDefault();
      };
  
      _createClass(Carousel, null, [{
        key: 'VERSION',
        get: function get() {
          return VERSION;
        }
      }, {
        key: 'Default',
        get: function get() {
          return Default;
        }
      }]);
  
      return Carousel;
    }();
  
    /**
     * ------------------------------------------------------------------------
     * Data Api implementation
     * ------------------------------------------------------------------------
     */
  
    $(document).on(Event.CLICK_DATA_API, Selector.DATA_SLIDE, Carousel._dataApiClickHandler);
  
    $(window).on(Event.LOAD_DATA_API, function () {
      $(Selector.DATA_RIDE).each(function () {
        var $carousel = $(this);
        Carousel._jQueryInterface.call($carousel, $carousel.data());
      });
    });
  
    /**
     * ------------------------------------------------------------------------
     * jQuery
     * ------------------------------------------------------------------------
     */
  
    $.fn[NAME] = Carousel._jQueryInterface;
    $.fn[NAME].Constructor = Carousel;
    $.fn[NAME].noConflict = function () {
      $.fn[NAME] = JQUERY_NO_CONFLICT;
      return Carousel._jQueryInterface;
    };
  
    return Carousel;
  }(jQuery);
  //# sourceMappingURL=carousel.js.map
  var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  
  /**
   * --------------------------------------------------------------------------
   * Bootstrap (v4.0.0-alpha.6): button.js
   * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
   * --------------------------------------------------------------------------
   */
  
  var Button = function ($) {
  
    /**
     * ------------------------------------------------------------------------
     * Constants
     * ------------------------------------------------------------------------
     */
  
    var NAME = 'button';
    var VERSION = '4.0.0-alpha.6';
    var DATA_KEY = 'bs.button';
    var EVENT_KEY = '.' + DATA_KEY;
    var DATA_API_KEY = '.data-api';
    var JQUERY_NO_CONFLICT = $.fn[NAME];
  
    var ClassName = {
      ACTIVE: 'active',
      BUTTON: 'btn',
      FOCUS: 'focus'
    };
  
    var Selector = {
      DATA_TOGGLE_CARROT: '[data-toggle^="button"]',
      DATA_TOGGLE: '[data-toggle="buttons"]',
      INPUT: 'input',
      ACTIVE: '.active',
      BUTTON: '.btn'
    };
  
    var Event = {
      CLICK_DATA_API: 'click' + EVENT_KEY + DATA_API_KEY,
      FOCUS_BLUR_DATA_API: 'focus' + EVENT_KEY + DATA_API_KEY + ' ' + ('blur' + EVENT_KEY + DATA_API_KEY)
    };
  
    /**
     * ------------------------------------------------------------------------
     * Class Definition
     * ------------------------------------------------------------------------
     */
  
    var Button = function () {
      function Button(element) {
        _classCallCheck(this, Button);
  
        this._element = element;
      }
  
      // getters
  
      // public
  
      Button.prototype.toggle = function toggle() {
        var triggerChangeEvent = true;
        var rootElement = $(this._element).closest(Selector.DATA_TOGGLE)[0];
  
        if (rootElement) {
          var input = $(this._element).find(Selector.INPUT)[0];
  
          if (input) {
            if (input.type === 'radio') {
              if (input.checked && $(this._element).hasClass(ClassName.ACTIVE)) {
                triggerChangeEvent = false;
              } else {
                var activeElement = $(rootElement).find(Selector.ACTIVE)[0];
  
                if (activeElement) {
                  $(activeElement).removeClass(ClassName.ACTIVE);
                }
              }
            }
  
            if (triggerChangeEvent) {
              input.checked = !$(this._element).hasClass(ClassName.ACTIVE);
              $(input).trigger('change');
            }
  
            input.focus();
          }
        }
  
        this._element.setAttribute('aria-pressed', !$(this._element).hasClass(ClassName.ACTIVE));
  
        if (triggerChangeEvent) {
          $(this._element).toggleClass(ClassName.ACTIVE);
        }
      };
  
      Button.prototype.dispose = function dispose() {
        $.removeData(this._element, DATA_KEY);
        this._element = null;
      };
  
      // static
  
      Button._jQueryInterface = function _jQueryInterface(config) {
        return this.each(function () {
          var data = $(this).data(DATA_KEY);
  
          if (!data) {
            data = new Button(this);
            $(this).data(DATA_KEY, data);
          }
  
          if (config === 'toggle') {
            data[config]();
          }
        });
      };
  
      _createClass(Button, null, [{
        key: 'VERSION',
        get: function get() {
          return VERSION;
        }
      }]);
  
      return Button;
    }();
  
    /**
     * ------------------------------------------------------------------------
     * Data Api implementation
     * ------------------------------------------------------------------------
     */
  
    $(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE_CARROT, function (event) {
      event.preventDefault();
  
      var button = event.target;
  
      if (!$(button).hasClass(ClassName.BUTTON)) {
        button = $(button).closest(Selector.BUTTON);
      }
  
      Button._jQueryInterface.call($(button), 'toggle');
    }).on(Event.FOCUS_BLUR_DATA_API, Selector.DATA_TOGGLE_CARROT, function (event) {
      var button = $(event.target).closest(Selector.BUTTON)[0];
      $(button).toggleClass(ClassName.FOCUS, /^focus(in)?$/.test(event.type));
    });
  
    /**
     * ------------------------------------------------------------------------
     * jQuery
     * ------------------------------------------------------------------------
     */
  
    $.fn[NAME] = Button._jQueryInterface;
    $.fn[NAME].Constructor = Button;
    $.fn[NAME].noConflict = function () {
      $.fn[NAME] = JQUERY_NO_CONFLICT;
      return Button._jQueryInterface;
    };
  
    return Button;
  }(jQuery);
  //# sourceMappingURL=button.js.map
  /*!
   * QUnit 2.0.1
   * https://qunitjs.com/
   *
   * Copyright jQuery Foundation and other contributors
   * Released under the MIT license
   * https://jquery.org/license
   *
   * Date: 2016-07-23T19:39Z
   */
  
  ( function( global ) {
  
  var QUnit = {};
  
  var Date = global.Date;
  var now = Date.now || function() {
  	return new Date().getTime();
  };
  
  var setTimeout = global.setTimeout;
  var clearTimeout = global.clearTimeout;
  
  // Store a local window from the global to allow direct references.
  var window = global.window;
  
  var defined = {
  	document: window && window.document !== undefined,
  	setTimeout: setTimeout !== undefined,
  	sessionStorage: ( function() {
  		var x = "qunit-test-string";
  		try {
  			sessionStorage.setItem( x, x );
  			sessionStorage.removeItem( x );
  			return true;
  		} catch ( e ) {
  			return false;
  		}
  	}() )
  };
  
  var fileName = ( sourceFromStacktrace( 0 ) || "" ).replace( /(:\d+)+\)?/, "" ).replace( /.+\//, "" );
  var globalStartCalled = false;
  var runStarted = false;
  
  var autorun = false;
  
  var toString = Object.prototype.toString,
  	hasOwn = Object.prototype.hasOwnProperty;
  
  // Returns a new Array with the elements that are in a but not in b
  function diff( a, b ) {
  	var i, j,
  		result = a.slice();
  
  	for ( i = 0; i < result.length; i++ ) {
  		for ( j = 0; j < b.length; j++ ) {
  			if ( result[ i ] === b[ j ] ) {
  				result.splice( i, 1 );
  				i--;
  				break;
  			}
  		}
  	}
  	return result;
  }
  
  // From jquery.js
  function inArray( elem, array ) {
  	if ( array.indexOf ) {
  		return array.indexOf( elem );
  	}
  
  	for ( var i = 0, length = array.length; i < length; i++ ) {
  		if ( array[ i ] === elem ) {
  			return i;
  		}
  	}
  
  	return -1;
  }
  
  /**
   * Makes a clone of an object using only Array or Object as base,
   * and copies over the own enumerable properties.
   *
   * @param {Object} obj
   * @return {Object} New object with only the own properties (recursively).
   */
  function objectValues ( obj ) {
  	var key, val,
  		vals = QUnit.is( "array", obj ) ? [] : {};
  	for ( key in obj ) {
  		if ( hasOwn.call( obj, key ) ) {
  			val = obj[ key ];
  			vals[ key ] = val === Object( val ) ? objectValues( val ) : val;
  		}
  	}
  	return vals;
  }
  
  function extend( a, b, undefOnly ) {
  	for ( var prop in b ) {
  		if ( hasOwn.call( b, prop ) ) {
  			if ( b[ prop ] === undefined ) {
  				delete a[ prop ];
  			} else if ( !( undefOnly && typeof a[ prop ] !== "undefined" ) ) {
  				a[ prop ] = b[ prop ];
  			}
  		}
  	}
  
  	return a;
  }
  
  function objectType( obj ) {
  	if ( typeof obj === "undefined" ) {
  		return "undefined";
  	}
  
  	// Consider: typeof null === object
  	if ( obj === null ) {
  		return "null";
  	}
  
  	var match = toString.call( obj ).match( /^\[object\s(.*)\]$/ ),
  		type = match && match[ 1 ];
  
  	switch ( type ) {
  		case "Number":
  			if ( isNaN( obj ) ) {
  				return "nan";
  			}
  			return "number";
  		case "String":
  		case "Boolean":
  		case "Array":
  		case "Set":
  		case "Map":
  		case "Date":
  		case "RegExp":
  		case "Function":
  		case "Symbol":
  			return type.toLowerCase();
  	}
  	if ( typeof obj === "object" ) {
  		return "object";
  	}
  }
  
  // Safe object type checking
  function is( type, obj ) {
  	return QUnit.objectType( obj ) === type;
  }
  
  // Doesn't support IE9, it will return undefined on these browsers
  // See also https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/Stack
  function extractStacktrace( e, offset ) {
  	offset = offset === undefined ? 4 : offset;
  
  	var stack, include, i;
  
  	if ( e.stack ) {
  		stack = e.stack.split( "\n" );
  		if ( /^error$/i.test( stack[ 0 ] ) ) {
  			stack.shift();
  		}
  		if ( fileName ) {
  			include = [];
  			for ( i = offset; i < stack.length; i++ ) {
  				if ( stack[ i ].indexOf( fileName ) !== -1 ) {
  					break;
  				}
  				include.push( stack[ i ] );
  			}
  			if ( include.length ) {
  				return include.join( "\n" );
  			}
  		}
  		return stack[ offset ];
  	}
  }
  
  function sourceFromStacktrace( offset ) {
  	var error = new Error();
  
  	// Support: Safari <=7 only, IE <=10 - 11 only
  	// Not all browsers generate the `stack` property for `new Error()`, see also #636
  	if ( !error.stack ) {
  		try {
  			throw error;
  		} catch ( err ) {
  			error = err;
  		}
  	}
  
  	return extractStacktrace( error, offset );
  }
  
  /**
   * Config object: Maintain internal state
   * Later exposed as QUnit.config
   * `config` initialized at top of scope
   */
  var config = {
  
  	// The queue of tests to run
  	queue: [],
  
  	// Block until document ready
  	blocking: true,
  
  	// By default, run previously failed tests first
  	// very useful in combination with "Hide passed tests" checked
  	reorder: true,
  
  	// By default, modify document.title when suite is done
  	altertitle: true,
  
  	// HTML Reporter: collapse every test except the first failing test
  	// If false, all failing tests will be expanded
  	collapse: true,
  
  	// By default, scroll to top of the page when suite is done
  	scrolltop: true,
  
  	// Depth up-to which object will be dumped
  	maxDepth: 5,
  
  	// When enabled, all tests must call expect()
  	requireExpects: false,
  
  	// Placeholder for user-configurable form-exposed URL parameters
  	urlConfig: [],
  
  	// Set of all modules.
  	modules: [],
  
  	// Stack of nested modules
  	moduleStack: [],
  
  	// The first unnamed module
  	currentModule: {
  		name: "",
  		tests: []
  	},
  
  	callbacks: {}
  };
  
  // Push a loose unnamed module to the modules collection
  config.modules.push( config.currentModule );
  
  // Register logging callbacks
  function registerLoggingCallbacks( obj ) {
  	var i, l, key,
  		callbackNames = [ "begin", "done", "log", "testStart", "testDone",
  			"moduleStart", "moduleDone" ];
  
  	function registerLoggingCallback( key ) {
  		var loggingCallback = function( callback ) {
  			if ( objectType( callback ) !== "function" ) {
  				throw new Error(
  					"QUnit logging methods require a callback function as their first parameters."
  				);
  			}
  
  			config.callbacks[ key ].push( callback );
  		};
  
  		return loggingCallback;
  	}
  
  	for ( i = 0, l = callbackNames.length; i < l; i++ ) {
  		key = callbackNames[ i ];
  
  		// Initialize key collection of logging callback
  		if ( objectType( config.callbacks[ key ] ) === "undefined" ) {
  			config.callbacks[ key ] = [];
  		}
  
  		obj[ key ] = registerLoggingCallback( key );
  	}
  }
  
  function runLoggingCallbacks( key, args ) {
  	var i, l, callbacks;
  
  	callbacks = config.callbacks[ key ];
  	for ( i = 0, l = callbacks.length; i < l; i++ ) {
  		callbacks[ i ]( args );
  	}
  }
  
  ( function() {
  	if ( !defined.document ) {
  		return;
  	}
  
  	// `onErrorFnPrev` initialized at top of scope
  	// Preserve other handlers
  	var onErrorFnPrev = window.onerror;
  
  	// Cover uncaught exceptions
  	// Returning true will suppress the default browser handler,
  	// returning false will let it run.
  	window.onerror = function( error, filePath, linerNr ) {
  		var ret = false;
  		if ( onErrorFnPrev ) {
  			ret = onErrorFnPrev( error, filePath, linerNr );
  		}
  
  		// Treat return value as window.onerror itself does,
  		// Only do our handling if not suppressed.
  		if ( ret !== true ) {
  			if ( QUnit.config.current ) {
  				if ( QUnit.config.current.ignoreGlobalErrors ) {
  					return true;
  				}
  				QUnit.pushFailure( error, filePath + ":" + linerNr );
  			} else {
  				QUnit.test( "global failure", extend( function() {
  					QUnit.pushFailure( error, filePath + ":" + linerNr );
  				}, { validTest: true } ) );
  			}
  			return false;
  		}
  
  		return ret;
  	};
  }() );
  
  // Figure out if we're running the tests from a server or not
  QUnit.isLocal = !( defined.document && window.location.protocol !== "file:" );
  
  // Expose the current QUnit version
  QUnit.version = "2.0.1";
  
  extend( QUnit, {
  
  	// Call on start of module test to prepend name to all tests
  	module: function( name, testEnvironment, executeNow ) {
  		var module, moduleFns;
  		var currentModule = config.currentModule;
  
  		if ( arguments.length === 2 ) {
  			if ( objectType( testEnvironment ) === "function" ) {
  				executeNow = testEnvironment;
  				testEnvironment = undefined;
  			}
  		}
  
  		module = createModule();
  
  		if ( testEnvironment && ( testEnvironment.setup || testEnvironment.teardown ) ) {
  			console.warn(
  				"Module's `setup` and `teardown` are not hooks anymore on QUnit 2.0, use " +
  				"`beforeEach` and `afterEach` instead\n" +
  				"Details in our upgrade guide at https://qunitjs.com/upgrade-guide-2.x/"
  			);
  		}
  
  		moduleFns = {
  			before: setHook( module, "before" ),
  			beforeEach: setHook( module, "beforeEach" ),
  			afterEach: setHook( module, "afterEach" ),
  			after: setHook( module, "after" )
  		};
  
  		if ( objectType( executeNow ) === "function" ) {
  			config.moduleStack.push( module );
  			setCurrentModule( module );
  			executeNow.call( module.testEnvironment, moduleFns );
  			config.moduleStack.pop();
  			module = module.parentModule || currentModule;
  		}
  
  		setCurrentModule( module );
  
  		function createModule() {
  			var parentModule = config.moduleStack.length ?
  				config.moduleStack.slice( -1 )[ 0 ] : null;
  			var moduleName = parentModule !== null ?
  				[ parentModule.name, name ].join( " > " ) : name;
  			var module = {
  				name: moduleName,
  				parentModule: parentModule,
  				tests: [],
  				moduleId: generateHash( moduleName ),
  				testsRun: 0
  			};
  
  			var env = {};
  			if ( parentModule ) {
  				parentModule.childModule = module;
  				extend( env, parentModule.testEnvironment );
  				delete env.beforeEach;
  				delete env.afterEach;
  			}
  			extend( env, testEnvironment );
  			module.testEnvironment = env;
  
  			config.modules.push( module );
  			return module;
  		}
  
  		function setCurrentModule( module ) {
  			config.currentModule = module;
  		}
  
  	},
  
  	test: test,
  
  	skip: skip,
  
  	only: only,
  
  	start: function( count ) {
  		var globalStartAlreadyCalled = globalStartCalled;
  
  		if ( !config.current ) {
  			globalStartCalled = true;
  
  			if ( runStarted ) {
  				throw new Error( "Called start() while test already started running" );
  			} else if ( globalStartAlreadyCalled || count > 1 ) {
  				throw new Error( "Called start() outside of a test context too many times" );
  			} else if ( config.autostart ) {
  				throw new Error( "Called start() outside of a test context when " +
  					"QUnit.config.autostart was true" );
  			} else if ( !config.pageLoaded ) {
  
  				// The page isn't completely loaded yet, so bail out and let `QUnit.load` handle it
  				config.autostart = true;
  				return;
  			}
  		} else {
  			throw new Error(
  				"QUnit.start cannot be called inside a test context. This feature is removed in " +
  				"QUnit 2.0. For async tests, use QUnit.test() with assert.async() instead.\n" +
  				"Details in our upgrade guide at https://qunitjs.com/upgrade-guide-2.x/"
  			);
  		}
  
  		scheduleBegin();
  	},
  
  	config: config,
  
  	is: is,
  
  	objectType: objectType,
  
  	extend: extend,
  
  	load: function() {
  		config.pageLoaded = true;
  
  		// Initialize the configuration options
  		extend( config, {
  			stats: { all: 0, bad: 0 },
  			moduleStats: { all: 0, bad: 0 },
  			started: 0,
  			updateRate: 1000,
  			autostart: true,
  			filter: ""
  		}, true );
  
  		if ( !runStarted ) {
  			config.blocking = false;
  
  			if ( config.autostart ) {
  				scheduleBegin();
  			}
  		}
  	},
  
  	stack: function( offset ) {
  		offset = ( offset || 0 ) + 2;
  		return sourceFromStacktrace( offset );
  	}
  } );
  
  registerLoggingCallbacks( QUnit );
  
  function scheduleBegin() {
  
  	runStarted = true;
  
  	// Add a slight delay to allow definition of more modules and tests.
  	if ( defined.setTimeout ) {
  		setTimeout( function() {
  			begin();
  		}, 13 );
  	} else {
  		begin();
  	}
  }
  
  function begin() {
  	var i, l,
  		modulesLog = [];
  
  	// If the test run hasn't officially begun yet
  	if ( !config.started ) {
  
  		// Record the time of the test run's beginning
  		config.started = now();
  
  		// Delete the loose unnamed module if unused.
  		if ( config.modules[ 0 ].name === "" && config.modules[ 0 ].tests.length === 0 ) {
  			config.modules.shift();
  		}
  
  		// Avoid unnecessary information by not logging modules' test environments
  		for ( i = 0, l = config.modules.length; i < l; i++ ) {
  			modulesLog.push( {
  				name: config.modules[ i ].name,
  				tests: config.modules[ i ].tests
  			} );
  		}
  
  		// The test run is officially beginning now
  		runLoggingCallbacks( "begin", {
  			totalTests: Test.count,
  			modules: modulesLog
  		} );
  	}
  
  	config.blocking = false;
  	process( true );
  }
  
  function process( last ) {
  	function next() {
  		process( last );
  	}
  	var start = now();
  	config.depth = ( config.depth || 0 ) + 1;
  
  	while ( config.queue.length && !config.blocking ) {
  		if ( !defined.setTimeout || config.updateRate <= 0 ||
  				( ( now() - start ) < config.updateRate ) ) {
  			if ( config.current ) {
  
  				// Reset async tracking for each phase of the Test lifecycle
  				config.current.usedAsync = false;
  			}
  			config.queue.shift()();
  		} else {
  			setTimeout( next, 13 );
  			break;
  		}
  	}
  	config.depth--;
  	if ( last && !config.blocking && !config.queue.length && config.depth === 0 ) {
  		done();
  	}
  }
  
  function done() {
  	var runtime, passed;
  
  	autorun = true;
  
  	// Log the last module results
  	if ( config.previousModule ) {
  		runLoggingCallbacks( "moduleDone", {
  			name: config.previousModule.name,
  			tests: config.previousModule.tests,
  			failed: config.moduleStats.bad,
  			passed: config.moduleStats.all - config.moduleStats.bad,
  			total: config.moduleStats.all,
  			runtime: now() - config.moduleStats.started
  		} );
  	}
  	delete config.previousModule;
  
  	runtime = now() - config.started;
  	passed = config.stats.all - config.stats.bad;
  
  	runLoggingCallbacks( "done", {
  		failed: config.stats.bad,
  		passed: passed,
  		total: config.stats.all,
  		runtime: runtime
  	} );
  }
  
  function setHook( module, hookName ) {
  	if ( module.testEnvironment === undefined ) {
  		module.testEnvironment = {};
  	}
  
  	return function( callback ) {
  		module.testEnvironment[ hookName ] = callback;
  	};
  }
  
  var unitSampler,
  	focused = false,
  	priorityCount = 0;
  
  function Test( settings ) {
  	var i, l;
  
  	++Test.count;
  
  	this.expected = null;
  	extend( this, settings );
  	this.assertions = [];
  	this.semaphore = 0;
  	this.usedAsync = false;
  	this.module = config.currentModule;
  	this.stack = sourceFromStacktrace( 3 );
  
  	// Register unique strings
  	for ( i = 0, l = this.module.tests; i < l.length; i++ ) {
  		if ( this.module.tests[ i ].name === this.testName ) {
  			this.testName += " ";
  		}
  	}
  
  	this.testId = generateHash( this.module.name, this.testName );
  
  	this.module.tests.push( {
  		name: this.testName,
  		testId: this.testId
  	} );
  
  	if ( settings.skip ) {
  
  		// Skipped tests will fully ignore any sent callback
  		this.callback = function() {};
  		this.async = false;
  		this.expected = 0;
  	} else {
  		this.assert = new Assert( this );
  	}
  }
  
  Test.count = 0;
  
  Test.prototype = {
  	before: function() {
  		if (
  
  			// Emit moduleStart when we're switching from one module to another
  			this.module !== config.previousModule ||
  
  				// They could be equal (both undefined) but if the previousModule property doesn't
  				// yet exist it means this is the first test in a suite that isn't wrapped in a
  				// module, in which case we'll just emit a moduleStart event for 'undefined'.
  				// Without this, reporters can get testStart before moduleStart  which is a problem.
  				!hasOwn.call( config, "previousModule" )
  		) {
  			if ( hasOwn.call( config, "previousModule" ) ) {
  				runLoggingCallbacks( "moduleDone", {
  					name: config.previousModule.name,
  					tests: config.previousModule.tests,
  					failed: config.moduleStats.bad,
  					passed: config.moduleStats.all - config.moduleStats.bad,
  					total: config.moduleStats.all,
  					runtime: now() - config.moduleStats.started
  				} );
  			}
  			config.previousModule = this.module;
  			config.moduleStats = { all: 0, bad: 0, started: now() };
  			runLoggingCallbacks( "moduleStart", {
  				name: this.module.name,
  				tests: this.module.tests
  			} );
  		}
  
  		config.current = this;
  
  		if ( this.module.testEnvironment ) {
  			delete this.module.testEnvironment.before;
  			delete this.module.testEnvironment.beforeEach;
  			delete this.module.testEnvironment.afterEach;
  			delete this.module.testEnvironment.after;
  		}
  		this.testEnvironment = extend( {}, this.module.testEnvironment );
  
  		this.started = now();
  		runLoggingCallbacks( "testStart", {
  			name: this.testName,
  			module: this.module.name,
  			testId: this.testId
  		} );
  
  		if ( !config.pollution ) {
  			saveGlobal();
  		}
  	},
  
  	run: function() {
  		var promise;
  
  		config.current = this;
  
  		this.callbackStarted = now();
  
  		if ( config.notrycatch ) {
  			runTest( this );
  			return;
  		}
  
  		try {
  			runTest( this );
  		} catch ( e ) {
  			this.pushFailure( "Died on test #" + ( this.assertions.length + 1 ) + " " +
  				this.stack + ": " + ( e.message || e ), extractStacktrace( e, 0 ) );
  
  			// Else next test will carry the responsibility
  			saveGlobal();
  
  			// Restart the tests if they're blocking
  			if ( config.blocking ) {
  				internalRecover( this );
  			}
  		}
  
  		function runTest( test ) {
  			promise = test.callback.call( test.testEnvironment, test.assert );
  			test.resolvePromise( promise );
  		}
  	},
  
  	after: function() {
  		checkPollution();
  	},
  
  	queueHook: function( hook, hookName, hookOwner ) {
  		var promise,
  			test = this;
  		return function runHook() {
  			if ( hookName === "before" ) {
  				if ( hookOwner.testsRun !== 0 ) {
  					return;
  				}
  
  				test.preserveEnvironment = true;
  			}
  
  			if ( hookName === "after" && hookOwner.testsRun !== numberOfTests( hookOwner ) - 1 ) {
  				return;
  			}
  
  			config.current = test;
  			if ( config.notrycatch ) {
  				callHook();
  				return;
  			}
  			try {
  				callHook();
  			} catch ( error ) {
  				test.pushFailure( hookName + " failed on " + test.testName + ": " +
  				( error.message || error ), extractStacktrace( error, 0 ) );
  			}
  
  			function callHook() {
  				promise = hook.call( test.testEnvironment, test.assert );
  				test.resolvePromise( promise, hookName );
  			}
  		};
  	},
  
  	// Currently only used for module level hooks, can be used to add global level ones
  	hooks: function( handler ) {
  		var hooks = [];
  
  		function processHooks( test, module ) {
  			if ( module.parentModule ) {
  				processHooks( test, module.parentModule );
  			}
  			if ( module.testEnvironment &&
  				QUnit.objectType( module.testEnvironment[ handler ] ) === "function" ) {
  				hooks.push( test.queueHook( module.testEnvironment[ handler ], handler, module ) );
  			}
  		}
  
  		// Hooks are ignored on skipped tests
  		if ( !this.skip ) {
  			processHooks( this, this.module );
  		}
  		return hooks;
  	},
  
  	finish: function() {
  		config.current = this;
  		if ( config.requireExpects && this.expected === null ) {
  			this.pushFailure( "Expected number of assertions to be defined, but expect() was " +
  				"not called.", this.stack );
  		} else if ( this.expected !== null && this.expected !== this.assertions.length ) {
  			this.pushFailure( "Expected " + this.expected + " assertions, but " +
  				this.assertions.length + " were run", this.stack );
  		} else if ( this.expected === null && !this.assertions.length ) {
  			this.pushFailure( "Expected at least one assertion, but none were run - call " +
  				"expect(0) to accept zero assertions.", this.stack );
  		}
  
  		var i,
  			skipped = !!this.skip,
  			bad = 0;
  
  		this.runtime = now() - this.started;
  
  		config.stats.all += this.assertions.length;
  		config.moduleStats.all += this.assertions.length;
  
  		for ( i = 0; i < this.assertions.length; i++ ) {
  			if ( !this.assertions[ i ].result ) {
  				bad++;
  				config.stats.bad++;
  				config.moduleStats.bad++;
  			}
  		}
  
  		notifyTestsRan( this.module );
  		runLoggingCallbacks( "testDone", {
  			name: this.testName,
  			module: this.module.name,
  			skipped: skipped,
  			failed: bad,
  			passed: this.assertions.length - bad,
  			total: this.assertions.length,
  			runtime: skipped ? 0 : this.runtime,
  
  			// HTML Reporter use
  			assertions: this.assertions,
  			testId: this.testId,
  
  			// Source of Test
  			source: this.stack
  		} );
  
  		config.current = undefined;
  	},
  
  	preserveTestEnvironment: function() {
  		if ( this.preserveEnvironment ) {
  			this.module.testEnvironment = this.testEnvironment;
  			this.testEnvironment = extend( {}, this.module.testEnvironment );
  		}
  	},
  
  	queue: function() {
  		var priority,
  			test = this;
  
  		if ( !this.valid() ) {
  			return;
  		}
  
  		function run() {
  
  			// Each of these can by async
  			synchronize( [
  				function() {
  					test.before();
  				},
  
  				test.hooks( "before" ),
  
  				function() {
  					test.preserveTestEnvironment();
  				},
  
  				test.hooks( "beforeEach" ),
  
  				function() {
  					test.run();
  				},
  
  				test.hooks( "afterEach" ).reverse(),
  				test.hooks( "after" ).reverse(),
  
  				function() {
  					test.after();
  				},
  
  				function() {
  					test.finish();
  				}
  			] );
  		}
  
  		// Prioritize previously failed tests, detected from sessionStorage
  		priority = QUnit.config.reorder && defined.sessionStorage &&
  				+sessionStorage.getItem( "qunit-test-" + this.module.name + "-" + this.testName );
  
  		return synchronize( run, priority, config.seed );
  	},
  
  	pushResult: function( resultInfo ) {
  
  		// Destructure of resultInfo = { result, actual, expected, message, negative }
  		var source,
  			details = {
  				module: this.module.name,
  				name: this.testName,
  				result: resultInfo.result,
  				message: resultInfo.message,
  				actual: resultInfo.actual,
  				expected: resultInfo.expected,
  				testId: this.testId,
  				negative: resultInfo.negative || false,
  				runtime: now() - this.started
  			};
  
  		if ( !resultInfo.result ) {
  			source = sourceFromStacktrace();
  
  			if ( source ) {
  				details.source = source;
  			}
  		}
  
  		runLoggingCallbacks( "log", details );
  
  		this.assertions.push( {
  			result: !!resultInfo.result,
  			message: resultInfo.message
  		} );
  	},
  
  	pushFailure: function( message, source, actual ) {
  		if ( !( this instanceof Test ) ) {
  			throw new Error( "pushFailure() assertion outside test context, was " +
  				sourceFromStacktrace( 2 ) );
  		}
  
  		var details = {
  				module: this.module.name,
  				name: this.testName,
  				result: false,
  				message: message || "error",
  				actual: actual || null,
  				testId: this.testId,
  				runtime: now() - this.started
  			};
  
  		if ( source ) {
  			details.source = source;
  		}
  
  		runLoggingCallbacks( "log", details );
  
  		this.assertions.push( {
  			result: false,
  			message: message
  		} );
  	},
  
  	resolvePromise: function( promise, phase ) {
  		var then, resume, message,
  			test = this;
  		if ( promise != null ) {
  			then = promise.then;
  			if ( QUnit.objectType( then ) === "function" ) {
  				resume = internalStop( test );
  				then.call(
  					promise,
  					function() { resume(); },
  					function( error ) {
  						message = "Promise rejected " +
  							( !phase ? "during" : phase.replace( /Each$/, "" ) ) +
  							" " + test.testName + ": " + ( error.message || error );
  						test.pushFailure( message, extractStacktrace( error, 0 ) );
  
  						// Else next test will carry the responsibility
  						saveGlobal();
  
  						// Unblock
  						resume();
  					}
  				);
  			}
  		}
  	},
  
  	valid: function() {
  		var filter = config.filter,
  			regexFilter = /^(!?)\/([\w\W]*)\/(i?$)/.exec( filter ),
  			module = config.module && config.module.toLowerCase(),
  			fullName = ( this.module.name + ": " + this.testName );
  
  		function moduleChainNameMatch( testModule ) {
  			var testModuleName = testModule.name ? testModule.name.toLowerCase() : null;
  			if ( testModuleName === module ) {
  				return true;
  			} else if ( testModule.parentModule ) {
  				return moduleChainNameMatch( testModule.parentModule );
  			} else {
  				return false;
  			}
  		}
  
  		function moduleChainIdMatch( testModule ) {
  			return inArray( testModule.moduleId, config.moduleId ) > -1 ||
  				testModule.parentModule && moduleChainIdMatch( testModule.parentModule );
  		}
  
  		// Internally-generated tests are always valid
  		if ( this.callback && this.callback.validTest ) {
  			return true;
  		}
  
  		if ( config.moduleId && config.moduleId.length > 0 &&
  			!moduleChainIdMatch( this.module ) ) {
  
  			return false;
  		}
  
  		if ( config.testId && config.testId.length > 0 &&
  			inArray( this.testId, config.testId ) < 0 ) {
  
  			return false;
  		}
  
  		if ( module && !moduleChainNameMatch( this.module ) ) {
  			return false;
  		}
  
  		if ( !filter ) {
  			return true;
  		}
  
  		return regexFilter ?
  			this.regexFilter( !!regexFilter[ 1 ], regexFilter[ 2 ], regexFilter[ 3 ], fullName ) :
  			this.stringFilter( filter, fullName );
  	},
  
  	regexFilter: function( exclude, pattern, flags, fullName ) {
  		var regex = new RegExp( pattern, flags );
  		var match = regex.test( fullName );
  
  		return match !== exclude;
  	},
  
  	stringFilter: function( filter, fullName ) {
  		filter = filter.toLowerCase();
  		fullName = fullName.toLowerCase();
  
  		var include = filter.charAt( 0 ) !== "!";
  		if ( !include ) {
  			filter = filter.slice( 1 );
  		}
  
  		// If the filter matches, we need to honour include
  		if ( fullName.indexOf( filter ) !== -1 ) {
  			return include;
  		}
  
  		// Otherwise, do the opposite
  		return !include;
  	}
  };
  
  QUnit.pushFailure = function() {
  	if ( !QUnit.config.current ) {
  		throw new Error( "pushFailure() assertion outside test context, in " +
  			sourceFromStacktrace( 2 ) );
  	}
  
  	// Gets current test obj
  	var currentTest = QUnit.config.current;
  
  	return currentTest.pushFailure.apply( currentTest, arguments );
  };
  
  // Based on Java's String.hashCode, a simple but not
  // rigorously collision resistant hashing function
  function generateHash( module, testName ) {
  	var hex,
  		i = 0,
  		hash = 0,
  		str = module + "\x1C" + testName,
  		len = str.length;
  
  	for ( ; i < len; i++ ) {
  		hash  = ( ( hash << 5 ) - hash ) + str.charCodeAt( i );
  		hash |= 0;
  	}
  
  	// Convert the possibly negative integer hash code into an 8 character hex string, which isn't
  	// strictly necessary but increases user understanding that the id is a SHA-like hash
  	hex = ( 0x100000000 + hash ).toString( 16 );
  	if ( hex.length < 8 ) {
  		hex = "0000000" + hex;
  	}
  
  	return hex.slice( -8 );
  }
  
  function synchronize( callback, priority, seed ) {
  	var last = !priority,
  		index;
  
  	if ( QUnit.objectType( callback ) === "array" ) {
  		while ( callback.length ) {
  			synchronize( callback.shift() );
  		}
  		return;
  	}
  
  	if ( priority ) {
  		config.queue.splice( priorityCount++, 0, callback );
  	} else if ( seed ) {
  		if ( !unitSampler ) {
  			unitSampler = unitSamplerGenerator( seed );
  		}
  
  		// Insert into a random position after all priority items
  		index = Math.floor( unitSampler() * ( config.queue.length - priorityCount + 1 ) );
  		config.queue.splice( priorityCount + index, 0, callback );
  	} else {
  		config.queue.push( callback );
  	}
  
  	if ( autorun && !config.blocking ) {
  		process( last );
  	}
  }
  
  function unitSamplerGenerator( seed ) {
  
  	// 32-bit xorshift, requires only a nonzero seed
  	// http://excamera.com/sphinx/article-xorshift.html
  	var sample = parseInt( generateHash( seed ), 16 ) || -1;
  	return function() {
  		sample ^= sample << 13;
  		sample ^= sample >>> 17;
  		sample ^= sample << 5;
  
  		// ECMAScript has no unsigned number type
  		if ( sample < 0 ) {
  			sample += 0x100000000;
  		}
  
  		return sample / 0x100000000;
  	};
  }
  
  function saveGlobal() {
  	config.pollution = [];
  
  	if ( config.noglobals ) {
  		for ( var key in global ) {
  			if ( hasOwn.call( global, key ) ) {
  
  				// In Opera sometimes DOM element ids show up here, ignore them
  				if ( /^qunit-test-output/.test( key ) ) {
  					continue;
  				}
  				config.pollution.push( key );
  			}
  		}
  	}
  }
  
  function checkPollution() {
  	var newGlobals,
  		deletedGlobals,
  		old = config.pollution;
  
  	saveGlobal();
  
  	newGlobals = diff( config.pollution, old );
  	if ( newGlobals.length > 0 ) {
  		QUnit.pushFailure( "Introduced global variable(s): " + newGlobals.join( ", " ) );
  	}
  
  	deletedGlobals = diff( old, config.pollution );
  	if ( deletedGlobals.length > 0 ) {
  		QUnit.pushFailure( "Deleted global variable(s): " + deletedGlobals.join( ", " ) );
  	}
  }
  
  // Will be exposed as QUnit.test
  function test( testName, callback ) {
  	if ( focused )  { return; }
  
  	var newTest;
  
  	newTest = new Test( {
  		testName: testName,
  		callback: callback
  	} );
  
  	newTest.queue();
  }
  
  // Will be exposed as QUnit.skip
  function skip( testName ) {
  	if ( focused )  { return; }
  
  	var test = new Test( {
  		testName: testName,
  		skip: true
  	} );
  
  	test.queue();
  }
  
  // Will be exposed as QUnit.only
  function only( testName, callback ) {
  	var newTest;
  
  	if ( focused )  { return; }
  
  	QUnit.config.queue.length = 0;
  	focused = true;
  
  	newTest = new Test( {
  		testName: testName,
  		callback: callback
  	} );
  
  	newTest.queue();
  }
  
  // Put a hold on processing and return a function that will release it.
  function internalStop( test ) {
  	var released = false;
  
  	test.semaphore += 1;
  	config.blocking = true;
  
  	// Set a recovery timeout, if so configured.
  	if ( config.testTimeout && defined.setTimeout ) {
  		clearTimeout( config.timeout );
  		config.timeout = setTimeout( function() {
  			QUnit.pushFailure( "Test timed out", sourceFromStacktrace( 2 ) );
  			internalRecover( test );
  		}, config.testTimeout );
  	}
  
  	return function resume() {
  		if ( released ) {
  			return;
  		}
  
  		released = true;
  		test.semaphore -= 1;
  		internalStart( test );
  	};
  }
  
  // Forcefully release all processing holds.
  function internalRecover( test ) {
  	test.semaphore = 0;
  	internalStart( test );
  }
  
  // Release a processing hold, scheduling a resumption attempt if no holds remain.
  function internalStart( test ) {
  
  	// If semaphore is non-numeric, throw error
  	if ( isNaN( test.semaphore ) ) {
  		test.semaphore = 0;
  
  		QUnit.pushFailure(
  			"Invalid value on test.semaphore",
  			sourceFromStacktrace( 2 )
  		);
  		return;
  	}
  
  	// Don't start until equal number of stop-calls
  	if ( test.semaphore > 0 ) {
  		return;
  	}
  
  	// Throw an Error if start is called more often than stop
  	if ( test.semaphore < 0 ) {
  		test.semaphore = 0;
  
  		QUnit.pushFailure(
  			"Tried to restart test while already started (test's semaphore was 0 already)",
  			sourceFromStacktrace( 2 )
  		);
  		return;
  	}
  
  	// Add a slight delay to allow more assertions etc.
  	if ( defined.setTimeout ) {
  		if ( config.timeout ) {
  			clearTimeout( config.timeout );
  		}
  		config.timeout = setTimeout( function() {
  			if ( test.semaphore > 0 ) {
  				return;
  			}
  
  			if ( config.timeout ) {
  				clearTimeout( config.timeout );
  			}
  
  			begin();
  		}, 13 );
  	} else {
  		begin();
  	}
  }
  
  function numberOfTests( module ) {
  	var count = module.tests.length;
  	while ( module = module.childModule ) {
  		count += module.tests.length;
  	}
  	return count;
  }
  
  function notifyTestsRan( module ) {
  	module.testsRun++;
  	while ( module = module.parentModule ) {
  		module.testsRun++;
  	}
  }
  
  function Assert( testContext ) {
  	this.test = testContext;
  }
  
  // Assert helpers
  QUnit.assert = Assert.prototype = {
  
  	// Specify the number of expected assertions to guarantee that failed test
  	// (no assertions are run at all) don't slip through.
  	expect: function( asserts ) {
  		if ( arguments.length === 1 ) {
  			this.test.expected = asserts;
  		} else {
  			return this.test.expected;
  		}
  	},
  
  	// Put a hold on processing and return a function that will release it a maximum of once.
  	async: function( count ) {
  		var resume,
  			test = this.test,
  			popped = false,
  			acceptCallCount = count;
  
  		if ( typeof acceptCallCount === "undefined" ) {
  			acceptCallCount = 1;
  		}
  
  		test.usedAsync = true;
  		resume = internalStop( test );
  
  		return function done() {
  
  			if ( popped ) {
  				test.pushFailure( "Too many calls to the `assert.async` callback",
  					sourceFromStacktrace( 2 ) );
  				return;
  			}
  			acceptCallCount -= 1;
  			if ( acceptCallCount > 0 ) {
  				return;
  			}
  
  			popped = true;
  			resume();
  		};
  	},
  
  	// Exports test.push() to the user API
  	// Alias of pushResult.
  	push: function( result, actual, expected, message, negative ) {
  		var currentAssert = this instanceof Assert ? this : QUnit.config.current.assert;
  		return currentAssert.pushResult( {
  			result: result,
  			actual: actual,
  			expected: expected,
  			message: message,
  			negative: negative
  		} );
  	},
  
  	pushResult: function( resultInfo ) {
  
  		// Destructure of resultInfo = { result, actual, expected, message, negative }
  		var assert = this,
  			currentTest = ( assert instanceof Assert && assert.test ) || QUnit.config.current;
  
  		// Backwards compatibility fix.
  		// Allows the direct use of global exported assertions and QUnit.assert.*
  		// Although, it's use is not recommended as it can leak assertions
  		// to other tests from async tests, because we only get a reference to the current test,
  		// not exactly the test where assertion were intended to be called.
  		if ( !currentTest ) {
  			throw new Error( "assertion outside test context, in " + sourceFromStacktrace( 2 ) );
  		}
  
  		if ( currentTest.usedAsync === true && currentTest.semaphore === 0 ) {
  			currentTest.pushFailure( "Assertion after the final `assert.async` was resolved",
  				sourceFromStacktrace( 2 ) );
  
  			// Allow this assertion to continue running anyway...
  		}
  
  		if ( !( assert instanceof Assert ) ) {
  			assert = currentTest.assert;
  		}
  
  		return assert.test.pushResult( resultInfo );
  	},
  
  	ok: function( result, message ) {
  		message = message || ( result ? "okay" : "failed, expected argument to be truthy, was: " +
  			QUnit.dump.parse( result ) );
  		this.pushResult( {
  			result: !!result,
  			actual: result,
  			expected: true,
  			message: message
  		} );
  	},
  
  	notOk: function( result, message ) {
  		message = message || ( !result ? "okay" : "failed, expected argument to be falsy, was: " +
  			QUnit.dump.parse( result ) );
  		this.pushResult( {
  			result: !result,
  			actual: result,
  			expected: false,
  			message: message
  		} );
  	},
  
  	equal: function( actual, expected, message ) {
  		/*jshint eqeqeq:false */
  		this.pushResult( {
  			result: expected == actual,
  			actual: actual,
  			expected: expected,
  			message: message
  		} );
  	},
  
  	notEqual: function( actual, expected, message ) {
  		/*jshint eqeqeq:false */
  		this.pushResult( {
  			result: expected != actual,
  			actual: actual,
  			expected: expected,
  			message: message,
  			negative: true
  		} );
  	},
  
  	propEqual: function( actual, expected, message ) {
  		actual = objectValues( actual );
  		expected = objectValues( expected );
  		this.pushResult( {
  			result: QUnit.equiv( actual, expected ),
  			actual: actual,
  			expected: expected,
  			message: message
  		} );
  	},
  
  	notPropEqual: function( actual, expected, message ) {
  		actual = objectValues( actual );
  		expected = objectValues( expected );
  		this.pushResult( {
  			result: !QUnit.equiv( actual, expected ),
  			actual: actual,
  			expected: expected,
  			message: message,
  			negative: true
  		} );
  	},
  
  	deepEqual: function( actual, expected, message ) {
  		this.pushResult( {
  			result: QUnit.equiv( actual, expected ),
  			actual: actual,
  			expected: expected,
  			message: message
  		} );
  	},
  
  	notDeepEqual: function( actual, expected, message ) {
  		this.pushResult( {
  			result: !QUnit.equiv( actual, expected ),
  			actual: actual,
  			expected: expected,
  			message: message,
  			negative: true
  		} );
  	},
  
  	strictEqual: function( actual, expected, message ) {
  		this.pushResult( {
  			result: expected === actual,
  			actual: actual,
  			expected: expected,
  			message: message
  		} );
  	},
  
  	notStrictEqual: function( actual, expected, message ) {
  		this.pushResult( {
  			result: expected !== actual,
  			actual: actual,
  			expected: expected,
  			message: message,
  			negative: true
  		} );
  	},
  
  	"throws": function( block, expected, message ) {
  		var actual, expectedType,
  			expectedOutput = expected,
  			ok = false,
  			currentTest = ( this instanceof Assert && this.test ) || QUnit.config.current;
  
  		// 'expected' is optional unless doing string comparison
  		if ( QUnit.objectType( expected ) === "string" ) {
  			if ( message == null ) {
  				message = expected;
  				expected = null;
  			} else {
  				throw new Error(
  					"throws/raises does not accept a string value for the expected argument.\n" +
  					"Use a non-string object value (e.g. regExp) instead if it's necessary." +
  					"Details in our upgrade guide at https://qunitjs.com/upgrade-guide-2.x/"
  				);
  			}
  		}
  
  		currentTest.ignoreGlobalErrors = true;
  		try {
  			block.call( currentTest.testEnvironment );
  		} catch ( e ) {
  			actual = e;
  		}
  		currentTest.ignoreGlobalErrors = false;
  
  		if ( actual ) {
  			expectedType = QUnit.objectType( expected );
  
  			// We don't want to validate thrown error
  			if ( !expected ) {
  				ok = true;
  				expectedOutput = null;
  
  			// Expected is a regexp
  			} else if ( expectedType === "regexp" ) {
  				ok = expected.test( errorString( actual ) );
  
  			// Expected is a constructor, maybe an Error constructor
  			} else if ( expectedType === "function" && actual instanceof expected ) {
  				ok = true;
  
  			// Expected is an Error object
  			} else if ( expectedType === "object" ) {
  				ok = actual instanceof expected.constructor &&
  					actual.name === expected.name &&
  					actual.message === expected.message;
  
  			// Expected is a validation function which returns true if validation passed
  			} else if ( expectedType === "function" && expected.call( {}, actual ) === true ) {
  				expectedOutput = null;
  				ok = true;
  			}
  		}
  
  		currentTest.assert.pushResult( {
  			result: ok,
  			actual: actual,
  			expected: expectedOutput,
  			message: message
  		} );
  	}
  };
  
  // Provide an alternative to assert.throws(), for environments that consider throws a reserved word
  // Known to us are: Closure Compiler, Narwhal
  ( function() {
  	/*jshint sub:true */
  	Assert.prototype.raises = Assert.prototype [ "throws" ]; //jscs:ignore requireDotNotation
  }() );
  
  function errorString( error ) {
  	var name, message,
  		resultErrorString = error.toString();
  	if ( resultErrorString.substring( 0, 7 ) === "[object" ) {
  		name = error.name ? error.name.toString() : "Error";
  		message = error.message ? error.message.toString() : "";
  		if ( name && message ) {
  			return name + ": " + message;
  		} else if ( name ) {
  			return name;
  		} else if ( message ) {
  			return message;
  		} else {
  			return "Error";
  		}
  	} else {
  		return resultErrorString;
  	}
  }
  
  // Test for equality any JavaScript type.
  // Author: Philippe Rathé <prathe@gmail.com>
  QUnit.equiv = ( function() {
  
  	// Stack to decide between skip/abort functions
  	var callers = [];
  
  	// Stack to avoiding loops from circular referencing
  	var parents = [];
  	var parentsB = [];
  
  	var getProto = Object.getPrototypeOf || function( obj ) {
  
  		/*jshint proto: true */
  		return obj.__proto__;
  	};
  
  	function useStrictEquality( b, a ) {
  
  		// To catch short annotation VS 'new' annotation of a declaration. e.g.:
  		// `var i = 1;`
  		// `var j = new Number(1);`
  		if ( typeof a === "object" ) {
  			a = a.valueOf();
  		}
  		if ( typeof b === "object" ) {
  			b = b.valueOf();
  		}
  
  		return a === b;
  	}
  
  	function compareConstructors( a, b ) {
  		var protoA = getProto( a );
  		var protoB = getProto( b );
  
  		// Comparing constructors is more strict than using `instanceof`
  		if ( a.constructor === b.constructor ) {
  			return true;
  		}
  
  		// Ref #851
  		// If the obj prototype descends from a null constructor, treat it
  		// as a null prototype.
  		if ( protoA && protoA.constructor === null ) {
  			protoA = null;
  		}
  		if ( protoB && protoB.constructor === null ) {
  			protoB = null;
  		}
  
  		// Allow objects with no prototype to be equivalent to
  		// objects with Object as their constructor.
  		if ( ( protoA === null && protoB === Object.prototype ) ||
  				( protoB === null && protoA === Object.prototype ) ) {
  			return true;
  		}
  
  		return false;
  	}
  
  	function getRegExpFlags( regexp ) {
  		return "flags" in regexp ? regexp.flags : regexp.toString().match( /[gimuy]*$/ )[ 0 ];
  	}
  
  	var callbacks = {
  		"string": useStrictEquality,
  		"boolean": useStrictEquality,
  		"number": useStrictEquality,
  		"null": useStrictEquality,
  		"undefined": useStrictEquality,
  		"symbol": useStrictEquality,
  		"date": useStrictEquality,
  
  		"nan": function() {
  			return true;
  		},
  
  		"regexp": function( b, a ) {
  			return a.source === b.source &&
  
  				// Include flags in the comparison
  				getRegExpFlags( a ) === getRegExpFlags( b );
  		},
  
  		// - skip when the property is a method of an instance (OOP)
  		// - abort otherwise,
  		// initial === would have catch identical references anyway
  		"function": function() {
  			var caller = callers[ callers.length - 1 ];
  			return caller !== Object && typeof caller !== "undefined";
  		},
  
  		"array": function( b, a ) {
  			var i, j, len, loop, aCircular, bCircular;
  
  			len = a.length;
  			if ( len !== b.length ) {
  
  				// Safe and faster
  				return false;
  			}
  
  			// Track reference to avoid circular references
  			parents.push( a );
  			parentsB.push( b );
  			for ( i = 0; i < len; i++ ) {
  				loop = false;
  				for ( j = 0; j < parents.length; j++ ) {
  					aCircular = parents[ j ] === a[ i ];
  					bCircular = parentsB[ j ] === b[ i ];
  					if ( aCircular || bCircular ) {
  						if ( a[ i ] === b[ i ] || aCircular && bCircular ) {
  							loop = true;
  						} else {
  							parents.pop();
  							parentsB.pop();
  							return false;
  						}
  					}
  				}
  				if ( !loop && !innerEquiv( a[ i ], b[ i ] ) ) {
  					parents.pop();
  					parentsB.pop();
  					return false;
  				}
  			}
  			parents.pop();
  			parentsB.pop();
  			return true;
  		},
  
  		"set": function( b, a ) {
  			var innerEq,
  				outerEq = true;
  
  			if ( a.size !== b.size ) {
  				return false;
  			}
  
  			a.forEach( function( aVal ) {
  				innerEq = false;
  
  				b.forEach( function( bVal ) {
  					if ( innerEquiv( bVal, aVal ) ) {
  						innerEq = true;
  					}
  				} );
  
  				if ( !innerEq ) {
  					outerEq = false;
  				}
  			} );
  
  			return outerEq;
  		},
  
  		"map": function( b, a ) {
  			var innerEq,
  				outerEq = true;
  
  			if ( a.size !== b.size ) {
  				return false;
  			}
  
  			a.forEach( function( aVal, aKey ) {
  				innerEq = false;
  
  				b.forEach( function( bVal, bKey ) {
  					if ( innerEquiv( [ bVal, bKey ], [ aVal, aKey ] ) ) {
  						innerEq = true;
  					}
  				} );
  
  				if ( !innerEq ) {
  					outerEq = false;
  				}
  			} );
  
  			return outerEq;
  		},
  
  		"object": function( b, a ) {
  			var i, j, loop, aCircular, bCircular;
  
  			// Default to true
  			var eq = true;
  			var aProperties = [];
  			var bProperties = [];
  
  			if ( compareConstructors( a, b ) === false ) {
  				return false;
  			}
  
  			// Stack constructor before traversing properties
  			callers.push( a.constructor );
  
  			// Track reference to avoid circular references
  			parents.push( a );
  			parentsB.push( b );
  
  			// Be strict: don't ensure hasOwnProperty and go deep
  			for ( i in a ) {
  				loop = false;
  				for ( j = 0; j < parents.length; j++ ) {
  					aCircular = parents[ j ] === a[ i ];
  					bCircular = parentsB[ j ] === b[ i ];
  					if ( aCircular || bCircular ) {
  						if ( a[ i ] === b[ i ] || aCircular && bCircular ) {
  							loop = true;
  						} else {
  							eq = false;
  							break;
  						}
  					}
  				}
  				aProperties.push( i );
  				if ( !loop && !innerEquiv( a[ i ], b[ i ] ) ) {
  					eq = false;
  					break;
  				}
  			}
  
  			parents.pop();
  			parentsB.pop();
  
  			// Unstack, we are done
  			callers.pop();
  
  			for ( i in b ) {
  
  				// Collect b's properties
  				bProperties.push( i );
  			}
  
  			// Ensures identical properties name
  			return eq && innerEquiv( aProperties.sort(), bProperties.sort() );
  		}
  	};
  
  	function typeEquiv( a, b ) {
  		var type = QUnit.objectType( a );
  		return QUnit.objectType( b ) === type && callbacks[ type ]( b, a );
  	}
  
  	// The real equiv function
  	function innerEquiv( a, b ) {
  
  		// We're done when there's nothing more to compare
  		if ( arguments.length < 2 ) {
  			return true;
  		}
  
  		// Require type-specific equality
  		return ( a === b || typeEquiv( a, b ) ) &&
  
  			// ...across all consecutive argument pairs
  			( arguments.length === 2 || innerEquiv.apply( this, [].slice.call( arguments, 1 ) ) );
  	}
  
  	return innerEquiv;
  }() );
  
  // Based on jsDump by Ariel Flesler
  // http://flesler.blogspot.com/2008/05/jsdump-pretty-dump-of-any-javascript.html
  QUnit.dump = ( function() {
  	function quote( str ) {
  		return "\"" + str.toString().replace( /\\/g, "\\\\" ).replace( /"/g, "\\\"" ) + "\"";
  	}
  	function literal( o ) {
  		return o + "";
  	}
  	function join( pre, arr, post ) {
  		var s = dump.separator(),
  			base = dump.indent(),
  			inner = dump.indent( 1 );
  		if ( arr.join ) {
  			arr = arr.join( "," + s + inner );
  		}
  		if ( !arr ) {
  			return pre + post;
  		}
  		return [ pre, inner + arr, base + post ].join( s );
  	}
  	function array( arr, stack ) {
  		var i = arr.length,
  			ret = new Array( i );
  
  		if ( dump.maxDepth && dump.depth > dump.maxDepth ) {
  			return "[object Array]";
  		}
  
  		this.up();
  		while ( i-- ) {
  			ret[ i ] = this.parse( arr[ i ], undefined, stack );
  		}
  		this.down();
  		return join( "[", ret, "]" );
  	}
  
  	function isArray( obj ) {
  		return (
  
  			//Native Arrays
  			toString.call( obj ) === "[object Array]" ||
  
  			// NodeList objects
  			( typeof obj.length === "number" && obj.item !== undefined ) &&
  			( obj.length ?
  				obj.item( 0 ) === obj[ 0 ] :
  				( obj.item( 0 ) === null && obj[ 0 ] === undefined )
  			)
  		);
  	}
  
  	var reName = /^function (\w+)/,
  		dump = {
  
  			// The objType is used mostly internally, you can fix a (custom) type in advance
  			parse: function( obj, objType, stack ) {
  				stack = stack || [];
  				var res, parser, parserType,
  					inStack = inArray( obj, stack );
  
  				if ( inStack !== -1 ) {
  					return "recursion(" + ( inStack - stack.length ) + ")";
  				}
  
  				objType = objType || this.typeOf( obj  );
  				parser = this.parsers[ objType ];
  				parserType = typeof parser;
  
  				if ( parserType === "function" ) {
  					stack.push( obj );
  					res = parser.call( this, obj, stack );
  					stack.pop();
  					return res;
  				}
  				return ( parserType === "string" ) ? parser : this.parsers.error;
  			},
  			typeOf: function( obj ) {
  				var type;
  
  				if ( obj === null ) {
  					type = "null";
  				} else if ( typeof obj === "undefined" ) {
  					type = "undefined";
  				} else if ( QUnit.is( "regexp", obj ) ) {
  					type = "regexp";
  				} else if ( QUnit.is( "date", obj ) ) {
  					type = "date";
  				} else if ( QUnit.is( "function", obj ) ) {
  					type = "function";
  				} else if ( obj.setInterval !== undefined &&
  						obj.document !== undefined &&
  						obj.nodeType === undefined ) {
  					type = "window";
  				} else if ( obj.nodeType === 9 ) {
  					type = "document";
  				} else if ( obj.nodeType ) {
  					type = "node";
  				} else if ( isArray( obj ) ) {
  					type = "array";
  				} else if ( obj.constructor === Error.prototype.constructor ) {
  					type = "error";
  				} else {
  					type = typeof obj;
  				}
  				return type;
  			},
  
  			separator: function() {
  				return this.multiline ? this.HTML ? "<br />" : "\n" : this.HTML ? "&#160;" : " ";
  			},
  
  			// Extra can be a number, shortcut for increasing-calling-decreasing
  			indent: function( extra ) {
  				if ( !this.multiline ) {
  					return "";
  				}
  				var chr = this.indentChar;
  				if ( this.HTML ) {
  					chr = chr.replace( /\t/g, "   " ).replace( / /g, "&#160;" );
  				}
  				return new Array( this.depth + ( extra || 0 ) ).join( chr );
  			},
  			up: function( a ) {
  				this.depth += a || 1;
  			},
  			down: function( a ) {
  				this.depth -= a || 1;
  			},
  			setParser: function( name, parser ) {
  				this.parsers[ name ] = parser;
  			},
  
  			// The next 3 are exposed so you can use them
  			quote: quote,
  			literal: literal,
  			join: join,
  			depth: 1,
  			maxDepth: QUnit.config.maxDepth,
  
  			// This is the list of parsers, to modify them, use dump.setParser
  			parsers: {
  				window: "[Window]",
  				document: "[Document]",
  				error: function( error ) {
  					return "Error(\"" + error.message + "\")";
  				},
  				unknown: "[Unknown]",
  				"null": "null",
  				"undefined": "undefined",
  				"function": function( fn ) {
  					var ret = "function",
  
  						// Functions never have name in IE
  						name = "name" in fn ? fn.name : ( reName.exec( fn ) || [] )[ 1 ];
  
  					if ( name ) {
  						ret += " " + name;
  					}
  					ret += "(";
  
  					ret = [ ret, dump.parse( fn, "functionArgs" ), "){" ].join( "" );
  					return join( ret, dump.parse( fn, "functionCode" ), "}" );
  				},
  				array: array,
  				nodelist: array,
  				"arguments": array,
  				object: function( map, stack ) {
  					var keys, key, val, i, nonEnumerableProperties,
  						ret = [];
  
  					if ( dump.maxDepth && dump.depth > dump.maxDepth ) {
  						return "[object Object]";
  					}
  
  					dump.up();
  					keys = [];
  					for ( key in map ) {
  						keys.push( key );
  					}
  
  					// Some properties are not always enumerable on Error objects.
  					nonEnumerableProperties = [ "message", "name" ];
  					for ( i in nonEnumerableProperties ) {
  						key = nonEnumerableProperties[ i ];
  						if ( key in map && inArray( key, keys ) < 0 ) {
  							keys.push( key );
  						}
  					}
  					keys.sort();
  					for ( i = 0; i < keys.length; i++ ) {
  						key = keys[ i ];
  						val = map[ key ];
  						ret.push( dump.parse( key, "key" ) + ": " +
  							dump.parse( val, undefined, stack ) );
  					}
  					dump.down();
  					return join( "{", ret, "}" );
  				},
  				node: function( node ) {
  					var len, i, val,
  						open = dump.HTML ? "&lt;" : "<",
  						close = dump.HTML ? "&gt;" : ">",
  						tag = node.nodeName.toLowerCase(),
  						ret = open + tag,
  						attrs = node.attributes;
  
  					if ( attrs ) {
  						for ( i = 0, len = attrs.length; i < len; i++ ) {
  							val = attrs[ i ].nodeValue;
  
  							// IE6 includes all attributes in .attributes, even ones not explicitly
  							// set. Those have values like undefined, null, 0, false, "" or
  							// "inherit".
  							if ( val && val !== "inherit" ) {
  								ret += " " + attrs[ i ].nodeName + "=" +
  									dump.parse( val, "attribute" );
  							}
  						}
  					}
  					ret += close;
  
  					// Show content of TextNode or CDATASection
  					if ( node.nodeType === 3 || node.nodeType === 4 ) {
  						ret += node.nodeValue;
  					}
  
  					return ret + open + "/" + tag + close;
  				},
  
  				// Function calls it internally, it's the arguments part of the function
  				functionArgs: function( fn ) {
  					var args,
  						l = fn.length;
  
  					if ( !l ) {
  						return "";
  					}
  
  					args = new Array( l );
  					while ( l-- ) {
  
  						// 97 is 'a'
  						args[ l ] = String.fromCharCode( 97 + l );
  					}
  					return " " + args.join( ", " ) + " ";
  				},
  
  				// Object calls it internally, the key part of an item in a map
  				key: quote,
  
  				// Function calls it internally, it's the content of the function
  				functionCode: "[code]",
  
  				// Node calls it internally, it's a html attribute value
  				attribute: quote,
  				string: quote,
  				date: quote,
  				regexp: literal,
  				number: literal,
  				"boolean": literal,
  				symbol: function( sym ) {
  					return sym.toString();
  				}
  			},
  
  			// If true, entities are escaped ( <, >, \t, space and \n )
  			HTML: false,
  
  			// Indentation unit
  			indentChar: "  ",
  
  			// If true, items in a collection, are separated by a \n, else just a space.
  			multiline: true
  		};
  
  	return dump;
  }() );
  
  // Back compat
  QUnit.jsDump = QUnit.dump;
  
  function applyDeprecated( name ) {
  	return function() {
  		throw new Error(
  			name + " is removed in QUnit 2.0.\n" +
  			"Details in our upgrade guide at https://qunitjs.com/upgrade-guide-2.x/"
  		);
  	};
  }
  
  Object.keys( Assert.prototype ).forEach( function( key ) {
  	QUnit[ key ] = applyDeprecated( "`QUnit." + key + "`" );
  } );
  
  QUnit.asyncTest = function() {
  	throw new Error(
  		"asyncTest is removed in QUnit 2.0, use QUnit.test() with assert.async() instead.\n" +
  		"Details in our upgrade guide at https://qunitjs.com/upgrade-guide-2.x/"
  	);
  };
  
  QUnit.stop = function() {
  	throw new Error(
  		"QUnit.stop is removed in QUnit 2.0, use QUnit.test() with assert.async() instead.\n" +
  		"Details in our upgrade guide at https://qunitjs.com/upgrade-guide-2.x/"
  	);
  };
  
  function resetThrower() {
  	throw new Error(
  		"QUnit.reset is removed in QUnit 2.0 without replacement.\n" +
  		"Details in our upgrade guide at https://qunitjs.com/upgrade-guide-2.x/"
  	);
  }
  
  Object.defineProperty( QUnit, "reset", {
  	get: function() {
  		return resetThrower;
  	},
  	set: resetThrower
  } );
  
  if ( defined.document ) {
  	if ( window.QUnit ) {
  		throw new Error( "QUnit has already been defined." );
  	}
  
  	[
  		"test",
  		"module",
  		"expect",
  		"start",
  		"ok",
  		"notOk",
  		"equal",
  		"notEqual",
  		"propEqual",
  		"notPropEqual",
  		"deepEqual",
  		"notDeepEqual",
  		"strictEqual",
  		"notStrictEqual",
  		"throws",
  		"raises"
  	].forEach( function( key ) {
  		window[ key ] = applyDeprecated( "The global `" + key + "`" );
  	} );
  
  	window.QUnit = QUnit;
  }
  
  // For nodejs
  if ( typeof module !== "undefined" && module && module.exports ) {
  	module.exports = QUnit;
  
  	// For consistency with CommonJS environments' exports
  	module.exports.QUnit = QUnit;
  }
  
  // For CommonJS with exports, but without module.exports, like Rhino
  if ( typeof exports !== "undefined" && exports ) {
  	exports.QUnit = QUnit;
  }
  
  if ( typeof define === "function" && define.amd ) {
  	define( function() {
  		return QUnit;
  	} );
  	QUnit.config.autostart = false;
  }
  
  // Get a reference to the global object, like window in browsers
  }( ( function() {
  	return this;
  }() ) ) );
  
  ( function() {
  
  if ( typeof window === "undefined" || !window.document ) {
  	return;
  }
  
  var config = QUnit.config,
  	hasOwn = Object.prototype.hasOwnProperty;
  
  // Stores fixture HTML for resetting later
  function storeFixture() {
  
  	// Avoid overwriting user-defined values
  	if ( hasOwn.call( config, "fixture" ) ) {
  		return;
  	}
  
  	var fixture = document.getElementById( "qunit-fixture" );
  	if ( fixture ) {
  		config.fixture = fixture.innerHTML;
  	}
  }
  
  QUnit.begin( storeFixture );
  
  // Resets the fixture DOM element if available.
  function resetFixture() {
  	if ( config.fixture == null ) {
  		return;
  	}
  
  	var fixture = document.getElementById( "qunit-fixture" );
  	if ( fixture ) {
  		fixture.innerHTML = config.fixture;
  	}
  }
  
  QUnit.testStart( resetFixture );
  
  }() );
  
  ( function() {
  
  // Only interact with URLs via window.location
  var location = typeof window !== "undefined" && window.location;
  if ( !location ) {
  	return;
  }
  
  var urlParams = getUrlParams();
  
  QUnit.urlParams = urlParams;
  
  // Match module/test by inclusion in an array
  QUnit.config.moduleId = [].concat( urlParams.moduleId || [] );
  QUnit.config.testId = [].concat( urlParams.testId || [] );
  
  // Exact case-insensitive match of the module name
  QUnit.config.module = urlParams.module;
  
  // Regular expression or case-insenstive substring match against "moduleName: testName"
  QUnit.config.filter = urlParams.filter;
  
  // Test order randomization
  if ( urlParams.seed === true ) {
  
  	// Generate a random seed if the option is specified without a value
  	QUnit.config.seed = Math.random().toString( 36 ).slice( 2 );
  } else if ( urlParams.seed ) {
  	QUnit.config.seed = urlParams.seed;
  }
  
  // Add URL-parameter-mapped config values with UI form rendering data
  QUnit.config.urlConfig.push(
  	{
  		id: "hidepassed",
  		label: "Hide passed tests",
  		tooltip: "Only show tests and assertions that fail. Stored as query-strings."
  	},
  	{
  		id: "noglobals",
  		label: "Check for Globals",
  		tooltip: "Enabling this will test if any test introduces new properties on the " +
  			"global object (`window` in Browsers). Stored as query-strings."
  	},
  	{
  		id: "notrycatch",
  		label: "No try-catch",
  		tooltip: "Enabling this will run tests outside of a try-catch block. Makes debugging " +
  			"exceptions in IE reasonable. Stored as query-strings."
  	}
  );
  
  QUnit.begin( function() {
  	var i, option,
  		urlConfig = QUnit.config.urlConfig;
  
  	for ( i = 0; i < urlConfig.length; i++ ) {
  
  		// Options can be either strings or objects with nonempty "id" properties
  		option = QUnit.config.urlConfig[ i ];
  		if ( typeof option !== "string" ) {
  			option = option.id;
  		}
  
  		if ( QUnit.config[ option ] === undefined ) {
  			QUnit.config[ option ] = urlParams[ option ];
  		}
  	}
  } );
  
  function getUrlParams() {
  	var i, param, name, value;
  	var urlParams = {};
  	var params = location.search.slice( 1 ).split( "&" );
  	var length = params.length;
  
  	for ( i = 0; i < length; i++ ) {
  		if ( params[ i ] ) {
  			param = params[ i ].split( "=" );
  			name = decodeQueryParam( param[ 0 ] );
  
  			// Allow just a key to turn on a flag, e.g., test.html?noglobals
  			value = param.length === 1 ||
  				decodeQueryParam( param.slice( 1 ).join( "=" ) ) ;
  			if ( urlParams[ name ] ) {
  				urlParams[ name ] = [].concat( urlParams[ name ], value );
  			} else {
  				urlParams[ name ] = value;
  			}
  		}
  	}
  
  	return urlParams;
  }
  
  function decodeQueryParam( param ) {
  	return decodeURIComponent( param.replace( /\+/g, "%20" ) );
  }
  
  // Don't load the HTML Reporter on non-browser environments
  if ( typeof window === "undefined" || !window.document ) {
  	return;
  }
  
  QUnit.init = function() {
  	throw new Error(
  		"QUnit.init is removed in QUnit 2.0, use QUnit.test() with assert.async() instead.\n" +
  		"Details in our upgrade guide at https://qunitjs.com/upgrade-guide-2.x/"
  	);
  };
  
  var config = QUnit.config,
  	document = window.document,
  	collapseNext = false,
  	hasOwn = Object.prototype.hasOwnProperty,
  	unfilteredUrl = setUrl( { filter: undefined, module: undefined,
  		moduleId: undefined, testId: undefined } ),
  	defined = {
  		sessionStorage: ( function() {
  			var x = "qunit-test-string";
  			try {
  				sessionStorage.setItem( x, x );
  				sessionStorage.removeItem( x );
  				return true;
  			} catch ( e ) {
  				return false;
  			}
  		}() )
  	},
  	modulesList = [];
  
  // Escape text for attribute or text content.
  function escapeText( s ) {
  	if ( !s ) {
  		return "";
  	}
  	s = s + "";
  
  	// Both single quotes and double quotes (for attributes)
  	return s.replace( /['"<>&]/g, function( s ) {
  		switch ( s ) {
  		case "'":
  			return "&#039;";
  		case "\"":
  			return "&quot;";
  		case "<":
  			return "&lt;";
  		case ">":
  			return "&gt;";
  		case "&":
  			return "&amp;";
  		}
  	} );
  }
  
  function addEvent( elem, type, fn ) {
  	elem.addEventListener( type, fn, false );
  }
  
  function removeEvent( elem, type, fn ) {
  	elem.removeEventListener( type, fn, false );
  }
  
  function addEvents( elems, type, fn ) {
  	var i = elems.length;
  	while ( i-- ) {
  		addEvent( elems[ i ], type, fn );
  	}
  }
  
  function hasClass( elem, name ) {
  	return ( " " + elem.className + " " ).indexOf( " " + name + " " ) >= 0;
  }
  
  function addClass( elem, name ) {
  	if ( !hasClass( elem, name ) ) {
  		elem.className += ( elem.className ? " " : "" ) + name;
  	}
  }
  
  function toggleClass( elem, name, force ) {
  	if ( force || typeof force === "undefined" && !hasClass( elem, name ) ) {
  		addClass( elem, name );
  	} else {
  		removeClass( elem, name );
  	}
  }
  
  function removeClass( elem, name ) {
  	var set = " " + elem.className + " ";
  
  	// Class name may appear multiple times
  	while ( set.indexOf( " " + name + " " ) >= 0 ) {
  		set = set.replace( " " + name + " ", " " );
  	}
  
  	// Trim for prettiness
  	elem.className = typeof set.trim === "function" ? set.trim() : set.replace( /^\s+|\s+$/g, "" );
  }
  
  function id( name ) {
  	return document.getElementById && document.getElementById( name );
  }
  
  function interceptNavigation( ev ) {
  	applyUrlParams();
  
  	if ( ev && ev.preventDefault ) {
  		ev.preventDefault();
  	}
  
  	return false;
  }
  
  function getUrlConfigHtml() {
  	var i, j, val,
  		escaped, escapedTooltip,
  		selection = false,
  		urlConfig = config.urlConfig,
  		urlConfigHtml = "";
  
  	for ( i = 0; i < urlConfig.length; i++ ) {
  
  		// Options can be either strings or objects with nonempty "id" properties
  		val = config.urlConfig[ i ];
  		if ( typeof val === "string" ) {
  			val = {
  				id: val,
  				label: val
  			};
  		}
  
  		escaped = escapeText( val.id );
  		escapedTooltip = escapeText( val.tooltip );
  
  		if ( !val.value || typeof val.value === "string" ) {
  			urlConfigHtml += "<label for='qunit-urlconfig-" + escaped +
  				"' title='" + escapedTooltip + "'><input id='qunit-urlconfig-" + escaped +
  				"' name='" + escaped + "' type='checkbox'" +
  				( val.value ? " value='" + escapeText( val.value ) + "'" : "" ) +
  				( config[ val.id ] ? " checked='checked'" : "" ) +
  				" title='" + escapedTooltip + "' />" + escapeText( val.label ) + "</label>";
  		} else {
  			urlConfigHtml += "<label for='qunit-urlconfig-" + escaped +
  				"' title='" + escapedTooltip + "'>" + val.label +
  				": </label><select id='qunit-urlconfig-" + escaped +
  				"' name='" + escaped + "' title='" + escapedTooltip + "'><option></option>";
  
  			if ( QUnit.is( "array", val.value ) ) {
  				for ( j = 0; j < val.value.length; j++ ) {
  					escaped = escapeText( val.value[ j ] );
  					urlConfigHtml += "<option value='" + escaped + "'" +
  						( config[ val.id ] === val.value[ j ] ?
  							( selection = true ) && " selected='selected'" : "" ) +
  						">" + escaped + "</option>";
  				}
  			} else {
  				for ( j in val.value ) {
  					if ( hasOwn.call( val.value, j ) ) {
  						urlConfigHtml += "<option value='" + escapeText( j ) + "'" +
  							( config[ val.id ] === j ?
  								( selection = true ) && " selected='selected'" : "" ) +
  							">" + escapeText( val.value[ j ] ) + "</option>";
  					}
  				}
  			}
  			if ( config[ val.id ] && !selection ) {
  				escaped = escapeText( config[ val.id ] );
  				urlConfigHtml += "<option value='" + escaped +
  					"' selected='selected' disabled='disabled'>" + escaped + "</option>";
  			}
  			urlConfigHtml += "</select>";
  		}
  	}
  
  	return urlConfigHtml;
  }
  
  // Handle "click" events on toolbar checkboxes and "change" for select menus.
  // Updates the URL with the new state of `config.urlConfig` values.
  function toolbarChanged() {
  	var updatedUrl, value, tests,
  		field = this,
  		params = {};
  
  	// Detect if field is a select menu or a checkbox
  	if ( "selectedIndex" in field ) {
  		value = field.options[ field.selectedIndex ].value || undefined;
  	} else {
  		value = field.checked ? ( field.defaultValue || true ) : undefined;
  	}
  
  	params[ field.name ] = value;
  	updatedUrl = setUrl( params );
  
  	// Check if we can apply the change without a page refresh
  	if ( "hidepassed" === field.name && "replaceState" in window.history ) {
  		QUnit.urlParams[ field.name ] = value;
  		config[ field.name ] = value || false;
  		tests = id( "qunit-tests" );
  		if ( tests ) {
  			toggleClass( tests, "hidepass", value || false );
  		}
  		window.history.replaceState( null, "", updatedUrl );
  	} else {
  		window.location = updatedUrl;
  	}
  }
  
  function setUrl( params ) {
  	var key, arrValue, i,
  		querystring = "?",
  		location = window.location;
  
  	params = QUnit.extend( QUnit.extend( {}, QUnit.urlParams ), params );
  
  	for ( key in params ) {
  
  		// Skip inherited or undefined properties
  		if ( hasOwn.call( params, key ) && params[ key ] !== undefined ) {
  
  			// Output a parameter for each value of this key (but usually just one)
  			arrValue = [].concat( params[ key ] );
  			for ( i = 0; i < arrValue.length; i++ ) {
  				querystring += encodeURIComponent( key );
  				if ( arrValue[ i ] !== true ) {
  					querystring += "=" + encodeURIComponent( arrValue[ i ] );
  				}
  				querystring += "&";
  			}
  		}
  	}
  	return location.protocol + "//" + location.host +
  		location.pathname + querystring.slice( 0, -1 );
  }
  
  function applyUrlParams() {
  	var i,
  		selectedModules = [],
  		modulesList = id( "qunit-modulefilter-dropdown-list" ).getElementsByTagName( "input" ),
  		filter = id( "qunit-filter-input" ).value;
  
  	for ( i = 0; i < modulesList.length; i++ )  {
  		if ( modulesList[ i ].checked ) {
  			selectedModules.push( modulesList[ i ].value );
  		}
  	}
  
  	window.location = setUrl( {
  		filter: ( filter === "" ) ? undefined : filter,
  		moduleId: ( selectedModules.length === 0 ) ? undefined : selectedModules,
  
  		// Remove module and testId filter
  		module: undefined,
  		testId: undefined
  	} );
  }
  
  function toolbarUrlConfigContainer() {
  	var urlConfigContainer = document.createElement( "span" );
  
  	urlConfigContainer.innerHTML = getUrlConfigHtml();
  	addClass( urlConfigContainer, "qunit-url-config" );
  
  	addEvents( urlConfigContainer.getElementsByTagName( "input" ), "change", toolbarChanged );
  	addEvents( urlConfigContainer.getElementsByTagName( "select" ), "change", toolbarChanged );
  
  	return urlConfigContainer;
  }
  
  function toolbarLooseFilter() {
  	var filter = document.createElement( "form" ),
  		label = document.createElement( "label" ),
  		input = document.createElement( "input" ),
  		button = document.createElement( "button" );
  
  	addClass( filter, "qunit-filter" );
  
  	label.innerHTML = "Filter: ";
  
  	input.type = "text";
  	input.value = config.filter || "";
  	input.name = "filter";
  	input.id = "qunit-filter-input";
  
  	button.innerHTML = "Go";
  
  	label.appendChild( input );
  
  	filter.appendChild( label );
  	filter.appendChild( document.createTextNode( " " ) );
  	filter.appendChild( button );
  	addEvent( filter, "submit", interceptNavigation );
  
  	return filter;
  }
  
  function moduleListHtml () {
  	var i, checked,
  		html = "";
  
  	for ( i = 0; i < config.modules.length; i++ ) {
  		if ( config.modules[ i ].name !== "" ) {
  			checked = config.moduleId.indexOf( config.modules[ i ].moduleId ) > -1;
  			html += "<li><label class='clickable" + ( checked ? " checked" : "" ) +
  				"'><input type='checkbox' " + "value='" + config.modules[ i ].moduleId + "'" +
  				( checked ? " checked='checked'" : "" ) + " />" +
  				escapeText( config.modules[ i ].name ) + "</label></li>";
  		}
  	}
  
  	return html;
  }
  
  function toolbarModuleFilter () {
  	var allCheckbox, commit, reset,
  		moduleFilter = document.createElement( "form" ),
  		label = document.createElement( "label" ),
  		moduleSearch = document.createElement( "input" ),
  		dropDown = document.createElement( "div" ),
  		actions = document.createElement( "span" ),
  		dropDownList = document.createElement( "ul" ),
  		dirty = false;
  
  	moduleSearch.id = "qunit-modulefilter-search";
  	addEvent( moduleSearch, "input", searchInput );
  	addEvent( moduleSearch, "input", searchFocus );
  	addEvent( moduleSearch, "focus", searchFocus );
  	addEvent( moduleSearch, "click", searchFocus );
  
  	label.id = "qunit-modulefilter-search-container";
  	label.innerHTML = "Module: ";
  	label.appendChild( moduleSearch );
  
  	actions.id = "qunit-modulefilter-actions";
  	actions.innerHTML =
  		"<button style='display:none'>Apply</button>" +
  		"<button type='reset' style='display:none'>Reset</button>" +
  		"<label class='clickable" +
  		( config.moduleId.length ? "" : " checked" ) +
  		"'><input type='checkbox'" + ( config.moduleId.length ? "" : " checked='checked'" ) +
  		">All modules</label>";
  	allCheckbox = actions.lastChild.firstChild;
  	commit = actions.firstChild;
  	reset = commit.nextSibling;
  	addEvent( commit, "click", applyUrlParams );
  
  	dropDownList.id = "qunit-modulefilter-dropdown-list";
  	dropDownList.innerHTML = moduleListHtml();
  
  	dropDown.id = "qunit-modulefilter-dropdown";
  	dropDown.style.display = "none";
  	dropDown.appendChild( actions );
  	dropDown.appendChild( dropDownList );
  	addEvent( dropDown, "change", selectionChange );
  	selectionChange();
  
  	moduleFilter.id = "qunit-modulefilter";
  	moduleFilter.appendChild( label );
  	moduleFilter.appendChild( dropDown ) ;
  	addEvent( moduleFilter, "submit", interceptNavigation );
  	addEvent( moduleFilter, "reset", function() {
  
  		// Let the reset happen, then update styles
  		window.setTimeout( selectionChange );
  	} );
  
  	// Enables show/hide for the dropdown
  	function searchFocus() {
  		if ( dropDown.style.display !== "none" ) {
  			return;
  		}
  
  		dropDown.style.display = "block";
  		addEvent( document, "click", hideHandler );
  		addEvent( document, "keydown", hideHandler );
  
  		// Hide on Escape keydown or outside-container click
  		function hideHandler( e )  {
  			var inContainer = moduleFilter.contains( e.target );
  
  			if ( e.keyCode === 27 || !inContainer ) {
  				if ( e.keyCode === 27 && inContainer ) {
  					moduleSearch.focus();
  				}
  				dropDown.style.display = "none";
  				removeEvent( document, "click", hideHandler );
  				removeEvent( document, "keydown", hideHandler );
  				moduleSearch.value = "";
  				searchInput();
  			}
  		}
  	}
  
  	// Processes module search box input
  	function searchInput() {
  		var i, item,
  			searchText = moduleSearch.value.toLowerCase(),
  			listItems = dropDownList.children;
  
  		for ( i = 0; i < listItems.length; i++ ) {
  			item = listItems[ i ];
  			if ( !searchText || item.textContent.toLowerCase().indexOf( searchText ) > -1 ) {
  				item.style.display = "";
  			} else {
  				item.style.display = "none";
  			}
  		}
  	}
  
  	// Processes selection changes
  	function selectionChange( evt ) {
  		var i, item,
  			checkbox = evt && evt.target || allCheckbox,
  			modulesList = dropDownList.getElementsByTagName( "input" ),
  			selectedNames = [];
  
  		toggleClass( checkbox.parentNode, "checked", checkbox.checked );
  
  		dirty = false;
  		if ( checkbox.checked && checkbox !== allCheckbox ) {
  		   allCheckbox.checked = false;
  		   removeClass( allCheckbox.parentNode, "checked" );
  		}
  		for ( i = 0; i < modulesList.length; i++ )  {
  			item = modulesList[ i ];
  			if ( !evt ) {
  				toggleClass( item.parentNode, "checked", item.checked );
  			} else if ( checkbox === allCheckbox && checkbox.checked ) {
  				item.checked = false;
  				removeClass( item.parentNode, "checked" );
  			}
  			dirty = dirty || ( item.checked !== item.defaultChecked );
  			if ( item.checked ) {
  				selectedNames.push( item.parentNode.textContent );
  			}
  		}
  
  		commit.style.display = reset.style.display = dirty ? "" : "none";
  		moduleSearch.placeholder = selectedNames.join( ", " ) || allCheckbox.parentNode.textContent;
  		moduleSearch.title = "Type to filter list. Current selection:\n" +
  			( selectedNames.join( "\n" ) || allCheckbox.parentNode.textContent );
  	}
  
  	return moduleFilter;
  }
  
  function appendToolbar() {
  	var toolbar = id( "qunit-testrunner-toolbar" );
  
  	if ( toolbar ) {
  		toolbar.appendChild( toolbarUrlConfigContainer() );
  		toolbar.appendChild( toolbarModuleFilter() );
  		toolbar.appendChild( toolbarLooseFilter() );
  		toolbar.appendChild( document.createElement( "div" ) ).className = "clearfix";
  	}
  }
  
  function appendHeader() {
  	var header = id( "qunit-header" );
  
  	if ( header ) {
  		header.innerHTML = "<a href='" + escapeText( unfilteredUrl ) + "'>" + header.innerHTML +
  			"</a> ";
  	}
  }
  
  function appendBanner() {
  	var banner = id( "qunit-banner" );
  
  	if ( banner ) {
  		banner.className = "";
  	}
  }
  
  function appendTestResults() {
  	var tests = id( "qunit-tests" ),
  		result = id( "qunit-testresult" );
  
  	if ( result ) {
  		result.parentNode.removeChild( result );
  	}
  
  	if ( tests ) {
  		tests.innerHTML = "";
  		result = document.createElement( "p" );
  		result.id = "qunit-testresult";
  		result.className = "result";
  		tests.parentNode.insertBefore( result, tests );
  		result.innerHTML = "Running...<br />&#160;";
  	}
  }
  
  function appendFilteredTest() {
  	var testId = QUnit.config.testId;
  	if ( !testId || testId.length <= 0 ) {
  		return "";
  	}
  	return "<div id='qunit-filteredTest'>Rerunning selected tests: " +
  		escapeText( testId.join( ", " ) ) +
  		" <a id='qunit-clearFilter' href='" +
  		escapeText( unfilteredUrl ) +
  		"'>Run all tests</a></div>";
  }
  
  function appendUserAgent() {
  	var userAgent = id( "qunit-userAgent" );
  
  	if ( userAgent ) {
  		userAgent.innerHTML = "";
  		userAgent.appendChild(
  			document.createTextNode(
  				"QUnit " + QUnit.version + "; " + navigator.userAgent
  			)
  		);
  	}
  }
  
  function appendInterface() {
  	var qunit = id( "qunit" );
  
  	if ( qunit ) {
  		qunit.innerHTML =
  			"<h1 id='qunit-header'>" + escapeText( document.title ) + "</h1>" +
  			"<h2 id='qunit-banner'></h2>" +
  			"<div id='qunit-testrunner-toolbar'></div>" +
  			appendFilteredTest() +
  			"<h2 id='qunit-userAgent'></h2>" +
  			"<ol id='qunit-tests'></ol>";
  	}
  
  	appendHeader();
  	appendBanner();
  	appendTestResults();
  	appendUserAgent();
  	appendToolbar();
  }
  
  function appendTestsList( modules ) {
  	var i, l, x, z, test, moduleObj;
  
  	for ( i = 0, l = modules.length; i < l; i++ ) {
  		moduleObj = modules[ i ];
  
  		for ( x = 0, z = moduleObj.tests.length; x < z; x++ ) {
  			test = moduleObj.tests[ x ];
  
  			appendTest( test.name, test.testId, moduleObj.name );
  		}
  	}
  }
  
  function appendTest( name, testId, moduleName ) {
  	var title, rerunTrigger, testBlock, assertList,
  		tests = id( "qunit-tests" );
  
  	if ( !tests ) {
  		return;
  	}
  
  	title = document.createElement( "strong" );
  	title.innerHTML = getNameHtml( name, moduleName );
  
  	rerunTrigger = document.createElement( "a" );
  	rerunTrigger.innerHTML = "Rerun";
  	rerunTrigger.href = setUrl( { testId: testId } );
  
  	testBlock = document.createElement( "li" );
  	testBlock.appendChild( title );
  	testBlock.appendChild( rerunTrigger );
  	testBlock.id = "qunit-test-output-" + testId;
  
  	assertList = document.createElement( "ol" );
  	assertList.className = "qunit-assert-list";
  
  	testBlock.appendChild( assertList );
  
  	tests.appendChild( testBlock );
  }
  
  // HTML Reporter initialization and load
  QUnit.begin( function( details ) {
  	var i, moduleObj, tests;
  
  	// Sort modules by name for the picker
  	for ( i = 0; i < details.modules.length; i++ ) {
  		moduleObj = details.modules[ i ];
  		if ( moduleObj.name ) {
  			modulesList.push( moduleObj.name );
  		}
  	}
  	modulesList.sort( function( a, b ) {
  		return a.localeCompare( b );
  	} );
  
  	// Initialize QUnit elements
  	appendInterface();
  	appendTestsList( details.modules );
  	tests = id( "qunit-tests" );
  	if ( tests && config.hidepassed ) {
  		addClass( tests, "hidepass" );
  	}
  } );
  
  QUnit.done( function( details ) {
  	var i, key,
  		banner = id( "qunit-banner" ),
  		tests = id( "qunit-tests" ),
  		html = [
  			"Tests completed in ",
  			details.runtime,
  			" milliseconds.<br />",
  			"<span class='passed'>",
  			details.passed,
  			"</span> assertions of <span class='total'>",
  			details.total,
  			"</span> passed, <span class='failed'>",
  			details.failed,
  			"</span> failed."
  		].join( "" );
  
  	if ( banner ) {
  		banner.className = details.failed ? "qunit-fail" : "qunit-pass";
  	}
  
  	if ( tests ) {
  		id( "qunit-testresult" ).innerHTML = html;
  	}
  
  //	if ( config.altertitle && document.title ) {
  //
  //		// Show ✖ for good, ✔ for bad suite result in title
  //		// use escape sequences in case file gets loaded with non-utf-8-charset
  //		document.title = [
  //			( details.failed ? "\u2716" : "\u2714" ),
  //			document.title.replace( /^[\u2714\u2716] /i, "" )
  //		].join( " " );
  //	}
  
  	// Clear own sessionStorage items if all tests passed
  	if ( config.reorder && defined.sessionStorage && details.failed === 0 ) {
  		for ( i = 0; i < sessionStorage.length; i++ ) {
  			key = sessionStorage.key( i++ );
  			if ( key.indexOf( "qunit-test-" ) === 0 ) {
  				sessionStorage.removeItem( key );
  			}
  		}
  	}
  
  	// Scroll back to top to show results
  	if ( config.scrolltop && window.scrollTo ) {
  		window.scrollTo( 0, 0 );
  	}
  } );
  
  function getNameHtml( name, module ) {
  	var nameHtml = "";
  
  	if ( module ) {
  		nameHtml = "<span class='module-name'>" + escapeText( module ) + "</span>: ";
  	}
  
  	nameHtml += "<span class='test-name'>" + escapeText( name ) + "</span>";
  
  	return nameHtml;
  }
  
  QUnit.testStart( function( details ) {
  	var running, testBlock, bad;
  
  	testBlock = id( "qunit-test-output-" + details.testId );
  	if ( testBlock ) {
  		testBlock.className = "running";
  	} else {
  
  		// Report later registered tests
  		appendTest( details.name, details.testId, details.module );
  	}
  
  	running = id( "qunit-testresult" );
  	if ( running ) {
  		bad = QUnit.config.reorder && defined.sessionStorage &&
  			+sessionStorage.getItem( "qunit-test-" + details.module + "-" + details.name );
  
  		running.innerHTML = ( bad ?
  			"Rerunning previously failed test: <br />" :
  			"Running: <br />" ) +
  			getNameHtml( details.name, details.module );
  	}
  
  } );
  
  function stripHtml( string ) {
  
  	// Strip tags, html entity and whitespaces
  	return string.replace( /<\/?[^>]+(>|$)/g, "" ).replace( /\&quot;/g, "" ).replace( /\s+/g, "" );
  }
  
  QUnit.log( function( details ) {
  	var assertList, assertLi,
  		message, expected, actual, diff,
  		showDiff = false,
  		testItem = id( "qunit-test-output-" + details.testId );
  
  	if ( !testItem ) {
  		return;
  	}
  
  	message = escapeText( details.message ) || ( details.result ? "okay" : "failed" );
  	message = "<span class='test-message'>" + message + "</span>";
  	message += "<span class='runtime'>@ " + details.runtime + " ms</span>";
  
  	// The pushFailure doesn't provide details.expected
  	// when it calls, it's implicit to also not show expected and diff stuff
  	// Also, we need to check details.expected existence, as it can exist and be undefined
  	if ( !details.result && hasOwn.call( details, "expected" ) ) {
  		if ( details.negative ) {
  			expected = "NOT " + QUnit.dump.parse( details.expected );
  		} else {
  			expected = QUnit.dump.parse( details.expected );
  		}
  
  		actual = QUnit.dump.parse( details.actual );
  		message += "<table><tr class='test-expected'><th>Expected: </th><td><pre>" +
  			escapeText( expected ) +
  			"</pre></td></tr>";
  
  		if ( actual !== expected ) {
  
  			message += "<tr class='test-actual'><th>Result: </th><td><pre>" +
  				escapeText( actual ) + "</pre></td></tr>";
  
  			// Don't show diff if actual or expected are booleans
  			if ( !( /^(true|false)$/.test( actual ) ) &&
  					!( /^(true|false)$/.test( expected ) ) ) {
  				diff = QUnit.diff( expected, actual );
  				showDiff = stripHtml( diff ).length !==
  					stripHtml( expected ).length +
  					stripHtml( actual ).length;
  			}
  
  			// Don't show diff if expected and actual are totally different
  			if ( showDiff ) {
  				message += "<tr class='test-diff'><th>Diff: </th><td><pre>" +
  					diff + "</pre></td></tr>";
  			}
  		} else if ( expected.indexOf( "[object Array]" ) !== -1 ||
  				expected.indexOf( "[object Object]" ) !== -1 ) {
  			message += "<tr class='test-message'><th>Message: </th><td>" +
  				"Diff suppressed as the depth of object is more than current max depth (" +
  				QUnit.config.maxDepth + ").<p>Hint: Use <code>QUnit.dump.maxDepth</code> to " +
  				" run with a higher max depth or <a href='" +
  				escapeText( setUrl( { maxDepth: -1 } ) ) + "'>" +
  				"Rerun</a> without max depth.</p></td></tr>";
  		} else {
  			message += "<tr class='test-message'><th>Message: </th><td>" +
  				"Diff suppressed as the expected and actual results have an equivalent" +
  				" serialization</td></tr>";
  		}
  
  		if ( details.source ) {
  			message += "<tr class='test-source'><th>Source: </th><td><pre>" +
  				escapeText( details.source ) + "</pre></td></tr>";
  		}
  
  		message += "</table>";
  
  	// This occurs when pushFailure is set and we have an extracted stack trace
  	} else if ( !details.result && details.source ) {
  		message += "<table>" +
  			"<tr class='test-source'><th>Source: </th><td><pre>" +
  			escapeText( details.source ) + "</pre></td></tr>" +
  			"</table>";
  	}
  
  	assertList = testItem.getElementsByTagName( "ol" )[ 0 ];
  
  	assertLi = document.createElement( "li" );
  	assertLi.className = details.result ? "pass" : "fail";
  	assertLi.innerHTML = message;
  	assertList.appendChild( assertLi );
  } );
  
  QUnit.testDone( function( details ) {
  	var testTitle, time, testItem, assertList,
  		good, bad, testCounts, skipped, sourceName,
  		tests = id( "qunit-tests" );
  
  	if ( !tests ) {
  		return;
  	}
  
  	testItem = id( "qunit-test-output-" + details.testId );
  
  	assertList = testItem.getElementsByTagName( "ol" )[ 0 ];
  
  	good = details.passed;
  	bad = details.failed;
  
  	// Store result when possible
  	if ( config.reorder && defined.sessionStorage ) {
  		if ( bad ) {
  			sessionStorage.setItem( "qunit-test-" + details.module + "-" + details.name, bad );
  		} else {
  			sessionStorage.removeItem( "qunit-test-" + details.module + "-" + details.name );
  		}
  	}
  
  	if ( bad === 0 ) {
  
  		// Collapse the passing tests
  		addClass( assertList, "qunit-collapsed" );
  	} else if ( bad && config.collapse && !collapseNext ) {
  
  		// Skip collapsing the first failing test
  		collapseNext = true;
  	} else {
  
  		// Collapse remaining tests
  		addClass( assertList, "qunit-collapsed" );
  	}
  
  	// The testItem.firstChild is the test name
  	testTitle = testItem.firstChild;
  
  	testCounts = bad ?
  		"<b class='failed'>" + bad + "</b>, " + "<b class='passed'>" + good + "</b>, " :
  		"";
  
  	testTitle.innerHTML += " <b class='counts'>(" + testCounts +
  		details.assertions.length + ")</b>";
  
  	if ( details.skipped ) {
  		testItem.className = "skipped";
  		skipped = document.createElement( "em" );
  		skipped.className = "qunit-skipped-label";
  		skipped.innerHTML = "skipped";
  		testItem.insertBefore( skipped, testTitle );
  	} else {
  		addEvent( testTitle, "click", function() {
  			toggleClass( assertList, "qunit-collapsed" );
  		} );
  
  		testItem.className = bad ? "fail" : "pass";
  
  		time = document.createElement( "span" );
  		time.className = "runtime";
  		time.innerHTML = details.runtime + " ms";
  		testItem.insertBefore( time, assertList );
  	}
  
  	// Show the source of the test when showing assertions
  	if ( details.source ) {
  		sourceName = document.createElement( "p" );
  		sourceName.innerHTML = "<strong>Source: </strong>" + details.source;
  		addClass( sourceName, "qunit-source" );
  		if ( bad === 0 ) {
  			addClass( sourceName, "qunit-collapsed" );
  		}
  		addEvent( testTitle, "click", function() {
  			toggleClass( sourceName, "qunit-collapsed" );
  		} );
  		testItem.appendChild( sourceName );
  	}
  } );
  
  // Avoid readyState issue with phantomjs
  // Ref: #818
  var notPhantom = ( function( p ) {
  	return !( p && p.version && p.version.major > 0 );
  } )( window.phantom );
  
  if ( notPhantom && document.readyState === "complete" ) {
  	QUnit.load();
  } else {
  	addEvent( window, "load", QUnit.load );
  }
  
  /*
   * This file is a modified version of google-diff-match-patch's JavaScript implementation
   * (https://code.google.com/p/google-diff-match-patch/source/browse/trunk/javascript/diff_match_patch_uncompressed.js),
   * modifications are licensed as more fully set forth in LICENSE.txt.
   *
   * The original source of google-diff-match-patch is attributable and licensed as follows:
   *
   * Copyright 2006 Google Inc.
   * https://code.google.com/p/google-diff-match-patch/
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   * https://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   *
   * More Info:
   *  https://code.google.com/p/google-diff-match-patch/
   *
   * Usage: QUnit.diff(expected, actual)
   *
   */
  QUnit.diff = ( function() {
  	function DiffMatchPatch() {
  	}
  
  	//  DIFF FUNCTIONS
  
  	/**
  	 * The data structure representing a diff is an array of tuples:
  	 * [[DIFF_DELETE, 'Hello'], [DIFF_INSERT, 'Goodbye'], [DIFF_EQUAL, ' world.']]
  	 * which means: delete 'Hello', add 'Goodbye' and keep ' world.'
  	 */
  	var DIFF_DELETE = -1,
  		DIFF_INSERT = 1,
  		DIFF_EQUAL = 0;
  
  	/**
  	 * Find the differences between two texts.  Simplifies the problem by stripping
  	 * any common prefix or suffix off the texts before diffing.
  	 * @param {string} text1 Old string to be diffed.
  	 * @param {string} text2 New string to be diffed.
  	 * @param {boolean=} optChecklines Optional speedup flag. If present and false,
  	 *     then don't run a line-level diff first to identify the changed areas.
  	 *     Defaults to true, which does a faster, slightly less optimal diff.
  	 * @return {!Array.<!DiffMatchPatch.Diff>} Array of diff tuples.
  	 */
  	DiffMatchPatch.prototype.DiffMain = function( text1, text2, optChecklines ) {
  		var deadline, checklines, commonlength,
  			commonprefix, commonsuffix, diffs;
  
  		// The diff must be complete in up to 1 second.
  		deadline = ( new Date() ).getTime() + 1000;
  
  		// Check for null inputs.
  		if ( text1 === null || text2 === null ) {
  			throw new Error( "Null input. (DiffMain)" );
  		}
  
  		// Check for equality (speedup).
  		if ( text1 === text2 ) {
  			if ( text1 ) {
  				return [
  					[ DIFF_EQUAL, text1 ]
  				];
  			}
  			return [];
  		}
  
  		if ( typeof optChecklines === "undefined" ) {
  			optChecklines = true;
  		}
  
  		checklines = optChecklines;
  
  		// Trim off common prefix (speedup).
  		commonlength = this.diffCommonPrefix( text1, text2 );
  		commonprefix = text1.substring( 0, commonlength );
  		text1 = text1.substring( commonlength );
  		text2 = text2.substring( commonlength );
  
  		// Trim off common suffix (speedup).
  		commonlength = this.diffCommonSuffix( text1, text2 );
  		commonsuffix = text1.substring( text1.length - commonlength );
  		text1 = text1.substring( 0, text1.length - commonlength );
  		text2 = text2.substring( 0, text2.length - commonlength );
  
  		// Compute the diff on the middle block.
  		diffs = this.diffCompute( text1, text2, checklines, deadline );
  
  		// Restore the prefix and suffix.
  		if ( commonprefix ) {
  			diffs.unshift( [ DIFF_EQUAL, commonprefix ] );
  		}
  		if ( commonsuffix ) {
  			diffs.push( [ DIFF_EQUAL, commonsuffix ] );
  		}
  		this.diffCleanupMerge( diffs );
  		return diffs;
  	};
  
  	/**
  	 * Reduce the number of edits by eliminating operationally trivial equalities.
  	 * @param {!Array.<!DiffMatchPatch.Diff>} diffs Array of diff tuples.
  	 */
  	DiffMatchPatch.prototype.diffCleanupEfficiency = function( diffs ) {
  		var changes, equalities, equalitiesLength, lastequality,
  			pointer, preIns, preDel, postIns, postDel;
  		changes = false;
  		equalities = []; // Stack of indices where equalities are found.
  		equalitiesLength = 0; // Keeping our own length var is faster in JS.
  		/** @type {?string} */
  		lastequality = null;
  
  		// Always equal to diffs[equalities[equalitiesLength - 1]][1]
  		pointer = 0; // Index of current position.
  
  		// Is there an insertion operation before the last equality.
  		preIns = false;
  
  		// Is there a deletion operation before the last equality.
  		preDel = false;
  
  		// Is there an insertion operation after the last equality.
  		postIns = false;
  
  		// Is there a deletion operation after the last equality.
  		postDel = false;
  		while ( pointer < diffs.length ) {
  
  			// Equality found.
  			if ( diffs[ pointer ][ 0 ] === DIFF_EQUAL ) {
  				if ( diffs[ pointer ][ 1 ].length < 4 && ( postIns || postDel ) ) {
  
  					// Candidate found.
  					equalities[ equalitiesLength++ ] = pointer;
  					preIns = postIns;
  					preDel = postDel;
  					lastequality = diffs[ pointer ][ 1 ];
  				} else {
  
  					// Not a candidate, and can never become one.
  					equalitiesLength = 0;
  					lastequality = null;
  				}
  				postIns = postDel = false;
  
  			// An insertion or deletion.
  			} else {
  
  				if ( diffs[ pointer ][ 0 ] === DIFF_DELETE ) {
  					postDel = true;
  				} else {
  					postIns = true;
  				}
  
  				/*
  				 * Five types to be split:
  				 * <ins>A</ins><del>B</del>XY<ins>C</ins><del>D</del>
  				 * <ins>A</ins>X<ins>C</ins><del>D</del>
  				 * <ins>A</ins><del>B</del>X<ins>C</ins>
  				 * <ins>A</del>X<ins>C</ins><del>D</del>
  				 * <ins>A</ins><del>B</del>X<del>C</del>
  				 */
  				if ( lastequality && ( ( preIns && preDel && postIns && postDel ) ||
  						( ( lastequality.length < 2 ) &&
  						( preIns + preDel + postIns + postDel ) === 3 ) ) ) {
  
  					// Duplicate record.
  					diffs.splice(
  						equalities[ equalitiesLength - 1 ],
  						0,
  						[ DIFF_DELETE, lastequality ]
  					);
  
  					// Change second copy to insert.
  					diffs[ equalities[ equalitiesLength - 1 ] + 1 ][ 0 ] = DIFF_INSERT;
  					equalitiesLength--; // Throw away the equality we just deleted;
  					lastequality = null;
  					if ( preIns && preDel ) {
  
  						// No changes made which could affect previous entry, keep going.
  						postIns = postDel = true;
  						equalitiesLength = 0;
  					} else {
  						equalitiesLength--; // Throw away the previous equality.
  						pointer = equalitiesLength > 0 ? equalities[ equalitiesLength - 1 ] : -1;
  						postIns = postDel = false;
  					}
  					changes = true;
  				}
  			}
  			pointer++;
  		}
  
  		if ( changes ) {
  			this.diffCleanupMerge( diffs );
  		}
  	};
  
  	/**
  	 * Convert a diff array into a pretty HTML report.
  	 * @param {!Array.<!DiffMatchPatch.Diff>} diffs Array of diff tuples.
  	 * @param {integer} string to be beautified.
  	 * @return {string} HTML representation.
  	 */
  	DiffMatchPatch.prototype.diffPrettyHtml = function( diffs ) {
  		var op, data, x,
  			html = [];
  		for ( x = 0; x < diffs.length; x++ ) {
  			op = diffs[ x ][ 0 ]; // Operation (insert, delete, equal)
  			data = diffs[ x ][ 1 ]; // Text of change.
  			switch ( op ) {
  			case DIFF_INSERT:
  				html[ x ] = "<ins>" + escapeText( data ) + "</ins>";
  				break;
  			case DIFF_DELETE:
  				html[ x ] = "<del>" + escapeText( data ) + "</del>";
  				break;
  			case DIFF_EQUAL:
  				html[ x ] = "<span>" + escapeText( data ) + "</span>";
  				break;
  			}
  		}
  		return html.join( "" );
  	};
  
  	/**
  	 * Determine the common prefix of two strings.
  	 * @param {string} text1 First string.
  	 * @param {string} text2 Second string.
  	 * @return {number} The number of characters common to the start of each
  	 *     string.
  	 */
  	DiffMatchPatch.prototype.diffCommonPrefix = function( text1, text2 ) {
  		var pointermid, pointermax, pointermin, pointerstart;
  
  		// Quick check for common null cases.
  		if ( !text1 || !text2 || text1.charAt( 0 ) !== text2.charAt( 0 ) ) {
  			return 0;
  		}
  
  		// Binary search.
  		// Performance analysis: https://neil.fraser.name/news/2007/10/09/
  		pointermin = 0;
  		pointermax = Math.min( text1.length, text2.length );
  		pointermid = pointermax;
  		pointerstart = 0;
  		while ( pointermin < pointermid ) {
  			if ( text1.substring( pointerstart, pointermid ) ===
  					text2.substring( pointerstart, pointermid ) ) {
  				pointermin = pointermid;
  				pointerstart = pointermin;
  			} else {
  				pointermax = pointermid;
  			}
  			pointermid = Math.floor( ( pointermax - pointermin ) / 2 + pointermin );
  		}
  		return pointermid;
  	};
  
  	/**
  	 * Determine the common suffix of two strings.
  	 * @param {string} text1 First string.
  	 * @param {string} text2 Second string.
  	 * @return {number} The number of characters common to the end of each string.
  	 */
  	DiffMatchPatch.prototype.diffCommonSuffix = function( text1, text2 ) {
  		var pointermid, pointermax, pointermin, pointerend;
  
  		// Quick check for common null cases.
  		if ( !text1 ||
  				!text2 ||
  				text1.charAt( text1.length - 1 ) !== text2.charAt( text2.length - 1 ) ) {
  			return 0;
  		}
  
  		// Binary search.
  		// Performance analysis: https://neil.fraser.name/news/2007/10/09/
  		pointermin = 0;
  		pointermax = Math.min( text1.length, text2.length );
  		pointermid = pointermax;
  		pointerend = 0;
  		while ( pointermin < pointermid ) {
  			if ( text1.substring( text1.length - pointermid, text1.length - pointerend ) ===
  					text2.substring( text2.length - pointermid, text2.length - pointerend ) ) {
  				pointermin = pointermid;
  				pointerend = pointermin;
  			} else {
  				pointermax = pointermid;
  			}
  			pointermid = Math.floor( ( pointermax - pointermin ) / 2 + pointermin );
  		}
  		return pointermid;
  	};
  
  	/**
  	 * Find the differences between two texts.  Assumes that the texts do not
  	 * have any common prefix or suffix.
  	 * @param {string} text1 Old string to be diffed.
  	 * @param {string} text2 New string to be diffed.
  	 * @param {boolean} checklines Speedup flag.  If false, then don't run a
  	 *     line-level diff first to identify the changed areas.
  	 *     If true, then run a faster, slightly less optimal diff.
  	 * @param {number} deadline Time when the diff should be complete by.
  	 * @return {!Array.<!DiffMatchPatch.Diff>} Array of diff tuples.
  	 * @private
  	 */
  	DiffMatchPatch.prototype.diffCompute = function( text1, text2, checklines, deadline ) {
  		var diffs, longtext, shorttext, i, hm,
  			text1A, text2A, text1B, text2B,
  			midCommon, diffsA, diffsB;
  
  		if ( !text1 ) {
  
  			// Just add some text (speedup).
  			return [
  				[ DIFF_INSERT, text2 ]
  			];
  		}
  
  		if ( !text2 ) {
  
  			// Just delete some text (speedup).
  			return [
  				[ DIFF_DELETE, text1 ]
  			];
  		}
  
  		longtext = text1.length > text2.length ? text1 : text2;
  		shorttext = text1.length > text2.length ? text2 : text1;
  		i = longtext.indexOf( shorttext );
  		if ( i !== -1 ) {
  
  			// Shorter text is inside the longer text (speedup).
  			diffs = [
  				[ DIFF_INSERT, longtext.substring( 0, i ) ],
  				[ DIFF_EQUAL, shorttext ],
  				[ DIFF_INSERT, longtext.substring( i + shorttext.length ) ]
  			];
  
  			// Swap insertions for deletions if diff is reversed.
  			if ( text1.length > text2.length ) {
  				diffs[ 0 ][ 0 ] = diffs[ 2 ][ 0 ] = DIFF_DELETE;
  			}
  			return diffs;
  		}
  
  		if ( shorttext.length === 1 ) {
  
  			// Single character string.
  			// After the previous speedup, the character can't be an equality.
  			return [
  				[ DIFF_DELETE, text1 ],
  				[ DIFF_INSERT, text2 ]
  			];
  		}
  
  		// Check to see if the problem can be split in two.
  		hm = this.diffHalfMatch( text1, text2 );
  		if ( hm ) {
  
  			// A half-match was found, sort out the return data.
  			text1A = hm[ 0 ];
  			text1B = hm[ 1 ];
  			text2A = hm[ 2 ];
  			text2B = hm[ 3 ];
  			midCommon = hm[ 4 ];
  
  			// Send both pairs off for separate processing.
  			diffsA = this.DiffMain( text1A, text2A, checklines, deadline );
  			diffsB = this.DiffMain( text1B, text2B, checklines, deadline );
  
  			// Merge the results.
  			return diffsA.concat( [
  				[ DIFF_EQUAL, midCommon ]
  			], diffsB );
  		}
  
  		if ( checklines && text1.length > 100 && text2.length > 100 ) {
  			return this.diffLineMode( text1, text2, deadline );
  		}
  
  		return this.diffBisect( text1, text2, deadline );
  	};
  
  	/**
  	 * Do the two texts share a substring which is at least half the length of the
  	 * longer text?
  	 * This speedup can produce non-minimal diffs.
  	 * @param {string} text1 First string.
  	 * @param {string} text2 Second string.
  	 * @return {Array.<string>} Five element Array, containing the prefix of
  	 *     text1, the suffix of text1, the prefix of text2, the suffix of
  	 *     text2 and the common middle.  Or null if there was no match.
  	 * @private
  	 */
  	DiffMatchPatch.prototype.diffHalfMatch = function( text1, text2 ) {
  		var longtext, shorttext, dmp,
  			text1A, text2B, text2A, text1B, midCommon,
  			hm1, hm2, hm;
  
  		longtext = text1.length > text2.length ? text1 : text2;
  		shorttext = text1.length > text2.length ? text2 : text1;
  		if ( longtext.length < 4 || shorttext.length * 2 < longtext.length ) {
  			return null; // Pointless.
  		}
  		dmp = this; // 'this' becomes 'window' in a closure.
  
  		/**
  		 * Does a substring of shorttext exist within longtext such that the substring
  		 * is at least half the length of longtext?
  		 * Closure, but does not reference any external variables.
  		 * @param {string} longtext Longer string.
  		 * @param {string} shorttext Shorter string.
  		 * @param {number} i Start index of quarter length substring within longtext.
  		 * @return {Array.<string>} Five element Array, containing the prefix of
  		 *     longtext, the suffix of longtext, the prefix of shorttext, the suffix
  		 *     of shorttext and the common middle.  Or null if there was no match.
  		 * @private
  		 */
  		function diffHalfMatchI( longtext, shorttext, i ) {
  			var seed, j, bestCommon, prefixLength, suffixLength,
  				bestLongtextA, bestLongtextB, bestShorttextA, bestShorttextB;
  
  			// Start with a 1/4 length substring at position i as a seed.
  			seed = longtext.substring( i, i + Math.floor( longtext.length / 4 ) );
  			j = -1;
  			bestCommon = "";
  			while ( ( j = shorttext.indexOf( seed, j + 1 ) ) !== -1 ) {
  				prefixLength = dmp.diffCommonPrefix( longtext.substring( i ),
  					shorttext.substring( j ) );
  				suffixLength = dmp.diffCommonSuffix( longtext.substring( 0, i ),
  					shorttext.substring( 0, j ) );
  				if ( bestCommon.length < suffixLength + prefixLength ) {
  					bestCommon = shorttext.substring( j - suffixLength, j ) +
  						shorttext.substring( j, j + prefixLength );
  					bestLongtextA = longtext.substring( 0, i - suffixLength );
  					bestLongtextB = longtext.substring( i + prefixLength );
  					bestShorttextA = shorttext.substring( 0, j - suffixLength );
  					bestShorttextB = shorttext.substring( j + prefixLength );
  				}
  			}
  			if ( bestCommon.length * 2 >= longtext.length ) {
  				return [ bestLongtextA, bestLongtextB,
  					bestShorttextA, bestShorttextB, bestCommon
  				];
  			} else {
  				return null;
  			}
  		}
  
  		// First check if the second quarter is the seed for a half-match.
  		hm1 = diffHalfMatchI( longtext, shorttext,
  			Math.ceil( longtext.length / 4 ) );
  
  		// Check again based on the third quarter.
  		hm2 = diffHalfMatchI( longtext, shorttext,
  			Math.ceil( longtext.length / 2 ) );
  		if ( !hm1 && !hm2 ) {
  			return null;
  		} else if ( !hm2 ) {
  			hm = hm1;
  		} else if ( !hm1 ) {
  			hm = hm2;
  		} else {
  
  			// Both matched.  Select the longest.
  			hm = hm1[ 4 ].length > hm2[ 4 ].length ? hm1 : hm2;
  		}
  
  		// A half-match was found, sort out the return data.
  		text1A, text1B, text2A, text2B;
  		if ( text1.length > text2.length ) {
  			text1A = hm[ 0 ];
  			text1B = hm[ 1 ];
  			text2A = hm[ 2 ];
  			text2B = hm[ 3 ];
  		} else {
  			text2A = hm[ 0 ];
  			text2B = hm[ 1 ];
  			text1A = hm[ 2 ];
  			text1B = hm[ 3 ];
  		}
  		midCommon = hm[ 4 ];
  		return [ text1A, text1B, text2A, text2B, midCommon ];
  	};
  
  	/**
  	 * Do a quick line-level diff on both strings, then rediff the parts for
  	 * greater accuracy.
  	 * This speedup can produce non-minimal diffs.
  	 * @param {string} text1 Old string to be diffed.
  	 * @param {string} text2 New string to be diffed.
  	 * @param {number} deadline Time when the diff should be complete by.
  	 * @return {!Array.<!DiffMatchPatch.Diff>} Array of diff tuples.
  	 * @private
  	 */
  	DiffMatchPatch.prototype.diffLineMode = function( text1, text2, deadline ) {
  		var a, diffs, linearray, pointer, countInsert,
  			countDelete, textInsert, textDelete, j;
  
  		// Scan the text on a line-by-line basis first.
  		a = this.diffLinesToChars( text1, text2 );
  		text1 = a.chars1;
  		text2 = a.chars2;
  		linearray = a.lineArray;
  
  		diffs = this.DiffMain( text1, text2, false, deadline );
  
  		// Convert the diff back to original text.
  		this.diffCharsToLines( diffs, linearray );
  
  		// Eliminate freak matches (e.g. blank lines)
  		this.diffCleanupSemantic( diffs );
  
  		// Rediff any replacement blocks, this time character-by-character.
  		// Add a dummy entry at the end.
  		diffs.push( [ DIFF_EQUAL, "" ] );
  		pointer = 0;
  		countDelete = 0;
  		countInsert = 0;
  		textDelete = "";
  		textInsert = "";
  		while ( pointer < diffs.length ) {
  			switch ( diffs[ pointer ][ 0 ] ) {
  			case DIFF_INSERT:
  				countInsert++;
  				textInsert += diffs[ pointer ][ 1 ];
  				break;
  			case DIFF_DELETE:
  				countDelete++;
  				textDelete += diffs[ pointer ][ 1 ];
  				break;
  			case DIFF_EQUAL:
  
  				// Upon reaching an equality, check for prior redundancies.
  				if ( countDelete >= 1 && countInsert >= 1 ) {
  
  					// Delete the offending records and add the merged ones.
  					diffs.splice( pointer - countDelete - countInsert,
  						countDelete + countInsert );
  					pointer = pointer - countDelete - countInsert;
  					a = this.DiffMain( textDelete, textInsert, false, deadline );
  					for ( j = a.length - 1; j >= 0; j-- ) {
  						diffs.splice( pointer, 0, a[ j ] );
  					}
  					pointer = pointer + a.length;
  				}
  				countInsert = 0;
  				countDelete = 0;
  				textDelete = "";
  				textInsert = "";
  				break;
  			}
  			pointer++;
  		}
  		diffs.pop(); // Remove the dummy entry at the end.
  
  		return diffs;
  	};
  
  	/**
  	 * Find the 'middle snake' of a diff, split the problem in two
  	 * and return the recursively constructed diff.
  	 * See Myers 1986 paper: An O(ND) Difference Algorithm and Its Variations.
  	 * @param {string} text1 Old string to be diffed.
  	 * @param {string} text2 New string to be diffed.
  	 * @param {number} deadline Time at which to bail if not yet complete.
  	 * @return {!Array.<!DiffMatchPatch.Diff>} Array of diff tuples.
  	 * @private
  	 */
  	DiffMatchPatch.prototype.diffBisect = function( text1, text2, deadline ) {
  		var text1Length, text2Length, maxD, vOffset, vLength,
  			v1, v2, x, delta, front, k1start, k1end, k2start,
  			k2end, k2Offset, k1Offset, x1, x2, y1, y2, d, k1, k2;
  
  		// Cache the text lengths to prevent multiple calls.
  		text1Length = text1.length;
  		text2Length = text2.length;
  		maxD = Math.ceil( ( text1Length + text2Length ) / 2 );
  		vOffset = maxD;
  		vLength = 2 * maxD;
  		v1 = new Array( vLength );
  		v2 = new Array( vLength );
  
  		// Setting all elements to -1 is faster in Chrome & Firefox than mixing
  		// integers and undefined.
  		for ( x = 0; x < vLength; x++ ) {
  			v1[ x ] = -1;
  			v2[ x ] = -1;
  		}
  		v1[ vOffset + 1 ] = 0;
  		v2[ vOffset + 1 ] = 0;
  		delta = text1Length - text2Length;
  
  		// If the total number of characters is odd, then the front path will collide
  		// with the reverse path.
  		front = ( delta % 2 !== 0 );
  
  		// Offsets for start and end of k loop.
  		// Prevents mapping of space beyond the grid.
  		k1start = 0;
  		k1end = 0;
  		k2start = 0;
  		k2end = 0;
  		for ( d = 0; d < maxD; d++ ) {
  
  			// Bail out if deadline is reached.
  			if ( ( new Date() ).getTime() > deadline ) {
  				break;
  			}
  
  			// Walk the front path one step.
  			for ( k1 = -d + k1start; k1 <= d - k1end; k1 += 2 ) {
  				k1Offset = vOffset + k1;
  				if ( k1 === -d || ( k1 !== d && v1[ k1Offset - 1 ] < v1[ k1Offset + 1 ] ) ) {
  					x1 = v1[ k1Offset + 1 ];
  				} else {
  					x1 = v1[ k1Offset - 1 ] + 1;
  				}
  				y1 = x1 - k1;
  				while ( x1 < text1Length && y1 < text2Length &&
  					text1.charAt( x1 ) === text2.charAt( y1 ) ) {
  					x1++;
  					y1++;
  				}
  				v1[ k1Offset ] = x1;
  				if ( x1 > text1Length ) {
  
  					// Ran off the right of the graph.
  					k1end += 2;
  				} else if ( y1 > text2Length ) {
  
  					// Ran off the bottom of the graph.
  					k1start += 2;
  				} else if ( front ) {
  					k2Offset = vOffset + delta - k1;
  					if ( k2Offset >= 0 && k2Offset < vLength && v2[ k2Offset ] !== -1 ) {
  
  						// Mirror x2 onto top-left coordinate system.
  						x2 = text1Length - v2[ k2Offset ];
  						if ( x1 >= x2 ) {
  
  							// Overlap detected.
  							return this.diffBisectSplit( text1, text2, x1, y1, deadline );
  						}
  					}
  				}
  			}
  
  			// Walk the reverse path one step.
  			for ( k2 = -d + k2start; k2 <= d - k2end; k2 += 2 ) {
  				k2Offset = vOffset + k2;
  				if ( k2 === -d || ( k2 !== d && v2[ k2Offset - 1 ] < v2[ k2Offset + 1 ] ) ) {
  					x2 = v2[ k2Offset + 1 ];
  				} else {
  					x2 = v2[ k2Offset - 1 ] + 1;
  				}
  				y2 = x2 - k2;
  				while ( x2 < text1Length && y2 < text2Length &&
  					text1.charAt( text1Length - x2 - 1 ) ===
  					text2.charAt( text2Length - y2 - 1 ) ) {
  					x2++;
  					y2++;
  				}
  				v2[ k2Offset ] = x2;
  				if ( x2 > text1Length ) {
  
  					// Ran off the left of the graph.
  					k2end += 2;
  				} else if ( y2 > text2Length ) {
  
  					// Ran off the top of the graph.
  					k2start += 2;
  				} else if ( !front ) {
  					k1Offset = vOffset + delta - k2;
  					if ( k1Offset >= 0 && k1Offset < vLength && v1[ k1Offset ] !== -1 ) {
  						x1 = v1[ k1Offset ];
  						y1 = vOffset + x1 - k1Offset;
  
  						// Mirror x2 onto top-left coordinate system.
  						x2 = text1Length - x2;
  						if ( x1 >= x2 ) {
  
  							// Overlap detected.
  							return this.diffBisectSplit( text1, text2, x1, y1, deadline );
  						}
  					}
  				}
  			}
  		}
  
  		// Diff took too long and hit the deadline or
  		// number of diffs equals number of characters, no commonality at all.
  		return [
  			[ DIFF_DELETE, text1 ],
  			[ DIFF_INSERT, text2 ]
  		];
  	};
  
  	/**
  	 * Given the location of the 'middle snake', split the diff in two parts
  	 * and recurse.
  	 * @param {string} text1 Old string to be diffed.
  	 * @param {string} text2 New string to be diffed.
  	 * @param {number} x Index of split point in text1.
  	 * @param {number} y Index of split point in text2.
  	 * @param {number} deadline Time at which to bail if not yet complete.
  	 * @return {!Array.<!DiffMatchPatch.Diff>} Array of diff tuples.
  	 * @private
  	 */
  	DiffMatchPatch.prototype.diffBisectSplit = function( text1, text2, x, y, deadline ) {
  		var text1a, text1b, text2a, text2b, diffs, diffsb;
  		text1a = text1.substring( 0, x );
  		text2a = text2.substring( 0, y );
  		text1b = text1.substring( x );
  		text2b = text2.substring( y );
  
  		// Compute both diffs serially.
  		diffs = this.DiffMain( text1a, text2a, false, deadline );
  		diffsb = this.DiffMain( text1b, text2b, false, deadline );
  
  		return diffs.concat( diffsb );
  	};
  
  	/**
  	 * Reduce the number of edits by eliminating semantically trivial equalities.
  	 * @param {!Array.<!DiffMatchPatch.Diff>} diffs Array of diff tuples.
  	 */
  	DiffMatchPatch.prototype.diffCleanupSemantic = function( diffs ) {
  		var changes, equalities, equalitiesLength, lastequality,
  			pointer, lengthInsertions2, lengthDeletions2, lengthInsertions1,
  			lengthDeletions1, deletion, insertion, overlapLength1, overlapLength2;
  		changes = false;
  		equalities = []; // Stack of indices where equalities are found.
  		equalitiesLength = 0; // Keeping our own length var is faster in JS.
  		/** @type {?string} */
  		lastequality = null;
  
  		// Always equal to diffs[equalities[equalitiesLength - 1]][1]
  		pointer = 0; // Index of current position.
  
  		// Number of characters that changed prior to the equality.
  		lengthInsertions1 = 0;
  		lengthDeletions1 = 0;
  
  		// Number of characters that changed after the equality.
  		lengthInsertions2 = 0;
  		lengthDeletions2 = 0;
  		while ( pointer < diffs.length ) {
  			if ( diffs[ pointer ][ 0 ] === DIFF_EQUAL ) { // Equality found.
  				equalities[ equalitiesLength++ ] = pointer;
  				lengthInsertions1 = lengthInsertions2;
  				lengthDeletions1 = lengthDeletions2;
  				lengthInsertions2 = 0;
  				lengthDeletions2 = 0;
  				lastequality = diffs[ pointer ][ 1 ];
  			} else { // An insertion or deletion.
  				if ( diffs[ pointer ][ 0 ] === DIFF_INSERT ) {
  					lengthInsertions2 += diffs[ pointer ][ 1 ].length;
  				} else {
  					lengthDeletions2 += diffs[ pointer ][ 1 ].length;
  				}
  
  				// Eliminate an equality that is smaller or equal to the edits on both
  				// sides of it.
  				if ( lastequality && ( lastequality.length <=
  						Math.max( lengthInsertions1, lengthDeletions1 ) ) &&
  						( lastequality.length <= Math.max( lengthInsertions2,
  							lengthDeletions2 ) ) ) {
  
  					// Duplicate record.
  					diffs.splice(
  						equalities[ equalitiesLength - 1 ],
  						0,
  						[ DIFF_DELETE, lastequality ]
  					);
  
  					// Change second copy to insert.
  					diffs[ equalities[ equalitiesLength - 1 ] + 1 ][ 0 ] = DIFF_INSERT;
  
  					// Throw away the equality we just deleted.
  					equalitiesLength--;
  
  					// Throw away the previous equality (it needs to be reevaluated).
  					equalitiesLength--;
  					pointer = equalitiesLength > 0 ? equalities[ equalitiesLength - 1 ] : -1;
  
  					// Reset the counters.
  					lengthInsertions1 = 0;
  					lengthDeletions1 = 0;
  					lengthInsertions2 = 0;
  					lengthDeletions2 = 0;
  					lastequality = null;
  					changes = true;
  				}
  			}
  			pointer++;
  		}
  
  		// Normalize the diff.
  		if ( changes ) {
  			this.diffCleanupMerge( diffs );
  		}
  
  		// Find any overlaps between deletions and insertions.
  		// e.g: <del>abcxxx</del><ins>xxxdef</ins>
  		//   -> <del>abc</del>xxx<ins>def</ins>
  		// e.g: <del>xxxabc</del><ins>defxxx</ins>
  		//   -> <ins>def</ins>xxx<del>abc</del>
  		// Only extract an overlap if it is as big as the edit ahead or behind it.
  		pointer = 1;
  		while ( pointer < diffs.length ) {
  			if ( diffs[ pointer - 1 ][ 0 ] === DIFF_DELETE &&
  					diffs[ pointer ][ 0 ] === DIFF_INSERT ) {
  				deletion = diffs[ pointer - 1 ][ 1 ];
  				insertion = diffs[ pointer ][ 1 ];
  				overlapLength1 = this.diffCommonOverlap( deletion, insertion );
  				overlapLength2 = this.diffCommonOverlap( insertion, deletion );
  				if ( overlapLength1 >= overlapLength2 ) {
  					if ( overlapLength1 >= deletion.length / 2 ||
  							overlapLength1 >= insertion.length / 2 ) {
  
  						// Overlap found.  Insert an equality and trim the surrounding edits.
  						diffs.splice(
  							pointer,
  							0,
  							[ DIFF_EQUAL, insertion.substring( 0, overlapLength1 ) ]
  						);
  						diffs[ pointer - 1 ][ 1 ] =
  							deletion.substring( 0, deletion.length - overlapLength1 );
  						diffs[ pointer + 1 ][ 1 ] = insertion.substring( overlapLength1 );
  						pointer++;
  					}
  				} else {
  					if ( overlapLength2 >= deletion.length / 2 ||
  							overlapLength2 >= insertion.length / 2 ) {
  
  						// Reverse overlap found.
  						// Insert an equality and swap and trim the surrounding edits.
  						diffs.splice(
  							pointer,
  							0,
  							[ DIFF_EQUAL, deletion.substring( 0, overlapLength2 ) ]
  						);
  
  						diffs[ pointer - 1 ][ 0 ] = DIFF_INSERT;
  						diffs[ pointer - 1 ][ 1 ] =
  							insertion.substring( 0, insertion.length - overlapLength2 );
  						diffs[ pointer + 1 ][ 0 ] = DIFF_DELETE;
  						diffs[ pointer + 1 ][ 1 ] =
  							deletion.substring( overlapLength2 );
  						pointer++;
  					}
  				}
  				pointer++;
  			}
  			pointer++;
  		}
  	};
  
  	/**
  	 * Determine if the suffix of one string is the prefix of another.
  	 * @param {string} text1 First string.
  	 * @param {string} text2 Second string.
  	 * @return {number} The number of characters common to the end of the first
  	 *     string and the start of the second string.
  	 * @private
  	 */
  	DiffMatchPatch.prototype.diffCommonOverlap = function( text1, text2 ) {
  		var text1Length, text2Length, textLength,
  			best, length, pattern, found;
  
  		// Cache the text lengths to prevent multiple calls.
  		text1Length = text1.length;
  		text2Length = text2.length;
  
  		// Eliminate the null case.
  		if ( text1Length === 0 || text2Length === 0 ) {
  			return 0;
  		}
  
  		// Truncate the longer string.
  		if ( text1Length > text2Length ) {
  			text1 = text1.substring( text1Length - text2Length );
  		} else if ( text1Length < text2Length ) {
  			text2 = text2.substring( 0, text1Length );
  		}
  		textLength = Math.min( text1Length, text2Length );
  
  		// Quick check for the worst case.
  		if ( text1 === text2 ) {
  			return textLength;
  		}
  
  		// Start by looking for a single character match
  		// and increase length until no match is found.
  		// Performance analysis: https://neil.fraser.name/news/2010/11/04/
  		best = 0;
  		length = 1;
  		while ( true ) {
  			pattern = text1.substring( textLength - length );
  			found = text2.indexOf( pattern );
  			if ( found === -1 ) {
  				return best;
  			}
  			length += found;
  			if ( found === 0 || text1.substring( textLength - length ) ===
  					text2.substring( 0, length ) ) {
  				best = length;
  				length++;
  			}
  		}
  	};
  
  	/**
  	 * Split two texts into an array of strings.  Reduce the texts to a string of
  	 * hashes where each Unicode character represents one line.
  	 * @param {string} text1 First string.
  	 * @param {string} text2 Second string.
  	 * @return {{chars1: string, chars2: string, lineArray: !Array.<string>}}
  	 *     An object containing the encoded text1, the encoded text2 and
  	 *     the array of unique strings.
  	 *     The zeroth element of the array of unique strings is intentionally blank.
  	 * @private
  	 */
  	DiffMatchPatch.prototype.diffLinesToChars = function( text1, text2 ) {
  		var lineArray, lineHash, chars1, chars2;
  		lineArray = []; // E.g. lineArray[4] === 'Hello\n'
  		lineHash = {};  // E.g. lineHash['Hello\n'] === 4
  
  		// '\x00' is a valid character, but various debuggers don't like it.
  		// So we'll insert a junk entry to avoid generating a null character.
  		lineArray[ 0 ] = "";
  
  		/**
  		 * Split a text into an array of strings.  Reduce the texts to a string of
  		 * hashes where each Unicode character represents one line.
  		 * Modifies linearray and linehash through being a closure.
  		 * @param {string} text String to encode.
  		 * @return {string} Encoded string.
  		 * @private
  		 */
  		function diffLinesToCharsMunge( text ) {
  			var chars, lineStart, lineEnd, lineArrayLength, line;
  			chars = "";
  
  			// Walk the text, pulling out a substring for each line.
  			// text.split('\n') would would temporarily double our memory footprint.
  			// Modifying text would create many large strings to garbage collect.
  			lineStart = 0;
  			lineEnd = -1;
  
  			// Keeping our own length variable is faster than looking it up.
  			lineArrayLength = lineArray.length;
  			while ( lineEnd < text.length - 1 ) {
  				lineEnd = text.indexOf( "\n", lineStart );
  				if ( lineEnd === -1 ) {
  					lineEnd = text.length - 1;
  				}
  				line = text.substring( lineStart, lineEnd + 1 );
  				lineStart = lineEnd + 1;
  
  				if ( lineHash.hasOwnProperty ? lineHash.hasOwnProperty( line ) :
  							( lineHash[ line ] !== undefined ) ) {
  					chars += String.fromCharCode( lineHash[ line ] );
  				} else {
  					chars += String.fromCharCode( lineArrayLength );
  					lineHash[ line ] = lineArrayLength;
  					lineArray[ lineArrayLength++ ] = line;
  				}
  			}
  			return chars;
  		}
  
  		chars1 = diffLinesToCharsMunge( text1 );
  		chars2 = diffLinesToCharsMunge( text2 );
  		return {
  			chars1: chars1,
  			chars2: chars2,
  			lineArray: lineArray
  		};
  	};
  
  	/**
  	 * Rehydrate the text in a diff from a string of line hashes to real lines of
  	 * text.
  	 * @param {!Array.<!DiffMatchPatch.Diff>} diffs Array of diff tuples.
  	 * @param {!Array.<string>} lineArray Array of unique strings.
  	 * @private
  	 */
  	DiffMatchPatch.prototype.diffCharsToLines = function( diffs, lineArray ) {
  		var x, chars, text, y;
  		for ( x = 0; x < diffs.length; x++ ) {
  			chars = diffs[ x ][ 1 ];
  			text = [];
  			for ( y = 0; y < chars.length; y++ ) {
  				text[ y ] = lineArray[ chars.charCodeAt( y ) ];
  			}
  			diffs[ x ][ 1 ] = text.join( "" );
  		}
  	};
  
  	/**
  	 * Reorder and merge like edit sections.  Merge equalities.
  	 * Any edit section can move as long as it doesn't cross an equality.
  	 * @param {!Array.<!DiffMatchPatch.Diff>} diffs Array of diff tuples.
  	 */
  	DiffMatchPatch.prototype.diffCleanupMerge = function( diffs ) {
  		var pointer, countDelete, countInsert, textInsert, textDelete,
  			commonlength, changes, diffPointer, position;
  		diffs.push( [ DIFF_EQUAL, "" ] ); // Add a dummy entry at the end.
  		pointer = 0;
  		countDelete = 0;
  		countInsert = 0;
  		textDelete = "";
  		textInsert = "";
  		commonlength;
  		while ( pointer < diffs.length ) {
  			switch ( diffs[ pointer ][ 0 ] ) {
  			case DIFF_INSERT:
  				countInsert++;
  				textInsert += diffs[ pointer ][ 1 ];
  				pointer++;
  				break;
  			case DIFF_DELETE:
  				countDelete++;
  				textDelete += diffs[ pointer ][ 1 ];
  				pointer++;
  				break;
  			case DIFF_EQUAL:
  
  				// Upon reaching an equality, check for prior redundancies.
  				if ( countDelete + countInsert > 1 ) {
  					if ( countDelete !== 0 && countInsert !== 0 ) {
  
  						// Factor out any common prefixes.
  						commonlength = this.diffCommonPrefix( textInsert, textDelete );
  						if ( commonlength !== 0 ) {
  							if ( ( pointer - countDelete - countInsert ) > 0 &&
  									diffs[ pointer - countDelete - countInsert - 1 ][ 0 ] ===
  									DIFF_EQUAL ) {
  								diffs[ pointer - countDelete - countInsert - 1 ][ 1 ] +=
  									textInsert.substring( 0, commonlength );
  							} else {
  								diffs.splice( 0, 0, [ DIFF_EQUAL,
  									textInsert.substring( 0, commonlength )
  								] );
  								pointer++;
  							}
  							textInsert = textInsert.substring( commonlength );
  							textDelete = textDelete.substring( commonlength );
  						}
  
  						// Factor out any common suffixies.
  						commonlength = this.diffCommonSuffix( textInsert, textDelete );
  						if ( commonlength !== 0 ) {
  							diffs[ pointer ][ 1 ] = textInsert.substring( textInsert.length -
  									commonlength ) + diffs[ pointer ][ 1 ];
  							textInsert = textInsert.substring( 0, textInsert.length -
  								commonlength );
  							textDelete = textDelete.substring( 0, textDelete.length -
  								commonlength );
  						}
  					}
  
  					// Delete the offending records and add the merged ones.
  					if ( countDelete === 0 ) {
  						diffs.splice( pointer - countInsert,
  							countDelete + countInsert, [ DIFF_INSERT, textInsert ] );
  					} else if ( countInsert === 0 ) {
  						diffs.splice( pointer - countDelete,
  							countDelete + countInsert, [ DIFF_DELETE, textDelete ] );
  					} else {
  						diffs.splice(
  							pointer - countDelete - countInsert,
  							countDelete + countInsert,
  							[ DIFF_DELETE, textDelete ], [ DIFF_INSERT, textInsert ]
  						);
  					}
  					pointer = pointer - countDelete - countInsert +
  						( countDelete ? 1 : 0 ) + ( countInsert ? 1 : 0 ) + 1;
  				} else if ( pointer !== 0 && diffs[ pointer - 1 ][ 0 ] === DIFF_EQUAL ) {
  
  					// Merge this equality with the previous one.
  					diffs[ pointer - 1 ][ 1 ] += diffs[ pointer ][ 1 ];
  					diffs.splice( pointer, 1 );
  				} else {
  					pointer++;
  				}
  				countInsert = 0;
  				countDelete = 0;
  				textDelete = "";
  				textInsert = "";
  				break;
  			}
  		}
  		if ( diffs[ diffs.length - 1 ][ 1 ] === "" ) {
  			diffs.pop(); // Remove the dummy entry at the end.
  		}
  
  		// Second pass: look for single edits surrounded on both sides by equalities
  		// which can be shifted sideways to eliminate an equality.
  		// e.g: A<ins>BA</ins>C -> <ins>AB</ins>AC
  		changes = false;
  		pointer = 1;
  
  		// Intentionally ignore the first and last element (don't need checking).
  		while ( pointer < diffs.length - 1 ) {
  			if ( diffs[ pointer - 1 ][ 0 ] === DIFF_EQUAL &&
  					diffs[ pointer + 1 ][ 0 ] === DIFF_EQUAL ) {
  
  				diffPointer = diffs[ pointer ][ 1 ];
  				position = diffPointer.substring(
  					diffPointer.length - diffs[ pointer - 1 ][ 1 ].length
  				);
  
  				// This is a single edit surrounded by equalities.
  				if ( position === diffs[ pointer - 1 ][ 1 ] ) {
  
  					// Shift the edit over the previous equality.
  					diffs[ pointer ][ 1 ] = diffs[ pointer - 1 ][ 1 ] +
  						diffs[ pointer ][ 1 ].substring( 0, diffs[ pointer ][ 1 ].length -
  							diffs[ pointer - 1 ][ 1 ].length );
  					diffs[ pointer + 1 ][ 1 ] =
  						diffs[ pointer - 1 ][ 1 ] + diffs[ pointer + 1 ][ 1 ];
  					diffs.splice( pointer - 1, 1 );
  					changes = true;
  				} else if ( diffPointer.substring( 0, diffs[ pointer + 1 ][ 1 ].length ) ===
  						diffs[ pointer + 1 ][ 1 ] ) {
  
  					// Shift the edit over the next equality.
  					diffs[ pointer - 1 ][ 1 ] += diffs[ pointer + 1 ][ 1 ];
  					diffs[ pointer ][ 1 ] =
  						diffs[ pointer ][ 1 ].substring( diffs[ pointer + 1 ][ 1 ].length ) +
  						diffs[ pointer + 1 ][ 1 ];
  					diffs.splice( pointer + 1, 1 );
  					changes = true;
  				}
  			}
  			pointer++;
  		}
  
  		// If shifts were made, the diff needs reordering and another shift sweep.
  		if ( changes ) {
  			this.diffCleanupMerge( diffs );
  		}
  	};
  
  	return function( o, n ) {
  		var diff, output, text;
  		diff = new DiffMatchPatch();
  		output = diff.DiffMain( o, n );
  		diff.diffCleanupEfficiency( output );
  		text = diff.diffPrettyHtml( output );
  
  		return text;
  	};
  }() );
  
  }() );
  