!function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=92)}([function(e,n,r){var i;void 0===(i=function(){"use strict";return function(e){return t("mail",e)}}.call(n,r,n,e))||(e.exports=i)},function(t,e,n){var r;void 0===(r=function(t){"use strict";var e=n(3),r={},i=new(n(126)),s=null,o=null,a=null,l=null,u="";return Object.defineProperties(r,{accounts:{get:function(){return i},set:function(t){i=t}},currentAccount:{get:function(){return s},set:function(t){s=t}},currentFolder:{get:function(){return o},set:function(t){var n=o;o=t,t!==n&&e.ui.trigger("folder:changed")}},currentMessage:{get:function(){return a},set:function(t){a=t}},currentMessageSubject:{get:function(){return l},set:function(t){l=t}},currentMessageBody:{get:function(){return u},set:function(t){u=t}}}),r}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r;
/*!
 * jQuery JavaScript Library v3.3.1
 * https://jquery.com/
 *
 * Includes Sizzle.js
 * https://sizzlejs.com/
 *
 * Copyright JS Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 *
 * Date: 2018-01-20T17:24Z
 */
/*!
 * jQuery JavaScript Library v3.3.1
 * https://jquery.com/
 *
 * Includes Sizzle.js
 * https://sizzlejs.com/
 *
 * Copyright JS Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 *
 * Date: 2018-01-20T17:24Z
 */
!function(e,n){"use strict";"object"==typeof t&&"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,function(n,i){"use strict";var s=[],o=n.document,a=Object.getPrototypeOf,l=s.slice,u=s.concat,c=s.push,h=s.indexOf,d={},f=d.toString,p=d.hasOwnProperty,m=p.toString,g=m.call(Object),v={},y=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType},b=function(t){return null!=t&&t===t.window},_={type:!0,src:!0,noModule:!0};function w(t,e,n){var r,i=(e=e||o).createElement("script");if(i.text=t,n)for(r in _)n[r]&&(i[r]=n[r]);e.head.appendChild(i).parentNode.removeChild(i)}function x(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?d[f.call(t)]||"object":typeof t}var C=function(t,e){return new C.fn.init(t,e)},A=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function D(t){var e=!!t&&"length"in t&&t.length,n=x(t);return!y(t)&&!b(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}C.fn=C.prototype={jquery:"3.3.1",constructor:C,length:0,toArray:function(){return l.call(this)},get:function(t){return null==t?l.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=C.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return C.each(this,t)},map:function(t){return this.pushStack(C.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(l.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:s.sort,splice:s.splice},C.extend=C.fn.extend=function(){var t,e,n,r,i,s,o=arguments[0]||{},a=1,l=arguments.length,u=!1;for("boolean"==typeof o&&(u=o,o=arguments[a]||{},a++),"object"==typeof o||y(o)||(o={}),a===l&&(o=this,a--);a<l;a++)if(null!=(t=arguments[a]))for(e in t)n=o[e],o!==(r=t[e])&&(u&&r&&(C.isPlainObject(r)||(i=Array.isArray(r)))?(i?(i=!1,s=n&&Array.isArray(n)?n:[]):s=n&&C.isPlainObject(n)?n:{},o[e]=C.extend(u,s,r)):void 0!==r&&(o[e]=r));return o},C.extend({expando:"jQuery"+("3.3.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,n;return!(!t||"[object Object]"!==f.call(t))&&(!(e=a(t))||"function"==typeof(n=p.call(e,"constructor")&&e.constructor)&&m.call(n)===g)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t){w(t)},each:function(t,e){var n,r=0;if(D(t))for(n=t.length;r<n&&!1!==e.call(t[r],r,t[r]);r++);else for(r in t)if(!1===e.call(t[r],r,t[r]))break;return t},trim:function(t){return null==t?"":(t+"").replace(A,"")},makeArray:function(t,e){var n=e||[];return null!=t&&(D(Object(t))?C.merge(n,"string"==typeof t?[t]:t):c.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:h.call(e,t,n)},merge:function(t,e){for(var n=+e.length,r=0,i=t.length;r<n;r++)t[i++]=e[r];return t.length=i,t},grep:function(t,e,n){for(var r=[],i=0,s=t.length,o=!n;i<s;i++)!e(t[i],i)!==o&&r.push(t[i]);return r},map:function(t,e,n){var r,i,s=0,o=[];if(D(t))for(r=t.length;s<r;s++)null!=(i=e(t[s],s,n))&&o.push(i);else for(s in t)null!=(i=e(t[s],s,n))&&o.push(i);return u.apply([],o)},guid:1,support:v}),"function"==typeof Symbol&&(C.fn[Symbol.iterator]=s[Symbol.iterator]),C.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){d["[object "+e+"]"]=e.toLowerCase()});var E=
/*!
 * Sizzle CSS Selector Engine v2.3.3
 * https://sizzlejs.com/
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license
 * http://jquery.org/license
 *
 * Date: 2016-08-08
 */
function(t){var e,n,r,i,s,o,a,l,u,c,h,d,f,p,m,g,v,y,b,_="sizzle"+1*new Date,w=t.document,x=0,C=0,A=ot(),D=ot(),E=ot(),T=function(t,e){return t===e&&(h=!0),0},S={}.hasOwnProperty,I=[],k=I.pop,L=I.push,M=I.push,N=I.slice,O=function(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1},q="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",R="[\\x20\\t\\r\\n\\f]",P="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",B="\\["+R+"*("+P+")(?:"+R+"*([*^$|!~]?=)"+R+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+P+"))|)"+R+"*\\]",U=":("+P+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+B+")*)|.*)\\)|)",V=new RegExp(R+"+","g"),j=new RegExp("^"+R+"+|((?:^|[^\\\\])(?:\\\\.)*)"+R+"+$","g"),Y=new RegExp("^"+R+"*,"+R+"*"),F=new RegExp("^"+R+"*([>+~]|"+R+")"+R+"*"),H=new RegExp("="+R+"*([^\\]'\"]*?)"+R+"*\\]","g"),z=new RegExp(U),W=new RegExp("^"+P+"$"),$={ID:new RegExp("^#("+P+")"),CLASS:new RegExp("^\\.("+P+")"),TAG:new RegExp("^("+P+"|[*])"),ATTR:new RegExp("^"+B),PSEUDO:new RegExp("^"+U),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+R+"*(even|odd|(([+-]|)(\\d*)n|)"+R+"*(?:([+-]|)"+R+"*(\\d+)|))"+R+"*\\)|)","i"),bool:new RegExp("^(?:"+q+")$","i"),needsContext:new RegExp("^"+R+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+R+"*((?:-\\d)?\\d*)"+R+"*\\)|)(?=[^-]|$)","i")},G=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,X=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Z=/[+~]/,Q=new RegExp("\\\\([\\da-f]{1,6}"+R+"?|("+R+")|.)","ig"),tt=function(t,e,n){var r="0x"+e-65536;return r!=r||n?e:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},et=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,nt=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},rt=function(){d()},it=yt(function(t){return!0===t.disabled&&("form"in t||"label"in t)},{dir:"parentNode",next:"legend"});try{M.apply(I=N.call(w.childNodes),w.childNodes),I[w.childNodes.length].nodeType}catch(t){M={apply:I.length?function(t,e){L.apply(t,N.call(e))}:function(t,e){for(var n=t.length,r=0;t[n++]=e[r++];);t.length=n-1}}}function st(t,e,r,i){var s,a,u,c,h,p,v,y=e&&e.ownerDocument,x=e?e.nodeType:9;if(r=r||[],"string"!=typeof t||!t||1!==x&&9!==x&&11!==x)return r;if(!i&&((e?e.ownerDocument||e:w)!==f&&d(e),e=e||f,m)){if(11!==x&&(h=X.exec(t)))if(s=h[1]){if(9===x){if(!(u=e.getElementById(s)))return r;if(u.id===s)return r.push(u),r}else if(y&&(u=y.getElementById(s))&&b(e,u)&&u.id===s)return r.push(u),r}else{if(h[2])return M.apply(r,e.getElementsByTagName(t)),r;if((s=h[3])&&n.getElementsByClassName&&e.getElementsByClassName)return M.apply(r,e.getElementsByClassName(s)),r}if(n.qsa&&!E[t+" "]&&(!g||!g.test(t))){if(1!==x)y=e,v=t;else if("object"!==e.nodeName.toLowerCase()){for((c=e.getAttribute("id"))?c=c.replace(et,nt):e.setAttribute("id",c=_),a=(p=o(t)).length;a--;)p[a]="#"+c+" "+vt(p[a]);v=p.join(","),y=Z.test(t)&&mt(e.parentNode)||e}if(v)try{return M.apply(r,y.querySelectorAll(v)),r}catch(t){}finally{c===_&&e.removeAttribute("id")}}}return l(t.replace(j,"$1"),e,r,i)}function ot(){var t=[];return function e(n,i){return t.push(n+" ")>r.cacheLength&&delete e[t.shift()],e[n+" "]=i}}function at(t){return t[_]=!0,t}function lt(t){var e=f.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ut(t,e){for(var n=t.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=e}function ct(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function ht(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function dt(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function ft(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&it(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function pt(t){return at(function(e){return e=+e,at(function(n,r){for(var i,s=t([],n.length,e),o=s.length;o--;)n[i=s[o]]&&(n[i]=!(r[i]=n[i]))})})}function mt(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in n=st.support={},s=st.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},d=st.setDocument=function(t){var e,i,o=t?t.ownerDocument||t:w;return o!==f&&9===o.nodeType&&o.documentElement?(p=(f=o).documentElement,m=!s(f),w!==f&&(i=f.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",rt,!1):i.attachEvent&&i.attachEvent("onunload",rt)),n.attributes=lt(function(t){return t.className="i",!t.getAttribute("className")}),n.getElementsByTagName=lt(function(t){return t.appendChild(f.createComment("")),!t.getElementsByTagName("*").length}),n.getElementsByClassName=J.test(f.getElementsByClassName),n.getById=lt(function(t){return p.appendChild(t).id=_,!f.getElementsByName||!f.getElementsByName(_).length}),n.getById?(r.filter.ID=function(t){var e=t.replace(Q,tt);return function(t){return t.getAttribute("id")===e}},r.find.ID=function(t,e){if(void 0!==e.getElementById&&m){var n=e.getElementById(t);return n?[n]:[]}}):(r.filter.ID=function(t){var e=t.replace(Q,tt);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},r.find.ID=function(t,e){if(void 0!==e.getElementById&&m){var n,r,i,s=e.getElementById(t);if(s){if((n=s.getAttributeNode("id"))&&n.value===t)return[s];for(i=e.getElementsByName(t),r=0;s=i[r++];)if((n=s.getAttributeNode("id"))&&n.value===t)return[s]}return[]}}),r.find.TAG=n.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):n.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,r=[],i=0,s=e.getElementsByTagName(t);if("*"===t){for(;n=s[i++];)1===n.nodeType&&r.push(n);return r}return s},r.find.CLASS=n.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&m)return e.getElementsByClassName(t)},v=[],g=[],(n.qsa=J.test(f.querySelectorAll))&&(lt(function(t){p.appendChild(t).innerHTML="<a id='"+_+"'></a><select id='"+_+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+R+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||g.push("\\["+R+"*(?:value|"+q+")"),t.querySelectorAll("[id~="+_+"-]").length||g.push("~="),t.querySelectorAll(":checked").length||g.push(":checked"),t.querySelectorAll("a#"+_+"+*").length||g.push(".#.+[+~]")}),lt(function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=f.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&g.push("name"+R+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),p.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),g.push(",.*:")})),(n.matchesSelector=J.test(y=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&lt(function(t){n.disconnectedMatch=y.call(t,"*"),y.call(t,"[s!='']:x"),v.push("!=",U)}),g=g.length&&new RegExp(g.join("|")),v=v.length&&new RegExp(v.join("|")),e=J.test(p.compareDocumentPosition),b=e||J.test(p.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},T=e?function(t,e){if(t===e)return h=!0,0;var r=!t.compareDocumentPosition-!e.compareDocumentPosition;return r||(1&(r=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!n.sortDetached&&e.compareDocumentPosition(t)===r?t===f||t.ownerDocument===w&&b(w,t)?-1:e===f||e.ownerDocument===w&&b(w,e)?1:c?O(c,t)-O(c,e):0:4&r?-1:1)}:function(t,e){if(t===e)return h=!0,0;var n,r=0,i=t.parentNode,s=e.parentNode,o=[t],a=[e];if(!i||!s)return t===f?-1:e===f?1:i?-1:s?1:c?O(c,t)-O(c,e):0;if(i===s)return ct(t,e);for(n=t;n=n.parentNode;)o.unshift(n);for(n=e;n=n.parentNode;)a.unshift(n);for(;o[r]===a[r];)r++;return r?ct(o[r],a[r]):o[r]===w?-1:a[r]===w?1:0},f):f},st.matches=function(t,e){return st(t,null,null,e)},st.matchesSelector=function(t,e){if((t.ownerDocument||t)!==f&&d(t),e=e.replace(H,"='$1']"),n.matchesSelector&&m&&!E[e+" "]&&(!v||!v.test(e))&&(!g||!g.test(e)))try{var r=y.call(t,e);if(r||n.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(t){}return st(e,f,null,[t]).length>0},st.contains=function(t,e){return(t.ownerDocument||t)!==f&&d(t),b(t,e)},st.attr=function(t,e){(t.ownerDocument||t)!==f&&d(t);var i=r.attrHandle[e.toLowerCase()],s=i&&S.call(r.attrHandle,e.toLowerCase())?i(t,e,!m):void 0;return void 0!==s?s:n.attributes||!m?t.getAttribute(e):(s=t.getAttributeNode(e))&&s.specified?s.value:null},st.escape=function(t){return(t+"").replace(et,nt)},st.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},st.uniqueSort=function(t){var e,r=[],i=0,s=0;if(h=!n.detectDuplicates,c=!n.sortStable&&t.slice(0),t.sort(T),h){for(;e=t[s++];)e===t[s]&&(i=r.push(s));for(;i--;)t.splice(r[i],1)}return c=null,t},i=st.getText=function(t){var e,n="",r=0,s=t.nodeType;if(s){if(1===s||9===s||11===s){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=i(t)}else if(3===s||4===s)return t.nodeValue}else for(;e=t[r++];)n+=i(e);return n},(r=st.selectors={cacheLength:50,createPseudo:at,match:$,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(Q,tt),t[3]=(t[3]||t[4]||t[5]||"").replace(Q,tt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||st.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&st.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return $.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&z.test(n)&&(e=o(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(Q,tt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=A[t+" "];return e||(e=new RegExp("(^|"+R+")"+t+"("+R+"|$)"))&&A(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,e,n){return function(r){var i=st.attr(r,t);return null==i?"!="===e:!e||(i+="","="===e?i===n:"!="===e?i!==n:"^="===e?n&&0===i.indexOf(n):"*="===e?n&&i.indexOf(n)>-1:"$="===e?n&&i.slice(-n.length)===n:"~="===e?(" "+i.replace(V," ")+" ").indexOf(n)>-1:"|="===e&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,r,i){var s="nth"!==t.slice(0,3),o="last"!==t.slice(-4),a="of-type"===e;return 1===r&&0===i?function(t){return!!t.parentNode}:function(e,n,l){var u,c,h,d,f,p,m=s!==o?"nextSibling":"previousSibling",g=e.parentNode,v=a&&e.nodeName.toLowerCase(),y=!l&&!a,b=!1;if(g){if(s){for(;m;){for(d=e;d=d[m];)if(a?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;p=m="only"===t&&!p&&"nextSibling"}return!0}if(p=[o?g.firstChild:g.lastChild],o&&y){for(b=(f=(u=(c=(h=(d=g)[_]||(d[_]={}))[d.uniqueID]||(h[d.uniqueID]={}))[t]||[])[0]===x&&u[1])&&u[2],d=f&&g.childNodes[f];d=++f&&d&&d[m]||(b=f=0)||p.pop();)if(1===d.nodeType&&++b&&d===e){c[t]=[x,f,b];break}}else if(y&&(b=f=(u=(c=(h=(d=e)[_]||(d[_]={}))[d.uniqueID]||(h[d.uniqueID]={}))[t]||[])[0]===x&&u[1]),!1===b)for(;(d=++f&&d&&d[m]||(b=f=0)||p.pop())&&((a?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++b||(y&&((c=(h=d[_]||(d[_]={}))[d.uniqueID]||(h[d.uniqueID]={}))[t]=[x,b]),d!==e)););return(b-=i)===r||b%r==0&&b/r>=0}}},PSEUDO:function(t,e){var n,i=r.pseudos[t]||r.setFilters[t.toLowerCase()]||st.error("unsupported pseudo: "+t);return i[_]?i(e):i.length>1?(n=[t,t,"",e],r.setFilters.hasOwnProperty(t.toLowerCase())?at(function(t,n){for(var r,s=i(t,e),o=s.length;o--;)t[r=O(t,s[o])]=!(n[r]=s[o])}):function(t){return i(t,0,n)}):i}},pseudos:{not:at(function(t){var e=[],n=[],r=a(t.replace(j,"$1"));return r[_]?at(function(t,e,n,i){for(var s,o=r(t,null,i,[]),a=t.length;a--;)(s=o[a])&&(t[a]=!(e[a]=s))}):function(t,i,s){return e[0]=t,r(e,null,s,n),e[0]=null,!n.pop()}}),has:at(function(t){return function(e){return st(t,e).length>0}}),contains:at(function(t){return t=t.replace(Q,tt),function(e){return(e.textContent||e.innerText||i(e)).indexOf(t)>-1}}),lang:at(function(t){return W.test(t||"")||st.error("unsupported lang: "+t),t=t.replace(Q,tt).toLowerCase(),function(e){var n;do{if(n=m?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===p},focus:function(t){return t===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:ft(!1),disabled:ft(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!r.pseudos.empty(t)},header:function(t){return K.test(t.nodeName)},input:function(t){return G.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:pt(function(){return[0]}),last:pt(function(t,e){return[e-1]}),eq:pt(function(t,e,n){return[n<0?n+e:n]}),even:pt(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:pt(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:pt(function(t,e,n){for(var r=n<0?n+e:n;--r>=0;)t.push(r);return t}),gt:pt(function(t,e,n){for(var r=n<0?n+e:n;++r<e;)t.push(r);return t})}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[e]=ht(e);for(e in{submit:!0,reset:!0})r.pseudos[e]=dt(e);function gt(){}function vt(t){for(var e=0,n=t.length,r="";e<n;e++)r+=t[e].value;return r}function yt(t,e,n){var r=e.dir,i=e.next,s=i||r,o=n&&"parentNode"===s,a=C++;return e.first?function(e,n,i){for(;e=e[r];)if(1===e.nodeType||o)return t(e,n,i);return!1}:function(e,n,l){var u,c,h,d=[x,a];if(l){for(;e=e[r];)if((1===e.nodeType||o)&&t(e,n,l))return!0}else for(;e=e[r];)if(1===e.nodeType||o)if(c=(h=e[_]||(e[_]={}))[e.uniqueID]||(h[e.uniqueID]={}),i&&i===e.nodeName.toLowerCase())e=e[r]||e;else{if((u=c[s])&&u[0]===x&&u[1]===a)return d[2]=u[2];if(c[s]=d,d[2]=t(e,n,l))return!0}return!1}}function bt(t){return t.length>1?function(e,n,r){for(var i=t.length;i--;)if(!t[i](e,n,r))return!1;return!0}:t[0]}function _t(t,e,n,r,i){for(var s,o=[],a=0,l=t.length,u=null!=e;a<l;a++)(s=t[a])&&(n&&!n(s,r,i)||(o.push(s),u&&e.push(a)));return o}function wt(t,e,n,r,i,s){return r&&!r[_]&&(r=wt(r)),i&&!i[_]&&(i=wt(i,s)),at(function(s,o,a,l){var u,c,h,d=[],f=[],p=o.length,m=s||function(t,e,n){for(var r=0,i=e.length;r<i;r++)st(t,e[r],n);return n}(e||"*",a.nodeType?[a]:a,[]),g=!t||!s&&e?m:_t(m,d,t,a,l),v=n?i||(s?t:p||r)?[]:o:g;if(n&&n(g,v,a,l),r)for(u=_t(v,f),r(u,[],a,l),c=u.length;c--;)(h=u[c])&&(v[f[c]]=!(g[f[c]]=h));if(s){if(i||t){if(i){for(u=[],c=v.length;c--;)(h=v[c])&&u.push(g[c]=h);i(null,v=[],u,l)}for(c=v.length;c--;)(h=v[c])&&(u=i?O(s,h):d[c])>-1&&(s[u]=!(o[u]=h))}}else v=_t(v===o?v.splice(p,v.length):v),i?i(null,o,v,l):M.apply(o,v)})}function xt(t){for(var e,n,i,s=t.length,o=r.relative[t[0].type],a=o||r.relative[" "],l=o?1:0,c=yt(function(t){return t===e},a,!0),h=yt(function(t){return O(e,t)>-1},a,!0),d=[function(t,n,r){var i=!o&&(r||n!==u)||((e=n).nodeType?c(t,n,r):h(t,n,r));return e=null,i}];l<s;l++)if(n=r.relative[t[l].type])d=[yt(bt(d),n)];else{if((n=r.filter[t[l].type].apply(null,t[l].matches))[_]){for(i=++l;i<s&&!r.relative[t[i].type];i++);return wt(l>1&&bt(d),l>1&&vt(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(j,"$1"),n,l<i&&xt(t.slice(l,i)),i<s&&xt(t=t.slice(i)),i<s&&vt(t))}d.push(n)}return bt(d)}return gt.prototype=r.filters=r.pseudos,r.setFilters=new gt,o=st.tokenize=function(t,e){var n,i,s,o,a,l,u,c=D[t+" "];if(c)return e?0:c.slice(0);for(a=t,l=[],u=r.preFilter;a;){for(o in n&&!(i=Y.exec(a))||(i&&(a=a.slice(i[0].length)||a),l.push(s=[])),n=!1,(i=F.exec(a))&&(n=i.shift(),s.push({value:n,type:i[0].replace(j," ")}),a=a.slice(n.length)),r.filter)!(i=$[o].exec(a))||u[o]&&!(i=u[o](i))||(n=i.shift(),s.push({value:n,type:o,matches:i}),a=a.slice(n.length));if(!n)break}return e?a.length:a?st.error(t):D(t,l).slice(0)},a=st.compile=function(t,e){var n,i=[],s=[],a=E[t+" "];if(!a){for(e||(e=o(t)),n=e.length;n--;)(a=xt(e[n]))[_]?i.push(a):s.push(a);(a=E(t,function(t,e){var n=e.length>0,i=t.length>0,s=function(s,o,a,l,c){var h,p,g,v=0,y="0",b=s&&[],_=[],w=u,C=s||i&&r.find.TAG("*",c),A=x+=null==w?1:Math.random()||.1,D=C.length;for(c&&(u=o===f||o||c);y!==D&&null!=(h=C[y]);y++){if(i&&h){for(p=0,o||h.ownerDocument===f||(d(h),a=!m);g=t[p++];)if(g(h,o||f,a)){l.push(h);break}c&&(x=A)}n&&((h=!g&&h)&&v--,s&&b.push(h))}if(v+=y,n&&y!==v){for(p=0;g=e[p++];)g(b,_,o,a);if(s){if(v>0)for(;y--;)b[y]||_[y]||(_[y]=k.call(l));_=_t(_)}M.apply(l,_),c&&!s&&_.length>0&&v+e.length>1&&st.uniqueSort(l)}return c&&(x=A,u=w),b};return n?at(s):s}(s,i))).selector=t}return a},l=st.select=function(t,e,n,i){var s,l,u,c,h,d="function"==typeof t&&t,f=!i&&o(t=d.selector||t);if(n=n||[],1===f.length){if((l=f[0]=f[0].slice(0)).length>2&&"ID"===(u=l[0]).type&&9===e.nodeType&&m&&r.relative[l[1].type]){if(!(e=(r.find.ID(u.matches[0].replace(Q,tt),e)||[])[0]))return n;d&&(e=e.parentNode),t=t.slice(l.shift().value.length)}for(s=$.needsContext.test(t)?0:l.length;s--&&(u=l[s],!r.relative[c=u.type]);)if((h=r.find[c])&&(i=h(u.matches[0].replace(Q,tt),Z.test(l[0].type)&&mt(e.parentNode)||e))){if(l.splice(s,1),!(t=i.length&&vt(l)))return M.apply(n,i),n;break}}return(d||a(t,f))(i,e,!m,n,!e||Z.test(t)&&mt(e.parentNode)||e),n},n.sortStable=_.split("").sort(T).join("")===_,n.detectDuplicates=!!h,d(),n.sortDetached=lt(function(t){return 1&t.compareDocumentPosition(f.createElement("fieldset"))}),lt(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||ut("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),n.attributes&&lt(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||ut("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),lt(function(t){return null==t.getAttribute("disabled")})||ut(q,function(t,e,n){var r;if(!n)return!0===t[e]?e.toLowerCase():(r=t.getAttributeNode(e))&&r.specified?r.value:null}),st}(n);C.find=E,C.expr=E.selectors,C.expr[":"]=C.expr.pseudos,C.uniqueSort=C.unique=E.uniqueSort,C.text=E.getText,C.isXMLDoc=E.isXML,C.contains=E.contains,C.escapeSelector=E.escape;var T=function(t,e,n){for(var r=[],i=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&C(t).is(n))break;r.push(t)}return r},S=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},I=C.expr.match.needsContext;function k(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var L=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function M(t,e,n){return y(e)?C.grep(t,function(t,r){return!!e.call(t,r,t)!==n}):e.nodeType?C.grep(t,function(t){return t===e!==n}):"string"!=typeof e?C.grep(t,function(t){return h.call(e,t)>-1!==n}):C.filter(e,t,n)}C.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?C.find.matchesSelector(r,t)?[r]:[]:C.find.matches(t,C.grep(e,function(t){return 1===t.nodeType}))},C.fn.extend({find:function(t){var e,n,r=this.length,i=this;if("string"!=typeof t)return this.pushStack(C(t).filter(function(){for(e=0;e<r;e++)if(C.contains(i[e],this))return!0}));for(n=this.pushStack([]),e=0;e<r;e++)C.find(t,i[e],n);return r>1?C.uniqueSort(n):n},filter:function(t){return this.pushStack(M(this,t||[],!1))},not:function(t){return this.pushStack(M(this,t||[],!0))},is:function(t){return!!M(this,"string"==typeof t&&I.test(t)?C(t):t||[],!1).length}});var N,O=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(C.fn.init=function(t,e,n){var r,i;if(!t)return this;if(n=n||N,"string"==typeof t){if(!(r="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:O.exec(t))||!r[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(r[1]){if(e=e instanceof C?e[0]:e,C.merge(this,C.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:o,!0)),L.test(r[1])&&C.isPlainObject(e))for(r in e)y(this[r])?this[r](e[r]):this.attr(r,e[r]);return this}return(i=o.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):y(t)?void 0!==n.ready?n.ready(t):t(C):C.makeArray(t,this)}).prototype=C.fn,N=C(o);var q=/^(?:parents|prev(?:Until|All))/,R={children:!0,contents:!0,next:!0,prev:!0};function P(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}C.fn.extend({has:function(t){var e=C(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(C.contains(this,e[t]))return!0})},closest:function(t,e){var n,r=0,i=this.length,s=[],o="string"!=typeof t&&C(t);if(!I.test(t))for(;r<i;r++)for(n=this[r];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:1===n.nodeType&&C.find.matchesSelector(n,t))){s.push(n);break}return this.pushStack(s.length>1?C.uniqueSort(s):s)},index:function(t){return t?"string"==typeof t?h.call(C(t),this[0]):h.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(C.uniqueSort(C.merge(this.get(),C(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),C.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return T(t,"parentNode")},parentsUntil:function(t,e,n){return T(t,"parentNode",n)},next:function(t){return P(t,"nextSibling")},prev:function(t){return P(t,"previousSibling")},nextAll:function(t){return T(t,"nextSibling")},prevAll:function(t){return T(t,"previousSibling")},nextUntil:function(t,e,n){return T(t,"nextSibling",n)},prevUntil:function(t,e,n){return T(t,"previousSibling",n)},siblings:function(t){return S((t.parentNode||{}).firstChild,t)},children:function(t){return S(t.firstChild)},contents:function(t){return k(t,"iframe")?t.contentDocument:(k(t,"template")&&(t=t.content||t),C.merge([],t.childNodes))}},function(t,e){C.fn[t]=function(n,r){var i=C.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=C.filter(r,i)),this.length>1&&(R[t]||C.uniqueSort(i),q.test(t)&&i.reverse()),this.pushStack(i)}});var B=/[^\x20\t\r\n\f]+/g;function U(t){return t}function V(t){throw t}function j(t,e,n,r){var i;try{t&&y(i=t.promise)?i.call(t).done(e).fail(n):t&&y(i=t.then)?i.call(t,e,n):e.apply(void 0,[t].slice(r))}catch(t){n.apply(void 0,[t])}}C.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return C.each(t.match(B)||[],function(t,n){e[n]=!0}),e}(t):C.extend({},t);var e,n,r,i,s=[],o=[],a=-1,l=function(){for(i=i||t.once,r=e=!0;o.length;a=-1)for(n=o.shift();++a<s.length;)!1===s[a].apply(n[0],n[1])&&t.stopOnFalse&&(a=s.length,n=!1);t.memory||(n=!1),e=!1,i&&(s=n?[]:"")},u={add:function(){return s&&(n&&!e&&(a=s.length-1,o.push(n)),function e(n){C.each(n,function(n,r){y(r)?t.unique&&u.has(r)||s.push(r):r&&r.length&&"string"!==x(r)&&e(r)})}(arguments),n&&!e&&l()),this},remove:function(){return C.each(arguments,function(t,e){for(var n;(n=C.inArray(e,s,n))>-1;)s.splice(n,1),n<=a&&a--}),this},has:function(t){return t?C.inArray(t,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return i=o=[],s=n="",this},disabled:function(){return!s},lock:function(){return i=o=[],n||e||(s=n=""),this},locked:function(){return!!i},fireWith:function(t,n){return i||(n=[t,(n=n||[]).slice?n.slice():n],o.push(n),e||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!r}};return u},C.extend({Deferred:function(t){var e=[["notify","progress",C.Callbacks("memory"),C.Callbacks("memory"),2],["resolve","done",C.Callbacks("once memory"),C.Callbacks("once memory"),0,"resolved"],["reject","fail",C.Callbacks("once memory"),C.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return s.done(arguments).fail(arguments),this},catch:function(t){return i.then(null,t)},pipe:function(){var t=arguments;return C.Deferred(function(n){C.each(e,function(e,r){var i=y(t[r[4]])&&t[r[4]];s[r[1]](function(){var t=i&&i.apply(this,arguments);t&&y(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[t]:arguments)})}),t=null}).promise()},then:function(t,r,i){var s=0;function o(t,e,r,i){return function(){var a=this,l=arguments,u=function(){var n,u;if(!(t<s)){if((n=r.apply(a,l))===e.promise())throw new TypeError("Thenable self-resolution");u=n&&("object"==typeof n||"function"==typeof n)&&n.then,y(u)?i?u.call(n,o(s,e,U,i),o(s,e,V,i)):(s++,u.call(n,o(s,e,U,i),o(s,e,V,i),o(s,e,U,e.notifyWith))):(r!==U&&(a=void 0,l=[n]),(i||e.resolveWith)(a,l))}},c=i?u:function(){try{u()}catch(n){C.Deferred.exceptionHook&&C.Deferred.exceptionHook(n,c.stackTrace),t+1>=s&&(r!==V&&(a=void 0,l=[n]),e.rejectWith(a,l))}};t?c():(C.Deferred.getStackHook&&(c.stackTrace=C.Deferred.getStackHook()),n.setTimeout(c))}}return C.Deferred(function(n){e[0][3].add(o(0,n,y(i)?i:U,n.notifyWith)),e[1][3].add(o(0,n,y(t)?t:U)),e[2][3].add(o(0,n,y(r)?r:V))}).promise()},promise:function(t){return null!=t?C.extend(t,i):i}},s={};return C.each(e,function(t,n){var o=n[2],a=n[5];i[n[1]]=o.add,a&&o.add(function(){r=a},e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),o.add(n[3].fire),s[n[0]]=function(){return s[n[0]+"With"](this===s?void 0:this,arguments),this},s[n[0]+"With"]=o.fireWith}),i.promise(s),t&&t.call(s,s),s},when:function(t){var e=arguments.length,n=e,r=Array(n),i=l.call(arguments),s=C.Deferred(),o=function(t){return function(n){r[t]=this,i[t]=arguments.length>1?l.call(arguments):n,--e||s.resolveWith(r,i)}};if(e<=1&&(j(t,s.done(o(n)).resolve,s.reject,!e),"pending"===s.state()||y(i[n]&&i[n].then)))return s.then();for(;n--;)j(i[n],o(n),s.reject);return s.promise()}});var Y=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;C.Deferred.exceptionHook=function(t,e){n.console&&n.console.warn&&t&&Y.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},C.readyException=function(t){n.setTimeout(function(){throw t})};var F=C.Deferred();function H(){o.removeEventListener("DOMContentLoaded",H),n.removeEventListener("load",H),C.ready()}C.fn.ready=function(t){return F.then(t).catch(function(t){C.readyException(t)}),this},C.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--C.readyWait:C.isReady)||(C.isReady=!0,!0!==t&&--C.readyWait>0||F.resolveWith(o,[C]))}}),C.ready.then=F.then,"complete"===o.readyState||"loading"!==o.readyState&&!o.documentElement.doScroll?n.setTimeout(C.ready):(o.addEventListener("DOMContentLoaded",H),n.addEventListener("load",H));var z=function(t,e,n,r,i,s,o){var a=0,l=t.length,u=null==n;if("object"===x(n))for(a in i=!0,n)z(t,e,a,n[a],!0,s,o);else if(void 0!==r&&(i=!0,y(r)||(o=!0),u&&(o?(e.call(t,r),e=null):(u=e,e=function(t,e,n){return u.call(C(t),n)})),e))for(;a<l;a++)e(t[a],n,o?r:r.call(t[a],a,e(t[a],n)));return i?t:u?e.call(t):l?e(t[0],n):s},W=/^-ms-/,$=/-([a-z])/g;function G(t,e){return e.toUpperCase()}function K(t){return t.replace(W,"ms-").replace($,G)}var J=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function X(){this.expando=C.expando+X.uid++}X.uid=1,X.prototype={cache:function(t){var e=t[this.expando];return e||(e={},J(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var r,i=this.cache(t);if("string"==typeof e)i[K(e)]=n;else for(r in e)i[K(r)]=e[r];return i},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][K(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,r=t[this.expando];if(void 0!==r){if(void 0!==e){n=(e=Array.isArray(e)?e.map(K):(e=K(e))in r?[e]:e.match(B)||[]).length;for(;n--;)delete r[e[n]]}(void 0===e||C.isEmptyObject(r))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!C.isEmptyObject(e)}};var Z=new X,Q=new X,tt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,et=/[A-Z]/g;function nt(t,e,n){var r;if(void 0===n&&1===t.nodeType)if(r="data-"+e.replace(et,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(r))){try{n=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:tt.test(t)?JSON.parse(t):t)}(n)}catch(t){}Q.set(t,e,n)}else n=void 0;return n}C.extend({hasData:function(t){return Q.hasData(t)||Z.hasData(t)},data:function(t,e,n){return Q.access(t,e,n)},removeData:function(t,e){Q.remove(t,e)},_data:function(t,e,n){return Z.access(t,e,n)},_removeData:function(t,e){Z.remove(t,e)}}),C.fn.extend({data:function(t,e){var n,r,i,s=this[0],o=s&&s.attributes;if(void 0===t){if(this.length&&(i=Q.get(s),1===s.nodeType&&!Z.get(s,"hasDataAttrs"))){for(n=o.length;n--;)o[n]&&0===(r=o[n].name).indexOf("data-")&&(r=K(r.slice(5)),nt(s,r,i[r]));Z.set(s,"hasDataAttrs",!0)}return i}return"object"==typeof t?this.each(function(){Q.set(this,t)}):z(this,function(e){var n;if(s&&void 0===e)return void 0!==(n=Q.get(s,t))?n:void 0!==(n=nt(s,t))?n:void 0;this.each(function(){Q.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){Q.remove(this,t)})}}),C.extend({queue:function(t,e,n){var r;if(t)return e=(e||"fx")+"queue",r=Z.get(t,e),n&&(!r||Array.isArray(n)?r=Z.access(t,e,C.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||"fx";var n=C.queue(t,e),r=n.length,i=n.shift(),s=C._queueHooks(t,e);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete s.stop,i.call(t,function(){C.dequeue(t,e)},s)),!r&&s&&s.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return Z.get(t,n)||Z.access(t,n,{empty:C.Callbacks("once memory").add(function(){Z.remove(t,[e+"queue",n])})})}}),C.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?C.queue(this[0],t):void 0===e?this:this.each(function(){var n=C.queue(this,t,e);C._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&C.dequeue(this,t)})},dequeue:function(t){return this.each(function(){C.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,r=1,i=C.Deferred(),s=this,o=this.length,a=function(){--r||i.resolveWith(s,[s])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";o--;)(n=Z.get(s[o],t+"queueHooks"))&&n.empty&&(r++,n.empty.add(a));return a(),i.promise(e)}});var rt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,it=new RegExp("^(?:([+-])=|)("+rt+")([a-z%]*)$","i"),st=["Top","Right","Bottom","Left"],ot=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&C.contains(t.ownerDocument,t)&&"none"===C.css(t,"display")},at=function(t,e,n,r){var i,s,o={};for(s in e)o[s]=t.style[s],t.style[s]=e[s];for(s in i=n.apply(t,r||[]),e)t.style[s]=o[s];return i};function lt(t,e,n,r){var i,s,o=20,a=r?function(){return r.cur()}:function(){return C.css(t,e,"")},l=a(),u=n&&n[3]||(C.cssNumber[e]?"":"px"),c=(C.cssNumber[e]||"px"!==u&&+l)&&it.exec(C.css(t,e));if(c&&c[3]!==u){for(l/=2,u=u||c[3],c=+l||1;o--;)C.style(t,e,c+u),(1-s)*(1-(s=a()/l||.5))<=0&&(o=0),c/=s;c*=2,C.style(t,e,c+u),n=n||[]}return n&&(c=+c||+l||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=u,r.start=c,r.end=i)),i}var ut={};function ct(t){var e,n=t.ownerDocument,r=t.nodeName,i=ut[r];return i||(e=n.body.appendChild(n.createElement(r)),i=C.css(e,"display"),e.parentNode.removeChild(e),"none"===i&&(i="block"),ut[r]=i,i)}function ht(t,e){for(var n,r,i=[],s=0,o=t.length;s<o;s++)(r=t[s]).style&&(n=r.style.display,e?("none"===n&&(i[s]=Z.get(r,"display")||null,i[s]||(r.style.display="")),""===r.style.display&&ot(r)&&(i[s]=ct(r))):"none"!==n&&(i[s]="none",Z.set(r,"display",n)));for(s=0;s<o;s++)null!=i[s]&&(t[s].style.display=i[s]);return t}C.fn.extend({show:function(){return ht(this,!0)},hide:function(){return ht(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){ot(this)?C(this).show():C(this).hide()})}});var dt=/^(?:checkbox|radio)$/i,ft=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,pt=/^$|^module$|\/(?:java|ecma)script/i,mt={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function gt(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&k(t,e)?C.merge([t],n):n}function vt(t,e){for(var n=0,r=t.length;n<r;n++)Z.set(t[n],"globalEval",!e||Z.get(e[n],"globalEval"))}mt.optgroup=mt.option,mt.tbody=mt.tfoot=mt.colgroup=mt.caption=mt.thead,mt.th=mt.td;var yt=/<|&#?\w+;/;function bt(t,e,n,r,i){for(var s,o,a,l,u,c,h=e.createDocumentFragment(),d=[],f=0,p=t.length;f<p;f++)if((s=t[f])||0===s)if("object"===x(s))C.merge(d,s.nodeType?[s]:s);else if(yt.test(s)){for(o=o||h.appendChild(e.createElement("div")),a=(ft.exec(s)||["",""])[1].toLowerCase(),l=mt[a]||mt._default,o.innerHTML=l[1]+C.htmlPrefilter(s)+l[2],c=l[0];c--;)o=o.lastChild;C.merge(d,o.childNodes),(o=h.firstChild).textContent=""}else d.push(e.createTextNode(s));for(h.textContent="",f=0;s=d[f++];)if(r&&C.inArray(s,r)>-1)i&&i.push(s);else if(u=C.contains(s.ownerDocument,s),o=gt(h.appendChild(s),"script"),u&&vt(o),n)for(c=0;s=o[c++];)pt.test(s.type||"")&&n.push(s);return h}!function(){var t=o.createDocumentFragment().appendChild(o.createElement("div")),e=o.createElement("input");e.setAttribute("type","radio"),e.setAttribute("checked","checked"),e.setAttribute("name","t"),t.appendChild(e),v.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",v.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var _t=o.documentElement,wt=/^key/,xt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ct=/^([^.]*)(?:\.(.+)|)/;function At(){return!0}function Dt(){return!1}function Et(){try{return o.activeElement}catch(t){}}function Tt(t,e,n,r,i,s){var o,a;if("object"==typeof e){for(a in"string"!=typeof n&&(r=r||n,n=void 0),e)Tt(t,a,n,r,e[a],s);return t}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Dt;else if(!i)return t;return 1===s&&(o=i,(i=function(t){return C().off(t),o.apply(this,arguments)}).guid=o.guid||(o.guid=C.guid++)),t.each(function(){C.event.add(this,e,i,r,n)})}C.event={global:{},add:function(t,e,n,r,i){var s,o,a,l,u,c,h,d,f,p,m,g=Z.get(t);if(g)for(n.handler&&(n=(s=n).handler,i=s.selector),i&&C.find.matchesSelector(_t,i),n.guid||(n.guid=C.guid++),(l=g.events)||(l=g.events={}),(o=g.handle)||(o=g.handle=function(e){return void 0!==C&&C.event.triggered!==e.type?C.event.dispatch.apply(t,arguments):void 0}),u=(e=(e||"").match(B)||[""]).length;u--;)f=m=(a=Ct.exec(e[u])||[])[1],p=(a[2]||"").split(".").sort(),f&&(h=C.event.special[f]||{},f=(i?h.delegateType:h.bindType)||f,h=C.event.special[f]||{},c=C.extend({type:f,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&C.expr.match.needsContext.test(i),namespace:p.join(".")},s),(d=l[f])||((d=l[f]=[]).delegateCount=0,h.setup&&!1!==h.setup.call(t,r,p,o)||t.addEventListener&&t.addEventListener(f,o)),h.add&&(h.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,c):d.push(c),C.event.global[f]=!0)},remove:function(t,e,n,r,i){var s,o,a,l,u,c,h,d,f,p,m,g=Z.hasData(t)&&Z.get(t);if(g&&(l=g.events)){for(u=(e=(e||"").match(B)||[""]).length;u--;)if(f=m=(a=Ct.exec(e[u])||[])[1],p=(a[2]||"").split(".").sort(),f){for(h=C.event.special[f]||{},d=l[f=(r?h.delegateType:h.bindType)||f]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=s=d.length;s--;)c=d[s],!i&&m!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(d.splice(s,1),c.selector&&d.delegateCount--,h.remove&&h.remove.call(t,c));o&&!d.length&&(h.teardown&&!1!==h.teardown.call(t,p,g.handle)||C.removeEvent(t,f,g.handle),delete l[f])}else for(f in l)C.event.remove(t,f+e[u],n,r,!0);C.isEmptyObject(l)&&Z.remove(t,"handle events")}},dispatch:function(t){var e,n,r,i,s,o,a=C.event.fix(t),l=new Array(arguments.length),u=(Z.get(this,"events")||{})[a.type]||[],c=C.event.special[a.type]||{};for(l[0]=a,e=1;e<arguments.length;e++)l[e]=arguments[e];if(a.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,a)){for(o=C.event.handlers.call(this,a,u),e=0;(i=o[e++])&&!a.isPropagationStopped();)for(a.currentTarget=i.elem,n=0;(s=i.handlers[n++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!a.rnamespace.test(s.namespace)||(a.handleObj=s,a.data=s.data,void 0!==(r=((C.event.special[s.origType]||{}).handle||s.handler).apply(i.elem,l))&&!1===(a.result=r)&&(a.preventDefault(),a.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,a),a.result}},handlers:function(t,e){var n,r,i,s,o,a=[],l=e.delegateCount,u=t.target;if(l&&u.nodeType&&!("click"===t.type&&t.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==t.type||!0!==u.disabled)){for(s=[],o={},n=0;n<l;n++)void 0===o[i=(r=e[n]).selector+" "]&&(o[i]=r.needsContext?C(i,this).index(u)>-1:C.find(i,this,null,[u]).length),o[i]&&s.push(r);s.length&&a.push({elem:u,handlers:s})}return u=this,l<e.length&&a.push({elem:u,handlers:e.slice(l)}),a},addProp:function(t,e){Object.defineProperty(C.Event.prototype,t,{enumerable:!0,configurable:!0,get:y(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[C.expando]?t:new C.Event(t)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==Et()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===Et()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&k(this,"input"))return this.click(),!1},_default:function(t){return k(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},C.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},C.Event=function(t,e){if(!(this instanceof C.Event))return new C.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?At:Dt,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&C.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[C.expando]=!0},C.Event.prototype={constructor:C.Event,isDefaultPrevented:Dt,isPropagationStopped:Dt,isImmediatePropagationStopped:Dt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=At,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=At,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=At,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},C.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(t){var e=t.button;return null==t.which&&wt.test(t.type)?null!=t.charCode?t.charCode:t.keyCode:!t.which&&void 0!==e&&xt.test(t.type)?1&e?1:2&e?3:4&e?2:0:t.which}},C.event.addProp),C.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){C.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,r=t.relatedTarget,i=t.handleObj;return r&&(r===this||C.contains(this,r))||(t.type=i.origType,n=i.handler.apply(this,arguments),t.type=e),n}}}),C.fn.extend({on:function(t,e,n,r){return Tt(this,t,e,n,r)},one:function(t,e,n,r){return Tt(this,t,e,n,r,1)},off:function(t,e,n){var r,i;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,C(t.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof t){for(i in t)this.off(i,e,t[i]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=Dt),this.each(function(){C.event.remove(this,t,n,e)})}});var St=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,It=/<script|<style|<link/i,kt=/checked\s*(?:[^=]|=\s*.checked.)/i,Lt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Mt(t,e){return k(t,"table")&&k(11!==e.nodeType?e:e.firstChild,"tr")&&C(t).children("tbody")[0]||t}function Nt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Ot(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function qt(t,e){var n,r,i,s,o,a,l,u;if(1===e.nodeType){if(Z.hasData(t)&&(s=Z.access(t),o=Z.set(e,s),u=s.events))for(i in delete o.handle,o.events={},u)for(n=0,r=u[i].length;n<r;n++)C.event.add(e,i,u[i][n]);Q.hasData(t)&&(a=Q.access(t),l=C.extend({},a),Q.set(e,l))}}function Rt(t,e){var n=e.nodeName.toLowerCase();"input"===n&&dt.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function Pt(t,e,n,r){e=u.apply([],e);var i,s,o,a,l,c,h=0,d=t.length,f=d-1,p=e[0],m=y(p);if(m||d>1&&"string"==typeof p&&!v.checkClone&&kt.test(p))return t.each(function(i){var s=t.eq(i);m&&(e[0]=p.call(this,i,s.html())),Pt(s,e,n,r)});if(d&&(s=(i=bt(e,t[0].ownerDocument,!1,t,r)).firstChild,1===i.childNodes.length&&(i=s),s||r)){for(a=(o=C.map(gt(i,"script"),Nt)).length;h<d;h++)l=i,h!==f&&(l=C.clone(l,!0,!0),a&&C.merge(o,gt(l,"script"))),n.call(t[h],l,h);if(a)for(c=o[o.length-1].ownerDocument,C.map(o,Ot),h=0;h<a;h++)l=o[h],pt.test(l.type||"")&&!Z.access(l,"globalEval")&&C.contains(c,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?C._evalUrl&&C._evalUrl(l.src):w(l.textContent.replace(Lt,""),c,l))}return t}function Bt(t,e,n){for(var r,i=e?C.filter(e,t):t,s=0;null!=(r=i[s]);s++)n||1!==r.nodeType||C.cleanData(gt(r)),r.parentNode&&(n&&C.contains(r.ownerDocument,r)&&vt(gt(r,"script")),r.parentNode.removeChild(r));return t}C.extend({htmlPrefilter:function(t){return t.replace(St,"<$1></$2>")},clone:function(t,e,n){var r,i,s,o,a=t.cloneNode(!0),l=C.contains(t.ownerDocument,t);if(!(v.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||C.isXMLDoc(t)))for(o=gt(a),r=0,i=(s=gt(t)).length;r<i;r++)Rt(s[r],o[r]);if(e)if(n)for(s=s||gt(t),o=o||gt(a),r=0,i=s.length;r<i;r++)qt(s[r],o[r]);else qt(t,a);return(o=gt(a,"script")).length>0&&vt(o,!l&&gt(t,"script")),a},cleanData:function(t){for(var e,n,r,i=C.event.special,s=0;void 0!==(n=t[s]);s++)if(J(n)){if(e=n[Z.expando]){if(e.events)for(r in e.events)i[r]?C.event.remove(n,r):C.removeEvent(n,r,e.handle);n[Z.expando]=void 0}n[Q.expando]&&(n[Q.expando]=void 0)}}}),C.fn.extend({detach:function(t){return Bt(this,t,!0)},remove:function(t){return Bt(this,t)},text:function(t){return z(this,function(t){return void 0===t?C.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return Pt(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Mt(this,t).appendChild(t)})},prepend:function(){return Pt(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Mt(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return Pt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return Pt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(C.cleanData(gt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return C.clone(this,t,e)})},html:function(t){return z(this,function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!It.test(t)&&!mt[(ft.exec(t)||["",""])[1].toLowerCase()]){t=C.htmlPrefilter(t);try{for(;n<r;n++)1===(e=this[n]||{}).nodeType&&(C.cleanData(gt(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return Pt(this,arguments,function(e){var n=this.parentNode;C.inArray(this,t)<0&&(C.cleanData(gt(this)),n&&n.replaceChild(e,this))},t)}}),C.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){C.fn[t]=function(t){for(var n,r=[],i=C(t),s=i.length-1,o=0;o<=s;o++)n=o===s?this:this.clone(!0),C(i[o])[e](n),c.apply(r,n.get());return this.pushStack(r)}});var Ut=new RegExp("^("+rt+")(?!px)[a-z%]+$","i"),Vt=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=n),e.getComputedStyle(t)},jt=new RegExp(st.join("|"),"i");function Yt(t,e,n){var r,i,s,o,a=t.style;return(n=n||Vt(t))&&(""!==(o=n.getPropertyValue(e)||n[e])||C.contains(t.ownerDocument,t)||(o=C.style(t,e)),!v.pixelBoxStyles()&&Ut.test(o)&&jt.test(e)&&(r=a.width,i=a.minWidth,s=a.maxWidth,a.minWidth=a.maxWidth=a.width=o,o=n.width,a.width=r,a.minWidth=i,a.maxWidth=s)),void 0!==o?o+"":o}function Ft(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function t(){if(c){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",_t.appendChild(u).appendChild(c);var t=n.getComputedStyle(c);r="1%"!==t.top,l=12===e(t.marginLeft),c.style.right="60%",a=36===e(t.right),i=36===e(t.width),c.style.position="absolute",s=36===c.offsetWidth||"absolute",_t.removeChild(u),c=null}}function e(t){return Math.round(parseFloat(t))}var r,i,s,a,l,u=o.createElement("div"),c=o.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle="content-box"===c.style.backgroundClip,C.extend(v,{boxSizingReliable:function(){return t(),i},pixelBoxStyles:function(){return t(),a},pixelPosition:function(){return t(),r},reliableMarginLeft:function(){return t(),l},scrollboxSize:function(){return t(),s}}))}();var Ht=/^(none|table(?!-c[ea]).+)/,zt=/^--/,Wt={position:"absolute",visibility:"hidden",display:"block"},$t={letterSpacing:"0",fontWeight:"400"},Gt=["Webkit","Moz","ms"],Kt=o.createElement("div").style;function Jt(t){var e=C.cssProps[t];return e||(e=C.cssProps[t]=function(t){if(t in Kt)return t;for(var e=t[0].toUpperCase()+t.slice(1),n=Gt.length;n--;)if((t=Gt[n]+e)in Kt)return t}(t)||t),e}function Xt(t,e,n){var r=it.exec(e);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):e}function Zt(t,e,n,r,i,s){var o="width"===e?1:0,a=0,l=0;if(n===(r?"border":"content"))return 0;for(;o<4;o+=2)"margin"===n&&(l+=C.css(t,n+st[o],!0,i)),r?("content"===n&&(l-=C.css(t,"padding"+st[o],!0,i)),"margin"!==n&&(l-=C.css(t,"border"+st[o]+"Width",!0,i))):(l+=C.css(t,"padding"+st[o],!0,i),"padding"!==n?l+=C.css(t,"border"+st[o]+"Width",!0,i):a+=C.css(t,"border"+st[o]+"Width",!0,i));return!r&&s>=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-s-l-a-.5))),l}function Qt(t,e,n){var r=Vt(t),i=Yt(t,e,r),s="border-box"===C.css(t,"boxSizing",!1,r),o=s;if(Ut.test(i)){if(!n)return i;i="auto"}return o=o&&(v.boxSizingReliable()||i===t.style[e]),("auto"===i||!parseFloat(i)&&"inline"===C.css(t,"display",!1,r))&&(i=t["offset"+e[0].toUpperCase()+e.slice(1)],o=!0),(i=parseFloat(i)||0)+Zt(t,e,n||(s?"border":"content"),o,r,i)+"px"}function te(t,e,n,r,i){return new te.prototype.init(t,e,n,r,i)}C.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Yt(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,n,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,s,o,a=K(e),l=zt.test(e),u=t.style;if(l||(e=Jt(a)),o=C.cssHooks[e]||C.cssHooks[a],void 0===n)return o&&"get"in o&&void 0!==(i=o.get(t,!1,r))?i:u[e];"string"===(s=typeof n)&&(i=it.exec(n))&&i[1]&&(n=lt(t,e,i),s="number"),null!=n&&n==n&&("number"===s&&(n+=i&&i[3]||(C.cssNumber[a]?"":"px")),v.clearCloneStyle||""!==n||0!==e.indexOf("background")||(u[e]="inherit"),o&&"set"in o&&void 0===(n=o.set(t,n,r))||(l?u.setProperty(e,n):u[e]=n))}},css:function(t,e,n,r){var i,s,o,a=K(e);return zt.test(e)||(e=Jt(a)),(o=C.cssHooks[e]||C.cssHooks[a])&&"get"in o&&(i=o.get(t,!0,n)),void 0===i&&(i=Yt(t,e,r)),"normal"===i&&e in $t&&(i=$t[e]),""===n||n?(s=parseFloat(i),!0===n||isFinite(s)?s||0:i):i}}),C.each(["height","width"],function(t,e){C.cssHooks[e]={get:function(t,n,r){if(n)return!Ht.test(C.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?Qt(t,e,r):at(t,Wt,function(){return Qt(t,e,r)})},set:function(t,n,r){var i,s=Vt(t),o="border-box"===C.css(t,"boxSizing",!1,s),a=r&&Zt(t,e,r,o,s);return o&&v.scrollboxSize()===s.position&&(a-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(s[e])-Zt(t,e,"border",!1,s)-.5)),a&&(i=it.exec(n))&&"px"!==(i[3]||"px")&&(t.style[e]=n,n=C.css(t,e)),Xt(0,n,a)}}}),C.cssHooks.marginLeft=Ft(v.reliableMarginLeft,function(t,e){if(e)return(parseFloat(Yt(t,"marginLeft"))||t.getBoundingClientRect().left-at(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),C.each({margin:"",padding:"",border:"Width"},function(t,e){C.cssHooks[t+e]={expand:function(n){for(var r=0,i={},s="string"==typeof n?n.split(" "):[n];r<4;r++)i[t+st[r]+e]=s[r]||s[r-2]||s[0];return i}},"margin"!==t&&(C.cssHooks[t+e].set=Xt)}),C.fn.extend({css:function(t,e){return z(this,function(t,e,n){var r,i,s={},o=0;if(Array.isArray(e)){for(r=Vt(t),i=e.length;o<i;o++)s[e[o]]=C.css(t,e[o],!1,r);return s}return void 0!==n?C.style(t,e,n):C.css(t,e)},t,e,arguments.length>1)}}),C.Tween=te,te.prototype={constructor:te,init:function(t,e,n,r,i,s){this.elem=t,this.prop=n,this.easing=i||C.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=s||(C.cssNumber[n]?"":"px")},cur:function(){var t=te.propHooks[this.prop];return t&&t.get?t.get(this):te.propHooks._default.get(this)},run:function(t){var e,n=te.propHooks[this.prop];return this.options.duration?this.pos=e=C.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):te.propHooks._default.set(this),this}},te.prototype.init.prototype=te.prototype,te.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=C.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){C.fx.step[t.prop]?C.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[C.cssProps[t.prop]]&&!C.cssHooks[t.prop]?t.elem[t.prop]=t.now:C.style(t.elem,t.prop,t.now+t.unit)}}},te.propHooks.scrollTop=te.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},C.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},C.fx=te.prototype.init,C.fx.step={};var ee,ne,re=/^(?:toggle|show|hide)$/,ie=/queueHooks$/;function se(){ne&&(!1===o.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(se):n.setTimeout(se,C.fx.interval),C.fx.tick())}function oe(){return n.setTimeout(function(){ee=void 0}),ee=Date.now()}function ae(t,e){var n,r=0,i={height:t};for(e=e?1:0;r<4;r+=2-e)i["margin"+(n=st[r])]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function le(t,e,n){for(var r,i=(ue.tweeners[e]||[]).concat(ue.tweeners["*"]),s=0,o=i.length;s<o;s++)if(r=i[s].call(n,e,t))return r}function ue(t,e,n){var r,i,s=0,o=ue.prefilters.length,a=C.Deferred().always(function(){delete l.elem}),l=function(){if(i)return!1;for(var e=ee||oe(),n=Math.max(0,u.startTime+u.duration-e),r=1-(n/u.duration||0),s=0,o=u.tweens.length;s<o;s++)u.tweens[s].run(r);return a.notifyWith(t,[u,r,n]),r<1&&o?n:(o||a.notifyWith(t,[u,1,0]),a.resolveWith(t,[u]),!1)},u=a.promise({elem:t,props:C.extend({},e),opts:C.extend(!0,{specialEasing:{},easing:C.easing._default},n),originalProperties:e,originalOptions:n,startTime:ee||oe(),duration:n.duration,tweens:[],createTween:function(e,n){var r=C.Tween(t,u.opts,e,n,u.opts.specialEasing[e]||u.opts.easing);return u.tweens.push(r),r},stop:function(e){var n=0,r=e?u.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)u.tweens[n].run(1);return e?(a.notifyWith(t,[u,1,0]),a.resolveWith(t,[u,e])):a.rejectWith(t,[u,e]),this}}),c=u.props;for(!function(t,e){var n,r,i,s,o;for(n in t)if(i=e[r=K(n)],s=t[n],Array.isArray(s)&&(i=s[1],s=t[n]=s[0]),n!==r&&(t[r]=s,delete t[n]),(o=C.cssHooks[r])&&"expand"in o)for(n in s=o.expand(s),delete t[r],s)n in t||(t[n]=s[n],e[n]=i);else e[r]=i}(c,u.opts.specialEasing);s<o;s++)if(r=ue.prefilters[s].call(u,t,c,u.opts))return y(r.stop)&&(C._queueHooks(u.elem,u.opts.queue).stop=r.stop.bind(r)),r;return C.map(c,le,u),y(u.opts.start)&&u.opts.start.call(t,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),C.fx.timer(C.extend(l,{elem:t,anim:u,queue:u.opts.queue})),u}C.Animation=C.extend(ue,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return lt(n.elem,t,it.exec(e),n),n}]},tweener:function(t,e){y(t)?(e=t,t=["*"]):t=t.match(B);for(var n,r=0,i=t.length;r<i;r++)n=t[r],ue.tweeners[n]=ue.tweeners[n]||[],ue.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var r,i,s,o,a,l,u,c,h="width"in e||"height"in e,d=this,f={},p=t.style,m=t.nodeType&&ot(t),g=Z.get(t,"fxshow");for(r in n.queue||(null==(o=C._queueHooks(t,"fx")).unqueued&&(o.unqueued=0,a=o.empty.fire,o.empty.fire=function(){o.unqueued||a()}),o.unqueued++,d.always(function(){d.always(function(){o.unqueued--,C.queue(t,"fx").length||o.empty.fire()})})),e)if(i=e[r],re.test(i)){if(delete e[r],s=s||"toggle"===i,i===(m?"hide":"show")){if("show"!==i||!g||void 0===g[r])continue;m=!0}f[r]=g&&g[r]||C.style(t,r)}if((l=!C.isEmptyObject(e))||!C.isEmptyObject(f))for(r in h&&1===t.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(u=g&&g.display)&&(u=Z.get(t,"display")),"none"===(c=C.css(t,"display"))&&(u?c=u:(ht([t],!0),u=t.style.display||u,c=C.css(t,"display"),ht([t]))),("inline"===c||"inline-block"===c&&null!=u)&&"none"===C.css(t,"float")&&(l||(d.done(function(){p.display=u}),null==u&&(c=p.display,u="none"===c?"":c)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",d.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]})),l=!1,f)l||(g?"hidden"in g&&(m=g.hidden):g=Z.access(t,"fxshow",{display:u}),s&&(g.hidden=!m),m&&ht([t],!0),d.done(function(){for(r in m||ht([t]),Z.remove(t,"fxshow"),f)C.style(t,r,f[r])})),l=le(m?g[r]:0,r,d),r in g||(g[r]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?ue.prefilters.unshift(t):ue.prefilters.push(t)}}),C.speed=function(t,e,n){var r=t&&"object"==typeof t?C.extend({},t):{complete:n||!n&&e||y(t)&&t,duration:t,easing:n&&e||e&&!y(e)&&e};return C.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in C.fx.speeds?r.duration=C.fx.speeds[r.duration]:r.duration=C.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){y(r.old)&&r.old.call(this),r.queue&&C.dequeue(this,r.queue)},r},C.fn.extend({fadeTo:function(t,e,n,r){return this.filter(ot).css("opacity",0).show().end().animate({opacity:e},t,n,r)},animate:function(t,e,n,r){var i=C.isEmptyObject(t),s=C.speed(e,n,r),o=function(){var e=ue(this,C.extend({},t),s);(i||Z.get(this,"finish"))&&e.stop(!0)};return o.finish=o,i||!1===s.queue?this.each(o):this.queue(s.queue,o)},stop:function(t,e,n){var r=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&!1!==t&&this.queue(t||"fx",[]),this.each(function(){var e=!0,i=null!=t&&t+"queueHooks",s=C.timers,o=Z.get(this);if(i)o[i]&&o[i].stop&&r(o[i]);else for(i in o)o[i]&&o[i].stop&&ie.test(i)&&r(o[i]);for(i=s.length;i--;)s[i].elem!==this||null!=t&&s[i].queue!==t||(s[i].anim.stop(n),e=!1,s.splice(i,1));!e&&n||C.dequeue(this,t)})},finish:function(t){return!1!==t&&(t=t||"fx"),this.each(function(){var e,n=Z.get(this),r=n[t+"queue"],i=n[t+"queueHooks"],s=C.timers,o=r?r.length:0;for(n.finish=!0,C.queue(this,t,[]),i&&i.stop&&i.stop.call(this,!0),e=s.length;e--;)s[e].elem===this&&s[e].queue===t&&(s[e].anim.stop(!0),s.splice(e,1));for(e=0;e<o;e++)r[e]&&r[e].finish&&r[e].finish.call(this);delete n.finish})}}),C.each(["toggle","show","hide"],function(t,e){var n=C.fn[e];C.fn[e]=function(t,r,i){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(ae(e,!0),t,r,i)}}),C.each({slideDown:ae("show"),slideUp:ae("hide"),slideToggle:ae("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){C.fn[t]=function(t,n,r){return this.animate(e,t,n,r)}}),C.timers=[],C.fx.tick=function(){var t,e=0,n=C.timers;for(ee=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||C.fx.stop(),ee=void 0},C.fx.timer=function(t){C.timers.push(t),C.fx.start()},C.fx.interval=13,C.fx.start=function(){ne||(ne=!0,se())},C.fx.stop=function(){ne=null},C.fx.speeds={slow:600,fast:200,_default:400},C.fn.delay=function(t,e){return t=C.fx&&C.fx.speeds[t]||t,e=e||"fx",this.queue(e,function(e,r){var i=n.setTimeout(e,t);r.stop=function(){n.clearTimeout(i)}})},function(){var t=o.createElement("input"),e=o.createElement("select").appendChild(o.createElement("option"));t.type="checkbox",v.checkOn=""!==t.value,v.optSelected=e.selected,(t=o.createElement("input")).value="t",t.type="radio",v.radioValue="t"===t.value}();var ce,he=C.expr.attrHandle;C.fn.extend({attr:function(t,e){return z(this,C.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){C.removeAttr(this,t)})}}),C.extend({attr:function(t,e,n){var r,i,s=t.nodeType;if(3!==s&&8!==s&&2!==s)return void 0===t.getAttribute?C.prop(t,e,n):(1===s&&C.isXMLDoc(t)||(i=C.attrHooks[e.toLowerCase()]||(C.expr.match.bool.test(e)?ce:void 0)),void 0!==n?null===n?void C.removeAttr(t,e):i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:(t.setAttribute(e,n+""),n):i&&"get"in i&&null!==(r=i.get(t,e))?r:null==(r=C.find.attr(t,e))?void 0:r)},attrHooks:{type:{set:function(t,e){if(!v.radioValue&&"radio"===e&&k(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,r=0,i=e&&e.match(B);if(i&&1===t.nodeType)for(;n=i[r++];)t.removeAttribute(n)}}),ce={set:function(t,e,n){return!1===e?C.removeAttr(t,n):t.setAttribute(n,n),n}},C.each(C.expr.match.bool.source.match(/\w+/g),function(t,e){var n=he[e]||C.find.attr;he[e]=function(t,e,r){var i,s,o=e.toLowerCase();return r||(s=he[o],he[o]=i,i=null!=n(t,e,r)?o:null,he[o]=s),i}});var de=/^(?:input|select|textarea|button)$/i,fe=/^(?:a|area)$/i;function pe(t){return(t.match(B)||[]).join(" ")}function me(t){return t.getAttribute&&t.getAttribute("class")||""}function ge(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(B)||[]}C.fn.extend({prop:function(t,e){return z(this,C.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[C.propFix[t]||t]})}}),C.extend({prop:function(t,e,n){var r,i,s=t.nodeType;if(3!==s&&8!==s&&2!==s)return 1===s&&C.isXMLDoc(t)||(e=C.propFix[e]||e,i=C.propHooks[e]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:t[e]=n:i&&"get"in i&&null!==(r=i.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){var e=C.find.attr(t,"tabindex");return e?parseInt(e,10):de.test(t.nodeName)||fe.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(C.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),C.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){C.propFix[this.toLowerCase()]=this}),C.fn.extend({addClass:function(t){var e,n,r,i,s,o,a,l=0;if(y(t))return this.each(function(e){C(this).addClass(t.call(this,e,me(this)))});if((e=ge(t)).length)for(;n=this[l++];)if(i=me(n),r=1===n.nodeType&&" "+pe(i)+" "){for(o=0;s=e[o++];)r.indexOf(" "+s+" ")<0&&(r+=s+" ");i!==(a=pe(r))&&n.setAttribute("class",a)}return this},removeClass:function(t){var e,n,r,i,s,o,a,l=0;if(y(t))return this.each(function(e){C(this).removeClass(t.call(this,e,me(this)))});if(!arguments.length)return this.attr("class","");if((e=ge(t)).length)for(;n=this[l++];)if(i=me(n),r=1===n.nodeType&&" "+pe(i)+" "){for(o=0;s=e[o++];)for(;r.indexOf(" "+s+" ")>-1;)r=r.replace(" "+s+" "," ");i!==(a=pe(r))&&n.setAttribute("class",a)}return this},toggleClass:function(t,e){var n=typeof t,r="string"===n||Array.isArray(t);return"boolean"==typeof e&&r?e?this.addClass(t):this.removeClass(t):y(t)?this.each(function(n){C(this).toggleClass(t.call(this,n,me(this),e),e)}):this.each(function(){var e,i,s,o;if(r)for(i=0,s=C(this),o=ge(t);e=o[i++];)s.hasClass(e)?s.removeClass(e):s.addClass(e);else void 0!==t&&"boolean"!==n||((e=me(this))&&Z.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":Z.get(this,"__className__")||""))})},hasClass:function(t){var e,n,r=0;for(e=" "+t+" ";n=this[r++];)if(1===n.nodeType&&(" "+pe(me(n))+" ").indexOf(e)>-1)return!0;return!1}});var ve=/\r/g;C.fn.extend({val:function(t){var e,n,r,i=this[0];return arguments.length?(r=y(t),this.each(function(n){var i;1===this.nodeType&&(null==(i=r?t.call(this,n,C(this).val()):t)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=C.map(i,function(t){return null==t?"":t+""})),(e=C.valHooks[this.type]||C.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))})):i?(e=C.valHooks[i.type]||C.valHooks[i.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(ve,""):null==n?"":n:void 0}}),C.extend({valHooks:{option:{get:function(t){var e=C.find.attr(t,"value");return null!=e?e:pe(C.text(t))}},select:{get:function(t){var e,n,r,i=t.options,s=t.selectedIndex,o="select-one"===t.type,a=o?null:[],l=o?s+1:i.length;for(r=s<0?l:o?s:0;r<l;r++)if(((n=i[r]).selected||r===s)&&!n.disabled&&(!n.parentNode.disabled||!k(n.parentNode,"optgroup"))){if(e=C(n).val(),o)return e;a.push(e)}return a},set:function(t,e){for(var n,r,i=t.options,s=C.makeArray(e),o=i.length;o--;)((r=i[o]).selected=C.inArray(C.valHooks.option.get(r),s)>-1)&&(n=!0);return n||(t.selectedIndex=-1),s}}}}),C.each(["radio","checkbox"],function(){C.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=C.inArray(C(t).val(),e)>-1}},v.checkOn||(C.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),v.focusin="onfocusin"in n;var ye=/^(?:focusinfocus|focusoutblur)$/,be=function(t){t.stopPropagation()};C.extend(C.event,{trigger:function(t,e,r,i){var s,a,l,u,c,h,d,f,m=[r||o],g=p.call(t,"type")?t.type:t,v=p.call(t,"namespace")?t.namespace.split("."):[];if(a=f=l=r=r||o,3!==r.nodeType&&8!==r.nodeType&&!ye.test(g+C.event.triggered)&&(g.indexOf(".")>-1&&(g=(v=g.split(".")).shift(),v.sort()),c=g.indexOf(":")<0&&"on"+g,(t=t[C.expando]?t:new C.Event(g,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=v.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),e=null==e?[t]:C.makeArray(e,[t]),d=C.event.special[g]||{},i||!d.trigger||!1!==d.trigger.apply(r,e))){if(!i&&!d.noBubble&&!b(r)){for(u=d.delegateType||g,ye.test(u+g)||(a=a.parentNode);a;a=a.parentNode)m.push(a),l=a;l===(r.ownerDocument||o)&&m.push(l.defaultView||l.parentWindow||n)}for(s=0;(a=m[s++])&&!t.isPropagationStopped();)f=a,t.type=s>1?u:d.bindType||g,(h=(Z.get(a,"events")||{})[t.type]&&Z.get(a,"handle"))&&h.apply(a,e),(h=c&&a[c])&&h.apply&&J(a)&&(t.result=h.apply(a,e),!1===t.result&&t.preventDefault());return t.type=g,i||t.isDefaultPrevented()||d._default&&!1!==d._default.apply(m.pop(),e)||!J(r)||c&&y(r[g])&&!b(r)&&((l=r[c])&&(r[c]=null),C.event.triggered=g,t.isPropagationStopped()&&f.addEventListener(g,be),r[g](),t.isPropagationStopped()&&f.removeEventListener(g,be),C.event.triggered=void 0,l&&(r[c]=l)),t.result}},simulate:function(t,e,n){var r=C.extend(new C.Event,n,{type:t,isSimulated:!0});C.event.trigger(r,null,e)}}),C.fn.extend({trigger:function(t,e){return this.each(function(){C.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return C.event.trigger(t,e,n,!0)}}),v.focusin||C.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){C.event.simulate(e,t.target,C.event.fix(t))};C.event.special[e]={setup:function(){var r=this.ownerDocument||this,i=Z.access(r,e);i||r.addEventListener(t,n,!0),Z.access(r,e,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=Z.access(r,e)-1;i?Z.access(r,e,i):(r.removeEventListener(t,n,!0),Z.remove(r,e))}}});var _e=n.location,we=Date.now(),xe=/\?/;C.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new n.DOMParser).parseFromString(t,"text/xml")}catch(t){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||C.error("Invalid XML: "+t),e};var Ce=/\[\]$/,Ae=/\r?\n/g,De=/^(?:submit|button|image|reset|file)$/i,Ee=/^(?:input|select|textarea|keygen)/i;function Te(t,e,n,r){var i;if(Array.isArray(e))C.each(e,function(e,i){n||Ce.test(t)?r(t,i):Te(t+"["+("object"==typeof i&&null!=i?e:"")+"]",i,n,r)});else if(n||"object"!==x(e))r(t,e);else for(i in e)Te(t+"["+i+"]",e[i],n,r)}C.param=function(t,e){var n,r=[],i=function(t,e){var n=y(e)?e():e;r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(Array.isArray(t)||t.jquery&&!C.isPlainObject(t))C.each(t,function(){i(this.name,this.value)});else for(n in t)Te(n,t[n],e,i);return r.join("&")},C.fn.extend({serialize:function(){return C.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=C.prop(this,"elements");return t?C.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!C(this).is(":disabled")&&Ee.test(this.nodeName)&&!De.test(t)&&(this.checked||!dt.test(t))}).map(function(t,e){var n=C(this).val();return null==n?null:Array.isArray(n)?C.map(n,function(t){return{name:e.name,value:t.replace(Ae,"\r\n")}}):{name:e.name,value:n.replace(Ae,"\r\n")}}).get()}});var Se=/%20/g,Ie=/#.*$/,ke=/([?&])_=[^&]*/,Le=/^(.*?):[ \t]*([^\r\n]*)$/gm,Me=/^(?:GET|HEAD)$/,Ne=/^\/\//,Oe={},qe={},Re="*/".concat("*"),Pe=o.createElement("a");function Be(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var r,i=0,s=e.toLowerCase().match(B)||[];if(y(n))for(;r=s[i++];)"+"===r[0]?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function Ue(t,e,n,r){var i={},s=t===qe;function o(a){var l;return i[a]=!0,C.each(t[a]||[],function(t,a){var u=a(e,n,r);return"string"!=typeof u||s||i[u]?s?!(l=u):void 0:(e.dataTypes.unshift(u),o(u),!1)}),l}return o(e.dataTypes[0])||!i["*"]&&o("*")}function Ve(t,e){var n,r,i=C.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((i[n]?t:r||(r={}))[n]=e[n]);return r&&C.extend(!0,t,r),t}Pe.href=_e.href,C.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:_e.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(_e.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Re,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":C.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Ve(Ve(t,C.ajaxSettings),e):Ve(C.ajaxSettings,t)},ajaxPrefilter:Be(Oe),ajaxTransport:Be(qe),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var r,i,s,a,l,u,c,h,d,f,p=C.ajaxSetup({},e),m=p.context||p,g=p.context&&(m.nodeType||m.jquery)?C(m):C.event,v=C.Deferred(),y=C.Callbacks("once memory"),b=p.statusCode||{},_={},w={},x="canceled",A={readyState:0,getResponseHeader:function(t){var e;if(c){if(!a)for(a={};e=Le.exec(s);)a[e[1].toLowerCase()]=e[2];e=a[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return c?s:null},setRequestHeader:function(t,e){return null==c&&(t=w[t.toLowerCase()]=w[t.toLowerCase()]||t,_[t]=e),this},overrideMimeType:function(t){return null==c&&(p.mimeType=t),this},statusCode:function(t){var e;if(t)if(c)A.always(t[A.status]);else for(e in t)b[e]=[b[e],t[e]];return this},abort:function(t){var e=t||x;return r&&r.abort(e),D(0,e),this}};if(v.promise(A),p.url=((t||p.url||_e.href)+"").replace(Ne,_e.protocol+"//"),p.type=e.method||e.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(B)||[""],null==p.crossDomain){u=o.createElement("a");try{u.href=p.url,u.href=u.href,p.crossDomain=Pe.protocol+"//"+Pe.host!=u.protocol+"//"+u.host}catch(t){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=C.param(p.data,p.traditional)),Ue(Oe,p,e,A),c)return A;for(d in(h=C.event&&p.global)&&0==C.active++&&C.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Me.test(p.type),i=p.url.replace(Ie,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Se,"+")):(f=p.url.slice(i.length),p.data&&(p.processData||"string"==typeof p.data)&&(i+=(xe.test(i)?"&":"?")+p.data,delete p.data),!1===p.cache&&(i=i.replace(ke,"$1"),f=(xe.test(i)?"&":"?")+"_="+we+++f),p.url=i+f),p.ifModified&&(C.lastModified[i]&&A.setRequestHeader("If-Modified-Since",C.lastModified[i]),C.etag[i]&&A.setRequestHeader("If-None-Match",C.etag[i])),(p.data&&p.hasContent&&!1!==p.contentType||e.contentType)&&A.setRequestHeader("Content-Type",p.contentType),A.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Re+"; q=0.01":""):p.accepts["*"]),p.headers)A.setRequestHeader(d,p.headers[d]);if(p.beforeSend&&(!1===p.beforeSend.call(m,A,p)||c))return A.abort();if(x="abort",y.add(p.complete),A.done(p.success),A.fail(p.error),r=Ue(qe,p,e,A)){if(A.readyState=1,h&&g.trigger("ajaxSend",[A,p]),c)return A;p.async&&p.timeout>0&&(l=n.setTimeout(function(){A.abort("timeout")},p.timeout));try{c=!1,r.send(_,D)}catch(t){if(c)throw t;D(-1,t)}}else D(-1,"No Transport");function D(t,e,o,a){var u,d,f,_,w,x=e;c||(c=!0,l&&n.clearTimeout(l),r=void 0,s=a||"",A.readyState=t>0?4:0,u=t>=200&&t<300||304===t,o&&(_=function(t,e,n){for(var r,i,s,o,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(i in a)if(a[i]&&a[i].test(r)){l.unshift(i);break}if(l[0]in n)s=l[0];else{for(i in n){if(!l[0]||t.converters[i+" "+l[0]]){s=i;break}o||(o=i)}s=s||o}if(s)return s!==l[0]&&l.unshift(s),n[s]}(p,A,o)),_=function(t,e,n,r){var i,s,o,a,l,u={},c=t.dataTypes.slice();if(c[1])for(o in t.converters)u[o.toLowerCase()]=t.converters[o];for(s=c.shift();s;)if(t.responseFields[s]&&(n[t.responseFields[s]]=e),!l&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=s,s=c.shift())if("*"===s)s=l;else if("*"!==l&&l!==s){if(!(o=u[l+" "+s]||u["* "+s]))for(i in u)if((a=i.split(" "))[1]===s&&(o=u[l+" "+a[0]]||u["* "+a[0]])){!0===o?o=u[i]:!0!==u[i]&&(s=a[0],c.unshift(a[1]));break}if(!0!==o)if(o&&t.throws)e=o(e);else try{e=o(e)}catch(t){return{state:"parsererror",error:o?t:"No conversion from "+l+" to "+s}}}return{state:"success",data:e}}(p,_,A,u),u?(p.ifModified&&((w=A.getResponseHeader("Last-Modified"))&&(C.lastModified[i]=w),(w=A.getResponseHeader("etag"))&&(C.etag[i]=w)),204===t||"HEAD"===p.type?x="nocontent":304===t?x="notmodified":(x=_.state,d=_.data,u=!(f=_.error))):(f=x,!t&&x||(x="error",t<0&&(t=0))),A.status=t,A.statusText=(e||x)+"",u?v.resolveWith(m,[d,x,A]):v.rejectWith(m,[A,x,f]),A.statusCode(b),b=void 0,h&&g.trigger(u?"ajaxSuccess":"ajaxError",[A,p,u?d:f]),y.fireWith(m,[A,x]),h&&(g.trigger("ajaxComplete",[A,p]),--C.active||C.event.trigger("ajaxStop")))}return A},getJSON:function(t,e,n){return C.get(t,e,n,"json")},getScript:function(t,e){return C.get(t,void 0,e,"script")}}),C.each(["get","post"],function(t,e){C[e]=function(t,n,r,i){return y(n)&&(i=i||r,r=n,n=void 0),C.ajax(C.extend({url:t,type:e,dataType:i,data:n,success:r},C.isPlainObject(t)&&t))}}),C._evalUrl=function(t){return C.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},C.fn.extend({wrapAll:function(t){var e;return this[0]&&(y(t)&&(t=t.call(this[0])),e=C(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(t){return y(t)?this.each(function(e){C(this).wrapInner(t.call(this,e))}):this.each(function(){var e=C(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=y(t);return this.each(function(n){C(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){C(this).replaceWith(this.childNodes)}),this}}),C.expr.pseudos.hidden=function(t){return!C.expr.pseudos.visible(t)},C.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},C.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}};var je={0:200,1223:204},Ye=C.ajaxSettings.xhr();v.cors=!!Ye&&"withCredentials"in Ye,v.ajax=Ye=!!Ye,C.ajaxTransport(function(t){var e,r;if(v.cors||Ye&&!t.crossDomain)return{send:function(i,s){var o,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)a[o]=t.xhrFields[o];for(o in t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)a.setRequestHeader(o,i[o]);e=function(t){return function(){e&&(e=r=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?s(0,"error"):s(a.status,a.statusText):s(je[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=e(),r=a.onerror=a.ontimeout=e("error"),void 0!==a.onabort?a.onabort=r:a.onreadystatechange=function(){4===a.readyState&&n.setTimeout(function(){e&&r()})},e=e("abort");try{a.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}}),C.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),C.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return C.globalEval(t),t}}}),C.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),C.ajaxTransport("script",function(t){var e,n;if(t.crossDomain)return{send:function(r,i){e=C("<script>").prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&i("error"===t.type?404:200,t.type)}),o.head.appendChild(e[0])},abort:function(){n&&n()}}});var Fe=[],He=/(=)\?(?=&|$)|\?\?/;C.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Fe.pop()||C.expando+"_"+we++;return this[t]=!0,t}}),C.ajaxPrefilter("json jsonp",function(t,e,r){var i,s,o,a=!1!==t.jsonp&&(He.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&He.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=y(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(He,"$1"+i):!1!==t.jsonp&&(t.url+=(xe.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return o||C.error(i+" was not called"),o[0]},t.dataTypes[0]="json",s=n[i],n[i]=function(){o=arguments},r.always(function(){void 0===s?C(n).removeProp(i):n[i]=s,t[i]&&(t.jsonpCallback=e.jsonpCallback,Fe.push(i)),o&&y(s)&&s(o[0]),o=s=void 0}),"script"}),v.createHTMLDocument=function(){var t=o.implementation.createHTMLDocument("").body;return t.innerHTML="<form></form><form></form>",2===t.childNodes.length}(),C.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(v.createHTMLDocument?((r=(e=o.implementation.createHTMLDocument("")).createElement("base")).href=o.location.href,e.head.appendChild(r)):e=o),i=L.exec(t),s=!n&&[],i?[e.createElement(i[1])]:(i=bt([t],e,s),s&&s.length&&C(s).remove(),C.merge([],i.childNodes)));var r,i,s},C.fn.load=function(t,e,n){var r,i,s,o=this,a=t.indexOf(" ");return a>-1&&(r=pe(t.slice(a)),t=t.slice(0,a)),y(e)?(n=e,e=void 0):e&&"object"==typeof e&&(i="POST"),o.length>0&&C.ajax({url:t,type:i||"GET",dataType:"html",data:e}).done(function(t){s=arguments,o.html(r?C("<div>").append(C.parseHTML(t)).find(r):t)}).always(n&&function(t,e){o.each(function(){n.apply(this,s||[t.responseText,e,t])})}),this},C.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){C.fn[e]=function(t){return this.on(e,t)}}),C.expr.pseudos.animated=function(t){return C.grep(C.timers,function(e){return t===e.elem}).length},C.offset={setOffset:function(t,e,n){var r,i,s,o,a,l,u=C.css(t,"position"),c=C(t),h={};"static"===u&&(t.style.position="relative"),a=c.offset(),s=C.css(t,"top"),l=C.css(t,"left"),("absolute"===u||"fixed"===u)&&(s+l).indexOf("auto")>-1?(o=(r=c.position()).top,i=r.left):(o=parseFloat(s)||0,i=parseFloat(l)||0),y(e)&&(e=e.call(t,n,C.extend({},a))),null!=e.top&&(h.top=e.top-a.top+o),null!=e.left&&(h.left=e.left-a.left+i),"using"in e?e.using.call(t,h):c.css(h)}},C.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){C.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,r=this[0],i={top:0,left:0};if("fixed"===C.css(r,"position"))e=r.getBoundingClientRect();else{for(e=this.offset(),n=r.ownerDocument,t=r.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===C.css(t,"position");)t=t.parentNode;t&&t!==r&&1===t.nodeType&&((i=C(t).offset()).top+=C.css(t,"borderTopWidth",!0),i.left+=C.css(t,"borderLeftWidth",!0))}return{top:e.top-i.top-C.css(r,"marginTop",!0),left:e.left-i.left-C.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===C.css(t,"position");)t=t.offsetParent;return t||_t})}}),C.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n="pageYOffset"===e;C.fn[t]=function(r){return z(this,function(t,r,i){var s;if(b(t)?s=t:9===t.nodeType&&(s=t.defaultView),void 0===i)return s?s[e]:t[r];s?s.scrollTo(n?s.pageXOffset:i,n?i:s.pageYOffset):t[r]=i},t,r,arguments.length)}}),C.each(["top","left"],function(t,e){C.cssHooks[e]=Ft(v.pixelPosition,function(t,n){if(n)return n=Yt(t,e),Ut.test(n)?C(t).position()[e]+"px":n})}),C.each({Height:"height",Width:"width"},function(t,e){C.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,r){C.fn[r]=function(i,s){var o=arguments.length&&(n||"boolean"!=typeof i),a=n||(!0===i||!0===s?"margin":"border");return z(this,function(e,n,i){var s;return b(e)?0===r.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(s=e.documentElement,Math.max(e.body["scroll"+t],s["scroll"+t],e.body["offset"+t],s["offset"+t],s["client"+t])):void 0===i?C.css(e,n,a):C.style(e,n,i,a)},e,o?i:void 0,o)}})}),C.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,e){C.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),C.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),C.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,r){return this.on(e,t,n,r)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)}}),C.proxy=function(t,e){var n,r,i;if("string"==typeof e&&(n=t[e],e=t,t=n),y(t))return r=l.call(arguments,2),(i=function(){return t.apply(e||this,r.concat(l.call(arguments)))}).guid=t.guid=t.guid||C.guid++,i},C.holdReady=function(t){t?C.readyWait++:C.ready(!0)},C.isArray=Array.isArray,C.parseJSON=JSON.parse,C.nodeName=k,C.isFunction=y,C.isWindow=b,C.camelCase=K,C.type=x,C.now=Date.now,C.isNumeric=function(t){var e=C.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},void 0===(r=function(){return C}.apply(e,[]))||(t.exports=r);var ze=n.jQuery,We=n.$;return C.noConflict=function(t){return n.$===C&&(n.$=We),t&&n.jQuery===C&&(n.jQuery=ze),C},i||(n.jQuery=n.$=C),C})},function(t,e,n){var r;void 0===(r=function(t){"use strict";var e=n(4),r=n(56),i={};return e.each(["account","aliases","attachment","avatar","folder","dav","keyboard","message","navigation","notification","preference","state","sync","ui"],function(t){i[t]=r.channel(t)}),i}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){(function(t,n){var r;!function(){var i="object"==typeof self&&self.self===self&&self||"object"==typeof t&&t.global===t&&t||this||{},s=i._,o=Array.prototype,a=Object.prototype,l="undefined"!=typeof Symbol?Symbol.prototype:null,u=o.push,c=o.slice,h=a.toString,d=a.hasOwnProperty,f=Array.isArray,p=Object.keys,m=Object.create,g=function(){},v=function(t){return t instanceof v?t:this instanceof v?void(this._wrapped=t):new v(t)};void 0===e||e.nodeType?i._=v:(void 0!==n&&!n.nodeType&&n.exports&&(e=n.exports=v),e._=v),v.VERSION="1.9.1";var y,b=function(t,e,n){if(void 0===e)return t;switch(null==n?3:n){case 1:return function(n){return t.call(e,n)};case 3:return function(n,r,i){return t.call(e,n,r,i)};case 4:return function(n,r,i,s){return t.call(e,n,r,i,s)}}return function(){return t.apply(e,arguments)}},_=function(t,e,n){return v.iteratee!==y?v.iteratee(t,e):null==t?v.identity:v.isFunction(t)?b(t,e,n):v.isObject(t)&&!v.isArray(t)?v.matcher(t):v.property(t)};v.iteratee=y=function(t,e){return _(t,e,1/0)};var w=function(t,e){return e=null==e?t.length-1:+e,function(){for(var n=Math.max(arguments.length-e,0),r=Array(n),i=0;i<n;i++)r[i]=arguments[i+e];switch(e){case 0:return t.call(this,r);case 1:return t.call(this,arguments[0],r);case 2:return t.call(this,arguments[0],arguments[1],r)}var s=Array(e+1);for(i=0;i<e;i++)s[i]=arguments[i];return s[e]=r,t.apply(this,s)}},x=function(t){if(!v.isObject(t))return{};if(m)return m(t);g.prototype=t;var e=new g;return g.prototype=null,e},C=function(t){return function(e){return null==e?void 0:e[t]}},A=function(t,e){return null!=t&&d.call(t,e)},D=function(t,e){for(var n=e.length,r=0;r<n;r++){if(null==t)return;t=t[e[r]]}return n?t:void 0},E=Math.pow(2,53)-1,T=C("length"),S=function(t){var e=T(t);return"number"==typeof e&&e>=0&&e<=E};v.each=v.forEach=function(t,e,n){var r,i;if(e=b(e,n),S(t))for(r=0,i=t.length;r<i;r++)e(t[r],r,t);else{var s=v.keys(t);for(r=0,i=s.length;r<i;r++)e(t[s[r]],s[r],t)}return t},v.map=v.collect=function(t,e,n){e=_(e,n);for(var r=!S(t)&&v.keys(t),i=(r||t).length,s=Array(i),o=0;o<i;o++){var a=r?r[o]:o;s[o]=e(t[a],a,t)}return s};var I=function(t){return function(e,n,r,i){var s=arguments.length>=3;return function(e,n,r,i){var s=!S(e)&&v.keys(e),o=(s||e).length,a=t>0?0:o-1;for(i||(r=e[s?s[a]:a],a+=t);a>=0&&a<o;a+=t){var l=s?s[a]:a;r=n(r,e[l],l,e)}return r}(e,b(n,i,4),r,s)}};v.reduce=v.foldl=v.inject=I(1),v.reduceRight=v.foldr=I(-1),v.find=v.detect=function(t,e,n){var r=(S(t)?v.findIndex:v.findKey)(t,e,n);if(void 0!==r&&-1!==r)return t[r]},v.filter=v.select=function(t,e,n){var r=[];return e=_(e,n),v.each(t,function(t,n,i){e(t,n,i)&&r.push(t)}),r},v.reject=function(t,e,n){return v.filter(t,v.negate(_(e)),n)},v.every=v.all=function(t,e,n){e=_(e,n);for(var r=!S(t)&&v.keys(t),i=(r||t).length,s=0;s<i;s++){var o=r?r[s]:s;if(!e(t[o],o,t))return!1}return!0},v.some=v.any=function(t,e,n){e=_(e,n);for(var r=!S(t)&&v.keys(t),i=(r||t).length,s=0;s<i;s++){var o=r?r[s]:s;if(e(t[o],o,t))return!0}return!1},v.contains=v.includes=v.include=function(t,e,n,r){return S(t)||(t=v.values(t)),("number"!=typeof n||r)&&(n=0),v.indexOf(t,e,n)>=0},v.invoke=w(function(t,e,n){var r,i;return v.isFunction(e)?i=e:v.isArray(e)&&(r=e.slice(0,-1),e=e[e.length-1]),v.map(t,function(t){var s=i;if(!s){if(r&&r.length&&(t=D(t,r)),null==t)return;s=t[e]}return null==s?s:s.apply(t,n)})}),v.pluck=function(t,e){return v.map(t,v.property(e))},v.where=function(t,e){return v.filter(t,v.matcher(e))},v.findWhere=function(t,e){return v.find(t,v.matcher(e))},v.max=function(t,e,n){var r,i,s=-1/0,o=-1/0;if(null==e||"number"==typeof e&&"object"!=typeof t[0]&&null!=t)for(var a=0,l=(t=S(t)?t:v.values(t)).length;a<l;a++)null!=(r=t[a])&&r>s&&(s=r);else e=_(e,n),v.each(t,function(t,n,r){((i=e(t,n,r))>o||i===-1/0&&s===-1/0)&&(s=t,o=i)});return s},v.min=function(t,e,n){var r,i,s=1/0,o=1/0;if(null==e||"number"==typeof e&&"object"!=typeof t[0]&&null!=t)for(var a=0,l=(t=S(t)?t:v.values(t)).length;a<l;a++)null!=(r=t[a])&&r<s&&(s=r);else e=_(e,n),v.each(t,function(t,n,r){((i=e(t,n,r))<o||i===1/0&&s===1/0)&&(s=t,o=i)});return s},v.shuffle=function(t){return v.sample(t,1/0)},v.sample=function(t,e,n){if(null==e||n)return S(t)||(t=v.values(t)),t[v.random(t.length-1)];var r=S(t)?v.clone(t):v.values(t),i=T(r);e=Math.max(Math.min(e,i),0);for(var s=i-1,o=0;o<e;o++){var a=v.random(o,s),l=r[o];r[o]=r[a],r[a]=l}return r.slice(0,e)},v.sortBy=function(t,e,n){var r=0;return e=_(e,n),v.pluck(v.map(t,function(t,n,i){return{value:t,index:r++,criteria:e(t,n,i)}}).sort(function(t,e){var n=t.criteria,r=e.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return t.index-e.index}),"value")};var k=function(t,e){return function(n,r,i){var s=e?[[],[]]:{};return r=_(r,i),v.each(n,function(e,i){var o=r(e,i,n);t(s,e,o)}),s}};v.groupBy=k(function(t,e,n){A(t,n)?t[n].push(e):t[n]=[e]}),v.indexBy=k(function(t,e,n){t[n]=e}),v.countBy=k(function(t,e,n){A(t,n)?t[n]++:t[n]=1});var L=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;v.toArray=function(t){return t?v.isArray(t)?c.call(t):v.isString(t)?t.match(L):S(t)?v.map(t,v.identity):v.values(t):[]},v.size=function(t){return null==t?0:S(t)?t.length:v.keys(t).length},v.partition=k(function(t,e,n){t[n?0:1].push(e)},!0),v.first=v.head=v.take=function(t,e,n){return null==t||t.length<1?null==e?void 0:[]:null==e||n?t[0]:v.initial(t,t.length-e)},v.initial=function(t,e,n){return c.call(t,0,Math.max(0,t.length-(null==e||n?1:e)))},v.last=function(t,e,n){return null==t||t.length<1?null==e?void 0:[]:null==e||n?t[t.length-1]:v.rest(t,Math.max(0,t.length-e))},v.rest=v.tail=v.drop=function(t,e,n){return c.call(t,null==e||n?1:e)},v.compact=function(t){return v.filter(t,Boolean)};var M=function(t,e,n,r){for(var i=(r=r||[]).length,s=0,o=T(t);s<o;s++){var a=t[s];if(S(a)&&(v.isArray(a)||v.isArguments(a)))if(e)for(var l=0,u=a.length;l<u;)r[i++]=a[l++];else M(a,e,n,r),i=r.length;else n||(r[i++]=a)}return r};v.flatten=function(t,e){return M(t,e,!1)},v.without=w(function(t,e){return v.difference(t,e)}),v.uniq=v.unique=function(t,e,n,r){v.isBoolean(e)||(r=n,n=e,e=!1),null!=n&&(n=_(n,r));for(var i=[],s=[],o=0,a=T(t);o<a;o++){var l=t[o],u=n?n(l,o,t):l;e&&!n?(o&&s===u||i.push(l),s=u):n?v.contains(s,u)||(s.push(u),i.push(l)):v.contains(i,l)||i.push(l)}return i},v.union=w(function(t){return v.uniq(M(t,!0,!0))}),v.intersection=function(t){for(var e=[],n=arguments.length,r=0,i=T(t);r<i;r++){var s=t[r];if(!v.contains(e,s)){var o;for(o=1;o<n&&v.contains(arguments[o],s);o++);o===n&&e.push(s)}}return e},v.difference=w(function(t,e){return e=M(e,!0,!0),v.filter(t,function(t){return!v.contains(e,t)})}),v.unzip=function(t){for(var e=t&&v.max(t,T).length||0,n=Array(e),r=0;r<e;r++)n[r]=v.pluck(t,r);return n},v.zip=w(v.unzip),v.object=function(t,e){for(var n={},r=0,i=T(t);r<i;r++)e?n[t[r]]=e[r]:n[t[r][0]]=t[r][1];return n};var N=function(t){return function(e,n,r){n=_(n,r);for(var i=T(e),s=t>0?0:i-1;s>=0&&s<i;s+=t)if(n(e[s],s,e))return s;return-1}};v.findIndex=N(1),v.findLastIndex=N(-1),v.sortedIndex=function(t,e,n,r){for(var i=(n=_(n,r,1))(e),s=0,o=T(t);s<o;){var a=Math.floor((s+o)/2);n(t[a])<i?s=a+1:o=a}return s};var O=function(t,e,n){return function(r,i,s){var o=0,a=T(r);if("number"==typeof s)t>0?o=s>=0?s:Math.max(s+a,o):a=s>=0?Math.min(s+1,a):s+a+1;else if(n&&s&&a)return r[s=n(r,i)]===i?s:-1;if(i!=i)return(s=e(c.call(r,o,a),v.isNaN))>=0?s+o:-1;for(s=t>0?o:a-1;s>=0&&s<a;s+=t)if(r[s]===i)return s;return-1}};v.indexOf=O(1,v.findIndex,v.sortedIndex),v.lastIndexOf=O(-1,v.findLastIndex),v.range=function(t,e,n){null==e&&(e=t||0,t=0),n||(n=e<t?-1:1);for(var r=Math.max(Math.ceil((e-t)/n),0),i=Array(r),s=0;s<r;s++,t+=n)i[s]=t;return i},v.chunk=function(t,e){if(null==e||e<1)return[];for(var n=[],r=0,i=t.length;r<i;)n.push(c.call(t,r,r+=e));return n};var q=function(t,e,n,r,i){if(!(r instanceof e))return t.apply(n,i);var s=x(t.prototype),o=t.apply(s,i);return v.isObject(o)?o:s};v.bind=w(function(t,e,n){if(!v.isFunction(t))throw new TypeError("Bind must be called on a function");var r=w(function(i){return q(t,r,e,this,n.concat(i))});return r}),v.partial=w(function(t,e){var n=v.partial.placeholder,r=function(){for(var i=0,s=e.length,o=Array(s),a=0;a<s;a++)o[a]=e[a]===n?arguments[i++]:e[a];for(;i<arguments.length;)o.push(arguments[i++]);return q(t,r,this,this,o)};return r}),v.partial.placeholder=v,v.bindAll=w(function(t,e){var n=(e=M(e,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=e[n];t[r]=v.bind(t[r],t)}}),v.memoize=function(t,e){var n=function(r){var i=n.cache,s=""+(e?e.apply(this,arguments):r);return A(i,s)||(i[s]=t.apply(this,arguments)),i[s]};return n.cache={},n},v.delay=w(function(t,e,n){return setTimeout(function(){return t.apply(null,n)},e)}),v.defer=v.partial(v.delay,v,1),v.throttle=function(t,e,n){var r,i,s,o,a=0;n||(n={});var l=function(){a=!1===n.leading?0:v.now(),r=null,o=t.apply(i,s),r||(i=s=null)},u=function(){var u=v.now();a||!1!==n.leading||(a=u);var c=e-(u-a);return i=this,s=arguments,c<=0||c>e?(r&&(clearTimeout(r),r=null),a=u,o=t.apply(i,s),r||(i=s=null)):r||!1===n.trailing||(r=setTimeout(l,c)),o};return u.cancel=function(){clearTimeout(r),a=0,r=i=s=null},u},v.debounce=function(t,e,n){var r,i,s=function(e,n){r=null,n&&(i=t.apply(e,n))},o=w(function(o){if(r&&clearTimeout(r),n){var a=!r;r=setTimeout(s,e),a&&(i=t.apply(this,o))}else r=v.delay(s,e,this,o);return i});return o.cancel=function(){clearTimeout(r),r=null},o},v.wrap=function(t,e){return v.partial(e,t)},v.negate=function(t){return function(){return!t.apply(this,arguments)}},v.compose=function(){var t=arguments,e=t.length-1;return function(){for(var n=e,r=t[e].apply(this,arguments);n--;)r=t[n].call(this,r);return r}},v.after=function(t,e){return function(){if(--t<1)return e.apply(this,arguments)}},v.before=function(t,e){var n;return function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=null),n}},v.once=v.partial(v.before,2),v.restArguments=w;var R=!{toString:null}.propertyIsEnumerable("toString"),P=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],B=function(t,e){var n=P.length,r=t.constructor,i=v.isFunction(r)&&r.prototype||a,s="constructor";for(A(t,s)&&!v.contains(e,s)&&e.push(s);n--;)(s=P[n])in t&&t[s]!==i[s]&&!v.contains(e,s)&&e.push(s)};v.keys=function(t){if(!v.isObject(t))return[];if(p)return p(t);var e=[];for(var n in t)A(t,n)&&e.push(n);return R&&B(t,e),e},v.allKeys=function(t){if(!v.isObject(t))return[];var e=[];for(var n in t)e.push(n);return R&&B(t,e),e},v.values=function(t){for(var e=v.keys(t),n=e.length,r=Array(n),i=0;i<n;i++)r[i]=t[e[i]];return r},v.mapObject=function(t,e,n){e=_(e,n);for(var r=v.keys(t),i=r.length,s={},o=0;o<i;o++){var a=r[o];s[a]=e(t[a],a,t)}return s},v.pairs=function(t){for(var e=v.keys(t),n=e.length,r=Array(n),i=0;i<n;i++)r[i]=[e[i],t[e[i]]];return r},v.invert=function(t){for(var e={},n=v.keys(t),r=0,i=n.length;r<i;r++)e[t[n[r]]]=n[r];return e},v.functions=v.methods=function(t){var e=[];for(var n in t)v.isFunction(t[n])&&e.push(n);return e.sort()};var U=function(t,e){return function(n){var r=arguments.length;if(e&&(n=Object(n)),r<2||null==n)return n;for(var i=1;i<r;i++)for(var s=arguments[i],o=t(s),a=o.length,l=0;l<a;l++){var u=o[l];e&&void 0!==n[u]||(n[u]=s[u])}return n}};v.extend=U(v.allKeys),v.extendOwn=v.assign=U(v.keys),v.findKey=function(t,e,n){e=_(e,n);for(var r,i=v.keys(t),s=0,o=i.length;s<o;s++)if(e(t[r=i[s]],r,t))return r};var V,j,Y=function(t,e,n){return e in n};v.pick=w(function(t,e){var n={},r=e[0];if(null==t)return n;v.isFunction(r)?(e.length>1&&(r=b(r,e[1])),e=v.allKeys(t)):(r=Y,e=M(e,!1,!1),t=Object(t));for(var i=0,s=e.length;i<s;i++){var o=e[i],a=t[o];r(a,o,t)&&(n[o]=a)}return n}),v.omit=w(function(t,e){var n,r=e[0];return v.isFunction(r)?(r=v.negate(r),e.length>1&&(n=e[1])):(e=v.map(M(e,!1,!1),String),r=function(t,n){return!v.contains(e,n)}),v.pick(t,r,n)}),v.defaults=U(v.allKeys,!0),v.create=function(t,e){var n=x(t);return e&&v.extendOwn(n,e),n},v.clone=function(t){return v.isObject(t)?v.isArray(t)?t.slice():v.extend({},t):t},v.tap=function(t,e){return e(t),t},v.isMatch=function(t,e){var n=v.keys(e),r=n.length;if(null==t)return!r;for(var i=Object(t),s=0;s<r;s++){var o=n[s];if(e[o]!==i[o]||!(o in i))return!1}return!0},V=function(t,e,n,r){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return!1;if(t!=t)return e!=e;var i=typeof t;return("function"===i||"object"===i||"object"==typeof e)&&j(t,e,n,r)},j=function(t,e,n,r){t instanceof v&&(t=t._wrapped),e instanceof v&&(e=e._wrapped);var i=h.call(t);if(i!==h.call(e))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!=+t?+e!=+e:0==+t?1/+t==1/e:+t==+e;case"[object Date]":case"[object Boolean]":return+t==+e;case"[object Symbol]":return l.valueOf.call(t)===l.valueOf.call(e)}var s="[object Array]"===i;if(!s){if("object"!=typeof t||"object"!=typeof e)return!1;var o=t.constructor,a=e.constructor;if(o!==a&&!(v.isFunction(o)&&o instanceof o&&v.isFunction(a)&&a instanceof a)&&"constructor"in t&&"constructor"in e)return!1}n=n||[],r=r||[];for(var u=n.length;u--;)if(n[u]===t)return r[u]===e;if(n.push(t),r.push(e),s){if((u=t.length)!==e.length)return!1;for(;u--;)if(!V(t[u],e[u],n,r))return!1}else{var c,d=v.keys(t);if(u=d.length,v.keys(e).length!==u)return!1;for(;u--;)if(c=d[u],!A(e,c)||!V(t[c],e[c],n,r))return!1}return n.pop(),r.pop(),!0},v.isEqual=function(t,e){return V(t,e)},v.isEmpty=function(t){return null==t||(S(t)&&(v.isArray(t)||v.isString(t)||v.isArguments(t))?0===t.length:0===v.keys(t).length)},v.isElement=function(t){return!(!t||1!==t.nodeType)},v.isArray=f||function(t){return"[object Array]"===h.call(t)},v.isObject=function(t){var e=typeof t;return"function"===e||"object"===e&&!!t},v.each(["Arguments","Function","String","Number","Date","RegExp","Error","Symbol","Map","WeakMap","Set","WeakSet"],function(t){v["is"+t]=function(e){return h.call(e)==="[object "+t+"]"}}),v.isArguments(arguments)||(v.isArguments=function(t){return A(t,"callee")});var F=i.document&&i.document.childNodes;"function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof F&&(v.isFunction=function(t){return"function"==typeof t||!1}),v.isFinite=function(t){return!v.isSymbol(t)&&isFinite(t)&&!isNaN(parseFloat(t))},v.isNaN=function(t){return v.isNumber(t)&&isNaN(t)},v.isBoolean=function(t){return!0===t||!1===t||"[object Boolean]"===h.call(t)},v.isNull=function(t){return null===t},v.isUndefined=function(t){return void 0===t},v.has=function(t,e){if(!v.isArray(e))return A(t,e);for(var n=e.length,r=0;r<n;r++){var i=e[r];if(null==t||!d.call(t,i))return!1;t=t[i]}return!!n},v.noConflict=function(){return i._=s,this},v.identity=function(t){return t},v.constant=function(t){return function(){return t}},v.noop=function(){},v.property=function(t){return v.isArray(t)?function(e){return D(e,t)}:C(t)},v.propertyOf=function(t){return null==t?function(){}:function(e){return v.isArray(e)?D(t,e):t[e]}},v.matcher=v.matches=function(t){return t=v.extendOwn({},t),function(e){return v.isMatch(e,t)}},v.times=function(t,e,n){var r=Array(Math.max(0,t));e=b(e,n,1);for(var i=0;i<t;i++)r[i]=e(i);return r},v.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))},v.now=Date.now||function(){return(new Date).getTime()};var H={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},z=v.invert(H),W=function(t){var e=function(e){return t[e]},n="(?:"+v.keys(t).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(t){return t=null==t?"":""+t,r.test(t)?t.replace(i,e):t}};v.escape=W(H),v.unescape=W(z),v.result=function(t,e,n){v.isArray(e)||(e=[e]);var r=e.length;if(!r)return v.isFunction(n)?n.call(t):n;for(var i=0;i<r;i++){var s=null==t?void 0:t[e[i]];void 0===s&&(s=n,i=r),t=v.isFunction(s)?s.call(t):s}return t};var $=0;v.uniqueId=function(t){var e=++$+"";return t?t+e:e},v.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var G=/(.)^/,K={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},J=/\\|'|\r|\n|\u2028|\u2029/g,X=function(t){return"\\"+K[t]};v.template=function(t,e,n){!e&&n&&(e=n),e=v.defaults({},e,v.templateSettings);var r,i=RegExp([(e.escape||G).source,(e.interpolate||G).source,(e.evaluate||G).source].join("|")+"|$","g"),s=0,o="__p+='";t.replace(i,function(e,n,r,i,a){return o+=t.slice(s,a).replace(J,X),s=a+e.length,n?o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?o+="'+\n((__t=("+r+"))==null?'':__t)+\n'":i&&(o+="';\n"+i+"\n__p+='"),e}),o+="';\n",e.variable||(o="with(obj||{}){\n"+o+"}\n"),o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{r=new Function(e.variable||"obj","_",o)}catch(t){throw t.source=o,t}var a=function(t){return r.call(this,t,v)},l=e.variable||"obj";return a.source="function("+l+"){\n"+o+"}",a},v.chain=function(t){var e=v(t);return e._chain=!0,e};var Z=function(t,e){return t._chain?v(e).chain():e};v.mixin=function(t){return v.each(v.functions(t),function(e){var n=v[e]=t[e];v.prototype[e]=function(){var t=[this._wrapped];return u.apply(t,arguments),Z(this,n.apply(v,t))}}),v},v.mixin(v),v.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var e=o[t];v.prototype[t]=function(){var n=this._wrapped;return e.apply(n,arguments),"shift"!==t&&"splice"!==t||0!==n.length||delete n[0],Z(this,n)}}),v.each(["concat","join","slice"],function(t){var e=o[t];v.prototype[t]=function(){return Z(this,e.apply(this._wrapped,arguments))}}),v.prototype.value=function(){return this._wrapped},v.prototype.valueOf=v.prototype.toJSON=v.prototype.value,v.prototype.toString=function(){return String(this._wrapped)},void 0===(r=function(){return v}.apply(e,[]))||(n.exports=r)}()}).call(this,n(10),n(23)(t))},function(t,e,n){t.exports=function(t,e,n){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t,e=e&&e.hasOwnProperty("default")?e.default:e,n=n&&n.hasOwnProperty("default")?n.default:n;var r=function(t){return function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.apply(e,r)}},i=t.Model.extend,s=function t(n,r){e.isObject(n)&&(n=n.prev+" is going to be removed in the future. Please use "+n.next+" instead."+(n.url?" See: "+n.url:"")),Mt.DEV_MODE&&(void 0!==r&&r||t._cache[n]||(t._warn("Deprecation warning: "+n),t._cache[n]=!0))};s._console="undefined"!=typeof console?console:{},s._warn=function(){var t=s._console.warn||s._console.log||e.noop;return t.apply(s._console,arguments)},s._cache={};var o=function(t){return document.documentElement.contains(t&&t.parentNode)},a=function(t,n){var r=this;t&&e.each(n,function(e){var n=t[e];void 0!==n&&(r[e]=n)})},l=function(t){if(t)return this.options&&void 0!==this.options[t]?this.options[t]:this[t]},u=function(t){var n=this;return e.reduce(t,function(t,r,i){return e.isFunction(r)||(r=n[r]),r&&(t[i]=r),t},{})},c=/(^|:)(\w)/gi;function h(t,e,n){return n.toUpperCase()}var d=e.memoize(function(t){return"on"+t.replace(c,h)});function f(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var s=d(t),o=l.call(this,s),a=void 0;return e.isFunction(o)&&(a=o.apply(this,r)),this.trigger.apply(this,arguments),a}function p(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return e.isFunction(t.triggerMethod)?t.triggerMethod.apply(t,r):f.apply(t,r)}function m(t,n,r){t._getImmediateChildren&&e.each(t._getImmediateChildren(),function(t){r(t)&&p(t,n,t)})}function g(t){return!t._isAttached}function v(t){return!!g(t)&&(t._isAttached=!0,!0)}function y(t){return t._isAttached}function b(t){return!!y(t)&&(t._isAttached=!1,!0)}function _(t){t._isAttached&&t._isRendered&&p(t,"dom:refresh",t)}function w(t){t._isAttached&&t._isRendered&&p(t,"dom:remove",t)}function x(){m(this,"before:attach",g)}function C(){m(this,"attach",v),_(this)}function A(){m(this,"before:detach",y),w(this)}function D(){m(this,"detach",b)}function E(){w(this)}function T(){_(this)}function S(t){t._areViewEventsMonitored||!1===t.monitorViewEvents||(t._areViewEventsMonitored=!0,t.on({"before:attach":x,attach:C,"before:detach":A,detach:D,"before:render":E,render:T}))}var I=["description","fileName","lineNumber","name","message","number"],k=i.call(Error,{urlRoot:"http://marionettejs.com/docs/v3.5.1/",constructor:function(t,n){e.isObject(t)?t=(n=t).message:n||(n={});var r=Error.call(this,t);e.extend(this,e.pick(r,I),e.pick(n,I)),this.captureStackTrace(),n.url&&(this.url=this.urlRoot+n.url)},captureStackTrace:function(){Error.captureStackTrace&&Error.captureStackTrace(this,k)},toString:function(){return this.name+": "+this.message+(this.url?" See: "+this.url:"")}});function L(t,n,r,i){if(!e.isObject(r))throw new k({message:"Bindings must be an object.",url:"marionette.functions.html#marionettebindevents"});e.each(r,function(r,o){e.isString(r)?function(t,n,r,i,o){var a=i.split(/\s+/);a.length>1&&s("Multiple handlers for a single event are deprecated. If needed, use a single handler to call multiple methods."),e.each(a,function(e){var i=t[e];if(!i)throw new k('Method "'+e+'" was configured as an event handler, but does not exist.');t[o](n,r,i)})}(t,n,o,r,i):t[i](n,o,r)})}function M(t,e){return t&&e?(L(this,t,e,"listenTo"),this):this}function N(t,e){return t?e?(L(this,t,e,"stopListening"),this):(this.stopListening(t),this):this}function O(t,n,r,i){if(!e.isObject(r))throw new k({message:"Bindings must be an object.",url:"marionette.functions.html#marionettebindrequests"});var s=u.call(t,r);n[i](s,t)}function q(t,e){return t&&e?(O(this,t,e,"reply"),this):this}function R(t,e){return t?e?(O(this,t,e,"stopReplying"),this):(t.stopReplying(null,null,this),this):this}k.extend=i;var P={normalizeMethods:u,_setOptions:function(t){this.options=e.extend({},e.result(this,"options"),t)},mergeOptions:a,getOption:l,bindEvents:M,unbindEvents:N},B={_initRadio:function(){var t=e.result(this,"channelName");if(t){if(!n)throw new k({name:"BackboneRadioMissing",message:'The dependency "backbone.radio" is missing.'});var r=this._channel=n.channel(t),i=e.result(this,"radioEvents");this.bindEvents(r,i);var s=e.result(this,"radioRequests");this.bindRequests(r,s),this.on("destroy",this._destroyRadio)}},_destroyRadio:function(){this._channel.stopReplying(null,null,this)},getChannel:function(){return this._channel},bindEvents:M,unbindEvents:N,bindRequests:q,unbindRequests:R},U=["channelName","radioEvents","radioRequests"],V=function(t){this.hasOwnProperty("options")||this._setOptions(t),this.mergeOptions(t,U),this._setCid(),this._initRadio(),this.initialize.apply(this,arguments)};V.extend=i,e.extend(V.prototype,t.Events,P,B,{cidPrefix:"mno",_isDestroyed:!1,isDestroyed:function(){return this._isDestroyed},initialize:function(){},_setCid:function(){this.cid||(this.cid=e.uniqueId(this.cidPrefix))},destroy:function(){if(this._isDestroyed)return this;for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.triggerMethod.apply(this,["before:destroy",this].concat(e)),this._isDestroyed=!0,this.triggerMethod.apply(this,["destroy",this].concat(e)),this.stopListening(),this},triggerMethod:f});var j=function(t){this.templateId=t};e.extend(j,{templateCaches:{},get:function(t,e){var n=this.templateCaches[t];return n||(n=new j(t),this.templateCaches[t]=n),n.load(e)},clear:function(){for(var t=void 0,e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=n.length;if(i>0)for(t=0;t<i;t++)delete this.templateCaches[n[t]];else this.templateCaches={}}}),e.extend(j.prototype,{load:function(t){if(this.compiledTemplate)return this.compiledTemplate;var e=this.loadTemplate(this.templateId,t);return this.compiledTemplate=this.compileTemplate(e,t),this.compiledTemplate},loadTemplate:function(e,n){var r=t.$(e);if(!r.length)throw new k({name:"NoTemplateError",message:'Could not find template: "'+e+'"'});return r.html()},compileTemplate:function(t,n){return e.template(t,n)}});var Y=e.invokeMap||e.invoke;function F(t,n){return e.chain(n).map(function(n,r){var i=function(t,n){return t.behaviorClass?t.behaviorClass:e.isFunction(t)?t:e.isFunction(Mt.Behaviors.behaviorsLookup)?Mt.Behaviors.behaviorsLookup(t,n)[n]:Mt.Behaviors.behaviorsLookup[n]}(n,r),s=n===i?{}:n,o=new i(s,t),a=F(t,e.result(o,"behaviors"));return[o].concat(a)}).flatten().value()}var H={_initBehaviors:function(){this._behaviors=this._getBehaviors()},_getBehaviors:function(){var t=e.result(this,"behaviors");return e.isObject(t)?F(this,t):{}},_getBehaviorTriggers:function(){var t=Y(this._behaviors,"getTriggers");return e.reduce(t,function(t,n){return e.extend(t,n)},{})},_getBehaviorEvents:function(){var t=Y(this._behaviors,"getEvents");return e.reduce(t,function(t,n){return e.extend(t,n)},{})},_proxyBehaviorViewProperties:function(){Y(this._behaviors,"proxyViewProperties")},_delegateBehaviorEntityEvents:function(){Y(this._behaviors,"delegateEntityEvents")},_undelegateBehaviorEntityEvents:function(){Y(this._behaviors,"undelegateEntityEvents")},_destroyBehaviors:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];Y.apply(void 0,[this._behaviors,"destroy"].concat(e))},_removeBehavior:function(t){this._isDestroyed||(this.undelegate(".trig"+t.cid+" ."+t.cid),this._behaviors=e.without(this._behaviors,t))},_bindBehaviorUIElements:function(){Y(this._behaviors,"bindUIElements")},_unbindBehaviorUIElements:function(){Y(this._behaviors,"unbindUIElements")},_triggerEventOnBehaviors:function(){for(var t=this._behaviors,e=0,n=t&&t.length;e<n;e++)f.apply(t[e],arguments)}},z={_delegateEntityEvents:function(t,n){var r=e.result(this,"modelEvents");r&&(N.call(this,t,r),M.call(this,t,r));var i=e.result(this,"collectionEvents");i&&(N.call(this,n,i),M.call(this,n,i))},_undelegateEntityEvents:function(t,n){var r=e.result(this,"modelEvents");N.call(this,t,r);var i=e.result(this,"collectionEvents");N.call(this,n,i)}},W=/^(\S+)\s*(.*)$/,$=function(t,e){var n=t.match(W);return n[1]+"."+e+" "+n[2]},G={childViewEventPrefix:!0,triggersStopPropagation:!0,triggersPreventDefault:!0};function K(t){return!!G[t]}var J={_getViewTriggers:function(t,n){var r=this;return e.reduce(n,function(n,i,s){return s=$(s,"trig"+r.cid),n[s]=function(t,n){e.isString(n)&&(n={event:n});var r=n.event,i=!!n.preventDefault;K("triggersPreventDefault")&&(i=!1!==n.preventDefault);var s=!!n.stopPropagation;return K("triggersStopPropagation")&&(s=!1!==n.stopPropagation),function(e){i&&e.preventDefault(),s&&e.stopPropagation(),t.triggerMethod(r,t,e)}}(t,i),n},{})}},X=function(t,e){return t.replace(/@ui\.[a-zA-Z-_$0-9]*/g,function(t){return e[t.slice(4)]})},Z={normalizeUIKeys:function(t){var n=this._getUIBindings();return function(t,n){return e.reduce(t,function(t,e,r){var i=X(r,n);return t[i]=e,t},{})}(t,n)},normalizeUIString:function(t){var e=this._getUIBindings();return X(t,e)},normalizeUIValues:function(t,n){var r=this._getUIBindings();return function t(n,r,i){return e.each(n,function(s,o){e.isString(s)?n[o]=X(s,r):e.isObject(s)&&e.isArray(i)&&(e.extend(s,t(e.pick(s,i),r)),e.each(i,function(t){var n=s[t];e.isString(n)&&(s[t]=X(n,r))}))}),n}(t,r,n)},_getUIBindings:function(){var t=e.result(this,"_uiBindings"),n=e.result(this,"ui");return t||n},_bindUIElements:function(){var t=this;if(this.ui){this._uiBindings||(this._uiBindings=this.ui);var n=e.result(this,"_uiBindings");this._ui={},e.each(n,function(e,n){t._ui[n]=t.$(e)}),this.ui=this._ui}},_unbindUIElements:function(){var t=this;this.ui&&this._uiBindings&&(e.each(this.ui,function(e,n){delete t.ui[n]}),this.ui=this._uiBindings,delete this._uiBindings,delete this._ui)},_getUI:function(t){return this._ui[t]}};function Q(e){return e instanceof t.$?e:t.$(e)}function tt(t){return this.prototype.Dom=e.extend({},this.prototype.Dom,t),this}var et={createBuffer:function(){return document.createDocumentFragment()},getEl:function(t){return Q(t)},findEl:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Q(t);return n.find(e)},hasEl:function(t,e){return t.contains(e&&e.parentNode)},detachEl:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Q(t);e.detach()},replaceEl:function(t,e){if(t!==e){var n=e.parentNode;n&&n.replaceChild(t,e)}},swapEl:function(t,e){if(t!==e){var n=t.parentNode,r=e.parentNode;if(n&&r){var i=t.nextSibling,s=e.nextSibling;n.insertBefore(e,i),r.insertBefore(t,s)}}},setContents:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Q(t);n.html(e)},appendContents:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n._$el,i=void 0===r?Q(t):r,s=n._$contents,o=void 0===s?Q(e):s;i.append(o)},hasContents:function(t){return!!t&&t.hasChildNodes()},detachContents:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Q(t);e.contents().detach()}},nt={Dom:et,supportsRenderLifecycle:!0,supportsDestroyLifecycle:!0,_isDestroyed:!1,isDestroyed:function(){return!!this._isDestroyed},_isRendered:!1,isRendered:function(){return!!this._isRendered},_isAttached:!1,isAttached:function(){return!!this._isAttached},delegateEvents:function(n){this._proxyBehaviorViewProperties(),this._buildEventProxies();var r=this._getEvents(n);void 0===n&&(this.events=r);var i=e.extend({},this._getBehaviorEvents(),r,this._getBehaviorTriggers(),this.getTriggers());return t.View.prototype.delegateEvents.call(this,i),this},_getEvents:function(t){var n=t||this.events;return e.isFunction(n)?this.normalizeUIKeys(n.call(this)):this.normalizeUIKeys(n)},getTriggers:function(){if(this.triggers){var t=this.normalizeUIKeys(e.result(this,"triggers"));return this._getViewTriggers(this,t)}},delegateEntityEvents:function(){return this._delegateEntityEvents(this.model,this.collection),this._delegateBehaviorEntityEvents(),this},undelegateEntityEvents:function(){return this._undelegateEntityEvents(this.model,this.collection),this._undelegateBehaviorEntityEvents(),this},destroy:function(){if(this._isDestroyed)return this;for(var t=this._isAttached&&!this._shouldDisableEvents,e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.triggerMethod.apply(this,["before:destroy",this].concat(n)),t&&this.triggerMethod("before:detach",this),this.unbindUIElements(),this._removeElement(),t&&(this._isAttached=!1,this.triggerMethod("detach",this)),this._removeChildren(),this._isDestroyed=!0,this._isRendered=!1,this._destroyBehaviors.apply(this,n),this.triggerMethod.apply(this,["destroy",this].concat(n)),this.stopListening(),this},_removeElement:function(){this.$el.off().removeData(),this.Dom.detachEl(this.el,this.$el)},bindUIElements:function(){return this._bindUIElements(),this._bindBehaviorUIElements(),this},unbindUIElements:function(){return this._unbindUIElements(),this._unbindBehaviorUIElements(),this},getUI:function(t){return this._getUI(t)},childViewEventPrefix:function(){return!!K("childViewEventPrefix")&&"childview"},triggerMethod:function(){var t=f.apply(this,arguments);return this._triggerEventOnBehaviors.apply(this,arguments),t},_buildEventProxies:function(){this._childViewEvents=e.result(this,"childViewEvents"),this._childViewTriggers=e.result(this,"childViewTriggers")},_proxyChildViewEvents:function(t){this.listenTo(t,"all",this._childViewEventHandler)},_childViewEventHandler:function(t){for(var n=this.normalizeMethods(this._childViewEvents),r=arguments.length,i=Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];void 0!==n&&e.isFunction(n[t])&&n[t].apply(this,i);var o=this._childViewTriggers;o&&e.isString(o[t])&&this.triggerMethod.apply(this,[o[t]].concat(i));var a=e.result(this,"childViewEventPrefix");if(!1!==a){var l=a+":"+t;this.triggerMethod.apply(this,[l].concat(i))}}};function rt(t){t._isRendered||(t.supportsRenderLifecycle||p(t,"before:render",t),t.render(),t.supportsRenderLifecycle||(t._isRendered=!0,p(t,"render",t)))}function it(t){if(t.destroy)t.destroy();else{t.supportsDestroyLifecycle||p(t,"before:destroy",t);var e=t._isAttached&&!t._shouldDisableEvents;e&&p(t,"before:detach",t),t.remove(),e&&(t._isAttached=!1,p(t,"detach",t)),t._isDestroyed=!0,t.supportsDestroyLifecycle||p(t,"destroy",t)}}e.extend(nt,H,P,z,J,Z);var st=["allowMissingEl","parentEl","replaceElement"],ot=V.extend({Dom:et,cidPrefix:"mnr",replaceElement:!1,_isReplaced:!1,_isSwappingView:!1,constructor:function(e){if(this._setOptions(e),this.mergeOptions(e,st),this._initEl=this.el=this.getOption("el"),this.el=this.el instanceof t.$?this.el[0]:this.el,!this.el)throw new k({name:"NoElError",message:'An "el" must be specified for a region.'});this.$el=this.getEl(this.el),V.call(this,e)},show:function(t,e){if(this._ensureElement(e))return(t=this._getView(t,e))===this.currentView?this:(this._isSwappingView=!!this.currentView,this.triggerMethod("before:show",this,t,e),t._isAttached||this.empty(e),this._setupChildView(t),this.currentView=t,rt(t),this._attachView(t,e),this.triggerMethod("show",this,t,e),this._isSwappingView=!1,this)},_setupChildView:function(t){S(t),this._proxyChildViewEvents(t),t.on("destroy",this._empty,this)},_proxyChildViewEvents:function(t){var e=this._parentView;e&&e._proxyChildViewEvents(t)},_shouldDisableMonitoring:function(){return this._parentView&&!1===this._parentView.monitorViewEvents},_attachView:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=!t._isAttached&&o(this.el)&&!this._shouldDisableMonitoring(),i=void 0===n.replaceElement?!!e.result(this,"replaceElement"):!!n.replaceElement;r&&p(t,"before:attach",t),i?this._replaceEl(t):this.attachHtml(t),r&&(t._isAttached=!0,p(t,"attach",t))},_ensureElement:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e.isObject(this.el)||(this.$el=this.getEl(this.el),this.el=this.$el[0],this.$el=this.Dom.getEl(this.el)),!this.$el||0===this.$el.length){var n=void 0===t.allowMissingEl?!!e.result(this,"allowMissingEl"):!!t.allowMissingEl;if(n)return!1;throw new k('An "el" must exist in DOM for this region '+this.cid)}return!0},_getView:function(e){if(!e)throw new k({name:"ViewNotValid",message:"The view passed is undefined and therefore invalid. You must pass a view instance to show."});if(e._isDestroyed)throw new k({name:"ViewDestroyedError",message:'View (cid: "'+e.cid+'") has already been destroyed and cannot be used.'});if(e instanceof t.View)return e;var n=this._getViewOptions(e);return new dt(n)},_getViewOptions:function(t){return e.isFunction(t)?{template:t}:e.isObject(t)?t:{template:function(){return t}}},getEl:function(t){var n=e.result(this,"parentEl");return n&&e.isString(t)?this.Dom.findEl(n,t):this.Dom.getEl(t)},_replaceEl:function(t){this._restoreEl(),t.on("before:destroy",this._restoreEl,this),this.Dom.replaceEl(t.el,this.el),this._isReplaced=!0},_restoreEl:function(){if(this._isReplaced){var t=this.currentView;t&&(this._detachView(t),this._isReplaced=!1)}},isReplaced:function(){return!!this._isReplaced},isSwappingView:function(){return!!this._isSwappingView},attachHtml:function(t){this.Dom.appendContents(this.el,t.el,{_$el:this.$el,_$contents:t.$el})},empty:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{allowMissingEl:!0},e=this.currentView;if(!e)return this._ensureElement(t)&&this.detachHtml(),this;var n=!t.preventDestroy;return n||s("The preventDestroy option is deprecated. Use Region#detachView"),this._empty(e,n),this},_empty:function(t,e){t.off("destroy",this._empty,this),this.triggerMethod("before:empty",this,t),this._restoreEl(),delete this.currentView,t._isDestroyed||(e?this.removeView(t):this._detachView(t),this._stopChildViewEvents(t)),this.triggerMethod("empty",this,t)},_stopChildViewEvents:function(t){var e=this._parentView;e&&this._parentView.stopListening(t)},destroyView:function(t){return t._isDestroyed?t:(t._shouldDisableEvents=this._shouldDisableMonitoring(),it(t),t)},removeView:function(t){this.destroyView(t)},detachView:function(){var t=this.currentView;if(t)return this._empty(t),t},_detachView:function(t){var e=t._isAttached&&!this._shouldDisableMonitoring(),n=this._isReplaced;e&&p(t,"before:detach",t),n?this.Dom.replaceEl(this.el,t.el):this.detachHtml(),e&&(t._isAttached=!1,p(t,"detach",t))},detachHtml:function(){this.Dom.detachContents(this.el,this.$el)},hasView:function(){return!!this.currentView},reset:function(t){return this.empty(t),this.$el&&(this.el=this._initEl),delete this.$el,this},destroy:function(t){return this._isDestroyed?this:(this.reset(t),this._name&&this._parentView._removeReferences(this._name),delete this._parentView,delete this._name,V.prototype.destroy.apply(this,arguments))}},{setDomApi:tt}),at=function(t,n){return t instanceof ot?t:function(t,n){var r=e.extend({},n);if(e.isString(t))return e.extend(r,{el:t}),lt(r);if(e.isFunction(t))return e.extend(r,{regionClass:t}),lt(r);if(e.isObject(t))return t.selector&&s("The selector option on a Region definition object is deprecated. Use el to pass a selector string"),e.extend(r,{el:t.selector},t),lt(r);throw new k({message:"Improper region configuration type.",url:"marionette.region.html#region-configuration-types"})}(t,n)};function lt(t){var n=t.regionClass,r=e.omit(t,"regionClass");return new n(r)}var ut={regionClass:ot,_initRegions:function(){this.regions=this.regions||{},this._regions={},this.addRegions(e.result(this,"regions"))},_reInitRegions:function(){Y(this._regions,"reset")},addRegion:function(t,e){var n={};return n[t]=e,this.addRegions(n)[t]},addRegions:function(t){if(!e.isEmpty(t))return t=this.normalizeUIValues(t,["selector","el"]),this.regions=e.extend({},this.regions,t),this._addRegions(t)},_addRegions:function(t){var n=this,r={regionClass:this.regionClass,parentEl:e.partial(e.result,this,"el")};return e.reduce(t,function(t,e,i){return t[i]=at(e,r),n._addRegion(t[i],i),t},{})},_addRegion:function(t,e){this.triggerMethod("before:add:region",this,e,t),t._parentView=this,t._name=e,this._regions[e]=t,this.triggerMethod("add:region",this,e,t)},removeRegion:function(t){var e=this._regions[t];return this._removeRegion(e,t),e},removeRegions:function(){var t=this._getRegions();return e.each(this._regions,e.bind(this._removeRegion,this)),t},_removeRegion:function(t,e){this.triggerMethod("before:remove:region",this,e,t),t.destroy(),this.triggerMethod("remove:region",this,e,t)},_removeReferences:function(t){delete this.regions[t],delete this._regions[t]},emptyRegions:function(){var t=this.getRegions();return Y(t,"empty"),t},hasRegion:function(t){return!!this.getRegion(t)},getRegion:function(t){return this._isRendered||this.render(),this._regions[t]},_getRegions:function(){return e.clone(this._regions)},getRegions:function(){return this._isRendered||this.render(),this._getRegions()},showChildView:function(t,e){for(var n=this.getRegion(t),r=arguments.length,i=Array(r>2?r-2:0),s=2;s<r;s++)i[s-2]=arguments[s];return n.show.apply(n,[e].concat(i))},detachChildView:function(t){return this.getRegion(t).detachView()},getChildView:function(t){return this.getRegion(t).currentView}},ct={render:function(t,n){if(!t)throw new k({name:"TemplateNotFoundError",message:"Cannot render the template since its false, null or undefined."});var r=e.isFunction(t)?t:j.get(t);return r(n)}},ht=["behaviors","childViewEventPrefix","childViewEvents","childViewTriggers","collectionEvents","events","modelEvents","regionClass","regions","template","templateContext","triggers","ui"],dt=t.View.extend({constructor:function(n){this.render=e.bind(this.render,this),this._setOptions(n),this.mergeOptions(n,ht),S(this),this._initBehaviors(),this._initRegions();var r=Array.prototype.slice.call(arguments);r[0]=this.options,t.View.prototype.constructor.apply(this,r),this.delegateEntityEvents(),this._triggerEventOnBehaviors("initialize",this)},serializeData:function(){return this.model||this.collection?this.model?this.serializeModel():{items:this.serializeCollection()}:{}},serializeModel:function(){return this.model?e.clone(this.model.attributes):{}},serializeCollection:function(){return this.collection?this.collection.map(function(t){return e.clone(t.attributes)}):{}},setElement:function(){return t.View.prototype.setElement.apply(this,arguments),this._isRendered=this.Dom.hasContents(this.el),this._isAttached=o(this.el),this._isRendered&&this.bindUIElements(),this},render:function(){return this._isDestroyed?this:(this.triggerMethod("before:render",this),this._isRendered&&this._reInitRegions(),this._renderTemplate(),this.bindUIElements(),this._isRendered=!0,this.triggerMethod("render",this),this)},_renderTemplate:function(){var t=this.getTemplate();if(!1!==t){var e=this.mixinTemplateContext(this.serializeData()),n=this._renderHtml(t,e);this.attachElContent(n)}else s("template:false is deprecated.  Use _.noop.")},_renderHtml:function(t,e){return ct.render(t,e,this)},getTemplate:function(){return this.template},mixinTemplateContext:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.result(this,"templateContext");return e.extend(t,n)},attachElContent:function(t){return this.Dom.setContents(this.el,t,this.$el),this},_removeChildren:function(){this.removeRegions()},_getImmediateChildren:function(){return e.chain(this._getRegions()).map("currentView").compact().value()}},{setRenderer:function(t){return this.prototype._renderHtml=t,this},setDomApi:tt});e.extend(dt.prototype,nt,ut);var ft=["forEach","each","map","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","toArray","first","initial","rest","last","without","isEmpty","pluck","reduce","partition"],pt=function(t,n){e.each(ft,function(r){t[r]=function(){var t=e.result(this,n),i=Array.prototype.slice.call(arguments);return e[r].apply(e,[t].concat(i))}})},mt=function(t){this._views={},this._indexByModel={},this._indexByCustom={},this._updateLength(),e.each(t,e.bind(this.add,this))};pt(mt.prototype,"_getViews"),e.extend(mt.prototype,{_getViews:function(){return e.values(this._views)},add:function(t,e){return this._add(t,e)._updateLength()},_add:function(t,e){var n=t.cid;return this._views[n]=t,t.model&&(this._indexByModel[t.model.cid]=n),e&&(this._indexByCustom[e]=n),this},findByModel:function(t){return this.findByModelCid(t.cid)},findByModelCid:function(t){var e=this._indexByModel[t];return this.findByCid(e)},findByCustom:function(t){var e=this._indexByCustom[t];return this.findByCid(e)},findByIndex:function(t){return e.values(this._views)[t]},findByCid:function(t){return this._views[t]},remove:function(t){return this._remove(t)._updateLength()},_remove:function(t){var n=t.cid;return t.model&&delete this._indexByModel[t.model.cid],e.some(this._indexByCustom,e.bind(function(t,e){if(t===n)return delete this._indexByCustom[e],!0},this)),delete this._views[n],this},_updateLength:function(){return this.length=e.size(this._views),this}});var gt=["behaviors","childView","childViewEventPrefix","childViewEvents","childViewOptions","childViewTriggers","collectionEvents","events","filter","emptyView","emptyViewOptions","modelEvents","reorderOnSort","sort","triggers","ui","viewComparator"],vt=t.View.extend({sort:!0,constructor:function(n){this.render=e.bind(this.render,this),this._setOptions(n),this.mergeOptions(n,gt),S(this),this._initBehaviors(),this.once("render",this._initialEvents),this._initChildViewStorage(),this._bufferedChildren=[];var r=Array.prototype.slice.call(arguments);r[0]=this.options,t.View.prototype.constructor.apply(this,r),this.delegateEntityEvents(),this._triggerEventOnBehaviors("initialize",this)},_startBuffering:function(){this._isBuffering=!0},_endBuffering:function(){var t=this._isAttached&&!1!==this.monitorViewEvents,n=t?this._getImmediateChildren():[];this._isBuffering=!1,e.each(n,function(t){p(t,"before:attach",t)}),this.attachBuffer(this,this._createBuffer()),e.each(n,function(t){t._isAttached=!0,p(t,"attach",t)}),this._bufferedChildren=[]},_getImmediateChildren:function(){return e.values(this.children._views)},_initialEvents:function(){this.collection&&(this.listenTo(this.collection,"add",this._onCollectionAdd),this.listenTo(this.collection,"update",this._onCollectionUpdate),this.listenTo(this.collection,"reset",this.render),this.sort&&this.listenTo(this.collection,"sort",this._sortViews))},_onCollectionAdd:function(t,n,r){var i=void 0!==r.at&&(r.index||n.indexOf(t));(this.filter||!1===i)&&(i=e.indexOf(this._filteredSortedModels(i),t)),this._shouldAddChild(t,i)&&(this._destroyEmptyView(),this._addChild(t,i))},_onCollectionUpdate:function(t,e){var n=e.changes;this._removeChildModels(n.removed)},_removeChildModels:function(t){var e=this._getRemovedViews(t);e.length&&(this.children._updateLength(),this._updateIndices(e,!1),this.isEmpty()&&this._showEmptyView())},_getRemovedViews:function(t){var n=this;return e.reduce(t,function(t,e){var r=e&&n.children.findByModel(e);return!r||r._isDestroyed?t:(n._removeChildView(r),t.push(r),t)},[])},_removeChildView:function(t){this.triggerMethod("before:remove:child",this,t),this.children._remove(t),t._shouldDisableEvents=!1===this.monitorViewEvents,it(t),this.stopListening(t),this.triggerMethod("remove:child",this,t)},setElement:function(){return t.View.prototype.setElement.apply(this,arguments),this._isAttached=o(this.el),this},render:function(){return this._isDestroyed?this:(this.triggerMethod("before:render",this),this._renderChildren(),this._isRendered=!0,this.triggerMethod("render",this),this)},setFilter:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.preventRender,r=this._isRendered&&!this._isDestroyed,i=this.filter!==t,s=r&&i&&!n;if(s){var o=this._filteredSortedModels();this.filter=t;var a=this._filteredSortedModels();this._applyModelDeltas(a,o)}else this.filter=t;return this},removeFilter:function(t){return this.setFilter(null,t)},_applyModelDeltas:function(t,n){var r=this,i={};e.each(t,function(t,e){var n=!r.children.findByModel(t);n&&r._onCollectionAdd(t,r.collection,{at:e}),i[t.cid]=!0});var s=e.filter(n,function(t){return!i[t.cid]&&r.children.findByModel(t)});this._removeChildModels(s)},reorder:function(){var t=this,n=this.children,r=this._filteredSortedModels();if(!r.length&&this._showingEmptyView)return this;var i=e.some(r,function(t){return!n.findByModel(t)});if(i)this.render();else{var s=[],o=e.reduce(this.children._views,function(t,n){var i=e.indexOf(r,n.model);return-1===i?(s.push(n.model),t):(n._index=i,t[i]=n.el,t)},new Array(r.length));this.triggerMethod("before:reorder",this);var a=this.Dom.createBuffer();e.each(o,function(e){t.Dom.appendContents(a,e)}),this._appendReorderedChildren(a),this._removeChildModels(s),this.triggerMethod("reorder",this)}return this},resortView:function(){return this.reorderOnSort?this.reorder():this._renderChildren(),this},_sortViews:function(){var t=this,n=this._filteredSortedModels(),r=e.find(n,function(e,n){var r=t.children.findByModel(e);return!r||r._index!==n});r&&this.resortView()},_emptyViewIndex:-1,_appendReorderedChildren:function(t){this.Dom.appendContents(this.el,t,{_$el:this.$el})},_renderChildren:function(){this._isRendered&&(this._destroyEmptyView(),this._destroyChildren());var t=this._filteredSortedModels();this.isEmpty({processedModels:t})?this._showEmptyView():(this.triggerMethod("before:render:children",this),this._startBuffering(),this._showCollection(t),this._endBuffering(),this.triggerMethod("render:children",this))},_createView:function(t,e){var n=this._getChildView(t),r=this._getChildViewOptions(t,e),i=this.buildChildView(t,n,r);return i},_setupChildView:function(t,e){S(t),this._proxyChildViewEvents(t),this.sort&&(t._index=e)},_showCollection:function(t){e.each(t,e.bind(this._addChild,this)),this.children._updateLength()},_filteredSortedModels:function(t){if(!this.collection||!this.collection.length)return[];var e=this.getViewComparator(),n=this.collection.models;if(t=Math.min(Math.max(t,0),n.length-1),e){var r=void 0;t&&(r=n[t],n=n.slice(0,t).concat(n.slice(t+1))),n=this._sortModelsBy(n,e),r&&n.splice(t,0,r)}return n=this._filterModels(n)},getViewComparator:function(){return this.viewComparator},_filterModels:function(t){var n=this;return this.filter&&(t=e.filter(t,function(t,e){return n._shouldAddChild(t,e)})),t},_sortModelsBy:function(t,n){return"string"==typeof n?e.sortBy(t,function(t){return t.get(n)}):1===n.length?e.sortBy(t,e.bind(n,this)):e.clone(t).sort(e.bind(n,this))},_showEmptyView:function(){var n=this._getEmptyView();if(n&&!this._showingEmptyView){this._showingEmptyView=!0;var r=new t.Model,i=this.emptyViewOptions||this.childViewOptions;e.isFunction(i)&&(i=i.call(this,r,this._emptyViewIndex));var s=this.buildChildView(r,n,i);this.triggerMethod("before:render:empty",this,s),this.addChildView(s,0),this.triggerMethod("render:empty",this,s)}},_destroyEmptyView:function(){this._showingEmptyView&&(this.triggerMethod("before:remove:empty",this),this._destroyChildren(),delete this._showingEmptyView,this.triggerMethod("remove:empty",this))},_getEmptyView:function(){var t=this.emptyView;if(t)return this._getView(t)},_getChildView:function(t){var e=this.childView;if(!e)throw new k({name:"NoChildViewError",message:'A "childView" must be specified'});if(!(e=this._getView(e,t)))throw new k({name:"InvalidChildViewError",message:'"childView" must be a view class or a function that returns a view class'});return e},_getView:function(n,r){return n.prototype instanceof t.View||n===t.View?n:e.isFunction(n)?n.call(this,r):void 0},_addChild:function(t,e){var n=this._createView(t,e);return this.addChildView(n,e),n},_getChildViewOptions:function(t,n){return e.isFunction(this.childViewOptions)?this.childViewOptions(t,n):this.childViewOptions},addChildView:function(t,e){return this.triggerMethod("before:add:child",this,t),this._setupChildView(t,e),this._isBuffering?this.children._add(t):(this._updateIndices(t,!0),this.children.add(t)),rt(t),this._attachView(t,e),this.triggerMethod("add:child",this,t),t},_updateIndices:function(t,n){if(this.sort)if(n){var r=e.isArray(t)?e.max(t,"_index"):t;e.isObject(r)&&e.each(this.children._views,function(t){t._index>=r._index&&(t._index+=1)})}else e.each(e.sortBy(this.children._views,"_index"),function(t,e){t._index=e})},_attachView:function(t,e){var n=!t._isAttached&&!this._isBuffering&&this._isAttached&&!1!==this.monitorViewEvents;n&&p(t,"before:attach",t),this.attachHtml(this,t,e),n&&(t._isAttached=!0,p(t,"attach",t))},buildChildView:function(t,n,r){var i=e.extend({model:t},r);return new n(i)},removeChildView:function(t){return!t||t._isDestroyed?t:(this._removeChildView(t),this.children._updateLength(),this._updateIndices(t,!1),t)},isEmpty:function(t){var n=void 0;return e.result(t,"processedModels")?n=t.processedModels:(n=this.collection?this.collection.models:[],n=this._filterModels(n)),0===n.length},attachBuffer:function(t,e){this.Dom.appendContents(t.el,e,{_$el:t.$el})},_createBuffer:function(){var t=this,n=this.Dom.createBuffer();return e.each(this._bufferedChildren,function(e){t.Dom.appendContents(n,e.el,{_$contents:e.$el})}),n},attachHtml:function(t,e,n){t._isBuffering?t._bufferedChildren.splice(n,0,e):t._insertBefore(e,n)||t._insertAfter(e)},_insertBefore:function(t,n){var r=void 0,i=this.sort&&n<this.children.length-1;return i&&(r=e.find(this.children._views,function(t){return t._index===n+1})),!!r&&(this.beforeEl(r.el,t.el),!0)},beforeEl:function(t,e){this.$(t).before(e)},_insertAfter:function(t){this.Dom.appendContents(this.el,t.el,{_$el:this.$el,_$contents:t.$el})},_initChildViewStorage:function(){this.children=new mt},_removeChildren:function(){this._destroyChildren()},_destroyChildren:function(t){this.children.length&&(this.triggerMethod("before:destroy:children",this),e.each(this.children._views,e.bind(this._removeChildView,this)),this.children._updateLength(),this.triggerMethod("destroy:children",this))},_shouldAddChild:function(t,n){var r=this.filter;return!e.isFunction(r)||r.call(this,t,n,this.collection)}},{setDomApi:tt});e.extend(vt.prototype,nt);var yt=function(){this._init()};function bt(t,e){return e.model&&e.model.get(t)}pt(yt.prototype,"_views"),e.extend(yt.prototype,{_init:function(){this._views=[],this._viewsByCid={},this._indexByModel={},this._updateLength()},_add:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._views.length,n=t.cid;this._viewsByCid[n]=t,t.model&&(this._indexByModel[t.model.cid]=n),this._views.splice(e,0,t),this._updateLength()},_sort:function(t,n){return"string"==typeof t?(t=e.partial(bt,t),this._sortBy(t)):1===t.length?this._sortBy(e.bind(t,n)):this._views.sort(e.bind(t,n))},_sortBy:function(t){var n=e.sortBy(this._views,t);return this._set(n),n},_set:function(t){this._views.length=0,this._views.push.apply(this._views,t.slice(0)),this._updateLength()},_swap:function(t,e){var n=this.findIndexByView(t),r=this.findIndexByView(e);if(-1!==n&&-1!==r){var i=this._views[n];this._views[n]=this._views[r],this._views[r]=i}},findByModel:function(t){return this.findByModelCid(t.cid)},findByModelCid:function(t){var e=this._indexByModel[t];return this.findByCid(e)},findByIndex:function(t){return this._views[t]},findIndexByView:function(t){return this._views.indexOf(t)},findByCid:function(t){return this._viewsByCid[t]},hasView:function(t){return!!this.findByCid(t.cid)},_remove:function(t){if(this._viewsByCid[t.cid]){t.model&&delete this._indexByModel[t.model.cid],delete this._viewsByCid[t.cid];var e=this.findIndexByView(t);this._views.splice(e,1),this._updateLength()}},_updateLength:function(){this.length=this._views.length}});var _t=["behaviors","childView","childViewEventPrefix","childViewEvents","childViewOptions","childViewTriggers","collectionEvents","emptyView","emptyViewOptions","events","modelEvents","sortWithCollection","triggers","ui","viewComparator","viewFilter"],wt=t.View.extend({sortWithCollection:!0,constructor:function(e){this._setOptions(e),this.mergeOptions(e,_t),S(this),this.once("render",this._initialEvents),this._initChildViewStorage(),this._initBehaviors();var n=Array.prototype.slice.call(arguments);n[0]=this.options,t.View.prototype.constructor.apply(this,n),this.getEmptyRegion(),this.delegateEntityEvents(),this._triggerEventOnBehaviors("initialize",this)},_initChildViewStorage:function(){this.children=new yt},getEmptyRegion:function(){return this._emptyRegion&&!this._emptyRegion.isDestroyed()?this._emptyRegion:(this._emptyRegion=new ot({el:this.el,replaceElement:!1}),this._emptyRegion._parentView=this,this._emptyRegion)},_initialEvents:function(){this.listenTo(this.collection,{sort:this._onCollectionSort,reset:this._onCollectionReset,update:this._onCollectionUpdate})},_onCollectionSort:function(t,e){var n=e.add,r=e.merge,i=e.remove;this.sortWithCollection&&!1!==this.viewComparator&&(n||i||r||this.sort())},_onCollectionReset:function(){this.render()},_onCollectionUpdate:function(t,e){var n=e.changes,r=n.removed.length&&this._removeChildModels(n.removed);this._addedViews=n.added.length&&this._addChildModels(n.added),this._detachChildren(r),this._showChildren(),this._removeChildViews(r)},_removeChildModels:function(t){var n=this;return e.reduce(t,function(t,e){var r=n._removeChildModel(e);return r&&t.push(r),t},[])},_removeChildModel:function(t){var e=this.children.findByModel(t);return e&&this._removeChild(e),e},_removeChild:function(t){this.triggerMethod("before:remove:child",this,t),this.children._remove(t),this.triggerMethod("remove:child",this,t)},_addChildModels:function(t){return e.map(t,e.bind(this._addChildModel,this))},_addChildModel:function(t){var e=this._createChildView(t);return this._addChild(e),e},_createChildView:function(t){var e=this._getChildView(t),n=this._getChildViewOptions(t),r=this.buildChildView(t,e,n);return r},_addChild:function(t,e){this.triggerMethod("before:add:child",this,t),this._setupChildView(t),this.children._add(t,e),this.triggerMethod("add:child",this,t)},_getChildView:function(t){var e=this.childView;if(!e)throw new k({name:"NoChildViewError",message:'A "childView" must be specified'});if(!(e=this._getView(e,t)))throw new k({name:"InvalidChildViewError",message:'"childView" must be a view class or a function that returns a view class'});return e},_getView:function(n,r){return n.prototype instanceof t.View||n===t.View?n:e.isFunction(n)?n.call(this,r):void 0},_getChildViewOptions:function(t){return e.isFunction(this.childViewOptions)?this.childViewOptions(t):this.childViewOptions},buildChildView:function(t,n,r){var i=e.extend({model:t},r);return new n(i)},_setupChildView:function(t){S(t),t.on("destroy",this.removeChildView,this),this._proxyChildViewEvents(t)},_getImmediateChildren:function(){return this.children._views},setElement:function(){return t.View.prototype.setElement.apply(this,arguments),this._isAttached=o(this.el),this},render:function(){return this._isDestroyed?this:(this.triggerMethod("before:render",this),this._destroyChildren(),this.children._init(),this.collection&&this._addChildModels(this.collection.models),this._showChildren(),this._isRendered=!0,this.triggerMethod("render",this),this)},sort:function(){return this._isDestroyed?this:this.children.length?(this._showChildren(),this):this},_showChildren:function(){this.isEmpty()?this._showEmptyView():(this._sortChildren(),this.filter())},isEmpty:function(t){return t||!this.children.length},_showEmptyView:function(){var t=this._getEmptyView();if(t){var e=this._getEmptyViewOptions(),n=this.getEmptyRegion();n.show(new t(e))}},_getEmptyView:function(){var t=this.emptyView;if(t)return this._getView(t)},_destroyEmptyView:function(){var t=this.getEmptyRegion();t.hasView()&&t.empty()},_getEmptyViewOptions:function(){var t=this.emptyViewOptions||this.childViewOptions;return e.isFunction(t)?t.call(this):t},_sortChildren:function(){var t=this.getComparator();t&&(delete this._addedViews,this.triggerMethod("before:sort",this),this.children._sort(t,this),this.triggerMethod("sort",this))},setComparator:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.preventRender,r=this.viewComparator!==t,i=r&&!n;return this.viewComparator=t,i&&this.sort(),this},removeComparator:function(t){return this.setComparator(null,t)},getComparator:function(){return this.viewComparator?this.viewComparator:!(!this.sortWithCollection||!1===this.viewComparator||!this.collection)&&this._viewComparator},_viewComparator:function(t){return this.collection.indexOf(t.model)},filter:function(){if(this._isDestroyed)return this;if(!this.children.length)return this;var t=this._filterChildren();return this._renderChildren(t),this},_filterChildren:function(){var t=this,n=this._getFilter(),r=this._addedViews;if(delete this._addedViews,!n)return r||this.children._views;this.triggerMethod("before:filter",this);var i=[],s=[];return e.each(this.children._views,function(e,r,o){(n.call(t,e,r,o)?i:s).push(e)}),this._detachChildren(s),this.triggerMethod("filter",this,i,s),i},_getFilter:function(){var t=this.getFilter();if(!t)return!1;if(e.isFunction(t))return t;if(e.isObject(t)){var n=e.matches(t);return function(t){return n(t.model&&t.model.attributes)}}if(e.isString(t))return function(e){return e.model&&e.model.get(t)};throw new k({name:"InvalidViewFilterError",message:'"viewFilter" must be a function, predicate object literal, a string indicating a model attribute, or falsy'})},getFilter:function(){return this.viewFilter},setFilter:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.preventRender,r=this.viewFilter!==t,i=r&&!n;return this.viewFilter=t,i&&this.filter(),this},removeFilter:function(t){return this.setFilter(null,t)},_detachChildren:function(t){e.each(t,e.bind(this._detachChildView,this))},_detachChildView:function(t){var e=t._isAttached&&!1!==this.monitorViewEvents;e&&p(t,"before:detach",t),this.detachHtml(t),e&&(t._isAttached=!1,p(t,"detach",t))},detachHtml:function(t){this.Dom.detachEl(t.el,t.$el)},_renderChildren:function(t){if(this.isEmpty(!t.length))this._showEmptyView();else{this._destroyEmptyView(),this.triggerMethod("before:render:children",this,t);var e=this._getBuffer(t);this._attachChildren(e,t),this.triggerMethod("render:children",this,t)}},_attachChildren:function(t,n){var r=this._isAttached&&!1!==this.monitorViewEvents;n=r?n:[],e.each(n,function(t){t._isAttached||p(t,"before:attach",t)}),this.attachHtml(t),e.each(n,function(t){t._isAttached||(t._isAttached=!0,p(t,"attach",t))})},_getBuffer:function(t){var n=this,r=this.Dom.createBuffer();return e.each(t,function(t){rt(t),n.Dom.appendContents(r,t.el,{_$contents:t.$el})}),r},attachHtml:function(t){this.Dom.appendContents(this.el,t,{_$el:this.$el})},swapChildViews:function(t,e){if(!this.children.hasView(t)||!this.children.hasView(e))throw new k({name:"ChildSwapError",message:"Both views must be children of the collection view"});return this.children._swap(t,e),this.Dom.swapEl(t.el,e.el),this.Dom.hasEl(this.el,t.el)!==this.Dom.hasEl(this.el,e.el)&&this.filter(),this},addChildView:function(t,e){return!t||t._isDestroyed?t:((!e||e>=this.children.length)&&(this._addedViews=[t]),this._addChild(t,e),this._showChildren(),t)},detachChildView:function(t){return this.removeChildView(t,{shouldDetach:!0}),t},removeChildView:function(t,e){return t?(this._removeChildView(t,e),this._removeChild(t),this.isEmpty()&&this._showEmptyView(),t):t},_removeChildViews:function(t){e.each(t,e.bind(this._removeChildView,this))},_removeChildView:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.shouldDetach;t.off("destroy",this.removeChildView,this),n?this._detachChildView(t):this._destroyChildView(t),this.stopListening(t)},_destroyChildView:function(t){t._isDestroyed||(t._shouldDisableEvents=!1===this.monitorViewEvents,it(t))},_removeChildren:function(){this._destroyChildren();var t=this.getEmptyRegion();t.destroy(),delete this._addedViews},_destroyChildren:function(){this.children&&this.children.length&&(this.triggerMethod("before:destroy:children",this),!1===this.monitorViewEvents&&this.Dom.detachContents(this.el,this.$el),e.each(this.children._views,e.bind(this._removeChildView,this)),this.triggerMethod("destroy:children",this))}},{setDomApi:tt});e.extend(wt.prototype,nt);var xt=["childViewContainer","template","templateContext"],Ct=vt.extend({constructor:function(t){s("CompositeView is deprecated. Convert to View at your earliest convenience"),this.mergeOptions(t,xt),vt.prototype.constructor.apply(this,arguments)},_initialEvents:function(){this.collection&&(this.listenTo(this.collection,"add",this._onCollectionAdd),this.listenTo(this.collection,"update",this._onCollectionUpdate),this.listenTo(this.collection,"reset",this.renderChildren),this.sort&&this.listenTo(this.collection,"sort",this._sortViews))},_getChildView:function(t){var e=this.childView;if(!e)return this.constructor;if(!(e=this._getView(e,t)))throw new k({name:"InvalidChildViewError",message:'"childView" must be a view class or a function that returns a view class'});return e},serializeData:function(){return this.serializeModel()},render:function(){return this._isDestroyed?this:(this._isRendering=!0,this.resetChildViewContainer(),this.triggerMethod("before:render",this),this._renderTemplate(),this.bindUIElements(),this.renderChildren(),this._isRendering=!1,this._isRendered=!0,this.triggerMethod("render",this),this)},renderChildren:function(){(this._isRendered||this._isRendering)&&vt.prototype._renderChildren.call(this)},attachBuffer:function(t,e){var n=this.getChildViewContainer(t);this.Dom.appendContents(n[0],e,{_$el:n})},_insertAfter:function(t){var e=this.getChildViewContainer(this,t);this.Dom.appendContents(e[0],t.el,{_$el:e,_$contents:t.$el})},_appendReorderedChildren:function(t){var e=this.getChildViewContainer(this);this.Dom.appendContents(e[0],t,{_$el:e})},getChildViewContainer:function(t,n){if(t.$childViewContainer)return t.$childViewContainer;var r=void 0,i=t.childViewContainer;if(i){var s=e.result(t,"childViewContainer");if((r="@"===s.charAt(0)&&t.ui?t.ui[s.substr(4)]:this.$(s)).length<=0)throw new k({name:"ChildViewContainerMissingError",message:'The specified "childViewContainer" was not found: '+t.childViewContainer})}else r=t.$el;return t.$childViewContainer=r,r},resetChildViewContainer:function(){this.$childViewContainer&&(this.$childViewContainer=void 0)}}),At=e.pick(dt.prototype,"serializeModel","getTemplate","_renderTemplate","_renderHtml","mixinTemplateContext","attachElContent");e.extend(Ct.prototype,At);var Dt=["collectionEvents","events","modelEvents","triggers","ui"],Et=V.extend({cidPrefix:"mnb",constructor:function(t,n){this.view=n,this.defaults&&s("Behavior defaults are deprecated. For similar functionality set options on the Behavior class."),this.defaults=e.clone(e.result(this,"defaults",{})),this._setOptions(e.extend({},this.defaults,t)),this.mergeOptions(this.options,Dt),this.ui=e.extend({},e.result(this,"ui"),e.result(n,"ui")),V.apply(this,arguments)},$:function(){return this.view.$.apply(this.view,arguments)},destroy:function(){return this.stopListening(),this.view._removeBehavior(this),this},proxyViewProperties:function(){return this.$el=this.view.$el,this.el=this.view.el,this},bindUIElements:function(){return this._bindUIElements(),this},unbindUIElements:function(){return this._unbindUIElements(),this},getUI:function(t){return this._getUI(t)},delegateEntityEvents:function(){return this._delegateEntityEvents(this.view.model,this.view.collection),this},undelegateEntityEvents:function(){return this._undelegateEntityEvents(this.view.model,this.view.collection),this},getEvents:function(){var t=this,n=this.normalizeUIKeys(e.result(this,"events"));return e.reduce(n,function(n,r,i){return e.isFunction(r)||(r=t[r]),r?(i=$(i,t.cid),n[i]=e.bind(r,t),n):n},{})},getTriggers:function(){if(this.triggers){var t=this.normalizeUIKeys(e.result(this,"triggers"));return this._getViewTriggers(this.view,t)}}});e.extend(Et.prototype,z,J,Z);var Tt=["region","regionClass"],St=V.extend({cidPrefix:"mna",constructor:function(t){this._setOptions(t),this.mergeOptions(t,Tt),this._initRegion(),V.prototype.constructor.apply(this,arguments)},regionClass:ot,_initRegion:function(){var t=this.region;if(t){var e={regionClass:this.regionClass};this._region=at(t,e)}},getRegion:function(){return this._region},showView:function(t){for(var e=this.getRegion(),n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return e.show.apply(e,[t].concat(r))},getView:function(){return this.getRegion().currentView},start:function(t){return this.triggerMethod("before:start",this,t),this.triggerMethod("start",this,t),this}}),It=["appRoutes","controller"],kt=t.Router.extend({constructor:function(e){this._setOptions(e),this.mergeOptions(e,It),t.Router.apply(this,arguments);var n=this.appRoutes,r=this._getController();this.processAppRoutes(r,n),this.on("route",this._processOnRoute,this)},appRoute:function(t,e){var n=this._getController();return this._addAppRoute(n,t,e),this},_processOnRoute:function(t,n){if(e.isFunction(this.onRoute)){var r=e.invert(this.appRoutes)[t];this.onRoute(t,r,n)}},processAppRoutes:function(t,n){var r=this;if(!n)return this;var i=e.keys(n).reverse();return e.each(i,function(e){r._addAppRoute(t,e,n[e])}),this},_getController:function(){return this.controller},_addAppRoute:function(t,n,r){var i=t[r];if(!i)throw new k('Method "'+r+'" was not found on the controller');this.route(n,r,e.bind(i,t))},triggerMethod:f});e.extend(kt.prototype,P);var Lt=t.Marionette,Mt=t.Marionette={};return Mt.noConflict=function(){return t.Marionette=Lt,this},Mt.bindEvents=r(M),Mt.unbindEvents=r(N),Mt.bindRequests=r(q),Mt.unbindRequests=r(R),Mt.mergeOptions=r(a),Mt.getOption=r(l),Mt.normalizeMethods=r(u),Mt.extend=i,Mt.isNodeAttached=o,Mt.deprecate=s,Mt.triggerMethod=r(f),Mt.triggerMethodOn=p,Mt.isEnabled=K,Mt.setEnabled=function(t,e){return G[t]=e},Mt.monitorViewEvents=S,Mt.Behaviors={},Mt.Behaviors.behaviorsLookup=function(){throw new k({message:"You must define where your behaviors are stored.",url:"marionette.behaviors.md#behaviorslookup"})},Mt.Application=St,Mt.AppRouter=kt,Mt.Renderer=ct,Mt.TemplateCache=j,Mt.View=dt,Mt.CollectionView=vt,Mt.NextCollectionView=wt,Mt.CompositeView=Ct,Mt.Behavior=Et,Mt.Region=ot,Mt.Error=k,Mt.Object=V,Mt.DEV_MODE=!1,Mt.FEATURES=G,Mt.VERSION="3.5.1",Mt.DomApi=et,Mt.setDomApi=function(t){vt.setDomApi(t),Ct.setDomApi(t),wt.setDomApi(t),ot.setDomApi(t),dt.setDomApi(t)},Mt}(n(8),n(4),n(56)),this&&this.Marionette&&(this.Mn=this.Marionette)},function(t,e,n){t.exports=n(105).default},function(t,e,n){var r;void 0===(r=function(){"use strict";return window.OC||{}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){(function(r){var i,s;!function(o){var a="object"==typeof self&&self.self===self&&self||"object"==typeof r&&r.global===r&&r;i=[n(4),n(2),e],void 0===(s=function(t,e,n){a.Backbone=function(t,e,n,r){var i=t.Backbone,s=Array.prototype.slice;e.VERSION="1.3.3",e.$=r,e.noConflict=function(){return t.Backbone=i,this},e.emulateHTTP=!1,e.emulateJSON=!1;var o=function(t,e,r){n.each(e,function(e,i){n[i]&&(t.prototype[i]=function(t,e,r){switch(t){case 1:return function(){return n[e](this[r])};case 2:return function(t){return n[e](this[r],t)};case 3:return function(t,i){return n[e](this[r],a(t,this),i)};case 4:return function(t,i,s){return n[e](this[r],a(t,this),i,s)};default:return function(){var t=s.call(arguments);return t.unshift(this[r]),n[e].apply(n,t)}}}(e,i,r))})},a=function(t,e){return n.isFunction(t)?t:n.isObject(t)&&!e._isModel(t)?l(t):n.isString(t)?function(e){return e.get(t)}:t},l=function(t){var e=n.matches(t);return function(t){return e(t.attributes)}},u=e.Events={},c=/\s+/,h=function(t,e,r,i,s){var o,a=0;if(r&&"object"==typeof r){void 0!==i&&"context"in s&&void 0===s.context&&(s.context=i);for(o=n.keys(r);a<o.length;a++)e=h(t,e,o[a],r[o[a]],s)}else if(r&&c.test(r))for(o=r.split(c);a<o.length;a++)e=t(e,o[a],i,s);else e=t(e,r,i,s);return e};u.on=function(t,e,n){return d(this,t,e,n)};var d=function(t,e,n,r,i){if(t._events=h(f,t._events||{},e,n,{context:r,ctx:t,listening:i}),i){var s=t._listeners||(t._listeners={});s[i.id]=i}return t};u.listenTo=function(t,e,r){if(!t)return this;var i=t._listenId||(t._listenId=n.uniqueId("l")),s=this._listeningTo||(this._listeningTo={}),o=s[i];if(!o){var a=this._listenId||(this._listenId=n.uniqueId("l"));o=s[i]={obj:t,objId:i,id:a,listeningTo:s,count:0}}return d(t,e,r,this,o),this};var f=function(t,e,n,r){if(n){var i=t[e]||(t[e]=[]),s=r.context,o=r.ctx,a=r.listening;a&&a.count++,i.push({callback:n,context:s,ctx:s||o,listening:a})}return t};u.off=function(t,e,n){return this._events?(this._events=h(p,this._events,t,e,{context:n,listeners:this._listeners}),this):this},u.stopListening=function(t,e,r){var i=this._listeningTo;if(!i)return this;for(var s=t?[t._listenId]:n.keys(i),o=0;o<s.length;o++){var a=i[s[o]];if(!a)break;a.obj.off(e,r,this)}return this};var p=function(t,e,r,i){if(t){var s,o=0,a=i.context,l=i.listeners;if(e||r||a){for(var u=e?[e]:n.keys(t);o<u.length;o++){e=u[o];var c=t[e];if(!c)break;for(var h=[],d=0;d<c.length;d++){var f=c[d];r&&r!==f.callback&&r!==f.callback._callback||a&&a!==f.context?h.push(f):(s=f.listening)&&0==--s.count&&(delete l[s.id],delete s.listeningTo[s.objId])}h.length?t[e]=h:delete t[e]}return t}for(var p=n.keys(l);o<p.length;o++)s=l[p[o]],delete l[s.id],delete s.listeningTo[s.objId]}};u.once=function(t,e,r){var i=h(m,{},t,e,n.bind(this.off,this));return"string"==typeof t&&null==r&&(e=void 0),this.on(i,e,r)},u.listenToOnce=function(t,e,r){var i=h(m,{},e,r,n.bind(this.stopListening,this,t));return this.listenTo(t,i)};var m=function(t,e,r,i){if(r){var s=t[e]=n.once(function(){i(e,s),r.apply(this,arguments)});s._callback=r}return t};u.trigger=function(t){if(!this._events)return this;for(var e=Math.max(0,arguments.length-1),n=Array(e),r=0;r<e;r++)n[r]=arguments[r+1];return h(g,this._events,t,void 0,n),this};var g=function(t,e,n,r){if(t){var i=t[e],s=t.all;i&&s&&(s=s.slice()),i&&v(i,r),s&&v(s,[e].concat(r))}return t},v=function(t,e){var n,r=-1,i=t.length,s=e[0],o=e[1],a=e[2];switch(e.length){case 0:for(;++r<i;)(n=t[r]).callback.call(n.ctx);return;case 1:for(;++r<i;)(n=t[r]).callback.call(n.ctx,s);return;case 2:for(;++r<i;)(n=t[r]).callback.call(n.ctx,s,o);return;case 3:for(;++r<i;)(n=t[r]).callback.call(n.ctx,s,o,a);return;default:for(;++r<i;)(n=t[r]).callback.apply(n.ctx,e);return}};u.bind=u.on,u.unbind=u.off,n.extend(e,u);var y=e.Model=function(t,e){var r=t||{};e||(e={}),this.cid=n.uniqueId(this.cidPrefix),this.attributes={},e.collection&&(this.collection=e.collection),e.parse&&(r=this.parse(r,e)||{});var i=n.result(this,"defaults");r=n.defaults(n.extend({},i,r),i),this.set(r,e),this.changed={},this.initialize.apply(this,arguments)};n.extend(y.prototype,u,{changed:null,validationError:null,idAttribute:"id",cidPrefix:"c",initialize:function(){},toJSON:function(t){return n.clone(this.attributes)},sync:function(){return e.sync.apply(this,arguments)},get:function(t){return this.attributes[t]},escape:function(t){return n.escape(this.get(t))},has:function(t){return null!=this.get(t)},matches:function(t){return!!n.iteratee(t,this)(this.attributes)},set:function(t,e,r){if(null==t)return this;var i;if("object"==typeof t?(i=t,r=e):(i={})[t]=e,r||(r={}),!this._validate(i,r))return!1;var s=r.unset,o=r.silent,a=[],l=this._changing;this._changing=!0,l||(this._previousAttributes=n.clone(this.attributes),this.changed={});var u=this.attributes,c=this.changed,h=this._previousAttributes;for(var d in i)e=i[d],n.isEqual(u[d],e)||a.push(d),n.isEqual(h[d],e)?delete c[d]:c[d]=e,s?delete u[d]:u[d]=e;if(this.idAttribute in i&&(this.id=this.get(this.idAttribute)),!o){a.length&&(this._pending=r);for(var f=0;f<a.length;f++)this.trigger("change:"+a[f],this,u[a[f]],r)}if(l)return this;if(!o)for(;this._pending;)r=this._pending,this._pending=!1,this.trigger("change",this,r);return this._pending=!1,this._changing=!1,this},unset:function(t,e){return this.set(t,void 0,n.extend({},e,{unset:!0}))},clear:function(t){var e={};for(var r in this.attributes)e[r]=void 0;return this.set(e,n.extend({},t,{unset:!0}))},hasChanged:function(t){return null==t?!n.isEmpty(this.changed):n.has(this.changed,t)},changedAttributes:function(t){if(!t)return!!this.hasChanged()&&n.clone(this.changed);var e=this._changing?this._previousAttributes:this.attributes,r={};for(var i in t){var s=t[i];n.isEqual(e[i],s)||(r[i]=s)}return!!n.size(r)&&r},previous:function(t){return null!=t&&this._previousAttributes?this._previousAttributes[t]:null},previousAttributes:function(){return n.clone(this._previousAttributes)},fetch:function(t){var e=this,r=(t=n.extend({parse:!0},t)).success;return t.success=function(n){var i=t.parse?e.parse(n,t):n;if(!e.set(i,t))return!1;r&&r.call(t.context,e,n,t),e.trigger("sync",e,n,t)},P(this,t),this.sync("read",this,t)},save:function(t,e,r){var i;null==t||"object"==typeof t?(i=t,r=e):(i={})[t]=e;var s=(r=n.extend({validate:!0,parse:!0},r)).wait;if(i&&!s){if(!this.set(i,r))return!1}else if(!this._validate(i,r))return!1;var o=this,a=r.success,l=this.attributes;r.success=function(t){o.attributes=l;var e=r.parse?o.parse(t,r):t;if(s&&(e=n.extend({},i,e)),e&&!o.set(e,r))return!1;a&&a.call(r.context,o,t,r),o.trigger("sync",o,t,r)},P(this,r),i&&s&&(this.attributes=n.extend({},l,i));var u=this.isNew()?"create":r.patch?"patch":"update";"patch"!==u||r.attrs||(r.attrs=i);var c=this.sync(u,this,r);return this.attributes=l,c},destroy:function(t){var e=this,r=(t=t?n.clone(t):{}).success,i=t.wait,s=function(){e.stopListening(),e.trigger("destroy",e,e.collection,t)};t.success=function(n){i&&s(),r&&r.call(t.context,e,n,t),e.isNew()||e.trigger("sync",e,n,t)};var o=!1;return this.isNew()?n.defer(t.success):(P(this,t),o=this.sync("delete",this,t)),i||s(),o},url:function(){var t=n.result(this,"urlRoot")||n.result(this.collection,"url")||R();if(this.isNew())return t;var e=this.get(this.idAttribute);return t.replace(/[^\/]$/,"$&/")+encodeURIComponent(e)},parse:function(t,e){return t},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(t){return this._validate({},n.extend({},t,{validate:!0}))},_validate:function(t,e){if(!e.validate||!this.validate)return!0;t=n.extend({},this.attributes,t);var r=this.validationError=this.validate(t,e)||null;return!r||(this.trigger("invalid",this,r,n.extend(e,{validationError:r})),!1)}}),o(y,{keys:1,values:1,pairs:1,invert:1,pick:0,omit:0,chain:1,isEmpty:1},"attributes");var b=e.Collection=function(t,e){e||(e={}),e.model&&(this.model=e.model),void 0!==e.comparator&&(this.comparator=e.comparator),this._reset(),this.initialize.apply(this,arguments),t&&this.reset(t,n.extend({silent:!0},e))},_={add:!0,remove:!0,merge:!0},w={add:!0,remove:!1},x=function(t,e,n){n=Math.min(Math.max(n,0),t.length);var r,i=Array(t.length-n),s=e.length;for(r=0;r<i.length;r++)i[r]=t[r+n];for(r=0;r<s;r++)t[r+n]=e[r];for(r=0;r<i.length;r++)t[r+s+n]=i[r]};n.extend(b.prototype,u,{model:y,initialize:function(){},toJSON:function(t){return this.map(function(e){return e.toJSON(t)})},sync:function(){return e.sync.apply(this,arguments)},add:function(t,e){return this.set(t,n.extend({merge:!1},e,w))},remove:function(t,e){e=n.extend({},e);var r=!n.isArray(t);t=r?[t]:t.slice();var i=this._removeModels(t,e);return!e.silent&&i.length&&(e.changes={added:[],merged:[],removed:i},this.trigger("update",this,e)),r?i[0]:i},set:function(t,e){if(null!=t){(e=n.extend({},_,e)).parse&&!this._isModel(t)&&(t=this.parse(t,e)||[]);var r=!n.isArray(t);t=r?[t]:t.slice();var i=e.at;null!=i&&(i=+i),i>this.length&&(i=this.length),i<0&&(i+=this.length+1);var s,o,a=[],l=[],u=[],c=[],h={},d=e.add,f=e.merge,p=e.remove,m=!1,g=this.comparator&&null==i&&!1!==e.sort,v=n.isString(this.comparator)?this.comparator:null;for(o=0;o<t.length;o++){s=t[o];var y=this.get(s);if(y){if(f&&s!==y){var b=this._isModel(s)?s.attributes:s;e.parse&&(b=y.parse(b,e)),y.set(b,e),u.push(y),g&&!m&&(m=y.hasChanged(v))}h[y.cid]||(h[y.cid]=!0,a.push(y)),t[o]=y}else d&&(s=t[o]=this._prepareModel(s,e))&&(l.push(s),this._addReference(s,e),h[s.cid]=!0,a.push(s))}if(p){for(o=0;o<this.length;o++)s=this.models[o],h[s.cid]||c.push(s);c.length&&this._removeModels(c,e)}var w=!1,C=!g&&d&&p;if(a.length&&C?(w=this.length!==a.length||n.some(this.models,function(t,e){return t!==a[e]}),this.models.length=0,x(this.models,a,0),this.length=this.models.length):l.length&&(g&&(m=!0),x(this.models,l,null==i?this.length:i),this.length=this.models.length),m&&this.sort({silent:!0}),!e.silent){for(o=0;o<l.length;o++)null!=i&&(e.index=i+o),(s=l[o]).trigger("add",s,this,e);(m||w)&&this.trigger("sort",this,e),(l.length||c.length||u.length)&&(e.changes={added:l,removed:c,merged:u},this.trigger("update",this,e))}return r?t[0]:t}},reset:function(t,e){e=e?n.clone(e):{};for(var r=0;r<this.models.length;r++)this._removeReference(this.models[r],e);return e.previousModels=this.models,this._reset(),t=this.add(t,n.extend({silent:!0},e)),e.silent||this.trigger("reset",this,e),t},push:function(t,e){return this.add(t,n.extend({at:this.length},e))},pop:function(t){var e=this.at(this.length-1);return this.remove(e,t)},unshift:function(t,e){return this.add(t,n.extend({at:0},e))},shift:function(t){var e=this.at(0);return this.remove(e,t)},slice:function(){return s.apply(this.models,arguments)},get:function(t){if(null!=t)return this._byId[t]||this._byId[this.modelId(t.attributes||t)]||t.cid&&this._byId[t.cid]},has:function(t){return null!=this.get(t)},at:function(t){return t<0&&(t+=this.length),this.models[t]},where:function(t,e){return this[e?"find":"filter"](t)},findWhere:function(t){return this.where(t,!0)},sort:function(t){var e=this.comparator;if(!e)throw new Error("Cannot sort a set without a comparator");t||(t={});var r=e.length;return n.isFunction(e)&&(e=n.bind(e,this)),1===r||n.isString(e)?this.models=this.sortBy(e):this.models.sort(e),t.silent||this.trigger("sort",this,t),this},pluck:function(t){return this.map(t+"")},fetch:function(t){var e=(t=n.extend({parse:!0},t)).success,r=this;return t.success=function(n){var i=t.reset?"reset":"set";r[i](n,t),e&&e.call(t.context,r,n,t),r.trigger("sync",r,n,t)},P(this,t),this.sync("read",this,t)},create:function(t,e){var r=(e=e?n.clone(e):{}).wait;if(!(t=this._prepareModel(t,e)))return!1;r||this.add(t,e);var i=this,s=e.success;return e.success=function(t,e,n){r&&i.add(t,n),s&&s.call(n.context,t,e,n)},t.save(null,e),t},parse:function(t,e){return t},clone:function(){return new this.constructor(this.models,{model:this.model,comparator:this.comparator})},modelId:function(t){return t[this.model.prototype.idAttribute||"id"]},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(t,e){if(this._isModel(t))return t.collection||(t.collection=this),t;(e=e?n.clone(e):{}).collection=this;var r=new this.model(t,e);return r.validationError?(this.trigger("invalid",this,r.validationError,e),!1):r},_removeModels:function(t,e){for(var n=[],r=0;r<t.length;r++){var i=this.get(t[r]);if(i){var s=this.indexOf(i);this.models.splice(s,1),this.length--,delete this._byId[i.cid];var o=this.modelId(i.attributes);null!=o&&delete this._byId[o],e.silent||(e.index=s,i.trigger("remove",i,this,e)),n.push(i),this._removeReference(i,e)}}return n},_isModel:function(t){return t instanceof y},_addReference:function(t,e){this._byId[t.cid]=t;var n=this.modelId(t.attributes);null!=n&&(this._byId[n]=t),t.on("all",this._onModelEvent,this)},_removeReference:function(t,e){delete this._byId[t.cid];var n=this.modelId(t.attributes);null!=n&&delete this._byId[n],this===t.collection&&delete t.collection,t.off("all",this._onModelEvent,this)},_onModelEvent:function(t,e,n,r){if(e){if(("add"===t||"remove"===t)&&n!==this)return;if("destroy"===t&&this.remove(e,r),"change"===t){var i=this.modelId(e.previousAttributes()),s=this.modelId(e.attributes);i!==s&&(null!=i&&delete this._byId[i],null!=s&&(this._byId[s]=e))}}this.trigger.apply(this,arguments)}}),o(b,{forEach:3,each:3,map:3,collect:3,reduce:0,foldl:0,inject:0,reduceRight:0,foldr:0,find:3,detect:3,filter:3,select:3,reject:3,every:3,all:3,some:3,any:3,include:3,includes:3,contains:3,invoke:0,max:3,min:3,toArray:1,size:1,first:3,head:3,take:3,initial:3,rest:3,tail:3,drop:3,last:3,without:0,difference:0,indexOf:3,shuffle:1,lastIndexOf:3,isEmpty:1,chain:1,sample:3,partition:3,groupBy:3,countBy:3,sortBy:3,indexBy:3,findIndex:3,findLastIndex:3},"models");var C=e.View=function(t){this.cid=n.uniqueId("view"),n.extend(this,n.pick(t,D)),this._ensureElement(),this.initialize.apply(this,arguments)},A=/^(\S+)\s*(.*)$/,D=["model","collection","el","id","attributes","className","tagName","events"];n.extend(C.prototype,u,{tagName:"div",$:function(t){return this.$el.find(t)},initialize:function(){},render:function(){return this},remove:function(){return this._removeElement(),this.stopListening(),this},_removeElement:function(){this.$el.remove()},setElement:function(t){return this.undelegateEvents(),this._setElement(t),this.delegateEvents(),this},_setElement:function(t){this.$el=t instanceof e.$?t:e.$(t),this.el=this.$el[0]},delegateEvents:function(t){if(t||(t=n.result(this,"events")),!t)return this;for(var e in this.undelegateEvents(),t){var r=t[e];if(n.isFunction(r)||(r=this[r]),r){var i=e.match(A);this.delegate(i[1],i[2],n.bind(r,this))}}return this},delegate:function(t,e,n){return this.$el.on(t+".delegateEvents"+this.cid,e,n),this},undelegateEvents:function(){return this.$el&&this.$el.off(".delegateEvents"+this.cid),this},undelegate:function(t,e,n){return this.$el.off(t+".delegateEvents"+this.cid,e,n),this},_createElement:function(t){return document.createElement(t)},_ensureElement:function(){if(this.el)this.setElement(n.result(this,"el"));else{var t=n.extend({},n.result(this,"attributes"));this.id&&(t.id=n.result(this,"id")),this.className&&(t.class=n.result(this,"className")),this.setElement(this._createElement(n.result(this,"tagName"))),this._setAttributes(t)}},_setAttributes:function(t){this.$el.attr(t)}}),e.sync=function(t,r,i){var s=E[t];n.defaults(i||(i={}),{emulateHTTP:e.emulateHTTP,emulateJSON:e.emulateJSON});var o={type:s,dataType:"json"};if(i.url||(o.url=n.result(r,"url")||R()),null!=i.data||!r||"create"!==t&&"update"!==t&&"patch"!==t||(o.contentType="application/json",o.data=JSON.stringify(i.attrs||r.toJSON(i))),i.emulateJSON&&(o.contentType="application/x-www-form-urlencoded",o.data=o.data?{model:o.data}:{}),i.emulateHTTP&&("PUT"===s||"DELETE"===s||"PATCH"===s)){o.type="POST",i.emulateJSON&&(o.data._method=s);var a=i.beforeSend;i.beforeSend=function(t){if(t.setRequestHeader("X-HTTP-Method-Override",s),a)return a.apply(this,arguments)}}"GET"===o.type||i.emulateJSON||(o.processData=!1);var l=i.error;i.error=function(t,e,n){i.textStatus=e,i.errorThrown=n,l&&l.call(i.context,t,e,n)};var u=i.xhr=e.ajax(n.extend(o,i));return r.trigger("request",r,u,i),u};var E={create:"POST",update:"PUT",patch:"PATCH",delete:"DELETE",read:"GET"};e.ajax=function(){return e.$.ajax.apply(e.$,arguments)};var T=e.Router=function(t){t||(t={}),t.routes&&(this.routes=t.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},S=/\((.*?)\)/g,I=/(\(\?)?:\w+/g,k=/\*\w+/g,L=/[\-{}\[\]+?.,\\\^$|#\s]/g;n.extend(T.prototype,u,{initialize:function(){},route:function(t,r,i){n.isRegExp(t)||(t=this._routeToRegExp(t)),n.isFunction(r)&&(i=r,r=""),i||(i=this[r]);var s=this;return e.history.route(t,function(n){var o=s._extractParameters(t,n);!1!==s.execute(i,o,r)&&(s.trigger.apply(s,["route:"+r].concat(o)),s.trigger("route",r,o),e.history.trigger("route",s,r,o))}),this},execute:function(t,e,n){t&&t.apply(this,e)},navigate:function(t,n){return e.history.navigate(t,n),this},_bindRoutes:function(){if(this.routes){this.routes=n.result(this,"routes");for(var t,e=n.keys(this.routes);null!=(t=e.pop());)this.route(t,this.routes[t])}},_routeToRegExp:function(t){return t=t.replace(L,"\\$&").replace(S,"(?:$1)?").replace(I,function(t,e){return e?t:"([^/?]+)"}).replace(k,"([^?]*?)"),new RegExp("^"+t+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(t,e){var r=t.exec(e).slice(1);return n.map(r,function(t,e){return e===r.length-1?t||null:t?decodeURIComponent(t):null})}});var M=e.History=function(){this.handlers=[],this.checkUrl=n.bind(this.checkUrl,this),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},N=/^[#\/]|\s+$/g,O=/^\/+|\/+$/g,q=/#.*$/;M.started=!1,n.extend(M.prototype,u,{interval:50,atRoot:function(){var t=this.location.pathname.replace(/[^\/]$/,"$&/");return t===this.root&&!this.getSearch()},matchRoot:function(){var t=this.decodeFragment(this.location.pathname),e=t.slice(0,this.root.length-1)+"/";return e===this.root},decodeFragment:function(t){return decodeURI(t.replace(/%25/g,"%2525"))},getSearch:function(){var t=this.location.href.replace(/#.*/,"").match(/\?.+/);return t?t[0]:""},getHash:function(t){var e=(t||this).location.href.match(/#(.*)$/);return e?e[1]:""},getPath:function(){var t=this.decodeFragment(this.location.pathname+this.getSearch()).slice(this.root.length-1);return"/"===t.charAt(0)?t.slice(1):t},getFragment:function(t){return null==t&&(t=this._usePushState||!this._wantsHashChange?this.getPath():this.getHash()),t.replace(N,"")},start:function(t){if(M.started)throw new Error("Backbone.history has already been started");if(M.started=!0,this.options=n.extend({root:"/"},this.options,t),this.root=this.options.root,this._wantsHashChange=!1!==this.options.hashChange,this._hasHashChange="onhashchange"in window&&(void 0===document.documentMode||document.documentMode>7),this._useHashChange=this._wantsHashChange&&this._hasHashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!(!this.history||!this.history.pushState),this._usePushState=this._wantsPushState&&this._hasPushState,this.fragment=this.getFragment(),this.root=("/"+this.root+"/").replace(O,"/"),this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot()){var e=this.root.slice(0,-1)||"/";return this.location.replace(e+"#"+this.getPath()),!0}this._hasPushState&&this.atRoot()&&this.navigate(this.getHash(),{replace:!0})}if(!this._hasHashChange&&this._wantsHashChange&&!this._usePushState){this.iframe=document.createElement("iframe"),this.iframe.src="javascript:0",this.iframe.style.display="none",this.iframe.tabIndex=-1;var r=document.body,i=r.insertBefore(this.iframe,r.firstChild).contentWindow;i.document.open(),i.document.close(),i.location.hash="#"+this.fragment}var s=window.addEventListener||function(t,e){return attachEvent("on"+t,e)};if(this._usePushState?s("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe?s("hashchange",this.checkUrl,!1):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),!this.options.silent)return this.loadUrl()},stop:function(){var t=window.removeEventListener||function(t,e){return detachEvent("on"+t,e)};this._usePushState?t("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe&&t("hashchange",this.checkUrl,!1),this.iframe&&(document.body.removeChild(this.iframe),this.iframe=null),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),M.started=!1},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(t){var e=this.getFragment();if(e===this.fragment&&this.iframe&&(e=this.getHash(this.iframe.contentWindow)),e===this.fragment)return!1;this.iframe&&this.navigate(e),this.loadUrl()},loadUrl:function(t){return!!this.matchRoot()&&(t=this.fragment=this.getFragment(t),n.some(this.handlers,function(e){if(e.route.test(t))return e.callback(t),!0}))},navigate:function(t,e){if(!M.started)return!1;e&&!0!==e||(e={trigger:!!e}),t=this.getFragment(t||"");var n=this.root;""!==t&&"?"!==t.charAt(0)||(n=n.slice(0,-1)||"/");var r=n+t;if(t=this.decodeFragment(t.replace(q,"")),this.fragment!==t){if(this.fragment=t,this._usePushState)this.history[e.replace?"replaceState":"pushState"]({},document.title,r);else{if(!this._wantsHashChange)return this.location.assign(r);if(this._updateHash(this.location,t,e.replace),this.iframe&&t!==this.getHash(this.iframe.contentWindow)){var i=this.iframe.contentWindow;e.replace||(i.document.open(),i.document.close()),this._updateHash(i.location,t,e.replace)}}return e.trigger?this.loadUrl(t):void 0}},_updateHash:function(t,e,n){if(n){var r=t.href.replace(/(javascript:|#).*$/,"");t.replace(r+"#"+e)}else t.hash="#"+e}}),e.history=new M;y.extend=b.extend=T.extend=C.extend=M.extend=function(t,e){var r,i=this;r=t&&n.has(t,"constructor")?t.constructor:function(){return i.apply(this,arguments)};return n.extend(r,i,e),r.prototype=n.create(i.prototype,t),r.prototype.constructor=r,r.__super__=i.prototype,r};var R=function(){throw new Error('A "url" property or function must be specified')},P=function(t,e){var n=e.error;e.error=function(r){n&&n.call(e.context,t,r,e),t.trigger("error",t,r,e)}};return e}(a,n,t,e)}.apply(e,i))||(t.exports=s)}()}).call(this,n(10))},function(t,e,n){var r,i,s;i=[n(2)],void 0===(s="function"==typeof(r=function(t){return t.ui=t.ui||{},t.ui.version="1.12.1"})?r.apply(e,i):r)||(t.exports=s)},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},function(t,e,n){"use strict";e.__esModule=!0,e.extend=a,e.indexOf=function(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1},e.escapeExpression=function(t){if("string"!=typeof t){if(t&&t.toHTML)return t.toHTML();if(null==t)return"";if(!t)return t+"";t=""+t}if(!s.test(t))return t;return t.replace(i,o)},e.isEmpty=function(t){return!t&&0!==t||!(!c(t)||0!==t.length)},e.createFrame=function(t){var e=a({},t);return e._parent=t,e},e.blockParams=function(t,e){return t.path=e,t},e.appendContextPath=function(t,e){return(t?t+".":"")+e};var r={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},i=/[&<>"'`=]/g,s=/[&<>"'`=]/;function o(t){return r[t]}function a(t){for(var e=1;e<arguments.length;e++)for(var n in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],n)&&(t[n]=arguments[e][n]);return t}var l=Object.prototype.toString;e.toString=l;var u=function(t){return"function"==typeof t};u(/x/)&&(e.isFunction=u=function(t){return"function"==typeof t&&"[object Function]"===l.call(t)}),e.isFunction=u;var c=Array.isArray||function(t){return!(!t||"object"!=typeof t)&&"[object Array]"===l.call(t)};e.isArray=c},function(t,e,n){var r;
/**
 * @copyright 2017 Christoph Wurst <christoph@winzerhof-wurst.at>
 *
 * @author 2017 Christoph Wurst <christoph@winzerhof-wurst.at>
 *
 * @license GNU AGPL version 3 or any later version
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */void 0===(r=function(t){"use strict";var e=n(2),r=n(7),i=n(248);return{report:function(t){console.error(t);var n=t.message||"An unkown error occurred.";n.endsWith(".")||(n+=".");var s="true"===e("#debug-mode").val(),o=e("<div>"),a=e("<a>"),l=null;if(a.text("Error: "+n),s){var u=(new i).addEmptyStepsToReproduce().addExpectedActualBehaviour().addLogs("Error",function(t){var e="";return t.type&&(e+=t.type+": "),e+=t.message,e+="\n",t.trace&&(e+=function(t){return t.reduce(function(t,e){var n="";return e.class?n+="  at "+e.class+"::"+e.function:n+="  at "+e.function,e.file&&(n+="\n     "+e.file+", line "+e.line),t+n+"\n"},"")}(t.trace)),t.stack&&(e+=t.stack),e}(t)).render();a.append(" Report a bug.");var c="https://github.com/nextcloud/mail/issues/new?title="+encodeURIComponent(n)+"&body="+encodeURIComponent(u);a.attr("href",c),a.attr("target","_blank"),a.attr("rel","noopener"),a.click(function(){r.Notification.hide(l)})}o.append(a),l=r.Notification.showTemporary(o,{isHTML:!0})}}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){"use strict";var r=n(26),i=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=h;var s=n(22);s.inherits=n(11);var o=n(75),a=n(48);s.inherits(h,o);for(var l=i(a.prototype),u=0;u<l.length;u++){var c=l[u];h.prototype[c]||(h.prototype[c]=a.prototype[c])}function h(t){if(!(this instanceof h))return new h(t);o.call(this,t),a.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",d)}function d(){this.allowHalfOpen||this._writableState.ended||r.nextTick(f,this)}function f(t){t.end()}Object.defineProperty(h.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(h.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}),h.prototype._destroy=function(t,e){this.push(null),this.end(),r.nextTick(e,t)}},function(t,e){var n,r,i=t.exports={};function s(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===s||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:s}catch(t){n=s}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(t){r=o}}();var l,u=[],c=!1,h=-1;function d(){c&&l&&(c=!1,l.length?u=l.concat(u):h=-1,u.length&&f())}function f(){if(!c){var t=a(d);c=!0;for(var e=u.length;e;){for(l=u,u=[];++h<e;)l&&l[h].run();h=-1,e=u.length}l=null,c=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function m(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];u.push(new p(t,e)),1!==u.length||c||a(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e,n){var r,i,s;
/*!
 * jQuery UI Widget 1.12.1
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */i=[n(2),n(9)],void 0===(s="function"==typeof(r=function(t){var e=0,n=Array.prototype.slice;return t.cleanData=function(e){return function(n){var r,i,s;for(s=0;null!=(i=n[s]);s++)try{(r=t._data(i,"events"))&&r.remove&&t(i).triggerHandler("remove")}catch(t){}e(n)}}(t.cleanData),t.widget=function(e,n,r){var i,s,o,a={},l=e.split(".")[0],u=l+"-"+(e=e.split(".")[1]);return r||(r=n,n=t.Widget),t.isArray(r)&&(r=t.extend.apply(null,[{}].concat(r))),t.expr[":"][u.toLowerCase()]=function(e){return!!t.data(e,u)},t[l]=t[l]||{},i=t[l][e],s=t[l][e]=function(t,e){if(!this._createWidget)return new s(t,e);arguments.length&&this._createWidget(t,e)},t.extend(s,i,{version:r.version,_proto:t.extend({},r),_childConstructors:[]}),(o=new n).options=t.widget.extend({},o.options),t.each(r,function(e,r){t.isFunction(r)?a[e]=function(){function t(){return n.prototype[e].apply(this,arguments)}function i(t){return n.prototype[e].apply(this,t)}return function(){var e,n=this._super,s=this._superApply;return this._super=t,this._superApply=i,e=r.apply(this,arguments),this._super=n,this._superApply=s,e}}():a[e]=r}),s.prototype=t.widget.extend(o,{widgetEventPrefix:i&&o.widgetEventPrefix||e},a,{constructor:s,namespace:l,widgetName:e,widgetFullName:u}),i?(t.each(i._childConstructors,function(e,n){var r=n.prototype;t.widget(r.namespace+"."+r.widgetName,s,n._proto)}),delete i._childConstructors):n._childConstructors.push(s),t.widget.bridge(e,s),s},t.widget.extend=function(e){for(var r,i,s=n.call(arguments,1),o=0,a=s.length;o<a;o++)for(r in s[o])i=s[o][r],s[o].hasOwnProperty(r)&&void 0!==i&&(t.isPlainObject(i)?e[r]=t.isPlainObject(e[r])?t.widget.extend({},e[r],i):t.widget.extend({},i):e[r]=i);return e},t.widget.bridge=function(e,r){var i=r.prototype.widgetFullName||e;t.fn[e]=function(s){var o="string"==typeof s,a=n.call(arguments,1),l=this;return o?this.length||"instance"!==s?this.each(function(){var n,r=t.data(this,i);return"instance"===s?(l=r,!1):r?t.isFunction(r[s])&&"_"!==s.charAt(0)?(n=r[s].apply(r,a))!==r&&void 0!==n?(l=n&&n.jquery?l.pushStack(n.get()):n,!1):void 0:t.error("no such method '"+s+"' for "+e+" widget instance"):t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+s+"'")}):l=void 0:(a.length&&(s=t.widget.extend.apply(null,[s].concat(a))),this.each(function(){var e=t.data(this,i);e?(e.option(s||{}),e._init&&e._init()):t.data(this,i,new r(s,this))})),l}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(n,r){r=t(r||this.defaultElement||this)[0],this.element=t(r),this.uuid=e++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},r!==this&&(t.data(r,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===r&&this.destroy()}}),this.document=t(r.style?r.ownerDocument:r.document||r),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),n),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,function(t,n){e._removeClass(n,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,n){var r,i,s,o=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(o={},e=(r=e.split(".")).shift(),r.length){for(i=o[e]=t.widget.extend({},this.options[e]),s=0;s<r.length-1;s++)i[r[s]]=i[r[s]]||{},i=i[r[s]];if(e=r.pop(),1===arguments.length)return void 0===i[e]?null:i[e];i[e]=n}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];o[e]=n}return this._setOptions(o),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(e){var n,r,i;for(n in e)i=this.classesElementLookup[n],e[n]!==this.options.classes[n]&&i&&i.length&&(r=t(i.get()),this._removeClass(i,n),r.addClass(this._classes({element:r,keys:n,classes:e,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){var n=[],r=this;function i(i,s){var o,a;for(a=0;a<i.length;a++)o=r.classesElementLookup[i[a]]||t(),o=e.add?t(t.unique(o.get().concat(e.element.get()))):t(o.not(e.element).get()),r.classesElementLookup[i[a]]=o,n.push(i[a]),s&&e.classes[i[a]]&&n.push(e.classes[i[a]])}return e=t.extend({element:this.element,classes:this.options.classes||{}},e),this._on(e.element,{remove:"_untrackClassesElement"}),e.keys&&i(e.keys.match(/\S+/g)||[],!0),e.extra&&i(e.extra.match(/\S+/g)||[]),n.join(" ")},_untrackClassesElement:function(e){var n=this;t.each(n.classesElementLookup,function(r,i){-1!==t.inArray(e.target,i)&&(n.classesElementLookup[r]=t(i.not(e.target).get()))})},_removeClass:function(t,e,n){return this._toggleClass(t,e,n,!1)},_addClass:function(t,e,n){return this._toggleClass(t,e,n,!0)},_toggleClass:function(t,e,n,r){r="boolean"==typeof r?r:n;var i="string"==typeof t||null===t,s={extra:i?e:n,keys:i?t:e,element:i?this.element:t,add:r};return s.element.toggleClass(this._classes(s),r),this},_on:function(e,n,r){var i,s=this;"boolean"!=typeof e&&(r=n,n=e,e=!1),r?(n=i=t(n),this.bindings=this.bindings.add(n)):(r=n,n=this.element,i=this.widget()),t.each(r,function(r,o){function a(){if(e||!0!==s.options.disabled&&!t(this).hasClass("ui-state-disabled"))return("string"==typeof o?s[o]:o).apply(s,arguments)}"string"!=typeof o&&(a.guid=o.guid=o.guid||a.guid||t.guid++);var l=r.match(/^([\w:-]*)\s*(.*)$/),u=l[1]+s.eventNamespace,c=l[2];c?i.on(u,c,a):n.on(u,a)})},_off:function(e,n){n=(n||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(n).off(n),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){var n=this;return setTimeout(function(){return("string"==typeof t?n[t]:t).apply(n,arguments)},e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,n,r){var i,s,o=this.options[e];if(r=r||{},(n=t.Event(n)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),n.target=this.element[0],s=n.originalEvent)for(i in s)i in n||(n[i]=s[i]);return this.element.trigger(n,r),!(t.isFunction(o)&&!1===o.apply(this.element[0],[n].concat(r))||n.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,n){t.Widget.prototype["_"+e]=function(r,i,s){var o;"string"==typeof i&&(i={effect:i});var a=i?!0===i||"number"==typeof i?n:i.effect||n:e;"number"==typeof(i=i||{})&&(i={duration:i}),o=!t.isEmptyObject(i),i.complete=s,i.delay&&r.delay(i.delay),o&&t.effects&&t.effects.effect[a]?r[e](i):a!==e&&r[a]?r[a](i.duration,i.easing,s):r.queue(function(n){t(this)[e](),s&&s.call(r[0]),n()})}}),t.widget})?r.apply(e,i):r)||(t.exports=s)},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,n){"use strict";e.__esModule=!0;var r=["description","fileName","lineNumber","message","name","number","stack"];function i(t,e){var n=e&&e.loc,s=void 0,o=void 0;n&&(t+=" - "+(s=n.start.line)+":"+(o=n.start.column));for(var a=Error.prototype.constructor.call(this,t),l=0;l<r.length;l++)this[r[l]]=a[r[l]];Error.captureStackTrace&&Error.captureStackTrace(this,i);try{n&&(this.lineNumber=s,Object.defineProperty?Object.defineProperty(this,"column",{value:o,enumerable:!0}):this.column=o)}catch(t){}}i.prototype=new Error,e.default=i,t.exports=e.default},function(t,e,n){var r=n(34),i=n(145),s=n(146),o="[object Null]",a="[object Undefined]",l=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?a:o:l&&l in Object(t)?i(t):s(t)}},function(t,e,n){var r=n(71),i=n(176);function s(e,n){return delete t.exports[e],t.exports[e]=n,n}t.exports={Parser:r,Tokenizer:n(72),ElementType:n(21),DomHandler:i,get FeedHandler(){return s("FeedHandler",n(178))},get Stream(){return s("Stream",n(179))},get WritableStream(){return s("WritableStream",n(74))},get ProxyHandler(){return s("ProxyHandler",n(197))},get DomUtils(){return s("DomUtils",n(198))},get CollectingHandler(){return s("CollectingHandler",n(213))},DefaultHandler:i,get RssHandler(){return s("RssHandler",this.FeedHandler)},parseDOM:function(t,e){var n=new i(e);return new r(n,e).end(t),n.dom},parseFeed:function(e,n){var i=new t.exports.FeedHandler(n);return new r(i,n).end(e),i.dom},createDomStream:function(t,e,n){var s=new i(t,e,n);return new r(s,e)},EVENTS:{attribute:2,cdatastart:0,cdataend:0,text:1,processinginstruction:2,comment:1,commentend:0,closetag:1,opentag:2,opentagname:1,error:1,end:0}}},function(t,e){t.exports={Text:"text",Directive:"directive",Comment:"comment",Script:"script",Style:"style",Tag:"tag",CDATA:"cdata",Doctype:"doctype",isTag:function(t){return"tag"===t.type||"script"===t.type||"style"===t.type}}},function(t,e,n){(function(t){function n(t){return Object.prototype.toString.call(t)}e.isArray=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===n(t)},e.isBoolean=function(t){return"boolean"==typeof t},e.isNull=function(t){return null===t},e.isNullOrUndefined=function(t){return null==t},e.isNumber=function(t){return"number"==typeof t},e.isString=function(t){return"string"==typeof t},e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=function(t){return void 0===t},e.isRegExp=function(t){return"[object RegExp]"===n(t)},e.isObject=function(t){return"object"==typeof t&&null!==t},e.isDate=function(t){return"[object Date]"===n(t)},e.isError=function(t){return"[object Error]"===n(t)||t instanceof Error},e.isFunction=function(t){return"function"==typeof t},e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=t.isBuffer}).call(this,n(47).Buffer)},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){var r=n(34),i=n(40),s=n(37),o=n(39),a=1/0,l=r?r.prototype:void 0,u=l?l.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(s(e))return i(e,t)+"";if(o(e))return u?u.call(e):"";var n=e+"";return"0"==n&&1/e==-a?"-0":n}},function(t,e){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(t){return"function"==typeof t}function i(t){return"object"==typeof t&&null!==t}function s(t){return void 0===t}t.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(t){if(!function(t){return"number"==typeof t}(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},n.prototype.emit=function(t){var e,n,o,a,l,u;if(this._events||(this._events={}),"error"===t&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((e=arguments[1])instanceof Error)throw e;var c=new Error('Uncaught, unspecified "error" event. ('+e+")");throw c.context=e,c}if(s(n=this._events[t]))return!1;if(r(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:a=Array.prototype.slice.call(arguments,1),n.apply(this,a)}else if(i(n))for(a=Array.prototype.slice.call(arguments,1),o=(u=n.slice()).length,l=0;l<o;l++)u[l].apply(this,a);return!0},n.prototype.addListener=function(t,e){var o;if(!r(e))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,r(e.listener)?e.listener:e),this._events[t]?i(this._events[t])?this._events[t].push(e):this._events[t]=[this._events[t],e]:this._events[t]=e,i(this._events[t])&&!this._events[t].warned&&(o=s(this._maxListeners)?n.defaultMaxListeners:this._maxListeners)&&o>0&&this._events[t].length>o&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeof console.trace&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(t,e){if(!r(e))throw TypeError("listener must be a function");var n=!1;function i(){this.removeListener(t,i),n||(n=!0,e.apply(this,arguments))}return i.listener=e,this.on(t,i),this},n.prototype.removeListener=function(t,e){var n,s,o,a;if(!r(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(o=(n=this._events[t]).length,s=-1,n===e||r(n.listener)&&n.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(i(n)){for(a=o;a-- >0;)if(n[a]===e||n[a].listener&&n[a].listener===e){s=a;break}if(s<0)return this;1===n.length?(n.length=0,delete this._events[t]):n.splice(s,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},n.prototype.removeAllListeners=function(t){var e,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(r(n=this._events[t]))this.removeListener(t,n);else if(n)for(;n.length;)this.removeListener(t,n[n.length-1]);return delete this._events[t],this},n.prototype.listeners=function(t){return this._events&&this._events[t]?r(this._events[t])?[this._events[t]]:this._events[t].slice():[]},n.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(r(e))return 1;if(e)return e.length}return 0},n.listenerCount=function(t,e){return t.listenerCount(e)}},function(t,e,n){"use strict";(function(e){!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports={nextTick:function(t,n,r,i){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var s,o,a=arguments.length;switch(a){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick(function(){t.call(null,n)});case 3:return e.nextTick(function(){t.call(null,n,r)});case 4:return e.nextTick(function(){t.call(null,n,r,i)});default:for(s=new Array(a-1),o=0;o<s.length;)s[o++]=arguments[o];return e.nextTick(function(){t.apply(null,s)})}}}:t.exports=e}).call(this,n(15))},function(t,e,n){var r=n(47),i=r.Buffer;function s(t,e){for(var n in t)e[n]=t[n]}function o(t,e,n){return i(t,e,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(s(r,e),e.Buffer=o),s(i,o),o.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,n)},o.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");var r=i(t);return void 0!==e?"string"==typeof n?r.fill(e,n):r.fill(e):r.fill(0),r},o.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},o.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}},function(t,e){t.exports=function(t){return t}},function(t,e,n){var r,i,s;
/*!
 * jQuery UI Keycode 1.12.1
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */i=[n(2),n(9)],void 0===(s="function"==typeof(r=function(t){return t.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}})?r.apply(e,i):r)||(t.exports=s)},function(t,e,n){var r,i,s;i=[n(2),n(9)],void 0===(s="function"==typeof(r=function(t){return t.ui.safeActiveElement=function(t){var e;try{e=t.activeElement}catch(n){e=t.body}return e||(e=t.body),e.nodeName||(e=t.body),e}})?r.apply(e,i):r)||(t.exports=s)},function(t,e,n){var r;void 0===(r=function(t){"use strict";var e=n(4),r=n(6);return function(t){return e.reduce(t,function(t,e,n){0!==n&&(t+=", ");var i=e.label.replace(/(^"|"$)/g,"").replace(/(^'|'$)/g,"");i=r.Utils.escapeExpression(i);var s=r.Utils.escapeExpression(e.email);return i===s?t+s:t+'"'+i+'" <'+s+">"},"")}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r=n(142),i=n(143),s=n(144);t.exports=function(t,e,n){return e==e?s(t,e,n):r(t,i,n)}},function(t,e,n){var r=n(67),i=n(69);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},function(t,e,n){var r=n(35).Symbol;t.exports=r},function(t,e,n){var r=n(68),i="object"==typeof self&&self&&self.Object===Object&&self,s=r||i||Function("return this")();t.exports=s},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){var r=n(148);t.exports=function(t){var e=r(t),n=e%1;return e==e?n?e-n:e:0}},function(t,e,n){var r=n(19),i=n(17),s="[object Symbol]";t.exports=function(t){return"symbol"==typeof t||i(t)&&r(t)==s}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}},function(t,e){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},function(t,e,n){var r=n(167);t.exports=function(t,e,n){var i=t.length;return n=void 0===n?i:n,!e&&n>=i?t:r(t,e,n)}},function(t,e,n){var r=n(169),i=n(44),s=n(170);t.exports=function(t){return i(t)?s(t):r(t)}},function(t,e){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return n.test(t)}},function(t,e,n){var r=n(24);t.exports=function(t){return null==t?"":r(t)}},function(t,e,n){(e=t.exports=n(75)).Stream=e,e.Readable=e,e.Writable=n(48),e.Duplex=n(14),e.Transform=n(78),e.PassThrough=n(191)},function(t,e,n){"use strict";(function(t){
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
 * @license  MIT
 */
var r=n(182),i=n(183),s=n(184);function o(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(t,e){if(o()<e)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=l.prototype:(null===t&&(t=new l(e)),t.length=e),t}function l(t,e,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return h(this,t)}return u(this,t,e,n)}function u(t,e,n,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r);l.TYPED_ARRAY_SUPPORT?(t=e).__proto__=l.prototype:t=d(t,e);return t}(t,e,n,r):"string"==typeof e?function(t,e,n){"string"==typeof n&&""!==n||(n="utf8");if(!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|p(e,n),i=(t=a(t,r)).write(e,n);i!==r&&(t=t.slice(0,i));return t}(t,e,n):function(t,e){if(l.isBuffer(e)){var n=0|f(e.length);return 0===(t=a(t,n)).length?t:(e.copy(t,0,0,n),t)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||function(t){return t!=t}(e.length)?a(t,0):d(t,e);if("Buffer"===e.type&&s(e.data))return d(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function c(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function h(t,e){if(c(e),t=a(t,e<0?0:0|f(e)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function d(t,e){var n=e.length<0?0:0|f(e.length);t=a(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function f(t){if(t>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|t}function p(t,e){if(l.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return V(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return j(t).length;default:if(r)return V(t).length;e=(""+e).toLowerCase(),r=!0}}function m(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function g(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=l.from(e,r)),l.isBuffer(e))return 0===e.length?-1:v(t,e,n,r,i);if("number"==typeof e)return e&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):v(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function v(t,e,n,r,i){var s,o=1,a=t.length,l=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;o=2,a/=2,l/=2,n/=2}function u(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(i){var c=-1;for(s=n;s<a;s++)if(u(t,s)===u(e,-1===c?0:s-c)){if(-1===c&&(c=s),s-c+1===l)return c*o}else-1!==c&&(s-=s-c),c=-1}else for(n+l>a&&(n=a-l),s=n;s>=0;s--){for(var h=!0,d=0;d<l;d++)if(u(t,s+d)!==u(e,d)){h=!1;break}if(h)return s}return-1}function y(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r))>i&&(r=i):r=i;var s=e.length;if(s%2!=0)throw new TypeError("Invalid hex string");r>s/2&&(r=s/2);for(var o=0;o<r;++o){var a=parseInt(e.substr(2*o,2),16);if(isNaN(a))return o;t[n+o]=a}return o}function b(t,e,n,r){return Y(V(e,t.length-n),t,n,r)}function _(t,e,n,r){return Y(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function w(t,e,n,r){return _(t,e,n,r)}function x(t,e,n,r){return Y(j(e),t,n,r)}function C(t,e,n,r){return Y(function(t,e){for(var n,r,i,s=[],o=0;o<t.length&&!((e-=2)<0);++o)n=t.charCodeAt(o),r=n>>8,i=n%256,s.push(i),s.push(r);return s}(e,t.length-n),t,n,r)}function A(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function D(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i<n;){var s,o,a,l,u=t[i],c=null,h=u>239?4:u>223?3:u>191?2:1;if(i+h<=n)switch(h){case 1:u<128&&(c=u);break;case 2:128==(192&(s=t[i+1]))&&(l=(31&u)<<6|63&s)>127&&(c=l);break;case 3:s=t[i+1],o=t[i+2],128==(192&s)&&128==(192&o)&&(l=(15&u)<<12|(63&s)<<6|63&o)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:s=t[i+1],o=t[i+2],a=t[i+3],128==(192&s)&&128==(192&o)&&128==(192&a)&&(l=(15&u)<<18|(63&s)<<12|(63&o)<<6|63&a)>65535&&l<1114112&&(c=l)}null===c?(c=65533,h=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=h}return function(t){var e=t.length;if(e<=E)return String.fromCharCode.apply(String,t);var n="",r=0;for(;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=E));return n}(r)}e.Buffer=l,e.SlowBuffer=function(t){+t!=t&&(t=0);return l.alloc(+t)},e.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=o(),l.poolSize=8192,l._augment=function(t){return t.__proto__=l.prototype,t},l.from=function(t,e,n){return u(null,t,e,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(t,e,n){return function(t,e,n,r){return c(e),e<=0?a(t,e):void 0!==n?"string"==typeof r?a(t,e).fill(n,r):a(t,e).fill(n):a(t,e)}(null,t,e,n)},l.allocUnsafe=function(t){return h(null,t)},l.allocUnsafeSlow=function(t){return h(null,t)},l.isBuffer=function(t){return!(null==t||!t._isBuffer)},l.compare=function(t,e){if(!l.isBuffer(t)||!l.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,s=Math.min(n,r);i<s;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},l.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(t,e){if(!s(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return l.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=l.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var o=t[n];if(!l.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},l.byteLength=p,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)m(this,e,e+1);return this},l.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)m(this,e,e+3),m(this,e+1,e+2);return this},l.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)m(this,e,e+7),m(this,e+1,e+6),m(this,e+2,e+5),m(this,e+3,e+4);return this},l.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?D(this,0,t):function(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return I(this,e,n);case"utf8":case"utf-8":return D(this,e,n);case"ascii":return T(this,e,n);case"latin1":case"binary":return S(this,e,n);case"base64":return A(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}.apply(this,arguments)},l.prototype.equals=function(t){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===l.compare(this,t)},l.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},l.prototype.compare=function(t,e,n,r,i){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,r>>>=0,i>>>=0,this===t)return 0;for(var s=i-r,o=n-e,a=Math.min(s,o),u=this.slice(r,i),c=t.slice(e,n),h=0;h<a;++h)if(u[h]!==c[h]){s=u[h],o=c[h];break}return s<o?-1:o<s?1:0},l.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},l.prototype.indexOf=function(t,e,n){return g(this,t,e,n,!0)},l.prototype.lastIndexOf=function(t,e,n){return g(this,t,e,n,!1)},l.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var s=!1;;)switch(r){case"hex":return y(this,t,e,n);case"utf8":case"utf-8":return b(this,t,e,n);case"ascii":return _(this,t,e,n);case"latin1":case"binary":return w(this,t,e,n);case"base64":return x(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,e,n);default:if(s)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),s=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var E=4096;function T(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function S(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function I(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var i="",s=e;s<n;++s)i+=U(t[s]);return i}function k(t,e,n){for(var r=t.slice(e,n),i="",s=0;s<r.length;s+=2)i+=String.fromCharCode(r[s]+256*r[s+1]);return i}function L(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function M(t,e,n,r,i,s){if(!l.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<s)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function N(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,s=Math.min(t.length-n,2);i<s;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function O(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,s=Math.min(t.length-n,4);i<s;++i)t[n+i]=e>>>8*(r?i:3-i)&255}function q(t,e,n,r,i,s){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function R(t,e,n,r,s){return s||q(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function P(t,e,n,r,s){return s||q(t,0,n,8),i.write(t,e,n,r,52,8),n+8}l.prototype.slice=function(t,e){var n,r=this.length;if(t=~~t,e=void 0===e?r:~~e,t<0?(t+=r)<0&&(t=0):t>r&&(t=r),e<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=l.prototype;else{var i=e-t;n=new l(i,void 0);for(var s=0;s<i;++s)n[s]=this[s+t]}return n},l.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||L(t,e,this.length);for(var r=this[t],i=1,s=0;++s<e&&(i*=256);)r+=this[t+s]*i;return r},l.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||L(t,e,this.length);for(var r=this[t+--e],i=1;e>0&&(i*=256);)r+=this[t+--e]*i;return r},l.prototype.readUInt8=function(t,e){return e||L(t,1,this.length),this[t]},l.prototype.readUInt16LE=function(t,e){return e||L(t,2,this.length),this[t]|this[t+1]<<8},l.prototype.readUInt16BE=function(t,e){return e||L(t,2,this.length),this[t]<<8|this[t+1]},l.prototype.readUInt32LE=function(t,e){return e||L(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},l.prototype.readUInt32BE=function(t,e){return e||L(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},l.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||L(t,e,this.length);for(var r=this[t],i=1,s=0;++s<e&&(i*=256);)r+=this[t+s]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*e)),r},l.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||L(t,e,this.length);for(var r=e,i=1,s=this[t+--r];r>0&&(i*=256);)s+=this[t+--r]*i;return s>=(i*=128)&&(s-=Math.pow(2,8*e)),s},l.prototype.readInt8=function(t,e){return e||L(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},l.prototype.readInt16LE=function(t,e){e||L(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(t,e){e||L(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(t,e){return e||L(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},l.prototype.readInt32BE=function(t,e){return e||L(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},l.prototype.readFloatLE=function(t,e){return e||L(t,4,this.length),i.read(this,t,!0,23,4)},l.prototype.readFloatBE=function(t,e){return e||L(t,4,this.length),i.read(this,t,!1,23,4)},l.prototype.readDoubleLE=function(t,e){return e||L(t,8,this.length),i.read(this,t,!0,52,8)},l.prototype.readDoubleBE=function(t,e){return e||L(t,8,this.length),i.read(this,t,!1,52,8)},l.prototype.writeUIntLE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||M(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,s=0;for(this[e]=255&t;++s<n&&(i*=256);)this[e+s]=t/i&255;return e+n},l.prototype.writeUIntBE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||M(this,t,e,n,Math.pow(2,8*n)-1,0);var i=n-1,s=1;for(this[e+i]=255&t;--i>=0&&(s*=256);)this[e+i]=t/s&255;return e+n},l.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,1,255,0),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},l.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):N(this,t,e,!0),e+2},l.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):N(this,t,e,!1),e+2},l.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):O(this,t,e,!0),e+4},l.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):O(this,t,e,!1),e+4},l.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);M(this,t,e,n,i-1,-i)}var s=0,o=1,a=0;for(this[e]=255&t;++s<n&&(o*=256);)t<0&&0===a&&0!==this[e+s-1]&&(a=1),this[e+s]=(t/o>>0)-a&255;return e+n},l.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);M(this,t,e,n,i-1,-i)}var s=n-1,o=1,a=0;for(this[e+s]=255&t;--s>=0&&(o*=256);)t<0&&0===a&&0!==this[e+s+1]&&(a=1),this[e+s]=(t/o>>0)-a&255;return e+n},l.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,1,127,-128),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},l.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):N(this,t,e,!0),e+2},l.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):N(this,t,e,!1),e+2},l.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):O(this,t,e,!0),e+4},l.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):O(this,t,e,!1),e+4},l.prototype.writeFloatLE=function(t,e,n){return R(this,t,e,!0,n)},l.prototype.writeFloatBE=function(t,e,n){return R(this,t,e,!1,n)},l.prototype.writeDoubleLE=function(t,e,n){return P(this,t,e,!0,n)},l.prototype.writeDoubleBE=function(t,e,n){return P(this,t,e,!1,n)},l.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var i,s=r-n;if(this===t&&n<e&&e<r)for(i=s-1;i>=0;--i)t[i+e]=this[i+n];else if(s<1e3||!l.TYPED_ARRAY_SUPPORT)for(i=0;i<s;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+s),e);return s},l.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var s;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(s=e;s<n;++s)this[s]=t;else{var o=l.isBuffer(t)?t:V(new l(t,r).toString()),a=o.length;for(s=0;s<n-e;++s)this[s+e]=o[s%a]}return this};var B=/[^+\/0-9A-Za-z-_]/g;function U(t){return t<16?"0"+t.toString(16):t.toString(16)}function V(t,e){var n;e=e||1/0;for(var r=t.length,i=null,s=[],o=0;o<r;++o){if((n=t.charCodeAt(o))>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&s.push(239,191,189);continue}if(o+1===r){(e-=3)>-1&&s.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&s.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&s.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;s.push(n)}else if(n<2048){if((e-=2)<0)break;s.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;s.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;s.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return s}function j(t){return r.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(B,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function Y(t,e,n,r){for(var i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}}).call(this,n(10))},function(t,e,n){"use strict";(function(e,r,i){var s=n(26);function o(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,n){var r=t.entry;t.entry=null;for(;r;){var i=r.callback;e.pendingcb--,i(n),r=r.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}(e,t)}}t.exports=y;var a,l=!e.browser&&["v0.10","v0.9."].indexOf(e.version.slice(0,5))>-1?r:s.nextTick;y.WritableState=v;var u=n(22);u.inherits=n(11);var c={deprecate:n(190)},h=n(76),d=n(27).Buffer,f=i.Uint8Array||function(){};var p,m=n(77);function g(){}function v(t,e){a=a||n(14),t=t||{};var r=e instanceof a;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,u=t.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(u||0===u)?u:c,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var h=!1===t.decodeStrings;this.decodeStrings=!h,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var n=t._writableState,r=n.sync,i=n.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(n),e)!function(t,e,n,r,i){--e.pendingcb,n?(s.nextTick(i,r),s.nextTick(A,t,e),t._writableState.errorEmitted=!0,t.emit("error",r)):(i(r),t._writableState.errorEmitted=!0,t.emit("error",r),A(t,e))}(t,n,r,e,i);else{var o=x(n);o||n.corked||n.bufferProcessing||!n.bufferedRequest||w(t,n),r?l(_,t,n,o,i):_(t,n,o,i)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function y(t){if(a=a||n(14),!(p.call(y,this)||this instanceof a))return new y(t);this._writableState=new v(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),h.call(this)}function b(t,e,n,r,i,s,o){e.writelen=r,e.writecb=o,e.writing=!0,e.sync=!0,n?t._writev(i,e.onwrite):t._write(i,s,e.onwrite),e.sync=!1}function _(t,e,n,r){n||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,r(),A(t,e)}function w(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var r=e.bufferedRequestCount,i=new Array(r),s=e.corkedRequestsFree;s.entry=n;for(var a=0,l=!0;n;)i[a]=n,n.isBuf||(l=!1),n=n.next,a+=1;i.allBuffers=l,b(t,e,!0,e.length,i,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new o(e),e.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,c=n.encoding,h=n.callback;if(b(t,e,!1,e.objectMode?1:u.length,u,c,h),n=n.next,e.bufferedRequestCount--,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}function x(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function C(t,e){t._final(function(n){e.pendingcb--,n&&t.emit("error",n),e.prefinished=!0,t.emit("prefinish"),A(t,e)})}function A(t,e){var n=x(e);return n&&(!function(t,e){e.prefinished||e.finalCalled||("function"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,s.nextTick(C,t,e)):(e.prefinished=!0,t.emit("prefinish")))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),n}u.inherits(y,h),v.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(v.prototype,"buffer",{get:c.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(y,Symbol.hasInstance,{value:function(t){return!!p.call(this,t)||this===y&&(t&&t._writableState instanceof v)}})):p=function(t){return t instanceof this},y.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},y.prototype.write=function(t,e,n){var r=this._writableState,i=!1,o=!r.objectMode&&function(t){return d.isBuffer(t)||t instanceof f}(t);return o&&!d.isBuffer(t)&&(t=function(t){return d.from(t)}(t)),"function"==typeof e&&(n=e,e=null),o?e="buffer":e||(e=r.defaultEncoding),"function"!=typeof n&&(n=g),r.ended?function(t,e){var n=new Error("write after end");t.emit("error",n),s.nextTick(e,n)}(this,n):(o||function(t,e,n,r){var i=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||e.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(t.emit("error",o),s.nextTick(r,o),i=!1),i}(this,r,t,n))&&(r.pendingcb++,i=function(t,e,n,r,i,s){if(!n){var o=function(t,e,n){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=d.from(e,n));return e}(e,r,i);r!==o&&(n=!0,i="buffer",r=o)}var a=e.objectMode?1:r.length;e.length+=a;var l=e.length<e.highWaterMark;l||(e.needDrain=!0);if(e.writing||e.corked){var u=e.lastBufferedRequest;e.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:s,next:null},u?u.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else b(t,e,!1,a,r,i,s);return l}(this,r,o,t,e,n)),i},y.prototype.cork=function(){this._writableState.corked++},y.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||w(this,t))},y.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(t,e,n){n(new Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(t,e,n){var r=this._writableState;"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!==t&&void 0!==t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(t,e,n){e.ending=!0,A(t,e),n&&(e.finished?s.nextTick(n):t.once("finish",n));e.ended=!0,t.writable=!1}(this,r,n)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),y.prototype.destroy=m.destroy,y.prototype._undestroy=m.undestroy,y.prototype._destroy=function(t,e){this.end(),e(t)}}).call(this,n(15),n(188).setImmediate,n(10))},function(t,e,n){"use strict";var r=n(27).Buffer,i=r.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function s(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(r.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=l,this.end=u,e=4;break;case"utf8":this.fillLast=a,e=4;break;case"base64":this.text=c,this.end=h,e=3;break;default:return this.write=d,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(e)}function o(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function a(t){var e=this.lastTotal-this.lastNeed,n=function(t,e,n){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==n?n:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function l(t,e){if((t.length-e)%2==0){var n=t.toString("utf16le",e);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function u(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function c(t,e){var n=(t.length-e)%3;return 0===n?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function h(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function d(t){return t.toString(this.encoding)}function f(t){return t&&t.length?this.write(t):""}e.StringDecoder=s,s.prototype.write=function(t){if(0===t.length)return"";var e,n;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<t.length?e?e+this.text(t,n):this.text(t,n):e||""},s.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e},s.prototype.text=function(t,e){var n=function(t,e,n){var r=e.length-1;if(r<n)return 0;var i=o(e[r]);if(i>=0)return i>0&&(t.lastNeed=i-1),i;if(--r<n||-2===i)return 0;if((i=o(e[r]))>=0)return i>0&&(t.lastNeed=i-2),i;if(--r<n||-2===i)return 0;if((i=o(e[r]))>=0)return i>0&&(2===i?i=0:t.lastNeed=i-3),i;return 0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var r=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,r),t.toString("utf8",e,r)},s.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},function(e,n,r){var i;void 0===(i=function(e){"use strict";var n=r(2),i=r(4),s=r(7),o=r(3),a=r(84);function l(e,n,r){var a=i.isUndefined(n);return new Promise(function(i,l){s.dialogs.filepicker(t("mail","Choose a folder to store the attachment in"),function(s){"function"==typeof r&&r(),o.message.request("save:cloud",e,n,s).then(function(){a?o.ui.trigger("error:show",t("mail","Attachments saved to Files.")):o.ui.trigger("error:show",t("mail","Attachment saved to Files.")),i()},function(){a?o.ui.trigger("error:show",t("mail","Error while saving attachments to Files.")):o.ui.trigger("error:show",t("mail","Error while saving attachment to Files.")),l()})},!1,"httpd/unix-directory",!0)})}return o.message.on("load",function(t,e,s,l){l=l||{};if(i.defaults(l,{force:!1}),r(1).currentMessage&&r(1).currentMessage.get("id")===s.get("id"))return;l.force,0;var u="drafts"===r(1).currentFolder.get("specialRole");if(null!==r(1).currentMessage){var c=r(1).currentMessage;if(o.ui.trigger("messagesview:message:setactive",null),c.get("id")===s.get("id"))return}o.ui.trigger("message:loading"),o.ui.trigger("messagesview:message:setactive",s),r(1).currentMessageBody="",n("#mail_new_message").prop("disabled",!1),o.message.request("entity",t,e,s.get("id")).then(function(t){u?o.ui.trigger("composer:show",t,!0):o.ui.trigger("message:show",s,t)},function(){o.ui.trigger("message:error",a.getRandomMessageErrorMessage())})}),o.message.on("forward",function(){var e="\n\n\n\n-------- "+t("mail","Forwarded message")+" --------\n",n={subject:"Fwd: "+r(1).currentMessageSubject,body:e+r(1).currentMessageBody.replace(/<br \/>/g,"\n")};-1!==r(1).currentAccount.get("accountId")&&(n.accountId=r(1).currentAccount.get("accountId"));o.ui.trigger("composer:show",n)}),o.message.on("flag",function(e,n,r){var i=e.folder,s=i.account,a=i.get("unseen");if(e.get("flags").get(n)===r)return;if(e.get("flags").set(n,r),"unseen"===n){var l=Math.max(0,a+(r?1:-1));i.set("unseen",l)}o.ui.trigger("title:update"),o.message.request("flag",s,i,e,n,r).catch(function(){o.ui.trigger("error:show",t("mail","Message flag could not be set.")),e.get("flags").set(n,!r),i.set("unseen",a),o.ui.trigger("title:update")})}),o.message.on("move",function(e,n,r,i,s){if(e.get("accountId")===i.get("accountId")&&n.get("id")===s.get("id"))return;n.messages.remove(r),s.addMessage(r),o.message.request("move",e,n,r,i,s).then(function(){},function(){o.ui.trigger("error:show",t("mail","Could not move message.")),n.addMessage(r)})}),{saveAttachmentToFiles:l,saveAttachmentsToFiles:function(t,e){return l(t,null,e)}}}.call(n,r,n,e))||(e.exports=i)},function(e,n,r){var i;void 0===(i=function(e){"use strict";var n=r(4),i=r(6);return function(e){var s=r(1).currentAccount,o=n.reduce(e,function(e,r,o){0!==o&&(e+=", ");var a=r.label.replace(/(^"|"$)/g,"").replace(/(^'|'$)/g,"");a=i.Utils.escapeExpression(a);var l=i.Utils.escapeExpression(r.email);return s&&(l===s.get("emailAddress")||n.find(s.get("aliases").toJSON(),function(t){return t.alias===l}))&&(a=t("mail","you")),e+='<span class="tooltip-mailto" title="'+t("mail","Send message to {email}",{email:l})+'">',e+='<a class="link-mailto" data-email="'+l+'" data-label="'+a+'">',e+=a+"</a></span>"},"");return new i.SafeString(o)}}.call(n,r,n,e))||(e.exports=i)},function(e,n,r){var i;void 0===(i=function(e){"use strict";var n=r(5),i=r(272);return n.View.extend({id:"emptycontent",className:"container",template:i,_text:void 0,_icon:void 0,_canRetry:void 0,events:{"click .retry":"_onRetry"},templateContext:function(){return{text:this._text,icon:this._icon,canRetry:this._canRetry}},initialize:function(e){this._text=e.text||t("mail","An unknown error occurred"),this._icon=e.icon||"icon-mail",this._canRetry=e.canRetry||!1},_onRetry:function(){this.triggerMethod("retry")}})}.call(n,r,n,e))||(e.exports=i)},function(t,e,n){var r;void 0===(r=function(t){"use strict";var e=n(5),r=n(273);return e.View.extend({template:r,templateContext:function(){return{hint:this.hint}},className:"container",hint:"",initialize:function(t){this.hint=t.text||""}})}.call(e,n,e,t))||(t.exports=r)},function(e,n,r){var i;void 0===(i=function(e){"use strict";var n=r(2),i=r(4),s=r(13),o=r(3),a=r(84);function l(e,i,l,u){return u=!1!==u,o.folder.trigger("setactive",e,i),i.get("noSelect")?(o.ui.trigger("content:error",t("mail","Can not load this folder.")),r(1).currentAccount=e,r(1).currentFolder=i,o.ui.trigger("messagesview:message:setactive",null),r(1).currentlyLoading=null,Promise.resolve()):o.message.request("entities",e,i,{cache:!0,filter:l,replace:!0}).then(function(t){if(o.ui.trigger("foldercontent:show",e,i,{searchQuery:l}),r(1).currentlyLoading=null,r(1).currentAccount=e,r(1).currentFolder=i,o.ui.trigger("messagesview:message:setactive",null),n("#mail_new_message").prop("disabled",!1),t.length>0&&u){var s=t.first();o.message.trigger("load",s.folder.account,s.folder,s)}},function(t){var n;console.error("error while loading messages: ",t),i.get("specialRole")&&(n="icon-"+i.get("specialRole")),o.ui.trigger("content:error",a.getRandomFolderErrorMessage(i),n);var s=r(1).currentFolder;o.folder.trigger("setactive",e,s)}).catch(s.report)}o.folder.reply("message:delete",function(e,n){var i=function(t,e){if(-1===e.account.get("accountId"))return[t,e];var n=r(1).accounts.get(-1),i=n?n.folders.first():null;if("inbox"===e.get("specialRole")&&i)return[t,i];return[t,null]}(e.folder,n);c(i,function(t){t.set("total",Math.max(0,t.get("total")-1)),!0===e.get("flags").get("unseen")&&t.set("unseen",Math.max(0,t.get("unseen")-1))});var s=n.messages,a=s.indexOf(e);0===a?a=1:a-=1;var l=s.at(a);c(i,function(t){t.messages.remove(e)}),r(1).currentMessage&&r(1).currentMessage.get("id")===e.id&&(l?o.message.trigger("load",l.folder.account,l.folder,l):o.ui.trigger("message:empty"));return o.message.request("delete",e).catch(function(n){console.error(n),o.ui.trigger("error:show",t("mail","Error while deleting message.")),c(i,function(t){t.set("total",t.previousAttributes.total),t.addMessage(e)})})});var u=i.debounce(l,1e3);function c(t,e){t.forEach(function(t){if(t)return e(t)})}return{loadAccountFolders:function(t){return o.folder.request("entities",t).catch(s.report)},showFolder:function(t,e,n){return n=!1!==n,o.ui.trigger("search:set",""),o.ui.trigger("content:loading",e.get("name")),new Promise(function(s,a){i.defer(function(){var i=l(t,e,void 0,n);o.folder.trigger("setactive",t,e),r(1).currentAccount=t,r(1).currentFolder=e,i.then(s).catch(a)})})},searchFolder:function(e,n,r){o.ui.trigger("search:set",r),o.ui.trigger("content:loading",t("mail","Searching for {query}",{query:r})),i.defer(function(){u(e,n,r)})}}}.call(n,r,n,e))||(e.exports=i)},function(e,n,r){var i;void 0===(i=function(e){"use strict";r(93).polyfill();var n=r(2),i=r(8),s=r(5),o=r(7),a=r(94),l=r(3),u=r(299),c=r(90),h=r(300);r(54),r(50),r(301),r(302),r(303),r(304),r(305),r(306),r(310),r(311),r(312),r(313),r(314);var d=s.Application.extend({_useExternalAvatars:!1,getUseExternalAvatars:function(){return this._useExternalAvatars},registerProtocolHandler:function(){if(window.navigator.registerProtocolHandler){var t=window.location.protocol+"//"+window.location.host+o.generateUrl("apps/mail/compose?uri=%s");try{window.navigator.registerProtocolHandler("mailto",t,o.theme.name+" Mail")}catch(t){}}},requestNotificationPermissions:function(){l.ui.trigger("notification:request")},setUpSearch:function(){SearchProxy.setFilter(r(315).filter)},startBackgroundSync:function(t){l.sync.trigger("start",t)}});return(d=new d).on("start",function(){this._useExternalAvatars="true"===n("#external-avatars").val(),this.view=new a,l.ui.trigger("content:loading",t("mail","Loading accounts")),this.registerProtocolHandler(),this.requestNotificationPermissions(),this.setUpSearch();var e=this;c.loadAccounts().then(function(t){e.router=new u({controller:new h(t)}),i.history.start(),e.startBackgroundSync(t)}),setInterval(function(){var t=n(".message-body");if(t.val()){var e=t.val(),r=t.val();r!==e&&(t.trigger("autosize.resize"),e=r)}},1e3)}),d}.call(n,r,n,e))||(e.exports=i)},function(t,e,n){t.exports=function(t,e){"use strict";t="default"in t?t.default:t,e="default"in e?e.default:e;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},r=e.Radio,i=e.Radio={};i.VERSION="2.0.0",i.noConflict=function(){return e.Radio=r,this},i.DEBUG=!1,i._debugText=function(t,e,n){return t+(n?" on the "+n+" channel":"")+': "'+e+'"'},i.debugLog=function(t,e,n){i.DEBUG&&console&&console.warn&&console.warn(i._debugText(t,e,n))};var s=/\s+/;function o(t,e,n,r){var i=t[e];if(!(n&&n!==i.callback&&n!==i.callback._callback||r&&r!==i.context))return delete t[e],!0}i._eventsApi=function(e,r,i,o){if(!i)return!1;var a={};if("object"===(void 0===i?"undefined":n(i))){for(var l in i){var u=e[r].apply(e,[l,i[l]].concat(o));s.test(l)?t.extend(a,u):a[l]=u}return a}if(s.test(i)){for(var c=i.split(s),h=0,d=c.length;h<d;h++)a[c[h]]=e[r].apply(e,[c[h]].concat(o));return a}return!1},i._callHandler=function(t,e,n){var r=n[0],i=n[1],s=n[2];switch(n.length){case 0:return t.call(e);case 1:return t.call(e,r);case 2:return t.call(e,r,i);case 3:return t.call(e,r,i,s);default:return t.apply(e,n)}};var a,l,u={};function c(e){return u[e]||(u[e]=t.bind(i.log,i,e))}function h(e){return t.isFunction(e)?e:function(){return e}}t.extend(i,{log:function(e,n){if("undefined"!=typeof console){var r=t.toArray(arguments).slice(2);console.log("["+e+'] "'+n+'"',r)}},tuneIn:function(t){var e=i.channel(t);return e._tunedIn=!0,e.on("all",c(t)),this},tuneOut:function(t){var e=i.channel(t);return e._tunedIn=!1,e.off("all",c(t)),delete u[t],this}}),i.Requests={request:function(e){var n=t.toArray(arguments).slice(1),r=i._eventsApi(this,"request",e,n);if(r)return r;var s=this.channelName,o=this._requests;if(s&&this._tunedIn&&i.log.apply(this,[s,e].concat(n)),o&&(o[e]||o.default)){var a=o[e]||o.default;return n=o[e]?n:arguments,i._callHandler(a.callback,a.context,n)}i.debugLog("An unhandled request was fired",e,s)},reply:function(t,e,n){return i._eventsApi(this,"reply",t,[e,n])?this:(this._requests||(this._requests={}),this._requests[t]&&i.debugLog("A request was overwritten",t,this.channelName),this._requests[t]={callback:h(e),context:n||this},this)},replyOnce:function(e,n,r){if(i._eventsApi(this,"replyOnce",e,[n,r]))return this;var s=this,o=t.once(function(){return s.stopReplying(e),h(n).apply(this,arguments)});return this.reply(e,o,r)},stopReplying:function(e,n,r){return i._eventsApi(this,"stopReplying",e)?this:(e||n||r?function(e,n,r,i){e||(e={});for(var s=n?[n]:t.keys(e),a=!1,l=0,u=s.length;l<u;l++)n=s[l],e[n]&&o(e,n,r,i)&&(a=!0);return a}(this._requests,e,n,r)||i.debugLog("Attempted to remove the unregistered request",e,this.channelName):delete this._requests,this)}},i._channels={},i.channel=function(t){if(!t)throw new Error("You must provide a name for the channel.");return i._channels[t]?i._channels[t]:i._channels[t]=new i.Channel(t)},i.Channel=function(t){this.channelName=t},t.extend(i.Channel.prototype,e.Events,i.Requests,{reset:function(){return this.off(),this.stopListening(),this.stopReplying(),this}});var d=[e.Events,i.Requests];return t.each(d,function(e){t.each(e,function(e,n){i[n]=function(e){return l=t.toArray(arguments).slice(1),(a=this.channel(e))[n].apply(a,l)}})}),i.reset=function(e){var n=e?[this._channels[e]]:this._channels;t.each(n,function(t){t.reset()})},i}(n(4),n(8))},function(e,n,r){var i;void 0===(i=function(e){"use strict";var n=r(5),i=r(2);r(97),r(59);var s=r(4),o=r(100),a=r(7),l=r(3),u=r(60),c=r(101),h=r(122),d=r(63),f=r(64);return n.View.extend({template:h,templateContext:function(){var e=null;return this.accounts&&(e=this.buildAliases(),e=s.filter(e,function(t){return-1!==t.accountId})),{aliases:e,isReply:this.isReply(),to:this.data.to,cc:this.data.cc,bcc:this.data.bcc,subject:this.data.subject,message:this.data.body,submitButtonTitle:this.isReply()?t("mail","Reply"):t("mail","Send")}},type:"new",data:null,attachments:null,accounts:null,aliases:null,account:null,folder:null,repliedMessage:null,draftInterval:1500,draftTimer:null,draftUID:null,draftPromise:null,hasData:!1,autosized:!1,regions:{attachmentsRegion:".new-message-attachments"},events:{"click .submit-message":"submitMessage","click .submit-message-wrapper-inside":"submitMessageWrapperInside","keypress .message-body":"handleKeyPress","input  .to":"onInputChanged","paste  .to":"onInputChanged","keyup  .to":"onInputChanged","input  .cc":"onInputChanged","paste  .cc":"onInputChanged","keyup  .cc":"onInputChanged","input  .bcc":"onInputChanged","paste  .bcc":"onInputChanged","keyup  .bcc":"onInputChanged","input  .subject":"onInputChanged","paste  .subject":"onInputChanged","keyup  .subject":"onInputChanged","input  .message-body":"onInputChanged","paste  .message-body":"onInputChanged","keyup  .message-body":"onInputChanged","focus  .recipient-autocomplete":"onAutoComplete","click .composer-cc-bcc-toggle":"ccBccToggle"},initialize:function(t){s.defaults(t,{type:"new",account:null,repliedMessage:null,data:{}}),s.defaults(t.data,{to:[],cc:[],bcc:[],subject:"",body:""}),this.type=t.type,t.el&&(this.el=t.el),this.attachments=new u,this.bindAttachments(),this.data=t.data,this.accounts=t.accounts,this.isReply()?(this.account=t.account,this.folder=t.folder,this.repliedMessage=t.repliedMessage):(this.account=t.account||this.accounts.at(0),this.draftUID=t.data.id),this.draftPromise=Promise.resolve()},onRender:function(){if(this.showChildView("attachmentsRegion",new c({collection:this.attachments})),f(".tooltip-mailto",{placement:"bottom"}),this.isReply()){var t=this;this.$(".message-body").click(function(){t.setAutoSize(!0)})}else this.setAutoSize(!0);this.defaultMailSelect()},onDestroy:function(){this.hasData&&this.saveDraft()},setAutoSize:function(t){!0===t?(this.autosized||(o(this.$("textarea"),{append:"\n\n"}),this.autosized=!0),this.$(".message-body").trigger("autosize.resize")):(this.$(".message-body").trigger("autosize.destroy"),this.$(".message-body").css("height",""),this.autosized=!1)},bindAttachments:function(){this.attachments.bind("all",this.onInputChanged.bind(this))},isReply:function(){return"reply"===this.type},onInputChanged:function(){var t=this.$(".to").val(),e=this.$(".subject").val(),n=this.$(".message-body").val(),r=this.checkAllAttachmentsValid();""===t&&""===e&&""===n||!r?this.$(".submit-message").attr("disabled",!0):this.$(".submit-message").removeAttr("disabled"),this.hasData=!0,clearTimeout(this.draftTimer);var i=this;this.draftTimer=setTimeout(function(){i.saveDraft()},this.draftInterval)},handleKeyPress:function(t){var e=(t=t||window.event).which;13!==e&&10!==e||!t.ctrlKey||void 0===this.$(".submit-message").attr("disabled")&&this.submitMessage();return!0},ccBccToggle:function(t){t.preventDefault(),this.$(".composer-cc-bcc").slideToggle(),this.$(".composer-cc-bcc .cc").focus(),this.$(".composer-cc-bcc-toggle").fadeOut()},getMessage:function(){var t={},e=this.$(".message-body"),n=this.$(".to"),r=this.$(".cc"),i=this.$(".bcc"),s=this.$(".subject");return t.body=e.val(),t.to=n.val(),t.cc=r.val(),t.bcc=i.val(),t.subject=s.val(),t.attachments=this.attachments.toJSON(),t},submitMessageWrapperInside:function(){this._isVisible()?this.$(".submit-message").click():(i("#mail-message").animate({scrollTop:this.$el.offset().top},1e3),this.$(".submit-message-wrapper-inside").hide(),this._setCaretToPos(this.$(".message-body")[0],0))},_setSelectionRange:function(t,e,n){if(t.setSelectionRange)t.focus(),t.setSelectionRange(e,n);else if(t.createTextRange){var r=t.createTextRange();r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",e),r.select()}},_setCaretToPos:function(t,e){this._setSelectionRange(t,e,e)},_isVisible:function(){var t=this.$el,e=i(window),n=e.scrollTop()+e.height();return t.offset().top<=n},submitMessage:function(){clearTimeout(this.draftTimer);var e=this.$(".message-body"),n=this.$(".submit-message");e.addClass("icon-loading");var r=this.$(".to"),i=this.$(".cc"),o=this.$(".bcc"),u=this.$(".subject");this.$(".mail-account").prop("disabled",!0),r.prop("disabled",!0),i.prop("disabled",!0),o.prop("disabled",!0),u.prop("disabled",!0),this.$(".new-message-attachments-action").css("display","none"),this.$("#add-cloud-attachment").prop("disabled",!0),this.$("#add-local-attachment").prop("disabled",!0),e.prop("disabled",!0),n.prop("disabled",!0),n.val(t("mail","Sending …"));var c=null;this.$(".mail-account").length>0&&(c=this.findAliasById(this.$(".mail-account").find(":selected").val()),this.account=this.accounts.get(c.accountId));var h={draftUID:this.draftUID,aliasId:c.aliasId};return this.isReply()&&(h.repliedMessage=this.repliedMessage,h.folder=this.folder),this.draftPromise.then(function(){return l.message.request("send",this.account,this.getMessage(),h)}.bind(this)).then(function(){a.Notification.showTemporary(t("mail","Message sent!")),h.repliedMessage&&l.message.trigger("flag",h.repliedMessage,"answered",!0),this.$("#mail_new_message").prop("disabled",!1),r.val(""),i.val(""),o.val(""),u.val(""),e.val(""),e.trigger("autosize.resize"),this.attachments.reset(),null!==this.draftUID&&(s.isUndefined(l.ui.request("messagesview:collection"))||l.ui.request("messagesview:collection").remove({id:this.draftUID}),this.draftUID=null)}.bind(this)).catch(function(e){console.error("could not send message",e);var r="";500===e.status?r=t("mail","Server error"):r=JSON.parse(e.responseText).message;n.prop("disabled",!1),a.Notification.showTemporary(r)}.bind(this)).then(function(){e.removeClass("icon-loading"),this.$(".mail-account").prop("disabled",!1),r.prop("disabled",!1),i.prop("disabled",!1),o.prop("disabled",!1),u.prop("disabled",!1),this.$(".new-message-attachments-action").css("display","inline-block"),this.$("#add-cloud-attachment").prop("disabled",!1),this.$("#add-local-attachment").prop("disabled",!1),e.prop("disabled",!1),n.prop("disabled",!1),n.val(t("mail","Send"))}.bind(this)).catch(function(t){console.error("could not send message",t)})},saveDraft:function(){return clearTimeout(this.draftTimer),this.draftPromise.then(function(){if(this.$(".mail-account").length>0){var t=this.findAliasById(this.$(".mail-account").find(":selected").val());this.account=this.accounts.get(t.accountId)}return l.message.request("draft",this.account,this.getMessage(),{folder:this.folder,repliedMessage:this.repliedMessage,draftUID:this.draftUID})}.bind(this)).then(function(t){if(console.debug("draft saved. UID="+t.uid+", previous UID was "+this.draftUID),null!==this.draftUID){var e=l.ui.request("messagesview:collection"),n=e.findWhere({id:this.draftUID});n&&(n.set({id:t.uid}),e.set([n],{remove:!1}))}this.draftUID=t.uid}.bind(this)).catch(function(t){console.error("could not save draft",t)})},setReplyBody:function(t,e,n){var r=e.getMinutes();this.$(".message-body").first().text("\n\n\n"+t.label+" – "+i.datepicker.formatDate("D, d. MM yy ",e)+e.getHours()+":"+(r<10?"0":"")+r+"\n> "+n.replace(/\n/g,"\n> ")),this.setAutoSize(!1);var s=this;this.$(".message-body").click(function(){s.setAutoSize(!0)})},focusTo:function(){this.$el.find("input.to").focus()},setTo:function(t){this.$el.find("input.to").val(t)},focusSubject:function(){this.$el.find("input.subject").focus()},focusMessageBody:function(){this.$el.find("textarea.message-body").focus()},onAutoComplete:function(t){var e=i(t.target);function n(t){return t.split(/,\s*/)}function r(t){return n(t).pop()}if(!e.data("autocomplete")){var s=!1;e.on("keydown",function(t){9===t.which&&void 0!==e.data("autocomplete")&&e.data("autocomplete").menu.active&&t.preventDefault()}),e.autocomplete({source:function(t,e){i.getJSON(a.generateUrl("/apps/mail/api/autoComplete"),{term:r(t.term)},e)},search:function(){return r(this.value).length>=2},response:function(){s=!1},focus:function(){return!1},select:function(t,e){var r=n(this.value);return r.pop(),r.push(e.item.value),r.push(""),this.value=r.join(", "),!1}}).data("ui-autocomplete")._renderItem=function(t,e){var n,r=i("<li/>"),o=i("<a/>");if(o.addClass("mail-recipient-autocomplete"),s===e.id)(n=i("<div/>")).addClass("avatar"),o.append(n);else if(e.photo&&null!==e.photo){var a=i("<img/>");a.addClass("avatar"),a.height("32px"),a.width("32px"),a.attr("src",e.photo),o.append(a)}else n=i("<div/>"),d(n,e.label||e.value),n.addClass("avatar"),o.append(n);return s=e.id,o.append(i("<span>").text(e.label||e.value)),r.append(o),r.appendTo(t),r}}},buildAliases:function(){var t=[],e=1;return this.accounts.forEach(function(n){var r=n.toJSON();for(var i in t.push({id:e++,accountId:r.accountId,aliasId:null,emailAddress:r.emailAddress,name:r.name}),r.aliases)t.push({id:e++,accountId:r.aliases[i].accountId,aliasId:r.aliases[i].id,emailAddress:r.aliases[i].alias,name:r.aliases[i].name})}),this.aliases=t,t},findAliasById:function(t){return s.find(this.aliases,function(e){return parseInt(e.id)===parseInt(t)})},defaultMailSelect:function(){var t=null;if(this.isReply()){var e=this.data.fromEmail;t=s.find(this.aliases,function(t){return t.emailAddress===e})}else if(-1!==r(1).currentAccount.get("accountId"))t=s.find(this.aliases,function(t){return t.emailAddress===r(1).currentAccount.get("email")});else{var n=this.accounts.filter(function(t){return-1!==t.get("accountId")})[0];t=s.find(this.aliases,function(t){return t.emailAddress===n.get("emailAddress")})}t&&this.$(".mail-account").val(t.id)},checkAllAttachmentsValid:function(){for(var t=!0,e=this.attachments.length,n=0;n<e;n++){var r=this.attachments.models[n].get("uploadStatus");void 0!==r&&r<3&&(t=!1)}return t}})}.call(n,r,n,e))||(e.exports=i)},function(t,e,n){var r,i,s;
/*!
 * jQuery UI Position 1.12.1
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/position/
 */i=[n(2),n(9)],void 0===(s="function"==typeof(r=function(t){return function(){var e,n=Math.max,r=Math.abs,i=/left|center|right/,s=/top|center|bottom/,o=/[\+\-]\d+(\.[\d]+)?%?/,a=/^\w+/,l=/%$/,u=t.fn.position;function c(t,e,n){return[parseFloat(t[0])*(l.test(t[0])?e/100:1),parseFloat(t[1])*(l.test(t[1])?n/100:1)]}function h(e,n){return parseInt(t.css(e,n),10)||0}t.position={scrollbarWidth:function(){if(void 0!==e)return e;var n,r,i=t("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),s=i.children()[0];return t("body").append(i),n=s.offsetWidth,i.css("overflow","scroll"),n===(r=s.offsetWidth)&&(r=i[0].clientWidth),i.remove(),e=n-r},getScrollInfo:function(e){var n=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),r=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),i="scroll"===n||"auto"===n&&e.width<e.element[0].scrollWidth;return{width:"scroll"===r||"auto"===r&&e.height<e.element[0].scrollHeight?t.position.scrollbarWidth():0,height:i?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var n=t(e||window),r=t.isWindow(n[0]),i=!!n[0]&&9===n[0].nodeType;return{element:n,isWindow:r,isDocument:i,offset:r||i?{left:0,top:0}:t(e).offset(),scrollLeft:n.scrollLeft(),scrollTop:n.scrollTop(),width:n.outerWidth(),height:n.outerHeight()}}},t.fn.position=function(e){if(!e||!e.of)return u.apply(this,arguments);e=t.extend({},e);var l,d,f,p,m,g,v=t(e.of),y=t.position.getWithinInfo(e.within),b=t.position.getScrollInfo(y),_=(e.collision||"flip").split(" "),w={};return g=function(e){var n=e[0];return 9===n.nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:t.isWindow(n)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:n.preventDefault?{width:0,height:0,offset:{top:n.pageY,left:n.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}}(v),v[0].preventDefault&&(e.at="left top"),d=g.width,f=g.height,p=g.offset,m=t.extend({},p),t.each(["my","at"],function(){var t,n,r=(e[this]||"").split(" ");1===r.length&&(r=i.test(r[0])?r.concat(["center"]):s.test(r[0])?["center"].concat(r):["center","center"]),r[0]=i.test(r[0])?r[0]:"center",r[1]=s.test(r[1])?r[1]:"center",t=o.exec(r[0]),n=o.exec(r[1]),w[this]=[t?t[0]:0,n?n[0]:0],e[this]=[a.exec(r[0])[0],a.exec(r[1])[0]]}),1===_.length&&(_[1]=_[0]),"right"===e.at[0]?m.left+=d:"center"===e.at[0]&&(m.left+=d/2),"bottom"===e.at[1]?m.top+=f:"center"===e.at[1]&&(m.top+=f/2),l=c(w.at,d,f),m.left+=l[0],m.top+=l[1],this.each(function(){var i,s,o=t(this),a=o.outerWidth(),u=o.outerHeight(),g=h(this,"marginLeft"),x=h(this,"marginTop"),C=a+g+h(this,"marginRight")+b.width,A=u+x+h(this,"marginBottom")+b.height,D=t.extend({},m),E=c(w.my,o.outerWidth(),o.outerHeight());"right"===e.my[0]?D.left-=a:"center"===e.my[0]&&(D.left-=a/2),"bottom"===e.my[1]?D.top-=u:"center"===e.my[1]&&(D.top-=u/2),D.left+=E[0],D.top+=E[1],i={marginLeft:g,marginTop:x},t.each(["left","top"],function(n,r){t.ui.position[_[n]]&&t.ui.position[_[n]][r](D,{targetWidth:d,targetHeight:f,elemWidth:a,elemHeight:u,collisionPosition:i,collisionWidth:C,collisionHeight:A,offset:[l[0]+E[0],l[1]+E[1]],my:e.my,at:e.at,within:y,elem:o})}),e.using&&(s=function(t){var i=p.left-D.left,s=i+d-a,l=p.top-D.top,c=l+f-u,h={target:{element:v,left:p.left,top:p.top,width:d,height:f},element:{element:o,left:D.left,top:D.top,width:a,height:u},horizontal:s<0?"left":i>0?"right":"center",vertical:c<0?"top":l>0?"bottom":"middle"};d<a&&r(i+s)<d&&(h.horizontal="center"),f<u&&r(l+c)<f&&(h.vertical="middle"),n(r(i),r(s))>n(r(l),r(c))?h.important="horizontal":h.important="vertical",e.using.call(this,t,h)}),o.offset(t.extend(D,{using:s}))})},t.ui.position={fit:{left:function(t,e){var r,i=e.within,s=i.isWindow?i.scrollLeft:i.offset.left,o=i.width,a=t.left-e.collisionPosition.marginLeft,l=s-a,u=a+e.collisionWidth-o-s;e.collisionWidth>o?l>0&&u<=0?(r=t.left+l+e.collisionWidth-o-s,t.left+=l-r):t.left=u>0&&l<=0?s:l>u?s+o-e.collisionWidth:s:l>0?t.left+=l:u>0?t.left-=u:t.left=n(t.left-a,t.left)},top:function(t,e){var r,i=e.within,s=i.isWindow?i.scrollTop:i.offset.top,o=e.within.height,a=t.top-e.collisionPosition.marginTop,l=s-a,u=a+e.collisionHeight-o-s;e.collisionHeight>o?l>0&&u<=0?(r=t.top+l+e.collisionHeight-o-s,t.top+=l-r):t.top=u>0&&l<=0?s:l>u?s+o-e.collisionHeight:s:l>0?t.top+=l:u>0?t.top-=u:t.top=n(t.top-a,t.top)}},flip:{left:function(t,e){var n,i,s=e.within,o=s.offset.left+s.scrollLeft,a=s.width,l=s.isWindow?s.scrollLeft:s.offset.left,u=t.left-e.collisionPosition.marginLeft,c=u-l,h=u+e.collisionWidth-a-l,d="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,f="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,p=-2*e.offset[0];c<0?((n=t.left+d+f+p+e.collisionWidth-a-o)<0||n<r(c))&&(t.left+=d+f+p):h>0&&((i=t.left-e.collisionPosition.marginLeft+d+f+p-l)>0||r(i)<h)&&(t.left+=d+f+p)},top:function(t,e){var n,i,s=e.within,o=s.offset.top+s.scrollTop,a=s.height,l=s.isWindow?s.scrollTop:s.offset.top,u=t.top-e.collisionPosition.marginTop,c=u-l,h=u+e.collisionHeight-a-l,d="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,f="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,p=-2*e.offset[1];c<0?((i=t.top+d+f+p+e.collisionHeight-a-o)<0||i<r(c))&&(t.top+=d+f+p):h>0&&((n=t.top-e.collisionPosition.marginTop+d+f+p-l)>0||r(n)<h)&&(t.top+=d+f+p)}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}}}(),t.ui.position})?r.apply(e,i):r)||(t.exports=s)},function(t,e,n){var r,i,s;
/*!
 * jQuery UI Datepicker 1.12.1
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */i=[n(2),n(9),n(29)],void 0===(s="function"==typeof(r=function(t){var e;function n(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},t.extend(this._defaults,this.regional[""]),this.regional.en=t.extend(!0,{},this.regional[""]),this.regional["en-US"]=t.extend(!0,{},this.regional.en),this.dpDiv=r(t("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function r(e){var n="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.on("mouseout",n,function(){t(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",n,i)}function i(){t.datepicker._isDisabledDatepicker(e.inline?e.dpDiv.parent()[0]:e.input[0])||(t(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),t(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).addClass("ui-datepicker-next-hover"))}function s(e,n){for(var r in t.extend(e,n),n)null==n[r]&&(e[r]=n[r]);return e}return t.extend(t.ui,{datepicker:{version:"1.12.1"}}),t.extend(n.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return s(this._defaults,t||{}),this},_attachDatepicker:function(e,n){var r,i,s;i="div"===(r=e.nodeName.toLowerCase())||"span"===r,e.id||(this.uuid+=1,e.id="dp"+this.uuid),(s=this._newInst(t(e),i)).settings=t.extend({},n||{}),"input"===r?this._connectDatepicker(e,s):i&&this._inlineDatepicker(e,s)},_newInst:function(e,n){return{id:e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:n,dpDiv:n?r(t("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(e,n){var r=t(e);n.append=t([]),n.trigger=t([]),r.hasClass(this.markerClassName)||(this._attachments(r,n),r.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(n),t.data(e,"datepicker",n),n.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,n){var r,i,s,o=this._get(n,"appendText"),a=this._get(n,"isRTL");n.append&&n.append.remove(),o&&(n.append=t("<span class='"+this._appendClass+"'>"+o+"</span>"),e[a?"before":"after"](n.append)),e.off("focus",this._showDatepicker),n.trigger&&n.trigger.remove(),"focus"!==(r=this._get(n,"showOn"))&&"both"!==r||e.on("focus",this._showDatepicker),"button"!==r&&"both"!==r||(i=this._get(n,"buttonText"),s=this._get(n,"buttonImage"),n.trigger=t(this._get(n,"buttonImageOnly")?t("<img/>").addClass(this._triggerClass).attr({src:s,alt:i,title:i}):t("<button type='button'></button>").addClass(this._triggerClass).html(s?t("<img/>").attr({src:s,alt:i,title:i}):i)),e[a?"before":"after"](n.trigger),n.trigger.on("click",function(){return t.datepicker._datepickerShowing&&t.datepicker._lastInput===e[0]?t.datepicker._hideDatepicker():t.datepicker._datepickerShowing&&t.datepicker._lastInput!==e[0]?(t.datepicker._hideDatepicker(),t.datepicker._showDatepicker(e[0])):t.datepicker._showDatepicker(e[0]),!1}))},_autoSize:function(t){if(this._get(t,"autoSize")&&!t.inline){var e,n,r,i,s=new Date(2009,11,20),o=this._get(t,"dateFormat");o.match(/[DM]/)&&(e=function(t){for(n=0,r=0,i=0;i<t.length;i++)t[i].length>n&&(n=t[i].length,r=i);return r},s.setMonth(e(this._get(t,o.match(/MM/)?"monthNames":"monthNamesShort"))),s.setDate(e(this._get(t,o.match(/DD/)?"dayNames":"dayNamesShort"))+20-s.getDay())),t.input.attr("size",this._formatDate(t,s).length)}},_inlineDatepicker:function(e,n){var r=t(e);r.hasClass(this.markerClassName)||(r.addClass(this.markerClassName).append(n.dpDiv),t.data(e,"datepicker",n),this._setDate(n,this._getDefaultDate(n),!0),this._updateDatepicker(n),this._updateAlternate(n),n.settings.disabled&&this._disableDatepicker(e),n.dpDiv.css("display","block"))},_dialogDatepicker:function(e,n,r,i,o){var a,l,u,c,h,d=this._dialogInst;return d||(this.uuid+=1,a="dp"+this.uuid,this._dialogInput=t("<input type='text' id='"+a+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),t("body").append(this._dialogInput),(d=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},t.data(this._dialogInput[0],"datepicker",d)),s(d.settings,i||{}),n=n&&n.constructor===Date?this._formatDate(d,n):n,this._dialogInput.val(n),this._pos=o?o.length?o:[o.pageX,o.pageY]:null,this._pos||(l=document.documentElement.clientWidth,u=document.documentElement.clientHeight,c=document.documentElement.scrollLeft||document.body.scrollLeft,h=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[l/2-100+c,u/2-150+h]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),d.settings.onSelect=r,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),t.blockUI&&t.blockUI(this.dpDiv),t.data(this._dialogInput[0],"datepicker",d),this},_destroyDatepicker:function(n){var r,i=t(n),s=t.data(n,"datepicker");i.hasClass(this.markerClassName)&&(r=n.nodeName.toLowerCase(),t.removeData(n,"datepicker"),"input"===r?(s.append.remove(),s.trigger.remove(),i.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==r&&"span"!==r||i.removeClass(this.markerClassName).empty(),e===s&&(e=null))},_enableDatepicker:function(e){var n,r,i=t(e),s=t.data(e,"datepicker");i.hasClass(this.markerClassName)&&("input"===(n=e.nodeName.toLowerCase())?(e.disabled=!1,s.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==n&&"span"!==n||((r=i.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),r.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=t.map(this._disabledInputs,function(t){return t===e?null:t}))},_disableDatepicker:function(e){var n,r,i=t(e),s=t.data(e,"datepicker");i.hasClass(this.markerClassName)&&("input"===(n=e.nodeName.toLowerCase())?(e.disabled=!0,s.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==n&&"span"!==n||((r=i.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),r.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=t.map(this._disabledInputs,function(t){return t===e?null:t}),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(t){if(!t)return!1;for(var e=0;e<this._disabledInputs.length;e++)if(this._disabledInputs[e]===t)return!0;return!1},_getInst:function(e){try{return t.data(e,"datepicker")}catch(t){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(e,n,r){var i,o,a,l,u=this._getInst(e);if(2===arguments.length&&"string"==typeof n)return"defaults"===n?t.extend({},t.datepicker._defaults):u?"all"===n?t.extend({},u.settings):this._get(u,n):null;i=n||{},"string"==typeof n&&((i={})[n]=r),u&&(this._curInst===u&&this._hideDatepicker(),o=this._getDateDatepicker(e,!0),a=this._getMinMaxDate(u,"min"),l=this._getMinMaxDate(u,"max"),s(u.settings,i),null!==a&&void 0!==i.dateFormat&&void 0===i.minDate&&(u.settings.minDate=this._formatDate(u,a)),null!==l&&void 0!==i.dateFormat&&void 0===i.maxDate&&(u.settings.maxDate=this._formatDate(u,l)),"disabled"in i&&(i.disabled?this._disableDatepicker(e):this._enableDatepicker(e)),this._attachments(t(e),u),this._autoSize(u),this._setDate(u,o),this._updateAlternate(u),this._updateDatepicker(u))},_changeDatepicker:function(t,e,n){this._optionDatepicker(t,e,n)},_refreshDatepicker:function(t){var e=this._getInst(t);e&&this._updateDatepicker(e)},_setDateDatepicker:function(t,e){var n=this._getInst(t);n&&(this._setDate(n,e),this._updateDatepicker(n),this._updateAlternate(n))},_getDateDatepicker:function(t,e){var n=this._getInst(t);return n&&!n.inline&&this._setDateFromField(n,e),n?this._getDate(n):null},_doKeyDown:function(e){var n,r,i,s=t.datepicker._getInst(e.target),o=!0,a=s.dpDiv.is(".ui-datepicker-rtl");if(s._keyEvent=!0,t.datepicker._datepickerShowing)switch(e.keyCode){case 9:t.datepicker._hideDatepicker(),o=!1;break;case 13:return(i=t("td."+t.datepicker._dayOverClass+":not(."+t.datepicker._currentClass+")",s.dpDiv))[0]&&t.datepicker._selectDay(e.target,s.selectedMonth,s.selectedYear,i[0]),(n=t.datepicker._get(s,"onSelect"))?(r=t.datepicker._formatDate(s),n.apply(s.input?s.input[0]:null,[r,s])):t.datepicker._hideDatepicker(),!1;case 27:t.datepicker._hideDatepicker();break;case 33:t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(s,"stepBigMonths"):-t.datepicker._get(s,"stepMonths"),"M");break;case 34:t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(s,"stepBigMonths"):+t.datepicker._get(s,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&&t.datepicker._clearDate(e.target),o=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&&t.datepicker._gotoToday(e.target),o=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,a?1:-1,"D"),o=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(s,"stepBigMonths"):-t.datepicker._get(s,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,-7,"D"),o=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,a?-1:1,"D"),o=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(s,"stepBigMonths"):+t.datepicker._get(s,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,7,"D"),o=e.ctrlKey||e.metaKey;break;default:o=!1}else 36===e.keyCode&&e.ctrlKey?t.datepicker._showDatepicker(this):o=!1;o&&(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){var n,r,i=t.datepicker._getInst(e.target);if(t.datepicker._get(i,"constrainInput"))return n=t.datepicker._possibleChars(t.datepicker._get(i,"dateFormat")),r=String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),e.ctrlKey||e.metaKey||r<" "||!n||n.indexOf(r)>-1},_doKeyUp:function(e){var n=t.datepicker._getInst(e.target);if(n.input.val()!==n.lastVal)try{t.datepicker.parseDate(t.datepicker._get(n,"dateFormat"),n.input?n.input.val():null,t.datepicker._getFormatConfig(n))&&(t.datepicker._setDateFromField(n),t.datepicker._updateAlternate(n),t.datepicker._updateDatepicker(n))}catch(t){}return!0},_showDatepicker:function(e){var n,r,i,o,a,l,u;"input"!==(e=e.target||e).nodeName.toLowerCase()&&(e=t("input",e.parentNode)[0]),t.datepicker._isDisabledDatepicker(e)||t.datepicker._lastInput===e||(n=t.datepicker._getInst(e),t.datepicker._curInst&&t.datepicker._curInst!==n&&(t.datepicker._curInst.dpDiv.stop(!0,!0),n&&t.datepicker._datepickerShowing&&t.datepicker._hideDatepicker(t.datepicker._curInst.input[0])),!1!==(i=(r=t.datepicker._get(n,"beforeShow"))?r.apply(e,[e,n]):{})&&(s(n.settings,i),n.lastVal=null,t.datepicker._lastInput=e,t.datepicker._setDateFromField(n),t.datepicker._inDialog&&(e.value=""),t.datepicker._pos||(t.datepicker._pos=t.datepicker._findPos(e),t.datepicker._pos[1]+=e.offsetHeight),o=!1,t(e).parents().each(function(){return!(o|="fixed"===t(this).css("position"))}),a={left:t.datepicker._pos[0],top:t.datepicker._pos[1]},t.datepicker._pos=null,n.dpDiv.empty(),n.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),t.datepicker._updateDatepicker(n),a=t.datepicker._checkOffset(n,a,o),n.dpDiv.css({position:t.datepicker._inDialog&&t.blockUI?"static":o?"fixed":"absolute",display:"none",left:a.left+"px",top:a.top+"px"}),n.inline||(l=t.datepicker._get(n,"showAnim"),u=t.datepicker._get(n,"duration"),n.dpDiv.css("z-index",function(t){for(var e,n;t.length&&t[0]!==document;){if(("absolute"===(e=t.css("position"))||"relative"===e||"fixed"===e)&&(n=parseInt(t.css("zIndex"),10),!isNaN(n)&&0!==n))return n;t=t.parent()}return 0}(t(e))+1),t.datepicker._datepickerShowing=!0,t.effects&&t.effects.effect[l]?n.dpDiv.show(l,t.datepicker._get(n,"showOptions"),u):n.dpDiv[l||"show"](l?u:null),t.datepicker._shouldFocusInput(n)&&n.input.trigger("focus"),t.datepicker._curInst=n)))},_updateDatepicker:function(n){this.maxRows=4,e=n,n.dpDiv.empty().append(this._generateHTML(n)),this._attachHandlers(n);var r,s=this._getNumberOfMonths(n),o=s[1],a=n.dpDiv.find("."+this._dayOverClass+" a");a.length>0&&i.apply(a.get(0)),n.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),o>1&&n.dpDiv.addClass("ui-datepicker-multi-"+o).css("width",17*o+"em"),n.dpDiv[(1!==s[0]||1!==s[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),n.dpDiv[(this._get(n,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),n===t.datepicker._curInst&&t.datepicker._datepickerShowing&&t.datepicker._shouldFocusInput(n)&&n.input.trigger("focus"),n.yearshtml&&(r=n.yearshtml,setTimeout(function(){r===n.yearshtml&&n.yearshtml&&n.dpDiv.find("select.ui-datepicker-year:first").replaceWith(n.yearshtml),r=n.yearshtml=null},0))},_shouldFocusInput:function(t){return t.input&&t.input.is(":visible")&&!t.input.is(":disabled")&&!t.input.is(":focus")},_checkOffset:function(e,n,r){var i=e.dpDiv.outerWidth(),s=e.dpDiv.outerHeight(),o=e.input?e.input.outerWidth():0,a=e.input?e.input.outerHeight():0,l=document.documentElement.clientWidth+(r?0:t(document).scrollLeft()),u=document.documentElement.clientHeight+(r?0:t(document).scrollTop());return n.left-=this._get(e,"isRTL")?i-o:0,n.left-=r&&n.left===e.input.offset().left?t(document).scrollLeft():0,n.top-=r&&n.top===e.input.offset().top+a?t(document).scrollTop():0,n.left-=Math.min(n.left,n.left+i>l&&l>i?Math.abs(n.left+i-l):0),n.top-=Math.min(n.top,n.top+s>u&&u>s?Math.abs(s+a):0),n},_findPos:function(e){for(var n,r=this._getInst(e),i=this._get(r,"isRTL");e&&("hidden"===e.type||1!==e.nodeType||t.expr.filters.hidden(e));)e=e[i?"previousSibling":"nextSibling"];return[(n=t(e).offset()).left,n.top]},_hideDatepicker:function(e){var n,r,i,s,o=this._curInst;!o||e&&o!==t.data(e,"datepicker")||this._datepickerShowing&&(n=this._get(o,"showAnim"),r=this._get(o,"duration"),i=function(){t.datepicker._tidyDialog(o)},t.effects&&(t.effects.effect[n]||t.effects[n])?o.dpDiv.hide(n,t.datepicker._get(o,"showOptions"),r,i):o.dpDiv["slideDown"===n?"slideUp":"fadeIn"===n?"fadeOut":"hide"](n?r:null,i),n||i(),this._datepickerShowing=!1,(s=this._get(o,"onClose"))&&s.apply(o.input?o.input[0]:null,[o.input?o.input.val():"",o]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),t.blockUI&&(t.unblockUI(),t("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(e){if(t.datepicker._curInst){var n=t(e.target),r=t.datepicker._getInst(n[0]);(n[0].id===t.datepicker._mainDivId||0!==n.parents("#"+t.datepicker._mainDivId).length||n.hasClass(t.datepicker.markerClassName)||n.closest("."+t.datepicker._triggerClass).length||!t.datepicker._datepickerShowing||t.datepicker._inDialog&&t.blockUI)&&(!n.hasClass(t.datepicker.markerClassName)||t.datepicker._curInst===r)||t.datepicker._hideDatepicker()}},_adjustDate:function(e,n,r){var i=t(e),s=this._getInst(i[0]);this._isDisabledDatepicker(i[0])||(this._adjustInstDate(s,n+("M"===r?this._get(s,"showCurrentAtPos"):0),r),this._updateDatepicker(s))},_gotoToday:function(e){var n,r=t(e),i=this._getInst(r[0]);this._get(i,"gotoCurrent")&&i.currentDay?(i.selectedDay=i.currentDay,i.drawMonth=i.selectedMonth=i.currentMonth,i.drawYear=i.selectedYear=i.currentYear):(n=new Date,i.selectedDay=n.getDate(),i.drawMonth=i.selectedMonth=n.getMonth(),i.drawYear=i.selectedYear=n.getFullYear()),this._notifyChange(i),this._adjustDate(r)},_selectMonthYear:function(e,n,r){var i=t(e),s=this._getInst(i[0]);s["selected"+("M"===r?"Month":"Year")]=s["draw"+("M"===r?"Month":"Year")]=parseInt(n.options[n.selectedIndex].value,10),this._notifyChange(s),this._adjustDate(i)},_selectDay:function(e,n,r,i){var s,o=t(e);t(i).hasClass(this._unselectableClass)||this._isDisabledDatepicker(o[0])||((s=this._getInst(o[0])).selectedDay=s.currentDay=t("a",i).html(),s.selectedMonth=s.currentMonth=n,s.selectedYear=s.currentYear=r,this._selectDate(e,this._formatDate(s,s.currentDay,s.currentMonth,s.currentYear)))},_clearDate:function(e){var n=t(e);this._selectDate(n,"")},_selectDate:function(e,n){var r,i=t(e),s=this._getInst(i[0]);n=null!=n?n:this._formatDate(s),s.input&&s.input.val(n),this._updateAlternate(s),(r=this._get(s,"onSelect"))?r.apply(s.input?s.input[0]:null,[n,s]):s.input&&s.input.trigger("change"),s.inline?this._updateDatepicker(s):(this._hideDatepicker(),this._lastInput=s.input[0],"object"!=typeof s.input[0]&&s.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(e){var n,r,i,s=this._get(e,"altField");s&&(n=this._get(e,"altFormat")||this._get(e,"dateFormat"),r=this._getDate(e),i=this.formatDate(n,r,this._getFormatConfig(e)),t(s).val(i))},noWeekends:function(t){var e=t.getDay();return[e>0&&e<6,""]},iso8601Week:function(t){var e,n=new Date(t.getTime());return n.setDate(n.getDate()+4-(n.getDay()||7)),e=n.getTime(),n.setMonth(0),n.setDate(1),Math.floor(Math.round((e-n)/864e5)/7)+1},parseDate:function(e,n,r){if(null==e||null==n)throw"Invalid arguments";if(""===(n="object"==typeof n?n.toString():n+""))return null;var i,s,o,a,l=0,u=(r?r.shortYearCutoff:null)||this._defaults.shortYearCutoff,c="string"!=typeof u?u:(new Date).getFullYear()%100+parseInt(u,10),h=(r?r.dayNamesShort:null)||this._defaults.dayNamesShort,d=(r?r.dayNames:null)||this._defaults.dayNames,f=(r?r.monthNamesShort:null)||this._defaults.monthNamesShort,p=(r?r.monthNames:null)||this._defaults.monthNames,m=-1,g=-1,v=-1,y=-1,b=!1,_=function(t){var n=i+1<e.length&&e.charAt(i+1)===t;return n&&i++,n},w=function(t){var e=_(t),r="@"===t?14:"!"===t?20:"y"===t&&e?4:"o"===t?3:2,i=new RegExp("^\\d{"+("y"===t?r:1)+","+r+"}"),s=n.substring(l).match(i);if(!s)throw"Missing number at position "+l;return l+=s[0].length,parseInt(s[0],10)},x=function(e,r,i){var s=-1,o=t.map(_(e)?i:r,function(t,e){return[[e,t]]}).sort(function(t,e){return-(t[1].length-e[1].length)});if(t.each(o,function(t,e){var r=e[1];if(n.substr(l,r.length).toLowerCase()===r.toLowerCase())return s=e[0],l+=r.length,!1}),-1!==s)return s+1;throw"Unknown name at position "+l},C=function(){if(n.charAt(l)!==e.charAt(i))throw"Unexpected literal at position "+l;l++};for(i=0;i<e.length;i++)if(b)"'"!==e.charAt(i)||_("'")?C():b=!1;else switch(e.charAt(i)){case"d":v=w("d");break;case"D":x("D",h,d);break;case"o":y=w("o");break;case"m":g=w("m");break;case"M":g=x("M",f,p);break;case"y":m=w("y");break;case"@":m=(a=new Date(w("@"))).getFullYear(),g=a.getMonth()+1,v=a.getDate();break;case"!":m=(a=new Date((w("!")-this._ticksTo1970)/1e4)).getFullYear(),g=a.getMonth()+1,v=a.getDate();break;case"'":_("'")?C():b=!0;break;default:C()}if(l<n.length&&(o=n.substr(l),!/^\s+/.test(o)))throw"Extra/unparsed characters found in date: "+o;if(-1===m?m=(new Date).getFullYear():m<100&&(m+=(new Date).getFullYear()-(new Date).getFullYear()%100+(m<=c?0:-100)),y>-1)for(g=1,v=y;!(v<=(s=this._getDaysInMonth(m,g-1)));)g++,v-=s;if((a=this._daylightSavingAdjust(new Date(m,g-1,v))).getFullYear()!==m||a.getMonth()+1!==g||a.getDate()!==v)throw"Invalid date";return a},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(t,e,n){if(!e)return"";var r,i=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,s=(n?n.dayNames:null)||this._defaults.dayNames,o=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,a=(n?n.monthNames:null)||this._defaults.monthNames,l=function(e){var n=r+1<t.length&&t.charAt(r+1)===e;return n&&r++,n},u=function(t,e,n){var r=""+e;if(l(t))for(;r.length<n;)r="0"+r;return r},c=function(t,e,n,r){return l(t)?r[e]:n[e]},h="",d=!1;if(e)for(r=0;r<t.length;r++)if(d)"'"!==t.charAt(r)||l("'")?h+=t.charAt(r):d=!1;else switch(t.charAt(r)){case"d":h+=u("d",e.getDate(),2);break;case"D":h+=c("D",e.getDay(),i,s);break;case"o":h+=u("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":h+=u("m",e.getMonth()+1,2);break;case"M":h+=c("M",e.getMonth(),o,a);break;case"y":h+=l("y")?e.getFullYear():(e.getFullYear()%100<10?"0":"")+e.getFullYear()%100;break;case"@":h+=e.getTime();break;case"!":h+=1e4*e.getTime()+this._ticksTo1970;break;case"'":l("'")?h+="'":d=!0;break;default:h+=t.charAt(r)}return h},_possibleChars:function(t){var e,n="",r=!1,i=function(n){var r=e+1<t.length&&t.charAt(e+1)===n;return r&&e++,r};for(e=0;e<t.length;e++)if(r)"'"!==t.charAt(e)||i("'")?n+=t.charAt(e):r=!1;else switch(t.charAt(e)){case"d":case"m":case"y":case"@":n+="0123456789";break;case"D":case"M":return null;case"'":i("'")?n+="'":r=!0;break;default:n+=t.charAt(e)}return n},_get:function(t,e){return void 0!==t.settings[e]?t.settings[e]:this._defaults[e]},_setDateFromField:function(t,e){if(t.input.val()!==t.lastVal){var n=this._get(t,"dateFormat"),r=t.lastVal=t.input?t.input.val():null,i=this._getDefaultDate(t),s=i,o=this._getFormatConfig(t);try{s=this.parseDate(n,r,o)||i}catch(t){r=e?"":r}t.selectedDay=s.getDate(),t.drawMonth=t.selectedMonth=s.getMonth(),t.drawYear=t.selectedYear=s.getFullYear(),t.currentDay=r?s.getDate():0,t.currentMonth=r?s.getMonth():0,t.currentYear=r?s.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(e,n,r){var i=null==n||""===n?r:"string"==typeof n?function(n){try{return t.datepicker.parseDate(t.datepicker._get(e,"dateFormat"),n,t.datepicker._getFormatConfig(e))}catch(t){}for(var r=(n.toLowerCase().match(/^c/)?t.datepicker._getDate(e):null)||new Date,i=r.getFullYear(),s=r.getMonth(),o=r.getDate(),a=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,l=a.exec(n);l;){switch(l[2]||"d"){case"d":case"D":o+=parseInt(l[1],10);break;case"w":case"W":o+=7*parseInt(l[1],10);break;case"m":case"M":s+=parseInt(l[1],10),o=Math.min(o,t.datepicker._getDaysInMonth(i,s));break;case"y":case"Y":i+=parseInt(l[1],10),o=Math.min(o,t.datepicker._getDaysInMonth(i,s))}l=a.exec(n)}return new Date(i,s,o)}(n):"number"==typeof n?isNaN(n)?r:function(t){var e=new Date;return e.setDate(e.getDate()+t),e}(n):new Date(n.getTime());return(i=i&&"Invalid Date"===i.toString()?r:i)&&(i.setHours(0),i.setMinutes(0),i.setSeconds(0),i.setMilliseconds(0)),this._daylightSavingAdjust(i)},_daylightSavingAdjust:function(t){return t?(t.setHours(t.getHours()>12?t.getHours()+2:0),t):null},_setDate:function(t,e,n){var r=!e,i=t.selectedMonth,s=t.selectedYear,o=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=o.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=o.getMonth(),t.drawYear=t.selectedYear=t.currentYear=o.getFullYear(),i===t.selectedMonth&&s===t.selectedYear||n||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(r?"":this._formatDate(t))},_getDate:function(t){return!t.currentYear||t.input&&""===t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay))},_attachHandlers:function(e){var n=this._get(e,"stepMonths"),r="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map(function(){var e={prev:function(){t.datepicker._adjustDate(r,-n,"M")},next:function(){t.datepicker._adjustDate(r,+n,"M")},hide:function(){t.datepicker._hideDatepicker()},today:function(){t.datepicker._gotoToday(r)},selectDay:function(){return t.datepicker._selectDay(r,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return t.datepicker._selectMonthYear(r,this,"M"),!1},selectYear:function(){return t.datepicker._selectMonthYear(r,this,"Y"),!1}};t(this).on(this.getAttribute("data-event"),e[this.getAttribute("data-handler")])})},_generateHTML:function(t){var e,n,r,i,s,o,a,l,u,c,h,d,f,p,m,g,v,y,b,_,w,x,C,A,D,E,T,S,I,k,L,M,N,O,q,R,P,B,U,V=new Date,j=this._daylightSavingAdjust(new Date(V.getFullYear(),V.getMonth(),V.getDate())),Y=this._get(t,"isRTL"),F=this._get(t,"showButtonPanel"),H=this._get(t,"hideIfNoPrevNext"),z=this._get(t,"navigationAsDateFormat"),W=this._getNumberOfMonths(t),$=this._get(t,"showCurrentAtPos"),G=this._get(t,"stepMonths"),K=1!==W[0]||1!==W[1],J=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),X=this._getMinMaxDate(t,"min"),Z=this._getMinMaxDate(t,"max"),Q=t.drawMonth-$,tt=t.drawYear;if(Q<0&&(Q+=12,tt--),Z)for(e=this._daylightSavingAdjust(new Date(Z.getFullYear(),Z.getMonth()-W[0]*W[1]+1,Z.getDate())),e=X&&e<X?X:e;this._daylightSavingAdjust(new Date(tt,Q,1))>e;)--Q<0&&(Q=11,tt--);for(t.drawMonth=Q,t.drawYear=tt,n=this._get(t,"prevText"),n=z?this.formatDate(n,this._daylightSavingAdjust(new Date(tt,Q-G,1)),this._getFormatConfig(t)):n,r=this._canAdjustMonth(t,-1,tt,Q)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+n+"'><span class='ui-icon ui-icon-circle-triangle-"+(Y?"e":"w")+"'>"+n+"</span></a>":H?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+n+"'><span class='ui-icon ui-icon-circle-triangle-"+(Y?"e":"w")+"'>"+n+"</span></a>",i=this._get(t,"nextText"),i=z?this.formatDate(i,this._daylightSavingAdjust(new Date(tt,Q+G,1)),this._getFormatConfig(t)):i,s=this._canAdjustMonth(t,1,tt,Q)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(Y?"w":"e")+"'>"+i+"</span></a>":H?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(Y?"w":"e")+"'>"+i+"</span></a>",o=this._get(t,"currentText"),a=this._get(t,"gotoCurrent")&&t.currentDay?J:j,o=z?this.formatDate(o,a,this._getFormatConfig(t)):o,l=t.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(t,"closeText")+"</button>",u=F?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(Y?l:"")+(this._isInRange(t,a)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+o+"</button>":"")+(Y?"":l)+"</div>":"",c=parseInt(this._get(t,"firstDay"),10),c=isNaN(c)?0:c,h=this._get(t,"showWeek"),d=this._get(t,"dayNames"),f=this._get(t,"dayNamesMin"),p=this._get(t,"monthNames"),m=this._get(t,"monthNamesShort"),g=this._get(t,"beforeShowDay"),v=this._get(t,"showOtherMonths"),y=this._get(t,"selectOtherMonths"),b=this._getDefaultDate(t),_="",x=0;x<W[0];x++){for(C="",this.maxRows=4,A=0;A<W[1];A++){if(D=this._daylightSavingAdjust(new Date(tt,Q,t.selectedDay)),E=" ui-corner-all",T="",K){if(T+="<div class='ui-datepicker-group",W[1]>1)switch(A){case 0:T+=" ui-datepicker-group-first",E=" ui-corner-"+(Y?"right":"left");break;case W[1]-1:T+=" ui-datepicker-group-last",E=" ui-corner-"+(Y?"left":"right");break;default:T+=" ui-datepicker-group-middle",E=""}T+="'>"}for(T+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+E+"'>"+(/all|left/.test(E)&&0===x?Y?s:r:"")+(/all|right/.test(E)&&0===x?Y?r:s:"")+this._generateMonthYearHeader(t,Q,tt,X,Z,x>0||A>0,p,m)+"</div><table class='ui-datepicker-calendar'><thead><tr>",S=h?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",w=0;w<7;w++)I=(w+c)%7,S+="<th scope='col'"+((w+c+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+d[I]+"'>"+f[I]+"</span></th>";for(T+=S+"</tr></thead><tbody>",k=this._getDaysInMonth(tt,Q),tt===t.selectedYear&&Q===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,k)),L=(this._getFirstDayOfMonth(tt,Q)-c+7)%7,M=Math.ceil((L+k)/7),N=K&&this.maxRows>M?this.maxRows:M,this.maxRows=N,O=this._daylightSavingAdjust(new Date(tt,Q,1-L)),q=0;q<N;q++){for(T+="<tr>",R=h?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(O)+"</td>":"",w=0;w<7;w++)P=g?g.apply(t.input?t.input[0]:null,[O]):[!0,""],U=(B=O.getMonth()!==Q)&&!y||!P[0]||X&&O<X||Z&&O>Z,R+="<td class='"+((w+c+6)%7>=5?" ui-datepicker-week-end":"")+(B?" ui-datepicker-other-month":"")+(O.getTime()===D.getTime()&&Q===t.selectedMonth&&t._keyEvent||b.getTime()===O.getTime()&&b.getTime()===D.getTime()?" "+this._dayOverClass:"")+(U?" "+this._unselectableClass+" ui-state-disabled":"")+(B&&!v?"":" "+P[1]+(O.getTime()===J.getTime()?" "+this._currentClass:"")+(O.getTime()===j.getTime()?" ui-datepicker-today":""))+"'"+(B&&!v||!P[2]?"":" title='"+P[2].replace(/'/g,"&#39;")+"'")+(U?"":" data-handler='selectDay' data-event='click' data-month='"+O.getMonth()+"' data-year='"+O.getFullYear()+"'")+">"+(B&&!v?"&#xa0;":U?"<span class='ui-state-default'>"+O.getDate()+"</span>":"<a class='ui-state-default"+(O.getTime()===j.getTime()?" ui-state-highlight":"")+(O.getTime()===J.getTime()?" ui-state-active":"")+(B?" ui-priority-secondary":"")+"' href='#'>"+O.getDate()+"</a>")+"</td>",O.setDate(O.getDate()+1),O=this._daylightSavingAdjust(O);T+=R+"</tr>"}++Q>11&&(Q=0,tt++),C+=T+="</tbody></table>"+(K?"</div>"+(W[0]>0&&A===W[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}_+=C}return _+=u,t._keyEvent=!1,_},_generateMonthYearHeader:function(t,e,n,r,i,s,o,a){var l,u,c,h,d,f,p,m,g=this._get(t,"changeMonth"),v=this._get(t,"changeYear"),y=this._get(t,"showMonthAfterYear"),b="<div class='ui-datepicker-title'>",_="";if(s||!g)_+="<span class='ui-datepicker-month'>"+o[e]+"</span>";else{for(l=r&&r.getFullYear()===n,u=i&&i.getFullYear()===n,_+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",c=0;c<12;c++)(!l||c>=r.getMonth())&&(!u||c<=i.getMonth())&&(_+="<option value='"+c+"'"+(c===e?" selected='selected'":"")+">"+a[c]+"</option>");_+="</select>"}if(y||(b+=_+(!s&&g&&v?"":"&#xa0;")),!t.yearshtml)if(t.yearshtml="",s||!v)b+="<span class='ui-datepicker-year'>"+n+"</span>";else{for(h=this._get(t,"yearRange").split(":"),d=(new Date).getFullYear(),p=(f=function(t){var e=t.match(/c[+\-].*/)?n+parseInt(t.substring(1),10):t.match(/[+\-].*/)?d+parseInt(t,10):parseInt(t,10);return isNaN(e)?d:e})(h[0]),m=Math.max(p,f(h[1]||"")),p=r?Math.max(p,r.getFullYear()):p,m=i?Math.min(m,i.getFullYear()):m,t.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";p<=m;p++)t.yearshtml+="<option value='"+p+"'"+(p===n?" selected='selected'":"")+">"+p+"</option>";t.yearshtml+="</select>",b+=t.yearshtml,t.yearshtml=null}return b+=this._get(t,"yearSuffix"),y&&(b+=(!s&&g&&v?"":"&#xa0;")+_),b+="</div>"},_adjustInstDate:function(t,e,n){var r=t.selectedYear+("Y"===n?e:0),i=t.selectedMonth+("M"===n?e:0),s=Math.min(t.selectedDay,this._getDaysInMonth(r,i))+("D"===n?e:0),o=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(r,i,s)));t.selectedDay=o.getDate(),t.drawMonth=t.selectedMonth=o.getMonth(),t.drawYear=t.selectedYear=o.getFullYear(),"M"!==n&&"Y"!==n||this._notifyChange(t)},_restrictMinMax:function(t,e){var n=this._getMinMaxDate(t,"min"),r=this._getMinMaxDate(t,"max"),i=n&&e<n?n:e;return r&&i>r?r:i},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){var e=this._get(t,"numberOfMonths");return null==e?[1,1]:"number"==typeof e?[1,e]:e},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,n,r){var i=this._getNumberOfMonths(t),s=this._daylightSavingAdjust(new Date(n,r+(e<0?e:i[0]*i[1]),1));return e<0&&s.setDate(this._getDaysInMonth(s.getFullYear(),s.getMonth())),this._isInRange(t,s)},_isInRange:function(t,e){var n,r,i=this._getMinMaxDate(t,"min"),s=this._getMinMaxDate(t,"max"),o=null,a=null,l=this._get(t,"yearRange");return l&&(n=l.split(":"),r=(new Date).getFullYear(),o=parseInt(n[0],10),a=parseInt(n[1],10),n[0].match(/[+\-].*/)&&(o+=r),n[1].match(/[+\-].*/)&&(a+=r)),(!i||e.getTime()>=i.getTime())&&(!s||e.getTime()<=s.getTime())&&(!o||e.getFullYear()>=o)&&(!a||e.getFullYear()<=a)},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return{shortYearCutoff:e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,n,r){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);var i=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(r,n,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),i,this._getFormatConfig(t))}}),t.fn.datepicker=function(e){if(!this.length)return this;t.datepicker.initialized||(t(document).on("mousedown",t.datepicker._checkExternalClick),t.datepicker.initialized=!0),0===t("#"+t.datepicker._mainDivId).length&&t("body").append(t.datepicker.dpDiv);var n=Array.prototype.slice.call(arguments,1);return"string"!=typeof e||"isDisabled"!==e&&"getDate"!==e&&"widget"!==e?"option"===e&&2===arguments.length&&"string"==typeof arguments[1]?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(n)):this.each(function(){"string"==typeof e?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this].concat(n)):t.datepicker._attachDatepicker(this,e)}):t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(n))},t.datepicker=new n,t.datepicker.initialized=!1,t.datepicker.uuid=(new Date).getTime(),t.datepicker.version="1.12.1",t.datepicker})?r.apply(e,i):r)||(t.exports=s)},function(t,e,n){var r;void 0===(r=function(t){"use strict";var e=n(8),r=n(61);return e.Collection.extend({model:r})}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r;void 0===(r=function(t){"use strict";var e=n(8),r=n(4);return e.Model.extend({defaults:{isLocal:!1},initialize:function(){r.isUndefined(this.get("id"))&&this.set("id",r.uniqueId());var t=this.get("fileName");r.isUndefined(t)||("/"===t.charAt(0)&&(t=t.substr(1)),this.set("displayName",t))}})}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.HandlebarsEnvironment=u;var i=n(12),s=r(n(18)),o=n(106),a=n(114),l=r(n(116));e.VERSION="4.0.11";e.COMPILER_REVISION=7;e.REVISION_CHANGES={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0"};function u(t,e,n){this.helpers=t||{},this.partials=e||{},this.decorators=n||{},o.registerDefaultHelpers(this),a.registerDefaultDecorators(this)}u.prototype={constructor:u,logger:l.default,log:l.default.log,registerHelper:function(t,e){if("[object Object]"===i.toString.call(t)){if(e)throw new s.default("Arg not supported with multiple helpers");i.extend(this.helpers,t)}else this.helpers[t]=e},unregisterHelper:function(t){delete this.helpers[t]},registerPartial:function(t,e){if("[object Object]"===i.toString.call(t))i.extend(this.partials,t);else{if(void 0===e)throw new s.default('Attempting to register a partial called "'+t+'" as undefined');this.partials[t]=e}},unregisterPartial:function(t){delete this.partials[t]},registerDecorator:function(t,e){if("[object Object]"===i.toString.call(t)){if(e)throw new s.default("Arg not supported with multiple decorators");i.extend(this.decorators,t)}else this.decorators[t]=e},unregisterDecorator:function(t){delete this.decorators[t]}};var c=l.default.log;e.log=c,e.createFrame=i.createFrame,e.logger=l.default},function(t,e,n){var r;
/**
 * @copyright 2017 Christoph Wurst <christoph@winzerhof-wurst.at>
 *
 * @author 2017 Christoph Wurst <christoph@winzerhof-wurst.at>
 *
 * @license GNU AGPL version 3 or any later version
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */void 0===(r=function(){"use strict";return function(t,e){$(t).imageplaceholder(e)}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r;
/**
 * @copyright 2017 Christoph Wurst <christoph@winzerhof-wurst.at>
 *
 * @author 2017 Christoph Wurst <christoph@winzerhof-wurst.at>
 *
 * @license GNU AGPL version 3 or any later version
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */void 0===(r=function(){"use strict";return function(t,e){$(t).tooltip(e)}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r;void 0===(r=function(t){"use strict";var e=n(8),r=n(128);return e.Collection.extend({model:r})}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r;void 0===(r=function(t){"use strict";var e=n(8),r=n(129);return e.Collection.extend({model:r,comparator:function(t){return-1*t.get("dateInt")}})}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r=n(19),i=n(36),s="[object AsyncFunction]",o="[object Function]",a="[object GeneratorFunction]",l="[object Proxy]";t.exports=function(t){if(!i(t))return!1;var e=r(t);return e==o||e==a||e==s||e==l}},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n(10))},function(t,e){var n=9007199254740991;t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}},function(t,e,n){var r=n(24),i=n(42),s=n(168),o=n(43),a=n(45),l=/\s+$/;t.exports=function(t,e,n){if((t=a(t))&&(n||void 0===e))return t.replace(l,"");if(!t||!(e=r(e)))return t;var u=o(t),c=s(u,o(e))+1;return i(u,0,c).join("")}},function(t,e,n){var r=n(72),i={input:!0,option:!0,optgroup:!0,select:!0,button:!0,datalist:!0,textarea:!0},s={tr:{tr:!0,th:!0,td:!0},th:{th:!0},td:{thead:!0,th:!0,td:!0},body:{head:!0,link:!0,script:!0},li:{li:!0},p:{p:!0},h1:{p:!0},h2:{p:!0},h3:{p:!0},h4:{p:!0},h5:{p:!0},h6:{p:!0},select:i,input:i,output:i,button:i,datalist:i,textarea:i,option:{option:!0},optgroup:{optgroup:!0}},o={__proto__:null,area:!0,base:!0,basefont:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,isindex:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,path:!0,circle:!0,ellipse:!0,line:!0,rect:!0,use:!0,stop:!0,polyline:!0,polygon:!0},a=/\s|\//;function l(t,e){this._options=e||{},this._cbs=t||{},this._tagname="",this._attribname="",this._attribvalue="",this._attribs=null,this._stack=[],this.startIndex=0,this.endIndex=null,this._lowerCaseTagNames="lowerCaseTags"in this._options?!!this._options.lowerCaseTags:!this._options.xmlMode,this._lowerCaseAttributeNames="lowerCaseAttributeNames"in this._options?!!this._options.lowerCaseAttributeNames:!this._options.xmlMode,this._options.Tokenizer&&(r=this._options.Tokenizer),this._tokenizer=new r(this._options,this),this._cbs.onparserinit&&this._cbs.onparserinit(this)}n(11)(l,n(25).EventEmitter),l.prototype._updatePosition=function(t){null===this.endIndex?this._tokenizer._sectionStart<=t?this.startIndex=0:this.startIndex=this._tokenizer._sectionStart-t:this.startIndex=this.endIndex+1,this.endIndex=this._tokenizer.getAbsoluteIndex()},l.prototype.ontext=function(t){this._updatePosition(1),this.endIndex--,this._cbs.ontext&&this._cbs.ontext(t)},l.prototype.onopentagname=function(t){if(this._lowerCaseTagNames&&(t=t.toLowerCase()),this._tagname=t,!this._options.xmlMode&&t in s)for(var e;(e=this._stack[this._stack.length-1])in s[t];this.onclosetag(e));!this._options.xmlMode&&t in o||this._stack.push(t),this._cbs.onopentagname&&this._cbs.onopentagname(t),this._cbs.onopentag&&(this._attribs={})},l.prototype.onopentagend=function(){this._updatePosition(1),this._attribs&&(this._cbs.onopentag&&this._cbs.onopentag(this._tagname,this._attribs),this._attribs=null),!this._options.xmlMode&&this._cbs.onclosetag&&this._tagname in o&&this._cbs.onclosetag(this._tagname),this._tagname=""},l.prototype.onclosetag=function(t){if(this._updatePosition(1),this._lowerCaseTagNames&&(t=t.toLowerCase()),!this._stack.length||t in o&&!this._options.xmlMode)this._options.xmlMode||"br"!==t&&"p"!==t||(this.onopentagname(t),this._closeCurrentTag());else{var e=this._stack.lastIndexOf(t);if(-1!==e)if(this._cbs.onclosetag)for(e=this._stack.length-e;e--;)this._cbs.onclosetag(this._stack.pop());else this._stack.length=e;else"p"!==t||this._options.xmlMode||(this.onopentagname(t),this._closeCurrentTag())}},l.prototype.onselfclosingtag=function(){this._options.xmlMode||this._options.recognizeSelfClosing?this._closeCurrentTag():this.onopentagend()},l.prototype._closeCurrentTag=function(){var t=this._tagname;this.onopentagend(),this._stack[this._stack.length-1]===t&&(this._cbs.onclosetag&&this._cbs.onclosetag(t),this._stack.pop())},l.prototype.onattribname=function(t){this._lowerCaseAttributeNames&&(t=t.toLowerCase()),this._attribname=t},l.prototype.onattribdata=function(t){this._attribvalue+=t},l.prototype.onattribend=function(){this._cbs.onattribute&&this._cbs.onattribute(this._attribname,this._attribvalue),this._attribs&&!Object.prototype.hasOwnProperty.call(this._attribs,this._attribname)&&(this._attribs[this._attribname]=this._attribvalue),this._attribname="",this._attribvalue=""},l.prototype._getInstructionName=function(t){var e=t.search(a),n=e<0?t:t.substr(0,e);return this._lowerCaseTagNames&&(n=n.toLowerCase()),n},l.prototype.ondeclaration=function(t){if(this._cbs.onprocessinginstruction){var e=this._getInstructionName(t);this._cbs.onprocessinginstruction("!"+e,"!"+t)}},l.prototype.onprocessinginstruction=function(t){if(this._cbs.onprocessinginstruction){var e=this._getInstructionName(t);this._cbs.onprocessinginstruction("?"+e,"?"+t)}},l.prototype.oncomment=function(t){this._updatePosition(4),this._cbs.oncomment&&this._cbs.oncomment(t),this._cbs.oncommentend&&this._cbs.oncommentend()},l.prototype.oncdata=function(t){this._updatePosition(1),this._options.xmlMode||this._options.recognizeCDATA?(this._cbs.oncdatastart&&this._cbs.oncdatastart(),this._cbs.ontext&&this._cbs.ontext(t),this._cbs.oncdataend&&this._cbs.oncdataend()):this.oncomment("[CDATA["+t+"]]")},l.prototype.onerror=function(t){this._cbs.onerror&&this._cbs.onerror(t)},l.prototype.onend=function(){if(this._cbs.onclosetag)for(var t=this._stack.length;t>0;this._cbs.onclosetag(this._stack[--t]));this._cbs.onend&&this._cbs.onend()},l.prototype.reset=function(){this._cbs.onreset&&this._cbs.onreset(),this._tokenizer.reset(),this._tagname="",this._attribname="",this._attribs=null,this._stack=[],this._cbs.onparserinit&&this._cbs.onparserinit(this)},l.prototype.parseComplete=function(t){this.reset(),this.end(t)},l.prototype.write=function(t){this._tokenizer.write(t)},l.prototype.end=function(t){this._tokenizer.end(t)},l.prototype.pause=function(){this._tokenizer.pause()},l.prototype.resume=function(){this._tokenizer.resume()},l.prototype.parseChunk=l.prototype.write,l.prototype.done=l.prototype.end,t.exports=l},function(t,e,n){t.exports=gt;var r=n(171),i=n(173),s=n(174),o=n(175),a=0,l=a++,u=a++,c=a++,h=a++,d=a++,f=a++,p=a++,m=a++,g=a++,v=a++,y=a++,b=a++,_=a++,w=a++,x=a++,C=a++,A=a++,D=a++,E=a++,T=a++,S=a++,I=a++,k=a++,L=a++,M=a++,N=a++,O=a++,q=a++,R=a++,P=a++,B=a++,U=a++,V=a++,j=a++,Y=a++,F=a++,H=a++,z=a++,W=a++,$=a++,G=a++,K=a++,J=a++,X=a++,Z=a++,Q=a++,tt=a++,et=a++,nt=a++,rt=a++,it=a++,st=a++,ot=a++,at=a++,lt=a++,ut=0,ct=ut++,ht=ut++,dt=ut++;function ft(t){return" "===t||"\n"===t||"\t"===t||"\f"===t||"\r"===t}function pt(t,e,n){var r=t.toLowerCase();return t===r?function(t){t===r?this._state=e:(this._state=n,this._index--)}:function(i){i===r||i===t?this._state=e:(this._state=n,this._index--)}}function mt(t,e){var n=t.toLowerCase();return function(r){r===n||r===t?this._state=e:(this._state=c,this._index--)}}function gt(t,e){this._state=l,this._buffer="",this._sectionStart=0,this._index=0,this._bufferOffset=0,this._baseState=l,this._special=ct,this._cbs=e,this._running=!0,this._ended=!1,this._xmlMode=!(!t||!t.xmlMode),this._decodeEntities=!(!t||!t.decodeEntities)}gt.prototype._stateText=function(t){"<"===t?(this._index>this._sectionStart&&this._cbs.ontext(this._getSection()),this._state=u,this._sectionStart=this._index):this._decodeEntities&&this._special===ct&&"&"===t&&(this._index>this._sectionStart&&this._cbs.ontext(this._getSection()),this._baseState=l,this._state=it,this._sectionStart=this._index)},gt.prototype._stateBeforeTagName=function(t){"/"===t?this._state=d:"<"===t?(this._cbs.ontext(this._getSection()),this._sectionStart=this._index):">"===t||this._special!==ct||ft(t)?this._state=l:"!"===t?(this._state=x,this._sectionStart=this._index+1):"?"===t?(this._state=A,this._sectionStart=this._index+1):(this._state=this._xmlMode||"s"!==t&&"S"!==t?c:B,this._sectionStart=this._index)},gt.prototype._stateInTagName=function(t){("/"===t||">"===t||ft(t))&&(this._emitToken("onopentagname"),this._state=m,this._index--)},gt.prototype._stateBeforeCloseingTagName=function(t){ft(t)||(">"===t?this._state=l:this._special!==ct?"s"===t||"S"===t?this._state=U:(this._state=l,this._index--):(this._state=f,this._sectionStart=this._index))},gt.prototype._stateInCloseingTagName=function(t){(">"===t||ft(t))&&(this._emitToken("onclosetag"),this._state=p,this._index--)},gt.prototype._stateAfterCloseingTagName=function(t){">"===t&&(this._state=l,this._sectionStart=this._index+1)},gt.prototype._stateBeforeAttributeName=function(t){">"===t?(this._cbs.onopentagend(),this._state=l,this._sectionStart=this._index+1):"/"===t?this._state=h:ft(t)||(this._state=g,this._sectionStart=this._index)},gt.prototype._stateInSelfClosingTag=function(t){">"===t?(this._cbs.onselfclosingtag(),this._state=l,this._sectionStart=this._index+1):ft(t)||(this._state=m,this._index--)},gt.prototype._stateInAttributeName=function(t){("="===t||"/"===t||">"===t||ft(t))&&(this._cbs.onattribname(this._getSection()),this._sectionStart=-1,this._state=v,this._index--)},gt.prototype._stateAfterAttributeName=function(t){"="===t?this._state=y:"/"===t||">"===t?(this._cbs.onattribend(),this._state=m,this._index--):ft(t)||(this._cbs.onattribend(),this._state=g,this._sectionStart=this._index)},gt.prototype._stateBeforeAttributeValue=function(t){'"'===t?(this._state=b,this._sectionStart=this._index+1):"'"===t?(this._state=_,this._sectionStart=this._index+1):ft(t)||(this._state=w,this._sectionStart=this._index,this._index--)},gt.prototype._stateInAttributeValueDoubleQuotes=function(t){'"'===t?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=m):this._decodeEntities&&"&"===t&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=it,this._sectionStart=this._index)},gt.prototype._stateInAttributeValueSingleQuotes=function(t){"'"===t?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=m):this._decodeEntities&&"&"===t&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=it,this._sectionStart=this._index)},gt.prototype._stateInAttributeValueNoQuotes=function(t){ft(t)||">"===t?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=m,this._index--):this._decodeEntities&&"&"===t&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=it,this._sectionStart=this._index)},gt.prototype._stateBeforeDeclaration=function(t){this._state="["===t?I:"-"===t?D:C},gt.prototype._stateInDeclaration=function(t){">"===t&&(this._cbs.ondeclaration(this._getSection()),this._state=l,this._sectionStart=this._index+1)},gt.prototype._stateInProcessingInstruction=function(t){">"===t&&(this._cbs.onprocessinginstruction(this._getSection()),this._state=l,this._sectionStart=this._index+1)},gt.prototype._stateBeforeComment=function(t){"-"===t?(this._state=E,this._sectionStart=this._index+1):this._state=C},gt.prototype._stateInComment=function(t){"-"===t&&(this._state=T)},gt.prototype._stateAfterComment1=function(t){this._state="-"===t?S:E},gt.prototype._stateAfterComment2=function(t){">"===t?(this._cbs.oncomment(this._buffer.substring(this._sectionStart,this._index-2)),this._state=l,this._sectionStart=this._index+1):"-"!==t&&(this._state=E)},gt.prototype._stateBeforeCdata1=pt("C",k,C),gt.prototype._stateBeforeCdata2=pt("D",L,C),gt.prototype._stateBeforeCdata3=pt("A",M,C),gt.prototype._stateBeforeCdata4=pt("T",N,C),gt.prototype._stateBeforeCdata5=pt("A",O,C),gt.prototype._stateBeforeCdata6=function(t){"["===t?(this._state=q,this._sectionStart=this._index+1):(this._state=C,this._index--)},gt.prototype._stateInCdata=function(t){"]"===t&&(this._state=R)},gt.prototype._stateAfterCdata1=function(t,e){return function(n){n===t&&(this._state=e)}}("]",P),gt.prototype._stateAfterCdata2=function(t){">"===t?(this._cbs.oncdata(this._buffer.substring(this._sectionStart,this._index-2)),this._state=l,this._sectionStart=this._index+1):"]"!==t&&(this._state=q)},gt.prototype._stateBeforeSpecial=function(t){"c"===t||"C"===t?this._state=V:"t"===t||"T"===t?this._state=J:(this._state=c,this._index--)},gt.prototype._stateBeforeSpecialEnd=function(t){this._special!==ht||"c"!==t&&"C"!==t?this._special!==dt||"t"!==t&&"T"!==t?this._state=l:this._state=tt:this._state=z},gt.prototype._stateBeforeScript1=mt("R",j),gt.prototype._stateBeforeScript2=mt("I",Y),gt.prototype._stateBeforeScript3=mt("P",F),gt.prototype._stateBeforeScript4=mt("T",H),gt.prototype._stateBeforeScript5=function(t){("/"===t||">"===t||ft(t))&&(this._special=ht),this._state=c,this._index--},gt.prototype._stateAfterScript1=pt("R",W,l),gt.prototype._stateAfterScript2=pt("I",$,l),gt.prototype._stateAfterScript3=pt("P",G,l),gt.prototype._stateAfterScript4=pt("T",K,l),gt.prototype._stateAfterScript5=function(t){">"===t||ft(t)?(this._special=ct,this._state=f,this._sectionStart=this._index-6,this._index--):this._state=l},gt.prototype._stateBeforeStyle1=mt("Y",X),gt.prototype._stateBeforeStyle2=mt("L",Z),gt.prototype._stateBeforeStyle3=mt("E",Q),gt.prototype._stateBeforeStyle4=function(t){("/"===t||">"===t||ft(t))&&(this._special=dt),this._state=c,this._index--},gt.prototype._stateAfterStyle1=pt("Y",et,l),gt.prototype._stateAfterStyle2=pt("L",nt,l),gt.prototype._stateAfterStyle3=pt("E",rt,l),gt.prototype._stateAfterStyle4=function(t){">"===t||ft(t)?(this._special=ct,this._state=f,this._sectionStart=this._index-5,this._index--):this._state=l},gt.prototype._stateBeforeEntity=pt("#",st,ot),gt.prototype._stateBeforeNumericEntity=pt("X",lt,at),gt.prototype._parseNamedEntityStrict=function(){if(this._sectionStart+1<this._index){var t=this._buffer.substring(this._sectionStart+1,this._index),e=this._xmlMode?o:i;e.hasOwnProperty(t)&&(this._emitPartial(e[t]),this._sectionStart=this._index+1)}},gt.prototype._parseLegacyEntity=function(){var t=this._sectionStart+1,e=this._index-t;for(e>6&&(e=6);e>=2;){var n=this._buffer.substr(t,e);if(s.hasOwnProperty(n))return this._emitPartial(s[n]),void(this._sectionStart+=e+1);e--}},gt.prototype._stateInNamedEntity=function(t){";"===t?(this._parseNamedEntityStrict(),this._sectionStart+1<this._index&&!this._xmlMode&&this._parseLegacyEntity(),this._state=this._baseState):(t<"a"||t>"z")&&(t<"A"||t>"Z")&&(t<"0"||t>"9")&&(this._xmlMode||this._sectionStart+1===this._index||(this._baseState!==l?"="!==t&&this._parseNamedEntityStrict():this._parseLegacyEntity()),this._state=this._baseState,this._index--)},gt.prototype._decodeNumericEntity=function(t,e){var n=this._sectionStart+t;if(n!==this._index){var i=this._buffer.substring(n,this._index),s=parseInt(i,e);this._emitPartial(r(s)),this._sectionStart=this._index}else this._sectionStart--;this._state=this._baseState},gt.prototype._stateInNumericEntity=function(t){";"===t?(this._decodeNumericEntity(2,10),this._sectionStart++):(t<"0"||t>"9")&&(this._xmlMode?this._state=this._baseState:this._decodeNumericEntity(2,10),this._index--)},gt.prototype._stateInHexEntity=function(t){";"===t?(this._decodeNumericEntity(3,16),this._sectionStart++):(t<"a"||t>"f")&&(t<"A"||t>"F")&&(t<"0"||t>"9")&&(this._xmlMode?this._state=this._baseState:this._decodeNumericEntity(3,16),this._index--)},gt.prototype._cleanup=function(){this._sectionStart<0?(this._buffer="",this._bufferOffset+=this._index,this._index=0):this._running&&(this._state===l?(this._sectionStart!==this._index&&this._cbs.ontext(this._buffer.substr(this._sectionStart)),this._buffer="",this._bufferOffset+=this._index,this._index=0):this._sectionStart===this._index?(this._buffer="",this._bufferOffset+=this._index,this._index=0):(this._buffer=this._buffer.substr(this._sectionStart),this._index-=this._sectionStart,this._bufferOffset+=this._sectionStart),this._sectionStart=0)},gt.prototype.write=function(t){this._ended&&this._cbs.onerror(Error(".write() after done!")),this._buffer+=t,this._parse()},gt.prototype._parse=function(){for(;this._index<this._buffer.length&&this._running;){var t=this._buffer.charAt(this._index);this._state===l?this._stateText(t):this._state===u?this._stateBeforeTagName(t):this._state===c?this._stateInTagName(t):this._state===d?this._stateBeforeCloseingTagName(t):this._state===f?this._stateInCloseingTagName(t):this._state===p?this._stateAfterCloseingTagName(t):this._state===h?this._stateInSelfClosingTag(t):this._state===m?this._stateBeforeAttributeName(t):this._state===g?this._stateInAttributeName(t):this._state===v?this._stateAfterAttributeName(t):this._state===y?this._stateBeforeAttributeValue(t):this._state===b?this._stateInAttributeValueDoubleQuotes(t):this._state===_?this._stateInAttributeValueSingleQuotes(t):this._state===w?this._stateInAttributeValueNoQuotes(t):this._state===x?this._stateBeforeDeclaration(t):this._state===C?this._stateInDeclaration(t):this._state===A?this._stateInProcessingInstruction(t):this._state===D?this._stateBeforeComment(t):this._state===E?this._stateInComment(t):this._state===T?this._stateAfterComment1(t):this._state===S?this._stateAfterComment2(t):this._state===I?this._stateBeforeCdata1(t):this._state===k?this._stateBeforeCdata2(t):this._state===L?this._stateBeforeCdata3(t):this._state===M?this._stateBeforeCdata4(t):this._state===N?this._stateBeforeCdata5(t):this._state===O?this._stateBeforeCdata6(t):this._state===q?this._stateInCdata(t):this._state===R?this._stateAfterCdata1(t):this._state===P?this._stateAfterCdata2(t):this._state===B?this._stateBeforeSpecial(t):this._state===U?this._stateBeforeSpecialEnd(t):this._state===V?this._stateBeforeScript1(t):this._state===j?this._stateBeforeScript2(t):this._state===Y?this._stateBeforeScript3(t):this._state===F?this._stateBeforeScript4(t):this._state===H?this._stateBeforeScript5(t):this._state===z?this._stateAfterScript1(t):this._state===W?this._stateAfterScript2(t):this._state===$?this._stateAfterScript3(t):this._state===G?this._stateAfterScript4(t):this._state===K?this._stateAfterScript5(t):this._state===J?this._stateBeforeStyle1(t):this._state===X?this._stateBeforeStyle2(t):this._state===Z?this._stateBeforeStyle3(t):this._state===Q?this._stateBeforeStyle4(t):this._state===tt?this._stateAfterStyle1(t):this._state===et?this._stateAfterStyle2(t):this._state===nt?this._stateAfterStyle3(t):this._state===rt?this._stateAfterStyle4(t):this._state===it?this._stateBeforeEntity(t):this._state===st?this._stateBeforeNumericEntity(t):this._state===ot?this._stateInNamedEntity(t):this._state===at?this._stateInNumericEntity(t):this._state===lt?this._stateInHexEntity(t):this._cbs.onerror(Error("unknown _state"),this._state),this._index++}this._cleanup()},gt.prototype.pause=function(){this._running=!1},gt.prototype.resume=function(){this._running=!0,this._index<this._buffer.length&&this._parse(),this._ended&&this._finish()},gt.prototype.end=function(t){this._ended&&this._cbs.onerror(Error(".end() after done!")),t&&this.write(t),this._ended=!0,this._running&&this._finish()},gt.prototype._finish=function(){this._sectionStart<this._index&&this._handleTrailingData(),this._cbs.onend()},gt.prototype._handleTrailingData=function(){var t=this._buffer.substr(this._sectionStart);this._state===q||this._state===R||this._state===P?this._cbs.oncdata(t):this._state===E||this._state===T||this._state===S?this._cbs.oncomment(t):this._state!==ot||this._xmlMode?this._state!==at||this._xmlMode?this._state!==lt||this._xmlMode?this._state!==c&&this._state!==m&&this._state!==y&&this._state!==v&&this._state!==g&&this._state!==_&&this._state!==b&&this._state!==w&&this._state!==f&&this._cbs.ontext(t):(this._decodeNumericEntity(3,16),this._sectionStart<this._index&&(this._state=this._baseState,this._handleTrailingData())):(this._decodeNumericEntity(2,10),this._sectionStart<this._index&&(this._state=this._baseState,this._handleTrailingData())):(this._parseLegacyEntity(),this._sectionStart<this._index&&(this._state=this._baseState,this._handleTrailingData()))},gt.prototype.reset=function(){gt.call(this,{xmlMode:this._xmlMode,decodeEntities:this._decodeEntities},this._cbs)},gt.prototype.getAbsoluteIndex=function(){return this._bufferOffset+this._index},gt.prototype._getSection=function(){return this._buffer.substring(this._sectionStart,this._index)},gt.prototype._emitToken=function(t){this._cbs[t](this._getSection()),this._sectionStart=-1},gt.prototype._emitPartial=function(t){this._baseState!==l?this._cbs.onattribdata(t):this._cbs.ontext(t)}},function(t,e){var n=t.exports={get firstChild(){var t=this.children;return t&&t[0]||null},get lastChild(){var t=this.children;return t&&t[t.length-1]||null},get nodeType(){return i[this.type]||i.element}},r={tagName:"name",childNodes:"children",parentNode:"parent",previousSibling:"prev",nextSibling:"next",nodeValue:"data"},i={element:1,text:3,cdata:4,comment:8};Object.keys(r).forEach(function(t){var e=r[t];Object.defineProperty(n,t,{get:function(){return this[e]||null},set:function(t){return this[e]=t,t}})})},function(t,e,n){t.exports=a;var r=n(71),i=n(180).Writable||n(196).Writable,s=n(49).StringDecoder,o=n(47).Buffer;function a(t,e){var n=this._parser=new r(t,e),o=this._decoder=new s;i.call(this,{decodeStrings:!1}),this.once("finish",function(){n.end(o.end())})}n(11)(a,i),i.prototype._write=function(t,e,n){t instanceof o&&(t=this._decoder.write(t)),this._parser.write(t),n()}},function(t,e,n){"use strict";(function(e,r){var i=n(26);t.exports=b;var s,o=n(181);b.ReadableState=y;n(25).EventEmitter;var a=function(t,e){return t.listeners(e).length},l=n(76),u=n(27).Buffer,c=e.Uint8Array||function(){};var h=n(22);h.inherits=n(11);var d=n(185),f=void 0;f=d&&d.debuglog?d.debuglog("stream"):function(){};var p,m=n(186),g=n(77);h.inherits(b,l);var v=["error","close","destroy","pause","resume"];function y(t,e){s=s||n(14),t=t||{};var r=e instanceof s;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,o=t.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(o||0===o)?o:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(p||(p=n(49).StringDecoder),this.decoder=new p(t.encoding),this.encoding=t.encoding)}function b(t){if(s=s||n(14),!(this instanceof b))return new b(t);this._readableState=new y(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),l.call(this)}function _(t,e,n,r,i){var s,o=t._readableState;null===e?(o.reading=!1,function(t,e){if(e.ended)return;if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,A(t)}(t,o)):(i||(s=function(t,e){var n;(function(t){return u.isBuffer(t)||t instanceof c})(e)||"string"==typeof e||void 0===e||t.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));return n}(o,e)),s?t.emit("error",s):o.objectMode||e&&e.length>0?("string"==typeof e||o.objectMode||Object.getPrototypeOf(e)===u.prototype||(e=function(t){return u.from(t)}(e)),r?o.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):w(t,o,e,!0):o.ended?t.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!n?(e=o.decoder.write(e),o.objectMode||0!==e.length?w(t,o,e,!1):E(t,o)):w(t,o,e,!1))):r||(o.reading=!1));return function(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}(o)}function w(t,e,n,r){e.flowing&&0===e.length&&!e.sync?(t.emit("data",n),t.read(0)):(e.length+=e.objectMode?1:n.length,r?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&A(t)),E(t,e)}Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),b.prototype.destroy=g.destroy,b.prototype._undestroy=g.undestroy,b.prototype._destroy=function(t,e){this.push(null),e(t)},b.prototype.push=function(t,e){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof t&&((e=e||r.defaultEncoding)!==r.encoding&&(t=u.from(t,e),e=""),n=!0),_(this,t,e,!1,n)},b.prototype.unshift=function(t){return _(this,t,null,!0,!1)},b.prototype.isPaused=function(){return!1===this._readableState.flowing},b.prototype.setEncoding=function(t){return p||(p=n(49).StringDecoder),this._readableState.decoder=new p(t),this._readableState.encoding=t,this};var x=8388608;function C(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=x?t=x:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function A(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(f("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?i.nextTick(D,t):D(t))}function D(t){f("emit readable"),t.emit("readable"),k(t)}function E(t,e){e.readingMore||(e.readingMore=!0,i.nextTick(T,t,e))}function T(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(f("maybeReadMore read 0"),t.read(0),n!==e.length);)n=e.length;e.readingMore=!1}function S(t){f("readable nexttick read 0"),t.read(0)}function I(t,e){e.reading||(f("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),k(t),e.flowing&&!e.reading&&t.read(0)}function k(t){var e=t._readableState;for(f("flow",e.flowing);e.flowing&&null!==t.read(););}function L(t,e){return 0===e.length?null:(e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):n=function(t,e,n){var r;t<e.head.data.length?(r=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):r=t===e.head.data.length?e.shift():n?function(t,e){var n=e.head,r=1,i=n.data;t-=i.length;for(;n=n.next;){var s=n.data,o=t>s.length?s.length:t;if(o===s.length?i+=s:i+=s.slice(0,t),0===(t-=o)){o===s.length?(++r,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=s.slice(o));break}++r}return e.length-=r,i}(t,e):function(t,e){var n=u.allocUnsafe(t),r=e.head,i=1;r.data.copy(n),t-=r.data.length;for(;r=r.next;){var s=r.data,o=t>s.length?s.length:t;if(s.copy(n,n.length-t,0,o),0===(t-=o)){o===s.length?(++i,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=s.slice(o));break}++i}return e.length-=i,n}(t,e);return r}(t,e.buffer,e.decoder),n);var n}function M(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,i.nextTick(N,e,t))}function N(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function O(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1}b.prototype.read=function(t){f("read",t),t=parseInt(t,10);var e=this._readableState,n=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return f("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?M(this):A(this),null;if(0===(t=C(t,e))&&e.ended)return 0===e.length&&M(this),null;var r,i=e.needReadable;return f("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&f("length less than watermark",i=!0),e.ended||e.reading?f("reading or ended",i=!1):i&&(f("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=C(n,e))),null===(r=t>0?L(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&M(this)),null!==r&&this.emit("data",r),r},b.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(t,e){var n=this,s=this._readableState;switch(s.pipesCount){case 0:s.pipes=t;break;case 1:s.pipes=[s.pipes,t];break;default:s.pipes.push(t)}s.pipesCount+=1,f("pipe count=%d opts=%j",s.pipesCount,e);var l=(!e||!1!==e.end)&&t!==r.stdout&&t!==r.stderr?c:b;function u(e,r){f("onunpipe"),e===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,f("cleanup"),t.removeListener("close",v),t.removeListener("finish",y),t.removeListener("drain",h),t.removeListener("error",g),t.removeListener("unpipe",u),n.removeListener("end",c),n.removeListener("end",b),n.removeListener("data",m),d=!0,!s.awaitDrain||t._writableState&&!t._writableState.needDrain||h())}function c(){f("onend"),t.end()}s.endEmitted?i.nextTick(l):n.once("end",l),t.on("unpipe",u);var h=function(t){return function(){var e=t._readableState;f("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&a(t,"data")&&(e.flowing=!0,k(t))}}(n);t.on("drain",h);var d=!1;var p=!1;function m(e){f("ondata"),p=!1,!1!==t.write(e)||p||((1===s.pipesCount&&s.pipes===t||s.pipesCount>1&&-1!==O(s.pipes,t))&&!d&&(f("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,p=!0),n.pause())}function g(e){f("onerror",e),b(),t.removeListener("error",g),0===a(t,"error")&&t.emit("error",e)}function v(){t.removeListener("finish",y),b()}function y(){f("onfinish"),t.removeListener("close",v),b()}function b(){f("unpipe"),n.unpipe(t)}return n.on("data",m),function(t,e,n){if("function"==typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?o(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}(t,"error",g),t.once("close",v),t.once("finish",y),t.emit("pipe",n),s.flowing||(f("pipe resume"),n.resume()),t},b.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n),this);if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s<i;s++)r[s].emit("unpipe",this,n);return this}var o=O(e.pipes,t);return-1===o?this:(e.pipes.splice(o,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,n),this)},b.prototype.on=function(t,e){var n=l.prototype.on.call(this,t,e);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&A(this):i.nextTick(S,this))}return n},b.prototype.addListener=b.prototype.on,b.prototype.resume=function(){var t=this._readableState;return t.flowing||(f("resume"),t.flowing=!0,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,i.nextTick(I,t,e))}(this,t)),this},b.prototype.pause=function(){return f("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(f("pause"),this._readableState.flowing=!1,this.emit("pause")),this},b.prototype.wrap=function(t){var e=this,n=this._readableState,r=!1;for(var i in t.on("end",function(){if(f("wrapped end"),n.decoder&&!n.ended){var t=n.decoder.end();t&&t.length&&e.push(t)}e.push(null)}),t.on("data",function(i){(f("wrapped data"),n.decoder&&(i=n.decoder.write(i)),!n.objectMode||null!==i&&void 0!==i)&&((n.objectMode||i&&i.length)&&(e.push(i)||(r=!0,t.pause())))}),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var s=0;s<v.length;s++)t.on(v[s],this.emit.bind(this,v[s]));return this._read=function(e){f("wrapped _read",e),r&&(r=!1,t.resume())},this},Object.defineProperty(b.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),b._fromList=L}).call(this,n(10),n(15))},function(t,e,n){t.exports=n(25).EventEmitter},function(t,e,n){"use strict";var r=n(26);function i(t,e){t.emit("error",e)}t.exports={destroy:function(t,e){var n=this,s=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return s||o?(e?e(t):!t||this._writableState&&this._writableState.errorEmitted||r.nextTick(i,this,t),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!e&&t?(r.nextTick(i,n,t),n._writableState&&(n._writableState.errorEmitted=!0)):e&&e(t)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(t,e,n){"use strict";t.exports=s;var r=n(14),i=n(22);function s(t){if(!(this instanceof s))return new s(t);r.call(this,t),this._transformState={afterTransform:function(t,e){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=e&&this.push(e),r(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",o)}function o(){var t=this;"function"==typeof this._flush?this._flush(function(e,n){a(t,e,n)}):a(this,null,null)}function a(t,e,n){if(e)return t.emit("error",e);if(null!=n&&t.push(n),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}i.inherits=n(11),i.inherits(s,r),s.prototype.push=function(t,e){return this._transformState.needTransform=!1,r.prototype.push.call(this,t,e)},s.prototype._transform=function(t,e,n){throw new Error("_transform() is not implemented")},s.prototype._write=function(t,e,n){var r=this._transformState;if(r.writecb=n,r.writechunk=t,r.writeencoding=e,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},s.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},s.prototype._destroy=function(t,e){var n=this;r.prototype._destroy.call(this,t,function(t){e(t),n.emit("close")})}},function(t){t.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}},function(t){t.exports={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ﬃ",fflig:"ﬀ",ffllig:"ﬄ",Ffr:"𝔉",ffr:"𝔣",filig:"ﬁ",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"ﬂ",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"Ĳ",ijlig:"ĳ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ŉ",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"}},function(t,e,n){var r=n(214),i=n(70);e.wordwrap=function(t,e){var n=e.wordwrap,r=e.preserveNewlines,s=e.lineCharCount,o=t.startsWith(" ")?" ":"";s+=o.length;var a=[];return(r?t.replace(/\n/g,"\n ").split(/\ +/):t.trim().split(/\s+/)).forEach(function(t){(n||0===n)&&s>0&&(s+t.length>n||s+t.indexOf("\n")>n)&&(o+=a.join(" ")+"\n",a.length=s=0),(n||0===n)&&e.longWordSplit&&t.length>n&&(t=function(t,e){for(var n=e.longWordSplit.wrapCharacters||[],r=e.longWordSplit.forceWrapOnLimit||!1,i=e.wordwrap,s=[],o=0;t.length>i;){var a=t.substr(0,i),l=t.substr(i),u=a.lastIndexOf(n[o]);if(u>-1)t=a.substr(u+1)+l,s.push(a.substr(0,u+1));else{if(++o>=n.length){if(r){if(s.push(a),(t=l).length>i)continue}else t=a+l,e.preserveNewlines||(t+="\n");break}t=a+l}}return s.push(t),s.join("\n")}(t,e)),a.push(t),-1!==t.indexOf("\n")?(o+=a.join(" "),a.length=0,(s=t.length-(t.lastIndexOf("\n")+1))&&(o+=" ",s++)):s+=t.length+1}),o+=a.join(" "),t.endsWith(" ")?o.endsWith(" ")||(o+=" "):o=i(o),o},e.arrayZip=function(t){return r.apply(null,t)},e.splitCssSearchTag=function(t){function e(t,e){for(var n,r=[];null!==(n=t.exec(e));)r.push(n[1]);return r}var n={};return n.element=/(^\w*)/g.exec(t)[1],n.classes=e(/\.([\d\w-]*)/g,t),n.ids=e(/#([\d\w-]*)/g,t),n},e.replaceAll=function(t,e,n){var r=new RegExp(e,"g");return t.replace(r,n)}},function(t,e){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},function(t,e,n){var r=n(244),i=n(44),s=n(245);t.exports=function(t){return i(t)?s(t):r(t)}},function(e,n,r){var i;void 0===(i=function(){"use strict";var e=[":-(",":-/",":-\\",":-|",":'-(",":'-/",":'-\\",":'-|"];function n(){return e[Math.floor(Math.random()*e.length)]}return{getRandomFolderErrorMessage:function(e){var r=e.get("name"),i=[t("mail","Could not load {tag}{name}{endtag}",{name:r}),t("mail","Could not load {tag}{name}{endtag}",{name:r}),t("mail","There was a problem loading {tag}{name}{endtag}",{name:r})],s=_.map(i,function(t){return t.replace("{tag}","<strong>").replace("{endtag}","</strong>")});return s[Math.floor(Math.random()*s.length)]+" "+n()},getRandomMessageErrorMessage:function(){var e=[t("mail","Could not load your message"),t("mail","Could not load the desired message"),t("mail","Could not load the message")];return e[Math.floor(Math.random()*e.length)]+" "+n()}}}.call(n,r,n,e))||(e.exports=i)},function(t,e,n){var r;void 0===(r=function(){"use strict";return function(t){return humanFileSize(t)}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r,i,s;
/*!
 * jQuery UI Draggable 1.12.1
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */i=[n(2),n(87),n(260),n(261),n(30),n(262),n(263),n(9),n(16)],void 0===(s="function"==typeof(r=function(t){return t.widget("ui.draggable",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(e){var n=this.options;return!(this.helper||n.disabled||t(e.target).closest(".ui-resizable-handle").length>0||(this.handle=this._getHandle(e),!this.handle||(this._blurActiveElement(e),this._blockFrames(!0===n.iframeFix?"iframe":n.iframeFix),0)))},_blockFrames:function(e){this.iframeBlocks=this.document.find(e).map(function(){var e=t(this);return t("<div>").css("position","absolute").appendTo(e.parent()).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).offset(e.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(e){var n=t.ui.safeActiveElement(this.document[0]);t(e.target).closest(n).length||t.ui.safeBlur(n)},_mouseStart:function(e){var n=this.options;return this.helper=this._createHelper(e),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter(function(){return"fixed"===t(this).css("position")}).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(e),this.originalPosition=this.position=this._generatePosition(e,!1),this.originalPageX=e.pageX,this.originalPageY=e.pageY,n.cursorAt&&this._adjustOffsetFromHelper(n.cursorAt),this._setContainment(),!1===this._trigger("start",e)?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!n.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e),!0)},_refreshOffsets:function(t){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:t.pageX-this.offset.left,top:t.pageY-this.offset.top}},_mouseDrag:function(e,n){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e,!0),this.positionAbs=this._convertPositionTo("absolute"),!n){var r=this._uiHash();if(!1===this._trigger("drag",e,r))return this._mouseUp(new t.Event("mouseup",e)),!1;this.position=r.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var n=this,r=!1;return t.ui.ddmanager&&!this.options.dropBehaviour&&(r=t.ui.ddmanager.drop(this,e)),this.dropped&&(r=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!r||"valid"===this.options.revert&&r||!0===this.options.revert||t.isFunction(this.options.revert)&&this.options.revert.call(this.element,r)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==n._trigger("stop",e)&&n._clear()}):!1!==this._trigger("stop",e)&&this._clear(),!1},_mouseUp:function(e){return this._unblockFrames(),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),this.handleElement.is(e.target)&&this.element.trigger("focus"),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new t.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(e){return!this.options.handle||!!t(e.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(e){var n=this.options,r=t.isFunction(n.helper),i=r?t(n.helper.apply(this.element[0],[e])):"clone"===n.helper?this.element.clone().removeAttr("id"):this.element;return i.parents("body").length||i.appendTo("parent"===n.appendTo?this.element[0].parentNode:n.appendTo),r&&i[0]===this.element[0]&&this._setPositionRelative(),i[0]===this.element[0]||/(fixed|absolute)/.test(i.css("position"))||i.css("position","absolute"),i},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var e=this.offsetParent.offset(),n=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==n&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var t=this.element.position(),e=this._isRootNode(this.scrollParent[0]);return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,n,r,i=this.options,s=this.document[0];this.relativeContainer=null,i.containment?"window"!==i.containment?"document"!==i.containment?i.containment.constructor!==Array?("parent"===i.containment&&(i.containment=this.helper[0].parentNode),(r=(n=t(i.containment))[0])&&(e=/(scroll|auto)/.test(n.css("overflow")),this.containment=[(parseInt(n.css("borderLeftWidth"),10)||0)+(parseInt(n.css("paddingLeft"),10)||0),(parseInt(n.css("borderTopWidth"),10)||0)+(parseInt(n.css("paddingTop"),10)||0),(e?Math.max(r.scrollWidth,r.offsetWidth):r.offsetWidth)-(parseInt(n.css("borderRightWidth"),10)||0)-(parseInt(n.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(r.scrollHeight,r.offsetHeight):r.offsetHeight)-(parseInt(n.css("borderBottomWidth"),10)||0)-(parseInt(n.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=n)):this.containment=i.containment:this.containment=[0,0,t(s).width()-this.helperProportions.width-this.margins.left,(t(s).height()||s.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=[t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,t(window).scrollLeft()+t(window).width()-this.helperProportions.width-this.margins.left,t(window).scrollTop()+(t(window).height()||s.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=null},_convertPositionTo:function(t,e){e||(e=this.position);var n="absolute"===t?1:-1,r=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.offset.scroll.top:r?0:this.offset.scroll.top)*n,left:e.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.offset.scroll.left:r?0:this.offset.scroll.left)*n}},_generatePosition:function(t,e){var n,r,i,s,o=this.options,a=this._isRootNode(this.scrollParent[0]),l=t.pageX,u=t.pageY;return a&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),e&&(this.containment&&(this.relativeContainer?(r=this.relativeContainer.offset(),n=[this.containment[0]+r.left,this.containment[1]+r.top,this.containment[2]+r.left,this.containment[3]+r.top]):n=this.containment,t.pageX-this.offset.click.left<n[0]&&(l=n[0]+this.offset.click.left),t.pageY-this.offset.click.top<n[1]&&(u=n[1]+this.offset.click.top),t.pageX-this.offset.click.left>n[2]&&(l=n[2]+this.offset.click.left),t.pageY-this.offset.click.top>n[3]&&(u=n[3]+this.offset.click.top)),o.grid&&(i=o.grid[1]?this.originalPageY+Math.round((u-this.originalPageY)/o.grid[1])*o.grid[1]:this.originalPageY,u=n?i-this.offset.click.top>=n[1]||i-this.offset.click.top>n[3]?i:i-this.offset.click.top>=n[1]?i-o.grid[1]:i+o.grid[1]:i,s=o.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/o.grid[0])*o.grid[0]:this.originalPageX,l=n?s-this.offset.click.left>=n[0]||s-this.offset.click.left>n[2]?s:s-this.offset.click.left>=n[0]?s-o.grid[0]:s+o.grid[0]:s),"y"===o.axis&&(l=this.originalPageX),"x"===o.axis&&(u=this.originalPageY)),{top:u-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:a?0:this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:a?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(e,n,r){return r=r||this._uiHash(),t.ui.plugin.call(this,e,[n,r,this],!0),/^(drag|start|stop)/.test(e)&&(this.positionAbs=this._convertPositionTo("absolute"),r.offset=this.positionAbs),t.Widget.prototype._trigger.call(this,e,n,r)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,n,r){var i=t.extend({},n,{item:r.element});r.sortables=[],t(r.options.connectToSortable).each(function(){var n=t(this).sortable("instance");n&&!n.options.disabled&&(r.sortables.push(n),n.refreshPositions(),n._trigger("activate",e,i))})},stop:function(e,n,r){var i=t.extend({},n,{item:r.element});r.cancelHelperRemoval=!1,t.each(r.sortables,function(){this.isOver?(this.isOver=0,r.cancelHelperRemoval=!0,this.cancelHelperRemoval=!1,this._storedCSS={position:this.placeholder.css("position"),top:this.placeholder.css("top"),left:this.placeholder.css("left")},this._mouseStop(e),this.options.helper=this.options._helper):(this.cancelHelperRemoval=!0,this._trigger("deactivate",e,i))})},drag:function(e,n,r){t.each(r.sortables,function(){var i=!1,s=this;s.positionAbs=r.positionAbs,s.helperProportions=r.helperProportions,s.offset.click=r.offset.click,s._intersectsWith(s.containerCache)&&(i=!0,t.each(r.sortables,function(){return this.positionAbs=r.positionAbs,this.helperProportions=r.helperProportions,this.offset.click=r.offset.click,this!==s&&this._intersectsWith(this.containerCache)&&t.contains(s.element[0],this.element[0])&&(i=!1),i})),i?(s.isOver||(s.isOver=1,r._parent=n.helper.parent(),s.currentItem=n.helper.appendTo(s.element).data("ui-sortable-item",!0),s.options._helper=s.options.helper,s.options.helper=function(){return n.helper[0]},e.target=s.currentItem[0],s._mouseCapture(e,!0),s._mouseStart(e,!0,!0),s.offset.click.top=r.offset.click.top,s.offset.click.left=r.offset.click.left,s.offset.parent.left-=r.offset.parent.left-s.offset.parent.left,s.offset.parent.top-=r.offset.parent.top-s.offset.parent.top,r._trigger("toSortable",e),r.dropped=s.element,t.each(r.sortables,function(){this.refreshPositions()}),r.currentItem=r.element,s.fromOutside=r),s.currentItem&&(s._mouseDrag(e),n.position=s.position)):s.isOver&&(s.isOver=0,s.cancelHelperRemoval=!0,s.options._revert=s.options.revert,s.options.revert=!1,s._trigger("out",e,s._uiHash(s)),s._mouseStop(e,!0),s.options.revert=s.options._revert,s.options.helper=s.options._helper,s.placeholder&&s.placeholder.remove(),n.helper.appendTo(r._parent),r._refreshOffsets(e),n.position=r._generatePosition(e,!0),r._trigger("fromSortable",e),r.dropped=!1,t.each(r.sortables,function(){this.refreshPositions()}))})}}),t.ui.plugin.add("draggable","cursor",{start:function(e,n,r){var i=t("body"),s=r.options;i.css("cursor")&&(s._cursor=i.css("cursor")),i.css("cursor",s.cursor)},stop:function(e,n,r){var i=r.options;i._cursor&&t("body").css("cursor",i._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,n,r){var i=t(n.helper),s=r.options;i.css("opacity")&&(s._opacity=i.css("opacity")),i.css("opacity",s.opacity)},stop:function(e,n,r){var i=r.options;i._opacity&&t(n.helper).css("opacity",i._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(t,e,n){n.scrollParentNotHidden||(n.scrollParentNotHidden=n.helper.scrollParent(!1)),n.scrollParentNotHidden[0]!==n.document[0]&&"HTML"!==n.scrollParentNotHidden[0].tagName&&(n.overflowOffset=n.scrollParentNotHidden.offset())},drag:function(e,n,r){var i=r.options,s=!1,o=r.scrollParentNotHidden[0],a=r.document[0];o!==a&&"HTML"!==o.tagName?(i.axis&&"x"===i.axis||(r.overflowOffset.top+o.offsetHeight-e.pageY<i.scrollSensitivity?o.scrollTop=s=o.scrollTop+i.scrollSpeed:e.pageY-r.overflowOffset.top<i.scrollSensitivity&&(o.scrollTop=s=o.scrollTop-i.scrollSpeed)),i.axis&&"y"===i.axis||(r.overflowOffset.left+o.offsetWidth-e.pageX<i.scrollSensitivity?o.scrollLeft=s=o.scrollLeft+i.scrollSpeed:e.pageX-r.overflowOffset.left<i.scrollSensitivity&&(o.scrollLeft=s=o.scrollLeft-i.scrollSpeed))):(i.axis&&"x"===i.axis||(e.pageY-t(a).scrollTop()<i.scrollSensitivity?s=t(a).scrollTop(t(a).scrollTop()-i.scrollSpeed):t(window).height()-(e.pageY-t(a).scrollTop())<i.scrollSensitivity&&(s=t(a).scrollTop(t(a).scrollTop()+i.scrollSpeed))),i.axis&&"y"===i.axis||(e.pageX-t(a).scrollLeft()<i.scrollSensitivity?s=t(a).scrollLeft(t(a).scrollLeft()-i.scrollSpeed):t(window).width()-(e.pageX-t(a).scrollLeft())<i.scrollSensitivity&&(s=t(a).scrollLeft(t(a).scrollLeft()+i.scrollSpeed)))),!1!==s&&t.ui.ddmanager&&!i.dropBehaviour&&t.ui.ddmanager.prepareOffsets(r,e)}}),t.ui.plugin.add("draggable","snap",{start:function(e,n,r){var i=r.options;r.snapElements=[],t(i.snap.constructor!==String?i.snap.items||":data(ui-draggable)":i.snap).each(function(){var e=t(this),n=e.offset();this!==r.element[0]&&r.snapElements.push({item:this,width:e.outerWidth(),height:e.outerHeight(),top:n.top,left:n.left})})},drag:function(e,n,r){var i,s,o,a,l,u,c,h,d,f,p=r.options,m=p.snapTolerance,g=n.offset.left,v=g+r.helperProportions.width,y=n.offset.top,b=y+r.helperProportions.height;for(d=r.snapElements.length-1;d>=0;d--)u=(l=r.snapElements[d].left-r.margins.left)+r.snapElements[d].width,h=(c=r.snapElements[d].top-r.margins.top)+r.snapElements[d].height,v<l-m||g>u+m||b<c-m||y>h+m||!t.contains(r.snapElements[d].item.ownerDocument,r.snapElements[d].item)?(r.snapElements[d].snapping&&r.options.snap.release&&r.options.snap.release.call(r.element,e,t.extend(r._uiHash(),{snapItem:r.snapElements[d].item})),r.snapElements[d].snapping=!1):("inner"!==p.snapMode&&(i=Math.abs(c-b)<=m,s=Math.abs(h-y)<=m,o=Math.abs(l-v)<=m,a=Math.abs(u-g)<=m,i&&(n.position.top=r._convertPositionTo("relative",{top:c-r.helperProportions.height,left:0}).top),s&&(n.position.top=r._convertPositionTo("relative",{top:h,left:0}).top),o&&(n.position.left=r._convertPositionTo("relative",{top:0,left:l-r.helperProportions.width}).left),a&&(n.position.left=r._convertPositionTo("relative",{top:0,left:u}).left)),f=i||s||o||a,"outer"!==p.snapMode&&(i=Math.abs(c-y)<=m,s=Math.abs(h-b)<=m,o=Math.abs(l-g)<=m,a=Math.abs(u-v)<=m,i&&(n.position.top=r._convertPositionTo("relative",{top:c,left:0}).top),s&&(n.position.top=r._convertPositionTo("relative",{top:h-r.helperProportions.height,left:0}).top),o&&(n.position.left=r._convertPositionTo("relative",{top:0,left:l}).left),a&&(n.position.left=r._convertPositionTo("relative",{top:0,left:u-r.helperProportions.width}).left)),!r.snapElements[d].snapping&&(i||s||o||a||f)&&r.options.snap.snap&&r.options.snap.snap.call(r.element,e,t.extend(r._uiHash(),{snapItem:r.snapElements[d].item})),r.snapElements[d].snapping=i||s||o||a||f)}}),t.ui.plugin.add("draggable","stack",{start:function(e,n,r){var i,s=r.options,o=t.makeArray(t(s.stack)).sort(function(e,n){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(n).css("zIndex"),10)||0)});o.length&&(i=parseInt(t(o[0]).css("zIndex"),10)||0,t(o).each(function(e){t(this).css("zIndex",i+e)}),this.css("zIndex",i+o.length))}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,n,r){var i=t(n.helper),s=r.options;i.css("zIndex")&&(s._zIndex=i.css("zIndex")),i.css("zIndex",s.zIndex)},stop:function(e,n,r){var i=r.options;i._zIndex&&t(n.helper).css("zIndex",i._zIndex)}}),t.ui.draggable})?r.apply(e,i):r)||(t.exports=s)},function(t,e,n){var r,i,s;
/*!
 * jQuery UI Mouse 1.12.1
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */i=[n(2),n(259),n(9),n(16)],void 0===(s="function"==typeof(r=function(t){var e=!1;return t(document).on("mouseup",function(){e=!1}),t.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.on("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).on("click."+this.widgetName,function(n){if(!0===t.data(n.target,e.widgetName+".preventClickEvent"))return t.removeData(n.target,e.widgetName+".preventClickEvent"),n.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(n){if(!e){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(n),this._mouseDownEvent=n;var r=this,i=1===n.which,s=!("string"!=typeof this.options.cancel||!n.target.nodeName)&&t(n.target).closest(this.options.cancel).length;return!(i&&!s&&this._mouseCapture(n)&&(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){r.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(n)&&this._mouseDelayMet(n)&&(this._mouseStarted=!1!==this._mouseStart(n),!this._mouseStarted)?(n.preventDefault(),0):(!0===t.data(n.target,this.widgetName+".preventClickEvent")&&t.removeData(n.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return r._mouseMove(t)},this._mouseUpDelegate=function(t){return r._mouseUp(t)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),n.preventDefault(),e=!0,0)))}},_mouseMove:function(e){if(this._mouseMoved){if(t.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button)return this._mouseUp(e);if(!e.which)if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(n){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,n.target===this._mouseDownEvent.target&&t.data(n.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(n)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,e=!1,n.preventDefault()},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})})?r.apply(e,i):r)||(t.exports=s)},function(t,e,n){var r;void 0===(r=function(t){"use strict";var e=n(6);return function(t){var n=md5(t),r=null;if("function"==typeof n.toHsl){var i=n.toHsl();return r=40*Math.round(i[0]/40),new e.SafeString("hsl("+r+", "+i[1]+"%, "+i[2]+"%)")}var s=parseInt("ffffffffffffffffffffffffffffffff",16);return r=parseInt(n,16)/s*256,new e.SafeString("hsl("+r+", 90%, 65%)")}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r;void 0===(r=function(t){"use strict";var e=n(5),r=n(279),i=Object.seal(["inbox","flagged","drafts","sent"]);return e.CollectionView.extend({childView:r,className:"folders",collapsed:!0,initialize:function(t){this.collapsed=t.collapsed},filter:function(t){if(!this.collapsed)return!0;var e=t.get("specialRole");return-1!==i.indexOf(e)}})}.call(e,n,e,t))||(t.exports=r)},function(e,n,r){var i;void 0===(i=function(e){"use strict";var n=r(13),i=r(54),s=r(3);return{loadAccounts:function(){return s.ui.trigger("sidebar:loading"),s.account.request("entities").then(function(t){return 0===t.length?(s.navigation.trigger("setup"),s.ui.trigger("sidebar:accounts"),Promise.resolve(t)):Promise.all(t.map(function(t){return i.loadAccountFolders(t)})).then(function(){return t})}).then(function(t){return s.ui.trigger("sidebar:accounts"),t},function(e){console.error(e),n.report(e),s.ui.trigger("error:show",t("mail","Error while loading the accounts."))})}}}.call(n,r,n,e))||(e.exports=i)},function(e,n,r){var i;void 0===(i=function(e){"use strict";var n=r(4),i=r(5),s=r(289);return i.View.extend({id:"account-form",template:s,templateContext:function(){return{config:this._config}},firstToggle:!0,settingsPage:!1,_config:"",ui:{form:"form",inputs:"input, select",toggleManualMode:".toggle-manual-mode",accountName:'input[name="account-name"]',mailAddress:'input[name="mail-address"]',mailPassword:'input[name="mail-password"]',manualInputs:".manual-inputs",imapHost:'input[name="imap-host"]',imapPort:'input[name="imap-port"]',imapSslMode:"#setup-imap-ssl-mode",imapUser:'input[name="imap-user"]',imapPassword:'input[name="imap-password"]',smtpHost:'input[name="smtp-host"]',smtpSslMode:"#setup-smtp-ssl-mode",smtpPort:'input[name="smtp-port"]',smtpUser:'input[name="smtp-user"]',smtpPassword:'input[name="smtp-password"]',submitButton:"input[type=submit]",emptyContent:"#emptycontent"},events:{"click @ui.submitButton":"onSubmit","submit @ui.form":"onSubmit","click @ui.toggleManualMode":"toggleManualMode","change @ui.imapSslMode":"onImapSslModeChange","change @ui.smtpSslMode":"onSmtpSslModeChange"},initialize:function(t){this._config=n.defaults(t.config||{},{accountName:"",emailAddress:"",autoDetect:!0,imapPort:993,imapSslMode:"ssl",smtpPort:587,smtpSslMode:"tls"}),this.settingsPage=n.defaults(t.settingsPage,{settingsPage:!1})},onRender:function(){this.settingsPage&&(this.getUI("emptyContent").hide(),this.getUI("submitButton").val(t("mail","Save"))),this._config.autoDetect?(this.getUI("mailPassword").show(),this.getUI("manualInputs").hide()):this.getUI("mailPassword").hide(),this.getUI("imapSslMode").find('[value="'+this._config.imapSslMode+'"]').attr({selected:"selected"}),this.getUI("smtpSslMode").find('[value="'+this._config.smtpSslMode+'"]').attr({selected:"selected"})},toggleManualMode:function(t){if(t.stopPropagation(),this._config.autoDetect=!this._config.autoDetect,this.getUI("manualInputs").slideToggle(),this.getUI("imapHost").focus(),this._config.autoDetect)this.getUI("mailPassword").slideToggle(),this.getUI("mailAddress").parent().removeClass("groupbottom").addClass("groupmiddle");else{if(this.firstToggle){var e=this.getUI("mailAddress").val(),n=this.getUI("mailPassword").val();this.getUI("imapUser").val(e),this.getUI("imapPassword").val(n),this.getUI("smtpUser").val(e),this.getUI("smtpPassword").val(n),this.firstToggle=!1}var r=this;this.getUI("mailPassword").slideToggle(function(){r.getUI("mailAddress").parent().removeClass("groupmiddle").addClass("groupbottom"),r.getUI("imapHost").focus()})}},onSubmit:function(t){t.preventDefault(),t.stopPropagation();var e=this.getUI("mailAddress").val(),n=this.getUI("accountName").val(),r=this.getUI("mailPassword").val(),i={accountName:n,emailAddress:e,password:r,autoDetect:!0};this._config.autoDetect||(i={accountName:n,emailAddress:e,password:r,imapHost:this.getUI("imapHost").val(),imapPort:this.getUI("imapPort").val(),imapSslMode:this.getUI("imapSslMode").val(),imapUser:this.getUI("imapUser").val(),imapPassword:this.getUI("imapPassword").val(),smtpHost:this.getUI("smtpHost").val(),smtpPort:this.getUI("smtpPort").val(),smtpSslMode:this.getUI("smtpSslMode").val(),smtpUser:this.getUI("smtpUser").val(),smtpPassword:this.getUI("smtpPassword").val(),autoDetect:!1}),this.triggerMethod("form:submit",i)},onImapSslModeChange:function(){switch(this.getUI("imapSslMode").val()){case"none":case"tls":this.getUI("imapPort").val(143);break;case"ssl":this.getUI("imapPort").val(993)}},onSmtpSslModeChange:function(){switch(this.getUI("smtpSslMode").val()){case"none":case"tls":this.getUI("smtpPort").val(587);break;case"ssl":this.getUI("smtpPort").val(465)}}})}.call(n,r,n,e))||(e.exports=i)},function(t,e,n){var r;void 0===(r=function(t){var e=n(2),r=n(7),i=n(55);e(function(){e.ajaxSetup({headers:{requesttoken:r.requestToken}}),console.log("Starting Mail …"),i.start()})}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){(function(e,n){
/*!
 * @overview es6-promise - a tiny implementation of Promises/A+.
 * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
 * @license   Licensed under MIT license
 *            See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
 * @version   v4.2.4+314e4831
 */
!function(e,n){t.exports=n()}(0,function(){"use strict";function t(t){return"function"==typeof t}var r=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},i=0,s=void 0,o=void 0,a=function(t,e){p[i]=t,p[i+1]=e,2===(i+=2)&&(o?o(m):g())};var l="undefined"!=typeof window?window:void 0,u=l||{},c=u.MutationObserver||u.WebKitMutationObserver,h="undefined"==typeof self&&void 0!==e&&"[object process]"==={}.toString.call(e),d="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function f(){var t=setTimeout;return function(){return t(m,1)}}var p=new Array(1e3);function m(){for(var t=0;t<i;t+=2){(0,p[t])(p[t+1]),p[t]=void 0,p[t+1]=void 0}i=0}var g=void 0;function v(t,e){var n=this,r=new this.constructor(_);void 0===r[b]&&q(r);var i=n._state;if(i){var s=arguments[i-1];a(function(){return N(i,r,s,n._result)})}else L(n,r,t,e);return r}function y(t){if(t&&"object"==typeof t&&t.constructor===this)return t;var e=new this(_);return T(e,t),e}g=h?function(){return e.nextTick(m)}:c?function(){var t=0,e=new c(m),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}():d?function(){var t=new MessageChannel;return t.port1.onmessage=m,function(){return t.port2.postMessage(0)}}():void 0===l?function(){try{var t=Function("return this")().require("vertx");return void 0!==(s=t.runOnLoop||t.runOnContext)?function(){s(m)}:f()}catch(t){return f()}}():f();var b=Math.random().toString(36).substring(2);function _(){}var w=void 0,x=1,C=2,A={error:null};function D(t){try{return t.then}catch(t){return A.error=t,A}}function E(e,n,r){n.constructor===e.constructor&&r===v&&n.constructor.resolve===y?function(t,e){e._state===x?I(t,e._result):e._state===C?k(t,e._result):L(e,void 0,function(e){return T(t,e)},function(e){return k(t,e)})}(e,n):r===A?(k(e,A.error),A.error=null):void 0===r?I(e,n):t(r)?function(t,e,n){a(function(t){var r=!1,i=function(t,e,n,r){try{t.call(e,n,r)}catch(t){return t}}(n,e,function(n){r||(r=!0,e!==n?T(t,n):I(t,n))},function(e){r||(r=!0,k(t,e))},t._label);!r&&i&&(r=!0,k(t,i))},t)}(e,n,r):I(e,n)}function T(t,e){t===e?k(t,new TypeError("You cannot resolve a promise with itself")):!function(t){var e=typeof t;return null!==t&&("object"===e||"function"===e)}(e)?I(t,e):E(t,e,D(e))}function S(t){t._onerror&&t._onerror(t._result),M(t)}function I(t,e){t._state===w&&(t._result=e,t._state=x,0!==t._subscribers.length&&a(M,t))}function k(t,e){t._state===w&&(t._state=C,t._result=e,a(S,t))}function L(t,e,n,r){var i=t._subscribers,s=i.length;t._onerror=null,i[s]=e,i[s+x]=n,i[s+C]=r,0===s&&t._state&&a(M,t)}function M(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var r=void 0,i=void 0,s=t._result,o=0;o<e.length;o+=3)r=e[o],i=e[o+n],r?N(n,r,i,s):i(s);t._subscribers.length=0}}function N(e,n,r,i){var s=t(r),o=void 0,a=void 0,l=void 0,u=void 0;if(s){if((o=function(t,e){try{return t(e)}catch(t){return A.error=t,A}}(r,i))===A?(u=!0,a=o.error,o.error=null):l=!0,n===o)return void k(n,new TypeError("A promises callback cannot return that same promise."))}else o=i,l=!0;n._state!==w||(s&&l?T(n,o):u?k(n,a):e===x?I(n,o):e===C&&k(n,o))}var O=0;function q(t){t[b]=O++,t._state=void 0,t._result=void 0,t._subscribers=[]}var R=function(){function t(t,e){this._instanceConstructor=t,this.promise=new t(_),this.promise[b]||q(this.promise),r(e)?(this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?I(this.promise,this._result):(this.length=this.length||0,this._enumerate(e),0===this._remaining&&I(this.promise,this._result))):k(this.promise,new Error("Array Methods must be provided an Array"))}return t.prototype._enumerate=function(t){for(var e=0;this._state===w&&e<t.length;e++)this._eachEntry(t[e],e)},t.prototype._eachEntry=function(t,e){var n=this._instanceConstructor,r=n.resolve;if(r===y){var i=D(t);if(i===v&&t._state!==w)this._settledAt(t._state,e,t._result);else if("function"!=typeof i)this._remaining--,this._result[e]=t;else if(n===P){var s=new n(_);E(s,t,i),this._willSettleAt(s,e)}else this._willSettleAt(new n(function(e){return e(t)}),e)}else this._willSettleAt(r(t),e)},t.prototype._settledAt=function(t,e,n){var r=this.promise;r._state===w&&(this._remaining--,t===C?k(r,n):this._result[e]=n),0===this._remaining&&I(r,this._result)},t.prototype._willSettleAt=function(t,e){var n=this;L(t,void 0,function(t){return n._settledAt(x,e,t)},function(t){return n._settledAt(C,e,t)})},t}();var P=function(){function t(e){this[b]=O++,this._result=this._state=void 0,this._subscribers=[],_!==e&&("function"!=typeof e&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof t?function(t,e){try{e(function(e){T(t,e)},function(e){k(t,e)})}catch(e){k(t,e)}}(this,e):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return t.prototype.catch=function(t){return this.then(null,t)},t.prototype.finally=function(t){var e=this.constructor;return this.then(function(n){return e.resolve(t()).then(function(){return n})},function(n){return e.resolve(t()).then(function(){throw n})})},t}();return P.prototype.then=v,P.all=function(t){return new R(this,t).promise},P.race=function(t){var e=this;return r(t)?new e(function(n,r){for(var i=t.length,s=0;s<i;s++)e.resolve(t[s]).then(n,r)}):new e(function(t,e){return e(new TypeError("You must pass an array to race."))})},P.resolve=y,P.reject=function(t){var e=new this(_);return k(e,t),e},P._setScheduler=function(t){o=t},P._setAsap=function(t){a=t},P._asap=a,P.polyfill=function(){var t=void 0;if(void 0!==n)t=n;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(t){throw new Error("polyfill failed because global object is unavailable in this environment")}var e=t.Promise;if(e){var r=null;try{r=Object.prototype.toString.call(e.resolve())}catch(t){}if("[object Promise]"===r&&!e.cast)return}t.Promise=P},P.Promise=P,P})}).call(this,n(15),n(10))},function(t,e,n){var r;void 0===(r=function(t){"use strict";var e=n(95),r=n(5),i=n(2),s=n(7),o=n(3),a=n(96),l=n(277),u=n(283),c=n(52),h=n(53),d=n(285),f=n(288),p=n(291),m=n(296);n(298);var g=Object.freeze({ERROR:-2,LOADING:-1,FOLDER_CONTENT:0,SETUP:1,ACCOUNT_SETTINGS:2,KEYBOARD_SHORTCUTS:3});return r.View.extend({el:"#app",accountsView:null,activeContent:null,regions:{content:"#app-content .mail-content",setup:"#setup"},initialize:function(){this.bindUIElements(),this.listenTo(o.notification,"favicon:change",this.changeFavicon),this.listenTo(o.ui,"notification:show",this.showNotification),this.listenTo(o.ui,"error:show",this.showError),this.listenTo(o.ui,"setup:show",this.showSetup),this.listenTo(o.ui,"foldercontent:show",this.showFolderContent),this.listenTo(o.ui,"content:error",this.showContentError),this.listenTo(o.ui,"content:loading",this.showContentLoading),this.listenTo(o.ui,"title:update",this.updateTitle),this.listenTo(o.ui,"accountsettings:show",this.showAccountSettings),this.listenTo(o.ui,"search:set",this.setSearchQuery),this.listenTo(o.ui,"sidebar:loading",this.showSidebarLoading),this.listenTo(o.ui,"sidebar:accounts",this.showSidebarAccounts),this.listenTo(o.ui,"keyboardShortcuts:show",this.showKeyboardShortcuts),i(window).focus(this.onDocumentShow.bind(this)),i(e).on("click",this.onDocumentClick),i(e).keyup(this.onKeyUp),window.addEventListener("resize",this.onWindowResize),i(e).on("click",function(t){o.ui.trigger("document:click",t)}),i(e).on("click","#forward-button",function(){o.message.trigger("forward")}),i(e).on("click",".link-mailto",function(t){o.ui.trigger("composer:show",t)}),i(e).on("click","#mail-message-close",function(){i("#mail-message").addClass("hidden-mobile")}),i(e).on("click","#show-images-button",function(){i("#show-images-text").hide(),i("iframe").contents().find("img[data-original-src]").each(function(){i(this).attr("src",i(this).attr("data-original-src")),i(this).show()}),i("iframe").contents().find("[data-original-style]").each(function(){i(this).attr("style",i(this).attr("data-original-style"))})}),this.navigation=new d({accounts:n(1).accounts}),this.navigation.showChildView("settings",new u)},onDocumentClick:function(t){o.ui.trigger("document:click",t)},onDocumentShow:function(t){t.preventDefault(),this.changeFavicon(s.filePath("mail","img","favicon.png"))},onKeyUp:function(t){var e=t.which;0!==i("input:focus").length||0!==i("textarea:focus").length||t.ctrlKey||o.keyboard.trigger("keyup",t,e)},onWindowResize:function(){var t=i("#mail-content iframe");t.height(t.contents().find("html").height()+20)},render:function(){},changeFavicon:function(t){i('link[rel="icon"]').attr("href",t)},showNotification:function(t){s.Notification.showTemporary(t)},showError:function(t){s.Notification.showTemporary(t),i("#mail_message").removeClass("icon-loading")},showSetup:function(){this.activeContent=g.SETUP,this.showChildView("content",new f({config:{accountName:i("#user-displayname").text(),emailAddress:i("#user-email").text()}}))},showKeyboardShortcuts:function(){this.activeContent=g.KEYBOARD_SHORTCUTS,this.showChildView("content",new m({}))},showFolderContent:function(t,e,n){this.activeContent=g.FOLDER_CONTENT,n.account=t,n.folder=e,this.showChildView("content",new a(n))},showContentError:function(t,e){this.activeContent=g.ERROR,this.showChildView("content",new c({text:t,icon:e}))},showContentLoading:function(t){this.activeContent=g.LOADING,this.showChildView("content",new h({text:t}))},updateTitle:function(){var t="";if(n(1).currentAccount){if(-1!==n(1).currentAccount.get("accountId"))t=" - "+n(1).currentAccount.get("email");var e=n(1).currentFolder,r=e.name||e.get("name"),i=0;i="Drafts"===r?e.total||e.get("total"):e.unseen||e.get("unseen"),window.document.title=i>0?r+" ("+i+")"+t+" - Mail - "+oc_defaults.title:r+t+" - Mail - "+oc_defaults.title}},showAccountSettings:function(t){this.activeContent=g.ACCOUNT_SETTINGS,this.showChildView("content",new p({account:t}))},setSearchQuery:function(t){t=t||"",i("#searchbox").val(t)},showSidebarLoading:function(){i("#app-navigation").addClass("icon-loading"),this.navigation.getChildView("accounts")&&this.navigation.detachChildView("accounts")},showSidebarAccounts:function(){i("#app-navigation").removeClass("icon-loading"),this.navigation.showChildView("accounts",new l({collection:n(1).accounts})),o.ui.trigger("navigation:newmessage:show")}})}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){
/*!
  * domready (c) Dustin Diaz 2014 - License MIT
  */
t.exports=function(){var t,e=[],n=document,r=(n.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(n.readyState);return r||n.addEventListener("DOMContentLoaded",t=function(){for(n.removeEventListener("DOMContentLoaded",t),r=1;t=e.shift();)t()}),function(t){r?setTimeout(t,0):e.push(t)}}()},function(e,n,r){var i;void 0===(i=function(e){"use strict";var n=r(2),i=r(4),s=r(8),o=r(5),a=r(3),l=r(57),u=r(134),c=r(257),h=r(52),d=r(53),f=r(274),p=r(275),m=Object.freeze({ERROR:-2,MESSAGE:1,COMPOSER:2});return o.View.extend({template:f,className:"container",detailView:null,account:null,folder:null,searchQuery:null,composer:null,regions:{messages:"#mail-messages",message:"#mail-message"},initialize:function(t){this.account=t.account,this.folder=t.folder,this.searchQuery=t.searchQuery,this.listenTo(a.ui,"message:show",this.onShowMessage),this.listenTo(a.ui,"message:error",this.onShowError),this.listenTo(a.ui,"composer:show",this.onShowComposer),this.listenTo(a.keyboard,"keyup",this.onKeyUp),this.listenTo(a.ui,"composer:events:undelegate",function(){this.composer&&this.composer.undelegateEvents()}),this.listenTo(a.ui,"message:loading",this.onMessageLoading),this.listenTo(a.ui,"message:empty",this.onMessageEmpty)},onRender:function(){this.showChildView("messages",new c({collection:this.folder.messages,searchQuery:this.searchQuery}))},onShowMessage:function(t,e){a.ui.trigger("composer:events:undelegate");var n=new s.Model(e);this.showChildView("message",new u({account:this.account,folder:this.folder,message:t,model:n})),this.detailView=m.MESSAGE,this.markMessageAsRead(t)},markMessageAsRead:function(t){!1===n(window).width()<768&&a.message.trigger("flag",t,"unseen",!1)},onShowError:function(t){this.showChildView("message",new h({text:t})),this.detailView=m.ERROR},onShowComposer:function(e,s){if(s=!i.isUndefined(s)&&s,n(".tooltip").remove(),n("#mail_new_message").prop("disabled",!0),n("#mail-message").removeClass("hidden-mobile"),this.showChildView("message",new l({accounts:r(1).accounts,data:e})),this.detailView=m.COMPOSER,this.composer=this.getChildView("message"),e&&e.hasHtmlBody&&a.ui.trigger("error:show",t("mail","Opening HTML drafts is not supported yet.")),e.to.length?e.subject?this.composer.focusMessageBody():this.composer.focusSubject():this.composer.focusTo(),e&&!i.isUndefined(e.currentTarget)&&!i.isUndefined(n(e.currentTarget).data().email)){var o='"'+n(e.currentTarget).data().label+'" <'+n(e.currentTarget).data().email+">";this.composer.setTo(o),this.composer.focusSubject()}s||a.ui.trigger("messagesview:message:setactive",null)},onMessageLoading:function(t){this.showChildView("message",new d({text:t}))},onMessageEmpty:function(){this.showChildView("message",new p)},onKeyUp:function(t,e){var i,s;switch(e){case 46:n(".mail-message-summary.active .icon-delete.action.delete").click();break;case 39:case 74:t.preventDefault(),a.message.trigger("messagesview:message:next");break;case 37:case 75:t.preventDefault(),a.message.trigger("messagesview:message:prev");break;case 67:t.preventDefault(),a.ui.trigger("composer:show");break;case 82:t.preventDefault(),a.ui.trigger("messagesview:messages:update");break;case 83:t.preventDefault(),(i=r(1).currentMessage)&&(s=i.get("flags").get("flagged"),a.message.trigger("flag",i,"flagged",!s));break;case 85:t.preventDefault(),(i=r(1).currentMessage)&&(s=i.get("flags").get("unseen"),a.message.trigger("flag",i,"unseen",!s))}}})}.call(n,r,n,e))||(e.exports=i)},function(t,e,n){var r,i,s;
/*!
 * jQuery UI Autocomplete 1.12.1
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */i=[n(2),n(98),n(29),n(58),n(30),n(9),n(16)],void 0===(s="function"==typeof(r=function(t){return t.widget("ui.autocomplete",{version:"1.12.1",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var e,n,r,i=this.element[0].nodeName.toLowerCase(),s="textarea"===i,o="input"===i;this.isMultiLine=s||!o&&this._isContentEditable(this.element),this.valueMethod=this.element[s||o?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(i){if(this.element.prop("readOnly"))return e=!0,r=!0,void(n=!0);e=!1,r=!1,n=!1;var s=t.ui.keyCode;switch(i.keyCode){case s.PAGE_UP:e=!0,this._move("previousPage",i);break;case s.PAGE_DOWN:e=!0,this._move("nextPage",i);break;case s.UP:e=!0,this._keyEvent("previous",i);break;case s.DOWN:e=!0,this._keyEvent("next",i);break;case s.ENTER:this.menu.active&&(e=!0,i.preventDefault(),this.menu.select(i));break;case s.TAB:this.menu.active&&this.menu.select(i);break;case s.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(i),i.preventDefault());break;default:n=!0,this._searchTimeout(i)}},keypress:function(r){if(e)return e=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||r.preventDefault());if(!n){var i=t.ui.keyCode;switch(r.keyCode){case i.PAGE_UP:this._move("previousPage",r);break;case i.PAGE_DOWN:this._move("nextPage",r);break;case i.UP:this._keyEvent("previous",r);break;case i.DOWN:this._keyEvent("next",r)}}},input:function(t){if(r)return r=!1,void t.preventDefault();this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){this.cancelBlur?delete this.cancelBlur:(clearTimeout(this.searching),this.close(t),this._change(t))}}),this._initSource(),this.menu=t("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,this.element[0]!==t.ui.safeActiveElement(this.document[0])&&this.element.trigger("focus")})},menufocus:function(e,n){var r,i;if(this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent&&/^mouse/.test(e.originalEvent.type)))return this.menu.blur(),void this.document.one("mousemove",function(){t(e.target).trigger(e.originalEvent)});i=n.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",e,{item:i})&&e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(i.value),(r=n.item.attr("aria-label")||i.value)&&t.trim(r).length&&(this.liveRegion.children().hide(),t("<div>").text(r).appendTo(this.liveRegion))},menuselect:function(e,n){var r=n.item.data("ui-autocomplete-item"),i=this.previous;this.element[0]!==t.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=i,this._delay(function(){this.previous=i,this.selectedItem=r})),!1!==this._trigger("select",e,{item:r})&&this._value(r.value),this.term=this._value(),this.close(e),this.selectedItem=r}}),this.liveRegion=t("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(e){var n=this.menu.element[0];return e.target===this.element[0]||e.target===n||t.contains(n,e.target)},_closeOnClickOutside:function(t){this._isEventTargetInWidget(t)||this.close()},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e&&e[0]||(e=this.element.closest(".ui-front, dialog")),e.length||(e=this.document[0].body),e},_initSource:function(){var e,n,r=this;t.isArray(this.options.source)?(e=this.options.source,this.source=function(n,r){r(t.ui.autocomplete.filter(e,n.term))}):"string"==typeof this.options.source?(n=this.options.source,this.source=function(e,i){r.xhr&&r.xhr.abort(),r.xhr=t.ajax({url:n,data:e,dataType:"json",success:function(t){i(t)},error:function(){i([])}})}):this.source=this.options.source},_searchTimeout:function(t){clearTimeout(this.searching),this.searching=this._delay(function(){var e=this.term===this._value(),n=this.menu.element.is(":visible"),r=t.altKey||t.ctrlKey||t.metaKey||t.shiftKey;e&&(!e||n||r)||(this.selectedItem=null,this.search(null,t))},this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length<this.options.minLength?this.close(e):!1!==this._trigger("search",e)?this._search(t):void 0},_search:function(t){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var e=++this.requestIndex;return t.proxy(function(t){e===this.requestIndex&&this.__response(t),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")},this)},__response:function(t){t&&(t=this._normalize(t)),this._trigger("response",null,{content:t}),!this.options.disabled&&t&&t.length&&!this.cancelSearch?(this._suggest(t),this._trigger("open")):this._close()},close:function(t){this.cancelSearch=!0,this._close(t)},_close:function(t){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",t))},_change:function(t){this.previous!==this._value()&&this._trigger("change",t,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:t.map(e,function(e){return"string"==typeof e?{label:e,value:e}:t.extend({},e,{label:e.label||e.value,value:e.value||e.label})})},_suggest:function(e){var n=this.menu.element.empty();this._renderMenu(n,e),this.isNewMenu=!0,this.menu.refresh(),n.show(),this._resizeMenu(),n.position(t.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(e,n){var r=this;t.each(n,function(t,n){r._renderItemData(e,n)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-autocomplete-item",e)},_renderItem:function(e,n){return t("<li>").append(t("<div>").text(n.label)).appendTo(e)},_move:function(t,e){if(this.menu.element.is(":visible"))return this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[t](e);this.search(null,e)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(t,e),e.preventDefault())},_isContentEditable:function(t){if(!t.length)return!1;var e=t.prop("contentEditable");return"inherit"===e?this._isContentEditable(t.parent()):"true"===e}}),t.extend(t.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,n){var r=new RegExp(t.ui.autocomplete.escapeRegex(n),"i");return t.grep(e,function(t){return r.test(t.label||t.value||t)})}}),t.widget("ui.autocomplete",t.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(t>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var n;this._superApply(arguments),this.options.disabled||this.cancelSearch||(n=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,this.liveRegion.children().hide(),t("<div>").text(n).appendTo(this.liveRegion))}}),t.ui.autocomplete})?r.apply(e,i):r)||(t.exports=s)},function(t,e,n){var r,i,s;
/*!
 * jQuery UI Menu 1.12.1
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */i=[n(2),n(29),n(58),n(30),n(99),n(9),n(16)],void 0===(s="function"==typeof(r=function(t){return t.widget("ui.menu",{version:"1.12.1",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(t){t.preventDefault()},"click .ui-menu-item":function(e){var n=t(e.target),r=t(t.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&n.not(".ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),n.has(".ui-menu").length?this.expand(e):!this.element.is(":focus")&&r.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(e){if(!this.previousFilter){var n=t(e.target).closest(".ui-menu-item"),r=t(e.currentTarget);n[0]===r[0]&&(this._removeClass(r.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(e,r))}},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var n=this.active||this.element.find(this.options.items).eq(0);e||this.focus(t,n)},blur:function(e){this._delay(function(){var n=!t.contains(this.element[0],t.ui.safeActiveElement(this.document[0]));n&&this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t),this.mouseHandled=!1}})},_destroy:function(){var e=this.element.find(".ui-menu-item").removeAttr("role aria-disabled"),n=e.children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),n.children().each(function(){var e=t(this);e.data("ui-menu-submenu-caret")&&e.remove()})},_keydown:function(e){var n,r,i,s,o=!0;switch(e.keyCode){case t.ui.keyCode.PAGE_UP:this.previousPage(e);break;case t.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case t.ui.keyCode.HOME:this._move("first","first",e);break;case t.ui.keyCode.END:this._move("last","last",e);break;case t.ui.keyCode.UP:this.previous(e);break;case t.ui.keyCode.DOWN:this.next(e);break;case t.ui.keyCode.LEFT:this.collapse(e);break;case t.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case t.ui.keyCode.ENTER:case t.ui.keyCode.SPACE:this._activate(e);break;case t.ui.keyCode.ESCAPE:this.collapse(e);break;default:o=!1,r=this.previousFilter||"",s=!1,i=e.keyCode>=96&&e.keyCode<=105?(e.keyCode-96).toString():String.fromCharCode(e.keyCode),clearTimeout(this.filterTimer),i===r?s=!0:i=r+i,n=this._filterMenuItems(i),(n=s&&-1!==n.index(this.active.next())?this.active.nextAll(".ui-menu-item"):n).length||(i=String.fromCharCode(e.keyCode),n=this._filterMenuItems(i)),n.length?(this.focus(e,n),this.previousFilter=i,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}o&&e.preventDefault()},_activate:function(t){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var e,n,r,i,s,o=this,a=this.options.icons.submenu,l=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),r=l.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var e=t(this),n=e.prev(),r=t("<span>").data("ui-menu-submenu-caret",!0);o._addClass(r,"ui-menu-icon","ui-icon "+a),n.attr("aria-haspopup","true").prepend(r),e.attr("aria-labelledby",n.attr("id"))}),this._addClass(r,"ui-menu","ui-widget ui-widget-content ui-front"),e=l.add(this.element),(n=e.find(this.options.items)).not(".ui-menu-item").each(function(){var e=t(this);o._isDivider(e)&&o._addClass(e,"ui-menu-divider","ui-widget-content")}),i=n.not(".ui-menu-item, .ui-menu-divider"),s=i.children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(i,"ui-menu-item")._addClass(s,"ui-menu-item-wrapper"),n.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!t.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){if("icons"===t){var n=this.element.find(".ui-menu-icon");this._removeClass(n,null,this.options.icons.submenu)._addClass(n,null,e.submenu)}this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",String(t)),this._toggleClass(null,"ui-state-disabled",!!t)},focus:function(t,e){var n,r,i;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),r=this.active.children(".ui-menu-item-wrapper"),this._addClass(r,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",r.attr("id")),i=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(n=e.children(".ui-menu")).length&&t&&/^mouse/.test(t.type)&&this._startOpening(n),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(e){var n,r,i,s,o,a;this._hasScroll()&&(n=parseFloat(t.css(this.activeMenu[0],"borderTopWidth"))||0,r=parseFloat(t.css(this.activeMenu[0],"paddingTop"))||0,i=e.offset().top-this.activeMenu.offset().top-n-r,s=this.activeMenu.scrollTop(),o=this.activeMenu.height(),a=e.outerHeight(),i<0?this.activeMenu.scrollTop(s+i):i+a>o&&this.activeMenu.scrollTop(s+i-o+a))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",t,{item:this.active}),this.active=null)},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(t)},this.delay))},_open:function(e){var n=t.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(n)},collapseAll:function(e,n){clearTimeout(this.timer),this.timer=this._delay(function(){var r=n?this.element:t(e&&e.target).closest(this.element.find(".ui-menu"));r.length||(r=this.element),this._close(r),this.blur(e),this._removeClass(r.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=r},this.delay)},_close:function(t){t||(t=this.active?this.active.parent():this.element),t.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(e){return!t(e.target).closest(".ui-menu").length},_isDivider:function(t){return!/[^\-\u2014\u2013\s]/.test(t.text())},collapse:function(t){var e=this.active&&this.active.parent().closest(".ui-menu-item",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();e&&e.length&&(this._open(e.parent()),this._delay(function(){this.focus(t,e)}))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(t,e,n){var r;this.active&&(r="first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[t+"All"](".ui-menu-item").eq(0)),r&&r.length&&this.active||(r=this.activeMenu.find(this.options.items)[e]()),this.focus(n,r)},nextPage:function(e){var n,r,i;this.active?this.isLastItem()||(this._hasScroll()?(r=this.active.offset().top,i=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return(n=t(this)).offset().top-r-i<0}),this.focus(e,n)):this.focus(e,this.activeMenu.find(this.options.items)[this.active?"last":"first"]())):this.next(e)},previousPage:function(e){var n,r,i;this.active?this.isFirstItem()||(this._hasScroll()?(r=this.active.offset().top,i=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return(n=t(this)).offset().top-r+i>0}),this.focus(e,n)):this.focus(e,this.activeMenu.find(this.options.items).first())):this.next(e)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(e){this.active=this.active||t(e.target).closest(".ui-menu-item");var n={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,n)},_filterMenuItems:function(e){var n=e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),r=new RegExp("^"+n,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return r.test(t.trim(t(this).children(".ui-menu-item-wrapper").text()))})}})})?r.apply(e,i):r)||(t.exports=s)},function(t,e,n){var r,i,s;
/*!
 * jQuery UI Unique ID 1.12.1
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */i=[n(2),n(9)],void 0===(s="function"==typeof(r=function(t){return t.fn.extend({uniqueId:function(){var t=0;return function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++t)})}}(),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&t(this).removeAttr("id")})}})})?r.apply(e,i):r)||(t.exports=s)},function(t,e,n){var r,i,s;
/*!
	autosize 4.0.2
	license: MIT
	http://www.jacklmoore.com/autosize
*/i=[t,e],void 0===(s="function"==typeof(r=function(t,e){"use strict";var n="function"==typeof Map?new Map:function(){var t=[],e=[];return{has:function(e){return t.indexOf(e)>-1},get:function(n){return e[t.indexOf(n)]},set:function(n,r){-1===t.indexOf(n)&&(t.push(n),e.push(r))},delete:function(n){var r=t.indexOf(n);r>-1&&(t.splice(r,1),e.splice(r,1))}}}(),r=function(t){return new Event(t,{bubbles:!0})};try{new Event("test")}catch(t){r=function(t){var e=document.createEvent("Event");return e.initEvent(t,!0,!1),e}}function i(t){if(t&&t.nodeName&&"TEXTAREA"===t.nodeName&&!n.has(t)){var e=null,i=null,s=null,o=function(){t.clientWidth!==i&&c()},a=function(e){window.removeEventListener("resize",o,!1),t.removeEventListener("input",c,!1),t.removeEventListener("keyup",c,!1),t.removeEventListener("autosize:destroy",a,!1),t.removeEventListener("autosize:update",c,!1),Object.keys(e).forEach(function(n){t.style[n]=e[n]}),n.delete(t)}.bind(t,{height:t.style.height,resize:t.style.resize,overflowY:t.style.overflowY,overflowX:t.style.overflowX,wordWrap:t.style.wordWrap});t.addEventListener("autosize:destroy",a,!1),"onpropertychange"in t&&"oninput"in t&&t.addEventListener("keyup",c,!1),window.addEventListener("resize",o,!1),t.addEventListener("input",c,!1),t.addEventListener("autosize:update",c,!1),t.style.overflowX="hidden",t.style.wordWrap="break-word",n.set(t,{destroy:a,update:c}),function(){var n=window.getComputedStyle(t,null);"vertical"===n.resize?t.style.resize="none":"both"===n.resize&&(t.style.resize="horizontal"),e="content-box"===n.boxSizing?-(parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)):parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),isNaN(e)&&(e=0),c()}()}function l(e){var n=t.style.width;t.style.width="0px",t.offsetWidth,t.style.width=n,t.style.overflowY=e}function u(){if(0!==t.scrollHeight){var n=function(t){for(var e=[];t&&t.parentNode&&t.parentNode instanceof Element;)t.parentNode.scrollTop&&e.push({node:t.parentNode,scrollTop:t.parentNode.scrollTop}),t=t.parentNode;return e}(t),r=document.documentElement&&document.documentElement.scrollTop;t.style.height="",t.style.height=t.scrollHeight+e+"px",i=t.clientWidth,n.forEach(function(t){t.node.scrollTop=t.scrollTop}),r&&(document.documentElement.scrollTop=r)}}function c(){u();var e=Math.round(parseFloat(t.style.height)),n=window.getComputedStyle(t,null),i="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):t.offsetHeight;if(i<e?"hidden"===n.overflowY&&(l("scroll"),u(),i="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(t,null).height)):t.offsetHeight):"hidden"!==n.overflowY&&(l("hidden"),u(),i="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(t,null).height)):t.offsetHeight),s!==i){s=i;var o=r("autosize:resized");try{t.dispatchEvent(o)}catch(t){}}}}function s(t){var e=n.get(t);e&&e.destroy()}function o(t){var e=n.get(t);e&&e.update()}var a=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((a=function(t){return t}).destroy=function(t){return t},a.update=function(t){return t}):((a=function(t,e){return t&&Array.prototype.forEach.call(t.length?t:[t],function(t){return i(t)}),t}).destroy=function(t){return t&&Array.prototype.forEach.call(t.length?t:[t],s),t},a.update=function(t){return t&&Array.prototype.forEach.call(t.length?t:[t],o),t}),e.default=a,t.exports=e.default})?r.apply(e,i):r)||(t.exports=s)},function(e,n,r){var i;void 0===(i=function(e){"use strict";var n=r(4),i=r(5),s=r(7),o=r(3),a=r(102),l=r(120),u=r(121);return i.CompositeView.extend({collection:null,childView:a,childViewContainer:"ul",template:l,ui:{fileInput:"#local-attachments"},events:{"click #add-cloud-attachment":"addCloudAttachment","click #add-local-attachment":"addLocalAttachment","change @ui.fileInput":"onLocalAttachmentsChanged"},initialize:function(t){this.collection=t.collection},addCloudAttachment:function(){var e=t("mail","Choose a file to add as attachment");s.dialogs.filepicker(e,n.bind(this.onCloudFileSelected,this))},onCloudFileSelected:function(t){this.collection.add({fileName:t})},addLocalAttachment:function(){this.ui.fileInput.val(""),this.ui.fileInput.click()},onLocalAttachmentsChanged:function(t){for(var e=t.target.files,n=0;n<e.length;n++){var r=e[n];this.uploadLocalAttachment(r)}},uploadLocalAttachment:function(e){var n=new u({fileName:e.name});o.attachment.request("upload:local",e,n).then(function(t){o.attachment.request("upload:finished",n,t)}).catch(function(){o.attachment.request("upload:finished",n);var r=t("mail","An error occurred while uploading {fname}",{fname:e.name});o.ui.trigger("error:show",r)}),this.collection.add(n)}})}.call(n,r,n,e))||(e.exports=i)},function(t,e,n){var r;void 0===(r=function(t){"use strict";n(103);var e=n(5),r=n(3),i=n(104);return e.View.extend({tagName:"li",template:i,ui:{attachmentName:".new-message-attachment-name"},events:{"click .icon-delete":"removeAttachment"},modelEvents:{"change:progress":"onProgress","change:uploadStatus":"onUploadStatus"},onRender:function(){this.model.get("uploadRequest")&&(this.ui.attachmentName.progressbar({value:0,max:1}),this.ui.attachmentName.removeClass("ui-progressbar").removeClass("ui-widget-content").addClass("upload-ongoing"))},removeAttachment:function(){r.attachment.request("upload:abort",this.model)},onProgress:function(){var t=this.model.get("progress");this.ui.attachmentName.progressbar("option","value",t)},onUploadStatus:function(){switch(this.model.get("uploadStatus")){case 1:this.ui.attachmentName.addClass("upload-ongoing");break;case 2:this.ui.attachmentName.removeClass("upload-ongoing").addClass("upload-warning");break;case 3:this.ui.attachmentName.removeClass("upload-ongoing").removeClass("upload-warning"),this.ui.attachmentName.find(".ui-progressbar-value").fadeOut()}}})}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r,i,s;
/*!
 * jQuery UI Progressbar 1.12.1
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */i=[n(2),n(9),n(16)],void 0===(s="function"==typeof(r=function(t){return t.widget("ui.progressbar",{version:"1.12.1",options:{classes:{"ui-progressbar":"ui-corner-all","ui-progressbar-value":"ui-corner-left","ui-progressbar-complete":"ui-corner-right"},max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.attr({role:"progressbar","aria-valuemin":this.min}),this._addClass("ui-progressbar","ui-widget ui-widget-content"),this.valueDiv=t("<div>").appendTo(this.element),this._addClass(this.valueDiv,"ui-progressbar-value","ui-widget-header"),this._refreshValue()},_destroy:function(){this.element.removeAttr("role aria-valuemin aria-valuemax aria-valuenow"),this.valueDiv.remove()},value:function(t){if(void 0===t)return this.options.value;this.options.value=this._constrainedValue(t),this._refreshValue()},_constrainedValue:function(t){return void 0===t&&(t=this.options.value),this.indeterminate=!1===t,"number"!=typeof t&&(t=0),!this.indeterminate&&Math.min(this.options.max,Math.max(this.min,t))},_setOptions:function(t){var e=t.value;delete t.value,this._super(t),this.options.value=this._constrainedValue(e),this._refreshValue()},_setOption:function(t,e){"max"===t&&(e=Math.max(this.min,e)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t),this._toggleClass(null,"ui-state-disabled",!!t)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var e=this.options.value,n=this._percentage();this.valueDiv.toggle(this.indeterminate||e>this.min).width(n.toFixed(0)+"%"),this._toggleClass(this.valueDiv,"ui-progressbar-complete",null,e===this.options.max)._toggleClass("ui-progressbar-indeterminate",null,this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=t("<div>").appendTo(this.valueDiv),this._addClass(this.overlayDiv,"ui-progressbar-overlay"))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":e}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==e&&(this.oldValue=e,this._trigger("change")),e===this.options.max&&this._trigger("complete")}})})?r.apply(e,i):r)||(t.exports=s)},function(t,e,n){var r=n(6);t.exports=(r.default||r).template({compiler:[7,">= 4.0.0"],main:function(t,e,n,r,i){var s;return'<div class="new-message-attachment-name">'+t.escapeExpression("function"==typeof(s=null!=(s=n.displayName||(null!=e?e.displayName:e))?s:n.helperMissing)?s.call(null!=e?e:t.nullContext||{},{name:"displayName",hash:{},data:i}):s)+'</div>\n<div class="new-message-attachments-action svg icon-delete"></div>\n'},useData:!0})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}e.__esModule=!0;var s=i(n(62)),o=r(n(117)),a=r(n(18)),l=i(n(12)),u=i(n(118)),c=r(n(119));function h(){var t=new s.HandlebarsEnvironment;return l.extend(t,s),t.SafeString=o.default,t.Exception=a.default,t.Utils=l,t.escapeExpression=l.escapeExpression,t.VM=u,t.template=function(e){return u.template(e,t)},t}var d=h();d.create=h,c.default(d),d.default=d,e.default=d,t.exports=e.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.registerDefaultHelpers=function(t){i.default(t),s.default(t),o.default(t),a.default(t),l.default(t),u.default(t),c.default(t)};var i=r(n(107)),s=r(n(108)),o=r(n(109)),a=r(n(110)),l=r(n(111)),u=r(n(112)),c=r(n(113))},function(t,e,n){"use strict";e.__esModule=!0;var r=n(12);e.default=function(t){t.registerHelper("blockHelperMissing",function(e,n){var i=n.inverse,s=n.fn;if(!0===e)return s(this);if(!1===e||null==e)return i(this);if(r.isArray(e))return e.length>0?(n.ids&&(n.ids=[n.name]),t.helpers.each(e,n)):i(this);if(n.data&&n.ids){var o=r.createFrame(n.data);o.contextPath=r.appendContextPath(n.data.contextPath,n.name),n={data:o}}return s(e,n)})},t.exports=e.default},function(t,e,n){"use strict";e.__esModule=!0;var r=n(12),i=function(t){return t&&t.__esModule?t:{default:t}}(n(18));e.default=function(t){t.registerHelper("each",function(t,e){if(!e)throw new i.default("Must pass iterator to #each");var n=e.fn,s=e.inverse,o=0,a="",l=void 0,u=void 0;function c(e,i,s){l&&(l.key=e,l.index=i,l.first=0===i,l.last=!!s,u&&(l.contextPath=u+e)),a+=n(t[e],{data:l,blockParams:r.blockParams([t[e],e],[u+e,null])})}if(e.data&&e.ids&&(u=r.appendContextPath(e.data.contextPath,e.ids[0])+"."),r.isFunction(t)&&(t=t.call(this)),e.data&&(l=r.createFrame(e.data)),t&&"object"==typeof t)if(r.isArray(t))for(var h=t.length;o<h;o++)o in t&&c(o,o,o===t.length-1);else{var d=void 0;for(var f in t)t.hasOwnProperty(f)&&(void 0!==d&&c(d,o-1),d=f,o++);void 0!==d&&c(d,o-1,!0)}return 0===o&&(a=s(this)),a})},t.exports=e.default},function(t,e,n){"use strict";e.__esModule=!0;var r=function(t){return t&&t.__esModule?t:{default:t}}(n(18));e.default=function(t){t.registerHelper("helperMissing",function(){if(1!==arguments.length)throw new r.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},t.exports=e.default},function(t,e,n){"use strict";e.__esModule=!0;var r=n(12);e.default=function(t){t.registerHelper("if",function(t,e){return r.isFunction(t)&&(t=t.call(this)),!e.hash.includeZero&&!t||r.isEmpty(t)?e.inverse(this):e.fn(this)}),t.registerHelper("unless",function(e,n){return t.helpers.if.call(this,e,{fn:n.inverse,inverse:n.fn,hash:n.hash})})},t.exports=e.default},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t){t.registerHelper("log",function(){for(var e=[void 0],n=arguments[arguments.length-1],r=0;r<arguments.length-1;r++)e.push(arguments[r]);var i=1;null!=n.hash.level?i=n.hash.level:n.data&&null!=n.data.level&&(i=n.data.level),e[0]=i,t.log.apply(t,e)})},t.exports=e.default},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t){t.registerHelper("lookup",function(t,e){return t&&t[e]})},t.exports=e.default},function(t,e,n){"use strict";e.__esModule=!0;var r=n(12);e.default=function(t){t.registerHelper("with",function(t,e){r.isFunction(t)&&(t=t.call(this));var n=e.fn;if(r.isEmpty(t))return e.inverse(this);var i=e.data;return e.data&&e.ids&&((i=r.createFrame(e.data)).contextPath=r.appendContextPath(e.data.contextPath,e.ids[0])),n(t,{data:i,blockParams:r.blockParams([t],[i&&i.contextPath])})})},t.exports=e.default},function(t,e,n){"use strict";e.__esModule=!0,e.registerDefaultDecorators=function(t){r.default(t)};var r=function(t){return t&&t.__esModule?t:{default:t}}(n(115))},function(t,e,n){"use strict";e.__esModule=!0;var r=n(12);e.default=function(t){t.registerDecorator("inline",function(t,e,n,i){var s=t;return e.partials||(e.partials={},s=function(i,s){var o=n.partials;n.partials=r.extend({},o,e.partials);var a=t(i,s);return n.partials=o,a}),e.partials[i.args[0]]=i.fn,s})},t.exports=e.default},function(t,e,n){"use strict";e.__esModule=!0;var r=n(12),i={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(t){if("string"==typeof t){var e=r.indexOf(i.methodMap,t.toLowerCase());t=e>=0?e:parseInt(t,10)}return t},log:function(t){if(t=i.lookupLevel(t),"undefined"!=typeof console&&i.lookupLevel(i.level)<=t){var e=i.methodMap[t];console[e]||(e="log");for(var n=arguments.length,r=Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];console[e].apply(console,r)}}};e.default=i,t.exports=e.default},function(t,e,n){"use strict";function r(t){this.string=t}e.__esModule=!0,r.prototype.toString=r.prototype.toHTML=function(){return""+this.string},e.default=r,t.exports=e.default},function(t,e,n){"use strict";e.__esModule=!0,e.checkRevision=function(t){var e=t&&t[0]||1,n=s.COMPILER_REVISION;if(e!==n){if(e<n){var r=s.REVISION_CHANGES[n],o=s.REVISION_CHANGES[e];throw new i.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+r+") or downgrade your runtime to an older version ("+o+").")}throw new i.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}},e.template=function(t,e){if(!e)throw new i.default("No environment passed to template");if(!t||!t.main)throw new i.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var n={strict:function(t,e){if(!(e in t))throw new i.default('"'+e+'" not defined in '+t);return t[e]},lookup:function(t,e){for(var n=t.length,r=0;r<n;r++)if(t[r]&&null!=t[r][e])return t[r][e]},lambda:function(t,e){return"function"==typeof t?t.call(e):t},escapeExpression:r.escapeExpression,invokePartial:function(n,s,o){o.hash&&(s=r.extend({},s,o.hash),o.ids&&(o.ids[0]=!0));n=e.VM.resolvePartial.call(this,n,s,o);var a=e.VM.invokePartial.call(this,n,s,o);null==a&&e.compile&&(o.partials[o.name]=e.compile(n,t.compilerOptions,e),a=o.partials[o.name](s,o));if(null!=a){if(o.indent){for(var l=a.split("\n"),u=0,c=l.length;u<c&&(l[u]||u+1!==c);u++)l[u]=o.indent+l[u];a=l.join("\n")}return a}throw new i.default("The partial "+o.name+" could not be compiled when running in runtime-only mode")},fn:function(e){var n=t[e];return n.decorator=t[e+"_d"],n},programs:[],program:function(t,e,n,r,i){var s=this.programs[t],a=this.fn(t);return e||i||r||n?s=o(this,t,a,e,n,r,i):s||(s=this.programs[t]=o(this,t,a)),s},data:function(t,e){for(;t&&e--;)t=t._parent;return t},merge:function(t,e){var n=t||e;return t&&e&&t!==e&&(n=r.extend({},e,t)),n},nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};function a(e){var r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],i=r.data;a._setup(r),!r.partial&&t.useData&&(i=function(t,e){e&&"root"in e||((e=e?s.createFrame(e):{}).root=t);return e}(e,i));var o=void 0,u=t.useBlockParams?[]:void 0;function c(e){return""+t.main(n,e,n.helpers,n.partials,i,u,o)}return t.useDepths&&(o=r.depths?e!=r.depths[0]?[e].concat(r.depths):r.depths:[e]),(c=l(t.main,c,n,r.depths||[],i,u))(e,r)}return a.isTop=!0,a._setup=function(r){r.partial?(n.helpers=r.helpers,n.partials=r.partials,n.decorators=r.decorators):(n.helpers=n.merge(r.helpers,e.helpers),t.usePartial&&(n.partials=n.merge(r.partials,e.partials)),(t.usePartial||t.useDecorators)&&(n.decorators=n.merge(r.decorators,e.decorators)))},a._child=function(e,r,s,a){if(t.useBlockParams&&!s)throw new i.default("must pass block params");if(t.useDepths&&!a)throw new i.default("must pass parent depths");return o(n,e,t[e],r,0,s,a)},a},e.wrapProgram=o,e.resolvePartial=function(t,e,n){t?t.call||n.name||(n.name=t,t=n.partials[t]):t="@partial-block"===n.name?n.data["partial-block"]:n.partials[n.name];return t},e.invokePartial=function(t,e,n){var o=n.data&&n.data["partial-block"];n.partial=!0,n.ids&&(n.data.contextPath=n.ids[0]||n.data.contextPath);var l=void 0;n.fn&&n.fn!==a&&function(){n.data=s.createFrame(n.data);var t=n.fn;l=n.data["partial-block"]=function(e){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return n.data=s.createFrame(n.data),n.data["partial-block"]=o,t(e,n)},t.partials&&(n.partials=r.extend({},n.partials,t.partials))}();void 0===t&&l&&(t=l);if(void 0===t)throw new i.default("The partial "+n.name+" could not be found");if(t instanceof Function)return t(e,n)},e.noop=a;var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(12)),i=function(t){return t&&t.__esModule?t:{default:t}}(n(18)),s=n(62);function o(t,e,n,r,i,s,o){function a(e){var i=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],a=o;return!o||e==o[0]||e===t.nullContext&&null===o[0]||(a=[e].concat(o)),n(t,e,t.helpers,t.partials,i.data||r,s&&[i.blockParams].concat(s),a)}return(a=l(n,a,t,o,r,s)).program=e,a.depth=o?o.length:0,a.blockParams=i||0,a}function a(){return""}function l(t,e,n,i,s,o){if(t.decorator){var a={};e=t.decorator(e,a,n,i&&i[0],s,o,i),r.extend(e,a)}return e}},function(t,e,n){"use strict";(function(n){e.__esModule=!0,e.default=function(t){var e=void 0!==n?n:window,r=e.Handlebars;t.noConflict=function(){return e.Handlebars===t&&(e.Handlebars=r),t}},t.exports=e.default}).call(this,n(10))},function(t,e,n){var r=n(6);function i(t){return t&&(t.__esModule?t.default:t)}t.exports=(r.default||r).template({compiler:[7,">= 4.0.0"],main:function(t,e,r,s,o){var a=null!=e?e:t.nullContext||{},l=t.escapeExpression;return'<ul></ul>\n<button type="button" id="add-local-attachment" style="display: inline-block;">\n  <span class="icon-upload"/> '+l(i(n(0)).call(a,"Upload attachment",{name:"t",hash:{},data:o}))+'\n</button>\n<button type="button" id="add-cloud-attachment" style="display: inline-block;">\n  <span class="icon-folder"/> '+l(i(n(0)).call(a,"Add attachment from Files",{name:"t",hash:{},data:o}))+'\n</button>\n<input type="file" multiple id="local-attachments" style="display: none;">\n'},useData:!0})},function(t,e,n){var r;void 0===(r=function(t){"use strict";return n(61).extend({defaults:{progress:0,uploadStatus:0,isLocal:!0},onProgress:function(t){t.lengthComputable&&(this.set("uploadStatus",1),this.set("progress",t.loaded/t.total))}})}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r=n(6);function i(t){return t&&(t.__esModule?t.default:t)}t.exports=(r.default||r).template({1:function(t,e,r,s,o){var a=t.lambda,l=t.escapeExpression;return'\t\t<option value="'+l(a(null!=e?e.id:e,e))+'">'+l(i(n(0)).call(null!=e?e:t.nullContext||{},"from",{name:"t",hash:{},data:o}))+" "+l(a(null!=e?e.name:e,e))+" &lt;"+l(a(null!=e?e.emailAddress:e,e))+"&gt;</option>\n"},3:function(t,e,n,r,i){return"\t\t\thidden\n\t\t\t"},5:function(t,e,n,r,i){return"\t\t    hidden\n\t\t    "},7:function(t,e,r,s,o){return'\t\t<div class="warning noreply-box">'+t.escapeExpression(i(n(0)).call(null!=e?e:t.nullContext||{},"Note that the mail came from a noreply address so your reply will probably not be read.",{name:"t",hash:{},data:o}))+"</div>\n"},9:function(t,e,r,s,o){var a=t.escapeExpression;return'\t\t<input type="text" name="subject" value="'+a(t.lambda(null!=e?e.subject:e,e))+'" class="subject" autocomplete="off"\n\t\t\tplaceholder="'+a(i(n(0)).call(null!=e?e:t.nullContext||{},"Subject",{name:"t",hash:{},data:o}))+'" />\n'},compiler:[7,">= 4.0.0"],main:function(t,e,r,s,o){var a,l=null!=e?e:t.nullContext||{},u=t.escapeExpression,c=t.lambda;return'<div class="message-composer">\n\t<select class="mail-account">\n'+(null!=(a=r.each.call(l,null!=e?e.aliases:e,{name:"each",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?a:"")+'\t</select>\n\t<div class="composer-fields">\n\t\t<a href="#" class="composer-cc-bcc-toggle transparency\n'+(null!=(a=i(n(123)).call(l,{name:"ifHasCC",hash:{},fn:t.program(3,o,0),inverse:t.noop,data:o}))?a:"")+'">'+u(i(n(0)).call(l,"+ cc/bcc",{name:"t",hash:{},data:o}))+'</a>\n\t\t<input type="text" name="to"\n\t\t    value="'+u(i(n(31)).call(l,null!=e?e.to:e,{name:"printAddressListPlain",hash:{},data:o}))+'"\n\t\t    class="to recipient-autocomplete" />\n\t\t<label class="to-label transparency" for="to">'+u(i(n(0)).call(l,"to",{name:"t",hash:{},data:o}))+'</label>\n\t\t<div class="composer-cc-bcc\n'+(null!=(a=i(n(124)).call(l,{name:"unlessHasCC",hash:{},fn:t.program(5,o,0),inverse:t.noop,data:o}))?a:"")+'">\n\t\t\t<input type="text"\n\t\t\t       name="cc"\n\t\t\t       class="cc recipient-autocomplete"\n\t\t\t       value="'+u(i(n(31)).call(l,null!=e?e.cc:e,{name:"printAddressListPlain",hash:{},data:o}))+'"\n\t\t\t       />\n\t\t\t<label for="cc" class="cc-label transparency">'+u(i(n(0)).call(l,"cc",{name:"t",hash:{},data:o}))+'</label>\n\t\t\t<input type="text"\n\t\t\t       name="bcc"\n\t\t\t       class="bcc recipient-autocomplete"\n\t\t\t       value="'+u(i(n(31)).call(l,null!=e?e.bcc:e,{name:"printAddressListPlain",hash:{},data:o}))+'"\n\t\t\t       />\n\t\t\t<label for="bcc" class="bcc-label transparency">'+u(i(n(0)).call(l,"bcc",{name:"t",hash:{},data:o}))+"</label>\n\t\t</div>\n"+(null!=(a=i(n(125)).call(l,{name:"ifToNoreply",hash:{},fn:t.program(7,o,0),inverse:t.noop,data:o}))?a:"")+(null!=(a=r.unless.call(l,null!=e?e.isReply:e,{name:"unless",hash:{},fn:t.program(9,o,0),inverse:t.noop,data:o}))?a:"")+'\t\t<textarea name="body"\n\t\t\t  class="message-body"\n\t\t\t  placeholder="'+u(i(n(0)).call(l,"Message …",{name:"t",hash:{},data:o}))+'">'+u(c(null!=e?e.message:e,e))+'</textarea>\n\t</div>\n\t<div class="submit-message-wrapper">\n\t\t<input class="submit-message send primary" type="submit" value="'+u(c(null!=e?e.submitButtonTitle:e,e))+'" disabled>\n\t\t<div class="submit-message-wrapper-inside" ></div>\n\t</div>\n\t<div class="new-message-attachments">\n\t</div>\n</div>\n'},useData:!0})},function(t,e,n){var r;void 0===(r=function(){"use strict";return function(t){var e=this.cc.length>0,n=this.bcc.length>0;return e||n?t.fn(this):t.inverse(this)}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r;void 0===(r=function(){"use strict";return function(t){var e=this.cc.length>0,n=this.bcc.length>0;return e||n?t.inverse(this):t.fn(this)}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r;void 0===(r=function(){"use strict";function t(t){var e=t.email.substring(0,t.email.lastIndexOf("@"));return-1!==["noreply","no-reply"].indexOf(e)}return function(e){var n=this.to.some(t),r=this.cc.some(t),i=this.bcc.some(t);return n||r||i?e.fn(this):e.inverse(this)}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r;void 0===(r=function(t){"use strict";var e=n(8),r=n(127),i=n(7);return e.Collection.extend({model:r,url:function(){return i.generateUrl("apps/mail/api/accounts")},comparator:function(t){return t.get("accountId")}})}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r;void 0===(r=function(t){"use strict";var e=n(4),r=n(8),i=n(65),s=n(132),o=n(7);return r.Model.extend({defaults:{aliases:[],specialFolders:[],isUnified:!1},idAttribute:"accountId",url:function(){return o.generateUrl("apps/mail/api/accounts")},initialize:function(){this.folders=new i,this.set("aliases",new s(this.get("aliases")))},_getFolderByIdRecursively:function(t,e){if(!t)return null;if(t.get("id")===e)return t;var n=t.folders;if(!n)return null;for(var r=0;r<n.length;r++){var i=this._getFolderByIdRecursively(n.at(r),e);if(i)return i}return null},addFolder:function(t){t.account=this,this.folders.add(t)},getFolderById:function(t){if(this.folders)for(var e=0;e<this.folders.length;e++){var n=this._getFolderByIdRecursively(this.folders.at(e),t);if(n)return n}},getSpecialFolder:function(){if(this.folders)return e.find(this.folders,function(t){if("draft"===t.get("specialRole"))return!0})},toJSON:function(){var t=r.Model.prototype.toJSON.call(this);return t.folders&&t.folders.toJSON&&(t.folders=t.folders.toJSON()),t.aliases&&t.aliases.toJSON&&(t.aliases=t.aliases.toJSON()),t.id||(t.id=this.cid),t}})}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r;void 0===(r=function(t){"use strict";var e=n(4),r=n(8);return r.Model.extend({messages:void 0,account:void 0,folder:void 0,folders:void 0,defaults:{open:!1,folders:[],messagesLoaded:!1},initialize:function(){var t=n(65),r=n(66),i=n(131);this.account=this.get("account"),this.unset("account"),this.folders=new t(this.get("folders")||[]),this.folders.forEach(e.bind(function(t){t.account=this.account},this)),this.unset("folders"),this.account&&!0===this.account.get("isUnified")?this.messages=new i:this.messages=new r},toggleOpen:function(){this.set({open:!this.get("open")})},addMessage:function(t){return-1!==this.account.id&&(t.folder=this),t=this.messages.add(t),-1===this.account.id&&t.set("unifiedId",this.messages.getUnifiedId(t)),t},addMessages:function(t){return e.map(t,this.addMessage,this)},addFolder:function(t){(t=this.folders.add(t)).account=this.account},toJSON:function(){var t=r.Model.prototype.toJSON.call(this);return t.id||(t.id=this.cid),t}})}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r;void 0===(r=function(t){"use strict";var e=n(8),r=n(130);return e.Model.extend({folder:void 0,defaults:{flags:[],active:!1,from:[],to:[],cc:[],bcc:[]},initialize:function(){this.set("flags",new r(this.get("flags"))),this.get("folder")&&(this.folder=this.get("folder"),this.unset("folder")),this.listenTo(this.get("flags"),"change",this._transformEvent),this.set("dateMicro",1e3*this.get("dateInt"))},_transformEvent:function(){this.trigger("change"),this.trigger("change:flags",this)},toJSON:function(){var t=e.Model.prototype.toJSON.call(this);return t.flags&&t.flags.toJSON&&(t.flags=t.flags.toJSON()),t.id||(t.id=this.cid),t}})}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r;void 0===(r=function(t){"use strict";return n(8).Model.extend({defaults:{answered:!1}})}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r;void 0===(r=function(t){"use strict";return n(66).extend({modelId:function(t){return t.unifiedId},getUnifiedId:function(t){return t.id+"-"+t.folder.id+"-"+t.folder.account.id}})}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r;void 0===(r=function(t){"use strict";var e=n(8),r=n(133);return e.Collection.extend({model:r})}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r;void 0===(r=function(t){"use strict";var e=n(8);return e.Model.extend({defaults:{},initialize:function(){},toJSON:function(){var t=e.Model.prototype.toJSON.call(this);return t.alias&&t.alias.toJSON&&(t.alias=t.alias.toJSON()),t.id||(t.id=this.cid),t}})}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r;void 0===(r=function(t){"use strict";var e=n(5),r=n(4),i=n(2);n(59);var s=n(60),o=n(135),a=n(57),l=n(247),u=n(255),c=n(256);return e.View.extend({template:u,className:"mail-message-container",message:null,messageBody:null,reply:null,account:null,folder:null,ui:{messageIframe:"iframe"},regions:{replyComposer:"#reply-composer",attachments:".mail-message-attachments"},initialize:function(t){if(this.account=t.account,this.folder=t.folder,this.message=t.message,this.messageBody=t.model,this.reply=c.buildReply(this.message,this.messageBody),!this.messageBody.get("hasHtmlBody")){var e=new Date(this.messageBody.get("dateIso")),r=e.getMinutes(),s=o.htmlToText(this.messageBody.get("body"));this.reply.body="\n\n\n\n"+this.messageBody.get("from")[0].label+" – "+i.datepicker.formatDate("D, d. MM yy ",e)+e.getHours()+":"+(r<10?"0":"")+r+"\n> "+s.replace(/\n/g,"\n> ")}this.messageBody.get("hasHtmlBody")||(n(1).currentMessageBody=this.messageBody.get("body")),n(1).currentMessageSubject=this.messageBody.get("subject"),adjustControlsWidth(),this.messageBody.get("hasHtmlBody")&&i("#forward-button").hide()},onIframeLoad:function(){this.getUI("messageIframe").height(this.getUI("messageIframe").contents().find("html").height()+20),this.getUI("messageIframe").contents().find("body").css({margin:"0","font-weight":"normal","font-size":".8em","line-height":"1.6em","font-family":'"Open Sans", Frutiger, Calibri, "Myriad Pro", Myriad, sans-serif',color:"#000"}),this.getUI("messageIframe").contents().find("font").prop({face:"Open Sans",color:"#000"}),this.getUI("messageIframe").contents().find(".moz-text-flowed").css({"font-family":"inherit","font-size":"inherit"}),this.getUI("messageIframe").height(this.getUI("messageIframe").contents().find("html").height()+20),this.getUI("messageIframe").contents().find("blockquote").css({color:"#888"}),this.getUI("messageIframe").parent().removeClass("icon-loading");var t=!1;this.getUI("messageIframe").contents().find("[data-original-src],[data-original-style]").length&&(t=!0),t?i("#show-images-text").show():i("#show-images-text").hide();var e=this.getUI("messageIframe").contents().find("body").html();e=o.htmlToText(e);var r=new Date(this.messageBody.get("dateIso"));this.getChildView("replyComposer").setReplyBody(this.messageBody.get("from")[0],r,e),n(1).currentMessageBody=e,this.$("#forward-button").show()},onRender:function(){this.getUI("messageIframe").on("load",r.bind(this.onIframeLoad,this)),this.showChildView("attachments",new l({collection:new s(this.messageBody.get("attachments")),message:this.message})),this.showChildView("replyComposer",new a({type:"reply",accounts:n(1).accounts,account:this.account,folder:this.folder,repliedMessage:this.message,data:this.reply}))}})}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r;void 0===(r=function(t){"use strict";n(2);var e=n(136);return{htmlToText:function(t){return e.fromString(t,{noLinkBrackets:!0,ignoreHref:!0,ignoreImage:!0,wordwrap:78})}}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){t.exports=n(137)},function(t,e,n){var r=n(138),i=(n(139),n(141)),s=n(70),o=n(20),a=n(81),l=n(232),u=["style","script"];function c(t,e){e=Object.assign({wordwrap:80,tables:[],preserveNewlines:!1,uppercaseHeadings:!0,singleNewLineParagraphs:!1,hideLinkHrefIfSameAsText:!1,linkHrefBaseUrl:null,noLinkBrackets:!1,noAnchorUrl:!0,baseElement:"body",returnDomByDefault:!0,format:{},decodeOptions:{isAttributeValue:!1,strict:!1},longWordSplit:{wrapCharacters:[],forceWrapOnLimit:!1},unorderedListItemPrefix:" * "},e||{});var n=new o.DefaultHandler(function(t,e){},{verbose:!0});new o.Parser(n).parseComplete(t),e.lineCharCount=0;for(var r="",i=Array.isArray(e.baseElement)?e.baseElement:[e.baseElement],a=0;a<i.length;++a)r+=d(h(n.dom,e,i[a]),e);return s(r)}function h(t,e,n){var r=null,i=a.splitCssSearchTag(n);return function t(e){r||e.forEach(function(e){if(!r){if(e.name===i.element){var n=e.attribs&&e.attribs.class?e.attribs.class.split(" "):[],s=e.attribs&&e.attribs.id?e.attribs.id.split(" "):[];if(i.classes.every(function(t){return n.indexOf(t)>=0})&&i.ids.every(function(t){return s.indexOf(t)>=0}))return void(r=[e])}e.children&&t(e.children)}})}(t),e.returnDomByDefault?r||t:r}function d(t,e,n){arguments.length<3&&(n="");var r=/\s$/,s=Object.assign({},l,e.format);return t?(t.forEach(function(t){switch(t.type){case"tag":switch(t.name.toLowerCase()){case"img":n+=s.image(t,e);break;case"a":t.trimLeadingSpace=r.test(n),n+=s.anchor(t,d,e);break;case"p":n+=s.paragraph(t,d,e);break;case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":n+=s.heading(t,d,e);break;case"br":n+=s.lineBreak(t,d,e);break;case"hr":n+=s.horizontalLine(t,d,e);break;case"ul":n+=s.unorderedList(t,d,e);break;case"ol":n+=s.orderedList(t,d,e);break;case"pre":var o=Object.assign({},e);o.isInPre=!0,n+=s.paragraph(t,d,o);break;case"table":n=function(t,e){if(!0===e)return!0;function n(t){return t.substr(1)}function r(t,e){return t.filter(function(t){return function(e){return e.startsWith(t)}}(e)).map(n)}var s=r(e,"."),o=r(e,"#");return t&&(i(s,t.class)||i(o,t.id))}(t.attribs,e.tables)?n+s.table(t,d,e):d(t.children||[],e,n);break;case"blockquote":n+=s.blockquote(t,d,e);break;default:n=d(t.children||[],e,n)}break;case"text":"\r\n"!==t.data&&(t.trimLeadingSpace=r.test(n),n+=s.text(t,e));break;default:i(u,t.type)||(n=d(t.children||[],e,n))}e.lineCharCount=n.length-(n.lastIndexOf("\n")+1)}),n):n}e.fromFile=function(t,e,n){n||(n=e,e={}),r.readFile(t,"utf8",function(t,r){return t?n(t):n(null,c(r,e))})},e.fromString=function(t,e){return c(t,e||{})}},function(t,e){},function(t,e,n){(function(t,r){var i=/%[sdj%]/g;e.format=function(t){if(!v(t)){for(var e=[],n=0;n<arguments.length;n++)e.push(a(arguments[n]));return e.join(" ")}n=1;for(var r=arguments,s=r.length,o=String(t).replace(i,function(t){if("%%"===t)return"%";if(n>=s)return t;switch(t){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return t}}),l=r[n];n<s;l=r[++n])m(l)||!_(l)?o+=" "+l:o+=" "+a(l);return o},e.deprecate=function(n,i){if(y(t.process))return function(){return e.deprecate(n,i).apply(this,arguments)};if(!0===r.noDeprecation)return n;var s=!1;return function(){if(!s){if(r.throwDeprecation)throw new Error(i);r.traceDeprecation?console.trace(i):console.error(i),s=!0}return n.apply(this,arguments)}};var s,o={};function a(t,n){var r={seen:[],stylize:u};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),p(n)?r.showHidden=n:n&&e._extend(r,n),y(r.showHidden)&&(r.showHidden=!1),y(r.depth)&&(r.depth=2),y(r.colors)&&(r.colors=!1),y(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=l),c(r,t,r.depth)}function l(t,e){var n=a.styles[e];return n?"["+a.colors[n][0]+"m"+t+"["+a.colors[n][1]+"m":t}function u(t,e){return t}function c(t,n,r){if(t.customInspect&&n&&C(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,t);return v(i)||(i=c(t,i,r)),i}var s=function(t,e){if(y(e))return t.stylize("undefined","undefined");if(v(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}if(g(e))return t.stylize(""+e,"number");if(p(e))return t.stylize(""+e,"boolean");if(m(e))return t.stylize("null","null")}(t,n);if(s)return s;var o=Object.keys(n),a=function(t){var e={};return t.forEach(function(t,n){e[t]=!0}),e}(o);if(t.showHidden&&(o=Object.getOwnPropertyNames(n)),x(n)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return h(n);if(0===o.length){if(C(n)){var l=n.name?": "+n.name:"";return t.stylize("[Function"+l+"]","special")}if(b(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(w(n))return t.stylize(Date.prototype.toString.call(n),"date");if(x(n))return h(n)}var u,_="",A=!1,D=["{","}"];(f(n)&&(A=!0,D=["[","]"]),C(n))&&(_=" [Function"+(n.name?": "+n.name:"")+"]");return b(n)&&(_=" "+RegExp.prototype.toString.call(n)),w(n)&&(_=" "+Date.prototype.toUTCString.call(n)),x(n)&&(_=" "+h(n)),0!==o.length||A&&0!=n.length?r<0?b(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special"):(t.seen.push(n),u=A?function(t,e,n,r,i){for(var s=[],o=0,a=e.length;o<a;++o)T(e,String(o))?s.push(d(t,e,n,r,String(o),!0)):s.push("");return i.forEach(function(i){i.match(/^\d+$/)||s.push(d(t,e,n,r,i,!0))}),s}(t,n,r,a,o):o.map(function(e){return d(t,n,r,a,e,A)}),t.seen.pop(),function(t,e,n){if(t.reduce(function(t,e){return 0,e.indexOf("\n")>=0&&0,t+e.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60)return n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n  ")+" "+n[1];return n[0]+e+" "+t.join(", ")+" "+n[1]}(u,_,D)):D[0]+_+D[1]}function h(t){return"["+Error.prototype.toString.call(t)+"]"}function d(t,e,n,r,i,s){var o,a,l;if((l=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?a=l.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):l.set&&(a=t.stylize("[Setter]","special")),T(r,i)||(o="["+i+"]"),a||(t.seen.indexOf(l.value)<0?(a=m(n)?c(t,l.value,null):c(t,l.value,n-1)).indexOf("\n")>-1&&(a=s?a.split("\n").map(function(t){return"  "+t}).join("\n").substr(2):"\n"+a.split("\n").map(function(t){return"   "+t}).join("\n")):a=t.stylize("[Circular]","special")),y(o)){if(s&&i.match(/^\d+$/))return a;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=t.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=t.stylize(o,"string"))}return o+": "+a}function f(t){return Array.isArray(t)}function p(t){return"boolean"==typeof t}function m(t){return null===t}function g(t){return"number"==typeof t}function v(t){return"string"==typeof t}function y(t){return void 0===t}function b(t){return _(t)&&"[object RegExp]"===A(t)}function _(t){return"object"==typeof t&&null!==t}function w(t){return _(t)&&"[object Date]"===A(t)}function x(t){return _(t)&&("[object Error]"===A(t)||t instanceof Error)}function C(t){return"function"==typeof t}function A(t){return Object.prototype.toString.call(t)}function D(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(y(s)&&(s=Object({NODE_ENV:"production"}).NODE_DEBUG||""),t=t.toUpperCase(),!o[t])if(new RegExp("\\b"+t+"\\b","i").test(s)){var n=r.pid;o[t]=function(){var r=e.format.apply(e,arguments);console.error("%s %d: %s",t,n,r)}}else o[t]=function(){};return o[t]},e.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=f,e.isBoolean=p,e.isNull=m,e.isNullOrUndefined=function(t){return null==t},e.isNumber=g,e.isString=v,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=y,e.isRegExp=b,e.isObject=_,e.isDate=w,e.isError=x,e.isFunction=C,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=n(140);var E=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function T(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){console.log("%s - %s",function(){var t=new Date,e=[D(t.getHours()),D(t.getMinutes()),D(t.getSeconds())].join(":");return[t.getDate(),E[t.getMonth()],e].join(" ")}(),e.format.apply(e,arguments))},e.inherits=n(11),e._extend=function(t,e){if(!e||!_(e))return t;for(var n=Object.keys(e),r=n.length;r--;)t[n[r]]=e[n[r]];return t}}).call(this,n(10),n(15))},function(t,e){t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},function(t,e,n){var r=n(32),i=n(33),s=n(147),o=n(38),a=n(150),l=Math.max;t.exports=function(t,e,n,u){t=i(t)?t:a(t),n=n&&!u?o(n):0;var c=t.length;return n<0&&(n=l(c+n,0)),s(t)?n<=c&&t.indexOf(e,n)>-1:!!c&&r(t,e,n)>-1}},function(t,e){t.exports=function(t,e,n,r){for(var i=t.length,s=n+(r?1:-1);r?s--:++s<i;)if(e(t[s],s,t))return s;return-1}},function(t,e){t.exports=function(t){return t!=t}},function(t,e){t.exports=function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}},function(t,e,n){var r=n(34),i=Object.prototype,s=i.hasOwnProperty,o=i.toString,a=r?r.toStringTag:void 0;t.exports=function(t){var e=s.call(t,a),n=t[a];try{t[a]=void 0;var r=!0}catch(t){}var i=o.call(t);return r&&(e?t[a]=n:delete t[a]),i}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e,n){var r=n(19),i=n(37),s=n(17),o="[object String]";t.exports=function(t){return"string"==typeof t||!i(t)&&s(t)&&r(t)==o}},function(t,e,n){var r=n(149),i=1/0,s=1.7976931348623157e308;t.exports=function(t){return t?(t=r(t))===i||t===-i?(t<0?-1:1)*s:t==t?t:0:0===t?t:0}},function(t,e,n){var r=n(36),i=n(39),s=NaN,o=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return s;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(o,"");var n=l.test(t);return n||u.test(t)?c(t.slice(2),n?2:8):a.test(t)?s:+t}},function(t,e,n){var r=n(151),i=n(152);t.exports=function(t){return null==t?[]:r(t,i(t))}},function(t,e,n){var r=n(40);t.exports=function(t,e){return r(e,function(e){return t[e]})}},function(t,e,n){var r=n(153),i=n(163),s=n(33);t.exports=function(t){return s(t)?r(t):i(t)}},function(t,e,n){var r=n(41),i=n(154),s=n(37),o=n(156),a=n(158),l=n(159),u=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=s(t),c=!n&&i(t),h=!n&&!c&&o(t),d=!n&&!c&&!h&&l(t),f=n||c||h||d,p=f?r(t.length,String):[],m=p.length;for(var g in t)!e&&!u.call(t,g)||f&&("length"==g||h&&("offset"==g||"parent"==g)||d&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||a(g,m))||p.push(g);return p}},function(t,e,n){var r=n(155),i=n(17),s=Object.prototype,o=s.hasOwnProperty,a=s.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(t){return i(t)&&o.call(t,"callee")&&!a.call(t,"callee")};t.exports=l},function(t,e,n){var r=n(19),i=n(17),s="[object Arguments]";t.exports=function(t){return i(t)&&r(t)==s}},function(t,e,n){(function(t){var r=n(35),i=n(157),s="object"==typeof e&&e&&!e.nodeType&&e,o=s&&"object"==typeof t&&t&&!t.nodeType&&t,a=o&&o.exports===s?r.Buffer:void 0,l=(a?a.isBuffer:void 0)||i;t.exports=l}).call(this,n(23)(t))},function(t,e){t.exports=function(){return!1}},function(t,e){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var i=typeof t;return!!(e=null==e?n:e)&&("number"==i||"symbol"!=i&&r.test(t))&&t>-1&&t%1==0&&t<e}},function(t,e,n){var r=n(160),i=n(161),s=n(162),o=s&&s.isTypedArray,a=o?i(o):r;t.exports=a},function(t,e,n){var r=n(19),i=n(69),s=n(17),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,t.exports=function(t){return s(t)&&i(t.length)&&!!o[r(t)]}},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e,n){(function(t){var r=n(68),i="object"==typeof e&&e&&!e.nodeType&&e,s=i&&"object"==typeof t&&t&&!t.nodeType&&t,o=s&&s.exports===i&&r.process,a=function(){try{return o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=a}).call(this,n(23)(t))},function(t,e,n){var r=n(164),i=n(165),s=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=[];for(var n in Object(t))s.call(t,n)&&"constructor"!=n&&e.push(n);return e}},function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},function(t,e,n){var r=n(166)(Object.keys,Object);t.exports=r},function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},function(t,e){t.exports=function(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var s=Array(i);++r<i;)s[r]=t[r+e];return s}},function(t,e,n){var r=n(32);t.exports=function(t,e){for(var n=t.length;n--&&r(e,t[n],0)>-1;);return n}},function(t,e){t.exports=function(t){return t.split("")}},function(t,e){var n="[\\ud800-\\udfff]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",s="[^\\ud800-\\udfff]",o="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+r+"|"+i+")"+"?",u="[\\ufe0e\\ufe0f]?"+l+("(?:\\u200d(?:"+[s,o,a].join("|")+")[\\ufe0e\\ufe0f]?"+l+")*"),c="(?:"+[s+r+"?",r,o,a,n].join("|")+")",h=RegExp(i+"(?="+i+")|"+c+u,"g");t.exports=function(t){return t.match(h)||[]}},function(t,e,n){var r=n(172);t.exports=function(t){if(t>=55296&&t<=57343||t>1114111)return"�";t in r&&(t=r[t]);var e="";t>65535&&(t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|1023&t);return e+=String.fromCharCode(t)}},function(t){t.exports={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376}},function(t){t.exports={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ﬃ",fflig:"ﬀ",ffllig:"ﬄ",Ffr:"𝔉",ffr:"𝔣",filig:"ﬁ",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"ﬂ",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"Ĳ",ijlig:"ĳ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ŉ",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"}},function(t){t.exports={Aacute:"Á",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à",amp:"&",AMP:"&",Aring:"Å",aring:"å",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",brvbar:"¦",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",iquest:"¿",Iuml:"Ï",iuml:"ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",Ntilde:"Ñ",ntilde:"ñ",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",Ograve:"Ò",ograve:"ò",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",Ouml:"Ö",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",THORN:"Þ",thorn:"þ",times:"×",Uacute:"Ú",uacute:"ú",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",Uuml:"Ü",uuml:"ü",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ"}},function(t){t.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}},function(t,e,n){var r=n(21),i=/\s+/g,s=n(73),o=n(177);function a(t,e,n){"object"==typeof t?(n=e,e=t,t=null):"function"==typeof e&&(n=e,e=l),this._callback=t,this._options=e||l,this._elementCB=n,this.dom=[],this._done=!1,this._tagStack=[],this._parser=this._parser||null}var l={normalizeWhitespace:!1,withStartIndices:!1};a.prototype.onparserinit=function(t){this._parser=t},a.prototype.onreset=function(){a.call(this,this._callback,this._options,this._elementCB)},a.prototype.onend=function(){this._done||(this._done=!0,this._parser=null,this._handleCallback(null))},a.prototype._handleCallback=a.prototype.onerror=function(t){if("function"==typeof this._callback)this._callback(t,this.dom);else if(t)throw t},a.prototype.onclosetag=function(){var t=this._tagStack.pop();this._elementCB&&this._elementCB(t)},a.prototype._addDomElement=function(t){var e=this._tagStack[this._tagStack.length-1],n=e?e.children:this.dom,r=n[n.length-1];t.next=null,this._options.withStartIndices&&(t.startIndex=this._parser.startIndex),this._options.withDomLvl1&&(t.__proto__="tag"===t.type?o:s),r?(t.prev=r,r.next=t):t.prev=null,n.push(t),t.parent=e||null},a.prototype.onopentag=function(t,e){var n={type:"script"===t?r.Script:"style"===t?r.Style:r.Tag,name:t,attribs:e,children:[]};this._addDomElement(n),this._tagStack.push(n)},a.prototype.ontext=function(t){var e,n=this._options.normalizeWhitespace||this._options.ignoreWhitespace;!this._tagStack.length&&this.dom.length&&(e=this.dom[this.dom.length-1]).type===r.Text?n?e.data=(e.data+t).replace(i," "):e.data+=t:this._tagStack.length&&(e=this._tagStack[this._tagStack.length-1])&&(e=e.children[e.children.length-1])&&e.type===r.Text?n?e.data=(e.data+t).replace(i," "):e.data+=t:(n&&(t=t.replace(i," ")),this._addDomElement({data:t,type:r.Text}))},a.prototype.oncomment=function(t){var e=this._tagStack[this._tagStack.length-1];if(e&&e.type===r.Comment)e.data+=t;else{var n={data:t,type:r.Comment};this._addDomElement(n),this._tagStack.push(n)}},a.prototype.oncdatastart=function(){var t={children:[{data:"",type:r.Text}],type:r.CDATA};this._addDomElement(t),this._tagStack.push(t)},a.prototype.oncommentend=a.prototype.oncdataend=function(){this._tagStack.pop()},a.prototype.onprocessinginstruction=function(t,e){this._addDomElement({name:t,data:e,type:r.Directive})},t.exports=a},function(t,e,n){var r=n(73),i=t.exports=Object.create(r),s={tagName:"name"};Object.keys(s).forEach(function(t){var e=s[t];Object.defineProperty(i,t,{get:function(){return this[e]||null},set:function(t){return this[e]=t,t}})})},function(t,e,n){var r=n(20),i=r.DomHandler,s=r.DomUtils;function o(t,e){this.init(t,e)}function a(t,e){return s.getElementsByTagName(t,e,!0)}function l(t,e){return s.getElementsByTagName(t,e,!0,1)[0]}function u(t,e,n){return s.getText(s.getElementsByTagName(t,e,n,1)).trim()}function c(t,e,n,r,i){var s=u(n,r,i);s&&(t[e]=s)}n(11)(o,i),o.prototype.init=i;var h=function(t){return"rss"===t||"feed"===t||"rdf:RDF"===t};o.prototype.onend=function(){var t,e,n={},r=l(h,this.dom);r&&("feed"===r.name?(e=r.children,n.type="atom",c(n,"id","id",e),c(n,"title","title",e),(t=l("link",e))&&(t=t.attribs)&&(t=t.href)&&(n.link=t),c(n,"description","subtitle",e),(t=u("updated",e))&&(n.updated=new Date(t)),c(n,"author","email",e,!0),n.items=a("entry",e).map(function(t){var e,n={};return c(n,"id","id",t=t.children),c(n,"title","title",t),(e=l("link",t))&&(e=e.attribs)&&(e=e.href)&&(n.link=e),(e=u("summary",t)||u("content",t))&&(n.description=e),(e=u("updated",t))&&(n.pubDate=new Date(e)),n})):(e=l("channel",r.children).children,n.type=r.name.substr(0,3),n.id="",c(n,"title","title",e),c(n,"link","link",e),c(n,"description","description",e),(t=u("lastBuildDate",e))&&(n.updated=new Date(t)),c(n,"author","managingEditor",e,!0),n.items=a("item",r.children).map(function(t){var e,n={};return c(n,"id","guid",t=t.children),c(n,"title","title",t),c(n,"link","link",t),c(n,"description","description",t),(e=u("pubDate",t))&&(n.pubDate=new Date(e)),n}))),this.dom=n,i.prototype._handleCallback.call(this,r?null:Error("couldn't find root of feed"))},t.exports=o},function(t,e,n){t.exports=i;var r=n(74);function i(t){r.call(this,new s(this),t)}function s(t){this.scope=t}n(11)(i,r),i.prototype.readable=!0;var o=n(20).EVENTS;Object.keys(o).forEach(function(t){if(0===o[t])s.prototype["on"+t]=function(){this.scope.emit(t)};else if(1===o[t])s.prototype["on"+t]=function(e){this.scope.emit(t,e)};else{if(2!==o[t])throw Error("wrong number of arguments!");s.prototype["on"+t]=function(e,n){this.scope.emit(t,e,n)}}})},function(t,e,n){t.exports=i;var r=n(25).EventEmitter;function i(){r.call(this)}n(11)(i,r),i.Readable=n(46),i.Writable=n(192),i.Duplex=n(193),i.Transform=n(194),i.PassThrough=n(195),i.Stream=i,i.prototype.pipe=function(t,e){var n=this;function i(e){t.writable&&!1===t.write(e)&&n.pause&&n.pause()}function s(){n.readable&&n.resume&&n.resume()}n.on("data",i),t.on("drain",s),t._isStdio||e&&!1===e.end||(n.on("end",a),n.on("close",l));var o=!1;function a(){o||(o=!0,t.end())}function l(){o||(o=!0,"function"==typeof t.destroy&&t.destroy())}function u(t){if(c(),0===r.listenerCount(this,"error"))throw t}function c(){n.removeListener("data",i),t.removeListener("drain",s),n.removeListener("end",a),n.removeListener("close",l),n.removeListener("error",u),t.removeListener("error",u),n.removeListener("end",c),n.removeListener("close",c),t.removeListener("close",c)}return n.on("error",u),t.on("error",u),n.on("end",c),n.on("close",c),t.on("close",c),t.emit("pipe",n),t}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){"use strict";e.byteLength=function(t){var e=u(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){for(var e,n=u(t),r=n[0],o=n[1],a=new s(function(t,e,n){return 3*(e+n)/4-n}(0,r,o)),l=0,c=o>0?r-4:r,h=0;h<c;h+=4)e=i[t.charCodeAt(h)]<<18|i[t.charCodeAt(h+1)]<<12|i[t.charCodeAt(h+2)]<<6|i[t.charCodeAt(h+3)],a[l++]=e>>16&255,a[l++]=e>>8&255,a[l++]=255&e;2===o&&(e=i[t.charCodeAt(h)]<<2|i[t.charCodeAt(h+1)]>>4,a[l++]=255&e);1===o&&(e=i[t.charCodeAt(h)]<<10|i[t.charCodeAt(h+1)]<<4|i[t.charCodeAt(h+2)]>>2,a[l++]=e>>8&255,a[l++]=255&e);return a},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,s=[],o=0,a=n-i;o<a;o+=16383)s.push(h(t,o,o+16383>a?a:o+16383));1===i?(e=t[n-1],s.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],s.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"="));return s.join("")};for(var r=[],i=[],s="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,l=o.length;a<l;++a)r[a]=o[a],i[o.charCodeAt(a)]=a;function u(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function c(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}function h(t,e,n){for(var r,i=[],s=e;s<n;s+=3)r=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),i.push(c(r));return i.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,n,r,i){var s,o,a=8*i-r-1,l=(1<<a)-1,u=l>>1,c=-7,h=n?i-1:0,d=n?-1:1,f=t[e+h];for(h+=d,s=f&(1<<-c)-1,f>>=-c,c+=a;c>0;s=256*s+t[e+h],h+=d,c-=8);for(o=s&(1<<-c)-1,s>>=-c,c+=r;c>0;o=256*o+t[e+h],h+=d,c-=8);if(0===s)s=1-u;else{if(s===l)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,r),s-=u}return(f?-1:1)*o*Math.pow(2,s-r)},e.write=function(t,e,n,r,i,s){var o,a,l,u=8*s-i-1,c=(1<<u)-1,h=c>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:s-1,p=r?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,o=c):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))<1&&(o--,l*=2),(e+=o+h>=1?d/l:d*Math.pow(2,1-h))*l>=2&&(o++,l/=2),o+h>=c?(a=0,o=c):o+h>=1?(a=(e*l-1)*Math.pow(2,i),o+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,i),o=0));i>=8;t[n+f]=255&a,f+=p,a/=256,i-=8);for(o=o<<i|a,u+=i;u>0;t[n+f]=255&o,f+=p,o/=256,u-=8);t[n+f-p]|=128*m}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e){},function(t,e,n){"use strict";var r=n(27).Buffer,i=n(187);function s(t,e,n){t.copy(e,n)}t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n},t.prototype.concat=function(t){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var e=r.allocUnsafe(t>>>0),n=this.head,i=0;n;)s(n.data,e,i),i+=n.data.length,n=n.next;return e},t}(),i&&i.inspect&&i.inspect.custom&&(t.exports.prototype[i.inspect.custom]=function(){var t=i.inspect({length:this.length});return this.constructor.name+" "+t})},function(t,e){},function(t,e,n){(function(t){var r=void 0!==t&&t||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function s(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new s(i.call(setTimeout,r,arguments),clearTimeout)},e.setInterval=function(){return new s(i.call(setInterval,r,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},s.prototype.unref=s.prototype.ref=function(){},s.prototype.close=function(){this._clearFn.call(r,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n(189),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(10))},function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var r,i=1,s={},o=!1,a=t.document,l=Object.getPrototypeOf&&Object.getPrototypeOf(t);l=l&&l.setTimeout?l:t,"[object process]"==={}.toString.call(t.process)?r=function(t){e.nextTick(function(){c(t)})}:function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?function(){var e="setImmediate$"+Math.random()+"$",n=function(n){n.source===t&&"string"==typeof n.data&&0===n.data.indexOf(e)&&c(+n.data.slice(e.length))};t.addEventListener?t.addEventListener("message",n,!1):t.attachEvent("onmessage",n),r=function(n){t.postMessage(e+n,"*")}}():t.MessageChannel?function(){var t=new MessageChannel;t.port1.onmessage=function(t){c(t.data)},r=function(e){t.port2.postMessage(e)}}():a&&"onreadystatechange"in a.createElement("script")?function(){var t=a.documentElement;r=function(e){var n=a.createElement("script");n.onreadystatechange=function(){c(e),n.onreadystatechange=null,t.removeChild(n),n=null},t.appendChild(n)}}():r=function(t){setTimeout(c,0,t)},l.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var o={callback:t,args:e};return s[i]=o,r(i),i++},l.clearImmediate=u}function u(t){delete s[t]}function c(t){if(o)setTimeout(c,0,t);else{var e=s[t];if(e){o=!0;try{!function(t){var e=t.callback,r=t.args;switch(r.length){case 0:e();break;case 1:e(r[0]);break;case 2:e(r[0],r[1]);break;case 3:e(r[0],r[1],r[2]);break;default:e.apply(n,r)}}(e)}finally{u(t),o=!1}}}}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,n(10),n(15))},function(t,e,n){(function(e){function n(t){try{if(!e.localStorage)return!1}catch(t){return!1}var n=e.localStorage[t];return null!=n&&"true"===String(n).toLowerCase()}t.exports=function(t,e){if(n("noDeprecation"))return t;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(e);n("traceDeprecation")?console.trace(e):console.warn(e),r=!0}return t.apply(this,arguments)}}}).call(this,n(10))},function(t,e,n){"use strict";t.exports=s;var r=n(78),i=n(22);function s(t){if(!(this instanceof s))return new s(t);r.call(this,t)}i.inherits=n(11),i.inherits(s,r),s.prototype._transform=function(t,e,n){n(null,t)}},function(t,e,n){t.exports=n(48)},function(t,e,n){t.exports=n(14)},function(t,e,n){t.exports=n(46).Transform},function(t,e,n){t.exports=n(46).PassThrough},function(t,e){},function(t,e,n){function r(t){this._cbs=t||{}}t.exports=r;var i=n(20).EVENTS;Object.keys(i).forEach(function(t){if(0===i[t])t="on"+t,r.prototype[t]=function(){this._cbs[t]&&this._cbs[t]()};else if(1===i[t])t="on"+t,r.prototype[t]=function(e){this._cbs[t]&&this._cbs[t](e)};else{if(2!==i[t])throw Error("wrong number of arguments");t="on"+t,r.prototype[t]=function(e,n){this._cbs[t]&&this._cbs[t](e,n)}}})},function(t,e,n){var r=t.exports;[n(199),n(208),n(209),n(210),n(211),n(212)].forEach(function(t){Object.keys(t).forEach(function(e){r[e]=t[e].bind(r)})})},function(t,e,n){var r=n(21),i=n(200),s=r.isTag;t.exports={getInnerHTML:function(t,e){return t.children?t.children.map(function(t){return i(t,e)}).join(""):""},getOuterHTML:i,getText:function t(e){if(Array.isArray(e))return e.map(t).join("");if(s(e)||e.type===r.CDATA)return t(e.children);if(e.type===r.Text)return e.data;return""}}},function(t,e,n){var r=n(201),i=n(202),s={__proto__:null,allowfullscreen:!0,async:!0,autofocus:!0,autoplay:!0,checked:!0,controls:!0,default:!0,defer:!0,disabled:!0,hidden:!0,ismap:!0,loop:!0,multiple:!0,muted:!0,open:!0,readonly:!0,required:!0,reversed:!0,scoped:!0,seamless:!0,selected:!0,typemustmatch:!0},o={__proto__:null,style:!0,script:!0,xmp:!0,iframe:!0,noembed:!0,noframes:!0,plaintext:!0,noscript:!0};var a={__proto__:null,area:!0,base:!0,basefont:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,isindex:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},l=t.exports=function(t,e){Array.isArray(t)||t.cheerio||(t=[t]),e=e||{};for(var n="",i=0;i<t.length;i++){var s=t[i];"root"===s.type?n+=l(s.children,e):r.isTag(s)?n+=u(s,e):s.type===r.Directive?n+=c(s):s.type===r.Comment?n+=f(s):s.type===r.CDATA?n+=d(s):n+=h(s,e)}return n};function u(t,e){"svg"===t.name&&(e={decodeEntities:e.decodeEntities,xmlMode:!0});var n="<"+t.name,r=function(t,e){if(t){var n,r="";for(var o in t)n=t[o],r&&(r+=" "),!n&&s[o]?r+=o:r+=o+'="'+(e.decodeEntities?i.encodeXML(n):n)+'"';return r}}(t.attribs,e);return r&&(n+=" "+r),!e.xmlMode||t.children&&0!==t.children.length?(n+=">",t.children&&(n+=l(t.children,e)),a[t.name]&&!e.xmlMode||(n+="</"+t.name+">")):n+="/>",n}function c(t){return"<"+t.data+">"}function h(t,e){var n=t.data||"";return!e.decodeEntities||t.parent&&t.parent.name in o||(n=i.encodeXML(n)),n}function d(t){return"<![CDATA["+t.children[0].data+"]]>"}function f(t){return"\x3c!--"+t.data+"--\x3e"}},function(t,e){t.exports={Text:"text",Directive:"directive",Comment:"comment",Script:"script",Style:"style",Tag:"tag",CDATA:"cdata",isTag:function(t){return"tag"===t.type||"script"===t.type||"style"===t.type}}},function(t,e,n){var r=n(203),i=n(204);e.decode=function(t,e){return(!e||e<=0?i.XML:i.HTML)(t)},e.decodeStrict=function(t,e){return(!e||e<=0?i.XML:i.HTMLStrict)(t)},e.encode=function(t,e){return(!e||e<=0?r.XML:r.HTML)(t)},e.encodeXML=r.XML,e.encodeHTML4=e.encodeHTML5=e.encodeHTML=r.HTML,e.decodeXML=e.decodeXMLStrict=i.XML,e.decodeHTML4=e.decodeHTML5=e.decodeHTML=i.HTML,e.decodeHTML4Strict=e.decodeHTML5Strict=e.decodeHTMLStrict=i.HTMLStrict,e.escape=r.escape},function(t,e,n){var r=a(n(79)),i=l(r);e.XML=f(r,i);var s=a(n(80)),o=l(s);function a(t){return Object.keys(t).sort().reduce(function(e,n){return e[t[n]]="&"+n+";",e},{})}function l(t){var e=[],n=[];return Object.keys(t).forEach(function(t){1===t.length?e.push("\\"+t):n.push(t)}),n.unshift("["+e.join("")+"]"),new RegExp(n.join("|"),"g")}e.HTML=f(s,o);var u=/[^\0-\x7F]/g,c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;function h(t){return"&#x"+t.charCodeAt(0).toString(16).toUpperCase()+";"}function d(t){return"&#x"+(1024*(t.charCodeAt(0)-55296)+t.charCodeAt(1)-56320+65536).toString(16).toUpperCase()+";"}function f(t,e){function n(e){return t[e]}return function(t){return t.replace(e,n).replace(c,d).replace(u,h)}}var p=l(r);e.escape=function(t){return t.replace(p,h).replace(c,d).replace(u,h)}},function(t,e,n){var r=n(80),i=n(205),s=n(79),o=n(206),a=u(s),l=u(r);function u(t){var e=Object.keys(t).join("|"),n=d(t),r=new RegExp("&(?:"+(e+="|#[xX][\\da-fA-F]+|#\\d+")+");","g");return function(t){return String(t).replace(r,n)}}var c=function(){for(var t=Object.keys(i).sort(h),e=Object.keys(r).sort(h),n=0,s=0;n<e.length;n++)t[s]===e[n]?(e[n]+=";?",s++):e[n]+=";";var o=new RegExp("&(?:"+e.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),a=d(r);function l(t){return";"!==t.substr(-1)&&(t+=";"),a(t)}return function(t){return String(t).replace(o,l)}}();function h(t,e){return t<e?1:-1}function d(t){return function(e){return"#"===e.charAt(1)?"X"===e.charAt(2)||"x"===e.charAt(2)?o(parseInt(e.substr(3),16)):o(parseInt(e.substr(2),10)):t[e.slice(1,-1)]}}t.exports={XML:a,HTML:c,HTMLStrict:l}},function(t){t.exports={Aacute:"Á",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à",amp:"&",AMP:"&",Aring:"Å",aring:"å",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",brvbar:"¦",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",iquest:"¿",Iuml:"Ï",iuml:"ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",Ntilde:"Ñ",ntilde:"ñ",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",Ograve:"Ò",ograve:"ò",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",Ouml:"Ö",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",THORN:"Þ",thorn:"þ",times:"×",Uacute:"Ú",uacute:"ú",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",Uuml:"Ü",uuml:"ü",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ"}},function(t,e,n){var r=n(207);t.exports=function(t){if(t>=55296&&t<=57343||t>1114111)return"�";t in r&&(t=r[t]);var e="";t>65535&&(t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|1023&t);return e+=String.fromCharCode(t)}},function(t){t.exports={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376}},function(t,e){var n=e.getChildren=function(t){return t.children},r=e.getParent=function(t){return t.parent};e.getSiblings=function(t){var e=r(t);return e?n(e):[t]},e.getAttributeValue=function(t,e){return t.attribs&&t.attribs[e]},e.hasAttrib=function(t,e){return!!t.attribs&&hasOwnProperty.call(t.attribs,e)},e.getName=function(t){return t.name}},function(t,e){e.removeElement=function(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){var e=t.parent.children;e.splice(e.lastIndexOf(t),1)}},e.replaceElement=function(t,e){var n=e.prev=t.prev;n&&(n.next=e);var r=e.next=t.next;r&&(r.prev=e);var i=e.parent=t.parent;if(i){var s=i.children;s[s.lastIndexOf(t)]=e}},e.appendChild=function(t,e){if(e.parent=t,1!==t.children.push(e)){var n=t.children[t.children.length-2];n.next=e,e.prev=n,e.next=null}},e.append=function(t,e){var n=t.parent,r=t.next;if(e.next=r,e.prev=t,t.next=e,e.parent=n,r){if(r.prev=e,n){var i=n.children;i.splice(i.lastIndexOf(r),0,e)}}else n&&n.children.push(e)},e.prepend=function(t,e){var n=t.parent;if(n){var r=n.children;r.splice(r.lastIndexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=n,e.prev=t.prev,e.next=t,t.prev=e}},function(t,e,n){var r=n(21).isTag;function i(t,e,n,r){for(var s,o=[],a=0,l=e.length;a<l&&!(t(e[a])&&(o.push(e[a]),--r<=0))&&(s=e[a].children,!(n&&s&&s.length>0&&(s=i(t,s,n,r),o=o.concat(s),(r-=s.length)<=0)));a++);return o}t.exports={filter:function(t,e,n,r){Array.isArray(e)||(e=[e]);"number"==typeof r&&isFinite(r)||(r=1/0);return i(t,e,!1!==n,r)},find:i,findOneChild:function(t,e){for(var n=0,r=e.length;n<r;n++)if(t(e[n]))return e[n];return null},findOne:function t(e,n){var i=null;for(var s=0,o=n.length;s<o&&!i;s++)r(n[s])&&(e(n[s])?i=n[s]:n[s].children.length>0&&(i=t(e,n[s].children)));return i},existsOne:function t(e,n){for(var i=0,s=n.length;i<s;i++)if(r(n[i])&&(e(n[i])||n[i].children.length>0&&t(e,n[i].children)))return!0;return!1},findAll:function t(e,n){var i=[];for(var s=0,o=n.length;s<o;s++)r(n[s])&&(e(n[s])&&i.push(n[s]),n[s].children.length>0&&(i=i.concat(t(e,n[s].children))));return i}}},function(t,e,n){var r=n(21),i=e.isTag=r.isTag;e.testElement=function(t,e){for(var n in t)if(t.hasOwnProperty(n)){if("tag_name"===n){if(!i(e)||!t.tag_name(e.name))return!1}else if("tag_type"===n){if(!t.tag_type(e.type))return!1}else if("tag_contains"===n){if(i(e)||!t.tag_contains(e.data))return!1}else if(!e.attribs||!t[n](e.attribs[n]))return!1}else;return!0};var s={tag_name:function(t){return"function"==typeof t?function(e){return i(e)&&t(e.name)}:"*"===t?i:function(e){return i(e)&&e.name===t}},tag_type:function(t){return"function"==typeof t?function(e){return t(e.type)}:function(e){return e.type===t}},tag_contains:function(t){return"function"==typeof t?function(e){return!i(e)&&t(e.data)}:function(e){return!i(e)&&e.data===t}}};function o(t,e){return"function"==typeof e?function(n){return n.attribs&&e(n.attribs[t])}:function(n){return n.attribs&&n.attribs[t]===e}}function a(t,e){return function(n){return t(n)||e(n)}}e.getElements=function(t,e,n,r){var i=Object.keys(t).map(function(e){var n=t[e];return e in s?s[e](n):o(e,n)});return 0===i.length?[]:this.filter(i.reduce(a),e,n,r)},e.getElementById=function(t,e,n){return Array.isArray(e)||(e=[e]),this.findOne(o("id",t),e,!1!==n)},e.getElementsByTagName=function(t,e,n,r){return this.filter(s.tag_name(t),e,n,r)},e.getElementsByTagType=function(t,e,n,r){return this.filter(s.tag_type(t),e,n,r)}},function(t,e){e.removeSubsets=function(t){for(var e,n,r,i=t.length;--i>-1;){for(e=n=t[i],t[i]=null,r=!0;n;){if(t.indexOf(n)>-1){r=!1,t.splice(i,1);break}n=n.parent}r&&(t[i]=e)}return t};var n=1,r=2,i=4,s=8,o=16,a=e.compareDocumentPosition=function(t,e){var a,l,u,c,h,d,f=[],p=[];if(t===e)return 0;for(a=t;a;)f.unshift(a),a=a.parent;for(a=e;a;)p.unshift(a),a=a.parent;for(d=0;f[d]===p[d];)d++;return 0===d?n:(u=(l=f[d-1]).children,c=f[d],h=p[d],u.indexOf(c)>u.indexOf(h)?l===e?i|o:i:l===t?r|s:r)};e.uniqueSort=function(t){var e,n,s=t.length;for(t=t.slice();--s>-1;)e=t[s],(n=t.indexOf(e))>-1&&n<s&&t.splice(s,1);return t.sort(function(t,e){var n=a(t,e);return n&r?-1:n&i?1:0}),t}},function(t,e,n){function r(t){this._cbs=t||{},this.events=[]}t.exports=r;var i=n(20).EVENTS;Object.keys(i).forEach(function(t){if(0===i[t])t="on"+t,r.prototype[t]=function(){this.events.push([t]),this._cbs[t]&&this._cbs[t]()};else if(1===i[t])t="on"+t,r.prototype[t]=function(e){this.events.push([t,e]),this._cbs[t]&&this._cbs[t](e)};else{if(2!==i[t])throw Error("wrong number of arguments");t="on"+t,r.prototype[t]=function(e,n){this.events.push([t,e,n]),this._cbs[t]&&this._cbs[t](e,n)}}}),r.prototype.onreset=function(){this.events=[],this._cbs.onreset&&this._cbs.onreset()},r.prototype.restart=function(){this._cbs.onreset&&this._cbs.onreset();for(var t=0,e=this.events.length;t<e;t++)if(this._cbs[this.events[t][0]]){var n=this.events[t].length;1===n?this._cbs[this.events[t][0]]():2===n?this._cbs[this.events[t][0]](this.events[t][1]):this._cbs[this.events[t][0]](this.events[t][1],this.events[t][2])}}},function(t,e,n){var r=n(215)(n(229));t.exports=r},function(t,e,n){var r=n(28),i=n(216),s=n(218);t.exports=function(t,e){return s(i(t,e,r),t+"")}},function(t,e,n){var r=n(217),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var s=arguments,o=-1,a=i(s.length-e,0),l=Array(a);++o<a;)l[o]=s[e+o];o=-1;for(var u=Array(e+1);++o<e;)u[o]=s[o];return u[e]=n(l),r(t,this,u)}}},function(t,e){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},function(t,e,n){var r=n(219),i=n(228)(r);t.exports=i},function(t,e,n){var r=n(220),i=n(221),s=n(28),o=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:s;t.exports=o},function(t,e){t.exports=function(t){return function(){return t}}},function(t,e,n){var r=n(222),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},function(t,e,n){var r=n(223),i=n(227);t.exports=function(t,e){var n=i(t,e);return r(n)?n:void 0}},function(t,e,n){var r=n(67),i=n(224),s=n(36),o=n(226),a=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,c=l.toString,h=u.hasOwnProperty,d=RegExp("^"+c.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!s(t)||i(t))&&(r(t)?d:a).test(o(t))}},function(t,e,n){var r=n(225),i=function(){var t=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();t.exports=function(t){return!!i&&i in t}},function(t,e,n){var r=n(35)["__core-js_shared__"];t.exports=r},function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e){var n=800,r=16,i=Date.now;t.exports=function(t){var e=0,s=0;return function(){var o=i(),a=r-(o-s);if(s=o,a>0){if(++e>=n)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,n){var r=n(230),i=n(40),s=n(82),o=n(41),a=n(231),l=Math.max;t.exports=function(t){if(!t||!t.length)return[];var e=0;return t=r(t,function(t){if(a(t))return e=l(t.length,e),!0}),o(e,function(e){return i(t,s(e))})}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,s=[];++n<r;){var o=t[n];e(o,n,t)&&(s[i++]=o)}return s}},function(t,e,n){var r=n(33),i=n(17);t.exports=function(t){return i(t)&&r(t)}},function(t,e,n){var r=n(233),i=n(236),s=n(237),o=n(239),a=n(241),l=n(246),u=n(81);function c(t,e){var n=t.data||"";return n=l.decode(n,e.decodeOptions),e.isInPre?n:u.wordwrap(t.trimLeadingSpace?o(n):n,e)}function h(t,e,n){var r=e(t.children,n);return n.uppercaseHeadings&&(r=r.toUpperCase()),r+"\n"}function d(t,e,n,r){(r=Object.assign({},r)).wordwrap&&(r.wordwrap-=t.length);var i=n(e.children,r);return t+(i=i.replace(/\n/g,"\n"+" ".repeat(t.length)))+"\n"}var f=/^\s*$/;e.text=c,e.image=function(t,e){if(e.ignoreImage)return"";var n="",r=t.attribs||{};return r.alt&&(n+=l.decode(r.alt,e.decodeOptions),r.src&&(n+=" ")),r.src&&(n+="["+r.src+"]"),n},e.lineBreak=function(t,e,n){return"\n"+e(t.children,n)},e.paragraph=function(t,e,n){var r=e(t.children,n);return n.singleNewLineParagraphs?r+"\n":r+"\n\n"},e.anchor=function(t,e,n){var r="",i=n.lineCharCount,s=e(t.children||[],n);s||(s="");var a=t.trimLeadingSpace?o(s):s;return n.ignoreHref||(t.attribs&&t.attribs.href&&(r=t.attribs.href.replace(/^mailto:/,"")),r&&(!n.noAnchorUrl||n.noAnchorUrl&&"#"!==r[0])&&(n.linkHrefBaseUrl&&0===r.indexOf("/")&&(r=n.linkHrefBaseUrl+r),n.hideLinkHrefIfSameAsText&&r===u.replaceAll(a,"\n","")||(n.noLinkBrackets?a+=" "+r:a+=" ["+r+"]"))),n.lineCharCount=i,c({data:a||r,trimLeadingSpace:t.trimLeadingSpace},n)},e.heading=h,e.table=function(t,e,n){var o=[];return t.children.forEach(function t(r){if("tag"===r.type)switch(r.name.toLowerCase()){case"thead":case"tbody":case"tfoot":case"center":return void r.children.forEach(t);case"tr":var a=[];r.children.forEach(function(t){var r,o;if("tag"===t.type)switch(t.name.toLowerCase()){case"th":r=h(t,e,n).split("\n"),a.push(i(r));break;case"td":r=e(t.children,n).split("\n"),a.push(i(r)),t.attribs&&t.attribs.colspan&&(o=t.attribs.colspan-1||0,s(o,function(){a.push([""])}))}}),(a=u.arrayZip(a)).forEach(function(t){t=t.map(function(t){return t||""}),o.push(t)})}}),function(t){var e=t.map(function(t){return t.map(function(t){return t.length})});e=(e=u.arrayZip(e)).map(function(t){return r(t)});var n="";return t.forEach(function(t){var r=0;t.forEach(function(t){n+=a(t.trim(),e[r++]," ")+"   "}),n+="\n"}),n+"\n"}(o)},e.orderedList=function(t,e,n){var r="",i=(t.children||[]).filter(function(t){return"text"!==t.type||!f.test(t.data)}),s=function(){switch(t.attribs.type||"1"){case"a":return function(t,e){return String.fromCharCode(e+t+97)};case"A":return function(t,e){return String.fromCharCode(e+t+65)};case"1":default:return function(t,e){return e+1+t}}}();if(i.length){var o=Number(t.attribs.start||"1")-1,a=(i.length+o).toString().length;i.forEach(function(t,i){var l=s(o,i),u=a-l.toString().length,c=" "+l+". "+" ".repeat(u);r+=d(c,t,e,n)})}return r+"\n"},e.unorderedList=function(t,e,n){var r="",i=n.unorderedListItemPrefix;return(t.children||[]).filter(function(t){return"text"!==t.type||!f.test(t.data)}).forEach(function(t){r+=d(i,t,e,n)}),r+"\n"},e.listItem=d,e.horizontalLine=function(t,e,n){return"\n"+"-".repeat(n.wordwrap)+"\n\n"},e.blockquote=function(t,e,n){return"> "+e(t.children,n)+"\n"}},function(t,e,n){var r=n(234),i=n(235),s=n(28);t.exports=function(t){return t&&t.length?r(t,s,i):void 0}},function(t,e,n){var r=n(39);t.exports=function(t,e,n){for(var i=-1,s=t.length;++i<s;){var o=t[i],a=e(o);if(null!=a&&(void 0===l?a==a&&!r(a):n(a,l)))var l=a,u=o}return u}},function(t,e){t.exports=function(t,e){return t>e}},function(t,e){t.exports=function(t){for(var e=-1,n=null==t?0:t.length,r=0,i=[];++e<n;){var s=t[e];s&&(i[r++]=s)}return i}},function(t,e,n){var r=n(41),i=n(238),s=n(38),o=9007199254740991,a=4294967295,l=Math.min;t.exports=function(t,e){if((t=s(t))<1||t>o)return[];var n=a,u=l(t,a);e=i(e),t-=a;for(var c=r(u,e);++n<t;)e(n);return c}},function(t,e,n){var r=n(28);t.exports=function(t){return"function"==typeof t?t:r}},function(t,e,n){var r=n(24),i=n(42),s=n(240),o=n(43),a=n(45),l=/^\s+/;t.exports=function(t,e,n){if((t=a(t))&&(n||void 0===e))return t.replace(l,"");if(!t||!(e=r(e)))return t;var u=o(t),c=s(u,o(e));return i(u,c).join("")}},function(t,e,n){var r=n(32);t.exports=function(t,e){for(var n=-1,i=t.length;++n<i&&r(e,t[n],0)>-1;);return n}},function(t,e,n){var r=n(242),i=n(83),s=n(38),o=n(45);t.exports=function(t,e,n){t=o(t);var a=(e=s(e))?i(t):0;return e&&a<e?t+r(e-a,n):t}},function(t,e,n){var r=n(243),i=n(24),s=n(42),o=n(44),a=n(83),l=n(43),u=Math.ceil;t.exports=function(t,e){var n=(e=void 0===e?" ":i(e)).length;if(n<2)return n?r(e,t):e;var c=r(e,u(t/a(e)));return o(e)?s(l(c),0,t).join(""):c.slice(0,t)}},function(t,e){var n=9007199254740991,r=Math.floor;t.exports=function(t,e){var i="";if(!t||e<1||e>n)return i;do{e%2&&(i+=t),(e=r(e/2))&&(t+=t)}while(e);return i}},function(t,e,n){var r=n(82)("length");t.exports=r},function(t,e){var n="[\\ud800-\\udfff]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",s="[^\\ud800-\\udfff]",o="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+r+"|"+i+")"+"?",u="[\\ufe0e\\ufe0f]?"+l+("(?:\\u200d(?:"+[s,o,a].join("|")+")[\\ufe0e\\ufe0f]?"+l+")*"),c="(?:"+[s+r+"?",r,o,a,n].join("|")+")",h=RegExp(i+"(?="+i+")|"+c+u,"g");t.exports=function(t){for(var e=h.lastIndex=0;h.test(t);)++e;return e}},function(t,e,n){(function(t,r){var i;/*! https://mths.be/he v1.1.1 by @mathias | MIT license */!function(s){var o="object"==typeof e&&e,a=("object"==typeof t&&t&&t.exports,"object"==typeof r&&r);a.global!==a&&a.window;var l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=/[\x01-\x7F]/g,c=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,h=/<\u20D2|=\u20E5|>\u20D2|\u205F\u200A|\u219D\u0338|\u2202\u0338|\u2220\u20D2|\u2229\uFE00|\u222A\uFE00|\u223C\u20D2|\u223D\u0331|\u223E\u0333|\u2242\u0338|\u224B\u0338|\u224D\u20D2|\u224E\u0338|\u224F\u0338|\u2250\u0338|\u2261\u20E5|\u2264\u20D2|\u2265\u20D2|\u2266\u0338|\u2267\u0338|\u2268\uFE00|\u2269\uFE00|\u226A\u0338|\u226A\u20D2|\u226B\u0338|\u226B\u20D2|\u227F\u0338|\u2282\u20D2|\u2283\u20D2|\u228A\uFE00|\u228B\uFE00|\u228F\u0338|\u2290\u0338|\u2293\uFE00|\u2294\uFE00|\u22B4\u20D2|\u22B5\u20D2|\u22D8\u0338|\u22D9\u0338|\u22DA\uFE00|\u22DB\uFE00|\u22F5\u0338|\u22F9\u0338|\u2933\u0338|\u29CF\u0338|\u29D0\u0338|\u2A6D\u0338|\u2A70\u0338|\u2A7D\u0338|\u2A7E\u0338|\u2AA1\u0338|\u2AA2\u0338|\u2AAC\uFE00|\u2AAD\uFE00|\u2AAF\u0338|\u2AB0\u0338|\u2AC5\u0338|\u2AC6\u0338|\u2ACB\uFE00|\u2ACC\uFE00|\u2AFD\u20E5|[\xA0-\u0113\u0116-\u0122\u0124-\u012B\u012E-\u014D\u0150-\u017E\u0192\u01B5\u01F5\u0237\u02C6\u02C7\u02D8-\u02DD\u0311\u0391-\u03A1\u03A3-\u03A9\u03B1-\u03C9\u03D1\u03D2\u03D5\u03D6\u03DC\u03DD\u03F0\u03F1\u03F5\u03F6\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E\u045F\u2002-\u2005\u2007-\u2010\u2013-\u2016\u2018-\u201A\u201C-\u201E\u2020-\u2022\u2025\u2026\u2030-\u2035\u2039\u203A\u203E\u2041\u2043\u2044\u204F\u2057\u205F-\u2063\u20AC\u20DB\u20DC\u2102\u2105\u210A-\u2113\u2115-\u211E\u2122\u2124\u2127-\u2129\u212C\u212D\u212F-\u2131\u2133-\u2138\u2145-\u2148\u2153-\u215E\u2190-\u219B\u219D-\u21A7\u21A9-\u21AE\u21B0-\u21B3\u21B5-\u21B7\u21BA-\u21DB\u21DD\u21E4\u21E5\u21F5\u21FD-\u2205\u2207-\u2209\u220B\u220C\u220F-\u2214\u2216-\u2218\u221A\u221D-\u2238\u223A-\u2257\u2259\u225A\u225C\u225F-\u2262\u2264-\u228B\u228D-\u229B\u229D-\u22A5\u22A7-\u22B0\u22B2-\u22BB\u22BD-\u22DB\u22DE-\u22E3\u22E6-\u22F7\u22F9-\u22FE\u2305\u2306\u2308-\u2310\u2312\u2313\u2315\u2316\u231C-\u231F\u2322\u2323\u232D\u232E\u2336\u233D\u233F\u237C\u23B0\u23B1\u23B4-\u23B6\u23DC-\u23DF\u23E2\u23E7\u2423\u24C8\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2550-\u256C\u2580\u2584\u2588\u2591-\u2593\u25A1\u25AA\u25AB\u25AD\u25AE\u25B1\u25B3-\u25B5\u25B8\u25B9\u25BD-\u25BF\u25C2\u25C3\u25CA\u25CB\u25EC\u25EF\u25F8-\u25FC\u2605\u2606\u260E\u2640\u2642\u2660\u2663\u2665\u2666\u266A\u266D-\u266F\u2713\u2717\u2720\u2736\u2758\u2772\u2773\u27C8\u27C9\u27E6-\u27ED\u27F5-\u27FA\u27FC\u27FF\u2902-\u2905\u290C-\u2913\u2916\u2919-\u2920\u2923-\u292A\u2933\u2935-\u2939\u293C\u293D\u2945\u2948-\u294B\u294E-\u2976\u2978\u2979\u297B-\u297F\u2985\u2986\u298B-\u2996\u299A\u299C\u299D\u29A4-\u29B7\u29B9\u29BB\u29BC\u29BE-\u29C5\u29C9\u29CD-\u29D0\u29DC-\u29DE\u29E3-\u29E5\u29EB\u29F4\u29F6\u2A00-\u2A02\u2A04\u2A06\u2A0C\u2A0D\u2A10-\u2A17\u2A22-\u2A27\u2A29\u2A2A\u2A2D-\u2A31\u2A33-\u2A3C\u2A3F\u2A40\u2A42-\u2A4D\u2A50\u2A53-\u2A58\u2A5A-\u2A5D\u2A5F\u2A66\u2A6A\u2A6D-\u2A75\u2A77-\u2A9A\u2A9D-\u2AA2\u2AA4-\u2AB0\u2AB3-\u2AC8\u2ACB\u2ACC\u2ACF-\u2ADB\u2AE4\u2AE6-\u2AE9\u2AEB-\u2AF3\u2AFD\uFB00-\uFB04]|\uD835[\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDD6B]/g,d={"­":"shy","‌":"zwnj","‍":"zwj","‎":"lrm","⁣":"ic","⁢":"it","⁡":"af","‏":"rlm","​":"ZeroWidthSpace","⁠":"NoBreak","̑":"DownBreve","⃛":"tdot","⃜":"DotDot","\t":"Tab","\n":"NewLine"," ":"puncsp"," ":"MediumSpace"," ":"thinsp"," ":"hairsp"," ":"emsp13"," ":"ensp"," ":"emsp14"," ":"emsp"," ":"numsp"," ":"nbsp","  ":"ThickSpace","‾":"oline",_:"lowbar","‐":"dash","–":"ndash","—":"mdash","―":"horbar",",":"comma",";":"semi","⁏":"bsemi",":":"colon","⩴":"Colone","!":"excl","¡":"iexcl","?":"quest","¿":"iquest",".":"period","‥":"nldr","…":"mldr","·":"middot","'":"apos","‘":"lsquo","’":"rsquo","‚":"sbquo","‹":"lsaquo","›":"rsaquo",'"':"quot","“":"ldquo","”":"rdquo","„":"bdquo","«":"laquo","»":"raquo","(":"lpar",")":"rpar","[":"lsqb","]":"rsqb","{":"lcub","}":"rcub","⌈":"lceil","⌉":"rceil","⌊":"lfloor","⌋":"rfloor","⦅":"lopar","⦆":"ropar","⦋":"lbrke","⦌":"rbrke","⦍":"lbrkslu","⦎":"rbrksld","⦏":"lbrksld","⦐":"rbrkslu","⦑":"langd","⦒":"rangd","⦓":"lparlt","⦔":"rpargt","⦕":"gtlPar","⦖":"ltrPar","⟦":"lobrk","⟧":"robrk","⟨":"lang","⟩":"rang","⟪":"Lang","⟫":"Rang","⟬":"loang","⟭":"roang","❲":"lbbrk","❳":"rbbrk","‖":"Vert","§":"sect","¶":"para","@":"commat","*":"ast","/":"sol",undefined:null,"&":"amp","#":"num","%":"percnt","‰":"permil","‱":"pertenk","†":"dagger","‡":"Dagger","•":"bull","⁃":"hybull","′":"prime","″":"Prime","‴":"tprime","⁗":"qprime","‵":"bprime","⁁":"caret","`":"grave","´":"acute","˜":"tilde","^":"Hat","¯":"macr","˘":"breve","˙":"dot","¨":"die","˚":"ring","˝":"dblac","¸":"cedil","˛":"ogon","ˆ":"circ","ˇ":"caron","°":"deg","©":"copy","®":"reg","℗":"copysr","℘":"wp","℞":"rx","℧":"mho","℩":"iiota","←":"larr","↚":"nlarr","→":"rarr","↛":"nrarr","↑":"uarr","↓":"darr","↔":"harr","↮":"nharr","↕":"varr","↖":"nwarr","↗":"nearr","↘":"searr","↙":"swarr","↝":"rarrw","↝̸":"nrarrw","↞":"Larr","↟":"Uarr","↠":"Rarr","↡":"Darr","↢":"larrtl","↣":"rarrtl","↤":"mapstoleft","↥":"mapstoup","↦":"map","↧":"mapstodown","↩":"larrhk","↪":"rarrhk","↫":"larrlp","↬":"rarrlp","↭":"harrw","↰":"lsh","↱":"rsh","↲":"ldsh","↳":"rdsh","↵":"crarr","↶":"cularr","↷":"curarr","↺":"olarr","↻":"orarr","↼":"lharu","↽":"lhard","↾":"uharr","↿":"uharl","⇀":"rharu","⇁":"rhard","⇂":"dharr","⇃":"dharl","⇄":"rlarr","⇅":"udarr","⇆":"lrarr","⇇":"llarr","⇈":"uuarr","⇉":"rrarr","⇊":"ddarr","⇋":"lrhar","⇌":"rlhar","⇐":"lArr","⇍":"nlArr","⇑":"uArr","⇒":"rArr","⇏":"nrArr","⇓":"dArr","⇔":"iff","⇎":"nhArr","⇕":"vArr","⇖":"nwArr","⇗":"neArr","⇘":"seArr","⇙":"swArr","⇚":"lAarr","⇛":"rAarr","⇝":"zigrarr","⇤":"larrb","⇥":"rarrb","⇵":"duarr","⇽":"loarr","⇾":"roarr","⇿":"hoarr","∀":"forall","∁":"comp","∂":"part","∂̸":"npart","∃":"exist","∄":"nexist","∅":"empty","∇":"Del","∈":"in","∉":"notin","∋":"ni","∌":"notni","϶":"bepsi","∏":"prod","∐":"coprod","∑":"sum","+":"plus","±":"pm","÷":"div","×":"times","<":"lt","≮":"nlt","<⃒":"nvlt","=":"equals","≠":"ne","=⃥":"bne","⩵":"Equal",">":"gt","≯":"ngt",">⃒":"nvgt","¬":"not","|":"vert","¦":"brvbar","−":"minus","∓":"mp","∔":"plusdo","⁄":"frasl","∖":"setmn","∗":"lowast","∘":"compfn","√":"Sqrt","∝":"prop","∞":"infin","∟":"angrt","∠":"ang","∠⃒":"nang","∡":"angmsd","∢":"angsph","∣":"mid","∤":"nmid","∥":"par","∦":"npar","∧":"and","∨":"or","∩":"cap","∩︀":"caps","∪":"cup","∪︀":"cups","∫":"int","∬":"Int","∭":"tint","⨌":"qint","∮":"oint","∯":"Conint","∰":"Cconint","∱":"cwint","∲":"cwconint","∳":"awconint","∴":"there4","∵":"becaus","∶":"ratio","∷":"Colon","∸":"minusd","∺":"mDDot","∻":"homtht","∼":"sim","≁":"nsim","∼⃒":"nvsim","∽":"bsim","∽̱":"race","∾":"ac","∾̳":"acE","∿":"acd","≀":"wr","≂":"esim","≂̸":"nesim","≃":"sime","≄":"nsime","≅":"cong","≇":"ncong","≆":"simne","≈":"ap","≉":"nap","≊":"ape","≋":"apid","≋̸":"napid","≌":"bcong","≍":"CupCap","≭":"NotCupCap","≍⃒":"nvap","≎":"bump","≎̸":"nbump","≏":"bumpe","≏̸":"nbumpe","≐":"doteq","≐̸":"nedot","≑":"eDot","≒":"efDot","≓":"erDot","≔":"colone","≕":"ecolon","≖":"ecir","≗":"cire","≙":"wedgeq","≚":"veeeq","≜":"trie","≟":"equest","≡":"equiv","≢":"nequiv","≡⃥":"bnequiv","≤":"le","≰":"nle","≤⃒":"nvle","≥":"ge","≱":"nge","≥⃒":"nvge","≦":"lE","≦̸":"nlE","≧":"gE","≧̸":"ngE","≨︀":"lvnE","≨":"lnE","≩":"gnE","≩︀":"gvnE","≪":"ll","≪̸":"nLtv","≪⃒":"nLt","≫":"gg","≫̸":"nGtv","≫⃒":"nGt","≬":"twixt","≲":"lsim","≴":"nlsim","≳":"gsim","≵":"ngsim","≶":"lg","≸":"ntlg","≷":"gl","≹":"ntgl","≺":"pr","⊀":"npr","≻":"sc","⊁":"nsc","≼":"prcue","⋠":"nprcue","≽":"sccue","⋡":"nsccue","≾":"prsim","≿":"scsim","≿̸":"NotSucceedsTilde","⊂":"sub","⊄":"nsub","⊂⃒":"vnsub","⊃":"sup","⊅":"nsup","⊃⃒":"vnsup","⊆":"sube","⊈":"nsube","⊇":"supe","⊉":"nsupe","⊊︀":"vsubne","⊊":"subne","⊋︀":"vsupne","⊋":"supne","⊍":"cupdot","⊎":"uplus","⊏":"sqsub","⊏̸":"NotSquareSubset","⊐":"sqsup","⊐̸":"NotSquareSuperset","⊑":"sqsube","⋢":"nsqsube","⊒":"sqsupe","⋣":"nsqsupe","⊓":"sqcap","⊓︀":"sqcaps","⊔":"sqcup","⊔︀":"sqcups","⊕":"oplus","⊖":"ominus","⊗":"otimes","⊘":"osol","⊙":"odot","⊚":"ocir","⊛":"oast","⊝":"odash","⊞":"plusb","⊟":"minusb","⊠":"timesb","⊡":"sdotb","⊢":"vdash","⊬":"nvdash","⊣":"dashv","⊤":"top","⊥":"bot","⊧":"models","⊨":"vDash","⊭":"nvDash","⊩":"Vdash","⊮":"nVdash","⊪":"Vvdash","⊫":"VDash","⊯":"nVDash","⊰":"prurel","⊲":"vltri","⋪":"nltri","⊳":"vrtri","⋫":"nrtri","⊴":"ltrie","⋬":"nltrie","⊴⃒":"nvltrie","⊵":"rtrie","⋭":"nrtrie","⊵⃒":"nvrtrie","⊶":"origof","⊷":"imof","⊸":"mumap","⊹":"hercon","⊺":"intcal","⊻":"veebar","⊽":"barvee","⊾":"angrtvb","⊿":"lrtri","⋀":"Wedge","⋁":"Vee","⋂":"xcap","⋃":"xcup","⋄":"diam","⋅":"sdot","⋆":"Star","⋇":"divonx","⋈":"bowtie","⋉":"ltimes","⋊":"rtimes","⋋":"lthree","⋌":"rthree","⋍":"bsime","⋎":"cuvee","⋏":"cuwed","⋐":"Sub","⋑":"Sup","⋒":"Cap","⋓":"Cup","⋔":"fork","⋕":"epar","⋖":"ltdot","⋗":"gtdot","⋘":"Ll","⋘̸":"nLl","⋙":"Gg","⋙̸":"nGg","⋚︀":"lesg","⋚":"leg","⋛":"gel","⋛︀":"gesl","⋞":"cuepr","⋟":"cuesc","⋦":"lnsim","⋧":"gnsim","⋨":"prnsim","⋩":"scnsim","⋮":"vellip","⋯":"ctdot","⋰":"utdot","⋱":"dtdot","⋲":"disin","⋳":"isinsv","⋴":"isins","⋵":"isindot","⋵̸":"notindot","⋶":"notinvc","⋷":"notinvb","⋹":"isinE","⋹̸":"notinE","⋺":"nisd","⋻":"xnis","⋼":"nis","⋽":"notnivc","⋾":"notnivb","⌅":"barwed","⌆":"Barwed","⌌":"drcrop","⌍":"dlcrop","⌎":"urcrop","⌏":"ulcrop","⌐":"bnot","⌒":"profline","⌓":"profsurf","⌕":"telrec","⌖":"target","⌜":"ulcorn","⌝":"urcorn","⌞":"dlcorn","⌟":"drcorn","⌢":"frown","⌣":"smile","⌭":"cylcty","⌮":"profalar","⌶":"topbot","⌽":"ovbar","⌿":"solbar","⍼":"angzarr","⎰":"lmoust","⎱":"rmoust","⎴":"tbrk","⎵":"bbrk","⎶":"bbrktbrk","⏜":"OverParenthesis","⏝":"UnderParenthesis","⏞":"OverBrace","⏟":"UnderBrace","⏢":"trpezium","⏧":"elinters","␣":"blank","─":"boxh","│":"boxv","┌":"boxdr","┐":"boxdl","└":"boxur","┘":"boxul","├":"boxvr","┤":"boxvl","┬":"boxhd","┴":"boxhu","┼":"boxvh","═":"boxH","║":"boxV","╒":"boxdR","╓":"boxDr","╔":"boxDR","╕":"boxdL","╖":"boxDl","╗":"boxDL","╘":"boxuR","╙":"boxUr","╚":"boxUR","╛":"boxuL","╜":"boxUl","╝":"boxUL","╞":"boxvR","╟":"boxVr","╠":"boxVR","╡":"boxvL","╢":"boxVl","╣":"boxVL","╤":"boxHd","╥":"boxhD","╦":"boxHD","╧":"boxHu","╨":"boxhU","╩":"boxHU","╪":"boxvH","╫":"boxVh","╬":"boxVH","▀":"uhblk","▄":"lhblk","█":"block","░":"blk14","▒":"blk12","▓":"blk34","□":"squ","▪":"squf","▫":"EmptyVerySmallSquare","▭":"rect","▮":"marker","▱":"fltns","△":"xutri","▴":"utrif","▵":"utri","▸":"rtrif","▹":"rtri","▽":"xdtri","▾":"dtrif","▿":"dtri","◂":"ltrif","◃":"ltri","◊":"loz","○":"cir","◬":"tridot","◯":"xcirc","◸":"ultri","◹":"urtri","◺":"lltri","◻":"EmptySmallSquare","◼":"FilledSmallSquare","★":"starf","☆":"star","☎":"phone","♀":"female","♂":"male","♠":"spades","♣":"clubs","♥":"hearts","♦":"diams","♪":"sung","✓":"check","✗":"cross","✠":"malt","✶":"sext","❘":"VerticalSeparator","⟈":"bsolhsub","⟉":"suphsol","⟵":"xlarr","⟶":"xrarr","⟷":"xharr","⟸":"xlArr","⟹":"xrArr","⟺":"xhArr","⟼":"xmap","⟿":"dzigrarr","⤂":"nvlArr","⤃":"nvrArr","⤄":"nvHarr","⤅":"Map","⤌":"lbarr","⤍":"rbarr","⤎":"lBarr","⤏":"rBarr","⤐":"RBarr","⤑":"DDotrahd","⤒":"UpArrowBar","⤓":"DownArrowBar","⤖":"Rarrtl","⤙":"latail","⤚":"ratail","⤛":"lAtail","⤜":"rAtail","⤝":"larrfs","⤞":"rarrfs","⤟":"larrbfs","⤠":"rarrbfs","⤣":"nwarhk","⤤":"nearhk","⤥":"searhk","⤦":"swarhk","⤧":"nwnear","⤨":"toea","⤩":"tosa","⤪":"swnwar","⤳":"rarrc","⤳̸":"nrarrc","⤵":"cudarrr","⤶":"ldca","⤷":"rdca","⤸":"cudarrl","⤹":"larrpl","⤼":"curarrm","⤽":"cularrp","⥅":"rarrpl","⥈":"harrcir","⥉":"Uarrocir","⥊":"lurdshar","⥋":"ldrushar","⥎":"LeftRightVector","⥏":"RightUpDownVector","⥐":"DownLeftRightVector","⥑":"LeftUpDownVector","⥒":"LeftVectorBar","⥓":"RightVectorBar","⥔":"RightUpVectorBar","⥕":"RightDownVectorBar","⥖":"DownLeftVectorBar","⥗":"DownRightVectorBar","⥘":"LeftUpVectorBar","⥙":"LeftDownVectorBar","⥚":"LeftTeeVector","⥛":"RightTeeVector","⥜":"RightUpTeeVector","⥝":"RightDownTeeVector","⥞":"DownLeftTeeVector","⥟":"DownRightTeeVector","⥠":"LeftUpTeeVector","⥡":"LeftDownTeeVector","⥢":"lHar","⥣":"uHar","⥤":"rHar","⥥":"dHar","⥦":"luruhar","⥧":"ldrdhar","⥨":"ruluhar","⥩":"rdldhar","⥪":"lharul","⥫":"llhard","⥬":"rharul","⥭":"lrhard","⥮":"udhar","⥯":"duhar","⥰":"RoundImplies","⥱":"erarr","⥲":"simrarr","⥳":"larrsim","⥴":"rarrsim","⥵":"rarrap","⥶":"ltlarr","⥸":"gtrarr","⥹":"subrarr","⥻":"suplarr","⥼":"lfisht","⥽":"rfisht","⥾":"ufisht","⥿":"dfisht","⦚":"vzigzag","⦜":"vangrt","⦝":"angrtvbd","⦤":"ange","⦥":"range","⦦":"dwangle","⦧":"uwangle","⦨":"angmsdaa","⦩":"angmsdab","⦪":"angmsdac","⦫":"angmsdad","⦬":"angmsdae","⦭":"angmsdaf","⦮":"angmsdag","⦯":"angmsdah","⦰":"bemptyv","⦱":"demptyv","⦲":"cemptyv","⦳":"raemptyv","⦴":"laemptyv","⦵":"ohbar","⦶":"omid","⦷":"opar","⦹":"operp","⦻":"olcross","⦼":"odsold","⦾":"olcir","⦿":"ofcir","⧀":"olt","⧁":"ogt","⧂":"cirscir","⧃":"cirE","⧄":"solb","⧅":"bsolb","⧉":"boxbox","⧍":"trisb","⧎":"rtriltri","⧏":"LeftTriangleBar","⧏̸":"NotLeftTriangleBar","⧐":"RightTriangleBar","⧐̸":"NotRightTriangleBar","⧜":"iinfin","⧝":"infintie","⧞":"nvinfin","⧣":"eparsl","⧤":"smeparsl","⧥":"eqvparsl","⧫":"lozf","⧴":"RuleDelayed","⧶":"dsol","⨀":"xodot","⨁":"xoplus","⨂":"xotime","⨄":"xuplus","⨆":"xsqcup","⨍":"fpartint","⨐":"cirfnint","⨑":"awint","⨒":"rppolint","⨓":"scpolint","⨔":"npolint","⨕":"pointint","⨖":"quatint","⨗":"intlarhk","⨢":"pluscir","⨣":"plusacir","⨤":"simplus","⨥":"plusdu","⨦":"plussim","⨧":"plustwo","⨩":"mcomma","⨪":"minusdu","⨭":"loplus","⨮":"roplus","⨯":"Cross","⨰":"timesd","⨱":"timesbar","⨳":"smashp","⨴":"lotimes","⨵":"rotimes","⨶":"otimesas","⨷":"Otimes","⨸":"odiv","⨹":"triplus","⨺":"triminus","⨻":"tritime","⨼":"iprod","⨿":"amalg","⩀":"capdot","⩂":"ncup","⩃":"ncap","⩄":"capand","⩅":"cupor","⩆":"cupcap","⩇":"capcup","⩈":"cupbrcap","⩉":"capbrcup","⩊":"cupcup","⩋":"capcap","⩌":"ccups","⩍":"ccaps","⩐":"ccupssm","⩓":"And","⩔":"Or","⩕":"andand","⩖":"oror","⩗":"orslope","⩘":"andslope","⩚":"andv","⩛":"orv","⩜":"andd","⩝":"ord","⩟":"wedbar","⩦":"sdote","⩪":"simdot","⩭":"congdot","⩭̸":"ncongdot","⩮":"easter","⩯":"apacir","⩰":"apE","⩰̸":"napE","⩱":"eplus","⩲":"pluse","⩳":"Esim","⩷":"eDDot","⩸":"equivDD","⩹":"ltcir","⩺":"gtcir","⩻":"ltquest","⩼":"gtquest","⩽":"les","⩽̸":"nles","⩾":"ges","⩾̸":"nges","⩿":"lesdot","⪀":"gesdot","⪁":"lesdoto","⪂":"gesdoto","⪃":"lesdotor","⪄":"gesdotol","⪅":"lap","⪆":"gap","⪇":"lne","⪈":"gne","⪉":"lnap","⪊":"gnap","⪋":"lEg","⪌":"gEl","⪍":"lsime","⪎":"gsime","⪏":"lsimg","⪐":"gsiml","⪑":"lgE","⪒":"glE","⪓":"lesges","⪔":"gesles","⪕":"els","⪖":"egs","⪗":"elsdot","⪘":"egsdot","⪙":"el","⪚":"eg","⪝":"siml","⪞":"simg","⪟":"simlE","⪠":"simgE","⪡":"LessLess","⪡̸":"NotNestedLessLess","⪢":"GreaterGreater","⪢̸":"NotNestedGreaterGreater","⪤":"glj","⪥":"gla","⪦":"ltcc","⪧":"gtcc","⪨":"lescc","⪩":"gescc","⪪":"smt","⪫":"lat","⪬":"smte","⪬︀":"smtes","⪭":"late","⪭︀":"lates","⪮":"bumpE","⪯":"pre","⪯̸":"npre","⪰":"sce","⪰̸":"nsce","⪳":"prE","⪴":"scE","⪵":"prnE","⪶":"scnE","⪷":"prap","⪸":"scap","⪹":"prnap","⪺":"scnap","⪻":"Pr","⪼":"Sc","⪽":"subdot","⪾":"supdot","⪿":"subplus","⫀":"supplus","⫁":"submult","⫂":"supmult","⫃":"subedot","⫄":"supedot","⫅":"subE","⫅̸":"nsubE","⫆":"supE","⫆̸":"nsupE","⫇":"subsim","⫈":"supsim","⫋︀":"vsubnE","⫋":"subnE","⫌︀":"vsupnE","⫌":"supnE","⫏":"csub","⫐":"csup","⫑":"csube","⫒":"csupe","⫓":"subsup","⫔":"supsub","⫕":"subsub","⫖":"supsup","⫗":"suphsub","⫘":"supdsub","⫙":"forkv","⫚":"topfork","⫛":"mlcp","⫤":"Dashv","⫦":"Vdashl","⫧":"Barv","⫨":"vBar","⫩":"vBarv","⫫":"Vbar","⫬":"Not","⫭":"bNot","⫮":"rnmid","⫯":"cirmid","⫰":"midcir","⫱":"topcir","⫲":"nhpar","⫳":"parsim","⫽":"parsl","⫽⃥":"nparsl","♭":"flat","♮":"natur","♯":"sharp","¤":"curren","¢":"cent",$:"dollar","£":"pound","¥":"yen","€":"euro","¹":"sup1","½":"half","⅓":"frac13","¼":"frac14","⅕":"frac15","⅙":"frac16","⅛":"frac18","²":"sup2","⅔":"frac23","⅖":"frac25","³":"sup3","¾":"frac34","⅗":"frac35","⅜":"frac38","⅘":"frac45","⅚":"frac56","⅝":"frac58","⅞":"frac78","𝒶":"ascr","𝕒":"aopf","𝔞":"afr","𝔸":"Aopf","𝔄":"Afr","𝒜":"Ascr","ª":"ordf","á":"aacute","Á":"Aacute","à":"agrave","À":"Agrave","ă":"abreve","Ă":"Abreve","â":"acirc","Â":"Acirc","å":"aring","Å":"angst","ä":"auml","Ä":"Auml","ã":"atilde","Ã":"Atilde","ą":"aogon","Ą":"Aogon","ā":"amacr","Ā":"Amacr","æ":"aelig","Æ":"AElig","𝒷":"bscr","𝕓":"bopf","𝔟":"bfr","𝔹":"Bopf","ℬ":"Bscr","𝔅":"Bfr","𝔠":"cfr","𝒸":"cscr","𝕔":"copf","ℭ":"Cfr","𝒞":"Cscr","ℂ":"Copf","ć":"cacute","Ć":"Cacute","ĉ":"ccirc","Ĉ":"Ccirc","č":"ccaron","Č":"Ccaron","ċ":"cdot","Ċ":"Cdot","ç":"ccedil","Ç":"Ccedil","℅":"incare","𝔡":"dfr","ⅆ":"dd","𝕕":"dopf","𝒹":"dscr","𝒟":"Dscr","𝔇":"Dfr","ⅅ":"DD","𝔻":"Dopf","ď":"dcaron","Ď":"Dcaron","đ":"dstrok","Đ":"Dstrok","ð":"eth","Ð":"ETH","ⅇ":"ee","ℯ":"escr","𝔢":"efr","𝕖":"eopf","ℰ":"Escr","𝔈":"Efr","𝔼":"Eopf","é":"eacute","É":"Eacute","è":"egrave","È":"Egrave","ê":"ecirc","Ê":"Ecirc","ě":"ecaron","Ě":"Ecaron","ë":"euml","Ë":"Euml","ė":"edot","Ė":"Edot","ę":"eogon","Ę":"Eogon","ē":"emacr","Ē":"Emacr","𝔣":"ffr","𝕗":"fopf","𝒻":"fscr","𝔉":"Ffr","𝔽":"Fopf","ℱ":"Fscr","ﬀ":"fflig","ﬃ":"ffilig","ﬄ":"ffllig","ﬁ":"filig",fj:"fjlig","ﬂ":"fllig","ƒ":"fnof","ℊ":"gscr","𝕘":"gopf","𝔤":"gfr","𝒢":"Gscr","𝔾":"Gopf","𝔊":"Gfr","ǵ":"gacute","ğ":"gbreve","Ğ":"Gbreve","ĝ":"gcirc","Ĝ":"Gcirc","ġ":"gdot","Ġ":"Gdot","Ģ":"Gcedil","𝔥":"hfr","ℎ":"planckh","𝒽":"hscr","𝕙":"hopf","ℋ":"Hscr","ℌ":"Hfr","ℍ":"Hopf","ĥ":"hcirc","Ĥ":"Hcirc","ℏ":"hbar","ħ":"hstrok","Ħ":"Hstrok","𝕚":"iopf","𝔦":"ifr","𝒾":"iscr","ⅈ":"ii","𝕀":"Iopf","ℐ":"Iscr","ℑ":"Im","í":"iacute","Í":"Iacute","ì":"igrave","Ì":"Igrave","î":"icirc","Î":"Icirc","ï":"iuml","Ï":"Iuml","ĩ":"itilde","Ĩ":"Itilde","İ":"Idot","į":"iogon","Į":"Iogon","ī":"imacr","Ī":"Imacr","ĳ":"ijlig","Ĳ":"IJlig","ı":"imath","𝒿":"jscr","𝕛":"jopf","𝔧":"jfr","𝒥":"Jscr","𝔍":"Jfr","𝕁":"Jopf","ĵ":"jcirc","Ĵ":"Jcirc","ȷ":"jmath","𝕜":"kopf","𝓀":"kscr","𝔨":"kfr","𝒦":"Kscr","𝕂":"Kopf","𝔎":"Kfr","ķ":"kcedil","Ķ":"Kcedil","𝔩":"lfr","𝓁":"lscr","ℓ":"ell","𝕝":"lopf","ℒ":"Lscr","𝔏":"Lfr","𝕃":"Lopf","ĺ":"lacute","Ĺ":"Lacute","ľ":"lcaron","Ľ":"Lcaron","ļ":"lcedil","Ļ":"Lcedil","ł":"lstrok","Ł":"Lstrok","ŀ":"lmidot","Ŀ":"Lmidot","𝔪":"mfr","𝕞":"mopf","𝓂":"mscr","𝔐":"Mfr","𝕄":"Mopf","ℳ":"Mscr","𝔫":"nfr","𝕟":"nopf","𝓃":"nscr","ℕ":"Nopf","𝒩":"Nscr","𝔑":"Nfr","ń":"nacute","Ń":"Nacute","ň":"ncaron","Ň":"Ncaron","ñ":"ntilde","Ñ":"Ntilde","ņ":"ncedil","Ņ":"Ncedil","№":"numero","ŋ":"eng","Ŋ":"ENG","𝕠":"oopf","𝔬":"ofr","ℴ":"oscr","𝒪":"Oscr","𝔒":"Ofr","𝕆":"Oopf","º":"ordm","ó":"oacute","Ó":"Oacute","ò":"ograve","Ò":"Ograve","ô":"ocirc","Ô":"Ocirc","ö":"ouml","Ö":"Ouml","ő":"odblac","Ő":"Odblac","õ":"otilde","Õ":"Otilde","ø":"oslash","Ø":"Oslash","ō":"omacr","Ō":"Omacr","œ":"oelig","Œ":"OElig","𝔭":"pfr","𝓅":"pscr","𝕡":"popf","ℙ":"Popf","𝔓":"Pfr","𝒫":"Pscr","𝕢":"qopf","𝔮":"qfr","𝓆":"qscr","𝒬":"Qscr","𝔔":"Qfr","ℚ":"Qopf","ĸ":"kgreen","𝔯":"rfr","𝕣":"ropf","𝓇":"rscr","ℛ":"Rscr","ℜ":"Re","ℝ":"Ropf","ŕ":"racute","Ŕ":"Racute","ř":"rcaron","Ř":"Rcaron","ŗ":"rcedil","Ŗ":"Rcedil","𝕤":"sopf","𝓈":"sscr","𝔰":"sfr","𝕊":"Sopf","𝔖":"Sfr","𝒮":"Sscr","Ⓢ":"oS","ś":"sacute","Ś":"Sacute","ŝ":"scirc","Ŝ":"Scirc","š":"scaron","Š":"Scaron","ş":"scedil","Ş":"Scedil","ß":"szlig","𝔱":"tfr","𝓉":"tscr","𝕥":"topf","𝒯":"Tscr","𝔗":"Tfr","𝕋":"Topf","ť":"tcaron","Ť":"Tcaron","ţ":"tcedil","Ţ":"Tcedil","™":"trade","ŧ":"tstrok","Ŧ":"Tstrok","𝓊":"uscr","𝕦":"uopf","𝔲":"ufr","𝕌":"Uopf","𝔘":"Ufr","𝒰":"Uscr","ú":"uacute","Ú":"Uacute","ù":"ugrave","Ù":"Ugrave","ŭ":"ubreve","Ŭ":"Ubreve","û":"ucirc","Û":"Ucirc","ů":"uring","Ů":"Uring","ü":"uuml","Ü":"Uuml","ű":"udblac","Ű":"Udblac","ũ":"utilde","Ũ":"Utilde","ų":"uogon","Ų":"Uogon","ū":"umacr","Ū":"Umacr","𝔳":"vfr","𝕧":"vopf","𝓋":"vscr","𝔙":"Vfr","𝕍":"Vopf","𝒱":"Vscr","𝕨":"wopf","𝓌":"wscr","𝔴":"wfr","𝒲":"Wscr","𝕎":"Wopf","𝔚":"Wfr","ŵ":"wcirc","Ŵ":"Wcirc","𝔵":"xfr","𝓍":"xscr","𝕩":"xopf","𝕏":"Xopf","𝔛":"Xfr","𝒳":"Xscr","𝔶":"yfr","𝓎":"yscr","𝕪":"yopf","𝒴":"Yscr","𝔜":"Yfr","𝕐":"Yopf","ý":"yacute","Ý":"Yacute","ŷ":"ycirc","Ŷ":"Ycirc","ÿ":"yuml","Ÿ":"Yuml","𝓏":"zscr","𝔷":"zfr","𝕫":"zopf","ℨ":"Zfr","ℤ":"Zopf","𝒵":"Zscr","ź":"zacute","Ź":"Zacute","ž":"zcaron","Ž":"Zcaron","ż":"zdot","Ż":"Zdot","Ƶ":"imped","þ":"thorn","Þ":"THORN","ŉ":"napos","α":"alpha","Α":"Alpha","β":"beta","Β":"Beta","γ":"gamma","Γ":"Gamma","δ":"delta","Δ":"Delta","ε":"epsi","ϵ":"epsiv","Ε":"Epsilon","ϝ":"gammad","Ϝ":"Gammad","ζ":"zeta","Ζ":"Zeta","η":"eta","Η":"Eta","θ":"theta","ϑ":"thetav","Θ":"Theta","ι":"iota","Ι":"Iota","κ":"kappa","ϰ":"kappav","Κ":"Kappa","λ":"lambda","Λ":"Lambda","μ":"mu","µ":"micro","Μ":"Mu","ν":"nu","Ν":"Nu","ξ":"xi","Ξ":"Xi","ο":"omicron","Ο":"Omicron","π":"pi","ϖ":"piv","Π":"Pi","ρ":"rho","ϱ":"rhov","Ρ":"Rho","σ":"sigma","Σ":"Sigma","ς":"sigmaf","τ":"tau","Τ":"Tau","υ":"upsi","Υ":"Upsilon","ϒ":"Upsi","φ":"phi","ϕ":"phiv","Φ":"Phi","χ":"chi","Χ":"Chi","ψ":"psi","Ψ":"Psi","ω":"omega","Ω":"ohm","а":"acy","А":"Acy","б":"bcy","Б":"Bcy","в":"vcy","В":"Vcy","г":"gcy","Г":"Gcy","ѓ":"gjcy","Ѓ":"GJcy","д":"dcy","Д":"Dcy","ђ":"djcy","Ђ":"DJcy","е":"iecy","Е":"IEcy","ё":"iocy","Ё":"IOcy","є":"jukcy","Є":"Jukcy","ж":"zhcy","Ж":"ZHcy","з":"zcy","З":"Zcy","ѕ":"dscy","Ѕ":"DScy","и":"icy","И":"Icy","і":"iukcy","І":"Iukcy","ї":"yicy","Ї":"YIcy","й":"jcy","Й":"Jcy","ј":"jsercy","Ј":"Jsercy","к":"kcy","К":"Kcy","ќ":"kjcy","Ќ":"KJcy","л":"lcy","Л":"Lcy","љ":"ljcy","Љ":"LJcy","м":"mcy","М":"Mcy","н":"ncy","Н":"Ncy","њ":"njcy","Њ":"NJcy","о":"ocy","О":"Ocy","п":"pcy","П":"Pcy","р":"rcy","Р":"Rcy","с":"scy","С":"Scy","т":"tcy","Т":"Tcy","ћ":"tshcy","Ћ":"TSHcy","у":"ucy","У":"Ucy","ў":"ubrcy","Ў":"Ubrcy","ф":"fcy","Ф":"Fcy","х":"khcy","Х":"KHcy","ц":"tscy","Ц":"TScy","ч":"chcy","Ч":"CHcy","џ":"dzcy","Џ":"DZcy","ш":"shcy","Ш":"SHcy","щ":"shchcy","Щ":"SHCHcy","ъ":"hardcy","Ъ":"HARDcy","ы":"ycy","Ы":"Ycy","ь":"softcy","Ь":"SOFTcy","э":"ecy","Э":"Ecy","ю":"yucy","Ю":"YUcy","я":"yacy","Я":"YAcy","ℵ":"aleph","ℶ":"beth","ℷ":"gimel","ℸ":"daleth"},f=/["&'<>`]/g,p={'"':"&quot;","&":"&amp;","'":"&#x27;","<":"&lt;",">":"&gt;","`":"&#x60;"},m=/&#(?:[xX][^a-fA-F0-9]|[^0-9xX])/,g=/[\0-\x08\x0B\x0E-\x1F\x7F-\x9F\uFDD0-\uFDEF\uFFFE\uFFFF]|[\uD83F\uD87F\uD8BF\uD8FF\uD93F\uD97F\uD9BF\uD9FF\uDA3F\uDA7F\uDABF\uDAFF\uDB3F\uDB7F\uDBBF\uDBFF][\uDFFE\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,v=/&#([0-9]+)(;?)|&#[xX]([a-fA-F0-9]+)(;?)|&([0-9a-zA-Z]+);|&(Aacute|Agrave|Atilde|Ccedil|Eacute|Egrave|Iacute|Igrave|Ntilde|Oacute|Ograve|Oslash|Otilde|Uacute|Ugrave|Yacute|aacute|agrave|atilde|brvbar|ccedil|curren|divide|eacute|egrave|frac12|frac14|frac34|iacute|igrave|iquest|middot|ntilde|oacute|ograve|oslash|otilde|plusmn|uacute|ugrave|yacute|AElig|Acirc|Aring|Ecirc|Icirc|Ocirc|THORN|Ucirc|acirc|acute|aelig|aring|cedil|ecirc|icirc|iexcl|laquo|micro|ocirc|pound|raquo|szlig|thorn|times|ucirc|Auml|COPY|Euml|Iuml|Ouml|QUOT|Uuml|auml|cent|copy|euml|iuml|macr|nbsp|ordf|ordm|ouml|para|quot|sect|sup1|sup2|sup3|uuml|yuml|AMP|ETH|REG|amp|deg|eth|not|reg|shy|uml|yen|GT|LT|gt|lt)([=a-zA-Z0-9])?/g,y={aacute:"á",Aacute:"Á",abreve:"ă",Abreve:"Ă",ac:"∾",acd:"∿",acE:"∾̳",acirc:"â",Acirc:"Â",acute:"´",acy:"а",Acy:"А",aelig:"æ",AElig:"Æ",af:"⁡",afr:"𝔞",Afr:"𝔄",agrave:"à",Agrave:"À",alefsym:"ℵ",aleph:"ℵ",alpha:"α",Alpha:"Α",amacr:"ā",Amacr:"Ā",amalg:"⨿",amp:"&",AMP:"&",and:"∧",And:"⩓",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",Aogon:"Ą",aopf:"𝕒",Aopf:"𝔸",ap:"≈",apacir:"⩯",ape:"≊",apE:"⩰",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",aring:"å",Aring:"Å",ascr:"𝒶",Ascr:"𝒜",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",Bcy:"Б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",beta:"β",Beta:"Β",beth:"ℶ",between:"≬",bfr:"𝔟",Bfr:"𝔅",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bNot:"⫭",bopf:"𝕓",Bopf:"𝔹",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxhD:"╥",boxHd:"╤",boxHD:"╦",boxhu:"┴",boxhU:"╨",boxHu:"╧",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpe:"≏",bumpE:"⪮",bumpeq:"≏",Bumpeq:"≎",cacute:"ć",Cacute:"Ć",cap:"∩",Cap:"⋒",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",ccaron:"č",Ccaron:"Č",ccedil:"ç",Ccedil:"Ç",ccirc:"ĉ",Ccirc:"Ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",Cdot:"Ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",chcy:"ч",CHcy:"Ч",check:"✓",checkmark:"✓",chi:"χ",Chi:"Χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cire:"≗",cirE:"⧃",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",colone:"≔",Colone:"⩴",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",cscr:"𝒸",Cscr:"𝒞",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",Cup:"⋓",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",dArr:"⇓",Darr:"↡",dash:"‐",dashv:"⊣",Dashv:"⫤",dbkarow:"⤏",dblac:"˝",dcaron:"ď",Dcaron:"Ď",dcy:"д",Dcy:"Д",dd:"ⅆ",DD:"ⅅ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",delta:"δ",Delta:"Δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",Dfr:"𝔇",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",DJcy:"Ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",Dopf:"𝔻",dot:"˙",Dot:"¨",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",downarrow:"↓",Downarrow:"⇓",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",Dscr:"𝒟",dscy:"ѕ",DScy:"Ѕ",dsol:"⧶",dstrok:"đ",Dstrok:"Đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",DZcy:"Џ",dzigrarr:"⟿",eacute:"é",Eacute:"É",easter:"⩮",ecaron:"ě",Ecaron:"Ě",ecir:"≖",ecirc:"ê",Ecirc:"Ê",ecolon:"≕",ecy:"э",Ecy:"Э",eDDot:"⩷",edot:"ė",eDot:"≑",Edot:"Ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",Efr:"𝔈",eg:"⪚",egrave:"è",Egrave:"È",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",Emacr:"Ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",eng:"ŋ",ENG:"Ŋ",ensp:" ",eogon:"ę",Eogon:"Ę",eopf:"𝕖",Eopf:"𝔼",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",Epsilon:"Ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",esim:"≂",Esim:"⩳",eta:"η",Eta:"Η",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",fcy:"ф",Fcy:"Ф",female:"♀",ffilig:"ﬃ",fflig:"ﬀ",ffllig:"ﬄ",ffr:"𝔣",Ffr:"𝔉",filig:"ﬁ",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"ﬂ",fltns:"▱",fnof:"ƒ",fopf:"𝕗",Fopf:"𝔽",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",gamma:"γ",Gamma:"Γ",gammad:"ϝ",Gammad:"Ϝ",gap:"⪆",gbreve:"ğ",Gbreve:"Ğ",Gcedil:"Ģ",gcirc:"ĝ",Gcirc:"Ĝ",gcy:"г",Gcy:"Г",gdot:"ġ",Gdot:"Ġ",ge:"≥",gE:"≧",gel:"⋛",gEl:"⪌",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",Gfr:"𝔊",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",GJcy:"Ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",Gopf:"𝔾",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",gscr:"ℊ",Gscr:"𝒢",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",Gt:"≫",GT:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",HARDcy:"Ъ",harr:"↔",hArr:"⇔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",hcirc:"ĥ",Hcirc:"Ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",hstrok:"ħ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",iacute:"í",Iacute:"Í",ic:"⁣",icirc:"î",Icirc:"Î",icy:"и",Icy:"И",Idot:"İ",iecy:"е",IEcy:"Е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",igrave:"ì",Igrave:"Ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ĳ",IJlig:"Ĳ",Im:"ℑ",imacr:"ī",Imacr:"Ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",Int:"∬",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",iocy:"ё",IOcy:"Ё",iogon:"į",Iogon:"Į",iopf:"𝕚",Iopf:"𝕀",iota:"ι",Iota:"Ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",Itilde:"Ĩ",iukcy:"і",Iukcy:"І",iuml:"ï",Iuml:"Ï",jcirc:"ĵ",Jcirc:"Ĵ",jcy:"й",Jcy:"Й",jfr:"𝔧",Jfr:"𝔍",jmath:"ȷ",jopf:"𝕛",Jopf:"𝕁",jscr:"𝒿",Jscr:"𝒥",jsercy:"ј",Jsercy:"Ј",jukcy:"є",Jukcy:"Є",kappa:"κ",Kappa:"Κ",kappav:"ϰ",kcedil:"ķ",Kcedil:"Ķ",kcy:"к",Kcy:"К",kfr:"𝔨",Kfr:"𝔎",kgreen:"ĸ",khcy:"х",KHcy:"Х",kjcy:"ќ",KJcy:"Ќ",kopf:"𝕜",Kopf:"𝕂",kscr:"𝓀",Kscr:"𝒦",lAarr:"⇚",lacute:"ĺ",Lacute:"Ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",Lambda:"Λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larr:"←",lArr:"⇐",Larr:"↞",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",lAtail:"⤛",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",Lcaron:"Ľ",lcedil:"ļ",Lcedil:"Ļ",lceil:"⌈",lcub:"{",lcy:"л",Lcy:"Л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",leftarrow:"←",Leftarrow:"⇐",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",Leftrightarrow:"⇔",LeftRightArrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",leg:"⋚",lEg:"⪋",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",Lfr:"𝔏",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",LJcy:"Љ",ll:"≪",Ll:"⋘",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",lmidot:"ŀ",Lmidot:"Ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",Longleftarrow:"⟸",LongLeftArrow:"⟵",longleftrightarrow:"⟷",Longleftrightarrow:"⟺",LongLeftRightArrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",Longrightarrow:"⟹",LongRightArrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",Lopf:"𝕃",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",Lstrok:"Ł",lt:"<",Lt:"≪",LT:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",Map:"⤅",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",Mcy:"М",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",mfr:"𝔪",Mfr:"𝔐",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",Mopf:"𝕄",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",mu:"μ",Mu:"Μ",multimap:"⊸",mumap:"⊸",nabla:"∇",nacute:"ń",Nacute:"Ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ŉ",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",Ncaron:"Ň",ncedil:"ņ",Ncedil:"Ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",Ncy:"Н",ndash:"–",ne:"≠",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",nfr:"𝔫",Nfr:"𝔑",nge:"≱",ngE:"≧̸",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",ngt:"≯",nGt:"≫⃒",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",NJcy:"Њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nle:"≰",nlE:"≦̸",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nlt:"≮",nLt:"≪⃒",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",not:"¬",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrarr:"↛",nrArr:"⇏",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",Nscr:"𝒩",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsube:"⊈",nsubE:"⫅̸",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupe:"⊉",nsupE:"⫆̸",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",Ntilde:"Ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",Nu:"Ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",oacute:"ó",Oacute:"Ó",oast:"⊛",ocir:"⊚",ocirc:"ô",Ocirc:"Ô",ocy:"о",Ocy:"О",odash:"⊝",odblac:"ő",Odblac:"Ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",OElig:"Œ",ofcir:"⦿",ofr:"𝔬",Ofr:"𝔒",ogon:"˛",ograve:"ò",Ograve:"Ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",Omacr:"Ō",omega:"ω",Omega:"Ω",omicron:"ο",Omicron:"Ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",Oopf:"𝕆",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",or:"∨",Or:"⩔",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",oscr:"ℴ",Oscr:"𝒪",oslash:"ø",Oslash:"Ø",osol:"⊘",otilde:"õ",Otilde:"Õ",otimes:"⊗",Otimes:"⨷",otimesas:"⨶",ouml:"ö",Ouml:"Ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",pcy:"п",Pcy:"П",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",Pfr:"𝔓",phi:"φ",Phi:"Φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",Pi:"Π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",pr:"≺",Pr:"⪻",prap:"⪷",prcue:"≼",pre:"⪯",prE:"⪳",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",Pscr:"𝒫",psi:"ψ",Psi:"Ψ",puncsp:" ",qfr:"𝔮",Qfr:"𝔔",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",qscr:"𝓆",Qscr:"𝒬",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",racute:"ŕ",Racute:"Ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rArr:"⇒",Rarr:"↠",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",Rarrtl:"⤖",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",Rcaron:"Ř",rcedil:"ŗ",Rcedil:"Ŗ",rceil:"⌉",rcub:"}",rcy:"р",Rcy:"Р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",Rho:"Ρ",rhov:"ϱ",RightAngleBracket:"⟩",rightarrow:"→",Rightarrow:"⇒",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",sacute:"ś",Sacute:"Ś",sbquo:"‚",sc:"≻",Sc:"⪼",scap:"⪸",scaron:"š",Scaron:"Š",sccue:"≽",sce:"⪰",scE:"⪴",scedil:"ş",Scedil:"Ş",scirc:"ŝ",Scirc:"Ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",Scy:"С",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",Sfr:"𝔖",sfrown:"⌢",sharp:"♯",shchcy:"щ",SHCHcy:"Щ",shcy:"ш",SHcy:"Ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",sigma:"σ",Sigma:"Σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",SOFTcy:"Ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",Sopf:"𝕊",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",Sscr:"𝒮",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",Star:"⋆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",sube:"⊆",subE:"⫅",subedot:"⫃",submult:"⫁",subne:"⊊",subnE:"⫋",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup:"⊃",Sup:"⋑",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supe:"⊇",supE:"⫆",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supne:"⊋",supnE:"⫌",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",tau:"τ",Tau:"Τ",tbrk:"⎴",tcaron:"ť",Tcaron:"Ť",tcedil:"ţ",Tcedil:"Ţ",tcy:"т",Tcy:"Т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",Tfr:"𝔗",there4:"∴",therefore:"∴",Therefore:"∴",theta:"θ",Theta:"Θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",thorn:"þ",THORN:"Þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",Topf:"𝕋",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",Tscr:"𝒯",tscy:"ц",TScy:"Ц",tshcy:"ћ",TSHcy:"Ћ",tstrok:"ŧ",Tstrok:"Ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uacute:"ú",Uacute:"Ú",uarr:"↑",uArr:"⇑",Uarr:"↟",Uarrocir:"⥉",ubrcy:"ў",Ubrcy:"Ў",ubreve:"ŭ",Ubreve:"Ŭ",ucirc:"û",Ucirc:"Û",ucy:"у",Ucy:"У",udarr:"⇅",udblac:"ű",Udblac:"Ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",Ufr:"𝔘",ugrave:"ù",Ugrave:"Ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",Umacr:"Ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",uogon:"ų",Uogon:"Ų",uopf:"𝕦",Uopf:"𝕌",uparrow:"↑",Uparrow:"⇑",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",updownarrow:"↕",Updownarrow:"⇕",UpDownArrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",upsilon:"υ",Upsilon:"Υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",Uring:"Ů",urtri:"◹",uscr:"𝓊",Uscr:"𝒰",utdot:"⋰",utilde:"ũ",Utilde:"Ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",Uuml:"Ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",vcy:"в",Vcy:"В",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",vee:"∨",Vee:"⋁",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",vfr:"𝔳",Vfr:"𝔙",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",Vopf:"𝕍",vprop:"∝",vrtri:"⊳",vscr:"𝓋",Vscr:"𝒱",vsubne:"⊊︀",vsubnE:"⫋︀",vsupne:"⊋︀",vsupnE:"⫌︀",Vvdash:"⊪",vzigzag:"⦚",wcirc:"ŵ",Wcirc:"Ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",wfr:"𝔴",Wfr:"𝔚",wopf:"𝕨",Wopf:"𝕎",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",Wscr:"𝒲",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",Xfr:"𝔛",xharr:"⟷",xhArr:"⟺",xi:"ξ",Xi:"Ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",Xopf:"𝕏",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",xscr:"𝓍",Xscr:"𝒳",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",Yacute:"Ý",yacy:"я",YAcy:"Я",ycirc:"ŷ",Ycirc:"Ŷ",ycy:"ы",Ycy:"Ы",yen:"¥",yfr:"𝔶",Yfr:"𝔜",yicy:"ї",YIcy:"Ї",yopf:"𝕪",Yopf:"𝕐",yscr:"𝓎",Yscr:"𝒴",yucy:"ю",YUcy:"Ю",yuml:"ÿ",Yuml:"Ÿ",zacute:"ź",Zacute:"Ź",zcaron:"ž",Zcaron:"Ž",zcy:"з",Zcy:"З",zdot:"ż",Zdot:"Ż",zeetrf:"ℨ",ZeroWidthSpace:"​",zeta:"ζ",Zeta:"Ζ",zfr:"𝔷",Zfr:"ℨ",zhcy:"ж",ZHcy:"Ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",zscr:"𝓏",Zscr:"𝒵",zwj:"‍",zwnj:"‌"},b={aacute:"á",Aacute:"Á",acirc:"â",Acirc:"Â",acute:"´",aelig:"æ",AElig:"Æ",agrave:"à",Agrave:"À",amp:"&",AMP:"&",aring:"å",Aring:"Å",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",brvbar:"¦",ccedil:"ç",Ccedil:"Ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",Eacute:"É",ecirc:"ê",Ecirc:"Ê",egrave:"è",Egrave:"È",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",iacute:"í",Iacute:"Í",icirc:"î",Icirc:"Î",iexcl:"¡",igrave:"ì",Igrave:"Ì",iquest:"¿",iuml:"ï",Iuml:"Ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",Ntilde:"Ñ",oacute:"ó",Oacute:"Ó",ocirc:"ô",Ocirc:"Ô",ograve:"ò",Ograve:"Ò",ordf:"ª",ordm:"º",oslash:"ø",Oslash:"Ø",otilde:"õ",Otilde:"Õ",ouml:"ö",Ouml:"Ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",THORN:"Þ",times:"×",uacute:"ú",Uacute:"Ú",ucirc:"û",Ucirc:"Û",ugrave:"ù",Ugrave:"Ù",uml:"¨",uuml:"ü",Uuml:"Ü",yacute:"ý",Yacute:"Ý",yen:"¥",yuml:"ÿ"},_={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},w=[1,2,3,4,5,6,7,8,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,64976,64977,64978,64979,64980,64981,64982,64983,64984,64985,64986,64987,64988,64989,64990,64991,64992,64993,64994,64995,64996,64997,64998,64999,65e3,65001,65002,65003,65004,65005,65006,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111],x=String.fromCharCode,C={}.hasOwnProperty,A=function(t,e){return C.call(t,e)},D=function(t,e){if(!t)return e;var n,r={};for(n in e)r[n]=A(t,n)?t[n]:e[n];return r},E=function(t,e){var n="";return t>=55296&&t<=57343||t>1114111?(e&&I("character reference outside the permissible Unicode range"),"�"):A(_,t)?(e&&I("disallowed character reference"),_[t]):(e&&function(t,e){for(var n=-1,r=t.length;++n<r;)if(t[n]==e)return!0;return!1}(w,t)&&I("disallowed character reference"),t>65535&&(n+=x((t-=65536)>>>10&1023|55296),t=56320|1023&t),n+=x(t))},T=function(t){return"&#x"+t.toString(16).toUpperCase()+";"},S=function(t){return"&#"+t+";"},I=function(t){throw Error("Parse error: "+t)},k=function(t,e){(e=D(e,k.options)).strict&&g.test(t)&&I("forbidden code point");var n=e.encodeEverything,r=e.useNamedReferences,i=e.allowUnsafeSymbols,s=e.decimal?S:T,o=function(t){return s(t.charCodeAt(0))};return n?(t=t.replace(u,function(t){return r&&A(d,t)?"&"+d[t]+";":o(t)}),r&&(t=t.replace(/&gt;\u20D2/g,"&nvgt;").replace(/&lt;\u20D2/g,"&nvlt;").replace(/&#x66;&#x6A;/g,"&fjlig;")),r&&(t=t.replace(h,function(t){return"&"+d[t]+";"}))):r?(i||(t=t.replace(f,function(t){return"&"+d[t]+";"})),t=(t=t.replace(/&gt;\u20D2/g,"&nvgt;").replace(/&lt;\u20D2/g,"&nvlt;")).replace(h,function(t){return"&"+d[t]+";"})):i||(t=t.replace(f,o)),t.replace(l,function(t){var e=t.charCodeAt(0),n=t.charCodeAt(1);return s(1024*(e-55296)+n-56320+65536)}).replace(c,o)};k.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1,decimal:!1};var L=function(t,e){var n=(e=D(e,L.options)).strict;return n&&m.test(t)&&I("malformed character reference"),t.replace(v,function(t,r,i,s,o,a,l,u){var c,h,d,f,p,m;return r?(d=r,h=i,n&&!h&&I("character reference was not terminated by a semicolon"),c=parseInt(d,10),E(c,n)):s?(f=s,h=o,n&&!h&&I("character reference was not terminated by a semicolon"),c=parseInt(f,16),E(c,n)):a?A(y,p=a)?y[p]:(n&&I("named character reference was not terminated by a semicolon"),t):(p=l,(m=u)&&e.isAttributeValue?(n&&"="==m&&I("`&` did not start a character reference"),t):(n&&I("named character reference was not terminated by a semicolon"),b[p]+(m||"")))})};L.options={isAttributeValue:!1,strict:!1};var M={version:"1.1.1",encode:k,decode:L,escape:function(t){return t.replace(f,function(t){return p[t]})},unescape:L};void 0===(i=function(){return M}.call(e,n,e,t))||(t.exports=i)}()}).call(this,n(23)(t),n(10))},function(t,e,n){var r;void 0===(r=function(t){"use strict";var e=n(13),r=n(5),i=n(50),s=n(249),o=n(254);return r.CompositeView.extend({template:o,ui:{saveAllToCloud:".attachments-save-to-cloud"},events:{"click @ui.saveAllToCloud":"_onSaveAllToCloud"},templateContext:function(){return{moreThanOne:this.collection.length>1}},childView:s,childViewContainer:".attachments",childViewOptions:function(){return{message:this.message}},initialize:function(t){this.message=t.message},viewComparator:function(t,e){return t.get("isImage")&&!e.get("isImage")?-1:!t.get("isImage")&&e.get("isImage")?1:t.get("fileName").localeCompare(e.get("fileName"))},_onSaveAllToCloud:function(t){t.preventDefault();var n=this;i.saveAttachmentsToFiles(this.message,function(){n.getUI("saveAllToCloud").removeClass("icon-folder").addClass("icon-loading-small").prop("disabled",!0)}).catch(e.report).then(function(){n.getUI("saveAllToCloud").addClass("icon-folder").removeClass("icon-loading-small").prop("disabled",!1)})}})}.call(e,n,e,t))||(t.exports=r)},function(t,e){t.exports=function(){var t=[];return{addSection:function(e,n){return t.push({name:e,content:n}),this},addEmptyStepsToReproduce:function(){return this.addSection("Steps to reproduce","1.\n2.\n3."),this},addExpectedActualBehaviour:function(){return this.addSection("Expected behaviour","Tell us what should happen"),this.addSection("Actual behaviour","Tell us what happens instead"),this},addBrowserInfo:function(t,e){return t||(t=browser.name),e||(e=browser.version),this.addSection("Browser",t+" "+e),this},addLogs:function(t,e){return this.addSection(t,"```\n"+e+"\n```"),this},render:function(){return t.reduce(function(t,e){return t+function(t){return"## "+t.name+"\n"+t.content}(e)+"\n\n"},"").trim()}}}},function(e,n,r){var i;void 0===(i=function(e){"use strict";var n=r(2),i=r(4),s=r(5),o=r(13),a=r(3),l=r(50),u=r(250),c=r(253);return s.View.extend({message:void 0,template:c,ui:{downloadButton:".attachment-download",saveToCloudButton:".attachment-save-to-cloud",importCalendarEventButton:".attachment-import.calendar",attachmentImportPopover:".attachment-import-popover"},events:{click:"_onClick","click @ui.saveToCloudButton":"_onSaveToCloud","click @ui.importCalendarEventButton":"_onImportCalendarEvent"},initialize:function(t){this.message=t.message,this.listenTo(a.ui,"document:click",this._closeImportPopover)},_onClick:function(t){if(!t.isDefaultPrevented()){var e=n(t.target);if(e.hasClass("select-calendar")){var r=e.data("calendar-url");return void this._uploadToCalendar(r)}t.preventDefault(),window.open(this.model.get("downloadUrl")),window.focus()}},_onSaveToCloud:function(t){t.preventDefault();var e=this;l.saveAttachmentToFiles(this.message,this.model.get("id"),function(){e.getUI("saveToCloudButton").removeClass("icon-folder").addClass("icon-loading-small").prop("disabled",!0)}).catch(o.report).then(function(){e.getUI("saveToCloudButton").addClass("icon-folder").removeClass("icon-loading-small").prop("disabled",!1)})},_onImportCalendarEvent:function(e){e.preventDefault(),this.getUI("importCalendarEventButton").removeClass("icon-add").addClass("icon-loading-small");var n=this;a.dav.request("calendars").then(function(e){if(e.length>0){n.getUI("attachmentImportPopover").addClass("open");var r=new u({collection:e});r.render(),n.getUI("attachmentImportPopover").html(r.$el)}else a.ui.trigger("error:show",t("mail","No writable calendars found"))}).catch(o.report).then(function(){n.getUI("importCalendarEventButton").removeClass("icon-loading-small").addClass("icon-add")})},_uploadToCalendar:function(e){this._closeImportPopover(),this.getUI("importCalendarEventButton").removeClass("icon-add").addClass("icon-loading-small");var n=this.model.get("downloadUrl"),r=this;a.message.request("attachment:download",n).then(function(n){return a.dav.request("calendar:import",e,n).catch(function(){a.ui.trigger("error:show",t("mail","Error while importing the calendar event"))})}).then(function(){r.getUI("importCalendarEventButton").removeClass("icon-loading-small").addClass("icon-add")}).catch(function(){a.ui.trigger("error:show",t("mail","Error while downloading calendar event")),r.getUI("importCalendarEventButton").removeClass("icon-loading-small").addClass("icon-add")})},_closeImportPopover:function(t){if(i.isUndefined(t))this.getUI("attachmentImportPopover").removeClass("open");else{var e=n(t.target);0===this.$el.find(e).length&&this.getUI("attachmentImportPopover").removeClass("open")}}})}.call(n,r,n,e))||(e.exports=i)},function(t,e,n){var r;void 0===(r=function(t){"use strict";var e=n(5),r=n(251);return e.CollectionView.extend({childView:r,tagName:"ul"})}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r;void 0===(r=function(t){"use strict";var e=n(5),r=n(252);return e.View.extend({template:r,tagName:"li"})}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r=n(6);t.exports=(r.default||r).template({compiler:[7,">= 4.0.0"],main:function(t,e,n,r,i){var s,o=null!=e?e:t.nullContext||{},a=n.helperMissing,l=t.escapeExpression;return'<a class="select-calendar" data-calendar-url="'+l("function"==typeof(s=null!=(s=n.url||(null!=e?e.url:e))?s:a)?s.call(o,{name:"url",hash:{},data:i}):s)+'">'+l("function"==typeof(s=null!=(s=n.displayname||(null!=e?e.displayname:e))?s:a)?s.call(o,{name:"displayname",hash:{},data:i}):s)+"</a>"},useData:!0})},function(t,e,n){var r=n(6);function i(t){return t&&(t.__esModule?t.default:t)}t.exports=(r.default||r).template({1:function(t,e,n,r,i){return'<img class="mail-attached-image" src="'+t.escapeExpression(t.lambda(null!=e?e.downloadUrl:e,e))+'">\n<br>\n'},3:function(t,e,r,s,o){return'<button class="button icon-add attachment-import calendar" title="'+t.escapeExpression(i(n(0)).call(null!=e?e:t.nullContext||{},"Import into calendar",{name:"t",hash:{},data:o}))+'"></button>\n'},compiler:[7,">= 4.0.0"],main:function(t,e,r,s,o){var a,l=null!=e?e:t.nullContext||{},u=t.lambda,c=t.escapeExpression;return(null!=(a=r.if.call(l,null!=e?e.isImage:e,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?a:"")+'<img class="attachment-icon" src="'+c(u(null!=e?e.mimeUrl:e,e))+'" />\n<span class="attachment-name" title="'+c(u(null!=e?e.fileName:e,e))+" ("+c(i(n(85)).call(l,null!=e?e.size:e,{name:"humanFileSize",hash:{},data:o}))+')">'+c(u(null!=e?e.fileName:e,e))+' <span class="attachment-size">('+c(i(n(85)).call(l,null!=e?e.size:e,{name:"humanFileSize",hash:{},data:o}))+")</span></span>\n"+(null!=(a=r.if.call(l,null!=e?e.isCalendarEvent:e,{name:"if",hash:{},fn:t.program(3,o,0),inverse:t.noop,data:o}))?a:"")+'<button class="button icon-download attachment-download" title="'+c(i(n(0)).call(l,"Download attachment",{name:"t",hash:{},data:o}))+'"></button>\n<button class="icon-folder attachment-save-to-cloud" title="'+c(i(n(0)).call(l,"Save to Files",{name:"t",hash:{},data:o}))+'"></button>\n<div class="popovermenu bubble attachment-import-popover hidden"></div>'},useData:!0})},function(t,e,n){var r=n(6);t.exports=(r.default||r).template({1:function(t,e,r,i,s){return'<p>\n\t<button class="icon-folder attachments-save-to-cloud">'+t.escapeExpression(function(t){return t&&(t.__esModule?t.default:t)}(n(0)).call(null!=e?e:t.nullContext||{},"Save all to Files",{name:"t",hash:{},data:s}))+"</button>\n</p>\n"},compiler:[7,">= 4.0.0"],main:function(t,e,n,r,i){var s;return'<div class="attachments">\n\t\n</div>\n'+(null!=(s=n.if.call(null!=e?e:t.nullContext||{},null!=e?e.moreThanOne:e,{name:"if",hash:{},fn:t.program(1,i,0),inverse:t.noop,data:i}))?s:"")},useData:!0})},function(t,e,n){var r=n(6);function i(t){return t&&(t.__esModule?t.default:t)}t.exports=(r.default||r).template({1:function(t,e,r,s,o){var a=null!=e?e:t.nullContext||{},l=t.escapeExpression;return"\t\t("+l(i(n(0)).call(a,"cc",{name:"t",hash:{},data:o}))+" "+l(i(n(51)).call(a,null!=e?e.cc:e,{name:"printAddressList",hash:{},data:o}))+")\n"},3:function(t,e,r,s,o){var a=null!=e?e:t.nullContext||{},l=t.escapeExpression;return'\t\t<div id="show-images-text">\n\t\t\t'+l(i(n(0)).call(a,"The images have been blocked to protect your privacy.",{name:"t",hash:{},data:o}))+'\n\t\t\t<button id="show-images-button">'+l(i(n(0)).call(a,"Show images from this sender",{name:"t",hash:{},data:o}))+'</button>\n\t\t</div>\n\t\t<div class="icon-loading">\n\t\t\t<iframe src="'+l(t.lambda(null!=e?e.htmlBodyUrl:e,e))+'" seamless>\n\t\t\t</iframe>\n\t\t</div>\n'},5:function(t,e,n,r,i){var s;return"\t\t"+(null!=(s=t.lambda(null!=e?e.body:e,e))?s:"")+"\n"},7:function(t,e,n,r,i){var s;return'\t<div class="mail-signature">\n\t\t'+(null!=(s=t.lambda(null!=e?e.signature:e,e))?s:"")+"\n\t</div>\n"},compiler:[7,">= 4.0.0"],main:function(t,e,r,s,o){var a,l=t.lambda,u=t.escapeExpression,c=null!=e?e:t.nullContext||{};return'<div id="mail-message-close" class="icon-close"></div>\n<div id="mail-message-header" class="section">\n\t<h2 title="'+u(l(null!=e?e.subject:e,e))+'">'+u(l(null!=e?e.subject:e,e))+'</h2>\n\t<p class="transparency">\n\t\t'+u(i(n(51)).call(c,null!=e?e.from:e,{name:"printAddressList",hash:{},data:o}))+"\n\t\t"+u(i(n(0)).call(c,"to",{name:"t",hash:{},data:o}))+"\n\t\t"+u(i(n(51)).call(c,null!=e?e.to:e,{name:"printAddressList",hash:{},data:o}))+"\n"+(null!=(a=r.if.call(c,null!=(a=null!=e?e.cc:e)?a.length:a,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?a:"")+'\t</p>\n</div>\n<div class="mail-message-body">\n\t<div id="mail-content">\n'+(null!=(a=r.if.call(c,null!=e?e.hasHtmlBody:e,{name:"if",hash:{},fn:t.program(3,o,0),inverse:t.program(5,o,0),data:o}))?a:"")+"\t</div>\n"+(null!=(a=r.if.call(c,null!=e?e.signature:e,{name:"if",hash:{},fn:t.program(7,o,0),inverse:t.noop,data:o}))?a:"")+'\n\t<div class="mail-message-attachments"></div>\n\t<div id="reply-composer"></div>\n\t<input type="button" id="forward-button" value="'+u(i(n(0)).call(c,"Forward",{name:"t",hash:{},data:o}))+'">\n</div>\n'},useData:!0})},function(t,e,n){var r;
/**
 * @copyright 2017 Christoph Wurst <christoph@winzerhof-wurst.at>
 *
 * @author 2017 Christoph Wurst <christoph@winzerhof-wurst.at>
 *
 * @license GNU AGPL version 3 or any later version
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */void 0===(r=function(t){"use strict";var e=n(4),r=Object.seal({None:0,To:1,Cc:2});return{buildReply:function(t,n){var i=r.None,s=t.folder.account.get("emailAddress"),o=function(t){return t.email===s},a=e.negate(o),l=e.find(n.get("to"),o);e.isUndefined(l)?(l=e.find(n.get("cc"),o),e.isUndefined(l)?l={label:s,email:s}:i=r.Cc):i=r.To;var u=[],c=[];return i===r.To?(u=(u=n.get("to").filter(a)).concat(n.get("from")),c=n.get("cc")):i===r.Cc?(u=n.get("to").concat(n.get("from")),c=n.get("cc").filter(a)):(u=(u=n.get("to")).concat(n.get("from")),c=n.get("cc")),{to:u,from:l?[l]:[],fromEmail:t.folder.account.get("emailAddress"),cc:c,body:""}}}}.call(e,n,e,t))||(t.exports=r)},function(e,n,r){var i;void 0===(i=function(e){"use strict";var n=r(4),i=r(2),s=r(5),o=r(3),a=r(258),l=r(267),u=r(268),c=r(270);return s.CompositeView.extend({collection:null,$scrollContainer:void 0,childView:a,childViewContainer:"#mail-message-list",template:l,currentMessage:null,searchQuery:null,loadingMore:!1,_reloaded:!1,events:{DOMMouseScroll:"onWheel",mousewheel:"onWheel"},initialize:function(t){this.searchQuery=t.searchQuery;var e=this;this.on("dom:refresh",this._bindScrollEvents),o.ui.reply("messagesview:collection",function(){return e.collection}),this.listenTo(o.ui,"messagesview:messages:update",this.refresh),this.listenTo(o.ui,"messagesview:filter",this.filterCurrentMailbox),this.listenTo(o.ui,"messagesview:message:setactive",this.setActiveMessage),this.listenTo(o.message,"messagesview:message:next",this.selectNextMessage),this.listenTo(o.message,"messagesview:message:prev",this.selectPreviousMessage)},_bindScrollEvents:function(){this.$scrollContainer=this.$el.parent(),this.$scrollContainer.scroll(n.bind(this.onScroll,this))},emptyView:function(){return this.searchQuery&&""!==this.searchQuery?c:u},emptyViewOptions:function(){return{searchQuery:this.searchQuery}},setActiveMessage:function(t){this.collection.forEach(function(t){t.set("active",!1)}),this.currentMessage=t,null!==t&&t.set("active",!0),r(1).currentMessage=t,o.ui.trigger("title:update")},selectNextMessage:function(){if(null!==this.currentMessage){var t=this.collection.get(this.currentMessage);if(null!==t&&this.collection.indexOf(t)!==this.collection.length-1){var e=this.collection.at(this.collection.indexOf(t)+1);if(e){var n=e.folder,r=n.account;o.message.trigger("load",r,n,e,{force:!0})}}}},selectPreviousMessage:function(){if(null!==this.currentMessage){var t=this.collection.get(this.currentMessage);if(null!==t&&0!==this.collection.indexOf(t)){var e=this.collection.at(this.collection.indexOf(t)-1);if(e){var n=e.folder,r=n.account;o.message.trigger("load",r,n,e,{force:!0})}}}},refresh:function(){r(1).currentAccount&&r(1).currentFolder&&this._syncMessages()},onScroll:function(){if(this._reloaded)this._reloaded=!1;else if(!0!==this.loadingMore)return 0===this.$scrollContainer.scrollTop()?(this.loadingMore=!0,void this._syncMessages()):this.$scrollContainer.scrollTop()+this.$scrollContainer.height()>this.$el.height()-150?(this.loadingMore=!0,void this._loadNextMessages()):void 0},onWheel:function(t){t.originalEvent.wheelDelta&&t.originalEvent.wheelDelta>0?this.onScroll():t.originalEvent.detail&&t.originalEvent.detail<0&&this.onScroll()},filterCurrentMailbox:function(t){this.filterCriteria={text:t},this._syncMessages()},_loadNextMessages:function(){this.$("#load-more-mail-messages").addClass("icon-loading-small");var e=r(1).currentAccount,n=r(1).currentFolder;return o.message.request("next-page",e,n,{filter:this.searchQuery||""}).then(function(){o.ui.trigger("messagesview:message:setactive",r(1).currentMessage)},function(){o.ui.trigger("error:show",t("mail","Error while loading messages."))}).then(function(){this.$("#load-more-mail-messages").removeClass("icon-loading-small"),this.loadingMore=!1,this._reloaded=!1}.bind(this),console.error.bind(this))},_syncMessages:function(){i("#mail-message-list-loading").css("opacity",0).slideDown("slow").animate({opacity:1},{queue:!1,duration:"slow"});var e=r(1).currentFolder;return o.sync.request("sync:folder",e).catch(function(e){console.error(e),o.ui.trigger("error:show",t("mail","Error while refreshing messages."))}).then(function(){i("#mail-message-list-loading").css("opacity",1).slideUp("slow").animate({opacity:0},{queue:!1,duration:"slow",complete:function(){this.loadingMore=!1}.bind(this)}),this._reloaded=!0}.bind(this),console.error.bind(this))},onBeforeRender:function(){this.$scrollContainer&&(this._prevScrollTop=this.$scrollContainer.scrollTop())},onRender:function(){this.$scrollContainer&&this._prevScrollTop&&this.$scrollContainer.scrollTop(this._prevScrollTop)}})}.call(n,r,n,e))||(e.exports=i)},function(e,n,r){var i;void 0===(i=function(e){"use strict";var n=r(2);r(86);var i=r(4),s=r(5),o=r(13),a=r(3),l=r(264),u=r(63),c=r(64);return s.View.extend({template:l,ui:{iconDelete:".action.delete",star:".star"},events:{"click .action.delete":"deleteMessage","click .mail-message-header":"openMessage","click .star":"toggleMessageStar"},modelEvents:{change:"render"},_getMessageLabel:function(){var e=[];switch((e="sent"===this.model.folder.get("specialRole")?this.model.get("to"):this.model.get("from")).length){case 0:return"-";case 1:return e[0].label;default:return e[0].label+" "+t("mail","& others")}},serializeModel:function(){var t=this.model.toJSON();return t.isUnified=r(1).currentAccount&&r(1).currentAccount.get("isUnified"),t.sender=this.model.get("from")[0],t.label=this._getMessageLabel(),t},onRender:function(){this.$el=this.$el.children(),this.$el.unwrap(),this.setElement(this.$el);var t=this.model.get("from")[0].label;t&&i.each(this.$el.find(".avatar"),function(e){n(e).height("32px"),u(e,t,t)});var e=this,r="folder-"+this.model.folder.account.get("accountId");this.$el.draggable({appendTo:"#content-wrapper",scope:r,helper:function(){var t=n('<div class="icon-mail"></div>');return t.data("folderId",e.model.folder.get("id")),t.data("messageId",e.model.get("id")),t},cursorAt:{top:-5,left:-5},revert:"invalid"}),c(".action.delete",{placement:"left"}),this._fetchAvatar()},_fetchAvatar:function(){a.avatar.request("avatar",this.model.get("fromEmail")).then(function(t){t&&this.model.set("senderImage",t)}.bind(this)).catch(o.report)},toggleMessageStar:function(t){t.stopPropagation();var e=this.model.get("flags").get("flagged");e?this.getUI("star").removeClass("icon-starred").addClass("icon-star"):this.getUI("star").removeClass("icon-star").addClass("icon-starred"),a.message.trigger("flag",this.model,"flagged",!e)},openMessage:function(t){t.stopPropagation(),n("#mail-message").removeClass("hidden-mobile"),a.message.trigger("flag",this.model,"unseen",!1),a.message.trigger("load",this.model.folder.account,this.model.folder,this.model,{force:!0})},deleteMessage:function(t){t.stopPropagation();var e=this.model;this.getUI("iconDelete").removeClass("icon-delete").addClass("icon-loading-small"),n(".tooltip").remove(),this.$el.addClass("transparency").slideUp(function(){n(".tooltip").remove(),a.folder.request("message:delete",e,r(1).currentFolder),t.clientX&&n(document.elementFromPoint(t.clientX,t.clientY)).trigger("mouseover")})}})}.call(n,r,n,e))||(e.exports=i)},function(t,e,n){var r,i,s;i=[n(2),n(9)],void 0===(s="function"==typeof(r=function(t){return t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase())})?r.apply(e,i):r)||(t.exports=s)},function(t,e,n){var r,i,s;
/*!
 * jQuery UI :data 1.12.1
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */i=[n(2),n(9)],void 0===(s="function"==typeof(r=function(t){return t.extend(t.expr[":"],{data:t.expr.createPseudo?t.expr.createPseudo(function(e){return function(n){return!!t.data(n,e)}}):function(e,n,r){return!!t.data(e,r[3])}})})?r.apply(e,i):r)||(t.exports=s)},function(t,e,n){var r,i,s;i=[n(2),n(9)],void 0===(s="function"==typeof(r=function(t){return t.ui.plugin={add:function(e,n,r){var i,s=t.ui[e].prototype;for(i in r)s.plugins[i]=s.plugins[i]||[],s.plugins[i].push([n,r[i]])},call:function(t,e,n,r){var i,s=t.plugins[e];if(s&&(r||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(i=0;i<s.length;i++)t.options[s[i][0]]&&s[i][1].apply(t.element,n)}}})?r.apply(e,i):r)||(t.exports=s)},function(t,e,n){var r,i,s;i=[n(2),n(9)],void 0===(s="function"==typeof(r=function(t){return t.ui.safeBlur=function(e){e&&"body"!==e.nodeName.toLowerCase()&&t(e).trigger("blur")}})?r.apply(e,i):r)||(t.exports=s)},function(t,e,n){var r,i,s;
/*!
 * jQuery UI Scroll Parent 1.12.1
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */i=[n(2),n(9)],void 0===(s="function"==typeof(r=function(t){return t.fn.scrollParent=function(e){var n=this.css("position"),r="absolute"===n,i=e?/(auto|scroll|hidden)/:/(auto|scroll)/,s=this.parents().filter(function(){var e=t(this);return(!r||"static"!==e.css("position"))&&i.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))}).eq(0);return"fixed"!==n&&s.length?s:t(this[0].ownerDocument||document)}})?r.apply(e,i):r)||(t.exports=s)},function(t,e,n){var r=n(6);function i(t){return t&&(t.__esModule?t.default:t)}t.exports=(r.default||r).template({1:function(t,e,n,r,i){return"unseen"},3:function(t,e,n,r,i){return"active"},5:function(t,e,r,s,o){return'\t<div class="mail-message-account-color" style="background-color: '+t.escapeExpression(i(n(88)).call(null!=e?e:t.nullContext||{},null!=e?e.accountMail:e,{name:"accountColor",hash:{},data:o}))+'"></div>\n'},7:function(t,e,n,r,i){return'\t\t\t<img src="'+t.escapeExpression(t.lambda(null!=e?e.senderImage:e,e))+'" width="32px" height="32px" />\n'},9:function(t,e,n,r,i){var s;return'\t\t\t<div class="avatar" data-user="'+t.escapeExpression(t.lambda(null!=(s=null!=e?e.sender:e)?s.label:s,e))+'" data-size="32"></div>\n'},11:function(t,e,n,r,i){return'\t\t<div class="star icon-starred" data-starred="true"></div>\n'},13:function(t,e,n,r,i){return'\t\t<div class="star icon-star" data-starred="false"></div>\n'},15:function(t,e,n,r,i){return'\t\t<div class="icon-reply"></div>\n'},17:function(t,e,n,r,i){return'\t\t<div class="icon-public icon-attachment"></div>\n'},compiler:[7,">= 4.0.0"],main:function(t,e,r,s,o){var a,l=null!=e?e:t.nullContext||{},u=t.lambda,c=t.escapeExpression;return'<div class="mail-message-summary '+(null!=(a=r.if.call(l,null!=(a=null!=e?e.flags:e)?a.unseen:a,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?a:"")+" "+(null!=(a=r.if.call(l,null!=e?e.active:e,{name:"if",hash:{},fn:t.program(3,o,0),inverse:t.noop,data:o}))?a:"")+'" data-message-id="'+c(u(null!=e?e.id:e,e))+'">\n'+(null!=(a=r.if.call(l,null!=e?e.isUnified:e,{name:"if",hash:{},fn:t.program(5,o,0),inverse:t.noop,data:o}))?a:"")+'\t<div class="mail-message-header">\n\t\t<div class="sender-image avatardiv">\n'+(null!=(a=r.if.call(l,null!=e?e.senderImage:e,{name:"if",hash:{},fn:t.program(7,o,0),inverse:t.program(9,o,0),data:o}))?a:"")+"\t\t</div>\n\n"+(null!=(a=r.if.call(l,null!=(a=null!=e?e.flags:e)?a.flagged:a,{name:"if",hash:{},fn:t.program(11,o,0),inverse:t.program(13,o,0),data:o}))?a:"")+"\n"+(null!=(a=r.if.call(l,null!=(a=null!=e?e.flags:e)?a.answered:a,{name:"if",hash:{},fn:t.program(15,o,0),inverse:t.noop,data:o}))?a:"")+"\n"+(null!=(a=r.if.call(l,null!=(a=null!=e?e.flags:e)?a.hasAttachments:a,{name:"if",hash:{},fn:t.program(17,o,0),inverse:t.noop,data:o}))?a:"")+'\n\t\t<div class="mail-message-summary-from" title="'+c(u(null!=e?e.label:e,e))+'">'+c(u(null!=e?e.label:e,e))+'</div>\n\t\t<div class="mail-message-summary-subject" title="'+c(u(null!=e?e.subject:e,e))+'">\n\t\t\t'+c(u(null!=e?e.subject:e,e))+'\n\t\t</div>\n\t\t<div class="date">\n\t\t\t\t<span class="modified live-relative-timestamp"\n\t\t\t\t\tdata-timestamp="'+c(u(null!=e?e.dateMicro:e,e))+'"\n\t\t\t\t\ttitle="'+c(i(n(265)).call(l,null!=e?e.dateInt:e,{name:"formatDate",hash:{},data:o}))+'">\n\t\t\t\t\t'+c(i(n(266)).call(l,null!=e?e.dateInt:e,{name:"relativeModifiedDate",hash:{},data:o}))+'\n\t\t\t\t</span>\n\t\t</div>\n\t\t<div class="icon-delete action delete" title="'+c(u(null!=e?e.delete:e,e))+'"></div>\n\t</div>\n</div>\n'},useData:!0})},function(t,e,n){var r;void 0===(r=function(){"use strict";return function(t){var e=new Date(1e3*t);return formatDate(e)}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r;void 0===(r=function(){"use strict";return function(t){var e=new Date(1e3*t),n=Math.round(e.getTime()/1e3);return relative_modified_date(n)}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r=n(6);t.exports=(r.default||r).template({compiler:[7,">= 4.0.0"],main:function(t,e,n,r,i){return'<div id="mail-message-list-loading"\n     class="icon-loading-small"\n     style="display: none"></div>\n<div id="mail-message-list"></div>\n<div id="load-more-mail-messages"></div>'},useData:!0})},function(t,e,n){var r;void 0===(r=function(t){"strict";var e=n(5),r=n(269);return e.View.extend({id:"emptycontent",template:r})}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r=n(6);t.exports=(r.default||r).template({compiler:[7,">= 4.0.0"],main:function(t,e,r,i,s){return'<div class="icon-mail"></div>\n<h2>'+t.escapeExpression(function(t){return t&&(t.__esModule?t.default:t)}(n(0)).call(null!=e?e:t.nullContext||{},"No messages in this folder",{name:"t",hash:{},data:s}))+"</h2>\n"},useData:!0})},function(t,e,n){var r;void 0===(r=function(t){"use strict";var e=n(5),r=n(271);return e.View.extend({initialize:function(t){this.model.set("searchTerm",t.searchQuery)},template:r})}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r=n(6);t.exports=(r.default||r).template({compiler:[7,">= 4.0.0"],main:function(t,e,r,i,s){var o=t.escapeExpression;return'<div id="emptycontent" class="emptycontent-search">\n\t<div class="icon-search"></div>\n\t<h2>'+o(function(t){return t&&(t.__esModule?t.default:t)}(n(0)).call(null!=e?e:t.nullContext||{},"No search results for",{name:"t",hash:{},data:s}))+" "+o(t.lambda(null!=e?e.searchTerm:e,e))+"</h2>\n</div>"},useData:!0})},function(t,e,n){var r=n(6);t.exports=(r.default||r).template({1:function(t,e,n,r,i){return'<div class="'+t.escapeExpression(t.lambda(null!=e?e.icon:e,e))+'"></div>'},3:function(t,e,r,i,s){return'\t<br>\n\t<button class="retry">'+t.escapeExpression(function(t){return t&&(t.__esModule?t.default:t)}(n(0)).call(null!=e?e:t.nullContext||{},"Try again",{name:"t",hash:{},data:s}))+"</button>\n"},compiler:[7,">= 4.0.0"],main:function(t,e,n,r,i){var s,o=null!=e?e:t.nullContext||{};return'<div class="">\n\t'+(null!=(s=n.if.call(o,null!=e?e.icon:e,{name:"if",hash:{},fn:t.program(1,i,0),inverse:t.noop,data:i}))?s:"")+"\n\t<h2>"+(null!=(s=t.lambda(null!=e?e.text:e,e))?s:"")+"</h2>\n"+(null!=(s=n.if.call(o,null!=e?e.canRetry:e,{name:"if",hash:{},fn:t.program(3,i,0),inverse:t.noop,data:i}))?s:"")+"</div>"},useData:!0})},function(t,e,n){var r=n(6);t.exports=(r.default||r).template({1:function(t,e,n,r,i){var s,o;return'<div class="emptycontent">\n\t<a class="icon-loading"></a>\n\t<h2>'+(null!=(s="function"==typeof(o=null!=(o=n.hint||(null!=e?e.hint:e))?o:n.helperMissing)?o.call(null!=e?e:t.nullContext||{},{name:"hint",hash:{},data:i}):o)?s:"")+"</h2>\n</div>\n"},3:function(t,e,n,r,i){return'<div class="container icon-loading"></div>\n'},compiler:[7,">= 4.0.0"],main:function(t,e,n,r,i){var s;return null!=(s=n.if.call(null!=e?e:t.nullContext||{},null!=e?e.hint:e,{name:"if",hash:{},fn:t.program(1,i,0),inverse:t.program(3,i,0),data:i}))?s:""},useData:!0})},function(t,e,n){var r=n(6);t.exports=(r.default||r).template({compiler:[7,">= 4.0.0"],main:function(t,e,n,r,i){return'<div id="mail-messages"></div>\n<div id="mail-message" class=" hidden-mobile"></div>'},useData:!0})},function(t,e,n){var r;void 0===(r=function(t){"use strict";var e=n(5),r=n(276);return e.View.extend({template:r,className:"container"})}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r=n(6);t.exports=(r.default||r).template({compiler:[7,">= 4.0.0"],main:function(t,e,n,r,i){return'<div class="container hidden-mobile"></div>\n'},useData:!0})},function(t,e,n){var r;void 0===(r=function(t){"use strict";var e=n(4),r=n(2),i=n(5),s=n(278),o=n(3);return i.CollectionView.extend({tagName:"ul",id:"app-navigation-accounts",className:"with-icon",collection:null,childView:s,initialize:function(){this.listenTo(o.ui,"folder:changed",this.onFolderChanged),this.listenTo(o.folder,"setactive",this.setFolderActive)},setFolderActive:function(t,r){n(1).accounts.each(function(t){var r=n(1).accounts.get(t.get("accountId"));if(!e.isUndefined(r)){var i=r.folders;e.each(i.models,function(t){i.get(t).set("active",!1)})}}),r&&r.set("active",!0)},onFolderChanged:function(){r("#mail-message").addClass("hidden-mobile")}})}.call(e,n,e,t))||(t.exports=r)},function(e,n,r){var i;void 0===(i=function(e){"use strict";var n=r(5),i=r(7),s=r(3),o=r(89),a=r(282);return n.View.extend({template:a,templateContext:function(){var e=this.collapsed?t("mail","Show all folders"):t("mail","Collapse folders");return{isUnifiedInbox:-1===this.model.get("accountId"),toggleCollapseMessage:e,hasMenu:-1!==this.model.get("accountId"),hasFolders:this.model.folders.length>0,isDeletable:-2!==this.model.get("accountId")}},events:{"click .account-toggle-collapse":"toggleCollapse","click .app-navigation-entry-utils-menu-button button":"toggleMenu","click @ui.deleteButton":"onDelete","click @ui.settingsButton":"showAccountSettings","click @ui.email":"onClick"},regions:{folders:{el:".folders",replaceElement:!0}},ui:{email:".mail-account-email",menu:".app-navigation-entry-menu",settingsButton:".action-settings",deleteButton:".action-delete"},className:"navigation-account",menuShown:!1,collapsed:!0,initialize:function(t){this.model=t.model},toggleCollapse:function(){this.collapsed=!this.collapsed,this.render()},toggleMenu:function(t){t.preventDefault(),this.menuShown=!this.menuShown,this.toggleMenuClass()},toggleMenuClass:function(){this.getUI("menu").toggleClass("open",this.menuShown)},onDelete:function(e){e.stopPropagation(),this.getUI("deleteButton").find(".icon-delete").removeClass("icon-delete").addClass("icon-loading-small");var n=this.model;s.account.request("delete",n).then(function(){window.location.reload()},function(){i.Notification.show(t("mail","Error while deleting account."))})},onClick:function(t){if(t.preventDefault(),this.model.folders.length>0){var e=this.model.get("accountId"),n=this.model.folders.first().get("id");s.navigation.trigger("folder",e,n)}},onRender:function(){this.listenTo(s.ui,"document:click",function(t){var e=$(t.target);this.$el.is(e.closest(".navigation-account"))||(this.menuShown=!1,this.toggleMenuClass())}),this.showChildView("folders",new o({collection:this.model.folders,collapsed:this.collapsed}))},showAccountSettings:function(t){this.toggleMenu(t),s.navigation.trigger("accountsettings",this.model.get("accountId"))}})}.call(n,r,n,e))||(e.exports=i)},function(t,e,n){var r;void 0===(r=function(t){"use strict";n(280);var e=n(4),r=n(5),i=n(7),s=n(3),o=n(281);return r.View.extend({tagName:"li",updateElClasses:function(){var t=["with-counter"];this.model.get("unseen")&&t.push("unseen"),this.model.get("active")&&t.push("active"),this.model.get("specialRole")&&t.push("special-"+this.model.get("specialRole")),this.model.folders.length>0&&t.push("collapsible"),this.model.get("open")&&t.push("open"),this.$el.prop("class","");var n=this;e.each(t,function(t){n.$el.addClass(t)})},template:o,templateContext:function(){return{count:"drafts"===this.model.get("specialRole")?this.model.get("total"):this.model.get("unseen"),url:i.generateUrl("apps/mail/#accounts/{accountId}/folders/{folderId}",{accountId:this.model.get("accountId"),folderId:this.model.get("id")}),folders:this.model.folders.length>0?this.model.folders.toJSON():void 0}},regions:{folders:".folders"},events:{"click .collapse":"collapseFolder","click .folder":"loadFolder"},modelEvents:{change:"render"},collapseFolder:function(t){t.preventDefault(),this.model.toggleOpen()},loadFolder:function(t){if(!t.isDefaultPrevented()){t.preventDefault();var e=n(1).accounts.get(this.model.get("accountId")),r=this.model;r.get("noSelect")?console.info("ignoring 'loadFolder' event for noSelect folder"):s.navigation.trigger("folder",e.get("accountId"),r.get("id"))}},onRender:function(){var t=n(89);if(this.showChildView("folders",new t({collection:this.model.folders})),this.updateElClasses(),!/\/FLAGGED$/.test(atob(this.model.get("id")))){var r="folder-"+this.model.account.get("accountId");this.$el.droppable({scope:r,greedy:!0,drop:e.bind(function(t,e){var r=n(1).currentAccount,i=r.getFolderById(e.helper.data("folderId")),o=i.messages.get(e.helper.data("messageId"));s.message.trigger("move",r,i,o,r,this.model)},this),hoverClass:"ui-droppable-active"})}}})}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r,i,s;
/*!
 * jQuery UI Droppable 1.12.1
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */i=[n(2),n(86),n(87),n(9),n(16)],void 0===(s="function"==typeof(r=function(t){t.widget("ui.droppable",{version:"1.12.1",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var e,n=this.options,r=n.accept;this.isover=!1,this.isout=!0,this.accept=t.isFunction(r)?r:function(t){return t.is(r)},this.proportions=function(){if(!arguments.length)return e||(e={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight});e=arguments[0]},this._addToManager(n.scope),n.addClasses&&this._addClass("ui-droppable")},_addToManager:function(e){t.ui.ddmanager.droppables[e]=t.ui.ddmanager.droppables[e]||[],t.ui.ddmanager.droppables[e].push(this)},_splice:function(t){for(var e=0;e<t.length;e++)t[e]===this&&t.splice(e,1)},_destroy:function(){var e=t.ui.ddmanager.droppables[this.options.scope];this._splice(e)},_setOption:function(e,n){if("accept"===e)this.accept=t.isFunction(n)?n:function(t){return t.is(n)};else if("scope"===e){var r=t.ui.ddmanager.droppables[this.options.scope];this._splice(r),this._addToManager(n)}this._super(e,n)},_activate:function(e){var n=t.ui.ddmanager.current;this._addActiveClass(),n&&this._trigger("activate",e,this.ui(n))},_deactivate:function(e){var n=t.ui.ddmanager.current;this._removeActiveClass(),n&&this._trigger("deactivate",e,this.ui(n))},_over:function(e){var n=t.ui.ddmanager.current;n&&(n.currentItem||n.element)[0]!==this.element[0]&&this.accept.call(this.element[0],n.currentItem||n.element)&&(this._addHoverClass(),this._trigger("over",e,this.ui(n)))},_out:function(e){var n=t.ui.ddmanager.current;n&&(n.currentItem||n.element)[0]!==this.element[0]&&this.accept.call(this.element[0],n.currentItem||n.element)&&(this._removeHoverClass(),this._trigger("out",e,this.ui(n)))},_drop:function(n,r){var i=r||t.ui.ddmanager.current,s=!1;return!(!i||(i.currentItem||i.element)[0]===this.element[0])&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var r=t(this).droppable("instance");if(r.options.greedy&&!r.options.disabled&&r.options.scope===i.options.scope&&r.accept.call(r.element[0],i.currentItem||i.element)&&e(i,t.extend(r,{offset:r.element.offset()}),r.options.tolerance,n))return s=!0,!1}),!s&&!!this.accept.call(this.element[0],i.currentItem||i.element)&&(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",n,this.ui(i)),this.element))},ui:function(t){return{draggable:t.currentItem||t.element,helper:t.helper,position:t.position,offset:t.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}});var e=t.ui.intersect=function(){function t(t,e,n){return t>=e&&t<e+n}return function(e,n,r,i){if(!n.offset)return!1;var s=(e.positionAbs||e.position.absolute).left+e.margins.left,o=(e.positionAbs||e.position.absolute).top+e.margins.top,a=s+e.helperProportions.width,l=o+e.helperProportions.height,u=n.offset.left,c=n.offset.top,h=u+n.proportions().width,d=c+n.proportions().height;switch(r){case"fit":return u<=s&&a<=h&&c<=o&&l<=d;case"intersect":return u<s+e.helperProportions.width/2&&a-e.helperProportions.width/2<h&&c<o+e.helperProportions.height/2&&l-e.helperProportions.height/2<d;case"pointer":return t(i.pageY,c,n.proportions().height)&&t(i.pageX,u,n.proportions().width);case"touch":return(o>=c&&o<=d||l>=c&&l<=d||o<c&&l>d)&&(s>=u&&s<=h||a>=u&&a<=h||s<u&&a>h);default:return!1}}}();return t.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(e,n){var r,i,s=t.ui.ddmanager.droppables[e.options.scope]||[],o=n?n.type:null,a=(e.currentItem||e.element).find(":data(ui-droppable)").addBack();t:for(r=0;r<s.length;r++)if(!(s[r].options.disabled||e&&!s[r].accept.call(s[r].element[0],e.currentItem||e.element))){for(i=0;i<a.length;i++)if(a[i]===s[r].element[0]){s[r].proportions().height=0;continue t}s[r].visible="none"!==s[r].element.css("display"),s[r].visible&&("mousedown"===o&&s[r]._activate.call(s[r],n),s[r].offset=s[r].element.offset(),s[r].proportions({width:s[r].element[0].offsetWidth,height:s[r].element[0].offsetHeight}))}},drop:function(n,r){var i=!1;return t.each((t.ui.ddmanager.droppables[n.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&e(n,this,this.options.tolerance,r)&&(i=this._drop.call(this,r)||i),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],n.currentItem||n.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,r)))}),i},dragStart:function(e,n){e.element.parentsUntil("body").on("scroll.droppable",function(){e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,n)})},drag:function(n,r){n.options.refreshPositions&&t.ui.ddmanager.prepareOffsets(n,r),t.each(t.ui.ddmanager.droppables[n.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var i,s,o,a=e(n,this,this.options.tolerance,r),l=!a&&this.isover?"isout":a&&!this.isover?"isover":null;l&&(this.options.greedy&&(s=this.options.scope,(o=this.element.parents(":data(ui-droppable)").filter(function(){return t(this).droppable("instance").options.scope===s})).length&&((i=t(o[0]).droppable("instance")).greedyChild="isover"===l)),i&&"isover"===l&&(i.isover=!1,i.isout=!0,i._out.call(i,r)),this[l]=!0,this["isout"===l?"isover":"isout"]=!1,this["isover"===l?"_over":"_out"].call(this,r),i&&"isout"===l&&(i.isout=!1,i.isover=!0,i._over.call(i,r)))}})},dragStop:function(e,n){e.element.parentsUntil("body").off("scroll.droppable"),e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,n)}},!1!==t.uiBackCompat&&t.widget("ui.droppable",t.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:function(){this._super(),this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super(),this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super(),this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super(),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}}),t.ui.droppable})?r.apply(e,i):r)||(t.exports=s)},function(t,e,n){var r=n(6);t.exports=(r.default||r).template({1:function(t,e,n,r,i){return'<button class="collapse"></button>\n'},3:function(t,e,n,r,i){var s;return" icon-"+t.escapeExpression("function"==typeof(s=null!=(s=n.specialRole||(null!=e?e.specialRole:e))?s:n.helperMissing)?s.call(null!=e?e:t.nullContext||{},{name:"specialRole",hash:{},data:i}):s)+" svg"},5:function(t,e,n,r,i){return" no-select "},7:function(t,e,n,r,i){return"#"},9:function(t,e,n,r,i){var s;return t.escapeExpression("function"==typeof(s=null!=(s=n.url||(null!=e?e.url:e))?s:n.helperMissing)?s.call(null!=e?e:t.nullContext||{},{name:"url",hash:{},data:i}):s)},11:function(t,e,n,r,i){var s;return t.escapeExpression("function"==typeof(s=null!=(s=n.count||(null!=e?e.count:e))?s:n.helperMissing)?s.call(null!=e?e:t.nullContext||{},{name:"count",hash:{},data:i}):s)},compiler:[7,">= 4.0.0"],main:function(t,e,n,r,i){var s,o,a=null!=e?e:t.nullContext||{};return(null!=(s=n.if.call(a,null!=e?e.folders:e,{name:"if",hash:{},fn:t.program(1,i,0),inverse:t.noop,data:i}))?s:"")+'<a class="folder\n\t'+(null!=(s=n.if.call(a,null!=e?e.specialRole:e,{name:"if",hash:{},fn:t.program(3,i,0),inverse:t.noop,data:i}))?s:"")+"\n\t"+(null!=(s=n.if.call(a,null!=e?e.noSelect:e,{name:"if",hash:{},fn:t.program(5,i,0),inverse:t.noop,data:i}))?s:"")+'"\n   href="'+(null!=(s=n.if.call(a,null!=e?e.noSelect:e,{name:"if",hash:{},fn:t.program(7,i,0),inverse:t.program(9,i,0),data:i}))?s:"")+'">\n\t'+t.escapeExpression("function"==typeof(o=null!=(o=n.name||(null!=e?e.name:e))?o:n.helperMissing)?o.call(a,{name:"name",hash:{},data:i}):o)+'\n</a>\n<div class="app-navigation-entry-utils">\n\t<ul>\n\t\t<li class="app-navigation-entry-utils-counter">'+(null!=(s=n.if.call(a,null!=e?e.count:e,{name:"if",hash:{},fn:t.program(11,i,0),inverse:t.noop,data:i}))?s:"")+'</li>\n\t</ul>\n</div>\n<div class="folders"></div>'},useData:!0})},function(t,e,n){var r=n(6);function i(t){return t&&(t.__esModule?t.default:t)}t.exports=(r.default||r).template({1:function(t,e,n,r,i){var s,o=null!=e?e:t.nullContext||{};return'<li class="'+(null!=(s=n.if.call(o,null!=e?e.hasMenu:e,{name:"if",hash:{},fn:t.program(2,i,0),inverse:t.noop,data:i}))?s:"")+'">\n'+(null!=(s=n.if.call(o,null!=e?e.emailAddress:e,{name:"if",hash:{},fn:t.program(4,i,0),inverse:t.noop,data:i}))?s:"")+"\t<a>"+t.escapeExpression(t.lambda(null!=e?e.emailAddress:e,e))+"</a>\n\n"+(null!=(s=n.if.call(o,null!=e?e.hasMenu:e,{name:"if",hash:{},fn:t.program(6,i,0),inverse:t.noop,data:i}))?s:"")+"</li>\n"},2:function(t,e,n,r,i){return" with-menu "},4:function(t,e,r,s,o){return'\t<div class="app-navigation-entry-bullet" style="background-color: '+t.escapeExpression(i(n(88)).call(null!=e?e:t.nullContext||{},null!=e?e.emailAddress:e,{name:"accountColor",hash:{},data:o}))+'"></div>\n'},6:function(t,e,r,s,o){var a,l=null!=e?e:t.nullContext||{};return'\t<div class="app-navigation-entry-utils">\n\t\t<ul>\n\t\t\t<li class="app-navigation-entry-utils-menu-button svg"><button></button></li>\n\t\t</ul>\n\t</div>\n\t<div class="app-navigation-entry-menu">\n\t\t<ul>\n\t\t\t<li>\n\t\t\t\t<a href="#" class="menuitem action action-settings permanent">\n\t\t\t\t\t<span class="icon icon-rename"></span>\n\t\t\t\t\t<span>'+t.escapeExpression(i(n(0)).call(l,"Settings",{name:"t",hash:{},data:o}))+"</span>\n\t\t\t\t</a>\n\t\t\t</li>\n"+(null!=(a=r.if.call(l,null!=e?e.isDeletable:e,{name:"if",hash:{},fn:t.program(7,o,0),inverse:t.noop,data:o}))?a:"")+"\t\t</ul>\n\t</div>\n"},7:function(t,e,r,s,o){return'\t\t\t<li>\n\t\t\t\t<a href="#" class="menuitem action action-delete permanent">\n\t\t\t\t\t<span class="icon icon-delete"></span>\n\t\t\t\t\t<span>'+t.escapeExpression(i(n(0)).call(null!=e?e:t.nullContext||{},"Delete account",{name:"t",hash:{},data:o}))+"</span>\n\t\t\t\t</a>\n\t\t\t</li>\n"},9:function(t,e,n,r,i){var s;return null!=(s=n.if.call(null!=e?e:t.nullContext||{},null!=e?e.hasFolders:e,{name:"if",hash:{},fn:t.program(10,i,0),inverse:t.noop,data:i}))?s:""},10:function(t,e,n,r,i){return'<li class="account-toggle-collapse">\n\t<a>'+t.escapeExpression(t.lambda(null!=e?e.toggleCollapseMessage:e,e))+"</a>\n</li>\n"},compiler:[7,">= 4.0.0"],main:function(t,e,n,r,i){var s,o=null!=e?e:t.nullContext||{};return(null!=(s=n.unless.call(o,null!=e?e.isUnifiedInbox:e,{name:"unless",hash:{},fn:t.program(1,i,0),inverse:t.noop,data:i}))?s:"")+'\n<div class="folders"></div>\n'+(null!=(s=n.unless.call(o,null!=e?e.isUnifiedInbox:e,{name:"unless",hash:{},fn:t.program(9,i,0),inverse:t.noop,data:i}))?s:"")},useData:!0})},function(t,e,n){var r;void 0===(r=function(t){"use strict";var e=n(5),r=n(7),i=n(3),s=n(284);return e.View.extend({accounts:null,template:s,templateContext:function(){var t=n(55);return{addAccountUrl:r.generateUrl("apps/mail/#setup"),useExternalAvatars:t.getUseExternalAvatars(),keyboardShortcutUrl:r.generateUrl("apps/mail/#shortcuts")}},regions:{accountsList:"#settings-accounts"},events:{"click #new-mail-account":"addAccount","change #gravatar-enabled":"toggleExternalAvatars","click #keyboard-shortcuts":"showKeyboardShortcuts"},addAccount:function(t){t.preventDefault(),i.navigation.trigger("setup")},toggleExternalAvatars:function(){var t=this.$("#gravatar-enabled").prop("checked")?"true":"false";i.preference.request("save","external-avatars",t)},showKeyboardShortcuts:function(t){t.preventDefault(),i.navigation.trigger("keyboardshortcuts")}})}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r=n(6);function i(t){return t&&(t.__esModule?t.default:t)}t.exports=(r.default||r).template({1:function(t,e,n,r,i){return'checked="checked"'},compiler:[7,">= 4.0.0"],main:function(t,e,r,s,o){var a,l=t.lambda,u=t.escapeExpression,c=null!=e?e:t.nullContext||{};return'<div id="mailsettings">\n\t<ul id="settings-accounts" class="mailaccount-list">\n\t</ul>\n\n\t<a id="new-mail-account"\n\t   class="button new-button"\n\t   href="'+u(l(null!=e?e.addAccountUrl:e,e))+'">'+u(i(n(0)).call(c,"Add mail account",{name:"t",hash:{},data:o}))+'</a>\n\n\t<p>\n\t\t<input class="checkbox"\n\t\t       id="gravatar-enabled"\n\t\t       '+(null!=(a=r.if.call(c,null!=e?e.useExternalAvatars:e,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?a:"")+'\n\t\t       type="checkbox">\n\t\t<label for="gravatar-enabled">'+u(i(n(0)).call(c,"Use Gravatar and favicon avatars",{name:"t",hash:{},data:o}))+'</label>\n\t</p>\n\n\t<p class="app-settings-hint">\n\t\t<a id="keyboard-shortcuts"\n\t\t   href="'+u(l(null!=e?e.keyboardShortcutUrl:e,e))+'">'+u(i(n(0)).call(c,"Keyboard shortcuts",{name:"t",hash:{},data:o}))+'</a>\n\t\t</p>\n\n\t\t<p class="app-settings-hint">\n\t\t\t'+(null!=(a=i(n(0)).call(c,'Looking to encrypt your emails? Install the <a href="https://www.mailvelope.com/" target="_blank">Mailvelope browser extension</a>!',{name:"t",hash:{},data:o}))?a:"")+"\n\t\t</p>\n\t</div>\n"},useData:!0})},function(t,e,n){var r;void 0===(r=function(t){"use strict";var e=n(2),r=n(5),i=n(3),s=n(286);return r.View.extend({el:"#app-navigation",regions:{newMessage:"#mail-new-message-fixed",accounts:{el:"#app-navigation-accounts",replaceElement:!0},settings:"#app-settings-content"},initialize:function(){this.bindUIElements(),this.listenTo(i.ui,"navigation:show",this.show),this.listenTo(i.ui,"navigation:hide",this.hide),this.listenTo(i.ui,"navigation:newmessage:show",this.onShowNewMessage)},render:function(){},show:function(){this.$el.show(),e("#app-navigation-toggle").css("background-image","")},hide:function(){0===n(1).accounts.length&&(this.$el.hide(),e("#app-navigation-toggle").css("background-image","none"))},onShowNewMessage:function(){this.showChildView("newMessage",new s({accounts:this.options.accounts}))}})}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r;void 0===(r=function(t){"use strict";var e=n(5),r=n(3),i=n(287);return e.View.extend({template:i,accounts:null,ui:{button:"#mail_new_message"},events:{"click @ui.button":"onClick"},initialize:function(t){this.accounts=t.accounts,this.listenTo(t.accounts,"add",this.onAccountsChanged)},onRender:function(){this.onAccountsChanged()},onAccountsChanged:function(){0===this.accounts.size?this.getUI("button").hide():this.getUI("button").show()},onClick:function(t){t.preventDefault(),r.ui.trigger("composer:show",t)}})}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r=n(6);t.exports=(r.default||r).template({compiler:[7,">= 4.0.0"],main:function(t,e,r,i,s){return'<button type="button"\n       id="mail_new_message"\n       class="icon-add">'+t.escapeExpression(function(t){return t&&(t.__esModule?t.default:t)}(n(0)).call(null!=e?e:t.nullContext||{},"New message",{name:"t",hash:{},data:s}))+"</button>"},useData:!0})},function(e,n,r){var i;void 0===(i=function(e){"use strict";var n=r(4),i=r(5),s=r(13),o=r(3),a=r(90),l=r(91),u=r(52),c=r(53),h=r(290);return i.View.extend({className:"container",template:h,_loading:!1,_error:void 0,_config:void 0,regions:{content:".setup-content"},initialize:function(t){this._config=t.config},onRender:function(){n.isUndefined(this._error)?this._loading?this.showChildView("content",new c({text:t("mail","Setting up your account")})):this.showChildView("content",new l({config:this._config})):this.showChildView("content",new u({text:this._error,canRetry:!0}))},onChildviewFormSubmit:function(t){var e=this;return this._loading=!0,this._config=t,this.render(),o.account.request("create",t).then(function(){return o.ui.trigger("navigation:show"),o.ui.trigger("content:loading"),a.loadAccounts()}).then(function(t){var e=t.first(),n=e.folders.first();o.navigation.trigger("folder",e.get("accountId"),n.get("id"))}).catch(function(t){console.error("could not create account:",t),e._loading=!1,e._error=t,e.render()}).catch(s.report)},onChildviewRetry:function(){this._loading=!1,this._error=void 0,this.render()}})}.call(n,r,n,e))||(e.exports=i)},function(t,e,n){var r=n(6);function i(t){return t&&(t.__esModule?t.default:t)}t.exports=(r.default||r).template({compiler:[7,">= 4.0.0"],main:function(t,e,r,s,o){var a,l=null!=e?e:t.nullContext||{},u=t.escapeExpression,c=t.lambda;return'<form method="post">\n\t<div class="hidden-visually">\n\t\t\x3c!-- Hack for Safari and Chromium/Chrome which ignore autocomplete="off" --\x3e\n\t\t<input type="text" id="fake_user" name="fake_user"\n\t\t       autocomplete="off" tabindex="-1">\n\t\t<input type="password" id="fake_password" name="fake_password"\n\t\t       autocomplete="off" tabindex="-1">\n\t</div>\n\t<fieldset>\n\t\t<div id="emptycontent">\n\t\t\t<div class="icon-mail"></div>\n\t\t\t<h2>'+u(i(n(0)).call(l,"Connect your mail account",{name:"t",hash:{},data:o}))+'</h2>\n\t\t</div>\n\t\t<p class="grouptop">\n\t\t\t<input type="text"\n\t\t\t       name="account-name"\n\t\t\t       placeholder="'+u(i(n(0)).call(l,"Name",{name:"t",hash:{},data:o}))+'"\n\t\t\t       value="'+u(c(null!=(a=null!=e?e.config:e)?a.name:a,e))+'"\n\t\t\t       autofocus />\n\t\t</p>\n\t\t<p class="groupmiddle">\n\t\t\t<input type="email"\n\t\t\t       name="mail-address"\n\t\t\t       placeholder="'+u(i(n(0)).call(l,"Mail Address",{name:"t",hash:{},data:o}))+'"\n\t\t\t       value="'+u(c(null!=(a=null!=e?e.config:e)?a.emailAddress:a,e))+'"\n\t\t\t       required />\n\t\t</p>\n\t\t<p class="groupbottom">\n\t\t\t<input type="password"\n\t\t\t       name="mail-password"\n\t\t\t       placeholder="'+u(i(n(0)).call(l,"Password",{name:"t",hash:{},data:o}))+'"\n\t\t\t       value="'+u(c(null!=(a=null!=e?e.config:e)?a.password:a,e))+'"\n\t\t\t       required />\n\t\t</p>\n\n\t\t<a class="toggle-manual-mode icon-caret-dark">'+u(i(n(0)).call(l,"Manual configuration",{name:"t",hash:{},data:o}))+'</a>\n\n\t\t<div class="manual-inputs">\n\t\t\t<p class="grouptop">\n\t\t\t\t<input type="text"\n\t\t\t\t       name="imap-host"\n\t\t\t\t       placeholder="'+u(i(n(0)).call(l,"IMAP Host",{name:"t",hash:{},data:o}))+'"\n\t\t\t\t       value="'+u(c(null!=(a=null!=e?e.config:e)?a.imapHost:a,e))+'" />\n\t\t\t</p>\n\t\t\t<p class="groupmiddle" id="setup-imap-ssl">\n\t\t\t\t<select id="setup-imap-ssl-mode"\n\t\t\t\t\tname="imap-sslmode"\n\t\t\t\t\ttitle="'+u(i(n(0)).call(l,"IMAP security",{name:"t",hash:{},data:o}))+'">\n\t\t\t\t\t<option value="none">'+u(i(n(0)).call(l,"None",{name:"t",hash:{},data:o}))+'</option>\n\t\t\t\t\t<option value="ssl">'+u(i(n(0)).call(l,"SSL/TLS",{name:"t",hash:{},data:o}))+'</option>\n\t\t\t\t\t<option value="tls">'+u(i(n(0)).call(l,"STARTTLS",{name:"t",hash:{},data:o}))+'</option>\n\t\t\t\t</select>\n\t\t\t</p>\n\t\t\t<p class="groupmiddle">\n\t\t\t\t<input type="number"\n\t\t\t\t       name="imap-port"\n\t\t\t\t       placeholder="'+u(i(n(0)).call(l,"IMAP Port",{name:"t",hash:{},data:o}))+'"\n\t\t\t\t       value="'+u(c(null!=(a=null!=e?e.config:e)?a.imapPort:a,e))+'" />\n\t\t\t</p>\n\t\t\t<p class="groupmiddle">\n\t\t\t\t<input type="text"\n\t\t\t\t       name="imap-user"\n\t\t\t\t       placeholder="'+u(i(n(0)).call(l,"IMAP User",{name:"t",hash:{},data:o}))+'"\n\t\t\t\t       value="'+u(c(null!=(a=null!=e?e.config:e)?a.imapUser:a,e))+'" />\n\t\t\t</p>\n\t\t\t<p class="groupbottom">\n\t\t\t\t<input type="password"\n\t\t\t\t       name="imap-password"\n\t\t\t\t       placeholder="'+u(i(n(0)).call(l,"IMAP Password",{name:"t",hash:{},data:o}))+'"\n\t\t\t\t       value="'+u(c(null!=(a=null!=e?e.config:e)?a.imapPassword:a,e))+'"\n\t\t\t\t       required />\n\t\t\t</p>\n\t\t\t<p class="grouptop">\n\t\t\t\t<input type="text"\n\t\t\t\t       name="smtp-host"\n\t\t\t\t       placeholder="'+u(i(n(0)).call(l,"SMTP Host",{name:"t",hash:{},data:o}))+'"\n\t\t\t\t       value="'+u(c(null!=(a=null!=e?e.config:e)?a.smtpHost:a,e))+'" />\n\t\t\t</p>\n\t\t\t<p class="groupmiddle" id="setup-smtp-ssl">\n\t\t\t\t<select id="setup-smtp-ssl-mode"\n\t\t\t\t\tname="mail-smtp-sslmode"\n\t\t\t\t\ttitle="'+u(i(n(0)).call(l,"SMTP security",{name:"t",hash:{},data:o}))+'">\n\t\t\t\t\t<option value="none">'+u(i(n(0)).call(l,"None",{name:"t",hash:{},data:o}))+'</option>\n\t\t\t\t\t<option value="ssl">'+u(i(n(0)).call(l,"SSL/TLS",{name:"t",hash:{},data:o}))+'</option>\n\t\t\t\t\t<option value="tls">'+u(i(n(0)).call(l,"STARTTLS",{name:"t",hash:{},data:o}))+'</option>\n\t\t\t\t</select>\n\t\t\t</p>\n\t\t\t<p class="groupmiddle">\n\t\t\t\t<input type="number"\n\t\t\t\t       name="smtp-port"\n\t\t\t\t       placeholder="'+u(i(n(0)).call(l,"SMTP Port",{name:"t",hash:{},data:o}))+'"\n\t\t\t\t       value="'+u(c(null!=(a=null!=e?e.config:e)?a.smtpPort:a,e))+'" />\n\t\t\t</p>\n\t\t\t<p class="groupmiddle">\n\t\t\t\t<input type="text"\n\t\t\t\t       name="smtp-user"\n\t\t\t\t       placeholder="'+u(i(n(0)).call(l,"SMTP User",{name:"t",hash:{},data:o}))+'"\n\t\t\t\t       value="'+u(c(null!=(a=null!=e?e.config:e)?a.smtpUser:a,e))+'" />\n\t\t\t</p>\n\t\t\t<p class="groupbottom">\n\t\t\t\t<input type="password"\n\t\t\t\t       name="smtp-password"\n\t\t\t\t       placeholder="'+u(i(n(0)).call(l,"SMTP Password",{name:"t",hash:{},data:o}))+'"\n\t\t\t\t       value="'+u(c(null!=(a=null!=e?e.config:e)?a.smtpPassword:a,e))+'"\n\t\t\t\t       required />\n\t\t\t</p>\n\t\t</div>\n\n\t\t<input type="submit"\n\t\t       class="primary"\n\t\t       value="'+u(i(n(0)).call(l,"Connect",{name:"t",hash:{},data:o}))+'"/>\n\t</fieldset>\n</form>\n'},useData:!0})},function(t,e,n){var r=n(6);t.exports=(r.default||r).template({compiler:[7,">= 4.0.0"],main:function(t,e,n,r,i){return'<div class="setup-content container"></div>\n'},useData:!0})},function(e,n,r){var i;void 0===(i=function(e){"use strict";var n=r(2),i=r(5),s=r(7),o=r(292),a=r(91),l=r(293),u=r(13),c=r(3);return i.View.extend({template:o,templateContext:function(){return{aliases:this.aliases,email:this.currentAccount.get("email")}},currentAccount:null,aliases:null,ui:{form:"form",alias:'input[name="alias"]',submitButton:"input[type=submit]",aliasName:'input[name="alias-name"]'},events:{"click @ui.submitButton":"onSubmit","submit @ui.form":"onSubmit"},regions:{aliasesRegion:"#aliases-list",accountRegion:"#mail-settings"},initialize:function(t){this.currentAccount=t.account},onSubmit:function(t){t.preventDefault();var e={alias:this.getUI("alias").val(),name:this.getUI("aliasName").val()};this.getUI("alias").prop("disabled",!0),this.getUI("aliasName").prop("disabled",!0),this.getUI("submitButton").val("Saving"),this.getUI("submitButton").prop("disabled",!0);var n=this;c.aliases.request("save",this.currentAccount,e).then(function(t){n.currentAccount.get("aliases").add(t)},u.report).then(function(){n.getUI("alias").val(""),n.getUI("aliasName").val(""),n.getUI("alias").prop("disabled",!1),n.getUI("aliasName").prop("disabled",!1),n.getUI("submitButton").prop("disabled",!1),n.getUI("submitButton").val("Save")}).catch(u.report)},onRender:function(){this.showAliases(),this.showAccountSetup()},showAliases:function(){this.showChildView("aliasesRegion",new l({currentAccount:this.currentAccount}))},showAccountSetup:function(){this.showChildView("accountRegion",new a({config:this.currentAccount.attributes,settingsPage:!0}))},startLoading:function(){s.msg.startSaving("#mail-settings-msg"),n("#mail-settings-loading").show()},onChildviewFormSubmit:function(e){return e.accountId=this.currentAccount.get("accountId"),this.startLoading(),c.account.request("update",e).then(function(){var e={status:"success",data:{message:t("mail","Saved")}};s.msg.finishedSaving("#mail-settings-msg",e),n("#mail-settings-loading").hide()}).catch(function(t){u.report(t),console.error("could not update account:",t);var e={status:"error",data:{message:t}};s.msg.finishedSaving("#mail-settings-msg",e),n("#mail-settings-loading").hide()}).catch(u.report)}})}.call(n,r,n,e))||(e.exports=i)},function(t,e,n){var r=n(6);function i(t){return t&&(t.__esModule?t.default:t)}t.exports=(r.default||r).template({compiler:[7,">= 4.0.0"],main:function(t,e,r,s,o){var a=null!=e?e:t.nullContext||{},l=t.escapeExpression;return'<div class="section" id="account-info">\n\t<h2>'+l(i(n(0)).call(a,"Account Settings",{name:"t",hash:{},data:o}))+" - "+l(t.lambda(null!=e?e.email:e,e))+'</h2>\n</div>\n\n<div class="section" id="aliases">\n\t<h2>'+l(i(n(0)).call(a,"Aliases",{name:"t",hash:{},data:o}))+'</h2>\n\t<div id="aliases-list"></div>\n\t<form name="aliasForm" method="post">\n\t\t<input type="text" name="alias" id="alias" placeholder="'+l(i(n(0)).call(a,"Mail address",{name:"t",hash:{},data:o}))+'">\n\t\t<input type="text" name="alias-name" id="alias-name" placeholder="'+l(i(n(0)).call(a,"Display Name",{name:"t",hash:{},data:o}))+'">\n\t\t<input type="submit" value="'+l(i(n(0)).call(a,"Save",{name:"t",hash:{},data:o}))+'">\n\t</form>\n</div>\n\n<div class="section">\n\t<h2>'+l(i(n(0)).call(a,"Account",{name:"t",hash:{},data:o}))+'</h2>\n\t<div id="mail-settings-status">\n\t\t<div id="mail-settings-loading" class="icon-loading-small" style="display: none; float: left; margin-right: 10px;"></div>\n\t\t<span id="mail-settings-msg" class="msg success" style="display: none;">Saved</span>\n\t</div>\n\t<div id="mail-settings"></div>\n</div>\n'},useData:!0})},function(t,e,n){var r;void 0===(r=function(t){"use strict";var e=n(5),r=n(294);return e.CollectionView.extend({collection:null,tagName:"table",childView:r,currentAccount:null,initialize:function(t){this.currentAccount=t.currentAccount,this.collection=this.currentAccount.get("aliases")}})}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r;void 0===(r=function(t){"use strict";var e=n(5),r=n(295),i=n(3);return e.View.extend({collection:null,model:null,tagName:"tr",childViewContainer:"tbody",template:r,templateContext:function(){return{aliases:this.model.toJSON()}},ui:{deleteButton:"button"},events:{"click @ui.deleteButton":"deleteAlias"},initialize:function(t){this.model=t.model},deleteAlias:function(t){t.stopPropagation();var e=n(1).accounts.get(this.model.get("accountId")),r=this;this.getUI("deleteButton").prop("disabled",!0),this.getUI("deleteButton").attr("class","icon-loading-small"),i.aliases.request("delete",e,this.model.get("id")).then(function(){e.get("aliases").remove(r.model)},console.error.bind(this)).then(function(){r.getUI("deleteButton").attr("class","icon-delete"),r.getUI("deleteButton").prop("disabled",!1)})}})}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r=n(6);t.exports=(r.default||r).template({compiler:[7,">= 4.0.0"],main:function(t,e,n,r,i){var s,o,a=t.lambda,l=t.escapeExpression;return'<table class="grid">\n\t<tbody>\n\t<tr id="'+l(a(null!=(s=null!=e?e.aliases:e)?s.id:s,e))+'">\n\t\t<td style="padding:0 5px 0 5px;">\n\t\t\t'+l(a(null!=(s=null!=e?e.aliases:e)?s.alias:s,e))+'\n\t\t</td>\n\t\t<td style="padding:0 5px 0 5px;">\n\t\t\t'+l(a(null!=(s=null!=e?e.aliases:e)?s.name:s,e))+'\n\t\t</td>\n\t\t<td style="padding:0 5px 0 5px;"> <button type="submit" value="'+l("function"==typeof(o=null!=(o=n.id||(null!=e?e.id:e))?o:n.helperMissing)?o.call(null!=e?e:t.nullContext||{},{name:"id",hash:{},data:i}):o)+'" class="icon-delete"></button>\n\t\t</td>\n\t</tr>\n\t</tbody>\n</table>'},useData:!0})},function(t,e,n){var r;void 0===(r=function(t){"strict";var e=n(5),r=n(297);return e.View.extend({id:"keyboardshortcut",template:r})}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r=n(6);function i(t){return t&&(t.__esModule?t.default:t)}t.exports=(r.default||r).template({compiler:[7,">= 4.0.0"],main:function(t,e,r,s,o){var a=null!=e?e:t.nullContext||{},l=t.escapeExpression;return'<div id="app-shortcuts" class="section">\n\n\t<h2>'+l(i(n(0)).call(a,"Keyboard shortcuts",{name:"t",hash:{},data:o}))+"</h2>\n\n\t<p>"+l(i(n(0)).call(a,"Speed up your Mail experience with these quick shortcuts.",{name:"t",hash:{},data:o}))+"</p>\n\n\t<dl>\n\t\t<div>\n\t\t\t<dt><kbd>C</kbd></dt>\n\t\t\t<dd>"+l(i(n(0)).call(a,"Compose new message",{name:"t",hash:{},data:o}))+"</dd>\n\t\t</div>\n\t\t<div>\n\t\t\t<dt><kbd>K</kbd> or <kbd>←</kbd></dt>\n\t\t\t<dd>"+l(i(n(0)).call(a,"Newer message",{name:"t",hash:{},data:o}))+"</dd>\n\t\t</div>\n\t\t<div>\n\t\t\t<dt><kbd>J</kbd> or <kbd>→</kbd></dt>\n\t\t\t<dd>"+l(i(n(0)).call(a,"Older message",{name:"t",hash:{},data:o}))+"</dd>\n\t\t</div>\n\n\t\t<div>\n\t\t\t<dt><kbd>S</kbd></dt>\n\t\t\t<dd>"+l(i(n(0)).call(a,"Toggle star",{name:"t",hash:{},data:o}))+"</dd>\n\t\t</div>\n\t\t<div>\n\t\t\t<dt><kbd>U</kbd></dt>\n\t\t\t<dd>"+l(i(n(0)).call(a,"Toggle unread",{name:"t",hash:{},data:o}))+"</dd>\n\t\t</div>\n\t\t<div>\n\t\t\t<dt><kbd>Del</kbd></dt>\n\t\t\t<dd>"+l(i(n(0)).call(a,"Delete",{name:"t",hash:{},data:o}))+"</dd>\n\t\t</div>\n\n\t\t<div>\n\t\t\t<dt><kbd>Ctrl</kbd> + <kbd>F</kbd></dt>\n\t\t\t<dd>"+l(i(n(0)).call(a,"Search",{name:"t",hash:{},data:o}))+"</dd>\n\t\t</div>\n\t\t<div>\n\t\t\t<dt><kbd>Ctrl</kbd> + <kbd>Enter</kbd></dt>\n\t\t\t<dd>"+l(i(n(0)).call(a,"Send",{name:"t",hash:{},data:o}))+"</dd>\n\t\t</div>\n\t\t<div>\n\t\t\t<dt><kbd>R</kbd></dt>\n\t\t\t<dd>"+l(i(n(0)).call(a,"Refresh",{name:"t",hash:{},data:o}))+"</dd>\n\t\t</div>\n\t</dl>\n\n</div>\n"},useData:!0})},function(t,e,n){var r;void 0===(r=function(t){"use strict";var e=n(2),r=n(4);window.adjustControlsWidth=function(){var t;e("#mail-message-header").length&&(e(window).width()>768&&(t=e("#content").width()-e("#app-navigation").width()-e("#mail-messages").width()-getScrollBarWidth()),e("#mail-message-header").css("width",t),e("#mail-message-header").css("min-width",t))},e(window).resize(r.debounce(window.adjustControlsWidth,250))}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r;void 0===(r=function(t){"use strict";return n(5).AppRouter.extend({appRoutes:{"":"default","accounts/:accountId/folders/:folderId":"showFolder","accounts/:accountId/folders/:folderId/search/:query":"searchFolder","mailto(?:params)":"mailTo",setup:"showSetup",shortcuts:"showKeyboardShortcuts","accounts/:accountId/settings":"showAccountSettings"}})}.call(e,n,e,t))||(t.exports=r)},function(e,n,r){var i;void 0===(i=function(e){"use strict";var n=r(4),i=r(8),s=r(13),o=r(3),a=r(54),l=function(t){this.initialize(t)};return l.prototype={accounts:void 0,initialize:function(t){this.accounts=t,o.navigation.on("folder",n.bind(this.showFolder,this)),o.navigation.on("search",n.bind(this.searchFolder,this)),o.navigation.on("setup",n.bind(this.showSetup,this)),o.navigation.on("accountsettings",n.bind(this.showAccountSettings,this)),o.navigation.on("keyboardshortcuts",n.bind(this.showKeyboardShortcuts,this))},_navigate:function(t,e){e=e||{},i.history.navigate(t,e)},_handleMailto:function(t){var e={};return t=t.split("&"),n.each(t,function(t){var n=(t=t.split("="))[0],r=t[1];switch(r=decodeURIComponent(r.replace(/\+/g,"%20")),n){case"mailto":case"to":e.to=r;break;case"cc":e.cc=r;break;case"bcc":e.bcc=r;break;case"subject":e.subject=r;break;case"body":e.body=r}}),this.default(!0).then(function(){o.ui.trigger("composer:show",e)}).catch(s.report)},default:function(t){this._navigate("");if(this.accounts.isEmpty())return this.showSetup();var e=this.accounts.at(0),n=e.folders.at(0);return this.showFolder(e.get("accountId"),n.get("id"),t)},showFolder:function(e,r,i){this._navigate("accounts/"+e+"/folders/"+r);var s=this.accounts.get(e);if(n.isUndefined(s))return o.ui.trigger("error:show",t("mail","Invalid account")),this.default();var l=s.getFolderById(r);return n.isUndefined(l)?(l=s.folders.at(0),o.ui.trigger("error:show",t("mail","Invalid folder")),this._navigate("accounts/"+e+"/folders/"+l.get("id")),Promise.resolve()):a.showFolder(s,l,!i)},searchFolder:function(e,r,i){if(i&&""!==i){this._navigate("accounts/"+e+"/folders/"+r+"/search/"+i);var s=this.accounts.get(e);if(n.isUndefined(s))return o.ui.trigger("error:show",t("mail","Invalid account")),void this.default();var l=s.getFolderById(r);n.isUndefined(l)&&(l=s.folders.at(0),o.ui.trigger("error:show",t("mail","Invalid folder")),this._navigate("accounts/"+e+"/folders/"+l.get("id"))),a.searchFolder(s,l,i)}else this.showFolder(e,r)},mailTo:function(t){this._handleMailto(t)},showSetup:function(){return this._navigate("setup"),o.ui.trigger("navigation:hide"),o.ui.trigger("setup:show"),Promise.resolve()},showKeyboardShortcuts:function(){this._navigate("shortcuts"),o.ui.trigger("keyboardShortcuts:show")},showAccountSettings:function(e){this._navigate("accounts/"+e+"/settings");var r=this.accounts.get(e);if(n.isUndefined(r))return o.ui.trigger("error:show",t("mail","Invalid account")),void this.default();o.ui.trigger("navigation:hide"),o.ui.trigger("accountsettings:show",r)}},l}.call(n,r,n,e))||(e.exports=i)},function(e,n,r){var i;void 0===(i=function(e){"use strict";var n=r(2),i=r(7),s=r(3);function o(e){var r=i.generateUrl("apps/mail/api/accounts");return new Promise(function(i,s){n.ajax(r,{data:e,type:"POST",success:i,error:function(e,n,r){switch(e.status){case 400:var i=JSON.parse(e.responseText);s(t("mail","Error while creating the account: "+i.message));break;default:var o=r||n||t("mail","Unknown error");s(t("mail","Error while creating the account: "+o))}}})})}return s.account.reply("create",o),s.account.reply("entities",function(){return function(){var t=n("#serialized-accounts"),e=r(1).accounts;if(""!==t.val()){var i=t.val(),s=JSON.parse(atob(i));e.reset();for(var o=0;o<s.length;o++)e.add(s[o]);return t.val(""),Promise.resolve(e)}return new Promise(function(t,n){e.fetch({success:function(){t(e)},error:n})})}().then(function(t){return t.length>1&&t.add({accountId:-1,isUnified:!0},{at:0}),t})}),s.account.reply("delete",function(t){var e=i.generateUrl("/apps/mail/api/accounts/{accountId}",{accountId:t.get("accountId")});return Promise.resolve(n.ajax(e,{type:"DELETE"}))}),s.account.reply("update",function(e){var r=i.generateUrl("/apps/mail/api/accounts/{accountId}",{accountId:e.accountId});return new Promise(function(i,s){n.ajax(r,{data:e,type:"PUT",success:i,error:function(e,n,r){switch(e.status){case 400:var i=JSON.parse(e.responseText);s(t("mail","Error while updating the account: "+i.message));break;default:var o=r||n||t("mail","Unknown error");s(t("mail","Error while updating the account: "+o))}}})})}),{createAccount:o}}.call(n,r,n,e))||(e.exports=i)},function(t,e,n){var r;
/**
 * @copyright 2017 Christoph Wurst <christoph@winzerhof-wurst.at>
 *
 * @author 2017 Christoph Wurst <christoph@winzerhof-wurst.at>
 *
 * @license GNU AGPL version 3 or any later version
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */void 0===(r=function(t){"use strict";var e=n(4),r=n(2),i=n(7);function s(t){var e=i.generateUrl("/apps/mail/api/avatars/url/{email}",{email:t});return Promise.resolve(r.ajax(e)).then(function(e){return e.isExternal?i.generateUrl("/apps/mail/api/avatars/image/{email}",{email:t}):e.url}.bind(this)).catch(function(t){return t.status&&404===t.status?Promise.resolve(void 0):Promise.reject(t)})}return n(3).avatar.reply("avatar",e.memoize(s)),{loadAvatar:s}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r;void 0===(r=function(t){"use strict";var e=n(2),r=n(7),i=n(3);i.aliases.reply("save",function(t,n){var i=r.generateUrl("/apps/mail/api/accounts/{id}/aliases",{id:t.get("accountId")}),s={type:"POST",data:{accountId:t.get("accountId"),alias:n.alias,aliasName:n.name}};return Promise.resolve(e.ajax(i,s))}),i.aliases.reply("delete",function(t,n){var i=r.generateUrl("/apps/mail/api/accounts/{id}/aliases/{aliasId}",{id:t.get("accountId"),aliasId:n});return Promise.resolve(e.ajax(i,{type:"DELETE"}))})}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r;void 0===(r=function(t){"use strict";var e=n(4),r=n(2),i=n(7),s=n(3);function o(t,n){var s=new FormData;s.append("attachment",t);var o=n.onProgress,a=i.generateUrl("/apps/mail/api/attachments");return Promise.resolve(r.ajax({url:a,type:"POST",xhr:function(){var t=r.ajaxSettings.xhr();return n.set("uploadRequest",t),t.upload&&e.isFunction(o)&&t.upload.addEventListener("progress",o.bind(n),!1),t},data:s,processData:!1,contentType:!1})).then(function(t){return t.id})}function a(t,e){void 0===e||t.get("progress")<1?t.set("uploadStatus",2):(t.set("id",e),t.set("uploadStatus",3)),t.unset("uploadRequest")}return s.message.reply("save:cloud",function(t,e,n){e=e||0;var s=i.generateUrl("apps/mail/api/accounts/{accountId}/folders/{folderId}/messages/{messageId}/attachment/{attachmentId}",{accountId:t.folder.account.get("accountId"),folderId:t.folder.get("id"),messageId:t.get("id"),attachmentId:e}),o={data:{targetPath:n},type:"POST"};return Promise.resolve(r.ajax(s,o))}),s.message.reply("attachment:download",function(t){return Promise.resolve(r.ajax(t))}),s.attachment.reply("upload:local",o),s.attachment.reply("upload:abort",function(t){var e=t.get("uploadRequest");e&&e.readyState<4&&e.abort();t.collection.remove(t)}),s.attachment.reply("upload:finished",a),{uploadLocalAttachment:o,uploadLocalAttachmentFinished:a}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r;void 0===(r=function(t){"use strict";var e=n(3),r=null,i=null;e.sync.on("start",function(t){i=t,clearTimeout(r),o()});var s=3e4;function o(){r=setTimeout(function(){var t;0===n(1).accounts.length?o():t=1===n(1).accounts.length?i.first():i.get(-1),a(t)},s)}function a(t){return e.sync.request("sync:folder",t.folders.first()).then(function(t){e.ui.trigger("notification:mail:show",t)}).catch(function(t){console.error(t)}).then(o)}return{sync:a}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r;void 0===(r=function(t){"use strict";var e=n(4),r=n(2),i=n(8),s=n(307),o=n(308),a=n(7),l=n(3),u=n(309);l.dav.reply("calendars",function(){var t=a.linkToRemote("dav/calendars")+"/"+a.currentUser+"/";return c.propFind(t,h,1,{requesttoken:a.requestToken}).then(function(t){var n=new i.Collection;return e.each(t.body,function(t){if(!(t.propStat.length<1)&&200===function(t){return parseInt(t.split(" ")[1])}(t.propStat[0].status)){var e=function(t){!function(t){var e=!1,n=t["{DAV:}acl"];if(n)for(var r=0;r<n.length;r++){var i=n[r].getElementsByTagNameNS("DAV:","href");if(0!==i.length){i=i[0].textContent;var s=n[r].getElementsByTagNameNS("DAV:","write");s.length>0&&(e=!0)}}t.canWrite=e}(t);for(var e={displayname:t["{DAV:}displayname"],color:t["{http://apple.com/ns/ical/}calendar-color"],order:t["{http://apple.com/ns/ical/}calendar-order"],components:{vevent:!1},writable:t.canWrite},n=t["{urn:ietf:params:xml:ns:caldav}supported-calendar-component-set"]||[],r=0;r<n.length;r++){var i=n[r].attributes.getNamedItem("name").textContent.toLowerCase();e.components.hasOwnProperty(i)&&(e.components[i]=!0)}return e}(t.propStat[0].properties);e&&e.components.vevent&&!0===e.writable&&(e.url=t.href,n.push(new u(e)))}}),n})}),l.dav.reply("calendar:import",function(t,n){var i=[],s=function(t){var n=[],r={},i=o.parse(t),s=new o.Component(i),l=s.getAllSubcomponents("vtimezone");e.each(l,function(t){n.push(t)});var u=["vevent","vjournal","vtodo"];e.each(u,function(t){var n=s.getAllSubcomponents(t);r[t]={},e.each(n,function(e){var n=e.getFirstPropertyValue("uid");r[t][n]=r[t][n]||[],r[t][n].push(e)})});var c=[];return e.each(u,function(t){c[t]=[],e.each(r[t],function(r){var i=function(){var t=new o.Component(["vcalendar",[],[]]);return t.updatePropertyWithValue("prodid","-//"+a.theme.name+" Mail"),t}();e.each(n,function(t){i.addSubcomponent(t)}),e.each(r,function(t){i.addSubcomponent(t)}),c[t].push(i.toString())})}),{name:s.getFirstPropertyValue("x-wr-calname"),color:s.getFirstPropertyValue("x-apple-calendar-color"),split:c}}(n);return e.each(["vevent","vjournal","vtodo"],function(n){e.each(s.split[n],function(e){i.push(Promise.resolve(r.ajax({url:t+function(){for(var t="",e=0;e<7;e++)t+=Math.random().toString(36).substring(7);return t}(),method:"PUT",contentType:"text/calendar; charset=utf-8",data:e})))})}),Promise.all(i)});var c=new s.Client({baseUrl:a.linkToRemote("dav/calendars"),xmlNamespaces:{"DAV:":"d","urn:ietf:params:xml:ns:caldav":"c","http://apple.com/ns/ical/":"aapl","http://owncloud.org/ns":"oc","http://calendarserver.org/ns/":"cs"}}),h=["{DAV:}displayname","{urn:ietf:params:xml:ns:caldav}calendar-description","{urn:ietf:params:xml:ns:caldav}calendar-timezone","{http://apple.com/ns/ical/}calendar-order","{http://apple.com/ns/ical/}calendar-color","{urn:ietf:params:xml:ns:caldav}supported-calendar-component-set","{http://owncloud.org/ns}calendar-enabled","{DAV:}acl","{DAV:}owner","{http://owncloud.org/ns}invite"]}.call(e,n,e,t))||(t.exports=r)},function(t,e){"undefined"==typeof dav&&(dav={}),dav._XML_CHAR_MAP={"<":"&lt;",">":"&gt;","&":"&amp;",'"':"&quot;","'":"&apos;"},dav._escapeXml=function(t){return t.replace(/[<>&"']/g,function(t){return dav._XML_CHAR_MAP[t]})},dav.Client=function(t){var e;for(e in t)this[e]=t[e]},dav.Client.prototype={baseUrl:null,userName:null,password:null,xmlNamespaces:{"DAV:":"d"},propFind:function(t,e,n,r){void 0===n&&(n=0),(r=r||{}).Depth=n,r["Content-Type"]="application/xml; charset=utf-8";var i,s='<?xml version="1.0"?>\n<d:propfind ';for(i in this.xmlNamespaces)s+=" xmlns:"+this.xmlNamespaces[i]+'="'+i+'"';for(var o in s+=">\n  <d:prop>\n",e){var a=this.parseClarkNotation(e[o]);this.xmlNamespaces[a.namespace]?s+="    <"+this.xmlNamespaces[a.namespace]+":"+a.name+" />\n":s+="    <x:"+a.name+' xmlns:x="'+a.namespace+'" />\n'}return s+="  </d:prop>\n",s+="</d:propfind>",this.request("PROPFIND",t,r,s).then(function(t){return 0===n?{status:t.status,body:t.body[0],xhr:t.xhr}:{status:t.status,body:t.body,xhr:t.xhr}}.bind(this))},_renderPropSet:function(t){var e="  <d:set>\n   <d:prop>\n";for(var n in t){var r,i=this.parseClarkNotation(n),s=t[n];"d:resourcetype"!==(r=this.xmlNamespaces[i.namespace]?this.xmlNamespaces[i.namespace]+":"+i.name:"x:"+i.name+' xmlns:x="'+i.namespace+'"')&&(s=dav._escapeXml(s)),e+="      <"+r+">"+s+"</"+r+">\n"}return e+="    </d:prop>\n",e+="  </d:set>\n"},propPatch:function(t,e,n){(n=n||{})["Content-Type"]="application/xml; charset=utf-8";var r,i='<?xml version="1.0"?>\n<d:propertyupdate ';for(r in this.xmlNamespaces)i+=" xmlns:"+this.xmlNamespaces[r]+'="'+r+'"';return i+=">\n"+this._renderPropSet(e),i+="</d:propertyupdate>",this.request("PROPPATCH",t,n,i).then(function(t){return{status:t.status,body:t.body,xhr:t.xhr}}.bind(this))},mkcol:function(t,e,n){var r="";if((n=n||{})["Content-Type"]="application/xml; charset=utf-8",e){var i;for(i in r='<?xml version="1.0"?>\n<d:mkcol',this.xmlNamespaces)r+=" xmlns:"+this.xmlNamespaces[i]+'="'+i+'"';r+=">\n"+this._renderPropSet(e),r+="</d:mkcol>"}return this.request("MKCOL",t,n,r).then(function(t){return{status:t.status,body:t.body,xhr:t.xhr}}.bind(this))},request:function(t,e,n,r){var i,s=this,o=this.xhrProvider();for(i in n=n||{},this.userName&&(n.Authorization="Basic "+btoa(this.userName+":"+this.password)),o.open(t,this.resolveUrl(e),!0),n)o.setRequestHeader(i,n[i]);return void 0===r?o.send():o.send(r),new Promise(function(t,e){o.onreadystatechange=function(){if(4===o.readyState){var e=o.response;207===o.status&&(e=s.parseMultiStatus(o.response)),t({body:e,status:o.status,xhr:o})}},o.ontimeout=function(){e(new Error("Timeout exceeded"))}})},xhrProvider:function(){return new XMLHttpRequest},_parsePropNode:function(t){var e=null;if(t.childNodes&&t.childNodes.length>0){for(var n=[],r=0;r<t.childNodes.length;r++){var i=t.childNodes[r];1===i.nodeType&&n.push(i)}n.length&&(e=n)}return e||t.textContent||t.text||""},parseMultiStatus:function(t){for(var e=(new DOMParser).parseFromString(t,"application/xml"),n=function(t){var e;for(e in this.xmlNamespaces)if(this.xmlNamespaces[e]===t)return e}.bind(this),r=e.evaluate("/d:multistatus/d:response",e,n,XPathResult.ANY_TYPE,null),i=[],s=r.iterateNext();s;){var o={href:null,propStat:[]};o.href=e.evaluate("string(d:href)",s,n,XPathResult.ANY_TYPE,null).stringValue;for(var a=e.evaluate("d:propstat",s,n,XPathResult.ANY_TYPE,null),l=a.iterateNext();l;){for(var u={status:e.evaluate("string(d:status)",l,n,XPathResult.ANY_TYPE,null).stringValue,properties:{}},c=e.evaluate("d:prop/*",l,n,XPathResult.ANY_TYPE,null),h=c.iterateNext();h;){var d=this._parsePropNode(h);u.properties["{"+h.namespaceURI+"}"+h.localName]=d,h=c.iterateNext()}o.propStat.push(u),l=a.iterateNext()}i.push(o),s=r.iterateNext()}return i},resolveUrl:function(t){if(/^https?:\/\//i.test(t))return t;var e=this.parseUrl(this.baseUrl);if(t.charAt("/"))return e.root+t;e.root;return-1!==e.path.lastIndexOf("/")&&e.path.subString(0,e.path.lastIndexOf("/"))+"/",t,t},parseUrl:function(t){var e=t.match(/^(?:([A-Za-z]+):)?(\/{0,3})([0-9.\-A-Za-z]+)(?::(\d+))?(?:\/([^?#]*))?(?:\?([^#]*))?(?:#(.*))?$/),n={url:e[0],scheme:e[1],host:e[3],port:e[4],path:e[5],query:e[6],fragment:e[7]};return n.root=n.scheme+"://"+n.host+(n.port?":"+n.port:""),n},parseClarkNotation:function(t){var e=t.match(/^{([^}]+)}(.*)$/);if(e)return{name:e[2],namespace:e[1]}}},t.exports=dav},function(t,e,n){ICAL=t.exports,ICAL.foldLength=75,ICAL.newLineChar="\r\n",ICAL.helpers={isStrictlyNaN:function(t){return"number"==typeof t&&isNaN(t)},strictParseInt:function(t){var e=parseInt(t,10);if(ICAL.helpers.isStrictlyNaN(e))throw new Error('Could not extract integer from "'+t+'"');return e},formatClassType:function(t,e){if(void 0!==t)return t instanceof e?t:new e(t)},unescapedIndexOf:function(t,e,n){for(;-1!==(n=t.indexOf(e,n));){if(!(n>0&&"\\"===t[n-1]))return n;n+=1}return-1},binsearchInsert:function(t,e,n){if(!t.length)return 0;for(var r,i,s=0,o=t.length-1;s<=o;)if((i=n(e,t[r=s+Math.floor((o-s)/2)]))<0)o=r-1;else{if(!(i>0))break;s=r+1}return i<0?r:i>0?r+1:r},dumpn:function(){ICAL.debug&&("undefined"!=typeof console&&"log"in console?ICAL.helpers.dumpn=function(t){console.log(t)}:ICAL.helpers.dumpn=function(t){dump(t+"\n")},ICAL.helpers.dumpn(arguments[0]))},clone:function(t,e){if(t&&"object"==typeof t){if(t instanceof Date)return new Date(t.getTime());if("clone"in t)return t.clone();if(Array.isArray(t)){for(var n=[],r=0;r<t.length;r++)n.push(e?ICAL.helpers.clone(t[r],!0):t[r]);return n}var i={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(i[s]=e?ICAL.helpers.clone(t[s],!0):t[s]);return i}return t},foldline:function(t){for(var e="",n=t||"";n.length;)e+=ICAL.newLineChar+" "+n.substr(0,ICAL.foldLength),n=n.substr(ICAL.foldLength);return e.substr(ICAL.newLineChar.length+1)},pad2:function(t){switch("string"!=typeof t&&("number"==typeof t&&(t=parseInt(t)),t=String(t)),t.length){case 0:return"00";case 1:return"0"+t;default:return t}},trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)},inherits:function(t,e,n){function r(){}r.prototype=t.prototype,e.prototype=new r,n&&ICAL.helpers.extend(n,e.prototype)},extend:function(t,e){for(var n in t){var r=Object.getOwnPropertyDescriptor(t,n);r&&!Object.getOwnPropertyDescriptor(e,n)&&Object.defineProperty(e,n,r)}return e}},ICAL.design=function(){"use strict";var t=/\\\\|\\,|\\[Nn]/g,e=/\\|,|\n/g;function n(t,e){return{matches:/.*/,fromICAL:function(e,n){return function(t,e,n){if(-1===t.indexOf("\\"))return t;n&&(e=new RegExp(e.source+"|\\\\"+n));return t.replace(e,f)}(e,t,n)},toICAL:function(t,n){var r=e;return n&&(r=new RegExp(r.source+"|"+n)),t.replace(r,function(t){switch(t){case"\\":return"\\\\";case";":return"\\;";case",":return"\\,";case"\n":return"\\n";default:return t}})}}}var r={defaultType:"text"},i={defaultType:"text",multiValue:","},s={defaultType:"text",structuredValue:";"},o={defaultType:"integer"},a={defaultType:"date-time",allowedTypes:["date-time","date"]},l={defaultType:"date-time"},u={defaultType:"uri"},c={defaultType:"utc-offset"},h={defaultType:"recur"},d={defaultType:"date-and-or-time",allowedTypes:["date-time","date","text"]};function f(t){switch(t){case"\\\\":return"\\";case"\\;":return";";case"\\,":return",";case"\\n":case"\\N":return"\n";default:return t}}var p={categories:i,url:u,version:r,uid:r},m={boolean:{values:["TRUE","FALSE"],fromICAL:function(t){switch(t){case"TRUE":return!0;case"FALSE":default:return!1}},toICAL:function(t){return t?"TRUE":"FALSE"}},float:{matches:/^[+-]?\d+\.\d+$/,fromICAL:function(t){var e=parseFloat(t);return ICAL.helpers.isStrictlyNaN(e)?0:e},toICAL:function(t){return String(t)}},integer:{fromICAL:function(t){var e=parseInt(t);return ICAL.helpers.isStrictlyNaN(e)?0:e},toICAL:function(t){return String(t)}},"utc-offset":{toICAL:function(t){return t.length<7?t.substr(0,3)+t.substr(4,2):t.substr(0,3)+t.substr(4,2)+t.substr(7,2)},fromICAL:function(t){return t.length<6?t.substr(0,3)+":"+t.substr(3,2):t.substr(0,3)+":"+t.substr(3,2)+":"+t.substr(5,2)},decorate:function(t){return ICAL.UtcOffset.fromString(t)},undecorate:function(t){return t.toString()}}},g=ICAL.helpers.extend(m,{text:n(/\\\\|\\;|\\,|\\[Nn]/g,/\\|;|,|\n/g),uri:{},binary:{decorate:function(t){return ICAL.Binary.fromString(t)},undecorate:function(t){return t.toString()}},"cal-address":{},date:{decorate:function(t,e){return ICAL.Time.fromDateString(t,e)},undecorate:function(t){return t.toString()},fromICAL:function(t){return t.substr(0,4)+"-"+t.substr(4,2)+"-"+t.substr(6,2)},toICAL:function(t){return t.length>11?t:t.substr(0,4)+t.substr(5,2)+t.substr(8,2)}},"date-time":{fromICAL:function(t){var e=t.substr(0,4)+"-"+t.substr(4,2)+"-"+t.substr(6,2)+"T"+t.substr(9,2)+":"+t.substr(11,2)+":"+t.substr(13,2);return t[15]&&"Z"===t[15]&&(e+="Z"),e},toICAL:function(t){if(t.length<19)return t;var e=t.substr(0,4)+t.substr(5,2)+t.substr(8,5)+t.substr(14,2)+t.substr(17,2);return t[19]&&"Z"===t[19]&&(e+="Z"),e},decorate:function(t,e){return ICAL.Time.fromDateTimeString(t,e)},undecorate:function(t){return t.toString()}},duration:{decorate:function(t){return ICAL.Duration.fromString(t)},undecorate:function(t){return t.toString()}},period:{fromICAL:function(t){var e=t.split("/");return e[0]=g["date-time"].fromICAL(e[0]),ICAL.Duration.isValueString(e[1])||(e[1]=g["date-time"].fromICAL(e[1])),e},toICAL:function(t){return t[0]=g["date-time"].toICAL(t[0]),ICAL.Duration.isValueString(t[1])||(t[1]=g["date-time"].toICAL(t[1])),t.join("/")},decorate:function(t,e){return ICAL.Period.fromJSON(t,e)},undecorate:function(t){return t.toJSON()}},recur:{fromICAL:function(t){return ICAL.Recur._stringToData(t,!0)},toICAL:function(t){var e="";for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=t[n];"until"==n?r=r.length>10?g["date-time"].toICAL(r):g.date.toICAL(r):"wkst"==n?"number"==typeof r&&(r=ICAL.Recur.numericDayToIcalDay(r)):Array.isArray(r)&&(r=r.join(",")),e+=n.toUpperCase()+"="+r+";"}return e.substr(0,e.length-1)},decorate:function(t){return ICAL.Recur.fromData(t)},undecorate:function(t){return t.toJSON()}},time:{fromICAL:function(t){if(t.length<6)return t;var e=t.substr(0,2)+":"+t.substr(2,2)+":"+t.substr(4,2);return"Z"===t[6]&&(e+="Z"),e},toICAL:function(t){if(t.length<8)return t;var e=t.substr(0,2)+t.substr(3,2)+t.substr(6,2);return"Z"===t[8]&&(e+="Z"),e}}}),v=ICAL.helpers.extend(p,{action:r,attach:{defaultType:"uri"},attendee:{defaultType:"cal-address"},calscale:r,class:r,comment:r,completed:l,contact:r,created:l,description:r,dtend:a,dtstamp:l,dtstart:a,due:a,duration:{defaultType:"duration"},exdate:{defaultType:"date-time",allowedTypes:["date-time","date"],multiValue:","},exrule:h,freebusy:{defaultType:"period",multiValue:","},geo:{defaultType:"float",structuredValue:";"},"last-modified":l,location:r,method:r,organizer:{defaultType:"cal-address"},"percent-complete":o,priority:o,prodid:r,"related-to":r,repeat:o,rdate:{defaultType:"date-time",allowedTypes:["date-time","date","period"],multiValue:",",detectType:function(t){return-1!==t.indexOf("/")?"period":-1===t.indexOf("T")?"date":"date-time"}},"recurrence-id":a,resources:i,"request-status":s,rrule:h,sequence:o,status:r,summary:r,transp:r,trigger:{defaultType:"duration",allowedTypes:["duration","date-time"]},tzoffsetfrom:c,tzoffsetto:c,tzurl:u,tzid:r,tzname:r}),y=ICAL.helpers.extend(m,{text:n(t,e),uri:n(t,e),date:{decorate:function(t){return ICAL.VCardTime.fromDateAndOrTimeString(t,"date")},undecorate:function(t){return t.toString()},fromICAL:function(t){return 8==t.length?g.date.fromICAL(t):"-"==t[0]&&6==t.length?t.substr(0,4)+"-"+t.substr(4):t},toICAL:function(t){return 10==t.length?g.date.toICAL(t):"-"==t[0]&&7==t.length?t.substr(0,4)+t.substr(5):t}},time:{decorate:function(t){return ICAL.VCardTime.fromDateAndOrTimeString("T"+t,"time")},undecorate:function(t){return t.toString()},fromICAL:function(t){var e=y.time._splitZone(t,!0),n=e[0],r=e[1];return 6==r.length?r=r.substr(0,2)+":"+r.substr(2,2)+":"+r.substr(4,2):4==r.length&&"-"!=r[0]?r=r.substr(0,2)+":"+r.substr(2,2):5==r.length&&(r=r.substr(0,3)+":"+r.substr(3,2)),5!=n.length||"-"!=n[0]&&"+"!=n[0]||(n=n.substr(0,3)+":"+n.substr(3)),r+n},toICAL:function(t){var e=y.time._splitZone(t),n=e[0],r=e[1];return 8==r.length?r=r.substr(0,2)+r.substr(3,2)+r.substr(6,2):5==r.length&&"-"!=r[0]?r=r.substr(0,2)+r.substr(3,2):6==r.length&&(r=r.substr(0,3)+r.substr(4,2)),6!=n.length||"-"!=n[0]&&"+"!=n[0]||(n=n.substr(0,3)+n.substr(4)),r+n},_splitZone:function(t,e){var n,r,i=t.length-1,s=t.length-(e?5:6),o=t[s];return"Z"==t[i]?(n=t[i],r=t.substr(0,i)):t.length>6&&("-"==o||"+"==o)?(n=t.substr(s),r=t.substr(0,s)):(n="",r=t),[n,r]}},"date-time":{decorate:function(t){return ICAL.VCardTime.fromDateAndOrTimeString(t,"date-time")},undecorate:function(t){return t.toString()},fromICAL:function(t){return y["date-and-or-time"].fromICAL(t)},toICAL:function(t){return y["date-and-or-time"].toICAL(t)}},"date-and-or-time":{decorate:function(t){return ICAL.VCardTime.fromDateAndOrTimeString(t,"date-and-or-time")},undecorate:function(t){return t.toString()},fromICAL:function(t){var e=t.split("T");return(e[0]?y.date.fromICAL(e[0]):"")+(e[1]?"T"+y.time.fromICAL(e[1]):"")},toICAL:function(t){var e=t.split("T");return y.date.toICAL(e[0])+(e[1]?"T"+y.time.toICAL(e[1]):"")}},timestamp:g["date-time"],"language-tag":{matches:/^[a-zA-Z0-9\-]+$/}}),b=ICAL.helpers.extend(p,{adr:{defaultType:"text",structuredValue:";",multiValue:","},anniversary:d,bday:d,caladruri:u,caluri:u,clientpidmap:s,email:r,fburl:u,fn:r,gender:s,geo:u,impp:u,key:u,kind:r,lang:{defaultType:"language-tag"},logo:u,member:u,n:{defaultType:"text",structuredValue:";",multiValue:","},nickname:i,note:r,org:{defaultType:"text",structuredValue:";"},photo:u,related:u,rev:{defaultType:"timestamp"},role:r,sound:u,source:u,tel:{defaultType:"uri",allowedTypes:["uri","text"]},title:r,tz:{defaultType:"text",allowedTypes:["text","utc-offset","uri"]},xml:r}),_=ICAL.helpers.extend(m,{binary:g.binary,date:y.date,"date-time":y["date-time"],"phone-number":{},uri:g.uri,text:g.text,time:g.time,vcard:g.text,"utc-offset":{toICAL:function(t){return t.substr(0,7)},fromICAL:function(t){return t.substr(0,7)},decorate:function(t){return ICAL.UtcOffset.fromString(t)},undecorate:function(t){return t.toString()}}}),w=ICAL.helpers.extend(p,{fn:r,n:{defaultType:"text",structuredValue:";",multiValue:","},nickname:i,photo:{defaultType:"binary",allowedTypes:["binary","uri"]},bday:{defaultType:"date-time",allowedTypes:["date-time","date"],detectType:function(t){return-1===t.indexOf("T")?"date":"date-time"}},adr:{defaultType:"text",structuredValue:";",multiValue:","},label:r,tel:{defaultType:"phone-number"},email:r,mailer:r,tz:{defaultType:"utc-offset",allowedTypes:["utc-offset","text"]},geo:{defaultType:"float",structuredValue:";"},title:r,role:r,logo:{defaultType:"binary",allowedTypes:["binary","uri"]},agent:{defaultType:"vcard",allowedTypes:["vcard","text","uri"]},org:s,note:i,prodid:r,rev:{defaultType:"date-time",allowedTypes:["date-time","date"],detectType:function(t){return-1===t.indexOf("T")?"date":"date-time"}},"sort-string":r,sound:{defaultType:"binary",allowedTypes:["binary","uri"]},class:r,key:{defaultType:"binary",allowedTypes:["binary","text"]}}),x={value:g,param:{cutype:{values:["INDIVIDUAL","GROUP","RESOURCE","ROOM","UNKNOWN"],allowXName:!0,allowIanaToken:!0},"delegated-from":{valueType:"cal-address",multiValue:",",multiValueSeparateDQuote:!0},"delegated-to":{valueType:"cal-address",multiValue:",",multiValueSeparateDQuote:!0},encoding:{values:["8BIT","BASE64"]},fbtype:{values:["FREE","BUSY","BUSY-UNAVAILABLE","BUSY-TENTATIVE"],allowXName:!0,allowIanaToken:!0},member:{valueType:"cal-address",multiValue:",",multiValueSeparateDQuote:!0},partstat:{values:["NEEDS-ACTION","ACCEPTED","DECLINED","TENTATIVE","DELEGATED","COMPLETED","IN-PROCESS"],allowXName:!0,allowIanaToken:!0},range:{values:["THISLANDFUTURE"]},related:{values:["START","END"]},reltype:{values:["PARENT","CHILD","SIBLING"],allowXName:!0,allowIanaToken:!0},role:{values:["REQ-PARTICIPANT","CHAIR","OPT-PARTICIPANT","NON-PARTICIPANT"],allowXName:!0,allowIanaToken:!0},rsvp:{values:["TRUE","FALSE"]},"sent-by":{valueType:"cal-address"},tzid:{matches:/^\//},value:{values:["binary","boolean","cal-address","date","date-time","duration","float","integer","period","recur","text","time","uri","utc-offset"],allowXName:!0,allowIanaToken:!0}},property:v},C={value:y,param:{type:{valueType:"text",multiValue:","},value:{values:["text","uri","date","time","date-time","date-and-or-time","timestamp","boolean","integer","float","utc-offset","language-tag"],allowXName:!0,allowIanaToken:!0}},property:b},A={value:_,param:{type:{valueType:"text",multiValue:","},value:{values:["text","uri","date","date-time","phone-number","time","boolean","integer","float","utc-offset","vcard","binary"],allowXName:!0,allowIanaToken:!0}},property:w},D={defaultSet:x,defaultType:"unknown",components:{vcard:C,vcard3:A,vevent:x,vtodo:x,vjournal:x,valarm:x,vtimezone:x,daylight:x,standard:x},icalendar:x,vcard:C,vcard3:A,getDesignSet:function(t){return t&&t in D.components?D.components[t]:D.defaultSet}};return D}(),ICAL.stringify=function(){"use strict";var t="\r\n",e=ICAL.design,n=ICAL.helpers;function r(e){"string"==typeof e[0]&&(e=[e]);for(var n=0,i=e.length,s="";n<i;n++)s+=r.component(e[n])+t;return s}r.component=function(n,i){var s=n[0].toUpperCase(),o="BEGIN:"+s+t,a=n[1],l=0,u=a.length,c=n[0];for("vcard"===c&&n[1].length>0&&("version"!==n[1][0][0]||"4.0"!==n[1][0][3])&&(c="vcard3"),i=i||e.getDesignSet(c);l<u;l++)o+=r.property(a[l],i)+t;for(var h=n[2],d=0,f=h.length;d<f;d++)o+=r.component(h[d],i)+t;return o+="END:"+s},r.property=function(t,n,i){var s,o=t[0].toUpperCase(),a=t[0],l=t[1],u=o;for(s in l){var c=l[s];if(l.hasOwnProperty(s))(f=s in n.param&&n.param[s].multiValue)&&Array.isArray(c)?(n.param[s].multiValueSeparateDQuote&&(f='"'+f+'"'),c=c.map(r._rfc6868Unescape),c=r.multiValue(c,f,"unknown",null,n)):c=r._rfc6868Unescape(c),u+=";"+s.toUpperCase(),u+="="+r.propertyValue(c)}if(3===t.length)return u+":";var h,d=t[2];n||(n=e.defaultSet);var f=!1,p=!1,m=!1;return a in n.property?("multiValue"in(h=n.property[a])&&(f=h.multiValue),"structuredValue"in h&&Array.isArray(t[3])&&(p=h.structuredValue),"defaultType"in h?d===h.defaultType&&(m=!0):"unknown"===d&&(m=!0)):"unknown"===d&&(m=!0),m||(u+=";VALUE="+d.toUpperCase()),u+=":",u+=f&&p?r.multiValue(t[3],p,d,f,n,p):f?r.multiValue(t.slice(3),f,d,null,n,!1):p?r.multiValue(t[3],p,d,null,n,p):r.value(t[3],d,n,!1),i?u:ICAL.helpers.foldline(u)},r.propertyValue=function(t){return-1===n.unescapedIndexOf(t,",")&&-1===n.unescapedIndexOf(t,":")&&-1===n.unescapedIndexOf(t,";")?t:'"'+t+'"'},r.multiValue=function(t,e,n,i,s,o){for(var a="",l=t.length,u=0;u<l;u++)i&&Array.isArray(t[u])?a+=r.multiValue(t[u],i,n,null,s,o):a+=r.value(t[u],n,s,o),u!==l-1&&(a+=e);return a},r.value=function(t,e,n,r){return e in n.value&&"toICAL"in n.value[e]?n.value[e].toICAL(t,r):t},r._rfc6868Unescape=function(t){return t.replace(/[\n^"]/g,function(t){return i[t]})};var i={'"':"^'","\n":"^n","^":"^^"};return r}(),ICAL.parse=function(){"use strict";var t=/[^ \t]/,e=ICAL.design,n=ICAL.helpers;function r(t){this.message=t,this.name="ParserError";try{throw new Error}catch(t){if(t.stack){var e=t.stack.split("\n");e.shift(),this.stack=e.join("\n")}}}function i(t){var e={},n=e.component=[];if(e.stack=[n],i._eachLine(t,function(t,n){i._handleContentLine(n,e)}),e.stack.length>1)throw new r("invalid ical body. component began but did not end");return e=null,1==n.length?n[0]:n}r.prototype=Error.prototype,i.property=function(t,n){var r={component:[[],[]],designSet:n||e.defaultSet};return i._handleContentLine(t,r),r.component[1][0]},i.component=function(t){return i(t)},i.ParserError=r,i._handleContentLine=function(t,n){var s,o,a,l,u,c,h=t.indexOf(":"),d=t.indexOf(";"),f={};if(-1!==d&&-1!==h&&d>h&&(d=-1),-1!==d){if(a=t.substring(0,d).toLowerCase(),-1==(u=i._parseParameters(t.substring(d),0,n.designSet))[2])throw new r("Invalid parameters in '"+t+"'");if(f=u[0],s=u[1].length+u[2]+d,-1===(o=t.substring(s).indexOf(":")))throw new r("Missing parameter value in '"+t+"'");l=t.substring(s+o+1)}else{if(-1===h)throw new r('invalid line (no token ";" or ":") "'+t+'"');if(a=t.substring(0,h).toLowerCase(),l=t.substring(h+1),"begin"===a){var p=[l.toLowerCase(),[],[]];return 1===n.stack.length?n.component.push(p):n.component[2].push(p),n.stack.push(n.component),n.component=p,void(n.designSet||(n.designSet=e.getDesignSet(n.component[0])))}if("end"===a)return void(n.component=n.stack.pop())}var m,g,v=!1,y=!1;a in n.designSet.property&&("multiValue"in(m=n.designSet.property[a])&&(v=m.multiValue),"structuredValue"in m&&(y=m.structuredValue),l&&"detectType"in m&&(c=m.detectType(l))),c||(c="value"in f?f.value.toLowerCase():m?m.defaultType:"unknown"),delete f.value,v&&y?g=[a,f,c,l=i._parseMultiValue(l,y,c,[],v,n.designSet,y)]:v?(g=[a,f,c],i._parseMultiValue(l,v,c,g,null,n.designSet,!1)):g=y?[a,f,c,l=i._parseMultiValue(l,y,c,[],null,n.designSet,y)]:[a,f,c,l=i._parseValue(l,c,n.designSet,!1)],"vcard"!==n.component[0]||0!==n.component[1].length||"version"===a&&"4.0"===l||(n.designSet=e.getDesignSet("vcard3")),n.component[1].push(g)},i._parseValue=function(t,e,n,r){return e in n.value&&"fromICAL"in n.value[e]?n.value[e].fromICAL(t,r):t},i._parseParameters=function(t,e,s){for(var o,a,l,u,c,h,d=e,f=0,p={},m=-1;!1!==f&&-1!==(f=n.unescapedIndexOf(t,"=",f+1));){if(0==(o=t.substr(d+1,f-d-1)).length)throw new r("Empty parameter name in '"+t+"'");if(u=(a=o.toLowerCase())in s.param&&s.param[a].valueType?s.param[a].valueType:"text",a in s.param&&(c=s.param[a].multiValue,s.param[a].multiValueSeparateDQuote&&(h=i._rfc6868Escape('"'+c+'"'))),'"'===t[f+1]){if(m=f+2,f=n.unescapedIndexOf(t,'"',m),c&&-1!=f)for(var g=!0;g;)t[f+1]==c&&'"'==t[f+2]?f=n.unescapedIndexOf(t,'"',f+3):g=!1;if(-1===f)throw new r('invalid line (no matching double quote) "'+t+'"');l=t.substr(m,f-m),-1===(d=n.unescapedIndexOf(t,";",f))&&(f=!1)}else{m=f+1;var v=n.unescapedIndexOf(t,";",m),y=n.unescapedIndexOf(t,":",m);-1!==y&&v>y?(v=y,f=!1):-1===v?(v=-1===y?t.length:y,f=!1):(d=v,f=v),l=t.substr(m,v-m)}if(l=i._rfc6868Escape(l),c){var b=h||c;p[a]=i._parseMultiValue(l,b,u,[],null,s)}else p[a]=i._parseValue(l,u,s)}return[p,l,m]},i._rfc6868Escape=function(t){return t.replace(/\^['n^]/g,function(t){return s[t]})};var s={"^'":'"',"^n":"\n","^^":"^"};return i._parseMultiValue=function(t,e,r,s,o,a,l){var u,c=0,h=0;if(0===e.length)return t;for(;-1!==(c=n.unescapedIndexOf(t,e,h));)u=t.substr(h,c-h),u=o?i._parseMultiValue(u,o,r,[],null,a,l):i._parseValue(u,r,a,l),s.push(u),h=c+e.length;return u=t.substr(h),u=o?i._parseMultiValue(u,o,r,[],null,a,l):i._parseValue(u,r,a,l),s.push(u),1==s.length?s[0]:s},i._eachLine=function(e,n){var r,i,s,o=e.length,a=e.search(t),l=a;do{s=(l=e.indexOf("\n",a)+1)>1&&"\r"===e[l-2]?2:1,0===l&&(l=o,s=0)," "===(i=e[a])||"\t"===i?r+=e.substr(a+1,l-a-(s+1)):(r&&n(null,r),r=e.substr(a,l-a-s)),a=l}while(l!==o);(r=r.trim()).length&&n(null,r)},i}(),ICAL.Component=function(){"use strict";function t(t,e){"string"==typeof t&&(t=[t,[],[]]),this.jCal=t,this.parent=e||null}return t.prototype={_hydratedPropertyCount:0,_hydratedComponentCount:0,get name(){return this.jCal[0]},get _designSet(){return this.parent&&this.parent._designSet||ICAL.design.getDesignSet(this.name)},_hydrateComponent:function(e){if(this._components||(this._components=[],this._hydratedComponentCount=0),this._components[e])return this._components[e];var n=new t(this.jCal[2][e],this);return this._hydratedComponentCount++,this._components[e]=n},_hydrateProperty:function(t){if(this._properties||(this._properties=[],this._hydratedPropertyCount=0),this._properties[t])return this._properties[t];var e=new ICAL.Property(this.jCal[1][t],this);return this._hydratedPropertyCount++,this._properties[t]=e},getFirstSubcomponent:function(t){if(t)for(var e=0,n=this.jCal[2],r=n.length;e<r;e++){if(n[e][0]===t)return this._hydrateComponent(e)}else if(this.jCal[2].length)return this._hydrateComponent(0);return null},getAllSubcomponents:function(t){var e=this.jCal[2].length,n=0;if(t){for(var r=this.jCal[2],i=[];n<e;n++)t===r[n][0]&&i.push(this._hydrateComponent(n));return i}if(!this._components||this._hydratedComponentCount!==e)for(;n<e;n++)this._hydrateComponent(n);return this._components||[]},hasProperty:function(t){for(var e=this.jCal[1],n=e.length,r=0;r<n;r++)if(e[r][0]===t)return!0;return!1},getFirstProperty:function(t){if(t)for(var e=0,n=this.jCal[1],r=n.length;e<r;e++){if(n[e][0]===t)return this._hydrateProperty(e)}else if(this.jCal[1].length)return this._hydrateProperty(0);return null},getFirstPropertyValue:function(t){var e=this.getFirstProperty(t);return e?e.getFirstValue():null},getAllProperties:function(t){var e=this.jCal[1].length,n=0;if(t){for(var r=this.jCal[1],i=[];n<e;n++)t===r[n][0]&&i.push(this._hydrateProperty(n));return i}if(!this._properties||this._hydratedPropertyCount!==e)for(;n<e;n++)this._hydrateProperty(n);return this._properties||[]},_removeObjectByIndex:function(t,e,n){if((e=e||[])[n]){var r=e[n];"parent"in r&&(r.parent=null)}e.splice(n,1),this.jCal[t].splice(n,1)},_removeObject:function(t,e,n){var r=0,i=this.jCal[t],s=i.length,o=this[e];if("string"==typeof n){for(;r<s;r++)if(i[r][0]===n)return this._removeObjectByIndex(t,o,r),!0}else if(o)for(;r<s;r++)if(o[r]&&o[r]===n)return this._removeObjectByIndex(t,o,r),!0;return!1},_removeAllObjects:function(t,e,n){for(var r=this[e],i=this.jCal[t],s=i.length-1;s>=0;s--)n&&i[s][0]!==n||this._removeObjectByIndex(t,r,s)},addSubcomponent:function(t){this._components||(this._components=[],this._hydratedComponentCount=0),t.parent&&t.parent.removeSubcomponent(t);var e=this.jCal[2].push(t.jCal);return this._components[e-1]=t,this._hydratedComponentCount++,t.parent=this,t},removeSubcomponent:function(t){var e=this._removeObject(2,"_components",t);return e&&this._hydratedComponentCount--,e},removeAllSubcomponents:function(t){var e=this._removeAllObjects(2,"_components",t);return this._hydratedComponentCount=0,e},addProperty:function(t){if(!(t instanceof ICAL.Property))throw new TypeError("must instance of ICAL.Property");this._properties||(this._properties=[],this._hydratedPropertyCount=0),t.parent&&t.parent.removeProperty(t);var e=this.jCal[1].push(t.jCal);return this._properties[e-1]=t,this._hydratedPropertyCount++,t.parent=this,t},addPropertyWithValue:function(t,e){var n=new ICAL.Property(t);return n.setValue(e),this.addProperty(n),n},updatePropertyWithValue:function(t,e){var n=this.getFirstProperty(t);return n?n.setValue(e):n=this.addPropertyWithValue(t,e),n},removeProperty:function(t){var e=this._removeObject(1,"_properties",t);return e&&this._hydratedPropertyCount--,e},removeAllProperties:function(t){var e=this._removeAllObjects(1,"_properties",t);return this._hydratedPropertyCount=0,e},toJSON:function(){return this.jCal},toString:function(){return ICAL.stringify.component(this.jCal,this._designSet)}},t.fromString=function(e){return new t(ICAL.parse.component(e))},t}(),ICAL.Property=function(){"use strict";var t=2,e=ICAL.design;function n(n,r){this._parent=r||null,"string"==typeof n?(this.jCal=[n,{},e.defaultType],this.jCal[t]=this.getDefaultType()):this.jCal=n,this._updateType()}return n.prototype={get type(){return this.jCal[t]},get name(){return this.jCal[0]},get parent(){return this._parent},set parent(n){var r=!this._parent||n&&n._designSet!=this._parent._designSet;return this._parent=n,this.type==e.defaultType&&r&&(this.jCal[t]=this.getDefaultType(),this._updateType()),n},get _designSet(){return this.parent?this.parent._designSet:e.defaultSet},_updateType:function(){var t=this._designSet;if(this.type in t.value){t.value[this.type];"decorate"in t.value[this.type]?this.isDecorated=!0:this.isDecorated=!1,this.name in t.property&&(this.isMultiValue="multiValue"in t.property[this.name],this.isStructuredValue="structuredValue"in t.property[this.name])}},_hydrateValue:function(t){return this._values&&this._values[t]?this._values[t]:this.jCal.length<=3+t?null:this.isDecorated?(this._values||(this._values=[]),this._values[t]=this._decorate(this.jCal[3+t])):this.jCal[3+t]},_decorate:function(t){return this._designSet.value[this.type].decorate(t,this)},_undecorate:function(t){return this._designSet.value[this.type].undecorate(t,this)},_setDecoratedValue:function(t,e){this._values||(this._values=[]),"object"==typeof t&&"icaltype"in t?(this.jCal[3+e]=this._undecorate(t),this._values[e]=t):(this.jCal[3+e]=t,this._values[e]=this._decorate(t))},getParameter:function(t){return t in this.jCal[1]?this.jCal[1][t]:void 0},setParameter:function(t,e){var n=t.toLowerCase();"string"==typeof e&&n in this._designSet.param&&"multiValue"in this._designSet.param[n]&&(e=[e]),this.jCal[1][t]=e},removeParameter:function(t){delete this.jCal[1][t]},getDefaultType:function(){var t=this.jCal[0],n=this._designSet;if(t in n.property){var r=n.property[t];if("defaultType"in r)return r.defaultType}return e.defaultType},resetType:function(e){this.removeAllValues(),this.jCal[t]=e,this._updateType()},getFirstValue:function(){return this._hydrateValue(0)},getValues:function(){var t=this.jCal.length-3;if(t<1)return[];for(var e=0,n=[];e<t;e++)n[e]=this._hydrateValue(e);return n},removeAllValues:function(){this._values&&(this._values.length=0),this.jCal.length=3},setValues:function(t){if(!this.isMultiValue)throw new Error(this.name+": does not not support mulitValue.\noverride isMultiValue");var e=t.length,n=0;if(this.removeAllValues(),e>0&&"object"==typeof t[0]&&"icaltype"in t[0]&&this.resetType(t[0].icaltype),this.isDecorated)for(;n<e;n++)this._setDecoratedValue(t[n],n);else for(;n<e;n++)this.jCal[3+n]=t[n]},setValue:function(t){this.removeAllValues(),"object"==typeof t&&"icaltype"in t&&this.resetType(t.icaltype),this.isDecorated?this._setDecoratedValue(t,0):this.jCal[3]=t},toJSON:function(){return this.jCal},toICALString:function(){return ICAL.stringify.property(this.jCal,this._designSet,!0)}},n.fromString=function(t,e){return new n(ICAL.parse.property(t,e))},n}(),ICAL.UtcOffset=function(){function t(t){this.fromData(t)}return t.prototype={hours:0,minutes:0,factor:1,icaltype:"utc-offset",clone:function(){return ICAL.UtcOffset.fromSeconds(this.toSeconds())},fromData:function(t){if(t)for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);this._normalize()},fromSeconds:function(t){var e=Math.abs(t);return this.factor=t<0?-1:1,this.hours=ICAL.helpers.trunc(e/3600),e-=3600*this.hours,this.minutes=ICAL.helpers.trunc(e/60),this},toSeconds:function(){return this.factor*(60*this.minutes+3600*this.hours)},compare:function(t){var e=this.toSeconds(),n=t.toSeconds();return(e>n)-(n>e)},_normalize:function(){for(var t=this.toSeconds(),e=this.factor;t<-43200;)t+=97200;for(;t>50400;)t-=97200;this.fromSeconds(t),0==t&&(this.factor=e)},toICALString:function(){return ICAL.design.icalendar.value["utc-offset"].toICAL(this.toString())},toString:function(){return(1==this.factor?"+":"-")+ICAL.helpers.pad2(this.hours)+":"+ICAL.helpers.pad2(this.minutes)}},t.fromString=function(t){var e={};return e.factor="+"===t[0]?1:-1,e.hours=ICAL.helpers.strictParseInt(t.substr(1,2)),e.minutes=ICAL.helpers.strictParseInt(t.substr(4,2)),new ICAL.UtcOffset(e)},t.fromSeconds=function(e){var n=new t;return n.fromSeconds(e),n},t}(),ICAL.Binary=function(){function t(t){this.value=t}return t.prototype={icaltype:"binary",decodeValue:function(){return this._b64_decode(this.value)},setEncodedValue:function(t){this.value=this._b64_encode(t)},_b64_encode:function(t){var e,n,r,i,s,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a=0,l=0,u="",c=[];if(!t)return t;do{e=(s=t.charCodeAt(a++)<<16|t.charCodeAt(a++)<<8|t.charCodeAt(a++))>>18&63,n=s>>12&63,r=s>>6&63,i=63&s,c[l++]=o.charAt(e)+o.charAt(n)+o.charAt(r)+o.charAt(i)}while(a<t.length);u=c.join("");var h=t.length%3;return(h?u.slice(0,h-3):u)+"===".slice(h||3)},_b64_decode:function(t){var e,n,r,i,s,o,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",l=0,u=0,c=[];if(!t)return t;t+="";do{e=(o=a.indexOf(t.charAt(l++))<<18|a.indexOf(t.charAt(l++))<<12|(i=a.indexOf(t.charAt(l++)))<<6|(s=a.indexOf(t.charAt(l++))))>>16&255,n=o>>8&255,r=255&o,c[u++]=64==i?String.fromCharCode(e):64==s?String.fromCharCode(e,n):String.fromCharCode(e,n,r)}while(l<t.length);return c.join("")},toString:function(){return this.value}},t.fromString=function(e){return new t(e)},t}(),ICAL.Period=function(t){if(this.wrappedJSObject=this,t&&"start"in t){if(t.start&&!(t.start instanceof ICAL.Time))throw new TypeError(".start must be an instance of ICAL.Time");this.start=t.start}if(t&&t.end&&t.duration)throw new Error("cannot accept both end and duration");if(t&&"end"in t){if(t.end&&!(t.end instanceof ICAL.Time))throw new TypeError(".end must be an instance of ICAL.Time");this.end=t.end}if(t&&"duration"in t){if(t.duration&&!(t.duration instanceof ICAL.Duration))throw new TypeError(".duration must be an instance of ICAL.Duration");this.duration=t.duration}},ICAL.Period.prototype={start:null,end:null,duration:null,icalclass:"icalperiod",icaltype:"period",clone:function(){return ICAL.Period.fromData({start:this.start?this.start.clone():null,end:this.end?this.end.clone():null,duration:this.duration?this.duration.clone():null})},getDuration:function(){return this.duration?this.duration:this.end.subtractDate(this.start)},getEnd:function(){if(this.end)return this.end;var t=this.start.clone();return t.addDuration(this.duration),t},toString:function(){return this.start+"/"+(this.end||this.duration)},toJSON:function(){return[this.start.toString(),(this.end||this.duration).toString()]},toICALString:function(){return this.start.toICALString()+"/"+(this.end||this.duration).toICALString()}},ICAL.Period.fromString=function(t,e){var n=t.split("/");if(2!==n.length)throw new Error('Invalid string value: "'+t+'" must contain a "/" char.');var r={start:ICAL.Time.fromDateTimeString(n[0],e)},i=n[1];return ICAL.Duration.isValueString(i)?r.duration=ICAL.Duration.fromString(i):r.end=ICAL.Time.fromDateTimeString(i,e),new ICAL.Period(r)},ICAL.Period.fromData=function(t){return new ICAL.Period(t)},ICAL.Period.fromJSON=function(t,e){return ICAL.Duration.isValueString(t[1])?ICAL.Period.fromData({start:ICAL.Time.fromDateTimeString(t[0],e),duration:ICAL.Duration.fromString(t[1])}):ICAL.Period.fromData({start:ICAL.Time.fromDateTimeString(t[0],e),end:ICAL.Time.fromDateTimeString(t[1],e)})},function(){var t=/([PDWHMTS]{1,1})/;function e(t,e,n){var r;switch(t){case"P":n.isNegative=!(!e||"-"!==e);break;case"D":r="days";break;case"W":r="weeks";break;case"H":r="hours";break;case"M":r="minutes";break;case"S":r="seconds";break;default:return 0}if(r){if(!e&&0!==e)throw new Error('invalid duration value: Missing number before "'+t+'"');var i=parseInt(e,10);if(ICAL.helpers.isStrictlyNaN(i))throw new Error('invalid duration value: Invalid number "'+e+'" before "'+t+'"');n[r]=i}return 1}ICAL.Duration=function(t){this.wrappedJSObject=this,this.fromData(t)},ICAL.Duration.prototype={weeks:0,days:0,hours:0,minutes:0,seconds:0,isNegative:!1,icalclass:"icalduration",icaltype:"duration",clone:function(){return ICAL.Duration.fromData(this)},toSeconds:function(){var t=this.seconds+60*this.minutes+3600*this.hours+86400*this.days+604800*this.weeks;return this.isNegative?-t:t},fromSeconds:function(t){var e=Math.abs(t);return this.isNegative=t<0,this.days=ICAL.helpers.trunc(e/86400),this.days%7==0?(this.weeks=this.days/7,this.days=0):this.weeks=0,e-=86400*(this.days+7*this.weeks),this.hours=ICAL.helpers.trunc(e/3600),e-=3600*this.hours,this.minutes=ICAL.helpers.trunc(e/60),e-=60*this.minutes,this.seconds=e,this},fromData:function(t){var e=["weeks","days","hours","minutes","seconds","isNegative"];for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];this[r]=t&&r in t?t[r]:0}},reset:function(){this.isNegative=!1,this.weeks=0,this.days=0,this.hours=0,this.minutes=0,this.seconds=0},compare:function(t){var e=this.toSeconds(),n=t.toSeconds();return(e>n)-(e<n)},normalize:function(){this.fromSeconds(this.toSeconds())},toString:function(){if(0==this.toSeconds())return"PT0S";var t="";return this.isNegative&&(t+="-"),t+="P",this.weeks&&(t+=this.weeks+"W"),this.days&&(t+=this.days+"D"),(this.hours||this.minutes||this.seconds)&&(t+="T",this.hours&&(t+=this.hours+"H"),this.minutes&&(t+=this.minutes+"M"),this.seconds&&(t+=this.seconds+"S")),t},toICALString:function(){return this.toString()}},ICAL.Duration.fromSeconds=function(t){return(new ICAL.Duration).fromSeconds(t)},ICAL.Duration.isValueString=function(t){return"P"===t[0]||"P"===t[1]},ICAL.Duration.fromString=function(n){for(var r=0,i=Object.create(null),s=0;-1!==(r=n.search(t));){var o=n[r],a=n.substr(0,r);n=n.substr(r+1),s+=e(o,a,i)}if(s<2)throw new Error('invalid duration value: Not enough duration components in "'+n+'"');return new ICAL.Duration(i)},ICAL.Duration.fromData=function(t){return new ICAL.Duration(t)}}(),function(){var t=["tzid","location","tznames","latitude","longitude"];ICAL.Timezone=function(t){this.wrappedJSObject=this,this.fromData(t)},ICAL.Timezone.prototype={tzid:"",location:"",tznames:"",latitude:0,longitude:0,component:null,expandedUntilYear:0,icalclass:"icaltimezone",fromData:function(e){if(this.expandedUntilYear=0,this.changes=[],e instanceof ICAL.Component)this.component=e;else{if(e&&"component"in e)if("string"==typeof e.component){var n=ICAL.parse(e.component);this.component=new ICAL.Component(n)}else e.component instanceof ICAL.Component?this.component=e.component:this.component=null;for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];e&&i in e&&(this[i]=e[i])}}return this.component instanceof ICAL.Component&&!this.tzid&&(this.tzid=this.component.getFirstPropertyValue("tzid")),this},utcOffset:function(t){if(this==ICAL.Timezone.utcTimezone||this==ICAL.Timezone.localTimezone)return 0;if(this._ensureCoverage(t.year),!this.changes.length)return 0;for(var e={year:t.year,month:t.month,day:t.day,hour:t.hour,minute:t.minute,second:t.second},n=this._findNearbyChange(e),r=-1,i=1;;){var s=ICAL.helpers.clone(this.changes[n],!0);if(s.utcOffset<s.prevUtcOffset?ICAL.Timezone.adjust_change(s,0,0,0,s.utcOffset):ICAL.Timezone.adjust_change(s,0,0,0,s.prevUtcOffset),ICAL.Timezone._compare_change_fn(e,s)>=0?r=n:i=-1,-1==i&&-1!=r)break;if((n+=i)<0)return 0;if(n>=this.changes.length)break}var o=this.changes[r];if(o.utcOffset-o.prevUtcOffset<0&&r>0){var a=ICAL.helpers.clone(o,!0);if(ICAL.Timezone.adjust_change(a,0,0,0,a.prevUtcOffset),ICAL.Timezone._compare_change_fn(e,a)<0){var l=this.changes[r-1];0!=o.is_daylight&&0==l.is_daylight&&(o=l)}}return o.utcOffset},_findNearbyChange:function(t){var e=ICAL.helpers.binsearchInsert(this.changes,t,ICAL.Timezone._compare_change_fn);return e>=this.changes.length?this.changes.length-1:e},_ensureCoverage:function(t){if(-1==ICAL.Timezone._minimumExpansionYear){var e=ICAL.Time.now();ICAL.Timezone._minimumExpansionYear=e.year}var n=t;if(n<ICAL.Timezone._minimumExpansionYear&&(n=ICAL.Timezone._minimumExpansionYear),(n+=ICAL.Timezone.EXTRA_COVERAGE)>ICAL.Timezone.MAX_YEAR&&(n=ICAL.Timezone.MAX_YEAR),!this.changes.length||this.expandedUntilYear<t){for(var r=this.component.getAllSubcomponents(),i=r.length,s=0;s<i;s++)this._expandComponent(r[s],n,this.changes);this.changes.sort(ICAL.Timezone._compare_change_fn),this.expandedUntilYear=n}},_expandComponent:function(t,e,n){if(!t.hasProperty("dtstart")||!t.hasProperty("tzoffsetto")||!t.hasProperty("tzoffsetfrom"))return null;var r,i=t.getFirstProperty("dtstart").getFirstValue();function s(t){return t.factor*(3600*t.hours+60*t.minutes)}function o(){var e={};return e.is_daylight="daylight"==t.name,e.utcOffset=s(t.getFirstProperty("tzoffsetto").getFirstValue()),e.prevUtcOffset=s(t.getFirstProperty("tzoffsetfrom").getFirstValue()),e}if(t.hasProperty("rrule")||t.hasProperty("rdate")){var a=t.getAllProperties("rdate");for(var l in a)if(a.hasOwnProperty(l)){var u=a[l].getFirstValue();(r=o()).year=u.year,r.month=u.month,r.day=u.day,u.isDate?(r.hour=i.hour,r.minute=i.minute,r.second=i.second,i.zone!=ICAL.Timezone.utcTimezone&&ICAL.Timezone.adjust_change(r,0,0,0,-r.prevUtcOffset)):(r.hour=u.hour,r.minute=u.minute,r.second=u.second,u.zone!=ICAL.Timezone.utcTimezone&&ICAL.Timezone.adjust_change(r,0,0,0,-r.prevUtcOffset)),n.push(r)}var c=t.getFirstProperty("rrule");if(c){c=c.getFirstValue(),r=o(),c.until&&c.until.zone==ICAL.Timezone.utcTimezone&&(c.until.adjust(0,0,0,r.prevUtcOffset),c.until.zone=ICAL.Timezone.localTimezone);for(var h,d=c.iterator(i);(h=d.next())&&(r=o(),!(h.year>e)&&h);)r.year=h.year,r.month=h.month,r.day=h.day,r.hour=h.hour,r.minute=h.minute,r.second=h.second,r.isDate=h.isDate,ICAL.Timezone.adjust_change(r,0,0,0,-r.prevUtcOffset),n.push(r)}}else(r=o()).year=i.year,r.month=i.month,r.day=i.day,r.hour=i.hour,r.minute=i.minute,r.second=i.second,ICAL.Timezone.adjust_change(r,0,0,0,-r.prevUtcOffset),n.push(r);return n},toString:function(){return this.tznames?this.tznames:this.tzid}},ICAL.Timezone._compare_change_fn=function(t,e){return t.year<e.year?-1:t.year>e.year?1:t.month<e.month?-1:t.month>e.month?1:t.day<e.day?-1:t.day>e.day?1:t.hour<e.hour?-1:t.hour>e.hour?1:t.minute<e.minute?-1:t.minute>e.minute?1:t.second<e.second?-1:t.second>e.second?1:0},ICAL.Timezone.convert_time=function(t,e,n){if(t.isDate||e.tzid==n.tzid||e==ICAL.Timezone.localTimezone||n==ICAL.Timezone.localTimezone)return t.zone=n,t;var r=e.utcOffset(t);return t.adjust(0,0,0,-r),r=n.utcOffset(t),t.adjust(0,0,0,r),null},ICAL.Timezone.fromData=function(t){return(new ICAL.Timezone).fromData(t)},ICAL.Timezone.utcTimezone=ICAL.Timezone.fromData({tzid:"UTC"}),ICAL.Timezone.localTimezone=ICAL.Timezone.fromData({tzid:"floating"}),ICAL.Timezone.adjust_change=function(t,e,n,r,i){return ICAL.Time.prototype.adjust.call(t,e,n,r,i,t)},ICAL.Timezone._minimumExpansionYear=-1,ICAL.Timezone.MAX_YEAR=2035,ICAL.Timezone.EXTRA_COVERAGE=5}(),ICAL.TimezoneService=function(){var t,e={reset:function(){t=Object.create(null);var e=ICAL.Timezone.utcTimezone;t.Z=e,t.UTC=e,t.GMT=e},has:function(e){return!!t[e]},get:function(e){return t[e]},register:function(e,n){if(e instanceof ICAL.Component&&"vtimezone"===e.name&&(e=(n=new ICAL.Timezone(e)).tzid),!(n instanceof ICAL.Timezone))throw new TypeError("timezone must be ICAL.Timezone or ICAL.Component");t[e]=n},remove:function(e){return delete t[e]}};return e.reset(),e}(),ICAL.Time=function(t,e){this.wrappedJSObject=this;var n=this._time=Object.create(null);n.year=0,n.month=1,n.day=1,n.hour=0,n.minute=0,n.second=0,n.isDate=!1,this.fromData(t,e)},ICAL.Time._dowCache={},ICAL.Time._wnCache={},ICAL.Time.prototype={icalclass:"icaltime",_cachedUnixTime:null,get icaltype(){return this.isDate?"date":"date-time"},zone:null,_pendingNormalization:!1,clone:function(){return new ICAL.Time(this._time,this.zone)},reset:function(){this.fromData(ICAL.Time.epochTime),this.zone=ICAL.Timezone.utcTimezone},resetTo:function(t,e,n,r,i,s,o){this.fromData({year:t,month:e,day:n,hour:r,minute:i,second:s,zone:o})},fromJSDate:function(t,e){return t?e?(this.zone=ICAL.Timezone.utcTimezone,this.year=t.getUTCFullYear(),this.month=t.getUTCMonth()+1,this.day=t.getUTCDate(),this.hour=t.getUTCHours(),this.minute=t.getUTCMinutes(),this.second=t.getUTCSeconds()):(this.zone=ICAL.Timezone.localTimezone,this.year=t.getFullYear(),this.month=t.getMonth()+1,this.day=t.getDate(),this.hour=t.getHours(),this.minute=t.getMinutes(),this.second=t.getSeconds()):this.reset(),this._cachedUnixTime=null,this},fromData:function(t,e){if(t)for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if("icaltype"===n)continue;this[n]=t[n]}if(e&&(this.zone=e),!t||"isDate"in t?t&&"isDate"in t&&(this.isDate=t.isDate):this.isDate=!("hour"in t),t&&"timezone"in t){var r=ICAL.TimezoneService.get(t.timezone);this.zone=r||ICAL.Timezone.localTimezone}return t&&"zone"in t&&(this.zone=t.zone),this.zone||(this.zone=ICAL.Timezone.localTimezone),this._cachedUnixTime=null,this},dayOfWeek:function(){var t=(this.year<<9)+(this.month<<5)+this.day;if(t in ICAL.Time._dowCache)return ICAL.Time._dowCache[t];var e=this.day,n=this.month+(this.month<3?12:0),r=this.year-(this.month<3?1:0),i=e+r+ICAL.helpers.trunc(26*(n+1)/10)+ICAL.helpers.trunc(r/4);return i=((i+=6*ICAL.helpers.trunc(r/100)+ICAL.helpers.trunc(r/400))+6)%7+1,ICAL.Time._dowCache[t]=i,i},dayOfYear:function(){var t=ICAL.Time.isLeapYear(this.year)?1:0;return ICAL.Time.daysInYearPassedMonth[t][this.month-1]+this.day},startOfWeek:function(t){var e=t||ICAL.Time.SUNDAY,n=this.clone();return n.day-=(this.dayOfWeek()+7-e)%7,n.isDate=!0,n.hour=0,n.minute=0,n.second=0,n},endOfWeek:function(t){var e=t||ICAL.Time.SUNDAY,n=this.clone();return n.day+=(7-this.dayOfWeek()+e-ICAL.Time.SUNDAY)%7,n.isDate=!0,n.hour=0,n.minute=0,n.second=0,n},startOfMonth:function(){var t=this.clone();return t.day=1,t.isDate=!0,t.hour=0,t.minute=0,t.second=0,t},endOfMonth:function(){var t=this.clone();return t.day=ICAL.Time.daysInMonth(t.month,t.year),t.isDate=!0,t.hour=0,t.minute=0,t.second=0,t},startOfYear:function(){var t=this.clone();return t.day=1,t.month=1,t.isDate=!0,t.hour=0,t.minute=0,t.second=0,t},endOfYear:function(){var t=this.clone();return t.day=31,t.month=12,t.isDate=!0,t.hour=0,t.minute=0,t.second=0,t},startDoyWeek:function(t){var e=t||ICAL.Time.SUNDAY,n=this.dayOfWeek()-e;return n<0&&(n+=7),this.dayOfYear()-n},getDominicalLetter:function(){return ICAL.Time.getDominicalLetter(this.year)},nthWeekDay:function(t,e){var n,r=ICAL.Time.daysInMonth(this.month,this.year),i=e,s=0,o=this.clone();if(i>=0){o.day=1,0!=i&&i--,s=o.day;var a=t-o.dayOfWeek();a<0&&(a+=7),s+=a,s-=t,n=t}else o.day=r,i++,(n=o.dayOfWeek()-t)<0&&(n+=7),n=r-n;return s+(n+=7*i)},isNthWeekDay:function(t,e){var n=this.dayOfWeek();return 0===e&&n===t||this.nthWeekDay(t,e)===this.day},weekNumber:function(t){var e,n=(this.year<<12)+(this.month<<8)+(this.day<<3)+t;if(n in ICAL.Time._wnCache)return ICAL.Time._wnCache[n];var r=this.clone();r.isDate=!0;var i=this.year;12==r.month&&r.day>25?(e=ICAL.Time.weekOneStarts(i+1,t),r.compare(e)<0?e=ICAL.Time.weekOneStarts(i,t):i++):(e=ICAL.Time.weekOneStarts(i,t),r.compare(e)<0&&(e=ICAL.Time.weekOneStarts(--i,t)));var s=r.subtractDate(e).toSeconds()/86400,o=ICAL.helpers.trunc(s/7)+1;return ICAL.Time._wnCache[n]=o,o},addDuration:function(t){var e=t.isNegative?-1:1,n=this.second,r=this.minute,i=this.hour,s=this.day;n+=e*t.seconds,r+=e*t.minutes,i+=e*t.hours,s+=e*t.days,s+=7*e*t.weeks,this.second=n,this.minute=r,this.hour=i,this.day=s,this._cachedUnixTime=null},subtractDate:function(t){var e=this.toUnixTime()+this.utcOffset(),n=t.toUnixTime()+t.utcOffset();return ICAL.Duration.fromSeconds(e-n)},subtractDateTz:function(t){var e=this.toUnixTime(),n=t.toUnixTime();return ICAL.Duration.fromSeconds(e-n)},compare:function(t){var e=this.toUnixTime(),n=t.toUnixTime();return e>n?1:n>e?-1:0},compareDateOnlyTz:function(t,e){function n(t){return ICAL.Time._cmp_attr(r,i,t)}var r=this.convertToZone(e),i=t.convertToZone(e),s=0;return 0!=(s=n("year"))?s:0!=(s=n("month"))?s:s=n("day")},convertToZone:function(t){var e=this.clone(),n=this.zone.tzid==t.tzid;return this.isDate||n||ICAL.Timezone.convert_time(e,this.zone,t),e.zone=t,e},utcOffset:function(){return this.zone==ICAL.Timezone.localTimezone||this.zone==ICAL.Timezone.utcTimezone?0:this.zone.utcOffset(this)},toICALString:function(){var t=this.toString();return t.length>10?ICAL.design.icalendar.value["date-time"].toICAL(t):ICAL.design.icalendar.value.date.toICAL(t)},toString:function(){var t=this.year+"-"+ICAL.helpers.pad2(this.month)+"-"+ICAL.helpers.pad2(this.day);return this.isDate||(t+="T"+ICAL.helpers.pad2(this.hour)+":"+ICAL.helpers.pad2(this.minute)+":"+ICAL.helpers.pad2(this.second),this.zone===ICAL.Timezone.utcTimezone&&(t+="Z")),t},toJSDate:function(){return this.zone==ICAL.Timezone.localTimezone?this.isDate?new Date(this.year,this.month-1,this.day):new Date(this.year,this.month-1,this.day,this.hour,this.minute,this.second,0):new Date(1e3*this.toUnixTime())},_normalize:function(){return this._time.isDate,this._time.isDate&&(this._time.hour=0,this._time.minute=0,this._time.second=0),this.adjust(0,0,0,0),this},adjust:function(t,e,n,r,i){var s,o,a,l,u,c,h,d=0,f=0,p=i||this._time;if(p.isDate||(a=p.second+r,p.second=a%60,s=ICAL.helpers.trunc(a/60),p.second<0&&(p.second+=60,s--),l=p.minute+n+s,p.minute=l%60,o=ICAL.helpers.trunc(l/60),p.minute<0&&(p.minute+=60,o--),u=p.hour+e+o,p.hour=u%24,d=ICAL.helpers.trunc(u/24),p.hour<0&&(p.hour+=24,d--)),p.month>12?f=ICAL.helpers.trunc((p.month-1)/12):p.month<1&&(f=ICAL.helpers.trunc(p.month/12)-1),p.year+=f,p.month-=12*f,(c=p.day+t+d)>0)for(;!(c<=(h=ICAL.Time.daysInMonth(p.month,p.year)));)p.month++,p.month>12&&(p.year++,p.month=1),c-=h;else for(;c<=0;)1==p.month?(p.year--,p.month=12):p.month--,c+=ICAL.Time.daysInMonth(p.month,p.year);return p.day=c,this._cachedUnixTime=null,this},fromUnixTime:function(t){this.zone=ICAL.Timezone.utcTimezone;var e=ICAL.Time.epochTime.clone();e.adjust(0,0,0,t),this.year=e.year,this.month=e.month,this.day=e.day,this.hour=e.hour,this.minute=e.minute,this.second=Math.floor(e.second),this._cachedUnixTime=null},toUnixTime:function(){if(null!==this._cachedUnixTime)return this._cachedUnixTime;var t=this.utcOffset(),e=Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second-t);return this._cachedUnixTime=e/1e3,this._cachedUnixTime},toJSON:function(){for(var t,e=["year","month","day","hour","minute","second","isDate"],n=Object.create(null),r=0,i=e.length;r<i;r++)n[t=e[r]]=this[t];return this.zone&&(n.timezone=this.zone.tzid),n}},function(){function t(t){Object.defineProperty(ICAL.Time.prototype,t,{get:function(){return this._pendingNormalization&&(this._normalize(),this._pendingNormalization=!1),this._time[t]},set:function(e){return this._cachedUnixTime=null,this._pendingNormalization=!0,this._time[t]=e,e}})}"defineProperty"in Object&&(t("year"),t("month"),t("day"),t("hour"),t("minute"),t("second"),t("isDate"))}(),ICAL.Time.daysInMonth=function(t,e){var n=30;return t<1||t>12?n:(n=[0,31,28,31,30,31,30,31,31,30,31,30,31][t],2==t&&(n+=ICAL.Time.isLeapYear(e)),n)},ICAL.Time.isLeapYear=function(t){return t<=1752?t%4==0:t%4==0&&t%100!=0||t%400==0},ICAL.Time.fromDayOfYear=function(t,e){var n=e,r=t,i=new ICAL.Time;i.auto_normalize=!1;var s=ICAL.Time.isLeapYear(n)?1:0;if(r<1)return n--,s=ICAL.Time.isLeapYear(n)?1:0,r+=ICAL.Time.daysInYearPassedMonth[s][12],ICAL.Time.fromDayOfYear(r,n);if(r>ICAL.Time.daysInYearPassedMonth[s][12])return s=ICAL.Time.isLeapYear(n)?1:0,r-=ICAL.Time.daysInYearPassedMonth[s][12],n++,ICAL.Time.fromDayOfYear(r,n);i.year=n,i.isDate=!0;for(var o=11;o>=0;o--)if(r>ICAL.Time.daysInYearPassedMonth[s][o]){i.month=o+1,i.day=r-ICAL.Time.daysInYearPassedMonth[s][o];break}return i.auto_normalize=!0,i},ICAL.Time.fromStringv2=function(t){return new ICAL.Time({year:parseInt(t.substr(0,4),10),month:parseInt(t.substr(5,2),10),day:parseInt(t.substr(8,2),10),isDate:!0})},ICAL.Time.fromDateString=function(t){return new ICAL.Time({year:ICAL.helpers.strictParseInt(t.substr(0,4)),month:ICAL.helpers.strictParseInt(t.substr(5,2)),day:ICAL.helpers.strictParseInt(t.substr(8,2)),isDate:!0})},ICAL.Time.fromDateTimeString=function(t,e){if(t.length<19)throw new Error('invalid date-time value: "'+t+'"');var n;return t[19]&&"Z"===t[19]?n="Z":e&&(n=e.getParameter("tzid")),new ICAL.Time({year:ICAL.helpers.strictParseInt(t.substr(0,4)),month:ICAL.helpers.strictParseInt(t.substr(5,2)),day:ICAL.helpers.strictParseInt(t.substr(8,2)),hour:ICAL.helpers.strictParseInt(t.substr(11,2)),minute:ICAL.helpers.strictParseInt(t.substr(14,2)),second:ICAL.helpers.strictParseInt(t.substr(17,2)),timezone:n})},ICAL.Time.fromString=function(t){return t.length>10?ICAL.Time.fromDateTimeString(t):ICAL.Time.fromDateString(t)},ICAL.Time.fromJSDate=function(t,e){return(new ICAL.Time).fromJSDate(t,e)},ICAL.Time.fromData=function(t,e){return(new ICAL.Time).fromData(t,e)},ICAL.Time.now=function(){return ICAL.Time.fromJSDate(new Date,!1)},ICAL.Time.weekOneStarts=function(t,e){var n=ICAL.Time.fromData({year:t,month:1,day:1,isDate:!0}),r=n.dayOfWeek(),i=e||ICAL.Time.DEFAULT_WEEK_START;return r>ICAL.Time.THURSDAY&&(n.day+=7),i>ICAL.Time.THURSDAY&&(n.day-=7),n.day-=r-i,n},ICAL.Time.getDominicalLetter=function(t){var e=(t+(t/4|0)+(t/400|0)-(t/100|0)-1)%7;return ICAL.Time.isLeapYear(t)?"GFEDCBA"[(e+6)%7]+"GFEDCBA"[e]:"GFEDCBA"[e]},ICAL.Time.epochTime=ICAL.Time.fromData({year:1970,month:1,day:1,hour:0,minute:0,second:0,isDate:!1,timezone:"Z"}),ICAL.Time._cmp_attr=function(t,e,n){return t[n]>e[n]?1:t[n]<e[n]?-1:0},ICAL.Time.daysInYearPassedMonth=[[0,31,59,90,120,151,181,212,243,273,304,334,365],[0,31,60,91,121,152,182,213,244,274,305,335,366]],ICAL.Time.SUNDAY=1,ICAL.Time.MONDAY=2,ICAL.Time.TUESDAY=3,ICAL.Time.WEDNESDAY=4,ICAL.Time.THURSDAY=5,ICAL.Time.FRIDAY=6,ICAL.Time.SATURDAY=7,ICAL.Time.DEFAULT_WEEK_START=ICAL.Time.MONDAY,ICAL.VCardTime=function(t,e,n){this.wrappedJSObject=this;var r=this._time=Object.create(null);r.year=null,r.month=null,r.day=null,r.hour=null,r.minute=null,r.second=null,this.icaltype=n||"date-and-or-time",this.fromData(t,e)},ICAL.helpers.inherits(ICAL.Time,ICAL.VCardTime,{icalclass:"vcardtime",icaltype:"date-and-or-time",zone:null,clone:function(){return new ICAL.VCardTime(this._time,this.zone,this.icaltype)},_normalize:function(){return this},utcOffset:function(){return this.zone instanceof ICAL.UtcOffset?this.zone.toSeconds():ICAL.Time.prototype.utcOffset.apply(this,arguments)},toICALString:function(){return ICAL.design.vcard.value[this.icaltype].toICAL(this.toString())},toString:function(){var t,e=ICAL.helpers.pad2,n=this.year,r=this.month,i=this.day,s=this.hour,o=this.minute,a=this.second,l=null!==r,u=null!==i,c=null!==s,h=null!==o,d=null!==a,f=(null!==n?e(n)+(l||u?"-":""):l||u?"--":"")+(l?e(r):"")+(u?"-"+e(i):""),p=(c?e(s):"-")+(c&&h?":":"")+(h?e(o):"")+(c||h?"":"-")+(h&&d?":":"")+(d?e(a):"");switch(t=this.zone===ICAL.Timezone.utcTimezone?"Z":this.zone instanceof ICAL.UtcOffset?this.zone.toString():this.zone===ICAL.Timezone.localTimezone?"":this.zone instanceof ICAL.Timezone?ICAL.UtcOffset.fromSeconds(this.zone.utcOffset(this)).toString():"",this.icaltype){case"time":return p+t;case"date-and-or-time":case"date-time":return f+("--"==p?"":"T"+p+t);case"date":return f}return null}}),ICAL.VCardTime.fromDateAndOrTimeString=function(t,e){function n(t,e,n){return t?ICAL.helpers.strictParseInt(t.substr(e,n)):null}var r=t.split("T"),i=r[0],s=r[1],o=s?ICAL.design.vcard.value.time._splitZone(s):[],a=o[0],l=o[1],u=(ICAL.helpers.strictParseInt,i?i.length:0),c=l?l.length:0,h=i&&"-"==i[0]&&"-"==i[1],d=l&&"-"==l[0],f={year:h?null:n(i,0,4),month:!h||4!=u&&7!=u?7==u?n(i,5,2):10==u?n(i,5,2):null:n(i,2,2),day:5==u?n(i,3,2):7==u&&h?n(i,5,2):10==u?n(i,8,2):null,hour:d?null:n(l,0,2),minute:d&&3==c?n(l,1,2):c>4?n(l,d?1:3,2):null,second:4==c?n(l,2,2):6==c?n(l,4,2):8==c?n(l,6,2):null};return a="Z"==a?ICAL.Timezone.utcTimezone:a&&":"==a[3]?ICAL.UtcOffset.fromString(a):null,new ICAL.VCardTime(f,a,e)},function(){var t={SU:ICAL.Time.SUNDAY,MO:ICAL.Time.MONDAY,TU:ICAL.Time.TUESDAY,WE:ICAL.Time.WEDNESDAY,TH:ICAL.Time.THURSDAY,FR:ICAL.Time.FRIDAY,SA:ICAL.Time.SATURDAY},e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);function r(t,e,n,r){var i=r;if("+"===r[0]&&(i=r.substr(1)),i=ICAL.helpers.strictParseInt(i),void 0!==e&&r<e)throw new Error(t+': invalid value "'+r+'" must be > '+e);if(void 0!==n&&r>n)throw new Error(t+': invalid value "'+r+'" must be < '+e);return i}ICAL.Recur=function(t){this.wrappedJSObject=this,this.parts={},t&&"object"==typeof t&&this.fromData(t)},ICAL.Recur.prototype={parts:null,interval:1,wkst:ICAL.Time.MONDAY,until:null,count:null,freq:null,icalclass:"icalrecur",icaltype:"recur",iterator:function(t){return new ICAL.RecurIterator({rule:this,dtstart:t})},clone:function(){return new ICAL.Recur(this.toJSON())},isFinite:function(){return!(!this.count&&!this.until)},isByCount:function(){return!(!this.count||this.until)},addComponent:function(t,e){var n=t.toUpperCase();n in this.parts?this.parts[n].push(e):this.parts[n]=[e]},setComponent:function(t,e){this.parts[t.toUpperCase()]=e.slice()},getComponent:function(t){var e=t.toUpperCase();return e in this.parts?this.parts[e].slice():[]},getNextOccurrence:function(t,e){var n,r=this.iterator(t);do{n=r.next()}while(n&&n.compare(e)<=0);return n&&e.zone&&(n.zone=e.zone),n},fromData:function(t){for(var e in t){var n=e.toUpperCase();n in l?Array.isArray(t[e])?this.parts[n]=t[e]:this.parts[n]=[t[e]]:this[e]=t[e]}this.wkst&&"number"!=typeof this.wkst&&(this.wkst=ICAL.Recur.icalDayToNumericDay(this.wkst)),!this.until||this.until instanceof ICAL.Time||(this.until=ICAL.Time.fromString(this.until))},toJSON:function(){var t=Object.create(null);for(var e in t.freq=this.freq,this.count&&(t.count=this.count),this.interval>1&&(t.interval=this.interval),this.parts)if(this.parts.hasOwnProperty(e)){var n=this.parts[e];Array.isArray(n)&&1==n.length?t[e.toLowerCase()]=n[0]:t[e.toLowerCase()]=ICAL.helpers.clone(this.parts[e])}return this.until&&(t.until=this.until.toString()),"wkst"in this&&this.wkst!==ICAL.Time.DEFAULT_WEEK_START&&(t.wkst=ICAL.Recur.numericDayToIcalDay(this.wkst)),t},toString:function(){var t="FREQ="+this.freq;for(var e in this.count&&(t+=";COUNT="+this.count),this.interval>1&&(t+=";INTERVAL="+this.interval),this.parts)this.parts.hasOwnProperty(e)&&(t+=";"+e+"="+this.parts[e]);return this.until&&(t+=";UNTIL="+this.until.toString()),"wkst"in this&&this.wkst!==ICAL.Time.DEFAULT_WEEK_START&&(t+=";WKST="+ICAL.Recur.numericDayToIcalDay(this.wkst)),t}},ICAL.Recur.icalDayToNumericDay=function(e){return t[e]},ICAL.Recur.numericDayToIcalDay=function(t){return e[t]};var i=/^(SU|MO|TU|WE|TH|FR|SA)$/,s=/^([+-])?(5[0-3]|[1-4][0-9]|[1-9])?(SU|MO|TU|WE|TH|FR|SA)$/,o=["SECONDLY","MINUTELY","HOURLY","DAILY","WEEKLY","MONTHLY","YEARLY"],a={FREQ:function(t,e,n){if(-1===o.indexOf(t))throw new Error('invalid frequency "'+t+'" expected: "'+o.join(", ")+'"');e.freq=t},COUNT:function(t,e,n){e.count=ICAL.helpers.strictParseInt(t)},INTERVAL:function(t,e,n){e.interval=ICAL.helpers.strictParseInt(t),e.interval<1&&(e.interval=1)},UNTIL:function(t,e,n){n?t.length>10?e.until=ICAL.design.icalendar.value["date-time"].fromICAL(t):e.until=ICAL.design.icalendar.value.date.fromICAL(t):e.until=ICAL.Time.fromString(t)},WKST:function(t,e,n){if(!i.test(t))throw new Error('invalid WKST value "'+t+'"');e.wkst=ICAL.Recur.icalDayToNumericDay(t)}},l={BYSECOND:r.bind(this,"BYSECOND",0,60),BYMINUTE:r.bind(this,"BYMINUTE",0,59),BYHOUR:r.bind(this,"BYHOUR",0,23),BYDAY:function(t){if(s.test(t))return t;throw new Error('invalid BYDAY value "'+t+'"')},BYMONTHDAY:r.bind(this,"BYMONTHDAY",-31,31),BYYEARDAY:r.bind(this,"BYYEARDAY",-366,366),BYWEEKNO:r.bind(this,"BYWEEKNO",-53,53),BYMONTH:r.bind(this,"BYMONTH",0,12),BYSETPOS:r.bind(this,"BYSETPOS",-366,366)};ICAL.Recur.fromString=function(t){var e=ICAL.Recur._stringToData(t,!1);return new ICAL.Recur(e)},ICAL.Recur.fromData=function(t){return new ICAL.Recur(t)},ICAL.Recur._stringToData=function(t,e){for(var n=Object.create(null),r=t.split(";"),i=r.length,s=0;s<i;s++){var o=r[s].split("="),u=o[0].toUpperCase(),c=o[0].toLowerCase(),h=e?c:u,d=o[1];if(u in l){for(var f=d.split(","),p=0,m=f.length;p<m;p++)f[p]=l[u](f[p]);n[h]=1==f.length?f[0]:f}else u in a?a[u](d,n,e):n[c]=d}return n}}(),ICAL.RecurIterator=function(){function t(t){this.fromData(t)}return t.prototype={completed:!1,rule:null,dtstart:null,last:null,occurrence_number:0,by_indices:null,initialized:!1,by_data:null,days:null,days_index:0,fromData:function(t){if(this.rule=ICAL.helpers.formatClassType(t.rule,ICAL.Recur),!this.rule)throw new Error("iterator requires a (ICAL.Recur) rule");if(this.dtstart=ICAL.helpers.formatClassType(t.dtstart,ICAL.Time),!this.dtstart)throw new Error("iterator requires a (ICAL.Time) dtstart");t.by_data?this.by_data=t.by_data:this.by_data=ICAL.helpers.clone(this.rule.parts,!0),t.occurrence_number&&(this.occurrence_number=t.occurrence_number),this.days=t.days||[],t.last&&(this.last=ICAL.helpers.formatClassType(t.last,ICAL.Time)),this.by_indices=t.by_indices,this.by_indices||(this.by_indices={BYSECOND:0,BYMINUTE:0,BYHOUR:0,BYDAY:0,BYMONTH:0,BYWEEKNO:0,BYMONTHDAY:0}),this.initialized=t.initialized||!1,this.initialized||this.init()},init:function(){this.initialized=!0,this.last=this.dtstart.clone();var t=this.by_data;if("BYDAY"in t&&this.sort_byday_rules(t.BYDAY,this.rule.wkst),"BYYEARDAY"in t&&("BYMONTH"in t||"BYWEEKNO"in t||"BYMONTHDAY"in t||"BYDAY"in t))throw new Error("Invalid BYYEARDAY rule");if("BYWEEKNO"in t&&"BYMONTHDAY"in t)throw new Error("BYWEEKNO does not fit to BYMONTHDAY");if("MONTHLY"==this.rule.freq&&("BYYEARDAY"in t||"BYWEEKNO"in t))throw new Error("For MONTHLY recurrences neither BYYEARDAY nor BYWEEKNO may appear");if("WEEKLY"==this.rule.freq&&("BYYEARDAY"in t||"BYMONTHDAY"in t))throw new Error("For WEEKLY recurrences neither BYMONTHDAY nor BYYEARDAY may appear");if("YEARLY"!=this.rule.freq&&"BYYEARDAY"in t)throw new Error("BYYEARDAY may only appear in YEARLY rules");if(this.last.second=this.setup_defaults("BYSECOND","SECONDLY",this.dtstart.second),this.last.minute=this.setup_defaults("BYMINUTE","MINUTELY",this.dtstart.minute),this.last.hour=this.setup_defaults("BYHOUR","HOURLY",this.dtstart.hour),this.last.day=this.setup_defaults("BYMONTHDAY","DAILY",this.dtstart.day),this.last.month=this.setup_defaults("BYMONTH","MONTHLY",this.dtstart.month),"WEEKLY"==this.rule.freq)if("BYDAY"in t){var e=(l=this.ruleDayOfWeek(t.BYDAY[0]))[0],n=(u=l[1])-this.last.dayOfWeek();(this.last.dayOfWeek()<u&&n>=0||n<0)&&(this.last.day+=n)}else{var r=ICAL.Recur.numericDayToIcalDay(this.dtstart.dayOfWeek());t.BYDAY=[r]}if("YEARLY"==this.rule.freq){for(;this.expand_year_days(this.last.year),!(this.days.length>0);)this.increment_year(this.rule.interval);this._nextByYearDay()}if("MONTHLY"==this.rule.freq&&this.has_by_data("BYDAY")){var i=null,s=this.last.clone(),o=ICAL.Time.daysInMonth(this.last.month,this.last.year);for(var a in this.by_data.BYDAY)if(this.by_data.BYDAY.hasOwnProperty(a)){this.last=s.clone();e=(l=this.ruleDayOfWeek(this.by_data.BYDAY[a]))[0];var l,u=l[1],c=this.last.nthWeekDay(u,e);if(e>=6||e<=-6)throw new Error("Malformed values in BYDAY part");if(c>o||c<=0){if(i&&i.month==s.month)continue;for(;c>o||c<=0;)this.increment_month(),o=ICAL.Time.daysInMonth(this.last.month,this.last.year),c=this.last.nthWeekDay(u,e)}this.last.day=c,(!i||this.last.compare(i)<0)&&(i=this.last.clone())}if(this.last=i.clone(),this.has_by_data("BYMONTHDAY")&&this._byDayAndMonthDay(!0),this.last.day>o||0==this.last.day)throw new Error("Malformed values in BYDAY part")}else if(this.has_by_data("BYMONTHDAY")&&this.last.day<0){o=ICAL.Time.daysInMonth(this.last.month,this.last.year);this.last.day=o+this.last.day+1}},next:function(){var t,e=this.last?this.last.clone():null;if(this.rule.count&&this.occurrence_number>=this.rule.count||this.rule.until&&this.last.compare(this.rule.until)>0)return this.completed=!0,null;if(0==this.occurrence_number&&this.last.compare(this.dtstart)>=0)return this.occurrence_number++,this.last;do{switch(t=1,this.rule.freq){case"SECONDLY":this.next_second();break;case"MINUTELY":this.next_minute();break;case"HOURLY":this.next_hour();break;case"DAILY":this.next_day();break;case"WEEKLY":this.next_week();break;case"MONTHLY":t=this.next_month();break;case"YEARLY":this.next_year();break;default:return null}}while(!this.check_contracting_rules()||this.last.compare(this.dtstart)<0||!t);if(0==this.last.compare(e))throw new Error("Same occurrence found twice, protecting you from death by recursion");return this.rule.until&&this.last.compare(this.rule.until)>0?(this.completed=!0,null):(this.occurrence_number++,this.last)},next_second:function(){return this.next_generic("BYSECOND","SECONDLY","second","minute")},increment_second:function(t){return this.increment_generic(t,"second",60,"minute")},next_minute:function(){return this.next_generic("BYMINUTE","MINUTELY","minute","hour","next_second")},increment_minute:function(t){return this.increment_generic(t,"minute",60,"hour")},next_hour:function(){return this.next_generic("BYHOUR","HOURLY","hour","monthday","next_minute")},increment_hour:function(t){this.increment_generic(t,"hour",24,"monthday")},next_day:function(){this.by_data;var t="DAILY"==this.rule.freq;return 0==this.next_hour()?0:(t?this.increment_monthday(this.rule.interval):this.increment_monthday(1),0)},next_week:function(){var t=0;if(0==this.next_weekday_by_week())return t;if(this.has_by_data("BYWEEKNO")){++this.by_indices.BYWEEKNO;this.by_indices.BYWEEKNO==this.by_data.BYWEEKNO.length&&(this.by_indices.BYWEEKNO=0,t=1),this.last.month=1,this.last.day=1;var e=this.by_data.BYWEEKNO[this.by_indices.BYWEEKNO];this.last.day+=7*e,t&&this.increment_year(1)}else this.increment_monthday(7*this.rule.interval);return t},normalizeByMonthDayRules:function(t,e,n){for(var r,i=ICAL.Time.daysInMonth(e,t),s=[],o=0,a=n.length;o<a;o++)if(r=n[o],!(Math.abs(r)>i)){if(r<0)r=i+(r+1);else if(0===r)continue;-1===s.indexOf(r)&&s.push(r)}return s.sort(function(t,e){return t-e})},_byDayAndMonthDay:function(t){var e,n,r,i,s=this.by_data.BYDAY,o=0,a=s.length,l=0,u=this,c=this.last.day;function h(){for(i=ICAL.Time.daysInMonth(u.last.month,u.last.year),e=u.normalizeByMonthDayRules(u.last.year,u.last.month,u.by_data.BYMONTHDAY),r=e.length;e[o]<=c&&(!t||e[o]!=c)&&o<r-1;)o++}function d(){c=0,u.increment_month(),o=0,h()}h(),t&&(c-=1);for(var f=48;!l&&f;)if(f--,(n=c+1)>i)d();else{var p=e[o++];if(p>=n){c=p;for(var m=0;m<a;m++){var g=this.ruleDayOfWeek(s[m]),v=g[0],y=g[1];if(this.last.day=c,this.last.isNthWeekDay(y,v)){l=1;break}}l||o!==r||d()}else d()}if(f<=0)throw new Error("Malformed values in BYDAY combined with BYMONTHDAY parts");return l},next_month:function(){this.rule.freq;var t=1;if(0==this.next_hour())return t;if(this.has_by_data("BYDAY")&&this.has_by_data("BYMONTHDAY"))t=this._byDayAndMonthDay();else if(this.has_by_data("BYDAY")){var e=ICAL.Time.daysInMonth(this.last.month,this.last.year),n=0,r=0;if(this.has_by_data("BYSETPOS")){for(var i=this.last.day,s=1;s<=e;s++)this.last.day=s,this.is_day_in_byday(this.last)&&(r++,s<=i&&n++);this.last.day=i}t=0;for(s=this.last.day+1;s<=e;s++)if(this.last.day=s,this.is_day_in_byday(this.last)&&(!this.has_by_data("BYSETPOS")||this.check_set_position(++n)||this.check_set_position(n-r-1))){t=1;break}s>e&&(this.last.day=1,this.increment_month(),this.is_day_in_byday(this.last)?this.has_by_data("BYSETPOS")&&!this.check_set_position(1)||(t=1):t=0)}else if(this.has_by_data("BYMONTHDAY")){this.by_indices.BYMONTHDAY++,this.by_indices.BYMONTHDAY>=this.by_data.BYMONTHDAY.length&&(this.by_indices.BYMONTHDAY=0,this.increment_month());e=ICAL.Time.daysInMonth(this.last.month,this.last.year);(s=this.by_data.BYMONTHDAY[this.by_indices.BYMONTHDAY])<0&&(s=e+s+1),s>e?(this.last.day=1,t=this.is_day_in_byday(this.last)):this.last.day=s}else{this.increment_month();e=ICAL.Time.daysInMonth(this.last.month,this.last.year);this.by_data.BYMONTHDAY[0]>e?t=0:this.last.day=this.by_data.BYMONTHDAY[0]}return t},next_weekday_by_week:function(){var t=0;if(0==this.next_hour())return t;if(!this.has_by_data("BYDAY"))return 1;for(;;){var e=new ICAL.Time;this.by_indices.BYDAY++,this.by_indices.BYDAY==Object.keys(this.by_data.BYDAY).length&&(this.by_indices.BYDAY=0,t=1);var n=this.by_data.BYDAY[this.by_indices.BYDAY],r=this.ruleDayOfWeek(n)[1];(r-=this.rule.wkst)<0&&(r+=7),e.year=this.last.year,e.month=this.last.month,e.day=this.last.day;var i=e.startDoyWeek(this.rule.wkst);if(!(r+i<1)||t){var s=ICAL.Time.fromDayOfYear(i+r,this.last.year);return this.last.year=s.year,this.last.month=s.month,this.last.day=s.day,t}}},next_year:function(){if(0==this.next_hour())return 0;if(++this.days_index==this.days.length){this.days_index=0;do{this.increment_year(this.rule.interval),this.expand_year_days(this.last.year)}while(0==this.days.length)}return this._nextByYearDay(),1},_nextByYearDay:function(){var t=this.days[this.days_index],e=this.last.year;t<1&&(t+=1,e+=1);var n=ICAL.Time.fromDayOfYear(t,e);this.last.day=n.day,this.last.month=n.month},ruleDayOfWeek:function(t){var e=t.match(/([+-]?[0-9])?(MO|TU|WE|TH|FR|SA|SU)/);return e?[parseInt(e[1]||0,10),t=ICAL.Recur.icalDayToNumericDay(e[2])]:[0,0]},next_generic:function(t,e,n,r,i){var s=t in this.by_data,o=this.rule.freq==e,a=0;if(i&&0==this[i]())return a;if(s){this.by_indices[t]++;this.by_indices[t];var l=this.by_data[t];this.by_indices[t]==l.length&&(this.by_indices[t]=0,a=1),this.last[n]=l[this.by_indices[t]]}else o&&this["increment_"+n](this.rule.interval);return s&&a&&o&&this["increment_"+r](1),a},increment_monthday:function(t){for(var e=0;e<t;e++){var n=ICAL.Time.daysInMonth(this.last.month,this.last.year);this.last.day++,this.last.day>n&&(this.last.day-=n,this.increment_month())}},increment_month:function(){if(this.last.day=1,this.has_by_data("BYMONTH"))this.by_indices.BYMONTH++,this.by_indices.BYMONTH==this.by_data.BYMONTH.length&&(this.by_indices.BYMONTH=0,this.increment_year(1)),this.last.month=this.by_data.BYMONTH[this.by_indices.BYMONTH];else{"MONTHLY"==this.rule.freq?this.last.month+=this.rule.interval:this.last.month++,this.last.month--;var t=ICAL.helpers.trunc(this.last.month/12);this.last.month%=12,this.last.month++,0!=t&&this.increment_year(t)}},increment_year:function(t){this.last.year+=t},increment_generic:function(t,e,n,r){this.last[e]+=t;var i=ICAL.helpers.trunc(this.last[e]/n);this.last[e]%=n,0!=i&&this["increment_"+r](i)},has_by_data:function(t){return t in this.rule.parts},expand_year_days:function(t){var e=new ICAL.Time;this.days=[];var n={},r=["BYDAY","BYWEEKNO","BYMONTHDAY","BYMONTH","BYYEARDAY"];for(var i in r)if(r.hasOwnProperty(i)){var s=r[i];s in this.rule.parts&&(n[s]=this.rule.parts[s])}if("BYMONTH"in n&&"BYWEEKNO"in n){var o=1,a={};e.year=t,e.isDate=!0;for(var l=0;l<this.by_data.BYMONTH.length;l++){var u=this.by_data.BYMONTH[l];e.month=u,e.day=1;var c=e.weekNumber(this.rule.wkst);e.day=ICAL.Time.daysInMonth(u,t);var h=e.weekNumber(this.rule.wkst);for(l=c;l<h;l++)a[l]=1}for(var d=0;d<this.by_data.BYWEEKNO.length&&o;d++){(U=this.by_data.BYWEEKNO[d])<52?o&=a[d]:o=0}o?delete n.BYMONTH:delete n.BYWEEKNO}var f=Object.keys(n).length;if(0==f){var p=this.dtstart.clone();p.year=this.last.year,this.days.push(p.dayOfYear())}else if(1==f&&"BYMONTH"in n){for(var m in this.by_data.BYMONTH)if(this.by_data.BYMONTH.hasOwnProperty(m)){var g=this.dtstart.clone();g.year=t,g.month=this.by_data.BYMONTH[m],g.isDate=!0,this.days.push(g.dayOfYear())}}else if(1==f&&"BYMONTHDAY"in n){for(var v in this.by_data.BYMONTHDAY)if(this.by_data.BYMONTHDAY.hasOwnProperty(v)){var y=this.dtstart.clone();if((w=this.by_data.BYMONTHDAY[v])<0)w=w+(_=ICAL.Time.daysInMonth(y.month,t))+1;y.day=w,y.year=t,y.isDate=!0,this.days.push(y.dayOfYear())}}else if(2==f&&"BYMONTHDAY"in n&&"BYMONTH"in n){for(var m in this.by_data.BYMONTH)if(this.by_data.BYMONTH.hasOwnProperty(m)){var b=this.by_data.BYMONTH[m],_=ICAL.Time.daysInMonth(b,t);for(var v in this.by_data.BYMONTHDAY){var w;if(this.by_data.BYMONTHDAY.hasOwnProperty(v))(w=this.by_data.BYMONTHDAY[v])<0&&(w=w+_+1),e.day=w,e.month=b,e.year=t,e.isDate=!0,this.days.push(e.dayOfYear())}}}else if(1==f&&"BYWEEKNO"in n);else if(2==f&&"BYWEEKNO"in n&&"BYMONTHDAY"in n);else if(1==f&&"BYDAY"in n)this.days=this.days.concat(this.expand_by_day(t));else if(2==f&&"BYDAY"in n&&"BYMONTH"in n){for(var m in this.by_data.BYMONTH)if(this.by_data.BYMONTH.hasOwnProperty(m)){u=this.by_data.BYMONTH[m],_=ICAL.Time.daysInMonth(u,t);e.year=t,e.month=this.by_data.BYMONTH[m],e.day=1,e.isDate=!0;var x=e.dayOfWeek(),C=e.dayOfYear()-1;e.day=_;var A=e.dayOfWeek();if(this.has_by_data("BYSETPOS")){for(var D=[],E=1;E<=_;E++)e.day=E,this.is_day_in_byday(e)&&D.push(E);for(var T=0;T<D.length;T++)(this.check_set_position(T+1)||this.check_set_position(T-D.length))&&this.days.push(C+D[T])}else for(var S in this.by_data.BYDAY)if(this.by_data.BYDAY.hasOwnProperty(S)){var I,k=this.by_data.BYDAY[S],L=this.ruleDayOfWeek(k),M=L[0],N=L[1],O=(N+7-x)%7+1,q=_-(A+7-N)%7;if(0==M)for(E=O;E<=_;E+=7)this.days.push(C+E);else M>0?(I=O+7*(M-1))<=_&&this.days.push(C+I):(I=q+7*(M+1))>0&&this.days.push(C+I)}}this.days.sort(function(t,e){return t-e})}else if(2==f&&"BYDAY"in n&&"BYMONTHDAY"in n){var R=this.expand_by_day(t);for(var P in R)if(R.hasOwnProperty(P)){E=R[P];var B=ICAL.Time.fromDayOfYear(E,t);this.by_data.BYMONTHDAY.indexOf(B.day)>=0&&this.days.push(E)}}else if(3==f&&"BYDAY"in n&&"BYMONTHDAY"in n&&"BYMONTH"in n){R=this.expand_by_day(t);for(var P in R)if(R.hasOwnProperty(P)){E=R[P],B=ICAL.Time.fromDayOfYear(E,t);this.by_data.BYMONTH.indexOf(B.month)>=0&&this.by_data.BYMONTHDAY.indexOf(B.day)>=0&&this.days.push(E)}}else if(2==f&&"BYDAY"in n&&"BYWEEKNO"in n){R=this.expand_by_day(t);for(var P in R)if(R.hasOwnProperty(P)){E=R[P];var U=(B=ICAL.Time.fromDayOfYear(E,t)).weekNumber(this.rule.wkst);this.by_data.BYWEEKNO.indexOf(U)&&this.days.push(E)}}else 3==f&&"BYDAY"in n&&"BYWEEKNO"in n&&"BYMONTHDAY"in n||(this.days=1==f&&"BYYEARDAY"in n?this.days.concat(this.by_data.BYYEARDAY):[]);return 0},expand_by_day:function(t){var e=[],n=this.last.clone();n.year=t,n.month=1,n.day=1,n.isDate=!0;var r=n.dayOfWeek();n.month=12,n.day=31,n.isDate=!0;var i=n.dayOfWeek(),s=n.dayOfYear();for(var o in this.by_data.BYDAY)if(this.by_data.BYDAY.hasOwnProperty(o)){var a=this.by_data.BYDAY[o],l=this.ruleDayOfWeek(a),u=l[0],c=l[1];if(0==u)for(var h=(c+7-r)%7+1;h<=s;h+=7)e.push(h);else if(u>0){var d;d=c>=r?c-r+1:c-r+8,e.push(d+7*(u-1))}else{var f;u=-u,f=c<=i?s-i+c:s-i+c-7,e.push(f-7*(u-1))}}return e},is_day_in_byday:function(t){for(var e in this.by_data.BYDAY)if(this.by_data.BYDAY.hasOwnProperty(e)){var n=this.by_data.BYDAY[e],r=this.ruleDayOfWeek(n),i=r[0],s=r[1],o=t.dayOfWeek();if(0==i&&s==o||t.nthWeekDay(s,i)==t.day)return 1}return 0},check_set_position:function(t){return!!this.has_by_data("BYSETPOS")&&-1!==this.by_data.BYSETPOS.indexOf(t)},sort_byday_rules:function(t,e){for(var n=0;n<t.length;n++)for(var r=0;r<n;r++){var i=this.ruleDayOfWeek(t[r])[1],s=this.ruleDayOfWeek(t[n])[1];if(s-=e,(i-=e)<0&&(i+=7),s<0&&(s+=7),i>s){var o=t[n];t[n]=t[r],t[r]=o}}},check_contract_restriction:function(e,n){var r=t._indexMap[e],i=t._expandMap[this.rule.freq][r],s=!1;if(e in this.by_data&&i==t.CONTRACT){var o=this.by_data[e];for(var a in o)if(o.hasOwnProperty(a)&&o[a]==n){s=!0;break}}else s=!0;return s},check_contracting_rules:function(){var t=this.last.dayOfWeek(),e=this.last.weekNumber(this.rule.wkst),n=this.last.dayOfYear();return this.check_contract_restriction("BYSECOND",this.last.second)&&this.check_contract_restriction("BYMINUTE",this.last.minute)&&this.check_contract_restriction("BYHOUR",this.last.hour)&&this.check_contract_restriction("BYDAY",ICAL.Recur.numericDayToIcalDay(t))&&this.check_contract_restriction("BYWEEKNO",e)&&this.check_contract_restriction("BYMONTHDAY",this.last.day)&&this.check_contract_restriction("BYMONTH",this.last.month)&&this.check_contract_restriction("BYYEARDAY",n)},setup_defaults:function(e,n,r){var i=t._indexMap[e];return t._expandMap[this.rule.freq][i]!=t.CONTRACT&&(e in this.by_data||(this.by_data[e]=[r]),this.rule.freq!=n)?this.by_data[e][0]:r},toJSON:function(){var t=Object.create(null);return t.initialized=this.initialized,t.rule=this.rule.toJSON(),t.dtstart=this.dtstart.toJSON(),t.by_data=this.by_data,t.days=this.days,t.last=this.last.toJSON(),t.by_indices=this.by_indices,t.occurrence_number=this.occurrence_number,t}},t._indexMap={BYSECOND:0,BYMINUTE:1,BYHOUR:2,BYDAY:3,BYMONTHDAY:4,BYYEARDAY:5,BYWEEKNO:6,BYMONTH:7,BYSETPOS:8},t._expandMap={SECONDLY:[1,1,1,1,1,1,1,1],MINUTELY:[2,1,1,1,1,1,1,1],HOURLY:[2,2,1,1,1,1,1,1],DAILY:[2,2,2,1,1,1,1,1],WEEKLY:[2,2,2,2,3,3,1,1],MONTHLY:[2,2,2,2,2,3,3,1],YEARLY:[2,2,2,2,2,2,2,2]},t.UNKNOWN=0,t.CONTRACT=1,t.EXPAND=2,t.ILLEGAL=3,t}(),ICAL.RecurExpansion=function(){function t(t){return ICAL.helpers.formatClassType(t,ICAL.Time)}function e(t,e){return t.compare(e)}function n(t){this.ruleDates=[],this.exDates=[],this.fromData(t)}return n.prototype={complete:!1,ruleIterators:null,ruleDates:null,exDates:null,ruleDateInc:0,exDateInc:0,exDate:null,ruleDate:null,dtstart:null,last:null,fromData:function(e){var n=ICAL.helpers.formatClassType(e.dtstart,ICAL.Time);if(!n)throw new Error(".dtstart (ICAL.Time) must be given");if(this.dtstart=n,e.component)this._init(e.component);else{if(this.last=t(e.last)||n.clone(),!e.ruleIterators)throw new Error(".ruleIterators or .component must be given");this.ruleIterators=e.ruleIterators.map(function(t){return ICAL.helpers.formatClassType(t,ICAL.RecurIterator)}),this.ruleDateInc=e.ruleDateInc,this.exDateInc=e.exDateInc,e.ruleDates&&(this.ruleDates=e.ruleDates.map(t),this.ruleDate=this.ruleDates[this.ruleDateInc]),e.exDates&&(this.exDates=e.exDates.map(t),this.exDate=this.exDates[this.exDateInc]),void 0!==e.complete&&(this.complete=e.complete)}},next:function(){for(var t,e,n,r=0;;){if(r++>500)throw new Error("max tries have occured, rule may be impossible to forfill.");if(e=this.ruleDate,t=this._nextRecurrenceIter(this.last),!e&&!t){this.complete=!0;break}if((!e||t&&e.compare(t.last)>0)&&(e=t.last.clone(),t.next()),this.ruleDate===e&&this._nextRuleDay(),this.last=e,!this.exDate||((n=this.exDate.compare(this.last))<0&&this._nextExDay(),0!==n))return this.last;this._nextExDay()}},toJSON:function(){function t(t){return t.toJSON()}var e=Object.create(null);return e.ruleIterators=this.ruleIterators.map(t),this.ruleDates&&(e.ruleDates=this.ruleDates.map(t)),this.exDates&&(e.exDates=this.exDates.map(t)),e.ruleDateInc=this.ruleDateInc,e.exDateInc=this.exDateInc,e.last=this.last.toJSON(),e.dtstart=this.dtstart.toJSON(),e.complete=this.complete,e},_extractDates:function(t,n){function r(t){i=ICAL.helpers.binsearchInsert(s,t,e),s.splice(i,0,t)}for(var i,s=[],o=t.getAllProperties(n),a=o.length,l=0;l<a;l++)o[l].getValues().forEach(r);return s},_init:function(t){if(this.ruleIterators=[],this.last=this.dtstart.clone(),!function(t){return t.hasProperty("rdate")||t.hasProperty("rrule")||t.hasProperty("recurrence-id")}(t))return this.ruleDate=this.last.clone(),void(this.complete=!0);if(t.hasProperty("rdate")&&(this.ruleDates=this._extractDates(t,"rdate"),this.ruleDates[0]&&this.ruleDates[0].compare(this.dtstart)<0?(this.ruleDateInc=0,this.last=this.ruleDates[0].clone()):this.ruleDateInc=ICAL.helpers.binsearchInsert(this.ruleDates,this.last,e),this.ruleDate=this.ruleDates[this.ruleDateInc]),t.hasProperty("rrule"))for(var n,r=t.getAllProperties("rrule"),i=0,s=r.length;i<s;i++)n=r[i].getFirstValue().iterator(this.dtstart),this.ruleIterators.push(n),n.next();t.hasProperty("exdate")&&(this.exDates=this._extractDates(t,"exdate"),this.exDateInc=ICAL.helpers.binsearchInsert(this.exDates,this.last,e),this.exDate=this.exDates[this.exDateInc])},_nextExDay:function(){this.exDate=this.exDates[++this.exDateInc]},_nextRuleDay:function(){this.ruleDate=this.ruleDates[++this.ruleDateInc]},_nextRecurrenceIter:function(){var t=this.ruleIterators;if(0===t.length)return null;for(var e,n,r,i=t.length,s=0;s<i;s++)n=(e=t[s]).last,e.completed?(i--,0!==s&&s--,t.splice(s,1)):(!r||r.last.compare(n)>0)&&(r=e);return r}},n}(),ICAL.Event=function(){function t(t,e){t instanceof ICAL.Component||(e=t,t=null),this.component=t||new ICAL.Component("vevent"),this._rangeExceptionCache=Object.create(null),this.exceptions=Object.create(null),this.rangeExceptions=[],e&&e.strictExceptions&&(this.strictExceptions=e.strictExceptions),e&&e.exceptions&&e.exceptions.forEach(this.relateException,this)}function e(t,e){return t[0]>e[0]?1:e[0]>t[0]?-1:0}return t.prototype={THISANDFUTURE:"THISANDFUTURE",exceptions:null,strictExceptions:!1,relateException:function(t){if(this.isRecurrenceException())throw new Error("cannot relate exception to exceptions");if(t instanceof ICAL.Component&&(t=new ICAL.Event(t)),this.strictExceptions&&t.uid!==this.uid)throw new Error("attempted to relate unrelated exception");var n=t.recurrenceId.toString();if(this.exceptions[n]=t,t.modifiesFuture()){var r=[t.recurrenceId.toUnixTime(),n],i=ICAL.helpers.binsearchInsert(this.rangeExceptions,r,e);this.rangeExceptions.splice(i,0,r)}},modifiesFuture:function(){return this.component.getFirstPropertyValue("range")===this.THISANDFUTURE},findRangeException:function(t){if(!this.rangeExceptions.length)return null;var n=t.toUnixTime(),r=ICAL.helpers.binsearchInsert(this.rangeExceptions,[n],e);if((r-=1)<0)return null;var i=this.rangeExceptions[r];return n<i[0]?null:i[1]},getOccurrenceDetails:function(t){var e,n=t.toString(),r=t.convertToZone(ICAL.Timezone.utcTimezone).toString(),i={recurrenceId:t};if(n in this.exceptions)e=i.item=this.exceptions[n],i.startDate=e.startDate,i.endDate=e.endDate,i.item=e;else if(r in this.exceptions)e=this.exceptions[r],i.startDate=e.startDate,i.endDate=e.endDate,i.item=e;else{var s,o=this.findRangeException(t);if(o){var a=this.exceptions[o];i.item=a;var l=this._rangeExceptionCache[o];if(!l){var u=a.recurrenceId.clone(),c=a.startDate.clone();u.zone=c.zone,l=c.subtractDate(u),this._rangeExceptionCache[o]=l}var h=t.clone();h.zone=a.startDate.zone,h.addDuration(l),(s=h.clone()).addDuration(a.duration),i.startDate=h,i.endDate=s}else(s=t.clone()).addDuration(this.duration),i.endDate=s,i.startDate=t,i.item=this}return i},iterator:function(t){return new ICAL.RecurExpansion({component:this.component,dtstart:t||this.startDate})},isRecurring:function(){var t=this.component;return t.hasProperty("rrule")||t.hasProperty("rdate")},isRecurrenceException:function(){return this.component.hasProperty("recurrence-id")},getRecurrenceTypes:function(){for(var t=this.component.getAllProperties("rrule"),e=0,n=t.length,r=Object.create(null);e<n;e++){r[t[e].getFirstValue().freq]=!0}return r},get uid(){return this._firstProp("uid")},set uid(t){this._setProp("uid",t)},get startDate(){return this._firstProp("dtstart")},set startDate(t){this._setTime("dtstart",t)},get endDate(){var t=this._firstProp("dtend");if(!t){var e=this._firstProp("duration");t=this.startDate.clone(),e?t.addDuration(e):t.isDate&&(t.day+=1)}return t},set endDate(t){this._setTime("dtend",t)},get duration(){var t=this._firstProp("duration");return t||this.endDate.subtractDate(this.startDate)},get location(){return this._firstProp("location")},set location(t){return this._setProp("location",t)},get attendees(){return this.component.getAllProperties("attendee")},get summary(){return this._firstProp("summary")},set summary(t){this._setProp("summary",t)},get description(){return this._firstProp("description")},set description(t){this._setProp("description",t)},get organizer(){return this._firstProp("organizer")},set organizer(t){this._setProp("organizer",t)},get sequence(){return this._firstProp("sequence")},set sequence(t){this._setProp("sequence",t)},get recurrenceId(){return this._firstProp("recurrence-id")},set recurrenceId(t){this._setProp("recurrence-id",t)},_setTime:function(t,e){var n=this.component.getFirstProperty(t);n||(n=new ICAL.Property(t),this.component.addProperty(n)),e.zone===ICAL.Timezone.localTimezone||e.zone===ICAL.Timezone.utcTimezone?n.removeParameter("tzid"):n.setParameter("tzid",e.zone.tzid),n.setValue(e)},_setProp:function(t,e){this.component.updatePropertyWithValue(t,e)},_firstProp:function(t){return this.component.getFirstPropertyValue(t)},toString:function(){return this.component.toString()}},t}(),ICAL.ComponentParser=function(){function t(t){var e;for(e in void 0===t&&(t={}),t)t.hasOwnProperty(e)&&(this[e]=t[e])}return t.prototype={parseEvent:!0,parseTimezone:!0,oncomplete:function(){},onerror:function(t){},ontimezone:function(t){},onevent:function(t){},process:function(t){"string"==typeof t&&(t=ICAL.parse(t)),t instanceof ICAL.Component||(t=new ICAL.Component(t));for(var e,n=t.getAllSubcomponents(),r=0,i=n.length;r<i;r++)switch((e=n[r]).name){case"vtimezone":if(this.parseTimezone){var s=e.getFirstPropertyValue("tzid");s&&this.ontimezone(new ICAL.Timezone({tzid:s,component:e}))}break;case"vevent":this.parseEvent&&this.onevent(new ICAL.Event(e));break;default:continue}this.oncomplete()}},t}(),t.exports=ICAL},function(t,e,n){var r;void 0===(r=function(t){"use strict";return n(8).Model.extend({})}.call(e,n,e,t))||(t.exports=r)},function(e,n,r){var i;void 0===(i=function(e){"use strict";var n=r(2),i=r(4),s=r(7);r(3).folder.reply("entities",function(e){var r=s.generateUrl("apps/mail/api/accounts/{id}/folders",{id:e.get("accountId")});if(-1===e.id)return function(e){return e.addFolder({id:btoa("all-inboxes"),name:t("mail","All inboxes"),specialRole:"inbox",isEmpty:!1,accountId:-1,noSelect:!1,delimiter:"."}),Promise.resolve(e.folders)}(e);return Promise.resolve(n.get(r)).then(function(t){for(var n in t)"folders"===n?(e.folders.reset(),i.each(t.folders,e.addFolder,e)):e.set(n,t[n]);return e.folders}).catch(function(t){if(t.responseJSON)throw t.responseJSON;throw t})})}.call(n,r,n,e))||(e.exports=i)},function(t,e,n){var r;void 0===(r=function(t){"use strict";var e=n(4),r=n(2),i=n(7);function s(t,n){var s=i.generateUrl("/apps/mail/api/accounts/{accountId}/folders/{folderId}/sync",{accountId:t.account.get("accountId"),folderId:t.get("id")});return Promise.resolve(r.ajax(s,{data:{syncToken:t.get("syncToken"),uids:t.messages.pluck("id")}})).then(function(r){t.set("syncToken",r.token),e.forEach(r.newMessages,function(e){e.accountMail=t.account.get("email")});var i=t.addMessages(r.newMessages);return n&&n.addMessages(i),e.each(r.changedMessages,function(r){var i=t.messages.get(r.id);if(!i)throw new Error("non-existing message while syncing");var s={};if(r.flags&&e.isObject(r.flags)&&(s=r.flags,delete r.flags),i.set(r),i.get("flags").set(s),n){var o=n.messages.getUnifiedId(t.messages.get(r.id)),a=n.messages.get(o);a?a.set(r):console.info("Changed message missing in unified inbox")}}),e.each(r.vanishedMessages,function(e){if(n){var r=n.messages.getUnifiedId(t.messages.get(e));n.messages.remove(r)}t.messages.remove(e)}),i})}function o(t){var e=n(1).accounts;if(t.account.get("isUnified")){var r=t;return Promise.all(e.filter(function(e){return e.id!==t.account.id}).map(function(t){return t.folders.filter(function(t){return"inbox"===t.get("specialRole")})}).reduce(function(t,e){return t.concat(e)},[]).map(function(t){return s(t,r)})).then(function(t){return t.reduce(function(t,e){return t.concat(e)},[])})}var i=e.get(-1);if(i){r=i.folders.first();return s(t,r)}return s(t)}return n(3).sync.reply("sync:folder",o),{syncFolder:o}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r;void 0===(r=function(t){"use strict";var e=n(2),r=n(4),i=n(7),s=n(3);function o(t,n){if(r.defaults(n,{cache:!1,filter:""}),""!==n.filter&&(n.cache=!1),n.cache&&t.get("messagesLoaded"))return Promise.resolve(t.messages,!0);var s=i.generateUrl("apps/mail/api/accounts/{accountId}/folders/{folderId}/messages",{accountId:t.account.get("accountId"),folderId:t.get("id")});return new Promise(function(t,r){e.ajax(s,{data:{filter:n.filter},success:t,error:function(t,e){"abort"!==e&&(console.error("error loading messages",t,e),r(t))}})}).then(function(e){var i=""!==n.filter,s=t.messages;return i?(s.reset(),t.set("messagesLoaded",!1)):t.set("messagesLoaded",!0),r.forEach(e,function(e){e.accountMail=t.account.get("email")}),t.addMessages(e),s})}function a(t,s,o){o=o||{};if(r.defaults(o,{filter:""}),t.get("isUnified"))return function(t,e){var r=n(1).accounts,i=Number.POSITIVE_INFINITY;t.messages.isEmpty()||(i=t.messages.last().get("dateInt"));var s=r.filter(function(t){return!t.get("isUnified")});return Promise.all(s.map(function(t){return Promise.all(t.folders.filter(function(t){return"inbox"===t.get("specialRole")}).filter(function(t){return t.messages.filter(function(t){return t.get("dateInt")<i}).length<21}).map(function(t){return a(t.account,t,e)}))})).then(function(){var e=s.map(function(t){return t.folders.filter(function(t){return"inbox"===t.get("specialRole")}).map(function(t){var e=t.messages.filter(function(t){return t.get("dateInt")<i});return e.slice(0,e.length-2)}).reduce(function(t,e){return t.concat(e)},[])}).reduce(function(t,e){return t.concat(e)},[]).sort(function(t){return-1*t.get("dateInt")}).slice(0,20);e.forEach(function(e){e.set("unifiedId",t.messages.getUnifiedId(e))}),t.addMessages(e,t)})}(s,o);var l=i.generateUrl("apps/mail/api/accounts/{accountId}/folders/{folderId}/messages",{accountId:t.get("accountId"),folderId:s.get("id")}),u=null;return s.messages.isEmpty()||(u=s.messages.last().get("dateInt")),new Promise(function(t,n){e.ajax(l,{method:"GET",data:{filter:o.filter,cursor:u},success:t,error:function(t,e){"abort"!==e&&n(t)}})}).then(function(t){var e=s.messages;return s.addMessages(t),e})}return s.message.reply("entities",function(t,e,r){return r=r||{},t.get("isUnified")?function(t,e){var r=n(1).accounts;return Promise.all(r.filter(function(e){return e.id!==t.account.id}).map(function(t){return t.folders.filter(function(t){return"inbox"===t.get("specialRole")})}).reduce(function(t,e){return t.concat(e)},[]).map(function(n){return o(n,e).then(function(e){t.addMessages(e.models)})})).then(function(){var e=t.messages.slice(0,20);return t.messages.reset(),t.addMessages(e),t.messages})}(e,r):o(e,r)}),s.message.reply("next-page",a),s.message.reply("entity",function(t,n,r,s){s=s||{};var o=i.generateUrl("apps/mail/api/accounts/{accountId}/folders/{folderId}/messages/{messageId}",{accountId:t.get("accountId"),folderId:n.get("id"),messageId:r});return new Promise(function(t,n){e.ajax(o,{type:"GET",success:t,error:function(t,e){console.error("error loading message",t),"abort"!==e&&n(t)}})})}),s.message.reply("flag",function(t,n,s,o,a){var l=[o,a],u=i.generateUrl("apps/mail/api/accounts/{accountId}/folders/{folderId}/messages/{messageId}/flags",{accountId:t.get("accountId"),folderId:n.get("id"),messageId:s.id});return Promise.resolve(e.ajax(u,{type:"PUT",data:{flags:r.object([l])}}))}),s.message.reply("move",function(t,n,r,s,o){var a=i.generateUrl("apps/mail/api/accounts/{accountId}/folders/{folderId}/messages/{messageId}/move",{accountId:t.get("accountId"),folderId:n.get("id"),messageId:r.get("id")});return Promise.resolve(e.ajax(a,{type:"POST",data:{destAccountId:s.get("accountId"),destFolderId:o.get("id")}}))}),s.message.reply("send",function(t,n,s){r.defaults(s,{draftUID:null,aliasId:null});var o=i.generateUrl("/apps/mail/api/accounts/{id}/send",{id:t.get("id")});return Promise.resolve(e.ajax(o,{type:"POST",data:{to:n.to,cc:n.cc,bcc:n.bcc,subject:n.subject,body:n.body,attachments:n.attachments,folderId:s.repliedMessage?s.repliedMessage.folder.get("id"):void 0,messageId:s.repliedMessage?s.repliedMessage.get("id"):void 0,draftUID:s.draftUID,aliasId:s.aliasId}}))}),s.message.reply("draft",function(t,n,s){r.defaults(s,{folder:null,messageId:null,draftUID:null});var o=!0;if(r.each(["to","cc","bcc","subject","body"],function(t){(function(t){return void 0===t||""===t})(n[t])||(o=!1)}),o){if(null!==s.draftUID){var a=t.getSpecialFolder("draft"),l=i.generateUrl("apps/mail/api/accounts/{accountId}/folders/{folderId}/messages/{messageId}",{accountId:t.get("accountId"),folderId:a,messageId:s.draftUID});return Promise.resolve(e.ajax(l,{type:"DELETE"}))}return Promise.resolve({uid:null})}var u=i.generateUrl("/apps/mail/api/accounts/{id}/draft",{id:t.get("accountId")});return Promise.resolve(e.ajax(u,{type:"POST",data:{to:n.to,cc:n.cc,bcc:n.bcc,subject:n.subject,body:n.body,attachments:n.attachments,folderId:s.folder?s.folder.get("id"):null,messageId:s.repliedMessage?s.repliedMessage.get("id"):null,uid:s.draftUID}}))}),s.message.reply("delete",function(t){var n=i.generateUrl("apps/mail/api/accounts/{accountId}/folders/{folderId}/messages/{messageId}",{accountId:t.folder.account.get("accountId"),folderId:t.folder.get("id"),messageId:t.get("id")});return Promise.resolve(e.ajax(n,{type:"DELETE"}))}),{getNextMessagePage:a}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r;
/**
 * @copyright 2017 Christoph Wurst <christoph@winzerhof-wurst.at>
 *
 * @author 2017 Christoph Wurst <christoph@winzerhof-wurst.at>
 *
 * @license GNU AGPL version 3 or any later version
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */void 0===(r=function(t){"use strict";var e=n(2),r=n(7),i=n(3);function s(t,n){var i=r.generateUrl("/apps/mail/api/preferences/{key}",{key:t});return new Promise(function(r,s){return e.ajax(i,{method:"PUT",data:{key:t,value:n},success:r,error:s})}).then(function(t){return t.value})}return i.preference.reply("save",s),i.preference.reply("get",s),{savePreference:s,getPreference:function(t){var n=r.generateUrl("/apps/mail/api/preferences/{key}",{key:t});return new Promise(function(t,r){return e.ajax(n,{success:t,error:r})}).then(function(t){return t.value})}}}.call(e,n,e,t))||(t.exports=r)},function(e,r,i){var s;void 0===(s=function(e){"use strict";var r=i(4),s=i(7),o=i(3);function a(t,e,n){"undefined"!=typeof Notification&&(null!==document.querySelector(":focus")||(new Notification(t,{body:e,icon:n}).onclick=function(){window.focus()}))}function l(e){if(0!==e.length&&(o.notification.trigger("favicon:change",s.filePath("mail","img","favicon-notification.png")),"granted"===Notification.permission)){var i=r.map(e,function(t){return t.get("from")[0].label});(i=r.uniq(i)).length>2?(i=i.slice(0,2)).push("…"):i=i.slice(0,2);var l="";if(1===e.length){var u=r.map(e,function(t){return t.get("subject")});l=t("mail","{from}\n{subject}",{from:i.join(),subject:u.join()})}else l=n("mail","%n new message \nfrom {from}","%n new messages \nfrom {from}",e.length,{from:i.join()});var c=s.filePath("mail","img","mail-notification.png");a(t("mail","Nextcloud Mail"),l,c)}}return o.ui.on("notification:mail:show",l),o.ui.on("notification:request",function(){"undefined"!=typeof Notification&&Notification.requestPermission()}),{showNotification:a,showMailNotification:l}}.call(r,i,r,e))||(e.exports=s)},function(t,e,n){var r;void 0===(r=function(t){"use strict";var e=n(3),r="";return{filter:function(t){if(t!==r&&(r=t,n(1).currentAccount&&n(1).currentFolder)){var i=n(1).currentAccount.get("accountId"),s=n(1).currentFolder.get("id");e.navigation.trigger("search",i,s,t)}}}}.call(e,n,e,t))||(t.exports=r)}]);