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

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

There is a newer version: 3.5.0
Show newest version
var prettyPrintOne,prettyPrint,IN_GLOBAL_SCOPE=!0;window.PR_SHOULD_USE_CONTINUATION=!0,function(){var k=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"],r=[t,"abstract,assert,boolean,byte,extends,final,finally,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],s=[r,"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"],i="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",l=[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"],o=[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"],u=[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"],c=[e,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],p=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,d="str",f="com",h="typ",g="lit",m="pun",_="pln",P="src",y="atv";function v(e,i){var l=/(?:^|\s)nocode(?:\s|$)/,o=[],u=0,c=[],p=0;return function e(t){var n,r=t.nodeType;if(1==r){if(l.test(t.className))return;for(var s=t.firstChild;s;s=s.nextSibling)e(s);var a=t.nodeName.toLowerCase();"br"!==a&&"li"!==a||(o[p]="\n",c[p<<1]=u++,c[p++<<1|1]=t)}else 3!=r&&4!=r||(n=t.nodeValue).length&&(n=i?n.replace(/\r\n?/g,"\n"):n.replace(/[ \t\r\n]+/g," "),o[p]=n,c[p<<1]=u,u+=n.length,c[p++<<1|1]=t)}(e),{sourceCode:o.join("").replace(/\n$/,""),spans:c}}function E(e,t,n,r){var s;t&&(n(s={sourceCode:t,basePos:e}),r.push.apply(r,s.decorations))}var b=/\S/;function R(e){for(var t=void 0,n=e.firstChild;n;n=n.nextSibling)var r=n.nodeType,t=1===r?t?e:n:3===r&&b.test(n.nodeValue)?e:t;return t===e?void 0:t}function x(c,x){var w,S={};!function(){for(var e=c.concat(x),t=[],n={},r=0,s=e.length;rd[0]&&(d[1]+1>d[0]&&s.push("-"),s.push(h(d[1])))}return s.push("]"),s.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,r=[],s=0,a=0;s/,null])):t.push([f,/^#[^\r\n]*/,null,"#"])),e.cStyleComments&&(n.push([f,/^\/\/[^\r\n]*/,null]),n.push([f,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var s,a,i,l=e.regexLiterals;l&&(i="/(?=[^/*"+(s=1|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*("+i+")")]));var o=e.types;o&&n.push([h,o]);var u=(""+e.keywords).replace(/^ | $/g,"");u.length&&n.push(["kwd",new RegExp("^(?:"+u.replace(/[\s,]+/g,"|")+")\\b"),null]),t.push([_,/^\s+/,null," \r\n\t "]);var c="^.[^\\s\\w.$@'\"`/\\\\]*";return e.regexLiterals&&(c+="(?!s*/)"),n.push([g,/^@[a-z_$][a-z_$@0-9]*/i,null],[h,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[_,/^[a-z_$][a-z_$@0-9]*/i,null],[g,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[_,/^\\[\s\S]?/,null],[m,new RegExp(c),null]),x(t,n)}var S=w({keywords:[n,s,a,i,l,o,c],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function T(e,t,l){for(var o=/(?:^|\s)nocode(?:\s|$)/,u=/\r\n?|\n/,c=e.ownerDocument,n=c.createElement("li");e.firstChild;)n.appendChild(e.firstChild);var r=[n];function p(e){var t,n,r,s,a=e.nodeType;if(1!=a||o.test(e.className))3!=a&&4!=a||!l||(n=(t=e.nodeValue).match(u))&&(r=t.substring(0,n.index),e.nodeValue=r,(s=t.substring(n.index+n[0].length))&&e.parentNode.insertBefore(c.createTextNode(s),e.nextSibling),d(e),r||e.parentNode.removeChild(e));else if("br"===e.nodeName)d(e),e.parentNode&&e.parentNode.removeChild(e);else for(var i=e.firstChild;i;i=i.nextSibling)p(i)}function d(e){for(;!e.nextSibling;)if(!(e=e.parentNode))return;for(var t,n=function e(t,n){var r=n?t.cloneNode(!1):t,s=t.parentNode;if(s){var a=e(s,1),i=t.nextSibling;a.appendChild(r);for(var l=i;l;l=i)i=l.nextSibling,a.appendChild(l)}return r}(e.nextSibling,0);(t=n.parentNode)&&1===t.nodeType;)n=t;r.push(n)}for(var s=0;s",r=r.firstChild,n&&T(r,n,!0),$({langExtension:t,numberLines:n,sourceNode:r,pre:1}),r.innerHTML}function O(v,e){var t=e||document.body,b=t.ownerDocument||document;function n(e){return t.getElementsByTagName(e)}for(var r=[n("pre"),n("code"),n("xmp")],x=[],s=0;s]*(?:>|$)/],[f,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[m,/^(?:<[%?]|[%?]>)/],["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"]),N(x([[_,/^[\s]+/,null," \t\r\n"],[y,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[m,/^[=<>\/]+/],["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"]),N(x([],[[y,/^[\s\S]+/]]),["uq.val"]),N(w({keywords:n,hashComments:!0,cStyleComments:!0,types:p}),["c","cc","cpp","cxx","cyc","m"]),N(w({keywords:"null,true,false"}),["json"]),N(w({keywords:s,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:p}),["cs"]),N(w({keywords:r,cStyleComments:!0}),["java"]),N(w({keywords:c,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),N(w({keywords:l,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),N(w({keywords:i,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),N(w({keywords:o,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),N(w({keywords:a,cStyleComments:!0,regexLiterals:!0}),["javascript","js"]),N(w({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"]),N(w({keywords:u,cStyleComments:!0,multilineStrings:!0}),["rc","rs","rust"]),N(x([],[[d,/^[\s\S]+/]]),["regex"]);var I=k.PR={createSimpleLexer:x,registerLangHandler:N,sourceDecorator:w,PR_ATTRIB_NAME:"atn",PR_ATTRIB_VALUE:y,PR_COMMENT:f,PR_DECLARATION:"dec",PR_KEYWORD:"kwd",PR_LITERAL:g,PR_NOCODE:"nocode",PR_PLAIN:_,PR_PUNCTUATION:m,PR_SOURCE:P,PR_STRING:d,PR_TAG:"tag",PR_TYPE:h,prettyPrintOne:IN_GLOBAL_SCOPE?k.prettyPrintOne=A:prettyPrintOne=A,prettyPrint:prettyPrint=IN_GLOBAL_SCOPE?k.prettyPrint=O:prettyPrint=O};"function"==typeof define&&define.amd&&define("google-code-prettify",[],function(){return I})}();
!function(e,a){"object"==typeof exports&&"undefined"!=typeof module?module.exports=a():"function"==typeof define&&define.amd?define(a):e.moment=a()}(this,function(){"use strict";var e,n;function l(){return e.apply(null,arguments)}function _(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function d(e){return void 0===e}function o(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function r(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function m(e,a){for(var t=[],s=0;s>>0,s=0;sDe(e)?(d=e+1,r-De(e)):(d=e,r);return{year:d,dayOfYear:_}}function Re(e,a,t){var s,n,d=Je(e.year(),a,t),r=Math.floor((e.dayOfYear()-d-1)/7)+1;return r<1?s=r+Ce(n=e.year()-1,a,t):r>Ce(e.year(),a,t)?(s=r-Ce(e.year(),a,t),n=e.year()+1):(n=e.year(),s=r),{week:s,year:n}}function Ce(e,a,t){var s=Je(e,a,t),n=Je(e+1,a,t);return(De(e)-s+n)/7}R("w",["ww",2],"wo","week"),R("W",["WW",2],"Wo","isoWeek"),x("week","w"),x("isoWeek","W"),A("week",5),A("isoWeek",5),_e("w",$),_e("ww",$,G),_e("W",$),_e("WW",$,G),le(["w","ww","W","WW"],function(e,a,t,s){a[s.substr(0,1)]=T(e)});function Ie(e,a){return e.slice(a,7).concat(e.slice(0,a))}R("d",0,"do","day"),R("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),R("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),R("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),R("e",0,0,"weekday"),R("E",0,0,"isoWeekday"),x("day","d"),x("weekday","e"),x("isoWeekday","E"),A("day",11),A("weekday",11),A("isoWeekday",11),_e("d",$),_e("e",$),_e("E",$),_e("dd",function(e,a){return a.weekdaysMinRegex(e)}),_e("ddd",function(e,a){return a.weekdaysShortRegex(e)}),_e("dddd",function(e,a){return a.weekdaysRegex(e)}),le(["dd","ddd","dddd"],function(e,a,t,s){var n=t._locale.weekdaysParse(e,s,t._strict);null!=n?a.d=n:L(t).invalidWeekday=e}),le(["d","e","E"],function(e,a,t,s){a[s]=T(e)});var Ue="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");var Ge="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");var Ve="Su_Mo_Tu_We_Th_Fr_Sa".split("_");var Ke=de;var Ze=de;var $e=de;function Be(){function e(e,a){return a.length-e.length}for(var a,t,s,n,d=[],r=[],_=[],i=[],o=0;o<7;o++)a=h([2e3,1]).day(o),t=this.weekdaysMin(a,""),s=this.weekdaysShort(a,""),n=this.weekdays(a,""),d.push(t),r.push(s),_.push(n),i.push(t),i.push(s),i.push(n);for(d.sort(e),r.sort(e),_.sort(e),i.sort(e),o=0;o<7;o++)r[o]=oe(r[o]),_[o]=oe(_[o]),i[o]=oe(i[o]);this._weekdaysRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+_.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+d.join("|")+")","i")}function qe(){return this.hours()%12||12}function Qe(e,a){R(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),a)})}function Xe(e,a){return a._meridiemParse}R("H",["HH",2],0,"hour"),R("h",["hh",2],0,qe),R("k",["kk",2],0,function(){return this.hours()||24}),R("hmm",0,0,function(){return""+qe.apply(this)+E(this.minutes(),2)}),R("hmmss",0,0,function(){return""+qe.apply(this)+E(this.minutes(),2)+E(this.seconds(),2)}),R("Hmm",0,0,function(){return""+this.hours()+E(this.minutes(),2)}),R("Hmmss",0,0,function(){return""+this.hours()+E(this.minutes(),2)+E(this.seconds(),2)}),Qe("a",!0),Qe("A",!1),x("hour","h"),A("hour",13),_e("a",Xe),_e("A",Xe),_e("H",$),_e("h",$),_e("k",$),_e("HH",$,G),_e("hh",$,G),_e("kk",$,G),_e("hmm",B),_e("hmmss",q),_e("Hmm",B),_e("Hmmss",q),ue(["H","HH"],ce),ue(["k","kk"],function(e,a,t){var s=T(e);a[ce]=24===s?0:s}),ue(["a","A"],function(e,a,t){t._isPm=t._locale.isPM(e),t._meridiem=e}),ue(["h","hh"],function(e,a,t){a[ce]=T(e),L(t).bigHour=!0}),ue("hmm",function(e,a,t){var s=e.length-2;a[ce]=T(e.substr(0,s)),a[Ye]=T(e.substr(s)),L(t).bigHour=!0}),ue("hmmss",function(e,a,t){var s=e.length-4,n=e.length-2;a[ce]=T(e.substr(0,s)),a[Ye]=T(e.substr(s,2)),a[ye]=T(e.substr(n)),L(t).bigHour=!0}),ue("Hmm",function(e,a,t){var s=e.length-2;a[ce]=T(e.substr(0,s)),a[Ye]=T(e.substr(s))}),ue("Hmmss",function(e,a,t){var s=e.length-4,n=e.length-2;a[ce]=T(e.substr(0,s)),a[Ye]=T(e.substr(s,2)),a[ye]=T(e.substr(n))});var ea,aa=ve("Hours",!0),ta={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:xe,monthsShort:Oe,week:{dow:0,doy:6},weekdays:Ue,weekdaysMin:Ve,weekdaysShort:Ge,meridiemParse:/[ap]\.?m?\.?/i},sa={},na={};function da(e){return e?e.toLowerCase().replace("_","-"):e}function ra(e){var a=null;if(!sa[e]&&"undefined"!=typeof module&&module&&module.exports)try{a=ea._abbr;require("./locale/"+e),_a(a)}catch(e){}return sa[e]}function _a(e,a){var t;return e&&(t=d(a)?oa(e):ia(e,a))&&(ea=t),ea._abbr}function ia(e,a){if(null===a)return delete sa[e],null;var t,s=ta;if(a.abbr=e,null!=sa[e])v("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."),s=sa[e]._config;else if(null!=a.parentLocale)if(null!=sa[a.parentLocale])s=sa[a.parentLocale]._config;else{if(null==(t=ra(a.parentLocale)))return na[a.parentLocale]||(na[a.parentLocale]=[]),na[a.parentLocale].push({name:e,config:a}),null;s=t._config}return sa[e]=new b(H(s,a)),na[e]&&na[e].forEach(function(e){ia(e.name,e.config)}),_a(e),sa[e]}function oa(e){var a;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return ea;if(!_(e)){if(a=ra(e))return a;e=[e]}return function(e){for(var a,t,s,n,d=0;d=a&&g(n,t,!0)>=a-1)break;a--}d++}return ea}(e)}function ma(e){var a,t=e._a;return t&&-2===L(e).overflow&&(a=t[he]<0||11be(t[Me],t[he])?Le:t[ce]<0||24Ce(t,d,r)?L(e)._overflowWeeks=!0:null!=i?L(e)._overflowWeekday=!0:(_=Ne(t,s,n,d,r),e._a[Me]=_.year,e._dayOfYear=_.dayOfYear)}(e),null!=e._dayOfYear&&(d=ua(e._a[Me],s[Me]),(e._dayOfYear>De(d)||0===e._dayOfYear)&&(L(e)._overflowDayOfYear=!0),t=ze(d,0,e._dayOfYear),e._a[he]=t.getUTCMonth(),e._a[Le]=t.getUTCDate()),a=0;a<3&&null==e._a[a];++a)e._a[a]=i[a]=s[a];for(;a<7;a++)e._a[a]=i[a]=null==e._a[a]?2===a?1:0:e._a[a];24===e._a[ce]&&0===e._a[Ye]&&0===e._a[ye]&&0===e._a[fe]&&(e._nextDay=!0,e._a[ce]=0),e._d=(e._useUTC?ze:function(e,a,t,s,n,d,r){var _;return e<100&&0<=e?(_=new Date(e+400,a,t,s,n,d,r),isFinite(_.getFullYear())&&_.setFullYear(e)):_=new Date(e,a,t,s,n,d,r),_}).apply(null,i),n=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ce]=24),e._w&&void 0!==e._w.d&&e._w.d!==n&&(L(e).weekdayMismatch=!0)}}var Ma=/^\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)?)?$/,ha=/^\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)?)?$/,La=/Z|[+-]\d\d(?::?\d\d)?/,ca=[["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}/]],Ya=[["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/]],ya=/^\/?Date\((\-?\d+)/i;function fa(e){var a,t,s,n,d,r,_=e._i,i=Ma.exec(_)||ha.exec(_);if(i){for(L(e).iso=!0,a=0,t=ca.length;at.valueOf():t.valueOf()this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},lt.isLocal=function(){return!!this.isValid()&&!this._isUTC},lt.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},lt.isUtc=Na,lt.isUTC=Na,lt.zoneAbbr=function(){return this._isUTC?"UTC":""},lt.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},lt.dates=t("dates accessor is deprecated. Use date instead.",rt),lt.months=t("months accessor is deprecated. Use month instead",We),lt.years=t("years accessor is deprecated. Use year instead",we),lt.zone=t("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,a){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,a),this):-this.utcOffset()}),lt.isDSTShifted=t("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!d(this._isDSTShifted))return this._isDSTShifted;var e,a={};return f(a,this),(a=wa(a))._a?(e=(a._isUTC?h:Sa)(a._a),this._isDSTShifted=this.isValid()&&0 div").hide().filter(".datepicker-"+h[this.currentViewMode].CLASS_NAME).show())},_.prototype._isInDisabledDates=function(t){return!0===this._options.disabledDates[t.format("YYYY-MM-DD")]},_.prototype._isInEnabledDates=function(t){return!0===this._options.enabledDates[t.format("YYYY-MM-DD")]},_.prototype._isInDisabledHours=function(t){return!0===this._options.disabledHours[t.format("H")]},_.prototype._isInEnabledHours=function(t){return!0===this._options.enabledHours[t.format("H")]},_.prototype._isValid=function(t,e){if(!t.isValid())return!1;if(this._options.disabledDates&&"d"===e&&this._isInDisabledDates(t))return!1;if(this._options.enabledDates&&"d"===e&&!this._isInEnabledDates(t))return!1;if(this._options.minDate&&t.isBefore(this._options.minDate,e))return!1;if(this._options.maxDate&&t.isAfter(this._options.maxDate,e))return!1;if(this._options.daysOfWeekDisabled&&"d"===e&&-1!==this._options.daysOfWeekDisabled.indexOf(t.day()))return!1;if(this._options.disabledHours&&("h"===e||"m"===e||"s"===e)&&this._isInDisabledHours(t))return!1;if(this._options.enabledHours&&("h"===e||"m"===e||"s"===e)&&!this._isInEnabledHours(t))return!1;if(this._options.disabledTimeIntervals&&("h"===e||"m"===e||"s"===e)){var i=!1;if(s.each(this._options.disabledTimeIntervals,function(){if(t.isBetween(this[0],this[1]))return!(i=!0)}),i)return!1}return!0},_.prototype._parseInputDate=function(t){return void 0===this._options.parseInputDate?i.isMoment(t)||(t=this.getMoment(t)):t=this._options.parseInputDate(t),t},_.prototype._keydown=function(t){var e=null,i=void 0,o=void 0,s=void 0,n=void 0,a=[],r={},p=t.which;for(i in u[p]="p",u)u.hasOwnProperty(i)&&"p"===u[i]&&(a.push(i),parseInt(i,10)!==p&&(r[i]=!0));for(i in this._options.keyBinds)if(this._options.keyBinds.hasOwnProperty(i)&&"function"==typeof this._options.keyBinds[i]&&(s=i.split(" ")).length===a.length&&d[p]===s[s.length-1]){for(n=!0,o=s.length-2;0<=o;o--)if(!(d[s[o]]in r)){n=!1;break}if(n){e=this._options.keyBinds[i];break}}e&&e.call(this)&&(t.stopPropagation(),t.preventDefault())},_.prototype._keyup=function(t){u[t.which]="r",f[t.which]&&(f[t.which]=!1,t.stopPropagation(),t.preventDefault())},_.prototype._indexGivenDates=function(t){var e={},i=this;return s.each(t,function(){var t=i._parseInputDate(this);t.isValid()&&(e[t.format("YYYY-MM-DD")]=!0)}),!!Object.keys(e).length&&e},_.prototype._indexGivenHours=function(t){var e={};return s.each(t,function(){e[this]=!0}),!!Object.keys(e).length&&e},_.prototype._initFormatting=function(){var t=this._options.format||"L LT",e=this;this.actualFormat=t.replace(/(\[[^\[]*])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,function(t){return e._dates[0].localeData().longDateFormat(t)||t}),this.parseFormats=this._options.extraFormats?this._options.extraFormats.slice():[],this.parseFormats.indexOf(t)<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)},_.prototype._getLastPickedDate=function(){return this._dates[this._getLastPickedDateIndex()]},_.prototype._getLastPickedDateIndex=function(){return this._dates.length-1},_.prototype.getMoment=function(t){var e=void 0,e=null==t?i():this._hasTimeZone()?i.tz(t,this.parseFormats,this._options.locale,this._options.useStrict,this._options.timeZone):i(t,this.parseFormats,this._options.locale,this._options.useStrict);return this._hasTimeZone()&&e.tz(this._options.timeZone),e},_.prototype.toggle=function(){return this.widget?this.hide():this.show()},_.prototype.ignoreReadonly=function(t){if(0===arguments.length)return this._options.ignoreReadonly;if("boolean"!=typeof t)throw new TypeError("ignoreReadonly () expects a boolean parameter");this._options.ignoreReadonly=t},_.prototype.options=function(t){if(0===arguments.length)return s.extend(!0,{},this._options);if(!(t instanceof Object))throw new TypeError("options() this.options parameter should be an object");s.extend(!0,this._options,t);var i=this;s.each(this._options,function(t,e){void 0!==i[t]&&i[t](e)})},_.prototype.date=function(t,e){if(e=e||0,0===arguments.length)return this.unset?null:this._options.allowMultidate?this._dates.join(this._options.multidateSeparator):this._dates[e].clone();if(!(null===t||"string"==typeof t||i.isMoment(t)||t instanceof Date))throw new TypeError("date() parameter must be one of [null, string, moment or Date]");this._setValue(null===t?null:this._parseInputDate(t),e)},_.prototype.format=function(t){if(0===arguments.length)return this._options.format;if("string"!=typeof t&&("boolean"!=typeof t||!1!==t))throw new TypeError("format() expects a string or boolean:false parameter "+t);this._options.format=t,this.actualFormat&&this._initFormatting()},_.prototype.timeZone=function(t){if(0===arguments.length)return this._options.timeZone;if("string"!=typeof t)throw new TypeError("newZone() expects a string parameter");this._options.timeZone=t},_.prototype.dayViewHeaderFormat=function(t){if(0===arguments.length)return this._options.dayViewHeaderFormat;if("string"!=typeof t)throw new TypeError("dayViewHeaderFormat() expects a string parameter");this._options.dayViewHeaderFormat=t},_.prototype.extraFormats=function(t){if(0===arguments.length)return this._options.extraFormats;if(!1!==t&&!(t instanceof Array))throw new TypeError("extraFormats() expects an array or false parameter");this._options.extraFormats=t,this.parseFormats&&this._initFormatting()},_.prototype.disabledDates=function(t){if(0===arguments.length)return this._options.disabledDates?s.extend({},this._options.disabledDates):this._options.disabledDates;if(!t)return this._options.disabledDates=!1,this._update(),!0;if(!(t instanceof Array))throw new TypeError("disabledDates() expects an array parameter");this._options.disabledDates=this._indexGivenDates(t),this._options.enabledDates=!1,this._update()},_.prototype.enabledDates=function(t){if(0===arguments.length)return this._options.enabledDates?s.extend({},this._options.enabledDates):this._options.enabledDates;if(!t)return this._options.enabledDates=!1,this._update(),!0;if(!(t instanceof Array))throw new TypeError("enabledDates() expects an array parameter");this._options.enabledDates=this._indexGivenDates(t),this._options.disabledDates=!1,this._update()},_.prototype.daysOfWeekDisabled=function(t){if(0===arguments.length)return this._options.daysOfWeekDisabled.splice(0);if("boolean"==typeof t&&!t)return this._options.daysOfWeekDisabled=!1,this._update(),!0;if(!(t instanceof Array))throw new TypeError("daysOfWeekDisabled() expects an array parameter");if(this._options.daysOfWeekDisabled=t.reduce(function(t,e){return 6<(e=parseInt(e,10))||e<0||isNaN(e)||-1===t.indexOf(e)&&t.push(e),t},[]).sort(),this._options.useCurrent&&!this._options.keepInvalid)for(var e=0;e div").hide().filter(".datepicker-"+u[this.currentViewMode].CLASS_NAME).show())},g.prototype._isInDisabledDates=function(t){return!0===this._options.disabledDates[t.format("YYYY-MM-DD")]},g.prototype._isInEnabledDates=function(t){return!0===this._options.enabledDates[t.format("YYYY-MM-DD")]},g.prototype._isInDisabledHours=function(t){return!0===this._options.disabledHours[t.format("H")]},g.prototype._isInEnabledHours=function(t){return!0===this._options.enabledHours[t.format("H")]},g.prototype._isValid=function(t,e){if(!t.isValid())return!1;if(this._options.disabledDates&&"d"===e&&this._isInDisabledDates(t))return!1;if(this._options.enabledDates&&"d"===e&&!this._isInEnabledDates(t))return!1;if(this._options.minDate&&t.isBefore(this._options.minDate,e))return!1;if(this._options.maxDate&&t.isAfter(this._options.maxDate,e))return!1;if(this._options.daysOfWeekDisabled&&"d"===e&&-1!==this._options.daysOfWeekDisabled.indexOf(t.day()))return!1;if(this._options.disabledHours&&("h"===e||"m"===e||"s"===e)&&this._isInDisabledHours(t))return!1;if(this._options.enabledHours&&("h"===e||"m"===e||"s"===e)&&!this._isInEnabledHours(t))return!1;if(this._options.disabledTimeIntervals&&("h"===e||"m"===e||"s"===e)){var i=!1;if(n.each(this._options.disabledTimeIntervals,function(){if(t.isBetween(this[0],this[1]))return!(i=!0)}),i)return!1}return!0},g.prototype._parseInputDate=function(t){return void 0===this._options.parseInputDate?i.isMoment(t)||(t=this.getMoment(t)):t=this._options.parseInputDate(t),t},g.prototype._keydown=function(t){var e=null,i=void 0,s=void 0,o=void 0,a=void 0,n=[],r={},d=t.which;for(i in m[d]="p",m)m.hasOwnProperty(i)&&"p"===m[i]&&(n.push(i),parseInt(i,10)!==d&&(r[i]=!0));for(i in this._options.keyBinds)if(this._options.keyBinds.hasOwnProperty(i)&&"function"==typeof this._options.keyBinds[i]&&(o=i.split(" ")).length===n.length&&_[d]===o[o.length-1]){for(a=!0,s=o.length-2;0<=s;s--)if(!(_[o[s]]in r)){a=!1;break}if(a){e=this._options.keyBinds[i];break}}e&&e.call(this)&&(t.stopPropagation(),t.preventDefault())},g.prototype._keyup=function(t){m[t.which]="r",w[t.which]&&(w[t.which]=!1,t.stopPropagation(),t.preventDefault())},g.prototype._indexGivenDates=function(t){var e={},i=this;return n.each(t,function(){var t=i._parseInputDate(this);t.isValid()&&(e[t.format("YYYY-MM-DD")]=!0)}),!!Object.keys(e).length&&e},g.prototype._indexGivenHours=function(t){var e={};return n.each(t,function(){e[this]=!0}),!!Object.keys(e).length&&e},g.prototype._initFormatting=function(){var t=this._options.format||"L LT",e=this;this.actualFormat=t.replace(/(\[[^\[]*])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,function(t){return e._dates[0].localeData().longDateFormat(t)||t}),this.parseFormats=this._options.extraFormats?this._options.extraFormats.slice():[],this.parseFormats.indexOf(t)<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)},g.prototype._getLastPickedDate=function(){return this._dates[this._getLastPickedDateIndex()]},g.prototype._getLastPickedDateIndex=function(){return this._dates.length-1},g.prototype.getMoment=function(t){var e=void 0,e=null==t?i():this._hasTimeZone()?i.tz(t,this.parseFormats,this._options.locale,this._options.useStrict,this._options.timeZone):i(t,this.parseFormats,this._options.locale,this._options.useStrict);return this._hasTimeZone()&&e.tz(this._options.timeZone),e},g.prototype.toggle=function(){return this.widget?this.hide():this.show()},g.prototype.ignoreReadonly=function(t){if(0===arguments.length)return this._options.ignoreReadonly;if("boolean"!=typeof t)throw new TypeError("ignoreReadonly () expects a boolean parameter");this._options.ignoreReadonly=t},g.prototype.options=function(t){if(0===arguments.length)return n.extend(!0,{},this._options);if(!(t instanceof Object))throw new TypeError("options() this.options parameter should be an object");n.extend(!0,this._options,t);var i=this;n.each(this._options,function(t,e){void 0!==i[t]&&i[t](e)})},g.prototype.date=function(t,e){if(e=e||0,0===arguments.length)return this.unset?null:this._options.allowMultidate?this._dates.join(this._options.multidateSeparator):this._dates[e].clone();if(!(null===t||"string"==typeof t||i.isMoment(t)||t instanceof Date))throw new TypeError("date() parameter must be one of [null, string, moment or Date]");this._setValue(null===t?null:this._parseInputDate(t),e)},g.prototype.format=function(t){if(0===arguments.length)return this._options.format;if("string"!=typeof t&&("boolean"!=typeof t||!1!==t))throw new TypeError("format() expects a string or boolean:false parameter "+t);this._options.format=t,this.actualFormat&&this._initFormatting()},g.prototype.timeZone=function(t){if(0===arguments.length)return this._options.timeZone;if("string"!=typeof t)throw new TypeError("newZone() expects a string parameter");this._options.timeZone=t},g.prototype.dayViewHeaderFormat=function(t){if(0===arguments.length)return this._options.dayViewHeaderFormat;if("string"!=typeof t)throw new TypeError("dayViewHeaderFormat() expects a string parameter");this._options.dayViewHeaderFormat=t},g.prototype.extraFormats=function(t){if(0===arguments.length)return this._options.extraFormats;if(!1!==t&&!(t instanceof Array))throw new TypeError("extraFormats() expects an array or false parameter");this._options.extraFormats=t,this.parseFormats&&this._initFormatting()},g.prototype.disabledDates=function(t){if(0===arguments.length)return this._options.disabledDates?n.extend({},this._options.disabledDates):this._options.disabledDates;if(!t)return this._options.disabledDates=!1,this._update(),!0;if(!(t instanceof Array))throw new TypeError("disabledDates() expects an array parameter");this._options.disabledDates=this._indexGivenDates(t),this._options.enabledDates=!1,this._update()},g.prototype.enabledDates=function(t){if(0===arguments.length)return this._options.enabledDates?n.extend({},this._options.enabledDates):this._options.enabledDates;if(!t)return this._options.enabledDates=!1,this._update(),!0;if(!(t instanceof Array))throw new TypeError("enabledDates() expects an array parameter");this._options.enabledDates=this._indexGivenDates(t),this._options.disabledDates=!1,this._update()},g.prototype.daysOfWeekDisabled=function(t){if(0===arguments.length)return this._options.daysOfWeekDisabled.splice(0);if("boolean"==typeof t&&!t)return this._options.daysOfWeekDisabled=!1,this._update(),!0;if(!(t instanceof Array))throw new TypeError("daysOfWeekDisabled() expects an array parameter");if(this._options.daysOfWeekDisabled=t.reduce(function(t,e){return 6<(e=parseInt(e,10))||e<0||isNaN(e)||-1===t.indexOf(e)&&t.push(e),t},[]).sort(),this._options.useCurrent&&!this._options.keepInvalid)for(var e=0;e").append(E("").append(E("").addClass("prev").attr("data-action","previous").append(E("").addClass(this._options.icons.previous))).append(E("").addClass("picker-switch").attr("data-action","pickerSwitch").attr("colspan",this._options.calendarWeeks?"6":"5")).append(E("").addClass("next").attr("data-action","next").append(E("").addClass(this._options.icons.next)))),e=E("").append(E("").append(E("").attr("colspan",this._options.calendarWeeks?"8":"7")));return[E("
").addClass("datepicker-days").append(E("").addClass("table table-sm").append(t).append(E(""))),E("
").addClass("datepicker-months").append(E("
").addClass("table-condensed").append(t.clone()).append(e.clone())),E("
").addClass("datepicker-years").append(E("
").addClass("table-condensed").append(t.clone()).append(e.clone())),E("
").addClass("datepicker-decades").append(E("
").addClass("table-condensed").append(t.clone()).append(e.clone()))]},P.prototype._getTimePickerMainTemplate=function(){var t=E(""),e=E(""),i=E("");return this._isEnabled("h")&&(t.append(E("
").append(E("").attr({href:"#",tabindex:"-1",title:this._options.tooltips.incrementHour}).addClass("btn").attr("data-action","incrementHours").append(E("").addClass(this._options.icons.up)))),e.append(E("").append(E("").addClass("timepicker-hour").attr({"data-time-component":"hours",title:this._options.tooltips.pickHour}).attr("data-action","showHours"))),i.append(E("").append(E("").attr({href:"#",tabindex:"-1",title:this._options.tooltips.decrementHour}).addClass("btn").attr("data-action","decrementHours").append(E("").addClass(this._options.icons.down))))),this._isEnabled("m")&&(this._isEnabled("h")&&(t.append(E("").addClass("separator")),e.append(E("").addClass("separator").html(":")),i.append(E("").addClass("separator"))),t.append(E("").append(E("").attr({href:"#",tabindex:"-1",title:this._options.tooltips.incrementMinute}).addClass("btn").attr("data-action","incrementMinutes").append(E("").addClass(this._options.icons.up)))),e.append(E("").append(E("").addClass("timepicker-minute").attr({"data-time-component":"minutes",title:this._options.tooltips.pickMinute}).attr("data-action","showMinutes"))),i.append(E("").append(E("").attr({href:"#",tabindex:"-1",title:this._options.tooltips.decrementMinute}).addClass("btn").attr("data-action","decrementMinutes").append(E("").addClass(this._options.icons.down))))),this._isEnabled("s")&&(this._isEnabled("m")&&(t.append(E("").addClass("separator")),e.append(E("").addClass("separator").html(":")),i.append(E("").addClass("separator"))),t.append(E("").append(E("").attr({href:"#",tabindex:"-1",title:this._options.tooltips.incrementSecond}).addClass("btn").attr("data-action","incrementSeconds").append(E("").addClass(this._options.icons.up)))),e.append(E("").append(E("").addClass("timepicker-second").attr({"data-time-component":"seconds",title:this._options.tooltips.pickSecond}).attr("data-action","showSeconds"))),i.append(E("").append(E("").attr({href:"#",tabindex:"-1",title:this._options.tooltips.decrementSecond}).addClass("btn").attr("data-action","decrementSeconds").append(E("").addClass(this._options.icons.down))))),this.use24Hours||(t.append(E("").addClass("separator")),e.append(E("").append(E("").addClass("separator"))),E("
").addClass("timepicker-picker").append(E("").addClass("table-condensed").append([t,e,i]))},P.prototype._getTimePickerTemplate=function(){var t=E("
").addClass("timepicker-hours").append(E("
").addClass("table-condensed")),e=E("
").addClass("timepicker-minutes").append(E("
").addClass("table-condensed")),i=E("
").addClass("timepicker-seconds").append(E("
").addClass("table-condensed")),s=[this._getTimePickerMainTemplate()];return this._isEnabled("h")&&s.push(t),this._isEnabled("m")&&s.push(e),this._isEnabled("s")&&s.push(i),s},P.prototype._getToolbar=function(){var t,e,i=[];return this._options.buttons.showToday&&i.push(E("
").append(E("").attr({href:"#",tabindex:"-1","data-action":"today",title:this._options.tooltips.today}).append(E("").addClass(this._options.icons.today)))),!this._options.sideBySide&&this._hasDate()&&this._hasTime()&&(e=t=void 0,e="times"===this._options.viewMode?(t=this._options.tooltips.selectDate,this._options.icons.date):(t=this._options.tooltips.selectTime,this._options.icons.time),i.push(E("").append(E("").attr({href:"#",tabindex:"-1","data-action":"togglePicker",title:t}).append(E("").addClass(e))))),this._options.buttons.showClear&&i.push(E("").append(E("").attr({href:"#",tabindex:"-1","data-action":"clear",title:this._options.tooltips.clear}).append(E("").addClass(this._options.icons.clear)))),this._options.buttons.showClose&&i.push(E("").append(E("").attr({href:"#",tabindex:"-1","data-action":"close",title:this._options.tooltips.close}).append(E("").addClass(this._options.icons.close)))),0===i.length?"":E("").addClass("table-condensed").append(E("").append(E("").append(i)))},P.prototype._getTemplate=function(){var t=E("
").addClass("bootstrap-datetimepicker-widget dropdown-menu"),e=E("
").addClass("datepicker").append(this._getDatePickerTemplate()),i=E("
").addClass("timepicker").append(this._getTimePickerTemplate()),s=E("
    ").addClass("list-unstyled"),o=E("
  • ").addClass("picker-switch"+(this._options.collapse?" accordion-toggle":"")).append(this._getToolbar());return this._options.inline&&t.removeClass("dropdown-menu"),this.use24Hours&&t.addClass("usetwentyfour"),this._isEnabled("s")&&!this.use24Hours&&t.addClass("wider"),this._options.sideBySide&&this._hasDate()&&this._hasTime()?(t.addClass("timepicker-sbs"),"top"===this._options.toolbarPlacement&&t.append(o),t.append(E("
    ").addClass("row").append(e.addClass("col-md-6")).append(i.addClass("col-md-6"))),"bottom"!==this._options.toolbarPlacement&&"default"!==this._options.toolbarPlacement||t.append(o),t):("top"===this._options.toolbarPlacement&&s.append(o),this._hasDate()&&s.append(E("
  • ").addClass(this._options.collapse&&this._hasTime()?"collapse":"").addClass(this._options.collapse&&this._hasTime()&&"times"===this._options.viewMode?"":"show").append(e)),"default"===this._options.toolbarPlacement&&s.append(o),this._hasTime()&&s.append(E("
  • ").addClass(this._options.collapse&&this._hasDate()?"collapse":"").addClass(this._options.collapse&&this._hasDate()&&"times"===this._options.viewMode?"show":"").append(i)),"bottom"===this._options.toolbarPlacement&&s.append(o),t.append(s))},P.prototype._place=function(t){var e=t&&t.data&&t.data.picker||this,i=e._options.widgetPositioning.vertical,s=e._options.widgetPositioning.horizontal,o=void 0,a=(e.component&&e.component.length?e.component:e._element).position(),n=(e.component&&e.component.length?e.component:e._element).offset();if(e._options.widgetParent)o=e._options.widgetParent.append(e.widget);else if(e._element.is("input"))o=e._element.after(e.widget).parent();else{if(e._options.inline)return void(o=e._element.append(e.widget));o=e._element,e._element.children().first().after(e.widget)}if("auto"===i&&(i=n.top+1.5*e.widget.height()>=E(window).height()+E(window).scrollTop()&&e.widget.height()+e._element.outerHeight()E(window).width()?"right":"left"),"top"===i?e.widget.addClass("top").removeClass("bottom"):e.widget.addClass("bottom").removeClass("top"),"right"===s?e.widget.addClass("float-right"):e.widget.removeClass("float-right"),"relative"!==o.css("position")&&(o=o.parents().filter(function(){return"relative"===E(this).css("position")}).first()),0===o.length)throw new Error("datetimepicker component should be placed within a relative positioned container");e.widget.css({top:"top"===i?"auto":a.top+e._element.outerHeight()+"px",bottom:"top"===i?o.outerHeight()-(o===e._element?0:a.top)+"px":"auto",left:"left"===s?(o===e._element?0:a.left)+"px":"auto",right:"left"===s?"auto":o.outerWidth()-e._element.outerWidth()-(o===e._element?0:a.left)+"px"})},P.prototype._fillDow=function(){var t=E("
"),e=this._viewDate.clone().startOf("w").startOf("d");for(!0===this._options.calendarWeeks&&t.append(E(""),this._options.calendarWeeks&&a.append('"),s.push(a)),n="",o.isBefore(this._viewDate,"M")&&(n+=" old"),o.isAfter(this._viewDate,"M")&&(n+=" new"),this._options.allowMultidate?-1!==(t=this._datesFormatted.indexOf(o.format("YYYY-MM-DD")))&&o.isSame(this._datesFormatted[t],"d")&&!this.unset&&(n+=" active"):o.isSame(this._getLastPickedDate(),"d")&&!this.unset&&(n+=" active"),this._isValid(o,"d")||(n+=" disabled"),o.isSame(this.getMoment(),"d")&&(n+=" today"),0!==o.day()&&6!==o.day()||(n+=" weekend"),a.append('"),o.add(1,"d");e.find("tbody").empty().append(s),this._updateMonths(),this._updateYears(),this._updateDecades()}},P.prototype._fillHours=function(){var t=this.widget.find(".timepicker-hours table"),e=this._viewDate.clone().startOf("d"),i=[],s=E("");for(11"),i.push(s)),s.append('"),e.add(1,"h");t.empty().append(i)},P.prototype._fillMinutes=function(){for(var t=this.widget.find(".timepicker-minutes table"),e=this._viewDate.clone().startOf("h"),i=[],s=1===this._options.stepping?5:this._options.stepping,o=E("");this._viewDate.isSame(e,"h");)e.minute()%(4*s)==0&&(o=E(""),i.push(o)),o.append('"),e.add(s,"m");t.empty().append(i)},P.prototype._fillSeconds=function(){for(var t=this.widget.find(".timepicker-seconds table"),e=this._viewDate.clone().startOf("m"),i=[],s=E("");this._viewDate.isSame(e,"m");)e.second()%20==0&&(s=E(""),i.push(s)),s.append('"),e.add(5,"s");t.empty().append(i)},P.prototype._fillTime=function(){var t=void 0,e=void 0,i=this.widget.find(".timepicker span[data-time-component]");this.use24Hours||(t=this.widget.find(".timepicker [data-action=togglePeriod]"),e=this._getLastPickedDate().clone().add(12<=this._getLastPickedDate().hours()?-12:12,"h"),t.text(this._getLastPickedDate().format("A")),this._isValid(e,"h")?t.removeClass("disabled"):t.addClass("disabled")),i.filter("[data-time-component=hours]").text(this._getLastPickedDate().format(this.use24Hours?"HH":"hh")),i.filter("[data-time-component=minutes]").text(this._getLastPickedDate().format("mm")),i.filter("[data-time-component=seconds]").text(this._getLastPickedDate().format("ss")),this._fillHours(),this._fillMinutes(),this._fillSeconds()},P.prototype._doAction=function(t,e){var i=this._getLastPickedDate();if(E(t.currentTarget).is(".disabled"))return!1;switch(e=e||E(t.currentTarget).data("action")){case"next":var s=C.DatePickerModes[this.currentViewMode].NAV_FUNCTION;this._viewDate.add(C.DatePickerModes[this.currentViewMode].NAV_STEP,s),this._fillDate(),this._viewUpdate(s);break;case"previous":var o=C.DatePickerModes[this.currentViewMode].NAV_FUNCTION;this._viewDate.subtract(C.DatePickerModes[this.currentViewMode].NAV_STEP,o),this._fillDate(),this._viewUpdate(o);break;case"pickerSwitch":this._showMode(1);break;case"selectMonth":var a=E(t.target).closest("tbody").find("span").index(E(t.target));this._viewDate.month(a),this.currentViewMode===this.MinViewModeNumber?(this._setValue(i.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 n=parseInt(E(t.target).text(),10)||0;this._viewDate.year(n),this.currentViewMode===this.MinViewModeNumber?(this._setValue(i.clone().year(this._viewDate.year()),this._getLastPickedDateIndex()),this._options.inline||this.hide()):(this._showMode(-1),this._fillDate()),this._viewUpdate("YYYY");break;case"selectDecade":var r=parseInt(E(t.target).data("selection"),10)||0;this._viewDate.year(r),this.currentViewMode===this.MinViewModeNumber?(this._setValue(i.clone().year(this._viewDate.year()),this._getLastPickedDateIndex()),this._options.inline||this.hide()):(this._showMode(-1),this._fillDate()),this._viewUpdate("YYYY");break;case"selectDay":var d=this._viewDate.clone();E(t.target).is(".old")&&d.subtract(1,"M"),E(t.target).is(".new")&&d.add(1,"M");var p=d.date(parseInt(E(t.target).text(),10)),h=0;this._options.allowMultidate?-1!==(h=this._datesFormatted.indexOf(p.format("YYYY-MM-DD")))?this._setValue(null,h):this._setValue(p,this._getLastPickedDateIndex()+1):this._setValue(p,this._getLastPickedDateIndex()),this._hasTime()||this._options.keepOpen||this._options.inline||this._options.allowMultidate||this.hide();break;case"incrementHours":var l=i.clone().add(1,"h");this._isValid(l,"h")&&this._setValue(l,this._getLastPickedDateIndex());break;case"incrementMinutes":var c=i.clone().add(this._options.stepping,"m");this._isValid(c,"m")&&this._setValue(c,this._getLastPickedDateIndex());break;case"incrementSeconds":var u=i.clone().add(1,"s");this._isValid(u,"s")&&this._setValue(u,this._getLastPickedDateIndex());break;case"decrementHours":var _=i.clone().subtract(1,"h");this._isValid(_,"h")&&this._setValue(_,this._getLastPickedDateIndex());break;case"decrementMinutes":var f=i.clone().subtract(this._options.stepping,"m");this._isValid(f,"m")&&this._setValue(f,this._getLastPickedDateIndex());break;case"decrementSeconds":var m=i.clone().subtract(1,"s");this._isValid(m,"s")&&this._setValue(m,this._getLastPickedDateIndex());break;case"togglePeriod":this._setValue(i.clone().add(12<=i.hours()?-12:12,"h"),this._getLastPickedDateIndex());break;case"togglePicker":var w=E(t.target),y=w.closest("a"),g=w.closest("ul"),b=g.find(".show"),v=g.find(".collapse:not(.show)"),D=w.is("span")?w:w.find("span"),k=void 0;if(b&&b.length){if((k=b.data("collapse"))&&k.transitioning)return!0;b.collapse?(b.collapse("hide"),v.collapse("show")):(b.removeClass("show"),v.addClass("show")),D.toggleClass(this._options.icons.time+" "+this._options.icons.date),D.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 M=parseInt(E(t.target).text(),10);this.use24Hours||(12<=i.hours()?12!==M&&(M+=12):12===M&&(M=0)),this._setValue(i.clone().hours(M),this._getLastPickedDateIndex()),this._isEnabled("a")||this._isEnabled("m")||this._options.keepOpen||this._options.inline?this._doAction(t,"showPicker"):this.hide();break;case"selectMinute":this._setValue(i.clone().minutes(parseInt(E(t.target).text(),10)),this._getLastPickedDateIndex()),this._isEnabled("a")||this._isEnabled("s")||this._options.keepOpen||this._options.inline?this._doAction(t,"showPicker"):this.hide();break;case"selectSecond":this._setValue(i.clone().seconds(parseInt(E(t.target).text(),10)),this._getLastPickedDateIndex()),this._isEnabled("a")||this._options.keepOpen||this._options.inline?this._doAction(t,"showPicker"):this.hide();break;case"clear":this.clear();break;case"close":this.hide();break;case"today":var x=this.getMoment();this._isValid(x,"d")&&this._setValue(x,this._getLastPickedDateIndex())}return!1},P.prototype.hide=function(){var e=!1;this.widget&&(this.widget.find(".collapse").each(function(){var t=E(this).data("collapse");return!t||!t.transitioning||!(e=!0)}),e||(this.component&&this.component.hasClass("btn")&&this.component.toggleClass("active"),this.widget.hide(),E(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:C.Event.HIDE,date:this._getLastPickedDate().clone()}),void 0!==this.input&&this.input.blur(),this._viewDate=this._getLastPickedDate().clone()))},P.prototype.show=function(){var t=void 0,e={year:function(t){return t.month(0).date(1).hours(0).seconds(0).minutes(0)},month:function(t){return t.date(1).hours(0).seconds(0).minutes(0)},day:function(t){return t.hours(0).seconds(0).minutes(0)},hour:function(t){return t.seconds(0).minutes(0)},minute:function(t){return t.seconds(0)}};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&&(t=this.getMoment(),"string"==typeof this._options.useCurrent&&(t=e[this._options.useCurrent](t)),this._setValue(t,0))}else this.unset&&this._options.useCurrent&&(t=this.getMoment(),"string"==typeof this._options.useCurrent&&(t=e[this._options.useCurrent](t)),this._setValue(t,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(),E(window).on("resize",{picker:this},this._place),this.widget.on("click","[data-action]",E.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:C.Event.SHOW})},P.prototype.destroy=function(){this.hide(),this._element.removeData(C.DATA_KEY),this._element.removeData("date")},P.prototype.disable=function(){this.hide(),this.component&&this.component.hasClass("btn")&&this.component.addClass("disabled"),void 0!==this.input&&this.input.prop("disabled",!0)},P.prototype.enable=function(){this.component&&this.component.hasClass("btn")&&this.component.removeClass("disabled"),void 0!==this.input&&this.input.prop("disabled",!1)},P.prototype.toolbarPlacement=function(t){if(0===arguments.length)return this._options.toolbarPlacement;if("string"!=typeof t)throw new TypeError("toolbarPlacement() expects a string parameter");if(-1===M.indexOf(t))throw new TypeError("toolbarPlacement() parameter must be one of ("+M.join(", ")+") value");this._options.toolbarPlacement=t,this.widget&&(this.hide(),this.show())},P.prototype.widgetPositioning=function(t){if(0===arguments.length)return E.extend({},this._options.widgetPositioning);if("[object Object]"!=={}.toString.call(t))throw new TypeError("widgetPositioning() expects an object variable");if(t.horizontal){if("string"!=typeof t.horizontal)throw new TypeError("widgetPositioning() horizontal variable must be a string");if(t.horizontal=t.horizontal.toLowerCase(),-1===k.indexOf(t.horizontal))throw new TypeError("widgetPositioning() expects horizontal parameter to be one of ("+k.join(", ")+")");this._options.widgetPositioning.horizontal=t.horizontal}if(t.vertical){if("string"!=typeof t.vertical)throw new TypeError("widgetPositioning() vertical variable must be a string");if(t.vertical=t.vertical.toLowerCase(),-1===D.indexOf(t.vertical))throw new TypeError("widgetPositioning() expects vertical parameter to be one of ("+D.join(", ")+")");this._options.widgetPositioning.vertical=t.vertical}this._update()},P.prototype.widgetParent=function(t){if(0===arguments.length)return this._options.widgetParent;if("string"==typeof t&&(t=E(t)),null!==t&&"string"!=typeof t&&!(t instanceof E))throw new TypeError("widgetParent() expects a string or a jQuery object parameter");this._options.widgetParent=t,this.widget&&(this.hide(),this.show())},P._jQueryHandleThis=function(t,e,i){var s=E(t).data(C.DATA_KEY);if("object"===(void 0===e?"undefined":o(e))&&E.extend({},C.Default,e),s||(s=new P(E(t),e),E(t).data(C.DATA_KEY,s)),"string"==typeof e){if(void 0===s[e])throw new Error('No method named "'+e+'"');return void 0===i?s[e]():s[e](i)}},P._jQueryInterface=function(t,e){return 1===this.length?P._jQueryHandleThis(this[0],t,e):this.each(function(){P._jQueryHandleThis(this,t,e)})},x=P,E(document).on(C.Event.CLICK_DATA_API,C.Selector.DATA_TOGGLE,function(){var t=T(E(this));0!==t.length&&x._jQueryInterface.call(t,"toggle")}).on(C.Event.CHANGE,"."+C.ClassName.INPUT,function(t){var e=T(E(this));0!==e.length&&x._jQueryInterface.call(e,"_change",t)}).on(C.Event.BLUR,"."+C.ClassName.INPUT,function(t){var e=T(E(this)),i=e.data(C.DATA_KEY);0!==e.length&&(i._options.debug||window.debug||x._jQueryInterface.call(e,"hide",t))}).on(C.Event.KEYDOWN,"."+C.ClassName.INPUT,function(t){var e=T(E(this));0!==e.length&&x._jQueryInterface.call(e,"_keydown",t)}).on(C.Event.KEYUP,"."+C.ClassName.INPUT,function(t){var e=T(E(this));0!==e.length&&x._jQueryInterface.call(e,"_keyup",t)}).on(C.Event.FOCUS,"."+C.ClassName.INPUT,function(t){var e=T(E(this)),i=e.data(C.DATA_KEY);0!==e.length&&i._options.allowInputToggle&&x._jQueryInterface.call(e,"show",t)}),E.fn[C.NAME]=x._jQueryInterface,E.fn[C.NAME].Constructor=x,E.fn[C.NAME].noConflict=function(){return E.fn[C.NAME]=v,x._jQueryInterface};function T(t){var e=t.data("target"),i=void 0;return e||(e=t.attr("href")||"",e=/^#[a-z]/i.test(e)?e:null),0===(i=E(e)).length||i.data(C.DATA_KEY)||E.extend({},i.data(),E(this).data()),i}function P(t,e){a(this,P);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,b.call(this,t,e));return i._init(),i}}(); !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,o=function(){for(var e=["Edge","Trident","Firefox"],t=0;t=o.clientWidth&&n>=o.clientHeight}),u=0s[e]&&!o.escapeWithReference&&(n=Math.min(l[t],s[e]-("right"===e?l.width:l.height))),O({},t,n)}};return p.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";l=L({},l,u[t](e))}),e.offsets.popper=l,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,o=t.reference,r=e.placement.split("-")[0],i=Math.floor,a=-1!==["top","bottom"].indexOf(r),f=a?"right":"bottom",s=a?"left":"top",p=a?"width":"height";return n[f]i(o[f])&&(e.offsets.popper[s]=i(o[f])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!V(e.instance.modifiers,"arrow","keepTogether"))return e;var o=t.element;if("string"==typeof o){if(!(o=e.instance.popper.querySelector(o)))return e}else if(!e.instance.popper.contains(o))return e;var r=e.placement.split("-")[0],i=e.offsets,a=i.popper,f=i.reference,s=-1!==["left","right"].indexOf(r),p=s?"height":"width",l=s?"Top":"Left",u=l.toLowerCase(),d=s?"left":"top",c=s?"bottom":"right",h=N(o)[p];f[c]-ha[c]&&(e.offsets.popper[u]+=f[u]+h-a[c]),e.offsets.popper=T(e.offsets.popper);var m=f[u]+f[p]/2-h/2,g=y(e.instance.popper),v=parseFloat(g["margin"+l]),b=parseFloat(g["border"+l+"Width"]),w=m-e.offsets.popper[u]-v-b,w=Math.max(Math.min(a[p]-h,w),0);return e.arrowElement=o,e.offsets.arrow=(O(n={},u,Math.round(w)),O(n,d,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(g,v){if(P(g.instance.modifiers,"inner"))return g;if(g.flipped&&g.placement===g.originalPlacement)return g;var b=c(g.instance.popper,g.instance.reference,v.padding,v.boundariesElement,g.positionFixed),w=g.placement.split("-")[0],y=H(w),x=g.placement.split("-")[1]||"",E=[];switch(v.behavior){case G:E=[w,y];break;case X:E=_(w);break;case J:E=_(w,!0);break;default:E=v.behavior}return E.forEach(function(e,t){if(w!==e||E.length===t+1)return g;w=g.placement.split("-")[0],y=H(w);var n,o=g.offsets.popper,r=g.offsets.reference,i=Math.floor,a="left"===w&&i(o.right)>i(r.left)||"right"===w&&i(o.left)i(r.top)||"bottom"===w&&i(o.top)i(b.right),p=i(o.top)i(b.bottom),u="left"===w&&f||"right"===w&&s||"top"===w&&p||"bottom"===w&&l,d=-1!==["top","bottom"].indexOf(w),c=!!v.flipVariations&&(d&&"start"===x&&f||d&&"end"===x&&s||!d&&"start"===x&&p||!d&&"end"===x&&l),h=!!v.flipVariationsByContent&&(d&&"start"===x&&s||d&&"end"===x&&f||!d&&"start"===x&&l||!d&&"end"===x&&p),m=c||h;(a||u||m)&&(g.flipped=!0,(a||u)&&(w=E[t+1]),m&&(x="end"===(n=x)?"start":"start"===n?"end":n),g.placement=w+(x?"-"+x:""),g.offsets.popper=L({},g.offsets.popper,k(g.instance.popper,g.offsets.reference,g.placement)),g=B(g.instance.modifiers,g,"flip"))}),g},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],o=e.offsets,r=o.popper,i=o.reference,a=-1!==["left","right"].indexOf(n),f=-1===["top","left"].indexOf(n);return r[a?"left":"top"]=i[n]-(f?r[a?"width":"height"]:0),e.placement=H(t),e.offsets.popper=T(r),e}},hide:{order:800,enabled:!0,fn:function(e){if(!V(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=C(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottomn.right||t.top>n.bottom||t.rightthis._items.length-1||t<0))if(this._isSliding)g(this._element).one(I,function(){return e.to(t)});else{if(n===t)return this.pause(),void this.cycle();var i=ndocument.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},t._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},t._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(t.left+t.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:Ot,popperConfig:null},Vt="show",zt={HIDE:"hide"+qt,HIDDEN:"hidden"+qt,SHOW:"show"+qt,SHOWN:"shown"+qt,INSERTED:"inserted"+qt,CLICK:"click"+qt,FOCUSIN:"focusin"+qt,FOCUSOUT:"focusout"+qt,MOUSEENTER:"mouseenter"+qt,MOUSELEAVE:"mouseleave"+qt},Kt="fade",Xt="show",Yt="hover",$t="focus",Jt=function(){function i(t,e){if(void 0===u)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=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var t=i.prototype;return t.enable=function(){this._isEnabled=!0},t.disable=function(){this._isEnabled=!1},t.toggleEnabled=function(){this._isEnabled=!this._isEnabled},t.toggle=function(t){if(this._isEnabled)if(t){var e=this.constructor.DATA_KEY,n=g(t.currentTarget).data(e);n||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),g(t.currentTarget).data(e,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(g(this.getTipElement()).hasClass(Xt))return void this._leave(null,this);this._enter(null,this)}},t.dispose=function(){clearTimeout(this._timeout),g.removeData(this.element,this.constructor.DATA_KEY),g(this.element).off(this.constructor.EVENT_KEY),g(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&g(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},t.show=function(){var e=this;if("none"===g(this.element).css("display"))throw new Error("Please use show on visible elements");var t=g.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){g(this.element).trigger(t);var n=m.findShadowRoot(this.element),i=g.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element);if(t.isDefaultPrevented()||!i)return;var o=this.getTipElement(),s=m.getUID(this.constructor.NAME);o.setAttribute("id",s),this.element.setAttribute("aria-describedby",s),this.setContent(),this.config.animation&&g(o).addClass(Kt);var r="function"==typeof this.config.placement?this.config.placement.call(this,o,this.element):this.config.placement,a=this._getAttachment(r);this.addAttachmentClass(a);var l=this._getContainer();g(o).data(this.constructor.DATA_KEY,this),g.contains(this.element.ownerDocument.documentElement,this.tip)||g(o).appendTo(l),g(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new u(this.element,o,this._getPopperConfig(a)),g(o).addClass(Xt),"ontouchstart"in document.documentElement&&g(document.body).children().on("mouseover",null,g.noop);var c,h=function(){e.config.animation&&e._fixTransition();var t=e._hoverState;e._hoverState=null,g(e.element).trigger(e.constructor.Event.SHOWN),"out"===t&&e._leave(null,e)};g(this.tip).hasClass(Kt)?(c=m.getTransitionDurationFromElement(this.tip),g(this.tip).one(m.TRANSITION_END,h).emulateTransitionEnd(c)):h()}},t.hide=function(t){function e(){i._hoverState!==Vt&&o.parentNode&&o.parentNode.removeChild(o),i._cleanTipClass(),i.element.removeAttribute("aria-describedby"),g(i.element).trigger(i.constructor.Event.HIDDEN),null!==i._popper&&i._popper.destroy(),t&&t()}var n,i=this,o=this.getTipElement(),s=g.Event(this.constructor.Event.HIDE);g(this.element).trigger(s),s.isDefaultPrevented()||(g(o).removeClass(Xt),"ontouchstart"in document.documentElement&&g(document.body).children().off("mouseover",null,g.noop),this._activeTrigger.click=!1,this._activeTrigger[$t]=!1,this._activeTrigger[Yt]=!1,g(this.tip).hasClass(Kt)?(n=m.getTransitionDurationFromElement(o),g(o).one(m.TRANSITION_END,e).emulateTransitionEnd(n)):e(),this._hoverState="")},t.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},t.isWithContent=function(){return Boolean(this.getTitle())},t.addAttachmentClass=function(t){g(this.getTipElement()).addClass(Qt+"-"+t)},t.getTipElement=function(){return this.tip=this.tip||g(this.config.template)[0],this.tip},t.setContent=function(){var t=this.getTipElement();this.setElementContent(g(t.querySelectorAll(".tooltip-inner")),this.getTitle()),g(t).removeClass(Kt+" "+Xt)},t.setElementContent=function(t,e){"object"!=typeof e||!e.nodeType&&!e.jquery?this.config.html?(this.config.sanitize&&(e=xt(e,this.config.whiteList,this.config.sanitizeFn)),t.html(e)):t.text(e):this.config.html?g(e).parent().is(t)||t.empty().append(e):t.text(g(e).text())},t.getTitle=function(){return this.element.getAttribute("data-original-title")||("function"==typeof this.config.title?this.config.title.call(this.element):this.config.title)},t._getPopperConfig=function(t){var e=this;return l(l({},{placement:t,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){return e._handlePopperPlacementChange(t)}}),this.config.popperConfig)},t._getOffset=function(){var e=this,t={};return"function"==typeof this.config.offset?t.fn=function(t){return t.offsets=l(l({},t.offsets),e.config.offset(t.offsets,e.element)||{}),t}:t.offset=this.config.offset,t},t._getContainer=function(){return!1===this.config.container?document.body:m.isElement(this.config.container)?g(this.config.container):g(document).find(this.config.container)},t._getAttachment=function(t){return Mt[t.toUpperCase()]},t._setListeners=function(){var i=this;this.config.trigger.split(" ").forEach(function(t){var e,n;"click"===t?g(i.element).on(i.constructor.Event.CLICK,i.config.selector,function(t){return i.toggle(t)}):"manual"!==t&&(e=t===Yt?i.constructor.Event.MOUSEENTER:i.constructor.Event.FOCUSIN,n=t===Yt?i.constructor.Event.MOUSELEAVE:i.constructor.Event.FOCUSOUT,g(i.element).on(e,i.config.selector,function(t){return i._enter(t)}).on(n,i.config.selector,function(t){return i._leave(t)}))}),this._hideModalHandler=function(){i.element&&i.hide()},g(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=l(l({},this.config),{},{trigger:"manual",selector:""}):this._fixTitle()},t._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");!this.element.getAttribute("title")&&"string"==t||(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},t._enter=function(t,e){var n=this.constructor.DATA_KEY;(e=e||g(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),g(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusin"===t.type?$t:Yt]=!0),g(e.getTipElement()).hasClass(Xt)||e._hoverState===Vt?e._hoverState=Vt:(clearTimeout(e._timeout),e._hoverState=Vt,e.config.delay&&e.config.delay.show?e._timeout=setTimeout(function(){e._hoverState===Vt&&e.show()},e.config.delay.show):e.show())},t._leave=function(t,e){var n=this.constructor.DATA_KEY;(e=e||g(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),g(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusout"===t.type?$t:Yt]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState="out",e.config.delay&&e.config.delay.hide?e._timeout=setTimeout(function(){"out"===e._hoverState&&e.hide()},e.config.delay.hide):e.hide())},t._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},t._getConfig=function(t){var e=g(this.element).data();return Object.keys(e).forEach(function(t){-1!==Ht.indexOf(t)&&delete e[t]}),"number"==typeof(t=l(l(l({},this.constructor.Default),e),"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),m.typeCheckConfig(Lt,t,this.constructor.DefaultType),t.sanitize&&(t.template=xt(t.template,t.whiteList,t.sanitizeFn)),t},t._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},t._cleanTipClass=function(){var t=g(this.getTipElement()),e=t.attr("class").match(Bt);null!==e&&e.length&&t.removeClass(e.join(""))},t._handlePopperPlacementChange=function(t){this.tip=t.instance.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},t._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(g(t).removeClass(Kt),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},i._jQueryInterface=function(n){return this.each(function(){var t=g(this).data(Rt),e="object"==typeof n&&n;if((t||!/dispose|hide/.test(n))&&(t||(t=new i(this,e),g(this).data(Rt,t)),"string"==typeof n)){if(void 0===t[n])throw new TypeError('No method named "'+n+'"');t[n]()}})},r(i,null,[{key:"VERSION",get:function(){return"4.5.0"}},{key:"Default",get:function(){return Wt}},{key:"NAME",get:function(){return Lt}},{key:"DATA_KEY",get:function(){return Rt}},{key:"Event",get:function(){return zt}},{key:"EVENT_KEY",get:function(){return qt}},{key:"DefaultType",get:function(){return Ut}}]),i}();g.fn[Lt]=Jt._jQueryInterface,g.fn[Lt].Constructor=Jt,g.fn[Lt].noConflict=function(){return g.fn[Lt]=Ft,Jt._jQueryInterface};var Gt="popover",Zt="bs.popover",te="."+Zt,ee=g.fn[Gt],ne="bs-popover",ie=new RegExp("(^|\\s)"+ne+"\\S+","g"),oe=l(l({},Jt.Default),{},{placement:"right",trigger:"click",content:"",template:''}),se=l(l({},Jt.DefaultType),{},{content:"(string|element|function)"}),re={HIDE:"hide"+te,HIDDEN:"hidden"+te,SHOW:"show"+te,SHOWN:"shown"+te,INSERTED:"inserted"+te,CLICK:"click"+te,FOCUSIN:"focusin"+te,FOCUSOUT:"focusout"+te,MOUSEENTER:"mouseenter"+te,MOUSELEAVE:"mouseleave"+te},ae=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),(e.prototype.constructor=e).__proto__=n;var o=i.prototype;return o.isWithContent=function(){return this.getTitle()||this._getContent()},o.addAttachmentClass=function(t){g(this.getTipElement()).addClass(ne+"-"+t)},o.getTipElement=function(){return this.tip=this.tip||g(this.config.template)[0],this.tip},o.setContent=function(){var t=g(this.getTipElement());this.setElementContent(t.find(".popover-header"),this.getTitle());var e=this._getContent();"function"==typeof e&&(e=e.call(this.element)),this.setElementContent(t.find(".popover-body"),e),t.removeClass("fade show")},o._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},o._cleanTipClass=function(){var t=g(this.getTipElement()),e=t.attr("class").match(ie);null!==e&&0=this._offsets[o]&&(void 0===this._offsets[o+1]||t li > .active",Se=function(){function i(t){this._element=t}var t=i.prototype;return t.show=function(){var t,e,n,i,o,s,r,a,l=this;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&g(this._element).hasClass(we)||g(this._element).hasClass("disabled")||(e=g(this._element).closest(".nav, .list-group")[0],n=m.getSelectorFromElement(this._element),e&&(i="UL"===e.nodeName||"OL"===e.nodeName?Ce:Te,o=(o=g.makeArray(g(e).find(i)))[o.length-1]),s=g.Event("hide.bs.tab",{relatedTarget:this._element}),r=g.Event("show.bs.tab",{relatedTarget:o}),o&&g(o).trigger(s),g(this._element).trigger(r),r.isDefaultPrevented()||s.isDefaultPrevented()||(n&&(t=document.querySelector(n)),this._activate(this._element,e),a=function(){var t=g.Event("hidden.bs.tab",{relatedTarget:l._element}),e=g.Event("shown.bs.tab",{relatedTarget:o});g(o).trigger(t),g(l._element).trigger(e)},t?this._activate(t,t.parentNode,a):a()))},t.dispose=function(){g.removeData(this._element,be),this._element=null},t._activate=function(t,e,n){function i(){return s._transitionComplete(t,r,n)}var o,s=this,r=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?g(e).children(Te):g(e).find(Ce))[0],a=n&&r&&g(r).hasClass("fade");r&&a?(o=m.getTransitionDurationFromElement(r),g(r).removeClass("show").one(m.TRANSITION_END,i).emulateTransitionEnd(o)):i()},t._transitionComplete=function(t,e,n){var i,o,s;e&&(g(e).removeClass(we),(i=g(e.parentNode).find("> .dropdown-menu .active")[0])&&g(i).removeClass(we),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)),g(t).addClass(we),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),m.reflow(t),t.classList.contains("fade")&&t.classList.add("show"),t.parentNode&&g(t.parentNode).hasClass("dropdown-menu")&&((o=g(t).closest(".dropdown")[0])&&(s=[].slice.call(o.querySelectorAll(".dropdown-toggle")),g(s).addClass(we)),t.setAttribute("aria-expanded",!0)),n&&n()},i._jQueryInterface=function(n){return this.each(function(){var t=g(this),e=t.data(be);if(e||(e=new i(this),t.data(be,e)),"string"==typeof n){if(void 0===e[n])throw new TypeError('No method named "'+n+'"');e[n]()}})},r(i,null,[{key:"VERSION",get:function(){return"4.5.0"}}]),i}();g(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',function(t){t.preventDefault(),Se._jQueryInterface.call(g(this),"show")}),g.fn.tab=Se._jQueryInterface,g.fn.tab.Constructor=Se,g.fn.tab.noConflict=function(){return g.fn.tab=Ee,Se._jQueryInterface};var De="toast",Ne="bs.toast",ke="."+Ne,Ae=g.fn[De],Ie="click.dismiss"+ke,Oe="show",je="showing",Pe={animation:"boolean",autohide:"boolean",delay:"number"},xe={animation:!0,autohide:!0,delay:500},Le=function(){function i(t,e){this._element=t,this._config=this._getConfig(e),this._timeout=null,this._setListeners()}var t=i.prototype;return t.show=function(){var t,e,n=this,i=g.Event("show.bs.toast");g(this._element).trigger(i),i.isDefaultPrevented()||(this._config.animation&&this._element.classList.add("fade"),t=function(){n._element.classList.remove(je),n._element.classList.add(Oe),g(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(je),this._config.animation?(e=m.getTransitionDurationFromElement(this._element),g(this._element).one(m.TRANSITION_END,t).emulateTransitionEnd(e)):t())},t.hide=function(){var t;this._element.classList.contains(Oe)&&(t=g.Event("hide.bs.toast"),g(this._element).trigger(t),t.isDefaultPrevented()||this._close())},t.dispose=function(){clearTimeout(this._timeout),this._timeout=null,this._element.classList.contains(Oe)&&this._element.classList.remove(Oe),g(this._element).off(Ie),g.removeData(this._element,Ne),this._element=null,this._config=null},t._getConfig=function(t){return t=l(l(l({},xe),g(this._element).data()),"object"==typeof t&&t?t:{}),m.typeCheckConfig(De,t,this.constructor.DefaultType),t},t._setListeners=function(){var t=this;g(this._element).on(Ie,'[data-dismiss="toast"]',function(){return t.hide()})},t._close=function(){function t(){n._element.classList.add("hide"),g(n._element).trigger("hidden.bs.toast")}var e,n=this;this._element.classList.remove(Oe),this._config.animation?(e=m.getTransitionDurationFromElement(this._element),g(this._element).one(m.TRANSITION_END,t).emulateTransitionEnd(e)):t()},i._jQueryInterface=function(n){return this.each(function(){var t=g(this),e=t.data(Ne);if(e||(e=new i(this,"object"==typeof n&&n),t.data(Ne,e)),"string"==typeof n){if(void 0===e[n])throw new TypeError('No method named "'+n+'"');e[n](this)}})},r(i,null,[{key:"VERSION",get:function(){return"4.5.0"}},{key:"DefaultType",get:function(){return Pe}},{key:"Default",get:function(){return xe}}]),i}();g.fn[De]=Le._jQueryInterface,g.fn[De].Constructor=Le,g.fn[De].noConflict=function(){return g.fn[De]=Ae,Le._jQueryInterface},t.Alert=h,t.Button=E,t.Carousel=x,t.Collapse=V,t.Dropdown=ct,t.Modal=At,t.Popover=ae,t.Scrollspy=ye,t.Tab=Se,t.Toast=Le,t.Tooltip=Jt,t.Util=m,Object.defineProperty(t,"__esModule",{value:!0})}); !function(i){var n={};function a(e){if(n[e])return n[e].exports;var t=n[e]={i:e,l:!1,exports:{}};return i[e].call(t.exports,t,t.exports,a),t.l=!0,t.exports}a.m=i,a.c=n,a.d=function(e,t,i){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(t,e){if(1&e&&(t=a(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(a.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)a.d(i,n,function(e){return t[e]}.bind(null,n));return i},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=0)}([function(e,t,i){"use strict";i(1),i(6),i(7);var n=o(i(2)),a=o(i(3)),r=o(i(4));function o(e){return e&&e.__esModule?e:{default:e}}a.default===r.default&&i(8),window.Inputmask=n.default},function(e,t,i){"use strict";var n,a,r;a=[i(2)],void 0===(r="function"==typeof(n=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,i){return e=-10||e.indexOf("Trident/")>0,fe=me("touchstart"),ce=/iemobile/i.test(e),pe=/iphone/i.test(e)&&!ce;function de(e,t,i){if(!(this instanceof de)){return new de(e,t,i)}this.el=se;this.events={};this.maskset=se;this.refreshValue=false;if(i!==true){if(re.isPlainObject(e)){t=e}else{t=t||{};if(e)t.alias=e}this.opts=re.extend(true,{},this.defaults,t);this.noMasksCache=t&&t.definitions!==se;this.userOptions=t||{};this.isRTL=this.opts.numericInput;f(this.opts.alias,t,this.opts)}}function f(e,t,i){var n=de.prototype.aliases[e];if(n){if(n.alias)f(n.alias,se,i);re.extend(true,i,n);re.extend(true,i,t);return true}else if(i.mask===null){i.mask=e}return false}function r(i,s){function e(e,t,i){var n=false;if(e===null||e===""){n=i.regex!==null;if(n){e=i.regex;e=e.replace(/^(\^)(.*)(\$)$/,"$2")}else{n=true;e=".*"}}if(e.length===1&&i.greedy===false&&i.repeat!==0){i.placeholder=""}if(i.repeat>0||i.repeat==="*"||i.repeat==="+"){var a=i.repeat==="*"?0:i.repeat==="+"?1:i.repeat;e=i.groupmarker[0]+e+i.groupmarker[1]+i.quantifiermarker[0]+a+","+i.repeat+i.quantifiermarker[1]}var r,o=n?"regex_"+i.regex:i.numericInput?e.split("").reverse().join(""):e;if(de.prototype.masksCache[o]===se||s===true){r={mask:e,maskToken:de.prototype.analyseMask(e,n,i),validPositions:{},_buffer:se,buffer:se,tests:{},excludes:{},metadata:t,maskLength:se,jitOffset:{}};if(s!==true){de.prototype.masksCache[o]=r;r=re.extend(true,{},de.prototype.masksCache[o])}}else r=re.extend(true,{},de.prototype.masksCache[o]);return r}var t;if(re.isFunction(i.mask)){i.mask=i.mask(i)}if(re.isArray(i.mask)){if(i.mask.length>1){if(i.keepStatic===null){i.keepStatic="auto";for(var n=0;n1){a+=i.groupmarker[1]+i.alternatormarker+i.groupmarker[0]}if(t.mask!==se&&!re.isFunction(t.mask)){a+=t.mask}else{a+=t}});a+=i.groupmarker[1];return e(a,i.mask,i)}else i.mask=i.mask.pop()}if(i.mask&&i.mask.mask!==se&&!re.isFunction(i.mask.mask)){t=e(i.mask.mask,i.mask,i)}else{t=e(i.mask,i.mask,i)}return t}function me(e){var t=le.createElement("input"),i="on"+e,n=i in t;if(!n){t.setAttribute(i,"return;");n=typeof t[i]==="function"}t=null;return n}function he(e,t,V){t=t||this.maskset;V=V||this.opts;var c=this,u=this.el,g=this.isRTL,v,r,s=false,f=false,y=false,k,a=false,m,o;var d=function e(t,i,n,a,r){var o=V.greedy;if(r)V.greedy=false;i=i||0;var s=[],l,u=0,f,c,p=S();do{if(t===true&&K().validPositions[u]){c=r&&K().validPositions[u].match.optionality===true&&K().validPositions[u+1]===se&&(K().validPositions[u].generatedInput===true||K().validPositions[u].input==V.skipOptionalPartCharacter&&u>0)?h(u,E(u,l,u-1)):K().validPositions[u];f=c.match;l=c.locator.slice();s.push(n===true?c.input:n===false?f.nativeDef:L(u,f))}else{c=b(u,l,u-1);f=c.match;l=c.locator.slice();var d=a===true?false:V.jitMasking!==false?V.jitMasking:f.jit;if(d===false||d===se||typeof d==="number"&&isFinite(d)&&d>u){s.push(n===false?f.nativeDef:L(u,f))}}if(V.keepStatic==="auto"){if(f.newBlockMarker&&f.fn!==null){V.keepStatic=u-1}}u++}while((k===se||uu);if(s[s.length-1]===""){s.pop()}if(n!==false||K().maskLength===se)K().maskLength=u-1;V.greedy=o;return s};function K(){return t}function P(e){var t=K();t.buffer=se;if(e!==true){t.validPositions={};t.p=0}}function S(e,t,i){var n=-1,a=-1,r=i||K().validPositions;if(e===se)e=-1;for(var o in r){var s=parseInt(o);if(r[s]&&(t||r[s].generatedInput!==true)){if(s<=e)n=s;if(s>=e)a=s}}return n===-1||n==e?a:a==-1?n:e-n0){t=t.split(",")[0]}return t!==se?t.toString():""}function p(e,t){var i=(e.alternation!=se?e.mloc[w(e)]:e.locator).join("");if(i!=="")while(i.length0?e-1:0;var i=A(e),n=p(i),a,r,o;for(var s=0;s500&&i!==se){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. "+K().mask}if(R===N&&e.matches===se){G.push({match:e,locator:t.reverse(),cd:L,mloc:{}});return true}else if(e.matches!==se){if(e.isGroup&&i!==e){e=T(j.matches[re.inArray(e,j.matches)+1],t,i);if(e)return true}else if(e.isOptional){var l=e;e=H(e,F,t,i);if(e){re.each(G,function(e,t){t.match.optionality=true});B=G[G.length-1].match;if(i===se&&r(B,l)){I=true;R=N}else return true}}else if(e.isAlternator){var u=e,f=[],c,p=G.slice(),d=t.length;var m=F.length>0?F.shift():-1;if(m===-1||typeof m==="string"){var h=R,g=F.slice(),v=[],k;if(typeof m=="string"){v=m.split(",")}else{for(k=0;k=V.keepStatic)v=v.slice(0,1);var P=false;for(var S=0;S0;e=f.length>0;F=g.slice()}else e=T(u.matches[m]||j.matches[m],[m].concat(t),i);if(e)return true}else if(e.isQuantifier&&i!==j.matches[re.inArray(e,j.matches)-1]){var D=e;for(var M=F.length>0?F.shift():0;M<(isNaN(D.quantifier.max)?M+1:D.quantifier.max)&&R<=N;M++){var O=j.matches[re.inArray(D,j.matches)-1];e=T(O,[M].concat(t),O);if(e){B=G[G.length-1].match;B.optionalQuantifier=M>=D.quantifier.min;B.jit=(M||1)*O.matches.indexOf(B)>=D.quantifier.jit;if(B.optionalQuantifier&&r(B,O)){I=true;R=N;break}if(B.jit){K().jitOffset[N]=O.matches.indexOf(B)}return true}}}else{e=H(e,F,t,i);if(e)return true}}else{R++}}for(var i=F.length>0?F.shift():0;iN){break}}}}function a(e,t){var n=[];if(!re.isArray(t))t=[t];if(t.length>0){if(t[0].alternation===se){n=h(e,t.slice()).locator.slice();if(n.length===0)n=t[0].locator.slice()}else{re.each(t,function(e,t){if(t.def!==""){if(n.length===0)n=t.locator.slice();else{for(var i=0;i-1){if(e===se){var r=N-1,o;while((o=K().validPositions[r]||K().tests[r])===se&&r>-1){r--}if(o!==se&&r>-1){n=a(r,o);L=n.join("");R=r}}if(K().tests[N]&&K().tests[N][0].cd===L){return K().tests[N]}for(var s=n.shift();sN){break}}}if(G.length===0||I){G.push({match:{fn:null,optionality:false,casing:null,def:"",placeholder:""},locator:[],mloc:{},cd:L})}if(e!==se&&K().tests[N]){return re.extend(true,[],G)}K().tests[N]=re.extend(true,[],G);return K().tests[N]}function _(){if(K()._buffer===se){K()._buffer=d(false,1);if(K().buffer===se)K().buffer=K()._buffer.slice()}return K()._buffer}function C(e){if(K().buffer===se||e===true){K().buffer=d(true,S(),true);if(K()._buffer===se)K()._buffer=K().buffer.slice()}return K().buffer}function D(e,t,i){var n,a;if(e===true){P();e=0;t=i.length}else{for(n=e;n=0;m--){u=K().validPositions[m];if(u&&u.alternation!==se){if(f&&f.locator[u.alternation]!==u.locator[u.alternation]){break}o=m;s=K().validPositions[o].alternation;f=u}}}if(s!==se){d=parseInt(o);K().excludes[d]=K().excludes[d]||[];if(e!==true){K().excludes[d].push(w(f))}var h=[],g=0;for(c=d;c0){var y=k.shift();if(!(l=F(S(se,true)+1,y,false,n,true))){break}}if(l&&t!==se){var b=S(e)+1;for(c=d;cb?b:e,t,i,n,true)}if(!l){P();f=A(d);K().validPositions=re.extend(true,{},r);if(K().excludes[d]){var x=w(f);if(K().excludes[d].indexOf(x)!==-1){l=j(e,t,i,n,d-1);break}K().excludes[d].push(x);for(c=d;c1||e.begin-e.end===1:e.end-e.begin>1||e.end-e.begin===1}t=t===true;var a=u;if(u.begin!==se){a=g?u.end:u.begin}function r(r,o,s){var l=false;re.each(E(r),function(e,t){var i=t.match;C(true);l=i.fn!=null?i.fn.test(o,K(),r,s,V,c(u)):(o===i.def||o===V.skipOptionalPartCharacter)&&i.def!==""?{c:L(r,i,true)||i.def,pos:r}:false;if(l!==false){var n=l.c!==se?l.c:o,a=r;n=n===V.skipOptionalPartCharacter&&i.fn===null?L(r,i,true)||i.def:n;if(l.remove!==se){if(!re.isArray(l.remove))l.remove=[l.remove];re.each(l.remove.sort(function(e,t){return t-e}),function(e,t){N({begin:t,end:t+1})})}if(l.insert!==se){if(!re.isArray(l.insert))l.insert=[l.insert];re.each(l.insert.sort(function(e,t){return e-t}),function(e,t){F(t.pos,t.c,true,f)})}if(l!==true&&l.pos!==se&&l.pos!==r){a=l.pos}if(l!==true&&l.pos===se&&l.c===se){return false}if(!N(u,re.extend({},t,{input:M(n,i,a)}),f,a)){l=false}return false}});return l}var o=true,s=re.extend(true,{},K().validPositions);if(re.isFunction(V.preValidation)&&!t&&f!==true&&n!==true){o=V.preValidation(C(),a,e,c(u),V,K())}if(o===true){T(se,a,true);if(k===se||a0;e--){if(K().validPositions[e])break}}for(var a=e;ae+1?t[e+1]&&t[e+1].match.fn===null&&t[e+1]:t[e+1];return a&&r}return false}var r=e.begin!==se?e.begin:e,o=e.end!==se?e.end:e;if(e.begin>e.end){r=e.end;o=e.begin}n=n!==se?n:r;if(r!==o||V.insertMode&&K().validPositions[n]!==se&&i===se){var s=re.extend(true,{},K().validPositions),l=S(se,true),u;K().p=r;for(u=l;u>=r;u--){if(K().validPositions[u]&&K().validPositions[u].match.nativeDef==="+"){V.isNegative=false}delete K().validPositions[u]}var f=true,c=n,p=K().validPositions,d=false,m=c,u=c;if(t){K().validPositions[n]=re.extend(true,{},t);m++;c++;if(r=o||u>=r&&h.generatedInput!==true&&a(u,s,{begin:r,end:o}))){while(A(m).match.def!==""){if(d===false&&s[m]&&s[m].match.nativeDef===h.match.nativeDef){K().validPositions[m]=re.extend(true,{},s[m]);K().validPositions[m].input=h.input;T(se,m,true);c=m+1;f=true}else if(V.shiftPositions&&x(m,h.match.def)){var g=F(m,h.input,true,true);f=g!==false;c=g.caret||g.insert?S():m+1;d=true}else{f=h.generatedInput===true||h.input===V.radixPoint&&V.numericInput===true}if(f)break;if(!f&&m>o&&R(m,true)&&(h.match.fn!==null||m>K().maskLength)){break}m++}if(A(m).match.def=="")f=false;m=c}if(!f)break}if(!f){K().validPositions=re.extend(true,{},s);P(true);return false}}else if(t){K().validPositions[n]=re.extend(true,{},t)}P(true);return true}function R(e,t){var i=b(e).match;if(i.def==="")i=A(e).match;if(i.fn!=null){return i.fn}if(t!==true&&e>-1){var n=E(e);return n.length>1+(n[n.length-1].match.def===""?1:0)}return false}function G(e,t){var i=e+1;while(A(i).match.def!==""&&(t===true&&(A(i).match.newBlockMarker!==true||!R(i))||t!==true&&!R(i))){i++}return i}function I(e,t){var i=e,n;if(i<=0)return 0;while(--i>0&&(t===true&&A(i).match.newBlockMarker!==true||t!==true&&!R(i)&&(n=E(i),n.length<2||n.length===2&&n[1].match.def===""))){}return i}function B(e,t,i,n,a){if(n&&re.isFunction(V.onBeforeWrite)){var r=V.onBeforeWrite.call(c,n,t,i,V);if(r){if(r.refreshFromBuffer){var o=r.refreshFromBuffer;D(o===true?o:o.start,o.end,r.buffer||t);t=C(true)}if(i!==se)i=r.caret!==se?r.caret:i}}if(e!==se){e.inputmask._valueSet(t.join(""));if(i!==se&&(n===se||n.type!=="blur")){W(e,i)}else Y(e,i,t.length===0);if(a===true){var s=re(e),l=e.inputmask._valueGet();f=true;s.trigger("input");setTimeout(function(){if(l===_().join("")){s.trigger("cleared")}else if($(t)===true){s.trigger("complete")}},0)}}}function L(e,t,i){t=t||A(e).match;if(t.placeholder!==se||i===true){return re.isFunction(t.placeholder)?t.placeholder(V):t.placeholder}else if(t.fn===null){if(e>-1&&K().validPositions[e]===se){var n=E(e),a=[],r;if(n.length>1+(n[n.length-1].match.def===""?1:0)){for(var o=0;o1){if(/[0-9a-bA-Z]/.test(a[0].match.def)){return V.placeholder.charAt(e%V.placeholder.length)}}}}}}return t.def}return V.placeholder.charAt(e%V.placeholder.length)}function l(e,t){if(ue){if(e.inputmask._valueGet()!==t&&(e.placeholder!==t||e.placeholder==="")){var i=C().slice(),n=e.inputmask._valueGet();if(n!==t){var a=S();if(a===-1&&n===_().join("")){i=[]}else if(a!==-1){Q(i)}B(e,i)}}}else if(e.placeholder!==t){e.placeholder=t;if(e.placeholder==="")e.removeAttribute("placeholder")}}var H={on:function e(t,i,o){var n=function e(t){var i=this;if(i.inputmask===se&&this.nodeName!=="FORM"){var n=re.data(i,"_inputmask_opts");if(n)new de(n).mask(i);else H.off(i)}else if(t.type!=="setvalue"&&this.nodeName!=="FORM"&&(i.disabled||i.readOnly&&!(t.type==="keydown"&&t.ctrlKey&&t.keyCode===67||V.tabThrough===false&&t.keyCode===de.keyCode.TAB))){t.preventDefault()}else{switch(t.type){case"input":if(f===true){f=false;return t.preventDefault()}if(fe){var a=arguments;setTimeout(function(){o.apply(i,a);W(i,i.inputmask.caretPos,se,true)},0);return false}break;case"keydown":s=false;f=false;break;case"keypress":if(s===true){return t.preventDefault()}s=true;break;case"click":if(ce||pe){var a=arguments;setTimeout(function(){o.apply(i,a)},0);return false}break}var r=o.apply(i,arguments);if(r===false){t.preventDefault();t.stopPropagation()}return r}};t.inputmask.events[i]=t.inputmask.events[i]||[];t.inputmask.events[i].push(n);if(re.inArray(i,["submit","reset"])!==-1){if(t.form!==null)re(t.form).on(i,n)}else{re(t).on(i,n)}},off:function e(n,t){if(n.inputmask&&n.inputmask.events){var i;if(t){i=[];i[t]=n.inputmask.events[t]}else{i=n.inputmask.events}re.each(i,function(e,t){while(t.length>0){var i=t.pop();if(re.inArray(e,["submit","reset"])!==-1){if(n.form!==null)re(n.form).off(e,i)}else{re(n).off(e,i)}}delete n.inputmask.events[e]})}}};var U={keydownEvent:function e(t){var i=this,n=re(i),a=t.keyCode,r=W(i);if(a===de.keyCode.BACKSPACE||a===de.keyCode.DELETE||pe&&a===de.keyCode.BACKSPACE_SAFARI||t.ctrlKey&&a===de.keyCode.X&&!me("cut")){t.preventDefault();Z(i,a,r);B(i,C(true),K().p,t,i.inputmask._valueGet()!==C().join(""))}else if(a===de.keyCode.END||a===de.keyCode.PAGE_DOWN){t.preventDefault();var o=G(S());W(i,t.shiftKey?r.begin:o,o,true)}else if(a===de.keyCode.HOME&&!t.shiftKey||a===de.keyCode.PAGE_UP){t.preventDefault();W(i,0,t.shiftKey?r.begin:0,true)}else if((V.undoOnEscape&&a===de.keyCode.ESCAPE||a===90&&t.ctrlKey)&&t.altKey!==true){z(i,true,false,v.split(""));n.trigger("click")}else if(a===de.keyCode.INSERT&&!(t.shiftKey||t.ctrlKey)){V.insertMode=!V.insertMode;i.setAttribute("im-insert",V.insertMode)}else if(V.tabThrough===true&&a===de.keyCode.TAB){if(t.shiftKey===true){if(A(r.begin).match.fn===null){r.begin=G(r.begin)}r.end=I(r.begin,true);r.begin=I(r.end,true)}else{r.begin=G(r.begin,true);r.end=G(r.begin,true);if(r.ends.length?-1:0,u=r.substr(0,o.begin),f=r.substr(o.begin),c=s.substr(0,o.begin+l),p=s.substr(o.begin+l);var d=o,m="",h=false;if(u!==c){var g=(h=u.length>=c.length)?u.length:c.length,v;for(v=0;u.charAt(v)===c.charAt(v)&&vp.length){m+=f.slice(0,1)}else{if(f.length0){re.each(m.split(""),function(e,t){var i=new re.Event("keypress");i.which=t.charCodeAt(0);y=false;U.keypressEvent.call(a,i)})}else{if(d.begin===d.end-1){d.begin=I(d.begin+1);if(d.begin===d.end-1){W(a,d.begin)}else{W(a,d.begin,d.end)}}var k=new re.Event("keydown");k.keyCode=V.numericInput?de.keyCode.BACKSPACE:de.keyCode.DELETE;U.keydownEvent.call(a,k)}t.preventDefault()}}},beforeInputEvent:function e(t){if(t.cancelable){var n=this;switch(t.inputType){case"insertText":re.each(t.data.split(""),function(e,t){var i=new re.Event("keypress");i.which=t.charCodeAt(0);y=false;U.keypressEvent.call(n,i)});return t.preventDefault();case"deleteContentBackward":var i=new re.Event("keydown");i.keyCode=de.keyCode.BACKSPACE;U.keydownEvent.call(n,i);return t.preventDefault();case"deleteContentForward":var i=new re.Event("keydown");i.keyCode=de.keyCode.DELETE;U.keydownEvent.call(n,i);return t.preventDefault()}}},setValueEvent:function e(t){this.inputmask.refreshValue=false;var i=this,n=t&&t.detail?t.detail[0]:arguments[1],n=n||i.inputmask._valueGet(true);if(re.isFunction(V.onBeforeMask))n=V.onBeforeMask.call(c,n,V)||n;n=n.toString().split("");z(i,true,false,n);v=C().join("");if((V.clearMaskOnLostFocus||V.clearIncomplete)&&i.inputmask._valueGet()===_().join("")){i.inputmask._valueSet("")}},focusEvent:function e(t){var i=this,n=i.inputmask._valueGet();if(V.showMaskOnFocus){if(n!==C().join("")){B(i,C(),G(S()))}else if(a===false){W(i,G(S()))}}if(V.positionCaretOnTab===true&&a===false){U.clickEvent.apply(i,[t,true])}v=C().join("")},mouseleaveEvent:function e(t){var i=this;a=false;if(V.clearMaskOnLostFocus&&le.activeElement!==i){l(i,o)}},clickEvent:function e(t,u){function f(e){if(V.radixPoint!==""){var t=K().validPositions;if(t[e]===se||t[e].input===L(e)){if(e=l||i===a){a=l}}W(c,a)}break}}}},0)},cutEvent:function e(t){var i=this,n=re(i),a=W(i),r=t.originalEvent||t;var o=oe.clipboardData||r.clipboardData,s=g?C().slice(a.end,a.begin):C().slice(a.begin,a.end);o.setData("text",g?s.reverse().join(""):s.join(""));if(le.execCommand)le.execCommand("copy");Z(i,de.keyCode.DELETE,a);B(i,C(),K().p,t,v!==C().join(""))},blurEvent:function e(t){var i=re(this),n=this;if(n.inputmask){l(n,o);var a=n.inputmask._valueGet(),r=C().slice();if(a!==""||m!==se){if(V.clearMaskOnLostFocus){if(S()===-1&&a===_().join("")){r=[]}else{Q(r)}}if($(r)===false){setTimeout(function(){i.trigger("incomplete")},0);if(V.clearIncomplete){P();if(V.clearMaskOnLostFocus){r=[]}else{r=_().slice()}}}B(n,r,se,t)}if(v!==C().join("")){v=r.join("");i.trigger("change")}}},mouseenterEvent:function e(t){var i=this;a=true;if(le.activeElement!==i&&V.showMaskOnHover){l(i,(g?C().slice().reverse():C()).join(""))}},submitEvent:function e(t){if(v!==C().join("")){r.trigger("change")}if(V.clearMaskOnLostFocus&&S()===-1&&u.inputmask._valueGet&&u.inputmask._valueGet()===_().join("")){u.inputmask._valueSet("")}if(V.clearIncomplete&&$(C())===false){u.inputmask._valueSet("")}if(V.removeMaskOnSubmit){u.inputmask._valueSet(u.inputmask.unmaskedvalue(),true);setTimeout(function(){B(u,C())},0)}},resetEvent:function e(t){u.inputmask.refreshValue=true;setTimeout(function(){r.trigger("setvalue")},0)}};function z(a,e,r,t,i){var o=this||a.inputmask,s=t.slice(),l="",u=-1,f=se;function c(e,t){var i=d(true,0,false).slice(e,G(e)).join("").replace(/'/g,"").indexOf(t);return i!==-1&&!R(e)&&(A(e).match.nativeDef===t.charAt(0)||A(e).match.fn===null&&A(e).match.nativeDef==="'"+t.charAt(0)||A(e).match.nativeDef===" "&&(A(e+1).match.nativeDef===t.charAt(0)||A(e+1).match.fn===null&&A(e+1).match.nativeDef==="'"+t.charAt(0)))}P();if(!r&&V.autoUnmask!==true){var n=_().slice(0,G(-1)).join(""),p=s.join("").match(new RegExp("^"+de.escapeRegex(n),"g"));if(p&&p.length>0){s.splice(0,p.length*n.length);u=G(u)}}else{u=G(u)}if(u===-1){K().p=G(u);u=0}else K().p=u;o.caretPos={begin:u};re.each(s,function(e,t){if(t!==se){if(K().validPositions[e]===se&&s[e]===L(e)&&R(e,true)&&F(e,s[e],true,se,se,true)===false){K().p++}else{var i=new re.Event("_checkval");i.which=t.charCodeAt(0);l+=t;var n=S(se,true);if(!c(u,l)){f=U.keypressEvent.call(a,i,true,false,r,o.caretPos.begin);if(f){u=o.caretPos.begin+1;l=""}}else{f=U.keypressEvent.call(a,i,true,false,r,n+1)}if(f){B(se,C(),f.forwardPosition,i,false);o.caretPos={begin:f.forwardPosition,end:f.forwardPosition}}}}});if(e)B(a,C(),f?f.forwardPosition:se,i||new re.Event("checkval"),i&&i.type==="input")}function i(e){if(e){if(e.inputmask===se){return e.value}if(e.inputmask&&e.inputmask.refreshValue){U.setValueEvent.call(e)}}var t=[],i=K().validPositions;for(var n in i){if(i[n].match&&i[n].match.fn!=null){t.push(i[n].input)}}var a=t.length===0?"":(g?t.reverse():t).join("");if(re.isFunction(V.onUnMask)){var r=(g?C().slice().reverse():C()).join("");a=V.onUnMask.call(c,r,a,V)}return a}function W(e,t,i,n){function a(e){if(g&&typeof e==="number"&&(!V.greedy||V.placeholder!=="")&&u){e=u.inputmask._valueGet().length-e}return e}var r;if(t!==se){if(re.isArray(t)){i=g?t[0]:t[1];t=g?t[1]:t[0]}if(t.begin!==se){i=g?t.begin:t.end;t=g?t.end:t.begin}if(typeof t==="number"){t=n?t:a(t);i=n?i:a(i);i=typeof i=="number"?i:t;var o=parseInt(((e.ownerDocument.defaultView||oe).getComputedStyle?(e.ownerDocument.defaultView||oe).getComputedStyle(e,null):e.currentStyle).fontSize)*i;e.scrollLeft=o>e.scrollWidth?o:0;e.inputmask.caretPos={begin:t,end:i};if(e===le.activeElement){if("selectionStart"in e){e.selectionStart=t;e.selectionEnd=i}else if(oe.getSelection){r=le.createRange();if(e.firstChild===se||e.firstChild===null){var s=le.createTextNode("");e.appendChild(s)}r.setStart(e.firstChild,ta;n--){l=r[n];if((l.match.optionality||l.match.optionalQuantifier&&l.match.newBlockMarker||u&&(u!==r[n].locator[o.alternation]&&l.match.fn!=null||l.match.fn===null&&l.locator[o.alternation]&&O(l.locator[o.alternation].toString().split(","),u.toString().split(","))&&E(n)[0].def!==""))&&t[n]===L(n,l.match)){i--}else break}return e?{l:i,def:r[i]?r[i].match:se}:i}function Q(e){e.length=0;var t=d(true,0,true,se,true),i,n;while(i=t.shift(),i!==se){e.push(i)}return e}function $(e){if(re.isFunction(V.isComplete))return V.isComplete(e,V);if(V.repeat==="*")return se;var t=false,i=q(true),n=I(i.l);if(i.def===se||i.def.newBlockMarker||i.def.optionality||i.def.optionalQuantifier){t=true;for(var a=0;a<=n;a++){var r=b(a).match;if(r.fn!==null&&K().validPositions[a]===se&&r.optionality!==true&&r.optionalQuantifier!==true||r.fn===null&&e[a]!==L(a,r)){t=false;break}}}return t}function Z(e,t,i,n,a){if(V.numericInput||g){if(t===de.keyCode.BACKSPACE){t=de.keyCode.DELETE}else if(t===de.keyCode.DELETE){t=de.keyCode.BACKSPACE}if(g){var r=i.end;i.end=i.begin;i.begin=r}}if(t===de.keyCode.BACKSPACE&&i.end-i.begin<1){i.begin=I(i.begin);if(K().validPositions[i.begin]!==se&&K().validPositions[i.begin].input===V.groupSeparator){i.begin--}}else if(t===de.keyCode.DELETE&&i.begin===i.end){i.end=R(i.end,true)&&K().validPositions[i.end]&&K().validPositions[i.end].input!==V.radixPoint?i.end+1:G(i.end)+1;if(K().validPositions[i.begin]!==se&&K().validPositions[i.begin].input===V.groupSeparator){i.end++}}N(i);if(n!==true&&V.keepStatic!==false||V.regex!==null){var o=j(true);if(o){var s=o.caret!==se?o.caret:o.pos?G(o.pos.begin?o.pos.begin:o.pos):S(-1,true);if(t!==de.keyCode.DELETE||i.begin>s){i.begin==s}}}var l=S(i.begin,true);if(l=e){var s=e-r;var l=t.offsetWidth-e;t.innerHTML=a.charAt(i);s-=t.offsetWidth/3;i=s"+e)}else if(a&&(r.fn!==null&&o.input!==se||r.def==="")){a=false;var t=n.length;n[t-1]=n[t-1]+"";n.push(e)}else n.push(e)}function f(){if(le.activeElement===e){n.splice(t.begin,0,t.begin===t.end||t.end>K().maskLength?'':'');n.splice(t.end+1,0,"")}}if(m!==se){var c=C();if(t===se){t=W(e)}else if(t.begin===se){t={begin:t,end:t}}if(i!==true){var p=S();do{if(K().validPositions[l]){o=K().validPositions[l];r=o.match;s=o.locator.slice();u(c[l])}else{o=b(l,s,l-1);r=o.match;s=o.locator.slice();if(V.jitMasking===false||ll){u(L(l,r))}else a=false}l++}while((k===se||ll||a);if(a)u();f()}var d=m.getElementsByTagName("div")[0];d.innerHTML=n.join("");e.inputmask.positionColorMask(e,d)}}function n(e){function t(e,l){function t(e){var t;var i;function n(e){if(re.valHooks&&(re.valHooks[e]===se||re.valHooks[e].inputmaskpatch!==true)){var n=re.valHooks[e]&&re.valHooks[e].get?re.valHooks[e].get:function(e){return e.value};var r=re.valHooks[e]&&re.valHooks[e].set?re.valHooks[e].set:function(e,t){e.value=t;return e};re.valHooks[e]={get:function e(t){if(t.inputmask){if(t.inputmask.opts.autoUnmask){return t.inputmask.unmaskedvalue()}else{var i=n(t);return S(se,se,t.inputmask.maskset.validPositions)!==-1||l.nullable!==true?i:""}}else return n(t)},set:function e(t,i){var n=re(t),a;a=r(t,i);if(t.inputmask){n.trigger("setvalue",[i])}return a},inputmaskpatch:true}}}function a(){if(this.inputmask){return this.inputmask.opts.autoUnmask?this.inputmask.unmaskedvalue():S()!==-1||l.nullable!==true?le.activeElement===this&&l.clearMaskOnLostFocus?(g?Q(C().slice()).reverse():Q(C().slice())).join(""):t.call(this):""}else return t.call(this)}function r(e){i.call(this,e);if(this.inputmask){re(this).trigger("setvalue",[e])}}function o(e){H.on(e,"mouseenter",function(e){var t=re(this),i=this,n=i.inputmask._valueGet();if(n!==C().join("")){t.trigger("setvalue")}})}if(!e.inputmask.__valueGet){if(l.noValuePatching!==true){if(Object.getOwnPropertyDescriptor){if(typeof Object.getPrototypeOf!=="function"){Object.getPrototypeOf=ge("test".__proto__)==="object"?function(e){return e.__proto__}:function(e){return e.constructor.prototype}}var s=Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"value"):se;if(s&&s.get&&s.set){t=s.get;i=s.set;Object.defineProperty(e,"value",{get:a,set:r,configurable:true})}else if(e.tagName!=="INPUT"){t=function e(){return this.textContent};i=function e(t){this.textContent=t};Object.defineProperty(e,"value",{get:a,set:r,configurable:true})}}else if(le.__lookupGetter__&&e.__lookupGetter__("value")){t=e.__lookupGetter__("value");i=e.__lookupSetter__("value");e.__defineGetter__("value",a);e.__defineSetter__("value",r)}e.inputmask.__valueGet=t;e.inputmask.__valueSet=i}e.inputmask._valueGet=function(e){return g&&e!==true?t.call(this.el).split("").reverse().join(""):t.call(this.el)};e.inputmask._valueSet=function(e,t){i.call(this.el,e===null||e===se?"":t!==true&&g?e.split("").reverse().join(""):e)};if(t===se){t=function e(){return this.value};i=function e(t){this.value=t};n(e.type);o(e)}}}var i=e.getAttribute("type");var n=e.tagName==="INPUT"&&re.inArray(i,l.supportsInputType)!==-1||e.isContentEditable||e.tagName==="TEXTAREA";if(!n){if(e.tagName==="INPUT"){var a=le.createElement("input");a.setAttribute("type",i);n=a.type==="text";a=null}else n="partial"}if(n!==false){t(e)}else e.inputmask=se;return n}H.off(e);var i=t(e,V);if(i!==false){u=e;r=re(u);o=u.placeholder;k=u!==se?u.maxLength:se;if(k===-1)k=se;if(V.colorMask===true){J(u)}if(fe){if("inputMode"in u){u.inputmode=V.inputmode;u.setAttribute("inputmode",V.inputmode)}if(V.disablePredictiveText===true){if("autocorrect"in u){u.autocorrect=false}else{if(V.colorMask!==true){J(u)}u.type="password"}}}if(i===true){u.setAttribute("im-insert",V.insertMode);H.on(u,"submit",U.submitEvent);H.on(u,"reset",U.resetEvent);H.on(u,"blur",U.blurEvent);H.on(u,"focus",U.focusEvent);if(V.colorMask!==true){H.on(u,"click",U.clickEvent);H.on(u,"mouseleave",U.mouseleaveEvent);H.on(u,"mouseenter",U.mouseenterEvent)}H.on(u,"paste",U.pasteEvent);H.on(u,"cut",U.cutEvent);H.on(u,"complete",V.oncomplete);H.on(u,"incomplete",V.onincomplete);H.on(u,"cleared",V.oncleared);if(!fe&&V.inputEventOnly!==true){H.on(u,"keydown",U.keydownEvent);H.on(u,"keypress",U.keypressEvent)}else{u.removeAttribute("maxLength")}H.on(u,"input",U.inputFallBackEvent);H.on(u,"beforeinput",U.beforeInputEvent)}H.on(u,"setvalue",U.setValueEvent);v=_().join("");if(u.inputmask._valueGet(true)!==""||V.clearMaskOnLostFocus===false||le.activeElement===u){var n=re.isFunction(V.onBeforeMask)?V.onBeforeMask.call(c,u.inputmask._valueGet(true),V)||u.inputmask._valueGet(true):u.inputmask._valueGet(true);if(n!=="")z(u,true,false,n.split(""));var a=C().slice();v=a.join("");if($(a)===false){if(V.clearIncomplete){P()}}if(V.clearMaskOnLostFocus&&le.activeElement!==u){if(S()===-1){a=[]}else{Q(a)}}if(V.clearMaskOnLostFocus===false||V.showMaskOnFocus&&le.activeElement===u||u.inputmask._valueGet(true)!=="")B(u,a);if(le.activeElement===u){W(u,G(S()))}}}}var X;if(e!==se){switch(e.action){case"isComplete":u=e.el;return $(C());case"unmaskedvalue":if(u===se||e.value!==se){X=e.value;X=(re.isFunction(V.onBeforeMask)?V.onBeforeMask.call(c,X,V)||X:X).split("");z.call(this,se,false,false,X);if(re.isFunction(V.onBeforeWrite))V.onBeforeWrite.call(c,se,C(),0,V)}return i(u);case"mask":n(u);break;case"format":X=(re.isFunction(V.onBeforeMask)?V.onBeforeMask.call(c,e.value,V)||e.value:e.value).split("");z.call(this,se,true,false,X);if(e.metadata){return{value:g?C().slice().reverse().join(""):C().join(""),metadata:he.call(this,{action:"getmetadata"},t,V)}}return g?C().slice().reverse().join(""):C().join("");case"isValid":if(e.value){X=e.value.split("");z.call(this,se,true,true,X)}else{e.value=C().join("")}var ee=C();var te=q(),ie=ee.length-1;for(;ie>te;ie--){if(R(ie))break}ee.splice(te,ie+1-te);return $(ee)&&e.value===C().join("");case"getemptymask":return _().join("");case"remove":if(u&&u.inputmask){re.data(u,"_inputmask_opts",null);r=re(u);u.inputmask._valueSet(V.autoUnmask?i(u):u.inputmask._valueGet(true));H.off(u);if(u.inputmask.colorMask){m=u.inputmask.colorMask;m.removeChild(u);m.parentNode.insertBefore(u,m);m.parentNode.removeChild(m)}var ne;if(Object.getOwnPropertyDescriptor&&Object.getPrototypeOf){ne=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(u),"value");if(ne){if(u.inputmask.__valueGet){Object.defineProperty(u,"value",{get:u.inputmask.__valueGet,set:u.inputmask.__valueSet,configurable:true})}}}else if(le.__lookupGetter__&&u.__lookupGetter__("value")){if(u.inputmask.__valueGet){u.__defineGetter__("value",u.inputmask.__valueGet);u.__defineSetter__("value",u.inputmask.__valueSet)}}u.inputmask=se}return u;break;case"getmetadata":if(re.isArray(t.metadata)){var ae=d(true,0,false).join("");re.each(t.metadata,function(e,t){if(t.mask===ae){ae=t;return false}});return ae}return t.metadata}}}return de.prototype={dataAttribute:"data-inputmask",defaults:{placeholder:"_",optionalmarker:["[","]"],quantifiermarker:["{","}"],groupmarker:["(",")"],alternatormarker:"|",escapeChar:"\\",mask:null,regex:null,oncomplete:re.noop,onincomplete:re.noop,oncleared:re.noop,repeat:0,greedy:!1,autoUnmask:!1,removeMaskOnSubmit:!1,clearMaskOnLostFocus:!0,insertMode:!0,clearIncomplete:!1,alias:null,onKeyDown:re.noop,onBeforeMask:null,onBeforePaste:function(e,t){return re.isFunction(t.onBeforeMask)?t.onBeforeMask.call(this,e,t):e},onBeforeWrite:null,onUnMask:null,showMaskOnFocus:!0,showMaskOnHover:!0,onKeyValidation:re.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:se,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 a=this;return"string"==typeof e&&(e=le.getElementById(e)||le.querySelectorAll(e)),e=e.nodeName?[e]:e,re.each(e,function(e,t){var i,n=re.extend(!0,{},a.opts);!function(i,e,n,a){if(!0===e.importDataAttributes){var t,r,o,s,l=i.getAttribute(a),u=function(e,t){null!==(t=t!==se?t:i.getAttribute(a+"-"+e))&&("string"==typeof t&&(0===e.indexOf("on")?t=oe[t]:"false"===t?t=!1:"true"===t&&(t=!0)),n[e]=t)};if(l&&""!==l&&(l=l.replace(/'/g,'"'),r=JSON.parse("{"+l+"}")),r)for(s in o=se,r)if("alias"===s.toLowerCase()){o=r[s];break}for(t in u("alias",o),n.alias&&f(n.alias,n,e),e){if(r)for(s in o=se,r)if(s.toLowerCase()===t.toLowerCase()){o=r[s];break}u(t,o)}}return re.extend(!0,e,n),"rtl"!==i.dir&&!e.rightAlign||(i.style.textAlign="right"),"rtl"!==i.dir&&!e.numericInput||(i.dir="ltr",i.removeAttribute("dir"),e.isRTL=!0),Object.keys(n).length}(t,n,re.extend(!0,{},a.userOptions),a.dataAttribute)||(i=r(n,a.noMasksCache))!==se&&(t.inputmask!==se&&(t.inputmask.opts.autoUnmask=!0,t.inputmask.remove()),t.inputmask=new de(se,se,!0),t.inputmask.opts=n,t.inputmask.noMasksCache=a.noMasksCache,t.inputmask.userOptions=re.extend(!0,{},a.userOptions),t.inputmask.isRTL=n.isRTL||n.numericInput,(t.inputmask.el=t).inputmask.maskset=i,re.data(t,"_inputmask_opts",n),he.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":ge(e))?(re.extend(this.userOptions,e),this.el&&!0!==t&&this.mask(this.el),this):void 0},unmaskedvalue:function(e){return this.maskset=this.maskset||r(this.opts,this.noMasksCache),he.call(this,{action:"unmaskedvalue",value:e})},remove:function(){return he.call(this,{action:"remove"})},getemptymask:function(){return this.maskset=this.maskset||r(this.opts,this.noMasksCache),he.call(this,{action:"getemptymask"})},hasMaskedValue:function(){return!this.opts.autoUnmask},isComplete:function(){return this.maskset=this.maskset||r(this.opts,this.noMasksCache),he.call(this,{action:"isComplete"})},getmetadata:function(){return this.maskset=this.maskset||r(this.opts,this.noMasksCache),he.call(this,{action:"getmetadata"})},isValid:function(e){return this.maskset=this.maskset||r(this.opts,this.noMasksCache),he.call(this,{action:"isValid",value:e})},format:function(e,t){return this.maskset=this.maskset||r(this.opts,this.noMasksCache),he.call(this,{action:"format",value:e,metadata:t})},setValue:function(e){this.el&&re(this.el).trigger("setvalue",[e])},analyseMask:function(e,r,o){var t,i,n,a=/(?:[?*+]|\{[0-9\+\*]+(?:,[0-9\+\*]*)?(?:\|[0-9\+\*]*)?\})|[^.?*+^${[]()|\\]+|./g,s=/\[\^?]?(?:[^\\\]]+|\\[\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,u=new p,f=[],c=[];function p(e,t,i,n){this.matches=[],this.openGroup=e||!1,this.alternatorGroup=!1,this.isGroup=e||!1,this.isOptional=t||!1,this.isQuantifier=i||!1,this.isAlternator=n||!1,this.quantifier={min:1,max:1}}function d(i,e,n){n=n!==se?n:i.matches.length;var t,a=i.matches[n-1];r?(0===e.indexOf("[")||l&&/\\d|\\s|\\w]/i.test(e)||"."===e?i.matches.splice(n++,0,{fn:new RegExp(e,o.casing?"i":""),optionality:!1,newBlockMarker:a===se?"master":a.def!==e,casing:null,def:e,placeholder:se,nativeDef:e}):(l&&(e=e[e.length-1]),re.each(e.split(""),function(e,t){a=i.matches[n-1],i.matches.splice(n++,0,{fn:null,optionality:!1,newBlockMarker:a===se?"master":a.def!==t&&null!==a.fn,casing:null,def:o.staticDefinitionSymbol||t,placeholder:o.staticDefinitionSymbol!==se?t:se,nativeDef:(l?"'":"")+t})})),l=!1):(t=(o.definitions?o.definitions[e]:se)||de.prototype.definitions[e])&&!l?i.matches.splice(n++,0,{fn:t.validator?"string"==typeof t.validator?new RegExp(t.validator,o.casing?"i":""):new function(){this.test=t.validator}:new RegExp("."),optionality:!1,newBlockMarker:a===se?"master":a.def!==(t.definitionSymbol||e),casing:t.casing,def:t.definitionSymbol||e,placeholder:t.placeholder,nativeDef:e}):(i.matches.splice(n++,0,{fn:null,optionality:!1,newBlockMarker:a===se?"master":a.def!==e&&null!==a.fn,casing:null,def:o.staticDefinitionSymbol||e,placeholder:o.staticDefinitionSymbol!==se?e:se,nativeDef:(l?"'":"")+e}),l=!1)}function m(){if(0=e.day)&&t}function i(e,t){var i=!0;if(t.min){var n,a;e.rawyear&&(n=e.rawyear.replace(/[^0-9]/g,""),a=t.min.year.substr(0,n.length),i=a<=n),e.year===e.rawyear&&t.min.date.getTime()==t.min.date.getTime()&&(i=t.min.date.getTime()<=e.date.getTime())}if(i&&t.max&&t.max.date.getTime()==t.max.date.getTime())i=t.max.date.getTime()>=e.date.getTime();return i}function u(e,t,i,n){var a="",r;while(r=d(i).exec(e)){if(t===undefined){if(p[r[0]]){a+="("+p[r[0]][0]+")"}else{switch(r[0]){case"[":a+="(";break;case"]":a+=")?";break;default:a+=s.escapeRegex(r[0])}}}else{if(p[r[0]]){if(n!==true&&p[r[0]][3]){var o=p[r[0]][3];a+=o.call(t.date)}else if(p[r[0]][2])a+=t["raw"+p[r[0]][2]];else a+=r[0]}else a+=r[0]}}return a}function f(e,t){e=String(e);t=t||2;while(e.lengtha.slice(0,i.length)?a.slice(i.length):t.toString().slice(i.length))}return t}function f(e,t,i){e[o]=u(t);e["raw"+o]=t;if(s!==undefined)s.call(e.date,o=="month"?parseInt(e[o])-1:e[o])}if(typeof n==="string"){while(a=d(r).exec(t)){var c=n.slice(0,a[0].length);if(p.hasOwnProperty(a[0])){l=p[a[0]][0];o=p[a[0]][2];s=p[a[0]][1];f(i,c,r)}n=n.slice(c.length)}return i}else if(n&&(typeof n==="undefined"?"undefined":m(n))==="object"&&n.hasOwnProperty("date")){return n}return undefined}return s.extendAliases({datetime:{mask:function(e){return p.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=u(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,i,n){n.min=c(n.min,n.inputFormat,n),n.max=c(n.max,n.inputFormat,n);var a,r,o=i,s=c(e.join(""),n.inputFormat,n);return o&&s.date.getTime()==s.date.getTime()&&(a=s,r=o,o=(o=(!isFinite(a.rawday)||"29"==a.day&&!isFinite(a.rawyear)||new Date(a.date.getFullYear(),isFinite(a.rawmonth)?a.month:a.date.getMonth()+1,0).getDate()>=a.day)&&r)&&function(e,t){var i=!0;{var n,a;t.min&&(e.rawyear&&(n=e.rawyear.replace(/[^0-9]/g,""),a=t.min.year.substr(0,n.length),i=a<=n),e.year===e.rawyear&&t.min.date.getTime()==t.min.date.getTime()&&(i=t.min.date.getTime()<=e.date.getTime()))}i&&t.max&&t.max.date.getTime()==t.max.date.getTime()&&(i=t.max.date.getTime()>=e.date.getTime());return i}(s,n)),t&&o&&i.pos!==t?{buffer:u(n.inputFormat,s,n),refreshFromBuffer:{start:t,end:i.pos}}:o},onKeyDown:function(e,t,i,n){if(e.ctrlKey&&e.keyCode===s.keyCode.RIGHT){for(var a,r=new Date,o="";a=d(n).exec(n.inputFormat);)"d"===a[0].charAt(0)?o+=f(r.getDate(),a[0].length):"m"===a[0].charAt(0)?o+=f(r.getMonth()+1,a[0].length):"yyyy"===a[0]?o+=r.getFullYear().toString():"y"===a[0].charAt(0)&&(o+=f(r.getYear(),a[0].length));this.inputmask._valueSet(o),l(this).trigger("setvalue")}},onUnMask:function(e,t,i){return u(i.outputFormat,c(e,i.inputFormat,i),i,!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}}),s})?n.apply(t,a):n)||(e.exports=r)},function(e,t,i){"use strict";var n,a,r;a=[i(2)],void 0===(r="function"==typeof(n=function(b){var x=b.dependencyLib;function o(e,t){var i="";for(var n=0;n=(!1===n.isNegative?1:0)&&o=s.length-n.suffix.length-(!1===n.isNegative?1:0)&&(a[o-(s.length-n.suffix.length-(!1===n.isNegative?1:0))]="?")),r=r.join(""),a=a.join("");var u,f,c,p,d,m,h=s.join("").replace(r,"");if(h=(h=(h=(h=h.replace(a,"")).replace(new RegExp(b.escapeRegex(n.groupSeparator),"g"),"")).replace(new RegExp("[-"+b.escapeRegex(n.negationSymbol.front)+"]","g"),"")).replace(new RegExp(b.escapeRegex(n.negationSymbol.back)+"$"),""),isNaN(n.placeholder)&&(h=h.replace(new RegExp(b.escapeRegex(n.placeholder),"g"),"")),1n.max)return n.isNegative=n.max<0,n.postValidation(n.max.toString().replace(".",n.radixPoint).split(""),i,{caret:i,dopost:!0,placeholder:"0"},n)}return n.postValidation(t,i,{caret:i,placeholder:"0",event:"blur"},n);case"_checkval":return{caret:i}}var r},regex:{integerPart:function(e,t){return t?new RegExp("["+b.escapeRegex(e.negationSymbol.front)+"+]?"):new RegExp("["+b.escapeRegex(e.negationSymbol.front)+"+]?\\d+")},integerNPart:function(e){return new RegExp("[\\d"+b.escapeRegex(e.groupSeparator)+b.escapeRegex(e.placeholder.charAt(0))+"]+")}},definitions:{"~":{validator:function(e,t,i,n,a,r){var o;if("k"===e||"m"===e){o={insert:[],c:0};for(var s=0,l="k"===e?2:5;s
"),e=o.children()[0];return b("body").append(o),t=e.offsetWidth,o.css("overflow","scroll"),t===(i=e.offsetWidth)&&(i=o[0].clientWidth),o.remove(),l=t-i},getScrollInfo:function(t){var i=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),o=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),e="scroll"===i||"auto"===i&&t.widthL(P(e),P(l))?n.important="horizontal":n.important="vertical",c.using.call(this,t,n)}),f.offset(b.extend(r,{using:t}))})},b.ui.position={fit:{left:function(t,i){var o,e=i.within,l=e.isWindow?e.scrollLeft:e.offset.left,n=e.width,f=t.left-i.collisionPosition.marginLeft,s=l-f,h=f+i.collisionWidth-n-l;i.collisionWidth>n?0n?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(r));var t={};for(var a in r)r.hasOwnProperty(a)&&(t[a]=r[a].defaultValue);return t}var b={},t={},d={},p=a(!0),h="vanilla",_={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:a(!0),allOn:function(){"use strict";var e=a(!0),r={};for(var t in e)e.hasOwnProperty(t)&&(r[t]=!0);return r}()};function g(e,r){"use strict";var t=r?"Error in "+r+" extension->":"Error in unnamed extension",a={valid:!0,error:""};b.helper.isArray(e)||(e=[e]);for(var n=0;n").replace(/&/g,"&")};function m(e,r,t,a){"use strict";var n,s,o,i,l,c=a||"",u=-1>=0,t=String(t||" "),e.length>r?String(e):((r-=e.length)>t.length&&(t+=t.repeat(r/t.length)),String(e)+t.slice(0,r))},"undefined"==typeof console&&(console={warn:function(e){},log:function(e){},error:function(e){"use strict";throw e}}),b.helper.regexes={asteriskDashAndColon:/([*_:~])/g},b.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"},b.Converter=function(t){"use strict";var s={},o=[],i=[],l={},a=h,c={parsed:{},raw:"",format:""};function n(e,r){if(r=r||null,b.helper.isString(e)){if(r=e=b.helper.stdExtName(e),b.extensions[e])return void function(e,r){"function"==typeof e&&(e=e(new b.Converter));b.helper.isArray(e)||(e=[e]);var t=g(e,r);if(!t.valid)throw Error(t.error);for(var a=0;a[ \t]+¨NBSP;<"),!r){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");r=window.document}var t=r.createElement("div");t.innerHTML=e;var a={preList:function(e){for(var r=e.querySelectorAll("pre"),t=[],a=0;a'}else t.push(r[a].innerHTML),r[a].innerHTML="",r[a].setAttribute("prenum",a.toString());return t}(t)};!function e(r){for(var t=0;t? ?(['"].*['"])?\)$/m))a="";else if(!a){if(a="#"+(t=t||r.toLowerCase().replace(/ ?\n/g," ")),b.helper.isUndefined(c.gUrls[t]))return e;a=c.gUrls[t],b.helper.isUndefined(c.gTitles[t])||(o=c.gTitles[t])}var i='"}return e=(e=(e=(e=(e=c.converter._dispatch("anchors.before",e,l,c)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)] ?(?:\n *)?\[(.*?)]()()()()/g,r)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<([^>]*)>(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,r)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]??(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,r)).replace(/\[([^\[\]]+)]()()()()()/g,r),l.ghMentions&&(e=e.replace(/(^|\s)(\\)?(@([a-z\d]+(?:[a-z\d.-]+?[a-z\d]+)*))/gim,function(e,r,t,a,n){if("\\"===t)return r+a;if(!b.helper.isString(l.ghMentionsLink))throw new Error("ghMentionsLink option must be a string");var s=l.ghMentionsLink.replace(/\{u}/g,n),o="";return l.openLinksInNewWindow&&(o=' rel="noopener noreferrer" target="¨E95Eblank"'),r+'"+a+""})),e=c.converter._dispatch("anchors.after",e,l,c)});function n(p){"use strict";return function(e,r,t,a,n,s,o){var i=t=t.replace(b.helper.regexes.asteriskDashAndColon,b.helper.escapeCharactersCallback),l="",c="",u=r||"",d=o||"";return/^www\./i.test(t)&&(t=t.replace(/^www\./i,"http://www.")),p.excludeTrailingPunctuationFromURLs&&s&&(l=s),p.openLinksInNewWindow&&(c=' rel="noopener noreferrer" target="¨E95Eblank"'),u+'"+i+""+l+d}}function o(n,s){"use strict";return function(e,r,t){var a="mailto:";return r=r||"",t=b.subParser("unescapeSpecialChars")(t,n,s),n.encodeEmails?(a=b.helper.encodeEmailAddress(a+t),t=b.helper.encodeEmailAddress(t)):a+=t,r+''+t+""}}var i=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi,l=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()\[\]])?(\1)?(?=\s|$)(?!["<>])/gi,c=/()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi,u=/(^|\s)(?:mailto:)?([A-Za-z0-9!#$%&'*+-/=?^_`{|}~.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?=$|\s)/gim,f=/<()(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi;b.subParser("autoLinks",function(e,r,t){"use strict";return e=(e=(e=t.converter._dispatch("autoLinks.before",e,r,t)).replace(c,n(r))).replace(f,o(r,t)),e=t.converter._dispatch("autoLinks.after",e,r,t)}),b.subParser("simplifiedAutoLinks",function(e,r,t){"use strict";return r.simplifiedAutoLink?(e=t.converter._dispatch("simplifiedAutoLinks.before",e,r,t),e=(e=r.excludeTrailingPunctuationFromURLs?e.replace(l,n(r)):e.replace(i,n(r))).replace(u,o(r,t)),e=t.converter._dispatch("simplifiedAutoLinks.after",e,r,t)):e}),b.subParser("blockGamut",function(e,r,t){"use strict";return e=t.converter._dispatch("blockGamut.before",e,r,t),e=b.subParser("blockQuotes")(e,r,t),e=b.subParser("headers")(e,r,t),e=b.subParser("horizontalRule")(e,r,t),e=b.subParser("lists")(e,r,t),e=b.subParser("codeBlocks")(e,r,t),e=b.subParser("tables")(e,r,t),e=b.subParser("hashHTMLBlocks")(e,r,t),e=b.subParser("paragraphs")(e,r,t),e=t.converter._dispatch("blockGamut.after",e,r,t)}),b.subParser("blockQuotes",function(e,r,t){"use strict";e=t.converter._dispatch("blockQuotes.before",e,r,t),e+="\n\n";var a=/(^ {0,3}>[ \t]?.+\n(.+\n)*\n*)+/gm;return r.splitAdjacentBlockquotes&&(a=/^ {0,3}>[\s\S]*?(?:\n\n)/gm),e=e.replace(a,function(e){return e=(e=(e=e.replace(/^[ \t]*>[ \t]?/gm,"")).replace(/¨0/g,"")).replace(/^[ \t]+$/gm,""),e=b.subParser("githubCodeBlocks")(e,r,t),e=(e=(e=b.subParser("blockGamut")(e,r,t)).replace(/(^|\n)/g,"$1 ")).replace(/(\s*
[^\r]+?<\/pre>)/gm,function(e,r){var t=r;return t=(t=t.replace(/^  /gm,"¨0")).replace(/¨0/g,"")}),b.subParser("hashBlock")("
\n"+e+"\n
",r,t)}),e=t.converter._dispatch("blockQuotes.after",e,r,t)}),b.subParser("codeBlocks",function(e,o,i){"use strict";e=i.converter._dispatch("codeBlocks.before",e,o,i);return e=(e=(e+="¨0").replace(/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=¨0))/g,function(e,r,t){var a=r,n=t,s="\n",a=b.subParser("outdent")(a,o,i);return a=b.subParser("encodeCode")(a,o,i),a=(a=(a=b.subParser("detab")(a,o,i)).replace(/^\n+/g,"")).replace(/\n+$/g,""),o.omitExtraWLInCodeBlocks&&(s=""),a="
"+a+s+"
",b.subParser("hashBlock")(a,o,i)+n})).replace(/¨0/,""),e=i.converter._dispatch("codeBlocks.after",e,o,i)}),b.subParser("codeSpans",function(e,s,o){"use strict";return void 0===(e=o.converter._dispatch("codeSpans.before",e,s,o))&&(e=""),e=e.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,function(e,r,t,a){var n=a;return n=(n=n.replace(/^([ \t]*)/g,"")).replace(/[ \t]*$/g,""),n=r+""+(n=b.subParser("encodeCode")(n,s,o))+"",n=b.subParser("hashHTMLSpans")(n,s,o)}),e=o.converter._dispatch("codeSpans.after",e,s,o)}),b.subParser("completeHTMLDocument",function(e,r,t){"use strict";if(!r.completeHTMLDocument)return e;e=t.converter._dispatch("completeHTMLDocument.before",e,r,t);var a="html",n="\n",s="",o='\n',i="",l="";for(var c in void 0!==t.metadata.parsed.doctype&&(n="\n","html"!==(a=t.metadata.parsed.doctype.toString().toLowerCase())&&"html5"!==a||(o='')),t.metadata.parsed)if(t.metadata.parsed.hasOwnProperty(c))switch(c.toLowerCase()){case"doctype":break;case"title":s=""+t.metadata.parsed.title+"\n";break;case"charset":o="html"===a||"html5"===a?'\n':'\n';break;case"language":case"lang":i=' lang="'+t.metadata.parsed[c]+'"',l+='\n';break;default:l+='\n'}return e=n+"\n\n"+s+o+l+"\n\n"+e.trim()+"\n\n",e=t.converter._dispatch("completeHTMLDocument.after",e,r,t)}),b.subParser("detab",function(e,r,t){"use strict";return e=(e=(e=(e=(e=(e=t.converter._dispatch("detab.before",e,r,t)).replace(/\t(?=\t)/g," ")).replace(/\t/g,"¨A¨B")).replace(/¨B(.+?)¨A/g,function(e,r){for(var t=r,a=4-t.length%4,n=0;n/g,">"),e=t.converter._dispatch("encodeAmpsAndAngles.after",e,r,t)}),b.subParser("encodeBackslashEscapes",function(e,r,t){"use strict";return e=(e=(e=t.converter._dispatch("encodeBackslashEscapes.before",e,r,t)).replace(/\\(\\)/g,b.helper.escapeCharactersCallback)).replace(/\\([`*_{}\[\]()>#+.!~=|-])/g,b.helper.escapeCharactersCallback),e=t.converter._dispatch("encodeBackslashEscapes.after",e,r,t)}),b.subParser("encodeCode",function(e,r,t){"use strict";return e=(e=t.converter._dispatch("encodeCode.before",e,r,t)).replace(/&/g,"&").replace(//g,">").replace(/([*_{}\[\]\\=~-])/g,b.helper.escapeCharactersCallback),e=t.converter._dispatch("encodeCode.after",e,r,t)}),b.subParser("escapeSpecialCharsWithinTagAttributes",function(e,r,t){"use strict";return e=(e=(e=t.converter._dispatch("escapeSpecialCharsWithinTagAttributes.before",e,r,t)).replace(/<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi,function(e){return e.replace(/(.)<\/?code>(?=.)/g,"$1`").replace(/([\\`*_~=|])/g,b.helper.escapeCharactersCallback)})).replace(/-]|-[^>])(?:[^-]|-[^-])*)--)>/gi,function(e){return e.replace(/([\\`*_~=|])/g,b.helper.escapeCharactersCallback)}),e=t.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after",e,r,t)}),b.subParser("githubCodeBlocks",function(e,s,o){"use strict";return s.ghCodeBlocks?(e=o.converter._dispatch("githubCodeBlocks.before",e,s,o),e=(e=(e+="¨0").replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*)\n([\s\S]*?)\n(?: {0,3})\1/g,function(e,r,t,a){var n=s.omitExtraWLInCodeBlocks?"":"\n";return a=b.subParser("encodeCode")(a,s,o),a="
"+(a=(a=(a=b.subParser("detab")(a,s,o)).replace(/^\n+/g,"")).replace(/\n+$/g,""))+n+"
",a=b.subParser("hashBlock")(a,s,o),"\n\n¨G"+(o.ghCodeBlocks.push({text:e,codeblock:a})-1)+"G\n\n"})).replace(/¨0/,""),o.converter._dispatch("githubCodeBlocks.after",e,s,o)):e}),b.subParser("hashBlock",function(e,r,t){"use strict";return e=(e=t.converter._dispatch("hashBlock.before",e,r,t)).replace(/(^\n+|\n+$)/g,""),e="\n\n¨K"+(t.gHtmlBlocks.push(e)-1)+"K\n\n",e=t.converter._dispatch("hashBlock.after",e,r,t)}),b.subParser("hashCodeTags",function(e,s,o){"use strict";e=o.converter._dispatch("hashCodeTags.before",e,s,o);return e=b.helper.replaceRecursiveRegExp(e,function(e,r,t,a){var n=t+b.subParser("encodeCode")(r,s,o)+a;return"¨C"+(o.gHtmlSpans.push(n)-1)+"C"},"]*>","","gim"),e=o.converter._dispatch("hashCodeTags.after",e,s,o)}),b.subParser("hashElement",function(e,r,a){"use strict";return function(e,r){var t=r;return t=(t=(t=t.replace(/\n\n/g,"\n")).replace(/^\n/,"")).replace(/\n+$/g,""),t="\n\n¨K"+(a.gHtmlBlocks.push(t)-1)+"K\n\n"}}),b.subParser("hashHTMLBlocks",function(e,r,s){"use strict";e=s.converter._dispatch("hashHTMLBlocks.before",e,r,s);function t(e,r,t,a){var n=e;return-1!==t.search(/\bmarkdown\b/)&&(n=t+s.converter.makeHtml(r)+a),"\n\n¨K"+(s.gHtmlBlocks.push(n)-1)+"K\n\n"}var a=["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"];r.backslashEscapesHTMLTags&&(e=e.replace(/\\<(\/?[^>]+?)>/g,function(e,r){return"<"+r+">"}));for(var n=0;n]*>)","im"),l="<"+a[n]+"\\b[^>]*>",c="";-1!==(o=b.helper.regexIndexOf(e,i));){var u=b.helper.splitAtIndex(e,o),d=b.helper.replaceRecursiveRegExp(u[1],t,l,c,"im");if(d===u[1])break;e=u[0].concat(d)}return e=e.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,b.subParser("hashElement")(e,r,s)),e=(e=b.helper.replaceRecursiveRegExp(e,function(e){return"\n\n¨K"+(s.gHtmlBlocks.push(e)-1)+"K\n\n"},"^ {0,3}\x3c!--","--\x3e","gm")).replace(/(?:\n\n)( {0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,b.subParser("hashElement")(e,r,s)),e=s.converter._dispatch("hashHTMLBlocks.after",e,r,s)}),b.subParser("hashHTMLSpans",function(e,r,t){"use strict";function a(e){return"¨C"+(t.gHtmlSpans.push(e)-1)+"C"}return e=(e=(e=(e=(e=t.converter._dispatch("hashHTMLSpans.before",e,r,t)).replace(/<[^>]+?\/>/gi,a)).replace(/<([^>]+?)>[\s\S]*?<\/\1>/g,a)).replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g,a)).replace(/<[^>]+?>/gi,a),e=t.converter._dispatch("hashHTMLSpans.after",e,r,t)}),b.subParser("unhashHTMLSpans",function(e,r,t){"use strict";e=t.converter._dispatch("unhashHTMLSpans.before",e,r,t);for(var a=0;a]*>\\s*]*>","^ {0,3}\\s*
","gim"),e=o.converter._dispatch("hashPreCodeTags.after",e,s,o)}),b.subParser("headers",function(e,l,c){"use strict";e=c.converter._dispatch("headers.before",e,l,c);var u=isNaN(parseInt(l.headerLevelStart))?1:parseInt(l.headerLevelStart),r=l.smoothLivePreview?/^(.+)[ \t]*\n={2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n=+[ \t]*\n+/gm,t=l.smoothLivePreview?/^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n-+[ \t]*\n+/gm;e=(e=e.replace(r,function(e,r){var t=b.subParser("spanGamut")(r,l,c),a=l.noHeaderId?"":' id="'+d(r)+'"',n=""+t+"";return b.subParser("hashBlock")(n,l,c)})).replace(t,function(e,r){var t=b.subParser("spanGamut")(r,l,c),a=l.noHeaderId?"":' id="'+d(r)+'"',n=u+1,s=""+t+"";return b.subParser("hashBlock")(s,l,c)});var a=l.requireSpaceBeforeHeadingText?/^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm:/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm;function d(e){var r,t,a;return!l.customizedHeaderId||(a=e.match(/\{([^{]+?)}\s*$/))&&a[1]&&(e=a[1]),r=e,t=b.helper.isString(l.prefixHeaderId)?l.prefixHeaderId:!0===l.prefixHeaderId?"section-":"",l.rawPrefixHeaderId||(r=t+r),r=l.ghCompatibleHeaderId?r.replace(/ /g,"-").replace(/&/g,"").replace(/¨T/g,"").replace(/¨D/g,"").replace(/[&+$,\/:;=?@"#{}|^¨~\[\]`\\*)(%.!'<>]/g,"").toLowerCase():l.rawHeaderId?r.replace(/ /g,"-").replace(/&/g,"&").replace(/¨T/g,"¨").replace(/¨D/g,"$").replace(/["']/g,"-").toLowerCase():r.replace(/[^\w]/g,"").toLowerCase(),l.rawPrefixHeaderId&&(r=t+r),c.hashLinkCounts[r]?r=r+"-"+c.hashLinkCounts[r]++:c.hashLinkCounts[r]=1,r}return e=e.replace(a,function(e,r,t){var a=t;l.customizedHeaderId&&(a=t.replace(/\s?\{([^{]+?)}\s*$/,""));var n=b.subParser("spanGamut")(a,l,c),s=l.noHeaderId?"":' id="'+d(t)+'"',o=u-1+r.length,i=""+n+"";return b.subParser("hashBlock")(i,l,c)}),e=c.converter._dispatch("headers.after",e,l,c)}),b.subParser("horizontalRule",function(e,r,t){"use strict";e=t.converter._dispatch("horizontalRule.before",e,r,t);var a=b.subParser("hashBlock")("
",r,t);return e=(e=(e=e.replace(/^ {0,2}( ?-){3,}[ \t]*$/gm,a)).replace(/^ {0,2}( ?\*){3,}[ \t]*$/gm,a)).replace(/^ {0,2}( ?_){3,}[ \t]*$/gm,a),e=t.converter._dispatch("horizontalRule.after",e,r,t)}),b.subParser("images",function(e,r,p){"use strict";function l(e,r,t,a,n,s,o,i){var l=p.gUrls,c=p.gTitles,u=p.gDimensions;if(t=t.toLowerCase(),i=i||"",-1? ?(['"].*['"])?\)$/m))a="";else if(""===a||null===a){if(""!==t&&null!==t||(t=r.toLowerCase().replace(/ ?\n/g," ")),a="#"+t,b.helper.isUndefined(l[t]))return e;a=l[t],b.helper.isUndefined(c[t])||(i=c[t]),b.helper.isUndefined(u[t])||(n=u[t].width,s=u[t].height)}r=r.replace(/"/g,""").replace(b.helper.regexes.asteriskDashAndColon,b.helper.escapeCharactersCallback);var d=''+r+'"}return e=(e=(e=(e=(e=(e=p.converter._dispatch("images.before",e,r,p)).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,r,t,a,n,s,o,i){return l(e,r,t,a=a.replace(/\s/g,""),n,s,0,i)})).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=p.converter._dispatch("images.after",e,r,p)}),b.subParser("italicsAndBold",function(e,r,t){"use strict";return e=t.converter._dispatch("italicsAndBold.before",e,r,t),e=r.literalMidWordUnderscores?(e=(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,function(e,r){return""+r+""})).replace(/\b__(\S[\s\S]*?)__\b/g,function(e,r){return""+r+""})).replace(/\b_(\S[\s\S]*?)_\b/g,function(e,r){return""+r+""}):(e=(e=e.replace(/___(\S[\s\S]*?)___/g,function(e,r){return/\S$/.test(r)?""+r+"":e})).replace(/__(\S[\s\S]*?)__/g,function(e,r){return/\S$/.test(r)?""+r+"":e})).replace(/_([^\s_][\s\S]*?)_/g,function(e,r){return/\S$/.test(r)?""+r+"":e}),e=r.literalMidWordAsterisks?(e=(e=e.replace(/([^*]|^)\B\*\*\*(\S[\s\S]*?)\*\*\*\B(?!\*)/g,function(e,r,t){return r+""+t+""})).replace(/([^*]|^)\B\*\*(\S[\s\S]*?)\*\*\B(?!\*)/g,function(e,r,t){return r+""+t+""})).replace(/([^*]|^)\B\*(\S[\s\S]*?)\*\B(?!\*)/g,function(e,r,t){return r+""+t+""}):(e=(e=e.replace(/\*\*\*(\S[\s\S]*?)\*\*\*/g,function(e,r){return/\S$/.test(r)?""+r+"":e})).replace(/\*\*(\S[\s\S]*?)\*\*/g,function(e,r){return/\S$/.test(r)?""+r+"":e})).replace(/\*([^\s*][\s\S]*?)\*/g,function(e,r){return/\S$/.test(r)?""+r+"":e}),e=t.converter._dispatch("italicsAndBold.after",e,r,t)}),b.subParser("lists",function(e,d,u){"use strict";function p(e,r){u.gListLevel++,e=e.replace(/\n{2,}$/,"\n");var t=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0| {0,3}([*+-]|\d+[.])[ \t]+))/gm,c=/\n[ \t]*\n(?!¨0)/.test(e+="¨0");return d.disableForced4SpacesIndentedSublists&&(t=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0|\2([*+-]|\d+[.])[ \t]+))/gm),e=(e=e.replace(t,function(e,r,t,a,n,s,o){o=o&&""!==o.trim();var i=b.subParser("outdent")(n,d,u),l="";return s&&d.tasklists&&(l=' class="task-list-item" style="list-style-type: none;"',i=i.replace(/^[ \t]*\[(x|X| )?]/m,function(){var e='"+(i=(i=r||-1\n"})).replace(/¨0/g,""),u.gListLevel--,r&&(e=e.replace(/\s+$/,"")),e}function h(e,r){if("ol"===r){var t=e.match(/^ *(\d+)\./);if(t&&"1"!==t[1])return' start="'+t[1]+'"'}return""}function n(n,s,o){var e,i=d.disableForced4SpacesIndentedSublists?/^ ?\d+\.[ \t]/gm:/^ {0,3}\d+\.[ \t]/gm,l=d.disableForced4SpacesIndentedSublists?/^ ?[*+-][ \t]/gm:/^ {0,3}[*+-][ \t]/gm,c="ul"===s?i:l,u="";return-1!==n.search(c)?function e(r){var t=r.search(c),a=h(n,s);-1!==t?(u+="\n\n<"+s+a+">\n"+p(r.slice(0,t),!!o)+"\n",c="ul"===(s="ul"===s?"ol":"ul")?i:l,e(r.slice(t))):u+="\n\n<"+s+a+">\n"+p(r,!!o)+"\n"}(n):(e=h(n,s),u="\n\n<"+s+e+">\n"+p(n,!!o)+"\n"),u}return e=u.converter._dispatch("lists.before",e,d,u),e+="¨0",e=(e=u.gListLevel?e.replace(/^(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,function(e,r,t){return n(r,-1"),i+="

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