-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy patha.js
More file actions
14 lines (14 loc) · 413 KB
/
a.js
File metadata and controls
14 lines (14 loc) · 413 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
(function(e){"use strict";var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(t.hasOwnProperty(n))e[n]=t[n]};var n=function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)};var r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};var a=function(e,t,n,r){var a=arguments.length,o=a<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,i;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)if(i=e[s])o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o;return a>3&&o&&Object.defineProperty(t,n,o),o};var o=function(e,t,n,r){return new(n||(n=Promise))(function(a,o){function i(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r["throw"](e))}catch(e){o(e)}}function l(e){e.done?a(e.value):new n(function(t){t(e.value)}).then(i,s)}l((r=r.apply(e,t||[])).next())})};var i=function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,a,o,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return l([e,t])}}function l(i){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,a&&(o=a[i[0]&2?"return":i[0]?"throw":"next"])&&!(o=o.call(a,i[1])).done)return o;if(a=0,o)i=[0,o.value];switch(i[0]){case 0:case 1:o=i;break;case 4:n.label++;return{value:i[1],done:!1};case 5:n.label++;a=i[1];i=[0];continue;case 7:i=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(i[0]===6||i[0]===2)){n=0;continue}if(i[0]===3&&(!o||i[1]>o[0]&&i[1]<o[3])){n.label=i[1];break}if(i[0]===6&&n.label<o[1]){n.label=o[1];o=i;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(i);break}if(o[2])n.ops.pop();n.trys.pop();continue}i=t.call(e,n)}catch(e){i=[6,e];a=0}finally{r=o=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}};var s=function(e){var t=typeof Symbol==="function"&&e[Symbol.iterator],n=0;if(t)return t.call(e);return{next:function(){if(e&&n>=e.length)e=void 0;return{value:e&&e[n++],done:!e}}}};var l=function(e,t){var n=typeof Symbol==="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),a,o=[],i;try{while((t===void 0||t-- >0)&&!(a=r.next()).done)o.push(a.value)}catch(e){i={error:e}}finally{try{if(a&&!a.done&&(n=r["return"]))n.call(r)}finally{if(i)throw i.error}}return o};var c=function(e,t){for(var n=0,r=t.length,a=e.length;n<r;n++,a++)e[a]=t[n];return e};var u=!1;!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";var n=[],r=Object.getPrototypeOf,a=n.slice,o=n.flat?function(e){return n.flat.call(e)}:function(e){return n.concat.apply([],e)},i=n.push,s=n.indexOf,l={},c=l.toString,u=l.hasOwnProperty,d=u.toString,p=d.call(Object),h={},f=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},m=function(e){return null!=e&&e===e.window},v=e.document,g={type:!0,src:!0,nonce:!0,noModule:!0};function y(e,t,n){var r,a,o=(n=n||v).createElement("script");if(o.text=e,t)for(r in g)(a=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,a);n.head.appendChild(o).parentNode.removeChild(o)}function b(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[c.call(e)]||"object":typeof e}var x="3.6.0",_=function(e,t){return new _.fn.init(e,t)};function S(e){var t=!!e&&"length"in e&&e.length,n=b(e);return!f(e)&&!m(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}_.fn=_.prototype={jquery:x,constructor:_,length:0,toArray:function(){return a.call(this)},get:function(e){return null==e?a.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=_.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return _.each(this,e)},map:function(e){return this.pushStack(_.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(_.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(_.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:i,sort:n.sort,splice:n.splice},_.extend=_.fn.extend=function(){var e,t,n,r,a,o,i=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof i&&(c=i,i=arguments[s]||{},s++),"object"==typeof i||f(i)||(i={}),s===l&&(i=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&i!==r&&(c&&r&&(_.isPlainObject(r)||(a=Array.isArray(r)))?(n=i[t],o=a&&!Array.isArray(n)?[]:a||_.isPlainObject(n)?n:{},a=!1,i[t]=_.extend(c,o,r)):void 0!==r&&(i[t]=r));return i},_.extend({expando:"jQuery"+(x+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==c.call(e))&&(!(t=r(e))||"function"==typeof(n=u.call(t,"constructor")&&t.constructor)&&d.call(n)===p)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){y(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(S(e)){for(n=e.length;r<n;r++)if(!1===t.call(e[r],r,e[r]))break}else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(S(Object(e))?_.merge(n,"string"==typeof e?[e]:e):i.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:s.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,a=e.length;r<n;r++)e[a++]=t[r];return e.length=a,e},grep:function(e,t,n){for(var r=[],a=0,o=e.length,i=!n;a<o;a++)!t(e[a],a)!==i&&r.push(e[a]);return r},map:function(e,t,n){var r,a,i=0,s=[];if(S(e))for(r=e.length;i<r;i++)null!=(a=t(e[i],i,n))&&s.push(a);else for(i in e)null!=(a=t(e[i],i,n))&&s.push(a);return o(s)},guid:1,support:h}),"function"==typeof Symbol&&(_.fn[Symbol.iterator]=n[Symbol.iterator]),_.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){l["[object "+t+"]"]=t.toLowerCase()});var k=function(e){var t,n,r,a,o,i,s,l,c,u,d,p,h,f,m,v,g,y,b,x="sizzle"+1*new Date,_=e.document,S=0,k=0,C=le(),w=le(),E=le(),D=le(),I=function(e,t){return e===t&&(d=!0),0},T={}.hasOwnProperty,A=[],N=A.pop,P=A.push,F=A.push,B=A.slice,O=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",$="[\\x20\\t\\r\\n\\f]",G="(?:\\\\[\\da-fA-F]{1,6}"+$+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",j="\\["+$+"*("+G+")(?:"+$+"*([*^$|!~]?=)"+$+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+G+"))|)"+$+"*\\]",L=":("+G+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+j+")*)|.*)\\)|)",M=new RegExp($+"+","g"),H=new RegExp("^"+$+"+|((?:^|[^\\\\])(?:\\\\.)*)"+$+"+$","g"),z=new RegExp("^"+$+"*,"+$+"*"),V=new RegExp("^"+$+"*([>+~]|"+$+")"+$+"*"),U=new RegExp($+"|>"),q=new RegExp(L),W=new RegExp("^"+G+"$"),J={ID:new RegExp("^#("+G+")"),CLASS:new RegExp("^\\.("+G+")"),TAG:new RegExp("^("+G+"|[*])"),ATTR:new RegExp("^"+j),PSEUDO:new RegExp("^"+L),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+$+"*(even|odd|(([+-]|)(\\d*)n|)"+$+"*(?:([+-]|)"+$+"*(\\d+)|))"+$+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+$+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+$+"*((?:-\\d)?\\d*)"+$+"*\\)|)(?=[^-]|$)","i")},K=/HTML$/i,Y=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,Q=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+$+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ae=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){p()},ie=xe(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{F.apply(A=B.call(_.childNodes),_.childNodes),A[_.childNodes.length].nodeType}catch(t){F={apply:A.length?function(e,t){P.apply(e,B.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(e,t,r,a){var o,s,c,u,d,f,g,y=t&&t.ownerDocument,_=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==_&&9!==_&&11!==_)return r;if(!a&&(p(t),t=t||h,m)){if(11!==_&&(d=Z.exec(e)))if(o=d[1]){if(9===_){if(!(c=t.getElementById(o)))return r;if(c.id===o)return r.push(c),r}else if(y&&(c=y.getElementById(o))&&b(t,c)&&c.id===o)return r.push(c),r}else{if(d[2])return F.apply(r,t.getElementsByTagName(e)),r;if((o=d[3])&&n.getElementsByClassName&&t.getElementsByClassName)return F.apply(r,t.getElementsByClassName(o)),r}if(n.qsa&&!D[e+" "]&&(!v||!v.test(e))&&(1!==_||"object"!==t.nodeName.toLowerCase())){if(g=e,y=t,1===_&&(U.test(e)||V.test(e))){(y=ee.test(e)&&ge(t.parentNode)||t)===t&&n.scope||((u=t.getAttribute("id"))?u=u.replace(re,ae):t.setAttribute("id",u=x)),s=(f=i(e)).length;while(s--)f[s]=(u?"#"+u:":scope")+" "+be(f[s]);g=f.join(",")}try{return F.apply(r,y.querySelectorAll(g)),r}catch(t){D(e,!0)}finally{u===x&&t.removeAttribute("id")}}}return l(e.replace(H,"$1"),t,r,a)}function le(){var e=[];return function t(n,a){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=a}}function ce(e){return e[x]=!0,e}function ue(e){var t=h.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){var n=e.split("|"),a=n.length;while(a--)r.attrHandle[n[a]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function he(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function fe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function me(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ie(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ve(e){return ce(function(t){return t=+t,ce(function(n,r){var a,o=e([],n.length,t),i=o.length;while(i--)n[a=o[i]]&&(n[a]=!(r[a]=n[a]))})})}function ge(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(t in n=se.support={},o=se.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!K.test(t||n&&n.nodeName||"HTML")},p=se.setDocument=function(e){var t,a,i=e?e.ownerDocument||e:_;return i!=h&&9===i.nodeType&&i.documentElement&&(f=(h=i).documentElement,m=!o(h),_!=h&&(a=h.defaultView)&&a.top!==a&&(a.addEventListener?a.addEventListener("unload",oe,!1):a.attachEvent&&a.attachEvent("onunload",oe)),n.scope=ue(function(e){return f.appendChild(e).appendChild(h.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),n.attributes=ue(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=ue(function(e){return e.appendChild(h.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=Q.test(h.getElementsByClassName),n.getById=ue(function(e){return f.appendChild(e).id=x,!h.getElementsByName||!h.getElementsByName(x).length}),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&m){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&m){var n,r,a,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];a=t.getElementsByName(e),r=0;while(o=a[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],a=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[a++])1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&m)return t.getElementsByClassName(e)},g=[],v=[],(n.qsa=Q.test(h.querySelectorAll))&&(ue(function(e){var t;f.appendChild(e).innerHTML="<a id='"+x+"'></a><select id='"+x+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+$+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+$+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+x+"-]").length||v.push("~="),(t=h.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||v.push("\\["+$+"*name"+$+"*="+$+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+x+"+*").length||v.push(".#.+[+~]"),e.querySelectorAll("\\\f"),v.push("[\\r\\n\\f]")}),ue(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=h.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+$+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),f.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(n.matchesSelector=Q.test(y=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&ue(function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),g.push("!=",L)}),v=v.length&&new RegExp(v.join("|")),g=g.length&&new RegExp(g.join("|")),t=Q.test(f.compareDocumentPosition),b=t||Q.test(f.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},I=t?function(e,t){if(e===t)return d=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e==h||e.ownerDocument==_&&b(_,e)?-1:t==h||t.ownerDocument==_&&b(_,t)?1:u?O(u,e)-O(u,t):0:4&r?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,r=0,a=e.parentNode,o=t.parentNode,i=[e],s=[t];if(!a||!o)return e==h?-1:t==h?1:a?-1:o?1:u?O(u,e)-O(u,t):0;if(a===o)return pe(e,t);n=e;while(n=n.parentNode)i.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(i[r]===s[r])r++;return r?pe(i[r],s[r]):i[r]==_?-1:s[r]==_?1:0}),h},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(p(e),n.matchesSelector&&m&&!D[t+" "]&&(!g||!g.test(t))&&(!v||!v.test(t)))try{var r=y.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){D(t,!0)}return 0<se(t,h,null,[e]).length},se.contains=function(e,t){return(e.ownerDocument||e)!=h&&p(e),b(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=h&&p(e);var a=r.attrHandle[t.toLowerCase()],o=a&&T.call(r.attrHandle,t.toLowerCase())?a(e,t,!m):void 0;return void 0!==o?o:n.attributes||!m?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},se.escape=function(e){return(e+"").replace(re,ae)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,r=[],a=0,o=0;if(d=!n.detectDuplicates,u=!n.sortStable&&e.slice(0),e.sort(I),d){while(t=e[o++])t===e[o]&&(a=r.push(o));while(a--)e.splice(r[a],1)}return u=null,e},a=se.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=a(e)}else if(3===o||4===o)return e.nodeValue}else while(t=e[r++])n+=a(t);return n},(r=se.selectors={cacheLength:50,createPseudo:ce,match:J,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return J.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&q.test(n)&&(t=i(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=C[e+" "];return t||(t=new RegExp("(^|"+$+")"+e+"("+$+"|$)"))&&C(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var a=se.attr(r,e);return null==a?"!="===t:!t||(a+="","="===t?a===n:"!="===t?a!==n:"^="===t?n&&0===a.indexOf(n):"*="===t?n&&-1<a.indexOf(n):"$="===t?n&&a.slice(-n.length)===n:"~="===t?-1<(" "+a.replace(M," ")+" ").indexOf(n):"|="===t&&(a===n||a.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,a){var o="nth"!==e.slice(0,3),i="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===a?function(e){return!!e.parentNode}:function(t,n,l){var c,u,d,p,h,f,m=o!==i?"nextSibling":"previousSibling",v=t.parentNode,g=s&&t.nodeName.toLowerCase(),y=!l&&!s,b=!1;if(v){if(o){while(m){p=t;while(p=p[m])if(s?p.nodeName.toLowerCase()===g:1===p.nodeType)return!1;f=m="only"===e&&!f&&"nextSibling"}return!0}if(f=[i?v.firstChild:v.lastChild],i&&y){b=(h=(c=(u=(d=(p=v)[x]||(p[x]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]||[])[0]===S&&c[1])&&c[2],p=h&&v.childNodes[h];while(p=++h&&p&&p[m]||(b=h=0)||f.pop())if(1===p.nodeType&&++b&&p===t){u[e]=[S,h,b];break}}else if(y&&(b=h=(c=(u=(d=(p=t)[x]||(p[x]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]||[])[0]===S&&c[1]),!1===b)while(p=++h&&p&&p[m]||(b=h=0)||f.pop())if((s?p.nodeName.toLowerCase()===g:1===p.nodeType)&&++b&&(y&&((u=(d=p[x]||(p[x]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]=[S,b]),p===t))break;return(b-=a)===r||b%r==0&&0<=b/r}}},PSEUDO:function(e,t){var n,a=r.pseudos[e]||r.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return a[x]?a(t):1<a.length?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?ce(function(e,n){var r,o=a(e,t),i=o.length;while(i--)e[r=O(e,o[i])]=!(n[r]=o[i])}):function(e){return a(e,0,n)}):a}},pseudos:{not:ce(function(e){var t=[],n=[],r=s(e.replace(H,"$1"));return r[x]?ce(function(e,t,n,a){var o,i=r(e,null,a,[]),s=e.length;while(s--)(o=i[s])&&(e[s]=!(t[s]=o))}):function(e,a,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}}),has:ce(function(e){return function(t){return 0<se(e,t).length}}),contains:ce(function(e){return e=e.replace(te,ne),function(t){return-1<(t.textContent||a(t)).indexOf(e)}}),lang:ce(function(e){return W.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===f},focus:function(e){return e===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:me(!1),disabled:me(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return X.test(e.nodeName)},input:function(e){return Y.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ve(function(){return[0]}),last:ve(function(e,t){return[t-1]}),eq:ve(function(e,t,n){return[n<0?n+t:n]}),even:ve(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:ve(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:ve(function(e,t,n){for(var r=n<0?n+t:t<n?t:n;0<=--r;)e.push(r);return e}),gt:ve(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=he(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=fe(t);function ye(){}function be(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function xe(e,t,n){var r=t.dir,a=t.next,o=a||r,i=n&&"parentNode"===o,s=k++;return t.first?function(t,n,a){while(t=t[r])if(1===t.nodeType||i)return e(t,n,a);return!1}:function(t,n,l){var c,u,d,p=[S,s];if(l){while(t=t[r])if((1===t.nodeType||i)&&e(t,n,l))return!0}else while(t=t[r])if(1===t.nodeType||i)if(u=(d=t[x]||(t[x]={}))[t.uniqueID]||(d[t.uniqueID]={}),a&&a===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=u[o])&&c[0]===S&&c[1]===s)return p[2]=c[2];if((u[o]=p)[2]=e(t,n,l))return!0}return!1}}function _e(e){return 1<e.length?function(t,n,r){var a=e.length;while(a--)if(!e[a](t,n,r))return!1;return!0}:e[0]}function Se(e,t,n,r,a){for(var o,i=[],s=0,l=e.length,c=null!=t;s<l;s++)(o=e[s])&&(n&&!n(o,r,a)||(i.push(o),c&&t.push(s)));return i}function ke(e,t,n,r,a,o){return r&&!r[x]&&(r=ke(r)),a&&!a[x]&&(a=ke(a,o)),ce(function(o,i,s,l){var c,u,d,p=[],h=[],f=i.length,m=o||function(e,t,n){for(var r=0,a=t.length;r<a;r++)se(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),v=!e||!o&&t?m:Se(m,p,e,s,l),g=n?a||(o?e:f||r)?[]:i:v;if(n&&n(v,g,s,l),r){c=Se(g,h),r(c,[],s,l),u=c.length;while(u--)(d=c[u])&&(g[h[u]]=!(v[h[u]]=d))}if(o){if(a||e){if(a){c=[],u=g.length;while(u--)(d=g[u])&&c.push(v[u]=d);a(null,g=[],c,l)}u=g.length;while(u--)(d=g[u])&&-1<(c=a?O(o,d):p[u])&&(o[c]=!(i[c]=d))}}else g=Se(g===i?g.splice(f,g.length):g),a?a(null,i,g,l):F.apply(i,g)})}function Ce(e){for(var t,n,a,o=e.length,i=r.relative[e[0].type],s=i||r.relative[" "],l=i?1:0,u=xe(function(e){return e===t},s,!0),d=xe(function(e){return-1<O(t,e)},s,!0),p=[function(e,n,r){var a=!i&&(r||n!==c)||((t=n).nodeType?u(e,n,r):d(e,n,r));return t=null,a}];l<o;l++)if(n=r.relative[e[l].type])p=[xe(_e(p),n)];else{if((n=r.filter[e[l].type].apply(null,e[l].matches))[x]){for(a=++l;a<o;a++)if(r.relative[e[a].type])break;return ke(1<l&&_e(p),1<l&&be(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(H,"$1"),n,l<a&&Ce(e.slice(l,a)),a<o&&Ce(e=e.slice(a)),a<o&&be(e))}p.push(n)}return _e(p)}return ye.prototype=r.filters=r.pseudos,r.setFilters=new ye,i=se.tokenize=function(e,t){var n,a,o,i,s,l,c,u=w[e+" "];if(u)return t?0:u.slice(0);s=e,l=[],c=r.preFilter;while(s){for(i in n&&!(a=z.exec(s))||(a&&(s=s.slice(a[0].length)||s),l.push(o=[])),n=!1,(a=V.exec(s))&&(n=a.shift(),o.push({value:n,type:a[0].replace(H," ")}),s=s.slice(n.length)),r.filter)!(a=J[i].exec(s))||c[i]&&!(a=c[i](a))||(n=a.shift(),o.push({value:n,type:i,matches:a}),s=s.slice(n.length));if(!n)break}return t?s.length:s?se.error(e):w(e,l).slice(0)},s=se.compile=function(e,t){var n,a,o,s,l,u,d=[],f=[],v=E[e+" "];if(!v){t||(t=i(e)),n=t.length;while(n--)(v=Ce(t[n]))[x]?d.push(v):f.push(v);(v=E(e,(a=f,s=0<(o=d).length,l=0<a.length,u=function(e,t,n,i,u){var d,f,v,g=0,y="0",b=e&&[],x=[],_=c,k=e||l&&r.find.TAG("*",u),C=S+=null==_?1:Math.random()||.1,w=k.length;for(u&&(c=t==h||t||u);y!==w&&null!=(d=k[y]);y++){if(l&&d){f=0,t||d.ownerDocument==h||(p(d),n=!m);while(v=a[f++])if(v(d,t||h,n)){i.push(d);break}u&&(S=C)}s&&((d=!v&&d)&&g--,e&&b.push(d))}if(g+=y,s&&y!==g){f=0;while(v=o[f++])v(b,x,t,n);if(e){if(0<g)while(y--)b[y]||x[y]||(x[y]=N.call(i));x=Se(x)}F.apply(i,x),u&&!e&&0<x.length&&1<g+o.length&&se.uniqueSort(i)}return u&&(S=C,c=_),b},s?ce(u):u))).selector=e}return v},l=se.select=function(e,t,n,a){var o,l,c,u,d,p="function"==typeof e&&e,h=!a&&i(e=p.selector||e);if(n=n||[],1===h.length){if(2<(l=h[0]=h[0].slice(0)).length&&"ID"===(c=l[0]).type&&9===t.nodeType&&m&&r.relative[l[1].type]){if(!(t=(r.find.ID(c.matches[0].replace(te,ne),t)||[])[0]))return n;p&&(t=t.parentNode),e=e.slice(l.shift().value.length)}o=J.needsContext.test(e)?0:l.length;while(o--){if(c=l[o],r.relative[u=c.type])break;if((d=r.find[u])&&(a=d(c.matches[0].replace(te,ne),ee.test(l[0].type)&&ge(t.parentNode)||t))){if(l.splice(o,1),!(e=a.length&&be(l)))return F.apply(n,a),n;break}}}return(p||s(e,h))(a,t,!m,n,!t||ee.test(e)&&ge(t.parentNode)||t),n},n.sortStable=x.split("").sort(I).join("")===x,n.detectDuplicates=!!d,p(),n.sortDetached=ue(function(e){return 1&e.compareDocumentPosition(h.createElement("fieldset"))}),ue(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||de("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&ue(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||de("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ue(function(e){return null==e.getAttribute("disabled")})||de(R,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),se}(e);_.find=k,_.expr=k.selectors,_.expr[":"]=_.expr.pseudos,_.uniqueSort=_.unique=k.uniqueSort,_.text=k.getText,_.isXMLDoc=k.isXML,_.contains=k.contains,_.escapeSelector=k.escape;var C=function(e,t,n){var r=[],a=void 0!==n;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(a&&_(e).is(n))break;r.push(e)}return r},w=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},E=_.expr.match.needsContext;function D(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var I=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function T(e,t,n){return f(t)?_.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?_.grep(e,function(e){return e===t!==n}):"string"!=typeof t?_.grep(e,function(e){return-1<s.call(t,e)!==n}):_.filter(t,e,n)}_.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?_.find.matchesSelector(r,e)?[r]:[]:_.find.matches(e,_.grep(t,function(e){return 1===e.nodeType}))},_.fn.extend({find:function(e){var t,n,r=this.length,a=this;if("string"!=typeof e)return this.pushStack(_(e).filter(function(){for(t=0;t<r;t++)if(_.contains(a[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)_.find(e,a[t],n);return 1<r?_.uniqueSort(n):n},filter:function(e){return this.pushStack(T(this,e||[],!1))},not:function(e){return this.pushStack(T(this,e||[],!0))},is:function(e){return!!T(this,"string"==typeof e&&E.test(e)?_(e):e||[],!1).length}});var A,N=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(_.fn.init=function(e,t,n){var r,a;if(!e)return this;if(n=n||A,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:N.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof _?t[0]:t,_.merge(this,_.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:v,!0)),I.test(r[1])&&_.isPlainObject(t))for(r in t)f(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(a=v.getElementById(r[2]))&&(this[0]=a,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):f(e)?void 0!==n.ready?n.ready(e):e(_):_.makeArray(e,this)}).prototype=_.fn,A=_(v);var P=/^(?:parents|prev(?:Until|All))/,F={children:!0,contents:!0,next:!0,prev:!0};function B(e,t){while((e=e[t])&&1!==e.nodeType);return e}_.fn.extend({has:function(e){var t=_(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(_.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,a=this.length,o=[],i="string"!=typeof e&&_(e);if(!E.test(e))for(;r<a;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(i?-1<i.index(n):1===n.nodeType&&_.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?_.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?s.call(_(e),this[0]):s.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(_.uniqueSort(_.merge(this.get(),_(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),_.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return C(e,"parentNode")},parentsUntil:function(e,t,n){return C(e,"parentNode",n)},next:function(e){return B(e,"nextSibling")},prev:function(e){return B(e,"previousSibling")},nextAll:function(e){return C(e,"nextSibling")},prevAll:function(e){return C(e,"previousSibling")},nextUntil:function(e,t,n){return C(e,"nextSibling",n)},prevUntil:function(e,t,n){return C(e,"previousSibling",n)},siblings:function(e){return w((e.parentNode||{}).firstChild,e)},children:function(e){return w(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(D(e,"template")&&(e=e.content||e),_.merge([],e.childNodes))}},function(e,t){_.fn[e]=function(n,r){var a=_.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(a=_.filter(r,a)),1<this.length&&(F[e]||_.uniqueSort(a),P.test(e)&&a.reverse()),this.pushStack(a)}});var O=/[^\x20\t\r\n\f]+/g;function R(e){return e}function $(e){throw e}function G(e,t,n,r){var a;try{e&&f(a=e.promise)?a.call(e).done(t).fail(n):e&&f(a=e.then)?a.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}_.Callbacks=function(e){var t,n;e="string"==typeof e?(t=e,n={},_.each(t.match(O)||[],function(e,t){n[t]=!0}),n):_.extend({},e);var r,a,o,i,s=[],l=[],c=-1,u=function(){for(i=i||e.once,o=r=!0;l.length;c=-1){a=l.shift();while(++c<s.length)!1===s[c].apply(a[0],a[1])&&e.stopOnFalse&&(c=s.length,a=!1)}e.memory||(a=!1),r=!1,i&&(s=a?[]:"")},d={add:function(){return s&&(a&&!r&&(c=s.length-1,l.push(a)),function t(n){_.each(n,function(n,r){f(r)?e.unique&&d.has(r)||s.push(r):r&&r.length&&"string"!==b(r)&&t(r)})}(arguments),a&&!r&&u()),this},remove:function(){return _.each(arguments,function(e,t){var n;while(-1<(n=_.inArray(t,s,n)))s.splice(n,1),n<=c&&c--}),this},has:function(e){return e?-1<_.inArray(e,s):0<s.length},empty:function(){return s&&(s=[]),this},disable:function(){return i=l=[],s=a="",this},disabled:function(){return!s},lock:function(){return i=l=[],a||r||(s=a=""),this},locked:function(){return!!i},fireWith:function(e,t){return i||(t=[e,(t=t||[]).slice?t.slice():t],l.push(t),r||u()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!o}};return d},_.extend({Deferred:function(t){var n=[["notify","progress",_.Callbacks("memory"),_.Callbacks("memory"),2],["resolve","done",_.Callbacks("once memory"),_.Callbacks("once memory"),0,"resolved"],["reject","fail",_.Callbacks("once memory"),_.Callbacks("once memory"),1,"rejected"]],r="pending",a={
state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return a.then(null,e)},pipe:function(){var e=arguments;return _.Deferred(function(t){_.each(n,function(n,r){var a=f(e[r[4]])&&e[r[4]];o[r[1]](function(){var e=a&&a.apply(this,arguments);e&&f(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this,a?[e]:arguments)})}),e=null}).promise()},then:function(t,r,a){var o=0;function i(t,n,r,a){return function(){var s=this,l=arguments,c=function(){var e,c;if(!(t<o)){if((e=r.apply(s,l))===n.promise())throw new TypeError("Thenable self-resolution");c=e&&("object"==typeof e||"function"==typeof e)&&e.then,f(c)?a?c.call(e,i(o,n,R,a),i(o,n,$,a)):(o++,c.call(e,i(o,n,R,a),i(o,n,$,a),i(o,n,R,n.notifyWith))):(r!==R&&(s=void 0,l=[e]),(a||n.resolveWith)(s,l))}},u=a?c:function(){try{c()}catch(e){_.Deferred.exceptionHook&&_.Deferred.exceptionHook(e,u.stackTrace),o<=t+1&&(r!==$&&(s=void 0,l=[e]),n.rejectWith(s,l))}};t?u():(_.Deferred.getStackHook&&(u.stackTrace=_.Deferred.getStackHook()),e.setTimeout(u))}}return _.Deferred(function(e){n[0][3].add(i(0,e,f(a)?a:R,e.notifyWith)),n[1][3].add(i(0,e,f(t)?t:R)),n[2][3].add(i(0,e,f(r)?r:$))}).promise()},promise:function(e){return null!=e?_.extend(e,a):a}},o={};return _.each(n,function(e,t){var i=t[2],s=t[5];a[t[1]]=i.add,s&&i.add(function(){r=s},n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock),i.add(t[3].fire),o[t[0]]=function(){return o[t[0]+"With"](this===o?void 0:this,arguments),this},o[t[0]+"With"]=i.fireWith}),a.promise(o),t&&t.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),o=a.call(arguments),i=_.Deferred(),s=function(e){return function(n){r[e]=this,o[e]=1<arguments.length?a.call(arguments):n,--t||i.resolveWith(r,o)}};if(t<=1&&(G(e,i.done(s(n)).resolve,i.reject,!t),"pending"===i.state()||f(o[n]&&o[n].then)))return i.then();while(n--)G(o[n],s(n),i.reject);return i.promise()}});var j=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;_.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&j.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},_.readyException=function(t){e.setTimeout(function(){throw t})};var L=_.Deferred();function M(){v.removeEventListener("DOMContentLoaded",M),e.removeEventListener("load",M),_.ready()}_.fn.ready=function(e){return L.then(e)["catch"](function(e){_.readyException(e)}),this},_.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--_.readyWait:_.isReady)||(_.isReady=!0)!==e&&0<--_.readyWait||L.resolveWith(v,[_])}}),_.ready.then=L.then,"complete"===v.readyState||"loading"!==v.readyState&&!v.documentElement.doScroll?e.setTimeout(_.ready):(v.addEventListener("DOMContentLoaded",M),e.addEventListener("load",M));var H=function(e,t,n,r,a,o,i){var s=0,l=e.length,c=null==n;if("object"===b(n))for(s in a=!0,n)H(e,t,s,n[s],!0,o,i);else if(void 0!==r&&(a=!0,f(r)||(i=!0),c&&(i?(t.call(e,r),t=null):(c=t,t=function(e,t,n){return c.call(_(e),n)})),t))for(;s<l;s++)t(e[s],n,i?r:r.call(e[s],s,t(e[s],n)));return a?e:c?t.call(e):l?t(e[0],n):o},z=/^-ms-/,V=/-([a-z])/g;function U(e,t){return t.toUpperCase()}function q(e){return e.replace(z,"ms-").replace(V,U)}var W=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function J(){this.expando=_.expando+J.uid++}J.uid=1,J.prototype={cache:function(e){var t=e[this.expando];return t||(t={},W(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,a=this.cache(e);if("string"==typeof t)a[q(t)]=n;else for(r in t)a[q(r)]=t[r];return a},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][q(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(q):(t=q(t))in r?[t]:t.match(O)||[]).length;while(n--)delete r[t[n]]}(void 0===t||_.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!_.isEmptyObject(t)}};var K=new J,Y=new J,X=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Q=/[A-Z]/g;function Z(e,t,n){var r,a;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(Q,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===(a=n)||"false"!==a&&("null"===a?null:a===+a+""?+a:X.test(a)?JSON.parse(a):a)}catch(e){}Y.set(e,t,n)}else n=void 0;return n}_.extend({hasData:function(e){return Y.hasData(e)||K.hasData(e)},data:function(e,t,n){return Y.access(e,t,n)},removeData:function(e,t){Y.remove(e,t)},_data:function(e,t,n){return K.access(e,t,n)},_removeData:function(e,t){K.remove(e,t)}}),_.fn.extend({data:function(e,t){var n,r,a,o=this[0],i=o&&o.attributes;if(void 0===e){if(this.length&&(a=Y.get(o),1===o.nodeType&&!K.get(o,"hasDataAttrs"))){n=i.length;while(n--)i[n]&&0===(r=i[n].name).indexOf("data-")&&(r=q(r.slice(5)),Z(o,r,a[r]));K.set(o,"hasDataAttrs",!0)}return a}return"object"==typeof e?this.each(function(){Y.set(this,e)}):H(this,function(t){var n;if(o&&void 0===t)return void 0!==(n=Y.get(o,e))?n:void 0!==(n=Z(o,e))?n:void 0;this.each(function(){Y.set(this,e,t)})},null,t,1<arguments.length,null,!0)},removeData:function(e){return this.each(function(){Y.remove(this,e)})}}),_.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=K.get(e,t),n&&(!r||Array.isArray(n)?r=K.access(e,t,_.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=_.queue(e,t),r=n.length,a=n.shift(),o=_._queueHooks(e,t);"inprogress"===a&&(a=n.shift(),r--),a&&("fx"===t&&n.unshift("inprogress"),delete o.stop,a.call(e,function(){_.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return K.get(e,n)||K.access(e,n,{empty:_.Callbacks("once memory").add(function(){K.remove(e,[t+"queue",n])})})}}),_.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?_.queue(this[0],e):void 0===t?this:this.each(function(){var n=_.queue(this,e,t);_._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&_.dequeue(this,e)})},dequeue:function(e){return this.each(function(){_.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,a=_.Deferred(),o=this,i=this.length,s=function(){--r||a.resolveWith(o,[o])};"string"!=typeof e&&(t=e,e=void 0),e=e||"fx";while(i--)(n=K.get(o[i],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),a.promise(t)}});var ee=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,te=new RegExp("^(?:([+-])=|)("+ee+")([a-z%]*)$","i"),ne=["Top","Right","Bottom","Left"],re=v.documentElement,ae=function(e){return _.contains(e.ownerDocument,e)},oe={composed:!0};re.getRootNode&&(ae=function(e){return _.contains(e.ownerDocument,e)||e.getRootNode(oe)===e.ownerDocument});var ie=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ae(e)&&"none"===_.css(e,"display")};function se(e,t,n,r){var a,o,i=20,s=r?function(){return r.cur()}:function(){return _.css(e,t,"")},l=s(),c=n&&n[3]||(_.cssNumber[t]?"":"px"),u=e.nodeType&&(_.cssNumber[t]||"px"!==c&&+l)&&te.exec(_.css(e,t));if(u&&u[3]!==c){l/=2,c=c||u[3],u=+l||1;while(i--)_.style(e,t,u+c),(1-o)*(1-(o=s()/l||.5))<=0&&(i=0),u/=o;u*=2,_.style(e,t,u+c),n=n||[]}return n&&(u=+u||+l||0,a=n[1]?u+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=u,r.end=a)),a}var le={};function ce(e,t){for(var n,r,a,o,i,s,l,c=[],u=0,d=e.length;u<d;u++)(r=e[u]).style&&(n=r.style.display,t?("none"===n&&(c[u]=K.get(r,"display")||null,c[u]||(r.style.display="")),""===r.style.display&&ie(r)&&(c[u]=(l=i=o=void 0,i=(a=r).ownerDocument,s=a.nodeName,(l=le[s])||(o=i.body.appendChild(i.createElement(s)),l=_.css(o,"display"),o.parentNode.removeChild(o),"none"===l&&(l="block"),le[s]=l)))):"none"!==n&&(c[u]="none",K.set(r,"display",n)));for(u=0;u<d;u++)null!=c[u]&&(e[u].style.display=c[u]);return e}_.fn.extend({show:function(){return ce(this,!0)},hide:function(){return ce(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ie(this)?_(this).show():_(this).hide()})}});var ue,de,pe=/^(?:checkbox|radio)$/i,he=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,fe=/^$|^module$|\/(?:java|ecma)script/i;ue=v.createDocumentFragment().appendChild(v.createElement("div")),(de=v.createElement("input")).setAttribute("type","radio"),de.setAttribute("checked","checked"),de.setAttribute("name","t"),ue.appendChild(de),h.checkClone=ue.cloneNode(!0).cloneNode(!0).lastChild.checked,ue.innerHTML="<textarea>x</textarea>",h.noCloneChecked=!!ue.cloneNode(!0).lastChild.defaultValue,ue.innerHTML="<option></option>",h.option=!!ue.lastChild;var me={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ve(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&D(e,t)?_.merge([e],n):n}function ge(e,t){for(var n=0,r=e.length;n<r;n++)K.set(e[n],"globalEval",!t||K.get(t[n],"globalEval"))}me.tbody=me.tfoot=me.colgroup=me.caption=me.thead,me.th=me.td,h.option||(me.optgroup=me.option=[1,"<select multiple='multiple'>","</select>"]);var ye=/<|&#?\w+;/;function be(e,t,n,r,a){for(var o,i,s,l,c,u,d=t.createDocumentFragment(),p=[],h=0,f=e.length;h<f;h++)if((o=e[h])||0===o)if("object"===b(o))_.merge(p,o.nodeType?[o]:o);else if(ye.test(o)){i=i||d.appendChild(t.createElement("div")),s=(he.exec(o)||["",""])[1].toLowerCase(),l=me[s]||me._default,i.innerHTML=l[1]+_.htmlPrefilter(o)+l[2],u=l[0];while(u--)i=i.lastChild;_.merge(p,i.childNodes),(i=d.firstChild).textContent=""}else p.push(t.createTextNode(o));d.textContent="",h=0;while(o=p[h++])if(r&&-1<_.inArray(o,r))a&&a.push(o);else if(c=ae(o),i=ve(d.appendChild(o),"script"),c&&ge(i),n){u=0;while(o=i[u++])fe.test(o.type||"")&&n.push(o)}return d}var xe=/^([^.]*)(?:\.(.+)|)/;function _e(){return!0}function Se(){return!1}function ke(e,t){return e===function(){try{return v.activeElement}catch(e){}}()==("focus"===t)}function Ce(e,t,n,r,a,o){var i,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Ce(e,s,n,r,t[s],o);return e}if(null==r&&null==a?(a=n,r=n=void 0):null==a&&("string"==typeof n?(a=r,r=void 0):(a=r,r=n,n=void 0)),!1===a)a=Se;else if(!a)return e;return 1===o&&(i=a,(a=function(e){return _().off(e),i.apply(this,arguments)}).guid=i.guid||(i.guid=_.guid++)),e.each(function(){_.event.add(this,t,a,r,n)})}function we(e,t,n){n?(K.set(e,t,!1),_.event.add(e,t,{namespace:!1,handler:function(e){var r,o,i=K.get(this,t);if(1&e.isTrigger&&this[t]){if(i.length)(_.event.special[t]||{}).delegateType&&e.stopPropagation();else if(i=a.call(arguments),K.set(this,t,i),r=n(this,t),this[t](),i!==(o=K.get(this,t))||r?K.set(this,t,!1):o={},i!==o)return e.stopImmediatePropagation(),e.preventDefault(),o&&o.value}else i.length&&(K.set(this,t,{value:_.event.trigger(_.extend(i[0],_.Event.prototype),i.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===K.get(e,t)&&_.event.add(e,t,_e)}_.event={global:{},add:function(e,t,n,r,a){var o,i,s,l,c,u,d,p,h,f,m,v=K.get(e);if(W(e)){n.handler&&(n=(o=n).handler,a=o.selector),a&&_.find.matchesSelector(re,a),n.guid||(n.guid=_.guid++),(l=v.events)||(l=v.events=Object.create(null)),(i=v.handle)||(i=v.handle=function(t){return"undefined"!=typeof _&&_.event.triggered!==t.type?_.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(O)||[""]).length;while(c--)h=m=(s=xe.exec(t[c])||[])[1],f=(s[2]||"").split(".").sort(),h&&(d=_.event.special[h]||{},h=(a?d.delegateType:d.bindType)||h,d=_.event.special[h]||{},u=_.extend({type:h,origType:m,data:r,handler:n,guid:n.guid,selector:a,needsContext:a&&_.expr.match.needsContext.test(a),namespace:f.join(".")},o),(p=l[h])||((p=l[h]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,r,f,i)||e.addEventListener&&e.addEventListener(h,i)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),a?p.splice(p.delegateCount++,0,u):p.push(u),_.event.global[h]=!0)}},remove:function(e,t,n,r,a){var o,i,s,l,c,u,d,p,h,f,m,v=K.hasData(e)&&K.get(e);if(v&&(l=v.events)){c=(t=(t||"").match(O)||[""]).length;while(c--)if(h=m=(s=xe.exec(t[c])||[])[1],f=(s[2]||"").split(".").sort(),h){d=_.event.special[h]||{},p=l[h=(r?d.delegateType:d.bindType)||h]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=o=p.length;while(o--)u=p[o],!a&&m!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(p.splice(o,1),u.selector&&p.delegateCount--,d.remove&&d.remove.call(e,u));i&&!p.length&&(d.teardown&&!1!==d.teardown.call(e,f,v.handle)||_.removeEvent(e,h,v.handle),delete l[h])}else for(h in l)_.event.remove(e,h+t[c],n,r,!0);_.isEmptyObject(l)&&K.remove(e,"handle events")}},dispatch:function(e){var t,n,r,a,o,i,s=new Array(arguments.length),l=_.event.fix(e),c=(K.get(this,"events")||Object.create(null))[l.type]||[],u=_.event.special[l.type]||{};for(s[0]=l,t=1;t<arguments.length;t++)s[t]=arguments[t];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){i=_.event.handlers.call(this,l,c),t=0;while((a=i[t++])&&!l.isPropagationStopped()){l.currentTarget=a.elem,n=0;while((o=a.handlers[n++])&&!l.isImmediatePropagationStopped())l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(r=((_.event.special[o.origType]||{}).handle||o.handler).apply(a.elem,s))&&!1===(l.result=r)&&(l.preventDefault(),l.stopPropagation()))}return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,r,a,o,i,s=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&1<=e.button))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(o=[],i={},n=0;n<l;n++)void 0===i[a=(r=t[n]).selector+" "]&&(i[a]=r.needsContext?-1<_(a,this).index(c):_.find(a,this,null,[c]).length),i[a]&&o.push(r);o.length&&s.push({elem:c,handlers:o})}return c=this,l<t.length&&s.push({elem:c,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(_.Event.prototype,e,{enumerable:!0,configurable:!0,get:f(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[_.expando]?e:new _.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return pe.test(t.type)&&t.click&&D(t,"input")&&we(t,"click",_e),!1},trigger:function(e){var t=this||e;return pe.test(t.type)&&t.click&&D(t,"input")&&we(t,"click"),!0},_default:function(e){var t=e.target;return pe.test(t.type)&&t.click&&D(t,"input")&&K.get(t,"click")||D(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},_.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},_.Event=function(e,t){if(!(this instanceof _.Event))return new _.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?_e:Se,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&_.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[_.expando]=!0},_.Event.prototype={constructor:_.Event,isDefaultPrevented:Se,isPropagationStopped:Se,isImmediatePropagationStopped:Se,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=_e,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=_e,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=_e,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},_.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},_.event.addProp),_.each({focus:"focusin",blur:"focusout"},function(e,t){_.event.special[e]={setup:function(){return we(this,e,ke),!1},trigger:function(){return we(this,e),!0},_default:function(){return!0},delegateType:t}}),_.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){_.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,a=e.handleObj;return r&&(r===this||_.contains(this,r))||(e.type=a.origType,n=a.handler.apply(this,arguments),e.type=t),n}}}),_.fn.extend({on:function(e,t,n,r){return Ce(this,e,t,n,r)},one:function(e,t,n,r){return Ce(this,e,t,n,r,1)},off:function(e,t,n){var r,a;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,_(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(a in e)this.off(a,t,e[a]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Se),this.each(function(){_.event.remove(this,e,n,t)})}});var Ee=/<script|<style|<link/i,De=/checked\s*(?:[^=]|=\s*.checked.)/i,Ie=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Te(e,t){return D(e,"table")&&D(11!==t.nodeType?t:t.firstChild,"tr")&&_(e).children("tbody")[0]||e}function Ae(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ne(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Pe(e,t){var n,r,a,o,i,s;if(1===t.nodeType){if(K.hasData(e)&&(s=K.get(e).events))for(a in K.remove(t,"handle events"),s)for(n=0,r=s[a].length;n<r;n++)_.event.add(t,a,s[a][n]);Y.hasData(e)&&(o=Y.access(e),i=_.extend({},o),Y.set(t,i))}}function Fe(e,t,n,r){t=o(t);var a,i,s,l,c,u,d=0,p=e.length,m=p-1,v=t[0],g=f(v);if(g||1<p&&"string"==typeof v&&!h.checkClone&&De.test(v))return e.each(function(a){var o=e.eq(a);g&&(t[0]=v.call(this,a,o.html())),Fe(o,t,n,r)});if(p&&(i=(a=be(t,e[0].ownerDocument,!1,e,r)).firstChild,1===a.childNodes.length&&(a=i),i||r)){for(l=(s=_.map(ve(a,"script"),Ae)).length;d<p;d++)c=a,d!==m&&(c=_.clone(c,!0,!0),l&&_.merge(s,ve(c,"script"))),n.call(e[d],c,d);if(l)for(u=s[s.length-1].ownerDocument,_.map(s,Ne),d=0;d<l;d++)c=s[d],fe.test(c.type||"")&&!K.access(c,"globalEval")&&_.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?_._evalUrl&&!c.noModule&&_._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):y(c.textContent.replace(Ie,""),c,u))}return e}function Be(e,t,n){for(var r,a=t?_.filter(t,e):e,o=0;null!=(r=a[o]);o++)n||1!==r.nodeType||_.cleanData(ve(r)),r.parentNode&&(n&&ae(r)&&ge(ve(r,"script")),r.parentNode.removeChild(r));return e}_.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,a,o,i,s,l,c,u=e.cloneNode(!0),d=ae(e);if(!(h.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||_.isXMLDoc(e)))for(i=ve(u),r=0,a=(o=ve(e)).length;r<a;r++)s=o[r],l=i[r],void 0,"input"===(c=l.nodeName.toLowerCase())&&pe.test(s.type)?l.checked=s.checked:"input"!==c&&"textarea"!==c||(l.defaultValue=s.defaultValue);if(t)if(n)for(o=o||ve(e),i=i||ve(u),r=0,a=o.length;r<a;r++)Pe(o[r],i[r]);else Pe(e,u);return 0<(i=ve(u,"script")).length&&ge(i,!d&&ve(e,"script")),u},cleanData:function(e){for(var t,n,r,a=_.event.special,o=0;void 0!==(n=e[o]);o++)if(W(n)){if(t=n[K.expando]){if(t.events)for(r in t.events)a[r]?_.event.remove(n,r):_.removeEvent(n,r,t.handle);n[K.expando]=void 0}n[Y.expando]&&(n[Y.expando]=void 0)}}}),_.fn.extend({detach:function(e){return Be(this,e,!0)},remove:function(e){return Be(this,e)},text:function(e){return H(this,function(e){return void 0===e?_.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Fe(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Te(this,e).appendChild(e)})},prepend:function(){return Fe(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Te(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Fe(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Fe(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(_.cleanData(ve(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return _.clone(this,e,t)})},html:function(e){return H(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ee.test(e)&&!me[(he.exec(e)||["",""])[1].toLowerCase()]){e=_.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(_.cleanData(ve(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return Fe(this,arguments,function(t){var n=this.parentNode;_.inArray(this,e)<0&&(_.cleanData(ve(this)),n&&n.replaceChild(t,this))},e)}}),_.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){_.fn[e]=function(e){for(var n,r=[],a=_(e),o=a.length-1,s=0;s<=o;s++)n=s===o?this:this.clone(!0),_(a[s])[t](n),i.apply(r,n.get());return this.pushStack(r)}});var Oe=new RegExp("^("+ee+")(?!px)[a-z%]+$","i"),Re=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},$e=function(e,t,n){var r,a,o={};for(a in t)o[a]=e.style[a],e.style[a]=t[a];for(a in r=n.call(e),t)e.style[a]=o[a];return r},Ge=new RegExp(ne.join("|"),"i");function je(e,t,n){var r,a,o,i,s=e.style;return(n=n||Re(e))&&(""!==(i=n.getPropertyValue(t)||n[t])||ae(e)||(i=_.style(e,t)),!h.pixelBoxStyles()&&Oe.test(i)&&Ge.test(t)&&(r=s.width,a=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=i,i=n.width,s.width=r,s.minWidth=a,s.maxWidth=o)),void 0!==i?i+"":i}function Le(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function t(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",re.appendChild(c).appendChild(u);var t=e.getComputedStyle(u);r="1%"!==t.top,l=12===n(t.marginLeft),u.style.right="60%",i=36===n(t.right),a=36===n(t.width),u.style.position="absolute",o=12===n(u.offsetWidth/3),re.removeChild(c),u=null}}function n(e){return Math.round(parseFloat(e))}var r,a,o,i,s,l,c=v.createElement("div"),u=v.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",h.clearCloneStyle="content-box"===u.style.backgroundClip,_.extend(h,{boxSizingReliable:function(){return t(),a},pixelBoxStyles:function(){return t(),i},pixelPosition:function(){return t(),r},reliableMarginLeft:function(){return t(),l},scrollboxSize:function(){return t(),o},reliableTrDimensions:function(){var t,n,r,a;return null==s&&(t=v.createElement("table"),n=v.createElement("tr"),r=v.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",n.style.cssText="border:1px solid",n.style.height="1px",r.style.height="9px",r.style.display="block",re.appendChild(t).appendChild(n).appendChild(r),a=e.getComputedStyle(n),s=parseInt(a.height,10)+parseInt(a.borderTopWidth,10)+parseInt(a.borderBottomWidth,10)===n.offsetHeight,re.removeChild(t)),s}}))}();var Me=["Webkit","Moz","ms"],He=v.createElement("div").style,ze={};function Ve(e){var t=_.cssProps[e]||ze[e];return t||(e in He?e:ze[e]=function(e){var t=e[0].toUpperCase()+e.slice(1),n=Me.length;while(n--)if((e=Me[n]+t)in He)return e}(e)||e)}var Ue=/^(none|table(?!-c[ea]).+)/,qe=/^--/,We={position:"absolute",visibility:"hidden",display:"block"},Je={letterSpacing:"0",fontWeight:"400"};function Ke(e,t,n){var r=te.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function Ye(e,t,n,r,a,o){var i="width"===t?1:0,s=0,l=0;if(n===(r?"border":"content"))return 0;for(;i<4;i+=2)"margin"===n&&(l+=_.css(e,n+ne[i],!0,a)),r?("content"===n&&(l-=_.css(e,"padding"+ne[i],!0,a)),"margin"!==n&&(l-=_.css(e,"border"+ne[i]+"Width",!0,a))):(l+=_.css(e,"padding"+ne[i],!0,a),"padding"!==n?l+=_.css(e,"border"+ne[i]+"Width",!0,a):s+=_.css(e,"border"+ne[i]+"Width",!0,a));return!r&&0<=o&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-s-.5))||0),l}function Xe(e,t,n){var r=Re(e),a=(!h.boxSizingReliable()||n)&&"border-box"===_.css(e,"boxSizing",!1,r),o=a,i=je(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Oe.test(i)){if(!n)return i;i="auto"}return(!h.boxSizingReliable()&&a||!h.reliableTrDimensions()&&D(e,"tr")||"auto"===i||!parseFloat(i)&&"inline"===_.css(e,"display",!1,r))&&e.getClientRects().length&&(a="border-box"===_.css(e,"boxSizing",!1,r),(o=s in e)&&(i=e[s])),(i=parseFloat(i)||0)+Ye(e,t,n||(a?"border":"content"),o,r,i)+"px"}function Qe(e,t,n,r,a){return new Qe.prototype.init(e,t,n,r,a)}_.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=je(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var a,o,i,s=q(t),l=qe.test(t),c=e.style;if(l||(t=Ve(s)),i=_.cssHooks[t]||_.cssHooks[s],void 0===n)return i&&"get"in i&&void 0!==(a=i.get(e,!1,r))?a:c[t];"string"===(o=typeof n)&&(a=te.exec(n))&&a[1]&&(n=se(e,t,a),o="number"),null!=n&&n==n&&("number"!==o||l||(n+=a&&a[3]||(_.cssNumber[s]?"":"px")),h.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),i&&"set"in i&&void 0===(n=i.set(e,n,r))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,r){var a,o,i,s=q(t);return qe.test(t)||(t=Ve(s)),(i=_.cssHooks[t]||_.cssHooks[s])&&"get"in i&&(a=i.get(e,!0,n)),void 0===a&&(a=je(e,t,r)),"normal"===a&&t in Je&&(a=Je[t]),""===n||n?(o=parseFloat(a),!0===n||isFinite(o)?o||0:a):a}}),_.each(["height","width"],function(e,t){_.cssHooks[t]={get:function(e,n,r){if(n)return!Ue.test(_.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Xe(e,t,r):$e(e,We,function(){return Xe(e,t,r)})},set:function(e,n,r){var a,o=Re(e),i=!h.scrollboxSize()&&"absolute"===o.position,s=(i||r)&&"border-box"===_.css(e,"boxSizing",!1,o),l=r?Ye(e,t,r,s,o):0;return s&&i&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-Ye(e,t,"border",!1,o)-.5)),l&&(a=te.exec(n))&&"px"!==(a[3]||"px")&&(e.style[t]=n,n=_.css(e,t)),Ke(0,n,l)}}}),_.cssHooks.marginLeft=Le(h.reliableMarginLeft,function(e,t){if(t)return(parseFloat(je(e,"marginLeft"))||e.getBoundingClientRect().left-$e(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),_.each({margin:"",padding:"",border:"Width"},function(e,t){_.cssHooks[e+t]={expand:function(n){for(var r=0,a={},o="string"==typeof n?n.split(" "):[n];r<4;r++)a[e+ne[r]+t]=o[r]||o[r-2]||o[0];return a}},"margin"!==e&&(_.cssHooks[e+t].set=Ke)}),_.fn.extend({css:function(e,t){return H(this,function(e,t,n){var r,a,o={},i=0;if(Array.isArray(t)){for(r=Re(e),a=t.length;i<a;i++)o[t[i]]=_.css(e,t[i],!1,r);return o}return void 0!==n?_.style(e,t,n):_.css(e,t)},e,t,1<arguments.length)}}),((_.Tween=Qe).prototype={constructor:Qe,init:function(e,t,n,r,a,o){this.elem=e,this.prop=n,this.easing=a||_.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(_.cssNumber[n]?"":"px")},cur:function(){var e=Qe.propHooks[this.prop];return e&&e.get?e.get(this):Qe.propHooks._default.get(this)},run:function(e){var t,n=Qe.propHooks[this.prop];return this.options.duration?this.pos=t=_.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Qe.propHooks._default.set(this),this}}).init.prototype=Qe.prototype,(Qe.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=_.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){_.fx.step[e.prop]?_.fx.step[e.prop](e):1!==e.elem.nodeType||!_.cssHooks[e.prop]&&null==e.elem.style[Ve(e.prop)]?e.elem[e.prop]=e.now:_.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=Qe.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},_.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},_.fx=Qe.prototype.init,_.fx.step={};var Ze,et,tt,nt,rt=/^(?:toggle|show|hide)$/,at=/queueHooks$/;function ot(){et&&(!1===v.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(ot):e.setTimeout(ot,_.fx.interval),_.fx.tick())}function it(){return e.setTimeout(function(){Ze=void 0}),Ze=Date.now()}function st(e,t){var n,r=0,a={height:e};for(t=t?1:0;r<4;r+=2-t)a["margin"+(n=ne[r])]=a["padding"+n]=e;return t&&(a.opacity=a.width=e),a}function lt(e,t,n){for(var r,a=(ct.tweeners[t]||[]).concat(ct.tweeners["*"]),o=0,i=a.length;o<i;o++)if(r=a[o].call(n,t,e))return r}function ct(e,t,n){var r,a,o=0,i=ct.prefilters.length,s=_.Deferred().always(function(){delete l.elem}),l=function(){if(a)return!1;for(var t=Ze||it(),n=Math.max(0,c.startTime+c.duration-t),r=1-(n/c.duration||0),o=0,i=c.tweens.length;o<i;o++)c.tweens[o].run(r);return s.notifyWith(e,[c,r,n]),r<1&&i?n:(i||s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:_.extend({},t),opts:_.extend(!0,{specialEasing:{},easing:_.easing._default},n),originalProperties:t,originalOptions:n,startTime:Ze||it(),duration:n.duration,tweens:[],createTween:function(t,n){var r=_.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(r),r},stop:function(t){var n=0,r=t?c.tweens.length:0;if(a)return this;for(a=!0;n<r;n++)c.tweens[n].run(1);return t?(s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c,t])):s.rejectWith(e,[c,t]),this}}),u=c.props;for(!function(e,t){var n,r,a,o,i;for(n in e)if(a=t[r=q(n)],o=e[n],Array.isArray(o)&&(a=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(i=_.cssHooks[r])&&"expand"in i)for(n in o=i.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=a);else t[r]=a}(u,c.opts.specialEasing);o<i;o++)if(r=ct.prefilters[o].call(c,e,u,c.opts))return f(r.stop)&&(_._queueHooks(c.elem,c.opts.queue).stop=r.stop.bind(r)),r;return _.map(u,lt,c),f(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),_.fx.timer(_.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}_.Animation=_.extend(ct,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return se(n.elem,e,te.exec(t),n),n}]},tweener:function(e,t){f(e)?(t=e,e=["*"]):e=e.match(O);for(var n,r=0,a=e.length;r<a;r++)n=e[r],ct.tweeners[n]=ct.tweeners[n]||[],ct.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,a,o,i,s,l,c,u,d="width"in t||"height"in t,p=this,h={},f=e.style,m=e.nodeType&&ie(e),v=K.get(e,"fxshow");for(r in n.queue||(null==(i=_._queueHooks(e,"fx")).unqueued&&(i.unqueued=0,s=i.empty.fire,i.empty.fire=function(){i.unqueued||s()}),i.unqueued++,p.always(function(){p.always(function(){i.unqueued--,_.queue(e,"fx").length||i.empty.fire()})})),t)if(a=t[r],rt.test(a)){if(delete t[r],
o=o||"toggle"===a,a===(m?"hide":"show")){if("show"!==a||!v||void 0===v[r])continue;m=!0}h[r]=v&&v[r]||_.style(e,r)}if((l=!_.isEmptyObject(t))||!_.isEmptyObject(h))for(r in d&&1===e.nodeType&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],null==(c=v&&v.display)&&(c=K.get(e,"display")),"none"===(u=_.css(e,"display"))&&(c?u=c:(ce([e],!0),c=e.style.display||c,u=_.css(e,"display"),ce([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===_.css(e,"float")&&(l||(p.done(function(){f.display=c}),null==c&&(u=f.display,c="none"===u?"":u)),f.display="inline-block")),n.overflow&&(f.overflow="hidden",p.always(function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]})),l=!1,h)l||(v?"hidden"in v&&(m=v.hidden):v=K.access(e,"fxshow",{display:c}),o&&(v.hidden=!m),m&&ce([e],!0),p.done(function(){for(r in m||ce([e]),K.remove(e,"fxshow"),h)_.style(e,r,h[r])})),l=lt(m?v[r]:0,r,p),r in v||(v[r]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?ct.prefilters.unshift(e):ct.prefilters.push(e)}}),_.speed=function(e,t,n){var r=e&&"object"==typeof e?_.extend({},e):{complete:n||!n&&t||f(e)&&e,duration:e,easing:n&&t||t&&!f(t)&&t};return _.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in _.fx.speeds?r.duration=_.fx.speeds[r.duration]:r.duration=_.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){f(r.old)&&r.old.call(this),r.queue&&_.dequeue(this,r.queue)},r},_.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ie).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var a=_.isEmptyObject(e),o=_.speed(t,n,r),i=function(){var t=ct(this,_.extend({},e),o);(a||K.get(this,"finish"))&&t.stop(!0)};return i.finish=i,a||!1===o.queue?this.each(i):this.queue(o.queue,i)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each(function(){var t=!0,a=null!=e&&e+"queueHooks",o=_.timers,i=K.get(this);if(a)i[a]&&i[a].stop&&r(i[a]);else for(a in i)i[a]&&i[a].stop&&at.test(a)&&r(i[a]);for(a=o.length;a--;)o[a].elem!==this||null!=e&&o[a].queue!==e||(o[a].anim.stop(n),t=!1,o.splice(a,1));!t&&n||_.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=K.get(this),r=n[e+"queue"],a=n[e+"queueHooks"],o=_.timers,i=r?r.length:0;for(n.finish=!0,_.queue(this,e,[]),a&&a.stop&&a.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<i;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),_.each(["toggle","show","hide"],function(e,t){var n=_.fn[t];_.fn[t]=function(e,r,a){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(st(t,!0),e,r,a)}}),_.each({slideDown:st("show"),slideUp:st("hide"),slideToggle:st("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){_.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),_.timers=[],_.fx.tick=function(){var e,t=0,n=_.timers;for(Ze=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||_.fx.stop(),Ze=void 0},_.fx.timer=function(e){_.timers.push(e),_.fx.start()},_.fx.interval=13,_.fx.start=function(){et||(et=!0,ot())},_.fx.stop=function(){et=null},_.fx.speeds={slow:600,fast:200,_default:400},_.fn.delay=function(t,n){return t=_.fx&&_.fx.speeds[t]||t,n=n||"fx",this.queue(n,function(n,r){var a=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(a)}})},tt=v.createElement("input"),nt=v.createElement("select").appendChild(v.createElement("option")),tt.type="checkbox",h.checkOn=""!==tt.value,h.optSelected=nt.selected,(tt=v.createElement("input")).value="t",tt.type="radio",h.radioValue="t"===tt.value;var ut,dt=_.expr.attrHandle;_.fn.extend({attr:function(e,t){return H(this,_.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){_.removeAttr(this,e)})}}),_.extend({attr:function(e,t,n){var r,a,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?_.prop(e,t,n):(1===o&&_.isXMLDoc(e)||(a=_.attrHooks[t.toLowerCase()]||(_.expr.match.bool.test(t)?ut:void 0)),void 0!==n?null===n?void _.removeAttr(e,t):a&&"set"in a&&void 0!==(r=a.set(e,n,t))?r:(e.setAttribute(t,n+""),n):a&&"get"in a&&null!==(r=a.get(e,t))?r:null==(r=_.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!h.radioValue&&"radio"===t&&D(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,a=t&&t.match(O);if(a&&1===e.nodeType)while(n=a[r++])e.removeAttribute(n)}}),ut={set:function(e,t,n){return!1===t?_.removeAttr(e,n):e.setAttribute(n,n),n}},_.each(_.expr.match.bool.source.match(/\w+/g),function(e,t){var n=dt[t]||_.find.attr;dt[t]=function(e,t,r){var a,o,i=t.toLowerCase();return r||(o=dt[i],dt[i]=a,a=null!=n(e,t,r)?i:null,dt[i]=o),a}});var pt=/^(?:input|select|textarea|button)$/i,ht=/^(?:a|area)$/i;function ft(e){return(e.match(O)||[]).join(" ")}function mt(e){return e.getAttribute&&e.getAttribute("class")||""}function vt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(O)||[]}_.fn.extend({prop:function(e,t){return H(this,_.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[_.propFix[e]||e]})}}),_.extend({prop:function(e,t,n){var r,a,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&_.isXMLDoc(e)||(t=_.propFix[t]||t,a=_.propHooks[t]),void 0!==n?a&&"set"in a&&void 0!==(r=a.set(e,n,t))?r:e[t]=n:a&&"get"in a&&null!==(r=a.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=_.find.attr(e,"tabindex");return t?parseInt(t,10):pt.test(e.nodeName)||ht.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),h.optSelected||(_.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),_.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){_.propFix[this.toLowerCase()]=this}),_.fn.extend({addClass:function(e){var t,n,r,a,o,i,s,l=0;if(f(e))return this.each(function(t){_(this).addClass(e.call(this,t,mt(this)))});if((t=vt(e)).length)while(n=this[l++])if(a=mt(n),r=1===n.nodeType&&" "+ft(a)+" "){i=0;while(o=t[i++])r.indexOf(" "+o+" ")<0&&(r+=o+" ");a!==(s=ft(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,a,o,i,s,l=0;if(f(e))return this.each(function(t){_(this).removeClass(e.call(this,t,mt(this)))});if(!arguments.length)return this.attr("class","");if((t=vt(e)).length)while(n=this[l++])if(a=mt(n),r=1===n.nodeType&&" "+ft(a)+" "){i=0;while(o=t[i++])while(-1<r.indexOf(" "+o+" "))r=r.replace(" "+o+" "," ");a!==(s=ft(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):f(e)?this.each(function(n){_(this).toggleClass(e.call(this,n,mt(this),t),t)}):this.each(function(){var t,a,o,i;if(r){a=0,o=_(this),i=vt(e);while(t=i[a++])o.hasClass(t)?o.removeClass(t):o.addClass(t)}else void 0!==e&&"boolean"!==n||((t=mt(this))&&K.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":K.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;t=" "+e+" ";while(n=this[r++])if(1===n.nodeType&&-1<(" "+ft(mt(n))+" ").indexOf(t))return!0;return!1}});var gt=/\r/g;_.fn.extend({val:function(e){var t,n,r,a=this[0];return arguments.length?(r=f(e),this.each(function(n){var a;1===this.nodeType&&(null==(a=r?e.call(this,n,_(this).val()):e)?a="":"number"==typeof a?a+="":Array.isArray(a)&&(a=_.map(a,function(e){return null==e?"":e+""})),(t=_.valHooks[this.type]||_.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,a,"value")||(this.value=a))})):a?(t=_.valHooks[a.type]||_.valHooks[a.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(a,"value"))?n:"string"==typeof(n=a.value)?n.replace(gt,""):null==n?"":n:void 0}}),_.extend({valHooks:{option:{get:function(e){var t=_.find.attr(e,"value");return null!=t?t:ft(_.text(e))}},select:{get:function(e){var t,n,r,a=e.options,o=e.selectedIndex,i="select-one"===e.type,s=i?null:[],l=i?o+1:a.length;for(r=o<0?l:i?o:0;r<l;r++)if(((n=a[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!D(n.parentNode,"optgroup"))){if(t=_(n).val(),i)return t;s.push(t)}return s},set:function(e,t){var n,r,a=e.options,o=_.makeArray(t),i=a.length;while(i--)((r=a[i]).selected=-1<_.inArray(_.valHooks.option.get(r),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),_.each(["radio","checkbox"],function(){_.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<_.inArray(_(e).val(),t)}},h.checkOn||(_.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),h.focusin="onfocusin"in e;var yt=/^(?:focusinfocus|focusoutblur)$/,bt=function(e){e.stopPropagation()};_.extend(_.event,{trigger:function(t,n,r,a){var o,i,s,l,c,d,p,h,g=[r||v],y=u.call(t,"type")?t.type:t,b=u.call(t,"namespace")?t.namespace.split("."):[];if(i=h=s=r=r||v,3!==r.nodeType&&8!==r.nodeType&&!yt.test(y+_.event.triggered)&&(-1<y.indexOf(".")&&(y=(b=y.split(".")).shift(),b.sort()),c=y.indexOf(":")<0&&"on"+y,(t=t[_.expando]?t:new _.Event(y,"object"==typeof t&&t)).isTrigger=a?2:3,t.namespace=b.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:_.makeArray(n,[t]),p=_.event.special[y]||{},a||!p.trigger||!1!==p.trigger.apply(r,n))){if(!a&&!p.noBubble&&!m(r)){for(l=p.delegateType||y,yt.test(l+y)||(i=i.parentNode);i;i=i.parentNode)g.push(i),s=i;s===(r.ownerDocument||v)&&g.push(s.defaultView||s.parentWindow||e)}o=0;while((i=g[o++])&&!t.isPropagationStopped())h=i,t.type=1<o?l:p.bindType||y,(d=(K.get(i,"events")||Object.create(null))[t.type]&&K.get(i,"handle"))&&d.apply(i,n),(d=c&&i[c])&&d.apply&&W(i)&&(t.result=d.apply(i,n),!1===t.result&&t.preventDefault());return t.type=y,a||t.isDefaultPrevented()||p._default&&!1!==p._default.apply(g.pop(),n)||!W(r)||c&&f(r[y])&&!m(r)&&((s=r[c])&&(r[c]=null),_.event.triggered=y,t.isPropagationStopped()&&h.addEventListener(y,bt),r[y](),t.isPropagationStopped()&&h.removeEventListener(y,bt),_.event.triggered=void 0,s&&(r[c]=s)),t.result}},simulate:function(e,t,n){var r=_.extend(new _.Event,n,{type:e,isSimulated:!0});_.event.trigger(r,null,t)}}),_.fn.extend({trigger:function(e,t){return this.each(function(){_.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return _.event.trigger(e,t,n,!0)}}),h.focusin||_.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){_.event.simulate(t,e.target,_.event.fix(e))};_.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,a=K.access(r,t);a||r.addEventListener(e,n,!0),K.access(r,t,(a||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,a=K.access(r,t)-1;a?K.access(r,t,a):(r.removeEventListener(e,n,!0),K.remove(r,t))}}});var xt=e.location,_t={guid:Date.now()},St=/\?/;_.parseXML=function(t){var n,r;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(t){}return r=n&&n.getElementsByTagName("parsererror")[0],n&&!r||_.error("Invalid XML: "+(r?_.map(r.childNodes,function(e){return e.textContent}).join("\n"):t)),n};var kt=/\[\]$/,Ct=/\r?\n/g,wt=/^(?:submit|button|image|reset|file)$/i,Et=/^(?:input|select|textarea|keygen)/i;function Dt(e,t,n,r){var a;if(Array.isArray(t))_.each(t,function(t,a){n||kt.test(e)?r(e,a):Dt(e+"["+("object"==typeof a&&null!=a?t:"")+"]",a,n,r)});else if(n||"object"!==b(t))r(e,t);else for(a in t)Dt(e+"["+a+"]",t[a],n,r)}_.param=function(e,t){var n,r=[],a=function(e,t){var n=f(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!_.isPlainObject(e))_.each(e,function(){a(this.name,this.value)});else for(n in e)Dt(n,e[n],t,a);return r.join("&")},_.fn.extend({serialize:function(){return _.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=_.prop(this,"elements");return e?_.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!_(this).is(":disabled")&&Et.test(this.nodeName)&&!wt.test(e)&&(this.checked||!pe.test(e))}).map(function(e,t){var n=_(this).val();return null==n?null:Array.isArray(n)?_.map(n,function(e){return{name:t.name,value:e.replace(Ct,"\r\n")}}):{name:t.name,value:n.replace(Ct,"\r\n")}}).get()}});var It=/%20/g,Tt=/#.*$/,At=/([?&])_=[^&]*/,Nt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Pt=/^(?:GET|HEAD)$/,Ft=/^\/\//,Bt={},Ot={},Rt="*/".concat("*"),$t=v.createElement("a");function Gt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,a=0,o=t.toLowerCase().match(O)||[];if(f(n))while(r=o[a++])"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function jt(e,t,n,r){var a={},o=e===Ot;function i(s){var l;return a[s]=!0,_.each(e[s]||[],function(e,s){var c=s(t,n,r);return"string"!=typeof c||o||a[c]?o?!(l=c):void 0:(t.dataTypes.unshift(c),i(c),!1)}),l}return i(t.dataTypes[0])||!a["*"]&&i("*")}function Lt(e,t){var n,r,a=_.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((a[n]?e:r||(r={}))[n]=t[n]);return r&&_.extend(!0,e,r),e}$t.href=xt.href,_.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:xt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(xt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Rt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":_.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Lt(Lt(e,_.ajaxSettings),t):Lt(_.ajaxSettings,e)},ajaxPrefilter:Gt(Bt),ajaxTransport:Gt(Ot),ajax:function(t,n){"object"==typeof t&&(n=t,t=void 0),n=n||{};var r,a,o,i,s,l,c,u,d,p,h=_.ajaxSetup({},n),f=h.context||h,m=h.context&&(f.nodeType||f.jquery)?_(f):_.event,g=_.Deferred(),y=_.Callbacks("once memory"),b=h.statusCode||{},x={},S={},k="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(c){if(!i){i={};while(t=Nt.exec(o))i[t[1].toLowerCase()+" "]=(i[t[1].toLowerCase()+" "]||[]).concat(t[2])}t=i[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?o:null},setRequestHeader:function(e,t){return null==c&&(e=S[e.toLowerCase()]=S[e.toLowerCase()]||e,x[e]=t),this},overrideMimeType:function(e){return null==c&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)C.always(e[C.status]);else for(t in e)b[t]=[b[t],e[t]];return this},abort:function(e){var t=e||k;return r&&r.abort(t),w(0,t),this}};if(g.promise(C),h.url=((t||h.url||xt.href)+"").replace(Ft,xt.protocol+"//"),h.type=n.method||n.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(O)||[""],null==h.crossDomain){l=v.createElement("a");try{l.href=h.url,l.href=l.href,h.crossDomain=$t.protocol+"//"+$t.host!=l.protocol+"//"+l.host}catch(t){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=_.param(h.data,h.traditional)),jt(Bt,h,n,C),c)return C;for(d in(u=_.event&&h.global)&&0==_.active++&&_.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Pt.test(h.type),a=h.url.replace(Tt,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(It,"+")):(p=h.url.slice(a.length),h.data&&(h.processData||"string"==typeof h.data)&&(a+=(St.test(a)?"&":"?")+h.data,delete h.data),!1===h.cache&&(a=a.replace(At,"$1"),p=(St.test(a)?"&":"?")+"_="+_t.guid++ +p),h.url=a+p),h.ifModified&&(_.lastModified[a]&&C.setRequestHeader("If-Modified-Since",_.lastModified[a]),_.etag[a]&&C.setRequestHeader("If-None-Match",_.etag[a])),(h.data&&h.hasContent&&!1!==h.contentType||n.contentType)&&C.setRequestHeader("Content-Type",h.contentType),C.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Rt+"; q=0.01":""):h.accepts["*"]),h.headers)C.setRequestHeader(d,h.headers[d]);if(h.beforeSend&&(!1===h.beforeSend.call(f,C,h)||c))return C.abort();if(k="abort",y.add(h.complete),C.done(h.success),C.fail(h.error),r=jt(Ot,h,n,C)){if(C.readyState=1,u&&m.trigger("ajaxSend",[C,h]),c)return C;h.async&&0<h.timeout&&(s=e.setTimeout(function(){C.abort("timeout")},h.timeout));try{c=!1,r.send(x,w)}catch(t){if(c)throw t;w(-1,t)}}else w(-1,"No Transport");function w(t,n,i,l){var d,p,v,x,S,k=n;c||(c=!0,s&&e.clearTimeout(s),r=void 0,o=l||"",C.readyState=0<t?4:0,d=200<=t&&t<300||304===t,i&&(x=function(e,t,n){var r,a,o,i,s=e.contents,l=e.dataTypes;while("*"===l[0])l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(a in s)if(s[a]&&s[a].test(r)){l.unshift(a);break}if(l[0]in n)o=l[0];else{for(a in n){if(!l[0]||e.converters[a+" "+l[0]]){o=a;break}i||(i=a)}o=o||i}if(o)return o!==l[0]&&l.unshift(o),n[o]}(h,C,i)),!d&&-1<_.inArray("script",h.dataTypes)&&_.inArray("json",h.dataTypes)<0&&(h.converters["text script"]=function(){}),x=function(e,t,n,r){var a,o,i,s,l,c={},u=e.dataTypes.slice();if(u[1])for(i in e.converters)c[i.toLowerCase()]=e.converters[i];o=u.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(i=c[l+" "+o]||c["* "+o]))for(a in c)if((s=a.split(" "))[1]===o&&(i=c[l+" "+s[0]]||c["* "+s[0]])){!0===i?i=c[a]:!0!==c[a]&&(o=s[0],u.unshift(s[1]));break}if(!0!==i)if(i&&e["throws"])t=i(t);else try{t=i(t)}catch(e){return{state:"parsererror",error:i?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(h,x,C,d),d?(h.ifModified&&((S=C.getResponseHeader("Last-Modified"))&&(_.lastModified[a]=S),(S=C.getResponseHeader("etag"))&&(_.etag[a]=S)),204===t||"HEAD"===h.type?k="nocontent":304===t?k="notmodified":(k=x.state,p=x.data,d=!(v=x.error))):(v=k,!t&&k||(k="error",t<0&&(t=0))),C.status=t,C.statusText=(n||k)+"",d?g.resolveWith(f,[p,k,C]):g.rejectWith(f,[C,k,v]),C.statusCode(b),b=void 0,u&&m.trigger(d?"ajaxSuccess":"ajaxError",[C,h,d?p:v]),y.fireWith(f,[C,k]),u&&(m.trigger("ajaxComplete",[C,h]),--_.active||_.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,n){return _.get(e,t,n,"json")},getScript:function(e,t){return _.get(e,void 0,t,"script")}}),_.each(["get","post"],function(e,t){_[t]=function(e,n,r,a){return f(n)&&(a=a||r,r=n,n=void 0),_.ajax(_.extend({url:e,type:t,dataType:a,data:n,success:r},_.isPlainObject(e)&&e))}}),_.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),_._evalUrl=function(e,t,n){return _.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){_.globalEval(e,t,n)}})},_.fn.extend({wrapAll:function(e){var t;return this[0]&&(f(e)&&(e=e.call(this[0])),t=_(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return f(e)?this.each(function(t){_(this).wrapInner(e.call(this,t))}):this.each(function(){var t=_(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=f(e);return this.each(function(n){_(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){_(this).replaceWith(this.childNodes)}),this}}),_.expr.pseudos.hidden=function(e){return!_.expr.pseudos.visible(e)},_.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},_.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var Mt={0:200,1223:204},Ht=_.ajaxSettings.xhr();h.cors=!!Ht&&"withCredentials"in Ht,h.ajax=Ht=!!Ht,_.ajaxTransport(function(t){var n,r;if(h.cors||Ht&&!t.crossDomain)return{send:function(a,o){var i,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(i in t.xhrFields)s[i]=t.xhrFields[i];for(i in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||a["X-Requested-With"]||(a["X-Requested-With"]="XMLHttpRequest"),a)s.setRequestHeader(i,a[i]);n=function(e){return function(){n&&(n=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Mt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=n(),r=s.onerror=s.ontimeout=n("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&e.setTimeout(function(){n&&r()})},n=n("abort");try{s.send(t.hasContent&&t.data||null)}catch(a){if(n)throw a}},abort:function(){n&&n()}}}),_.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),_.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return _.globalEval(e),e}}}),_.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),_.ajaxTransport("script",function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,a){t=_("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&a("error"===e.type?404:200,e.type)}),v.head.appendChild(t[0])},abort:function(){n&&n()}}});var zt,Vt=[],Ut=/(=)\?(?=&|$)|\?\?/;_.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Vt.pop()||_.expando+"_"+_t.guid++;return this[e]=!0,e}}),_.ajaxPrefilter("json jsonp",function(t,n,r){var a,o,i,s=!1!==t.jsonp&&(Ut.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ut.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return a=t.jsonpCallback=f(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Ut,"$1"+a):!1!==t.jsonp&&(t.url+=(St.test(t.url)?"&":"?")+t.jsonp+"="+a),t.converters["script json"]=function(){return i||_.error(a+" was not called"),i[0]},t.dataTypes[0]="json",o=e[a],e[a]=function(){i=arguments},r.always(function(){void 0===o?_(e).removeProp(a):e[a]=o,t[a]&&(t.jsonpCallback=n.jsonpCallback,Vt.push(a)),i&&f(o)&&o(i[0]),i=o=void 0}),"script"}),h.createHTMLDocument=((zt=v.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===zt.childNodes.length),_.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(h.createHTMLDocument?((r=(t=v.implementation.createHTMLDocument("")).createElement("base")).href=v.location.href,t.head.appendChild(r)):t=v),o=!n&&[],(a=I.exec(e))?[t.createElement(a[1])]:(a=be([e],t,o),o&&o.length&&_(o).remove(),_.merge([],a.childNodes)));var r,a,o},_.fn.load=function(e,t,n){var r,a,o,i=this,s=e.indexOf(" ");return-1<s&&(r=ft(e.slice(s)),e=e.slice(0,s)),f(t)?(n=t,t=void 0):t&&"object"==typeof t&&(a="POST"),0<i.length&&_.ajax({url:e,type:a||"GET",dataType:"html",data:t}).done(function(e){o=arguments,i.html(r?_("<div>").append(_.parseHTML(e)).find(r):e)}).always(n&&function(e,t){i.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},_.expr.pseudos.animated=function(e){return _.grep(_.timers,function(t){return e===t.elem}).length},_.offset={setOffset:function(e,t,n){var r,a,o,i,s,l,c=_.css(e,"position"),u=_(e),d={};"static"===c&&(e.style.position="relative"),s=u.offset(),o=_.css(e,"top"),l=_.css(e,"left"),("absolute"===c||"fixed"===c)&&-1<(o+l).indexOf("auto")?(i=(r=u.position()).top,a=r.left):(i=parseFloat(o)||0,a=parseFloat(l)||0),f(t)&&(t=t.call(e,n,_.extend({},s))),null!=t.top&&(d.top=t.top-s.top+i),null!=t.left&&(d.left=t.left-s.left+a),"using"in t?t.using.call(e,d):u.css(d)}},_.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){_.offset.setOffset(this,e,t)});var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],a={top:0,left:0};if("fixed"===_.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===_.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((a=_(e).offset()).top+=_.css(e,"borderTopWidth",!0),a.left+=_.css(e,"borderLeftWidth",!0))}return{top:t.top-a.top-_.css(r,"marginTop",!0),left:t.left-a.left-_.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===_.css(e,"position"))e=e.offsetParent;return e||re})}}),_.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;_.fn[e]=function(r){return H(this,function(e,r,a){var o;if(m(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===a)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:a,n?a:o.pageYOffset):e[r]=a},e,r,arguments.length)}}),_.each(["top","left"],function(e,t){_.cssHooks[t]=Le(h.pixelPosition,function(e,n){if(n)return n=je(e,t),Oe.test(n)?_(e).position()[t]+"px":n})}),_.each({Height:"height",Width:"width"},function(e,t){_.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){_.fn[r]=function(a,o){var i=arguments.length&&(n||"boolean"!=typeof a),s=n||(!0===a||!0===o?"margin":"border");return H(this,function(t,n,a){var o;return m(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===a?_.css(t,n,s):_.style(t,n,a,s)},t,i?a:void 0,i)}})}),_.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){_.fn[t]=function(e){return this.on(t,e)}}),_.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),_.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){_.fn[t]=function(e,n){return 0<arguments.length?this.on(t,null,e,n):this.trigger(t)}});var qt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;_.proxy=function(e,t){var n,r,o;if("string"==typeof t&&(n=e[t],t=e,e=n),f(e))return r=a.call(arguments,2),(o=function(){return e.apply(t||this,r.concat(a.call(arguments)))}).guid=e.guid=e.guid||_.guid++,o},_.holdReady=function(e){e?_.readyWait++:_.ready(!0)},_.isArray=Array.isArray,_.parseJSON=JSON.parse,_.nodeName=D,_.isFunction=f,_.isWindow=m,_.camelCase=q,_.type=b,_.now=Date.now,_.isNumeric=function(e){var t=_.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},_.trim=function(e){return null==e?"":(e+"").replace(qt,"")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return _});var Wt=e.jQuery,Jt=e.$;return _.noConflict=function(t){return e.$===_&&(e.$=Jt),t&&e.jQuery===_&&(e.jQuery=Wt),_},"undefined"==typeof t&&(e.jQuery=e.$=_),_});if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(e){"use strict";var t=jQuery.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1||3<t[0])throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(),function(t){"use strict";t.fn.emulateTransitionEnd=function(e){var n=!1,r=this;t(this).one("bsTransitionEnd",function(){n=!0});return setTimeout(function(){n||t(r).trigger(t.support.transition.end)},e),this},t(function(){t.support.transition=function t(){var n=document.createElement("bootstrap"),r={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var a in r)if(n.style[a]!==e)return{end:r[a]};return!1}(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}})})}(jQuery),function(e){"use strict";var t='[data-dismiss="alert"]',n=function(n){e(n).on("click",t,this.close)};n.VERSION="3.4.1",n.TRANSITION_DURATION=150,n.prototype.close=function(t){var r=e(this),a=r.attr("data-target");a||(a=(a=r.attr("href"))&&a.replace(/.*(?=#[^\s]*$)/,"")),a="#"===a?[]:a;var o=e(document).find(a);function i(){o.detach().trigger("closed.bs.alert").remove()}t&&t.preventDefault(),o.length||(o=r.closest(".alert")),o.trigger(t=e.Event("close.bs.alert")),t.isDefaultPrevented()||(o.removeClass("in"),e.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",i).emulateTransitionEnd(n.TRANSITION_DURATION):i())};var r=e.fn.alert;e.fn.alert=function t(r){return this.each(function(){var t=e(this),a=t.data("bs.alert");a||t.data("bs.alert",a=new n(this)),"string"==typeof r&&a[r].call(t)})},e.fn.alert.Constructor=n,e.fn.alert.noConflict=function(){return e.fn.alert=r,this},e(document).on("click.bs.alert.data-api",t,n.prototype.close)}(jQuery),function(e){"use strict";var t=function(n,r){this.$element=e(n),this.options=e.extend({},t.DEFAULTS,r),this.isLoading=!1};function n(n){return this.each(function(){var r=e(this),a=r.data("bs.button"),o="object"==typeof n&&n;a||r.data("bs.button",a=new t(this,o)),"toggle"==n?a.toggle():n&&a.setState(n)})}t.VERSION="3.4.1",t.DEFAULTS={loadingText:"loading..."},t.prototype.setState=function(t){var n="disabled",r=this.$element,a=r.is("input")?"val":"html",o=r.data();t+="Text",null==o.resetText&&r.data("resetText",r[a]()),setTimeout(e.proxy(function(){r[a](null==o[t]?this.options[t]:o[t]),"loadingText"==t?(this.isLoading=!0,r.addClass(n).attr(n,n).prop(n,!0)):this.isLoading&&(this.isLoading=!1,r.removeClass(n).removeAttr(n).prop(n,!1))},this),0)},t.prototype.toggle=function(){var e=!0,t=this.$element.closest('[data-toggle="buttons"]');if(t.length){var n=this.$element.find("input");"radio"==n.prop("type")?(n.prop("checked")&&(e=!1),t.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(e=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),e&&n.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var r=e.fn.button;e.fn.button=n,e.fn.button.Constructor=t,e.fn.button.noConflict=function(){return e.fn.button=r,this},e(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(t){var r=e(t.target).closest(".btn");n.call(r,"toggle"),e(t.target).is('input[type="radio"], input[type="checkbox"]')||(t.preventDefault(),r.is("input,button")?r.trigger("focus"):r.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){e(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery),function(e){"use strict";var t=function(t,n){this.$element=e(t),this.$indicators=this.$element.find(".carousel-indicators"),
this.options=n,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",e.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",e.proxy(this.pause,this)).on("mouseleave.bs.carousel",e.proxy(this.cycle,this))};function n(n){return this.each(function(){var r=e(this),a=r.data("bs.carousel"),o=e.extend({},t.DEFAULTS,r.data(),"object"==typeof n&&n),i="string"==typeof n?n:o.slide;a||r.data("bs.carousel",a=new t(this,o)),"number"==typeof n?a.to(n):i?a[i]():o.interval&&a.pause().cycle()})}t.VERSION="3.4.1",t.TRANSITION_DURATION=600,t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},t.prototype.keydown=function(e){if(!/input|textarea/i.test(e.target.tagName)){switch(e.which){case 37:this.prev();break;case 39:this.next();break;default:return}e.preventDefault()}},t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},t.prototype.getItemIndex=function(e){return this.$items=e.parent().children(".item"),this.$items.index(e||this.$active)},t.prototype.getItemForDirection=function(e,t){var n=this.getItemIndex(t);if(("prev"==e&&0===n||"next"==e&&n==this.$items.length-1)&&!this.options.wrap)return t;var r=(n+("prev"==e?-1:1))%this.$items.length;return this.$items.eq(r)},t.prototype.to=function(e){var t=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(e>this.$items.length-1||e<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){t.to(e)}):n==e?this.pause().cycle():this.slide(n<e?"next":"prev",this.$items.eq(e))},t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&e.support.transition&&(this.$element.trigger(e.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},t.prototype.next=function(){if(!this.sliding)return this.slide("next")},t.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},t.prototype.slide=function(n,r){var a=this.$element.find(".item.active"),o=r||this.getItemForDirection(n,a),i=this.interval,s="next"==n?"left":"right",l=this;if(o.hasClass("active"))return this.sliding=!1;var c=o[0],u=e.Event("slide.bs.carousel",{relatedTarget:c,direction:s});if(this.$element.trigger(u),!u.isDefaultPrevented()){if(this.sliding=!0,i&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var d=e(this.$indicators.children()[this.getItemIndex(o)]);d&&d.addClass("active")}var p=e.Event("slid.bs.carousel",{relatedTarget:c,direction:s});return e.support.transition&&this.$element.hasClass("slide")?(o.addClass(n),"object"==typeof o&&o.length&&o[0].offsetWidth,a.addClass(s),o.addClass(s),a.one("bsTransitionEnd",function(){o.removeClass([n,s].join(" ")).addClass("active"),a.removeClass(["active",s].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger(p)},0)}).emulateTransitionEnd(t.TRANSITION_DURATION)):(a.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger(p)),i&&this.cycle(),this}};var r=e.fn.carousel;e.fn.carousel=n,e.fn.carousel.Constructor=t,e.fn.carousel.noConflict=function(){return e.fn.carousel=r,this};var a=function(t){var r=e(this),a=r.attr("href");a&&(a=a.replace(/.*(?=#[^\s]+$)/,""));var o=r.attr("data-target")||a,i=e(document).find(o);if(i.hasClass("carousel")){var s=e.extend({},i.data(),r.data()),l=r.attr("data-slide-to");l&&(s.interval=!1),n.call(i,s),l&&i.data("bs.carousel").to(l),t.preventDefault()}};e(document).on("click.bs.carousel.data-api","[data-slide]",a).on("click.bs.carousel.data-api","[data-slide-to]",a),e(window).on("load",function(){e('[data-ride="carousel"]').each(function(){var t=e(this);n.call(t,t.data())})})}(jQuery),function(e){"use strict";var t=function(n,r){this.$element=e(n),this.options=e.extend({},t.DEFAULTS,r),this.$trigger=e('[data-toggle="collapse"][href="#'+n.id+'"],[data-toggle="collapse"][data-target="#'+n.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};function n(t){var n,r=t.attr("data-target")||(n=t.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return e(document).find(r)}function r(n){return this.each(function(){var r=e(this),a=r.data("bs.collapse"),o=e.extend({},t.DEFAULTS,r.data(),"object"==typeof n&&n);!a&&o.toggle&&/show|hide/.test(n)&&(o.toggle=!1),a||r.data("bs.collapse",a=new t(this,o)),"string"==typeof n&&a[n]()})}t.VERSION="3.4.1",t.TRANSITION_DURATION=350,t.DEFAULTS={toggle:!0},t.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},t.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var n,a=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(a&&a.length&&(n=a.data("bs.collapse"))&&n.transitioning)){var o=e.Event("show.bs.collapse");if(this.$element.trigger(o),!o.isDefaultPrevented()){a&&a.length&&(r.call(a,"hide"),n||a.data("bs.collapse",null));var i=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[i](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var s=function(){this.$element.removeClass("collapsing").addClass("collapse in")[i](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!e.support.transition)return s.call(this);var l=e.camelCase(["scroll",i].join("-"));this.$element.one("bsTransitionEnd",e.proxy(s,this)).emulateTransitionEnd(t.TRANSITION_DURATION)[i](this.$element[0][l])}}}},t.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var n=e.Event("hide.bs.collapse");if(this.$element.trigger(n),!n.isDefaultPrevented()){var r=this.dimension();this.$element[r](this.$element[r]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var a=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!e.support.transition)return a.call(this);this.$element[r](0).one("bsTransitionEnd",e.proxy(a,this)).emulateTransitionEnd(t.TRANSITION_DURATION)}}},t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},t.prototype.getParent=function(){return e(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(e.proxy(function(t,r){var a=e(r);this.addAriaAndCollapsedClass(n(a),a)},this)).end()},t.prototype.addAriaAndCollapsedClass=function(e,t){var n=e.hasClass("in");e.attr("aria-expanded",n),t.toggleClass("collapsed",!n).attr("aria-expanded",n)};var a=e.fn.collapse;e.fn.collapse=r,e.fn.collapse.Constructor=t,e.fn.collapse.noConflict=function(){return e.fn.collapse=a,this},e(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var a=e(this);a.attr("data-target")||t.preventDefault();var o=n(a),i=o.data("bs.collapse")?"toggle":a.data();r.call(o,i)})}(jQuery),function(e){"use strict";var t='[data-toggle="dropdown"]',n=function(t){e(t).on("click.bs.dropdown",this.toggle)};function r(t){var n=t.attr("data-target");n||(n=(n=t.attr("href"))&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var r="#"!==n?e(document).find(n):null;return r&&r.length?r:t.parent()}function a(n){n&&3===n.which||(e(".dropdown-backdrop").remove(),e(t).each(function(){var t=e(this),a=r(t),o={relatedTarget:this};a.hasClass("open")&&(n&&"click"==n.type&&/input|textarea/i.test(n.target.tagName)&&e.contains(a[0],n.target)||(a.trigger(n=e.Event("hide.bs.dropdown",o)),n.isDefaultPrevented()||(t.attr("aria-expanded","false"),a.removeClass("open").trigger(e.Event("hidden.bs.dropdown",o)))))}))}n.VERSION="3.4.1",n.prototype.toggle=function(t){var n=e(this);if(!n.is(".disabled, :disabled")){var o=r(n),i=o.hasClass("open");if(a(),!i){"ontouchstart"in document.documentElement&&!o.closest(".navbar-nav").length&&e(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(e(this)).on("click",a);var s={relatedTarget:this};if(o.trigger(t=e.Event("show.bs.dropdown",s)),t.isDefaultPrevented())return;n.trigger("focus").attr("aria-expanded","true"),o.toggleClass("open").trigger(e.Event("shown.bs.dropdown",s))}return!1}},n.prototype.keydown=function(n){if(/(38|40|27|32)/.test(n.which)&&!/input|textarea/i.test(n.target.tagName)){var a=e(this);if(n.preventDefault(),n.stopPropagation(),!a.is(".disabled, :disabled")){var o=r(a),i=o.hasClass("open");if(!i&&27!=n.which||i&&27==n.which)return 27==n.which&&o.find(t).trigger("focus"),a.trigger("click");var s=o.find(".dropdown-menu li:not(.disabled):visible a");if(s.length){var l=s.index(n.target);38==n.which&&0<l&&l--,40==n.which&&l<s.length-1&&l++,~l||(l=0),s.eq(l).trigger("focus")}}}};var o=e.fn.dropdown;e.fn.dropdown=function t(r){return this.each(function(){var t=e(this),a=t.data("bs.dropdown");a||t.data("bs.dropdown",a=new n(this)),"string"==typeof r&&a[r].call(t)})},e.fn.dropdown.Constructor=n,e.fn.dropdown.noConflict=function(){return e.fn.dropdown=o,this},e(document).on("click.bs.dropdown.data-api",a).on("click.bs.dropdown.data-api",".dropdown form",function(e){e.stopPropagation()}).on("click.bs.dropdown.data-api",t,n.prototype.toggle).on("keydown.bs.dropdown.data-api",t,n.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",n.prototype.keydown)}(jQuery),function(e){"use strict";var t=function(t,n){this.options=n,this.$body=e(document.body),this.$element=e(t),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.fixedContent=".navbar-fixed-top, .navbar-fixed-bottom",this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,e.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};function n(n,r){return this.each(function(){var a=e(this),o=a.data("bs.modal"),i=e.extend({},t.DEFAULTS,a.data(),"object"==typeof n&&n);o||a.data("bs.modal",o=new t(this,i)),"string"==typeof n?o[n](r):i.show&&o.show(r)})}t.VERSION="3.4.1",t.TRANSITION_DURATION=300,t.BACKDROP_TRANSITION_DURATION=150,t.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},t.prototype.toggle=function(e){return this.isShown?this.hide():this.show(e)},t.prototype.show=function(n){var r=this,a=e.Event("show.bs.modal",{relatedTarget:n});this.$element.trigger(a),this.isShown||a.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',e.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){r.$element.one("mouseup.dismiss.bs.modal",function(t){e(t.target).is(r.$element)&&(r.ignoreBackdropClick=!0)})}),this.backdrop(function(){var a=e.support.transition&&r.$element.hasClass("fade");r.$element.parent().length||r.$element.appendTo(r.$body),r.$element.show().scrollTop(0),r.adjustDialog(),a&&r.$element[0].offsetWidth,r.$element.addClass("in"),r.enforceFocus();var o=e.Event("shown.bs.modal",{relatedTarget:n});a?r.$dialog.one("bsTransitionEnd",function(){r.$element.trigger("focus").trigger(o)}).emulateTransitionEnd(t.TRANSITION_DURATION):r.$element.trigger("focus").trigger(o)}))},t.prototype.hide=function(n){n&&n.preventDefault(),n=e.Event("hide.bs.modal"),this.$element.trigger(n),this.isShown&&!n.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),e(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),e.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",e.proxy(this.hideModal,this)).emulateTransitionEnd(t.TRANSITION_DURATION):this.hideModal())},t.prototype.enforceFocus=function(){e(document).off("focusin.bs.modal").on("focusin.bs.modal",e.proxy(function(e){document===e.target||this.$element[0]===e.target||this.$element.has(e.target).length||this.$element.trigger("focus")},this))},t.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",e.proxy(function(e){27==e.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},t.prototype.resize=function(){this.isShown?e(window).on("resize.bs.modal",e.proxy(this.handleUpdate,this)):e(window).off("resize.bs.modal")},t.prototype.hideModal=function(){var e=this;this.$element.hide(),this.backdrop(function(){e.$body.removeClass("modal-open"),e.resetAdjustments(),e.resetScrollbar(),e.$element.trigger("hidden.bs.modal")})},t.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},t.prototype.backdrop=function(n){var r=this,a=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var o=e.support.transition&&a;if(this.$backdrop=e(document.createElement("div")).addClass("modal-backdrop "+a).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",e.proxy(function(e){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:e.target===e.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())},this)),o&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!n)return;o?this.$backdrop.one("bsTransitionEnd",n).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):n()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var i=function(){r.removeBackdrop(),n&&n()};e.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",i).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):i()}else n&&n()},t.prototype.handleUpdate=function(){this.adjustDialog()},t.prototype.adjustDialog=function(){var e=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},t.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},t.prototype.checkScrollbar=function(){var e=window.innerWidth;if(!e){var t=document.documentElement.getBoundingClientRect();e=t.right-Math.abs(t.left)}this.bodyIsOverflowing=document.body.clientWidth<e,this.scrollbarWidth=this.measureScrollbar()},t.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"";var n=this.scrollbarWidth;this.bodyIsOverflowing&&(this.$body.css("padding-right",t+n),e(this.fixedContent).each(function(t,r){var a=r.style.paddingRight,o=e(r).css("padding-right");e(r).data("padding-right",a).css("padding-right",parseFloat(o)+n+"px")}))},t.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad),e(this.fixedContent).each(function(t,n){var r=e(n).data("padding-right");e(n).removeData("padding-right"),n.style.paddingRight=r||""})},t.prototype.measureScrollbar=function(){var e=document.createElement("div");e.className="modal-scrollbar-measure",this.$body.append(e);var t=e.offsetWidth-e.clientWidth;return this.$body[0].removeChild(e),t};var r=e.fn.modal;e.fn.modal=n,e.fn.modal.Constructor=t,e.fn.modal.noConflict=function(){return e.fn.modal=r,this},e(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var r=e(this),a=r.attr("href"),o=r.attr("data-target")||a&&a.replace(/.*(?=#[^\s]+$)/,""),i=e(document).find(o),s=i.data("bs.modal")?"toggle":e.extend({remote:!/#/.test(a)&&a},i.data(),r.data());r.is("a")&&t.preventDefault(),i.one("show.bs.modal",function(e){e.isDefaultPrevented()||i.one("hidden.bs.modal",function(){r.is(":visible")&&r.trigger("focus")})}),n.call(i,s,this)})}(jQuery),function(e){"use strict";var t=["sanitize","whiteList","sanitizeFn"],n=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],r={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},a=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,o=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function i(t,r){var i=t.nodeName.toLowerCase();if(-1!==e.inArray(i,r))return-1===e.inArray(i,n)||Boolean(t.nodeValue.match(a)||t.nodeValue.match(o));for(var s=e(r).filter(function(e,t){return t instanceof RegExp}),l=0,c=s.length;l<c;l++)if(i.match(s[l]))return!0;return!1}function s(t,n,r){if(0===t.length)return t;if(r&&"function"==typeof r)return r(t);if(!document.implementation||!document.implementation.createHTMLDocument)return t;var a=document.implementation.createHTMLDocument("sanitization");a.body.innerHTML=t;for(var o=e.map(n,function(e,t){return t}),s=e(a.body).find("*"),l=0,c=s.length;l<c;l++){var u=s[l],d=u.nodeName.toLowerCase();if(-1!==e.inArray(d,o))for(var p=e.map(u.attributes,function(e){return e}),h=[].concat(n["*"]||[],n[d]||[]),f=0,m=p.length;f<m;f++)i(p[f],h)||u.removeAttribute(p[f].nodeName);else u.parentNode.removeChild(u)}return a.body.innerHTML}var l=function(e,t){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",e,t)};l.VERSION="3.4.1",l.TRANSITION_DURATION=150,l.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:r},l.prototype.init=function(t,n,r){if(this.enabled=!0,this.type=t,this.$element=e(n),this.options=this.getOptions(r),this.$viewport=this.options.viewport&&e(document).find(e.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var a=this.options.trigger.split(" "),o=a.length;o--;){var i=a[o];if("click"==i)this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this));else if("manual"!=i){var s="hover"==i?"mouseenter":"focusin",l="hover"==i?"mouseleave":"focusout";this.$element.on(s+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,e.proxy(this.leave,this))}}this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},l.prototype.getDefaults=function(){return l.DEFAULTS},l.prototype.getOptions=function(n){var r=this.$element.data();for(var a in r)r.hasOwnProperty(a)&&-1!==e.inArray(a,t)&&delete r[a];return(n=e.extend({},this.getDefaults(),r,n)).delay&&"number"==typeof n.delay&&(n.delay={show:n.delay,hide:n.delay}),n.sanitize&&(n.template=s(n.template,n.whiteList,n.sanitizeFn)),n},l.prototype.getDelegateOptions=function(){var t={},n=this.getDefaults();return this._options&&e.each(this._options,function(e,r){n[e]!=r&&(t[e]=r)}),t},l.prototype.enter=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),t instanceof e.Event&&(n.inState["focusin"==t.type?"focus":"hover"]=!0),n.tip().hasClass("in")||"in"==n.hoverState)n.hoverState="in";else{if(clearTimeout(n.timeout),n.hoverState="in",!n.options.delay||!n.options.delay.show)return n.show();n.timeout=setTimeout(function(){"in"==n.hoverState&&n.show()},n.options.delay.show)}},l.prototype.isInStateTrue=function(){for(var e in this.inState)if(this.inState[e])return!0;return!1},l.prototype.leave=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),t instanceof e.Event&&(n.inState["focusout"==t.type?"focus":"hover"]=!1),!n.isInStateTrue()){if(clearTimeout(n.timeout),n.hoverState="out",!n.options.delay||!n.options.delay.hide)return n.hide();n.timeout=setTimeout(function(){"out"==n.hoverState&&n.hide()},n.options.delay.hide)}},l.prototype.show=function(){var t=e.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);var n=e.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(t.isDefaultPrevented()||!n)return;var r=this,a=this.tip(),o=this.getUID(this.type);this.setContent(),a.attr("id",o),this.$element.attr("aria-describedby",o),this.options.animation&&a.addClass("fade");var i="function"==typeof this.options.placement?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement,s=/\s?auto?\s?/i,c=s.test(i);c&&(i=i.replace(s,"")||"top"),a.detach().css({top:0,left:0,display:"block"}).addClass(i).data("bs."+this.type,this),this.options.container?a.appendTo(e(document).find(this.options.container)):a.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var u=this.getPosition(),d=a[0].offsetWidth,p=a[0].offsetHeight;if(c){var h=i,f=this.getPosition(this.$viewport);i="bottom"==i&&u.bottom+p>f.bottom?"top":"top"==i&&u.top-p<f.top?"bottom":"right"==i&&u.right+d>f.width?"left":"left"==i&&u.left-d<f.left?"right":i,a.removeClass(h).addClass(i)}var m=this.getCalculatedOffset(i,u,d,p);this.applyPlacement(m,i);var v=function(){var e=r.hoverState;r.$element.trigger("shown.bs."+r.type),r.hoverState=null,"out"==e&&r.leave(r)};e.support.transition&&this.$tip.hasClass("fade")?a.one("bsTransitionEnd",v).emulateTransitionEnd(l.TRANSITION_DURATION):v()}},l.prototype.applyPlacement=function(t,n){var r=this.tip(),a=r[0].offsetWidth,o=r[0].offsetHeight,i=parseInt(r.css("margin-top"),10),s=parseInt(r.css("margin-left"),10);isNaN(i)&&(i=0),isNaN(s)&&(s=0),t.top+=i,t.left+=s,e.offset.setOffset(r[0],e.extend({using:function(e){r.css({top:Math.round(e.top),left:Math.round(e.left)})}},t),0),r.addClass("in");var l=r[0].offsetWidth,c=r[0].offsetHeight;"top"==n&&c!=o&&(t.top=t.top+o-c);var u=this.getViewportAdjustedDelta(n,t,l,c);u.left?t.left+=u.left:t.top+=u.top;var d=/top|bottom/.test(n),p=d?2*u.left-a+l:2*u.top-o+c,h=d?"offsetWidth":"offsetHeight";r.offset(t),this.replaceArrow(p,r[0][h],d)},l.prototype.replaceArrow=function(e,t,n){this.arrow().css(n?"left":"top",50*(1-e/t)+"%").css(n?"top":"left","")},l.prototype.setContent=function(){var e=this.tip(),t=this.getTitle();this.options.html?(this.options.sanitize&&(t=s(t,this.options.whiteList,this.options.sanitizeFn)),e.find(".tooltip-inner").html(t)):e.find(".tooltip-inner").text(t),e.removeClass("fade in top bottom left right")},l.prototype.hide=function(t){var n=this,r=e(this.$tip),a=e.Event("hide.bs."+this.type);function o(){"in"!=n.hoverState&&r.detach(),n.$element&&n.$element.removeAttr("aria-describedby").trigger("hidden.bs."+n.type),t&&t()}if(this.$element.trigger(a),!a.isDefaultPrevented())return r.removeClass("in"),e.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",o).emulateTransitionEnd(l.TRANSITION_DURATION):o(),this.hoverState=null,this},l.prototype.fixTitle=function(){var e=this.$element;(e.attr("title")||"string"!=typeof e.attr("data-original-title"))&&e.attr("data-original-title",e.attr("title")||"").attr("title","")},l.prototype.hasContent=function(){return this.getTitle()},l.prototype.getPosition=function(t){var n=(t=t||this.$element)[0],r="BODY"==n.tagName,a=n.getBoundingClientRect();null==a.width&&(a=e.extend({},a,{width:a.right-a.left,height:a.bottom-a.top}));var o=window.SVGElement&&n instanceof window.SVGElement,i=r?{top:0,left:0}:o?null:t.offset(),s={scroll:r?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},l=r?{width:e(window).width(),height:e(window).height()}:null;return e.extend({},a,s,l,i)},l.prototype.getCalculatedOffset=function(e,t,n,r){return"bottom"==e?{top:t.top+t.height,left:t.left+t.width/2-n/2}:"top"==e?{top:t.top-r,left:t.left+t.width/2-n/2}:"left"==e?{top:t.top+t.height/2-r/2,left:t.left-n}:{top:t.top+t.height/2-r/2,left:t.left+t.width}},l.prototype.getViewportAdjustedDelta=function(e,t,n,r){var a={top:0,left:0};if(!this.$viewport)return a;var o=this.options.viewport&&this.options.viewport.padding||0,i=this.getPosition(this.$viewport);if(/right|left/.test(e)){var s=t.top-o-i.scroll,l=t.top+o-i.scroll+r;s<i.top?a.top=i.top-s:l>i.top+i.height&&(a.top=i.top+i.height-l)}else{var c=t.left-o,u=t.left+o+n;c<i.left?a.left=i.left-c:u>i.right&&(a.left=i.left+i.width-u)}return a},l.prototype.getTitle=function(){var e=this.$element,t=this.options;return e.attr("data-original-title")||("function"==typeof t.title?t.title.call(e[0]):t.title)},l.prototype.getUID=function(e){for(;e+=~~(1e6*Math.random()),document.getElementById(e););return e},l.prototype.tip=function(){if(!this.$tip&&(this.$tip=e(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},l.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},l.prototype.enable=function(){this.enabled=!0},l.prototype.disable=function(){this.enabled=!1},l.prototype.toggleEnabled=function(){this.enabled=!this.enabled},l.prototype.toggle=function(t){var n=this;t&&((n=e(t.currentTarget).data("bs."+this.type))||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n))),t?(n.inState.click=!n.inState.click,n.isInStateTrue()?n.enter(n):n.leave(n)):n.tip().hasClass("in")?n.leave(n):n.enter(n)},l.prototype.destroy=function(){var e=this;clearTimeout(this.timeout),this.hide(function(){e.$element.off("."+e.type).removeData("bs."+e.type),e.$tip&&e.$tip.detach(),e.$tip=null,e.$arrow=null,e.$viewport=null,e.$element=null})},l.prototype.sanitizeHtml=function(e){return s(e,this.options.whiteList,this.options.sanitizeFn)};var c=e.fn.tooltip;e.fn.tooltip=function t(n){return this.each(function(){var t=e(this),r=t.data("bs.tooltip"),a="object"==typeof n&&n;!r&&/destroy|hide/.test(n)||(r||t.data("bs.tooltip",r=new l(this,a)),"string"==typeof n&&r[n]())})},e.fn.tooltip.Constructor=l,e.fn.tooltip.noConflict=function(){return e.fn.tooltip=c,this}}(jQuery),function(e){"use strict";var t=function(e,t){this.init("popover",e,t)};if(!e.fn.tooltip)throw new Error("Popover requires tooltip.js");t.VERSION="3.4.1",t.DEFAULTS=e.extend({},e.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),((t.prototype=e.extend({},e.fn.tooltip.Constructor.prototype)).constructor=t).prototype.getDefaults=function(){return t.DEFAULTS},t.prototype.setContent=function(){var e=this.tip(),t=this.getTitle(),n=this.getContent();if(this.options.html){var r=typeof n;this.options.sanitize&&(t=this.sanitizeHtml(t),"string"===r&&(n=this.sanitizeHtml(n))),e.find(".popover-title").html(t),e.find(".popover-content").children().detach().end()["string"===r?"html":"append"](n)}else e.find(".popover-title").text(t),e.find(".popover-content").children().detach().end().text(n);e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},t.prototype.hasContent=function(){return this.getTitle()||this.getContent()},t.prototype.getContent=function(){var e=this.$element,t=this.options;return e.attr("data-content")||("function"==typeof t.content?t.content.call(e[0]):t.content)},t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var n=e.fn.popover;e.fn.popover=function n(r){return this.each(function(){var n=e(this),a=n.data("bs.popover"),o="object"==typeof r&&r;!a&&/destroy|hide/.test(r)||(a||n.data("bs.popover",a=new t(this,o)),"string"==typeof r&&a[r]())})},e.fn.popover.Constructor=t,e.fn.popover.noConflict=function(){return e.fn.popover=n,this}}(jQuery),function(t){"use strict";function n(e,r){this.$body=t(document.body),this.$scrollElement=t(e).is(document.body)?t(window):t(e),this.options=t.extend({},n.DEFAULTS,r),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",t.proxy(this.process,this)),this.refresh(),this.process()}function r(e){return this.each(function(){var r=t(this),a=r.data("bs.scrollspy"),o="object"==typeof e&&e;a||r.data("bs.scrollspy",a=new n(this,o)),"string"==typeof e&&a[e]()})}n.VERSION="3.4.1",n.DEFAULTS={offset:10},n.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},n.prototype.refresh=function(){var e=this,n="offset",r=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),t.isWindow(this.$scrollElement[0])||(n="position",r=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var e=t(this),a=e.data("target")||e.attr("href"),o=/^#./.test(a)&&t(a);return o&&o.length&&o.is(":visible")&&[[o[n]().top+r,a]]||null}).sort(function(e,t){return e[0]-t[0]}).each(function(){e.offsets.push(this[0]),e.targets.push(this[1])})},n.prototype.process=function(){var t,n=this.$scrollElement.scrollTop()+this.options.offset,r=this.getScrollHeight(),a=this.options.offset+r-this.$scrollElement.height(),o=this.offsets,i=this.targets,s=this.activeTarget;if(this.scrollHeight!=r&&this.refresh(),a<=n)return s!=(t=i[i.length-1])&&this.activate(t);if(s&&n<o[0])return this.activeTarget=null,this.clear();for(t=o.length;t--;)s!=i[t]&&n>=o[t]&&(o[t+1]===e||n<o[t+1])&&this.activate(i[t])},n.prototype.activate=function(e){this.activeTarget=e,this.clear();var n=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',r=t(n).parents("li").addClass("active");r.parent(".dropdown-menu").length&&(r=r.closest("li.dropdown").addClass("active")),r.trigger("activate.bs.scrollspy")},n.prototype.clear=function(){t(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var a=t.fn.scrollspy;t.fn.scrollspy=r,t.fn.scrollspy.Constructor=n,t.fn.scrollspy.noConflict=function(){return t.fn.scrollspy=a,this},t(window).on("load.bs.scrollspy.data-api",function(){t('[data-spy="scroll"]').each(function(){var e=t(this);r.call(e,e.data())})})}(jQuery),function(e){"use strict";var t=function(t){this.element=e(t)};function n(n){return this.each(function(){var r=e(this),a=r.data("bs.tab");a||r.data("bs.tab",a=new t(this)),"string"==typeof n&&a[n]()})}t.VERSION="3.4.1",t.TRANSITION_DURATION=150,t.prototype.show=function(){var t=this.element,n=t.closest("ul:not(.dropdown-menu)"),r=t.data("target");if(r||(r=(r=t.attr("href"))&&r.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var a=n.find(".active:last a"),o=e.Event("hide.bs.tab",{relatedTarget:t[0]}),i=e.Event("show.bs.tab",{relatedTarget:a[0]});if(a.trigger(o),t.trigger(i),!i.isDefaultPrevented()&&!o.isDefaultPrevented()){var s=e(document).find(r);this.activate(t.closest("li"),n),this.activate(s,s.parent(),function(){a.trigger({type:"hidden.bs.tab",relatedTarget:t[0]}),t.trigger({type:"shown.bs.tab",relatedTarget:a[0]})})}}},t.prototype.activate=function(n,r,a){
var o=r.find("> .active"),i=a&&e.support.transition&&(o.length&&o.hasClass("fade")||!!r.find("> .fade").length);function s(){o.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),n.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),i?(n[0].offsetWidth,n.addClass("in")):n.removeClass("fade"),n.parent(".dropdown-menu").length&&n.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),a&&a()}o.length&&i?o.one("bsTransitionEnd",s).emulateTransitionEnd(t.TRANSITION_DURATION):s(),o.removeClass("in")};var r=e.fn.tab;e.fn.tab=n,e.fn.tab.Constructor=t,e.fn.tab.noConflict=function(){return e.fn.tab=r,this};var a=function(t){t.preventDefault(),n.call(e(this),"show")};e(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',a).on("click.bs.tab.data-api",'[data-toggle="pill"]',a)}(jQuery),function(e){"use strict";var t=function(n,r){this.options=e.extend({},t.DEFAULTS,r);var a=this.options.target===t.DEFAULTS.target?e(this.options.target):e(document).find(this.options.target);this.$target=a.on("scroll.bs.affix.data-api",e.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",e.proxy(this.checkPositionWithEventLoop,this)),this.$element=e(n),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};function n(n){return this.each(function(){var r=e(this),a=r.data("bs.affix"),o="object"==typeof n&&n;a||r.data("bs.affix",a=new t(this,o)),"string"==typeof n&&a[n]()})}t.VERSION="3.4.1",t.RESET="affix affix-top affix-bottom",t.DEFAULTS={offset:0,target:window},t.prototype.getState=function(e,t,n,r){var a=this.$target.scrollTop(),o=this.$element.offset(),i=this.$target.height();if(null!=n&&"top"==this.affixed)return a<n&&"top";if("bottom"==this.affixed)return null!=n?!(a+this.unpin<=o.top)&&"bottom":!(a+i<=e-r)&&"bottom";var s=null==this.affixed,l=s?a:o.top;return null!=n&&a<=n?"top":null!=r&&e-r<=l+(s?i:t)&&"bottom"},t.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(t.RESET).addClass("affix");var e=this.$target.scrollTop(),n=this.$element.offset();return this.pinnedOffset=n.top-e},t.prototype.checkPositionWithEventLoop=function(){setTimeout(e.proxy(this.checkPosition,this),1)},t.prototype.checkPosition=function(){if(this.$element.is(":visible")){var n=this.$element.height(),r=this.options.offset,a=r.top,o=r.bottom,i=Math.max(e(document).height(),e(document.body).height());"object"!=typeof r&&(o=a=r),"function"==typeof a&&(a=r.top(this.$element)),"function"==typeof o&&(o=r.bottom(this.$element));var s=this.getState(i,n,a,o);if(this.affixed!=s){null!=this.unpin&&this.$element.css("top","");var l="affix"+(s?"-"+s:""),c=e.Event(l+".bs.affix");if(this.$element.trigger(c),c.isDefaultPrevented())return;this.affixed=s,this.unpin="bottom"==s?this.getPinnedOffset():null,this.$element.removeClass(t.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==s&&this.$element.offset({top:i-n-o})}};var r=e.fn.affix;e.fn.affix=n,e.fn.affix.Constructor=t,e.fn.affix.noConflict=function(){return e.fn.affix=r,this},e(window).on("load",function(){e('[data-spy="affix"]').each(function(){var t=e(this),r=t.data();r.offset=r.offset||{},null!=r.offsetBottom&&(r.offset.bottom=r.offsetBottom),null!=r.offsetTop&&(r.offset.top=r.offsetTop),n.call(t,r)})})}(jQuery);(function(e,t){"use strict";if(typeof module!=="undefined"&&module.exports){module.exports=t(require("jquery"))}else if(typeof define==="function"&&define.amd){define(["jquery"],function(e){return t(e)})}else{t(e.jQuery)}})(this,function(e){"use strict";var t=function(t,n){this.$element=e(t);this.options=e.extend({},e.fn.typeahead.defaults,n);this.matcher=this.options.matcher||this.matcher;this.sorter=this.options.sorter||this.sorter;this.select=this.options.select||this.select;this.autoSelect=typeof this.options.autoSelect=="boolean"?this.options.autoSelect:!0;this.highlighter=this.options.highlighter||this.highlighter;this.render=this.options.render||this.render;this.updater=this.options.updater||this.updater;this.displayText=this.options.displayText||this.displayText;this.source=this.options.source;this.delay=this.options.delay;this.$menu=e(this.options.menu);this.$appendTo=this.options.appendTo?e(this.options.appendTo):null;this.fitToElement=typeof this.options.fitToElement=="boolean"?this.options.fitToElement:!1;this.shown=!1;this.listen();this.showHintOnFocus=typeof this.options.showHintOnFocus=="boolean"||this.options.showHintOnFocus==="all"?this.options.showHintOnFocus:!1;this.afterSelect=this.options.afterSelect;this.addItem=!1;this.value=this.$element.val()||this.$element.text()};t.prototype={constructor:t,select:function(){var e=this.$menu.find(".active").data("value");this.$element.data("active",e);if(this.autoSelect||e){var t=this.updater(e);if(!t){t=""}this.$element.val(this.displayText(t)||t).text(this.displayText(t)||t).change();this.afterSelect(t)}return this.hide()},updater:function(e){return e},setSource:function(e){this.source=e},show:function(){var t=e.extend({},this.$element.position(),{height:this.$element[0].offsetHeight});var n=typeof this.options.scrollHeight=="function"?this.options.scrollHeight.call():this.options.scrollHeight;var r;if(this.shown){r=this.$menu}else if(this.$appendTo){r=this.$menu.appendTo(this.$appendTo);this.hasSameParent=this.$appendTo.is(this.$element.parent())}else{r=this.$menu.insertAfter(this.$element);this.hasSameParent=!0}if(!this.hasSameParent){r.css("position","fixed");var a=this.$element.offset();t.top=a.top;t.left=a.left}var o=e(r).parent().hasClass("dropup");var i=o?"auto":t.top+t.height+n;var s=e(r).hasClass("dropdown-menu-right");var l=s?"auto":t.left;r.css({top:i,left:l}).show();if(this.options.fitToElement===!0){r.css("width",this.$element.outerWidth()+"px")}this.shown=!0;return this},hide:function(){this.$menu.hide();this.shown=!1;return this},lookup:function(t){if(typeof t!="undefined"&&t!==null){this.query=t}else{this.query=this.$element.val()||this.$element.text()||""}if(this.query.length<this.options.minLength&&!this.options.showHintOnFocus){return this.shown?this.hide():this}var n=e.proxy(function(){if(e.isFunction(this.source)){this.source(this.query,e.proxy(this.process,this))}else if(this.source){this.process(this.source)}},this);clearTimeout(this.lookupWorker);this.lookupWorker=setTimeout(n,this.delay)},process:function(t){var n=this;t=e.grep(t,function(e){return n.matcher(e)});t=this.sorter(t);if(!t.length&&!this.options.addItem){return this.shown?this.hide():this}if(t.length>0){this.$element.data("active",t[0])}else{this.$element.data("active",null)}if(this.options.addItem){t.push(this.options.addItem)}if(this.options.items=="all"){return this.render(t).show()}else{return this.render(t.slice(0,this.options.items)).show()}},matcher:function(e){var t=this.displayText(e);return~t.toLowerCase().indexOf(this.query.toLowerCase())},sorter:function(e){var t=[];var n=[];var r=[];var a;while(a=e.shift()){var o=this.displayText(a);if(!o.toLowerCase().indexOf(this.query.toLowerCase()))t.push(a);else if(~o.indexOf(this.query))n.push(a);else r.push(a)}return t.concat(n,r)},highlighter:function(t){var n=e("<div></div>");var r=this.query;var a=t.toLowerCase().indexOf(r.toLowerCase());var o=r.length;var i;var s;var l;var c;if(o===0){return n.text(t).html()}while(a>-1){i=t.substr(0,a);s=t.substr(a,o);l=t.substr(a+o);c=e("<strong></strong>").text(s);n.append(document.createTextNode(i)).append(c);t=l;a=t.toLowerCase().indexOf(r.toLowerCase())}return n.append(document.createTextNode(t)).html()},render:function(t){var n=this;var r=this;var a=!1;var o=[];var i=n.options.separator;e.each(t,function(e,n){if(e>0&&n[i]!==t[e-1][i]){o.push({__type:"divider"})}if(n[i]&&(e===0||n[i]!==t[e-1][i])){o.push({__type:"category",name:n[i]})}o.push(n)});t=e(o).map(function(t,o){if((o.__type||!1)=="category"){return e(n.options.headerHtml).text(o.name)[0]}if((o.__type||!1)=="divider"){return e(n.options.headerDivider)[0]}var i=r.displayText(o);t=e(n.options.item).data("value",o);t.find("a").html(n.highlighter(i,o));if(i==r.$element.val()){t.addClass("active");r.$element.data("active",o);a=!0}return t[0]});if(this.autoSelect&&!a){t.filter(":not(.dropdown-header)").first().addClass("active");this.$element.data("active",t.first().data("value"))}this.$menu.html(t);return this},displayText:function(e){return typeof e!=="undefined"&&typeof e.name!="undefined"&&e.name||e},next:function(t){var n=this.$menu.find(".active").removeClass("active");var r=n.next();if(!r.length){r=e(this.$menu.find("li")[0])}r.addClass("active")},prev:function(e){var t=this.$menu.find(".active").removeClass("active");var n=t.prev();if(!n.length){n=this.$menu.find("li").last()}n.addClass("active")},listen:function(){this.$element.on("focus",e.proxy(this.focus,this)).on("blur",e.proxy(this.blur,this)).on("keypress",e.proxy(this.keypress,this)).on("input",e.proxy(this.input,this)).on("keyup",e.proxy(this.keyup,this));if(this.eventSupported("keydown")){this.$element.on("keydown",e.proxy(this.keydown,this))}this.$menu.on("click",e.proxy(this.click,this)).on("mouseenter","li",e.proxy(this.mouseenter,this)).on("mouseleave","li",e.proxy(this.mouseleave,this)).on("mousedown",e.proxy(this.mousedown,this))},destroy:function(){this.$element.data("typeahead",null);this.$element.data("active",null);this.$element.off("focus").off("blur").off("keypress").off("input").off("keyup");if(this.eventSupported("keydown")){this.$element.off("keydown")}this.$menu.remove();this.destroyed=!0},eventSupported:function(e){var t=e in this.$element;if(!t){this.$element.setAttribute(e,"return;");t=typeof this.$element[e]==="function"}return t},move:function(e){if(!this.shown)return;switch(e.keyCode){case 9:case 13:case 27:e.preventDefault();break;case 38:if(e.shiftKey)return;e.preventDefault();this.prev();break;case 40:if(e.shiftKey)return;e.preventDefault();this.next();break}},keydown:function(t){this.suppressKeyPressRepeat=~e.inArray(t.keyCode,[40,38,9,13,27]);if(!this.shown&&t.keyCode==40){this.lookup()}else{this.move(t)}},keypress:function(e){if(this.suppressKeyPressRepeat)return;this.move(e)},input:function(e){var t=this.$element.val()||this.$element.text();if(this.value!==t){this.value=t;this.lookup()}},keyup:function(e){if(this.destroyed){return}switch(e.keyCode){case 40:case 38:case 16:case 17:case 18:break;case 9:case 13:if(!this.shown)return;this.select();break;case 27:if(!this.shown)return;this.hide();break}},focus:function(e){if(!this.focused){this.focused=!0;if(this.options.showHintOnFocus&&this.skipShowHintOnFocus!==!0){if(this.options.showHintOnFocus==="all"){this.lookup("")}else{this.lookup()}}}if(this.skipShowHintOnFocus){this.skipShowHintOnFocus=!1}},blur:function(e){if(!this.mousedover&&!this.mouseddown&&this.shown){this.hide();this.focused=!1}else if(this.mouseddown){this.skipShowHintOnFocus=!0;this.$element.focus();this.mouseddown=!1}},click:function(e){e.preventDefault();this.skipShowHintOnFocus=!0;this.select();this.$element.focus();this.hide()},mouseenter:function(t){this.mousedover=!0;this.$menu.find(".active").removeClass("active");e(t.currentTarget).addClass("active")},mouseleave:function(e){this.mousedover=!1;if(!this.focused&&this.shown)this.hide()},mousedown:function(e){this.mouseddown=!0;this.$menu.one("mouseup",function(e){this.mouseddown=!1}.bind(this))}};var n=e.fn.typeahead;e.fn.typeahead=function(n){if(typeof n=="string"&&n=="getActive"){return this.data("active")}return this.each(function(){var r=e(this);var a=r.data("typeahead");var o=typeof n=="object"&&n;if(!a)r.data("typeahead",a=new t(this,o));if(typeof n=="string"&&a[n]){if(arguments.length>1){a[n].apply(a,Array.prototype.slice.call(arguments,1))}else{a[n]()}}})};e.fn.typeahead.defaults={source:[],items:8,menu:'<ul class="typeahead dropdown-menu" role="listbox"></ul>',item:'<li><a class="dropdown-item" href="#" role="option"></a></li>',minLength:1,scrollHeight:0,autoSelect:!0,afterSelect:e.noop,addItem:!1,delay:0,separator:"category",headerHtml:'<li class="dropdown-header"></li>',headerDivider:'<li class="divider" role="separator"></li>'};e.fn.typeahead.Constructor=t;e.fn.typeahead.noConflict=function(){e.fn.typeahead=n;return this};e(document).on("focus.typeahead.data-api",'[data-provide="typeahead"]',function(t){var n=e(this);if(n.data("typeahead"))return;n.typeahead(n.data())})});var d=function(){var t=[];function n(){var e=t;t=[];for(var n=0,r=e.length;n<r;n++){e[n]()}}if(window.MutationObserver){var r=document.createElement("div");new MutationObserver(n).observe(r,{attributes:!0});return function(e){if(!t.length){r.setAttribute("yes","no")}t.push(e)}}else{var a,o=window.setImmediate||setTimeout;return function(r){t.push(r);if(!a){a=o(function(){a=e;n()},0)}}}}();function p(e){return typeof e=="number"}function h(e){return typeof e=="string"}function f(e){return typeof e=="boolean"}function m(e){return typeof e=="function"}function v(e){return typeof e==="object"}var g=Array.isArray;if(Object.assign==e){Object.assign=function t(n){var r=[];for(var a=1;a<arguments.length;a++){r[a-1]=arguments[a]}if(n==e)throw new TypeError("Target in assign cannot be undefined or null");var o=arguments.length;for(var i=1;i<o;i++){var s=arguments[i];if(s==e)continue;var l=Object.keys(s),c=l.length;for(var u=0;u<c;u++){var d=l[u];n[d]=s[d]}}return n}}if(!Object.is){Object.is=function(e,t){if(e===t){return e!==0||1/e===1/t}else{return e!==e&&t!==t}}}function y(e,t,n){var r=e.prototype;if(!r[t]){Object.defineProperty(r,t,{value:n,configurable:!0,writable:!0})}}if(new Set([0]).size===0){var b=Set;Set=function e(t){var n=new b;if(t){t.forEach(n.add,n)}return n};Set.prototype=b.prototype;Set.prototype.constructor=Set}if(new Map([[0,0]]).size===0){var x=Map;Map=function e(t){var n=new x;if(t){t.forEach(function(e){this.set(e[0],e[1])},n)}return n};Map.prototype=x.prototype;Map.prototype.constructor=Map}y(Array,"find",function(e){var t=Object(this);var n=t.length>>>0;var r=arguments[1];for(var a=0;a<n;a++){var o=t[a];if(e.call(r,o,a,t)){return o}}return});y(Array,"findIndex",function(e){var t=Object(this);var n=t.length>>>0;var r=arguments[1];for(var a=0;a<n;a++){var o=t[a];if(e.call(r,o,a,t)){return a}}return-1});y(Array,"some",function(e){var t=Object(this);var n=t.length>>>0;var r=arguments[1];for(var a=0;a<n;a++){if(a in t&&e.call(r,t[a],a,t)){return!0}}return!1});y(String,"includes",function(e,t){if(!p(t))t=0;if(t+e.length>this.length){return!1}else{return this.indexOf(e,t)!==-1}});y(String,"startsWith",function(e,t){return this.substr(!t||t<0?0:+t,e.length)===e});y(String,"endsWith",function(e,t){var n=this.toString();if(!p(t)||!isFinite(t)||Math.floor(t)!==t||t>n.length){t=n.length}t-=e.length;var r=n.indexOf(e,t);return r!==-1&&r===t});if(!window.Promise){(function(){function t(e,t){return function(){e.apply(t,arguments)}}function n(t){var n=this;if(this.s===null){this.d.push(t);return}d(function(){var r=n.s?t[0]:t[1];if(r==e){(n.s?t[2]:t[3])(n.v);return}var a;try{a=r(n.v)}catch(e){t[3](e);return}t[2](a)})}function r(){for(var e=0,t=this.d.length;e<t;e++){n.call(this,this.d[e])}this.d=null}function a(e){this.s=!1;this.v=e;r.call(this)}function o(e,t,n){var r=!1;try{e(function(e){if(r)return;r=!0;t(e)},function(e){if(r)return;r=!0;n(e)})}catch(e){if(r)return;r=!0;n(e)}}function i(e){try{if(e===this)throw new TypeError("Promise self resolve");if(Object(e)===e){var n=e.then;if(typeof n==="function"){o(t(n,e),t(i,this),t(a,this));return}}this.s=!0;this.v=e;r.call(this)}catch(e){a.call(this,e)}}function s(e){this.s=null;this.v=null;this.d=[];o(e,t(i,this),t(a,this))}s.prototype.then=function(e,t){var r=this;return new s(function(a,o){n.call(r,[e,t,a,o])})};s.prototype["catch"]=function(t){return this.then(e,t)};s.all=function(){var e=[].slice.call(arguments.length===1&&g(arguments[0])?arguments[0]:arguments);return new s(function(t,n){if(e.length===0){t(e);return}var r=e.length;function a(o,i){try{if(i&&(typeof i==="object"||typeof i==="function")){var s=i.then;if(typeof s==="function"){s.call(i,function(e){a(o,e)},n);return}}e[o]=i;if(--r===0){t(e)}}catch(e){n(e)}}for(var o=0;o<e.length;o++){a(o,e[o])}})};s.resolve=function(e){if(e&&typeof e==="object"&&e.constructor===s){return e}return new s(function(t){t(e)})};s.reject=function(e){return new s(function(t,n){n(e)})};s.race=function(e){return new s(function(t,n){for(var r=0,a=e.length;r<a;r++){e[r].then(t,n)}})};window["Promise"]=s})()}function _(){return e}function S(){return Object.create(null)}var k=Object.prototype.hasOwnProperty;function C(e){return document.createTextNode(e)}var w=_;var E=_;var D=_;var I=_;function T(e){var t=w;w=e;return t}function A(e){var t=E;E=e;return t}function N(e){var t=D;D=e;return t}function P(e){var t=I;I=e;return t}var F;var B={};var O=1;var R=2;var G=4;var j=8;var L=16;var M=32;var H=function(){function t(t,n){this.data=t;this.me=n;this.cfg=e;this.refs=e;this.disposables=e;this.$hookFlags=0;this.$hooks=e;this.$bobxCtx=e}return t}();var z=g;function V(e){z=e}var U={};function q(e){return document.createElement(e)}var W=Object.assign;function J(e){e.catch(function(e){console.error("Uncaught exception from swallowPromise",e)})}var K=!1;var Y=!1;var X=[];var Q=[];var Z=[];function ee(){return document.documentMode}var te=/^input$|^select$|^textarea$|^button$/;var ne="tabindex";function re(t,n){if(t==e)return!1;if(te.test(t))return!0;if(t==="a"&&n!=null&&n.href!=null)return!0;return!1}function ae(t,n,r,a,o){var i,s,l,c,u;var d=!1;if(r!=null)for(i in r){s=r[i];l=a[i];if(o&&i===ne){s=-1;d=!0}else if(i===ln&&!K){if(m(s)){a[an]=s;s=s()}c=l;u=s;a[i]=s;continue}if(l!==s){a[i]=s;if(K){if(i==="href")n.setAttributeNS("http://www.w3.org/1999/xlink","href",s);else n.setAttribute(i,s)}else if(i in n&&!(i==="list"||i==="form")){n[i]=s}else n.setAttribute(i,s)}}if(o&&!d&&re(t.tag,r)){n.setAttribute(ne,"-1");a[ne]=-1}if(r==e){for(i in a){if(a[i]!==e){if(o&&i===ne)continue;if(i===an)continue;a[i]=e;n.removeAttribute(i)}}}else{for(i in a){if(a[i]!==e&&!(i in r)){if(o&&i===ne)continue;if(i===an)continue;a[i]=e;n.removeAttribute(i)}}}if(u!==e){oe(n,t,u,c)}return a}function oe(t,n,r,a){var o=t.tagName;var i=o==="SELECT";var s=o==="INPUT"||o==="TEXTAREA";if(!s&&!i){if(r!==a)t[ln]=r;return}if(n.ctx===e){n.ctx=new H(e,n);n.component=U}if(a===e){n.ctx[an]=r}var l=i&&t.multiple;var c=!1;if(l){var u=t.options,d=pn(u);if(!un(r,d)){if(a===e||un(d,a)||!un(r,n.ctx[an])){for(var p=0;p<u.length;p++){u[p].selected=dn(r,u[p].value)}d=pn(u);if(un(d,r)){c=!0}}else{c=!0}}}else if(s||i){if(s&&cn(t)){var h=t.checked;if(r!==h){if(a===e||h===a||r!==n.ctx[an]){t.checked=r}else{c=!0}}}else{var f=i&&t.size<2,m=t[ln];if(r!==m){if(a===e||m===a||r!==n.ctx[an]){if(i){if(r===""){t.selectedIndex=f?0:-1}else{t[ln]=r}if(r!==""||f){m=t[ln];if(r!==m){c=!0}}}else{t[ln]=r}}else{c=!0}}}}if(c){hn(e,t,n)}else{n.ctx[an]=r}}function ie(e){var t=e.component;if(t){var n=t[Kn];if(n){X.push(n);Q.push(e)}var r=se(e);if(r&O){X.push(nr);Q.push(e)}if(r&M){Z.push(e)}}else{var a=e.ctxStyle;if(a){var r=a.$hookFlags|0;if(r&O){X.push(nr);Q.push(e)}if(r&M){Z.push(e)}}}}function se(t){var n=t.ctx.$hookFlags|0;if(t.ctxStyle!=e)n=t.ctxStyle.$hookFlags|n;return n}function le(e){var t=e.component;if(t){var n=t[Yn];if(n){X.push(n);Q.push(e)}var r=se(e);if(r&R){X.push(rr);Q.push(e)}n=t[Xn];if(n){X.push(n);Q.push(e)}if(r&G){X.push(ar);Q.push(e)}if(r&M){Z.push(e)}}else{var a=e.ctxStyle;if(a){var r=a.$hookFlags|0;if(r&R){X.push(rr);Q.push(e)}if(r&G){X.push(ar);Q.push(e)}if(r&M){Z.push(e)}}}}function ce(e){var t=e.component;if(t){var n=t[Xn];if(n){X.push(n);Q.push(e)}if(se(e)&G){X.push(ar);Q.push(e)}}else{var r=e.ctxStyle;if(r){var a=r.$hookFlags|0;if(a&G){X.push(ar);Q.push(e)}}}}function ue(t){var n;while(t){n=t.cfg;if(n!==e)break;if(t.ctx!==e&&t.component!==U){n=t.ctx.cfg;break}t=t.parent}return n}function de(t,n){if(t===e)return;if("current"in t){t.current=n}else if(m(t)){t(n)}else if(g(t)){var r=t[0],a=r.refs;if(a===e){a=S();r.refs=a}a[t[1]]=n}}var pe=[];var he=null;var fe;var me;var ve;function ge(e,t,n){fe=e;me=t;ve=n}var ye;function be(){return ye}function xe(e){ye=e}function _e(t,n,r,a){var o={tag:t.tag,key:t.key,ref:t.ref,className:t.className,style:t.style,attrs:t.attrs,children:t.children,component:t.component,data:t.data,cfg:e,parent:n,element:e,ctx:e,orig:t};var i=K;var s=Y;var l=o.component;var c;de(o.ref,o);if(l){var u;if(l.ctxClass){u=new l.ctxClass(o.data||{},o);if(u.data===e)u.data=o.data||{};if(u.me===e)u.me=o}else{u=new H(o.data||{},o)}u.cfg=t.cfg===e?ue(n):t.cfg;o.ctx=u;ye=u;if(l.init){l.init(u,o)}if(w!==_)w(t,0);if(l.render){l.render(u,o)}ye=e}else{}var d=o.tag;if(d==="-"){o.tag=e;o.children=e;return o}else if(d==="@"){r=o.data;a=null;d=e}var f=o.children;var m=!1;if(p(f)){f=""+f;o.children=f}if(d===e){if(h(f)){c=C(f);o.element=c;Be.set(c,o);r.insertBefore(c,a)}else{Ie(o,r,a)}if(l){if(l.postRender){l.postRender(o.ctx,o)}ie(o)}return o}if(d==="/"){var v=f;if(v===""){}else if(a==e){var g=r.lastChild;r.insertAdjacentHTML("beforeend",v);o.element=[];if(g){g=g.nextSibling}else{g=r.firstChild}while(g){Be.set(g,o);o.element.push(g);g=g.nextSibling}}else{c=a;var y=a.previousSibling,b=!1,x=r;if(!c.insertAdjacentHTML){c=x.insertBefore(q("i"),c);b=!0}c.insertAdjacentHTML("beforebegin",v);if(y){y=y.nextSibling}else{y=x.firstChild}var S=[];while(y!==c){Be.set(y,o);S.push(y);y=y.nextSibling}o.element=S;if(b){x.removeChild(c)}}if(l){if(l.postRender){l.postRender(o.ctx,o)}ie(o)}return o}if(K||d==="svg"){c=document.createElementNS("http://www.w3.org/2000/svg",d);m=d==="foreignObject";K=!m}else{c=q(d)}r.insertBefore(c,a);Be.set(c,o);o.element=c;Ie(o,c,null);if(l){if(l.postRender){l.postRender(o.ctx,o)}}if(Y&&he===o)Y=!1;if(m)K=!0;if(o.attrs||Y)o.attrs=ae(o,c,o.attrs,{},Y);fe(c,o.style,Ee(o,o.className),o,K);K=i;Y=s;ie(o);return o}function Se(t,n){var r=n.ctxStyle;var a=ye;if(r===e){r=new H(t,n);n.ctxStyle=r;ye=r;if(w!==_)w(r,0)}else{ye=r;if(w!==_)w(r,1)}var o=t();ye=a;return ve({},o)}function ke(t){var n=t.ctxStyle;if(n!==e){ye=n;if(w!==_)w(n,3);var r=n.disposables;if(g(r)){for(var a=r.length;a-- >0;){var o=r[a];if(m(o))o(n);else o.dispose()}}ye=e}}var Ce=!1;function we(e){Ce=e}function Ee(t,n){if(!Ce)return n;var r="";do{var a=t.key;if(a)r=" "+a+r;t=t.parent}while(t!=e&&t.element==e);if(n)return n+r;return r.substr(1)}function De(t){if(t===!1||t===!0||t===null)return e;if(h(t)){return{children:t}}if(p(t)){return{children:""+t}}return t}function Ie(e,t,n){var r=e.children;if(h(r)){t.textContent=r;return}var a=[];Ye(a,r);for(var o=0;o<a.length;o++){a[o]=_e(a[o],e,t,n)}e.children=a}function Te(t){de(t.ref,e);var n=t.children;if(g(n)){for(var r=0,a=n.length;r<a;r++){Te(n[r])}}var o=t.component;if(o){var i=t.ctx;ye=i;if(w!==_)w(t,3);if(o.destroy)o.destroy(i,t,t.element);var s=i.disposables;if(g(s)){for(var l=s.length;l-- >0;){var c=s[l];if(m(c))c(i);else c.dispose()}}ye=e}ke(t);if(t.tag==="@"){Ne(t)}}function Ae(t,n){var r=t.disposables;if(r==e){r=[];t.disposables=r}r.push(n)}function Ne(e){var t=e.element;if(g(t)){var n=t[0].parentNode;if(n){for(var r=0;r<t.length;r++){n.removeChild(t[r])}}}else if(t!=null){var a=t.parentNode;if(a)a.removeChild(t)}else{var o=e.children;if(g(o)){for(var i=0,s=o.length;i<s;i++){Ne(o[i])}}}}function Pe(e){Te(e);Ne(e)}var Fe=S();var Be=new WeakMap;function Oe(t){var n=[];while(t!=e){var r=Be.get(t);if(r!==e){do{n.push(r);r=r.parent}while(r!==e);n.reverse();return n}t=t.parentNode}return n}function Re(t){while(t!=e){var n=Be.get(t);if(n!==e){return n}t=t.parentNode}return e}function $e(t,n,r){if(r){if(r.postRender){ye=n.ctx;r.postRender(ye,t,n);ye=e}}n.data=t.data;le(n)}function Ge(t,n,r){ye=e;if(g(t.children)){var a=K,o=Y;if(t.tag==="svg"){K=!0}else if(K&&t.tag==="foreignObject")K=!1;if(Y&&he===t)Y=!1;_t(t.children,t.element||n,t.element!=null?null:r);K=a;Y=o}ce(t)}function je(t,n,r,a,o,i){var s=t.component;var l=!1;var c=n.ctx;if(s!=null&&c!=null){var u=!1;if(c[it]>=dt){o=Math.max(o,c[st]);u=!0}if(s.id!==n.component.id){l=!0}else{ye=c;if(t.cfg!==e)c.cfg=t.cfg;else c.cfg=ue(n.parent);if(s.shouldChange)if(!At&&!u){var d=s.shouldChange(c,t,n);if(!d){Ge(n,r,a);return n}}c.data=t.data||{};n.component=s;if(w!==_)w(t,i?2:1);if(s.render){n.orig=t;t=W({},t);n.cfg=e;if(t.cfg!==e)t.cfg=e;s.render(c,t,n);if(t.cfg!==e){if(n.cfg===e)n.cfg=t.cfg;else W(n.cfg,t.cfg)}}ye=e}}else{if(n.orig===t&&!At){Ge(n,r,a);return n}n.orig=t}var f=t.children;var m=n.children;var v=t.tag;if(v==="-"){Ge(n,r,a);return n}var y=K;var b=Y;if(p(f)){f=""+f}if(l||s!=e&&c==e||s==e&&c!=e&&c.me.component!==U){}else if(v==="/"){if(n.tag==="/"&&m===f){$e(t,n,s);return n}}else if(v===n.tag){if(v==="@"){if(t.data!==n.data){var x=_e(t,n.parent,t.data,null);Pe(n);return x}r=t.data;a=Me(n);if(a!=null)a=a.nextSibling;v=e}if(v===e){if(h(f)&&h(m)){if(f!==m){var S=n.element;S.textContent=f;n.children=f}}else{if(Y&&he===n)Y=!1;if(o<=0){if(g(m))_t(n.children,r,a)}else{n.children=Xe(r,f,m,n,a,o-1)}K=y;Y=b}$e(t,n,s);return n}else{var k=!1;if(v==="svg"){K=!0}else if(K&&v==="foreignObject"){k=!0;K=!1}if(Y&&he===n)Y=!1;var S=n.element;if(h(f)&&!g(m)){if(f!==m){S.textContent=f;m=f}}else{if(o<=0){if(g(m))_t(n.children,S,null)}else{m=Xe(S,f,m,n,null,o-1)}}n.children=m;if(k)K=!0;$e(t,n,s);if(n.attrs||t.attrs||Y)n.attrs=ae(n,S,t.attrs,n.attrs||{},Y);me(S,t.style,Ee(n,t.className),n,K);K=y;Y=b;return n}}var C=n.element;if(g(C))C=C[0];if(C==e)C=r;else C=C.parentNode;var x=_e(t,n.parent,C,Le(n));Pe(n);return x}function Le(t){if(t===e)return null;var n=t.element;if(n!=null){if(g(n))return n[0];return n}var r=t.children;if(!g(r))return null;for(var a=0;a<r.length;a++){n=Le(r[a]);if(n)return n}return null}function Me(t){if(t===e)return null;var n=t.element;if(n!=null){if(g(n))return n[n.length-1];return n}var r=t.children;if(!g(r))return null;for(var a=r.length;a-- >0;){n=Me(r[a]);if(n)return n}return null}function He(t,n,r,a){while(++n<r){var o=t[n];if(o==e)continue;var i=Le(o);if(i!=null)return i}return a}function ze(){var t=Q.length;for(var n=0;n<t;n++){var r=Q[n];ye=r.ctx;if(ye){X[n].call(r.component,ye,r,r.element)}ye=r.ctxStyle;if(ye){X[n].call(r.component,ye,r,r.element)}}ye=e;X=[];Q=[]}function Ve(){var t=Z.length;for(var n=0;n<t;n++){var r=Z[n];ye=r.ctx;if(ye){var a=ye.$hooks,o=a.length;for(var i=0;i<o;i++){var s=a[i],l=s.useEffect;if(l!==e){l.call(s,ye)}}}ye=r.ctxStyle;if(ye){var a=ye.$hooks,o=a.length;for(var c=0;c<o;c++){var s=a[c],l=s.useEffect;if(l!==e){l.call(s,ye)}}}}ye=e;Z=[]}function Ue(e,t,n,r,a,o,i){t[n]=je(e,t[n],o,He(t,n,r,a),i)}function qe(e,t,n){var r=e.element;if(r!=null){if(g(r)){for(var a=0;a<r.length;a++){t.insertBefore(r[a],n)}}else t.insertBefore(r,n);return}var o=e.children;if(!g(o))return;for(var a=0;a<o.length;a++){qe(o[a],t,n)}}function We(e,t,n,r,a){var o=He(e,t,n,r);var i=e[t];var s=Le(i);if(s!=null&&s!==o){qe(i,a,o)}}function Je(e,t,n,r,a,o,i){var s=He(t,n,r,a);var l=t[n];var c=Le(l);if(c!=null&&c!==s){qe(l,o,s)}t[n]=je(e,l,o,s,i)}function Ke(t,n){if(n==e)return;if(z(n)){for(var r=0;r<n.length;r++){Ke(t,n[r])}}else{var a=De(n);if(a!==e)t.push(a)}}function Ye(e,t){Ke(e,t)}function Xe(t,n,r,a,o,i){if(r==e)r=[];if(!g(r)){if(t.firstChild)t.removeChild(t.firstChild);r=[]}var s=[];Ye(s,n);return Qe(t,s,r,a,o,i)}function Qe(t,n,r,a,o,i){var s=n.length;var l=r.length;var c=l;var u=0;var d=0;while(u<s&&d<c){if(n[u].key===r[d].key){Ue(n[u],r,d,l,o,t,i);u++;d++;continue}while(!0){if(n[s-1].key===r[c-1].key){s--;c--;Ue(n[s],r,c,l,o,t,i);if(u<s&&d<c)continue}break}if(u<s&&d<c){if(n[u].key===r[c-1].key){r.splice(d,0,r[c-1]);r.splice(c,1);Je(n[u],r,d,l,o,t,i);u++;d++;continue}if(n[s-1].key===r[d].key){r.splice(c,0,r[d]);r.splice(d,1);c--;s--;Je(n[s],r,c,l,o,t,i);continue}}break}if(d===c){if(u===s){return r}while(u<s){r.splice(d,0,_e(n[u],a,t,He(r,d-1,l,o)));d++;c++;l++;u++}return r}if(u===s){while(d<c){c--;Pe(r[c]);r.splice(c,1)}return r}var p=S();var h=S();var f;var m;var v=u;var g=d;var y=0;for(;d<c;d++){m=r[d];f=m.key;if(f!=null){p[f]=d}else y--}var b=-y-y;for(;u<s;u++){m=n[u];f=m.key;if(f!=null){h[f]=u}else y++}b+=y;var x=0;u=v;d=g;var _;while(d<c&&u<s){if(r[d]===null){r.splice(d,1);c--;l--;x--;continue}_=r[d].key;if(_==e){d++;continue}f=n[u].key;if(f==e){u++;while(u<s){f=n[u].key;if(f!=e)break;u++}if(f==e)break}var k=p[f];if(k===e){r.splice(d,0,_e(n[u],a,t,He(r,d-1,l,o)));x++;u++;d++;c++;l++;continue}if(!(_ in h)){Pe(r[d]);r.splice(d,1);x--;c--;l--;continue}if(d===k+x){Ue(n[u],r,d,l,o,t,i);u++;d++}else{r.splice(d,0,r[k+x]);x++;r[k+x]=null;Je(n[u],r,d,l,o,t,i);d++;c++;l++;u++}}while(d<c){if(r[d]===null){r.splice(d,1);c--;l--;continue}if(r[d].key!=null){Pe(r[d]);r.splice(d,1);c--;l--;continue}d++}while(u<s){f=n[u].key;if(f!=null){r.splice(d,0,_e(n[u],a,t,He(r,d-1,l,o)));c++;l++;x++;d++}u++}if(!b)return r;b=b-Math.abs(y)>>1;u=v;d=g;while(u<s){if(d<c){_=r[d].key;if(_!=null){d++;continue}}f=n[u].key;if(u<c&&f===r[u].key){if(f!=null){u++;continue}Ue(n[u],r,u,l,o,t,i);b--;u++;d=u;continue}if(f!=null){if(b===0&&y<0){while(!0){Pe(r[d]);r.splice(d,1);c--;l--;y++;if(r[d].key!=null)break}continue}while(r[d].key==e)d++;r[d].key;r.splice(u,0,r[d]);r.splice(d+1,1);We(r,u,l,o,t);u++;d=u;continue}if(d<c){r.splice(u,0,r[d]);r.splice(d+1,1);Je(n[u],r,u,l,o,t,i);b--;u++;d++}else{r.splice(u,0,_e(n[u],a,t,He(r,u-1,l,o)));c++;l++;u++;d++}}while(c>u){c--;Pe(r[c]);r.splice(c,1)}return r}var Ze=!1;var et=window.requestAnimationFrame;if(et){et(function(e){if(e===+e)Ze=!0})}var tt=window.setTimeout;var nt=Date.now||function(){return(new Date).getTime()};var rt=nt();var at=0;function ot(e){if(Ze){et(e)}else{var t=50/3+at-nt();if(t<0)t=0;tt(function(){at=nt();e(at-rt)},t)}}var it="$invalidated";var st="$deepness";var lt=!0;var ct=!1;var ut=!0;var dt=0;var pt=S();var ht;function ft(t,n,r){if(ht==e)ht=S();var a=ht[t]||[];a.push({priority:n,callback:r});ht[t]=a}function mt(e,t,n,r){var a=pt[e];if(a)for(var o=0;o<a.length;o++){if(a[o](t,n,r))return!0}return!1}var vt=!1;try{var gt=Object.defineProperty({},"passive",{get:function(){vt=!0}});window.addEventListener("blur",gt,gt);window.removeEventListener("blur",gt,gt)}catch(e){vt=!1}var yt=0;function bt(e,t){if(t[0]=="!")return;var n=t[0]=="^";var r=t;if(t[0]=="@"){r=t.slice(1);e=document}if(n){r=t.slice(1)}function a(n){n=n||window.event;var r=n.target||e;var a=Re(r);yt++;mt(t,n,r,a);yt--;if(yt==0&&kt)Ct()}if("on"+r in window)e=window;e.addEventListener(r,a,vt?{capture:n,passive:!1}:n)}function xt(){if(ht===e)return;var t=Object.keys(ht);for(var n=0;n<t.length;n++){var r=t[n],a=ht[r];a=a.sort(function(e,t){return e.priority-t.priority});pt[r]=a.map(function(e){return e.callback})}ht=e;var o=document.body;for(var i=0;i<t.length;i++){bt(o,t[i])}}function _t(t,n,r){var a=t.length;for(var o=0;o<a;o++){var i=t[o],s=i.ctx;if(s!=null&&s[it]>=dt){t[o]=je(i.orig,i,n,He(t,o,a,r),s[st],!0)}else{s=i.ctxStyle;if(s!=null&&s[it]>=dt){me(i.element,s.data,e,i,K)}if(g(i.children)){var l=K,c=Y;if(Y&&he===i)Y=!1;if(i.tag==="svg")K=!0;else if(K&&i.tag==="foreignObject")K=!1;var u=i.element;if(u!=e){_t(i.children,u,null)}else{_t(i.children,n,He(t,o,a,r))}ce(i);K=l;Y=c}}}}function St(t,n,r){while(n!=null){if(t===n)return!0;var a=n.parent;if(a==e){for(var o=0;o<r.length;o++){var i=Fe[r[o]];if(!i)continue;if(i.n===n){a=i.p;break}}}n=a}return!1}var kt=!1;function Ct(){kt=!1;It(nt()-rt)}function wt(e){ct=!1;It(e)}var Et;var Dt=Bn({render:function(t,n){var r=t.data;var a=r.f(r);if(a===e){n.tag="-"}else{n.children=a}}});function It(t){nt();xt();D();dt++;At=Tt;Tt=!1;E();var n=!1;if(lt){lt=!1;n=!0}yt++;for(var r=0;r<2;r++){he=pe.length===0?null:pe[pe.length-1];Y=!1;Et=Object.keys(Fe);for(var a=0;a<Et.length;a++){var o=Fe[Et[a]];if(!o)continue;var i=o.n,s=null;for(var l=a+1;l<Et.length;l++){var c=Fe[Et[l]];if(c===e)continue;s=Le(c.n);if(s!=null)break}if(he)Y=!St(he,o.p,Et);if(o.e===e)o.e=document.body;if(i){if(n||i.ctx[it]>=dt){var u=Dt(o);je(u,i,o.e,s,n?1e6:i.ctx[st])}else{if(g(o.c))_t(o.c,o.e,s)}}else{var u=Dt(o);i=_e(u,e,o.e,s);o.n=i}o.c=i.children}Et=e;ze();if(!kt)break}Ve();kt=!1;yt--;var d=Fe["0"]
I(d?d.c:null);nt()}var Tt=!1;var At=!1;function Nt(){Tt=!0;F()}function Pt(e){var t=F;F=e;return t}var Ft=function(t,n){if(t!=null){if(n==e)n=1e6;if(t[it]!==dt+1){t[it]=dt+1;t[st]=n}else{if(n>t[st])t[st]=n}}else{lt=!0}if(ct||ut)return;ct=!0;ot(wt)};F=Ft;var Bt=0;function Ot(t,n,r){Bt++;var a=""+Bt;Fe[a]={f:t,e:n,c:[],p:r,n:e};if(Et!=null){Et.push(a)}else{Lt()}return a}function Rt(e){var t=Fe[e];if(!t)return;if(t.n)Pe(t.n);delete Fe[e]}function $t(){return Fe}function Gt(){ut=!1;F()}var jt=Gt;function Lt(){ut=!0;jt();jt=Gt}function Mt(t,n){Rt("0");Fe["0"]={f:t,e:n,c:[],p:e,n:e};Lt()}function Ht(e){var t=jt;jt=function(){e(t)}}var zt;function Vt(e,t){var n=zt;zt=t;try{return e()}finally{zt=n}}function Ut(t,n,r){if(r==e){r={target:t}}else if(v(r)&&r.target==e){r.target=t}var a=Jt(n,r);if(a!=e)return a;var o=zt;while(t){var i=t.component,s=t.ctxStyle;if(s){zt=s;if(((s.$hookFlags|0)&j)===j){var l=s.$hooks;for(var c=0,u=l.length;c<u;c++){var d=l[c];if(d instanceof ir){var p=d.events[n];if(p!==e){var h=+p.call(s,r);if(h==B.HandledPreventDefault){zt=o;return s}if(h==B.HandledButRunDefault){zt=o;return e}if(h==B.NotHandledPreventDefault){a=s}}}}}}if(i){s=t.ctx;zt=s;if(((s.$hookFlags|0)&j)===j){var l=s.$hooks;for(var c=0,u=l.length;c<u;c++){var d=l[c];if(d instanceof ir){var p=d.events[n];if(p!==e){var h=+p.call(s,r);if(h==B.HandledPreventDefault){zt=o;return s}if(h==B.HandledButRunDefault){zt=o;return e}if(h==B.NotHandledPreventDefault){a=s}}}}}var p=i[n];if(p){var h=+p.call(i,s,r);if(h==B.HandledPreventDefault){zt=o;return s}if(h==B.HandledButRunDefault){zt=o;return e}if(h==B.NotHandledPreventDefault){a=s}}p=i.shouldStopBubble;if(p){if(p.call(i,s,n,r))break}}t=t.parent}zt=o;return a}function qt(t,n,r){if(!t)return e;var a;var o=t.component;if(o){var i=t.ctx,s=zt;zt=i;if(((i.$hookFlags|0)&j)===j){var l=i.$hooks;for(var c=0,u=l.length;c<u;c++){var d=l[c];if(d instanceof ir){var p=d.events[n];if(p!==e){var h=+p.call(i,r);if(h==B.HandledPreventDefault){zt=s;return i}if(h==B.HandledButRunDefault){zt=s;return e}if(h==B.NotHandledPreventDefault){a=i}}}}}var p=o[n];if(p){var h=+p.call(o,i,r);if(h==B.HandledPreventDefault){zt=s;return i}if(h==B.HandledButRunDefault){zt=s;return e}if(h==B.NotHandledPreventDefault){a=i}}p=o.shouldStopBroadcast;if(p){if(p.call(o,i,n,r)){zt=s;return a}}zt=s}var f=t.children;if(g(f)){for(var c=0;c<f.length;c++){var m=qt(f[c],n,r);if(m!=e)return m}}return a}function Wt(t,n,r){if(!t)return e;var a;var o=t.component;var i=t.ctxStyle;if(i){if((i.$hookFlags&L)===L){var s=i.$hooks,l=zt;zt=i;for(var c=0,u=s.length;c<u;c++){var d=s[c];if(d instanceof sr){var p=d.events[n];if(p!==e){var h=+p.call(i,r);if(h==B.HandledPreventDefault){zt=l;return i}if(h==B.HandledButRunDefault){zt=l;return e}if(h==B.NotHandledPreventDefault){a=i}}}}zt=l}}if(o){i=t.ctx;if((i.$hookFlags&L)===L){var s=i.$hooks,l=zt;zt=i;for(var c=0,u=s.length;c<u;c++){var d=s[c];if(d instanceof sr){var p=d.events[n];if(p!==e){var h=+p.call(i,r);if(h==B.HandledPreventDefault){zt=l;return i}if(h==B.HandledButRunDefault){zt=l;return e}if(h==B.NotHandledPreventDefault){a=i}}}}zt=l}}var f=t.children;if(g(f)){for(var c=0,u=f.length;c<u;c++){var m=Wt(f[c],n,r);if(m!=e)return m}}return a}function Jt(t,n){var r=Object.keys(Fe);for(var a=0;a<r.length;a++){var o=Fe[r[a]].n;if(o!=null){var i=Wt(o,t,n);if(i!=null)return i}}return e}function Kt(t,n){var r=Jt(t,n);if(r!=null)return r;var a=Object.keys(Fe);for(var o=0;o<a.length;o++){var i=Fe[a[o]].n;if(i!=null){r=qt(i,t,n);if(r!=null)return r}}return e}var Yt=0;function Xt(){return Yt++}function Qt(e,t){return function(){var n=[];for(var r=0;r<arguments.length;r++){n[r]=arguments[r]}var a=e.apply(this,n);if(a)return a;return t.apply(this,n)}}function Zt(e,t){var n=Object.create(e);n.super=e;for(var r in t){if(!(r in U)){var a=t[r],o=e[r];if(r==="id"){n[r]=(o!=null?o:"")+"/"+a}else if(m(a)&&o!=null&&m(o)){n[r]=Qt(o,a)}else{n[r]=a}}}return n}function en(e,t){var n=Object.create(e);n.super=e;for(var r in t){if(!(r in U)){var a=t[r],o=e[r];if(r==="id"){n[r]=(o!=null?o:"")+"/"+a}else{n[r]=a}}}return n}function tn(e){e.preventDefault()}function nn(e){e=e.slice(0);for(var t=0;t<e.length;t++){var n=e[t];if(g(n)){e[t]=nn(n)}else if(v(n)){e[t]=rn(n)}}return e}function rn(e){var t=W({},e);if(t.attrs){t.attrs=W({},t.attrs)}var n=t.style;if(v(n)&&!m(n)){t.style=W({},n)}var r=t.children;if(r){if(g(r)){t.children=nn(r)}else if(v(r)){t.children=rn(r)}}return t}var an="b$value";var on="b$selStart";var sn="b$selEnd";var ln="value";function cn(e){var t=e.type;return t==="checkbox"||t==="radio"}function un(t,n){if(t===n)return!0;if(t==e||n==e)return!1;var r=t.length;if(r!==n.length)return!1;for(var a=0;a<r;a++){if(t[a]!==n[a])return!1}return!0}function dn(t,n){if(t==e)return!1;for(var r=0;r<t.length;r++){if(t[r]===n)return!0}return!1}function pn(e){var t=[];for(var n=0;n<e.length;n++){if(e[n].selected)t.push(e[n].value)}return t}function hn(t,n,r){if(n&&n.nodeName==="OPTION"){n=document.activeElement;r=Re(n)}if(!r){return!1}if(r.ctx===e){r.ctx=new H(e,r);r.component=U}var a=r.ctx;var o=n.tagName;var i=o==="SELECT";var s=i&&n.multiple;if(s){var l=pn(n.options);if(!un(a[an],l)){a[an]=l;fn(r,l)}}else if(cn(n)){if(t&&t.type==="change"){tt(function(){hn(e,n,r)},10);return!1}if(n.type==="radio"){var c=document.getElementsByName(n.name);for(var u=0;u<c.length;u++){var d=c[u],p=Re(d);if(!p)continue;var h=p.ctx,f=d.checked;if(h[an]!==f){h[an]=f;fn(p,f)}}}else{var m=n.checked;if(a[an]!==m){a[an]=m;fn(r,m)}}}else{var v=n.value;if(a[an]!==v){a[an]=v;fn(r,v)}var g=n.selectionStart,y=n.selectionEnd,b=n.selectionDirection,x=!1,_=a[on];if(b==e){if(y===_)x=!0}else if(b==="backward"){x=!0}if(x){var S=g;g=y;y=S}mn(r,g,y)}return!1}function fn(e,t){var n=zt;var r=e.ctx;var a=e.component;zt=r;var o=e.attrs&&e.attrs[an];if(m(o))o(t);var i=a&&a.onChange;if(m(i))i(r,t);zt=n;Ut(e,"onInput",{target:e,value:t})}function mn(e,t,n){var r=e.component;var a=e.ctx;if(r&&(a[on]!==t||a[sn]!==n)){a[on]=t;a[sn]=n;Ut(e,"onSelectionChange",{target:e,startPosition:t,endPosition:n})}}function vn(e,t,n){var r=Dn();if(r)hn(e,r.element,r);return!1}var gn=["input","cut","paste","keydown","keypress","keyup","click","change"];for(var yn=0;yn<gn.length;yn++)ft(gn[yn],10,hn);var bn=["!PointerDown","!PointerMove","!PointerUp","!PointerCancel"];for(var yn=0;yn<bn.length;yn++)ft(bn[yn],2,vn);var xn=e;var _n=e;var Sn=[];var kn=!1;var Cn=new Set;function wn(t){if(kn)return!1;kn=!0;while(!0){var n=document.hasFocus()||t?document.activeElement:e;if(n===xn)break;xn=n;var r=Oe(xn),a=0;while(a<Sn.length&&a<r.length&&Sn[a]===r[a])a++;var o=Sn.length-1,i,s;if(o>=a){i=Sn[o];Ut(i,"onBlur");o--}while(o>=a){i=Sn[o];s=i.component;if(s&&s.onFocusOut)s.onFocusOut(i.ctx);o--}o=a;while(o+1<r.length){i=r[o];s=i.component;if(s&&s.onFocusIn)s.onFocusIn(i.ctx);o++}if(o<r.length){i=r[o];Ut(i,"onFocus")}Sn=r;_n=Sn.length==0?e:Sn[Sn.length-1];Cn.forEach(function(e){return e.update(r)})}kn=!1;return!1}function En(){tt(function(){return wn(!1)},10);return!1}ft("^focus",50,function(){return wn(!0)});ft("^blur",50,En);function Dn(){return _n}var In=[];function Tn(e,t,n){var r={node:n};for(var a=0;a<In.length;a++){In[a](r)}Jt("onScroll",r);return!1}ft("^scroll",10,Tn);function An(e){In.push(e)}function Nn(e){for(var t=0;t<In.length;t++){if(In[t]===e){In.splice(t,1);return}}}var Pn=window["bobrilBAsset"]||function(e){return e};function Fn(e,t){if(v(e)&&!g(e)){e.key=t;return e}return{key:t,children:e}}function Bn(t){return function(n,r){if(r!==e){if(n==e)n={};n.children=r}return{data:n,component:t}}}function On(e,t){var n=e().component;var r=en(n,t);return Bn(r)}function Rn(e,t){var n=e().component;var r=Zt(n,t);return Bn(r)}var $n=new Map;function Gn(e){var t=new Map;do{Object.getOwnPropertyNames(e).forEach(function(t){if(!this.has(t))this.set(t,Object.getOwnPropertyDescriptor(e,t))},t)}while(e=Object.getPrototypeOf(e));return t}var jn=new Set("key className component data children".split(" "));function Ln(t,n){var r;var a=arguments.length-2;if(a===0){}else if(a===1){r=arguments[2]}else{r=new Array(a);for(var o=0;o<a;o++){r[o]=arguments[o+2]}}if(h(t)){var i=a===0?{tag:t}:{tag:t,children:r};if(n==e){return i}var s,l;for(var c in n){if(!k.call(n,c))continue;var u=n[c];if(jn.has(c)){i[c]=u}else if(c==="style"){if(m(u)){i[c]=u}else{ve(i,u)}}else if(c==="ref"){if(h(u)){be();i.ref=[be(),u]}else i.ref=u}else if(c.startsWith("on")&&m(u)){if(l==e){l=S();i.component=l}l[c]=u.call.bind(u);continue}else{if(s==e){s=S();i.attrs=s}s[c]=u}}return i}else{var d,p=$n.get(t);if(p===e){p=tr(t);$n.set(t,p)}if(a==0){d=p(n)}else{if(p.length==1){if(n==e)n={children:r};else n.children=r;d=p(n)}else{d=p(n,r)}}if(n!=e){if(n.key!=e)d.key=n.key;if(n.ref!=e)d.ref=n.ref}return d}}var Mn={tag:"-"};function Hn(e){return{children:e.children}}(function(e){e[e["NotHandled"]=0]="NotHandled";e[e["HandledPreventDefault"]=1]="HandledPreventDefault";e[e["HandledButRunDefault"]=2]="HandledButRunDefault";e[e["NotHandledPreventDefault"]=3]="NotHandledPreventDefault"})(B);var zn=function(e){n(t,e);function t(t,n){return e.call(this,t,n)||this}return t}(H);function Vn(e){return function(t,n,r){var a,o;var i=e.call(t,t.data);if(i===Mn){n.tag="-";return}var s=(a=i===null||i===void 0?void 0:i.component)===null||a===void 0?void 0:a.src;if(s===Hn){i=(o=i.data)===null||o===void 0?void 0:o.children}n.children=i}}function Un(e){return function(t){e.call(t,t.data)}}function qn(e){return function(t,n,r){return e.call(t,n.data,r.data)}}function Wn(e){return e.call.bind(e)}function Jn(t,n,r){var a=t[n];if(a!=e){t[n]=function(e,t){a(e,t);r.call(e,t)}}else{t[n]=Wn(r)}}var Kn="postInitDom";var Yn="postUpdateDom";var Xn="postUpdateDomEverytime";var Qn=["destroy",Kn,Yn,Xn];function Zn(t,n){var r={};if(t.prototype instanceof zn){var a=t.prototype,o=a.constructor;r.id=er(n,o);var i=Gn(a);i.forEach(function(t,n){var a=t.value;if(a==e)return;var o=e;if(n==="render"){o=Vn(a)}else if(n==="init"){o=Un(a)}else if(n==="shouldChange"){o=qn(a)}else if(Qn.indexOf(n)>=0){Jn(r,n,a)}else if(n==="postRenderDom"){Jn(r,Qn[1],a);Jn(r,Qn[2],a)}else if(m(a)&&/^(?:canDeactivate$|on[A-Z])/.test(n)){o=Wn(a)}if(o!==e){r[n]=o}});r.ctxClass=t;r.canActivate=o.canActivate}else{r.id=er(n,t);r.render=Vn(t)}r.src=t;return function(e){return{data:e,component:r}}}function er(e,t){return e||t.id||t.name+"_"+Xt()}function tr(e){if(e.prototype instanceof zn){return Zn(e)}else if(e.length==2){return e}else{return Zn(e)}}function nr(t){var n=t.$hooks;var r=n.length;for(var a=0;a<r;a++){var o=n[a],i=o[Kn];if(i!==e){i.call(o,t)}}}function rr(t){var n=t.$hooks;var r=n.length;for(var a=0;a<r;a++){var o=n[a],i=o[Yn];if(i!==e){i.call(o,t)}}}function ar(t){var n=t.$hooks;var r=n.length;for(var a=0;a<r;a++){var o=n[a],i=o[Xn];if(i!==e){i.call(o,t)}}}function or(t,n,r){if(n!=e&&r!=e){var a=r.value,o=!1;return{configurable:!0,get:function(){if(o){return a}var e=a.bind(this);o=!0;Object.defineProperty(this,n,{value:e,configurable:!0,writable:!0});o=!1;return e}}}var i=t.prototype;var s=Object.getOwnPropertyNames(i);s.forEach(function(e){if(e==="constructor"){return}var n=Object.getOwnPropertyDescriptor(i,e);if(m(n.value)){Object.defineProperty(i,e,or(t,e,n))}});return t}var ir=function(){function e(){}return e}();var sr=function(){function e(){}return e}();var lr={Up:"ArrowUp",Down:"ArrowDown",Left:"ArrowLeft",Right:"ArrowRight",Del:"Delete",Crsel:"CrSel",Exsel:"ExSel",Esc:"Escape",Apps:"ContextMenu",OS:"Meta",Win:"Meta",Scroll:"ScrollLock",Spacebar:" ",Nonconvert:"NonConvert",Decimal:".",Separator:",",Multiply:"*",Add:"+",Divide:"/",Subtract:"-",MediaNextTrack:"MediaTrackNext",MediaPreviousTrack:"MediaTrackPrevious",MediaFastForward:"FastFwd",Live:"TV",Zoom:"ZoomToggle",SelectMedia:"LaunchMediaPlayer",MediaSelect:"LaunchMediaPlayer",VolumeUp:"AudioVolumeUp",VolumeDown:"AudioVolumeDown",VolumeMute:"AudioVolumeMute"};function cr(t){return{target:e,shift:t.shiftKey,ctrl:t.ctrlKey,alt:t.altKey,meta:t.metaKey||!1,which:t.which||t.keyCode,key:lr[t.key]||t.key}}function ur(e,t,n){if(!n)return!1;var r=cr(e);if(Ut(n,"onKeyDown",r)){tn(e);return!0}return!1}function dr(e,t,n){if(!n)return!1;var r=cr(e);if(Ut(n,"onKeyUp",r)){tn(e);return!0}return!1}function pr(e,t,n){if(!n)return!1;if(e.which===0||e.altKey)return!1;var r={charCode:e.which||e.keyCode};if(Ut(n,"onKeyPress",r)){tn(e);return!0}return!1}ft("keydown",50,ur);ft("keyup",50,dr);ft("keypress",50,pr);var hr;var fr=13;var mr=750;var vr=500;var gr=800;var yr=50;var br=null;var xr="onClick";var _r="onDoubleClick";function Sr(t,n){if(br==e){return!1}var r=br.me.component;var a=r[t];if(!a){return!1}var o=Vt(function(){return a.call(r,br,n)},br);return o}function kr(e,t){ft(e,5,t)}var Cr=["PointerDown","PointerMove","PointerUp","PointerCancel"];var wr;function Er(e){if(e==="mouse"||e===4)return 0;if(e==="pen"||e===3)return 2;return 1}function Dr(e){return function t(n,r,a){r=n.target;a=Re(r);var o=n.button+1;var i=Er(n.pointerType);var s=n.buttons;if(o===0&&i===0&&s){o=1;while(!(s&1)){s=s>>1;o++}}var l={target:a,id:n.pointerId,cancelable:sa(n),type:i,x:n.clientX,y:n.clientY,button:o,shift:n.shiftKey,ctrl:n.ctrlKey,alt:n.altKey,meta:n.metaKey||!1,count:n.detail};if(mt("!"+e,l,r,a)){tn(n);return!0}return!1}}function Ir(e){return function t(n,r,a){var o=!1;for(var i=0;i<n.changedTouches.length;i++){var s=n.changedTouches[i];r=s.target;a=Re(r);var l={target:a,id:s.identifier+2,cancelable:sa(n),type:1,x:s.clientX,y:s.clientY,button:1,shift:n.shiftKey,ctrl:n.ctrlKey,alt:n.altKey,meta:n.metaKey||!1,count:n.detail};if(mt("!"+e,l,r,a))o=!0}if(o){tn(n);return!0}return!1}}function Tr(e){return function t(n,r,a){r=n.target;a=Re(r);var o={target:a,id:1,type:0,cancelable:sa(n),x:n.clientX,y:n.clientY,button:ia(n),shift:n.shiftKey,ctrl:n.ctrlKey,alt:n.altKey,meta:n.metaKey||!1,count:n.detail};if(mt("!"+e,o,r,a)){tn(n);return!0}return!1}}function Ar(){kr("mousedown",Tr(Cr[0]));kr("mousemove",Tr(Cr[1]));kr("mouseup",Tr(Cr[2]))}if(window.ontouchstart!==e){kr("touchstart",Ir(Cr[0]));kr("touchmove",Ir(Cr[1]));kr("touchend",Ir(Cr[2]));kr("touchcancel",Ir(Cr[3]));Ar()}else if(window.onpointerdown!==e){for(wr=0;wr<4;wr++){var Nr=Cr[wr];kr(Nr.toLowerCase(),Dr(Nr))}}else{Ar()}for(var Pr=0;Pr<4;Pr++){(function(t){var n="on"+t;ft("!"+t,50,function(t,r,a){return Sr(n,t)||Ut(a,n,t)!=e})})(Cr[Pr])}var Fr=S();var Br=[];var Or=-1;var Rr=0;var $r=0;var Gr=0;var jr=!1;function Lr(e,t,n){return Math.abs(e-t)<n}var Mr=[];var Hr="!PointerRevalidate";ft(Hr,3,Ur);function zr(t){var n=[];while(t!=e){n.push(t);t=t.parent}return n.reverse()}var Vr=new Set;function Ur(e){var t=e.target;var n=zr(t);Vr.forEach(function(e){return e.update(n)});Ut(t,"onMouseOver",e);var r=0;while(r<Mr.length&&r<n.length&&Mr[r]===n[r])r++;var a;var o;var i=Mr.length;if(i>0&&(i>r||i!=n.length)){a=Mr[i-1];if(a){o=a.component;if(o&&o.onMouseOut)o.onMouseOut(a.ctx,e)}}while(i>r){i--;a=Mr[i];if(a){o=a.component;if(o&&o.onMouseLeave)o.onMouseLeave(a.ctx,e)}}while(i<n.length){a=n[i];if(a){o=a.component;if(o&&o.onMouseEnter)o.onMouseEnter(a.ctx,e)}i++}Mr=n;if(i>0&&(i>r||i!=Mr.length)){a=Mr[i-1];if(a){o=a.component;if(o&&o.onMouseIn)o.onMouseIn(a.ctx,e)}}return!1}function qr(){return Object.keys(Fr).length===0}function Wr(e,t,n){if(Or===-1&&qr()){Or=e.id;Rr=nt();$r=e.x;Gr=e.y;jr=!1;Ur(e)}Fr[e.id]=e.type;if(Or!==e.id){jr=!0}return!1}function Jr(e,t,n){if(e.type===0&&e.button===0&&Fr[e.id]!=null){e.button=1;mt("!PointerUp",e,t,n);e.button=0}if(Or===e.id){Ur(e);if(!Lr($r,e.x,fr)||!Lr(Gr,e.y,fr))jr=!0}else if(qr()){Ur(e)}return!1}var Kr=0;var Yr=0;function Xr(e){if(Yr==0)return!1;var t=nt();if(t<Kr+1e3&&e>=Yr){Kr=t;Yr=e;return!0}Yr=0;return!1}function Qr(){Yr=2;Kr=nt()}function Zr(e,t,n){delete Fr[e.id];if(Or==e.id){Ur(e);Or=-1;if(e.type==1&&!jr){if(nt()-Rr<mr){mt("!PointerCancel",e,t,n);Xr(1);var r=Sr(xr,e)||Ut(n,xr,e)!=null,a=ee()?gr:vr;Br.push([e.x,e.y,nt()+a,r?1:0]);return r}}else if(jr){hr(e.x,e.y)}}return!1}function ea(e,t,n){delete Fr[e.id];if(Or==e.id){Or=-1}return!1}function ta(e,t,n){var r=nt();for(var a=0;a<Br.length;a++){var o=Br[a];if(o[2]<r){Br.splice(a,1);a--;continue}if(Lr(o[0],e.clientX,yr)&&Lr(o[1],e.clientY,yr)){Br.splice(a,1);if(o[3])tn(e);return!0}}return!1}var na=["!PointerDown","!PointerMove","!PointerUp","!PointerCancel","^click"];var ra=[Wr,Jr,Zr,ea,ta];for(var wr=0;wr<5;wr++){ft(na[wr],3,ra[wr])}function aa(e){return function(t,n,r){if(Or!=t.id&&!qr())return!1;if(Sr(e,t)||Ut(r,e,t)){return!0}return!1}}var oa=["Down","Move","Up","Up"];for(var wr=0;wr<4;wr++){ft(na[wr],80,aa("onMouse"+oa[wr]))}function ia(e){return e.which||e.button}function sa(e){var t=e.cancelable;return!f(t)||t}function la(e,t){return function(n,r,a){var o=ia(n)||1;if(!t&&o!==1)return!1;var i={target:a,x:n.clientX,y:n.clientY,button:o,cancelable:sa(n),shift:n.shiftKey,ctrl:n.ctrlKey,alt:n.altKey,meta:n.metaKey||!1,count:n.detail||1};if(e==_r)i.count=2;if(Xr(i.count)||Sr(e,i)||Ut(a,e,i)){tn(n);return!0}return!1}}function ca(e,t){return Re(document.elementFromPoint(e,t))}kr("^click",la(xr));kr("^dblclick",la(_r));kr("contextmenu",la("onContextMenu",!0));var ua=("onwheel"in document.createElement("div")?"":"mouse")+"wheel";function da(e,t,n){var r=e.button+1;var a=e.buttons;if(r===0&&a){r=1;while(!(a&1)){a=a>>1;r++}}var o=0,i;if(ua=="mousewheel"){i=-1/40*e.wheelDelta;e.wheelDeltaX&&(o=-1/40*e.wheelDeltaX)}else{o=e.deltaX;i=e.deltaY}var s={target:n,dx:o,dy:i,x:e.clientX,y:e.clientY,cancelable:sa(e),button:r,shift:e.shiftKey,ctrl:e.ctrlKey,alt:e.altKey,meta:e.metaKey||!1,count:e.detail};if(Sr("onMouseWheel",s)||Ut(n,"onMouseWheel",s)){tn(e);return!0}return!1}kr(ua,da);var pa=function(){return Object.keys(Fr).length};var ha=function(e,t){var n=ee()?gr:vr;Br.push([e,t,nt()+n,1])};hr=ha;ft(na[0],2,function(){return!1});ft("keydown",2,function(e){if(!e.metaKey&&!e.altKey&&!e.ctrlKey){}return!1});var fa=null;var ma=[[414,800,900],[736,1280,1440]];function va(){fa=null;F();return!1}var ga=["resize","orientationchange"];for(var ya=0;ya<ga.length;ya++)ft(ga[ya],10,va);var ba=window.document.documentElement;var xa=/Android/i.test(navigator.userAgent);var _a;function Sa(){if(fa==e){var t=ba.clientWidth,n=ba.clientHeight,r=window.orientation,a=n>=t;if(r==e)r=a?0:90;else r=+r;if(xa){var o=Math.abs(r)%180===90;if(_a==e){_a=o===a}else{a=o===_a}}var i=0;while(t>ma[+!a][i])i++;fa={width:t,height:n,orientation:r,deviceCategory:i,portrait:a,dppx:window.devicePixelRatio}}return fa}var ka=["Webkit","Moz","ms","O"];var Ca=document.createElement("div").style;function wa(e){return h(Ca[e])}var Ea=new Map;var Da=new Set("boxFlex boxFlexGroup columnCount flex flexGrow flexNegative flexPositive flexShrink fontWeight lineClamp lineHeight opacity order orphans strokeDashoffset widows zIndex zoom".split(" "));function Ia(t){return function(n,r,a){n[t]=r;n[a]=e}}function Ta(t){return function(n,r,a){if(p(r)){n[t]=r+"px"}else{n[t]=r}n[a]=e}}function Aa(e,t,n){if(p(t))e[n]=t+"px"}function Na(t){var n=Object.keys(t);for(var r=0,a=n.length;r<a;r++){var o=n[r],i=Ea.get(o),s=t[o];if(s===e)continue;if(i===e){if(wa(o)){i=Da.has(o)?_:Aa}else{var l=o.replace(/^\w/,function(e){return e.toUpperCase()});for(var c=0;c<ka.length;c++){if(wa(ka[c]+l)){i=(Da.has(o)?Ia:Ta)(ka[c]+l);break}}if(i===e){i=Da.has(o)?_:Aa}}Ea.set(o,i)}i(t,s,o)}}function Pa(e,t){e.removeProperty(oo(t))}function Fa(e,t,n){var r=n.length;if(r>11&&n.substr(r-11,11)===" !important"){e.setProperty(oo(t),n.substr(0,r-11),"important");return}e.setProperty(oo(t),n)}function Ba(e,t,n){if(n)e.setAttribute("class",t);else e.className=t}function Oa(t,n,r){var a=t.style;if(n!==e){Na(n);var o;if(r!==e){for(o in r){if(r[o]===e)continue;if(n[o]===e)Pa(a,o)}for(o in n){var i=n[o];if(i!==e&&r[o]!==i)Fa(a,o,i)}}else{for(o in n){var i=n[o];if(i!==e)Fa(a,o,i)}}}else{if(r!==e){for(o in r){Pa(a,o)}}}}function Ra(t,n,r,a,o){if(m(n)){var i=Se(n,a);n=i.style;r=i.className}if(n)Oa(t,n,e);if(r)Ba(t,r,o)}function $a(e,t,n,r,a){if(m(t)){var o=Se(t,r);t=o.style;n=o.className}else{ke(r)}Oa(e,t,r.style);r.style=t;if(n!==r.className){Ba(e,n||"",a);r.className=n}}var Ga=S();var ja=S();var La=S();var Ma=S();var Ha=[];var za=S();var Va="";var Ua=!1;var qa=null;var Wa=0;var Ja=A(Za);var Ka=/\:|\ |\>/;function Ya(e){var t=Ka.exec(e);if(!t)return Ga[e].name;var n=t.index;return Ga[e.substring(0,n)].name+e.substring(n)}function Xa(e,t){var n="";if(e){if(g(e)){for(var r=0;r<e.length;r++){if(r>0){n+=","}n+="."+Ya(e[r])+"."+t}}else{n="."+Ya(e)+"."+t}}else{n="."+t}return n}function Qa(t,n,r,a){if(h(r)){var o=Ga[r];if(o===e){throw new Error("Unknown style "+r)}Qa(t,n,o.style,o.pseudo)}else if(m(r)){r(t,n)}else if(g(r)){for(var i=0;i<r.length;i++){Qa(t,n,r[i],e)}}else if(v(r)){for(var s in r){if(!k.call(r,s))continue;var l=r[s];if(m(l)){l=l(t,s)}t[s]=l}}if(a!=e&&n!=e){for(var c in a){var u=n[c];if(u===e){u=S();n[c]=u}Qa(u,e,a[c],e)}}}function Za(){var t,n,r;Sa().dppx;var a;if(Ua){var a,o,i,c,u,u;for(var a=0;a<Ha.length;a++){var o=Ha[a],d=za[o.url];if(d==e)continue;var i=o.color();if(i!==o.lastColor){o.lastColor=i;if(o.width==e)o.width=d.width;if(o.height==e)o.height=d.height;var c=fo(d,i,o.width,o.height,o.left,o.top),u=Ga[o.styleId];u.style={backgroundImage:"url("+c+")",width:o.width,height:o.height,backgroundPosition:0}}}var p=Va;for(var f in ja){var v=ja[f];p+="@keyframes "+v.name+" {";for(var g in v.def){var y=v.def[g],b=S();Qa(b,e,y,e);Na(b);p+=g+(g=="from"||g=="to"?"":"%")+" {"+io(b)+"}\n"}p+="}\n"}for(var f in Ga){var x=Ga[f],_=x.parent,k=x.name,w=x.pseudo,E=x.style;if(m(E)&&E.length===0){t=l(E(),2),E=t[0],w=t[1]}if(h(E)&&w==e){x.realName=E;continue}x.realName=k;var D=S(),I=S();Qa(e,I,e,w);Qa(D,I,E,e);Na(D);var T=io(D);if(T.length>0)p+=(k==e?_:Xa(_,k))+" {"+T+"}\n";for(var g in I){var y=I[g];Na(y);p+=(k==e?_+eo(g):Xa(_,k+eo(g)))+" {"+io(y)+"}\n"}}for(var f in La){var A=La[f];p+="@media "+f+"{";try{for(var N=(n=void 0,s(A)),P=N.next();!P.done;P=N.next()){var F=P.value;for(var g in F){var y=F[g],B=S();Qa(B,e,y,e);Na(B);p+="."+g+" {"+io(B)+"}\n"}}}catch(e){n={error:e}}finally{try{if(P&&!P.done&&(r=N.return))r.call(N)}finally{if(n)throw n.error}}p+="}\n"}var O=document.createElement("style");O.appendChild(C(p));var R=document.head||document.getElementsByTagName("head")[0];if(qa!=null){R.replaceChild(O,qa)}else{R.appendChild(O)}qa=O;Ua=!1}Ja()}function eo(e){var t=e.charCodeAt(0);if(t==32||t==91||t==46)return e;return":"+e}function to(t){var n=[];for(var r=1;r<arguments.length;r++){n[r-1]=arguments[r]}var a=t.className;var o=t.style;var i=null;var s=0;var l=n;while(!0){if(l.length===s){if(i===null||i.length===0)break;l=i.pop();s=i.pop()+1;continue}var c=l[s];if(c==e||c===!0||c===!1||c===""||c===0){}else if(h(c)){var u=Ga[c];if(u!=e){c=u.realName}if(a==e)a=c;else a+=" "+c}else if(g(c)){if(l.length>s+1){if(i==e)i=[];i.push(s);i.push(l)}l=c;s=0;continue}else{if(o==e)o=S();for(var d in c){if(k.call(c,d)){var p=c[d];if(m(p))p=p();o[d]=p}}}s++}t.className=a;t.style=o;return t}var no=/([A-Z])/g;var ro=/^ms-/;var ao=new Map([["cssFloat","float"]]);function oo(t){var n=ao.get(t);if(n===e){n=t.replace(no,"-$1").toLowerCase().replace(ro,"-ms-");ao.set(t,n)}return n}function io(t){var n="";for(var r in t){var a=t[r];if(a===e)continue;n+=oo(r)+":"+(a===""?'""':a)+";"}n=n.slice(0,-1);return n}function so(t,n,r){return co(e,t,n,r)}function lo(e){if(e&&e!=="b-"){e=e.replace(/[^a-z0-9_-]/gi,"_").replace(/^[0-9]/,"_$&");if(Ma[e]){var t=1;while(Ma[e+t])t++;e=e+t}Ma[e]=!0}else{e="b-"+Wa++}return e}function co(t,n,r,a){a=lo(a);Ga[a]={name:a,realName:a,parent:t,style:n,pseudo:r};if(h(n)&&r==e){Ga[a].realName=n}else po();return a}function uo(e,t,n){Ga["b-"+Wa++]={name:null,realName:null,parent:e,style:t,pseudo:n};po()}function po(){Ua=!0;F()}var ho=/\s*rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d+|\d*\.\d+)\s*\)\s*/;function fo(e,t,n,r,a,o){var i=document.createElement("canvas");i.width=n;i.height=r;var s=i.getContext("2d");s.drawImage(e,-a,-o);var l=s.getImageData(0,0,n,r);var c=l.data;var u=ho.exec(t);var d,p,h,f;if(u){d=parseInt(u[1],10);p=parseInt(u[2],10);h=parseInt(u[3],10);f=Math.round(parseFloat(u[4])*255)}else{d=parseInt(t.substr(1,2),16);p=parseInt(t.substr(3,2),16);h=parseInt(t.substr(5,2),16);f=parseInt(t.substr(7,2),16)||255}if(f===255){for(var m=0;m<c.length;m+=4){var v=c[m];if(v===c[m+1]&&v===c[m+2]&&(v===128||c[m+3]<255&&v>112)){c[m]=d;c[m+1]=p;c[m+2]=h}}}else{for(var m=0;m<c.length;m+=4){var v=c[m],g=c[m+3];if(v===c[m+1]&&v===c[m+2]&&(v===128||g<255&&v>112)){if(g===255){c[m]=d;c[m+1]=p;c[m+2]=h;c[m+3]=f}else{g=g*(1/255);c[m]=Math.round(d*g);c[m+1]=Math.round(p*g);c[m+2]=Math.round(h*g);c[m+3]=Math.round(f*g)}}}}s.putImageData(l,0,0);return i.toDataURL()}function mo(e){var t=[];for(var n=1;n<arguments.length;n++){t[n-1]=arguments[n]}return to({tag:"div",children:e},t)}function vo(e,t){Ea.set(e,t)}vo("float",Ia("cssFloat"));ge(Ra,$a,to);var go=-1;function yo(){if(go>=0)clearTimeout(go);go=-1;F();return!1}ft("hashchange",10,yo);var bo=0;var xo="";function _o(){return window.history}function So(e,t,n){var r=window.location;if(t){xo=e;Lo=n;bo++;_o().pushState({historyDeepness:bo,state:n},"",e);F()}else{r.href=e}}function ko(e,t,n){var r=window.location;if(t){xo=e;Lo=n;_o().replaceState({historyDeepness:bo,state:n},"",e);F()}else{r.replace(e)}}function Co(e){go=setTimeout(yo,50);_o().go(-e)}var wo;var Eo={};function Do(e){return encodeURIComponent(e).replace(/%20/g,"+")}function Io(e){return decodeURIComponent(e.replace(/\+/g," "))}function To(e){return String(e).split("/").map(Do).join("/")}var Ao=/(\/?):([a-zA-Z_$][a-zA-Z0-9_$]*)([?]?)|[*.()\[\]\\+|{}^$]/g;var No=/(\/?)(?::([a-zA-Z_$][a-zA-Z0-9_$?]*[?]?)|[*])/g;var Po={};function Fo(e){if(!(e in Po)){var t=[],n=e.replace(Ao,function(e,n,r,a){if(a===void 0){a=""}if(r){t.push(r);return(n?"(?:/([^/?#]+))":"([^/?#]+)")+a}else if(e==="*"){t.push("splat");return"(.*?)"}else{return"\\"+e}});Po[e]={matcher:new RegExp("^"+n+(e.endsWith("/")?"?":"\\/?")+"$","i"),paramNames:t}}return Po[e]}function Bo(t,n){var r=Fo(t);var a=Io(n).match(r.matcher);if(!a)return e;var o={};var i=r.paramNames;var s=i.length;for(var l=0;l<s;l++){o[i[l]]=a[l+1]}return o}function Oo(t,n){n=n||{};var r=0;return t.replace(No,function(a,o,i){if(o===void 0){o=""}i=i||"splat";if(i.slice(-1)!=="?"){if(n[i]==e)throw new Error('Missing "'+i+'" parameter for path "'+t+'"')}else{i=i.slice(0,-1);if(n[i]==e){return""}}var s;if(i==="splat"&&Array.isArray(n[i])){s=n[i][r++];if(s==e)throw new Error("Missing splat # "+r+' for path "'+t+'"')}else{s=n[i]}return o+To(s)})||"/"}function Ro(t,n,r){var a=n.length;var o;var i;var s;for(var l=0;l<a;l++){var c=n[l];if(c.isNotFound){o=c;continue}if(c.isDefault){i=c;continue}if(c.children){var u=Ro(t,c.children,r);if(u){u.push(c);return u}}if(c.url){s=Bo(c.url,t);if(s){r.p=s;return[c]}}}if(i){s=Bo(i.url||"",t);if(s){r.p=s;return[i]}}if(o){s=Bo(o.url||"",t);if(s){r.p=s;return[o]}}return e}var $o=[];var Go;var jo=S();var Lo=e;var Mo=[];var Ho=[];var zo=/.*(?:\:|\/).*/;function Vo(e){return!zo.test(e)}function Uo(e){return e[0]==="/"}var qo={render:function(e,t){t.children=t.data.activeRouteHandler()}};function Wo(t){while(t>=Ho.length){Ho.push(function(t,n){return function(r){if(r){var a=n;t[a]=r;while(a-- >0){t[a]=e}}}}(Mo,Ho.length))}return Ho[t]}ft("popstate",5,function(t){var n;var r=(n=t.state)===null||n===void 0?void 0:n.historyDeepness;if(r!=e){Lo=t.state.state;if(r!=bo)F();bo=r}return!1});var Jo=!0;function Ko(){if(go>=0)return e;if(_o().state==e&&bo!=e){_o().replaceState({historyDeepness:bo,state:Lo},"")}var t=window.location.hash;var n=t.substr(1);if(!Uo(n))n="/"+n;var r={p:{}};var a=Ro(n,wo,r)||[];if(Jo){Jo=!1;oi={inApp:!0,type:2,name:e,params:e,state:e};si=-1;xo=t}else{if(!oi&&a.length>0&&t!=xo){xo=t;di(ai(a[0].name,r.p))}}if(oi&&oi.type===2&&si<0){xo=t;oi.inApp=!0;if(oi.name==e&&a.length>0){oi.name=a[0].name;oi.params=r.p;ci();if(oi!=null)return e}else return e}if(oi==e){$o=a;while(Mo.length>$o.length)Mo.shift();while(Mo.length<$o.length)Mo.unshift(e);jo=r.p}var o=_;for(var i=0;i<$o.length;i++){(function(t,n,r,a){o=function(o){var i=n.data||{};W(i,o);i.activeRouteHandler=t;i.routeParams=r;var s=n.handler;var l;if(m(s)){l={key:e,ref:e,children:s(i)}}else{l={key:e,ref:e,data:i,component:s||qo}}if(n.keyBuilder)l.key=n.keyBuilder(r);else l.key=n.name;l.ref=Wo(a);return l}})(o,$o[i],jo,i)}return o()}function Yo(e,t){if(Uo(t))return t;if(e[e.length-1]==="/")return e+t;return e+"/"+t}function Xo(e,t){var n=t.length;for(var r=0;r<n;r++){var a=t[r],o=e,i=a.name;if(!i&&e==="/"){i="root";a.name=i;Eo[i]=a}else if(i){Eo[i]=a;o=Yo(o,i)}if(a.isDefault){o=e}else if(a.isNotFound){o=Yo(e,"*")}else if(a.url){o=Yo(e,a.url)}a.url=o;if(a.children)Xo(o,a.children)}}function Qo(e){if(!g(e)){e=[e]}Xo("/",e);wo=e;Mt(Ko)}function Zo(e,t){return{name:e.name,url:e.url,data:e.data,handler:e.handler,keyBuilder:e.keyBuilder,children:t}}function ei(e){return{name:e.name,data:e.data,handler:e.handler,keyBuilder:e.keyBuilder,isDefault:!0}}function ti(e,t){if(t){for(var n in t){if(t.hasOwnProperty(n)){if(jo[n]!==t[n])return!1}}}for(var r=0,a=$o.length;r<a;r++){if($o[r].name===e){return!0}}return!1}function ni(e,t){if(Vo(e)){var n=Eo[e];return"#"+Oo(n.url,t)}return e}function ri(e,t,n){return{inApp:Vo(e),type:0,name:e,params:t||{},state:n!==null&&n!==void 0?n:Lo}}function ai(e,t,n){return{inApp:Vo(e),type:1,name:e,params:t||{},state:n!==null&&n!==void 0?n:Lo}}var oi=null;var ii=null;var si=0;function li(e){switch(e.type){case 0:So(ni(e.name,e.params),e.inApp,e.state);break;case 1:ko(ni(e.name,e.params),e.inApp,e.state);break;case 2:Co(e.distance);break}}function ci(){while(!0){if(si>=0&&si<$o.length){var t=Mo[si];si++;if(!t)continue;var n=t.component;if(!n&&g(t.children)){t=t.children[0];if(!t)continue;n=t.component}if(!n)continue;var r=n.canDeactivate;if(!r)continue;var a=r.call(n,t.ctx,oi);if(a===!0)continue;Promise.resolve(a).then(function(e){if(e===!0){}else if(e===!1){oi=null;ii=null;if(xo)ko(xo,!0);return}else{ii=e}ci()}).catch(function(e){console.log(e)});return}else if(si==$o.length){if(ii){if(oi&&oi.type==0){So(ni(oi.name,oi.params),oi.inApp)}oi=ii;ii=null}si=-1;if(!oi.inApp||oi.type===2){var o=oi;if(!oi.inApp)oi=null;li(o);return}}else if(si===-1){var i={p:{}};if(oi.inApp){Go=Ro(ni(oi.name,oi.params).substring(1),wo,i)||[]}else{Go=[]}si=-2}else if(si===-2-Go.length){if(ii){si=$o.length;continue}if(oi.type!==2){var o=oi;oi=null;li(o)}else{F()}oi=null;return}else{if(ii){si=$o.length;continue}var s=Go[Go.length+1+si];si--;var l=s.handler,n=e;if(m(l)){var t=l({activeRouteHandler:function(){return e},routeParams:oi.params});if(!t||!v(t)||g(t))continue;n=t.component}else{n=l}if(!n)continue;var r=n.canActivate;if(!r)continue;var a=r.call(n,oi);if(a===!0)continue;Promise.resolve(a).then(function(e){if(e===!0){}else if(e===!1){oi=null;ii=null;return}else{ii=e}ci()}).catch(function(e){console.log(e)});return}}}var ui=1;function di(e){ui++;Qr();if(oi!=null){ii=e;return}Jo=!1;oi=e;si=0;ci()}function pi(e,t,n,r){return{children:e,component:{id:"anchor",postUpdateDom:function(e,a){hi(e,a,t,n,r)},postInitDom:function(e,a){hi(e,a,t,n,r)}}}}function hi(e,t,n,r,a){var o;if(n){o=n}else{var i=t.children&&t.children[0];o=i.attrs&&i.attrs.id}if(!ti(o,r)){e.l=0;return}if(e.l===ui){return}var s=Le(t);a&&a(s)||s.scrollIntoView();e.l=ui}var fi=["none","link","copy","move"];var mi=["none","link","copy","copyLink","move","linkMove","copyMove","all"];var vi=0;var gi=[];var yi=null;var bi=null;var xi=function(t){this.id=++vi;this.pointerid=t;this.enabledOperations=7;this.operation=0;this.started=!1;this.beforeDrag=!0;this.local=!0;this.system=!1;this.ended=!1;this.cursor=null;this.overNode=e;this.targetCtx=null;this.dragView=e;this.startX=0;this.startY=0;this.distanceToStart=10;this.x=0;this.y=0;this.deltaX=0;this.deltaY=0;this.totalX=0;this.totalY=0;this.lastX=0;this.lastY=0;this.shift=!1;this.ctrl=!1;this.alt=!1;this.meta=!1;this.data=S();if(t>=0)Ii[t]=this;gi.push(this)};var _i="b-dragging";function Si(){if(bi==e){var t=document.documentElement;t.classList.add(_i);bi=Ot(Ei)}}var ki={render:function(e,t){var n=e.data;t.tag="div";t.style={position:"absolute",
left:n.x,top:n.y};t.children=n.dragView(n)}};function Ci(){var e="no-drop";if(gi.length!==0){var t=gi[0];if(t.beforeDrag)return"";if(t.cursor!=null)return t.cursor;if(t.system)return"";switch(t.operation){case 3:e="move";break;case 1:e="alias";break;case 2:e="copy";break}}return e}var wi={render:function(e,t){var n=[];for(var r=0;r<gi.length;r++){var a=gi[r];if(a.beforeDrag)continue;if(a.dragView!=null&&(a.x!=0||a.y!=0)){n.push({key:""+a.id,data:a,component:ki})}}t.tag="div";t.style={position:"fixed",zIndex:1e9,pointerEvents:"none",userSelect:"none",left:0,top:0,right:0,bottom:0};var o=document.documentElement.style;var i=Ci();if(i){if(o.cursor!==i)o.setProperty("cursor",i,"important")}else{o.setProperty("cursor","")}t.children=n},onDrag:function(e){F(e);return!1}};function Ei(){return{component:wi}}var Di=xi.prototype;Di.setOperation=function(e){this.operation=e};Di.setDragNodeView=function(e){this.dragView=e};Di.addData=function(e,t){this.data[e]=t;return!0};Di.listData=function(){return Object.keys(this.data)};Di.hasData=function(t){return this.data[t]!==e};Di.getData=function(e){return this.data[e]};Di.setEnabledOps=function(e){this.enabledOperations=e};Di.cancelDnd=function(){Ai(e,this);this.destroy()};Di.destroy=function(){this.ended=!0;if(this.started)Kt("onDragEnd",this);delete Ii[this.pointerid];for(var e=0;e<gi.length;e++){if(gi[e]===this){gi.splice(e,1);break}}if(yi===this){yi=null}if(gi.length===0&&bi!=null){Rt(bi);bi=null;var t=document.documentElement;t.classList.remove(_i);t.style.setProperty("cursor","")}};var Ii=S();function Ti(t,n,r){var a=Ii[t.id];if(a){a.cancelDnd()}if(t.button<=1){a=new xi(t.id);a.startX=t.x;a.startY=t.y;a.lastX=t.x;a.lastY=t.y;a.overNode=r;Ni(a,t);var o=Ut(r,"onDragStart",a);if(o){var i=Le(o.me);if(i==e){a.destroy();return!1}a.started=!0;var s=i.getBoundingClientRect;if(s){var l=s.call(i);a.deltaX=l.left-t.x;a.deltaY=l.top-t.y}if(a.distanceToStart<=0){a.beforeDrag=!1;Ai(r,a)}Si()}else{a.destroy()}}return!1}function Ai(t,n){n.overNode=t;n.targetCtx=Ut(t,"onDragOver",n);if(n.targetCtx==e){n.operation=0}Kt("onDrag",n)}function Ni(e,t){e.shift=t.shift;e.ctrl=t.ctrl;e.alt=t.alt;e.meta=t.meta;e.x=t.x;e.y=t.y}function Pi(e,t,n){var r=Ii[e.id];if(!r)return!1;r.totalX+=Math.abs(e.x-r.lastX);r.totalY+=Math.abs(e.y-r.lastY);if(r.beforeDrag){if(r.totalX+r.totalY<=r.distanceToStart){r.lastX=e.x;r.lastY=e.y;return!1}r.beforeDrag=!1}Ni(r,e);Ai(n,r);r.lastX=e.x;r.lastY=e.y;return!0}function Fi(e,t,n){var r=Ii[e.id];if(!r)return!1;if(!r.beforeDrag){Ni(r,e);Ai(n,r);var a=r.targetCtx;if(a&&Ut(a.me,"onDrop",r)){r.destroy()}else{r.cancelDnd()}hr(e.x,e.y);return!0}r.destroy();return!1}function Bi(e,t,n){var r=Ii[e.id];if(!r)return!1;if(r.system)return!1;if(!r.beforeDrag){r.cancelDnd()}else{r.destroy()}return!1}function Oi(e,t){e.shift=t.shiftKey;e.ctrl=t.ctrlKey;e.alt=t.altKey;e.meta=t.metaKey;e.x=t.clientX;e.y=t.clientY;e.totalX+=Math.abs(e.x-e.lastX);e.totalY+=Math.abs(e.y-e.lastY);var n=ca(e.x,e.y);Ai(n,e);e.lastX=e.x;e.lastY=e.y}function Ri(t,n,r){var a=yi;if(a!=null){a.destroy()}var o=Object.keys(Ii);if(o.length>0){a=Ii[o[0]];a.system=!0;yi=a}else{var i=t.clientX,s=t.clientY;a=new xi(-1);a.system=!0;yi=a;a.x=i;a.y=s;a.lastX=i;a.lastY=s;a.startX=i;a.startY=s;var l=Ut(r,"onDragStart",a);if(l){var c=Le(l.me);if(c==e){a.destroy();return!1}a.started=!0;var d=c.getBoundingClientRect;if(d){var p=d.call(c);a.deltaX=p.left-i;a.deltaY=p.top-s}Si()}else{a.destroy();return!1}}a.beforeDrag=!1;var f=mi[a.enabledOperations];var m=t.dataTransfer;m.effectAllowed=f;if(m.setDragImage){var v=document.createElement("div");v.style.pointerEvents="none";m.setDragImage(v,0,0)}else{var g=t.target.style,y=g.opacity,b=g.width,x=g.height,_=g.padding;g.opacity="0";g.width="0";g.height="0";g.padding="0";setTimeout(function(){g.opacity=y;g.width=b;g.height=x;g.padding=_},0)}var S=a.data;var k=Object.keys(S);for(var C=0;C<k.length;C++){try{var w=k[C],E=S[w];if(!h(E))E=JSON.stringify(E);t.dataTransfer.setData(w,E)}catch(e){if(u)if(window.console)console.log("Cannot set dnd data to "+k[C])}}Oi(a,t);return!1}function $i(e,t){e.dataTransfer.dropEffect=fi[t]}function Gi(t,n,r){var a=yi;if(a==e){a=new xi(-1);a.system=!0;yi=a;a.x=t.clientX;a.y=t.clientY;a.startX=a.x;a.startY=a.y;a.local=!1;var o=t.dataTransfer,i=0,s=e;try{s=o.effectAllowed}catch(e){}for(;i<7;i++){if(mi[i]===s)break}a.enabledOperations=i;var l=o.types;if(l){for(var c=0;c<l.length;c++){var u=l[c];if(u==="text/plain")u="Text";else if(u==="text/uri-list")u="Url";a.data[u]=null}}else{if(o.getData("Text")!==e)a.data["Text"]=null}}Oi(a,t);$i(t,a.operation);if(a.operation!=0){tn(t);return!0}return!1}function ji(e,t,n){var r=e.clientX;var a=e.clientY;var o=Sa();if(yi!=null&&(r===0&&a===0||r<0||a<0||r>=o.width||a>=o.height)){yi.x=0;yi.y=0;yi.operation=0;Kt("onDrag",yi)}return!0}function Li(e,t,n){if(yi!=null){yi.destroy()}return!1}function Mi(t,n,r){var a=yi;if(a==e)return!1;a.x=t.clientX;a.y=t.clientY;if(!a.local){var o=Object.keys(a.data),i=t.dataTransfer;for(var s=0;s<o.length;s++){var l=o[s],c;if(l==="Files"){c=[].slice.call(i.files,0)}else{c=i.getData(l)}a.data[l]=c}}Oi(a,t);var u=a.targetCtx;if(u&&Ut(u.me,"onDrop",a)){$i(t,a.operation);a.destroy();tn(t)}else{a.cancelDnd()}return!0}function Hi(e,t,n){tn(e);return!0}function zi(e,t,n){if(gi.length===0)return!1;tn(e);return!0}ft("!PointerDown",4,Ti);ft("!PointerMove",4,Pi);ft(Hr,4,Pi);ft("!PointerUp",4,Fi);ft("!PointerCancel",4,Bi);ft("selectstart",4,zi);ft("dragstart",5,Ri);ft("dragover",5,Gi);ft("dragend",5,Li);ft("drag",5,ji);ft("drop",5,Mi);ft("dragenter",5,Hi);ft("dragleave",5,Hi);var Vi=function(){return gi};uo("html."+_i+" *",{cursor:"inherit !important",userSelect:"none !important"});if(!window.b)window.b={deref:Re,getRoots:$t,setInvalidate:Pt,invalidateStyles:po,ignoreShouldChange:Nt,setAfterFrame:P,setBeforeFrame:A,getDnds:Vi,setBeforeInit:Ht,setKeysInClassNames:we};var Ui;var qi;var Wi;var Ji;var Ki;var Yi;var Xi;function Qi(e){if(pa()===1){Ui=e.id;qi=e.x;Wi=e.y;Ji=qi;Ki=Wi;Yi=0;Xi=0}else{Ui=null}return!1}function Zi(e){if(e.id===Ui){Yi+=Math.abs(e.x-Ji);Xi+=Math.abs(e.y-Ki);Ji=e.x;Ki=e.y}return!1}function es(e,t,n){if(e.id===Ui){Ui=null;var r=Math.abs(e.x-qi),a=Math.abs(e.y-Wi);if(r<75){return!1}if(a/r>=.3){return!1}if(Yi>r*1.5){return!1}if(Xi>r*.7){return!1}var o="onSwipe"+(e.x>qi?"Right":"Left");hr(e.x,e.y);Ut(n,o,e)}return!1}ft("!PointerDown",70,Qi);ft("!PointerMove",70,Zi);ft("!PointerUp",70,es);function ts(e,t,n){var r=e.children?e.children instanceof Array?e.children:[e.children]:[];if(t){if(n){r.unshift(t)}else{r.push(t)}}return e.children=r}function ns(){var t={};return function(n,r,a){if(r!==e||a){rs(t,n,r)}return rs(t,n)}}function rs(t,n,r){if(typeof n==="string"){var a=t;if(r!==e){a[n]=r}return a[n]}else{var a=t;if(r!==e){a[n]=r}return a[n]}}function as(e){if(!e){return e}e=e.charAt(0).toLowerCase()+e.slice(1);return e.replace(/[A-Z]/g,"-$&").toLowerCase()}var os=Bn({id:"bobrilstrap-element",render:function(e,t){t.tag=e.data.tag||"div";t.children=e.data.children;t.attrs=e.data.attrs||{}},postRender:function(e,t){var n=e.data.aria||{};var r=e.data.data||{};if(e.data.id){t.attrs.id=e.data.id}if(e.data.key){Fn(t,e.data.key)}if(e.data.title){t.attrs["title"]=e.data.title}Object.keys(n).forEach(function(e){t.attrs["aria-"+as(e)]=n[e]});Object.keys(r).forEach(function(e){t.attrs["data-"+as(e)]=r[e]});to(t,e.data.style)},onClick:function(e,t){if(!e.data.onClick){return!1}return!!e.data.onClick(t)},onChange:function(e,t){if(e.data.onChange){e.data.onChange(t)}},onKeyPress:function(e,t){if(e.data.onKeyPress){return e.data.onKeyPress(t)}return!1}});var is={};(function(e){e[e["Blank"]=0]="Blank";e[e["Self"]=1]="Self";e[e["Parent"]=2]="Parent";e[e["Top"]=3]="Top"})(is);var ss=Rn(os,{id:"bobrilstrap-a",render:function(t,n){n.tag="a";if(t.data.href){n.attrs.href=t.data.href}if(t.data.target!==e){n.attrs["target"]="_"+is[t.data.target].toLowerCase()}if(t.data.name){n.attrs["name"]=t.data.name}}});var ls={caption:so("caption"),lead:so("lead"),textLeft:so("text-left"),textCenter:so("text-center"),textRight:so("text-right"),textJustify:so("text-justify"),textNowrap:so("text-nowrap"),textLowercase:so("text-lowercase"),textUppercase:so("text-uppercase"),textCapitalize:so("text-capitalize"),initialism:so("initialism"),blockquoteReverse:so("blockquote-reverse"),listUnstyled:so("list-unstyled"),listInline:so("list-inline"),dlHorizontal:so("dl-horizontal"),small:so("small")};Rn(os,{id:"bobrilstrap-abbreviation",render:function(e,t){t.tag="abbr";to(t,!!e.data.initialism&&ls.initialism)}});Rn(os,{id:"bobrilstrap-address",render:function(e,t){t.tag="address"}});var cs=Bn({id:"bobrilstrap-affix",render:function(e,t){t.children=e.data.children},postInitDom:function(e){us(e)},postUpdateDom:function(e){us(e)}});function us(e){var t=Le(e.me);if(!t||e.data.postponeInit||e.affixedElement===t){return}e.affixedElement=t;$(t).affix({offset:{top:ds(e.data.top),bottom:ds(e.data.bottom)}})}function ds(e){return typeof e==="function"?e():e}var ps={};(function(e){e[e["Xs"]=0]="Xs";e[e["Sm"]=1]="Sm";e[e["Md"]=2]="Md";e[e["Lg"]=3]="Lg"})(ps);var hs={text:{mutated:so("text-mutated"),primary:so("text-primary"),success:so("text-success"),info:so("text-info"),warning:so("text-warning"),danger:so("text-danger")},background:{primary:so("bg-primary"),success:so("bg-success"),info:so("bg-info"),warning:so("bg-warning"),danger:so("bg-danger")},float:{pullLeft:so("pull-left"),pullRight:so("pull-right")},clearfix:so("clearfix"),close:so("close"),caret:so("caret"),centerBlock:so("center-block"),hidden:so("hidden"),invisible:so("invisible"),show:so("show"),srOnly:so("sr-only"),srOnlyFocusable:so("sr-only-focusable"),textHide:so("text-hide"),thumbnail:so("thumbnail")};var fs={label:so("label"),labelDefault:so("label-default"),labelPrimary:so("label-primary"),labelSuccess:so("label-success"),labelInfo:so("label-info"),labelWarning:so("label-warning"),labelDanger:so("label-danger")};var ms=ns();ms(0,fs.labelDefault);ms(1,fs.labelPrimary);ms(2,fs.labelSuccess);ms(3,fs.labelInfo);ms(4,fs.labelWarning);ms(5,fs.labelDanger);var vs=Rn(os,{id:"bobrilstrap-span",render:function(t,n){n.tag="span";to(n,t.data.labelContext!==e&&fs.label);to(n,t.data.labelContext!==e&&ms(t.data.labelContext))}});var gs={btnGroup:so("btn-group"),lg:so("btn-group-lg"),sm:so("btn-group-sm"),xs:so("btn-group-xs"),justified:so("btn-group-justified"),vertical:so("btn-group-vertical")};var ys=ns();ys(0,gs.lg);ys(1,!1);ys(2,gs.sm);ys(3,gs.xs);var bs=Rn(os,{id:"bobrilstrap-button-group",render:function(t,n){to(n,t.data.vertical?gs.vertical:gs.btnGroup);to(n,t.data.size!==e&&ys(t.data.size));to(n,!!t.data.justified&&gs.justified);n.attrs["role"]="group"}});var xs={inputGroupBtn:so("input-group-btn")};var _s=Rn(os,{id:"bobrilstrap-input-group-button",render:function(e,t){to(t,xs.inputGroupBtn)}});var Ss={dropdown:so("dropdown"),dropdownToggle:so("dropdown-toggle"),dropup:so("dropup")};Rn(os,{id:"bobrilstrap-dropdown",render:function(t,n){Cs(t,n);if(t.data.buttonGroup||t.data.inputGroupBtn){n.tag=e;var r=t.data.buttonGroup?bs(typeof t.data.buttonGroup==="boolean"?{}:t.data.buttonGroup,n.children):_s(typeof t.data.inputGroupBtn==="boolean"?{}:t.data.inputGroupBtn,n.children);to(r,!!t.data.up&&Ss.dropup);n.children=r}else{if(t.data.button.variant===As.DropdownNav){n.tag="li"}to(n,t.data.up?Ss.dropup:Ss.dropdown)}}});function ks(t){var n=W({},t);n.variant=t.variant!==e?t.variant:As.Dropdown;n.aria=W({},n.aria);if(n.aria!==e){n.aria.haspopup=!0}return n}function Cs(e,t){var n,r;if(e.data.splitted){r=Rs(ks({option:e.data.button.option,size:e.data.button.size,srOnly:e.data.splittedSrOnlyText}));n=Rs(e.data.button);ts(t,r,!0)}else{n=Rs(ks(e.data.button))}ts(t,n,!0)}var ws={navbar:so("navbar"),navbarDefault:so("navbar-default"),navbarCollapse:so("navbar-collapse"),navbarHeader:so("navbar-header"),navbarToggle:so("navbar-toggle"),navbarBrand:so("navbar-brand"),navbarNav:so("navbar-nav"),nav:so("nav"),navbarForm:so("navbar-form"),navbarLeft:so("navbar-left"),navbarRight:so("navbar-right"),navbarBtn:so("navbar-btn"),navbarText:so("navbar-text"),navbarLink:so("navbar-link"),navbarFixedTop:so("navbar-fixed-top"),navbarFixedBottom:so("navbar-fixed-bottom"),navbarStaticTop:so("navbar-static-top"),navbarInverse:so("navbar-inverse"),navTabs:so("nav-tabs"),navStacked:so("nav-stacked"),navJustified:so("nav-justified"),navPills:so("nav-pills"),dropdown:so("dropdown"),disabled:so("disabled"),collapse:so("collapse"),iconBar:so("icon-bar")};var Es=Rn(os,{id:"bobrilstrap-navbar",render:function(e,t){t.tag=e.data.header?"header":"nav";to(t,ws.navbar);to(t,e.data.inverse?ws.navbarInverse:ws.navbarDefault);to(t,e.data.static===0&&ws.navbarStaticTop);to(t,e.data.fixed===0&&ws.navbarFixedTop);to(t,e.data.fixed===1&&ws.navbarFixedBottom);to(t,e.data.alignment===1&&ws.navbarRight);to(t,e.data.alignment===0&&ws.navbarLeft)}});var Ds=Rn(os,{id:"bobrilstrap-ul",render:function(e,t){t.tag="ul";to(t,!!e.data.unstyled&&ls.listUnstyled);to(t,!!e.data.inline&&ls.listInline)}});var Is={listGroup:so("list-group"),listGroupItem:so("list-group-item"),listGroupItemHeading:so("list-group-item-heading"),listGroupItemText:so("list-group-item-text"),active:so("active"),disabled:so("disabled"),listGroupItemSuccess:so("list-group-item-success"),listGroupItemInfo:so("list-group-item-info"),listGroupItemWarning:so("list-group-item-warning"),listGroupItemDanger:so("list-group-item-danger")};var Ts=ns();Ts(0,Is.listGroupItemSuccess);Ts(1,Is.listGroupItemInfo);Ts(2,Is.listGroupItemWarning);Ts(3,Is.listGroupItemDanger);Rn(Ds,{id:"bobrilstrap-listgroup",render:function(e,t){if(e.data.linkified){t.tag="div"}to(t,Is.listGroup)}});var As={};var Ns={};var Ps={};(function(e){e[e["Dropdown"]=0]="Dropdown";e[e["DropdownNav"]=1]="DropdownNav";e[e["Navbar"]=2]="Navbar";e[e["NavbarToggle"]=3]="NavbarToggle";e[e["ListGroup"]=4]="ListGroup"})(As);(function(e){e[e["Button"]=0]="Button";e[e["Submit"]=1]="Submit"})(Ns);(function(e){e[e["Default"]=0]="Default";e[e["Success"]=1]="Success";e[e["Warning"]=2]="Warning";e[e["Danger"]=3]="Danger";e[e["Info"]=4]="Info";e[e["Link"]=5]="Link";e[e["Primary"]=6]="Primary";e[e["Close"]=7]="Close"})(Ps);var Fs={active:so("active"),disabled:so("disabled"),btn:so("btn"),btnBlock:so("btn-block")};var Bs=Gs();var Os=$s();var Rs=Rn(os,{id:"bobrilstrap-button",render:function(t,n){n.tag=js(t);to(n,t.data.option!==7&&t.data.variant!==4&&(t.data.variant!==2&&t.data.variant!==1&&t.data.variant!==3||t.data.tag!==2)&&Fs.btn);to(n,!!t.data.active&&Fs.active);to(n,!!t.data.block&&Fs.btnBlock);to(n,t.data.size!==e&&Bs(t.data.size));to(n,t.data.variant!==2&&t.data.variant!==1&&t.data.variant!==4&&Os(t.data.option||0));to(n,t.data.variant===4&&Is.listGroupItem);var r=t.data.tag===2?"role":"type";n.attrs[r]=(t.data.type&&Ns[t.data.type]||n.attrs[r]||Ns[0]).toString().toLowerCase();if(t.data.label){if(t.data.tag===1){n.attrs["value"]=t.data.label}else{ts(n,t.data.label)}}if(t.data.tag===2){n.attrs["href"]=t.data.href||"javascript:void(0)"}if(t.data.disabled){if(t.data.tag===2){to(n,Fs.disabled)}else{n.attrs["disabled"]="disabled"}}if(t.data.variant===0||t.data.variant===1){t.data=W({},t.data);t.data.data=W({},t.data.data);t.data.aria=W({},t.data.aria);t.data.aria.haspopup=!0;t.data.data.toggle="dropdown";to(n,Ss.dropdownToggle);if(t.data.tag!==1){ts(n," ")}ts(n,vs({style:hs.caret}))}else if(t.data.variant===3){t.data=W({},t.data);t.data.data=W({},t.data.data);to(n,ws.navbarToggle)}ts(n,t.data.srOnly&&vs({style:hs.srOnly},t.data.srOnly))}});function $s(){var e=ns();Object.keys(Ps).forEach(function(t){var n=parseInt(t,10);if(!isNaN(n)){e(n,n===7?hs.close:so("btn-"+Ps[n].toLowerCase()))}});return e}function Gs(){var t=ns();Object.keys(ps).forEach(function(n){var r=parseInt(n,10);if(!isNaN(r)){t(r,r===2?e:so("btn-"+ps[r].toLowerCase()))}});return t}function js(t){if(t.data.tag===e){t.data=W({tag:t.data.variant===2||t.data.variant===1?2:0},t.data)}switch(t.data.tag){case 2:return"a";case 1:return"input";case 0:return"button";default:return"button"}}var Ls={alert:so("alert"),alertSuccess:so("alert-success"),alertInfo:so("alert-info"),alertDanger:so("alert-danger"),alertWarning:so("alert-warning"),alertDismissable:so("alert-dismissible"),alertLink:so("alert-link"),fade:so("fade"),in:so("in")};var Ms=ns();Ms(0,Ls.alertSuccess);Ms(3,Ls.alertInfo);Ms(2,Ls.alertDanger);Ms(1,Ls.alertWarning);Rn(os,{id:"bobrilstrap-alert",init:function(e){e.visible=!0},render:function(t,n){to(n,Ls.alert);to(n,Ms(t.data.context));n.attrs["role"]="alert";var r=t.data.animation===e||t.data.animation;var a=t.data.nativeDismiss===e||t.data.nativeDismiss;if(t.data.dismissButton){to(n,Ls.alertDismissable,!!r&&Ls.fade,!!r&&Ls.in);var o=W({},t.data.dismissButton,{alert:!0,data:a?W({},t.data.dismissButton.data,{dismiss:"alert"}):t.data.dismissButton.data,option:7});if(!o.children){ts(o,vs({aria:{hidden:!0}},"×"),!0)}var i=Rs(o);ts(n,i,!0)}},postInitDom:function(e,t,n){$(n).on("closed.bs.Alert",function(){e.visible=!1;if(e.data.onClosed){e.data.onClosed()}});if(e.data.timeout){e.timeoutId=setTimeout(function(){return Hs(e,n)},e.data.timeout)}},destroy:function(e){if(e.timeoutId){clearTimeout(e.timeoutId)}}});function Hs(e,t){if(e.timeoutId){clearTimeout(e.timeoutId);e.timeoutId=0}if(e.visible){$(t).alert("close")}}var zs=so("badge");Rn(vs,{id:"bobrilstrap-badge",render:function(e,t){to(t,zs)}});Rn(os,{id:"bobrilstrap-blockquote",render:function(e,t){t.tag="blockquote";to(t,!!e.data.reverse&&ls.blockquoteReverse)}});var Vs={};(function(e){e[e["num"]=0]="num";e[e["a"]=1]="a";e[e["A"]=2]="A";e[e["i"]=3]="i";e[e["I"]=4]="I"})(Vs);var Us=Rn(os,{id:"bobrilstrap-ol",render:function(t,n){n.tag="ol";if(t.data.type!==e){n.attrs["type"]=t.data.type===0?"1":Vs[t.data.type]}}});var qs={breadcrumb:so("breadcrumb"),active:so("active")};Rn(Us,{id:"bobrilstrap-breadcrumb",render:function(e,t){to(t,qs.breadcrumb)}});var Ws={active:so("active"),disabled:so("disabled")};var Js=Rn(os,{id:"bobrilstrap-li",render:function(e,t){t.tag="li";to(t,!!e.data.active&&Ws.active);to(t,!!e.data.disabled&&Ws.disabled)}});Rn(Js,{id:"bobrilstrap-breadcrumb-item",render:function(e,t){to(t,!!e.data.active&&qs.active)}});var Ks={btnGroup:so("btn-toolbar")};Rn(os,{id:"bobrilstrap-button-toolbar",render:function(e,t){to(t,Ks.btnGroup);t.attrs["role"]="toolbar"}});var Ys={};(function(e){e[e["Asterisk"]=0]="Asterisk";e[e["Plus"]=1]="Plus";e[e["Euro"]=2]="Euro";e[e["Eur"]=3]="Eur";e[e["Minus"]=4]="Minus";e[e["Cloud"]=5]="Cloud";e[e["Envelope"]=6]="Envelope";e[e["Pencil"]=7]="Pencil";e[e["Glass"]=8]="Glass";e[e["Music"]=9]="Music";e[e["Search"]=10]="Search";e[e["Heart"]=11]="Heart";e[e["Star"]=12]="Star";e[e["StarEmpty"]=13]="StarEmpty";e[e["User"]=14]="User";e[e["Film"]=15]="Film";e[e["ThLarge"]=16]="ThLarge";e[e["Th"]=17]="Th";e[e["ThList"]=18]="ThList";e[e["Ok"]=19]="Ok";e[e["Remove"]=20]="Remove";e[e["ZoomIn"]=21]="ZoomIn";e[e["ZoomOut"]=22]="ZoomOut";e[e["Off"]=23]="Off";e[e["Signal"]=24]="Signal";e[e["Cog"]=25]="Cog";e[e["Trash"]=26]="Trash";e[e["Home"]=27]="Home";e[e["File"]=28]="File";e[e["Time"]=29]="Time";e[e["Road"]=30]="Road";e[e["DownloadAlt"]=31]="DownloadAlt";e[e["Download"]=32]="Download";e[e["Upload"]=33]="Upload";e[e["Inbox"]=34]="Inbox";e[e["PlayCircle"]=35]="PlayCircle";e[e["Repeat"]=36]="Repeat";e[e["Refresh"]=37]="Refresh";e[e["ListAlt"]=38]="ListAlt";e[e["Lock"]=39]="Lock";e[e["Flag"]=40]="Flag";e[e["Headphones"]=41]="Headphones";e[e["VolumeOff"]=42]="VolumeOff";e[e["VolumeDown"]=43]="VolumeDown";e[e["VolumeUp"]=44]="VolumeUp";e[e["Qrcode"]=45]="Qrcode";e[e["Barcode"]=46]="Barcode";e[e["Tag"]=47]="Tag";e[e["Tags"]=48]="Tags";e[e["Book"]=49]="Book";e[e["Bookmark"]=50]="Bookmark";e[e["Print"]=51]="Print";e[e["Camera"]=52]="Camera";e[e["Font"]=53]="Font";e[e["Bold"]=54]="Bold";e[e["Italic"]=55]="Italic";e[e["TextHeight"]=56]="TextHeight";e[e["TextWidth"]=57]="TextWidth";e[e["AlignLeft"]=58]="AlignLeft";e[e["AlignCenter"]=59]="AlignCenter";e[e["AlignRight"]=60]="AlignRight";e[e["AlignJustify"]=61]="AlignJustify";e[e["List"]=62]="List";e[e["IndentLeft"]=63]="IndentLeft";e[e["IndentRight"]=64]="IndentRight";e[e["FacetimeVideo"]=65]="FacetimeVideo";e[e["Picture"]=66]="Picture";e[e["MapMarker"]=67]="MapMarker";e[e["Adjust"]=68]="Adjust";e[e["Tint"]=69]="Tint";e[e["Edit"]=70]="Edit";e[e["Share"]=71]="Share";e[e["Check"]=72]="Check";e[e["Move"]=73]="Move";e[e["StepBackward"]=74]="StepBackward";e[e["FastBackward"]=75]="FastBackward";e[e["Backward"]=76]="Backward";e[e["Play"]=77]="Play";e[e["Pause"]=78]="Pause";e[e["Stop"]=79]="Stop";e[e["Forward"]=80]="Forward";e[e["FastForward"]=81]="FastForward";e[e["StepForward"]=82]="StepForward";e[e["Eject"]=83]="Eject";e[e["ChevronLeft"]=84]="ChevronLeft";e[e["ChevronRight"]=85]="ChevronRight";e[e["PlusSign"]=86]="PlusSign";e[e["MinusSign"]=87]="MinusSign";e[e["RemoveSign"]=88]="RemoveSign";e[e["OkSign"]=89]="OkSign";e[e["QuestionSign"]=90]="QuestionSign";e[e["InfoSign"]=91]="InfoSign";e[e["Screenshot"]=92]="Screenshot";e[e["RemoveCircle"]=93]="RemoveCircle";e[e["OkCircle"]=94]="OkCircle";e[e["BanCircle"]=95]="BanCircle";e[e["ArrowLeft"]=96]="ArrowLeft";e[e["ArrowRight"]=97]="ArrowRight";e[e["ArrowUp"]=98]="ArrowUp";e[e["ArrowDown"]=99]="ArrowDown";e[e["ShareAlt"]=100]="ShareAlt";e[e["ResizeFull"]=101]="ResizeFull";e[e["ResizeSmall"]=102]="ResizeSmall";e[e["ExclamationSign"]=103]="ExclamationSign";e[e["Gift"]=104]="Gift";e[e["Leaf"]=105]="Leaf";e[e["Fire"]=106]="Fire";e[e["EyeOpen"]=107]="EyeOpen";e[e["EyeClose"]=108]="EyeClose";e[e["WarningSign"]=109]="WarningSign";e[e["Plane"]=110]="Plane";e[e["Calendar"]=111]="Calendar";e[e["Random"]=112]="Random";e[e["Comment"]=113]="Comment";e[e["Magnet"]=114]="Magnet";e[e["ChevronUp"]=115]="ChevronUp";e[e["ChevronDown"]=116]="ChevronDown";e[e["Retweet"]=117]="Retweet";e[e["Shoppingcart"]=118]="Shoppingcart";e[e["FolderClose"]=119]="FolderClose";e[e["FolderOpen"]=120]="FolderOpen";e[e["ResizeVertical"]=121]="ResizeVertical";e[e["ResizeHorizontal"]=122]="ResizeHorizontal";e[e["Hdd"]=123]="Hdd";e[e["Bullhorn"]=124]="Bullhorn";e[e["Bell"]=125]="Bell";e[e["Certificate"]=126]="Certificate";e[e["ThumbsUp"]=127]="ThumbsUp";e[e["ThumbsDown"]=128]="ThumbsDown";e[e["HandRight"]=129]="HandRight";e[e["HandUeft"]=130]="HandUeft";e[e["HandUp"]=131]="HandUp";e[e["HandDown"]=132]="HandDown";e[e["CircleArrowRight"]=133]="CircleArrowRight";e[e["CircleArrowLEft"]=134]="CircleArrowLEft";e[e["CircleArrowUp"]=135]="CircleArrowUp";e[e["CircleArrowDown"]=136]="CircleArrowDown";e[e["Globe"]=137]="Globe";e[e["Wrench"]=138]="Wrench";e[e["Tasks"]=139]="Tasks";e[e["Filter"]=140]="Filter";e[e["Briefcase"]=141]="Briefcase";e[e["Fullscreen"]=142]="Fullscreen";e[e["Dashboard"]=143]="Dashboard";e[e["Paperclip"]=144]="Paperclip";e[e["HeartEmpty"]=145]="HeartEmpty";e[e["Link"]=146]="Link";e[e["Phone"]=147]="Phone";e[e["Pushpin"]=148]="Pushpin";e[e["Usd"]=149]="Usd";e[e["Gbp"]=150]="Gbp";e[e["Sort"]=151]="Sort";e[e["SortByAlphabet"]=152]="SortByAlphabet";e[e["SortByAlphabetAlt"]=153]="SortByAlphabetAlt";e[e["SortByOrder"]=154]="SortByOrder";e[e["SortByOrderAlt"]=155]="SortByOrderAlt";e[e["SortByAttributes"]=156]="SortByAttributes";e[e["SortByAttributesAlt"]=157]="SortByAttributesAlt";e[e["Unchecked"]=158]="Unchecked";e[e["Expand"]=159]="Expand";e[e["CollapseDown"]=160]="CollapseDown";e[e["CollapseUp"]=161]="CollapseUp";e[e["LogIn"]=162]="LogIn";e[e["Flash"]=163]="Flash";e[e["LogOut"]=164]="LogOut";e[e["NewWindow"]=165]="NewWindow";e[e["Record"]=166]="Record";e[e["Save"]=167]="Save";e[e["Open"]=168]="Open";e[e["Saved"]=169]="Saved";e[e["Import"]=170]="Import";e[e["Export"]=171]="Export";e[e["Send"]=172]="Send";e[e["FloppyDisk"]=173]="FloppyDisk";e[e["FloppySaved"]=174]="FloppySaved";e[e["FloppyRemove"]=175]="FloppyRemove";e[e["FloppySave"]=176]="FloppySave";e[e["FloppyOpen"]=177]="FloppyOpen";e[e["CreditCard"]=178]="CreditCard";e[e["Transfer"]=179]="Transfer";e[e["Cutlery"]=180]="Cutlery";e[e["Header"]=181]="Header";e[e["Compressed"]=182]="Compressed";e[e["Earphone"]=183]="Earphone";e[e["PhoneAlt"]=184]="PhoneAlt";e[e["Tower"]=185]="Tower";e[e["Stats"]=186]="Stats";e[e["SdVideo"]=187]="SdVideo";e[e["HdVideo"]=188]="HdVideo";e[e["Subtitles"]=189]="Subtitles";e[e["SoundStereo"]=190]="SoundStereo";e[e["SoundDolby"]=191]="SoundDolby";e[e["Sound51"]=192]="Sound51";e[e["Sound61"]=193]="Sound61";e[e["Sound71"]=194]="Sound71";e[e["CopyrightMark"]=195]="CopyrightMark";e[e["RegistrationMark"]=196]="RegistrationMark";e[e["CloudDownload"]=197]="CloudDownload";e[e["CloudUpload"]=198]="CloudUpload";e[e["TreeConifer"]=199]="TreeConifer";e[e["TreeDeciduous"]=200]="TreeDeciduous";e[e["Cd"]=201]="Cd";e[e["SaveFile"]=202]="SaveFile";e[e["OpenFile"]=203]="OpenFile";e[e["LevelUp"]=204]="LevelUp";e[e["Copy"]=205]="Copy";e[e["Paste"]=206]="Paste";e[e["Alert"]=207]="Alert";e[e["Equalizer"]=208]="Equalizer";e[e["King"]=209]="King";e[e["Queen"]=210]="Queen";e[e["Pawn"]=211]="Pawn";e[e["Bishop"]=212]="Bishop";e[e["Knight"]=213]="Knight";e[e["BabyFormula"]=214]="BabyFormula";e[e["Tent"]=215]="Tent";e[e["Blackboard"]=216]="Blackboard";e[e["Bed"]=217]="Bed";e[e["Apple"]=218]="Apple";e[e["Erase"]=219]="Erase";e[e["Hourglass"]=220]="Hourglass";e[e["Lamp"]=221]="Lamp";e[e["Duplicate"]=222]="Duplicate";e[e["PiggyBank"]=223]="PiggyBank";e[e["Scissors"]=224]="Scissors";e[e["Bitcoin"]=225]="Bitcoin";e[e["Btc"]=226]="Btc";e[e["Xbt"]=227]="Xbt";e[e["Yen"]=228]="Yen";e[e["Jpy"]=229]="Jpy";e[e["Ruble"]=230]="Ruble";e[e["Rub"]=231]="Rub";e[e["Scale"]=232]="Scale";e[e["IceLolly"]=233]="IceLolly";e[e["IceLollyTasted"]=234]="IceLollyTasted";e[e["Education"]=235]="Education";e[e["OptionHorizontal"]=236]="OptionHorizontal";e[e["OptionVertical"]=237]="OptionVertical";e[e["MenuHamburger"]=238]="MenuHamburger";e[e["ModalWindow"]=239]="ModalWindow";e[e["Oil"]=240]="Oil";e[e["Grain"]=241]="Grain";e[e["Sunglasses"]=242]="Sunglasses";e[e["TextDize"]=243]="TextDize";e[e["TextColor"]=244]="TextColor";e[e["TextBackground"]=245]="TextBackground";e[e["ObjectAlignTop"]=246]="ObjectAlignTop";e[e["ObjectAlignBottom"]=247]="ObjectAlignBottom";e[e["ObjectAlignHorizontal"]=248]="ObjectAlignHorizontal";e[e["ObjectAlignLeft"]=249]="ObjectAlignLeft";e[e["ObjectAlignVertical"]=250]="ObjectAlignVertical";e[e["ObjectAlignRight"]=251]="ObjectAlignRight";e[e["TriangleRight"]=252]="TriangleRight";e[e["TriangleLeft"]=253]="TriangleLeft";e[e["TriangleBottom"]=254]="TriangleBottom";e[e["TriangleTop"]=255]="TriangleTop";e[e["Console"]=256]="Console";e[e["Superscript"]=257]="Superscript";e[e["Subscript"]=258]="Subscript";e[e["MenuLeft"]=259]="MenuLeft";e[e["MenuRight"]=260]="MenuRight";e[e["MenuDown"]=261]="MenuDown";e[e["MenuUp"]=262]="MenuUp"})(Ys);var Xs={glyphicon:so("glyphicon"),formControlFeedback:so("form-control-feedback")};var Qs=el();var Zs=Rn(os,{id:"bobrilstrap-glyphicon",render:function(e,t){t.tag="span";t.attrs["aria-hidden"]=!0;to(t,Xs.glyphicon);to(t,Qs(e.data.icon));to(t,!!e.data.formControlFeedback&&Xs.formControlFeedback)}});function el(){var e=ns();Object.keys(Ys).forEach(function(t){var n=parseInt(t,10);if(!isNaN(n)){e(n,so("glyphicon-"+as(Ys[n])))}});return e}var tl={};(function(e){e[e["Hover"]=0]="Hover"})(tl);var nl={active:so("active"),carousel:so("carousel"),carouselCaption:so("carousel-caption"),carouselIndicators:so("carousel-indicators"),carouselInner:so("carousel-inner"),carouselControl:so("carousel-control"),item:so("item"),left:so("left"),right:so("right"),slide:so("slide")};Rn(os,{id:"bobrilstrap-carousel",render:function(t,n){to(n,nl.carousel,nl.slide);n.attrs["id"]=t.data.id;if(!(t.data.data&&t.data.data.ride)){n.attrs["data-ride"]="carousel"}var r=t.data.slideTo===e?0:t.data.slideTo;n.children=[to(Us({},t.data.items.map(function(e,n){return to(Js({data:{target:"#"+t.data.id,slideTo:n}}),!t.initialSlideChanged&&n===r&&nl.active)})),nl.carouselIndicators),os({style:nl.carouselInner,attrs:{role:"listbox"}},t.data.items.map(function(e,n){return os({style:[nl.item,!t.initialSlideChanged&&n===r&&nl.active]},[e.image,!!e.captionContent&&os({style:nl.carouselCaption},e.captionContent)])})),ss({style:[nl.left,nl.carouselControl],href:"#"+t.data.id,attrs:{role:"button"},data:{slide:"prev"}},[Zs({icon:84,aria:{hidden:!0}}),t.data.srOnlyPrev&&vs({style:hs.srOnly},t.data.srOnlyPrev)]),ss({style:[nl.right,nl.carouselControl],href:"#"+t.data.id,attrs:{role:"button"},data:{slide:"next"}},[Zs({icon:85,aria:{hidden:!0}}),t.data.srOnlyNext&&vs({style:hs.srOnly},t.data.srOnlyNext)])]},postInitDom:function(t,n,r){var a=$(r);a.carousel({interval:t.data.interval,pause:t.data.pauseOn!==e?tl[t.data.pauseOn].toLowerCase():e,wrap:t.data.wrap,keyboard:t.data.keyboard});a.on("slide.bs.Carousel",function(){t.initialSlideChanged=!0;if(t.data.onSlide){t.data.onSlide()}});rl(t,a)},postUpdateDom:function(e,t,n){rl(e,$(n))},onSwipeLeft:function(e){var t=Le(e.me);$(t).carousel("next");return!0},onSwipeRight:function(e){var t=Le(e.me);$(t).carousel("prev");return!0}});function rl(t,n){if(t.data.slideTo!==e){n.carousel(t.data.slideTo)}}Rn(os,{id:"bobrilstrap-cite",render:function(e,t){t.tag="cite"}});var al={collapse:so("collapse"),in:so("in"),collapsed:so("collapsed")};var ol=Bn({id:"bobrilstrap-collapse",render:function(e,t){t.children=e.data.children},postInitDom:function(e){il(e)},postUpdateDom:function(e){il(e);sl(e)}});function il(e){var t=Le(e.me);if(!t||e.collapsedElement===t){return}e.collapsedElement=t;$(t).collapse({toggle:!e.data.collapsed});e.collapsed=e.data.collapsed;$(t).on("hidden.bs.Collapse",function(){if(e.data.onCollapsed){e.data.onCollapsed()}});$(t).on("shown.bs.Collapse",function(){if(e.data.onExpanded){e.data.onExpanded()}})}function sl(e){var t=Le(e.me);if(!!e.collapsed!==!!e.data.collapsed){e.collapsed=!!e.data.collapsed;$(t).collapse(e.collapsed?"hide":"show")}}Rn(os,{id:"bobrilstrap-code",render:function(e,t){t.tag="code"}});var ll;var cl;var ul;var dl;var pl=Rn(os,{id:"bobrilstrap-col",render:function(e,t){ml(t,e.data);fl(t,e.data.cols,ll);fl(t,e.data.offsets,cl);fl(t,e.data.pushes,ul);fl(t,e.data.pulls,dl)}});ll=hl(function(e,t){return"col-"+ps[e].toLowerCase()+"-"+t});cl=hl(function(e,t){return"col-"+ps[e].toLowerCase()+"-offset-"+t});ul=hl(function(e,t){return"col-"+ps[e].toLowerCase()+"-push-"+t});dl=hl(function(e,t){return"col-"+ps[e].toLowerCase()+"-pull-"+t});function hl(e){var t=ns();Object.keys(ps).forEach(function(n){var r=parseInt(n,10);if(!isNaN(r)){t(r,ns());for(var a=1;a<=12;a++){t(r)(a,so(e(r,a)))}}});return t}function fl(t,n,r){if(n===e||r===e){return}var a=vl(n,r);if(a.length===0){return}to(t,a)}function ml(e,t){if(yl(ll,t)){to(e,bl(ll,t))}}function vl(e,t){var n=gl(e);var r=n.filter(function(e){return yl(t,e)}).map(function(e){return bl(t,e)});return r}function gl(e){return e?e instanceof Array?e:[e]:[]}function yl(t,n){var r=n.size;return r!==e&&!!n.span&&!!t(r)&&!!t(r)(n.span)}function bl(t,n){return t(n.size===e?1:n.size)(n.span===e?1:n.span)}var xl=so("container");var _l=so("container-fluid");var Sl=Rn(os,{id:"bobrilstrap-container",render:function(e,t){to(t,e.data.fluid?_l:xl)}});var kl={srOnly:hs.srOnly,controlLabel:so("control-label")};var Cl=Rn(os,{id:"bobrilstrap-label",render:function(e,t){t.tag="label";to(t,!!e.data.srOnly&&kl.srOnly);to(t,!!e.data.controlLabel&&kl.controlLabel);if(e.data.for){t.attrs["for"]=e.data.for}if(e.data.title){ts(t,e.data.title)}delete t.attrs["title"]}});var wl=On(os,{id:"bobrilstrap-input-checkbox",render:function(t,n){n.component.super.render(t,n);if(t.data.checked!==e){t.checked=!!t.data.checked}else if(t.checked===e){t.checked=!1}n.tag="input";n.attrs["type"]="checkbox";n.attrs.value=t.checked;if(t.data.disabled){n.attrs["disabled"]="disabled"}if(t.data.readonly){n.attrs["readonly"]="readonly"}},onChange:function(e,t){e.checked=t;e.me.component.super.onChange(e,t)}});var El={checkbox:so("checkbox"),checkboxInline:so("checkbox-inline"),disabled:so("disabled")};Rn(os,{id:"bobrilstrap-checkbox",render:function(t,n){to(n,El.checkbox);var r=wl(t.data.inputCheckbox||{});var a=Cl(t.data.label||{},r);if(t.data.inline){n.tag=e;to(a,El.checkboxInline)}else if(t.data.inputCheckbox&&t.data.inputCheckbox.disabled){
to(n,El.disabled)}n.children=a}});Rn(os,{id:"bobrilstrap-dd",render:function(e,t){t.tag="dd"}});Rn(os,{id:"bobrilstrap-del",render:function(e,t){t.tag="del"}});Rn(os,{id:"bobrilstrap-dl",render:function(e,t){t.tag="dl";to(t,!!e.data.horizontal&&ls.dlHorizontal)}});var Dl=W({divider:so("divider"),dropdownHeader:so("dropdown-header")},Ws);Rn(Js,{id:"bobrilstrap-dropdown-item",render:function(e,t){to(t,!!e.data.separator&&Dl.divider);to(t,!!e.data.header&&Dl.dropdownHeader);if(e.data.separator){t.attrs["role"]="separator"}}});var Il={dropdownMenu:so("dropdown-menu"),dropdownMenuRight:so("dropdown-menu-right")};Rn(Ds,{id:"bobrilstrap-dropdown-menu",render:function(e,t){to(t,Il.dropdownMenu);to(t,!!e.data.right&&Il.dropdownMenuRight);t.attrs["role"]="menu"}});Rn(os,{id:"bobrilstrap-dt",render:function(e,t){t.tag="dt"}});var Tl={embedResponsive:so("embed-responsive"),embedResponsiveItem:so("embed-responsive-item"),embedResponsive16by9:so("embed-responsive-16by9"),embedResponsive4by3:so("embed-responsive-4by3")};var Al=ns();Al(0,Tl.embedResponsive16by9);Al(1,Tl.embedResponsive4by3);Rn(os,{id:"bobrilstrap-embed-responsive",render:function(t,n){to(n,Tl.embedResponsive);to(n,t.data.aspectRatio!==e&&Al(t.data.aspectRatio))}});Rn(os,{id:"bobrilstrap-embed",render:function(t,n){n.tag="embed";to(n,!!t.data.embedResponsive&&Tl.embedResponsiveItem);n.attrs["src"]=t.data.src;if(t.data.type!==e){n.attrs["type"]=t.data.type}if(t.data.height!==e){n.attrs["height"]=t.data.height}if(t.data.width!==e){n.attrs["width"]=t.data.width}}});Rn(os,{id:"bobrilstrap-fieldset",render:function(e,t){t.tag="fieldset";if(e.data.disabled){t.attrs["disabled"]="disabled"}}});Rn(os,{id:"bobrilstrap-figure",render:function(e,t){t.tag="figure"}});Rn(os,{id:"bobrilstrap-footer",render:function(e,t){t.tag="footer"}});var Nl={formHorizontal:so("form-horizontal"),formInline:so("form-inline")};Rn(os,{id:"bobrilstrap-form",render:function(e,t){t.tag="form";to(t,!!e.data.horizontal&&Nl.formHorizontal);to(t,!!e.data.inline&&Nl.formInline)}});var Pl={hasSuccess:so("has-success"),hasWarning:so("has-warning "),hasError:so("has-error"),hasFeedback:so("has-feedback")};var Fl=ns();Fl(0,Pl.hasSuccess);Fl(1,Pl.hasWarning);Fl(2,Pl.hasError);var Bl={formGroup:so("form-group"),lg:so("form-group-lg"),sm:so("form-group-sm")};var Ol=ns();Ol(0,Bl.lg);Ol(1,!1);Ol(2,Bl.sm);Rn(os,{id:"bobrilstrap-form-group",render:function(t,n){n.tag="div";to(n,Bl.formGroup);to(n,!!t.data.hasFeedback&&Pl.hasFeedback);to(n,t.data.validationState!==e&&Fl(t.data.validationState));to(n,t.data.size!==e&&Ol(t.data.size))}});var Rl=Rn(os,{id:"bobrilstrap-h1",render:function(e,t){t.tag="h1"}});var $l=Rn(os,{id:"bobrilstrap-h2",render:function(e,t){t.tag="h2"}});var Gl=Rn(os,{id:"bobrilstrap-h3",render:function(e,t){t.tag="h3"}});var jl=Rn(os,{id:"bobrilstrap-h4",render:function(e,t){t.tag="h4"}});var Ll=Rn(os,{id:"bobrilstrap-h5",render:function(e,t){t.tag="h5"}});var Ml=Rn(os,{id:"bobrilstrap-h6",render:function(e,t){t.tag="h6"}});var Hl=so("help-block");Rn(os,{id:"bobrilstrap-help-text",render:function(e,t){t.tag="span";to(t,Hl)}});Rn(os,{id:"bobrilstrap-iframe",render:function(e,t){t.tag="iframe";t.attrs["src"]=e.data.src;to(t,!!e.data.embedResponsive&&Tl.embedResponsiveItem)}});var zl={centerBlock:hs.centerBlock,imgResponsive:so("img-responsive"),imgRounded:so("img-rounded"),imgCircle:so("img-circle"),imgThumbnail:so("img-thumbnail"),ieSvgFix:so({width:"100% \\9"},e)};var Vl=ns();Vl(0,zl.imgRounded);Vl(1,zl.imgCircle);Vl(2,zl.imgThumbnail);Rn(os,{id:"bobrilstrap-image",render:function(t,n){n.tag="img";n.attrs["src"]=t.data.src;n.attrs["alt"]=t.data.alt;if(t.data.height!==e){n.attrs["height"]=t.data.height}if(t.data.width!==e){n.attrs["width"]=t.data.width}to(n,t.data.shape!==e&&Vl(t.data.shape));to(n,!!t.data.responsive&&zl.imgResponsive);to(n,!!t.data.centerBlock&&zl.centerBlock);to(n,!!t.data.ieSvgFix&&zl.ieSvgFix)}});var Ul={inputGroup:so("input-group"),lg:so("input-group-lg"),sm:so("input-group-sm")};var ql=ns();ql(0,Ul.lg);ql(1,Ul.sm);Rn(os,{id:"bobrilstrap-input-group",render:function(t,n){n.tag="div";to(n,Ul.inputGroup);to(n,!!t.data.hasFeedback&&Pl.hasFeedback);to(n,t.data.validationState!==e&&Fl(t.data.validationState));to(n,t.data.size!==e&&ql(t.data.size))}});var Wl=so("input-group-addon");Rn(os,{id:"bobrilstrap-input-group-addon",render:function(e,t){t.tag="span";to(t,Wl)}});var Jl=On(os,{id:"bobrilstrap-input-radio",render:function(t,n){n.component.super.render(t,n);if(t.data.value!==e&&(t.data.checked!==e||t.data.checkedValue!==e)){t.checked=!!t.data.value&&t.data.value===t.data.checkedValue||!!t.data.checked}else if(t.checked===e){t.checked=!1}n.tag="input";n.attrs["type"]="radio";n.attrs.value=t.checked;n.attrs["name"]=t.data.name;if(t.data.disabled){n.attrs["disabled"]="disabled"}if(t.data.readonly){n.attrs["readonly"]="readonly"}},onChange:function(e,t){e.checked=t;e.me.component.super.onChange(e,t);if(t&&e.data.onChecked){e.data.onChecked(e.data.value)}if(!t&&e.data.onUnChecked){e.data.onUnChecked(e.data.value)}}});var Kl={};(function(e){e[e["Color"]=0]="Color";e[e["Date"]=1]="Date";e[e["Datetime"]=2]="Datetime";e[e["DatetimeLocal"]=3]="DatetimeLocal";e[e["Email"]=4]="Email";e[e["Month"]=5]="Month";e[e["Number"]=6]="Number";e[e["Password"]=7]="Password";e[e["Range"]=8]="Range";e[e["Search"]=9]="Search";e[e["Tel"]=10]="Tel";e[e["Text"]=11]="Text";e[e["Time"]=12]="Time";e[e["Url"]=13]="Url";e[e["Week"]=14]="Week"})(Kl);var Yl={formControl:so("form-control"),lg:so("input-lg"),sm:so("input-sm")};var Xl=ns();Xl(0,Yl.lg);Xl(1,!1);Xl(2,Yl.sm);On(os,{id:"bobrilstrap-input-text",render:function(t,n){n.component.super.render(t,n);if(t.data.value!==e){t.value=t.data.value}n.tag="input";n.attrs["type"]=as(t.data.type!==e?Kl[t.data.type]:Kl[11]);n.attrs.value=t.value;to(n,Yl.formControl);to(n,t.data.size!==e&&Xl(t.data.size));if(t.data.placeholder){n.attrs["placeholder"]=t.data.placeholder}if(t.data.disabled){n.attrs["disabled"]="disabled"}if(t.data.readonly){n.attrs["readonly"]="readonly"}},onChange:function(e,t){e.value=t;e.me.component.super.onChange(e,t)},postInitDom:function(e){if(e.data.typeaheadOptions){Ql(e)}},postUpdateDom:function(e){if(e.data.typeaheadOptions){Ql(e)}},destroy:function(e){Zl(e)}});function Ql(t){var n=Le(t.me);if(!n){t.jQueryElement=e;return}if(!t.jQueryElement){t.jQueryElement=$(n);t.jQueryElement.typeahead(t.data.typeaheadOptions)}}function Zl(t){if(t.jQueryElement){$(t.jQueryElement).typeahead("destroy");t.jQueryElement=e}}Rn(os,{id:"bobrilstrap-ins",render:function(e,t){t.tag="ins"}});Rn(os,{id:"bobrilstrap-italics",render:function(e,t){t.tag="em"}});var ec=so("jumbotron");var tc=Rn(os,{id:"bobrilstrap-jumbotron",render:function(e,t){to(t,ec)}});Rn(os,{id:"bobrilstrap-kbd",render:function(e,t){t.tag="kbd"}});Rn(Js,{id:"bobrilstrap-listgroup-item",render:function(t,n){to(n,Is.listGroupItem);to(n,t.data.context!==e&&Ts(t.data.context))}});Rn(ss,{id:"bobrilstrap-listgroup-item-link",render:function(t,n){to(n,Is.listGroupItem);to(n,!!t.data.active&&Is.active);to(n,!!t.data.disabled&&Is.disabled);to(n,t.data.context!==e&&Ts(t.data.context))}});var nc={formControlStatic:so("form-control-static")};var rc=Rn(os,{id:"bobrilstrap-paragraph",render:function(e,t){t.tag="p";to(t,!!e.data.lead&&ls.lead);to(t,!!e.data.formControlStatic&&nc.formControlStatic)}});Rn(rc,{id:"bobrilstrap-listgroup-item-text",render:function(e,t){to(t,Is.listGroupItemText)}});Rn(Rl,{id:"listgroup-item-h1",render:function(e,t){to(t,Is.listGroupItemHeading)}});Rn($l,{id:"listgroup-item-h2",render:function(e,t){to(t,Is.listGroupItemHeading)}});Rn(Gl,{id:"listgroup-item-h3",render:function(e,t){to(t,Is.listGroupItemHeading)}});Rn(jl,{id:"listgroup-item-h4",render:function(e,t){to(t,Is.listGroupItemHeading)}});Rn(Ll,{id:"listgroup-item-h5",render:function(e,t){to(t,Is.listGroupItemHeading)}});Rn(Ml,{id:"listgroup-item-h6",render:function(e,t){to(t,Is.listGroupItemHeading)}});Rn(os,{id:"bobrilstrap-object",render:function(t,n){n.tag="object";to(n,!!t.data.embedResponsive&&Tl.embedResponsiveItem);n.attrs["data"]=t.data.dataSrc;if(t.data.type!==e){n.attrs["type"]=t.data.type}if(t.data.height!==e){n.attrs["height"]=t.data.height}if(t.data.width!==e){n.attrs["width"]=t.data.width}}});var ac=Rn(os,{id:"bobrilstrap-option",render:function(e,t){t.tag="option";t.attrs.value=e.data.value;t.children=e.data.label||e.data.value;if(e.data.disabled){t.attrs["disabled"]="disabled"}}});Rn(os,{id:"bobrilstrap-mark",render:function(e,t){t.tag="mark"}});Rn(os,{id:"bobrilstrap-main",render:function(e,t){t.tag="main"}});var oc={mediaLeft:so("media-left"),mediaBody:so("media-body"),mediaRight:so("media-right"),mediaTop:so("media-top"),mediaMiddle:so("media-middle"),mediaBottom:so("media-bottom")};var ic=ns();ic(0,oc.mediaLeft);ic(1,oc.mediaBody);ic(2,oc.mediaRight);ic(3,oc.mediaTop);ic(4,oc.mediaMiddle);ic(5,oc.mediaBottom);Rn(os,{id:"bobrilstrap-media-content",render:function(e,t){var n=e.data.alignment instanceof Array?e.data.alignment:[e.data.alignment];n.forEach(function(e){return to(t,ic(e))})}});var sc={media:so("media"),mediaLeft:oc.mediaLeft,mediaBody:oc.mediaBody,mediaRight:oc.mediaRight,mediaTop:oc.mediaTop,mediaMiddle:oc.mediaMiddle,mediaBottom:oc.mediaBottom,mediaHeading:so("media-heading"),mediaObject:so("media-object"),mediaList:so("media-list")};Rn(os,{id:"bobrilstrap-media",render:function(e,t){to(t,sc.media)}});Rn(Rl,{id:"bobrilstrap-media-h1",render:function(e,t){to(t,sc.mediaHeading)}});Rn($l,{id:"bobrilstrap-media-h2",render:function(e,t){to(t,sc.mediaHeading)}});Rn(Gl,{id:"bobrilstrap-media-h3",render:function(e,t){to(t,sc.mediaHeading)}});Rn(jl,{id:"bobrilstrap-media-h4",render:function(e,t){to(t,sc.mediaHeading)}});Rn(Ll,{id:"bobrilstrap-media-h5",render:function(e,t){to(t,sc.mediaHeading)}});Rn(Ml,{id:"bobrilstrap-media-h6",render:function(e,t){to(t,sc.mediaHeading)}});var lc={modal:so("modal"),fade:so("fade"),modalDialog:so("modal-dialog"),modalContent:so("modal-content"),modalHeader:so("modal-header"),modalBody:so("modal-body"),modalFooter:so("modal-footer"),modalTitle:so("modal-title"),lg:so("modal-lg"),sm:so("modal-sm")};var cc=ns();cc(0,lc.lg);cc(1,!1);cc(2,lc.sm);Rn(os,{id:"bobrilstrap-modal",render:function(t,n){n.attrs["role"]="dialog";to(n,lc.modal,!!t.data.animation&&lc.fade);n.children=mo(mo([!!t.data.header&&mo(t.data.header,lc.modalHeader),!!t.data.body&&mo(t.data.body,lc.modalBody),!!t.data.footer&&mo(t.data.footer,lc.modalFooter)],lc.modalContent),lc.modalDialog,t.data.size!==e&&cc(t.data.size));n.children.attrs={role:"document"}},postInitDom:function(t,n,r){var a=t.data.backdrop!==e?t.data.backdrop:"static";var o=$(r);o.modal({keyboard:t.data.keyboard,show:!!t.data.visible,backdrop:a});o.on("hidden.bs.Modal",function(e){if(t.data.onHidden){t.data.onHidden(e)}});o.on("shown.bs.Modal",function(e){if(t.data.onShown){t.data.onShown(e)}})},postUpdateDom:function(e,t,n){if(!!e.data.visible!==!!e.visible){if(e.visible&&e.data.onHide&&!e.data.onHide()){return}e.visible=e.data.visible;$(n).modal(e.visible?"show":"hide")}}});Rn(Rl,{id:"bobrilstrap-modal-title-h1",render:function(e,t){to(t,lc.modalTitle)}});Rn($l,{id:"bobrilstrap-modal-title-h2",render:function(e,t){to(t,lc.modalTitle)}});Rn(Gl,{id:"bobrilstrap-modal-title-h3",render:function(e,t){to(t,lc.modalTitle)}});Rn(jl,{id:"bobrilstrap-modal-title-h4",render:function(e,t){to(t,lc.modalTitle)}});Rn(Ll,{id:"bobrilstrap-modal-title-h5",render:function(e,t){to(t,lc.modalTitle)}});Rn(Ml,{id:"bobrilstrap-modal-title-h6",render:function(e,t){to(t,lc.modalTitle)}});var uc=Rn(ss,{id:"bobrilstrap-navbar-brand",render:function(e,t){to(t,ws.navbarBrand);to(t,e.data.alignment===1&&ws.navbarRight);to(t,e.data.alignment===0&&ws.navbarLeft)}});var dc=Rn(os,{id:"bobrilstrap-navbar-collapse",render:function(e,t){to(t,ws.navbarCollapse,al.collapse)}});var pc=Rn(os,{id:"bobrilstrap-navbar-header",render:function(e,t){to(t,ws.navbarHeader);to(t,e.data.alignment===1&&ws.navbarRight);to(t,e.data.alignment===0&&ws.navbarLeft)}});var hc=Rn(Ds,{id:"bobrilstrap-navbar-nav",render:function(e,t){to(t,ws.nav);to(t,ws.navbarNav);to(t,!!e.data.justified&&ws.navJustified);to(t,e.data.alignment===1&&ws.navbarRight);to(t,e.data.alignment===0&&ws.navbarLeft)}});var fc=Rn(Js,{id:"bobrilstrap-tab",render:function(e,t){to(t,!!e.data.dropdown&&ws.dropdown);t.attrs["role"]="presentation"}});var mc=Rn(fc,{id:"bobrilstrap-navbar-nav-item"});var vc=so("page-header");Rn(os,{id:"bobrilstrap-page-header",render:function(e,t){to(t,vc)}});var gc={pager:so("pager")};Rn(os,{id:"bobrilstrap-pager",render:function(e,t){t.tag="nav";t.children=to(Ds(e.data.ul||{},e.data.children),gc.pager)}});var yc={previous:so("previous"),next:so("next")};var bc=ns();bc(1,yc.previous);bc(2,yc.next);Rn(Js,{id:"bobrilstrap-pager-item",render:function(e,t){to(t,!!e.data.alignment&&bc(e.data.alignment))}});var xc={pagination:so("pagination"),lg:so("pagination-lg"),sm:so("pagination-sm")};var _c=ns();_c(1,xc.lg);_c(2,xc.sm);Rn(os,{id:"bobrilstrap-pagination",render:function(e,t){t.tag="nav";t.children=to(Ds(e.data.ul||{},e.data.children),xc.pagination,!!e.data.size&&_c(e.data.size))}});Rn(Js,{id:"bobrilstrap-pagination-item"});var Sc=Rn(os,{id:"bobrilstrap-panel-heading",render:function(e,t){to(t,wc.panelHeading)}});var kc=Rn(os,{id:"bobrilstrap-panel-body",render:function(e,t){to(t,wc.panelBody)}});var Cc=Rn(os,{id:"bobrilstrap-panel-footer",render:function(e,t){to(t,wc.panelFooter)}});var wc={panel:so("panel"),panelGroup:so("panel-group"),panelDefault:so("panel-default"),panelPrimary:so("panel-primary"),panelSuccess:so("panel-success"),panelWarning:so("panel-warning"),panelDanger:so("panel-danger"),panelInfo:so("panel-info"),panelHeading:so("panel-heading"),panelBody:so("panel-body"),panelFooter:so("panel-footer"),panelTitle:so("panel-title"),panelCollapse:so("panel-collapse")};var Ec=ns();Ec(0,wc.panelDefault);Ec(1,wc.panelPrimary);Ec(2,wc.panelSuccess);Ec(3,wc.panelWarning);Ec(4,wc.panelDanger);Ec(5,wc.panelInfo);Rn(os,{id:"bobrilstrap-panel",render:function(t,n){to(n,wc.panel);to(n,t.data.context!==e&&Ec(t.data.context)||wc.panelDefault);if(t.data.body){ts(n,kc({},t.data.body),!0)}if(t.data.heading){ts(n,Sc({},t.data.heading),!0)}if(t.data.footer){ts(n,Cc({},t.data.heading))}}});Rn(os,{id:"bobrilstrap-panel-collapse",render:function(e,t){to(t,wc.panelCollapse,al.collapse)}});Rn(os,{id:"bobrilstrap-panel-group",render:function(e,t){to(t,wc.panelGroup)}});Rn(Rl,{id:"bobrilstrap-panel-title-h1",render:function(e,t){to(t,wc.panelTitle)}});Rn($l,{id:"bobrilstrap-panel-title-h2",render:function(e,t){to(t,wc.panelTitle)}});Rn(Gl,{id:"bobrilstrap-panel-title-h3",render:function(e,t){to(t,wc.panelTitle)}});Rn(jl,{id:"bobrilstrap-panel-title-h4",render:function(e,t){to(t,wc.panelTitle)}});Rn(Ll,{id:"bobrilstrap-panel-title-h5",render:function(e,t){to(t,wc.panelTitle)}});Rn(Ml,{id:"bobrilstrap-panel-title-h6",render:function(e,t){to(t,wc.panelTitle)}});var Dc={progressBar:so("progress-bar"),progressBarSuccess:so("progress-bar-success"),progressBarInfo:so("progress-bar-info"),progressBarWarning:so("progress-bar-warning"),progressBarDanger:so("progress-bar-danger"),progressBarStriped:so("progress-bar-striped"),active:so("active")};var Ic=ns();Ic(0,Dc.progressBarSuccess);Ic(1,Dc.progressBarInfo);Ic(2,Dc.progressBarWarning);Ic(3,Dc.progressBarDanger);var Tc=Rn(os,{id:"bobrilstrap-progress-bar",render:function(t,n){to(n,Dc.progressBar);to(n,!!t.data.active&&Dc.active);to(n,!!t.data.striped&&Dc.progressBarStriped);to(n,t.data.context!==e&&Ic(t.data.context));to(n,{width:t.data.value+"%"});to(n,!!t.data.minWidth,{minWidth:t.data.minWidth});n.attrs["role"]="progressbar";ts(n,t.data.srOnlyText&&vs({style:hs.srOnly},t.data.srOnlyText),!0)}});var Ac=so("progress");Rn(os,{id:"bobrilstrap-progress",render:function(e,t){to(t,Ac);if(e.data.bars){e.data.bars.forEach(function(e){return ts(t,Tc(e))})}}});Rn(fc,{id:"bobrilstrap-pill"});Rn(Ds,{id:"bobrilstrap-pills",render:function(e,t){to(t,ws.nav);to(t,ws.navPills);to(t,!!e.data.justified&&ws.navJustified);to(t,!!e.data.stacked&&ws.navStacked);to(t,e.data.alignment===1&&ws.navbarRight);to(t,e.data.alignment===0&&ws.navbarLeft)}});var Nc={};var Pc={};(function(e){e[e["Left"]=0]="Left";e[e["Top"]=1]="Top";e[e["Bottom"]=2]="Bottom";e[e["Right"]=3]="Right";e[e["Auto"]=4]="Auto"})(Nc);(function(e){e[e["Click"]=0]="Click";e[e["Hover"]=1]="Hover";e[e["Focus"]=2]="Focus";e[e["Manual"]=3]="Manual"})(Pc);Bn({id:"bobrilstrap-popover",render:function(e,t){t.children=e.data.children},postInitDom:function(e){Fc(e)},postUpdateDom:function(e){Fc(e)},destroy:function(e){Oc(e)}});function Fc(t){var n=Le(t.me);if(!n){t.popoveredElement=e;return}var r=$(n);var a=typeof t.data.title==="function"?t.data.title():t.data.title;var o=typeof t.data.content==="function"?t.data.content():t.data.content;if(!t.popoveredElement){r.popover({title:a,content:o,animation:t.data.animation,placement:t.data.placement!==e?Nc[t.data.placement].toLowerCase():e,trigger:t.data.trigger!==e?t.data.trigger.map(function(e){return Pc[e].toLowerCase()}).join(" "):e});r.on("shown.bs.Popover",function(){return t.visible=!0});r.on("hidden.bs.Popover",function(){return t.visible=!1});t.popoveredElement=n}if(Bc(t)&&!!t.visible!==!!t.data.visible){t.visible=!!t.data.visible;r.popover(t.visible?"show":"hide")}if(t.lastTitle!==e&&t.lastTitle!==a||t.lastContent!==e&&t.lastContent!==o){r.attr("data-content",o).attr("data-original-title",a);if(t.visible){r.popover("show")}}t.lastTitle=a;t.lastContent=o}function Bc(t){return t.data.trigger!==e&&t.data.trigger.length===1&&t.data.trigger[0]===3}function Oc(t){if(t.popoveredElement){$(t.popoveredElement).popover("destroy");t.popoveredElement=e}}Rn(os,{id:"bobrilstrap-pre",render:function(e,t){t.tag="pre"}});var Rc={radio:so("radio"),radioInline:so("radio-inline"),disabled:so("disabled")};Rn(os,{id:"bobrilstrap-radio",render:function(t,n){to(n,Rc.radio);var r=Jl(t.data.inputRadio);var a=Cl(t.data.label||{},r);if(t.data.inline){n.tag=e;to(a,Rc.radioInline)}else if(t.data.inputRadio&&t.data.inputRadio.disabled){to(n,Rc.disabled)}n.children=a}});var $c={};var Gc={};(function(e){e[e["Block"]=0]="Block";e[e["Inline"]=1]="Inline";e[e["InlineBlock"]=2]="InlineBlock"})($c);(function(e){e[e["Xs"]=0]="Xs";e[e["Sm"]=1]="Sm";e[e["Md"]=2]="Md";e[e["Lg"]=3]="Lg";e[e["Print"]=4]="Print"})(Gc);Lc();var jc=Mc();function Lc(){var e=ns();Object.keys(Gc).forEach(function(t){var n=parseInt(t,10);if(!isNaN(n)){e(n,ns());Object.keys($c).forEach(function(t){var r=parseInt(t,10);if(!isNaN(r)){e(n)(r,so("visible-"+Gc[n].toLowerCase()+"-"+as($c[r])))}})}});return e}function Mc(){var e=ns();Object.keys(Gc).forEach(function(t){var n=parseInt(t,10);if(!isNaN(n)){e(n,so("hidden-"+Gc[n].toLowerCase()))}});return e}var Hc=Rn(os,{id:"bobrilstrap-th",render:function(e,t){t.tag="th";if(e.data.colspan){t.attrs["colspan"]=e.data.colspan.toString()}}});var zc=Rn(os,{id:"bobrilstrap-td",render:function(t,n){n.tag="td";to(n,t.data.context!==e&&Kc(t.data.context));if(t.data.colspan){n.attrs["colspan"]=t.data.colspan.toString()}}});var Vc=Rn(os,{id:"bobrilstrap-tr",render:function(t,n){n.tag="tr";to(n,t.data.context!==e&&Kc(t.data.context));if(t.data.headers){n.children=ts(n,t.data.headers.map(function(e){return Hc(Uc(e))}))}if(t.data.columns){n.children=ts(n,t.data.columns.map(function(e){return zc(Uc(e))}))}}});function Uc(e){return typeof e==="string"?{children:e}:e}var qc=Rn(os,{id:"bobrilstrap-thead",render:function(e,t){t.tag="thead";if(e.data.row){t.children=Vc(e.data.row)}}});var Wc=Rn(os,{id:"bobrilstrap-tbody",render:function(e,t){t.tag="tbody";if(e.data.rows){t.children=e.data.rows.map(function(e){return Vc(e)})}}});var Jc=Rn(os,{id:"bobrilstrap-caption",render:function(e,t){t.tag="caption"}});var Kc=ns();Kc(0,so("active"));Kc(1,so("success"));Kc(2,so("warning"));Kc(3,so("danger"));Kc(4,so("info"));var Yc={table:so("table"),responsive:so("table-responsive"),tableStriped:so("table-striped"),tableBordered:so("table-bordered"),tableHover:so("table-hover"),tableCondensed:so("table-condensed")};var Xc=Rn(os,{id:"bobrilstrap-table",render:function(e,t){t.tag="table";to(t,Yc.table);to(t,!!e.data.striped&&Yc.tableStriped);to(t,!!e.data.bordered&&Yc.tableBordered);to(t,!!e.data.hover&&Yc.tableHover);to(t,!!e.data.condensed&&Yc.tableCondensed);if(e.data.caption){ts(t,Jc({},e.data.caption))}if(e.data.head){ts(t,qc(e.data.head))}if(e.data.body){ts(t,Wc(e.data.body))}}});Rn(os,{id:"bobrilstrap-responsive-table",render:function(e,t){to(t,Yc.responsive);ts(t,Xc(e.data.table))}});var Qc=so("row");var Zc=Rn(os,{id:"bobrilstrap-row",render:function(e,t){to(t,Qc)}});var eu={formControl:so("form-control"),lg:so("input-lg"),sm:so("input-sm")};var tu=ns();tu(0,eu.lg);tu(1,!1);tu(2,eu.sm);On(os,{id:"bobrilstrap-select",render:function(t,n){n.component.super.render(t,n);n.tag="select";if(t.data.value!==e){t.value=t.data.value}else if(t.value===e&&t.data.multiple){t.value=[]}n.attrs.value=t.value;to(n,eu.formControl);to(n,t.data.size!==e&&tu(t.data.size));n.children=t.data.options.map(function(e){return ac(e)});if(t.data.rows){n.attrs["size"]=t.data.rows.toString()}if(t.data.disabled){n.attrs["disabled"]="disabled"}if(t.data.multiple){n.attrs["multiple"]="multiple"}},onChange:function(e,t){e.value=t;e.me.component.super.onChange(e,t)}});Rn(os,{id:"bobrilstrap-sub",render:function(e,t){t.tag="sub"}});Rn(os,{id:"bobrilstrap-sup",render:function(e,t){t.tag="sup"}});Rn(os,{id:"bobrilstrap-samp",render:function(e,t){t.tag="samp"}});Rn(os,{id:"bobrilstrap-small",render:function(e,t){t.tag="small"}});Rn(os,{id:"bobrilstrap-strong",render:function(e,t){t.tag="strong"}});Rn(os,{id:"bobrilstrap-strikethrough",render:function(e,t){t.tag="s"}});Rn(Ds,{id:"bobrilstrap-tabs",render:function(e,t){to(t,ws.nav);to(t,ws.navTabs);to(t,!!e.data.justified&&ws.navJustified);to(t,e.data.alignment===1&&ws.navbarRight);to(t,e.data.alignment===0&&ws.navbarLeft)}});var nu={formControl:so("form-control"),fixedSize:so({resize:"none"},e)};On(os,{id:"bobrilstrap-textare",render:function(t,n){n.component.super.render(t,n);n.tag="textarea";if(t.data.value!==e){t.value=t.data.value}n.attrs.value=t.value;to(n,nu.formControl);to(n,!!t.data.fixedSize&&nu.fixedSize);if(t.data.rows){n.attrs["rows"]=t.data.rows.toString()}if(t.data.placeholder){n.attrs["placeholder"]=t.data.placeholder.toString()}if(t.data.disabled){n.attrs["disabled"]="disabled"}if(t.data.readonly){n.attrs["readonly"]="readonly"}},onChange:function(e,t){e.value=t;e.me.component.super.onChange(e,t)}});var ru={};var au={};(function(e){e[e["Left"]=0]="Left";e[e["Top"]=1]="Top";e[e["Bottom"]=2]="Bottom";e[e["Right"]=3]="Right";e[e["Auto"]=4]="Auto"})(ru);(function(e){e[e["Click"]=0]="Click";e[e["Hover"]=1]="Hover";e[e["Focus"]=2]="Focus";e[e["Manual"]=3]="Manual"})(au);Bn({id:"bobrilstrap-tooltip",render:function(e,t){t.children=e.data.children},postInitDom:function(e){ou(e)},postUpdateDom:function(e){ou(e)},destroy:function(e){su(e)}});function ou(t){var n=Le(t.me);if(!n){t.tooltipedElement=e;return}var r=$(n);var a=typeof t.data.title==="function"?t.data.title():t.data.title;if(!t.tooltipedElement){r.tooltip({title:a,animation:t.data.animation,placement:t.data.placement!==e?ru[t.data.placement].toLowerCase():e,trigger:t.data.trigger?t.data.trigger.map(function(e){return au[e].toLowerCase()}).join(" "):e});r.on("shown.bs.tooltip",function(){return t.visible=!0});r.on("hidden.bs.tooltip",function(){return t.visible=!1});t.tooltipedElement=n}if(iu(t)&&!!t.visible!==!!t.data.visible){t.visible=!!t.data.visible;r.tooltip(t.visible?"show":"hide")}if(t.lastTitle!==e&&t.lastTitle!==a){r.attr("data-original-title",a);if(t.visible){r.tooltip("show")}}t.lastTitle=a}function iu(t){return t.data.trigger!==e&&t.data.trigger.length===1&&t.data.trigger[0]===3}function su(t){if(t.tooltipedElement){$(t.tooltipedElement).tooltip("destroy");t.tooltipedElement=e}}Rn(os,{id:"bobrilstrap-underlined",render:function(e,t){t.tag="u"}});Rn(os,{id:"bobrilstrap-variable",render:function(e,t){t.tag="var"}});Rn(os,{id:"bobrilstrap-video",render:function(t,n){n.tag="video";to(n,!!t.data.embedResponsive&&Tl.embedResponsiveItem);n.attrs["src"]=t.data.src;n.attrs["type"]=t.data.type;if(t.data.height!==e){n.attrs["height"]=t.data.height}if(t.data.width!==e){n.attrs["width"]=t.data.width}}});var lu={well:so("well"),lg:so("well-lg"),sm:so("well-sm")};var cu=ns();cu(0,lu.lg);cu(1,lu.sm);Rn(os,{id:"bobrilstrap-well",render:function(t,n){to(n,lu.well);to(n,t.data.size!==e&&cu(t.data.size))}});var uu=Pn("c.css");function du(){Pn("b.js");Pn("c.js");Pn("d.js");pu();return{}}function pu(){var e=document.head.getElementsByTagName("link");for(var t=0;t<e.length;t++){var n=e[t];if(n.href.endsWith(uu)){if(t>0){document.head.removeChild(n);document.head.insertBefore(n,e[0])}return}}}du();function hu(e,t){return e===t||e!==e&&t!==t}function fu(e,t,n){Object.defineProperty(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function mu(e,t,n){Object.defineProperty(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function vu(e,t){for(var n=0;n<t.length;n++){fu(e,t[n],e[t[n]])}}var gu=0;function yu(){return++gu}function bu(e){return e.$bobx===Uu}var xu=function(){function t(t,n){this.atomId=yu();this.ctxs=e;this.value=n(t,e);this.enhancer=n;this.$bobx=null;this._prop=e}t.prototype.get=function(){this.markUsage();return this.value};t.prototype.set=function(e){var t=this.enhancer(e,this.value);if(!hu(t,this.value)){this.invalidate();this.value=t}};t.prototype.prop=function(){var t=this;var n=this._prop;if(n===e){n=function(n){if(n===e){return t.get()}t.set(n);return t.value};this._prop=n}return n};t.prototype.markUsage=function(){var t=be();if(t===e)return;if(bu(t)){if(t.markUsing(this.atomId,this)){var n=this.ctxs;if(n===e){n=new Map;this.ctxs=n}n.set(t.atomId,t)}}else{var r=t.$bobxCtx;if(r===e){r=new Map;r.ctxId=yu();t.$bobxCtx=r}if(r.has(this.atomId))return;r.set(this.atomId,this);if(this.ctxs===e){this.ctxs=new Map}this.ctxs.set(r.ctxId,t)}};t.prototype.invalidate=function(){var t=this.ctxs;if(t===e)return;t.forEach(function(e){if(bu(e)){e.invalidateBy(this.atomId)}else{e.$bobxCtx.delete(this.atomId);F(e)}},this);t.clear()};t.prototype.toJSON=function(){return this.get()};return t}();var _u=T(function(t,n){var r=be();if(n===3||n===1||n===2){var a=r.$bobxCtx;if(a!==e){a.forEach(function(e){if(bu(e)){e.unmarkUsedBy(this.ctxId)}else{e.ctxs.delete(this.ctxId)}},a);if(n===3){r.$bobxCtx=e}else{a.clear()}}}_u(t,n)});function Su(e,t){return e}function ku(t){return t!=null&&t.$bobx!==e}function Cu(e){return e!==null&&typeof e==="object"}function wu(e){return e instanceof Map}function Eu(e){if(e===null||typeof e!=="object")return!1;var t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function Du(t){var n=t.$bobx;if(n!==e)return n;n=Object.create(null);mu(t,"$bobx",n);return n}function Iu(e){var t=e.$bobx;if(t!==rd)return t;t={};e.$bobx=t;return t}function Tu(e,t){if(e===t)return!0;if(typeof e!=="object"||typeof t!=="object"){if(e!==e&&t!==t)return!0;return!1}if(zu(e)){if(!zu(t))return!1;var n=e.length;if(n!=t.length)return!1;var r=e.$bobx||e,a=t.$bobx||t;for(var o=0;o<n;o++){if(!Tu(r[o],a[o]))return!1}return!0}if(qu(e)){if(qu(t)){if(e.size!=t.size)return!1;var i=!0;e.forEach(function(e,n){if(!i)return;if(!t.has(n)){i=!1;return}if(!Tu(e,t.get(n)))i=!1});return i}var s=t;if(ku(t))s=t.$bobx;var l=0;for(var c in s){l++}if(e.size!=l)return!1;var u=!0;e.forEach(function(e,n){if(!u)return;if(!(n in s)){u=!1;return}if(!Tu(e,t[n]))u=!1});return u}if(qu(t)){var d=e;if(ku(e))d=e.$bobx;var p=0;for(var c in d){p++}if(t.size!=p)return!1;var h=!0;t.forEach(function(t,n){if(!h)return;if(!(n in d)){h=!1;return}if(!Tu(t,e[n]))h=!1});return h}var f=e;var m=t;if(ku(e))f=e.$bobx;if(ku(t))m=t.$bobx;var v=0;for(var c in m){v++}var g=0;for(var y in f){g++;if(!(y in m))return!1;if(!Tu(e[y],t[y]))return!1}return g==v}var Au=Object.create(null);function Nu(e){var t=Au[e];if(t)return t;return Au[e]={configurable:!0,enumerable:!0,get:function(){return this.$bobx[e].get()},set:function(t){this.$bobx[e].set(t)}}}function Pu(e,t,n,r,a){t[n]=new xu(r,a);Object.defineProperty(e,n,Nu(n))}var Fu=function(){var e=!1;var t={};Object.defineProperty(t,"0",{set:function(){e=!0}});Object.create(t)["0"]=1;return e===!1}();var Bu=0;var Ou=function(){function e(){}return e}();Ou.prototype=[];var Ru=function(t){n(r,t);function r(n,r){var a=t.call(this)||this;a.$enhancer=r;a.$atom=new xu(null,Su);if(n&&n.length){Mu(n.length);a.$bobx=n.map(function(t){return r(t,e)})}else{a.$bobx=[]}if(Fu){Object.defineProperty(a,"0",$u)}return a}r.prototype.splice=function(t,n){var r;var a=[];for(var o=2;o<arguments.length;o++){a[o-2]=arguments[o]}var i=this.$bobx.length;if(t===e)t=0;else if(t>i)t=i;else if(t<0)t=Math.max(0,i+t);if(arguments.length===1)n=i-t;else if(n==null)n=0;else n=Math.max(0,Math.min(n,i-t));if(a.length>0||n>0)this.$atom.invalidate();Mu(i+a.length-n);for(var s=0;s<a.length;s++){a[s]=this.$enhancer(a[s],e)}return(r=this.$bobx).splice.apply(r,c([t,n],l(a)))};r.prototype.setArrayLength=function(e){var t=this.$bobx.length;if(e===t)return;else if(e>t)this.splice.apply(this,c([t,0],l(new Array(e-t))));else this.splice(e,t-e)};r.prototype.clear=function(){return this.splice(0)};r.prototype.concat=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}this.$atom.markUsage();return Array.prototype.concat.apply(this.$bobx,e.map(function(e){return Hu(e)?e.$bobx:e}))};r.prototype.replace=function(e){this.$atom.invalidate();return this.splice.apply(this,c([0,this.$bobx.length],l(e)))};r.prototype.toJS=function(){return this.slice()};r.prototype.toJSON=function(){return this.$bobx};r.prototype.find=function(t,n,r){if(r===void 0){r=0}this.$atom.markUsage();var a=this.$bobx,o=a.length;for(var i=r;i<o;i++)if(t.call(n,a[i],i,this))return a[i];return e};r.prototype.push=function(){var t=[];for(var n=0;n<arguments.length;n++){t[n]=arguments[n]}var r=this.$bobx;if(t.length==0)return r.length;for(var a=0;a<t.length;a++){t[a]=this.$enhancer(t[a],e)}r.push.apply(r,t);this.$atom.invalidate();Mu(r.length);return r.length};r.prototype.pop=function(){return this.splice(Math.max(this.$bobx.length-1,0),1)[0]};r.prototype.shift=function(){return this.splice(0,1)[0]};r.prototype.unshift=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}this.splice.apply(this,c([0,0],l(e)));return this.$bobx.length};r.prototype.reverse=function(){this.$atom.invalidate();var e=this.$bobx;e.reverse.apply(e,arguments);return this};r.prototype.sort=function(e){this.$atom.invalidate();var t=this.$bobx;t.sort.apply(t,arguments);return this};r.prototype.remove=function(e){var t=this.$bobx.indexOf(e);if(t>-1){this.splice(t,1);return!0}return!1};r.prototype.checkIndex=function(e){if(e<0){throw new Error("Array index out of bounds: "+e+" is negative")}var t=this.$bobx.length;if(e>=t){throw new Error("Array index out of bounds: "+e+" is not smaller than "+t)}};r.prototype.move=function(e,t){this.checkIndex(e);this.checkIndex(t);if(e===t){return}var n=this.$bobx;var r;if(e<t){r=c(c(c(c([],l(n.slice(0,e))),l(n.slice(e+1,t+1))),[n[e]]),l(n.slice(t+1)))}else{r=c(c(c(c([],l(n.slice(0,t))),[n[e]]),l(n.slice(t,e))),l(n.slice(e+1)))}this.replace(r)};r.prototype.toString=function(){this.$atom.markUsage();return Array.prototype.toString.apply(this.$bobx,arguments)};return r}(Ou);vu(Ru.prototype,["constructor","intercept","observe","clear","concat","replace","toJS","toJSON","peek","find","splice","push","pop","shift","unshift","reverse","sort","remove","move","toString","toLocaleString","setArrayLength","checkIndex","$atom","$bobx","$enhancer"]);Object.defineProperty(Ru.prototype,"length",{enumerable:!1,configurable:!0,get:function(){this.$atom.markUsage();return this.$bobx.length},set:function(e){this.setArrayLength(e)}});["every","filter","forEach","indexOf","join","lastIndexOf","map","reduce","reduceRight","slice","some"].forEach(function(e){var t=Array.prototype[e];fu(Ru.prototype,e,function(){this.$atom.markUsage()
return t.apply(this.$bobx,arguments)})});var $u={configurable:!0,enumerable:!1,set:ju(0),get:Lu(0)};function Gu(e){var t=ju(e);var n=Lu(e);Object.defineProperty(Ru.prototype,""+e,{enumerable:!1,configurable:!0,set:t,get:n})}function ju(e){return function(t){var n=this.$bobx;if(e<n.length){var r=n[e];t=this.$enhancer(t,r);var a=t!==r;if(a){this.$atom.invalidate();n[e]=t}}else if(e===n.length){this.push(t)}else throw new Error("Array index out of bounds, "+e+" is larger than "+n.length)}}function Lu(t){return function(){var n=this.$bobx;this.$atom.markUsage();if(t<n.length){return n[t]}return e}}function Mu(e){e++;if(Bu>=e)return;e=Math.max(Math.ceil(Bu*1.5),e);for(var t=Bu;t<e;t++)Gu(t);Bu=e}Mu(100);function Hu(e){return Cu(e)&&g(e.$bobx)}function zu(e){return g(e)||Hu(e)}V(zu);var Vu=0;var Uu=1;function qu(e){return Cu(e)&&e.$bobx===Vu}var Wu=function(){function t(e,t){var n=this;this.$enhancer=t;this.$atom=new xu(null,Su);this.$content=new Map;this._size=0;if(Array.isArray(e))e.forEach(function(e){var t=l(e,2),r=t[0],a=t[1];return n.set(r,a)});else if(qu(e)||wu(e)){e.forEach(function(e,t){this.set(t,e)},this)}else if(Eu(e)){var r=Object.keys(e);for(var a=0;a<r.length;a++){var o=r[a];this.set(o,e[o])}}else if(e!=null)throw new Error("Cannot initialize map from "+e)}Object.defineProperty(t.prototype,"size",{get:function(){this.$atom.markUsage();return this._size},enumerable:!1,configurable:!0});t.prototype.has=function(t){var n=this.$content.get(t);if(n!==e){n.markUsage();return!0}this.$atom.markUsage();return!1};t.prototype.get=function(t){var n=this.$content.get(t);if(n!==e){return n.get()}this.$atom.markUsage();return e};t.prototype.set=function(t,n){var r=this.$content.get(t);if(r!==e){r.set(n);return this}this.$atom.invalidate();this.$content.set(t,new xu(n,this.$enhancer));this._size++;return this};t.prototype.prop=function(t){var n=this;var r=this.$content.get(t);if(r!==e){r.markUsage();return r.prop()}this.$atom.markUsage();return function(r){if(r===e){return n.get(t)}n.set(t,r);return n.get(t)}};t.prototype.clear=function(){if(this._size==0)return;var e=this.$content;e.forEach(function(e){return e.invalidate()});this.$atom.invalidate();this._size=0;this.$content.clear()};t.prototype.delete=function(t){this.$atom.invalidate();var n=this.$content.get(t);if(n!==e){n.invalidate();this.$content.delete(t);this._size--;return!0}return!1};t.prototype.forEach=function(e,t){this.$atom.markUsage();this.$content.forEach(function(n,r){e.call(t,n.get(),r,this)},this)};t.prototype.toJSON=function(){var e=Object.create(null);this.$content.forEach(function(e,t){this[t]=e.get()},e);return e};return t}();mu(Wu.prototype,"$bobx",Vu);function Ju(e,t){if(e===t)return t;if(e==null)return e;if(ku(e))return e;if(g(e))return new Ru(e,Ju);if(wu(e))return new Wu(e,Ju);if(Eu(e)){var n=Object.create(Object.getPrototypeOf(e)),r=Du(n);for(var a in e){Pu(n,r,a,e[a],Ju)}return n}return e}function Ku(e,t){if(e===t)return t;if(e==null)return e;if(ku(e))return e;if(g(e))return new Ru(e,Su);if(wu(e))return new Wu(e,Su);if(Eu(e)){var n=Object.create(Object.getPrototypeOf(e)),r=Du(n);for(var a in e){Pu(n,r,a,e[a],Su)}return n}throw new Error("shallow observable cannot be used for primitive values")}function Yu(e,t){if(Tu(e,t))return t;if(e==null)return e;if(ku(e))return e;if(g(e))return new Ru(e,Yu);if(wu(e))return new Wu(e,Yu);if(Eu(e)){var n=Object.create(Object.getPrototypeOf(e)),r=Du(n);for(var a in e){Pu(n,r,a,e[a],Yu)}return n}return e}function Xu(e,t){if(Tu(e,t))return t;return e}var Qu=id(Ju);var Zu=id(Ku);var ed=id(Su);var td=id(Yu);var nd=id(Xu);var rd={};var ad="$atomId";function od(t){if(Object.getOwnPropertyDescriptor(t.constructor,ad)===e){Object.defineProperty(t.constructor,ad,{enumerable:!1,writable:!1,configurable:!1,value:yu()})}if(!("$bobx"in t)){Object.defineProperty(t,"$bobx",{enumerable:!1,writable:!0,configurable:!0,value:rd});if(!("toJSON"in t)){t.toJSON=function(){return this.$bobx}}}}function id(t){return function n(r,a,o){od(r);return{configurable:!0,enumerable:!1,get:function(){var n=this.$bobx[a];if(n===e){var r=Iu(this);n=new xu(e,t);r[a]=n}return n.get()},set:function(n){var r=this.$bobx[a];if(r===e){var o=Iu(this);r=new xu(n,t);o[a]=r}else{r.set(n)}}}}}function sd(t){if(t===void 0){t=e}if(arguments.length>1)return Qu.apply(null,arguments);if(ku(t))return t;var n=Ju(t,e);if(n!==t)return n;return new xu(t,Ju)}sd.map=function(e){return new Wu(e,Ju)};sd.shallowMap=function(e){return new Wu(e,Su)};sd.deep=Qu;sd.ref=ed;sd.shallow=Zu;sd.struct=td;sd.deep.struct=td;sd.ref.struct=nd;var ld=e;Ot(function(t){ld=t.n;return e});var cd=new Set;var ud=[];var dd=100;var pd=N(function(){nt();if(!Nd){fd()}Nd=!1;var e=0;while(e++<dd){var t=ud;if(t.length==0)break;ud=[];for(var n=0;n<t.length;n++){t[n].updateIfNeededWithoutResurrecting()}}if(e>=dd){throw new Error("Computed values did not stabilize after "+dd+" iterations")}pd()});var hd=function(){function e(e){this.cause=e}return e}();function fd(){if(cd.size>0){cd.forEach(function(e){e.buryIfDead()});cd.clear()}}function md(e){return e instanceof hd}var vd=function(){function t(t,n,r){this.atomId=yu();this.fn=t;this.that=n;this.value=e;this.state=0;this.comparator=r;this.using=e;this.usedBy=e;this.partialResults=!1;this.zombieCounter=0}t.prototype.markUsing=function(t,n){var r=this.using;if(r===e){r=new Map;r.set(t,n);this.using=r;return!0}if(r.has(t))return!1;r.set(t,n);return!0};t.prototype.waitingInvalidate=function(e){throw new Error("Invalid operation")};t.prototype.invalidateBy=function(t){var n=this.using;if(n===e)return;if(n.delete(t)){var r=this.state;if(r===7){r=this.waitingInvalidate(!1)}if(r===2){throw new Error("Modifying inputs during updating computed")}if(r===3||r===4){this.state=1;var a=this.usedBy;if(a!==e){var o=!1;a.forEach(function(e){if(bu(e))e.softInvalidate();else o=!0});if(o){this.scheduleUpdateNextFrame()}}}this.freeUsings()}};t.prototype.softInvalidate=function(){var t=this.state;if(t===7){t=this.waitingInvalidate(!0)}if(t===2){throw new Error("Modifying inputs during updating computed")}if(t===3){this.state=4;var n=this.usedBy;if(n!==e){var r=!1;n.forEach(function(e){if(bu(e))e.softInvalidate();else r=!0});if(r){this.scheduleUpdateNextFrame()}}}};t.prototype.scheduleUpdateNextFrame=function(){if(ud.length==0)F(ld);ud.push(this)};t.prototype.freeUsings=function(){var t=this;var n=this.using;if(n!==e){this.using=e;n.forEach(function(e){if(bu(e)){e.unmarkUsedBy(t.atomId)}else{e.ctxs.delete(t.atomId)}})}};t.prototype.free=function(){var t=this;var n=this.using;if(n!==e){this.using=e;n.forEach(function(e){if(bu(e)){e.unmarkUsedBy(t.atomId);e.buryIfDead()}else{e.ctxs.delete(t.atomId)}})}this.value=e};t.prototype.buryIfDead=function(){var t=this;if(this.usedBy!==e&&this.usedBy.size>0){return}cd.delete(this);var n=this.state;if(n===8||n===7)return;if(this.zombieTime){this.state=8;var r=++this.zombieCounter;setTimeout(function(){if(t.state===8&&t.zombieCounter==r){t.free()}},this.zombieTime);return}this.state=0;this.free()};t.prototype.dispose=function(){cd.delete(this);this.state=6;this.free()};t.prototype.unmarkUsedBy=function(e){this.usedBy.delete(e);if(this.usedBy.size===0){cd.add(this)}};t.prototype.markUsage=function(){var t=be();if(t===e)return!0;if(bu(t)){if(t.markUsing(this.atomId,this)){var n=this.usedBy;if(n===e){n=new Map;this.usedBy=n}n.set(t.atomId,t)}}else{var r=t.$bobxCtx;if(r===e){r=new Map;r.ctxId=yu();t.$bobxCtx=r}if(r.has(this.atomId))return!1;r.set(this.atomId,this);var n=this.usedBy;if(n===e){n=new Map;this.usedBy=n}n.set(r.ctxId,t)}return!1};t.prototype.invalidate=function(){var t=this.usedBy;if(t!==e){t.forEach(function(e){if(bu(e))e.invalidateBy(this.atomId);else{e.$bobxCtx.delete(this.atomId);F(e)}},this);t.clear()}cd.add(this)};t.prototype.updateIfNeededWithoutResurrecting=function(){if(this.state===6)return;this.updateIfNeeded()};t.prototype.updateIfNeeded=function(){var t=this.state;if(t===4){var n=this.using;if(n!==e){n.forEach(function(e){if(bu(e)){e.updateIfNeeded()}})}if(this.state===4){this.state=3;return!0}this.update();return!0}if(t!==3){this.update();return!0}return!1};t.prototype.call=function(){try{return this.fn.call(this.that)}catch(e){return new hd(e)}};t.prototype.update=function(){if(Nd&&this.partialResults){Pd();return}var e=be();xe(this);this.partialResults=!1;this.freeUsings();if(this.state===0){this.state=2;this.value=this.call()}else{this.state=2;var t=this.call();if(!this.comparator(this.value,t)){this.value=t;this.invalidate()}}this.partialResults=Nd;this.state=3;xe(e);if(this.partialResults){this.state=1;Pd()}};t.prototype.checkRecursion=function(){if(this.state===2){throw new Error("Recursively calling computed value")}};t.prototype.run=function(){this.checkRecursion();var e=this.updateIfNeeded();var t=this.markUsage();var n=this.value;if(e&&t)this.buryIfDead();if(md(n))throw n.cause;return n};return t}();mu(vd.prototype,"$bobx",Uu);function gd(e){var t=0,n=e.length,r=0;while(r<n)t=(t<<5)-t+e.charCodeAt(r++)|0;return t}var yd=new WeakMap;function bd(t){var n=yd.get(t);if(n!==e)return n;n=yu()|0;yd.set(t,n);return n}function xd(e){var t=0,n=e.length,r=0;while(r<n)t=(t<<5)-t+_d(e[r++])|0;return t}function _d(t){if(t==e)return 1;if(t===!1)return 2;if(t===!0)return 3;if(p(t))return t|0;if(h(t))return gd(t);if(g(t))return xd(t);return bd(t)}var Sd={getHashCode:xd,isEqual:function(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++){if(!hu(e[r],t[r]))return!1}return!0},comparator:hu};function kd(t){return function(n,r,a){od(n);r=r+"\t"+n.constructor[ad];if(a.get!=e){var o=a.get;return{configurable:!0,enumerable:!1,get:function(){var n=this.$bobx[r];if(n===e){var a=Iu(this);n=new vd(o,this,t);a[r]=n}return n.run()},set:a.set}}else{var i=a.value;Cd(i);if(i.length>0){return Id(r,i,{comparator:t})}return{configurable:!0,enumerable:!1,value:function(){var n=this.$bobx[r];if(n===e){var a=Iu(this);n=new vd(i,this,t);a[r]=n}return n.run()}}}}}function Cd(e){if(!m(e)){throw new Error("Computed could be only function")}}function wd(t){return function(n,r,a){od(n);r=r+"\t"+n.constructor[ad];if(a.get!=e){throw new Error("Customized Computed could not be property")}else{var o=a.value;Cd(o);return Id(r,o,t)}}}var Ed=kd(hu);Ed.struct=kd(Tu);Ed.equals=kd;Ed.customized=wd;var Dd=Array.prototype.slice;function Id(t,n,r){return{configurable:!0,enumerable:!1,value:function(){var a=this.$bobx[t];if(a===e){var o=Iu(this);a=new Ad(n,this,r);o[t]=a}return a.run(Dd.call(arguments))}}}var Td=function(e){n(t,e);function t(t,n,r,a,o,i){var s=e.call(this,t,n,r)||this;s.owner=a;s.hashCode=o;s.params=i;return s}t.prototype.call=function(){try{return this.fn.apply(this.that,this.params)}catch(e){return new hd(e)}};t.prototype.free=function(){e.prototype.free.call(this);this.state=6;this.owner.free(this)};return t}(vd);var Ad=function(){function t(e,t,n){this.fn=e;this.that=t;this.map=new Map;this.getHashCode=n.getHashCode||Sd.getHashCode;this.isEqual=n.isEqual||Sd.isEqual;this.onFree=n.onFree;this.comparator=n.comparator||Sd.comparator;this.disposing=!1}t.prototype.run=function(t){var n=this.getHashCode(t);var r=this.map.get(n);var a=e;if(r===e){a=new Td(this.fn,this.that,this.comparator,this,n,t);r=[a];this.map.set(n,r)}else{var o=r.length;for(var i=0;i<o;i++){if(this.isEqual(t,r[i].params)){a=r[i];break}}if(a===e){a=new Td(this.fn,this.that,this.comparator,this,n,t);r.push(a)}}return a.run()};t.prototype.free=function(t){if(this.onFree!==e){var n=t.value;if(md(n))n=e;this.onFree(n,t.params)}if(this.disposing)return;var r=t.hashCode;var a=this.map.get(r);if(a.length==1){this.map.delete(r)}else{var o=a.indexOf(t);a.splice(o,1)}};t.prototype.dispose=function(){this.disposing=!0;this.map.forEach(function(e){for(var t=0,n=e.length;t<n;t++){e[t].dispose()}})};return t}();nt();var Nd=!1;function Pd(){var t=be();if(t!==e){if(bu(t)){t.partialResults=!0}else{F(t)}}}var Fd=function(){function t(t,n,r){this.atomId=yu();this.expression=t;this.reaction=n;this.value=e;this.state=0;this.comparator=r;this.using=e;this.partialResults=!1}t.prototype.markUsing=function(t,n){var r=this.using;if(r===e){r=new Map;r.set(t,n);this.using=r;return!0}if(r.has(t))return!1;r.set(t,n);return!0};t.prototype.invalidateBy=function(t){var n=this.using;if(n===e)return;if(n.delete(t)){var r=this.state;if(r===3||r===4){this.state=1;this.schedule()}this.freeUsings()}};t.prototype.softInvalidate=function(){var e=this.state;if(e===3){this.state=4;this.schedule()}};t.prototype.schedule=function(){if(ud.length==0)F(ld);ud.push(this)};t.prototype.freeUsings=function(){var t=this;var n=this.using;if(n!==e){this.using=e;n.forEach(function(e){if(bu(e)){e.unmarkUsedBy(t.atomId)}else{e.ctxs.delete(t.atomId)}})}};t.prototype.free=function(){var t=this;var n=this.using;if(n!==e){this.using=e;n.forEach(function(e){if(bu(e)){e.unmarkUsedBy(t.atomId);e.buryIfDead()}else{e.ctxs.delete(t.atomId)}})}this.value=e};t.prototype.buryIfDead=function(){throw new Error("Reaction-buryIfDead")};t.prototype.dispose=function(){this.state=6;this.free()};t.prototype.unmarkUsedBy=function(e){throw new Error("Reaction-unmarkUsedBy")};t.prototype.markUsage=function(){throw new Error("Reaction-markUsage")};t.prototype.invalidate=function(){throw new Error("Reaction-invalidate")};t.prototype.updateIfNeededWithoutResurrecting=function(){if(this.state===6)return;this.updateIfNeeded()};t.prototype.updateIfNeeded=function(){var t=this.state;if(t===4){var n=this.using;if(n!==e){n.forEach(function(e){if(bu(e)){e.updateIfNeeded()}})}if(this.state===4){this.state=3;return!0}this.update();return!0}if(t!==3){this.update();return!0}return!1};t.prototype.call=function(){try{return this.expression(this)}catch(e){return new hd(e)}};t.prototype.update=function(){if(Nd&&this.partialResults){Pd();return}var e=be();xe(this);this.partialResults=!1;this.freeUsings();var t=!1;if(this.state===0){this.state=3;this.value=this.call();t=!0}else{this.state=3;var n=this.call();if(!this.comparator(this.value,n)){this.value=n;t=!0}}this.partialResults=Nd;xe(e);if(this.partialResults){this.state=1;Pd()}if(t)this.runReaction()};t.prototype.runReaction=function(){var t=this.value;if(md(t))throw t.cause;var n=this.reaction;if(n!==e){n(t,this)}};return t}();mu(Fd.prototype,"$bobx",Uu);var Bd=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.collapsedMenu=!0;return t}t.prototype.render=function(){var e=this;return Ln(Es,{header:!0,static:0},Ln(Sl,{fluid:!0},Ln(pc,null,Ln(uc,null,Ln("div",{onClick:this.goHome},Ln("img",{src:Pn("c.png"),height:20,style:Od}),"Bobril")),Ln(Rs,{variant:3,onClick:function(){return e.toggleMenu()}},Ln("span",{style:hs.srOnly},"Toggle navigation"),Ln("span",{style:ws.iconBar}),Ln("span",{style:ws.iconBar}),Ln("span",{style:ws.iconBar}))),Ln(ol,{collapsed:this.collapsedMenu},Ln(dc,null,Ln(hc,null,Ln(mc,{onClick:function(){return e.handleMenuItemClick()},active:ti(vp.name)},Ln("a",{href:ni(vp.name)},"Get Started")),Ln(mc,{onClick:function(){return e.handleMenuItemClick()},active:ti(yp.name)},Ln("a",{href:ni(yp.name)},"Eco-System"))," ",Ln(mc,{onClick:function(){return e.handleMenuItemClick()},active:ti(gp.name)},Ln("a",{href:ni(gp.name)},"More Tutorials")),Ln(mc,{onClick:function(){return e.handleMenuItemClick()},active:ti(bp.name)},Ln("a",{href:ni(bp.name)},"Theory"))," ",Ln(mc,{onClick:function(){return e.handleMenuItemClick()},active:ti(xp.name)},Ln("a",{href:ni(xp.name)},"Changelog"))),Ln(hc,{style:ws.navbarRight},Ln(mc,{onClick:function(){return e.handleMenuItemClick()}},Ln("a",{href:"https://badge.fury.io/js/bobril",target:0},Ln("img",{src:"https://badge.fury.io/js/bobril.svg",alt:"npm version",height:18}))),Ln(mc,{onClick:function(){return e.handleMenuItemClick()}},Ln("a",{href:"https://github.com/Bobris/Bobril",target:0},"GitHub")))))))};t.prototype.toggleMenu=function(){this.collapsedMenu=!this.collapsedMenu};t.prototype.handleMenuItemClick=function(){this.collapsedMenu=!0;return!1};t.prototype.goHome=function(){di(ri(_p.name));return!0};a([sd],t.prototype,"collapsedMenu",void 0);a([or],t.prototype,"goHome",null);return t}(zn);var Od=so({marginRight:5,marginBottom:3});var Rd=function(){var e={};var t={exports:e};var n=this;var r=typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"&&self instanceof WorkerGlobalScope?self:{};var a=function(e){var t=/\blang(?:uage)?-([\w-]+)\b/i;var n=0;var r={};var a={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){if(t instanceof o){return new o(t.type,e(t.content),t.alias)}else if(Array.isArray(t)){return t.map(e)}else{return t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")}},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){if(!e["__id"]){Object.defineProperty(e,"__id",{value:++n})}return e["__id"]},clone:function e(t,n){n=n||{};var r;var o;switch(a.util.type(t)){case"Object":o=a.util.objId(t);if(n[o]){return n[o]}r={};n[o]=r;for(var i in t){if(t.hasOwnProperty(i)){r[i]=e(t[i],n)}}return r;case"Array":o=a.util.objId(t);if(n[o]){return n[o]}r=[];n[o]=r;t.forEach(function(t,a){r[a]=e(t,n)});return r;default:return t}},getLanguage:function(e){while(e&&!t.test(e.className)){e=e.parentElement}if(e){return(e.className.match(t)||[,"none"])[1].toLowerCase()}return"none"},currentScript:function(){if(typeof document==="undefined"){return null}if("currentScript"in document&&1<2){return document.currentScript}try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):.+:.+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t){if(t[n].src==e){return t[n]}}}return null}},isActive:function(e,t,n){var r="no-"+t;while(e){var a=e.classList;if(a.contains(t)){return!0}if(a.contains(r)){return!1}e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=a.util.clone(a.languages[e]);for(var r in t){n[r]=t[r]}return n},insertBefore:function(e,t,n,r){r=r||a.languages;var o=r[e];var i={};for(var s in o){if(o.hasOwnProperty(s)){if(s==t){for(var l in n){if(n.hasOwnProperty(l)){i[l]=n[l]}}}if(!n.hasOwnProperty(s)){i[s]=o[s]}}}var c=r[e];r[e]=i;a.languages.DFS(a.languages,function(t,n){if(n===c&&t!=e){this[t]=i}});return i},DFS:function e(t,n,r,o){o=o||{};var i=a.util.objId;for(var s in t){if(t.hasOwnProperty(s)){n.call(t,s,t[s],r||s);var l=t[s],c=a.util.type(l);if(c==="Object"&&!o[i(l)]){o[i(l)]=!0;e(l,n,null,o)}else if(c==="Array"&&!o[i(l)]){o[i(l)]=!0;e(l,n,s,o)}}}}},plugins:{},highlightAll:function(e,t){a.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};a.hooks.run("before-highlightall",r);r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector));a.hooks.run("before-all-elements-highlight",r);for(var o=0,i;i=r.elements[o++];){a.highlightElement(i,t===!0,r.callback)}},highlightElement:function(n,r,o){var i=a.util.getLanguage(n);var s=a.languages[i];n.className=n.className.replace(t,"").replace(/\s+/g," ")+" language-"+i;var l=n.parentElement;if(l&&l.nodeName.toLowerCase()==="pre"){l.className=l.className.replace(t,"").replace(/\s+/g," ")+" language-"+i}var c=n.textContent;var u={element:n,language:i,grammar:s,code:c};function d(e){u.highlightedCode=e;a.hooks.run("before-insert",u);u.element.innerHTML=u.highlightedCode;a.hooks.run("after-highlight",u);a.hooks.run("complete",u);o&&o.call(u.element)}a.hooks.run("before-sanity-check",u);l=u.element.parentElement;if(l&&l.nodeName.toLowerCase()==="pre"&&!l.hasAttribute("tabindex")){l.setAttribute("tabindex","0")}if(!u.code){a.hooks.run("complete",u);o&&o.call(u.element);return}a.hooks.run("before-highlight",u);if(!u.grammar){d(a.util.encode(u.code));return}if(r&&e.Worker){var p=new Worker(a.filename);p.onmessage=function(e){d(e.data)};p.postMessage(JSON.stringify({language:u.language,code:u.code,immediateClose:!0}))}else{d(a.highlight(u.code,u.grammar,u.language))}},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};a.hooks.run("before-tokenize",r);r.tokens=a.tokenize(r.code,r.grammar);a.hooks.run("after-tokenize",r);return o.stringify(a.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n){t[r]=n[r]}delete t.rest}var a=new l;c(a,a.head,e);s(e,a,t,a.head,0);return d(a)},hooks:{all:{},add:function(e,t){var n=a.hooks.all;n[e]=n[e]||[];n[e].push(t)},run:function(e,t){var n=a.hooks.all[e];if(!n||!n.length){return}for(var r=0,o;o=n[r++];){o(t)}}},Token:o};e.Prism=a;function o(e,t,n,r){this.type=e;this.content=t;this.alias=n;this.length=(r||"").length|0}o.stringify=function e(t,n){if(typeof t=="string"){return t}if(Array.isArray(t)){var r="";t.forEach(function(t){r+=e(t,n)});return r}var o={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n};var i=t.alias;if(i){if(Array.isArray(i)){Array.prototype.push.apply(o.classes,i)}else{o.classes.push(i)}}a.hooks.run("wrap",o);var s="";for(var l in o.attributes){s+=" "+l+'="'+(o.attributes[l]||"").replace(/"/g,""")+'"'}return"<"+o.tag+' class="'+o.classes.join(" ")+'"'+s+">"+o.content+"</"+o.tag+">"};function i(e,t,n,r){e.lastIndex=t;var a=e.exec(n);if(a&&r&&a[1]){var o=a[1].length;a.index+=o;a[0]=a[0].slice(o)}return a}function s(e,t,n,r,l,d){for(var p in n){if(!n.hasOwnProperty(p)||!n[p]){continue}var h=n[p];h=Array.isArray(h)?h:[h];for(var f=0;f<h.length;++f){if(d&&d.cause==p+","+f){return}var m=h[f],v=m.inside,g=!!m.lookbehind,y=!!m.greedy,b=m.alias;if(y&&!m.pattern.global){var x=m.pattern.toString().match(/[imsuy]*$/)[0];m.pattern=RegExp(m.pattern.source,x+"g")}var _=m.pattern||m;for(var S=r.next,k=l;S!==t.tail;k+=S.value.length,S=S.next){if(d&&k>=d.reach){break}var C=S.value;if(t.length>e.length){return}if(C instanceof o){continue}var w=1,E;if(y){E=i(_,k,e,g);if(!E){break}var D=E.index,I=E.index+E[0].length,T=k;T+=S.value.length;while(D>=T){S=S.next;T+=S.value.length}T-=S.value.length;k=T;if(S.value instanceof o){continue}for(var A=S;A!==t.tail&&(T<I||typeof A.value==="string");A=A.next){w++;T+=A.value.length}w--;C=e.slice(k,T);E.index-=k}else{E=i(_,0,C,g);if(!E){continue}}var D=E.index,N=E[0],P=C.slice(0,D),F=C.slice(D+N.length),B=k+C.length;if(d&&B>d.reach){d.reach=B}var O=S.prev;if(P){O=c(t,O,P);k+=P.length}u(t,O,w);var R=new o(p,v?a.tokenize(N,v):N,b,N);S=c(t,O,R);if(F){c(t,S,F)}if(w>1){var $={cause:p+","+f,reach:B};s(e,t,n,S.prev,k,$);if(d&&$.reach>d.reach){d.reach=$.reach}}}}}}function l(){var e={value:null,prev:null,next:null};var t={value:null,prev:e,next:null};e.next=t;this.head=e;this.tail=t;this.length=0}function c(e,t,n){var r=t.next;var a={value:n,prev:t,next:r};t.next=a;r.prev=a;e.length++;return a}function u(e,t,n){var r=t.next;for(var a=0;a<n&&r!==e.tail;a++){r=r.next}t.next=r;r.prev=t;e.length-=a}function d(e){var t=[];var n=e.head.next;while(n!==e.tail){t.push(n.value);n=n.next}return t}if(!e.document){if(!e.addEventListener){return a}if(!a.disableWorkerMessageHandler){e.addEventListener("message",function(t){var n=JSON.parse(t.data);var r=n.language;var o=n.code;var i=n.immediateClose;e.postMessage(a.highlight(o,a.languages[r],r));if(i){e.close()}},!1)}return a}var p=a.util.currentScript();if(p){a.filename=p.src;if(p.hasAttribute("data-manual")){a.manual=!0}}function h(){if(!a.manual){a.highlightAll()}}if(!a.manual){var f=document.readyState;if(f==="loading"||f==="interactive"&&p&&p.defer){document.addEventListener("DOMContentLoaded",h)}else{if(window.requestAnimationFrame){window.requestAnimationFrame(h)}else{window.setTimeout(h,16)}}}return a}(r);if(typeof t!=="undefined"&&t.exports){t.exports=a}if(typeof n!=="undefined"){n.Prism=a}a.languages.markup={comment:/<!--[\s\S]*?-->/,prolog:/<\?[\s\S]+?\?>/,doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/,name:/[^\s<>'"]+/}},cdata:/<!\[CDATA\[[\s\S]*?\]\]>/i,tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]};a.languages.markup["tag"].inside["attr-value"].inside["entity"]=a.languages.markup["entity"];a.languages.markup["doctype"].inside["internal-subset"].inside=a.languages.markup;a.hooks.add("wrap",function(e){if(e.type==="entity"){e.attributes["title"]=e.content.replace(/&/,"&")}});Object.defineProperty(a.languages.markup.tag,"addInlined",{value:function e(t,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:a.languages[n]};r["cdata"]=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};o["language-"+n]={pattern:/[\s\S]+/,inside:a.languages[n]};var i={};i[t]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return t}),"i"),lookbehind:!0,greedy:!0,inside:o};a.languages.insertBefore("markup","cdata",i)}});Object.defineProperty(a.languages.markup.tag,"addAttribute",{value:function(e,t){a.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:a.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}});a.languages.html=a.languages.markup;a.languages.mathml=a.languages.markup;a.languages.svg=a.languages.markup;a.languages.xml=a.languages.extend("markup",{});a.languages.ssml=a.languages.xml;a.languages.atom=a.languages.xml;a.languages.rss=a.languages.xml;(function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/};e.languages.css["atrule"].inside.rest=e.languages.css;var n=e.languages.markup;if(n){n.tag.addInlined("style","css");n.tag.addAttribute("style","css")}})(a);a.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/};a.languages.javascript=a.languages.extend("clike",{"class-name":[a.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/});a.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/;a.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:a.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:a.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:a.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:a.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:a.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/});a.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:a.languages.javascript}},string:/[\s\S]+/}}});if(a.languages.markup){a.languages.markup.tag.addInlined("script","javascript");a.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")}
a.languages.js=a.languages.javascript;(function(){if(typeof a==="undefined"||typeof document==="undefined"){return}if(!Element.prototype.matches){Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector}var e="Loading…";var t=function(e,t){return"✖ Error "+e+" while fetching file: "+t};var n="✖ Error: File does not exist or is empty";var r={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"};var o="data-src-status";var i="loading";var s="loaded";var l="failed";var c="pre[data-src]:not(["+o+'="'+s+'"])'+":not(["+o+'="'+i+'"])';var u=/\blang(?:uage)?-([\w-]+)\b/i;function d(e,t){var n=e.className;n=n.replace(u," ")+" language-"+t;e.className=n.replace(/\s+/g," ").trim()}a.hooks.add("before-highlightall",function(e){e.selector+=", "+c});a.hooks.add("before-sanity-check",function(u){var p=u.element;if(p.matches(c)){u.code="";p.setAttribute(o,i);var h=p.appendChild(document.createElement("CODE"));h.textContent=e;var f=p.getAttribute("data-src"),m=u.language;if(m==="none"){var v=(/\.(\w+)$/.exec(f)||[,"none"])[1];m=r[v]||v}d(h,m);d(p,m);var g=a.plugins.autoloader;if(g){g.loadLanguages(m)}var y=new XMLHttpRequest;y.open("GET",f,!0);y.onreadystatechange=function(){if(y.readyState==4){if(y.status<400&&y.responseText){p.setAttribute(o,s);h.textContent=y.responseText;a.highlightElement(h)}else{p.setAttribute(o,l);if(y.status>=400){h.textContent=t(y.status,y.statusText)}else{h.textContent=n}}}};y.send(null)}});a.plugins.fileHighlight={highlight:function e(t){var n=(t||document).querySelectorAll(c);for(var r=0,o;o=n[r++];){a.highlightElement(o)}}};var p=!1;a.fileHighlight=function(){if(!p){console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead.");p=!0}a.plugins.fileHighlight.highlight.apply(this,arguments)}})();return t.exports}.call(window);var $d=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.render=function(){return Ln(Hn,null,Ln(Bd,null),this.data.activeRouteHandler())};t.prototype.postRenderDom=function(){Rd.highlightAll();this.fixAnchors();this.fixImages()};t.prototype.fixAnchors=function(){var e=document.getElementsByTagName("a");for(var t=0;t<e.length;t++){if(!e[t].href){e[t].href="javascript:void(0);"}}};t.prototype.fixImages=function(){var e=document.getElementsByTagName("img");for(var t=0;t<e.length;t++){if(e[t].src&&e[t].src.indexOf("md-images")>=0){e[t].style.maxWidth="100%"}}};return t}(zn);function Gd(e){var t=e.large?[jc(0)]:[jc(1),jc(2),jc(3)];return Ln(Zc,{style:c(c([],l(t)),[e.large&&ls.textCenter])},Ln(pl,{size:1,span:6,style:e.large?ls.textRight:ls.textCenter},Ln("img",{src:Pn("b.png"),height:200})),Ln(pl,{size:1,span:6,style:[e.large?ls.textLeft:ls.textCenter,e.large&&jd]},Ln("h1",null,"Bobril"),Ln("div",{style:ls.small}," ","Reactlike framework"," ")))}var jd={paddingTop:45};function Ld(){return Ln(Zc,null,Ln(pl,{span:3,size:1},Ln("h4",null,"Type safe"),"TypeScript Framework for fast development of single-page applications for web"),Ln(pl,{span:3,size:1},Ln("h4",null,"Component-based"),"Compose page from encapsulated UI or virtual components"),Ln(pl,{span:3,size:1},Ln("h4",null,"Power"),"Optimized for high speed, small size and great developer experience"),Ln(pl,{span:3,size:1},Ln("h4",null,"Opinionated"),"Distributed with eco-system for build, translations, state management etc."))}var Md;var Hd=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.render=function(){return Md};t.id="get-started";return t}(zn);Md=Ln(Hn,null,Ln("h1",{id:"get-started"},"Get started"),Ln("p",null,"Go through this short tutorial and learn how easy you can create your own production-ready application."),Ln("h2",{id:"setup-build-environment"},"Setup build environment"),Ln("p",null,"Bobril is distributed with its own build system based on ",Ln("code",null,"NodeJS")," and ",Ln("code",null,".NET Core")," providing all necessary tasks like compilation, minification, translations, sprites, styles etc. You can install it globally by ",Ln("code",null,"npm"),"."),Ln("pre",null,Ln("code",{class:"language-bash"},"npm i bobril-build -g")),Ln("h2",{id:"prepare-application-package"},"Prepare application package"),Ln("p",null,"You can initialize your application as an usual ",Ln("code",null,"npm")," package by following."),Ln("pre",null,Ln("code",{class:"language-bash"},"npm init\nnpm i bobril --save")),Ln("h2",{id:"first-simple-component---hello"},"First Simple Component - Hello"),Ln("p",null,"Bobril component can be written as a ",Ln("code",null,"class")," extending base ",Ln("code",null,"Component")," class. The base class can have generic parameter to define its ",Ln("code",null,"data"),". This data works as an input from the outside usage."),Ln("p",null,"Content of component is defined by return value of ",Ln("code",null,"render()")," method. The XML-like syntax for return value is called TSX and it creates an object of type ",Ln("code",null,"IBobrilChildren")," (",Ln("code",null,"bobril")," nodes). TSX is optional and you can use standard TypeScript syntax for creating ",Ln("code",null,"bobril")," nodes as objects."),Ln("p",null,"Input data are accessible by ",Ln("code",null,"this.data"),"."),Ln("p",null,"The last line initialize the ",Ln("code",null,"bobril")," application with its entry node."),Ln("pre",null,Ln("code",{class:"language-tsx"},'import * as b from "bobril";\n\ninterface IHelloData {\n name: string;\n}\n\nclass Hello extends b.Component<IHelloData> {\n render(): b.IBobrilChildren {\n return (\n <>\n <h1>Hello {this.data.name}</h1>\n <p>\n This is your first <strong>bobril</strong> application.\n </p>\n </>\n );\n }\n}\n\nb.init(() => <Hello name="Developer" />);\n')),Ln("p",null,Ln("a",{href:"./static-examples/hello/index.html"},"Preview example")),Ln("p",null,"Now just start ",Ln("code",null,"bobril-build")," and let it watch your code for changes."),Ln("pre",null,Ln("code",{class:"language-bash"},"bb")),Ln("p",null,"To preview your application visit ",Ln("a",{href:"http://localhost:8080"},"http://localhost:8080")," ."),Ln("h2",{id:"bring-it-to-life-with-stateful-component"},"Bring it to life with Stateful Component"),Ln("p",null,"Component can work beside input data also with its internal state. This state is accessible by ",Ln("code",null,"this")," keyword. To re-invoke render after change of some part of internal state the ",Ln("code",null,"b.invalidate(this)")," function has to be called."),Ln("p",null,"This example also contains usage of another life-cycle methods:"),Ln("p",null,Ln("code",null,"init")," - called when bobril node is added to Virtual DOM for the first time"),Ln("p",null,Ln("code",null,"destroy")," - called before bobril node is removed from Virtual DOM"),Ln("p",null,Ln("code",null,"Timer")," component uses them for setup and clear the interval."),Ln("p",null,"The ",Ln("code",null,"<button>")," html element is used to reset the timer. Reset is implemented as a ",Ln("code",null,"callback")," (event delegation) for handling normalized ",Ln("code",null,"onChange")," event of the element. This normalized event handlers are automatically accessible on html elements or their handling can be written as a public life-cycle method of ",Ln("code",null,"Component")," class delegated up as a callback in input data."),Ln("pre",null,Ln("code",{class:"language-tsx"},'import * as b from "bobril";\n\nclass Timer extends b.Component {\n private _time: number = 0;\n private _intervalId: number = 0;\n\n init(): void {\n this._intervalId = window.setInterval(() => this.tick(), 1000);\n }\n\n render(): b.IBobrilChildren {\n return (\n <>\n <p>Time: {this._time} [s]</p>\n <button onClick={() => this.reset()}>RESET</button>\n </>\n );\n }\n\n destroy(): void {\n window.clearInterval(this._intervalId);\n }\n\n private tick(): void {\n this._time++;\n b.invalidate(this);\n }\n\n private reset(): boolean {\n this._time = 0;\n b.invalidate(this);\n return true;\n }\n}\n\nb.init(() => <Timer />);')),Ln("p",null,Ln("a",{href:"./static-examples/timer/index.html"},"Preview example")),Ln("h2",{id:"todo-application-and-functional-components"},"Todo Application and Functional Components"),Ln("p",null,"Combination of several ",Ln("code",null,"components")," with input ",Ln("code",null,"data"),", ",Ln("code",null,"event delegation")," and ",Ln("code",null,"internal state")," allows to create full Todo application."),Ln("p",null,"Following ",Ln("code",null,"functional component"),"s display list of items given from its parent. It uses ",Ln("code",null,"key")," attribute with unique id of item to assure clear identification of ",Ln("code",null,"<li>")," bobril node . Otherwise it could cause mismatch of internal states."),Ln("pre",null,Ln("code",{class:"language-tsx"},'import * as b from "bobril";\n\nexport interface IItem {\n id: number;\n text: string;\n}\n\nexport interface IListData {\n items: IItem[];\n}\n\nexport function List(data: IListData): b.IBobrilNode {\n return (\n <ul>\n {data.items.map(item => (\n <ListItem {...item} />\n ))}\n </ul>\n );\n}\n\nfunction ListItem(data: IItem): b.IBobrilNode {\n return <li key={data.id}>{data.text}</li>;\n}\n')),Ln("p",null,"Next component consists of input elements to get data from user. The result is delegated up with event callback. It also uses ",Ln("code",null,"virtual CSS")," created by ",Ln("code",null,"b.styleDef")," definition to setup margin between elements."),Ln("pre",null,Ln("code",{class:"language-tsx"},'import * as b from "bobril";\n\nexport interface IFormData {\n onSubmit(value: string): void;\n}\n\nexport class Form extends b.Component<IFormData> {\n private _value: string = "";\n\n render(): b.IBobrilChildren {\n return (\n <>\n <input\n type="text"\n value={this._value}\n onChange={newValue => this.updateValue(newValue)}\n onKeyUp={ev => ev.which === 13 && this.submit()}\n style={spaceOnRight}\n />\n <button onClick={() => this.submit()}>OK</button>\n </>\n );\n }\n\n private updateValue(newValue: string): void {\n this._value = newValue;\n b.invalidate(this);\n }\n\n private submit(): boolean {\n this.data.onSubmit(this._value);\n this._value = "";\n b.invalidate(this);\n return true;\n }\n}\n\nconst spaceOnRight = b.styleDef({ marginRight: 5 });\n')),Ln("p",null,"Finally the main component maintains list of items and composes the tree of final application."),Ln("pre",null,Ln("code",{class:"language-tsx"},'import * as b from "bobril";\nimport { List, IItem } from "./components/list";\nimport { Form } from "./components/form";\n\nclass Todo extends b.Component {\n private _todos: IItem[] = [];\n\n render(): b.IBobrilChildren {\n return (\n <>\n <h1>TODO</h1>\n <List items={this._todos} />\n <Form onSubmit={text => this.add(text)} />\n </>\n );\n }\n\n private add(text: string): void {\n this._todos.push({ id: Date.now(), text });\n b.invalidate(this);\n }\n}\n\nb.init(() => <Todo />);\n')),Ln("p",null,Ln("a",{href:"./static-examples/todo/index.html"},"Preview example")),Ln("h2",{id:"production-build"},"Production build"),Ln("p",null,"In the beginning of this page is described how to run ",Ln("code",null,"bobril-build")," in ",Ln("code",null,"interactive")," mode. Production-ready build (minified, uglified etc.) can be performed by command:"),Ln("pre",null,Ln("code",{class:"language-bash"},"bb b")),Ln("p",null,"The built application can be found in ",Ln("em",null,"dist")," folder."));var zd=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.active=!1;return t}t.prototype.init=function(){var e=this.getScrollListener();An(e);Ae(this,function(){return Nn(e)})};t.prototype.render=function(){var e=this;return Ln(Hn,null,Ln(Js,{active:!this.endsWith(this.data.targetId,"-top")&&this.active},Ln("a",{href:ni(this.data.targetId),onClick:function(){if(e.endsWith(e.data.targetId,"-top")){window.scrollTo(0,0);return!0}Nt();return!1}},this.data.title)),!!this.data.subs&&this.active&&Ln(Vd,{items:this.data.subs,nextId:this.data.nextId}))};t.prototype.postInitDom=function(){this.handlePosition()};t.prototype.getScrollListener=function(){var e=this;return function(t){if(!t||t.node){return}e.handlePosition()}};t.prototype.handlePosition=function(){var e=document.documentElement&&document.documentElement.scrollTop||document.body.scrollTop;var t=document.getElementById(this.data.targetId);var n=t?t.offsetTop:0;var r=0;if(this.data.nextId){var a=document.getElementById(this.data.nextId),o=a?a.offsetTop+a.clientHeight:document.body.scrollHeight;r=o}else{r=document.body.scrollHeight}var i=e>=n&&e<r;var s=i!==this.active;this.active=i;if(s){F(this)}};t.prototype.endsWith=function(e,t,n){var r=e.toString();if(typeof n!=="number"||!isFinite(n)||Math.floor(n)!==n||n>r.length){n=r.length}n-=t.length;var a=r.indexOf(t,n);return a!==-1&&a===n};return t}(zn);var Vd=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.render=function(){var e=this;return Ln(Ds,{style:ws.nav},this.data.items.map(function(t,n){var a=W({nextId:n<e.data.items.length-1?e.data.items[n+1].targetId:e.data.nextId},t);return Ln(zd,r({},a))}),this.data.topTargetId&&Ln(zd,{targetId:this.data.topTargetId,title:"Back to top"}))};return t}(zn);var Ud=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.init=function(){var e=this.getScrollListener();An(e);Ae(this,function(){return Nn(e)})};t.prototype.render=function(){return Ln(cs,{top:this.data.main?457:62,bottom:25},Ln("nav",{style:qd},Ln(Vd,{items:this.data.items,topTargetId:this.data.topTargetId})))};t.prototype.getScrollListener=function(){var e=this;return function(t){if(!t||t.node){return}F(e)}};return t}(zn);Pn("d.css");var qd=so("bs-docs-sidebar");function Wd(t){var n=[];if(t!==e){if(g(t)){t.forEach(function(e){return n=c(c([],l(n)),l(Wd(e)))})}else{n.push(t)}}return n}function Jd(t){return t.attrs?t.attrs.id:e}function Kd(e,t){var n=Zo(e,[Zo({url:e.url+"-top",name:e.name+"-top"})]);var r={subs:[],targetId:"",title:""};Yd(t,{route:n,level:0,item:r});console.log(n.children);console.log(r);return{route:n,item:r}}function Yd(t,n){Wd(t.children||(t.data?t.data.children:e)).forEach(function(e){var t=0;var r=Jd(e);if(e.tag&&r){var a=/(h)([1-6]){1}/.exec(e.tag);if(a&&a.length>2){t=parseInt(a[2],10)}}if(t<=1){n=Yd(e,n)}else{var o=Zo({name:r,url:r},[]),i=pi(e,r);e.component=i.component;if(t<=n.level){do{n=n.parent}while(n.level>=t)}n.route.children?n.route.children.push(o):n.route.children=[o];var s={subs:[],title:e.children,targetId:r};n.item.subs.push(s);n={route:o,level:t,parent:n,item:s}}});return n}var Xd=Kd({name:"get-started",url:"get-started",handler:function(){return Ln(Qd,null)}},Md);var Qd=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.render=function(){return Ln(Hn,null,Ln(tc,{style:[Zd]},Ln(Sl,null,Ln(Gd,{large:!0}),Ln(Gd,null),Ln(Ld,null))),Ln(Sl,null,Ln(pl,{size:1,span:9},Ln(Hd,null)),Ln(pl,{size:1,span:3},Ln(Ud,{items:Xd.item.subs,topTargetId:Xd.route.name+"-top",main:!0}))))};return t}(zn);var Zd={marginTop:-21};var ep;var tp=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.render=function(){return ep};t.id="more-tutorials";return t}(zn);ep=Ln(Hn,null,Ln("h1",{id:"more-tutorials"},"More tutorials"),Ln("p",null,"Explore more possibilities offered by bobril and its additional packages."),Ln("h2",{id:"nesting-components"},"Nesting Components"),Ln("h3",{id:"simple-nesting"},"Simple nesting"),Ln("p",null,"Some components are created just because to wrap some other components (to add styling, additional functionality etc.). To deal with nesting in components tree there is a special ",Ln("code",null,"input data")," property ",Ln("code",null,"children"),". It can be defined manually as in example or inherited from interface ",Ln("code",null,"b.IDataWithChildren"),"."),Ln("pre",null,Ln("code",{class:"language-tsx"},'import * as b from "bobril";\n\ninterface IHelloData {\n name: string;\n children: b.IBobrilChildren;\n}\n\nclass Hello extends b.Component<IHelloData> {\n render(): b.IBobrilChildren {\n return (\n <>\n <h1>Hello {this.data.name}</h1>\n {this.data.children}\n </>\n );\n }\n}\n\nb.init(() => (\n <Hello name="Developer">\n <p>\n This is your first <strong>bobril</strong> application.\n </p>\n </Hello>\n));\n')),Ln("p",null,Ln("a",{href:"./static-examples/hello-with-children/index.html"},"Preview example")),Ln("h3",{id:"better-todo-with-slots-for-layout"},"Better Todo with slots for layout"),Ln("p",null,"Next example improves previous Todo example and shows more complex implementation with special component for Layout."),Ln("p",null,"Following list allows to check state of task in todo list. ",Ln("code",null,"Checked")," event is delegated up with callback ",Ln("code",null,"onItemChecked")," in ",Ln("code",null,"input data"),"."),Ln("pre",null,Ln("code",{class:"language-tsx"},'import * as b from "bobril";\nimport { ListItem, IItem } from "./listItem";\n\nexport interface IListData {\n items: IItem[];\n onItemChecked(index: number, value: boolean): void;\n}\n\nexport function List(data: IListData): b.IBobrilNode {\n return (\n <ul style={noBullets}>\n {data.items.map((item, index) => (\n <ListItem {...item} index={index} onItemChecked={data.onItemChecked} />\n ))}\n </ul>\n );\n}\n\nconst noBullets = b.styleDef({ listStyleType: "none" });\n')),Ln("p",null,Ln("code",null,"ListItem")," component reflects the ",Ln("code",null,"done")," state with conditional apply of ",Ln("code",null,"strikeOut")," style."),Ln("pre",null,Ln("code",{class:"language-tsx"},'import * as b from "bobril";\n\nexport interface IItem {\n id: number;\n text: string;\n done: boolean;\n}\n\nexport interface IItemData extends IItem {\n index: number;\n onItemChecked(index: number, value: boolean): void;\n}\nexport function ListItem(data: IItemData): b.IBobrilNode {\n return (\n <li key={data.id} style={data.done && strikeOut}>\n <input\n type="checkbox"\n value={data.done}\n onChange={value => data.onItemChecked(data.index, value)}\n />\n {data.text}\n </li>\n );\n}\n\nconst strikeOut = b.styleDef({ textDecoration: "line-through" });\n')),Ln("p",null,"Form is the same as in previous example."),Ln("pre",null,Ln("code",{class:"language-tsx"},'import * as b from "bobril";\n\nexport interface IFormData {\n onSubmit(value: string): void;\n}\n\nexport class Form extends b.Component<IFormData> {\n private _value: string = "";\n\n render(): b.IBobrilChildren {\n return (\n <>\n <input\n type="text"\n value={this._value}\n onChange={newValue => this.updateValue(newValue)}\n onKeyUp={ev => ev.which === 13 && this.submit()}\n style={spaceOnRight}\n />\n <button onClick={() => this.submit()}>OK</button>\n </>\n );\n }\n\n private updateValue(newValue: string): void {\n this._value = newValue;\n b.invalidate(this);\n }\n\n private submit(): boolean {\n this.data.onSubmit(this._value);\n this._value = "";\n b.invalidate(this);\n return true;\n }\n}\n\nconst spaceOnRight = b.styleDef({ marginRight: 5 });\n')),Ln("p",null,"Finally we come to layout component. It defines its ",Ln("code",null,"children")," as object with properties of type ",Ln("code",null,"b.IBobrilChildren")," for each specific part instead of one main ",Ln("code",null,"b.IBobrilChildren"),". Properties are accessible in ",Ln("code",null,"input data")," object in property ",Ln("code",null,"children"),"."),Ln("pre",null,Ln("code",{class:"language-tsx"},'import * as b from "bobril";\n\nexport interface ILayoutData {\n children: {\n header: b.IBobrilChildren;\n body: b.IBobrilChildren;\n footer: b.IBobrilChildren;\n };\n}\n\nexport function Layout(data: ILayoutData): b.IBobrilNode {\n return (\n <>\n <div>{data.children.header}</div>\n <div>{data.children.body}</div>\n <div>{data.children.footer}</div>\n </>\n );\n}\n')),Ln("p",null,"Now the layout can be used in ",Ln("em",null,"index.tsx"),". This pattern for layout is called ",Ln("code",null,"named slots projection"),"."),Ln("p",null,"There is also new function ",Ln("code",null,"edit")," for editing the current state of Todo Item."),Ln("pre",null,Ln("code",{class:"language-tsx"},'import * as b from "bobril";\nimport { Layout } from "./components/layout";\nimport { List } from "./components/list";\nimport { Form } from "./components/form";\nimport { IItem } from "./components/listItem";\n\nclass Todo extends b.Component {\n private _todos: IItem[] = [];\n\n render(): b.IBobrilChildren {\n return (\n <Layout>\n {{\n header: <h1>TODO</h1>,\n body: (\n <List\n items={this._todos}\n onItemChecked={(index, value) => this.edit(index, value)}\n />\n ),\n footer: <Form onSubmit={text => this.add(text)} />\n }}\n </Layout>\n );\n }\n\n private add(text: string): void {\n this._todos.push({ id: Date.now(), text, done: false });\n b.invalidate(this);\n }\n\n private edit(index: number, value: boolean): void {\n this._todos[index].done = value;\n b.invalidate(this);\n }\n}\n\nb.init(() => <Todo />);\n')),Ln("p",null,Ln("a",{href:"./static-examples/todo-advanced/index.html"},"Preview example")),Ln("h2",{id:"maintain-state-with-bobx"},"Maintain state with BobX"),Ln("p",null,"There is no special logic for maintaining the state in previous examples and reactions for any event is triggered manually with ",Ln("code",null,"b.invalidate"),"."),Ln("p",null,"To remove those duplicate calls and make state really reactive and maintainable there exists ",Ln("code",null,"BobX")," library. It uses ",Ln("code",null,"observable")," pattern and works the same way as the original ",Ln("code",null,"mobx")," but with few improvements."),Ln("h3",{id:"installation"},"Installation"),Ln("p",null,Ln("code",null,"BobX")," is standard npm package so just type in your terminal:"),Ln("pre",null,Ln("code",{class:"language-bash"},"npm i bobx --save")),Ln("h3",{id:"bobx-store"},"BobX store"),Ln("p",null,"It is a good practice too keep domain data standalone from view. Following example shows how to change previous Todo application to use bobx."),Ln("p",null,"Next code defines ",Ln("code",null,"TodoStore")," with private list of ",Ln("code",null,"_todos"),". This property is decorated with ",Ln("code",null,"@observable")," decorator. Every bobril node created from component which reads ",Ln("code",null,"_todos")," in its render ",Ln("em",null,"(observer)")," is automatically re-rendered on any change of ",Ln("code",null,"_todos")," ",Ln("em",null,"(observable subject)"),"."),Ln("pre",null,Ln("code",{class:"language-tsx"},'import { observable } from "bobx";\nimport { IItem } from "./components/listItem";\n\nexport class TodoStore {\n @observable\n private _todos: IItem[] = [];\n\n get list(): IItem[] {\n return this._todos;\n }\n\n add(text: string): void {\n this._todos.push({ id: Date.now(), text, done: false });\n }\n\n edit(index: number, value: boolean): void {\n this._todos[index].done = value;\n }\n}\n')),Ln("p",null,"Such store is ready to be used in main component of Todo application."),Ln("pre",null,Ln("code",{class:"language-tsx"},'import * as b from "bobril";\nimport { Layout } from "./components/layout";\nimport { List } from "./components/list";\nimport { Form } from "./components/form";\nimport { TodoStore } from "./store";\n\nclass Todo extends b.Component {\n todos = new TodoStore();\n\n render(): b.IBobrilChildren {\n return (\n <Layout>\n {{\n header: <h1>TODO</h1>,\n body: (\n <List\n items={this.todos.list}\n onItemChecked={(index, value) => this.todos.edit(index, value)}\n />\n ),\n footer: <Form onSubmit={text => this.todos.add(text)} />\n }}\n </Layout>\n );\n }\n}\n\nb.init(() => <Todo />);\n')),Ln("p",null,Ln("a",{href:"./static-examples/todo-advanced-bobx/index.html"},"Preview example")),Ln("h3",{id:"basic-optimizations"},"Basic optimizations"),Ln("p",null,Ln("code",null,"BobX")," provides several strategies to optimize watching of observable subjects to watch only what is really needed. Those are basic tools:"),Ln("p",null,Ln("code",null,"@observable")," - watches objects recursively - it stops recursion only on property with prototype (class objects)"),Ln("p",null,Ln("code",null,"@observable.shallow")," - watches objects reference and only first level of properties"),Ln("p",null,Ln("code",null,"@observable.ref")," - watches objects only reference level"),Ln("p",null,Ln("code",null,"@computed")," - special decorator creating memoization on getter using just ",Ln("code",null,"observable")," values for its computation"),Ln("h2",{id:"testing"},"Testing"),Ln("p",null,Ln("code",null,"Bobril-build")," provides automatic run of tests out-of-the box."),Ln("p",null,"The only condition is to have test files named with postfix ",Ln("em",null,"*","spec.ts")),Ln("p",null,"It has automatically referenced type definitions for ",Ln("code",null,"jasmine")," framework and run all tests on every rebuild. Results can be found in terminal."),Ln("pre",null,Ln("code",{class:"language-tsx"},'import { TodoStore } from "./store";\n\ndescribe("Todo store", () => {\n let store: TodoStore;\n\n beforeEach(() => (store = new TodoStore()));\n\n describe("edit", () => {\n it("should change state of item with new value just on specific index", () => {\n store.add("first");\n store.add("second");\n\n store.edit(1, true);\n\n expect(store.list[0].done).toBeFalsy();\n expect(store.list[1].done).toBeTruthy();\n });\n });\n});\n')),Ln("p",null,"Results are available on ",Ln("code",null,"bobril-build")," page on ",Ln("a",{href:"http://localhost:8080/bb/"},"http://localhost:8080/bb/"),". The tree can be filtered by the result and sorted by path or describe hierarchy."),Ln("p",null,Ln("img",{style:{maxWidth:"100%"},src:"https://github.com/bobril/bobril.github.io/raw/master/resources/md-images/result-page.png",alt:"Test and build results"})),Ln("p",null,"You can also check the code coverage. If you switch the ",Ln("em",null,"Coverage")," button on then the coverage is represented as a highlighted code in the Visual Studio Code:"),Ln("p",null,Ln("img",{style:{maxWidth:"100%"},src:"https://github.com/bobril/bobril.github.io/raw/master/resources/md-images/code-coverage.png",alt:"Code coverage"})),Ln("h2",{id:"routing"},"Routing"),Ln("h3",{id:"defining-routes"},"Defining Routes"),Ln("p",null,"Bobril has few methods for defining the application route tree:"),Ln("ul",null,Ln("li",null,Ln("code",null,"b.route")," - defines route parameters and a list of sub-routes"),Ln("li",null,Ln("code",null,"b.routes")," - registers routes to the application and calls ",Ln("code",null,"b.init")),Ln("li",null,Ln("code",null,"b.routeDefault")," - defines the default target route (the final leaf of the routing tree) if no sub-route is specified in the current url")),Ln("p",null,"Route parameters:"),Ln("ul",null,Ln("li",null,Ln("code",null,"url")," - Define the url of the route. A part of it can also include URL parameters. With these parameters, it is possible to modify how the page will be displayed."),Ln("li",null,Ln("code",null,"name")," - Define the name of the route. The name is used as an identifier during redirection. Name cannot contain “:” or “/“."),Ln("li",null,Ln("code",null,"handler")," - Define the content of a page at a specified URL. The content is rendered after redirection. Different routes can have the same handler."),Ln("li",null,Ln("code",null,"data")," - Already defined information for a specific handler. For example, there is one handler used in different routes. In one route, I want an editable page, and in the other one, I want to a read-only page. Both of these routes will have the same handler, but different parameter readOnly."),Ln("li",null,Ln("code",null,"keyBuilder"),"- KeyBuilder describes a function that defines which URL parameter changes cause the page to reload. When you change the parameters in the URL, bobril won’t recognize if the page is different or not. In this case, it’s necessary to define a function which determines when to call up the reload of the components (including init).")),Ln("pre",null,Ln("code",{class:"language-tsx"},'import * as b from "bobril";\nimport { PageOne } from "./pages/pageOne";\nimport { PageTwo } from "./pages/pageTwo";\nimport { MainPage } from "./pages/main";\n\nb.routes(\n b.route({ handler: data => <MainPage {...data} /> }, [\n b.route({ url: "/one", name: "one", handler: data => <PageOne {...data} /> }),\n b.route({\n url: "/two/:text?",\n name: "two",\n data: { readOnly: false },\n handler: data => <PageTwo {...data} />\n }),\n b.route({\n url: "/twoReadOnly/:text?",\n name: "twoReadOnly",\n data: { readOnly: true },\n handler: data => <PageTwo {...data} />,\n keyBuilder: keyBuilder\n }),\n b.routeDefault({ handler: data => <PageOne {...data} /> })\n ])\n);\n\nfunction keyBuilder(params: b.Params): string {\n if (params.text) {\n return params.text;\n }\n throw new Error("Route parameter doesn\'t exist ");\n}\n')),Ln("p",null,Ln("a",{href:"./static-examples/routing/index.html"},"Preview example")),Ln("p",null,"The whole application will be handled by a handler ",Ln("code",null,"MainPage")," with sub-routes ",Ln("em",null,"one")," and ",Ln("em",null,"two")," (",Ln("em",null,"twoReadOnly"),") on urls ",Ln("code",null,"/one")," and ",Ln("code",null,"/two/")," (",Ln("code",null,"/twoReadOnly/"),") handled by handlers ",Ln("code",null,"PageOne")," and ",Ln("code",null,"PageTwo")," and the default handler ",Ln("code",null,"PageOne")," will be used when no sub-route is specified."),Ln("p",null,"The url for page ",Ln("em",null,"two")," contains a parameter specification after a second slash. It is defined by a ",Ln("strong",null,"colon")," and a ",Ln("strong",null,"name")," of the parameter. The ",Ln("strong",null,"question mark")," defines the parameter as optional. Route parameters can then be found in the input data prpoerty ",Ln("code",null,"routeParams"),"."),Ln("h3",{id:"handling-routes"},"Handling Routes"),Ln("p",null,"Now we will write a ",Ln("code",null,"MainPage")," component to render some own content and the visual content of the active sub-route. To do this a function provided in ",Ln("code",null,"data.activeRouteHandler")," is used."),Ln("pre",null,Ln("code",{class:"language-tsx"},'import * as b from "bobril";\n\nexport let loggedIn = false;\n\nexport class MainPage extends b.Component<b.IRouteHandlerData> {\n render(): b.IBobrilNode {\n return (\n <>\n <h1>Routing</h1>\n <p>\n Logged In:\n <input type="checkbox" value={loggedIn} onChange={value => (loggedIn = value)} />\n </p>\n <hr />\n {this.data.activeRouteHandler()}\n </>\n );\n }\n}\n')),Ln("p",null,"This component renders a header, a line and the visual content of current active sub-route."),Ln("h3",{id:"transitions"},"Transitions"),Ln("p",null,"Other part is to define sub-pages and transitions between those pages. Bobril offers the following functions and interface to define and run transitions between routes:"),Ln("ul",null,Ln("li",null,Ln("code",null,"b.IRouteTransition")," - interface for a transition definition (target name, parameters etc.)"),Ln("li",null,Ln("code",null,"b.createRedirectReplace")," - creates IRouteTransition object for redirect without saving history"),Ln("li",null,Ln("code",null,"b.createRedirectPush")," - creates IRouteTransition object for redirect with saving history"),Ln("li",null,Ln("code",null,"b.runTransition")," - runs a transition according to an input IRouteTransition object"),Ln("li",null,Ln("code",null,"b.link")," - changes an input IBobrilNode to a link to the route of a specified name and with specified optional params"),Ln("li",null,Ln("code",null,"<Link>")," - b.link functiona s a ",Ln("code",null,"component"))),Ln("p",null,"Example of the redirect definition from the ",Ln("code",null,"PageOne")," to the ",Ln("code",null,"PageTwo"),":"),Ln("pre",null,Ln("code",{
class:"language-tsx"},'import * as b from "bobril";\nimport { observable } from "bobx";\n\nexport class PageOne extends b.Component {\n @observable private _text: string = "";\n\n render(): b.IBobrilNode {\n return (\n <>\n <input type="text" value={this._text} onChange={newVal => (this._text = newVal)} />\n <button onClick={this.redirectToPageTwoWithManageRight}>Confirm with manage right</button>\n <button onClick={this.redirectToPageTwoWithViewRight}>Confirm with only view right</button>\n </>\n );\n }\n canDeactivate(): b.IRouteCanResult {\n return !!this._text.trim() || confirm("The textbox is empty. Are you sure?");\n }\n\n private redirectToPageTwoWithManageRight = (): void => {\n b.runTransition(b.createRedirectPush("two", { text: this._text }));\n };\n\n private redirectToPageTwoWithViewRight = (): void => {\n b.runTransition(b.createRedirectPush("twoReadOnly", { text: this._text }));\n };\n}\n')),Ln("p",null,"The code in onClick callback of button creates and runs a transition to the page ",Ln("em",null,"two")," with an object defining the value of a ",Ln("em",null,"text")," parameter."),Ln("p",null,"The transition above should be handled by the ",Ln("code",null,"PageTwo")," handler."),Ln("pre",null,Ln("code",{class:"language-tsx"},'import * as b from "bobril";\nimport { Link } from "bobril";\nimport { loggedIn } from "./main";\n\nexport interface IPageTwoData extends b.IRouteHandlerData {\n routeParams: { text?: string };\n readOnly: boolean;\n}\n\nexport class PageTwo extends b.Component<IPageTwoData> {\n private _text: string = this.data.routeParams.text || "nothing";\n\n static canActivate(): b.IRouteCanResult {\n if (loggedIn) {\n return true;\n }\n\n alert("You are not logged in!");\n return b.createRedirectReplace("one");\n }\n\n render(): b.IBobrilNode {\n return (\n <>\n {this.renderContent()}\n {this.renderLinkToHome()}\n {this.renderKeyBuilderNote()}\n </>\n );\n }\n\n private renderContent(): b.IBobrilNode {\n return <p>Your text: {this.data.readOnly ? this._text : this.renderInput()}</p>;\n }\n\n private renderInput(): b.IBobrilNode {\n return <input type="text" value={this._text} onChange={newVal => (this._text = newVal)} />;\n }\n\n private renderLinkToHome(): b.IBobrilNode {\n return (\n <Link name="one">\n <a>Go Home</a>\n </Link>\n );\n }\n private renderKeyBuilderNote(): b.IBobrilNode {\n return (\n <p>\n {!this.data.readOnly\n ? "Route parameter KeyBuilder is not defined. Nothing will happen when url parameter is changed."\n : "Route parameter KeyBuilder is defined. Text will change when url parameter is changed."}\n </p>\n );\n }\n}\n')),Ln("p",null,"The page receives the text parameter value in its ",Ln("code",null,"data.routeParams.text"),". It also defines a link node to the page ",Ln("em",null,"one")," by ",Ln("code",null,'<Link name="one">')," around ",Ln("code",null,"<a>")," element."),Ln("h3",{id:"transition-availability"},"Transition Availability"),Ln("p",null,"The example also contains codes determining the possibility to enter or leave the page. For these purposes, we can use the following static functions of ",Ln("code",null,"IBobrilComponent"),":"),Ln("ul",null,Ln("li",null,Ln("code",null,"static canActivate")," - It can stop the current transition in a target handler by returning false or redirect to the new specified transition"),Ln("li",null,Ln("code",null,"canDeactivate")," - Can stop the current transition in the a source handler by returning false or redirect to the new specified transition")),Ln("p",null,"The previous code also contains example, which handles leaving the page ",Ln("em",null,"one")," with empty value of a textbox by adding ",Ln("em",null,"canDeactivate")," function and example of handling the not logged user on accessing the page ",Ln("em",null,"two")," by adding ",Ln("code",null,"static canActivate")," function definition."),Ln("h2",{id:"localizations-and-formatting"},"Localizations and Formatting"),Ln("p",null,"Bobril applications can have localized or formatted content with culture specifics. "),Ln("h3",{id:"globalization-package"},"Globalization package"),Ln("p",null,"Bobril eco-system contains globalization package ",Ln("code",null,"bobril-g11n")," to deal with localizations and formatting. It has to be added as a dependency to project."),Ln("pre",null,Ln("code",{class:"language-bash"},"npm i bobril-g11n --save")),Ln("h3",{id:"start-globalization"},"Start globalization"),Ln("pre",null,Ln("code",{class:"language-tsx"},'import * as b from "bobril";\nimport { MainPage } from "./mainPage";\nimport { initGlobalization } from "bobril-g11n";\n\ninitGlobalization({ defaultLocale: "en-US" }).then(() => {\n b.routes(b.route({ handler: data => <MainPage {...data} /> }));\n});\n')),Ln("p",null,"This code imports and calls ",Ln("code",null,"initGlobalization")," function. Its argument with interface ",Ln("code",null,"IG11NConfig")," defines the default locale and optionally the function for getting the path to the localized files. ",Ln("code",null,"Bobril-build")," is configured to generate the default localization file ",Ln("em",null,"en-US.js")," directly to the root of the ",Ln("em",null,"dist")," folder. The ",Ln("code",null,"initGlobalization")," function returns a ",Ln("code",null,"Promise object"),". "),Ln("p",null,"Initialization of the application by ",Ln("code",null,"b.routes")," has to be called in a fulfillment callback of this promise."),Ln("h3",{id:"locale-switching"},"Locale switching"),Ln("p",null,"The example code changes the locale by ",Ln("code",null,"setLocale")," and renders the page with specific translations. To get the current locale it uses the function ",Ln("code",null,"getLocale"),"."),Ln("pre",null,Ln("code",{class:"language-tsx"},'import { getLocale, setLocale } from "bobril-g11n";\n\nexport function changeLocale(): void {\n setLocale(getLocale() === "en-US" ? "cs-CZ" : "en-US");\n}\n')),Ln("p",null,Ln("a",{href:"./static-examples/translations/index.html"},"Preview example")),Ln("h3",{id:"translations"},"Translations"),Ln("p",null,"Translated content is defined by using the ",Ln("code",null,"t")," function:"),Ln("pre",null,Ln("code",{class:"language-tsx"},'t("Hello World!");')),Ln("p",null,Ln("a",{href:"./static-examples/translations/index.html"},"Preview example")),Ln("p",null,"The ",Ln("code",null,"t")," function arguments are:"),Ln("ol",null,Ln("li",null,"message for input text/pattern"),Ln("li",null,"optional params object defining the values for the message pattern"),Ln("li",null,"optional hint")),Ln("p",null,"Bobril-build takes all usages of ",Ln("code",null,'t("some string")')," in code and replaces it by e.g. ",Ln("code",null,"t(125)")," where ",Ln("em",null,"125")," is the index of ",Ln("code",null,'"some string"')," constant in the array of localized strings. This array is placed in every localization file and corresponds to the array in the generated ",Ln("em",null,"en-US.js.")),Ln("p",null,"To add a new localization definition just type the command:"),Ln("pre",null,Ln("code",{class:"language-bash"},"bb t -a cs-CZ\nbb b -u 1")),Ln("p",null,"The first command creates a new translation file ",Ln("em",null,"translations/cs-CZ.json"),". The second command adds the missing translations from the default generated ",Ln("em",null,"en-US.js")," to ",Ln("em",null,"cs-CZ.json")," translation definition. The content of the created ",Ln("em",null,"json")," can be e.g.:"),Ln("pre",null,Ln("code",{class:"language-json"},'["cs-CZ", ["My name is {a}!", null, 1]]')),Ln("p",null,"To add translations it can be modified to the following:"),Ln("pre",null,Ln("code",{class:"language-json"},'["cs-CZ", ["My name is {a}!", null, 1, "Jmenuji se {a}!"]]')),Ln("p",null,"The specific parts of localization item represented as an array are:"),Ln("ol",null,Ln("li",null,"Message - ",Ln("em",null,"Hello World")),Ln("li",null,"Translation help (third optional parameter of t function) - null =not used in ",Ln("code",null,"t")," function"),Ln("li",null,"Indicator of parameters inside of message - 0 = no parameter"),Ln("li",null,"The translated message - ",Ln("em",null,"Ahoj světe"))),Ln("p",null,"Parts 1-3 compose the translation key."),Ln("h4",{id:"basics"},"Basics"),Ln("p",null,"We can simply add placeholders to use variables in our text patterns:"),Ln("p",null,Ln("em",null,"My name is Tomas","!")),Ln("pre",null,Ln("code",{class:"language-tsx"},'t("My name is {a}!", { a: "Tomas" });')),Ln("h4",{id:"ordinal"},"Ordinal"),Ln("p",null,"To set localized ordinal, use the selectordinal pattern:"),Ln("p",null,Ln("em",null,"You are in 2nd floor")),Ln("pre",null,Ln("code",{class:"language-tsx"},'t("you are in {floor, selectordinal, =0{ground} one{#st} two{#nd} few{#rd} other{#th}} floor", { floor: 2 });')),Ln("p",null,"The # character is replaced by the floor property in the params object."),Ln("h4",{id:"plural"},"Plural"),Ln("p",null,"The similar plural pattern is used to define localized plurals:"),Ln("p",null,Ln("em",null,"here are 2 floors")),Ln("pre",null,Ln("code",{class:"language-tsx"},'t("here {floor, plural, =0{is no floor} =1{is # floor} other{are # floors}}", { floor: 2 });')),Ln("h4",{id:"select"},"Select"),Ln("p",null,"To select a specific value according to some input string, we can use the select pattern:"),Ln("p",null,Ln("em",null,"famous woman")),Ln("pre",null,Ln("code",{class:"language-tsx"},'t("famous {gender, select, female {woman} male {man} other {person}}", { gender: "female" });')),Ln("h4",{id:"number"},"Number"),Ln("p",null,"We can use a number pattern to keep numbers in culture specific formatting or to define our own format:"),Ln("p",null,Ln("em",null,"1.234 in en")),Ln("pre",null,Ln("code",{class:"language-tsx"},'f("{arg, number}", { arg: 1.234 });')),Ln("p",null,Ln("em",null,"1.2340 in en")),Ln("pre",null,Ln("code",{class:"language-tsx"},'f("{arg, number, custom, format:{0.0000}}", { arg: 1.234 });')),Ln("h4",{id:"date-and-time"},"Date and Time"),Ln("p",null,"The date and time patterns work the same way and can be used in the following way:"),Ln("p",null,Ln("em",null,"Jan 2, 2000 12:00 AM - in en")),Ln("pre",null,Ln("code",{class:"language-tsx"},'f("{a, date, lll}", { a: new Date(2000, 0, 2) });')),Ln("p",null,Ln("em",null,"02 01 - in en")),Ln("pre",null,Ln("code",{class:"language-tsx"},'f("{a, date, custom, format:{DD MM}}", { a: new Date(2000, 0, 2) });')),Ln("p",null,Ln("em",null,"Sun - in en")),Ln("pre",null,Ln("code",{class:"language-tsx"},'f("{a, date, custom, format:{{myFormat}} }", { a: new Date(2000, 0, 2), myFormat: "ddd" });')),Ln("p",null,"The specific format definitions can be found in the ",Ln("a",{href:"http://momentjs.com/docs/#/displaying/format/"},"Moment.js documentation.")),Ln("p",null,"It can also be defined in a calendar format:"),Ln("p",null,Ln("em",null,"Tomorrow at 4:27 PM - in en")),Ln("pre",null,Ln("code",{class:"language-tsx"},'f("{a, time, calendar}", { a: Date.now() + 24 * 60 * 60 * 1000 });')),Ln("p",null,"or as a relative from now:"),Ln("p",null,Ln("em",null,"2 minutes ago - in en")),Ln("pre",null,Ln("code",{class:"language-tsx"},'f("{a, time, relative}", { a: Date.now() - 100000 });')),Ln("h3",{id:"just-formatting"},"Just Formatting"),Ln("p",null,"If you only want to do the formatting of a text without a translation, just replace the ",Ln("code",null,"t")," function by the ",Ln("code",null,"f")," function."),Ln("p",null,"It will only take care of culture specific formatting."),Ln("h2",{id:"styling"},"Styling"),Ln("p",null,"Bobril has two ways of defining styles, ",Ln("strong",null,"inline styles")," and ",Ln("strong",null,"styles definitions")),Ln("h3",{id:"inline-styles"},"Inline styles"),Ln("ul",null,Ln("li",null,"Basic way of defining component style, just write css style as js object into style property of an element."),Ln("li",null,"CSS properties must be camelCased (",Ln("em",null,"padding-top")," → ",Ln("em",null,"paddingTop")," )."),Ln("li",null,"Disadvantage of inline style is a bigger and less readable HTML and no advance CSS options - see style definitions.")),Ln("pre",null,Ln("code",{class:"language-tsx"},'import * as b from "bobril";\nimport {IStyledComponentData} from "./interfaces";\n\nexport class InlineStyling extends b.Component<IStyledComponentData> {\n render(): b.IBobrilChildren {\n const wrapperStyle = { border: "1px solid blue", padding: "15px", display: "inline-block", margin: "20px" };\n\n return <div style={wrapperStyle}>\n <div style={{ color: "blue", fontWeight: "bold", fontSize: "1.2em" }}>{this.data.label}</div>\n <div style={{ paddingTop: "8px", fontStyle: "italic" }}>{this.data.children}</div>\n </div>;\n }\n}')),Ln("h3",{id:"style-definition"},"Style definition"),Ln("ul",null,Ln("li",null,"CSS style can be defined by ",Ln("code",null,"b.styleDef")),Ln("li",null,"Bobril build will generate CSS class from style definitions and use CSS classes in components.")),Ln("pre",null,Ln("code",{class:"language-tsx"},'import * as b from "bobril";\nimport { IStyledComponentData } from "./interfaces";\n\nexport const wrapperStyle = b.styleDef({ border: "1px solid blue", padding: "15px", display: "inline-block", margin: "20px" });\nexport const titleStyle = b.styleDef({ color: "blue", fontWeight: "bold", fontSize: "1.2em" });\nexport const bodyStyle = b.styleDef({ paddingTop: "8px", fontStyle: "italic" });\n\nexport class CssBaseStyling extends b.Component<IStyledComponentData> {\n render(): b.IBobrilChildren {\n return <div style={wrapperStyle}>\n <div style={titleStyle}>{this.data.label}</div>\n <div style={bodyStyle}>{this.data.children}</div>\n </div>;\n }\n}')),Ln("ul",null,Ln("li",null,"To create CSS subclass use ",Ln("code",null,"b.styleDefEx"),". First parameter is original class and the second is subclass style."),Ln("li",null,"Please notice several styles can be combined as array in the style property.")),Ln("pre",null,Ln("code",{class:"language-tsx"},'import * as b from "bobril";\nimport { IStyledComponentData } from "./interfaces";\nimport { bodyStyle, titleStyle, wrapperStyle } from "./cssBaseStyling";\n\nconst extendedWrapperStyle = b.styleDefEx(wrapperStyle, { borderColor: "red" });\n\nexport class CssExtendingStyling extends b.Component<IStyledComponentData> {\n render(): b.IBobrilChildren {\n return <div style={[wrapperStyle, extendedWrapperStyle]}>\n <div style={titleStyle}>{this.data.label}</div>\n <div style={bodyStyle}>{this.data.children}</div>\n </div>;\n }\n}')),Ln("ul",null,Ln("li",null,"CSS selectors can be used in Bobril as well. Just use second optional parameter in ",Ln("code",null,"b.styleDef"),".")),Ln("pre",null,Ln("code",{class:"language-tsx"},'import * as b from "bobril";\nimport { IStyledComponentData } from "./interfaces";\nimport { wrapperStyle, titleStyle, bodyStyle } from "./cssBaseStyling";\n\nconst hoveredStyle = b.styleDef( { borderColor: "red", color: "green" });\nconst wrapperHoveredStyle = b.styleDef(wrapperStyle, { hover: hoveredStyle });\n\nexport class CssSelectorsStyling extends b.Component<IStyledComponentData> {\n render(): b.IBobrilChildren {\n return <div style={[wrapperStyle, wrapperHoveredStyle ]}>\n <div style={titleStyle}>{this.data.label}</div>\n <div style={bodyStyle}>{this.data.children}</div>\n </div>;\n }\n}')),Ln("h3",{id:"media-queries"},"Media Queries"),Ln("ul",null,Ln("li",null,"To define media query use ",Ln("code",null,"b.mediaQueryDef"),", first parameter is media query and second affected styles with styling changes."),Ln("li",null,"Build-in builder ",Ln("code",null,"b.createMediaQuery")," can be used to write media query.")),Ln("pre",null,Ln("code",{class:"language-tsx"},'import * as b from "bobril";\nimport { IStyledComponentData } from "./interfaces";\nimport { bodyStyle, titleStyle, wrapperStyle } from "./cssBaseStyling";\n\nconst mediaQueryStyle = b.styleDefEx(wrapperStyle, { borderColor: "green" });\n\n// results in "only screen and (max-width: 600px) , only print"\nconst mediaQueryDef = b.createMediaQuery()\n .rule("only", "screen")\n .and({type: "max-width", value: 600, unit: "px"})\n .or()\n .rule("only", "print")\n .build();\n\nb.mediaQueryDef(mediaQueryDef, {\n [mediaQueryStyle]: {\n opacity: 0.5\n }\n});\n\nexport class MediaQueriesStyling extends b.Component<IStyledComponentData> {\n render(): b.IBobrilChildren {\n return <div style={[wrapperStyle, mediaQueryStyle ]}>\n <div style={titleStyle}>{this.data.label}</div>\n <div style={bodyStyle}>{this.data.children}</div>\n </div>;\n }\n}')),Ln("p",null,Ln("a",{href:"./static-examples/styling/index.html"},"Preview example")),Ln("h2",{id:"hooks"},"HOOKS"),Ln("p",null,"Hooks are yet another way how you can write your components in Bobril. You may be asking: why another aproach? The answer is not simple but i will try to answer."),Ln("h3",{id:"why-hooks"},"Why hooks"),Ln("p",null,"First of all let’s say that old ways of writing components are not deprecated. They are still valid but as we all know they have its problems. Hooks are here to try solve these problems. Mostly the problems which are connected with design patterns for code reuse. Mainly high order components (HOC) and render props. Because when we use this type of component composition we create indirection. The indirection can be on DOM level or on the component level, which means in VDOM. This don’t have to be always bad. But it’s sometimes hard to debug and get know what is going on when there are for example multiple HOCs on top of our component. So it’s good to have a way how to avoid it."),Ln("p",null,"Let’s show usage of hook on example. The implementation of useCursorCoordinates is not important currently, just focus on the idea. At component level we want to have access to the cursor position on the screen. So we follow our idea and just call function which returns value that we wanted. And what is the best: hook takes care about rerendering component every time the cursor position change."),Ln("pre",null,Ln("code",{class:"language-tsx"},'import * as b from "bobril";\n\nfunction useCursorCoordinates() {\n const [x, setX] = b.useState(0);\n const [y, setY] = b.useState(0);\n b.useCaptureEvents({\n onPointerMove(event: b.IBobrilPointerEvent): void {\n setX(event.x);\n setY(event.y);\n // Or NotHandled return b.EventResult.NotHandled;\n }\n });\n\n return [x, y];\n}\n\nexport function Coordinates(props) {\n const [x, y] = useCursorCoordinates();\n return (\n <div>\n {props.children}\n <div>\n Coordinates are: {x}, {y}\n </div>\n </div>\n );\n}\n')),Ln("h3",{id:"types-of-hooks"},"Types of hooks"),Ln("h4",{id:"usestate"},"useState"),Ln("p",null,"This is most basic hook which you will use in most scenarios. It persists part of data in component memory cell and expose a function for mutating this data. It also invalidates the component when mutating function is called and something have been really changed. Its api is simple. Just call useState from bobril exports and provide it default value or factory which will create default value. It gives you IProp back. Which is a function which can be called without parameters for getting value and with parameter for setting value. The IProp can be also destructured to 2 items array which will contain value on first place and setter in the second place. The setter function also have 2 possibilities how it can be used. If you provide a value to it. It just store the value. You can also provide a function to it and get current state as parameter to his function."),Ln("pre",null,Ln("code",{class:"language-tsx"},'import * as b from "bobril";\n\nexport function Counter() {\n const [count, setCount] = b.useState(0);\n // const [count, setCount] = useState(() => 0); is also valid;\n return (\n <div\n onClick={() => {\n setCount(count => count + 1);\n return true;\n }}\n >\n Number of click: {count}\n </div>\n );\n}\n')),Ln("h4",{id:"usestore"},"useStore"),Ln("p",null,"Hook made for working with bobx store in function component. It accepts factory and holds the reference to the object created by factory in every render."),Ln("pre",null,Ln("code",{class:"language-tsx"},'import * as b from "bobril";\nimport { observable } from "bobx";\n\nclass Counter {\n @observable\n count: number = 0;\n}\n\nexport function StoreCounter() {\n const store = b.useStore(() => new Counter());\n return (\n <div\n onClick={() => {\n store.count = store.count + 1;\n return true;\n }}\n >\n Number of click: {store.count}\n </div>\n );\n}\n')),Ln("h4",{id:"useeffect"},"useEffect"),Ln("p",null,"Here we operate with something called “side effects” or “effects” which is something that comes from functional programming. As a definition says side effect is something what can change values outside local environment or relies on variable out of local env.\nSo we have to be always careful when doing things like this because we can simply affect or be affected by others. Let’s mention DOM operations or data fetching as examples of side effects. Let’s see how useEffect is used."),Ln("p",null,"In our example we will touch real DOM, so we are going to do some side effect and for that case we use useEffect hook. In concrete we will work with history api to store what is in the input box."),Ln("pre",null,Ln("code",{class:"language-tsx"},'import * as b from "bobril";\n\nexport function EffectExample() {\n const [text, setText] = b.useState(new URLSearchParams(window.location.search).get("text") || "");\n\n b.useEffect(() => {\n history.replaceState({ text }, "Example", `?text=${text}`);\n });\n\n return (\n <div>\n <p>Current text is {text}</p>\n <input\n value={text}\n onChange={value => {\n setText(value);\n return true;\n }}\n />\n </div>\n );\n}\n')),Ln("p",null,"We let user to write into text field and we store current value in browser history so when user comes to the page we can access the value.\nThis is the most basic way how to use effect hook. It is crucial to understand that function provided to the effect hook is not called synchronously in rendering process but it’s called ASAP when bobril have done jobs with higher priority.\nIn this example provided function will be called after every render of Example component. We can actually optimized this because rerendering of Example component can be triggered from parent component and in that case we don’t want to shedule effect function.\nFor this cases useEffect hook accepts second parameter, which is array of function dependencies. Before calling effect function bobril looks on this array and call the function only if something have changed."),Ln("pre",null,Ln("code",{class:"language-tsx"},'import * as b from "bobril";\n\nexport function EffectImprovedExample() {\n const [text, setText] = b.useState(new URLSearchParams(window.location.search).get("text") || "");\n\n b.useEffect(() => {\n history.replaceState({ text }, "Example", `?text=${text}`);\n }, [text]);\n\n return (\n <div>\n <p>Current text is {text}</p>\n <input\n value={text}\n onChange={value => {\n setText(value);\n return true;\n }}\n />\n </div>\n );\n}\n')),Ln("p",null,"Another thing which is important to understand is that when we return function from effect hook, bobril use it as dispose function for component in which is the hook declared. So when this component is destroyed, bobril calls the dispose function and we have chance to clean stuffs.\nWith useEffect we can actually achieve same behaviour like when using lifecycle methods in class components. UseEffect without dependencies is similar to postUpdateDomEverytime lifecycle. When using with empty array dependency we are de facto declaring postInitDom. The difference between hook and lifecycle is that effect hook is not synchronous. As said before with defining return function we define destroy lifecycle."),Ln("h4",{id:"useprovidecontext"},"useProvideContext"),Ln("p",null,"Hook which is used for declaring context for children of component in which is hook declared."),Ln("pre",null,Ln("code",{class:"language-tsx"},'import * as b from "bobril";\nimport { ColorConsumer } from "./contextConsumer";\n\nexport const theme = b.createContext({\n color: "blue"\n});\n\nexport function ContextProvider() {\n b.useProvideContext(theme, {\n color: "red"\n });\n\n return <ColorConsumer />;\n}\n')),Ln("h4",{id:"usecontext"},"useContext"),Ln("p",null,"This hook is closely related to the useProvideContext hook. It’s used for getting context which is declared somewhere in parent component structure. We will continue the example from above."),Ln("pre",null,Ln("code",{class:"language-tsx"},'import * as b from "bobril";\nimport { theme } from "./contextProvider";\n\nexport function ColorConsumer() {\n const color = b.useContext(theme);\n\n return <div style={{ color: color.color }}>I am colored as defined in context</div>;\n}\n')),Ln("h4",{id:"uselayouteffect"},"useLayoutEffect"),Ln("p",null,"This hook is used for handling side effects as well but unlike useEffect hook this one is called right after the render when bobril prints VDOM to actual DOM. It can be used for example for recalculation of DOM stuffs. For sure only when you need a javascript for that :). It’s always better to use css when you can. This hook is similar topostInitDom and postUpdateDomEverytime.\nHook is called even if component was not invalidated because there could be change in size or position due to children change. "),Ln("h4",{id:"useref"},"useRef"),Ln("p",null,"UseRef is here for working with mutable data structures. We can imagine the return value of this hook as a box. Value of the box is accessible on .current property.\nThe reference on the box does not change over time when rerendering component. The most common usecase is to store reference to VDOM node in the box. But you can always use it for storing any other mutable value in the box just keep in mind that changing this mutable value will not trigger rerender."),Ln("pre",null,Ln("code",{class:"language-tsx"},'import * as b from "bobril";\n\nexport function TextWithFocus() {\n const inputEl = b.useRef(null);\n const onClick = () => {\n const inputElement = b.getDomNode(inputEl.current) as HTMLInputElement;\n inputElement.focus();\n };\n return (\n <>\n <input ref={inputEl} type="text" />\n <button onClick={onClick}>Focus the input</button>\n </>\n );\n}\n')),Ln("h4",{id:"usememo"},"useMemo"),Ln("p",null,"It’s used for memoization function result based on its dependencies. This hooks exists primarily for optimization purposes. Let’s say we have computational heavy function which is dependant on 2 parametres A and C. We don’t really want to recalculate things every time\ncomponent is rerendered so we can embrace the power of useMemo."),Ln("pre",null,Ln("code",{class:"language-tsx"},'import * as b from "bobril";\n\nexport function Memoized() {\n const [a] = b.useState(0);\n const [c] = b.useState(1);\n const value = b.useMemo(() => {\n //computational heavy function\n return a + c;\n }, [a, c]);\n return <div>{value}</div>;\n}\n')),Ln("h3",{id:"events"},"Events"),Ln("p",null,"Bobril has 2 hooks for working with events. As in real DOM even in Bobril VDOM there are 2 modes of event propagation. Capturing and bubbling. Capturing mode has top to bottom direction. So it starts at root component and ends in the leaf of component tree. Whereas bubbling mode do the opposite. It starts on specified node and goes up to the root of compnent tree.\nWith this knowledge lets dive into event hooks."),Ln("h4",{id:"useevents"},"useEvents"),Ln("p",null,"With useEvents hook we can declare event handler on our component level and not in TSX. It can be for example used for handling custom events in generic way. Let’s say we want to define our custom ErrorEvent."),Ln("pre",null,Ln("code",{class:"language-tsx"},'import * as b from "bobril";\n\ndeclare module "bobril" {\n export interface IBubblingAndBroadcastEvents {\n onError?(error: { error: string });\n }\n}\n\nexport function ErrorComponent() {\n b.useEvents({\n onError(error) {\n prompt(error.error);\n return true;\n }\n });\n return <Children />;\n}\n\nfunction Children() {\n const el = b.useRef(null);\n b.useLayoutEffect(() => {\n b.bubble(el.current, "onError", { error: "error" });\n });\n\n return <div ref={el}>aaa</div>;\n}\n')),Ln("p",null,"Now everytime error event is emitted from any children it is caught in ErrorComponent."),Ln("h4",{id:"usecaptureevents"},"useCaptureEvents"),Ln("p",null,"It is same as useEvents hook but for capturing mode. When event is handled in capturing mode. Whole process of event propagation is stopped so handler defined in useEvents will never trigger."),Ln("h3",{id:"custom-hooks"},"Custom hooks"),Ln("p",null,"As said in the beginning hooks are a way how we can share logic across the components. When we want to share a logic, we have to enclose that logic into custom hook which will be our logic holder. Let’s say we have a component for searching in which is text input. Every input change is sent to the server which then return searched value. Searchig through our whole database can be computational heavy thing so we get a idea to debounce it. We also expect that debouncing will be used on many more places."),Ln("pre",null,Ln("code",{class:"language-tsx"},'import * as b from "bobril";\n\nfunction useDebouncer(value, time) {\n const [debouncedValue, setDebounceValue] = b.useState(value);\n\n b.useEffect(() => {\n const timeout = setTimeout(() => setDebounceValue(value), time);\n return () => clearTimeout(timeout);\n }, [value, time]);\n\n return debouncedValue;\n}\n\nexport function DebounceExample() {\n const [result, setResult] = b.useState([]);\n const [text, setText] = b.useState("");\n // const iprop = b.useState(""); OR with IPROP\n const debouncedValue = useDebouncer(text, 500);\n\n b.useEffect(() => {\n fetch(`/search?query=${debouncedValue}`)\n .then(data => /**data.json()*/ [])\n .then(result => setResult(result));\n }, [debouncedValue]);\n\n return (\n <>\n <input\n value={text}\n onChange={value => {\n setText(value);\n return true;\n }}\n />\n {/*<input value={iprop}/>*/}\n {result.map(r => (\n <div>{r}</div>\n ))}\n </>\n );\n}\n')),Ln("h2",{id:"bobril-build"},"Bobril-build"),Ln("h3",{id:"how-to-find-out-what-takes-space-in-your-bundle"},"How to find out what takes space in your bundle"),Ln("p",null,"First you need to build your project with enabled sourcemaps. Because only new bundler support generating them it needs to be enabled with ",Ln("code",null,"newBundler")," parameter. It is good to override sourceRoot in generated sourcemap to be just ",Ln("code",null,"."),", because it will remove one nesting from result."),Ln("pre",null,Ln("code",{class:"language-bash"},"bb build --newBundler true --sourcemap yes --sourceRoot .")),Ln("p",null,"or shorter"),Ln("pre",null,Ln("code",{class:"language-bash"},"bb b -x 1 -g yes --sourceRoot .")),Ln("p",null,"Second and last step is to use ",Ln("a",{href:"https://github.com/danvk/source-map-explorer"},"source-map-explorer")," on generated bundle. By default it will be in ",Ln("code",null,"dist")," subdirectory and will be named ",Ln("code",null,"a.js"),"."),Ln("pre",null,Ln("code",{class:"language-bash"
},"npx source-map-explorer a.js")));var np=Kd({name:"more-tutorials",url:"more-tutorials",handler:function(){return Ln(rp,null)}},ep);var rp=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.render=function(){return Ln(Sl,null,Ln(pl,{size:1,span:9},Ln(tp,null)),Ln(pl,{size:1,span:3},Ln(Ud,{items:np.item.subs,topTargetId:np.route.name+"-top"})))};return t}(zn);var ap;var op=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.render=function(){return ap};t.id="eco-system";return t}(zn);ap=Ln(Hn,null,Ln("h1",{id:"eco-system"},"Eco-system"),Ln("p",null,"Bobril is an opinionated framework distributed with portfolio of supporting packages."),Ln("h2",{id:"bobril-build"},Ln("a",{href:"https://github.com/bobril/bbcore"},"Bobril-build")),Ln("p",null,Ln("a",{href:"https://badge.fury.io/js/bobril-build-core"},Ln("img",{src:"https://badge.fury.io/js/bobril-build-core.svg",alt:"npm version"}))),Ln("p",null,"Helper tool to build Bobril applications Mainly it will support copying sprites, building big sprites. support i18n. All this during optimal TypeScript compilation. ",Ln("a",{href:"https://github.com/bobril/bbcore"},"GitHub")),Ln("h2",{id:"bobril-g11n"},Ln("a",{href:"https://github.com/Bobris/bobril-g11n"},"Bobril-G11N")),Ln("p",null,Ln("a",{href:"https://badge.fury.io/js/bobril-g11n"},Ln("img",{src:"https://badge.fury.io/js/bobril-g11n.svg",alt:"npm version"}))),Ln("p",null,"Bobril Globalization extension. ",Ln("a",{href:"https://github.com/Bobris/bobril-g11n"},"GitHub")),Ln("h2",{id:"bobx"},Ln("a",{href:"https://github.com/bobril/bobx"},"BobX")),Ln("p",null,Ln("a",{href:"https://badge.fury.io/js/bobx"},Ln("img",{src:"https://badge.fury.io/js/bobx.svg",alt:"npm version"}))),Ln("p",null,"MobX like library for Bobril. ",Ln("a",{href:"https://github.com/bobril/bobx"},"GitHub")),Ln("h2",{id:"bobflux"},Ln("a",{href:"https://github.com/karelsteinmetz/bobflux"},"Bobflux")),Ln("p",null,Ln("a",{href:"https://badge.fury.io/js/bobflux"},Ln("img",{src:"https://badge.fury.io/js/bobflux.svg",alt:"npm version"}))),Ln("p",null,"Bobflux is pure functional implementation of FLUX architecture. ",Ln("a",{href:"https://github.com/karelsteinmetz/bobflux"},"GitHub")),Ln("h2",{id:"bobrilstrap"},Ln("a",{href:"https://github.com/keeema/bobrilstrap"},"Bobrilstrap")),Ln("p",null,Ln("a",{href:"https://badge.fury.io/js/bobrilstrap"},Ln("img",{src:"https://badge.fury.io/js/bobrilstrap.svg",alt:"npm version"}))),Ln("p",null,"Bobril wrapper of the most popular HTML, CSS, and JS framework for developing responsive, mobile first projects on the web - Bootstrap. ",Ln("a",{href:"http://bobrilstrap.com"},"Project pages")," | ",Ln("a",{href:"https://github.com/keeema/bobrilstrap"},"GitHub")),Ln("h2",{id:"bobril-m"},Ln("a",{href:"https://github.com/bobril/bobril-m"},"Bobril-M")),Ln("p",null,Ln("a",{href:"https://badge.fury.io/js/bobril-m"},Ln("img",{src:"https://badge.fury.io/js/bobril-m.svg",alt:"npm version"}))),Ln("p",null,"Bobril Material UIs. ",Ln("a",{href:"http://bobril.com/bobril-m"},"Demo pages")," | ",Ln("a",{href:"https://github.com/bobril/bobril-m"},"GitHub")));var ip={route:Zo({name:"eco-system",url:"eco-system",handler:function(){return Ln(sp,null)}})};var sp=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.render=function(){return Ln(Sl,null,Ln(op,null))};return t}(zn);var lp;var cp=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.render=function(){return lp};t.id="theory";return t}(zn);lp=Ln(Hn,null,Ln("h1",{id:"theory"},"Theory"),Ln("p",null,"Deep learning fundamentals and theory."),Ln("h2",{id:"virtual-dom-vdom"},"Virtual DOM (VDOM)"),Ln("h3",{id:"what-it-is"},"What it is?"),Ln("p",null,"Virtual DOM (VDOM) is a programming concept for abtraction of the DOM. Virtual representation of UI is kept in memory and synced with DOM representation. It contains all the details needed to create DOM but can be created and changed in more performant way. DOM changes are usually slow and browser-specific.\nVDOM is represented by an ",Ln("code",null,"object"),". This object can be frequently manipulated and updated. After all changes are applied to VDOM, DOM can be modified in optimized way – in Bobril it means that just changed nodes are rerendered."),Ln("h3",{id:"bobril-representation"},"Bobril Representation"),Ln("table",null,Ln("thead",null,Ln("tr",null,Ln("th",null,"HTML"),Ln("th",null,"Bobril"))),Ln("tbody",null,Ln("tr",null,Ln("td",null,Ln("code",null,"<div></div>")),Ln("td",null,"{ tag:”div” }")),Ln("tr",null,Ln("td",null,Ln("code",null,"<span>Hello</span>")),Ln("td",null,"{ tag:”span”, children:”Hello” }")),Ln("tr",null,Ln("td",null,Ln("code",null,'<a href="url">Ex</a>')),Ln("td",null,"{ tag:”a”, attrs: { href:”url” }, children:”Ex” }")),Ln("tr",null,Ln("td",null,Ln("code",null,'<span style="text-size:20px">Big</span>')),Ln("td",null,"{ tag:”span”, style: { textSize:”20px” }, children:”Big” }")),Ln("tr",null,Ln("td",null,Ln("code",null,'<h1 class="head"><</h1>')),Ln("td",null,"{ tag:”h1”, className:”head”, children:”","<” }")),Ln("tr",null,Ln("td",null,Ln("code",null,'style="float:left"')),Ln("td",null,"style: { cssFloat:”left” }")),Ln("tr",null,Ln("td",null,Ln("code",null,"<div><br></div>")),Ln("td",null,"{ tag:”div”, children: { tag:”br” } }")),Ln("tr",null,Ln("td",null,Ln("code",null,"<div><span>A</span>B</div>")),Ln("td",null,"{ tag:”div”, children: ","["," { tag:”span”, children: “A” }, “B” ] }")))),Ln("h3",{id:"children"},"Children"),Ln("p",null,"Children member in VDOM could be ",Ln("code",null,"undefined"),", ",Ln("code",null,"null"),", ",Ln("code",null,"false"),", ",Ln("code",null,"true"),", ",Ln("code",null,"string"),", ",Ln("code",null,"number"),", ",Ln("code",null,"object")," or ",Ln("code",null,"array")," of all these items.\n",Ln("code",null,"Undefined"),", ",Ln("code",null,"null"),", ",Ln("code",null,"false")," and ",Ln("code",null,"true")," are automatically skipped. This allow to write code like this."),Ln("pre",null,Ln("code",{class:"language-tsx"},'import * as b from "bobril";\n\nexport function WelcomePage(isLoggedIn: boolean): b.IBobrilNode {\n return (\n <>\n <h1>Welcome to bobril page!</h1>\n {!isLoggedIn && <button>LogIn</button>}\n </>\n );\n}\n')),Ln("p",null,Ln("code",null,"Nested Arrays")," are flattered. ",Ln("code",null,"strings")," and ",Ln("code",null,"numbers")," are DOM text nodes."));var up=Kd({name:"theory",url:"theory",handler:function(){return Ln(dp,null)}},lp);var dp=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.render=function(){return Ln(Sl,null,Ln(pl,{size:1,span:9},Ln(cp,null)),Ln(pl,{size:1,span:3},Ln(Ud,{items:up.item.subs,topTargetId:up.route.name+"-top"})))};return t}(zn);var pp=function(){var t={};var n={exports:t};(function(e,r){typeof t==="object"&&typeof n!=="undefined"?n.exports=r():typeof define==="function"&&define.amd?define(r):(e=typeof globalThis!=="undefined"?globalThis:e||self,e.marked=r())})(this,function(){"use strict";function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1;r.configurable=!0;if("value"in r)r.writable=!0;Object.defineProperty(e,r.key,r)}}function n(e,n,r){if(n)t(e.prototype,n);if(r)t(e,r);return e}function r(e,t){if(!e)return;if(typeof e==="string")return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor)n=e.constructor.name;if(n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}function a(e,t){if(t==null||t>e.length)t=e.length;for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(e,t){var n=typeof Symbol!=="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=r(e))||t&&e&&typeof e.length==="number"){if(n)e=n;var a=0;return function(){if(a>=e.length)return{done:!0};return{done:!1,value:e[a++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i={exports:{}};function s(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function l(e){i.exports.defaults=e}i.exports={defaults:s(),getDefaults:s,changeDefaults:l};var c=/[&<>"']/;var u=/[&<>"']/g;var d=/[<>"']|&(?!#?\w+;)/;var p=/[<>"']|&(?!#?\w+;)/g;var h={"&":"&","<":"<",">":">",'"':""","'":"'"};var f=function e(t){return h[t]};function m(e,t){if(t){if(c.test(e)){return e.replace(u,f)}}else{if(d.test(e)){return e.replace(p,f)}}return e}var v=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function g(e){return e.replace(v,function(e,t){t=t.toLowerCase();if(t==="colon")return":";if(t.charAt(0)==="#"){return t.charAt(1)==="x"?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1))}return""})}var y=/(^|[^\[])\^/g;function b(e,t){e=e.source||e;t=t||"";var n={replace:function t(r,a){a=a.source||a;a=a.replace(y,"$1");e=e.replace(r,a);return n},getRegex:function n(){return new RegExp(e,t)}};return n}var x=/[^\w:]/g;var _=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function S(e,t,n){if(e){var r;try{r=decodeURIComponent(g(n)).replace(x,"").toLowerCase()}catch(e){return null}if(r.indexOf("javascript:")===0||r.indexOf("vbscript:")===0||r.indexOf("data:")===0){return null}}if(t&&!_.test(n)){n=D(t,n)}try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n}var k={};var C=/^[^:]+:\/*[^/]*$/;var w=/^([^:]+:)[\s\S]*$/;var E=/^([^:]+:\/*[^/]*)[\s\S]*$/;function D(e,t){if(!k[" "+e]){if(C.test(e)){k[" "+e]=e+"/"}else{k[" "+e]=N(e,"/",!0)}}e=k[" "+e];var n=e.indexOf(":")===-1;if(t.substring(0,2)==="//"){if(n){return t}return e.replace(w,"$1")+t}else if(t.charAt(0)==="/"){if(n){return t}return e.replace(E,"$1")+t}else{return e+t}}var I={exec:function e(){}};function T(e){var t=1,n,r;for(;t<arguments.length;t++){n=arguments[t];for(r in n){if(Object.prototype.hasOwnProperty.call(n,r)){e[r]=n[r]}}}return e}function A(e,t){var n=e.replace(/\|/g,function(e,t,n){var r=!1,a=t;while(--a>=0&&n[a]==="\\"){r=!r}if(r){return"|"}else{return" |"}}),r=n.split(/ \|/);var a=0;if(r.length>t){r.splice(t)}else{while(r.length<t){r.push("")}}for(;a<r.length;a++){r[a]=r[a].trim().replace(/\\\|/g,"|")}return r}function N(e,t,n){var r=e.length;if(r===0){return""}var a=0;while(a<r){var o=e.charAt(r-a-1);if(o===t&&!n){a++}else if(o!==t&&n){a++}else{break}}return e.substr(0,r-a)}function P(e,t){if(e.indexOf(t[1])===-1){return-1}var n=e.length;var r=0,a=0;for(;a<n;a++){if(e[a]==="\\"){a++}else if(e[a]===t[0]){r++}else if(e[a]===t[1]){r--;if(r<0){return a}}}return-1}function F(e){if(e&&e.sanitize&&!e.silent){console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}}function B(e,t){if(t<1){return""}var n="";while(t>1){if(t&1){n+=e}t>>=1;e+=e}return n+e}var O={escape:m,unescape:g,edit:b,cleanUrl:S,resolveUrl:D,noopTest:I,merge:T,splitCells:A,rtrim:N,findClosingBracket:P,checkSanitizeDeprecation:F,repeatString:B};var R=i.exports.defaults;var $=O.rtrim,G=O.splitCells,j=O.escape,L=O.findClosingBracket;function M(e,t,n){var r=t.href;var a=t.title?j(t.title):null;var o=e[1].replace(/\\([\[\]])/g,"$1");if(e[0].charAt(0)!=="!"){return{type:"link",raw:n,href:r,title:a,text:o}}else{return{type:"image",raw:n,href:r,title:a,text:j(o)}}}function H(e,t){var n=e.match(/^(\s+)(?:```)/);if(n===null){return t}var r=n[1];return t.split("\n").map(function(e){var t=e.match(/^\s+/);if(t===null){return e}var n=t[0];if(n.length>=r.length){return e.slice(r.length)}return e}).join("\n")}var z=function(){function t(e){this.options=e||R}var n=t.prototype;n.space=function e(t){var n=this.rules.block.newline.exec(t);if(n){if(n[0].length>1){return{type:"space",raw:n[0]}}return{raw:"\n"}}};n.code=function e(t){var n=this.rules.block.code.exec(t);if(n){var r=n[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:!this.options.pedantic?$(r,"\n"):r}}};n.fences=function e(t){var n=this.rules.block.fences.exec(t);if(n){var r=n[0],a=H(r,n[3]||"");return{type:"code",raw:r,lang:n[2]?n[2].trim():n[2],text:a}}};n.heading=function e(t){var n=this.rules.block.heading.exec(t);if(n){var r=n[2].trim();if(/#$/.test(r)){var a=$(r,"#");if(this.options.pedantic){r=a.trim()}else if(!a||/ $/.test(a)){r=a.trim()}}return{type:"heading",raw:n[0],depth:n[1].length,text:r}}};n.nptable=function e(t){var n=this.rules.block.nptable.exec(t);if(n){var r={type:"table",header:G(n[1].replace(/^ *| *\| *$/g,"")),align:n[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:n[3]?n[3].replace(/\n$/,"").split("\n"):[],raw:n[0]};if(r.header.length===r.align.length){var a=r.align.length,o;for(o=0;o<a;o++){if(/^ *-+: *$/.test(r.align[o])){r.align[o]="right"}else if(/^ *:-+: *$/.test(r.align[o])){r.align[o]="center"}else if(/^ *:-+ *$/.test(r.align[o])){r.align[o]="left"}else{r.align[o]=null}}a=r.cells.length;for(o=0;o<a;o++){r.cells[o]=G(r.cells[o],r.header.length)}return r}}};n.hr=function e(t){var n=this.rules.block.hr.exec(t);if(n){return{type:"hr",raw:n[0]}}};n.blockquote=function e(t){var n=this.rules.block.blockquote.exec(t);if(n){var r=n[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:n[0],text:r}}};n.list=function t(n){var r=this.rules.block.list.exec(n);if(r){var a=r[0],o=r[2],i=o.length>1,t={type:"list",raw:a,ordered:i,start:i?+o.slice(0,-1):"",loose:!1,items:[]},s=r[0].match(this.rules.block.item),l=!1,c,u,d,p,h,f,m,v,g,y=s.length;d=this.rules.block.listItemStart.exec(s[0]);for(var b=0;b<y;b++){c=s[b];a=c;if(!this.options.pedantic){g=c.match(new RegExp("\\n\\s*\\n {0,"+(d[0].length-1)+"}\\S"));if(g){h=c.length-g.index+s.slice(b+1).join("\n").length;t.raw=t.raw.substring(0,t.raw.length-h);c=c.substring(0,g.index);a=c;y=b+1}}if(b!==y-1){p=this.rules.block.listItemStart.exec(s[b+1]);if(!this.options.pedantic?p[1].length>=d[0].length||p[1].length>3:p[1].length>d[1].length){s.splice(b,2,s[b]+(!this.options.pedantic&&p[1].length<d[0].length&&!s[b].match(/\n$/)?"":"\n")+s[b+1]);b--;y--;continue}else if(!this.options.pedantic||this.options.smartLists?p[2][p[2].length-1]!==o[o.length-1]:i===(p[2].length===1)){h=s.slice(b+1).join("\n").length;t.raw=t.raw.substring(0,t.raw.length-h);b=y-1}d=p}u=c.length;c=c.replace(/^ *([*+-]|\d+[.)]) ?/,"");if(~c.indexOf("\n ")){u-=c.length;c=!this.options.pedantic?c.replace(new RegExp("^ {1,"+u+"}","gm"),""):c.replace(/^ {1,4}/gm,"")}c=$(c,"\n");if(b!==y-1){a=a+"\n"}f=l||/\n\n(?!\s*$)/.test(a);if(b!==y-1){l=a.slice(-2)==="\n\n";if(!f)f=l}if(f){t.loose=!0}if(this.options.gfm){m=/^\[[ xX]\] /.test(c);v=e;if(m){v=c[1]!==" ";c=c.replace(/^\[[ xX]\] +/,"")}}t.items.push({type:"list_item",raw:a,task:m,checked:v,loose:f,text:c})}return t}};n.html=function e(t){var n=this.rules.block.html.exec(t);if(n){return{type:this.options.sanitize?"paragraph":"html",raw:n[0],pre:!this.options.sanitizer&&(n[1]==="pre"||n[1]==="script"||n[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):j(n[0]):n[0]}}};n.def=function e(t){var n=this.rules.block.def.exec(t);if(n){if(n[3])n[3]=n[3].substring(1,n[3].length-1);var r=n[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:r,raw:n[0],href:n[2],title:n[3]}}};n.table=function e(t){var n=this.rules.block.table.exec(t);if(n){var r={type:"table",header:G(n[1].replace(/^ *| *\| *$/g,"")),align:n[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:n[3]?n[3].replace(/\n$/,"").split("\n"):[]};if(r.header.length===r.align.length){r.raw=n[0];var a=r.align.length,o;for(o=0;o<a;o++){if(/^ *-+: *$/.test(r.align[o])){r.align[o]="right"}else if(/^ *:-+: *$/.test(r.align[o])){r.align[o]="center"}else if(/^ *:-+ *$/.test(r.align[o])){r.align[o]="left"}else{r.align[o]=null}}a=r.cells.length;for(o=0;o<a;o++){r.cells[o]=G(r.cells[o].replace(/^ *\| *| *\| *$/g,""),r.header.length)}return r}}};n.lheading=function e(t){var n=this.rules.block.lheading.exec(t);if(n){return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:n[1]}}};n.paragraph=function e(t){var n=this.rules.block.paragraph.exec(t);if(n){return{type:"paragraph",raw:n[0],text:n[1].charAt(n[1].length-1)==="\n"?n[1].slice(0,-1):n[1]}}};n.text=function e(t){var n=this.rules.block.text.exec(t);if(n){return{type:"text",raw:n[0],text:n[0]}}};n.escape=function e(t){var n=this.rules.inline.escape.exec(t);if(n){return{type:"escape",raw:n[0],text:j(n[1])}}};n.tag=function e(t,n,r){var a=this.rules.inline.tag.exec(t);if(a){if(!n&&/^<a /i.test(a[0])){n=!0}else if(n&&/^<\/a>/i.test(a[0])){n=!1}if(!r&&/^<(pre|code|kbd|script)(\s|>)/i.test(a[0])){r=!0}else if(r&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(a[0])){r=!1}return{type:this.options.sanitize?"text":"html",raw:a[0],inLink:n,inRawBlock:r,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(a[0]):j(a[0]):a[0]}}};n.link=function e(t){var n=this.rules.inline.link.exec(t);if(n){var r=n[2].trim();if(!this.options.pedantic&&/^</.test(r)){if(!/>$/.test(r)){return}var a=$(r.slice(0,-1),"\\");if((r.length-a.length)%2===0){return}}else{var o=L(n[2],"()");if(o>-1){var i=n[0].indexOf("!")===0?5:4,s=i+n[1].length+o;n[2]=n[2].substring(0,o);n[0]=n[0].substring(0,s).trim();n[3]=""}}var l=n[2],c="";if(this.options.pedantic){var e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(l);if(e){l=e[1];c=e[3]}}else{c=n[3]?n[3].slice(1,-1):""}l=l.trim();if(/^</.test(l)){if(this.options.pedantic&&!/>$/.test(r)){l=l.slice(1)}else{l=l.slice(1,-1)}}return M(n,{href:l?l.replace(this.rules.inline._escapes,"$1"):l,title:c?c.replace(this.rules.inline._escapes,"$1"):c},n[0])}};n.reflink=function e(t,n){var r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){var a=(r[2]||r[1]).replace(/\s+/g," ");a=n[a.toLowerCase()];if(!a||!a.href){var o=r[0].charAt(0);return{type:"text",raw:o,text:o}}return M(r,a,r[0])}};n.emStrong=function e(t,n,r){if(r===void 0){r=""}var a=this.rules.inline.emStrong.lDelim.exec(t);if(!a)return;if(a[3]&&r.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDD\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))return;var o=a[1]||a[2]||"";if(!o||o&&(r===""||this.rules.inline.punctuation.exec(r))){var i=a[0].length-1,s,l,c=i,u=0,d=a[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;d.lastIndex=0;n=n.slice(-1*t.length+i);while((a=d.exec(n))!=null){s=a[1]||a[2]||a[3]||a[4]||a[5]||a[6];if(!s)continue;l=s.length;if(a[3]||a[4]){c+=l;continue}else if(a[5]||a[6]){if(i%3&&!((i+l)%3)){u+=l;continue}}c-=l;if(c>0)continue;l=Math.min(l,l+c+u);if(Math.min(i,l)%2){return{type:"em",raw:t.slice(0,i+a.index+l+1),text:t.slice(1,i+a.index+l)}}return{type:"strong",raw:t.slice(0,i+a.index+l+1),text:t.slice(2,i+a.index+l-1)}}}};n.codespan=function e(t){var n=this.rules.inline.code.exec(t);if(n){var r=n[2].replace(/\n/g," "),a=/[^ ]/.test(r),o=/^ /.test(r)&&/ $/.test(r);if(a&&o){r=r.substring(1,r.length-1)}r=j(r,!0);return{type:"codespan",raw:n[0],text:r}}};n.br=function e(t){var n=this.rules.inline.br.exec(t);if(n){return{type:"br",raw:n[0]}}};n.del=function e(t){var n=this.rules.inline.del.exec(t);if(n){return{type:"del",raw:n[0],text:n[2]}}};n.autolink=function e(t,n){var r=this.rules.inline.autolink.exec(t);if(r){var a,o;if(r[2]==="@"){a=j(this.options.mangle?n(r[1]):r[1]);o="mailto:"+a}else{a=j(r[1]);o=a}return{type:"link",raw:r[0],text:a,href:o,tokens:[{type:"text",raw:a,text:a}]}}};n.url=function e(t,n){var r;if(r=this.rules.inline.url.exec(t)){var a,o;if(r[2]==="@"){a=j(this.options.mangle?n(r[0]):r[0]);o="mailto:"+a}else{var i;do{i=r[0];r[0]=this.rules.inline._backpedal.exec(r[0])[0]}while(i!==r[0]);a=j(r[0]);if(r[1]==="www."){o="http://"+a}else{o=a}}return{type:"link",raw:r[0],text:a,href:o,tokens:[{type:"text",raw:a,text:a}]}}};n.inlineText=function e(t,n,r){var a=this.rules.inline.text.exec(t);if(a){var o;if(n){o=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(a[0]):j(a[0]):a[0]}else{o=j(this.options.smartypants?r(a[0]):a[0])}return{type:"text",raw:a[0],text:o}}};return t}();var V=O.noopTest,U=O.edit,q=O.merge;var W={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?! {0,3}bull )\n*|\s*$)/,html:"^ {0,3}(?:"+"<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)"+"|comment[^\\n]*(\\n+|$)"+"|<\\?[\\s\\S]*?(?:\\?>\\n*|$)"+"|<![A-Z][\\s\\S]*?(?:>\\n*|$)"+"|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)"+"|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)"+"|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)"+"|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)"+")",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:V,table:V,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/};W._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/;W._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;W.def=U(W.def).replace("label",W._label).replace("title",W._title).getRegex();W.bullet=/(?:[*+-]|\d{1,9}[.)])/;W.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/;W.item=U(W.item,"gm").replace(/bull/g,W.bullet).getRegex();W.listItemStart=U(/^( *)(bull) */).replace("bull",W.bullet).getRegex();W.list=U(W.list).replace(/bull/g,W.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+W.def.source+")").getRegex();W._tag="address|article|aside|base|basefont|blockquote|body|caption"+"|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption"+"|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe"+"|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option"+"|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr"+"|track|ul";W._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/;W.html=U(W.html,"i").replace("comment",W._comment).replace("tag",W._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();W.paragraph=U(W._paragraph).replace("hr",W.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",W._tag).getRegex();W.blockquote=U(W.blockquote).replace("paragraph",W.paragraph).getRegex();W.normal=q({},W);W.gfm=q({},W.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n"+" {0,3}([-:]+ *\\|[-| :]*)"+"(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n"+" {0,3}\\|?( *[-:]+[-| :]*)"+"(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"
});W.gfm.nptable=U(W.gfm.nptable).replace("hr",W.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",W._tag).getRegex();W.gfm.table=U(W.gfm.table).replace("hr",W.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",W._tag).getRegex();W.pedantic=q({},W.normal,{html:U("^ *(?:comment *(?:\\n|\\s*$)"+"|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)"+"|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",W._comment).replace(/tag/g,"(?!(?:"+"a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub"+"|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)"+"\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:V,paragraph:U(W.normal._paragraph).replace("hr",W.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",W.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var J={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:V,tag:"^comment"+"|^</[a-zA-Z][\\w:-]*\\s*>"+"|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>"+"|^<\\?[\\s\\S]*?\\?>"+"|^<![a-zA-Z]+\\s[\\s\\S]*?>"+"|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/\_\_[^_*]*?\*[^_*]*?\_\_|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/\*\*[^_*]*?\_[^_*]*?\*\*|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:V,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};J._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~";J.punctuation=U(J.punctuation).replace(/punctuation/g,J._punctuation).getRegex();J.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g;J.escapedEmSt=/\\\*|\\_/g;J._comment=U(W._comment).replace("(?:--\x3e|$)","--\x3e").getRegex();J.emStrong.lDelim=U(J.emStrong.lDelim).replace(/punct/g,J._punctuation).getRegex();J.emStrong.rDelimAst=U(J.emStrong.rDelimAst,"g").replace(/punct/g,J._punctuation).getRegex();J.emStrong.rDelimUnd=U(J.emStrong.rDelimUnd,"g").replace(/punct/g,J._punctuation).getRegex();J._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g;J._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;J._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/;J.autolink=U(J.autolink).replace("scheme",J._scheme).replace("email",J._email).getRegex();J._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;J.tag=U(J.tag).replace("comment",J._comment).replace("attribute",J._attribute).getRegex();J._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;J._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;J._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;J.link=U(J.link).replace("label",J._label).replace("href",J._href).replace("title",J._title).getRegex();J.reflink=U(J.reflink).replace("label",J._label).getRegex();J.reflinkSearch=U(J.reflinkSearch,"g").replace("reflink",J.reflink).replace("nolink",J.nolink).getRegex();J.normal=q({},J);J.pedantic=q({},J.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:U(/^!?\[(label)\]\((.*?)\)/).replace("label",J._label).getRegex(),reflink:U(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",J._label).getRegex()});J.gfm=q({},J.normal,{escape:U(J.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/});J.gfm.url=U(J.gfm.url,"i").replace("email",J.gfm._extended_email).getRegex();J.breaks=q({},J.gfm,{br:U(J.br).replace("{2,}","*").getRegex(),text:U(J.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var K={block:W,inline:J};var Y=i.exports.defaults;var X=K.block,Q=K.inline;var Z=O.repeatString;function ee(e){return e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function te(e){var t="",n,r;var a=e.length;for(n=0;n<a;n++){r=e.charCodeAt(n);if(Math.random()>.5){r="x"+r.toString(16)}t+="&#"+r+";"}return t}var ne=function(){function e(e){this.tokens=[];this.tokens.links=Object.create(null);this.options=e||Y;this.options.tokenizer=this.options.tokenizer||new z;this.tokenizer=this.options.tokenizer;this.tokenizer.options=this.options;var t={block:X.normal,inline:Q.normal};if(this.options.pedantic){t.block=X.pedantic;t.inline=Q.pedantic}else if(this.options.gfm){t.block=X.gfm;if(this.options.breaks){t.inline=Q.breaks}else{t.inline=Q.gfm}}this.tokenizer.rules=t}e.lex=function t(n,r){var a=new e(r);return a.lex(n)};e.lexInline=function t(n,r){var a=new e(r);return a.inlineTokens(n)};var t=e.prototype;t.lex=function e(t){t=t.replace(/\r\n|\r/g,"\n").replace(/\t/g," ");this.blockTokens(t,this.tokens,!0);this.inline(this.tokens);return this.tokens};t.blockTokens=function e(t,n,r){var a=this;if(n===void 0){n=[]}if(r===void 0){r=!0}if(this.options.pedantic){t=t.replace(/^ +$/gm,"")}var o,i,s,l,c,u;while(t){if(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(function(e){if(o=e.call(a,t,n)){t=t.substring(o.raw.length);n.push(o);return!0}return!1})){continue}if(o=this.tokenizer.space(t)){t=t.substring(o.raw.length);if(o.type){n.push(o)}continue}if(o=this.tokenizer.code(t)){t=t.substring(o.raw.length);l=n[n.length-1];if(l&&l.type==="paragraph"){l.raw+="\n"+o.raw;l.text+="\n"+o.text}else{n.push(o)}continue}if(o=this.tokenizer.fences(t)){t=t.substring(o.raw.length);n.push(o);continue}if(o=this.tokenizer.heading(t)){t=t.substring(o.raw.length);n.push(o);continue}if(o=this.tokenizer.nptable(t)){t=t.substring(o.raw.length);n.push(o);continue}if(o=this.tokenizer.hr(t)){t=t.substring(o.raw.length);n.push(o);continue}if(o=this.tokenizer.blockquote(t)){t=t.substring(o.raw.length);o.tokens=this.blockTokens(o.text,[],r);n.push(o);continue}if(o=this.tokenizer.list(t)){t=t.substring(o.raw.length);s=o.items.length;for(i=0;i<s;i++){o.items[i].tokens=this.blockTokens(o.items[i].text,[],!1)}n.push(o);continue}if(o=this.tokenizer.html(t)){t=t.substring(o.raw.length);n.push(o);continue}if(r&&(o=this.tokenizer.def(t))){t=t.substring(o.raw.length);if(!this.tokens.links[o.tag]){this.tokens.links[o.tag]={href:o.href,title:o.title}}continue}if(o=this.tokenizer.table(t)){t=t.substring(o.raw.length);n.push(o);continue}if(o=this.tokenizer.lheading(t)){t=t.substring(o.raw.length);n.push(o);continue}c=t;if(this.options.extensions&&this.options.extensions.startBlock){(function(){var e=Infinity;var n=t.slice(1);var r=void 0;a.options.extensions.startBlock.forEach(function(t){r=t.call(this,n);if(typeof r==="number"&&r>=0){e=Math.min(e,r)}});if(e<Infinity&&e>=0){c=t.substring(0,e+1)}})()}if(r&&(o=this.tokenizer.paragraph(c))){l=n[n.length-1];if(u&&l.type==="paragraph"){l.raw+="\n"+o.raw;l.text+="\n"+o.text}else{n.push(o)}u=c.length!==t.length;t=t.substring(o.raw.length);continue}if(o=this.tokenizer.text(t)){t=t.substring(o.raw.length);l=n[n.length-1];if(l&&l.type==="text"){l.raw+="\n"+o.raw;l.text+="\n"+o.text}else{n.push(o)}continue}if(t){var d="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(d);break}else{throw new Error(d)}}}return n};t.inline=function e(t){var n,r,a,o,i,s;var l=t.length;for(n=0;n<l;n++){s=t[n];switch(s.type){case"paragraph":case"text":case"heading":s.tokens=[];this.inlineTokens(s.text,s.tokens);break;case"table":s.tokens={header:[],cells:[]};o=s.header.length;for(r=0;r<o;r++){s.tokens.header[r]=[];this.inlineTokens(s.header[r],s.tokens.header[r])}o=s.cells.length;for(r=0;r<o;r++){i=s.cells[r];s.tokens.cells[r]=[];for(a=0;a<i.length;a++){s.tokens.cells[r][a]=[];this.inlineTokens(i[a],s.tokens.cells[r][a])}}break;case"blockquote":this.inline(s.tokens);break;case"list":o=s.items.length;for(r=0;r<o;r++){this.inline(s.items[r].tokens)}break}}return t};t.inlineTokens=function e(t,n,r,a){var o=this;if(n===void 0){n=[]}if(r===void 0){r=!1}if(a===void 0){a=!1}var i,s,l;var c=t;var u;var d,p;if(this.tokens.links){var h=Object.keys(this.tokens.links);if(h.length>0){while((u=this.tokenizer.rules.inline.reflinkSearch.exec(c))!=null){if(h.includes(u[0].slice(u[0].lastIndexOf("[")+1,-1))){c=c.slice(0,u.index)+"["+Z("a",u[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex)}}}}while((u=this.tokenizer.rules.inline.blockSkip.exec(c))!=null){c=c.slice(0,u.index)+"["+Z("a",u[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.blockSkip.lastIndex)}while((u=this.tokenizer.rules.inline.escapedEmSt.exec(c))!=null){c=c.slice(0,u.index)+"++"+c.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex)}while(t){if(!d){p=""}d=!1;if(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(function(e){if(i=e.call(o,t,n)){t=t.substring(i.raw.length);n.push(i);return!0}return!1})){continue}if(i=this.tokenizer.escape(t)){t=t.substring(i.raw.length);n.push(i);continue}if(i=this.tokenizer.tag(t,r,a)){t=t.substring(i.raw.length);r=i.inLink;a=i.inRawBlock;s=n[n.length-1];if(s&&i.type==="text"&&s.type==="text"){s.raw+=i.raw;s.text+=i.text}else{n.push(i)}continue}if(i=this.tokenizer.link(t)){t=t.substring(i.raw.length);if(i.type==="link"){i.tokens=this.inlineTokens(i.text,[],!0,a)}n.push(i);continue}if(i=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(i.raw.length);s=n[n.length-1];if(i.type==="link"){i.tokens=this.inlineTokens(i.text,[],!0,a);n.push(i)}else if(s&&i.type==="text"&&s.type==="text"){s.raw+=i.raw;s.text+=i.text}else{n.push(i)}continue}if(i=this.tokenizer.emStrong(t,c,p)){t=t.substring(i.raw.length);i.tokens=this.inlineTokens(i.text,[],r,a);n.push(i);continue}if(i=this.tokenizer.codespan(t)){t=t.substring(i.raw.length);n.push(i);continue}if(i=this.tokenizer.br(t)){t=t.substring(i.raw.length);n.push(i);continue}if(i=this.tokenizer.del(t)){t=t.substring(i.raw.length);i.tokens=this.inlineTokens(i.text,[],r,a);n.push(i);continue}if(i=this.tokenizer.autolink(t,te)){t=t.substring(i.raw.length);n.push(i);continue}if(!r&&(i=this.tokenizer.url(t,te))){t=t.substring(i.raw.length);n.push(i);continue}l=t;if(this.options.extensions&&this.options.extensions.startInline){(function(){var e=Infinity;var n=t.slice(1);var r=void 0;o.options.extensions.startInline.forEach(function(t){r=t.call(this,n);if(typeof r==="number"&&r>=0){e=Math.min(e,r)}});if(e<Infinity&&e>=0){l=t.substring(0,e+1)}})()}if(i=this.tokenizer.inlineText(l,a,ee)){t=t.substring(i.raw.length);if(i.raw.slice(-1)!=="_"){p=i.raw.slice(-1)}d=!0;s=n[n.length-1];if(s&&s.type==="text"){s.raw+=i.raw;s.text+=i.text}else{n.push(i)}continue}if(t){var f="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(f);break}else{throw new Error(f)}}}return n};n(e,null,[{key:"rules",get:function e(){return{block:X,inline:Q}}}]);return e}();var re=i.exports.defaults;var ae=O.cleanUrl,oe=O.escape;var ie=function(){function e(e){this.options=e||re}var t=e.prototype;t.code=function e(t,n,r){var a=(n||"").match(/\S*/)[0];if(this.options.highlight){var o=this.options.highlight(t,a);if(o!=null&&o!==t){r=!0;t=o}}t=t.replace(/\n$/,"")+"\n";if(!a){return"<pre><code>"+(r?t:oe(t,!0))+"</code></pre>\n"}return'<pre><code class="'+this.options.langPrefix+oe(a,!0)+'">'+(r?t:oe(t,!0))+"</code></pre>\n"};t.blockquote=function e(t){return"<blockquote>\n"+t+"</blockquote>\n"};t.html=function e(t){return t};t.heading=function e(t,n,r,a){if(this.options.headerIds){return"<h"+n+' id="'+this.options.headerPrefix+a.slug(r)+'">'+t+"</h"+n+">\n"}return"<h"+n+">"+t+"</h"+n+">\n"};t.hr=function e(){return this.options.xhtml?"<hr/>\n":"<hr>\n"};t.list=function e(t,n,r){var a=n?"ol":"ul",o=n&&r!==1?' start="'+r+'"':"";return"<"+a+o+">\n"+t+"</"+a+">\n"};t.listitem=function e(t){return"<li>"+t+"</li>\n"};t.checkbox=function e(t){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "};t.paragraph=function e(t){return"<p>"+t+"</p>\n"};t.table=function e(t,n){if(n)n="<tbody>"+n+"</tbody>";return"<table>\n"+"<thead>\n"+t+"</thead>\n"+n+"</table>\n"};t.tablerow=function e(t){return"<tr>\n"+t+"</tr>\n"};t.tablecell=function e(t,n){var r=n.header?"th":"td";var a=n.align?"<"+r+' align="'+n.align+'">':"<"+r+">";return a+t+"</"+r+">\n"};t.strong=function e(t){return"<strong>"+t+"</strong>"};t.em=function e(t){return"<em>"+t+"</em>"};t.codespan=function e(t){return"<code>"+t+"</code>"};t.br=function e(){return this.options.xhtml?"<br/>":"<br>"};t.del=function e(t){return"<del>"+t+"</del>"};t.link=function e(t,n,r){t=ae(this.options.sanitize,this.options.baseUrl,t);if(t===null){return r}var a='<a href="'+oe(t)+'"';if(n){a+=' title="'+n+'"'}a+=">"+r+"</a>";return a};t.image=function e(t,n,r){t=ae(this.options.sanitize,this.options.baseUrl,t);if(t===null){return r}var a='<img src="'+t+'" alt="'+r+'"';if(n){a+=' title="'+n+'"'}a+=this.options.xhtml?"/>":">";return a};t.text=function e(t){return t};return e}();var se=function(){function e(){}var t=e.prototype;t.strong=function e(t){return t};t.em=function e(t){return t};t.codespan=function e(t){return t};t.del=function e(t){return t};t.html=function e(t){return t};t.text=function e(t){return t};t.link=function e(t,n,r){return""+r};t.image=function e(t,n,r){return""+r};t.br=function e(){return""};return e}();var le=function(){function e(){this.seen={}}var t=e.prototype;t.serialize=function e(t){return t.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")};t.getNextSafeSlug=function e(t,n){var r=t;var a=0;if(this.seen.hasOwnProperty(r)){a=this.seen[t];do{a++;r=t+"-"+a}while(this.seen.hasOwnProperty(r))}if(!n){this.seen[t]=a;this.seen[r]=0}return r};t.slug=function e(t,n){if(n===void 0){n={}}var e=this.serialize(t);return this.getNextSafeSlug(e,n.dryrun)};return e}();var ce=i.exports.defaults;var ue=O.unescape;var de=function(){function e(e){this.options=e||ce;this.options.renderer=this.options.renderer||new ie;this.renderer=this.options.renderer;this.renderer.options=this.options;this.textRenderer=new se;this.slugger=new le}e.parse=function t(n,r){var a=new e(r);return a.parse(n)};e.parseInline=function t(n,r){var a=new e(r);return a.parseInline(n)};var t=e.prototype;t.parse=function e(t,n){if(n===void 0){n=!0}var r="",a,o,i,s,l,c,u,d,p,h,f,m,v,g,y,b,x,_,S;var k=t.length;for(a=0;a<k;a++){h=t[a];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[h.type]){S=this.options.extensions.renderers[h.type].call(this,h);if(S!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(h.type)){r+=S||"";continue}}switch(h.type){case"space":continue;case"hr":r+=this.renderer.hr();continue;case"heading":r+=this.renderer.heading(this.parseInline(h.tokens),h.depth,ue(this.parseInline(h.tokens,this.textRenderer)),this.slugger);continue;case"code":r+=this.renderer.code(h.text,h.lang,h.escaped);continue;case"table":d="";u="";s=h.header.length;for(o=0;o<s;o++){u+=this.renderer.tablecell(this.parseInline(h.tokens.header[o]),{header:!0,align:h.align[o]})}d+=this.renderer.tablerow(u);p="";s=h.cells.length;for(o=0;o<s;o++){c=h.tokens.cells[o];u="";l=c.length;for(i=0;i<l;i++){u+=this.renderer.tablecell(this.parseInline(c[i]),{header:!1,align:h.align[i]})}p+=this.renderer.tablerow(u)}r+=this.renderer.table(d,p);continue;case"blockquote":p=this.parse(h.tokens);r+=this.renderer.blockquote(p);continue;case"list":f=h.ordered;m=h.start;v=h.loose;s=h.items.length;p="";for(o=0;o<s;o++){y=h.items[o];b=y.checked;x=y.task;g="";if(y.task){_=this.renderer.checkbox(b);if(v){if(y.tokens.length>0&&y.tokens[0].type==="text"){y.tokens[0].text=_+" "+y.tokens[0].text;if(y.tokens[0].tokens&&y.tokens[0].tokens.length>0&&y.tokens[0].tokens[0].type==="text"){y.tokens[0].tokens[0].text=_+" "+y.tokens[0].tokens[0].text}}else{y.tokens.unshift({type:"text",text:_})}}else{g+=_}}g+=this.parse(y.tokens,v);p+=this.renderer.listitem(g,x,b)}r+=this.renderer.list(p,f,m);continue;case"html":r+=this.renderer.html(h.text);continue;case"paragraph":r+=this.renderer.paragraph(this.parseInline(h.tokens));continue;case"text":p=h.tokens?this.parseInline(h.tokens):h.text;while(a+1<k&&t[a+1].type==="text"){h=t[++a];p+="\n"+(h.tokens?this.parseInline(h.tokens):h.text)}r+=n?this.renderer.paragraph(p):p;continue;default:var C='Token with "'+h.type+'" type was not found.';if(this.options.silent){console.error(C);return}else{throw new Error(C)}}}return r};t.parseInline=function e(t,n){n=n||this.renderer;var r="",a,o,i;var s=t.length;for(a=0;a<s;a++){o=t[a];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[o.type]){i=this.options.extensions.renderers[o.type].call(this,o);if(i!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)){r+=i||"";continue}}switch(o.type){case"escape":r+=n.text(o.text);break;case"html":r+=n.html(o.text);break;case"link":r+=n.link(o.href,o.title,this.parseInline(o.tokens,n));break;case"image":r+=n.image(o.href,o.title,o.text);break;case"strong":r+=n.strong(this.parseInline(o.tokens,n));break;case"em":r+=n.em(this.parseInline(o.tokens,n));break;case"codespan":r+=n.codespan(o.text);break;case"br":r+=n.br();break;case"del":r+=n.del(this.parseInline(o.tokens,n));break;case"text":r+=n.text(o.text);break;default:var l='Token with "'+o.type+'" type was not found.';if(this.options.silent){console.error(l);return}else{throw new Error(l)}}}return r};return e}();var pe=O.merge,he=O.checkSanitizeDeprecation,fe=O.escape;var me=i.exports.getDefaults,ve=i.exports.changeDefaults,ge=i.exports.defaults;function ye(e,t,n){if(typeof e==="undefined"||e===null){throw new Error("marked(): input parameter is undefined or null")}if(typeof e!=="string"){throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected")}if(typeof t==="function"){n=t;t=null}t=pe({},ye.defaults,t||{});he(t);if(n){var r=t.highlight,a;try{a=ne.lex(e,t)}catch(e){return n(e)}var o=function e(o){var i;if(!o){try{if(t.walkTokens){ye.walkTokens(a,t.walkTokens)}i=de.parse(a,t)}catch(e){o=e}}t.highlight=r;return o?n(o):n(null,i)};if(!r||r.length<3){return o()}delete t.highlight;if(!a.length)return o();var i=0;ye.walkTokens(a,function(e){if(e.type==="code"){i++;setTimeout(function(){r(e.text,e.lang,function(t,n){if(t){return o(t)}if(n!=null&&n!==e.text){e.text=n;e.escaped=!0}i--;if(i===0){o()}})},0)}});if(i===0){o()}return}try{var s=ne.lex(e,t);if(t.walkTokens){ye.walkTokens(s,t.walkTokens)}return de.parse(s,t)}catch(e){e.message+="\nPlease report this to https://github.com/markedjs/marked.";if(t.silent){return"<p>An error occurred:</p><pre>"+fe(e.message+"",!0)+"</pre>"}throw e}}ye.options=ye.setOptions=function(e){pe(ye.defaults,e);ve(ye.defaults);return ye};ye.getDefaults=me;ye.defaults=ge;ye.use=function(){var e=this;for(var t=arguments.length,n=new Array(t),r=0;r<t;r++){n[r]=arguments[r]}var a=pe.apply(void 0,[{}].concat(n));var o=ye.defaults.extensions||{renderers:{},childTokens:{}};var i;n.forEach(function(t){if(t.extensions){i=!0;t.extensions.forEach(function(e){if(!e.name){throw new Error("extension name required")}if(e.renderer){var t=o.renderers?o.renderers[e.name]:null;if(t){o.renderers[e.name]=function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++){r[a]=arguments[a]}var o=e.renderer.apply(this,r);if(o===!1){o=t.apply(this,r)}return o}}else{o.renderers[e.name]=e.renderer}}if(e.tokenizer){if(!e.level||e.level!=="block"&&e.level!=="inline"){throw new Error("extension level must be 'block' or 'inline'")}if(o[e.level]){o[e.level].unshift(e.tokenizer)}else{o[e.level]=[e.tokenizer]}if(e.start){if(e.level==="block"){if(o.startBlock){o.startBlock.push(e.start)}else{o.startBlock=[e.start]}}else if(e.level==="inline"){if(o.startInline){o.startInline.push(e.start)}else{o.startInline=[e.start]}}}}if(e.childTokens){o.childTokens[e.name]=e.childTokens}})}if(t.renderer){(function(){var e=ye.defaults.renderer||new ie;var n=function n(r){var a=e[r];e[r]=function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++){o[i]=arguments[i]}var s=t.renderer[r].apply(e,o);if(s===!1){s=a.apply(e,o)}return s}};for(var r in t.renderer){n(r)}a.renderer=e})()}if(t.tokenizer){(function(){var e=ye.defaults.tokenizer||new z;var n=function n(r){var a=e[r];e[r]=function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++){o[i]=arguments[i]}var s=t.tokenizer[r].apply(e,o);if(s===!1){s=a.apply(e,o)}return s}};for(var r in t.tokenizer){n(r)}a.tokenizer=e})()}if(t.walkTokens){var n=ye.defaults.walkTokens;a.walkTokens=function(r){t.walkTokens.call(e,r);if(n){n(r)}}}if(i){a.extensions=o}ye.setOptions(a)})};ye.walkTokens=function(e,t){var n=function e(){var n=a.value;t(n);switch(n.type){case"table":for(var r=o(n.tokens.header),i;!(i=r()).done;){var s=i.value;ye.walkTokens(s,t)}for(var l=o(n.tokens.cells),c;!(c=l()).done;){var u=c.value;for(var d=o(u),p;!(p=d()).done;){var h=p.value;ye.walkTokens(h,t)}}break;case"list":ye.walkTokens(n.items,t);break;default:if(ye.defaults.extensions&&ye.defaults.extensions.childTokens&&ye.defaults.extensions.childTokens[n.type]){ye.defaults.extensions.childTokens[n.type].forEach(function(e){ye.walkTokens(n[e],t)})}else if(n.tokens){ye.walkTokens(n.tokens,t)}}};for(var r=o(e),a;!(a=r()).done;){n()}};ye.parseInline=function(e,t){if(typeof e==="undefined"||e===null){throw new Error("marked.parseInline(): input parameter is undefined or null")}if(typeof e!=="string"){throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected")}t=pe({},ye.defaults,t||{});he(t);try{var n=ne.lexInline(e,t);if(t.walkTokens){ye.walkTokens(n,t.walkTokens)}return de.parseInline(n,t)}catch(e){e.message+="\nPlease report this to https://github.com/markedjs/marked.";if(t.silent){return"<p>An error occurred:</p><pre>"+fe(e.message+"",!0)+"</pre>"}throw e}};ye.Parser=de;ye.parser=de.parse;ye.Renderer=ie;ye.TextRenderer=se;ye.Lexer=ne;ye.lexer=ne.lex;ye.Tokenizer=z;ye.Slugger=le;ye.parse=ye;var be=ye;return be});return n.exports}.call(window);var hp=Kd({name:"changelog",url:"changelog",handler:function(){return Ln(fp,null)}},Ln(Hn,null));var fp=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.htmlContent="";return t}t.prototype.init=function(){J(this.loadChangeLog())};t.prototype.render=function(){return Ln(Sl,null,{tag:"/",children:this.htmlContent})};t.prototype.loadChangeLog=function(){return o(this,void 0,Promise,function(){var e,t,n,r;return i(this,function(a){switch(a.label){case 0:a.trys.push([0,3,,4]);return[4,fetch("https://raw.githubusercontent.com/Bobris/Bobril/master/CHANGELOG.md")];case 1:e=a.sent();t=this;n=pp;return[4,e.text()];case 2:t.htmlContent=n.apply(void 0,[a.sent()]);return[3,4];case 3:r=a.sent();console.log(r);return[3,4];case 4:return[2]}})})};a([sd],t.prototype,"htmlContent",void 0);return t}(zn);var mp={handler:function(e){return Ln($d,r({},e))}};var vp=Xd.route;var gp=np.route;var yp=ip.route;var bp=up.route;var xp=hp.route;var _p=vp;if(typeof Prism==="undefined"||typeof document==="undefined"){return}var Sp=[];var kp={};var Cp=function(){};Prism.plugins.toolbar={};var wp=Prism.plugins.toolbar.registerButton=function(e,t){var n;if(typeof t==="function"){n=t}else{n=function(e){var n;if(typeof t.onClick==="function"){n=document.createElement("button");n.type="button";n.addEventListener("click",function(){t.onClick.call(this,e)})}else if(typeof t.url==="string"){n=document.createElement("a");n.href=t.url}else{n=document.createElement("span")}if(t.className){n.classList.add(t.className)}n.textContent=t.text;return n}}if(e in kp){console.warn('There is a button with the key "'+e+'" registered already.');return}Sp.push(kp[e]=n)};function Ep(e){while(e){var t=e.getAttribute("data-toolbar-order");if(t!=null){t=t.trim();if(t.length){return t.split(/\s*,\s*/g)}else{return[]}}e=e.parentElement}}var Dp=Prism.plugins.toolbar.hook=function(e){var t=e.element.parentNode;if(!t||!/pre/i.test(t.nodeName)){return}if(t.parentNode.classList.contains("code-toolbar")){return}var n=document.createElement("div");n.classList.add("code-toolbar");t.parentNode.insertBefore(n,t);n.appendChild(t);var r=document.createElement("div");r.classList.add("toolbar");var a=Sp;var o=Ep(e.element);if(o){a=o.map(function(e){return kp[e]||Cp})}a.forEach(function(t){var n=t(e);if(!n){return}var a=document.createElement("div");a.classList.add("toolbar-item");a.appendChild(n);r.appendChild(a)});n.appendChild(r)};wp("label",function(e){var t=e.element.parentNode;if(!t||!/pre/i.test(t.nodeName)){return}if(!t.hasAttribute("data-label")){return}var n;var r;var a=t.getAttribute("data-label");try{r=document.querySelector("template#"+a)}catch(e){}if(r){n=r.content}else{if(t.hasAttribute("data-url")){n=document.createElement("a");n.href=t.getAttribute("data-url")}else{n=document.createElement("span")}n.textContent=a}return n});Prism.hooks.add("complete",Dp);if(typeof Prism==="undefined"||typeof document==="undefined"){return}if(!Prism.plugins.toolbar){console.warn("Copy to Clipboard plugin loaded before Toolbar plugin.");return}function Ip(e,t){e.addEventListener("click",function(){Ap(t)})}function Tp(e){var t=document.createElement("textarea");t.value=e.getText();t.style.top="0";t.style.left="0";t.style.position="fixed";document.body.appendChild(t);t.focus();t.select();try{var n=document.execCommand("copy");setTimeout(function(){if(n){e.success()}else{e.error()}},1)}catch(t){setTimeout(function(){e.error(t)},1)}document.body.removeChild(t)}function Ap(e){if(navigator.clipboard){navigator.clipboard.writeText(e.getText()).then(e.success,function(){Tp(e)})}else{Tp(e)}}function Np(e){window.getSelection().selectAllChildren(e)}function Pp(e){var t={copy:"Copy","copy-error":"Press Ctrl+C to copy","copy-success":"Copied!","copy-timeout":5e3};var n="data-prismjs-";for(var r in t){var a=n+r,o=e;while(o&&!o.hasAttribute(a)){o=o.parentElement}if(o){t[r]=o.getAttribute(a)}}return t}Prism.plugins.toolbar.registerButton("copy-to-clipboard",function(e){var t=e.element;var n=Pp(t);var r=document.createElement("button");r.className="copy-to-clipboard-button";r.setAttribute("type","button");var a=document.createElement("span");r.appendChild(a);i("copy");Ip(r,{getText:function(){return t.textContent},success:function(){i("copy-success");o()},error:function(){i("copy-error");setTimeout(function(){Np(t)},1);o()}});return r;function o(){setTimeout(function(){i("copy")},n["copy-timeout"])}function i(e){a.textContent=n[e];r.setAttribute("data-copy-state",e)}});(function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b";var n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null};var r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|x[0-9a-fA-F]{1,2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|aptitude|apt-cache|apt-get|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,
lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:if|then|else|elif|fi|for|while|in|case|esac|function|select|do|done|until)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|break|cd|continue|eval|exec|exit|export|getopts|hash|pwd|readonly|return|shift|test|times|trap|umask|unset|alias|bind|builtin|caller|command|declare|echo|enable|help|let|local|logout|mapfile|printf|read|readarray|source|type|typeset|ulimit|unalias|set|shopt)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:true|false)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}};n.inside=e.languages.bash;var a=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"];var o=r.variable[1].inside;for(var i=0;i<a.length;i++){o[a[i]]=e.languages.bash[a[i]]}e.languages.shell=e.languages.bash})(Prism);(function(e){var t=e.util.clone(e.languages.javascript);var n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source;var r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source;var a=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function o(e,t){e=e.replace(/<S>/g,function(){return n}).replace(/<BRACES>/g,function(){return r}).replace(/<SPREAD>/g,function(){return a});return RegExp(e,t)}a=o(a).source;e.languages.jsx=e.languages.extend("markup",t);e.languages.jsx.tag.pattern=o(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source);e.languages.jsx.tag.inside["tag"].pattern=/^<\/?[^\s>\/]*/i;e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i;e.languages.jsx.tag.inside["tag"].inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/;e.languages.jsx.tag.inside["comment"]=t["comment"];e.languages.insertBefore("inside","attr-name",{spread:{pattern:o(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag);e.languages.insertBefore("inside","special-attr",{script:{pattern:o(/=<BRACES>/.source),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx},alias:"language-javascript"}},e.languages.jsx.tag);var i=function(e){if(!e){return""}if(typeof e==="string"){return e}if(typeof e.content==="string"){return e.content}return e.content.map(i).join("")};var s=function(t){var n=[];for(var r=0;r<t.length;r++){var a=t[r],o=!1;if(typeof a!=="string"){if(a.type==="tag"&&a.content[0]&&a.content[0].type==="tag"){if(a.content[0].content[0].content==="</"){if(n.length>0&&n[n.length-1].tagName===i(a.content[0].content[1])){n.pop()}}else{if(a.content[a.content.length-1].content==="/>"){}else{n.push({tagName:i(a.content[0].content[1]),openedBraces:0})}}}else if(n.length>0&&a.type==="punctuation"&&a.content==="{"){n[n.length-1].openedBraces++}else if(n.length>0&&n[n.length-1].openedBraces>0&&a.type==="punctuation"&&a.content==="}"){n[n.length-1].openedBraces--}else{o=!0}}if(o||typeof a==="string"){if(n.length>0&&n[n.length-1].openedBraces===0){var l=i(a);if(r<t.length-1&&(typeof t[r+1]==="string"||t[r+1].type==="plain-text")){l+=i(t[r+1]);t.splice(r+1,1)}if(r>0&&(typeof t[r-1]==="string"||t[r-1].type==="plain-text")){l=i(t[r-1])+l;t.splice(r-1,1);r--}t[r]=new e.Token("plain-text",l,null,l)}}if(a.content&&typeof a.content!=="string"){s(a.content)}}};e.hooks.add("after-tokenize",function(e){if(e.language!=="jsx"&&e.language!=="tsx"){return}s(e.tokens)})})(Prism);(function(e){var t=e.util.clone(e.languages.typescript);e.languages.tsx=e.languages.extend("jsx",t);var n=e.languages.tsx.tag;n.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags);n.lookbehind=!0})(Prism);Pn("b.css");Qo(Zo(mp,[vp,gp,yp,bp,xp,ei(vp)]))}).call(this)