All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.resources.butterfaces-dist-bundle-js.butterfaces-all-with-jquery-and-bootstrap-bundle.min.js Maven / Gradle / Ivy

There is a newer version: 3.5.0
Show newest version
!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(k,e){"use strict";function m(e){return null!=e&&e===e.window}var t=[],i=Object.getPrototypeOf,o=t.slice,_=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},l=t.push,r=t.indexOf,n={},a=n.toString,g=n.hasOwnProperty,s=g.toString,d=s.call(Object),y={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},D=k.document,u={type:!0,src:!0,nonce:!0,noModule:!0};function w(e,t,n){var i,r,a=(n=n||D).createElement("script");if(a.text=e,t)for(i in u)(r=t[i]||t.getAttribute&&t.getAttribute(i))&&a.setAttribute(i,r);n.head.appendChild(a).parentNode.removeChild(a)}function b(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[a.call(e)]||"object":typeof e}var c="3.5.1",L=function(e,t){return new L.fn.init(e,t)};function h(e){var t=!!e&&"length"in e&&e.length,n=b(e);return!v(e)&&!m(e)&&("array"===n||0===t||"number"==typeof t&&0>10|55296,1023&n|56320))}function r(){M()}var e,p,w,a,s,f,h,m,b,l,d,M,k,o,D,_,u,g,y,L="sizzle"+ +new Date,v=n.document,T=0,i=0,x=le(),E=le(),Y=le(),S=le(),C=function(e,t){return e===t&&(d=!0),0},H={}.hasOwnProperty,t=[],j=t.pop,O=t.push,P=t.push,A=t.slice,I=function(e,t){for(var n=0,i=e.length;n+~]|"+$+")"+$+"*"),U=new RegExp($+"|>"),G=new RegExp(W),Q=new RegExp("^"+F+"$"),J={ID:new RegExp("^#("+F+")"),CLASS:new RegExp("^\\.("+F+")"),TAG:new RegExp("^("+F+"|[*])"),ATTR:new RegExp("^"+B),PSEUDO:new RegExp("^"+W),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+$+"*(even|odd|(([+-]|)(\\d*)n|)"+$+"*(?:([+-]|)"+$+"*(\\d+)|))"+$+"*\\)|)","i"),bool:new RegExp("^(?:"+N+")$","i"),needsContext:new RegExp("^"+$+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+$+"*((?:-\\d)?\\d*)"+$+"*\\)|)(?=[^-]|$)","i")},K=/HTML$/i,Z=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,ee=/^[^{]+\{\s*\[native \w/,te=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ne=/[+~]/,ie=new RegExp("\\\\[\\da-fA-F]{1,6}"+$+"?|\\\\([^\\r\\n\\f])","g"),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},se=we(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{P.apply(t=A.call(v.childNodes),v.childNodes),t[v.childNodes.length].nodeType}catch(e){P={apply:t.length?function(e,t){O.apply(e,A.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function oe(e,t,n,i){var r,a,s,o,l,d,u,c=t&&t.ownerDocument,h=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==h&&9!==h&&11!==h)return n;if(!i&&(M(t),t=t||k,D)){if(11!==h&&(l=te.exec(e)))if(r=l[1]){if(9===h){if(!(s=t.getElementById(r)))return n;if(s.id===r)return n.push(s),n}else if(c&&(s=c.getElementById(r))&&y(t,s)&&s.id===r)return n.push(s),n}else{if(l[2])return P.apply(n,t.getElementsByTagName(e)),n;if((r=l[3])&&p.getElementsByClassName&&t.getElementsByClassName)return P.apply(n,t.getElementsByClassName(r)),n}if(p.qsa&&!S[e+" "]&&(!_||!_.test(e))&&(1!==h||"object"!==t.nodeName.toLowerCase())){if(u=e,c=t,1===h&&(U.test(e)||q.test(e))){for((c=ne.test(e)&&ge(t.parentNode)||t)===t&&p.scope||((o=t.getAttribute("id"))?o=o.replace(re,ae):t.setAttribute("id",o=L)),a=(d=f(e)).length;a--;)d[a]=(o?"#"+o:":scope")+" "+ve(d[a]);u=d.join(",")}try{return P.apply(n,c.querySelectorAll(u)),n}catch(t){S(e,!0)}finally{o===L&&t.removeAttribute("id")}}}return m(e.replace(R,"$1"),t,n,i)}function le(){var i=[];return function e(t,n){return i.push(t+" ")>w.cacheLength&&delete e[i.shift()],e[t+" "]=n}}function de(e){return e[L]=!0,e}function ue(e){var t=k.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ce(e,t){for(var n=e.split("|"),i=n.length;i--;)w.attrHandle[n[i]]=t}function he(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function pe(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function fe(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function me(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&se(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function _e(s){return de(function(a){return a=+a,de(function(e,t){for(var n,i=s([],e.length,a),r=i.length;r--;)e[n=i[r]]&&(e[n]=!(t[n]=e[n]))})})}function ge(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in p=oe.support={},s=oe.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!K.test(t||n&&n.nodeName||"HTML")},M=oe.setDocument=function(e){var t,n,i=e?e.ownerDocument||e:v;return i!=k&&9===i.nodeType&&i.documentElement&&(o=(k=i).documentElement,D=!s(k),v!=k&&(n=k.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",r,!1):n.attachEvent&&n.attachEvent("onunload",r)),p.scope=ue(function(e){return o.appendChild(e).appendChild(k.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),p.attributes=ue(function(e){return e.className="i",!e.getAttribute("className")}),p.getElementsByTagName=ue(function(e){return e.appendChild(k.createComment("")),!e.getElementsByTagName("*").length}),p.getElementsByClassName=ee.test(k.getElementsByClassName),p.getById=ue(function(e){return o.appendChild(e).id=L,!k.getElementsByName||!k.getElementsByName(L).length}),p.getById?(w.filter.ID=function(e){var t=e.replace(ie,c);return function(e){return e.getAttribute("id")===t}},w.find.ID=function(e,t){if(void 0!==t.getElementById&&D){var n=t.getElementById(e);return n?[n]:[]}}):(w.filter.ID=function(e){var n=e.replace(ie,c);return function(e){var t=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},w.find.ID=function(e,t){if(void 0!==t.getElementById&&D){var n,i,r,a=t.getElementById(e);if(a){if((n=a.getAttributeNode("id"))&&n.value===e)return[a];for(r=t.getElementsByName(e),i=0;a=r[i++];)if((n=a.getAttributeNode("id"))&&n.value===e)return[a]}return[]}}),w.find.TAG=p.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):p.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],r=0,a=t.getElementsByTagName(e);if("*"!==e)return a;for(;n=a[r++];)1===n.nodeType&&i.push(n);return i},w.find.CLASS=p.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&D)return t.getElementsByClassName(e)},u=[],_=[],(p.qsa=ee.test(k.querySelectorAll))&&(ue(function(e){var t;o.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&_.push("[*^$]="+$+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||_.push("\\["+$+"*(?:value|"+N+")"),e.querySelectorAll("[id~="+L+"-]").length||_.push("~="),(t=k.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||_.push("\\["+$+"*name"+$+"*="+$+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||_.push(":checked"),e.querySelectorAll("a#"+L+"+*").length||_.push(".#.+[+~]"),e.querySelectorAll("\\\f"),_.push("[\\r\\n\\f]")}),ue(function(e){e.innerHTML="";var t=k.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&_.push("name"+$+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&_.push(":enabled",":disabled"),o.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&_.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),_.push(",.*:")})),(p.matchesSelector=ee.test(g=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ue(function(e){p.disconnectedMatch=g.call(e,"*"),g.call(e,"[s!='']:x"),u.push("!=",W)}),_=_.length&&new RegExp(_.join("|")),u=u.length&&new RegExp(u.join("|")),t=ee.test(o.compareDocumentPosition),y=t||ee.test(o.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},C=t?function(e,t){if(e===t)return d=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!p.sortDetached&&t.compareDocumentPosition(e)===n?e==k||e.ownerDocument==v&&y(v,e)?-1:t==k||t.ownerDocument==v&&y(v,t)?1:l?I(l,e)-I(l,t):0:4&n?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,i=0,r=e.parentNode,a=t.parentNode,s=[e],o=[t];if(!r||!a)return e==k?-1:t==k?1:r?-1:a?1:l?I(l,e)-I(l,t):0;if(r===a)return he(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)o.unshift(n);for(;s[i]===o[i];)i++;return i?he(s[i],o[i]):s[i]==v?-1:o[i]==v?1:0}),k},oe.matches=function(e,t){return oe(e,null,null,t)},oe.matchesSelector=function(e,t){if(M(e),p.matchesSelector&&D&&!S[t+" "]&&(!u||!u.test(t))&&(!_||!_.test(t)))try{var n=g.call(e,t);if(n||p.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){S(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ie,c),e[3]=(e[3]||e[4]||e[5]||"").replace(ie,c),"~="===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]||oe.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]&&oe.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&&G.test(n)&&(t=f(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(ie,c).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=x[e+" "];return t||(t=new RegExp("(^|"+$+")"+e+"("+$+"|$)"))&&x(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,i,r){return function(e){var t=oe.attr(e,n);return null==t?"!="===i:!i||(t+="","="===i?t===r:"!="===i?t!==r:"^="===i?r&&0===t.indexOf(r):"*="===i?r&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function Y(e,n,i){return v(n)?L.grep(e,function(e,t){return!!n.call(e,t,e)!==i}):n.nodeType?L.grep(e,function(e){return e===n!==i}):"string"!=typeof n?L.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(L.fn.init=function(e,t,n){var i,r;if(!e)return this;if(n=n||S,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(L):L.makeArray(e,this);if(!(i="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:C.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof L?t[0]:t,L.merge(this,L.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:D,!0)),E.test(i[1])&&L.isPlainObject(t))for(i in t)v(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(r=D.getElementById(i[2]))&&(this[0]=r,this.length=1),this}).prototype=L.fn,S=L(D);var H=/^(?:parents|prev(?:Until|All))/,j={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}L.fn.extend({has:function(e){var t=L(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,pe=/^$|^module$|\/(?:java|ecma)script/i,fe=D.createDocumentFragment().appendChild(D.createElement("div"));(ue=D.createElement("input")).setAttribute("type","radio"),ue.setAttribute("checked","checked"),ue.setAttribute("name","t"),fe.appendChild(ue),y.checkClone=fe.cloneNode(!0).cloneNode(!0).lastChild.checked,fe.innerHTML="",y.noCloneChecked=!!fe.cloneNode(!0).lastChild.defaultValue,fe.innerHTML="",y.option=!!fe.lastChild;var me={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function _e(e,t){var n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&x(e,t)?L.merge([e],n):n}function ge(e,t){for(var n=0,i=e.length;n",""]);var ye=/<|&#?\w+;/;function ve(e,t,n,i,r){for(var a,s,o,l,d,u,c=t.createDocumentFragment(),h=[],p=0,f=e.length;p\s*$/g;function Ce(e,t){return x(e,"table")&&x(11!==t.nodeType?t:t.firstChild,"tr")&&L(e).children("tbody")[0]||e}function He(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function je(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Oe(e,t){var n,i,r,a,s,o;if(1===t.nodeType){if(Q.hasData(e)&&(o=Q.get(e).events))for(r in Q.remove(t,"handle events"),o)for(n=0,i=o[r].length;n").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",r=function(e){i.remove(),r=null,e&&t("error"===e.type?404:200,e.type)}),D.head.appendChild(i[0])},abort:function(){r&&r()}}});var tn,nn=[],rn=/(=)\?(?=&|$)|\?\?/;L.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=nn.pop()||L.expando+"_"+jt.guid++;return this[e]=!0,e}}),L.ajaxPrefilter("json jsonp",function(e,t,n){var i,r,a,s=!1!==e.jsonp&&(rn.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&rn.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(rn,"$1"+i):!1!==e.jsonp&&(e.url+=(Ot.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return a||L.error(i+" was not called"),a[0]},e.dataTypes[0]="json",r=k[i],k[i]=function(){a=arguments},n.always(function(){void 0===r?L(k).removeProp(i):k[i]=r,e[i]&&(e.jsonpCallback=t.jsonpCallback,nn.push(i)),a&&v(r)&&r(a[0]),a=r=void 0}),"script"}),y.createHTMLDocument=((tn=D.implementation.createHTMLDocument("").body).innerHTML="
",2===tn.childNodes.length),L.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((i=(t=D.implementation.createHTMLDocument("")).createElement("base")).href=D.location.href,t.head.appendChild(i)):t=D),a=!n&&[],(r=E.exec(e))?[t.createElement(r[1])]:(r=ve([e],t,a),a&&a.length&&L(a).remove(),L.merge([],r.childNodes)));var i,r,a},L.fn.load=function(e,t,n){var i,r,a,s=this,o=e.indexOf(" ");return-1").append(L.parseHTML(e)).find(i):e)}).always(n&&function(e,t){s.each(function(){n.apply(this,a||[e.responseText,t,e])})}),this},L.expr.pseudos.animated=function(t){return L.grep(L.timers,function(e){return t===e.elem}).length},L.offset={setOffset:function(e,t,n){var i,r,a,s,o,l,d=L.css(e,"position"),u=L(e),c={};"static"===d&&(e.style.position="relative"),o=u.offset(),a=L.css(e,"top"),l=L.css(e,"left"),r=("absolute"===d||"fixed"===d)&&-1<(a+l).indexOf("auto")?(s=(i=u.position()).top,i.left):(s=parseFloat(a)||0,parseFloat(l)||0),v(t)&&(t=t.call(e,n,L.extend({},o))),null!=t.top&&(c.top=t.top-o.top+s),null!=t.left&&(c.left=t.left-o.left+r),"using"in t?t.using.call(e,c):("number"==typeof c.top&&(c.top+="px"),"number"==typeof c.left&&(c.left+="px"),u.css(c))}},L.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){L.offset.setOffset(this,t,e)});var e,n,i=this[0];return i?i.getClientRects().length?(e=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,i=this[0],r={top:0,left:0};if("fixed"===L.css(i,"position"))t=i.getBoundingClientRect();else{for(t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===L.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((r=L(e).offset()).top+=L.css(e,"borderTopWidth",!0),r.left+=L.css(e,"borderLeftWidth",!0))}return{top:t.top-r.top-L.css(i,"marginTop",!0),left:t.left-r.left-L.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===L.css(e,"position");)e=e.offsetParent;return e||ie})}}),L.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,r){var a="pageYOffset"===r;L.fn[t]=function(e){return W(this,function(e,t,n){var i;if(m(e)?i=e:9===e.nodeType&&(i=e.defaultView),void 0===n)return i?i[r]:e[t];i?i.scrollTo(a?i.pageXOffset:n,a?n:i.pageYOffset):e[t]=n},t,e,arguments.length)}}),L.each(["top","left"],function(e,n){L.cssHooks[n]=Je(y.pixelPosition,function(e,t){if(t)return t=Qe(e,n),qe.test(t)?L(e).position()[n]+"px":t})}),L.each({Height:"height",Width:"width"},function(s,o){L.each({padding:"inner"+s,content:o,"":"outer"+s},function(i,a){L.fn[a]=function(e,t){var n=arguments.length&&(i||"boolean"!=typeof e),r=i||(!0===e||!0===t?"margin":"border");return W(this,function(e,t,n){var i;return m(e)?0===a.indexOf("outer")?e["inner"+s]:e.document.documentElement["client"+s]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+s],i["scroll"+s],e.body["offset"+s],i["offset"+s],i["client"+s])):void 0===n?L.css(e,t,r):L.style(e,t,n,r)},o,n?e:void 0,n)}})}),L.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){L.fn[t]=function(e){return this.on(t,e)}}),L.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,i){return this.on(t,e,n,i)},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)}}),L.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,n){L.fn[n]=function(e,t){return 0>>0,i=0;iMe(e)?(a=e+1,s-Me(e)):(a=e,s);return{year:a,dayOfYear:o}}function Be(e,t,n){var i,r,a=$e(e.year(),t,n),s=Math.floor((e.dayOfYear()-a-1)/7)+1;return s<1?i=s+We(r=e.year()-1,t,n):s>We(e.year(),t,n)?(i=s-We(e.year(),t,n),r=e.year()+1):(r=e.year(),i=s),{week:i,year:r}}function We(e,t,n){var i=$e(e,t,n),r=$e(e+1,t,n);return(Me(e)-i+r)/7}B("w",["ww",2],"wo","week"),B("W",["WW",2],"Wo","isoWeek"),C("week","w"),C("isoWeek","W"),P("week",5),P("isoWeek",5),oe("w",Q),oe("ww",Q,V),oe("W",Q),oe("WW",Q,V),he(["w","ww","W","WW"],function(e,t,n,i){t[i.substr(0,1)]=k(e)});function ze(e,t){return e.slice(t,7).concat(e.slice(0,t))}B("d",0,"do","day"),B("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),B("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),B("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),B("e",0,0,"weekday"),B("E",0,0,"isoWeekday"),C("day","d"),C("weekday","e"),C("isoWeekday","E"),P("day",11),P("weekday",11),P("isoWeekday",11),oe("d",Q),oe("e",Q),oe("E",Q),oe("dd",function(e,t){return t.weekdaysMinRegex(e)}),oe("ddd",function(e,t){return t.weekdaysShortRegex(e)}),oe("dddd",function(e,t){return t.weekdaysRegex(e)}),he(["dd","ddd","dddd"],function(e,t,n,i){var r=n._locale.weekdaysParse(e,i,n._strict);null!=r?t.d=r:m(n).invalidWeekday=e}),he(["d","e","E"],function(e,t,n,i){t[i]=k(e)});var Re="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");var Ve="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");var qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_");var Ue=ae;var Ge=ae;var Qe=ae;function Je(){function e(e,t){return t.length-e.length}for(var t,n,i,r,a=[],s=[],o=[],l=[],d=0;d<7;d++)t=f([2e3,1]).day(d),n=this.weekdaysMin(t,""),i=this.weekdaysShort(t,""),r=this.weekdays(t,""),a.push(n),s.push(i),o.push(r),l.push(n),l.push(i),l.push(r);for(a.sort(e),s.sort(e),o.sort(e),l.sort(e),d=0;d<7;d++)s[d]=de(s[d]),o[d]=de(o[d]),l[d]=de(l[d]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Ke(){return this.hours()%12||12}function Ze(e,t){B(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Xe(e,t){return t._meridiemParse}B("H",["HH",2],0,"hour"),B("h",["hh",2],0,Ke),B("k",["kk",2],0,function(){return this.hours()||24}),B("hmm",0,0,function(){return""+Ke.apply(this)+A(this.minutes(),2)}),B("hmmss",0,0,function(){return""+Ke.apply(this)+A(this.minutes(),2)+A(this.seconds(),2)}),B("Hmm",0,0,function(){return""+this.hours()+A(this.minutes(),2)}),B("Hmmss",0,0,function(){return""+this.hours()+A(this.minutes(),2)+A(this.seconds(),2)}),Ze("a",!0),Ze("A",!1),C("hour","h"),P("hour",13),oe("a",Xe),oe("A",Xe),oe("H",Q),oe("h",Q),oe("k",Q),oe("HH",Q,V),oe("hh",Q,V),oe("kk",Q,V),oe("hmm",J),oe("hmmss",K),oe("Hmm",J),oe("Hmmss",K),ce(["H","HH"],_e),ce(["k","kk"],function(e,t,n){var i=k(e);t[_e]=24===i?0:i}),ce(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ce(["h","hh"],function(e,t,n){t[_e]=k(e),m(n).bigHour=!0}),ce("hmm",function(e,t,n){var i=e.length-2;t[_e]=k(e.substr(0,i)),t[ge]=k(e.substr(i)),m(n).bigHour=!0}),ce("hmmss",function(e,t,n){var i=e.length-4,r=e.length-2;t[_e]=k(e.substr(0,i)),t[ge]=k(e.substr(i,2)),t[ye]=k(e.substr(r)),m(n).bigHour=!0}),ce("Hmm",function(e,t,n){var i=e.length-2;t[_e]=k(e.substr(0,i)),t[ge]=k(e.substr(i))}),ce("Hmmss",function(e,t,n){var i=e.length-4,r=e.length-2;t[_e]=k(e.substr(0,i)),t[ge]=k(e.substr(i,2)),t[ye]=k(e.substr(r))});var et,tt=Te("Hours",!0),nt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ce,monthsShort:He,week:{dow:0,doy:6},weekdays:Re,weekdaysMin:qe,weekdaysShort:Ve,meridiemParse:/[ap]\.?m?\.?/i},it={},rt={};function at(e){return e?e.toLowerCase().replace("_","-"):e}function st(e){var t=null;if(!it[e]&&"undefined"!=typeof module&&module&&module.exports)try{t=et._abbr;require("./locale/"+e),ot(t)}catch(e){}return it[e]}function ot(e,t){var n;return e&&(n=a(t)?dt(e):lt(e,t))&&(et=n),et._abbr}function lt(e,t){if(null===t)return delete it[e],null;var n,i=nt;if(t.abbr=e,null!=it[e])T("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=it[e]._config;else if(null!=t.parentLocale)if(null!=it[t.parentLocale])i=it[t.parentLocale]._config;else{if(null==(n=st(t.parentLocale)))return rt[t.parentLocale]||(rt[t.parentLocale]=[]),rt[t.parentLocale].push({name:e,config:t}),null;i=n._config}return it[e]=new Y(E(i,t)),rt[e]&&rt[e].forEach(function(e){lt(e.name,e.config)}),ot(e),it[e]}function dt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return et;if(!o(e)){if(t=st(e))return t;e=[e]}return function(e){for(var t,n,i,r,a=0;a=t&&D(r,n,!0)>=t-1)break;t--}a++}return et}(e)}function ut(e){var t,n=e._a;return n&&-2===m(e).overflow&&(t=n[fe]<0||11Ye(n[pe],n[fe])?me:n[_e]<0||24We(n,a,s)?m(e)._overflowWeeks=!0:null!=l?m(e)._overflowWeekday=!0:(o=Fe(n,i,r,a,s),e._a[pe]=o.year,e._dayOfYear=o.dayOfYear)}(e),null!=e._dayOfYear&&(a=ct(e._a[pe],i[pe]),(e._dayOfYear>Me(a)||0===e._dayOfYear)&&(m(e)._overflowDayOfYear=!0),n=Ne(a,0,e._dayOfYear),e._a[fe]=n.getUTCMonth(),e._a[me]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=l[t]=i[t];for(;t<7;t++)e._a[t]=l[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[_e]&&0===e._a[ge]&&0===e._a[ye]&&0===e._a[ve]&&(e._nextDay=!0,e._a[_e]=0),e._d=(e._useUTC?Ne:function(e,t,n,i,r,a,s){var o;return e<100&&0<=e?(o=new Date(e+400,t,n,i,r,a,s),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,i,r,a,s),o}).apply(null,l),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[_e]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(m(e).weekdayMismatch=!0)}}var pt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ft=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,mt=/Z|[+-]\d\d(?::?\d\d)?/,_t=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],gt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],yt=/^\/?Date\((\-?\d+)/i;function vt(e){var t,n,i,r,a,s,o=e._i,l=pt.exec(o)||ft.exec(o);if(l){for(m(e).iso=!0,t=0,n=_t.length;tn.valueOf():n.valueOf()this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},pn.isLocal=function(){return!!this.isValid()&&!this._isUTC},pn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},pn.isUtc=Ft,pn.isUTC=Ft,pn.zoneAbbr=function(){return this._isUTC?"UTC":""},pn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},pn.dates=n("dates accessor is deprecated. Use date instead.",on),pn.months=n("months accessor is deprecated. Use month instead",Oe),pn.years=n("years accessor is deprecated. Use year instead",Le),pn.zone=n("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),pn.isDSTShifted=n("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!a(this._isDSTShifted))return this._isDSTShifted;var e,t={};return v(t,this),(t=Lt(t))._a?(e=(t._isUTC?f:xt)(t._a),this._isDSTShifted=this.isValid()&&0 div").hide().filter(".datepicker-"+l[this.currentViewMode].CLASS_NAME).show())},f.prototype._isInDisabledDates=function(e){return!0===this._options.disabledDates[e.format("YYYY-MM-DD")]},f.prototype._isInEnabledDates=function(e){return!0===this._options.enabledDates[e.format("YYYY-MM-DD")]},f.prototype._isInDisabledHours=function(e){return!0===this._options.disabledHours[e.format("H")]},f.prototype._isInEnabledHours=function(e){return!0===this._options.enabledHours[e.format("H")]},f.prototype._isValid=function(e,t){if(!e.isValid())return!1;if(this._options.disabledDates&&"d"===t&&this._isInDisabledDates(e))return!1;if(this._options.enabledDates&&"d"===t&&!this._isInEnabledDates(e))return!1;if(this._options.minDate&&e.isBefore(this._options.minDate,t))return!1;if(this._options.maxDate&&e.isAfter(this._options.maxDate,t))return!1;if(this._options.daysOfWeekDisabled&&"d"===t&&-1!==this._options.daysOfWeekDisabled.indexOf(e.day()))return!1;if(this._options.disabledHours&&("h"===t||"m"===t||"s"===t)&&this._isInDisabledHours(e))return!1;if(this._options.enabledHours&&("h"===t||"m"===t||"s"===t)&&!this._isInEnabledHours(e))return!1;if(this._options.disabledTimeIntervals&&("h"===t||"m"===t||"s"===t)){var n=!1;if(r.each(this._options.disabledTimeIntervals,function(){if(e.isBetween(this[0],this[1]))return!(n=!0)}),n)return!1}return!0},f.prototype._parseInputDate=function(e){return void 0===this._options.parseInputDate?n.isMoment(e)||(e=this.getMoment(e)):e=this._options.parseInputDate(e),e},f.prototype._keydown=function(e){var t=null,n=void 0,i=void 0,r=void 0,a=void 0,s=[],o={},l=e.which;for(n in c[l]="p",c)c.hasOwnProperty(n)&&"p"===c[n]&&(s.push(n),parseInt(n,10)!==l&&(o[n]=!0));for(n in this._options.keyBinds)if(this._options.keyBinds.hasOwnProperty(n)&&"function"==typeof this._options.keyBinds[n]&&(r=n.split(" ")).length===s.length&&d[l]===r[r.length-1]){for(a=!0,i=r.length-2;0<=i;i--)if(!(d[r[i]]in o)){a=!1;break}if(a){t=this._options.keyBinds[n];break}}t&&t.call(this)&&(e.stopPropagation(),e.preventDefault())},f.prototype._keyup=function(e){c[e.which]="r",h[e.which]&&(h[e.which]=!1,e.stopPropagation(),e.preventDefault())},f.prototype._indexGivenDates=function(e){var t={},n=this;return r.each(e,function(){var e=n._parseInputDate(this);e.isValid()&&(t[e.format("YYYY-MM-DD")]=!0)}),!!Object.keys(t).length&&t},f.prototype._indexGivenHours=function(e){var t={};return r.each(e,function(){t[this]=!0}),!!Object.keys(t).length&&t},f.prototype._initFormatting=function(){var e=this._options.format||"L LT",t=this;this.actualFormat=e.replace(/(\[[^\[]*])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,function(e){return t._dates[0].localeData().longDateFormat(e)||e}),this.parseFormats=this._options.extraFormats?this._options.extraFormats.slice():[],this.parseFormats.indexOf(e)<0&&this.parseFormats.indexOf(this.actualFormat)<0&&this.parseFormats.push(this.actualFormat),this.use24Hours=this.actualFormat.toLowerCase().indexOf("a")<1&&this.actualFormat.replace(/\[.*?]/g,"").indexOf("h")<1,this._isEnabled("y")&&(this.MinViewModeNumber=2),this._isEnabled("M")&&(this.MinViewModeNumber=1),this._isEnabled("d")&&(this.MinViewModeNumber=0),this.currentViewMode=Math.max(this.MinViewModeNumber,this.currentViewMode),this.unset||this._setValue(this._dates[0],0)},f.prototype._getLastPickedDate=function(){return this._dates[this._getLastPickedDateIndex()]},f.prototype._getLastPickedDateIndex=function(){return this._dates.length-1},f.prototype.getMoment=function(e){var t=void 0,t=null==e?n():this._hasTimeZone()?n.tz(e,this.parseFormats,this._options.locale,this._options.useStrict,this._options.timeZone):n(e,this.parseFormats,this._options.locale,this._options.useStrict);return this._hasTimeZone()&&t.tz(this._options.timeZone),t},f.prototype.toggle=function(){return this.widget?this.hide():this.show()},f.prototype.ignoreReadonly=function(e){if(0===arguments.length)return this._options.ignoreReadonly;if("boolean"!=typeof e)throw new TypeError("ignoreReadonly () expects a boolean parameter");this._options.ignoreReadonly=e},f.prototype.options=function(e){if(0===arguments.length)return r.extend(!0,{},this._options);if(!(e instanceof Object))throw new TypeError("options() this.options parameter should be an object");r.extend(!0,this._options,e);var n=this;r.each(this._options,function(e,t){void 0!==n[e]&&n[e](t)})},f.prototype.date=function(e,t){if(t=t||0,0===arguments.length)return this.unset?null:this._options.allowMultidate?this._dates.join(this._options.multidateSeparator):this._dates[t].clone();if(!(null===e||"string"==typeof e||n.isMoment(e)||e instanceof Date))throw new TypeError("date() parameter must be one of [null, string, moment or Date]");this._setValue(null===e?null:this._parseInputDate(e),t)},f.prototype.format=function(e){if(0===arguments.length)return this._options.format;if("string"!=typeof e&&("boolean"!=typeof e||!1!==e))throw new TypeError("format() expects a string or boolean:false parameter "+e);this._options.format=e,this.actualFormat&&this._initFormatting()},f.prototype.timeZone=function(e){if(0===arguments.length)return this._options.timeZone;if("string"!=typeof e)throw new TypeError("newZone() expects a string parameter");this._options.timeZone=e},f.prototype.dayViewHeaderFormat=function(e){if(0===arguments.length)return this._options.dayViewHeaderFormat;if("string"!=typeof e)throw new TypeError("dayViewHeaderFormat() expects a string parameter");this._options.dayViewHeaderFormat=e},f.prototype.extraFormats=function(e){if(0===arguments.length)return this._options.extraFormats;if(!1!==e&&!(e instanceof Array))throw new TypeError("extraFormats() expects an array or false parameter");this._options.extraFormats=e,this.parseFormats&&this._initFormatting()},f.prototype.disabledDates=function(e){if(0===arguments.length)return this._options.disabledDates?r.extend({},this._options.disabledDates):this._options.disabledDates;if(!e)return this._options.disabledDates=!1,this._update(),!0;if(!(e instanceof Array))throw new TypeError("disabledDates() expects an array parameter");this._options.disabledDates=this._indexGivenDates(e),this._options.enabledDates=!1,this._update()},f.prototype.enabledDates=function(e){if(0===arguments.length)return this._options.enabledDates?r.extend({},this._options.enabledDates):this._options.enabledDates;if(!e)return this._options.enabledDates=!1,this._update(),!0;if(!(e instanceof Array))throw new TypeError("enabledDates() expects an array parameter");this._options.enabledDates=this._indexGivenDates(e),this._options.disabledDates=!1,this._update()},f.prototype.daysOfWeekDisabled=function(e){if(0===arguments.length)return this._options.daysOfWeekDisabled.splice(0);if("boolean"==typeof e&&!e)return this._options.daysOfWeekDisabled=!1,this._update(),!0;if(!(e instanceof Array))throw new TypeError("daysOfWeekDisabled() expects an array parameter");if(this._options.daysOfWeekDisabled=e.reduce(function(e,t){return 6<(t=parseInt(t,10))||t<0||isNaN(t)||-1===e.indexOf(t)&&e.push(t),e},[]).sort(),this._options.useCurrent&&!this._options.keepInvalid)for(var t=0;t div").hide().filter(".datepicker-"+h[this.currentViewMode].CLASS_NAME).show())},y.prototype._isInDisabledDates=function(e){return!0===this._options.disabledDates[e.format("YYYY-MM-DD")]},y.prototype._isInEnabledDates=function(e){return!0===this._options.enabledDates[e.format("YYYY-MM-DD")]},y.prototype._isInDisabledHours=function(e){return!0===this._options.disabledHours[e.format("H")]},y.prototype._isInEnabledHours=function(e){return!0===this._options.enabledHours[e.format("H")]},y.prototype._isValid=function(e,t){if(!e.isValid())return!1;if(this._options.disabledDates&&"d"===t&&this._isInDisabledDates(e))return!1;if(this._options.enabledDates&&"d"===t&&!this._isInEnabledDates(e))return!1;if(this._options.minDate&&e.isBefore(this._options.minDate,t))return!1;if(this._options.maxDate&&e.isAfter(this._options.maxDate,t))return!1;if(this._options.daysOfWeekDisabled&&"d"===t&&-1!==this._options.daysOfWeekDisabled.indexOf(e.day()))return!1;if(this._options.disabledHours&&("h"===t||"m"===t||"s"===t)&&this._isInDisabledHours(e))return!1;if(this._options.enabledHours&&("h"===t||"m"===t||"s"===t)&&!this._isInEnabledHours(e))return!1;if(this._options.disabledTimeIntervals&&("h"===t||"m"===t||"s"===t)){var n=!1;if(s.each(this._options.disabledTimeIntervals,function(){if(e.isBetween(this[0],this[1]))return!(n=!0)}),n)return!1}return!0},y.prototype._parseInputDate=function(e){return void 0===this._options.parseInputDate?n.isMoment(e)||(e=this.getMoment(e)):e=this._options.parseInputDate(e),e},y.prototype._keydown=function(e){var t=null,n=void 0,i=void 0,r=void 0,a=void 0,s=[],o={},l=e.which;for(n in m[l]="p",m)m.hasOwnProperty(n)&&"p"===m[n]&&(s.push(n),parseInt(n,10)!==l&&(o[n]=!0));for(n in this._options.keyBinds)if(this._options.keyBinds.hasOwnProperty(n)&&"function"==typeof this._options.keyBinds[n]&&(r=n.split(" ")).length===s.length&&p[l]===r[r.length-1]){for(a=!0,i=r.length-2;0<=i;i--)if(!(p[r[i]]in o)){a=!1;break}if(a){t=this._options.keyBinds[n];break}}t&&t.call(this)&&(e.stopPropagation(),e.preventDefault())},y.prototype._keyup=function(e){m[e.which]="r",_[e.which]&&(_[e.which]=!1,e.stopPropagation(),e.preventDefault())},y.prototype._indexGivenDates=function(e){var t={},n=this;return s.each(e,function(){var e=n._parseInputDate(this);e.isValid()&&(t[e.format("YYYY-MM-DD")]=!0)}),!!Object.keys(t).length&&t},y.prototype._indexGivenHours=function(e){var t={};return s.each(e,function(){t[this]=!0}),!!Object.keys(t).length&&t},y.prototype._initFormatting=function(){var e=this._options.format||"L LT",t=this;this.actualFormat=e.replace(/(\[[^\[]*])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,function(e){return t._dates[0].localeData().longDateFormat(e)||e}),this.parseFormats=this._options.extraFormats?this._options.extraFormats.slice():[],this.parseFormats.indexOf(e)<0&&this.parseFormats.indexOf(this.actualFormat)<0&&this.parseFormats.push(this.actualFormat),this.use24Hours=this.actualFormat.toLowerCase().indexOf("a")<1&&this.actualFormat.replace(/\[.*?]/g,"").indexOf("h")<1,this._isEnabled("y")&&(this.MinViewModeNumber=2),this._isEnabled("M")&&(this.MinViewModeNumber=1),this._isEnabled("d")&&(this.MinViewModeNumber=0),this.currentViewMode=Math.max(this.MinViewModeNumber,this.currentViewMode),this.unset||this._setValue(this._dates[0],0)},y.prototype._getLastPickedDate=function(){return this._dates[this._getLastPickedDateIndex()]},y.prototype._getLastPickedDateIndex=function(){return this._dates.length-1},y.prototype.getMoment=function(e){var t=void 0,t=null==e?n():this._hasTimeZone()?n.tz(e,this.parseFormats,this._options.locale,this._options.useStrict,this._options.timeZone):n(e,this.parseFormats,this._options.locale,this._options.useStrict);return this._hasTimeZone()&&t.tz(this._options.timeZone),t},y.prototype.toggle=function(){return this.widget?this.hide():this.show()},y.prototype.ignoreReadonly=function(e){if(0===arguments.length)return this._options.ignoreReadonly;if("boolean"!=typeof e)throw new TypeError("ignoreReadonly () expects a boolean parameter");this._options.ignoreReadonly=e},y.prototype.options=function(e){if(0===arguments.length)return s.extend(!0,{},this._options);if(!(e instanceof Object))throw new TypeError("options() this.options parameter should be an object");s.extend(!0,this._options,e);var n=this;s.each(this._options,function(e,t){void 0!==n[e]&&n[e](t)})},y.prototype.date=function(e,t){if(t=t||0,0===arguments.length)return this.unset?null:this._options.allowMultidate?this._dates.join(this._options.multidateSeparator):this._dates[t].clone();if(!(null===e||"string"==typeof e||n.isMoment(e)||e instanceof Date))throw new TypeError("date() parameter must be one of [null, string, moment or Date]");this._setValue(null===e?null:this._parseInputDate(e),t)},y.prototype.format=function(e){if(0===arguments.length)return this._options.format;if("string"!=typeof e&&("boolean"!=typeof e||!1!==e))throw new TypeError("format() expects a string or boolean:false parameter "+e);this._options.format=e,this.actualFormat&&this._initFormatting()},y.prototype.timeZone=function(e){if(0===arguments.length)return this._options.timeZone;if("string"!=typeof e)throw new TypeError("newZone() expects a string parameter");this._options.timeZone=e},y.prototype.dayViewHeaderFormat=function(e){if(0===arguments.length)return this._options.dayViewHeaderFormat;if("string"!=typeof e)throw new TypeError("dayViewHeaderFormat() expects a string parameter");this._options.dayViewHeaderFormat=e},y.prototype.extraFormats=function(e){if(0===arguments.length)return this._options.extraFormats;if(!1!==e&&!(e instanceof Array))throw new TypeError("extraFormats() expects an array or false parameter");this._options.extraFormats=e,this.parseFormats&&this._initFormatting()},y.prototype.disabledDates=function(e){if(0===arguments.length)return this._options.disabledDates?s.extend({},this._options.disabledDates):this._options.disabledDates;if(!e)return this._options.disabledDates=!1,this._update(),!0;if(!(e instanceof Array))throw new TypeError("disabledDates() expects an array parameter");this._options.disabledDates=this._indexGivenDates(e),this._options.enabledDates=!1,this._update()},y.prototype.enabledDates=function(e){if(0===arguments.length)return this._options.enabledDates?s.extend({},this._options.enabledDates):this._options.enabledDates;if(!e)return this._options.enabledDates=!1,this._update(),!0;if(!(e instanceof Array))throw new TypeError("enabledDates() expects an array parameter");this._options.enabledDates=this._indexGivenDates(e),this._options.disabledDates=!1,this._update()},y.prototype.daysOfWeekDisabled=function(e){if(0===arguments.length)return this._options.daysOfWeekDisabled.splice(0);if("boolean"==typeof e&&!e)return this._options.daysOfWeekDisabled=!1,this._update(),!0;if(!(e instanceof Array))throw new TypeError("daysOfWeekDisabled() expects an array parameter");if(this._options.daysOfWeekDisabled=e.reduce(function(e,t){return 6<(t=parseInt(t,10))||t<0||isNaN(t)||-1===e.indexOf(t)&&e.push(t),e},[]).sort(),this._options.useCurrent&&!this._options.keepInvalid)for(var t=0;t").append(x("").append(x("").addClass("prev").attr("data-action","previous").append(x("").addClass(this._options.icons.previous))).append(x("").addClass("picker-switch").attr("data-action","pickerSwitch").attr("colspan",this._options.calendarWeeks?"6":"5")).append(x("").addClass("next").attr("data-action","next").append(x("").addClass(this._options.icons.next)))),t=x("").append(x("").append(x("").attr("colspan",this._options.calendarWeeks?"8":"7")));return[x("
").addClass("datepicker-days").append(x("").addClass("table table-sm").append(e).append(x(""))),x("
").addClass("datepicker-months").append(x("
").addClass("table-condensed").append(e.clone()).append(t.clone())),x("
").addClass("datepicker-years").append(x("
").addClass("table-condensed").append(e.clone()).append(t.clone())),x("
").addClass("datepicker-decades").append(x("
").addClass("table-condensed").append(e.clone()).append(t.clone()))]},E.prototype._getTimePickerMainTemplate=function(){var e=x(""),t=x(""),n=x("");return this._isEnabled("h")&&(e.append(x("
").append(x("").attr({href:"#",tabindex:"-1",title:this._options.tooltips.incrementHour}).addClass("btn").attr("data-action","incrementHours").append(x("").addClass(this._options.icons.up)))),t.append(x("").append(x("").addClass("timepicker-hour").attr({"data-time-component":"hours",title:this._options.tooltips.pickHour}).attr("data-action","showHours"))),n.append(x("").append(x("").attr({href:"#",tabindex:"-1",title:this._options.tooltips.decrementHour}).addClass("btn").attr("data-action","decrementHours").append(x("").addClass(this._options.icons.down))))),this._isEnabled("m")&&(this._isEnabled("h")&&(e.append(x("").addClass("separator")),t.append(x("").addClass("separator").html(":")),n.append(x("").addClass("separator"))),e.append(x("").append(x("").attr({href:"#",tabindex:"-1",title:this._options.tooltips.incrementMinute}).addClass("btn").attr("data-action","incrementMinutes").append(x("").addClass(this._options.icons.up)))),t.append(x("").append(x("").addClass("timepicker-minute").attr({"data-time-component":"minutes",title:this._options.tooltips.pickMinute}).attr("data-action","showMinutes"))),n.append(x("").append(x("").attr({href:"#",tabindex:"-1",title:this._options.tooltips.decrementMinute}).addClass("btn").attr("data-action","decrementMinutes").append(x("").addClass(this._options.icons.down))))),this._isEnabled("s")&&(this._isEnabled("m")&&(e.append(x("").addClass("separator")),t.append(x("").addClass("separator").html(":")),n.append(x("").addClass("separator"))),e.append(x("").append(x("").attr({href:"#",tabindex:"-1",title:this._options.tooltips.incrementSecond}).addClass("btn").attr("data-action","incrementSeconds").append(x("").addClass(this._options.icons.up)))),t.append(x("").append(x("").addClass("timepicker-second").attr({"data-time-component":"seconds",title:this._options.tooltips.pickSecond}).attr("data-action","showSeconds"))),n.append(x("").append(x("").attr({href:"#",tabindex:"-1",title:this._options.tooltips.decrementSecond}).addClass("btn").attr("data-action","decrementSeconds").append(x("").addClass(this._options.icons.down))))),this.use24Hours||(e.append(x("").addClass("separator")),t.append(x("").append(x("").addClass("separator"))),x("
").addClass("timepicker-picker").append(x("").addClass("table-condensed").append([e,t,n]))},E.prototype._getTimePickerTemplate=function(){var e=x("
").addClass("timepicker-hours").append(x("
").addClass("table-condensed")),t=x("
").addClass("timepicker-minutes").append(x("
").addClass("table-condensed")),n=x("
").addClass("timepicker-seconds").append(x("
").addClass("table-condensed")),i=[this._getTimePickerMainTemplate()];return this._isEnabled("h")&&i.push(e),this._isEnabled("m")&&i.push(t),this._isEnabled("s")&&i.push(n),i},E.prototype._getToolbar=function(){var e,t,n=[];return this._options.buttons.showToday&&n.push(x("
").append(x("").attr({href:"#",tabindex:"-1","data-action":"today",title:this._options.tooltips.today}).append(x("").addClass(this._options.icons.today)))),!this._options.sideBySide&&this._hasDate()&&this._hasTime()&&(t=e=void 0,t="times"===this._options.viewMode?(e=this._options.tooltips.selectDate,this._options.icons.date):(e=this._options.tooltips.selectTime,this._options.icons.time),n.push(x("").append(x("").attr({href:"#",tabindex:"-1","data-action":"togglePicker",title:e}).append(x("").addClass(t))))),this._options.buttons.showClear&&n.push(x("").append(x("").attr({href:"#",tabindex:"-1","data-action":"clear",title:this._options.tooltips.clear}).append(x("").addClass(this._options.icons.clear)))),this._options.buttons.showClose&&n.push(x("").append(x("").attr({href:"#",tabindex:"-1","data-action":"close",title:this._options.tooltips.close}).append(x("").addClass(this._options.icons.close)))),0===n.length?"":x("").addClass("table-condensed").append(x("").append(x("").append(n)))},E.prototype._getTemplate=function(){var e=x("
").addClass("bootstrap-datetimepicker-widget dropdown-menu"),t=x("
").addClass("datepicker").append(this._getDatePickerTemplate()),n=x("
").addClass("timepicker").append(this._getTimePickerTemplate()),i=x("
    ").addClass("list-unstyled"),r=x("
  • ").addClass("picker-switch"+(this._options.collapse?" accordion-toggle":"")).append(this._getToolbar());return this._options.inline&&e.removeClass("dropdown-menu"),this.use24Hours&&e.addClass("usetwentyfour"),this._isEnabled("s")&&!this.use24Hours&&e.addClass("wider"),this._options.sideBySide&&this._hasDate()&&this._hasTime()?(e.addClass("timepicker-sbs"),"top"===this._options.toolbarPlacement&&e.append(r),e.append(x("
    ").addClass("row").append(t.addClass("col-md-6")).append(n.addClass("col-md-6"))),"bottom"!==this._options.toolbarPlacement&&"default"!==this._options.toolbarPlacement||e.append(r),e):("top"===this._options.toolbarPlacement&&i.append(r),this._hasDate()&&i.append(x("
  • ").addClass(this._options.collapse&&this._hasTime()?"collapse":"").addClass(this._options.collapse&&this._hasTime()&&"times"===this._options.viewMode?"":"show").append(t)),"default"===this._options.toolbarPlacement&&i.append(r),this._hasTime()&&i.append(x("
  • ").addClass(this._options.collapse&&this._hasDate()?"collapse":"").addClass(this._options.collapse&&this._hasDate()&&"times"===this._options.viewMode?"show":"").append(n)),"bottom"===this._options.toolbarPlacement&&i.append(r),e.append(i))},E.prototype._place=function(e){var t=e&&e.data&&e.data.picker||this,n=t._options.widgetPositioning.vertical,i=t._options.widgetPositioning.horizontal,r=void 0,a=(t.component&&t.component.length?t.component:t._element).position(),s=(t.component&&t.component.length?t.component:t._element).offset();if(t._options.widgetParent)r=t._options.widgetParent.append(t.widget);else if(t._element.is("input"))r=t._element.after(t.widget).parent();else{if(t._options.inline)return void(r=t._element.append(t.widget));r=t._element,t._element.children().first().after(t.widget)}if("auto"===n&&(n=s.top+1.5*t.widget.height()>=x(window).height()+x(window).scrollTop()&&t.widget.height()+t._element.outerHeight()x(window).width()?"right":"left"),"top"===n?t.widget.addClass("top").removeClass("bottom"):t.widget.addClass("bottom").removeClass("top"),"right"===i?t.widget.addClass("float-right"):t.widget.removeClass("float-right"),"relative"!==r.css("position")&&(r=r.parents().filter(function(){return"relative"===x(this).css("position")}).first()),0===r.length)throw new Error("datetimepicker component should be placed within a relative positioned container");t.widget.css({top:"top"===n?"auto":a.top+t._element.outerHeight()+"px",bottom:"top"===n?r.outerHeight()-(r===t._element?0:a.top)+"px":"auto",left:"left"===i?(r===t._element?0:a.left)+"px":"auto",right:"left"===i?"auto":r.outerWidth()-t._element.outerWidth()-(r===t._element?0:a.left)+"px"})},E.prototype._fillDow=function(){var e=x("
"),t=this._viewDate.clone().startOf("w").startOf("d");for(!0===this._options.calendarWeeks&&e.append(x(""),this._options.calendarWeeks&&a.append('"),i.push(a)),s="",r.isBefore(this._viewDate,"M")&&(s+=" old"),r.isAfter(this._viewDate,"M")&&(s+=" new"),this._options.allowMultidate?-1!==(e=this._datesFormatted.indexOf(r.format("YYYY-MM-DD")))&&r.isSame(this._datesFormatted[e],"d")&&!this.unset&&(s+=" active"):r.isSame(this._getLastPickedDate(),"d")&&!this.unset&&(s+=" active"),this._isValid(r,"d")||(s+=" disabled"),r.isSame(this.getMoment(),"d")&&(s+=" today"),0!==r.day()&&6!==r.day()||(s+=" weekend"),a.append('"),r.add(1,"d");t.find("tbody").empty().append(i),this._updateMonths(),this._updateYears(),this._updateDecades()}},E.prototype._fillHours=function(){var e=this.widget.find(".timepicker-hours table"),t=this._viewDate.clone().startOf("d"),n=[],i=x("");for(11"),n.push(i)),i.append('"),t.add(1,"h");e.empty().append(n)},E.prototype._fillMinutes=function(){for(var e=this.widget.find(".timepicker-minutes table"),t=this._viewDate.clone().startOf("h"),n=[],i=1===this._options.stepping?5:this._options.stepping,r=x("");this._viewDate.isSame(t,"h");)t.minute()%(4*i)==0&&(r=x(""),n.push(r)),r.append('"),t.add(i,"m");e.empty().append(n)},E.prototype._fillSeconds=function(){for(var e=this.widget.find(".timepicker-seconds table"),t=this._viewDate.clone().startOf("m"),n=[],i=x("");this._viewDate.isSame(t,"m");)t.second()%20==0&&(i=x(""),n.push(i)),i.append('"),t.add(5,"s");e.empty().append(n)},E.prototype._fillTime=function(){var e=void 0,t=void 0,n=this.widget.find(".timepicker span[data-time-component]");this.use24Hours||(e=this.widget.find(".timepicker [data-action=togglePeriod]"),t=this._getLastPickedDate().clone().add(12<=this._getLastPickedDate().hours()?-12:12,"h"),e.text(this._getLastPickedDate().format("A")),this._isValid(t,"h")?e.removeClass("disabled"):e.addClass("disabled")),n.filter("[data-time-component=hours]").text(this._getLastPickedDate().format(this.use24Hours?"HH":"hh")),n.filter("[data-time-component=minutes]").text(this._getLastPickedDate().format("mm")),n.filter("[data-time-component=seconds]").text(this._getLastPickedDate().format("ss")),this._fillHours(),this._fillMinutes(),this._fillSeconds()},E.prototype._doAction=function(e,t){var n=this._getLastPickedDate();if(x(e.currentTarget).is(".disabled"))return!1;switch(t=t||x(e.currentTarget).data("action")){case"next":var i=T.DatePickerModes[this.currentViewMode].NAV_FUNCTION;this._viewDate.add(T.DatePickerModes[this.currentViewMode].NAV_STEP,i),this._fillDate(),this._viewUpdate(i);break;case"previous":var r=T.DatePickerModes[this.currentViewMode].NAV_FUNCTION;this._viewDate.subtract(T.DatePickerModes[this.currentViewMode].NAV_STEP,r),this._fillDate(),this._viewUpdate(r);break;case"pickerSwitch":this._showMode(1);break;case"selectMonth":var a=x(e.target).closest("tbody").find("span").index(x(e.target));this._viewDate.month(a),this.currentViewMode===this.MinViewModeNumber?(this._setValue(n.clone().year(this._viewDate.year()).month(this._viewDate.month()),this._getLastPickedDateIndex()),this._options.inline||this.hide()):(this._showMode(-1),this._fillDate()),this._viewUpdate("M");break;case"selectYear":var s=parseInt(x(e.target).text(),10)||0;this._viewDate.year(s),this.currentViewMode===this.MinViewModeNumber?(this._setValue(n.clone().year(this._viewDate.year()),this._getLastPickedDateIndex()),this._options.inline||this.hide()):(this._showMode(-1),this._fillDate()),this._viewUpdate("YYYY");break;case"selectDecade":var o=parseInt(x(e.target).data("selection"),10)||0;this._viewDate.year(o),this.currentViewMode===this.MinViewModeNumber?(this._setValue(n.clone().year(this._viewDate.year()),this._getLastPickedDateIndex()),this._options.inline||this.hide()):(this._showMode(-1),this._fillDate()),this._viewUpdate("YYYY");break;case"selectDay":var l=this._viewDate.clone();x(e.target).is(".old")&&l.subtract(1,"M"),x(e.target).is(".new")&&l.add(1,"M");var d=l.date(parseInt(x(e.target).text(),10)),u=0;this._options.allowMultidate?-1!==(u=this._datesFormatted.indexOf(d.format("YYYY-MM-DD")))?this._setValue(null,u):this._setValue(d,this._getLastPickedDateIndex()+1):this._setValue(d,this._getLastPickedDateIndex()),this._hasTime()||this._options.keepOpen||this._options.inline||this._options.allowMultidate||this.hide();break;case"incrementHours":var c=n.clone().add(1,"h");this._isValid(c,"h")&&this._setValue(c,this._getLastPickedDateIndex());break;case"incrementMinutes":var h=n.clone().add(this._options.stepping,"m");this._isValid(h,"m")&&this._setValue(h,this._getLastPickedDateIndex());break;case"incrementSeconds":var p=n.clone().add(1,"s");this._isValid(p,"s")&&this._setValue(p,this._getLastPickedDateIndex());break;case"decrementHours":var f=n.clone().subtract(1,"h");this._isValid(f,"h")&&this._setValue(f,this._getLastPickedDateIndex());break;case"decrementMinutes":var m=n.clone().subtract(this._options.stepping,"m");this._isValid(m,"m")&&this._setValue(m,this._getLastPickedDateIndex());break;case"decrementSeconds":var _=n.clone().subtract(1,"s");this._isValid(_,"s")&&this._setValue(_,this._getLastPickedDateIndex());break;case"togglePeriod":this._setValue(n.clone().add(12<=n.hours()?-12:12,"h"),this._getLastPickedDateIndex());break;case"togglePicker":var g=x(e.target),y=g.closest("a"),v=g.closest("ul"),w=v.find(".show"),b=v.find(".collapse:not(.show)"),M=g.is("span")?g:g.find("span"),k=void 0;if(w&&w.length){if((k=w.data("collapse"))&&k.transitioning)return!0;w.collapse?(w.collapse("hide"),b.collapse("show")):(w.removeClass("show"),b.addClass("show")),M.toggleClass(this._options.icons.time+" "+this._options.icons.date),M.hasClass(this._options.icons.date)?y.attr("title",this._options.tooltips.selectDate):y.attr("title",this._options.tooltips.selectTime)}break;case"showPicker":this.widget.find(".timepicker > div:not(.timepicker-picker)").hide(),this.widget.find(".timepicker .timepicker-picker").show();break;case"showHours":this.widget.find(".timepicker .timepicker-picker").hide(),this.widget.find(".timepicker .timepicker-hours").show();break;case"showMinutes":this.widget.find(".timepicker .timepicker-picker").hide(),this.widget.find(".timepicker .timepicker-minutes").show();break;case"showSeconds":this.widget.find(".timepicker .timepicker-picker").hide(),this.widget.find(".timepicker .timepicker-seconds").show();break;case"selectHour":var D=parseInt(x(e.target).text(),10);this.use24Hours||(12<=n.hours()?12!==D&&(D+=12):12===D&&(D=0)),this._setValue(n.clone().hours(D),this._getLastPickedDateIndex()),this._isEnabled("a")||this._isEnabled("m")||this._options.keepOpen||this._options.inline?this._doAction(e,"showPicker"):this.hide();break;case"selectMinute":this._setValue(n.clone().minutes(parseInt(x(e.target).text(),10)),this._getLastPickedDateIndex()),this._isEnabled("a")||this._isEnabled("s")||this._options.keepOpen||this._options.inline?this._doAction(e,"showPicker"):this.hide();break;case"selectSecond":this._setValue(n.clone().seconds(parseInt(x(e.target).text(),10)),this._getLastPickedDateIndex()),this._isEnabled("a")||this._options.keepOpen||this._options.inline?this._doAction(e,"showPicker"):this.hide();break;case"clear":this.clear();break;case"close":this.hide();break;case"today":var L=this.getMoment();this._isValid(L,"d")&&this._setValue(L,this._getLastPickedDateIndex())}return!1},E.prototype.hide=function(){var t=!1;this.widget&&(this.widget.find(".collapse").each(function(){var e=x(this).data("collapse");return!e||!e.transitioning||!(t=!0)}),t||(this.component&&this.component.hasClass("btn")&&this.component.toggleClass("active"),this.widget.hide(),x(window).off("resize",this._place()),this.widget.off("click","[data-action]"),this.widget.off("mousedown",!1),this.widget.remove(),this.widget=!1,this._notifyEvent({type:T.Event.HIDE,date:this._getLastPickedDate().clone()}),void 0!==this.input&&this.input.blur(),this._viewDate=this._getLastPickedDate().clone()))},E.prototype.show=function(){var e=void 0,t={year:function(e){return e.month(0).date(1).hours(0).seconds(0).minutes(0)},month:function(e){return e.date(1).hours(0).seconds(0).minutes(0)},day:function(e){return e.hours(0).seconds(0).minutes(0)},hour:function(e){return e.seconds(0).minutes(0)},minute:function(e){return e.seconds(0)}};if(void 0!==this.input){if(this.input.prop("disabled")||!this._options.ignoreReadonly&&this.input.prop("readonly")||this.widget)return;void 0!==this.input.val()&&0!==this.input.val().trim().length?this._setValue(this._parseInputDate(this.input.val().trim()),0):this.unset&&this._options.useCurrent&&(e=this.getMoment(),"string"==typeof this._options.useCurrent&&(e=t[this._options.useCurrent](e)),this._setValue(e,0))}else this.unset&&this._options.useCurrent&&(e=this.getMoment(),"string"==typeof this._options.useCurrent&&(e=t[this._options.useCurrent](e)),this._setValue(e,0));this.widget=this._getTemplate(),this._fillDow(),this._fillMonths(),this.widget.find(".timepicker-hours").hide(),this.widget.find(".timepicker-minutes").hide(),this.widget.find(".timepicker-seconds").hide(),this._update(),this._showMode(),x(window).on("resize",{picker:this},this._place),this.widget.on("click","[data-action]",x.proxy(this._doAction,this)),this.widget.on("mousedown",!1),this.component&&this.component.hasClass("btn")&&this.component.toggleClass("active"),this._place(),this.widget.show(),void 0!==this.input&&this._options.focusOnShow&&!this.input.is(":focus")&&this.input.focus(),this._notifyEvent({type:T.Event.SHOW})},E.prototype.destroy=function(){this.hide(),this._element.removeData(T.DATA_KEY),this._element.removeData("date")},E.prototype.disable=function(){this.hide(),this.component&&this.component.hasClass("btn")&&this.component.addClass("disabled"),void 0!==this.input&&this.input.prop("disabled",!0)},E.prototype.enable=function(){this.component&&this.component.hasClass("btn")&&this.component.removeClass("disabled"),void 0!==this.input&&this.input.prop("disabled",!1)},E.prototype.toolbarPlacement=function(e){if(0===arguments.length)return this._options.toolbarPlacement;if("string"!=typeof e)throw new TypeError("toolbarPlacement() expects a string parameter");if(-1===k.indexOf(e))throw new TypeError("toolbarPlacement() parameter must be one of ("+k.join(", ")+") value");this._options.toolbarPlacement=e,this.widget&&(this.hide(),this.show())},E.prototype.widgetPositioning=function(e){if(0===arguments.length)return x.extend({},this._options.widgetPositioning);if("[object Object]"!=={}.toString.call(e))throw new TypeError("widgetPositioning() expects an object variable");if(e.horizontal){if("string"!=typeof e.horizontal)throw new TypeError("widgetPositioning() horizontal variable must be a string");if(e.horizontal=e.horizontal.toLowerCase(),-1===M.indexOf(e.horizontal))throw new TypeError("widgetPositioning() expects horizontal parameter to be one of ("+M.join(", ")+")");this._options.widgetPositioning.horizontal=e.horizontal}if(e.vertical){if("string"!=typeof e.vertical)throw new TypeError("widgetPositioning() vertical variable must be a string");if(e.vertical=e.vertical.toLowerCase(),-1===b.indexOf(e.vertical))throw new TypeError("widgetPositioning() expects vertical parameter to be one of ("+b.join(", ")+")");this._options.widgetPositioning.vertical=e.vertical}this._update()},E.prototype.widgetParent=function(e){if(0===arguments.length)return this._options.widgetParent;if("string"==typeof e&&(e=x(e)),null!==e&&"string"!=typeof e&&!(e instanceof x))throw new TypeError("widgetParent() expects a string or a jQuery object parameter");this._options.widgetParent=e,this.widget&&(this.hide(),this.show())},E._jQueryHandleThis=function(e,t,n){var i=x(e).data(T.DATA_KEY);if("object"===(void 0===t?"undefined":r(t))&&x.extend({},T.Default,t),i||(i=new E(x(e),t),x(e).data(T.DATA_KEY,i)),"string"==typeof t){if(void 0===i[t])throw new Error('No method named "'+t+'"');return void 0===n?i[t]():i[t](n)}},E._jQueryInterface=function(e,t){return 1===this.length?E._jQueryHandleThis(this[0],e,t):this.each(function(){E._jQueryHandleThis(this,e,t)})},D=E,x(document).on(T.Event.CLICK_DATA_API,T.Selector.DATA_TOGGLE,function(){var e=L(x(this));0!==e.length&&D._jQueryInterface.call(e,"toggle")}).on(T.Event.CHANGE,"."+T.ClassName.INPUT,function(e){var t=L(x(this));0!==t.length&&D._jQueryInterface.call(t,"_change",e)}).on(T.Event.BLUR,"."+T.ClassName.INPUT,function(e){var t=L(x(this)),n=t.data(T.DATA_KEY);0!==t.length&&(n._options.debug||window.debug||D._jQueryInterface.call(t,"hide",e))}).on(T.Event.KEYDOWN,"."+T.ClassName.INPUT,function(e){var t=L(x(this));0!==t.length&&D._jQueryInterface.call(t,"_keydown",e)}).on(T.Event.KEYUP,"."+T.ClassName.INPUT,function(e){var t=L(x(this));0!==t.length&&D._jQueryInterface.call(t,"_keyup",e)}).on(T.Event.FOCUS,"."+T.ClassName.INPUT,function(e){var t=L(x(this)),n=t.data(T.DATA_KEY);0!==t.length&&n._options.allowInputToggle&&D._jQueryInterface.call(t,"show",e)}),x.fn[T.NAME]=D._jQueryInterface,x.fn[T.NAME].Constructor=D,x.fn[T.NAME].noConflict=function(){return x.fn[T.NAME]=w,D._jQueryInterface};function L(e){var t=e.data("target"),n=void 0;return t||(t=e.attr("href")||"",t=/^#[a-z]/i.test(t)?t:null),0===(n=x(t)).length||n.data(T.DATA_KEY)||x.extend({},n.data(),x(this).data()),n}function E(e,t){a(this,E);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,v.call(this,e,t));return n._init(),n}}();var IN_GLOBAL_SCOPE=!0,prettyPrintOne,prettyPrint;window.PR_SHOULD_USE_CONTINUATION=!0,function(){var S=window,e=["break,continue,do,else,for,if,return,while"],t=[[e,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],n=[t,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],i=[t,"abstract,assert,boolean,byte,extends,final,finally,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],r=[i,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,internal,into,is,let,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var,virtual,where"],a=[t,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],s="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",o=[e,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],l=[e,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],d=[e,"as,assert,const,copy,drop,enum,extern,fail,false,fn,impl,let,log,loop,match,mod,move,mut,priv,pub,pure,ref,self,static,struct,true,trait,type,unsafe,use"],u=[e,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],c=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,h="str",p="com",L="pln",T="src";function f(e,s){var o=/(?:^|\s)nocode(?:\s|$)/,l=[],d=0,u=[],c=0;return function e(t){var n,i=t.nodeType;if(1==i){if(o.test(t.className))return;for(var r=t.firstChild;r;r=r.nextSibling)e(r);var a=t.nodeName.toLowerCase();"br"!==a&&"li"!==a||(l[c]="\n",u[c<<1]=d++,u[c++<<1|1]=t)}else 3!=i&&4!=i||(n=t.nodeValue).length&&(n=s?n.replace(/\r\n?/g,"\n"):n.replace(/[ \t\r\n]+/g," "),l[c]=n,u[c<<1]=d,d+=n.length,u[c++<<1|1]=t)}(e),{sourceCode:l.join("").replace(/\n$/,""),spans:u}}function x(e,t,n,i){var r;t&&(n(r={sourceCode:t,basePos:e}),i.push.apply(i,r.decorations))}var m=/\S/;function C(e){for(var t=void 0,n=e.firstChild;n;n=n.nextSibling)var i=n.nodeType,t=1===i?t?e:n:3===i&&m.test(n.nodeValue)?e:t;return t===e?void 0:t}function _(u,w){var b,M={};!function(){for(var e=u.concat(w),t=[],n={},i=0,r=e.length;ih[0]&&(h[1]+1>h[0]&&r.push("-"),r.push(f(h[1])))}return r.push("]"),r.join("")}function a(e){for(var t=e.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),n=t.length,i=[],r=0,a=0;r/,null])):t.push([p,/^#[^\r\n]*/,null,"#"])),e.cStyleComments&&(n.push([p,/^\/\/[^\r\n]*/,null]),n.push([p,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var r,a,s,o=e.regexLiterals;o&&(s="/(?=[^/*"+(r=1|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*("+s+")")]));var l=e.types;l&&n.push(["typ",l]);var d=(""+e.keywords).replace(/^ | $/g,"");d.length&&n.push(["kwd",new RegExp("^(?:"+d.replace(/[\s,]+/g,"|")+")\\b"),null]),t.push([L,/^\s+/,null," \r\n\t "]);var u="^.[^\\s\\w.$@'\"`/\\\\]*";return e.regexLiterals&&(u+="(?!s*/)"),n.push(["lit",/^@[a-z_$][a-z_$@0-9]*/i,null],["typ",/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[L,/^[a-z_$][a-z_$@0-9]*/i,null],["lit",new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[L,/^\\[\s\S]?/,null],["pun",new RegExp(u),null]),_(t,n)}var y=g({keywords:[n,r,a,s,o,l,u],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function H(e,t,o){for(var l=/(?:^|\s)nocode(?:\s|$)/,d=/\r\n?|\n/,u=e.ownerDocument,n=u.createElement("li");e.firstChild;)n.appendChild(e.firstChild);var i=[n];function c(e){var t,n,i,r,a=e.nodeType;if(1!=a||l.test(e.className))3!=a&&4!=a||!o||(n=(t=e.nodeValue).match(d))&&(i=t.substring(0,n.index),e.nodeValue=i,(r=t.substring(n.index+n[0].length))&&e.parentNode.insertBefore(u.createTextNode(r),e.nextSibling),h(e),i||e.parentNode.removeChild(e));else if("br"===e.nodeName)h(e),e.parentNode&&e.parentNode.removeChild(e);else for(var s=e.firstChild;s;s=s.nextSibling)c(s)}function h(e){for(;!e.nextSibling;)if(!(e=e.parentNode))return;for(var t,n=function e(t,n){var i=n?t.cloneNode(!1):t,r=t.parentNode;if(r){var a=e(r,1),s=t.nextSibling;a.appendChild(i);for(var o=s;o;o=s)s=o.nextSibling,a.appendChild(o)}return i}(e.nextSibling,0);(t=n.parentNode)&&1===t.nodeType;)n=t;i.push(n)}for(var r=0;r",i=i.firstChild,n&&H(i,n,!0),j({langExtension:t,numberLines:n,sourceNode:i,pre:1}),i.innerHTML}function M(y,e){var t=e||document.body,v=t.ownerDocument||document;function n(e){return t.getElementsByTagName(e)}for(var i=[n("pre"),n("code"),n("xmp")],w=[],r=0;r]*(?:>|$)/],[p,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),w(_([[L,/^[\s]+/,null," \t\r\n"],["atv",/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],["pun",/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),w(_([],[["atv",/^[\s\S]+/]]),["uq.val"]),w(g({keywords:n,hashComments:!0,cStyleComments:!0,types:c}),["c","cc","cpp","cxx","cyc","m"]),w(g({keywords:"null,true,false"}),["json"]),w(g({keywords:r,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:c}),["cs"]),w(g({keywords:i,cStyleComments:!0}),["java"]),w(g({keywords:u,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),w(g({keywords:o,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),w(g({keywords:s,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),w(g({keywords:l,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),w(g({keywords:a,cStyleComments:!0,regexLiterals:!0}),["javascript","js"]),w(g({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),w(g({keywords:d,cStyleComments:!0,multilineStrings:!0}),["rc","rs","rust"]),w(_([],[[h,/^[\s\S]+/]]),["regex"]);var k=S.PR={createSimpleLexer:_,registerLangHandler:w,sourceDecorator:g,PR_ATTRIB_NAME:"atn",PR_ATTRIB_VALUE:"atv",PR_COMMENT:p,PR_DECLARATION:"dec",PR_KEYWORD:"kwd",PR_LITERAL:"lit",PR_NOCODE:"nocode",PR_PLAIN:L,PR_PUNCTUATION:"pun",PR_SOURCE:T,PR_STRING:h,PR_TAG:"tag",PR_TYPE:"typ",prettyPrintOne:IN_GLOBAL_SCOPE?S.prettyPrintOne=b:prettyPrintOne=b,prettyPrint:prettyPrint=IN_GLOBAL_SCOPE?S.prettyPrint=M:prettyPrint=M};"function"==typeof define&&define.amd&&define("google-code-prettify",[],function(){return k})}(),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Popper=t()}(this,function(){"use strict";var n="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,i=function(){for(var e=["Edge","Trident","Firefox"],t=0;t=i.clientWidth&&n>=i.clientHeight}),c=0l[e]&&!i.escapeWithReference&&(n=Math.min(u[t],l[e]-("right"===e?u.width:u.height))),k({},t,n)}};return d.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=D({},u,c[t](e))}),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,i=t.reference,r=e.placement.split("-")[0],a=Math.floor,s=-1!==["top","bottom"].indexOf(r),o=s?"right":"bottom",l=s?"left":"top",d=s?"width":"height";return n[o]a(i[o])&&(e.offsets.popper[l]=a(i[o])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!z(e.instance.modifiers,"arrow","keepTogether"))return e;var i=t.element;if("string"==typeof i){if(!(i=e.instance.popper.querySelector(i)))return e}else if(!e.instance.popper.contains(i))return e;var r=e.placement.split("-")[0],a=e.offsets,s=a.popper,o=a.reference,l=-1!==["left","right"].indexOf(r),d=l?"height":"width",u=l?"Top":"Left",c=u.toLowerCase(),h=l?"left":"top",p=l?"bottom":"right",f=Y(i)[d];o[p]-fs[p]&&(e.offsets.popper[c]+=o[c]+f-s[p]),e.offsets.popper=L(e.offsets.popper);var m=o[c]+o[d]/2-f/2,_=w(e.instance.popper),g=parseFloat(_["margin"+u]),y=parseFloat(_["border"+u+"Width"]),v=m-e.offsets.popper[c]-g-y,v=Math.max(Math.min(s[d]-f,v),0);return e.arrowElement=i,e.offsets.arrow=(k(n={},c,Math.round(v)),k(n,h,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(_,g){if(O(_.instance.modifiers,"inner"))return _;if(_.flipped&&_.placement===_.originalPlacement)return _;var y=p(_.instance.popper,_.instance.reference,g.padding,g.boundariesElement,_.positionFixed),v=_.placement.split("-")[0],w=S(v),b=_.placement.split("-")[1]||"",M=[];switch(g.behavior){case U:M=[v,w];break;case G:M=q(v);break;case Q:M=q(v,!0);break;default:M=g.behavior}return M.forEach(function(e,t){if(v!==e||M.length===t+1)return _;v=_.placement.split("-")[0],w=S(v);var n,i=_.offsets.popper,r=_.offsets.reference,a=Math.floor,s="left"===v&&a(i.right)>a(r.left)||"right"===v&&a(i.left)a(r.top)||"bottom"===v&&a(i.top)a(y.right),d=a(i.top)a(y.bottom),c="left"===v&&o||"right"===v&&l||"top"===v&&d||"bottom"===v&&u,h=-1!==["top","bottom"].indexOf(v),p=!!g.flipVariations&&(h&&"start"===b&&o||h&&"end"===b&&l||!h&&"start"===b&&d||!h&&"end"===b&&u),f=!!g.flipVariationsByContent&&(h&&"start"===b&&l||h&&"end"===b&&o||!h&&"start"===b&&u||!h&&"end"===b&&d),m=p||f;(s||c||m)&&(_.flipped=!0,(s||c)&&(v=M[t+1]),m&&(b="end"===(n=b)?"start":"start"===n?"end":n),_.placement=v+(b?"-"+b:""),_.offsets.popper=D({},_.offsets.popper,C(_.instance.popper,_.offsets.reference,_.placement)),_=j(_.instance.modifiers,_,"flip"))}),_},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],i=e.offsets,r=i.popper,a=i.reference,s=-1!==["left","right"].indexOf(n),o=-1===["top","left"].indexOf(n);return r[s?"left":"top"]=a[n]-(o?r[s?"width":"height"]:0),e.placement=S(t),e.offsets.popper=L(r),e}},hide:{order:800,enabled:!0,fn:function(e){if(!z(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=H(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottomn.right||t.top>n.bottom||t.rightthis._items.length-1||e<0))if(this._isSliding)f(this._element).one(Y,function(){return t.to(e)});else{if(n===e)return this.pause(),void this.cycle();var i=ndocument.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},e._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},e._checkScrollbar=function(){var e=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(e.left+e.right)
',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:Se,popperConfig:null},Re="show",Ve={HIDE:"hide"+Ae,HIDDEN:"hidden"+Ae,SHOW:"show"+Ae,SHOWN:"shown"+Ae,INSERTED:"inserted"+Ae,CLICK:"click"+Ae,FOCUSIN:"focusin"+Ae,FOCUSOUT:"focusout"+Ae,MOUSEENTER:"mouseenter"+Ae,MOUSELEAVE:"mouseleave"+Ae},qe="fade",Ue="show",Ge="hover",Qe=function(){function i(e,t){if(void 0===c)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=e,this.config=this._getConfig(t),this.tip=null,this._setListeners()}var e=i.prototype;return e.enable=function(){this._isEnabled=!0},e.disable=function(){this._isEnabled=!1},e.toggleEnabled=function(){this._isEnabled=!this._isEnabled},e.toggle=function(e){if(this._isEnabled)if(e){var t=this.constructor.DATA_KEY,n=f(e.currentTarget).data(t);n||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),f(e.currentTarget).data(t,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(f(this.getTipElement()).hasClass(Ue))return void this._leave(null,this);this._enter(null,this)}},e.dispose=function(){clearTimeout(this._timeout),f.removeData(this.element,this.constructor.DATA_KEY),f(this.element).off(this.constructor.EVENT_KEY),f(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&f(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},e.show=function(){var t=this;if("none"===f(this.element).css("display"))throw new Error("Please use show on visible elements");var e=f.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){f(this.element).trigger(e);var n=m.findShadowRoot(this.element),i=f.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element);if(e.isDefaultPrevented()||!i)return;var r=this.getTipElement(),a=m.getUID(this.constructor.NAME);r.setAttribute("id",a),this.element.setAttribute("aria-describedby",a),this.setContent(),this.config.animation&&f(r).addClass(qe);var s="function"==typeof this.config.placement?this.config.placement.call(this,r,this.element):this.config.placement,o=this._getAttachment(s);this.addAttachmentClass(o);var l=this._getContainer();f(r).data(this.constructor.DATA_KEY,this),f.contains(this.element.ownerDocument.documentElement,this.tip)||f(r).appendTo(l),f(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new c(this.element,r,this._getPopperConfig(o)),f(r).addClass(Ue),"ontouchstart"in document.documentElement&&f(document.body).children().on("mouseover",null,f.noop);var d,u=function(){t.config.animation&&t._fixTransition();var e=t._hoverState;t._hoverState=null,f(t.element).trigger(t.constructor.Event.SHOWN),"out"===e&&t._leave(null,t)};f(this.tip).hasClass(qe)?(d=m.getTransitionDurationFromElement(this.tip),f(this.tip).one(m.TRANSITION_END,u).emulateTransitionEnd(d)):u()}},e.hide=function(e){function t(){i._hoverState!==Re&&r.parentNode&&r.parentNode.removeChild(r),i._cleanTipClass(),i.element.removeAttribute("aria-describedby"),f(i.element).trigger(i.constructor.Event.HIDDEN),null!==i._popper&&i._popper.destroy(),e&&e()}var n,i=this,r=this.getTipElement(),a=f.Event(this.constructor.Event.HIDE);f(this.element).trigger(a),a.isDefaultPrevented()||(f(r).removeClass(Ue),"ontouchstart"in document.documentElement&&f(document.body).children().off("mouseover",null,f.noop),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger[Ge]=!1,f(this.tip).hasClass(qe)?(n=m.getTransitionDurationFromElement(r),f(r).one(m.TRANSITION_END,t).emulateTransitionEnd(n)):t(),this._hoverState="")},e.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},e.isWithContent=function(){return Boolean(this.getTitle())},e.addAttachmentClass=function(e){f(this.getTipElement()).addClass(Ne+"-"+e)},e.getTipElement=function(){return this.tip=this.tip||f(this.config.template)[0],this.tip},e.setContent=function(){var e=this.getTipElement();this.setElementContent(f(e.querySelectorAll(".tooltip-inner")),this.getTitle()),f(e).removeClass("fade show")},e.setElementContent=function(e,t){"object"!=typeof t||!t.nodeType&&!t.jquery?this.config.html?(this.config.sanitize&&(t=je(t,this.config.whiteList,this.config.sanitizeFn)),e.html(t)):e.text(t):this.config.html?f(t).parent().is(e)||e.empty().append(t):e.text(f(t).text())},e.getTitle=function(){return this.element.getAttribute("data-original-title")||("function"==typeof this.config.title?this.config.title.call(this.element):this.config.title)},e._getPopperConfig=function(e){var t=this;return l(l({},{placement:e,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(e){e.originalPlacement!==e.placement&&t._handlePopperPlacementChange(e)},onUpdate:function(e){return t._handlePopperPlacementChange(e)}}),this.config.popperConfig)},e._getOffset=function(){var t=this,e={};return"function"==typeof this.config.offset?e.fn=function(e){return e.offsets=l(l({},e.offsets),t.config.offset(e.offsets,t.element)||{}),e}:e.offset=this.config.offset,e},e._getContainer=function(){return!1===this.config.container?document.body:m.isElement(this.config.container)?f(this.config.container):f(document).find(this.config.container)},e._getAttachment=function(e){return We[e.toUpperCase()]},e._setListeners=function(){var i=this;this.config.trigger.split(" ").forEach(function(e){var t,n;"click"===e?f(i.element).on(i.constructor.Event.CLICK,i.config.selector,function(e){return i.toggle(e)}):"manual"!==e&&(t=e===Ge?i.constructor.Event.MOUSEENTER:i.constructor.Event.FOCUSIN,n=e===Ge?i.constructor.Event.MOUSELEAVE:i.constructor.Event.FOCUSOUT,f(i.element).on(t,i.config.selector,function(e){return i._enter(e)}).on(n,i.config.selector,function(e){return i._leave(e)}))}),this._hideModalHandler=function(){i.element&&i.hide()},f(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=l(l({},this.config),{},{trigger:"manual",selector:""}):this._fixTitle()},e._fixTitle=function(){var e=typeof this.element.getAttribute("data-original-title");!this.element.getAttribute("title")&&"string"==e||(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},e._enter=function(e,t){var n=this.constructor.DATA_KEY;(t=t||f(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),f(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusin"===e.type?"focus":Ge]=!0),f(t.getTipElement()).hasClass(Ue)||t._hoverState===Re?t._hoverState=Re:(clearTimeout(t._timeout),t._hoverState=Re,t.config.delay&&t.config.delay.show?t._timeout=setTimeout(function(){t._hoverState===Re&&t.show()},t.config.delay.show):t.show())},e._leave=function(e,t){var n=this.constructor.DATA_KEY;(t=t||f(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),f(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusout"===e.type?"focus":Ge]=!1),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState="out",t.config.delay&&t.config.delay.hide?t._timeout=setTimeout(function(){"out"===t._hoverState&&t.hide()},t.config.delay.hide):t.hide())},e._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},e._getConfig=function(e){var t=f(this.element).data();return Object.keys(t).forEach(function(e){-1!==Fe.indexOf(e)&&delete t[e]}),"number"==typeof(e=l(l(l({},this.constructor.Default),t),"object"==typeof e&&e?e:{})).delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),m.typeCheckConfig(Oe,e,this.constructor.DefaultType),e.sanitize&&(e.template=je(e.template,e.whiteList,e.sanitizeFn)),e},e._getDelegateConfig=function(){var e={};if(this.config)for(var t in this.config)this.constructor.Default[t]!==this.config[t]&&(e[t]=this.config[t]);return e},e._cleanTipClass=function(){var e=f(this.getTipElement()),t=e.attr("class").match($e);null!==t&&t.length&&e.removeClass(t.join(""))},e._handlePopperPlacementChange=function(e){this.tip=e.instance.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))},e._fixTransition=function(){var e=this.getTipElement(),t=this.config.animation;null===e.getAttribute("x-placement")&&(f(e).removeClass(qe),this.config.animation=!1,this.hide(),this.show(),this.config.animation=t)},i._jQueryInterface=function(n){return this.each(function(){var e=f(this).data(Pe),t="object"==typeof n&&n;if((e||!/dispose|hide/.test(n))&&(e||(e=new i(this,t),f(this).data(Pe,e)),"string"==typeof n)){if(void 0===e[n])throw new TypeError('No method named "'+n+'"');e[n]()}})},s(i,null,[{key:"VERSION",get:function(){return"4.5.0"}},{key:"Default",get:function(){return ze}},{key:"NAME",get:function(){return Oe}},{key:"DATA_KEY",get:function(){return Pe}},{key:"Event",get:function(){return Ve}},{key:"EVENT_KEY",get:function(){return Ae}},{key:"DefaultType",get:function(){return Be}}]),i}();f.fn[Oe]=Qe._jQueryInterface,f.fn[Oe].Constructor=Qe,f.fn[Oe].noConflict=function(){return f.fn[Oe]=Ie,Qe._jQueryInterface};var Je="popover",Ke="bs.popover",Ze="."+Ke,Xe=f.fn[Je],et="bs-popover",tt=new RegExp("(^|\\s)"+et+"\\S+","g"),nt=l(l({},Qe.Default),{},{placement:"right",trigger:"click",content:"",template:''}),it=l(l({},Qe.DefaultType),{},{content:"(string|element|function)"}),rt={HIDE:"hide"+Ze,HIDDEN:"hidden"+Ze,SHOW:"show"+Ze,SHOWN:"shown"+Ze,INSERTED:"inserted"+Ze,CLICK:"click"+Ze,FOCUSIN:"focusin"+Ze,FOCUSOUT:"focusout"+Ze,MOUSEENTER:"mouseenter"+Ze,MOUSELEAVE:"mouseleave"+Ze},at=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),(t.prototype.constructor=t).__proto__=n;var r=i.prototype;return r.isWithContent=function(){return this.getTitle()||this._getContent()},r.addAttachmentClass=function(e){f(this.getTipElement()).addClass(et+"-"+e)},r.getTipElement=function(){return this.tip=this.tip||f(this.config.template)[0],this.tip},r.setContent=function(){var e=f(this.getTipElement());this.setElementContent(e.find(".popover-header"),this.getTitle());var t=this._getContent();"function"==typeof t&&(t=t.call(this.element)),this.setElementContent(e.find(".popover-body"),t),e.removeClass("fade show")},r._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},r._cleanTipClass=function(){var e=f(this.getTipElement()),t=e.attr("class").match(tt);null!==t&&0=this._offsets[r]&&(void 0===this._offsets[r+1]||e li > .active",bt=function(){function i(e){this._element=e}var e=i.prototype;return e.show=function(){var e,t,n,i,r,a,s,o,l=this;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&f(this._element).hasClass(vt)||f(this._element).hasClass("disabled")||(t=f(this._element).closest(".nav, .list-group")[0],n=m.getSelectorFromElement(this._element),t&&(i="UL"===t.nodeName||"OL"===t.nodeName?wt:".active",r=(r=f.makeArray(f(t).find(i)))[r.length-1]),a=f.Event("hide.bs.tab",{relatedTarget:this._element}),s=f.Event("show.bs.tab",{relatedTarget:r}),r&&f(r).trigger(a),f(this._element).trigger(s),s.isDefaultPrevented()||a.isDefaultPrevented()||(n&&(e=document.querySelector(n)),this._activate(this._element,t),o=function(){var e=f.Event("hidden.bs.tab",{relatedTarget:l._element}),t=f.Event("shown.bs.tab",{relatedTarget:r});f(r).trigger(e),f(l._element).trigger(t)},e?this._activate(e,e.parentNode,o):o()))},e.dispose=function(){f.removeData(this._element,gt),this._element=null},e._activate=function(e,t,n){function i(){return a._transitionComplete(e,s,n)}var r,a=this,s=(!t||"UL"!==t.nodeName&&"OL"!==t.nodeName?f(t).children(".active"):f(t).find(wt))[0],o=n&&s&&f(s).hasClass("fade");s&&o?(r=m.getTransitionDurationFromElement(s),f(s).removeClass("show").one(m.TRANSITION_END,i).emulateTransitionEnd(r)):i()},e._transitionComplete=function(e,t,n){var i,r,a;t&&(f(t).removeClass(vt),(i=f(t.parentNode).find("> .dropdown-menu .active")[0])&&f(i).removeClass(vt),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!1)),f(e).addClass(vt),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),m.reflow(e),e.classList.contains("fade")&&e.classList.add("show"),e.parentNode&&f(e.parentNode).hasClass("dropdown-menu")&&((r=f(e).closest(".dropdown")[0])&&(a=[].slice.call(r.querySelectorAll(".dropdown-toggle")),f(a).addClass(vt)),e.setAttribute("aria-expanded",!0)),n&&n()},i._jQueryInterface=function(n){return this.each(function(){var e=f(this),t=e.data(gt);if(t||(t=new i(this),e.data(gt,t)),"string"==typeof n){if(void 0===t[n])throw new TypeError('No method named "'+n+'"');t[n]()}})},s(i,null,[{key:"VERSION",get:function(){return"4.5.0"}}]),i}();f(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',function(e){e.preventDefault(),bt._jQueryInterface.call(f(this),"show")}),f.fn.tab=bt._jQueryInterface,f.fn.tab.Constructor=bt,f.fn.tab.noConflict=function(){return f.fn.tab=yt,bt._jQueryInterface};var Mt="toast",kt="bs.toast",Dt="."+kt,Lt=f.fn[Mt],Tt="click.dismiss"+Dt,xt="show",Et={animation:"boolean",autohide:"boolean",delay:"number"},Yt={animation:!0,autohide:!0,delay:500},St=function(){function i(e,t){this._element=e,this._config=this._getConfig(t),this._timeout=null,this._setListeners()}var e=i.prototype;return e.show=function(){var e,t,n=this,i=f.Event("show.bs.toast");f(this._element).trigger(i),i.isDefaultPrevented()||(this._config.animation&&this._element.classList.add("fade"),e=function(){n._element.classList.remove("showing"),n._element.classList.add(xt),f(n._element).trigger("shown.bs.toast"),n._config.autohide&&(n._timeout=setTimeout(function(){n.hide()},n._config.delay))},this._element.classList.remove("hide"),m.reflow(this._element),this._element.classList.add("showing"),this._config.animation?(t=m.getTransitionDurationFromElement(this._element),f(this._element).one(m.TRANSITION_END,e).emulateTransitionEnd(t)):e())},e.hide=function(){var e;this._element.classList.contains(xt)&&(e=f.Event("hide.bs.toast"),f(this._element).trigger(e),e.isDefaultPrevented()||this._close())},e.dispose=function(){clearTimeout(this._timeout),this._timeout=null,this._element.classList.contains(xt)&&this._element.classList.remove(xt),f(this._element).off(Tt),f.removeData(this._element,kt),this._element=null,this._config=null},e._getConfig=function(e){return e=l(l(l({},Yt),f(this._element).data()),"object"==typeof e&&e?e:{}),m.typeCheckConfig(Mt,e,this.constructor.DefaultType),e},e._setListeners=function(){var e=this;f(this._element).on(Tt,'[data-dismiss="toast"]',function(){return e.hide()})},e._close=function(){function e(){n._element.classList.add("hide"),f(n._element).trigger("hidden.bs.toast")}var t,n=this;this._element.classList.remove(xt),this._config.animation?(t=m.getTransitionDurationFromElement(this._element),f(this._element).one(m.TRANSITION_END,e).emulateTransitionEnd(t)):e()},i._jQueryInterface=function(n){return this.each(function(){var e=f(this),t=e.data(kt);if(t||(t=new i(this,"object"==typeof n&&n),e.data(kt,t)),"string"==typeof n){if(void 0===t[n])throw new TypeError('No method named "'+n+'"');t[n](this)}})},s(i,null,[{key:"VERSION",get:function(){return"4.5.0"}},{key:"DefaultType",get:function(){return Et}},{key:"Default",get:function(){return Yt}}]),i}();f.fn[Mt]=St._jQueryInterface,f.fn[Mt].Constructor=St,f.fn[Mt].noConflict=function(){return f.fn[Mt]=Lt,St._jQueryInterface},e.Alert=u,e.Button=w,e.Carousel=j,e.Collapse=R,e.Dropdown=le,e.Modal=Ee,e.Popover=at,e.Scrollspy=_t,e.Tab=bt,e.Toast=St,e.Tooltip=Qe,e.Util=m,Object.defineProperty(e,"__esModule",{value:!0})}),function(n){var i={};function r(e){if(i[e])return i[e].exports;var t=i[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}r.m=n,r.c=i,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,n){"use strict";n(1),n(6),n(7);var i=s(n(2)),r=s(n(3)),a=s(n(4));function s(e){return e&&e.__esModule?e:{default:e}}r.default===a.default&&n(8),window.Inputmask=i.default},function(e,t,n){"use strict";var i,r,a;r=[n(2)],void 0===(a="function"==typeof(i=function(e){return e.extendDefinitions({A:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",casing:"upper"},"&":{validator:"[0-9A-Za-zА-яЁёÀ-ÿµ]",casing:"upper"},"#":{validator:"[0-9A-Fa-f]",casing:"upper"}}),e.extendAliases({cssunit:{regex:"[+-]?[0-9]+\\.?([0-9]+)?(px|em|rem|ex|%|in|cm|mm|pt|pc)"},url:{regex:"(https?|ftp)//.*",autoUnmask:!1},ip:{mask:"i[i[i]].i[i[i]].i[i[i]].i[i[i]]",definitions:{i:{validator:function(e,t,n){return e=-10||e.indexOf("Trident/")>0,ue=fe("touchstart"),ce=/iemobile/i.test(e),he=/iphone/i.test(e)&&!ce;function pe(e,t,n){if(!(this instanceof pe)){return new pe(e,t,n)}this.el=oe;this.events={};this.maskset=oe;this.refreshValue=false;if(n!==true){if(ae.isPlainObject(e)){t=e}else{t=t||{};if(e)t.alias=e}this.opts=ae.extend(true,{},this.defaults,t);this.noMasksCache=t&&t.definitions!==oe;this.userOptions=t||{};this.isRTL=this.opts.numericInput;u(this.opts.alias,t,this.opts)}}function u(e,t,n){var i=pe.prototype.aliases[e];if(i){if(i.alias)u(i.alias,oe,n);ae.extend(true,n,i);ae.extend(true,n,t);return true}else if(n.mask===null){n.mask=e}return false}function a(n,o){function e(e,t,n){var i=false;if(e===null||e===""){i=n.regex!==null;if(i){e=n.regex;e=e.replace(/^(\^)(.*)(\$)$/,"$2")}else{i=true;e=".*"}}if(e.length===1&&n.greedy===false&&n.repeat!==0){n.placeholder=""}if(n.repeat>0||n.repeat==="*"||n.repeat==="+"){var r=n.repeat==="*"?0:n.repeat==="+"?1:n.repeat;e=n.groupmarker[0]+e+n.groupmarker[1]+n.quantifiermarker[0]+r+","+n.repeat+n.quantifiermarker[1]}var a,s=i?"regex_"+n.regex:n.numericInput?e.split("").reverse().join(""):e;if(pe.prototype.masksCache[s]===oe||o===true){a={mask:e,maskToken:pe.prototype.analyseMask(e,i,n),validPositions:{},_buffer:oe,buffer:oe,tests:{},excludes:{},metadata:t,maskLength:oe,jitOffset:{}};if(o!==true){pe.prototype.masksCache[s]=a;a=ae.extend(true,{},pe.prototype.masksCache[s])}}else a=ae.extend(true,{},pe.prototype.masksCache[s]);return a}var t;if(ae.isFunction(n.mask)){n.mask=n.mask(n)}if(ae.isArray(n.mask)){if(n.mask.length>1){if(n.keepStatic===null){n.keepStatic="auto";for(var i=0;i1){r+=n.groupmarker[1]+n.alternatormarker+n.groupmarker[0]}if(t.mask!==oe&&!ae.isFunction(t.mask)){r+=t.mask}else{r+=t}});r+=n.groupmarker[1];return e(r,n.mask,n)}else n.mask=n.mask.pop()}if(n.mask&&n.mask.mask!==oe&&!ae.isFunction(n.mask.mask)){t=e(n.mask.mask,n.mask,n)}else{t=e(n.mask,n.mask,n)}return t}function fe(e){var t=le.createElement("input"),n="on"+e,i=n in t;if(!i){t.setAttribute(n,"return;");i=typeof t[n]==="function"}t=null;return i}function me(e,t,W){t=t||this.maskset;W=W||this.opts;var c=this,d=this.el,_=this.isRTL,g,a,o=false,u=false,v=false,y,r=false,f,s;var p=function e(t,n,i,r,a){var s=W.greedy;if(a)W.greedy=false;n=n||0;var o=[],l,d=0,u,c,h=k();do{if(t===true&&z().validPositions[d]){c=a&&z().validPositions[d].match.optionality===true&&z().validPositions[d+1]===oe&&(z().validPositions[d].generatedInput===true||z().validPositions[d].input==W.skipOptionalPartCharacter&&d>0)?m(d,T(d,l,d-1)):z().validPositions[d];u=c.match;l=c.locator.slice();o.push(i===true?c.input:i===false?u.nativeDef:F(d,u))}else{c=w(d,l,d-1);u=c.match;l=c.locator.slice();var p=r===true?false:W.jitMasking!==false?W.jitMasking:u.jit;if(p===false||p===oe||typeof p==="number"&&isFinite(p)&&p>d){o.push(i===false?u.nativeDef:F(d,u))}}if(W.keepStatic==="auto"){if(u.newBlockMarker&&u.fn!==null){W.keepStatic=d-1}}d++}while((y===oe||dd);if(o[o.length-1]===""){o.pop()}if(i!==false||z().maskLength===oe)z().maskLength=d-1;W.greedy=s;return o};function z(){return t}function M(e){var t=z();t.buffer=oe;if(e!==true){t.validPositions={};t.p=0}}function k(e,t,n){var i=-1,r=-1,a=n||z().validPositions;if(e===oe)e=-1;for(var s in a){var o=parseInt(s);if(a[o]&&(t||a[o].generatedInput!==true)){if(o<=e)i=o;if(o>=e)r=o}}return i===-1||i==e?r:r==-1?i:e-i0){t=t.split(",")[0]}return t!==oe?t.toString():""}function h(e,t){var n=(e.alternation!=oe?e.mloc[D(e)]:e.locator).join("");if(n!=="")while(n.length0?e-1:0;var n=L(e),i=h(n),r,a,s;for(var o=0;o500&&n!==oe){throw"Inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. "+z().mask}if(A===P&&e.matches===oe){I.push({match:e,locator:t.reverse(),cd:F,mloc:{}});return true}else if(e.matches!==oe){if(e.isGroup&&n!==e){e=O(H.matches[ae.inArray(e,H.matches)+1],t,n);if(e)return true}else if(e.isOptional){var l=e;e=B(e,j,t,n);if(e){ae.each(I,function(e,t){t.match.optionality=true});$=I[I.length-1].match;if(n===oe&&a($,l)){N=true;A=P}else return true}}else if(e.isAlternator){var d=e,u=[],c,h=I.slice(),p=t.length;var f=j.length>0?j.shift():-1;if(f===-1||typeof f==="string"){var m=A,_=j.slice(),g=[],y;if(typeof f=="string"){g=f.split(",")}else{for(y=0;y=W.keepStatic)g=g.slice(0,1);var M=false;for(var k=0;k0;e=u.length>0;j=_.slice()}else e=O(d.matches[f]||H.matches[f],[f].concat(t),n);if(e)return true}else if(e.isQuantifier&&n!==H.matches[ae.inArray(e,H.matches)-1]){var Y=e;for(var S=j.length>0?j.shift():0;S<(isNaN(Y.quantifier.max)?S+1:Y.quantifier.max)&&A<=P;S++){var C=H.matches[ae.inArray(Y,H.matches)-1];e=O(C,[S].concat(t),C);if(e){$=I[I.length-1].match;$.optionalQuantifier=S>=Y.quantifier.min;$.jit=(S||1)*C.matches.indexOf($)>=Y.quantifier.jit;if($.optionalQuantifier&&a($,C)){N=true;A=P;break}if($.jit){z().jitOffset[P]=C.matches.indexOf($)}return true}}}else{e=B(e,j,t,n);if(e)return true}}else{A++}}for(var n=j.length>0?j.shift():0;nP){break}}}}function r(e,t){var i=[];if(!ae.isArray(t))t=[t];if(t.length>0){if(t[0].alternation===oe){i=m(e,t.slice()).locator.slice();if(i.length===0)i=t[0].locator.slice()}else{ae.each(t,function(e,t){if(t.def!==""){if(i.length===0)i=t.locator.slice();else{for(var n=0;n-1){if(e===oe){var a=P-1,s;while((s=z().validPositions[a]||z().tests[a])===oe&&a>-1){a--}if(s!==oe&&a>-1){i=r(a,s);F=i.join("");A=a}}if(z().tests[P]&&z().tests[P][0].cd===F){return z().tests[P]}for(var o=i.shift();oP){break}}}if(I.length===0||N){I.push({match:{fn:null,optionality:false,casing:null,def:"",placeholder:""},locator:[],mloc:{},cd:F})}if(e!==oe&&z().tests[P]){return ae.extend(true,[],I)}z().tests[P]=ae.extend(true,[],I);return z().tests[P]}function x(){if(z()._buffer===oe){z()._buffer=p(false,1);if(z().buffer===oe)z().buffer=z()._buffer.slice()}return z()._buffer}function E(e){if(z().buffer===oe||e===true){z().buffer=p(true,k(),true);if(z()._buffer===oe)z()._buffer=z().buffer.slice()}return z().buffer}function Y(e,t,n){var i,r;if(e===true){M();e=0;t=n.length}else{for(i=e;i=0;f--){d=z().validPositions[f];if(d&&d.alternation!==oe){if(u&&u.locator[d.alternation]!==d.locator[d.alternation]){break}s=f;o=z().validPositions[s].alternation;u=d}}}if(o!==oe){p=parseInt(s);z().excludes[p]=z().excludes[p]||[];if(e!==true){z().excludes[p].push(D(u))}var m=[],_=0;for(c=p;c0){var v=y.shift();if(!(l=j(k(oe,true)+1,v,false,i,true))){break}}if(l&&t!==oe){var w=k(e)+1;for(c=p;cw?w:e,t,n,i,true)}if(!l){M();u=L(p);z().validPositions=ae.extend(true,{},a);if(z().excludes[p]){var b=D(u);if(z().excludes[p].indexOf(b)!==-1){l=H(e,t,n,i,p-1);break}z().excludes[p].push(b);for(c=p;c1||e.begin-e.end===1:e.end-e.begin>1||e.end-e.begin===1}t=t===true;var r=d;if(d.begin!==oe){r=_?d.end:d.begin}function a(a,s,o){var l=false;ae.each(T(a),function(e,t){var n=t.match;E(true);l=n.fn!=null?n.fn.test(s,z(),a,o,W,c(d)):(s===n.def||s===W.skipOptionalPartCharacter)&&n.def!==""?{c:F(a,n,true)||n.def,pos:a}:false;if(l!==false){var i=l.c!==oe?l.c:s,r=a;i=i===W.skipOptionalPartCharacter&&n.fn===null?F(a,n,true)||n.def:i;if(l.remove!==oe){if(!ae.isArray(l.remove))l.remove=[l.remove];ae.each(l.remove.sort(function(e,t){return t-e}),function(e,t){P({begin:t,end:t+1})})}if(l.insert!==oe){if(!ae.isArray(l.insert))l.insert=[l.insert];ae.each(l.insert.sort(function(e,t){return e-t}),function(e,t){j(t.pos,t.c,true,u)})}if(l!==true&&l.pos!==oe&&l.pos!==a){r=l.pos}if(l!==true&&l.pos===oe&&l.c===oe){return false}if(!P(d,ae.extend({},t,{input:S(i,n,r)}),u,r)){l=false}return false}});return l}var s=true,o=ae.extend(true,{},z().validPositions);if(ae.isFunction(W.preValidation)&&!t&&u!==true&&i!==true){s=W.preValidation(E(),r,e,c(d),W,z())}if(s===true){O(oe,r,true);if(y===oe||r0;e--){if(z().validPositions[e])break}}for(var r=e;re+1?t[e+1]&&t[e+1].match.fn===null&&t[e+1]:t[e+1];return r&&a}return false}var a=e.begin!==oe?e.begin:e,s=e.end!==oe?e.end:e;if(e.begin>e.end){a=e.end;s=e.begin}i=i!==oe?i:a;if(a!==s||W.insertMode&&z().validPositions[i]!==oe&&n===oe){var o=ae.extend(true,{},z().validPositions),l=k(oe,true),d;z().p=a;for(d=l;d>=a;d--){if(z().validPositions[d]&&z().validPositions[d].match.nativeDef==="+"){W.isNegative=false}delete z().validPositions[d]}var u=true,c=i,h=z().validPositions,p=false,f=c,d=c;if(t){z().validPositions[i]=ae.extend(true,{},t);f++;c++;if(a=s||d>=a&&m.generatedInput!==true&&r(d,o,{begin:a,end:s}))){while(L(f).match.def!==""){if(p===false&&o[f]&&o[f].match.nativeDef===m.match.nativeDef){z().validPositions[f]=ae.extend(true,{},o[f]);z().validPositions[f].input=m.input;O(oe,f,true);c=f+1;u=true}else if(W.shiftPositions&&b(f,m.match.def)){var _=j(f,m.input,true,true);u=_!==false;c=_.caret||_.insert?k():f+1;p=true}else{u=m.generatedInput===true||m.input===W.radixPoint&&W.numericInput===true}if(u)break;if(!u&&f>s&&A(f,true)&&(m.match.fn!==null||f>z().maskLength)){break}f++}if(L(f).match.def=="")u=false;f=c}if(!u)break}if(!u){z().validPositions=ae.extend(true,{},o);M(true);return false}}else if(t){z().validPositions[i]=ae.extend(true,{},t)}M(true);return true}function A(e,t){var n=w(e).match;if(n.def==="")n=L(e).match;if(n.fn!=null){return n.fn}if(t!==true&&e>-1){var i=T(e);return i.length>1+(i[i.length-1].match.def===""?1:0)}return false}function I(e,t){var n=e+1;while(L(n).match.def!==""&&(t===true&&(L(n).match.newBlockMarker!==true||!A(n))||t!==true&&!A(n))){n++}return n}function N(e,t){var n=e,i;if(n<=0)return 0;while(--n>0&&(t===true&&L(n).match.newBlockMarker!==true||t!==true&&!A(n)&&(i=T(n),i.length<2||i.length===2&&i[1].match.def===""))){}return n}function $(e,t,n,i,r){if(i&&ae.isFunction(W.onBeforeWrite)){var a=W.onBeforeWrite.call(c,i,t,n,W);if(a){if(a.refreshFromBuffer){var s=a.refreshFromBuffer;Y(s===true?s:s.start,s.end,a.buffer||t);t=E(true)}if(n!==oe)n=a.caret!==oe?a.caret:n}}if(e!==oe){e.inputmask._valueSet(t.join(""));if(n!==oe&&(i===oe||i.type!=="blur")){q(e,n)}else Z(e,n,t.length===0);if(r===true){var o=ae(e),l=e.inputmask._valueGet();u=true;o.trigger("input");setTimeout(function(){if(l===x().join("")){o.trigger("cleared")}else if(Q(t)===true){o.trigger("complete")}},0)}}}function F(e,t,n){t=t||L(e).match;if(t.placeholder!==oe||n===true){return ae.isFunction(t.placeholder)?t.placeholder(W):t.placeholder}else if(t.fn===null){if(e>-1&&z().validPositions[e]===oe){var i=T(e),r=[],a;if(i.length>1+(i[i.length-1].match.def===""?1:0)){for(var s=0;s1){if(/[0-9a-bA-Z]/.test(r[0].match.def)){return W.placeholder.charAt(e%W.placeholder.length)}}}}}}return t.def}return W.placeholder.charAt(e%W.placeholder.length)}function l(e,t){if(de){if(e.inputmask._valueGet()!==t&&(e.placeholder!==t||e.placeholder==="")){var n=E().slice(),i=e.inputmask._valueGet();if(i!==t){var r=k();if(r===-1&&i===x().join("")){n=[]}else if(r!==-1){G(n)}$(e,n)}}}else if(e.placeholder!==t){e.placeholder=t;if(e.placeholder==="")e.removeAttribute("placeholder")}}var B={on:function e(t,n,s){var i=function e(t){var n=this;if(n.inputmask===oe&&this.nodeName!=="FORM"){var i=ae.data(n,"_inputmask_opts");if(i)new pe(i).mask(n);else B.off(n)}else if(t.type!=="setvalue"&&this.nodeName!=="FORM"&&(n.disabled||n.readOnly&&!(t.type==="keydown"&&t.ctrlKey&&t.keyCode===67||W.tabThrough===false&&t.keyCode===pe.keyCode.TAB))){t.preventDefault()}else{switch(t.type){case"input":if(u===true){u=false;return t.preventDefault()}if(ue){var r=arguments;setTimeout(function(){s.apply(n,r);q(n,n.inputmask.caretPos,oe,true)},0);return false}break;case"keydown":o=false;u=false;break;case"keypress":if(o===true){return t.preventDefault()}o=true;break;case"click":if(ce||he){var r=arguments;setTimeout(function(){s.apply(n,r)},0);return false}break}var a=s.apply(n,arguments);if(a===false){t.preventDefault();t.stopPropagation()}return a}};t.inputmask.events[n]=t.inputmask.events[n]||[];t.inputmask.events[n].push(i);if(ae.inArray(n,["submit","reset"])!==-1){if(t.form!==null)ae(t.form).on(n,i)}else{ae(t).on(n,i)}},off:function e(i,t){if(i.inputmask&&i.inputmask.events){var n;if(t){n=[];n[t]=i.inputmask.events[t]}else{n=i.inputmask.events}ae.each(n,function(e,t){while(t.length>0){var n=t.pop();if(ae.inArray(e,["submit","reset"])!==-1){if(i.form!==null)ae(i.form).off(e,n)}else{ae(i).off(e,n)}}delete i.inputmask.events[e]})}}};var R={keydownEvent:function e(t){var n=this,i=ae(n),r=t.keyCode,a=q(n);if(r===pe.keyCode.BACKSPACE||r===pe.keyCode.DELETE||he&&r===pe.keyCode.BACKSPACE_SAFARI||t.ctrlKey&&r===pe.keyCode.X&&!fe("cut")){t.preventDefault();J(n,r,a);$(n,E(true),z().p,t,n.inputmask._valueGet()!==E().join(""))}else if(r===pe.keyCode.END||r===pe.keyCode.PAGE_DOWN){t.preventDefault();var s=I(k());q(n,t.shiftKey?a.begin:s,s,true)}else if(r===pe.keyCode.HOME&&!t.shiftKey||r===pe.keyCode.PAGE_UP){t.preventDefault();q(n,0,t.shiftKey?a.begin:0,true)}else if((W.undoOnEscape&&r===pe.keyCode.ESCAPE||r===90&&t.ctrlKey)&&t.altKey!==true){V(n,true,false,g.split(""));i.trigger("click")}else if(r===pe.keyCode.INSERT&&!(t.shiftKey||t.ctrlKey)){W.insertMode=!W.insertMode;n.setAttribute("im-insert",W.insertMode)}else if(W.tabThrough===true&&r===pe.keyCode.TAB){if(t.shiftKey===true){if(L(a.begin).match.fn===null){a.begin=I(a.begin)}a.end=N(a.begin,true);a.begin=N(a.end,true)}else{a.begin=I(a.begin,true);a.end=I(a.begin,true);if(a.endo.length?-1:0,d=a.substr(0,s.begin),u=a.substr(s.begin),c=o.substr(0,s.begin+l),h=o.substr(s.begin+l);var p=s,f="",m=false;if(d!==c){var _=(m=d.length>=c.length)?d.length:c.length,g;for(g=0;d.charAt(g)===c.charAt(g)&&g<_;g++){}if(m){p.begin=g-l;f+=d.slice(g,p.end)}}if(u!==h){if(u.length>h.length){f+=u.slice(0,1)}else{if(u.length0){ae.each(f.split(""),function(e,t){var n=new ae.Event("keypress");n.which=t.charCodeAt(0);v=false;R.keypressEvent.call(r,n)})}else{if(p.begin===p.end-1){p.begin=N(p.begin+1);if(p.begin===p.end-1){q(r,p.begin)}else{q(r,p.begin,p.end)}}var y=new ae.Event("keydown");y.keyCode=W.numericInput?pe.keyCode.BACKSPACE:pe.keyCode.DELETE;R.keydownEvent.call(r,y)}t.preventDefault()}}},beforeInputEvent:function e(t){if(t.cancelable){var i=this;switch(t.inputType){case"insertText":ae.each(t.data.split(""),function(e,t){var n=new ae.Event("keypress");n.which=t.charCodeAt(0);v=false;R.keypressEvent.call(i,n)});return t.preventDefault();case"deleteContentBackward":var n=new ae.Event("keydown");n.keyCode=pe.keyCode.BACKSPACE;R.keydownEvent.call(i,n);return t.preventDefault();case"deleteContentForward":var n=new ae.Event("keydown");n.keyCode=pe.keyCode.DELETE;R.keydownEvent.call(i,n);return t.preventDefault()}}},setValueEvent:function e(t){this.inputmask.refreshValue=false;var n=this,i=t&&t.detail?t.detail[0]:arguments[1],i=i||n.inputmask._valueGet(true);if(ae.isFunction(W.onBeforeMask))i=W.onBeforeMask.call(c,i,W)||i;i=i.toString().split("");V(n,true,false,i);g=E().join("");if((W.clearMaskOnLostFocus||W.clearIncomplete)&&n.inputmask._valueGet()===x().join("")){n.inputmask._valueSet("")}},focusEvent:function e(t){var n=this,i=n.inputmask._valueGet();if(W.showMaskOnFocus){if(i!==E().join("")){$(n,E(),I(k()))}else if(r===false){q(n,I(k()))}}if(W.positionCaretOnTab===true&&r===false){R.clickEvent.apply(n,[t,true])}g=E().join("")},mouseleaveEvent:function e(t){var n=this;r=false;if(W.clearMaskOnLostFocus&&le.activeElement!==n){l(n,s)}},clickEvent:function e(t,d){function u(e){if(W.radixPoint!==""){var t=z().validPositions;if(t[e]===oe||t[e].input===F(e)){if(e=l||n===r){r=l}}q(c,r)}break}}}},0)},cutEvent:function e(t){var n=this,i=ae(n),r=q(n),a=t.originalEvent||t;var s=se.clipboardData||a.clipboardData,o=_?E().slice(r.end,r.begin):E().slice(r.begin,r.end);s.setData("text",_?o.reverse().join(""):o.join(""));if(le.execCommand)le.execCommand("copy");J(n,pe.keyCode.DELETE,r);$(n,E(),z().p,t,g!==E().join(""))},blurEvent:function e(t){var n=ae(this),i=this;if(i.inputmask){l(i,s);var r=i.inputmask._valueGet(),a=E().slice();if(r!==""||f!==oe){if(W.clearMaskOnLostFocus){if(k()===-1&&r===x().join("")){a=[]}else{G(a)}}if(Q(a)===false){setTimeout(function(){n.trigger("incomplete")},0);if(W.clearIncomplete){M();if(W.clearMaskOnLostFocus){a=[]}else{a=x().slice()}}}$(i,a,oe,t)}if(g!==E().join("")){g=a.join("");n.trigger("change")}}},mouseenterEvent:function e(t){var n=this;r=true;if(le.activeElement!==n&&W.showMaskOnHover){l(n,(_?E().slice().reverse():E()).join(""))}},submitEvent:function e(t){if(g!==E().join("")){a.trigger("change")}if(W.clearMaskOnLostFocus&&k()===-1&&d.inputmask._valueGet&&d.inputmask._valueGet()===x().join("")){d.inputmask._valueSet("")}if(W.clearIncomplete&&Q(E())===false){d.inputmask._valueSet("")}if(W.removeMaskOnSubmit){d.inputmask._valueSet(d.inputmask.unmaskedvalue(),true);setTimeout(function(){$(d,E())},0)}},resetEvent:function e(t){d.inputmask.refreshValue=true;setTimeout(function(){a.trigger("setvalue")},0)}};function V(r,e,a,t,n){var s=this||r.inputmask,o=t.slice(),l="",d=-1,u=oe;function c(e,t){var n=p(true,0,false).slice(e,I(e)).join("").replace(/'/g,"").indexOf(t);return n!==-1&&!A(e)&&(L(e).match.nativeDef===t.charAt(0)||L(e).match.fn===null&&L(e).match.nativeDef==="'"+t.charAt(0)||L(e).match.nativeDef===" "&&(L(e+1).match.nativeDef===t.charAt(0)||L(e+1).match.fn===null&&L(e+1).match.nativeDef==="'"+t.charAt(0)))}M();if(!a&&W.autoUnmask!==true){var i=x().slice(0,I(-1)).join(""),h=o.join("").match(new RegExp("^"+pe.escapeRegex(i),"g"));if(h&&h.length>0){o.splice(0,h.length*i.length);d=I(d)}}else{d=I(d)}if(d===-1){z().p=I(d);d=0}else z().p=d;s.caretPos={begin:d};ae.each(o,function(e,t){if(t!==oe){if(z().validPositions[e]===oe&&o[e]===F(e)&&A(e,true)&&j(e,o[e],true,oe,oe,true)===false){z().p++}else{var n=new ae.Event("_checkval");n.which=t.charCodeAt(0);l+=t;var i=k(oe,true);if(!c(d,l)){u=R.keypressEvent.call(r,n,true,false,a,s.caretPos.begin);if(u){d=s.caretPos.begin+1;l=""}}else{u=R.keypressEvent.call(r,n,true,false,a,i+1)}if(u){$(oe,E(),u.forwardPosition,n,false);s.caretPos={begin:u.forwardPosition,end:u.forwardPosition}}}}});if(e)$(r,E(),u?u.forwardPosition:oe,n||new ae.Event("checkval"),n&&n.type==="input")}function n(e){if(e){if(e.inputmask===oe){return e.value}if(e.inputmask&&e.inputmask.refreshValue){R.setValueEvent.call(e)}}var t=[],n=z().validPositions;for(var i in n){if(n[i].match&&n[i].match.fn!=null){t.push(n[i].input)}}var r=t.length===0?"":(_?t.reverse():t).join("");if(ae.isFunction(W.onUnMask)){var a=(_?E().slice().reverse():E()).join("");r=W.onUnMask.call(c,a,r,W)}return r}function q(e,t,n,i){function r(e){if(_&&typeof e==="number"&&(!W.greedy||W.placeholder!=="")&&d){e=d.inputmask._valueGet().length-e}return e}var a;if(t!==oe){if(ae.isArray(t)){n=_?t[0]:t[1];t=_?t[1]:t[0]}if(t.begin!==oe){n=_?t.begin:t.end;t=_?t.end:t.begin}if(typeof t==="number"){t=i?t:r(t);n=i?n:r(n);n=typeof n=="number"?n:t;var s=parseInt(((e.ownerDocument.defaultView||se).getComputedStyle?(e.ownerDocument.defaultView||se).getComputedStyle(e,null):e.currentStyle).fontSize)*n;e.scrollLeft=s>e.scrollWidth?s:0;e.inputmask.caretPos={begin:t,end:n};if(e===le.activeElement){if("selectionStart"in e){e.selectionStart=t;e.selectionEnd=n}else if(se.getSelection){a=le.createRange();if(e.firstChild===oe||e.firstChild===null){var o=le.createTextNode("");e.appendChild(o)}a.setStart(e.firstChild,tr;i--){l=a[i];if((l.match.optionality||l.match.optionalQuantifier&&l.match.newBlockMarker||d&&(d!==a[i].locator[s.alternation]&&l.match.fn!=null||l.match.fn===null&&l.locator[s.alternation]&&C(l.locator[s.alternation].toString().split(","),d.toString().split(","))&&T(i)[0].def!==""))&&t[i]===F(i,l.match)){n--}else break}return e?{l:n,def:a[n]?a[n].match:oe}:n}function G(e){e.length=0;var t=p(true,0,true,oe,true),n,i;while(n=t.shift(),n!==oe){e.push(n)}return e}function Q(e){if(ae.isFunction(W.isComplete))return W.isComplete(e,W);if(W.repeat==="*")return oe;var t=false,n=U(true),i=N(n.l);if(n.def===oe||n.def.newBlockMarker||n.def.optionality||n.def.optionalQuantifier){t=true;for(var r=0;r<=i;r++){var a=w(r).match;if(a.fn!==null&&z().validPositions[r]===oe&&a.optionality!==true&&a.optionalQuantifier!==true||a.fn===null&&e[r]!==F(r,a)){t=false;break}}}return t}function J(e,t,n,i,r){if(W.numericInput||_){if(t===pe.keyCode.BACKSPACE){t=pe.keyCode.DELETE}else if(t===pe.keyCode.DELETE){t=pe.keyCode.BACKSPACE}if(_){var a=n.end;n.end=n.begin;n.begin=a}}if(t===pe.keyCode.BACKSPACE&&n.end-n.begin<1){n.begin=N(n.begin);if(z().validPositions[n.begin]!==oe&&z().validPositions[n.begin].input===W.groupSeparator){n.begin--}}else if(t===pe.keyCode.DELETE&&n.begin===n.end){n.end=A(n.end,true)&&z().validPositions[n.end]&&z().validPositions[n.end].input!==W.radixPoint?n.end+1:I(n.end)+1;if(z().validPositions[n.begin]!==oe&&z().validPositions[n.begin].input===W.groupSeparator){n.end++}}P(n);if(i!==true&&W.keepStatic!==false||W.regex!==null){var s=H(true);if(s){var o=s.caret!==oe?s.caret:s.pos?I(s.pos.begin?s.pos.begin:s.pos):k(-1,true);if(t!==pe.keyCode.DELETE||n.begin>o){n.begin==o}}}var l=k(n.begin,true);if(l=e){var o=e-a;var l=t.offsetWidth-e;t.innerHTML=r.charAt(n);o-=t.offsetWidth/3;n=o"+e)}else if(r&&(a.fn!==null&&s.input!==oe||a.def==="")){r=false;var t=i.length;i[t-1]=i[t-1]+"";i.push(e)}else i.push(e)}function u(){if(le.activeElement===e){i.splice(t.begin,0,t.begin===t.end||t.end>z().maskLength?'':'');i.splice(t.end+1,0,"")}}if(f!==oe){var c=E();if(t===oe){t=q(e)}else if(t.begin===oe){t={begin:t,end:t}}if(n!==true){var h=k();do{if(z().validPositions[l]){s=z().validPositions[l];a=s.match;o=s.locator.slice();d(c[l])}else{s=w(l,o,l-1);a=s.match;o=s.locator.slice();if(W.jitMasking===false||ll){d(F(l,a))}else r=false}l++}while((y===oe||ll||r);if(r)d();u()}var p=f.getElementsByTagName("div")[0];p.innerHTML=i.join("");e.inputmask.positionColorMask(e,p)}}function i(e){function t(e,l){function t(e){var t;var n;function i(e){if(ae.valHooks&&(ae.valHooks[e]===oe||ae.valHooks[e].inputmaskpatch!==true)){var i=ae.valHooks[e]&&ae.valHooks[e].get?ae.valHooks[e].get:function(e){return e.value};var a=ae.valHooks[e]&&ae.valHooks[e].set?ae.valHooks[e].set:function(e,t){e.value=t;return e};ae.valHooks[e]={get:function e(t){if(t.inputmask){if(t.inputmask.opts.autoUnmask){return t.inputmask.unmaskedvalue()}else{var n=i(t);return k(oe,oe,t.inputmask.maskset.validPositions)!==-1||l.nullable!==true?n:""}}else return i(t)},set:function e(t,n){var i=ae(t),r;r=a(t,n);if(t.inputmask){i.trigger("setvalue",[n])}return r},inputmaskpatch:true}}}function r(){if(this.inputmask){return this.inputmask.opts.autoUnmask?this.inputmask.unmaskedvalue():k()!==-1||l.nullable!==true?le.activeElement===this&&l.clearMaskOnLostFocus?(_?G(E().slice()).reverse():G(E().slice())).join(""):t.call(this):""}else return t.call(this)}function a(e){n.call(this,e);if(this.inputmask){ae(this).trigger("setvalue",[e])}}function s(e){B.on(e,"mouseenter",function(e){var t=ae(this),n=this,i=n.inputmask._valueGet();if(i!==E().join("")){t.trigger("setvalue")}})}if(!e.inputmask.__valueGet){if(l.noValuePatching!==true){if(Object.getOwnPropertyDescriptor){if(typeof Object.getPrototypeOf!=="function"){Object.getPrototypeOf=_e("test".__proto__)==="object"?function(e){return e.__proto__}:function(e){return e.constructor.prototype}}var o=Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"value"):oe;if(o&&o.get&&o.set){t=o.get;n=o.set;Object.defineProperty(e,"value",{get:r,set:a,configurable:true})}else if(e.tagName!=="INPUT"){t=function e(){return this.textContent};n=function e(t){this.textContent=t};Object.defineProperty(e,"value",{get:r,set:a,configurable:true})}}else if(le.__lookupGetter__&&e.__lookupGetter__("value")){t=e.__lookupGetter__("value");n=e.__lookupSetter__("value");e.__defineGetter__("value",r);e.__defineSetter__("value",a)}e.inputmask.__valueGet=t;e.inputmask.__valueSet=n}e.inputmask._valueGet=function(e){return _&&e!==true?t.call(this.el).split("").reverse().join(""):t.call(this.el)};e.inputmask._valueSet=function(e,t){n.call(this.el,e===null||e===oe?"":t!==true&&_?e.split("").reverse().join(""):e)};if(t===oe){t=function e(){return this.value};n=function e(t){this.value=t};i(e.type);s(e)}}}var n=e.getAttribute("type");var i=e.tagName==="INPUT"&&ae.inArray(n,l.supportsInputType)!==-1||e.isContentEditable||e.tagName==="TEXTAREA";if(!i){if(e.tagName==="INPUT"){var r=le.createElement("input");r.setAttribute("type",n);i=r.type==="text";r=null}else i="partial"}if(i!==false){t(e)}else e.inputmask=oe;return i}B.off(e);var n=t(e,W);if(n!==false){d=e;a=ae(d);s=d.placeholder;y=d!==oe?d.maxLength:oe;if(y===-1)y=oe;if(W.colorMask===true){K(d)}if(ue){if("inputMode"in d){d.inputmode=W.inputmode;d.setAttribute("inputmode",W.inputmode)}if(W.disablePredictiveText===true){if("autocorrect"in d){d.autocorrect=false}else{if(W.colorMask!==true){K(d)}d.type="password"}}}if(n===true){d.setAttribute("im-insert",W.insertMode);B.on(d,"submit",R.submitEvent);B.on(d,"reset",R.resetEvent);B.on(d,"blur",R.blurEvent);B.on(d,"focus",R.focusEvent);if(W.colorMask!==true){B.on(d,"click",R.clickEvent);B.on(d,"mouseleave",R.mouseleaveEvent);B.on(d,"mouseenter",R.mouseenterEvent)}B.on(d,"paste",R.pasteEvent);B.on(d,"cut",R.cutEvent);B.on(d,"complete",W.oncomplete);B.on(d,"incomplete",W.onincomplete);B.on(d,"cleared",W.oncleared);if(!ue&&W.inputEventOnly!==true){B.on(d,"keydown",R.keydownEvent);B.on(d,"keypress",R.keypressEvent)}else{d.removeAttribute("maxLength")}B.on(d,"input",R.inputFallBackEvent);B.on(d,"beforeinput",R.beforeInputEvent)}B.on(d,"setvalue",R.setValueEvent);g=x().join("");if(d.inputmask._valueGet(true)!==""||W.clearMaskOnLostFocus===false||le.activeElement===d){var i=ae.isFunction(W.onBeforeMask)?W.onBeforeMask.call(c,d.inputmask._valueGet(true),W)||d.inputmask._valueGet(true):d.inputmask._valueGet(true);if(i!=="")V(d,true,false,i.split(""));var r=E().slice();g=r.join("");if(Q(r)===false){if(W.clearIncomplete){M()}}if(W.clearMaskOnLostFocus&&le.activeElement!==d){if(k()===-1){r=[]}else{G(r)}}if(W.clearMaskOnLostFocus===false||W.showMaskOnFocus&&le.activeElement===d||d.inputmask._valueGet(true)!=="")$(d,r);if(le.activeElement===d){q(d,I(k()))}}}}var X;if(e!==oe){switch(e.action){case"isComplete":d=e.el;return Q(E());case"unmaskedvalue":if(d===oe||e.value!==oe){X=e.value;X=(ae.isFunction(W.onBeforeMask)?W.onBeforeMask.call(c,X,W)||X:X).split("");V.call(this,oe,false,false,X);if(ae.isFunction(W.onBeforeWrite))W.onBeforeWrite.call(c,oe,E(),0,W)}return n(d);case"mask":i(d);break;case"format":X=(ae.isFunction(W.onBeforeMask)?W.onBeforeMask.call(c,e.value,W)||e.value:e.value).split("");V.call(this,oe,true,false,X);if(e.metadata){return{value:_?E().slice().reverse().join(""):E().join(""),metadata:me.call(this,{action:"getmetadata"},t,W)}}return _?E().slice().reverse().join(""):E().join("");case"isValid":if(e.value){X=e.value.split("");V.call(this,oe,true,true,X)}else{e.value=E().join("")}var ee=E();var te=U(),ne=ee.length-1;for(;ne>te;ne--){if(A(ne))break}ee.splice(te,ne+1-te);return Q(ee)&&e.value===E().join("");case"getemptymask":return x().join("");case"remove":if(d&&d.inputmask){ae.data(d,"_inputmask_opts",null);a=ae(d);d.inputmask._valueSet(W.autoUnmask?n(d):d.inputmask._valueGet(true));B.off(d);if(d.inputmask.colorMask){f=d.inputmask.colorMask;f.removeChild(d);f.parentNode.insertBefore(d,f);f.parentNode.removeChild(f)}var ie;if(Object.getOwnPropertyDescriptor&&Object.getPrototypeOf){ie=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(d),"value");if(ie){if(d.inputmask.__valueGet){Object.defineProperty(d,"value",{get:d.inputmask.__valueGet,set:d.inputmask.__valueSet,configurable:true})}}}else if(le.__lookupGetter__&&d.__lookupGetter__("value")){if(d.inputmask.__valueGet){d.__defineGetter__("value",d.inputmask.__valueGet);d.__defineSetter__("value",d.inputmask.__valueSet)}}d.inputmask=oe}return d;break;case"getmetadata":if(ae.isArray(t.metadata)){var re=p(true,0,false).join("");ae.each(t.metadata,function(e,t){if(t.mask===re){re=t;return false}});return re}return t.metadata}}}return pe.prototype={dataAttribute:"data-inputmask",defaults:{placeholder:"_",optionalmarker:["[","]"],quantifiermarker:["{","}"],groupmarker:["(",")"],alternatormarker:"|",escapeChar:"\\",mask:null,regex:null,oncomplete:ae.noop,onincomplete:ae.noop,oncleared:ae.noop,repeat:0,greedy:!1,autoUnmask:!1,removeMaskOnSubmit:!1,clearMaskOnLostFocus:!0,insertMode:!0,clearIncomplete:!1,alias:null,onKeyDown:ae.noop,onBeforeMask:null,onBeforePaste:function(e,t){return ae.isFunction(t.onBeforeMask)?t.onBeforeMask.call(this,e,t):e},onBeforeWrite:null,onUnMask:null,showMaskOnFocus:!0,showMaskOnHover:!0,onKeyValidation:ae.noop,skipOptionalPartCharacter:" ",numericInput:!1,rightAlign:!1,undoOnEscape:!0,radixPoint:"",_radixDance:!1,groupSeparator:"",keepStatic:null,positionCaretOnTab:!0,tabThrough:!1,supportsInputType:["text","tel","url","password","search"],ignorables:[8,9,13,19,27,33,34,35,36,37,38,39,40,45,46,93,112,113,114,115,116,117,118,119,120,121,122,123,0,229],isComplete:null,preValidation:null,postValidation:null,staticDefinitionSymbol:oe,jitMasking:!1,nullable:!0,inputEventOnly:!1,noValuePatching:!1,positionCaretOnClick:"lvp",casing:null,inputmode:"verbatim",colorMask:!1,disablePredictiveText:!1,importDataAttributes:!0,shiftPositions:!0},definitions:{9:{validator:"[0-91-9]",definitionSymbol:"*"},a:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",definitionSymbol:"*"},"*":{validator:"[0-91-9A-Za-zА-яЁёÀ-ÿµ]"}},aliases:{},masksCache:{},mask:function(e){var r=this;return"string"==typeof e&&(e=le.getElementById(e)||le.querySelectorAll(e)),e=e.nodeName?[e]:e,ae.each(e,function(e,t){var n,i=ae.extend(!0,{},r.opts);!function(n,e,i,r){if(!0===e.importDataAttributes){var t,a,s,o,l=n.getAttribute(r),d=function(e,t){null!==(t=t!==oe?t:n.getAttribute(r+"-"+e))&&("string"==typeof t&&(0===e.indexOf("on")?t=se[t]:"false"===t?t=!1:"true"===t&&(t=!0)),i[e]=t)};if(l&&""!==l&&(l=l.replace(/'/g,'"'),a=JSON.parse("{"+l+"}")),a)for(o in s=oe,a)if("alias"===o.toLowerCase()){s=a[o];break}for(t in d("alias",s),i.alias&&u(i.alias,i,e),e){if(a)for(o in s=oe,a)if(o.toLowerCase()===t.toLowerCase()){s=a[o];break}d(t,s)}}return ae.extend(!0,e,i),"rtl"!==n.dir&&!e.rightAlign||(n.style.textAlign="right"),"rtl"!==n.dir&&!e.numericInput||(n.dir="ltr",n.removeAttribute("dir"),e.isRTL=!0),Object.keys(i).length}(t,i,ae.extend(!0,{},r.userOptions),r.dataAttribute)||(n=a(i,r.noMasksCache))!==oe&&(t.inputmask!==oe&&(t.inputmask.opts.autoUnmask=!0,t.inputmask.remove()),t.inputmask=new pe(oe,oe,!0),t.inputmask.opts=i,t.inputmask.noMasksCache=r.noMasksCache,t.inputmask.userOptions=ae.extend(!0,{},r.userOptions),t.inputmask.isRTL=i.isRTL||i.numericInput,(t.inputmask.el=t).inputmask.maskset=n,ae.data(t,"_inputmask_opts",i),me.call(t.inputmask,{action:"mask"}))}),e&&e[0]&&e[0].inputmask||this},option:function(e,t){return"string"==typeof e?this.opts[e]:"object"===(void 0===e?"undefined":_e(e))?(ae.extend(this.userOptions,e),this.el&&!0!==t&&this.mask(this.el),this):void 0},unmaskedvalue:function(e){return this.maskset=this.maskset||a(this.opts,this.noMasksCache),me.call(this,{action:"unmaskedvalue",value:e})},remove:function(){return me.call(this,{action:"remove"})},getemptymask:function(){return this.maskset=this.maskset||a(this.opts,this.noMasksCache),me.call(this,{action:"getemptymask"})},hasMaskedValue:function(){return!this.opts.autoUnmask},isComplete:function(){return this.maskset=this.maskset||a(this.opts,this.noMasksCache),me.call(this,{action:"isComplete"})},getmetadata:function(){return this.maskset=this.maskset||a(this.opts,this.noMasksCache),me.call(this,{action:"getmetadata"})},isValid:function(e){return this.maskset=this.maskset||a(this.opts,this.noMasksCache),me.call(this,{action:"isValid",value:e})},format:function(e,t){return this.maskset=this.maskset||a(this.opts,this.noMasksCache),me.call(this,{action:"format",value:e,metadata:t})},setValue:function(e){this.el&&ae(this.el).trigger("setvalue",[e])},analyseMask:function(e,a,s){var t,n,i,r=/(?:[?*+]|\{[0-9\+\*]+(?:,[0-9\+\*]*)?(?:\|[0-9\+\*]*)?\})|[^.?*+^${[]()|\\]+|./g,o=/\[\^?]?(?:[^\\\]]+|\\[\S\s]?)*]?|\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9][0-9]*|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|c[A-Za-z]|[\S\s]?)|\((?:\?[:=!]?)?|(?:[?*+]|\{[0-9]+(?:,[0-9]*)?\})\??|[^.?*+^${[()|\\]+|./g,l=!1,d=new h,u=[],c=[];function h(e,t,n,i){this.matches=[],this.openGroup=e||!1,this.alternatorGroup=!1,this.isGroup=e||!1,this.isOptional=t||!1,this.isQuantifier=n||!1,this.isAlternator=i||!1,this.quantifier={min:1,max:1}}function p(n,e,i){i=i!==oe?i:n.matches.length;var t,r=n.matches[i-1];a?(0===e.indexOf("[")||l&&/\\d|\\s|\\w]/i.test(e)||"."===e?n.matches.splice(i++,0,{fn:new RegExp(e,s.casing?"i":""),optionality:!1,newBlockMarker:r===oe?"master":r.def!==e,casing:null,def:e,placeholder:oe,nativeDef:e}):(l&&(e=e[e.length-1]),ae.each(e.split(""),function(e,t){r=n.matches[i-1],n.matches.splice(i++,0,{fn:null,optionality:!1,newBlockMarker:r===oe?"master":r.def!==t&&null!==r.fn,casing:null,def:s.staticDefinitionSymbol||t,placeholder:s.staticDefinitionSymbol!==oe?t:oe,nativeDef:(l?"'":"")+t})})),l=!1):(t=(s.definitions?s.definitions[e]:oe)||pe.prototype.definitions[e])&&!l?n.matches.splice(i++,0,{fn:t.validator?"string"==typeof t.validator?new RegExp(t.validator,s.casing?"i":""):new function(){this.test=t.validator}:new RegExp("."),optionality:!1,newBlockMarker:r===oe?"master":r.def!==(t.definitionSymbol||e),casing:t.casing,def:t.definitionSymbol||e,placeholder:t.placeholder,nativeDef:e}):(n.matches.splice(i++,0,{fn:null,optionality:!1,newBlockMarker:r===oe?"master":r.def!==e&&null!==r.fn,casing:null,def:s.staticDefinitionSymbol||e,placeholder:s.staticDefinitionSymbol!==oe?e:oe,nativeDef:(l?"'":"")+e}),l=!1)}function f(){if(0=e.day)&&t}function n(e,t){var n=!0;if(t.min){var i,r;e.rawyear&&(i=e.rawyear.replace(/[^0-9]/g,""),r=t.min.year.substr(0,i.length),n=r<=i),e.year===e.rawyear&&t.min.date.getTime()==t.min.date.getTime()&&(n=t.min.date.getTime()<=e.date.getTime())}if(n&&t.max&&t.max.date.getTime()==t.max.date.getTime())n=t.max.date.getTime()>=e.date.getTime();return n}function d(e,t,n,i){var r="",a;while(a=p(n).exec(e)){if(t===undefined){if(h[a[0]]){r+="("+h[a[0]][0]+")"}else{switch(a[0]){case"[":r+="(";break;case"]":r+=")?";break;default:r+=o.escapeRegex(a[0])}}}else{if(h[a[0]]){if(i!==true&&h[a[0]][3]){var s=h[a[0]][3];r+=s.call(t.date)}else if(h[a[0]][2])r+=t["raw"+h[a[0]][2]];else r+=a[0]}else r+=a[0]}}return r}function u(e,t){e=String(e);t=t||2;while(e.lengthr.slice(0,n.length)?r.slice(n.length):t.toString().slice(n.length))}return t}function u(e,t,n){e[s]=d(t);e["raw"+s]=t;if(o!==undefined)o.call(e.date,s=="month"?parseInt(e[s])-1:e[s])}if(typeof i==="string"){while(r=p(a).exec(t)){var c=i.slice(0,r[0].length);if(h.hasOwnProperty(r[0])){l=h[r[0]][0];s=h[r[0]][2];o=h[r[0]][1];u(n,c,a)}i=i.slice(c.length)}return n}else if(i&&(typeof i==="undefined"?"undefined":f(i))==="object"&&i.hasOwnProperty("date")){return i}return undefined}return o.extendAliases({datetime:{mask:function(e){return h.S=e.i18n.ordinalSuffix.join("|"),e.inputFormat=t[e.inputFormat]||e.inputFormat,e.displayFormat=t[e.displayFormat]||e.displayFormat||e.inputFormat,e.outputFormat=t[e.outputFormat]||e.outputFormat||e.inputFormat,e.placeholder=""!==e.placeholder?e.placeholder:e.inputFormat.replace(/[\[\]]/,""),e.regex=d(e.inputFormat,void 0,e),null},placeholder:"",inputFormat:"isoDateTime",displayFormat:void 0,outputFormat:void 0,min:null,max:null,i18n:{dayNames:["Mon","Tue","Wed","Thu","Fri","Sat","Sun","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],ordinalSuffix:["st","nd","rd","th"]},postValidation:function(e,t,n,i){i.min=c(i.min,i.inputFormat,i),i.max=c(i.max,i.inputFormat,i);var r,a,s=n,o=c(e.join(""),i.inputFormat,i);return s&&o.date.getTime()==o.date.getTime()&&(r=o,a=s,s=(s=(!isFinite(r.rawday)||"29"==r.day&&!isFinite(r.rawyear)||new Date(r.date.getFullYear(),isFinite(r.rawmonth)?r.month:r.date.getMonth()+1,0).getDate()>=r.day)&&a)&&function(e,t){var n=!0;{var i,r;t.min&&(e.rawyear&&(i=e.rawyear.replace(/[^0-9]/g,""),r=t.min.year.substr(0,i.length),n=r<=i),e.year===e.rawyear&&t.min.date.getTime()==t.min.date.getTime()&&(n=t.min.date.getTime()<=e.date.getTime()))}n&&t.max&&t.max.date.getTime()==t.max.date.getTime()&&(n=t.max.date.getTime()>=e.date.getTime());return n}(o,i)),t&&s&&n.pos!==t?{buffer:d(i.inputFormat,o,i),refreshFromBuffer:{start:t,end:n.pos}}:s},onKeyDown:function(e,t,n,i){if(e.ctrlKey&&e.keyCode===o.keyCode.RIGHT){for(var r,a=new Date,s="";r=p(i).exec(i.inputFormat);)"d"===r[0].charAt(0)?s+=u(a.getDate(),r[0].length):"m"===r[0].charAt(0)?s+=u(a.getMonth()+1,r[0].length):"yyyy"===r[0]?s+=a.getFullYear().toString():"y"===r[0].charAt(0)&&(s+=u(a.getYear(),r[0].length));this.inputmask._valueSet(s),l(this).trigger("setvalue")}},onUnMask:function(e,t,n){return d(n.outputFormat,c(e,n.inputFormat,n),n,!0)},casing:function(e,t){return 0==t.nativeDef.indexOf("[ap]")?e.toLowerCase():0==t.nativeDef.indexOf("[AP]")?e.toUpperCase():e},insertMode:!1,shiftPositions:!1}}),o})?i.apply(t,r):i)||(e.exports=a)},function(e,t,n){"use strict";var i,r,a;r=[n(2)],void 0===(a="function"==typeof(i=function(w){var b=w.dependencyLib;function s(e,t){var n="";for(var i=0;i=(!1===i.isNegative?1:0)&&s=o.length-i.suffix.length-(!1===i.isNegative?1:0)&&(r[s-(o.length-i.suffix.length-(!1===i.isNegative?1:0))]="?")),a=a.join(""),r=r.join("");var d,u,c,h,p,f,m=o.join("").replace(a,"");if(m=(m=(m=(m=m.replace(r,"")).replace(new RegExp(w.escapeRegex(i.groupSeparator),"g"),"")).replace(new RegExp("[-"+w.escapeRegex(i.negationSymbol.front)+"]","g"),"")).replace(new RegExp(w.escapeRegex(i.negationSymbol.back)+"$"),""),isNaN(i.placeholder)&&(m=m.replace(new RegExp(w.escapeRegex(i.placeholder),"g"),"")),1i.max)return i.isNegative=i.max<0,i.postValidation(i.max.toString().replace(".",i.radixPoint).split(""),n,{caret:n,dopost:!0,placeholder:"0"},i)}return i.postValidation(t,n,{caret:n,placeholder:"0",event:"blur"},i);case"_checkval":return{caret:n}}var a},regex:{integerPart:function(e,t){return t?new RegExp("["+w.escapeRegex(e.negationSymbol.front)+"+]?"):new RegExp("["+w.escapeRegex(e.negationSymbol.front)+"+]?\\d+")},integerNPart:function(e){return new RegExp("[\\d"+w.escapeRegex(e.groupSeparator)+w.escapeRegex(e.placeholder.charAt(0))+"]+")}},definitions:{"~":{validator:function(e,t,n,i,r,a){var s;if("k"===e||"m"===e){s={insert:[],c:0};for(var o=0,l="k"===e?2:5;o
"),i=n.children()[0];return M("body").append(n),e=i.offsetWidth,n.css("overflow","scroll"),e===(t=i.offsetWidth)&&(t=n[0].clientWidth),n.remove(),r=e-t},getScrollInfo:function(e){var t=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),n=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),i="scroll"===t||"auto"===t&&e.widthL(T(i),T(r))?a.important="horizontal":a.important="vertical",c.using.call(this,e,a)}),s.offset(M.extend(d,{using:e}))})},M.ui.position={fit:{left:function(e,t){var n,i=t.within,r=i.isWindow?i.scrollLeft:i.offset.left,a=i.width,s=e.left-t.collisionPosition.marginLeft,o=r-s,l=s+t.collisionWidth-a-r;t.collisionWidth>a?0a?0 (GFM Style)",type:"boolean"},requireSpaceBeforeHeadingText:{defaultValue:!1,description:"Makes adding a space between `#` and the header text mandatory (GFM Style)",type:"boolean"},ghMentions:{defaultValue:!1,description:"Enables github @mentions",type:"boolean"},ghMentionsLink:{defaultValue:"https://github.com/{u}",description:"Changes the link generated by @mentions. Only applies if ghMentions option is enabled.",type:"string"},encodeEmails:{defaultValue:!0,description:"Encode e-mail addresses through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities",type:"boolean"},openLinksInNewWindow:{defaultValue:!1,description:"Open all links in new windows",type:"boolean"},backslashEscapesHTMLTags:{defaultValue:!1,description:"Support for HTML Tag escaping. ex:
foo
",type:"boolean"},emoji:{defaultValue:!1,description:"Enable emoji support. Ex: `this is a :smile: emoji`",type:"boolean"},underline:{defaultValue:!1,description:"Enable support for underline. Syntax is double or triple underscores: `__underline word__`. With this option enabled, underscores no longer parses into `` and ``",type:"boolean"},completeHTMLDocument:{defaultValue:!1,description:"Outputs a complete html document, including ``, `` and `` tags",type:"boolean"},metadata:{defaultValue:!1,description:"Enable support for document metadata (defined at the top of the document between `«««` and `»»»` or between `---` and `---`).",type:"boolean"},splitAdjacentBlockquotes:{defaultValue:!1,description:"Split adjacent blockquote blocks",type:"boolean"}};if(!1===e)return JSON.parse(JSON.stringify(t));var n={};for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i].defaultValue);return n}var y={},n={},c={},h=i(!0),p="vanilla",f={github:{omitExtraWLInCodeBlocks:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,disableForced4SpacesIndentedSublists:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghCompatibleHeaderId:!0,ghMentions:!0,backslashEscapesHTMLTags:!0,emoji:!0,splitAdjacentBlockquotes:!0},original:{noHeaderId:!0,ghCodeBlocks:!1},ghost:{omitExtraWLInCodeBlocks:!0,parseImgDimensions:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,smoothLivePreview:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghMentions:!1,encodeEmails:!0},vanilla:i(!0),allOn:function(){"use strict";var e=i(!0),t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=!0);return t}()};function m(e,t){"use strict";var n=t?"Error in "+t+" extension->":"Error in unnamed extension",i={valid:!0,error:""};y.helper.isArray(e)||(e=[e]);for(var r=0;r").replace(/&/g,"&")};function _(e,t,n,i){"use strict";var r,a,s,o,l,d=i||"",u=-1>=0,n=String(n||" "),e.length>t?String(e):((t-=e.length)>n.length&&(n+=n.repeat(t/n.length)),String(e)+n.slice(0,t))},"undefined"==typeof console&&(console={warn:function(e){},log:function(e){},error:function(e){"use strict";throw e}}),y.helper.regexes={asteriskDashAndColon:/([*_:~])/g},y.helper.emojis={"+1":"👍","-1":"👎",100:"💯",1234:"🔢","1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉","8ball":"🎱",a:"🅰️",ab:"🆎",abc:"🔤",abcd:"🔡",accept:"🉑",aerial_tramway:"🚡",airplane:"✈️",alarm_clock:"⏰",alembic:"⚗️",alien:"👽",ambulance:"🚑",amphora:"🏺",anchor:"⚓️",angel:"👼",anger:"💢",angry:"😠",anguished:"😧",ant:"🐜",apple:"🍎",aquarius:"♒️",aries:"♈️",arrow_backward:"◀️",arrow_double_down:"⏬",arrow_double_up:"⏫",arrow_down:"⬇️",arrow_down_small:"🔽",arrow_forward:"▶️",arrow_heading_down:"⤵️",arrow_heading_up:"⤴️",arrow_left:"⬅️",arrow_lower_left:"↙️",arrow_lower_right:"↘️",arrow_right:"➡️",arrow_right_hook:"↪️",arrow_up:"⬆️",arrow_up_down:"↕️",arrow_up_small:"🔼",arrow_upper_left:"↖️",arrow_upper_right:"↗️",arrows_clockwise:"🔃",arrows_counterclockwise:"🔄",art:"🎨",articulated_lorry:"🚛",artificial_satellite:"🛰",astonished:"😲",athletic_shoe:"👟",atm:"🏧",atom_symbol:"⚛️",avocado:"🥑",b:"🅱️",baby:"👶",baby_bottle:"🍼",baby_chick:"🐤",baby_symbol:"🚼",back:"🔙",bacon:"🥓",badminton:"🏸",baggage_claim:"🛄",baguette_bread:"🥖",balance_scale:"⚖️",balloon:"🎈",ballot_box:"🗳",ballot_box_with_check:"☑️",bamboo:"🎍",banana:"🍌",bangbang:"‼️",bank:"🏦",bar_chart:"📊",barber:"💈",baseball:"⚾️",basketball:"🏀",basketball_man:"⛹️",basketball_woman:"⛹️‍♀️",bat:"🦇",bath:"🛀",bathtub:"🛁",battery:"🔋",beach_umbrella:"🏖",bear:"🐻",bed:"🛏",bee:"🐝",beer:"🍺",beers:"🍻",beetle:"🐞",beginner:"🔰",bell:"🔔",bellhop_bell:"🛎",bento:"🍱",biking_man:"🚴",bike:"🚲",biking_woman:"🚴‍♀️",bikini:"👙",biohazard:"☣️",bird:"🐦",birthday:"🎂",black_circle:"⚫️",black_flag:"🏴",black_heart:"🖤",black_joker:"🃏",black_large_square:"⬛️",black_medium_small_square:"◾️",black_medium_square:"◼️",black_nib:"✒️",black_small_square:"▪️",black_square_button:"🔲",blonde_man:"👱",blonde_woman:"👱‍♀️",blossom:"🌼",blowfish:"🐡",blue_book:"📘",blue_car:"🚙",blue_heart:"💙",blush:"😊",boar:"🐗",boat:"⛵️",bomb:"💣",book:"📖",bookmark:"🔖",bookmark_tabs:"📑",books:"📚",boom:"💥",boot:"👢",bouquet:"💐",bowing_man:"🙇",bow_and_arrow:"🏹",bowing_woman:"🙇‍♀️",bowling:"🎳",boxing_glove:"🥊",boy:"👦",bread:"🍞",bride_with_veil:"👰",bridge_at_night:"🌉",briefcase:"💼",broken_heart:"💔",bug:"🐛",building_construction:"🏗",bulb:"💡",bullettrain_front:"🚅",bullettrain_side:"🚄",burrito:"🌯",bus:"🚌",business_suit_levitating:"🕴",busstop:"🚏",bust_in_silhouette:"👤",busts_in_silhouette:"👥",butterfly:"🦋",cactus:"🌵",cake:"🍰",calendar:"📆",call_me_hand:"🤙",calling:"📲",camel:"🐫",camera:"📷",camera_flash:"📸",camping:"🏕",cancer:"♋️",candle:"🕯",candy:"🍬",canoe:"🛶",capital_abcd:"🔠",capricorn:"♑️",car:"🚗",card_file_box:"🗃",card_index:"📇",card_index_dividers:"🗂",carousel_horse:"🎠",carrot:"🥕",cat:"🐱",cat2:"🐈",cd:"💿",chains:"⛓",champagne:"🍾",chart:"💹",chart_with_downwards_trend:"📉",chart_with_upwards_trend:"📈",checkered_flag:"🏁",cheese:"🧀",cherries:"🍒",cherry_blossom:"🌸",chestnut:"🌰",chicken:"🐔",children_crossing:"🚸",chipmunk:"🐿",chocolate_bar:"🍫",christmas_tree:"🎄",church:"⛪️",cinema:"🎦",circus_tent:"🎪",city_sunrise:"🌇",city_sunset:"🌆",cityscape:"🏙",cl:"🆑",clamp:"🗜",clap:"👏",clapper:"🎬",classical_building:"🏛",clinking_glasses:"🥂",clipboard:"📋",clock1:"🕐",clock10:"🕙",clock1030:"🕥",clock11:"🕚",clock1130:"🕦",clock12:"🕛",clock1230:"🕧",clock130:"🕜",clock2:"🕑",clock230:"🕝",clock3:"🕒",clock330:"🕞",clock4:"🕓",clock430:"🕟",clock5:"🕔",clock530:"🕠",clock6:"🕕",clock630:"🕡",clock7:"🕖",clock730:"🕢",clock8:"🕗",clock830:"🕣",clock9:"🕘",clock930:"🕤",closed_book:"📕",closed_lock_with_key:"🔐",closed_umbrella:"🌂",cloud:"☁️",cloud_with_lightning:"🌩",cloud_with_lightning_and_rain:"⛈",cloud_with_rain:"🌧",cloud_with_snow:"🌨",clown_face:"🤡",clubs:"♣️",cocktail:"🍸",coffee:"☕️",coffin:"⚰️",cold_sweat:"😰",comet:"☄️",computer:"💻",computer_mouse:"🖱",confetti_ball:"🎊",confounded:"😖",confused:"😕",congratulations:"㊗️",construction:"🚧",construction_worker_man:"👷",construction_worker_woman:"👷‍♀️",control_knobs:"🎛",convenience_store:"🏪",cookie:"🍪",cool:"🆒",policeman:"👮",copyright:"©️",corn:"🌽",couch_and_lamp:"🛋",couple:"👫",couple_with_heart_woman_man:"💑",couple_with_heart_man_man:"👨‍❤️‍👨",couple_with_heart_woman_woman:"👩‍❤️‍👩",couplekiss_man_man:"👨‍❤️‍💋‍👨",couplekiss_man_woman:"💏",couplekiss_woman_woman:"👩‍❤️‍💋‍👩",cow:"🐮",cow2:"🐄",cowboy_hat_face:"🤠",crab:"🦀",crayon:"🖍",credit_card:"💳",crescent_moon:"🌙",cricket:"🏏",crocodile:"🐊",croissant:"🥐",crossed_fingers:"🤞",crossed_flags:"🎌",crossed_swords:"⚔️",crown:"👑",cry:"😢",crying_cat_face:"😿",crystal_ball:"🔮",cucumber:"🥒",cupid:"💘",curly_loop:"➰",currency_exchange:"💱",curry:"🍛",custard:"🍮",customs:"🛃",cyclone:"🌀",dagger:"🗡",dancer:"💃",dancing_women:"👯",dancing_men:"👯‍♂️",dango:"🍡",dark_sunglasses:"🕶",dart:"🎯",dash:"💨",date:"📅",deciduous_tree:"🌳",deer:"🦌",department_store:"🏬",derelict_house:"🏚",desert:"🏜",desert_island:"🏝",desktop_computer:"🖥",male_detective:"🕵️",diamond_shape_with_a_dot_inside:"💠",diamonds:"♦️",disappointed:"😞",disappointed_relieved:"😥",dizzy:"💫",dizzy_face:"😵",do_not_litter:"🚯",dog:"🐶",dog2:"🐕",dollar:"💵",dolls:"🎎",dolphin:"🐬",door:"🚪",doughnut:"🍩",dove:"🕊",dragon:"🐉",dragon_face:"🐲",dress:"👗",dromedary_camel:"🐪",drooling_face:"🤤",droplet:"💧",drum:"🥁",duck:"🦆",dvd:"📀","e-mail":"📧",eagle:"🦅",ear:"👂",ear_of_rice:"🌾",earth_africa:"🌍",earth_americas:"🌎",earth_asia:"🌏",egg:"🥚",eggplant:"🍆",eight_pointed_black_star:"✴️",eight_spoked_asterisk:"✳️",electric_plug:"🔌",elephant:"🐘",email:"✉️",end:"🔚",envelope_with_arrow:"📩",euro:"💶",european_castle:"🏰",european_post_office:"🏤",evergreen_tree:"🌲",exclamation:"❗️",expressionless:"😑",eye:"👁",eye_speech_bubble:"👁‍🗨",eyeglasses:"👓",eyes:"👀",face_with_head_bandage:"🤕",face_with_thermometer:"🤒",fist_oncoming:"👊",factory:"🏭",fallen_leaf:"🍂",family_man_woman_boy:"👪",family_man_boy:"👨‍👦",family_man_boy_boy:"👨‍👦‍👦",family_man_girl:"👨‍👧",family_man_girl_boy:"👨‍👧‍👦",family_man_girl_girl:"👨‍👧‍👧",family_man_man_boy:"👨‍👨‍👦",family_man_man_boy_boy:"👨‍👨‍👦‍👦",family_man_man_girl:"👨‍👨‍👧",family_man_man_girl_boy:"👨‍👨‍👧‍👦",family_man_man_girl_girl:"👨‍👨‍👧‍👧",family_man_woman_boy_boy:"👨‍👩‍👦‍👦",family_man_woman_girl:"👨‍👩‍👧",family_man_woman_girl_boy:"👨‍👩‍👧‍👦",family_man_woman_girl_girl:"👨‍👩‍👧‍👧",family_woman_boy:"👩‍👦",family_woman_boy_boy:"👩‍👦‍👦",family_woman_girl:"👩‍👧",family_woman_girl_boy:"👩‍👧‍👦",family_woman_girl_girl:"👩‍👧‍👧",family_woman_woman_boy:"👩‍👩‍👦",family_woman_woman_boy_boy:"👩‍👩‍👦‍👦",family_woman_woman_girl:"👩‍👩‍👧",family_woman_woman_girl_boy:"👩‍👩‍👧‍👦",family_woman_woman_girl_girl:"👩‍👩‍👧‍👧",fast_forward:"⏩",fax:"📠",fearful:"😨",feet:"🐾",female_detective:"🕵️‍♀️",ferris_wheel:"🎡",ferry:"⛴",field_hockey:"🏑",file_cabinet:"🗄",file_folder:"📁",film_projector:"📽",film_strip:"🎞",fire:"🔥",fire_engine:"🚒",fireworks:"🎆",first_quarter_moon:"🌓",first_quarter_moon_with_face:"🌛",fish:"🐟",fish_cake:"🍥",fishing_pole_and_fish:"🎣",fist_raised:"✊",fist_left:"🤛",fist_right:"🤜",flags:"🎏",flashlight:"🔦",fleur_de_lis:"⚜️",flight_arrival:"🛬",flight_departure:"🛫",floppy_disk:"💾",flower_playing_cards:"🎴",flushed:"😳",fog:"🌫",foggy:"🌁",football:"🏈",footprints:"👣",fork_and_knife:"🍴",fountain:"⛲️",fountain_pen:"🖋",four_leaf_clover:"🍀",fox_face:"🦊",framed_picture:"🖼",free:"🆓",fried_egg:"🍳",fried_shrimp:"🍤",fries:"🍟",frog:"🐸",frowning:"😦",frowning_face:"☹️",frowning_man:"🙍‍♂️",frowning_woman:"🙍",middle_finger:"🖕",fuelpump:"⛽️",full_moon:"🌕",full_moon_with_face:"🌝",funeral_urn:"⚱️",game_die:"🎲",gear:"⚙️",gem:"💎",gemini:"♊️",ghost:"👻",gift:"🎁",gift_heart:"💝",girl:"👧",globe_with_meridians:"🌐",goal_net:"🥅",goat:"🐐",golf:"⛳️",golfing_man:"🏌️",golfing_woman:"🏌️‍♀️",gorilla:"🦍",grapes:"🍇",green_apple:"🍏",green_book:"📗",green_heart:"💚",green_salad:"🥗",grey_exclamation:"❕",grey_question:"❔",grimacing:"😬",grin:"😁",grinning:"😀",guardsman:"💂",guardswoman:"💂‍♀️",guitar:"🎸",gun:"🔫",haircut_woman:"💇",haircut_man:"💇‍♂️",hamburger:"🍔",hammer:"🔨",hammer_and_pick:"⚒",hammer_and_wrench:"🛠",hamster:"🐹",hand:"✋",handbag:"👜",handshake:"🤝",hankey:"💩",hatched_chick:"🐥",hatching_chick:"🐣",headphones:"🎧",hear_no_evil:"🙉",heart:"❤️",heart_decoration:"💟",heart_eyes:"😍",heart_eyes_cat:"😻",heartbeat:"💓",heartpulse:"💗",hearts:"♥️",heavy_check_mark:"✔️",heavy_division_sign:"➗",heavy_dollar_sign:"💲",heavy_heart_exclamation:"❣️",heavy_minus_sign:"➖",heavy_multiplication_x:"✖️",heavy_plus_sign:"➕",helicopter:"🚁",herb:"🌿",hibiscus:"🌺",high_brightness:"🔆",high_heel:"👠",hocho:"🔪",hole:"🕳",honey_pot:"🍯",horse:"🐴",horse_racing:"🏇",hospital:"🏥",hot_pepper:"🌶",hotdog:"🌭",hotel:"🏨",hotsprings:"♨️",hourglass:"⌛️",hourglass_flowing_sand:"⏳",house:"🏠",house_with_garden:"🏡",houses:"🏘",hugs:"🤗",hushed:"😯",ice_cream:"🍨",ice_hockey:"🏒",ice_skate:"⛸",icecream:"🍦",id:"🆔",ideograph_advantage:"🉐",imp:"👿",inbox_tray:"📥",incoming_envelope:"📨",tipping_hand_woman:"💁",information_source:"ℹ️",innocent:"😇",interrobang:"⁉️",iphone:"📱",izakaya_lantern:"🏮",jack_o_lantern:"🎃",japan:"🗾",japanese_castle:"🏯",japanese_goblin:"👺",japanese_ogre:"👹",jeans:"👖",joy:"😂",joy_cat:"😹",joystick:"🕹",kaaba:"🕋",key:"🔑",keyboard:"⌨️",keycap_ten:"🔟",kick_scooter:"🛴",kimono:"👘",kiss:"💋",kissing:"😗",kissing_cat:"😽",kissing_closed_eyes:"😚",kissing_heart:"😘",kissing_smiling_eyes:"😙",kiwi_fruit:"🥝",koala:"🐨",koko:"🈁",label:"🏷",large_blue_circle:"🔵",large_blue_diamond:"🔷",large_orange_diamond:"🔶",last_quarter_moon:"🌗",last_quarter_moon_with_face:"🌜",latin_cross:"✝️",laughing:"😆",leaves:"🍃",ledger:"📒",left_luggage:"🛅",left_right_arrow:"↔️",leftwards_arrow_with_hook:"↩️",lemon:"🍋",leo:"♌️",leopard:"🐆",level_slider:"🎚",libra:"♎️",light_rail:"🚈",link:"🔗",lion:"🦁",lips:"👄",lipstick:"💄",lizard:"🦎",lock:"🔒",lock_with_ink_pen:"🔏",lollipop:"🍭",loop:"➿",loud_sound:"🔊",loudspeaker:"📢",love_hotel:"🏩",love_letter:"💌",low_brightness:"🔅",lying_face:"🤥",m:"Ⓜ️",mag:"🔍",mag_right:"🔎",mahjong:"🀄️",mailbox:"📫",mailbox_closed:"📪",mailbox_with_mail:"📬",mailbox_with_no_mail:"📭",man:"👨",man_artist:"👨‍🎨",man_astronaut:"👨‍🚀",man_cartwheeling:"🤸‍♂️",man_cook:"👨‍🍳",man_dancing:"🕺",man_facepalming:"🤦‍♂️",man_factory_worker:"👨‍🏭",man_farmer:"👨‍🌾",man_firefighter:"👨‍🚒",man_health_worker:"👨‍⚕️",man_in_tuxedo:"🤵",man_judge:"👨‍⚖️",man_juggling:"🤹‍♂️",man_mechanic:"👨‍🔧",man_office_worker:"👨‍💼",man_pilot:"👨‍✈️",man_playing_handball:"🤾‍♂️",man_playing_water_polo:"🤽‍♂️",man_scientist:"👨‍🔬",man_shrugging:"🤷‍♂️",man_singer:"👨‍🎤",man_student:"👨‍🎓",man_teacher:"👨‍🏫",man_technologist:"👨‍💻",man_with_gua_pi_mao:"👲",man_with_turban:"👳",tangerine:"🍊",mans_shoe:"👞",mantelpiece_clock:"🕰",maple_leaf:"🍁",martial_arts_uniform:"🥋",mask:"😷",massage_woman:"💆",massage_man:"💆‍♂️",meat_on_bone:"🍖",medal_military:"🎖",medal_sports:"🏅",mega:"📣",melon:"🍈",memo:"📝",men_wrestling:"🤼‍♂️",menorah:"🕎",mens:"🚹",metal:"🤘",metro:"🚇",microphone:"🎤",microscope:"🔬",milk_glass:"🥛",milky_way:"🌌",minibus:"🚐",minidisc:"💽",mobile_phone_off:"📴",money_mouth_face:"🤑",money_with_wings:"💸",moneybag:"💰",monkey:"🐒",monkey_face:"🐵",monorail:"🚝",moon:"🌔",mortar_board:"🎓",mosque:"🕌",motor_boat:"🛥",motor_scooter:"🛵",motorcycle:"🏍",motorway:"🛣",mount_fuji:"🗻",mountain:"⛰",mountain_biking_man:"🚵",mountain_biking_woman:"🚵‍♀️",mountain_cableway:"🚠",mountain_railway:"🚞",mountain_snow:"🏔",mouse:"🐭",mouse2:"🐁",movie_camera:"🎥",moyai:"🗿",mrs_claus:"🤶",muscle:"💪",mushroom:"🍄",musical_keyboard:"🎹",musical_note:"🎵",musical_score:"🎼",mute:"🔇",nail_care:"💅",name_badge:"📛",national_park:"🏞",nauseated_face:"🤢",necktie:"👔",negative_squared_cross_mark:"❎",nerd_face:"🤓",neutral_face:"😐",new:"🆕",new_moon:"🌑",new_moon_with_face:"🌚",newspaper:"📰",newspaper_roll:"🗞",next_track_button:"⏭",ng:"🆖",no_good_man:"🙅‍♂️",no_good_woman:"🙅",night_with_stars:"🌃",no_bell:"🔕",no_bicycles:"🚳",no_entry:"⛔️",no_entry_sign:"🚫",no_mobile_phones:"📵",no_mouth:"😶",no_pedestrians:"🚷",no_smoking:"🚭","non-potable_water":"🚱",nose:"👃",notebook:"📓",notebook_with_decorative_cover:"📔",notes:"🎶",nut_and_bolt:"🔩",o:"⭕️",o2:"🅾️",ocean:"🌊",octopus:"🐙",oden:"🍢",office:"🏢",oil_drum:"🛢",ok:"🆗",ok_hand:"👌",ok_man:"🙆‍♂️",ok_woman:"🙆",old_key:"🗝",older_man:"👴",older_woman:"👵",om:"🕉",on:"🔛",oncoming_automobile:"🚘",oncoming_bus:"🚍",oncoming_police_car:"🚔",oncoming_taxi:"🚖",open_file_folder:"📂",open_hands:"👐",open_mouth:"😮",open_umbrella:"☂️",ophiuchus:"⛎",orange_book:"📙",orthodox_cross:"☦️",outbox_tray:"📤",owl:"🦉",ox:"🐂",package:"📦",page_facing_up:"📄",page_with_curl:"📃",pager:"📟",paintbrush:"🖌",palm_tree:"🌴",pancakes:"🥞",panda_face:"🐼",paperclip:"📎",paperclips:"🖇",parasol_on_ground:"⛱",parking:"🅿️",part_alternation_mark:"〽️",partly_sunny:"⛅️",passenger_ship:"🛳",passport_control:"🛂",pause_button:"⏸",peace_symbol:"☮️",peach:"🍑",peanuts:"🥜",pear:"🍐",pen:"🖊",pencil2:"✏️",penguin:"🐧",pensive:"😔",performing_arts:"🎭",persevere:"😣",person_fencing:"🤺",pouting_woman:"🙎",phone:"☎️",pick:"⛏",pig:"🐷",pig2:"🐖",pig_nose:"🐽",pill:"💊",pineapple:"🍍",ping_pong:"🏓",pisces:"♓️",pizza:"🍕",place_of_worship:"🛐",plate_with_cutlery:"🍽",play_or_pause_button:"⏯",point_down:"👇",point_left:"👈",point_right:"👉",point_up:"☝️",point_up_2:"👆",police_car:"🚓",policewoman:"👮‍♀️",poodle:"🐩",popcorn:"🍿",post_office:"🏣",postal_horn:"📯",postbox:"📮",potable_water:"🚰",potato:"🥔",pouch:"👝",poultry_leg:"🍗",pound:"💷",rage:"😡",pouting_cat:"😾",pouting_man:"🙎‍♂️",pray:"🙏",prayer_beads:"📿",pregnant_woman:"🤰",previous_track_button:"⏮",prince:"🤴",princess:"👸",printer:"🖨",purple_heart:"💜",purse:"👛",pushpin:"📌",put_litter_in_its_place:"🚮",question:"❓",rabbit:"🐰",rabbit2:"🐇",racehorse:"🐎",racing_car:"🏎",radio:"📻",radio_button:"🔘",radioactive:"☢️",railway_car:"🚃",railway_track:"🛤",rainbow:"🌈",rainbow_flag:"🏳️‍🌈",raised_back_of_hand:"🤚",raised_hand_with_fingers_splayed:"🖐",raised_hands:"🙌",raising_hand_woman:"🙋",raising_hand_man:"🙋‍♂️",ram:"🐏",ramen:"🍜",rat:"🐀",record_button:"⏺",recycle:"♻️",red_circle:"🔴",registered:"®️",relaxed:"☺️",relieved:"😌",reminder_ribbon:"🎗",repeat:"🔁",repeat_one:"🔂",rescue_worker_helmet:"⛑",restroom:"🚻",revolving_hearts:"💞",rewind:"⏪",rhinoceros:"🦏",ribbon:"🎀",rice:"🍚",rice_ball:"🍙",rice_cracker:"🍘",rice_scene:"🎑",right_anger_bubble:"🗯",ring:"💍",robot:"🤖",rocket:"🚀",rofl:"🤣",roll_eyes:"🙄",roller_coaster:"🎢",rooster:"🐓",rose:"🌹",rosette:"🏵",rotating_light:"🚨",round_pushpin:"📍",rowing_man:"🚣",rowing_woman:"🚣‍♀️",rugby_football:"🏉",running_man:"🏃",running_shirt_with_sash:"🎽",running_woman:"🏃‍♀️",sa:"🈂️",sagittarius:"♐️",sake:"🍶",sandal:"👡",santa:"🎅",satellite:"📡",saxophone:"🎷",school:"🏫",school_satchel:"🎒",scissors:"✂️",scorpion:"🦂",scorpius:"♏️",scream:"😱",scream_cat:"🙀",scroll:"📜",seat:"💺",secret:"㊙️",see_no_evil:"🙈",seedling:"🌱",selfie:"🤳",shallow_pan_of_food:"🥘",shamrock:"☘️",shark:"🦈",shaved_ice:"🍧",sheep:"🐑",shell:"🐚",shield:"🛡",shinto_shrine:"⛩",ship:"🚢",shirt:"👕",shopping:"🛍",shopping_cart:"🛒",shower:"🚿",shrimp:"🦐",signal_strength:"📶",six_pointed_star:"🔯",ski:"🎿",skier:"⛷",skull:"💀",skull_and_crossbones:"☠️",sleeping:"😴",sleeping_bed:"🛌",sleepy:"😪",slightly_frowning_face:"🙁",slightly_smiling_face:"🙂",slot_machine:"🎰",small_airplane:"🛩",small_blue_diamond:"🔹",small_orange_diamond:"🔸",small_red_triangle:"🔺",small_red_triangle_down:"🔻",smile:"😄",smile_cat:"😸",smiley:"😃",smiley_cat:"😺",smiling_imp:"😈",smirk:"😏",smirk_cat:"😼",smoking:"🚬",snail:"🐌",snake:"🐍",sneezing_face:"🤧",snowboarder:"🏂",snowflake:"❄️",snowman:"⛄️",snowman_with_snow:"☃️",sob:"😭",soccer:"⚽️",soon:"🔜",sos:"🆘",sound:"🔉",space_invader:"👾",spades:"♠️",spaghetti:"🍝",sparkle:"❇️",sparkler:"🎇",sparkles:"✨",sparkling_heart:"💖",speak_no_evil:"🙊",speaker:"🔈",speaking_head:"🗣",speech_balloon:"💬",speedboat:"🚤",spider:"🕷",spider_web:"🕸",spiral_calendar:"🗓",spiral_notepad:"🗒",spoon:"🥄",squid:"🦑",stadium:"🏟",star:"⭐️",star2:"🌟",star_and_crescent:"☪️",star_of_david:"✡️",stars:"🌠",station:"🚉",statue_of_liberty:"🗽",steam_locomotive:"🚂",stew:"🍲",stop_button:"⏹",stop_sign:"🛑",stopwatch:"⏱",straight_ruler:"📏",strawberry:"🍓",stuck_out_tongue:"😛",stuck_out_tongue_closed_eyes:"😝",stuck_out_tongue_winking_eye:"😜",studio_microphone:"🎙",stuffed_flatbread:"🥙",sun_behind_large_cloud:"🌥",sun_behind_rain_cloud:"🌦",sun_behind_small_cloud:"🌤",sun_with_face:"🌞",sunflower:"🌻",sunglasses:"😎",sunny:"☀️",sunrise:"🌅",sunrise_over_mountains:"🌄",surfing_man:"🏄",surfing_woman:"🏄‍♀️",sushi:"🍣",suspension_railway:"🚟",sweat:"😓",sweat_drops:"💦",sweat_smile:"😅",sweet_potato:"🍠",swimming_man:"🏊",swimming_woman:"🏊‍♀️",symbols:"🔣",synagogue:"🕍",syringe:"💉",taco:"🌮",tada:"🎉",tanabata_tree:"🎋",taurus:"♉️",taxi:"🚕",tea:"🍵",telephone_receiver:"📞",telescope:"🔭",tennis:"🎾",tent:"⛺️",thermometer:"🌡",thinking:"🤔",thought_balloon:"💭",ticket:"🎫",tickets:"🎟",tiger:"🐯",tiger2:"🐅",timer_clock:"⏲",tipping_hand_man:"💁‍♂️",tired_face:"😫",tm:"™️",toilet:"🚽",tokyo_tower:"🗼",tomato:"🍅",tongue:"👅",top:"🔝",tophat:"🎩",tornado:"🌪",trackball:"🖲",tractor:"🚜",traffic_light:"🚥",train:"🚋",train2:"🚆",tram:"🚊",triangular_flag_on_post:"🚩",triangular_ruler:"📐",trident:"🔱",triumph:"😤",trolleybus:"🚎",trophy:"🏆",tropical_drink:"🍹",tropical_fish:"🐠",truck:"🚚",trumpet:"🎺",tulip:"🌷",tumbler_glass:"🥃",turkey:"🦃",turtle:"🐢",tv:"📺",twisted_rightwards_arrows:"🔀",two_hearts:"💕",two_men_holding_hands:"👬",two_women_holding_hands:"👭",u5272:"🈹",u5408:"🈴",u55b6:"🈺",u6307:"🈯️",u6708:"🈷️",u6709:"🈶",u6e80:"🈵",u7121:"🈚️",u7533:"🈸",u7981:"🈲",u7a7a:"🈳",umbrella:"☔️",unamused:"😒",underage:"🔞",unicorn:"🦄",unlock:"🔓",up:"🆙",upside_down_face:"🙃",v:"✌️",vertical_traffic_light:"🚦",vhs:"📼",vibration_mode:"📳",video_camera:"📹",video_game:"🎮",violin:"🎻",virgo:"♍️",volcano:"🌋",volleyball:"🏐",vs:"🆚",vulcan_salute:"🖖",walking_man:"🚶",walking_woman:"🚶‍♀️",waning_crescent_moon:"🌘",waning_gibbous_moon:"🌖",warning:"⚠️",wastebasket:"🗑",watch:"⌚️",water_buffalo:"🐃",watermelon:"🍉",wave:"👋",wavy_dash:"〰️",waxing_crescent_moon:"🌒",wc:"🚾",weary:"😩",wedding:"💒",weight_lifting_man:"🏋️",weight_lifting_woman:"🏋️‍♀️",whale:"🐳",whale2:"🐋",wheel_of_dharma:"☸️",wheelchair:"♿️",white_check_mark:"✅",white_circle:"⚪️",white_flag:"🏳️",white_flower:"💮",white_large_square:"⬜️",white_medium_small_square:"◽️",white_medium_square:"◻️",white_small_square:"▫️",white_square_button:"🔳",wilted_flower:"🥀",wind_chime:"🎐",wind_face:"🌬",wine_glass:"🍷",wink:"😉",wolf:"🐺",woman:"👩",woman_artist:"👩‍🎨",woman_astronaut:"👩‍🚀",woman_cartwheeling:"🤸‍♀️",woman_cook:"👩‍🍳",woman_facepalming:"🤦‍♀️",woman_factory_worker:"👩‍🏭",woman_farmer:"👩‍🌾",woman_firefighter:"👩‍🚒",woman_health_worker:"👩‍⚕️",woman_judge:"👩‍⚖️",woman_juggling:"🤹‍♀️",woman_mechanic:"👩‍🔧",woman_office_worker:"👩‍💼",woman_pilot:"👩‍✈️",woman_playing_handball:"🤾‍♀️",woman_playing_water_polo:"🤽‍♀️",woman_scientist:"👩‍🔬",woman_shrugging:"🤷‍♀️",woman_singer:"👩‍🎤",woman_student:"👩‍🎓",woman_teacher:"👩‍🏫",woman_technologist:"👩‍💻",woman_with_turban:"👳‍♀️",womans_clothes:"👚",womans_hat:"👒",women_wrestling:"🤼‍♀️",womens:"🚺",world_map:"🗺",worried:"😟",wrench:"🔧",writing_hand:"✍️",x:"❌",yellow_heart:"💛",yen:"💴",yin_yang:"☯️",yum:"😋",zap:"⚡️",zipper_mouth_face:"🤐",zzz:"💤",octocat:':octocat:',showdown:"S"},y.Converter=function(n){"use strict";var a={},s=[],o=[],l={},i=p,d={parsed:{},raw:"",format:""};function r(e,t){if(t=t||null,y.helper.isString(e)){if(t=e=y.helper.stdExtName(e),y.extensions[e])return void function(e,t){"function"==typeof e&&(e=e(new y.Converter));y.helper.isArray(e)||(e=[e]);var n=m(e,t);if(!n.valid)throw Error(n.error);for(var i=0;i[ \t]+¨NBSP;<"),!t){if(!window||!window.document)throw new Error("HTMLParser is undefined. If in a webworker or nodejs environment, you need to provide a WHATWG DOM and HTML such as JSDOM");t=window.document}var n=t.createElement("div");n.innerHTML=e;var i={preList:function(e){for(var t=e.querySelectorAll("pre"),n=[],i=0;i'}else n.push(t[i].innerHTML),t[i].innerHTML="",t[i].setAttribute("prenum",i.toString());return n}(n)};!function e(t){for(var n=0;n? ?(['"].*['"])?\)$/m))i="";else if(!i){if(i="#"+(n=n||t.toLowerCase().replace(/ ?\n/g," ")),y.helper.isUndefined(d.gUrls[n]))return e;i=d.gUrls[n],y.helper.isUndefined(d.gTitles[n])||(s=d.gTitles[n])}var o='"}return e=(e=(e=(e=(e=d.converter._dispatch("anchors.before",e,l,d)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)] ?(?:\n *)?\[(.*?)]()()()()/g,t)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<([^>]*)>(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,t)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]??(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,t)).replace(/\[([^\[\]]+)]()()()()()/g,t),l.ghMentions&&(e=e.replace(/(^|\s)(\\)?(@([a-z\d]+(?:[a-z\d.-]+?[a-z\d]+)*))/gim,function(e,t,n,i,r){if("\\"===n)return t+i;if(!y.helper.isString(l.ghMentionsLink))throw new Error("ghMentionsLink option must be a string");var a=l.ghMentionsLink.replace(/\{u}/g,r),s="";return l.openLinksInNewWindow&&(s=' rel="noopener noreferrer" target="¨E95Eblank"'),t+'"+i+""})),e=d.converter._dispatch("anchors.after",e,l,d)});function r(h){"use strict";return function(e,t,n,i,r,a,s){var o=n=n.replace(y.helper.regexes.asteriskDashAndColon,y.helper.escapeCharactersCallback),l="",d="",u=t||"",c=s||"";return/^www\./i.test(n)&&(n=n.replace(/^www\./i,"http://www.")),h.excludeTrailingPunctuationFromURLs&&a&&(l=a),h.openLinksInNewWindow&&(d=' rel="noopener noreferrer" target="¨E95Eblank"'),u+'"+o+""+l+c}}function s(r,a){"use strict";return function(e,t,n){var i="mailto:";return t=t||"",n=y.subParser("unescapeSpecialChars")(n,r,a),r.encodeEmails?(i=y.helper.encodeEmailAddress(i+n),n=y.helper.encodeEmailAddress(n)):i+=n,t+''+n+""}}var o=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi,l=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()\[\]])?(\1)?(?=\s|$)(?!["<>])/gi,d=/()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi,u=/(^|\s)(?:mailto:)?([A-Za-z0-9!#$%&'*+-/=?^_`{|}~.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?=$|\s)/gim,g=/<()(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi;y.subParser("autoLinks",function(e,t,n){"use strict";return e=(e=(e=n.converter._dispatch("autoLinks.before",e,t,n)).replace(d,r(t))).replace(g,s(t,n)),e=n.converter._dispatch("autoLinks.after",e,t,n)}),y.subParser("simplifiedAutoLinks",function(e,t,n){"use strict";return t.simplifiedAutoLink?(e=n.converter._dispatch("simplifiedAutoLinks.before",e,t,n),e=(e=t.excludeTrailingPunctuationFromURLs?e.replace(l,r(t)):e.replace(o,r(t))).replace(u,s(t,n)),e=n.converter._dispatch("simplifiedAutoLinks.after",e,t,n)):e}),y.subParser("blockGamut",function(e,t,n){"use strict";return e=n.converter._dispatch("blockGamut.before",e,t,n),e=y.subParser("blockQuotes")(e,t,n),e=y.subParser("headers")(e,t,n),e=y.subParser("horizontalRule")(e,t,n),e=y.subParser("lists")(e,t,n),e=y.subParser("codeBlocks")(e,t,n),e=y.subParser("tables")(e,t,n),e=y.subParser("hashHTMLBlocks")(e,t,n),e=y.subParser("paragraphs")(e,t,n),e=n.converter._dispatch("blockGamut.after",e,t,n)}),y.subParser("blockQuotes",function(e,t,n){"use strict";e=n.converter._dispatch("blockQuotes.before",e,t,n),e+="\n\n";var i=/(^ {0,3}>[ \t]?.+\n(.+\n)*\n*)+/gm;return t.splitAdjacentBlockquotes&&(i=/^ {0,3}>[\s\S]*?(?:\n\n)/gm),e=e.replace(i,function(e){return e=(e=(e=e.replace(/^[ \t]*>[ \t]?/gm,"")).replace(/¨0/g,"")).replace(/^[ \t]+$/gm,""),e=y.subParser("githubCodeBlocks")(e,t,n),e=(e=(e=y.subParser("blockGamut")(e,t,n)).replace(/(^|\n)/g,"$1 ")).replace(/(\s*
[^\r]+?<\/pre>)/gm,function(e,t){var n=t;return n=(n=n.replace(/^  /gm,"¨0")).replace(/¨0/g,"")}),y.subParser("hashBlock")("
\n"+e+"\n
",t,n)}),e=n.converter._dispatch("blockQuotes.after",e,t,n)}),y.subParser("codeBlocks",function(e,s,o){"use strict";e=o.converter._dispatch("codeBlocks.before",e,s,o);return e=(e=(e+="¨0").replace(/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=¨0))/g,function(e,t,n){var i=t,r=n,a="\n",i=y.subParser("outdent")(i,s,o);return i=y.subParser("encodeCode")(i,s,o),i=(i=(i=y.subParser("detab")(i,s,o)).replace(/^\n+/g,"")).replace(/\n+$/g,""),s.omitExtraWLInCodeBlocks&&(a=""),i="
"+i+a+"
",y.subParser("hashBlock")(i,s,o)+r})).replace(/¨0/,""),e=o.converter._dispatch("codeBlocks.after",e,s,o)}),y.subParser("codeSpans",function(e,a,s){"use strict";return void 0===(e=s.converter._dispatch("codeSpans.before",e,a,s))&&(e=""),e=e.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,function(e,t,n,i){var r=i;return r=(r=r.replace(/^([ \t]*)/g,"")).replace(/[ \t]*$/g,""),r=t+""+(r=y.subParser("encodeCode")(r,a,s))+"",r=y.subParser("hashHTMLSpans")(r,a,s)}),e=s.converter._dispatch("codeSpans.after",e,a,s)}),y.subParser("completeHTMLDocument",function(e,t,n){"use strict";if(!t.completeHTMLDocument)return e;e=n.converter._dispatch("completeHTMLDocument.before",e,t,n);var i="html",r="\n",a="",s='\n',o="",l="";for(var d in void 0!==n.metadata.parsed.doctype&&(r="\n","html"!==(i=n.metadata.parsed.doctype.toString().toLowerCase())&&"html5"!==i||(s='')),n.metadata.parsed)if(n.metadata.parsed.hasOwnProperty(d))switch(d.toLowerCase()){case"doctype":break;case"title":a=""+n.metadata.parsed.title+"\n";break;case"charset":s="html"===i||"html5"===i?'\n':'\n';break;case"language":case"lang":o=' lang="'+n.metadata.parsed[d]+'"',l+='\n';break;default:l+='\n'}return e=r+"\n\n"+a+s+l+"\n\n"+e.trim()+"\n\n",e=n.converter._dispatch("completeHTMLDocument.after",e,t,n)}),y.subParser("detab",function(e,t,n){"use strict";return e=(e=(e=(e=(e=(e=n.converter._dispatch("detab.before",e,t,n)).replace(/\t(?=\t)/g," ")).replace(/\t/g,"¨A¨B")).replace(/¨B(.+?)¨A/g,function(e,t){for(var n=t,i=4-n.length%4,r=0;r/g,">"),e=n.converter._dispatch("encodeAmpsAndAngles.after",e,t,n)}),y.subParser("encodeBackslashEscapes",function(e,t,n){"use strict";return e=(e=(e=n.converter._dispatch("encodeBackslashEscapes.before",e,t,n)).replace(/\\(\\)/g,y.helper.escapeCharactersCallback)).replace(/\\([`*_{}\[\]()>#+.!~=|-])/g,y.helper.escapeCharactersCallback),e=n.converter._dispatch("encodeBackslashEscapes.after",e,t,n)}),y.subParser("encodeCode",function(e,t,n){"use strict";return e=(e=n.converter._dispatch("encodeCode.before",e,t,n)).replace(/&/g,"&").replace(//g,">").replace(/([*_{}\[\]\\=~-])/g,y.helper.escapeCharactersCallback),e=n.converter._dispatch("encodeCode.after",e,t,n)}),y.subParser("escapeSpecialCharsWithinTagAttributes",function(e,t,n){"use strict";return e=(e=(e=n.converter._dispatch("escapeSpecialCharsWithinTagAttributes.before",e,t,n)).replace(/<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi,function(e){return e.replace(/(.)<\/?code>(?=.)/g,"$1`").replace(/([\\`*_~=|])/g,y.helper.escapeCharactersCallback)})).replace(/-]|-[^>])(?:[^-]|-[^-])*)--)>/gi,function(e){return e.replace(/([\\`*_~=|])/g,y.helper.escapeCharactersCallback)}),e=n.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after",e,t,n)}),y.subParser("githubCodeBlocks",function(e,a,s){"use strict";return a.ghCodeBlocks?(e=s.converter._dispatch("githubCodeBlocks.before",e,a,s),e=(e=(e+="¨0").replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*)\n([\s\S]*?)\n(?: {0,3})\1/g,function(e,t,n,i){var r=a.omitExtraWLInCodeBlocks?"":"\n";return i=y.subParser("encodeCode")(i,a,s),i="
"+(i=(i=(i=y.subParser("detab")(i,a,s)).replace(/^\n+/g,"")).replace(/\n+$/g,""))+r+"
",i=y.subParser("hashBlock")(i,a,s),"\n\n¨G"+(s.ghCodeBlocks.push({text:e,codeblock:i})-1)+"G\n\n"})).replace(/¨0/,""),s.converter._dispatch("githubCodeBlocks.after",e,a,s)):e}),y.subParser("hashBlock",function(e,t,n){"use strict";return e=(e=n.converter._dispatch("hashBlock.before",e,t,n)).replace(/(^\n+|\n+$)/g,""),e="\n\n¨K"+(n.gHtmlBlocks.push(e)-1)+"K\n\n",e=n.converter._dispatch("hashBlock.after",e,t,n)}),y.subParser("hashCodeTags",function(e,a,s){"use strict";e=s.converter._dispatch("hashCodeTags.before",e,a,s);return e=y.helper.replaceRecursiveRegExp(e,function(e,t,n,i){var r=n+y.subParser("encodeCode")(t,a,s)+i;return"¨C"+(s.gHtmlSpans.push(r)-1)+"C"},"]*>","","gim"),e=s.converter._dispatch("hashCodeTags.after",e,a,s)}),y.subParser("hashElement",function(e,t,i){"use strict";return function(e,t){var n=t;return n=(n=(n=n.replace(/\n\n/g,"\n")).replace(/^\n/,"")).replace(/\n+$/g,""),n="\n\n¨K"+(i.gHtmlBlocks.push(n)-1)+"K\n\n"}}),y.subParser("hashHTMLBlocks",function(e,t,a){"use strict";e=a.converter._dispatch("hashHTMLBlocks.before",e,t,a);function n(e,t,n,i){var r=e;return-1!==n.search(/\bmarkdown\b/)&&(r=n+a.converter.makeHtml(t)+i),"\n\n¨K"+(a.gHtmlBlocks.push(r)-1)+"K\n\n"}var i=["pre","div","h1","h2","h3","h4","h5","h6","blockquote","table","dl","ol","ul","script","noscript","form","fieldset","iframe","math","style","section","header","footer","nav","article","aside","address","audio","canvas","figure","hgroup","output","video","p"];t.backslashEscapesHTMLTags&&(e=e.replace(/\\<(\/?[^>]+?)>/g,function(e,t){return"<"+t+">"}));for(var r=0;r]*>)","im"),l="<"+i[r]+"\\b[^>]*>",d="";-1!==(s=y.helper.regexIndexOf(e,o));){var u=y.helper.splitAtIndex(e,s),c=y.helper.replaceRecursiveRegExp(u[1],n,l,d,"im");if(c===u[1])break;e=u[0].concat(c)}return e=e.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,y.subParser("hashElement")(e,t,a)),e=(e=y.helper.replaceRecursiveRegExp(e,function(e){return"\n\n¨K"+(a.gHtmlBlocks.push(e)-1)+"K\n\n"},"^ {0,3}\x3c!--","--\x3e","gm")).replace(/(?:\n\n)( {0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,y.subParser("hashElement")(e,t,a)),e=a.converter._dispatch("hashHTMLBlocks.after",e,t,a)}),y.subParser("hashHTMLSpans",function(e,t,n){"use strict";function i(e){return"¨C"+(n.gHtmlSpans.push(e)-1)+"C"}return e=(e=(e=(e=(e=n.converter._dispatch("hashHTMLSpans.before",e,t,n)).replace(/<[^>]+?\/>/gi,i)).replace(/<([^>]+?)>[\s\S]*?<\/\1>/g,i)).replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g,i)).replace(/<[^>]+?>/gi,i),e=n.converter._dispatch("hashHTMLSpans.after",e,t,n)}),y.subParser("unhashHTMLSpans",function(e,t,n){"use strict";e=n.converter._dispatch("unhashHTMLSpans.before",e,t,n);for(var i=0;i]*>\\s*]*>","^ {0,3}\\s*
","gim"),e=s.converter._dispatch("hashPreCodeTags.after",e,a,s)}),y.subParser("headers",function(e,l,d){"use strict";e=d.converter._dispatch("headers.before",e,l,d);var u=isNaN(parseInt(l.headerLevelStart))?1:parseInt(l.headerLevelStart),t=l.smoothLivePreview?/^(.+)[ \t]*\n={2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n=+[ \t]*\n+/gm,n=l.smoothLivePreview?/^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n-+[ \t]*\n+/gm;e=(e=e.replace(t,function(e,t){var n=y.subParser("spanGamut")(t,l,d),i=l.noHeaderId?"":' id="'+c(t)+'"',r=""+n+"";return y.subParser("hashBlock")(r,l,d)})).replace(n,function(e,t){var n=y.subParser("spanGamut")(t,l,d),i=l.noHeaderId?"":' id="'+c(t)+'"',r=u+1,a=""+n+"";return y.subParser("hashBlock")(a,l,d)});var i=l.requireSpaceBeforeHeadingText?/^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm:/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm;function c(e){var t,n,i;return!l.customizedHeaderId||(i=e.match(/\{([^{]+?)}\s*$/))&&i[1]&&(e=i[1]),t=e,n=y.helper.isString(l.prefixHeaderId)?l.prefixHeaderId:!0===l.prefixHeaderId?"section-":"",l.rawPrefixHeaderId||(t=n+t),t=l.ghCompatibleHeaderId?t.replace(/ /g,"-").replace(/&/g,"").replace(/¨T/g,"").replace(/¨D/g,"").replace(/[&+$,\/:;=?@"#{}|^¨~\[\]`\\*)(%.!'<>]/g,"").toLowerCase():l.rawHeaderId?t.replace(/ /g,"-").replace(/&/g,"&").replace(/¨T/g,"¨").replace(/¨D/g,"$").replace(/["']/g,"-").toLowerCase():t.replace(/[^\w]/g,"").toLowerCase(),l.rawPrefixHeaderId&&(t=n+t),d.hashLinkCounts[t]?t=t+"-"+d.hashLinkCounts[t]++:d.hashLinkCounts[t]=1,t}return e=e.replace(i,function(e,t,n){var i=n;l.customizedHeaderId&&(i=n.replace(/\s?\{([^{]+?)}\s*$/,""));var r=y.subParser("spanGamut")(i,l,d),a=l.noHeaderId?"":' id="'+c(n)+'"',s=u-1+t.length,o=""+r+"";return y.subParser("hashBlock")(o,l,d)}),e=d.converter._dispatch("headers.after",e,l,d)}),y.subParser("horizontalRule",function(e,t,n){"use strict";e=n.converter._dispatch("horizontalRule.before",e,t,n);var i=y.subParser("hashBlock")("
",t,n);return e=(e=(e=e.replace(/^ {0,2}( ?-){3,}[ \t]*$/gm,i)).replace(/^ {0,2}( ?\*){3,}[ \t]*$/gm,i)).replace(/^ {0,2}( ?_){3,}[ \t]*$/gm,i),e=n.converter._dispatch("horizontalRule.after",e,t,n)}),y.subParser("images",function(e,t,h){"use strict";function l(e,t,n,i,r,a,s,o){var l=h.gUrls,d=h.gTitles,u=h.gDimensions;if(n=n.toLowerCase(),o=o||"",-1? ?(['"].*['"])?\)$/m))i="";else if(""===i||null===i){if(""!==n&&null!==n||(n=t.toLowerCase().replace(/ ?\n/g," ")),i="#"+n,y.helper.isUndefined(l[n]))return e;i=l[n],y.helper.isUndefined(d[n])||(o=d[n]),y.helper.isUndefined(u[n])||(r=u[n].width,a=u[n].height)}t=t.replace(/"/g,""").replace(y.helper.regexes.asteriskDashAndColon,y.helper.escapeCharactersCallback);var c=''+t+'"}return e=(e=(e=(e=(e=(e=h.converter._dispatch("images.before",e,t,h)).replace(/!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]()()()()()/g,l)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]??(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,function(e,t,n,i,r,a,s,o){return l(e,t,n,i=i.replace(/\s/g,""),r,a,0,o)})).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<([^>]*)>(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(?:(["'])([^"]*?)\6))?[ \t]?\)/g,l)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]??(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,l)).replace(/!\[([^\[\]]+)]()()()()()/g,l),e=h.converter._dispatch("images.after",e,t,h)}),y.subParser("italicsAndBold",function(e,t,n){"use strict";return e=n.converter._dispatch("italicsAndBold.before",e,t,n),e=t.literalMidWordUnderscores?(e=(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,function(e,t){return""+t+""})).replace(/\b__(\S[\s\S]*?)__\b/g,function(e,t){return""+t+""})).replace(/\b_(\S[\s\S]*?)_\b/g,function(e,t){return""+t+""}):(e=(e=e.replace(/___(\S[\s\S]*?)___/g,function(e,t){return/\S$/.test(t)?""+t+"":e})).replace(/__(\S[\s\S]*?)__/g,function(e,t){return/\S$/.test(t)?""+t+"":e})).replace(/_([^\s_][\s\S]*?)_/g,function(e,t){return/\S$/.test(t)?""+t+"":e}),e=t.literalMidWordAsterisks?(e=(e=e.replace(/([^*]|^)\B\*\*\*(\S[\s\S]*?)\*\*\*\B(?!\*)/g,function(e,t,n){return t+""+n+""})).replace(/([^*]|^)\B\*\*(\S[\s\S]*?)\*\*\B(?!\*)/g,function(e,t,n){return t+""+n+""})).replace(/([^*]|^)\B\*(\S[\s\S]*?)\*\B(?!\*)/g,function(e,t,n){return t+""+n+""}):(e=(e=e.replace(/\*\*\*(\S[\s\S]*?)\*\*\*/g,function(e,t){return/\S$/.test(t)?""+t+"":e})).replace(/\*\*(\S[\s\S]*?)\*\*/g,function(e,t){return/\S$/.test(t)?""+t+"":e})).replace(/\*([^\s*][\s\S]*?)\*/g,function(e,t){return/\S$/.test(t)?""+t+"":e}),e=n.converter._dispatch("italicsAndBold.after",e,t,n)}),y.subParser("lists",function(e,c,u){"use strict";function h(e,t){u.gListLevel++,e=e.replace(/\n{2,}$/,"\n");var n=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0| {0,3}([*+-]|\d+[.])[ \t]+))/gm,d=/\n[ \t]*\n(?!¨0)/.test(e+="¨0");return c.disableForced4SpacesIndentedSublists&&(n=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0|\2([*+-]|\d+[.])[ \t]+))/gm),e=(e=e.replace(n,function(e,t,n,i,r,a,s){s=s&&""!==s.trim();var o=y.subParser("outdent")(r,c,u),l="";return a&&c.tasklists&&(l=' class="task-list-item" style="list-style-type: none;"',o=o.replace(/^[ \t]*\[(x|X| )?]/m,function(){var e='"+(o=(o=t||-1\n"})).replace(/¨0/g,""),u.gListLevel--,t&&(e=e.replace(/\s+$/,"")),e}function p(e,t){if("ol"===t){var n=e.match(/^ *(\d+)\./);if(n&&"1"!==n[1])return' start="'+n[1]+'"'}return""}function r(r,a,s){var e,o=c.disableForced4SpacesIndentedSublists?/^ ?\d+\.[ \t]/gm:/^ {0,3}\d+\.[ \t]/gm,l=c.disableForced4SpacesIndentedSublists?/^ ?[*+-][ \t]/gm:/^ {0,3}[*+-][ \t]/gm,d="ul"===a?o:l,u="";return-1!==r.search(d)?function e(t){var n=t.search(d),i=p(r,a);-1!==n?(u+="\n\n<"+a+i+">\n"+h(t.slice(0,n),!!s)+"\n",d="ul"===(a="ul"===a?"ol":"ul")?o:l,e(t.slice(n))):u+="\n\n<"+a+i+">\n"+h(t,!!s)+"\n"}(r):(e=p(r,a),u="\n\n<"+a+e+">\n"+h(r,!!s)+"\n"),u}return e=u.converter._dispatch("lists.before",e,c,u),e+="¨0",e=(e=u.gListLevel?e.replace(/^(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,function(e,t,n){return r(t,-1"),o+="

",r.push(o))}for(a=r.length,s=0;s]*>\s*]*>/.test(d)&&(u=!0)}r[s]=d}return e=(e=(e=r.join("\n")).replace(/^\n+/g,"")).replace(/\n+$/g,""),n.converter._dispatch("paragraphs.after",e,t,n)}),y.subParser("runExtension",function(e,t,n,i){"use strict";var r;return e.filter?t=e.filter(t,i.converter,n):e.regex&&((r=e.regex)instanceof RegExp||(r=new RegExp(r,"g")),t=t.replace(r,e.replace)),t}),y.subParser("spanGamut",function(e,t,n){"use strict";return e=n.converter._dispatch("spanGamut.before",e,t,n),e=y.subParser("codeSpans")(e,t,n),e=y.subParser("escapeSpecialCharsWithinTagAttributes")(e,t,n),e=y.subParser("encodeBackslashEscapes")(e,t,n),e=y.subParser("images")(e,t,n),e=y.subParser("anchors")(e,t,n),e=y.subParser("autoLinks")(e,t,n),e=y.subParser("simplifiedAutoLinks")(e,t,n),e=y.subParser("emoji")(e,t,n),e=y.subParser("underline")(e,t,n),e=y.subParser("italicsAndBold")(e,t,n),e=y.subParser("strikethrough")(e,t,n),e=y.subParser("ellipsis")(e,t,n),e=y.subParser("hashHTMLSpans")(e,t,n),e=y.subParser("encodeAmpsAndAngles")(e,t,n),t.simpleLineBreaks?/\n\n¨K/.test(e)||(e=e.replace(/\n+/g,"
\n")):e=e.replace(/ +\n/g,"
\n"),e=n.converter._dispatch("spanGamut.after",e,t,n)}),y.subParser("strikethrough",function(e,i,r){"use strict";return i.strikethrough&&(e=(e=r.converter._dispatch("strikethrough.before",e,i,r)).replace(/(?:~){2}([\s\S]+?)(?:~){2}/g,function(e,t){return n=t,i.simplifiedAutoLink&&(n=y.subParser("simplifiedAutoLinks")(n,i,r)),""+n+"";var n}),e=r.converter._dispatch("strikethrough.after",e,i,r)),e}),y.subParser("stripLinkDefinitions",function(e,o,l){"use strict";function t(e,t,n,i,r,a,s){return t=t.toLowerCase(),n.match(/^data:.+?\/.+?;base64,/)?l.gUrls[t]=n.replace(/\s/g,""):l.gUrls[t]=y.subParser("encodeAmpsAndAngles")(n,o,l),a?a+s:(s&&(l.gTitles[t]=s.replace(/"|'/g,""")),o.parseImgDimensions&&i&&r&&(l.gDimensions[t]={width:i,height:r}),"")}return e=(e=(e=(e+="¨0").replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=¨0)|(?=\n\[))/gm,t)).replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*\s]+)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=¨0))/gm,t)).replace(/¨0/,"")}),y.subParser("tables",function(e,_,g){"use strict";if(!_.tables)return e;function t(e){for(var t=e.split("\n"),n=0;n"+(r=y.subParser("spanGamut")(r,_,g))+"\n"));for(n=0;n"+y.subParser("spanGamut")(o,_,g)+"\n"));p.push(f)}return function(e,t){for(var n="
").addClass("cw").text("#"));t.isBefore(this._viewDate.clone().endOf("w"));)e.append(x("").addClass("dow").text(t.format("dd"))),t.add(1,"d");this.widget.find(".datepicker-days thead").append(e)},E.prototype._fillMonths=function(){for(var e=[],t=this._viewDate.clone().startOf("y").startOf("d");t.isSame(this._viewDate,"y");)e.push(x("").attr("data-action","selectMonth").addClass("month").text(t.format("MMM"))),t.add(1,"M");this.widget.find(".datepicker-months td").empty().append(e)},E.prototype._updateMonths=function(){var e=this.widget.find(".datepicker-months"),t=e.find("th"),n=e.find("tbody").find("span"),i=this;t.eq(0).find("span").attr("title",this._options.tooltips.prevYear),t.eq(1).attr("title",this._options.tooltips.selectYear),t.eq(2).find("span").attr("title",this._options.tooltips.nextYear),e.find(".disabled").removeClass("disabled"),this._isValid(this._viewDate.clone().subtract(1,"y"),"y")||t.eq(0).addClass("disabled"),t.eq(1).text(this._viewDate.year()),this._isValid(this._viewDate.clone().add(1,"y"),"y")||t.eq(2).addClass("disabled"),n.removeClass("active"),this._getLastPickedDate().isSame(this._viewDate,"y")&&!this.unset&&n.eq(this._getLastPickedDate().month()).addClass("active"),n.each(function(e){i._isValid(i._viewDate.clone().month(e),"M")||x(this).addClass("disabled")})},E.prototype._getStartEndYear=function(e,t){var n=e/10,i=Math.floor(t/e)*e;return[i,i+9*n,Math.floor(t/n)*n]},E.prototype._updateYears=function(){var e=this.widget.find(".datepicker-years"),t=e.find("th"),n=this._getStartEndYear(10,this._viewDate.year()),i=this._viewDate.clone().year(n[0]),r=this._viewDate.clone().year(n[1]),a="";for(t.eq(0).find("span").attr("title",this._options.tooltips.prevDecade),t.eq(1).attr("title",this._options.tooltips.selectDecade),t.eq(2).find("span").attr("title",this._options.tooltips.nextDecade),e.find(".disabled").removeClass("disabled"),this._options.minDate&&this._options.minDate.isAfter(i,"y")&&t.eq(0).addClass("disabled"),t.eq(1).text(i.year()+"-"+r.year()),this._options.maxDate&&this._options.maxDate.isBefore(r,"y")&&t.eq(2).addClass("disabled"),a+=''+(i.year()-1)+"";!i.isAfter(r,"y");)a+=''+i.year()+"",i.add(1,"y");a+=''+i.year()+"",e.find("td").html(a)},E.prototype._updateDecades=function(){var e=this.widget.find(".datepicker-decades"),t=e.find("th"),n=this._getStartEndYear(100,this._viewDate.year()),i=this._viewDate.clone().year(n[0]),r=this._viewDate.clone().year(n[1]),a=!1,s=!1,o=void 0,l="";for(t.eq(0).find("span").attr("title",this._options.tooltips.prevCentury),t.eq(2).find("span").attr("title",this._options.tooltips.nextCentury),e.find(".disabled").removeClass("disabled"),(0===i.year()||this._options.minDate&&this._options.minDate.isAfter(i,"y"))&&t.eq(0).addClass("disabled"),t.eq(1).text(i.year()+"-"+r.year()),this._options.maxDate&&this._options.maxDate.isBefore(r,"y")&&t.eq(2).addClass("disabled"),i.year()-10<0?l+=" ":l+=''+(i.year()-10)+"";!i.isAfter(r,"y");)o=i.year()+11,a=this._options.minDate&&this._options.minDate.isAfter(i,"y")&&this._options.minDate.year()<=o,s=this._options.maxDate&&this._options.maxDate.isAfter(i,"y")&&this._options.maxDate.year()<=o,l+=''+i.year()+"",i.add(10,"y");l+=''+i.year()+"",e.find("td").html(l)},E.prototype._fillDate=function(){var e,t=this.widget.find(".datepicker-days"),n=t.find("th"),i=[],r=void 0,a=void 0,s=void 0,o=void 0;if(this._hasDate()){for(n.eq(0).find("span").attr("title",this._options.tooltips.prevMonth),n.eq(1).attr("title",this._options.tooltips.selectMonth),n.eq(2).find("span").attr("title",this._options.tooltips.nextMonth),t.find(".disabled").removeClass("disabled"),n.eq(1).text(this._viewDate.format(this._options.dayViewHeaderFormat)),this._isValid(this._viewDate.clone().subtract(1,"M"),"M")||n.eq(0).addClass("disabled"),this._isValid(this._viewDate.clone().add(1,"M"),"M")||n.eq(2).addClass("disabled"),r=this._viewDate.clone().startOf("M").startOf("w").startOf("d"),o=0;o<42;o++)0===r.weekday()&&(a=x("
'+r.week()+"'+r.date()+"
'+t.format(this.use24Hours?"HH":"hh")+"
'+t.format("mm")+"
'+t.format("ss")+"
\n\n\n",i=e.length,r=0;r\n\n\n",r=0;r\n";for(var a=0;a\n"}return n+="\n
\n"}(c,p)}return e=(e=(e=(e=g.converter._dispatch("tables.before",e,_,g)).replace(/\\(\|)/g,y.helper.escapeCharactersCallback)).replace(/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,t)).replace(/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,t),e=g.converter._dispatch("tables.after",e,_,g)}),y.subParser("underline",function(e,t,n){"use strict";return t.underline?(e=n.converter._dispatch("underline.before",e,t,n),e=(e=t.literalMidWordUnderscores?(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,function(e,t){return""+t+""})).replace(/\b__(\S[\s\S]*?)__\b/g,function(e,t){return""+t+""}):(e=e.replace(/___(\S[\s\S]*?)___/g,function(e,t){return/\S$/.test(t)?""+t+"":e})).replace(/__(\S[\s\S]*?)__/g,function(e,t){return/\S$/.test(t)?""+t+"":e})).replace(/(_)/g,y.helper.escapeCharactersCallback),e=n.converter._dispatch("underline.after",e,t,n)):e}),y.subParser("unescapeSpecialChars",function(e,t,n){"use strict";return e=(e=n.converter._dispatch("unescapeSpecialChars.before",e,t,n)).replace(/¨E(\d+)E/g,function(e,t){var n=parseInt(t);return String.fromCharCode(n)}),e=n.converter._dispatch("unescapeSpecialChars.after",e,t,n)}),y.subParser("makeMarkdown.blockquote",function(e,t){"use strict";var n="";if(e.hasChildNodes())for(var i=e.childNodes,r=i.length,a=0;a ")}),y.subParser("makeMarkdown.codeBlock",function(e,t){"use strict";var n=e.getAttribute("language"),i=e.getAttribute("precodenum");return"```"+n+"\n"+t.preList[i]+"\n```"}),y.subParser("makeMarkdown.codeSpan",function(e){"use strict";return"`"+e.innerHTML+"`"}),y.subParser("makeMarkdown.emphasis",function(e,t){"use strict";var n="";if(e.hasChildNodes()){n+="*";for(var i=e.childNodes,r=i.length,a=0;a",e.hasAttribute("width")&&e.hasAttribute("height")&&(t+=" ="+e.getAttribute("width")+"x"+e.getAttribute("height")),e.hasAttribute("title")&&(t+=' "'+e.getAttribute("title")+'"'),t+=")"),t}),y.subParser("makeMarkdown.links",function(e,t){"use strict";var n="";if(e.hasChildNodes()&&e.hasAttribute("href")){for(var i=e.childNodes,r=i.length,n="[",a=0;a",e.hasAttribute("title")&&(n+=' "'+e.getAttribute("title")+'"'),n+=")"}return n}),y.subParser("makeMarkdown.list",function(e,t,n){"use strict";var i="";if(!e.hasChildNodes())return"";for(var r=e.childNodes,a=r.length,s=e.getAttribute("start")||1,o=0;o"+t.preList[n]+""}),y.subParser("makeMarkdown.strikethrough",function(e,t){"use strict";var n="";if(e.hasChildNodes()){n+="~~";for(var i=e.childNodes,r=i.length,a=0;atr>th"),a=e.querySelectorAll("tbody>tr"),s=0;s/g,"\\$1>")).replace(/^#/gm,"\\#")).replace(/^(\s*)([-=]{3,})(\s*)$/,"$1\\$2$3")).replace(/^( {0,3}\d+)\./gm,"$1\\.")).replace(/^( {0,3})([+-])/gm,"$1\\$2")).replace(/]([\s]*)\(/g,"\\]$1\\(")).replace(/^ {0,3}\[([\S \t]*?)]:/gm,"\\[$1]:")});"function"==typeof define&&define.amd?define(function(){"use strict";return y}):"undefined"!=typeof module&&module.exports?module.exports=y:this.showdown=y}.call(this),function(r){var c=r.Markdown=function(e){switch(typeof e){case"undefined":this.dialect=c.dialects.Gruber;break;case"object":this.dialect=e;break;default:if(!(e in c.dialects))throw new Error("Unknown Markdown dialect '"+String(e)+"'");this.dialect=c.dialects[e]}this.em_state=[],this.strong_state=[],this.debug_indent=""};function s(){return"Markdown.mk_block( "+uneval(this.toString())+", "+uneval(this.trailing)+", "+uneval(this.lineNumber)+" )"}function o(){var e=require("util");return"Markdown.mk_block( "+e.inspect(this.toString())+", "+e.inspect(this.trailing)+", "+e.inspect(this.lineNumber)+" )"}r.parse=function(e,t){return new c(t).toTree(e)},r.toHTML=function(e,t,n){var i=r.toHTMLTree(e,t,n);return r.renderJsonML(i)},r.toHTMLTree=function(e,t,n){"string"==typeof e&&(e=this.parse(e,t));var i=m(e),r={};i&&i.references&&(r=i.references);var a=function e(t,n,i){var r;i=i||{};var a=t.slice(0);"function"==typeof i.preprocessTreeNode&&(a=i.preprocessTreeNode(a,n));var s=m(a);if(s){for(r in a[1]={},s)a[1][r]=s[r];s=a[1]}if("string"==typeof a)return a;switch(a[0]){case"header":a[0]="h"+a[1].level,delete a[1].level;break;case"bulletlist":a[0]="ul";break;case"numberlist":a[0]="ol";break;case"listitem":a[0]="li";break;case"para":a[0]="p";break;case"markdown":a[0]="html",s&&delete s.references;break;case"code_block":a[0]="pre",r=s?2:1;var o=["code"];o.push.apply(o,a.splice(r,a.length-r)),a[r]=o;break;case"inlinecode":a[0]="code";break;case"img":a[1].src=a[1].href,delete a[1].href;break;case"linebreak":a[0]="br";break;case"link":a[0]="a";break;case"link_ref":a[0]="a";var l=n[s.ref];if(!l)return s.original;delete s.ref,s.href=l.href,l.title&&(s.title=l.title),delete s.original;break;case"img_ref":a[0]="img";var l=n[s.ref];if(!l)return s.original;delete s.ref,s.src=l.href,l.title&&(s.title=l.title),delete s.original}r=1;if(s){for(var d in a[1]){r=2;break}1===r&&a.splice(r,1)}for(;rr.length)a=b(c),n.push(a),n=a[1]=["listitem"];else{for(var _=!1,g=0;gc[0].length&&(d+=h+p.substr(c[0].length))}d.length&&(T(n,s,this.processInline(d),h),s=!1,d="");var y=x(r.length,t);0/m)){var n=[];if(">"!=e[0]){for(var i=e.split(/\n/),r=[],a=e.lineNumber;i.length&&">"!=i[0][0];)r.push(i.shift()),a++;var s=h(r.join("\n"),"\n",e.lineNumber);n.push.apply(n,this.processBlock(s,[])),e=h(i.join("\n"),e.trailing,a)}for(;t.length&&">"==t[0][0];){var o=t.shift();e=h(e+e.trailing+o,o.trailing,e.lineNumber)}var l=e.replace(/^> ?/gm,""),d=(this.tree,this.toTree(l,["blockquote"])),u=m(d);return u&&u.references&&(delete u.references,f(u)&&d.splice(1,1)),n.push(d),n}},referenceDefn:function(e,t){var n=/^\s*\[(.*?)\]:\s*(\S+)(?:\s+(?:(['"])(.*?)\3|\((.*?)\)))?\n?/;if(e.match(n)){m(this.tree)||this.tree.splice(1,0,{});var i=m(this.tree);void 0===i.references&&(i.references={});var r=this.loop_re_over_block(n,e,function(e){e[2]&&"<"==e[2][0]&&">"==e[2][e[2].length-1]&&(e[2]=e[2].substring(1,e[2].length-1));var t=i.references[e[1].toLowerCase()]={href:e[2]};void 0!==e[4]?t.title=e[4]:void 0!==e[5]&&(t.title=e[5])});return r.length&&t.unshift(h(r,e.trailing)),[]}},para:function(e){return[["para"].concat(this.processInline(e))]}}},c.dialects.Gruber.inline={__oneElement__:function(e,t,n){var i,r;return t=t||this.dialect.inline.__patterns__,(i=new RegExp("([\\s\\S]*?)("+(t.source||t)+")").exec(e))?i[1]?[i[1].length,i[1]]:(i[2]in this.dialect.inline&&(r=this.dialect.inline[i[2]].call(this,e.substr(i.index),i,n||[])),r=r||[i[2].length,i[2]]):[e.length,e]},__call__:function(e,t){var n,i=[];function r(e){"string"==typeof e&&"string"==typeof i[i.length-1]?i[i.length-1]+=e:i.push(e)}for(;0"==t[2][t[2].length-1]&&(t[2]=t[2].substring(1,t[2].length-1)),t[2]=this.dialect.inline.__call__.call(this,t[2],/\\/)[0];var n={alt:t[1],href:t[2]||""};return void 0!==t[4]&&(n.title=t[4]),[t[0].length,["img",n]]}return(t=e.match(/^!\[(.*?)\][ \t]*\[(.*?)\]/))?[t[0].length,["img_ref",{alt:t[1],ref:t[2].toLowerCase(),original:t[0]}]]:[2,"!["]},"[":function(e){var t=String(e),n=c.DialectHelpers.inline_until_char.call(this,e.substr(1),"]");if(!n)return[1,"["];var i,r,a=1+n[0],s=n[1],o=(e=e.substr(a)).match(/^\s*\([ \t]*([^"']*)(?:[ \t]+(["'])(.*?)\2)?[ \t]*\)/);if(o){var l=o[1];if(a+=o[0].length,l&&"<"==l[0]&&">"==l[l.length-1]&&(l=l.substring(1,l.length-1)),!o[3])for(var d=1,u=0;u]+)|(.*?@.*?\.[a-zA-Z]+))>/))?t[3]?[t[0].length,["link",{href:"mailto:"+t[3]},t[3]]]:"mailto"==t[2]?[t[0].length,["link",{href:t[1]},t[1].substr("mailto:".length)]]:[t[0].length,["link",{href:t[1]},t[1]]]:[1,"<"]},"`":function(e){var t=e.match(/(`+)(([\s\S]*?)\1)/);return t&&t[2]?[t[1].length+t[2].length,["inlinecode",t[3]]]:[1,"`"]}," \n":function(){return[3,["linebreak"]]}},c.dialects.Gruber.inline["**"]=e("strong","**"),c.dialects.Gruber.inline.__=e("strong","__"),c.dialects.Gruber.inline["*"]=e("em","*"),c.dialects.Gruber.inline._=e("em","_"),c.buildBlockOrder=function(e){var t=[];for(var n in e)"__order__"!=n&&"__call__"!=n&&t.push(n);e.__order__=t},c.buildInlinePatterns=function(e){var t,n=[];for(var i in e){i.match(/^__.*__$/)||(t=i.replace(/([\\.*+?|()\[\]{}])/g,"\\$1").replace(/\n/,"\\n"),n.push(1==i.length?t:"(?:"+t+")"))}n=n.join("|"),e.__patterns__=n;var r=e.__call__;e.__call__=function(e,t){return null!=t?r.call(this,e,t):r.call(this,e,n)}},c.DialectHelpers={},c.DialectHelpers.inline_until_char=function(e,t){for(var n=0,i=[];;){if(e.charAt(n)==t)return[++n,i];if(n>=e.length)return null;var r=this.dialect.inline.__oneElement__.call(this,e.substr(n));n+=r[0],i.push.apply(i,r.slice(1))}},c.subclassDialect=function(e){function t(){}function n(){}return t.prototype=e.block,n.prototype=e.inline,{block:new t,inline:new n}},c.buildBlockOrder(c.dialects.Gruber.block),c.buildInlinePatterns(c.dialects.Gruber.inline),c.dialects.Maruku=c.subclassDialect(c.dialects.Gruber),c.dialects.Maruku.processMetaHash=function(e){for(var t,n=function(e){var t=e.split(""),n=[""],i=!1;for(;t.length;){var r=t.shift();switch(r){case" ":i?n[n.length-1]+=r:n.push("");break;case"'":case'"':i=!i;break;case"\\":r=t.shift();default:n[n.length-1]+=r}}return n}(e),i={},r=0;r/g,">").replace(/"/g,""").replace(/'/g,"'")}function _(e){if("string"==typeof e)return u(e);var t=e.shift(),n={},i=[];for(!e.length||"object"!=typeof e[0]||e[0]instanceof Array||(n=e.shift());e.length;)i.push(_(e.shift()));var r="";for(var a in n)r+=" "+a+'="'+u(n[a])+'"';return"img"==t||"br"==t||"hr"==t?"<"+t+r+"/>":"<"+t+r+">"+i.join("")+""}r.renderJsonML=function(e,t){(t=t||{}).root=t.root||!1;var n=[];if(t.root)n.push(_(e));else for(e.shift(),!e.length||"object"!=typeof e[0]||e[0]instanceof Array||e.shift();e.length;)n.push(_(e.shift()));return n.join("\n\n")}}("undefined"==typeof exports?(window.markdown={},window.markdown):exports),function(e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).toMarkdown=e()}(function(){return function a(s,o,l){function d(n,e){if(!o[n]){if(!s[n]){var t="function"==typeof require&&require;if(!e&&t)return t(n,!0);if(u)return u(n,!0);var i=new Error("Cannot find module '"+n+"'");throw i.code="MODULE_NOT_FOUND",i}var r=o[n]={exports:{}};s[n][0].call(r.exports,function(e){var t=s[n][1][e];return d(t||e)},r,r.exports,a,s,o,l)}return o[n].exports}for(var u="function"==typeof require&&require,e=0;e<",">"+t+"<")},t.exports=h},{"./lib/gfm-converters":2,"./lib/html-parser":3,"./lib/md-converters":4,"collapse-whitespace":7}],2:[function(e,t,n){"use strict";function o(e,t){return(0===Array.prototype.indexOf.call(t.parentNode.childNodes,t)?"| ":" ")+e+" |"}var i=/highlight highlight-(\S+)/;t.exports=[{filter:"br",replacement:function(){return"\n"}},{filter:["del","s","strike"],replacement:function(e){return"~~"+e+"~~"}},{filter:function(e){return"checkbox"===e.type&&"LI"===e.parentNode.nodeName},replacement:function(e,t){return(t.checked?"[x]":"[ ]")+" "}},{filter:["th","td"],replacement:o},{filter:"tr",replacement:function(e,t){var n="",i={left:":--",right:"--:",center:":-:"};if("THEAD"===t.parentNode.nodeName)for(var r=0;r "))+"\n\n"}},{filter:"li",replacement:function(e,t){e=e.replace(/^\s+/,"").replace(/\n/gm,"\n ");var n=t.parentNode,i=Array.prototype.indexOf.call(n.children,t)+1;return(/ol/i.test(n.nodeName)?i+". ":"* ")+e}},{filter:["ul","ol"],replacement:function(e,t){for(var n=[],i=0;i",{class:"btn-group"}),u=0;u");w.text(" "+this.__localize(m)).addClass("btn-default btn-sm").addClass(_),_.match(/btn\-(primary|success|info|warning|danger|link)/)&&w.removeClass("btn-default"),w.attr({type:"button",title:this.__localize(h.title)+v,tabindex:g,"data-provider":n,"data-handler":p,"data-hotkey":y}),!0===h.toggle&&w.attr("data-toggle","button"),(c=b("")).addClass(f),c.prependTo(w),d.append(w),i.push(p),r.push(h.callback)}t.append(d)}return t},__setListener:function(){var e=void 0!==this.$textarea.attr("rows"),t=5",{class:"md-editor",click:function(){d.focus()}});return null===this.$editor?(e=b("
",{class:"md-header btn-toolbar"}),i=[],0m.reorderButtonGroups.indexOf(t.name)?1:0})),0
').on("click",".md-control-fullscreen",function(e){e.preventDefault(),d.setFullscreen(!0)}),_.append(e),c.is("textarea")?(c.before(_),(r=c).addClass("md-input"),_.append(r)):(t="function"==typeof toMarkdown?toMarkdown(c.html()):c.html(),n=b.trim(t),r=b("