document.F=Object<\/script>"),e.close(),l=e.F;i--;)delete l.prototype[a[i]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=i(e),n=new s,s.prototype=null,n[r]=e):n=l(),void 0===t?n:o(n,t)}},function(e,t,n){var i=n(64),o=n(51),a=n(22),r=n(69),s=n(26),l=n(85),u=Object.getOwnPropertyDescriptor;t.f=n(31)?u:function(e,t){if(e=a(e),t=r(t,!0),l)try{return u(e,t)}catch(e){}if(s(e,t))return o(!i.f.call(e,t),e[t])}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var i=n(33).f,o=n(26),a=n(34)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,a)&&i(e,a,{configurable:!0,value:t})}},function(e,t,n){var i=n(67)("keys"),o=n(52);e.exports=function(e){return i[e]||(i[e]=o(e))}},function(e,t,n){var i=n(21),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});e.exports=function(e){return o[e]||(o[e]={})}},function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},function(e,t,n){var i=n(44);e.exports=function(e,t){if(!i(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!i(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var i=n(21),o=n(25),a=n(61),r=n(71),s=n(33).f;e.exports=function(e){var t=o.Symbol||(o.Symbol=a?{}:i.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:r.f(e)})}},function(e,t,n){t.f=n(34)},function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i=n(0),o=n.n(i),a=n(6),r=n.n(a),s=n(91),l=n.n(s),u=n(1),c=function(){function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];o()(this,e),this.oCross=null,this.sScreenName=t,this.aViewModels=n.i(u.isArray)(i)?i:[]}return e.prototype.viewModels=function(){return this.aViewModels},e.prototype.screenName=function(){return this.sScreenName},e.prototype.routes=function(){return null},e.prototype.__cross=function(){return this.oCross},e.prototype.__start=function(){var e=null,t=null,i=this.routes();n.i(u.isNonEmptyArray)(i)&&(t=r.a.bind(this.onRoute||u.noop,this),e=l.a.create(),i.forEach(function(n){n&&e&&(e.addRoute(n[0],t).rules=n[1])}),this.oCross=e)},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"AskPopupView",function(){return S}),n.d(t,"default",function(){return S});var i,o,a=n(0),r=n.n(a),s=n(5),l=n.n(s),u=n(4),c=n.n(u),d=n(2),p=n(19),f=n.n(p),m=n(3),g=n(1),h=n(8),b=n(9),v=n(13),S=(i=n.i(b.popup)({name:"View/Popup/Ask",templateID:"PopupsAsk"}))(o=function(e){function t(){r()(this,t);var n=l()(this,e.call(this));return n.askDesc=d.a.observable(""),n.yesButton=d.a.observable(""),n.noButton=d.a.observable(""),n.yesFocus=d.a.observable(!1),n.noFocus=d.a.observable(!1),n.fYesAction=null,n.fNoAction=null,n.bFocusYesOnShow=!0,n.bDisabeCloseOnEsc=!0,n.sDefaultKeyScope=m.KeyState.PopupAsk,n}return c()(t,e),t.prototype.clearPopup=function(){this.askDesc(""),this.yesButton(n.i(h.i18n)("POPUPS_ASK/BUTTON_YES")),this.noButton(n.i(h.i18n)("POPUPS_ASK/BUTTON_NO")),this.yesFocus(!1),this.noFocus(!1),this.fYesAction=null,this.fNoAction=null},t.prototype.yesClick=function(){this.cancelCommand(),n.i(g.isFunc)(this.fYesAction)&&this.fYesAction.call(null)},t.prototype.noClick=function(){this.cancelCommand(),n.i(g.isFunc)(this.fNoAction)&&this.fNoAction.call(null)},t.prototype.onShow=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",a=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];this.clearPopup(),this.fYesAction=t||null,this.fNoAction=n||null,this.askDesc(e||""),i&&this.yesButton(i),o&&this.noButton(o),this.bFocusYesOnShow=!!a},t.prototype.onShowWithDelay=function(){this.bFocusYesOnShow&&this.yesFocus(!0)},t.prototype.onBuild=function(){var e=this;f()("tab, shift+tab, right, left",m.KeyState.PopupAsk,function(){return e.yesFocus()?e.noFocus(!0):e.yesFocus(!0),!1}),f()("esc",m.KeyState.PopupAsk,function(){return e.noClick(),!1})},t}(v.a))||o},function(e,t){e.exports=window.moment},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"HtmlEditor",function(){return m}),n.d(t,"default",function(){return m});var i=n(0),o=n.n(i),a=n(11),r=n.n(a),s=n(6),l=n.n(s),u=n(12),c=n.n(u),d=n(7),p=n(3),f=n(10),m=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;o()(this,e),this.blurTimer=0,this.__resizable=!1,this.__inited=!1,this.onBlur=null,this.onReady=null,this.onModeChange=null,this.onBlur=n,this.onReady=i,this.onModeChange=a,this.element=t,this.$element=c()(t),this.resize=l.a.throttle(l.a.bind(this.resizeEditor,this),100),this.init()}return e.prototype.runOnBlur=function(){this.onBlur&&this.onBlur()},e.prototype.blurTrigger=function(){var e=this;this.onBlur&&(r.a.clearTimeout(this.blurTimer),this.blurTimer=r.a.setTimeout(function(){e.runOnBlur()},p.Magics.Time200ms))},e.prototype.focusTrigger=function(){this.onBlur&&r.a.clearTimeout(this.blurTimer)},e.prototype.isHtml=function(){return!!this.editor&&"wysiwyg"===this.editor.mode},e.prototype.clearCachedSignature=function(){this.editor&&this.editor.execCommand("insertSignature",{clearCache:!0})},e.prototype.setSignature=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this.editor&&this.editor.execCommand("insertSignature",{isHtml:t,isFirst:i,insertBefore:n,signature:e})},e.prototype.checkDirty=function(){return!!this.editor&&this.editor.checkDirty()},e.prototype.resetDirty=function(){this.editor&&this.editor.resetDirty()},e.prototype.getData=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t="";if(this.editor)try{t="plain"===this.editor.mode&&this.editor.plugins.plain&&this.editor.__plain?this.editor.__plain.getRawData():e?''+this.editor.getData()+"
":this.editor.getData()}catch(e){}return t},e.prototype.getDataWithHtmlMark=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(this.isHtml()?":HTML:":"")+this.getData(e)},e.prototype.modeToggle=function(e,t){if(this.editor){try{e?"plain"===this.editor.mode&&this.editor.setMode("wysiwyg"):"wysiwyg"===this.editor.mode&&this.editor.setMode("plain")}catch(e){}t&&this.resize()}},e.prototype.setHtmlOrPlain=function(e,t){":HTML:"===e.substr(0,6)?this.setHtml(e.substr(6),t):this.setPlain(e,t)},e.prototype.setHtml=function(e,t){if(this.editor&&this.__inited){this.clearCachedSignature(),this.modeToggle(!0),e=e.replace(/]*><\/p>/gi,"");try{this.editor.setData(e)}catch(e){}t&&this.focus()}},e.prototype.replaceHtml=function(e,t){if(this.editor&&this.__inited&&"wysiwyg"===this.editor.mode)try{this.editor.setData(this.editor.getData().replace(e,t))}catch(e){}},e.prototype.setPlain=function(e,t){if(this.editor&&this.__inited){if(this.clearCachedSignature(),this.modeToggle(!1),"plain"===this.editor.mode&&this.editor.plugins.plain&&this.editor.__plain)this.editor.__plain.setRawData(e);else try{this.editor.setData(e)}catch(e){}t&&this.focus()}},e.prototype.init=function(){var e=this;if(this.element&&!this.editor){var t=function(){var t=d.htmlEditorDefaultConfig,n=f.settingsGet("Language"),i=!!f.appSettingsGet("allowHtmlEditorSourceButton"),o=!!f.appSettingsGet("allowHtmlEditorBitiButtons");!i&&o||t.toolbarGroups.__cfgInited||(t.toolbarGroups.__cfgInited=!0,i&&(t.removeButtons=t.removeButtons.replace(",Source","")),o||(t.removePlugins+=(t.removePlugins?",":"")+"bidi")),t.enterMode=r.a.CKEDITOR.ENTER_BR,t.shiftEnterMode=r.a.CKEDITOR.ENTER_P,t.language=d.htmlEditorLangsMap[(n||"en").toLowerCase()]||"en",r.a.CKEDITOR.env&&(r.a.CKEDITOR.env.isCompatible=!0),e.editor=r.a.CKEDITOR.appendTo(e.element,t),e.editor.on("key",function(e){return!e||!e.data||p.EventKeyCode.Tab!==e.data.keyCode}),e.editor.on("blur",function(){e.blurTrigger()}),e.editor.on("mode",function(){e.blurTrigger(),e.onModeChange&&e.onModeChange("plain"!==e.editor.mode)}),e.editor.on("focus",function(){e.focusTrigger()}),r.a.FileReader&&e.editor.on("drop",function(t){if(0 ')},o.readAsDataURL(n),t.data.dataTransfer.setData("text/html",i)}}}),e.editor.on("instanceReady",function(){e.editor.removeMenuItem&&(e.editor.removeMenuItem("cut"),e.editor.removeMenuItem("copy"),e.editor.removeMenuItem("paste")),e.__resizable=!0,e.__inited=!0,e.resize(),e.onReady&&e.onReady()})};r.a.CKEDITOR?t():r.a.__initEditor=t}},e.prototype.focus=function(){if(this.editor)try{this.editor.focus()}catch(e){}},e.prototype.hasFocus=function(){if(this.editor)try{return!!this.editor.focusManager.hasFocus}catch(e){}return!1},e.prototype.blur=function(){if(this.editor)try{this.editor.focusManager.blur(!0)}catch(e){}},e.prototype.resizeEditor=function(){if(this.editor&&this.__resizable)try{this.editor.resize(this.$element.width(),this.$element.innerHeight())}catch(e){}},e.prototype.setReadOnly=function(e){if(this.editor)try{this.editor.setReadOnly(!!e)}catch(e){}},e.prototype.clear=function(e){this.setHtml("",e)},e}()},function(e,t,n){"use strict";function i(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!s.a||!s.a.all)throw new Error("Promises are not available your environment.");if(!e)throw new Error("src should not be empty.");return new s.a(function(n,i){var o=a.a.document.createElement("script");o.onload=function(){n(e)},o.onerror=function(){i(new Error(e))},o.async=!0===t,o.src=e,a.a.document.body.appendChild(o)})}t.a=i;var o=n(11),a=n.n(o),r=n(47),s=n.n(r)},function(e,t,n){"use strict";n.d(t,"a",function(){return d});var i=n(0),o=n.n(i),a=n(5),r=n.n(a),s=n(4),l=n.n(s),u=n(2),c=n(1),d=function(e){function t(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o()(this,t);var a=r()(this,e.call(this));return a.value=i.value,!n.i(c.isUnd)(a.value)&&a.value.subscribe||(a.value=u.a.observable(!n.i(c.isUnd)(a.value)&&!!a.value)),a.enable=i.enable,!n.i(c.isUnd)(a.enable)&&a.enable.subscribe||(a.enable=u.a.observable(!!n.i(c.isUnd)(a.enable)||!!a.enable)),a.disable=i.disable,!n.i(c.isUnd)(a.disable)&&a.disable.subscribe||(a.disable=u.a.observable(!n.i(c.isUnd)(a.disable)&&!!a.disable)),a.label=i.label||"",a.inline=!n.i(c.isUnd)(i.inline)&&i.inline,a.readOnly=!n.i(c.isUnd)(i.readOnly)&&!!i.readOnly,a.inverted=!n.i(c.isUnd)(i.inverted)&&!!i.inverted,a.labeled=!n.i(c.isUnd)(i.label),a.labelAnimated=!!i.labelAnimated,a}return l()(t,e),t.prototype.click=function(){this.readOnly||!this.enable()||this.disable()||this.value(!this.value())},t}(n(17).b)},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"LanguagesPopupView",function(){return b}),n.d(t,"default",function(){return b});var i,o,a=n(0),r=n.n(a),s=n(5),l=n.n(s),u=n(4),c=n.n(u),d=n(6),p=n.n(d),f=n(2),m=n(1),g=n(9),h=n(13),b=(i=n.i(g.popup)({name:"View/Popup/Languages",templateID:"PopupsLanguages"}))(o=function(e){function t(){r()(this,t);var i=l()(this,e.call(this));return i.fLang=null,i.userLanguage=f.a.observable(""),i.langs=f.a.observableArray([]),i.languages=f.a.computed(function(){var e=i.userLanguage();return p.a.map(i.langs(),function(t){return{key:t,user:t===e,selected:f.a.observable(!1),fullName:n.i(m.convertLangName)(t)}})}),i.langs.subscribe(function(){i.setLanguageSelection()}),i}return c()(t,e),t.prototype.languageTooltipName=function(e){var t=n.i(m.convertLangName)(e,!0);return n.i(m.convertLangName)(e,!1)===t?"":t},t.prototype.setLanguageSelection=function(){var e=this.fLang?f.a.unwrap(this.fLang):"";p.a.each(this.languages(),function(t){t.selected(t.key===e)})},t.prototype.onBeforeShow=function(){this.fLang=null,this.userLanguage(""),this.langs([])},t.prototype.onShow=function(e,t,n){this.fLang=e,this.userLanguage(n||""),this.langs(t)},t.prototype.changeLanguage=function(e){this.fLang&&this.fLang(e),this.cancelCommand()},t}(h.a))||o},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=i(n(128)),a=i(n(127)),r="function"==typeof a.default&&"symbol"==typeof o.default?function(e){return typeof e}:function(e){return e&&"function"==typeof a.default&&e.constructor===a.default&&e!==a.default.prototype?"symbol":typeof e};t.default="function"==typeof a.default&&"symbol"===r(o.default)?function(e){return void 0===e?"undefined":r(e)}:function(e){return e&&"function"==typeof a.default&&e.constructor===a.default&&e!==a.default.prototype?"symbol":void 0===e?"undefined":r(e)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var i=n(134);e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,o){return e.call(t,n,i,o)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var i=n(44),o=n(21).document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},function(e,t,n){e.exports=!n(31)&&!n(43)(function(){return 7!=Object.defineProperty(n(84)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){"use strict";var i=n(61),o=n(42),a=n(90),r=n(32),s=n(26),l=n(60),u=n(141),c=n(65),d=n(147),p=n(34)("iterator"),f=!([].keys&&"next"in[].keys()),m=function(){return this};e.exports=function(e,t,n,g,h,b,v){u(n,t,g);var S,y,w,_=function(e){if(!f&&e in E)return E[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},A=t+" Iterator",T="values"==h,C=!1,E=e.prototype,D=E[p]||E["@@iterator"]||h&&E[h],N=D||_(h),R=h?T?_("entries"):N:void 0,I="Array"==t?E.entries||D:D;if(I&&(w=d(I.call(new e)))!==Object.prototype&&(c(w,A,!0),i||s(w,p)||r(w,p,m)),T&&D&&"values"!==D.name&&(C=!0,N=function(){return D.call(this)}),i&&!v||!f&&!C&&E[p]||r(E,p,N),l[t]=N,l[A]=m,h)if(S={values:T?N:_("values"),keys:b?N:_("keys"),entries:R},v)for(y in S)y in E||a(E,y,S[y]);else o(o.P+o.F*(f||C),t,S);return S}},function(e,t,n){var i=n(89),o=n(59).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,o)}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var i=n(26),o=n(22),a=n(136)(!1),r=n(66)("IE_PROTO");e.exports=function(e,t){var n,s=o(e),l=0,u=[];for(n in s)n!=r&&i(s,n)&&u.push(n);for(;t.length>l;)i(s,n=t[l++])&&(~a(u,n)||u.push(n));return u}},function(e,t,n){e.exports=n(32)},function(e,t){e.exports=window.crossroads},function(e,t){e.exports=window.progressJs},function(e,t,n){"use strict";var i=n(11),o=n.n(i),a=n(1),r=n(7),s=n(3),l=n(27),u=n(8),c=n(38);t.a=function(e){r.data.__APP__=e,r.$win.on("keydown",a.killCtrlACtrlS).on("unload",function(){r.data.bUnload=!0}),r.$html.addClass(r.bMobileDevice?"mobile":"no-mobile").on("click.dropdown.data-api",a.detectDropdownVisibility);var t=o.a.rl||{};t.i18n=u.i18n,t.createCommand=a.createCommandLegacy,t.addSettingsViewModel=l.c,t.addSettingsViewModelForAdmin=l.d,t.addHook=l.e,t.settingsGet=l.f,t.pluginSettingsGet=l.g,t.pluginRemoteRequest=l.h,t.EmailModel=c.EmailModel,t.Enums=s,o.a.rl=t,o.a.__APP_BOOT=function(t){n.i(a.domReady)(function(){o.a.setTimeout(function(){o.a.rainloopTEMPLATES&&o.a.rainloopTEMPLATES[0]?(o.a.document.getElementById("rl-templates").innerHTML=o.a.rainloopTEMPLATES[0],o.a.setTimeout(function(){r.$html.removeClass("no-js rl-booted-trigger").addClass("rl-booted"),e.bootstart()},s.Magics.Time10ms)):t(),o.a.__APP_BOOT=null},s.Magics.Time10ms)})}}},,function(e,t,n){"use strict";var i=n(0),o=n.n(i),a=n(2),r=n(3),s=n(10),l=function(){function e(){o()(this,e),this.additionalAccounts=a.a.observable(!1),this.identities=a.a.observable(!1),this.gravatar=a.a.observable(!1),this.attachmentThumbnails=a.a.observable(!1),this.sieve=a.a.observable(!1),this.filters=a.a.observable(!1),this.themes=a.a.observable(!0),this.userBackground=a.a.observable(!1),this.openPGP=a.a.observable(!1),this.twoFactorAuth=a.a.observable(!1),this.twoFactorAuthForce=a.a.observable(!1),this.templates=a.a.observable(!1)}return e.prototype.populate=function(){this.additionalAccounts(s.capa(r.Capa.AdditionalAccounts)),this.identities(s.capa(r.Capa.Identities)),this.gravatar(s.capa(r.Capa.Gravatar)),this.attachmentThumbnails(s.capa(r.Capa.AttachmentThumbnails)),this.sieve(s.capa(r.Capa.Sieve)),this.filters(s.capa(r.Capa.Filters)),this.themes(s.capa(r.Capa.Themes)),this.userBackground(s.capa(r.Capa.UserBackground)),this.openPGP(s.capa(r.Capa.OpenPGP)),this.twoFactorAuth(s.capa(r.Capa.TwoFactor)),this.twoFactorAuthForce(s.capa(r.Capa.TwoFactorForce)),this.templates(s.capa(r.Capa.Templates))},e}();t.a=new l},function(e,t,n){"use strict";var i=n(0),o=n.n(i),a=n(2),r=function e(){o()(this,e),this.domains=a.a.observableArray([]),this.domains.loading=a.a.observable(!1).extend({throttle:100}),this.domainsWithoutAliases=this.domains.filter(function(e){return e&&!e.alias})};t.a=new r},,,,function(e,t,n){"use strict";n.d(t,"a",function(){return P});var i=n(0),o=n.n(i),a=n(5),r=n.n(a),s=n(4),l=n.n(s),u=n(11),c=n.n(u),d=n(12),p=n.n(d),f=n(6),m=n.n(f),g=n(2),h=n(19),b=n.n(h),v=n(175),S=n.n(v),y=n(7),w=n(1),_=n(3),A=n(14),T=n(8),C=n(102),E=n(29),D=n(10),N=n(53),R=n(57),I=n(54),O=n(9),P=function(e){function t(i){o()(this,t);var a=r()(this,e.call(this));return a.googlePreviewSupportedCache=null,a.isLocalAutocomplete=!0,a.iframe=null,a.lastErrorTime=0,a.iframe=p()('').appendTo("body"),y.$win.on("error",function(e){if(e&&e.originalEvent&&e.originalEvent.message&&-1===n.i(w.inArray)(e.originalEvent.message,["Script error.","Uncaught Error: Error calling method on NPObject."])){var t=n.i(w.timestamp)();if(a.lastErrorTime>=t)return;a.lastErrorTime=t,i.jsError(w.noop,e.originalEvent.message,e.originalEvent.filename,e.originalEvent.lineno,c.a.location&&c.a.location.toString?c.a.location.toString():"",y.$html.attr("class"),n.i(w.microtime)()-y.startMicrotime)}}),y.$win.on("resize",function(){E.a("window.resize")}),E.b("window.resize",m.a.throttle(function(){var e=y.$win.height(),t=y.$win.height();y.$win.__sizes[0]===e&&y.$win.__sizes[1]===t||(y.$win.__sizes[0]=e,y.$win.__sizes[1]=t,E.a("window.resize.real"))},_.Magics.Time50ms)),y.$doc.on("keydown",function(e){e&&e.ctrlKey&&y.$html.addClass("rl-ctrl-key-pressed")}).on("keyup",function(e){e&&!e.ctrlKey&&y.$html.removeClass("rl-ctrl-key-pressed")}),y.$doc.on("mousemove keypress click",m.a.debounce(function(){E.a("rl.auto-logout-refresh")},_.Magics.Time5s)),b()("esc, enter",_.KeyState.All,function(){n.i(w.detectDropdownVisibility)()}),D.appSettingsGet("allowCmdInterface")&&b()("ctrl+shift+`",_.KeyState.All,function(){n.i(C.a)()}),a}return l()(t,e),t.prototype.remote=function(){return null},t.prototype.data=function(){return null},t.prototype.getApplicationConfiguration=function(e,t){return this.applicationConfiguration[e]||t},t.prototype.download=function(e){if(y.sUserAgent&&(-10&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=!!D.appSettingsGet("inIframe"),a=n.i(w.pString)(D.appSettingsGet("customLogoutLink"));t&&this.clearClientSideToken(),t&&i&&c.a.close&&c.a.close(),a=a||(e?n.i(A.b)():n.i(A.d)()),t&&c.a.location.href!==a?m.a.delay(function(){o&&c.a.parent?c.a.parent.location.href=a:c.a.location.href=a,y.$win.trigger("rl.tooltips.diactivate")},_.Magics.Time100ms):(n.i(O.routeOff)(),n.i(O.setHash)(n.i(A.a)(),!0),n.i(O.routeOff)(),m.a.delay(function(){o&&c.a.parent?c.a.parent.location.reload():c.a.location.reload(),y.$win.trigger("rl.tooltips.diactivate")},_.Magics.Time100ms))},t.prototype.historyBack=function(){c.a.history.back()},t.prototype.bootstart=function(){E.a("rl.bootstart");var e=D.appSettingsGet("mobile");g.a.components.register("SaveTrigger",n(109).default),g.a.components.register("Input",n(106).default),g.a.components.register("Select",n(111).default),g.a.components.register("Radio",n(108).default),g.a.components.register("TextArea",n(112).default),g.a.components.register("Date",n(105).default),g.a.components.register("x-script",n(110).default),D.appSettingsGet("materialDesign")&&y.bAnimationSupported?(g.a.components.register("Checkbox",n(107).default),g.a.components.register("CheckboxSimple",n(55).default)):(g.a.components.register("Checkbox",n(55).default),g.a.components.register("CheckboxSimple",n(55).default)),n.i(T.initOnStartOrLangChange)(T.initNotificationLanguage),m.a.delay(w.windowResizeCallback,_.Magics.Time1s),E.b("ssm.mobile-enter",function(){n.i(y.leftPanelDisabled)(!0)}),E.b("ssm.mobile-leave",function(){n.i(y.leftPanelDisabled)(!1)}),D.appSettingsGet("loginGlassStyle")&&y.$html.addClass("glass"),e?(y.$html.addClass("ssm-state-mobile").addClass("rl-mobile"),E.a("ssm.mobile-enter")):(S.a.addState({id:"mobile",query:"(max-width: 767px)",onEnter:function(){y.$html.addClass("ssm-state-mobile"),E.a("ssm.mobile-enter")},onLeave:function(){y.$html.removeClass("ssm-state-mobile"),E.a("ssm.mobile-leave")}}),S.a.addState({id:"tablet",query:"(min-width: 768px) and (max-width: 999px)",onEnter:function(){y.$html.addClass("ssm-state-tablet")},onLeave:function(){y.$html.removeClass("ssm-state-tablet")}}),S.a.addState({id:"desktop",query:"(min-width: 1000px) and (max-width: 1400px)",onEnter:function(){y.$html.addClass("ssm-state-desktop")},onLeave:function(){y.$html.removeClass("ssm-state-desktop")}}),S.a.addState({id:"desktop-large",query:"(min-width: 1401px)",onEnter:function(){y.$html.addClass("ssm-state-desktop-large")},onLeave:function(){y.$html.removeClass("ssm-state-desktop-large")}})),y.leftPanelDisabled.subscribe(function(e){y.$html.toggleClass("rl-left-panel-disabled",e),y.$html.toggleClass("rl-left-panel-enabled",!e)}),y.leftPanelType.subscribe(function(e){y.$html.toggleClass("rl-left-panel-none","none"===e),y.$html.toggleClass("rl-left-panel-short","short"===e)}),y.leftPanelDisabled.valueHasMutated(),N.a.populate(),R.a.populate(),I.a.populate()},t}(n(114).a)},,function(e,t,n){"use strict";function i(e){return n(165).replace("{{ cmd }}",e)}function o(e){return e.find(".rl-cmd-history-data").empty(),""}function a(e){return n(166).replace("{{ commands }}",e.join(" "))}function r(e,t){return e&&-1")).appendTo(w.$body),u(N))}function d(){C.appSettingsGet("allowCmdInterface")&&(c(),S.a.delay(function(){R&&(R.opened(!R.opened()),R.opened()&&S.a.delay(function(){R&&R.focused&&R.focused(!0)},_.Magics.Time50ms))},_.Magics.Time50ms))}t.a=d;var p=n(0),f=n.n(p),m=n(11),g=n.n(m),h=n(12),b=n.n(h),v=n(6),S=n.n(v),y=n(2),w=n(7),_=n(3),A=n(1),T=n(8),C=n(10),E=n(57),D=n(53),N=null,R=null,I=function(){function e(t){f()(this,e),this.dom=null,this.opened=y.a.observable(!1),this.cmd=y.a.observable(""),this.focused=y.a.observable(!1),this.themes=E.a.themes,this.cmdHistory=[],this.cmdHistoryShift=0,this.cmdHelper=y.a.observable(""),this.cmds=["help","version","clear","theme","lang"],this.cmdsWithParameters=["theme","lang"],this.isAdmin=!1,this.dom=t,this.isAdmin=!!C.appSettingsGet("admin")}return e.prototype.runCmd=function(e,t,n){var u="",c=null;if(this.cmdHelper(""),n){switch(e){case"lang":c=(this.isAdmin?D.a.languagesAdmin():D.a.languages()).filter(function(e){return 0===e.lastIndexOf(t,0)});break;case"theme":c=E.a.themes().filter(function(e){return 0===e.lastIndexOf(t,0)})}if(e&&c)if(1===c.length&&c[0])this.cmd(e+" "+c[0]);else if(1").html(n(168).replace("{{ cmd }}",i))),l&&u.append(b()("
").html(l)),S.a.delay(function(){t.dom.find(".rl-cmd-history").scrollTop(u.height())},50))}return!0},e.prototype.onEsc=function(){return this.opened(!1),!1},e.prototype.onTab=function(){return this.onCmd(!0),!1},e.prototype.onEnter=function(){return this.onCmd(!1),this.cmd(""),!1},e.prototype.onKeyDown=function(e){if(e&&e.keyCode&&!e.metaKey&&!e.ctrlKey&&!e.shiftKey&&0<\/b><\/x-script>/i,"<\/script>"):"")?(n.element.text(""),n.element.replaceWith(c()(a).text(n.component.templateNodes[0]&&n.component.templateNodes[0].nodeValue?n.component.templateNodes[0].nodeValue:""))):n.element.remove()}return i}return l()(t,e),t}(d.b);t.default=n.i(d.a)(p,"ScriptComponent")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n.n(i),a=n(5),r=n.n(a),s=n(4),l=n.n(s),u=n(8),c=n(1),d=n(17),p=function(e){function t(i){o()(this,t);var a=r()(this,e.call(this,i));return a.options=i.options||"",a.optionsText=i.optionsText||null,a.optionsValue=i.optionsValue||null,a.optionsCaption=i.optionsCaption||null,a.optionsCaption&&(a.optionsCaption=n.i(u.i18n)(a.optionsCaption)),a.defautOptionsAfterRender=c.defautOptionsAfterRender,a}return l()(t,e),t}(n(48).a);t.default=n.i(d.a)(p,"SelectComponent")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n.n(i),a=n(5),r=n.n(a),s=n(4),l=n.n(s),u=n(1),c=n(17),d=5,p=function(e){function t(i){o()(this,t);var a=r()(this,e.call(this,i));return a.rows=i.rows||d,a.spellcheck=!n.i(u.isUnd)(i.spellcheck)&&!!i.spellcheck,a}return l()(t,e),t}(n(48).a);t.default=n.i(c.a)(p,"TextAreaComponent")},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n(11),o=n.n(i).a.Opentip||{};o.styles=o.styles||{},o.styles.rainloop={extends:"standard",fixed:!0,target:!0,delay:.2,hideDelay:0,hideEffect:"fade",hideEffectDuration:.2,showEffect:"fade",showEffectDuration:.2,showOn:"mouseover click",removeElementsOnHide:!0,background:"#fff",shadow:!1,borderColor:"#999",borderRadius:2,borderWidth:1},o.styles.rainloopTip={extends:"rainloop",delay:.4,group:"rainloopTips"},o.styles.rainloopErrorTip={extends:"rainloop",className:"rainloopErrorTip"}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(0),o=n.n(i),a=function(){function e(){o()(this,e)}return e.prototype.bootstart=function(){},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return v});var i=n(0),o=n.n(i),a=n(11),r=n.n(a),s=n(6),l=n.n(s),u=n(12),c=n.n(u),d=n(20),p=n(3),f=n(1),m=n(7),g=n(14),h=n(27),b=n(10),v=function(){function e(){o()(this,e),this.oRequests={}}return e.prototype.defaultResponse=function(e,t,i,o,a,r){var s=function(){p.StorageResultType.Success!==i&&m.data.bUnload&&(i=p.StorageResultType.Unload),p.StorageResultType.Success===i&&o&&!o.Result?(o&&-12&&void 0!==arguments[2]?arguments[2]:2e4,o=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],u=""===a,d={},p=(new r.a.Date).getTime(),m="";(m=(t=t||{}).Action||"")&&0(new r.a.Date).getTime()-p),m&&o.oRequests[m]&&(o.oRequests[m].__aborted&&(a="abort"),o.oRequests[m]=null),o.defaultResponse(e,m,a,i,s,t)}),m&&03&&void 0!==arguments[3]&&arguments[3];this.defaultRequest(e,"JsInfo",{Type:t,Data:n,IsError:i?"1":"0"})},e.prototype.getPublicKey=function(e){this.defaultRequest(e,"GetPublicKey")},e.prototype.jsVersion=function(e,t){this.defaultRequest(e,"Version",{Version:t})},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return v});var i=n(0),o=n.n(i),a=n(5),r=n.n(a),s=n(4),l=n.n(s),u=n(6),c=n.n(u),d=n(12),p=n.n(d),f=n(2),m=n(7),g=n(1),h=n(14),b=n(9),v=function(e){function t(n){o()(this,t);var i=r()(this,e.call(this,"settings",n));return i.menu=f.a.observableArray([]),i.oCurrentSubScreen=null,i.oViewModelPlace=null,i.setupSettings(),i}return l()(t,e),t.prototype.setupSettings=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;e&&e()},t.prototype.onRoute=function(e){var t=this,i=null,o=null,a=null,r=null;if((o=c.a.find(m.VIEW_MODELS.settings,function(t){return t&&t.__rlSettingsData&&e===t.__rlSettingsData.Route}))&&(c.a.find(m.VIEW_MODELS["settings-removed"],function(e){return e&&e===o})&&(o=null),o&&c.a.find(m.VIEW_MODELS["settings-disabled"],function(e){return e&&e===o})&&(o=null)),o){if(o.__builded&&o.__vm)i=o.__vm;else if((a=this.oViewModelPlace)&&1===a.length){i=new o,(r=p()("
").addClass("rl-settings-view-model").hide()).appendTo(a),i.viewModelDom=r,i.__rlSettingsData=o.__rlSettingsData,o.__dom=r,o.__builded=!0,o.__vm=i;var s={name:o.__rlSettingsData.Template};f.a.applyBindingAccessorsToNode(r[0],{translatorInit:!0,template:function(){return s}},i),n.i(g.delegateRun)(i,"onBuild",[r])}else n.i(g.log)("Cannot find sub settings view model position: SettingsSubScreen");i&&c.a.defer(function(){t.oCurrentSubScreen&&(n.i(g.delegateRun)(t.oCurrentSubScreen,"onHide"),t.oCurrentSubScreen.viewModelDom.hide()),t.oCurrentSubScreen=i,t.oCurrentSubScreen&&(n.i(g.delegateRun)(t.oCurrentSubScreen,"onBeforeShow"),t.oCurrentSubScreen.viewModelDom.show(),n.i(g.delegateRun)(t.oCurrentSubScreen,"onShow"),n.i(g.delegateRun)(t.oCurrentSubScreen,"onShowWithDelay",[],200),c.a.each(t.menu(),function(e){e.selected(i&&i.__rlSettingsData&&e.route===i.__rlSettingsData.Route)}),p()("#rl-content .b-settings .b-content .content").scrollTop(0)),n.i(g.windowResize)()})}else n.i(b.setHash)(n.i(h.f)(),!1,!0)},t.prototype.onHide=function(){this.oCurrentSubScreen&&this.oCurrentSubScreen.viewModelDom&&(n.i(g.delegateRun)(this.oCurrentSubScreen,"onHide"),this.oCurrentSubScreen.viewModelDom.hide())},t.prototype.onBuild=function(){var e=this;c.a.each(m.VIEW_MODELS.settings,function(t){t&&t.__rlSettingsData&&!c.a.find(m.VIEW_MODELS["settings-removed"],function(e){return e&&e===t})&&e.menu.push({route:t.__rlSettingsData.Route,label:t.__rlSettingsData.Label,selected:f.a.observable(!1),disabled:!!c.a.find(m.VIEW_MODELS["settings-disabled"],function(e){return e&&e===t})})}),this.oViewModelPlace=p()("#rl-content #rl-settings-subscreen")},t.prototype.routes=function(){var e=c.a.find(m.VIEW_MODELS.settings,function(e){return e&&e.__rlSettingsData&&e.__rlSettingsData.IsDefault}),t=e&&e.__rlSettingsData?e.__rlSettingsData.Route:"general",i={subname:/^(.*)$/,normalize_:function(e,i){return i.subname=n.i(g.isUnd)(i.subname)?t:n.i(g.pString)(i.subname),[i.subname]}};return[["{subname}/",i],["{subname}",i],["",i]]},t}(n(72).a)},function(e,t,n){"use strict";n.d(t,"a",function(){return l});var i=n(0),o=n.n(i),a=n(2),r=n(7),s=n(10),l=function(){function e(){o()(this,e),this.allowLanguagesOnSettings=a.a.observable(!0),this.allowLanguagesOnLogin=a.a.observable(!0),this.newMoveToFolder=a.a.observable(!0),this.interfaceAnimation=a.a.observable(!0),this.interfaceAnimation.subscribe(function(e){var t=r.bMobileDevice||!e;r.$html.toggleClass("rl-anim",!t).toggleClass("no-rl-anim",t)}),this.interfaceAnimation.valueHasMutated(),this.prem=a.a.observable(!1),this.community=a.a.observable(!0)}return e.prototype.populate=function(){this.allowLanguagesOnLogin(!!s.settingsGet("AllowLanguagesOnLogin")),this.allowLanguagesOnSettings(!!s.settingsGet("AllowLanguagesOnSettings")),this.newMoveToFolder(!!s.settingsGet("NewMoveToFolder")),this.interfaceAnimation(!!s.settingsGet("InterfaceAnimation")),this.prem(!!s.settingsGet("PremType")),this.community(!!s.settingsGet("Community"))},e}()},function(e,t,n){"use strict";var i=n(0),o=n.n(i),a=n(2),r=function e(){o()(this,e),this.packages=a.a.observableArray([]),this.packages.loading=a.a.observable(!1).extend({throttle:100}),this.packagesReal=a.a.observable(!0),this.packagesMainUpdatable=a.a.observable(!0)};t.a=new r},function(e,t,n){"use strict";var i=n(0),o=n.n(i),a=n(2),r=function e(){o()(this,e),this.plugins=a.a.observableArray([]),this.plugins.loading=a.a.observable(!1).extend({throttle:100}),this.plugins.error=a.a.observable("")};t.a=new r},,,,,,function(e,t,n){e.exports={default:n(129),__esModule:!0}},function(e,t,n){e.exports={default:n(131),__esModule:!0}},function(e,t,n){e.exports={default:n(132),__esModule:!0}},function(e,t,n){e.exports={default:n(133),__esModule:!0}},function(e,t,n){n(155);var i=n(25).Object;e.exports=function(e,t){return i.create(e,t)}},function(e,t,n){n(156);var i=n(25).Object;e.exports=function(e,t){return i.getOwnPropertyDescriptor(e,t)}},function(e,t,n){n(157),e.exports=n(25).Object.setPrototypeOf},function(e,t,n){n(160),n(158),n(161),n(162),e.exports=n(25).Symbol},function(e,t,n){n(159),n(163),e.exports=n(71).f("iterator")},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){e.exports=function(){}},function(e,t,n){var i=n(22),o=n(152),a=n(151);e.exports=function(e){return function(t,n,r){var s,l=i(t),u=o(l.length),c=a(r,u);if(e&&n!=n){for(;u>c;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var i=n(50),o=n(88),a=n(64);e.exports=function(e){var t=i(e),n=o.f;if(n)for(var r,s=n(e),l=a.f,u=0;s.length>u;)l.call(e,r=s[u++])&&t.push(r);return t}},function(e,t,n){e.exports=n(21).document&&document.documentElement},function(e,t,n){var i=n(82);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},function(e,t,n){var i=n(82);e.exports=Array.isArray||function(e){return"Array"==i(e)}},function(e,t,n){"use strict";var i=n(62),o=n(51),a=n(65),r={};n(32)(r,n(34)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=i(r,{next:o(1,n)}),a(e,t+" Iterator")}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var i=n(50),o=n(22);e.exports=function(e,t){for(var n,a=o(e),r=i(a),s=r.length,l=0;s>l;)if(a[n=r[l++]]===t)return n}},function(e,t,n){var i=n(52)("meta"),o=n(44),a=n(26),r=n(33).f,s=0,l=Object.isExtensible||function(){return!0},u=!n(43)(function(){return l(Object.preventExtensions({}))}),c=function(e){r(e,i,{value:{i:"O"+ ++s,w:{}}})},d=function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,i)){if(!l(e))return"F";if(!t)return"E";c(e)}return e[i].i},p=function(e,t){if(!a(e,i)){if(!l(e))return!0;if(!t)return!1;c(e)}return e[i].w},f=function(e){return u&&m.NEED&&l(e)&&!a(e,i)&&c(e),e},m=e.exports={KEY:i,NEED:!1,fastKey:d,getWeak:p,onFreeze:f}},function(e,t,n){var i=n(33),o=n(41),a=n(50);e.exports=n(31)?Object.defineProperties:function(e,t){o(e);for(var n,r=a(t),s=r.length,l=0;s>l;)i.f(e,n=r[l++],t[n]);return e}},function(e,t,n){var i=n(22),o=n(87).f,a={}.toString,r="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return o(e)}catch(e){return r.slice()}};e.exports.f=function(e){return r&&"[object Window]"==a.call(e)?s(e):o(i(e))}},function(e,t,n){var i=n(26),o=n(153),a=n(66)("IE_PROTO"),r=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),i(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?r:null}},function(e,t,n){var i=n(42),o=n(25),a=n(43);e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],r={};r[e]=t(n),i(i.S+i.F*a(function(){n(1)}),"Object",r)}},function(e,t,n){var i=n(44),o=n(41),a=function(e,t){if(o(e),!i(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,i){try{(i=n(83)(Function.call,n(63).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return a(e,n),t?e.__proto__=n:i(e,n),e}}({},!1):void 0),check:a}},function(e,t,n){var i=n(68),o=n(58);e.exports=function(e){return function(t,n){var a,r,s=String(o(t)),l=i(n),u=s.length;return l<0||l>=u?e?"":void 0:(a=s.charCodeAt(l),a<55296||a>56319||l+1===u||(r=s.charCodeAt(l+1))<56320||r>57343?e?s.charAt(l):a:e?s.slice(l,l+2):r-56320+(a-55296<<10)+65536)}}},function(e,t,n){var i=n(68),o=Math.max,a=Math.min;e.exports=function(e,t){return e=i(e),e<0?o(e+t,0):a(e,t)}},function(e,t,n){var i=n(68),o=Math.min;e.exports=function(e){return e>0?o(i(e),9007199254740991):0}},function(e,t,n){var i=n(58);e.exports=function(e){return Object(i(e))}},function(e,t,n){"use strict";var i=n(135),o=n(142),a=n(60),r=n(22);e.exports=n(86)(Array,"Array",function(e,t){this._t=r(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):"keys"==t?o(0,n):"values"==t?o(0,e[n]):o(0,[n,e[n]])},"values"),a.Arguments=a.Array,i("keys"),i("values"),i("entries")},function(e,t,n){var i=n(42);i(i.S,"Object",{create:n(62)})},function(e,t,n){var i=n(22),o=n(63).f;n(148)("getOwnPropertyDescriptor",function(){return function(e,t){return o(i(e),t)}})},function(e,t,n){var i=n(42);i(i.S,"Object",{setPrototypeOf:n(149).set})},function(e,t){},function(e,t,n){"use strict";var i=n(150)(!0);n(86)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=i(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){"use strict";var i=n(21),o=n(26),a=n(31),r=n(42),s=n(90),l=n(144).KEY,u=n(43),c=n(67),d=n(65),p=n(52),f=n(34),m=n(71),g=n(70),h=n(143),b=n(137),v=n(140),S=n(41),y=n(22),w=n(69),_=n(51),A=n(62),T=n(146),C=n(63),E=n(33),D=n(50),N=C.f,R=E.f,I=T.f,O=i.Symbol,P=i.JSON,x=P&&P.stringify,k=f("_hidden"),L=f("toPrimitive"),M={}.propertyIsEnumerable,F=c("symbol-registry"),U=c("symbols"),H=c("op-symbols"),j=Object.prototype,G="function"==typeof O,B=i.QObject,V=!B||!B.prototype||!B.prototype.findChild,q=a&&u(function(){return 7!=A(R({},"a",{get:function(){return R(this,"a",{value:7}).a}})).a})?function(e,t,n){var i=N(j,t);i&&delete j[t],R(e,t,n),i&&e!==j&&R(j,t,i)}:R,z=function(e){var t=U[e]=A(O.prototype);return t._k=e,t},K=G&&"symbol"==typeof O.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof O},W=function(e,t,n){return e===j&&W(H,t,n),S(e),t=w(t,!0),S(n),o(U,t)?(n.enumerable?(o(e,k)&&e[k][t]&&(e[k][t]=!1),n=A(n,{enumerable:_(0,!1)})):(o(e,k)||R(e,k,_(1,{})),e[k][t]=!0),q(e,t,n)):R(e,t,n)},Y=function(e,t){S(e);for(var n,i=b(t=y(t)),o=0,a=i.length;a>o;)W(e,n=i[o++],t[n]);return e},$=function(e,t){return void 0===t?A(e):Y(A(e),t)},J=function(e){var t=M.call(this,e=w(e,!0));return!(this===j&&o(U,e)&&!o(H,e))&&(!(t||!o(this,e)||!o(U,e)||o(this,k)&&this[k][e])||t)},X=function(e,t){if(e=y(e),t=w(t,!0),e!==j||!o(U,t)||o(H,t)){var n=N(e,t);return!n||!o(U,t)||o(e,k)&&e[k][t]||(n.enumerable=!0),n}},Q=function(e){for(var t,n=I(y(e)),i=[],a=0;n.length>a;)o(U,t=n[a++])||t==k||t==l||i.push(t);return i},Z=function(e){for(var t,n=e===j,i=I(n?H:y(e)),a=[],r=0;i.length>r;)!o(U,t=i[r++])||n&&!o(j,t)||a.push(U[t]);return a};G||(s((O=function(){if(this instanceof O)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===j&&t.call(H,n),o(this,k)&&o(this[k],e)&&(this[k][e]=!1),q(this,e,_(1,n))};return a&&V&&q(j,e,{configurable:!0,set:t}),z(e)}).prototype,"toString",function(){return this._k}),C.f=X,E.f=W,n(87).f=T.f=Q,n(64).f=J,n(88).f=Z,a&&!n(61)&&s(j,"propertyIsEnumerable",J,!0),m.f=function(e){return z(f(e))}),r(r.G+r.W+r.F*!G,{Symbol:O});for(var ee="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),te=0;ee.length>te;)f(ee[te++]);for(var ee=D(f.store),te=0;ee.length>te;)g(ee[te++]);r(r.S+r.F*!G,"Symbol",{for:function(e){return o(F,e+="")?F[e]:F[e]=O(e)},keyFor:function(e){if(K(e))return h(F,e);throw TypeError(e+" is not a symbol!")},useSetter:function(){V=!0},useSimple:function(){V=!1}}),r(r.S+r.F*!G,"Object",{create:$,defineProperty:W,defineProperties:Y,getOwnPropertyDescriptor:X,getOwnPropertyNames:Q,getOwnPropertySymbols:Z}),P&&r(r.S+r.F*(!G||u(function(){var e=O();return"[null]"!=x([e])||"{}"!=x({a:e})||"{}"!=x(Object(e))})),"JSON",{stringify:function(e){if(void 0!==e&&!K(e)){for(var t,n,i=[e],o=1;arguments.length>o;)i.push(arguments[o++]);return"function"==typeof(t=i[1])&&(n=t),!n&&v(t)||(t=function(e,t){if(n&&(t=n.call(this,e,t)),!K(t))return t}),i[1]=t,x.apply(P,i)}}}),O.prototype[L]||n(32)(O.prototype,L,O.prototype.valueOf),d(O,"Symbol"),d(Math,"Math",!0),d(i.JSON,"JSON",!0)},function(e,t,n){n(70)("asyncIterator")},function(e,t,n){n(70)("observable")},function(e,t,n){n(154);for(var i=n(21),o=n(32),a=n(60),r=n(34)("toStringTag"),s=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],l=0;l<5;l++){var u=s[l],c=i[u],d=c&&c.prototype;d&&!d[r]&&o(d,r,u),a[u]=a.Array}},function(e,t,n){!function(t,i){"use strict";var o;try{o=n(74)}catch(e){}e.exports=i(o)}(0,function(e){"use strict";var t="function"==typeof e,n=!!window.addEventListener,i=window.document,o=window.setTimeout,a=function(e,t,i,o){n?e.addEventListener(t,i,!!o):e.attachEvent("on"+t,i)},r=function(e,t,i,o){n?e.removeEventListener(t,i,!!o):e.detachEvent("on"+t,i)},s=function(e,t,n){var o;i.createEvent?((o=i.createEvent("HTMLEvents")).initEvent(t,!0,!1),o=S(o,n),e.dispatchEvent(o)):i.createEventObject&&(o=i.createEventObject(),o=S(o,n),e.fireEvent("on"+t,o))},l=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},u=function(e,t){return-1!==(" "+e.className+" ").indexOf(" "+t+" ")},c=function(e,t){u(e,t)||(e.className=""===e.className?t:e.className+" "+t)},d=function(e,t){e.className=l((" "+e.className+" ").replace(" "+t+" "," "))},p=function(e){return/Array/.test(Object.prototype.toString.call(e))},f=function(e){return/Date/.test(Object.prototype.toString.call(e))&&!isNaN(e.getTime())},m=function(e){var t=e.getDay();return 0===t||6===t},g=function(e){return e%4==0&&e%100!=0||e%400==0},h=function(e,t){return[31,g(e)?29:28,31,30,31,30,31,31,30,31,30,31][t]},b=function(e){f(e)&&e.setHours(0,0,0,0)},v=function(e,t){return e.getTime()===t.getTime()},S=function(e,t,n){var i,o;for(i in t)(o=void 0!==e[i])&&"object"==typeof t[i]&&null!==t[i]&&void 0===t[i].nodeName?f(t[i])?n&&(e[i]=new Date(t[i].getTime())):p(t[i])?n&&(e[i]=t[i].slice(0)):e[i]=S({},t[i],n):!n&&o||(e[i]=t[i]);return e},y=function(e){return e.month<0&&(e.year-=Math.ceil(Math.abs(e.month)/12),e.month+=12),e.month>11&&(e.year+=Math.floor(Math.abs(e.month)/12),e.month-=12),e},w={field:null,bound:void 0,position:"bottom left",reposition:!0,format:"YYYY-MM-DD",defaultDate:null,setDefaultDate:!1,firstDay:0,formatStrict:!1,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,numberOfMonths:1,mainCalendar:"left",container:void 0,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,onSelect:null,onOpen:null,onClose:null,onDraw:null},_=function(e,t,n){for(t+=e.firstDay;t>=7;)t-=7;return n?e.i18n.weekdaysShort[t]:e.i18n.weekdays[t]},A=function(e){var t=[],n="false";if(e.isEmpty){if(!e.showDaysInNextAndPreviousMonths)return' ';t.push("is-outside-current-month")}return e.isDisabled&&t.push("is-disabled"),e.isToday&&t.push("is-today"),e.isSelected&&(t.push("is-selected"),n="true"),e.isInRange&&t.push("is-inrange"),e.isStartRange&&t.push("is-startrange"),e.isEndRange&&t.push("is-endrange"),''+e.day+" "},T=function(e,t,n){var i=new Date(n,0,1);return''+Math.ceil(((new Date(n,t,e)-i)/864e5+i.getDay()+1)/7)+" "},C=function(e,t){return""+(t?e.reverse():e).join("")+" "},E=function(e){return""+e.join("")+" "},D=function(e){var t,n=[];for(e.showWeekNumber&&n.push(" "),t=0;t<7;t++)n.push(''+_(e,t,!0)+" ");return""+(e.isRTL?n.reverse():n).join("")+" "},N=function(e,t,n,i,o,a){var r,s,l,u,c,d=e._o,f=n===d.minYear,m=n===d.maxYear,g='',h=!0,b=!0;for(l=[],r=0;r<12;r++)l.push('
d.maxMonth?'disabled="disabled"':"")+">"+d.i18n.months[r]+" ");for(u='
'+d.i18n.months[i]+''+l.join("")+"
",p(d.yearRange)?(r=d.yearRange[0],s=d.yearRange[1]+1):(r=n-d.yearRange,s=1+n+d.yearRange),l=[];r
=d.minYear&&l.push('"+r+" ");return c=' '+n+d.yearSuffix+''+l.join("")+"
",d.showMonthAfterYear?g+=c+u:g+=u+c,f&&(0===i||d.minMonth>=i)&&(h=!1),m&&(11===i||d.maxMonth<=i)&&(b=!1),0===t&&(g+=''+d.i18n.previousMonth+" "),t===e._o.numberOfMonths-1&&(g+=''+d.i18n.nextMonth+" "),g+=" "},R=function(e,t,n){return'"},I=function(r){var s=this,l=s.config(r);s._onMouseDown=function(e){if(s._v){var t=(e=e||window.event).target||e.srcElement;if(t)if(u(t,"is-disabled")||(!u(t,"pika-button")||u(t,"is-empty")||u(t.parentNode,"is-disabled")?u(t,"pika-prev")?s.prevMonth():u(t,"pika-next")&&s.nextMonth():(s.setDate(new Date(t.getAttribute("data-pika-year"),t.getAttribute("data-pika-month"),t.getAttribute("data-pika-day"))),l.bound&&o(function(){s.hide(),l.field&&l.field.blur()},100))),u(t,"pika-select"))s._c=!0;else{if(!e.preventDefault)return e.returnValue=!1,!1;e.preventDefault()}}},s._onChange=function(e){var t=(e=e||window.event).target||e.srcElement;t&&(u(t,"pika-select-month")?s.gotoMonth(t.value):u(t,"pika-select-year")&&s.gotoYear(t.value))},s._onKeyChange=function(e){if(e=e||window.event,s.isVisible())switch(e.keyCode){case 13:case 27:l.field.blur();break;case 37:e.preventDefault(),s.adjustDate("subtract",1);break;case 38:s.adjustDate("subtract",7);break;case 39:s.adjustDate("add",1);break;case 40:s.adjustDate("add",7)}},s._onInputChange=function(n){var i;n.firedBy!==s&&(i=t?(i=e(l.field.value,l.format,l.formatStrict))&&i.isValid()?i.toDate():null:new Date(Date.parse(l.field.value)),f(i)&&s.setDate(i),s._v||s.show())},s._onInputFocus=function(){s.show()},s._onInputClick=function(){s.show()},s._onInputBlur=function(){var e=i.activeElement;do{if(u(e,"pika-single"))return}while(e=e.parentNode);s._c||(s._b=o(function(){s.hide()},50)),s._c=!1},s._onClick=function(e){var t=(e=e||window.event).target||e.srcElement,i=t;if(t){!n&&u(t,"pika-select")&&(t.onchange||(t.setAttribute("onchange","return;"),a(t,"change",s._onChange)));do{if(u(i,"pika-single")||i===l.trigger)return}while(i=i.parentNode);s._v&&t!==l.trigger&&i!==l.trigger&&s.hide()}},s.el=i.createElement("div"),s.el.className="pika-single"+(l.isRTL?" is-rtl":"")+(l.theme?" "+l.theme:""),a(s.el,"mousedown",s._onMouseDown,!0),a(s.el,"touchend",s._onMouseDown,!0),a(s.el,"change",s._onChange),a(i,"keydown",s._onKeyChange),l.field&&(l.container?l.container.appendChild(s.el):l.bound?i.body.appendChild(s.el):l.field.parentNode.insertBefore(s.el,l.field.nextSibling),a(l.field,"change",s._onInputChange),l.defaultDate||(t&&l.field.value?l.defaultDate=e(l.field.value,l.format).toDate():l.defaultDate=new Date(Date.parse(l.field.value)),l.setDefaultDate=!0));var c=l.defaultDate;f(c)?l.setDefaultDate?s.setDate(c,!0):s.gotoDate(c):s.gotoDate(new Date),l.bound?(this.hide(),s.el.className+=" is-bound",a(l.trigger,"click",s._onInputClick),a(l.trigger,"focus",s._onInputFocus),a(l.trigger,"blur",s._onInputBlur)):this.show()};return I.prototype={config:function(e){this._o||(this._o=S({},w,!0));var t=S(this._o,e,!0);t.isRTL=!!t.isRTL,t.field=t.field&&t.field.nodeName?t.field:null,t.theme="string"==typeof t.theme&&t.theme?t.theme:null,t.bound=!!(void 0!==t.bound?t.field&&t.bound:t.field),t.trigger=t.trigger&&t.trigger.nodeName?t.trigger:t.field,t.disableWeekends=!!t.disableWeekends,t.disableDayFn="function"==typeof t.disableDayFn?t.disableDayFn:null;var n=parseInt(t.numberOfMonths,10)||1;if(t.numberOfMonths=n>4?4:n,f(t.minDate)||(t.minDate=!1),f(t.maxDate)||(t.maxDate=!1),t.minDate&&t.maxDate&&t.maxDate100&&(t.yearRange=100);return t},toString:function(n){return f(this._d)?t?e(this._d).format(n||this._o.format):this._d.toDateString():""},getMoment:function(){return t?e(this._d):null},setMoment:function(n,i){t&&e.isMoment(n)&&this.setDate(n.toDate(),i)},getDate:function(){return f(this._d)?new Date(this._d.getTime()):new Date},setDate:function(e,t){if(!e)return this._d=null,this._o.field&&(this._o.field.value="",s(this._o.field,"change",{firedBy:this})),this.draw();if("string"==typeof e&&(e=new Date(Date.parse(e))),f(e)){var n=this._o.minDate,i=this._o.maxDate;f(n)&&ei&&(e=i),this._d=new Date(e.getTime()),b(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),s(this._o.field,"change",{firedBy:this})),t||"function"!=typeof this._o.onSelect||this._o.onSelect.call(this,this.getDate())}},gotoDate:function(e){var t=!0;if(f(e)){if(this.calendars){var n=new Date(this.calendars[0].year,this.calendars[0].month,1),i=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),o=e.getTime();i.setMonth(i.getMonth()+1),i.setDate(i.getDate()-1),t=o=a&&(this._y=a,!isNaN(s)&&this._m>s&&(this._m=s)),t="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2);for(var u=0;u'+N(this,u,this.calendars[u].year,this.calendars[u].month,this.calendars[0].year,t)+this.render(this.calendars[u].year,this.calendars[u].month,t)+"";this.el.innerHTML=l,n.bound&&"hidden"!==n.field.type&&o(function(){n.trigger.focus()},1),"function"==typeof this._o.onDraw&&this._o.onDraw(this),n.bound&&n.field.setAttribute("aria-label","Use the arrow keys to pick a date")}},adjustPosition:function(){var e,t,n,o,a,r,s,l,u,c;if(!this._o.container){if(this.el.style.position="absolute",e=this._o.trigger,t=e,n=this.el.offsetWidth,o=this.el.offsetHeight,a=window.innerWidth||i.documentElement.clientWidth,r=window.innerHeight||i.documentElement.clientHeight,s=window.pageYOffset||i.body.scrollTop||i.documentElement.scrollTop,"function"==typeof e.getBoundingClientRect)l=(c=e.getBoundingClientRect()).left+window.pageXOffset,u=c.bottom+window.pageYOffset;else for(l=t.offsetLeft,u=t.offsetTop+t.offsetHeight;t=t.offsetParent;)l+=t.offsetLeft,u+=t.offsetTop;(this._o.reposition&&l+n>a||this._o.position.indexOf("right")>-1&&l-n+e.offsetWidth>0)&&(l=l-n+e.offsetWidth),(this._o.reposition&&u+o>r+s||this._o.position.indexOf("top")>-1&&u-o-e.offsetHeight>0)&&(u=u-o-e.offsetHeight),this.el.style.left=l+"px",this.el.style.top=u+"px"}},render:function(e,t,n){var i=this._o,o=new Date,a=h(e,t),r=new Date(e,t,1).getDay(),s=[],l=[];b(o),i.firstDay>0&&(r-=i.firstDay)<0&&(r+=7);for(var u=0===t?11:t-1,c=11===t?0:t+1,d=0===t?e-1:e,p=11===t?e+1:e,g=h(d,u),S=a+r,y=S;y>7;)y-=7;S+=7-y;for(var w=0,_=0;w=a+r,O=w-r+1,P=t,x=e,k=i.startRange&&v(i.startRange,E),L=i.endRange&&v(i.endRange,E),M=i.startRange&&i.endRange&&i.startRangei.maxDate||i.disableWeekends&&m(E)||i.disableDayFn&&i.disableDayFn(E);I&&(wCommand not found: {{ cmd }}'},function(e,t){e.exports=' commands: {{ commands }}'},function(e,t){e.exports='lang [{{ langs }}] '},function(e,t){e.exports='> {{ cmd }}'},function(e,t){e.exports='theme [{{ themes }}] '},function(e,t){e.exports=' version: {{ version }}'},function(e,t){e.exports='\n\n\t \n\t \n\t \n\t \n\t{{title}} \n\t\n\n\n\t\n\t\n\t\t
{{date}}
\n\t\t
{{fromCreds}}
\n\t\t
{{toLabel}}: {{toCreds}}
\n\t
\n\t{{html}}
\n\n'},,function(e,t){e.exports=window.Autolinker},function(e,t){e.exports=window.hasher},function(e,t){e.exports=window.ssm},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n.n(i),a=n(5),r=n.n(a),s=n(4),l=n.n(s),u=n(11),c=n.n(u),d=n(6),p=n.n(d),f=n(2),m=n(92),g=n.n(m),h=n(14),b=n(8),v=n(3),S=n(1),y=n(10),w=n(56),_=n(95),A=n(96),T=n(119),C=n(240),E=n(118),D=n(182),N=n(24),R=n(215),I=n(214),O=n(9),P=function(e){function t(){return o()(this,t),r()(this,e.call(this,N.a))}return l()(t,e),t.prototype.remote=function(){return N.a},t.prototype.reloadDomainList=function(){A.a.domains.loading(!0),N.a.domainList(function(e,t){A.a.domains.loading(!1),v.StorageResultType.Success===e&&t&&t.Result&&A.a.domains(p.a.map(t.Result,function(e,t){var n=e[0],i=e[1];return{name:t,disabled:f.a.observable(!n),alias:i,deleteAccess:f.a.observable(!1)}}))})},t.prototype.reloadPluginList=function(){T.a.plugins.loading(!0),N.a.pluginList(function(e,t){T.a.plugins.loading(!1),v.StorageResultType.Success===e&&t&&t.Result&&T.a.plugins(p.a.map(t.Result,function(e){return{name:e.Name,disabled:f.a.observable(!e.Enabled),configured:f.a.observable(!!e.Configured)}}))})},t.prototype.reloadPackagesList=function(){E.a.packages.loading(!0),E.a.packagesReal(!0),N.a.packagesList(function(e,t){if(E.a.packages.loading(!1),v.StorageResultType.Success===e&&t&&t.Result){E.a.packagesReal(!!t.Result.Real),E.a.packagesMainUpdatable(!!t.Result.MainUpdatable);var i=[],o={};p.a.each(E.a.packages(),function(e){e&&e.loading()&&(o[e.file]=e)}),n.i(S.isArray)(t.Result.List)&&(i=p.a.compact(p.a.map(t.Result.List,function(e){return e?(e.loading=f.a.observable(!n.i(S.isUnd)(o[e.file])),"core"!==e.type||e.canBeInstalled?e:null):null}))),E.a.packages(i)}else E.a.packagesReal(!1)})},t.prototype.updateCoreData=function(){D.a.coreUpdating(!0),N.a.updateCoreData(function(e,t){D.a.coreUpdating(!1),D.a.coreVersion(""),D.a.coreRemoteVersion(""),D.a.coreRemoteRelease(""),D.a.coreVersionCompare(-2),v.StorageResultType.Success===e&&t&&t.Result?(D.a.coreReal(!0),c.a.location.reload()):D.a.coreReal(!1)})},t.prototype.reloadCoreData=function(){D.a.coreChecking(!0),D.a.coreReal(!0),N.a.coreData(function(e,t){D.a.coreChecking(!1),v.StorageResultType.Success===e&&t&&t.Result?(D.a.coreReal(!!t.Result.Real),D.a.coreChannel(t.Result.Channel||"stable"),D.a.coreType(t.Result.Type||"stable"),D.a.coreUpdatable(!!t.Result.Updatable),D.a.coreAccess(!!t.Result.Access),D.a.coreWarning(!!t.Result.Warning),D.a.coreVersion(t.Result.Version||""),D.a.coreRemoteVersion(t.Result.RemoteVersion||""),D.a.coreRemoteRelease(t.Result.RemoteRelease||""),D.a.coreVersionCompare(n.i(S.pInt)(t.Result.VersionCompare))):(D.a.coreReal(!1),D.a.coreChannel("stable"),D.a.coreType("stable"),D.a.coreWarning(!1),D.a.coreVersion(""),D.a.coreRemoteVersion(""),D.a.coreRemoteRelease(""),D.a.coreVersionCompare(-2))})},t.prototype.reloadLicensing=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];C.a.licensingProcess(!0),C.a.licenseError(""),N.a.licensing(function(e,t){C.a.licensingProcess(!1),v.StorageResultType.Success===e&&t&&t.Result&&n.i(S.isNormal)(t.Result.Expired)?(C.a.licenseValid(!0),C.a.licenseExpired(n.i(S.pInt)(t.Result.Expired)),C.a.licenseError(""),C.a.licensing(!0),w.a.prem(!0)):t&&t.ErrorCode&&-10&&void 0!==arguments[0]?arguments[0]:null;g.a&&g.a.end(),e&&e()},t.prototype.bootstart=function(){e.prototype.bootstart.call(this),w.a.populate(),_.a.populate(),n.i(O.hideLoading)(),y.appSettingsGet("allowAdminPanel")?y.settingsGet("Auth")?n.i(O.startScreens)([R.a]):n.i(O.startScreens)([I.a]):(n.i(O.routeOff)(),n.i(O.setHash)(n.i(h.a)(),!0),n.i(O.routeOff)(),p.a.defer(function(){c.a.location.href="/"})),this.bootend()},t}(n(100).a);t.default=new P},,,,,,function(e,t,n){"use strict";var i=n(0),o=n.n(i),a=n(2),r=function e(){o()(this,e),this.coreReal=a.a.observable(!0),this.coreChannel=a.a.observable("stable"),this.coreType=a.a.observable("stable"),this.coreUpdatable=a.a.observable(!0),this.coreAccess=a.a.observable(!0),this.coreWarning=a.a.observable(!1),this.coreChecking=a.a.observable(!1).extend({throttle:100}),this.coreUpdating=a.a.observable(!1).extend({throttle:100}),this.coreVersion=a.a.observable(""),this.coreRemoteVersion=a.a.observable(""),this.coreRemoteRelease=a.a.observable(""),this.coreVersionCompare=a.a.observable(-2)};t.a=new r},,,,function(e,t,n){"use strict";function i(e,t,n,i,o){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"DomainPopupView",function(){return x}),n.d(t,"default",function(){return x});var o,a,r,s,l,u,c,d,p=n(15),f=n.n(p),m=n(0),g=n.n(m),h=n(5),b=n.n(h),v=n(4),S=n.n(v),y=n(6),w=n.n(y),_=n(2),A=n(3),T=n(20),C=n(7),E=n(1),D=n(8),N=n(95),R=n(24),I=n(45),O=n(9),P=n(13),x=(o=n.i(O.popup)({name:"View/Popup/Domain",templateID:"PopupsDomain"}),a=n.i(O.command)(function(e){return e.canBeSaved()}),r=n.i(O.command)(function(e){return e.canBeTested()}),s=n.i(O.command)(),l=n.i(O.command)(),u=n.i(O.command)(),o((d=function(e){function t(){g()(this,t);var i=b()(this,e.call(this));return i.edit=_.a.observable(!1),i.saving=_.a.observable(!1),i.savingError=_.a.observable(""),i.page=_.a.observable("main"),i.sieveSettings=_.a.observable(!1),i.testing=_.a.observable(!1),i.testingDone=_.a.observable(!1),i.testingImapError=_.a.observable(!1),i.testingSieveError=_.a.observable(!1),i.testingSmtpError=_.a.observable(!1),i.testingImapErrorDesc=_.a.observable(""),i.testingSieveErrorDesc=_.a.observable(""),i.testingSmtpErrorDesc=_.a.observable(""),i.testingImapError.subscribe(function(e){e||i.testingImapErrorDesc("")}),i.testingSieveError.subscribe(function(e){e||i.testingSieveErrorDesc("")}),i.testingSmtpError.subscribe(function(e){e||i.testingSmtpErrorDesc("")}),i.imapServerFocus=_.a.observable(!1),i.sieveServerFocus=_.a.observable(!1),i.smtpServerFocus=_.a.observable(!1),i.name=_.a.observable(""),i.name.focused=_.a.observable(!1),i.imapServer=_.a.observable(""),i.imapPort=_.a.observable(""+T.a),i.imapSecure=_.a.observable(A.ServerSecure.None),i.imapShortLogin=_.a.observable(!1),i.useSieve=_.a.observable(!1),i.sieveAllowRaw=_.a.observable(!1),i.sieveServer=_.a.observable(""),i.sievePort=_.a.observable(""+T.b),i.sieveSecure=_.a.observable(A.ServerSecure.None),i.smtpServer=_.a.observable(""),i.smtpPort=_.a.observable(""+T.c),i.smtpSecure=_.a.observable(A.ServerSecure.None),i.smtpShortLogin=_.a.observable(!1),i.smtpAuth=_.a.observable(!0),i.smtpPhpMail=_.a.observable(!1),i.whiteList=_.a.observable(""),i.aliasName=_.a.observable(""),i.enableSmartPorts=_.a.observable(!1),i.allowSieve=_.a.computed(function(){return N.a.filters()&&N.a.sieve()}),i.headerText=_.a.computed(function(){var e=i.name(),t=i.aliasName(),o="";return i.edit()?(o=n.i(D.i18n)("POPUPS_DOMAIN/TITLE_EDIT_DOMAIN",{NAME:e}),t&&(o+=" ← "+t)):o=""===e?n.i(D.i18n)("POPUPS_DOMAIN/TITLE_ADD_DOMAIN"):n.i(D.i18n)("POPUPS_DOMAIN/TITLE_ADD_DOMAIN_WITH_NAME",{NAME:e}),o}),i.domainDesc=_.a.computed(function(){var e=i.name();return!i.edit()&&e?n.i(D.i18n)("POPUPS_DOMAIN/NEW_DOMAIN_DESC",{NAME:"*@"+e}):""}),i.domainIsComputed=_.a.computed(function(){var e=i.smtpPhpMail(),t=i.allowSieve(),n=i.useSieve();return""!==i.name()&&""!==i.imapServer()&&""!==i.imapPort()&&(!t||!n||""!==i.sieveServer()&&""!==i.sievePort())&&(""!==i.smtpServer()&&""!==i.smtpPort()||e)}),i.canBeTested=_.a.computed(function(){return!i.testing()&&i.domainIsComputed()}),i.canBeSaved=_.a.computed(function(){return!i.saving()&&i.domainIsComputed()}),i.page.subscribe(function(){i.sieveSettings(!1)}),i.imapServerFocus.subscribe(function(e){e&&""!==i.name()&&""===i.imapServer()&&i.imapServer(i.name().replace(/[.]?[*][.]?/g,""))}),i.sieveServerFocus.subscribe(function(e){e&&""!==i.imapServer()&&""===i.sieveServer()&&i.sieveServer(i.imapServer())}),i.smtpServerFocus.subscribe(function(e){e&&""!==i.imapServer()&&""===i.smtpServer()&&i.smtpServer(i.imapServer().replace(/imap/gi,"smtp"))}),i.imapSecure.subscribe(function(e){if(i.enableSmartPorts()){var t=n.i(E.pInt)(i.imapPort());switch(n.i(E.pString)(e)){case"0":A.Ports.ImapSsl===t&&i.imapPort(n.i(E.pString)(A.Ports.Imap));break;case"1":A.Ports.Imap===t&&i.imapPort(n.i(E.pString)(A.Ports.ImapSsl))}}}),i.smtpSecure.subscribe(function(e){if(i.enableSmartPorts()){var t=n.i(E.pInt)(i.smtpPort());switch(n.i(E.pString)(e)){case"0":A.Ports.SmtpSsl!==t&&A.Ports.SmtpStartTls!==t||i.smtpPort(n.i(E.pString)(A.Ports.Smtp));break;case"1":A.Ports.Smtp!==t&&A.Ports.SmtpStartTls!==t||i.smtpPort(n.i(E.pString)(A.Ports.SmtpSsl));break;case"2":A.Ports.Smtp!==t&&A.Ports.SmtpSsl!==t||i.smtpPort(n.i(E.pString)(A.Ports.SmtpStartTls))}}}),i}return S()(t,e),t.prototype.createOrAddCommand=function(){this.saving(!0),R.a.createOrUpdateDomain(w.a.bind(this.onDomainCreateOrSaveResponse,this),!this.edit(),this.name(),this.imapServer(),n.i(E.pInt)(this.imapPort()),this.imapSecure(),this.imapShortLogin(),this.useSieve(),this.sieveAllowRaw(),this.sieveServer(),n.i(E.pInt)(this.sievePort()),this.sieveSecure(),this.smtpServer(),n.i(E.pInt)(this.smtpPort()),this.smtpSecure(),this.smtpShortLogin(),this.smtpAuth(),this.smtpPhpMail(),this.whiteList())},t.prototype.testConnectionCommand=function(){this.page("main"),this.testingDone(!1),this.testingImapError(!1),this.testingSieveError(!1),this.testingSmtpError(!1),this.testing(!0),R.a.testConnectionForDomain(w.a.bind(this.onTestConnectionResponse,this),this.name(),this.imapServer(),n.i(E.pInt)(this.imapPort()),this.imapSecure(),this.useSieve(),this.sieveServer(),n.i(E.pInt)(this.sievePort()),this.sieveSecure(),this.smtpServer(),n.i(E.pInt)(this.smtpPort()),this.smtpSecure(),this.smtpAuth(),this.smtpPhpMail())},t.prototype.whiteListCommand=function(){this.page("white-list")},t.prototype.backCommand=function(){this.page("main")},t.prototype.sieveCommand=function(){this.sieveSettings(!this.sieveSettings()),this.clearTesting()},t.prototype.onTestConnectionResponse=function(e,t){if(this.testing(!1),A.StorageResultType.Success===e&&t.Result){var n=!1,i=!1;this.testingDone(!0),this.testingImapError(!0!==t.Result.Imap),this.testingSieveError(!0!==t.Result.Sieve),this.testingSmtpError(!0!==t.Result.Smtp),this.testingImapError()&&t.Result.Imap&&(n=!0,this.testingImapErrorDesc(""),this.testingImapErrorDesc(t.Result.Imap)),this.testingSieveError()&&t.Result.Sieve&&(i=!0,this.testingSieveErrorDesc(""),this.testingSieveErrorDesc(t.Result.Sieve)),this.testingSmtpError()&&t.Result.Smtp&&(this.testingSmtpErrorDesc(""),this.testingSmtpErrorDesc(t.Result.Smtp)),this.sieveSettings()?!i&&n&&this.sieveSettings(!1):i&&!n&&this.sieveSettings(!0)}else this.testingImapError(!0),this.testingSieveError(!0),this.testingSmtpError(!0),this.sieveSettings(!1)},t.prototype.onDomainCreateOrSaveResponse=function(e,t){this.saving(!1),A.StorageResultType.Success===e&&t?t.Result?(n.i(I.a)().reloadDomainList(),this.closeCommand()):A.Notification.DomainAlreadyExists===t.ErrorCode&&this.savingError(n.i(D.i18n)("ERRORS/DOMAIN_ALREADY_EXISTS")):this.savingError(n.i(D.i18n)("ERRORS/UNKNOWN_ERROR"))},t.prototype.clearTesting=function(){this.testing(!1),this.testingDone(!1),this.testingImapError(!1),this.testingSieveError(!1),this.testingSmtpError(!1)},t.prototype.onHide=function(){this.page("main"),this.sieveSettings(!1)},t.prototype.onShow=function(e){this.saving(!1),this.page("main"),this.sieveSettings(!1),this.clearTesting(),this.clearForm(),e&&(this.enableSmartPorts(!1),this.edit(!0),this.name(n.i(E.trim)(e.Name)),this.imapServer(n.i(E.trim)(e.IncHost)),this.imapPort(""+n.i(E.pInt)(e.IncPort)),this.imapSecure(n.i(E.trim)(e.IncSecure)),this.imapShortLogin(!!e.IncShortLogin),this.useSieve(!!e.UseSieve),this.sieveAllowRaw(!!e.SieveAllowRaw),this.sieveServer(n.i(E.trim)(e.SieveHost)),this.sievePort(""+n.i(E.pInt)(e.SievePort)),this.sieveSecure(n.i(E.trim)(e.SieveSecure)),this.smtpServer(n.i(E.trim)(e.OutHost)),this.smtpPort(""+n.i(E.pInt)(e.OutPort)),this.smtpSecure(n.i(E.trim)(e.OutSecure)),this.smtpShortLogin(!!e.OutShortLogin),this.smtpAuth(!!e.OutAuth),this.smtpPhpMail(!!e.OutUsePhpMail),this.whiteList(n.i(E.trim)(e.WhiteList)),this.aliasName(n.i(E.trim)(e.AliasName)),this.enableSmartPorts(!0))},t.prototype.onShowWithDelay=function(){""!==this.name()||C.bMobileDevice||this.name.focused(!0)},t.prototype.clearForm=function(){this.edit(!1),this.page("main"),this.sieveSettings(!1),this.enableSmartPorts(!1),this.savingError(""),this.name(""),this.name.focused(!1),this.imapServer(""),this.imapPort(""+T.a),this.imapSecure(A.ServerSecure.None),this.imapShortLogin(!1),this.useSieve(!1),this.sieveAllowRaw(!1),this.sieveServer(""),this.sievePort(""+T.b),this.sieveSecure(A.ServerSecure.None),this.smtpServer(""),this.smtpPort(""+T.c),this.smtpSecure(A.ServerSecure.None),this.smtpShortLogin(!1),this.smtpAuth(!0),this.smtpPhpMail(!1),this.whiteList(""),this.aliasName(""),this.enableSmartPorts(!0)},t}(P.a),i(d.prototype,"createOrAddCommand",[a],f()(d.prototype,"createOrAddCommand"),d.prototype),i(d.prototype,"testConnectionCommand",[r],f()(d.prototype,"testConnectionCommand"),d.prototype),i(d.prototype,"whiteListCommand",[s],f()(d.prototype,"whiteListCommand"),d.prototype),i(d.prototype,"backCommand",[l],f()(d.prototype,"backCommand"),d.prototype),i(d.prototype,"sieveCommand",[u],f()(d.prototype,"sieveCommand"),d.prototype),c=d))||c)},,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",function(){return p});var i=n(0),o=n.n(i),a=n(5),r=n.n(a),s=n(4),l=n.n(s),u=n(72),c=n(45),d=n(241),p=function(e){function t(){return o()(this,t),r()(this,e.call(this,"login",[d.a]))}return l()(t,e),t.prototype.onShow=function(){n.i(c.a)().setWindowTitle("")},t}(u.a)},function(e,t,n){"use strict";n.d(t,"a",function(){return T});var i=n(0),o=n.n(i),a=n(5),r=n.n(a),s=n(4),l=n.n(s),u=n(9),c=n(27),d=n(116),p=n(223),f=n(224),m=n(221),g=n(222),h=n(227),b=n(228),v=n(226),S=n(225),y=n(219),w=n(45),_=n(242),A=n(243),T=function(e){function t(){return o()(this,t),r()(this,e.call(this,[_.a,A.a]))}return l()(t,e),t.prototype.setupSettings=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;n.i(u.addSettingsViewModel)(p.a,"AdminSettingsGeneral","TABS_LABELS/LABEL_GENERAL_NAME","general",!0),n.i(u.addSettingsViewModel)(f.a,"AdminSettingsLogin","TABS_LABELS/LABEL_LOGIN_NAME","login"),n.i(u.addSettingsViewModel)(n(220).default,"AdminSettingsBranding","TABS_LABELS/LABEL_BRANDING_NAME","branding"),n.i(u.addSettingsViewModel)(m.a,"AdminSettingsContacts","TABS_LABELS/LABEL_CONTACTS_NAME","contacts"),n.i(u.addSettingsViewModel)(g.a,"AdminSettingsDomains","TABS_LABELS/LABEL_DOMAINS_NAME","domains"),n.i(u.addSettingsViewModel)(h.a,"AdminSettingsSecurity","TABS_LABELS/LABEL_SECURITY_NAME","security"),n.i(u.addSettingsViewModel)(b.a,"AdminSettingsSocial","TABS_LABELS/LABEL_INTEGRATION_NAME","integrations"),n.i(u.addSettingsViewModel)(v.a,"AdminSettingsPlugins","TABS_LABELS/LABEL_PLUGINS_NAME","plugins"),n.i(u.addSettingsViewModel)(S.a,"AdminSettingsPackages","TABS_LABELS/LABEL_PACKAGES_NAME","packages"),n.i(u.addSettingsViewModel)(y.a,"AdminSettingsAbout","TABS_LABELS/LABEL_ABOUT_NAME","about"),n.i(c.b)(!0),e&&e()},t.prototype.onShow=function(){n.i(w.a)().setWindowTitle("")},t}(d.a)},,,,function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i=n(0),o=n.n(i),a=n(2),r=n(8),s=n(10),l=(n(56),n(182)),u=n(45),c=function(){function e(){var t=this;o()(this,e),this.version=a.a.observable(n.i(s.appSettingsGet)("version")),this.access=a.a.observable(!!n.i(s.settingsGet)("CoreAccess")),this.errorDesc=a.a.observable(""),this.coreReal=l.a.coreReal,this.coreChannel=l.a.coreChannel,this.coreType=l.a.coreType,this.coreUpdatable=l.a.coreUpdatable,this.coreAccess=l.a.coreAccess,this.coreChecking=l.a.coreChecking,this.coreUpdating=l.a.coreUpdating,this.coreWarning=l.a.coreWarning,this.coreVersion=l.a.coreVersion,this.coreRemoteVersion=l.a.coreRemoteVersion,this.coreRemoteRelease=l.a.coreRemoteRelease,this.coreVersionCompare=l.a.coreVersionCompare,this.community=!0,this.coreRemoteVersionHtmlDesc=a.a.computed(function(){return n.i(r.trigger)(),n.i(r.i18n)("TAB_ABOUT/HTML_NEW_VERSION",{VERSION:t.coreRemoteVersion()})}),this.statusType=a.a.computed(function(){var e="",n=t.coreVersionCompare(),i=t.coreChecking(),o=t.coreUpdating(),a=t.coreReal();return i?e="checking":o?e="updating":a&&0===n?e="up-to-date":a&&-1===n?e="available":a||(e="error",t.errorDesc("Cannot access the repository at the moment.")),e})}return e.prototype.onBuild=function(){this.access()&&!this.community&&n.i(u.a)().reloadCoreData()},e.prototype.updateCoreData=function(){this.coreUpdating()||this.community||n.i(u.a)().updateCoreData()},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"BrandingAdminSettings",function(){return m}),n.d(t,"default",function(){return m});var i=n(0),o=n.n(i),a=n(6),r=n.n(a),s=n(2),l=n(3),u=n(1),c=n(8),d=n(24),p=n(56),f=n(10),m=function(){function e(){o()(this,e),this.capa=p.a.prem,this.title=s.a.observable(n.i(f.settingsGet)("Title")).idleTrigger(),this.loadingDesc=s.a.observable(n.i(f.settingsGet)("LoadingDescription")).idleTrigger(),this.faviconUrl=s.a.observable(n.i(f.settingsGet)("FaviconUrl")).idleTrigger(),this.loginLogo=s.a.observable(n.i(f.settingsGet)("LoginLogo")||"").idleTrigger(),this.loginBackground=s.a.observable(n.i(f.settingsGet)("LoginBackground")||"").idleTrigger(),this.userLogo=s.a.observable(n.i(f.settingsGet)("UserLogo")||"").idleTrigger(),this.userLogoMessage=s.a.observable(n.i(f.settingsGet)("UserLogoMessage")||"").idleTrigger(),this.userIframeMessage=s.a.observable(n.i(f.settingsGet)("UserIframeMessage")||"").idleTrigger(),this.userLogoTitle=s.a.observable(n.i(f.settingsGet)("UserLogoTitle")||"").idleTrigger(),this.loginDescription=s.a.observable(n.i(f.settingsGet)("LoginDescription")).idleTrigger(),this.loginCss=s.a.observable(n.i(f.settingsGet)("LoginCss")).idleTrigger(),this.userCss=s.a.observable(n.i(f.settingsGet)("UserCss")).idleTrigger(),this.welcomePageUrl=s.a.observable(n.i(f.settingsGet)("WelcomePageUrl")).idleTrigger(),this.welcomePageDisplay=s.a.observable(n.i(f.settingsGet)("WelcomePageDisplay")).idleTrigger(),this.welcomePageDisplay.options=s.a.computed(function(){return n.i(c.trigger)(),[{optValue:"none",optText:n.i(c.i18n)("TAB_BRANDING/OPTION_WELCOME_PAGE_DISPLAY_NONE")},{optValue:"once",optText:n.i(c.i18n)("TAB_BRANDING/OPTION_WELCOME_PAGE_DISPLAY_ONCE")},{optValue:"always",optText:n.i(c.i18n)("TAB_BRANDING/OPTION_WELCOME_PAGE_DISPLAY_ALWAYS")}]}),this.loginPowered=s.a.observable(!!n.i(f.settingsGet)("LoginPowered")),this.community=!0}return e.prototype.onBuild=function(){var e=this;r.a.delay(function(){var t=n.i(u.settingsSaveHelperSimpleFunction)(e.title.trigger,e),i=n.i(u.settingsSaveHelperSimpleFunction)(e.loadingDesc.trigger,e),o=n.i(u.settingsSaveHelperSimpleFunction)(e.faviconUrl.trigger,e);e.title.subscribe(function(e){d.a.saveAdminConfig(t,{Title:n.i(u.trim)(e)})}),e.loadingDesc.subscribe(function(e){d.a.saveAdminConfig(i,{LoadingDescription:n.i(u.trim)(e)})}),e.faviconUrl.subscribe(function(e){d.a.saveAdminConfig(o,{FaviconUrl:n.i(u.trim)(e)})})},l.Magics.Time50ms)},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return v});var i,o,a=n(15),r=n.n(a),s=n(0),l=n.n(s),u=n(6),c=n.n(u),d=n(2),p=n(1),f=n(3),m=n(8),g=n(10),h=n(24),b=n(9),v=(i=n.i(b.command)(function(e){return""!==e.pdoDsn()&&""!==e.pdoUser()}),o=function(){function e(){var t=this;l()(this,e),this.defautOptionsAfterRender=p.defautOptionsAfterRender,this.enableContacts=d.a.observable(!!n.i(g.settingsGet)("ContactsEnable")),this.contactsSharing=d.a.observable(!!n.i(g.settingsGet)("ContactsSharing")),this.contactsSync=d.a.observable(!!n.i(g.settingsGet)("ContactsSync"));var i=[],o=["sqlite","mysql","pgsql"],a=function(e){switch(e){case"sqlite":e="SQLite";break;case"mysql":e="MySQL";break;case"pgsql":e="PostgreSQL"}return e};n.i(g.settingsGet)("SQLiteIsSupported")&&i.push("sqlite"),n.i(g.settingsGet)("MySqlIsSupported")&&i.push("mysql"),n.i(g.settingsGet)("PostgreSqlIsSupported")&&i.push("pgsql"),this.contactsSupported=0"+i.readme()+""}},i.bDisabeCloseOnEsc=!0,i.sDefaultKeyScope=y.KeyState.All,i.tryToClosePopup=h.a.debounce(h.a.bind(i.tryToClosePopup,i),y.Magics.Time200ms),i}return m()(t,e),t.prototype.saveCommand=function(){var e={};e.Name=this.name(),h.a.each(this.configures(),function(t){var n=t.value();!1!==n&&!0!==n||(n=n?"1":"0"),e["_"+t.Name]=n}),this.saveError(""),A.a.pluginSettingsUpdate(this.onPluginSettingsUpdateResponse,e)},t.prototype.onPluginSettingsUpdateResponse=function(e,t){y.StorageResultType.Success===e&&t&&t.Result?this.cancelCommand():(this.saveError(""),t&&t.ErrorCode?this.saveError(n.i(_.getNotification)(t.ErrorCode)):this.saveError(n.i(_.getNotification)(y.Notification.CantSavePluginSettings)))},t.prototype.onShow=function(e){if(this.name(),this.readme(),this.configures([]),e){this.name(e.Name),this.readme(e.Readme);var t=e.Config;n.i(w.isNonEmptyArray)(t)&&this.configures(h.a.map(t,function(e){return{value:b.a.observable(e[0]),placeholder:b.a.observable(e[6]),Name:e[1],Type:e[2],Label:e[3],Default:e[4],Desc:e[5]}}))}},t.prototype.tryToClosePopup=function(){var e=this,t=n(73);n.i(T.isPopupVisible)(t)||n.i(T.showScreenPopup)(t,[n.i(_.i18n)("POPUPS_ASK/DESC_WANT_CLOSE_THIS_WINDOW"),function(){e.modalVisibility()&&n.i(w.delegateRun)(e,"cancelCommand")}])},t.prototype.onBuild=function(){var e=this;S()("esc",y.KeyState.All,function(){return e.modalVisibility()&&e.tryToClosePopup(),!1})},t}(C.a),function(e,t,n,i,o){var a={};return Object.keys(i).forEach(function(e){a[e]=i[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}(r.prototype,"saveCommand",[o],l()(r.prototype,"saveCommand"),r.prototype),a=r))||a)},,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(93),o=n(176);n.i(i.a)(o.default)}]);
diff --git a/rainloop/app/rainloop/v/1.11.1/static/js/min/app.min.js b/rainloop/app/rainloop/v/1.11.1/static/js/min/app.min.js
deleted file mode 100644
index 09d4f5e2c94c1d66932cf1ceb1eee8f8914e65d6..0000000000000000000000000000000000000000
--- a/rainloop/app/rainloop/v/1.11.1/static/js/min/app.min.js
+++ /dev/null
@@ -1 +0,0 @@
-!function(e){function t(n){if(i[n])return i[n].exports;var o=i[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var i={};t.m=e,t.c=i,t.i=function(e){return e},t.d=function(e,i,n){t.o(e,i)||Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="rainloop/v/0.0.0/static/js/min/",t(t.s=264)}([function(e,t,i){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,i){"use strict";function n(e){try{e()}catch(e){}}function o(e){return!Ee(e)&&!Ae(e)}function a(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!!o(e)&&(t?/^[0-9]*$/.test(e.toString()):/^[1-9]+[0-9]*$/.test(e.toString()))}function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=o(e)&&""!==e?se.a.parseInt(e,10):t;return se.a.isNaN(i)?t:i}function s(e){return o(e)?""+e:""}function l(e){return!!e}function c(e){return e?"1":"0"}function u(e){return we(e)&&00&&void 0!==arguments[0]?arguments[0]:32,t="0123456789abcdefghijklmnopqrstuvwxyz",i=t.length;e=r(e);for(var n="";n.length1&&void 0!==arguments[1]?arguments[1]:100,i="",n="",o=e,a=0,r=0;o.length>t;)a=(n=o.substring(0,t)).lastIndexOf(" "),-1!==(r=n.lastIndexOf("\n"))&&(a=r),-1===a&&(a=t),i+=n.substring(0,a)+"\n",o=o.substring(a+1);return i+o}function v(){try{if(se.a.document.activeElement)return Ee(se.a.document.activeElement.__inFocusCache)&&(se.a.document.activeElement.__inFocusCache=ce()(se.a.document.activeElement).is("input,textarea,iframe,.cke_editable")),!!se.a.document.activeElement.__inFocusCache}catch(e){}return!1}function S(e){if(se.a.document&&se.a.document.activeElement&&se.a.document.activeElement.blur)try{var t=ce()(se.a.document.activeElement);t&&t.is("input,textarea")?se.a.document.activeElement.blur():e&&se.a.document.activeElement.blur()}catch(e){}}function w(){try{if(se.a&&se.a.getSelection){var e=se.a.getSelection();e&&e.removeAllRanges&&e.removeAllRanges()}else se.a.document&&se.a.document.selection&&se.a.document.selection.empty&&se.a.document.selection.empty()}catch(e){}}function T(e,t){e=ve(e.toUpperCase()),t=ve(t.replace(/[\s]+/g," "));var i=!1,n="RE"===e,o="FWD"===e,a=[],r=!o;return""!==t&&de.a.each(t.split(":"),function(e){var t=ve(e);i||!/^(RE|FWD)$/i.test(t)&&!/^(RE|FWD)[\[\(][\d]+[\]\)]$/i.test(t)?(a.push(e),i=!0):(n||(n=!!/^RE/i.test(t)),o||(o=!!/^FWD/i.test(t)))}),r?n=!1:o=!1,ve((r?"Re: ":"Fwd: ")+(n?"Re: ":"")+(o?"Fwd: ":"")+ve(a.join(":")))}function C(e,t){return se.a.Math.round(e*se.a.Math.pow(10,t))/se.a.Math.pow(10,t)}function E(e){switch(e=r(e),!0){case 1073741824<=e:return C(e/1073741824,1)+"GB";case 1048576<=e:return C(e/1048576,1)+"MB";case 1024<=e:return C(e/1024,0)+"KB"}return e+"B"}function A(e){se.a.console&&se.a.console.log&&se.a.console.log(e)}function F(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;e&&e[t]&&(n=r(n),i=we(i)?i:[],0>=n?e[t].apply(e,i):de.a.delay(function(){e[t].apply(e,i)},n))}function N(e){if((e=e||se.a.event)&&e.ctrlKey&&!e.shiftKey&&!e.altKey){var t=e.keyCode||e.which;if(t===ge.EventKeyCode.S)return void e.preventDefault();if(t===ge.EventKeyCode.A){var i=e.target||e.srcElement;if(i&&("true"==""+i.contentEditable||i.tagName&&i.tagName.match(/INPUT|TEXTAREA/i)))return;se.a.getSelection?se.a.getSelection().removeAllRanges():se.a.document.selection&&se.a.document.selection.clear&&se.a.document.selection.clear(),e.preventDefault()}}}function R(e,t){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=null,o=function(){for(var i=arguments.length,o=Array(i),a=0;a1&&void 0!==arguments[1]&&arguments[1];return i(8).i18n("LANGS_NAMES"+(!0===t?"_EN":"")+"/LANG_"+e.toUpperCase().replace(/[^a-zA-Z0-9]+/g,"_"),null,e)}function M(){return ce()('
').appendTo("#rl-hidden")}function D(e,t){t&&!Ee(t.disabled)&&e&&ce()(e).toggleClass("disabled",t.disabled).prop("disabled",t.disabled)}function k(e){e.find("blockquote.rl-bq-switcher").removeClass("rl-bq-switcher hidden-bq"),e.find(".rlBlockquoteSwitcher").off(".rlBlockquoteSwitcher").remove(),e.find("[data-html-editor-font-wrapper]").removeAttr("data-html-editor-font-wrapper")}function O(e,t,n,o){var a=e.title,r=e.subject,s=e.date,l=e.fromCreds,c=e.toCreds,u=e.toLabel,d=se.a.open(""),p=d.document,h=t.clone(),f=n?"html":"plain";k(h);var m=h?h.html():"";p.write(i(171).replace("{{title}}",b(a)).replace("{{subject}}",b(r)).replace("{{date}}",b(s)).replace("{{fromCreds}}",b(l)).replace("{{toCreds}}",b(c)).replace("{{toLabel}}",b(u)).replace("{{bodyClass}}",f).replace("{{html}}",m)),p.close(),o&&se.a.setTimeout(function(){return d.print()},100)}function x(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e3;return n=r(n),function(o,a,r,s,l){t.call(i,a&&a.Result?ge.SaveSettingsStep.TrueResult:ge.SaveSettingsStep.FalseResult),e&&e.call(i,o,a,r,s,l),de.a.delay(function(){t.call(i,ge.SaveSettingsStep.Idle)},n)}}function U(e,t){return x(null,e,t,1e3)}function H(e,t,i,n){return function(o){if(e){switch(i){case"bool":case"boolean":o=o?"1":"0";break;case"int":case"integer":case"number":o=r(o);break;case"trim":o=ve(o);break;default:o=s(o)}var a={};a[t]=o,e.saveAdminConfig?e.saveAdminConfig(n||null,a):e.saveSettings&&e.saveSettings(n||null,a)}}}function B(e){return fe.a?fe.a.link(e,{newWindow:!0,stripPrefix:!1,urls:!0,email:!0,mention:!1,phone:!1,hashtag:!1,replaceFn:function(e){return!(e&&"url"===e.getType()&&e.matchedText&&0!==e.matchedText.indexOf("http"))}}):e}function G(e){var t=0,i=0,n=0,o=0,a=0,r="",s=function e(){for(var t=arguments.length,i=Array(t),n=0;n]*>([\s\S\r\n]*)<\/div>/gim,e),o="\n"+ve(o)+"\n"),o}return""},l=function(){for(var e=arguments.length,t=Array(e),i=0;i ").replace(/[\r]/gm,""):""},c=function(){for(var e=arguments.length,t=Array(e),i=0;i]*><\/p>/gi,"").replace(/]*>([\s\S\r\n\t]*)<\/pre>/gim,l).replace(/[\s]+/gm," ").replace(/((?:href|data)\s?=\s?)("[^"]+?"|'[^']+?')/gim,c).replace(/ ]*>/gim,"\n").replace(/<\/h[\d]>/gi,"\n").replace(/<\/p>/gi,"\n\n").replace(/ ]*>/gim,"\n").replace(/<\/ul>/gi,"\n").replace(/]*>/gim," * ").replace(/<\/li>/gi,"\n").replace(/<\/td>/gi,"\n").replace(/<\/tr>/gi,"\n").replace(/ ]*>/gim,"\n_______________________________\n\n").replace(/]*>([\s\S\r\n]*)<\/div>/gim,s).replace(/
]*>/gim,"\n__bq__start__\n").replace(/<\/blockquote>/gim,"\n__bq__end__\n").replace(/]*>([\s\S\r\n]*?)<\/a>/gim,u).replace(/<\/div>/gi,"\n").replace(/ /gi," ").replace(/"/gi,'"').replace(/<[^>]*>/gm,""),r=(r=me.$div.html(r).text()).replace(/\n[ \t]+/gm,"\n").replace(/[\n]{3,}/gm,"\n\n").replace(/>/gi,">").replace(/</gi,"<").replace(/&/gi,"&"),r=y(ve(r)),t=0,i=800;0 "+ve(e).replace(/\n/gm,"\n> ")).replace(/(^|\n)([> ]+)/gm,function(){for(var e=arguments.length,t=Array(e),i=0;i1&&void 0!==arguments[1]&&arguments[1],i=!1,n=!0,o=!0,a=[],r="",s=0,l=(e=(e=e.toString().replace(/\r/g,"")).replace(/^>[> ]>+/gm,function(e){var t=e[0];return t?t.replace(/[ ]+/g,""):t})).split("\n");do{for(n=!1,a=[],s=0;s"===(r=l[s]).substr(0,1))&&!i?(n=!0,i=!0,a.push("~~~blockquote~~~"),a.push(r.substr(1))):!o&&i?""!==r?(i=!1,a.push("~~~/blockquote~~~"),a.push(r)):a.push(r):o&&i?a.push(r.substr(1)):a.push(r);i&&(i=!1,a.push("~~~/blockquote~~~")),l=a}while(n);return e=l.join("\n"),e=e.replace(/&/g,"&").replace(/>/g,">").replace(/").replace(/[\s]*~~~\/blockquote~~~/g," ").replace(/\n/g,"
"),t?B(e):e}function V(e,t,i,n,a,r,s,l,c,u){var d=null,p=!1,h=0,f=0,m=[];for(u=!Ee(u)&&!!u,c=o(c)?c:0
0&&void 0!==arguments[0]&&arguments[0]?de.a.delay(e,100):e()}function q(e){ke[e]||(ke[e]=ce()('script[type="application/json"][data-configuration="'+e+'"]'));try{return JSON.parse(ke[e].text())}catch(e){}return{}}function W(e,t){var i=t||e;i&&"function"==typeof i.dispose&&i.dispose()}function Y(e){e&&(we(e.disposables)&&de.a.each(e.disposables,W),pe.a.utils.objectForEach(e,W))}function $(e){e&&(we(e)?de.a.each(e,function(e){$(e)}):e&&e.onDestroy&&e.onDestroy())}function J(e,t){return!(!e||!e[0])&&(e[0].styleSheet&&!Ee(e[0].styleSheet.cssText)?e[0].styleSheet.cssText=t:e.text(t),!0)}function X(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Re,i=ce()("#app-theme-link"),n=function(){Oe=se.a.setTimeout(function(){return t(ge.SaveSettingsStep.Idle)},1e3),xe=null},o=ce()("#app-theme-style"),a=i.attr("href");a||(a=o.attr("data-href")),a&&(a=a.toString().replace(/\/-\/[^\/]+\/\-\//,"/-/"+e+"/-/"),a=a.replace(/\/Css\/[^\/]+\/User\//,"/Css/0/User/"),"Json/"!==(a=a.replace(/\/Hash\/[^\/]+\//,"/Hash/-/")).substring(a.length-5,a.length)&&(a+="Json/"),se.a.clearTimeout(Oe),t(ge.SaveSettingsStep.Animate),xe&&xe.abort&&xe.abort(),xe=ce.a.ajax({url:a,dataType:"json"}).then(function(e){e&&we(e)&&2===e.length&&(!i||!i[0]||o&&o[0]||(o=ce()(''),i.after(o),i.remove()),o&&o[0]&&J(o,e[1])&&o.attr("data-href",a).attr("data-theme",e[0]),t(ge.SaveSettingsStep.TrueResult))}).then(n,n))}function Z(e,t){return function(){var i=e(),n=t(),o=[],a=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a={current:e===i,name:""===n?e.toString():n.toString(),custom:""!==n,title:""===n?"":e.toString(),value:e.toString()};t?o.push(a):o.unshift(a)},r=0,s=0,l=2;if(1=i||n-2<=i)&&(l+=2),a(i),r=i,s=i);0=s)a(s,!0),l-=1;else if(0>=r)break;3===r?a(2,!1):3s&&a(Math.round((n+s)/2),!0,"..."),1s&&a(n,!0)}return o}}function Q(e){var t=(e=ve(e).toLowerCase()).split(".").pop();return t===e?"":t}function ee(e){var t="",i="application/octet-stream";return"winmail.dat"===(e=ve(e).toLowerCase())?"application/ms-tnef":((t=Q(e))&&0this.height?[this.width-this.height,0]:[0,this.height-this.width],o.fillStyle="#fff",o.fillRect(0,0,t,t),o.drawImage(this,e[0]/2,e[1]/2,this.width-e[0],this.height-e[1],0,0,t,t),i(n.toDataURL("image/jpeg"))},n.src=e}function ne(e,t){if(e&&"mailto:"===e.toString().substr(0,7).toLowerCase()){if(!t)return!0;var n=[],o=null,a=null,r={},l=(e=e.toString().substr(7)).replace(/\?.+$/,""),c=e.replace(/^[^\?]*\?/,""),u=new(0,i(38).default),d=function(e){return e?de.a.compact(de.a.map(p(e).split(/[,]/),function(e){return u.clear(),u.mailsoParse(e),""!==u.email?u:null})):null};return n=d(l),r=m(c),Ee(r.cc)||(o=d(p(r.cc))),Ee(r.bcc)||(a=d(p(r.bcc))),i(9).showScreenPopup(t,[ge.ComposeType.Empty,null,n,o,a,Ee(r.subject)?null:s(p(r.subject)),Ee(r.body)?null:K(s(p(r.body)))]),!0}return!1}function oe(e){ce()(function(){return e()})}function ae(){Ue()}Object.defineProperty(t,"__esModule",{value:!0}),i.d(t,"trim",function(){return ve}),i.d(t,"inArray",function(){return Se}),i.d(t,"isArray",function(){return we}),i.d(t,"isObject",function(){return Te}),i.d(t,"isFunc",function(){return Ce}),i.d(t,"isUnd",function(){return Ee}),i.d(t,"isNull",function(){return Ae}),i.d(t,"has",function(){return Fe}),i.d(t,"bind",function(){return Ne}),i.d(t,"noop",function(){return Re}),i.d(t,"noopTrue",function(){return _e}),i.d(t,"noopFalse",function(){return Ie}),t.silentTryCatch=n,t.isNormal=o,t.isPosNumeric=a,t.pInt=r,t.pString=s,t.pBool=l,t.boolToAjax=c,t.isNonEmptyArray=u,t.encodeURIComponent=d,t.decodeURIComponent=p,t.decodeURI=h,t.encodeURI=f,t.simpleQueryParser=m,t.fakeMd5=g,t.encodeHtml=b,t.splitPlainText=y,i.d(t,"timeOutAction",function(){return Pe}),i.d(t,"timeOutActionSecond",function(){return Le}),t.inFocus=v,t.removeInFocus=S,t.removeSelection=w,t.replySubjectAdd=T,t.roundNumber=C,t.friendlySize=E,t.log=A,t.delegateRun=F,t.killCtrlACtrlS=N,t.createCommandLegacy=R,i.d(t,"convertThemeName",function(){return Me}),t.quoteName=_,t.microtime=I,t.timestamp=P,t.convertLangName=L,t.draggablePlace=M,t.defautOptionsAfterRender=D,t.clearBqSwitcher=k,t.previewMessage=O,t.settingsSaveHelperFunction=x,t.settingsSaveHelperSimpleFunction=U,t.settingsSaveHelperSubscribeFunction=H,t.findEmailAndLinks=B,t.htmlToPlain=G,t.plainToHtml=K,t.folderListOptionsBuilder=V,t.selectElement=j,i.d(t,"detectDropdownVisibility",function(){return De}),t.triggerAutocompleteInputChange=z,t.getConfigurationFromScriptTag=q,t.disposeOne=W,t.disposeObject=Y,t.delegateRunOnDestroy=$,t.appendStyles=J,t.changeTheme=X,t.computedPagenatorHelper=Z,t.getFileExtension=Q,t.mimeContentType=ee,t.getRealHeight=te,t.resizeAndCrop=ie,t.mailToHelper=ne,t.domReady=oe,i.d(t,"windowResize",function(){return Ue}),t.windowResizeCallback=ae;var re=i(11),se=i.n(re),le=i(12),ce=i.n(le),ue=i(6),de=i.n(ue),pe=i(2),he=i(173),fe=i.n(he),me=i(7),ge=i(3),be=i(103),ye=i(76);i.d(t,"jassl",function(){return ye.a});var ve=ce.a.trim,Se=ce.a.inArray,we=de.a.isArray,Te=de.a.isObject,Ce=de.a.isFunction,Ee=de.a.isUndefined,Ae=de.a.isNull,Fe=de.a.has,Ne=de.a.bind,Re=function(){},_e=function(){return!0},Ie=function(){return!1},Pe=function(){var e={};return function(t,i,n){e[t]=Ee(e[t])?0:e[t],se.a.clearTimeout(e[t]),e[t]=se.a.setTimeout(i,n)}}(),Le=function(){var e={};return function(t,i,n){e[t]||(e[t]=se.a.setTimeout(function(){i(),e[t]=0},n))}}(),Me=de.a.memoize(function(e){return"@custom"===e.substr(-7)&&(e=ve(e.substring(0,e.length-7))),ve(e.replace(/[^a-zA-Z0-9]+/g," ").replace(/([A-Z])/g," $1").replace(/[\s]+/g," "))});se.a.rainloop_Utils_htmlToPlain=G,se.a.rainloop_Utils_plainToHtml=K;var De=de.a.debounce(function(){i.i(me.dropdownVisibility)(!!de.a.find(me.data.aBootstrapDropdowns,function(e){return e.hasClass("open")}))},50),ke={},Oe=0,xe=null,Ue=de.a.debounce(function(e){Ee(e)||Ae(e)?me.$win.resize():se.a.setTimeout(function(){me.$win.resize()},e)},50),He=se.a.String.substr;"b"!=="ab".substr(-1)&&(He=function(e,t,i){return t=0>t?e.length+t:t,e.substr(t,i)},se.a.String.substr=He)},function(e,t,i){"use strict";var n=i(11),o=i.n(n),a=i(6),r=i.n(a),s=i(12),l=i.n(s),c=i(113),u=i(164),d=i.n(u),p=i(3),h=o.a.ko,f=l()(o.a),m=function(e){h.utils.domNodeDisposal.addDisposeCallback(e,function(){e&&e.__opentip&&e.__opentip.deactivate()})};h.bindingHandlers.updateWidth={init:function(e,t){var i=l()(e),n=t(),a=function(){n(i.width()),o.a.setTimeout(function(){n(i.width())},p.Magics.Time500ms)};f.on("resize",a),a(),h.utils.domNodeDisposal.addDisposeCallback(e,function(){f.off("resize",a)})}},h.bindingHandlers.editor={init:function(e,t){var n=null,o=t(),a=i(75).default,r=function(){o&&o.__editor&&o.__editor.setHtmlOrPlain(o())},s=function(){o&&o.__editor&&o(o.__editor.getDataWithHtmlMark())},l=function(){o.__editor=n,r()};h.isObservable(o)&&a&&(n=new a(e,s,l,s),o.__fetchEditorValue=s,o.subscribe(r))}},h.bindingHandlers.json={init:function(e,t){l()(e).text(o.a.JSON.stringify(h.unwrap(t())))},update:function(e,t){l()(e).text(o.a.JSON.stringify(h.unwrap(t())))}},h.bindingHandlers.scrollerShadows={init:function(e){var t=l()(e),i=t.find("[data-scroller-shadows-content]")[0]||null,n=r.a.throttle(function(){t.toggleClass("scroller-shadow-top",8=i.left&&e.pageX<=i.left+t.width()){if(e.pageY>=n-100&&e.pageY<=n){var a=function(){t.scrollTop(t.scrollTop()+3),r.windowResize()};t.data("timerScroll",o.a.setInterval(a,10)),a()}if(e.pageY>=i.top&&e.pageY<=i.top+100){var s=function(){t.scrollTop(t.scrollTop()-3),r.windowResize()};t.data("timerScroll",o.a.setInterval(s,10)),s()}}})},u.stop=function(){l()(c).each(function(){var e=l()(this);o.a.clearInterval(e.data("timerScroll")),e.data("timerScroll",!1)})}),u.helper=function(e){return t()(e&&e.target?h.dataFor(e.target):null)},l()(e).draggable(u).on("mousedown.koDraggable",function(){r.removeInFocus()}),h.utils.domNodeDisposal.addDisposeCallback(e,function(){l()(e).off("mousedown.koDraggable").draggable("destroy")})}}},h.bindingHandlers.droppable={init:function(e,t,n){if(!i(7).bMobileDevice){var o=t(),a=n(),r=a&&a.droppableOver?a.droppableOver:null,s=a&&a.droppableOut?a.droppableOut:null,c={tolerance:"pointer",hoverClass:"droppableHover",drop:null,over:null,out:null};o&&(c.drop=function(e,t){o(e,t)},r&&(c.over=function(e,t){r(e,t)}),s&&(c.out=function(e,t){s(e,t)}),l()(e).droppable(c),h.utils.domNodeDisposal.addDisposeCallback(e,function(){l()(e).droppable("destroy")}))}}},h.bindingHandlers.nano={init:function(e){var t=i(7),n=i(10);t.bDisableNanoScroll||n.appSettingsGet("useNativeScrollbars")||l()(e).addClass("nano").nanoScroller({iOSNativeScrolling:!1,preventPageScrolling:!0})}},h.bindingHandlers.saveTrigger={init:function(e){var t=l()(e);t.data("save-trigger-type",t.is("input[type=text],input[type=email],input[type=password],select,textarea")?"input":"custom"),"custom"===t.data("save-trigger-type")?t.append(' ').addClass("settings-saved-trigger"):t.addClass("settings-saved-trigger-input")},update:function(e,t){var i=h.unwrap(t()),n=l()(e);if("custom"===n.data("save-trigger-type"))switch(i.toString()){case"1":n.find(".animated,.error").hide().removeClass("visible").end().find(".success").show().addClass("visible");break;case"0":n.find(".animated,.success").hide().removeClass("visible").end().find(".error").show().addClass("visible");break;case"-2":n.find(".error,.success").hide().removeClass("visible").end().find(".animated").show().addClass("visible");break;default:n.find(".animated").hide().end().find(".error,.success").removeClass("visible")}else switch(i.toString()){case"1":n.addClass("success").removeClass("error");break;case"0":n.addClass("error").removeClass("success");break;case"-2":break;default:n.removeClass("error success")}}},h.bindingHandlers.emailsTags={init:function(e,t,n){var o=i(1),a=i(38).default,s=l()(e),c=t(),u=n().autoCompleteSource||null,d=function(e){c&&c.focused&&c.focused(!!e)};s.inputosaurus({parseOnBlur:!0,allowDragAndDrop:!0,focusCallback:d,inputDelimiters:[",",";","\n"],autoCompleteSource:u,parseHook:function(e){return r.a.map(e,function(e){var t=o.trim(e);if(""!==t){var i=new a;return i.mailsoParse(t),[i.toLine(!1),i]}return[t,null]})},change:function(e){s.data("EmailsTagsValue",e.target.value),c(e.target.value)}}),c&&c.focused&&c.focused.subscribe&&c.focused.subscribe(function(e){s.inputosaurus(e?"focus":"blur")})},update:function(e,t){var i=l()(e),n=t(),o=h.unwrap(n);i.data("EmailsTagsValue")!==o&&(i.val(o),i.data("EmailsTagsValue",o),i.inputosaurus("refresh"))}},h.bindingHandlers.command={init:function(e,t,i,n,o){var a=l()(e),s=t();if(!s||!s.isCommand)throw new Error("Value should be a command");if(s.enabled||(s.enabled=h.observable(!0)),!s.canExecute){var c=s.__realCanExecute;r.a.isFunction(c)?s.canExecute=h.computed(function(){return s.enabled()&&c.call(n,n)}):s.canExecute=h.computed(function(){return s.enabled()&&!!c})}a.addClass("command"),h.bindingHandlers[a.is("form")?"submit":"click"].init(e,t,i,n,o)},update:function(e,t){var i=l()(e),n=t(),o=n.enabled();i.toggleClass("command-not-enabled",!o),o&&(o=n.canExecute(),i.toggleClass("command-can-not-be-execute",!o)),i.toggleClass("command-disabled disable disabled",!o).toggleClass("no-disabled",!!o),(i.is("input")||i.is("button"))&&i.prop("disabled",!o)}},h.extenders.trimmer=function(e){var t=i(1),n=h.computed({read:e,write:function(i){e(t.trim(i.toString()))}});return n(e()),n},h.extenders.posInterer=function(e,t){var n=i(1),o=h.computed({read:e,write:function(i){var o=n.pInt(i.toString(),t);0>=o&&(o=t),o===e()&&""+o!=""+i&&e(o+1),e(o)}});return o(e()),o},h.extenders.limitedList=function(e,t){var n=i(1),o=h.computed({read:e,write:function(i){var o=h.unwrap(e),a=h.unwrap(t);n.isNonEmptyArray(a)?-1 "),y=l()("
");y.attr("area","hidden").css({position:"absolute",left:-5e3}).appendTo(g);var v=(new o.a.Date).getTime(),S=!0,w=d.a.observable(!1).extend({rateLimit:0}),T=d.a.observable(!0),C="navigator"in o.a&&"userAgent"in o.a.navigator&&o.a.navigator.userAgent.toLowerCase()||"",E=-11&&void 0!==arguments[1]&&arguments[1];f.a.defer(function(){g()("[data-i18n]",e).each(function(e,t){_(t)}),t&&S.bAnimationSupported&&g()(".i18n-animation[data-i18n]",e).letterfx({fx:"fall fade",backwards:!1,timing:50,fx_duration:"50ms",letter_end:"restore",element_end:"restore"})})}function a(){N.forEach(function(e){F[e[0]]=n(e[1])})}function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;e&&e(),t?R.subscribe(function(){e&&e(),t&&t()}):e&&R.subscribe(e)}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return e=p.a.parseInt(e,10)||0,y.Notification.ClientViewError===e&&t?t:(n=n?p.a.parseInt(n,10)||0:0,i.i(v.isUnd)(F[e])?n&&i.i(v.isUnd)(F[n])?F[n]:"":F[e])}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:y.Notification.UnknownNotification;return e&&e.ErrorCode?s(i.i(v.pInt)(e.ErrorCode),e.ErrorMessage||""):s(t)}function c(e){var t="";switch(p.a.parseInt(e,10)||0){case y.UploadErrorCode.FileIsTooBig:t=n("UPLOAD/ERROR_FILE_IS_TOO_BIG");break;case y.UploadErrorCode.FilePartiallyUploaded:t=n("UPLOAD/ERROR_FILE_PARTIALLY_UPLOADED");break;case y.UploadErrorCode.FileNoUploaded:t=n("UPLOAD/ERROR_NO_FILE_UPLOADED");break;case y.UploadErrorCode.MissingTempFolder:t=n("UPLOAD/ERROR_MISSING_TEMP_FOLDER");break;case y.UploadErrorCode.FileOnSaveingError:t=n("UPLOAD/ERROR_ON_SAVING_FILE");break;case y.UploadErrorCode.FileType:t=n("UPLOAD/ERROR_FILE_TYPE");break;default:t=n("UPLOAD/ERROR_UNKNOWN")}return t}function u(e,t){var n=i.i(v.microtime)();return S.$html.addClass("rl-changing-language"),new E.a(function(o,a){g.a.ajax({url:i.i(T.e)(t,e),dataType:"script",cache:!0}).then(function(){f.a.delay(function(){I();var e=-11&&void 0!==arguments[1])||arguments[1];return i.i(k.createCommandLegacy)(null,e,t)}function a(e,t,i,n){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];e.__rlSettingsData={Label:i,Template:t,Route:n,IsDefault:!!o},D.VIEW_MODELS.settings.push(e)}function r(e){D.VIEW_MODELS["settings-removed"].push(e)}function s(e){D.VIEW_MODELS["settings-disabled"].push(e)}function l(){I.a.changed.active=!1}function c(){I.a.changed.active=!0}function u(e){return""===e||i.i(k.isUnd)(U[e])?null:U[e]}function d(e){var t=null;return e&&(t=e,e.default&&(t=e.default)),t}function p(e){var t=d(e);t&&t.__vm&&t.__dom&&t.__vm.modalVisibility(!1)}function h(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;A.a.each(t.__names,function(o){i.i(M.a)(e,[o,t.__vm,n])})}function f(e,t){if(e&&!e.__builded){var n=null,a=new e(t),r=e.__type||"",s=r?N()("#rl-content #rl-"+r.toLowerCase()):null;e.__builded=!0,e.__vm=a,a.onShowTrigger=R.a.observable(!1),a.onHideTrigger=R.a.observable(!1),a.viewModelName=e.__name,a.viewModelNames=e.__names,a.viewModelTemplateID=e.__templateID,a.viewModelPosition=e.__type,s&&1===s.length?((n=N()("
").addClass("rl-view-model").addClass("RL-"+a.viewModelTemplateID).hide()).appendTo(s),a.viewModelDom=n,e.__dom=n,H.Popup===r&&(a.cancelCommand=a.closeCommand=o(function(){p(e)}),a.modalVisibility.subscribe(function(t){t?(a.viewModelDom.show(),a.storeAndSetKeyScope(),D.popupVisibilityNames.push(a.viewModelName),a.viewModelDom.css("z-index",3e3+i.i(D.popupVisibilityNames)().length+10),a.onShowTrigger&&a.onShowTrigger(!a.onShowTrigger()),i.i(k.delegateRun)(a,"onShowWithDelay",[],500)):(i.i(k.delegateRun)(a,"onHide"),i.i(k.delegateRun)(a,"onHideWithDelay",[],500),a.onHideTrigger&&a.onHideTrigger(!a.onHideTrigger()),a.restoreKeyScope(),h("view-model-on-hide",e),D.popupVisibilityNames.remove(a.viewModelName),a.viewModelDom.css("z-index",2e3),A.a.delay(function(){return a.viewModelDom.hide()},300))})),h("view-model-pre-build",e,n),R.a.applyBindingAccessorsToNode(n[0],{translatorInit:!0,template:function(){return{name:a.viewModelTemplateID}}},a),i.i(k.delegateRun)(a,"onBuild",[n]),a&&H.Popup===r&&a.registerPopupKeyDown(),h("view-model-post-build",e,n)):i.i(k.log)("Cannot find view model position: "+r)}return e?e.__vm:null}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=d(e);n&&(f(n),n.__vm&&n.__dom&&(i.i(k.delegateRun)(n.__vm,"onBeforeShow",t||[]),n.__vm.modalVisibility(!0),i.i(k.delegateRun)(n.__vm,"onShow",t||[]),h("view-model-on-show",n,t||[])))}function g(e){var t=d(e);t&&(f(t),t.__vm&&t.__dom&&i.i(k.delegateRun)(t.__vm,"onWarmUp"))}function b(e){var t=d(e);return!(!t||!t.__vm)&&t.__vm.modalVisibility()}function y(e,t){var n=null,o=!1,a=null;""===i.i(k.pString)(e)&&(e=x),""!==e&&((n=u(e))||(n=u(x))&&(t=e+"/"+t,e=x),n&&n.__started&&(o=O&&n===O,n.__builded||(n.__builded=!0,i.i(k.isNonEmptyArray)(n.viewModels())&&A.a.each(n.viewModels(),function(e){f(e,n)}),i.i(k.delegateRun)(n,"onBuild")),A.a.defer(function(){O&&!o&&(i.i(k.delegateRun)(O,"onHide"),i.i(k.delegateRun)(O,"onHideWithDelay",[],500),O.onHideTrigger&&O.onHideTrigger(!O.onHideTrigger()),i.i(k.isNonEmptyArray)(O.viewModels())&&A.a.each(O.viewModels(),function(e){e.__vm&&e.__dom&&H.Popup!==e.__vm.viewModelPosition&&(e.__dom.hide(),e.__vm.viewModelVisibility(!1),i.i(k.delegateRun)(e.__vm,"onHide"),i.i(k.delegateRun)(e.__vm,"onHideWithDelay",[],500),e.__vm.onHideTrigger&&e.__vm.onHideTrigger(!e.__vm.onHideTrigger()))})),(O=n)&&!o&&(i.i(k.delegateRun)(O,"onShow"),O.onShowTrigger&&O.onShowTrigger(!O.onShowTrigger()),i.i(M.a)("screen-on-show",[O.screenName(),O]),i.i(k.isNonEmptyArray)(O.viewModels())&&A.a.each(O.viewModels(),function(e){e.__vm&&e.__dom&&H.Popup!==e.__vm.viewModelPosition&&(i.i(k.delegateRun)(e.__vm,"onBeforeShow"),e.__dom.show(),e.__vm.viewModelVisibility(!0),i.i(k.delegateRun)(e.__vm,"onShow"),e.__vm.onShowTrigger&&e.__vm.onShowTrigger(!e.__vm.onShowTrigger()),i.i(k.delegateRun)(e.__vm,"onShowWithDelay",[],200),h("view-model-on-show",e))})),(a=n&&n.__cross?n.__cross():null)&&a.parse(t)})))}function v(e){A.a.each(e,function(e){if(e){var t=new e,i=t?t.screenName():"";t&&""!==i&&(""===x&&(x=i),U[i]=t)}}),A.a.each(U,function(e){e&&!e.__started&&e.__start&&(e.__started=!0,e.__start(),i.i(M.a)("screen-pre-start",[e.screenName(),e]),i.i(k.delegateRun)(e,"onStart"),i.i(M.a)("screen-post-start",[e.screenName(),e]))});var t=L.a.create();t.addRoute(/^([a-zA-Z0-9\-]*)\/?(.*)$/,y),I.a.initialized.add(t.parse,t),I.a.changed.add(t.parse,t),I.a.init(),A.a.delay(function(){return D.$html.removeClass("rl-started-trigger").addClass("rl-started")},100),A.a.delay(function(){return D.$html.addClass("rl-started-delay")},200)}function S(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e="/"===(e="#"===e.substr(0,1)?e.substr(1):e).substr(0,1)?e.substr(1):e;var n=i?"replaceHash":"setHash";t?(I.a.changed.active=!1,I.a[n](e),I.a.changed.active=!0):(I.a.changed.active=!0,I.a[n](e),I.a.setHash(e))}function w(e){var t=e.name,n=e.type,o=e.templateID;return function(e){e&&(t&&(i.i(k.isArray)(t)?e.__names=t:e.__names=[t],e.__name=e.__names[0]),n&&(e.__type=n),o&&(e.__templateID=o))}}function T(e){var t=e.name,i=e.templateID;return w({name:t,type:H.Popup,templateID:i})}function C(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t,n,o){if(!n||!n.match(/Command$/))throw new Error('name "'+n+'" should end with Command suffix');var a=o.value||o.initializer(),r=i.i(k.isFunc)(e)?e:function(){return!!e};return o.value=function(){if(r.call(this,this)){for(var e=arguments.length,t=Array(e),i=0;i0&&void 0!==arguments[0]?arguments[0]:"";return W+i.i(j.pString)(e)}function r(){return te?q:Y+ie}function s(){return X?Y+"/Mobile/":q}function l(e,t,n){return n=i.i(j.isUnd)(n)?ne:n,Y+"/Raw/"+$+"/"+n+"/"+e+"/"+$+"/"+t}function c(e,t){return l("Download",e,t)}function u(e,t){return l("View",e,t)}function d(e,t){return l("ViewThumbnail",e,t)}function p(e,t){return l("ViewAsPlain",e,t)}function h(e,t){return l("FramedView",e,t)}function f(e){return Y+"/"+e+"/"+$+"/"+ne+"/"}function m(){return f("Upload")}function g(){return f("UploadContacts")}function b(){return f("UploadBackground")}function y(){return f("Append")}function v(e){return f("Change"+(X?"Mobile":""))+i.i(j.encodeURIComponent)(e)+"/"}function S(e){return f("Ajax")+e}function w(e){return Y+"/Raw/"+$+"/"+ne+"/ViewAsPlain/"+$+"/"+e}function T(e){return Y+"/Raw/"+$+"/"+ne+"/Download/"+$+"/"+e}function C(e){return Y+"/Raw/0/Avatar/"+i.i(j.encodeURIComponent)(e)+"/"}function E(e){return Y+"/Raw/"+$+"/"+ne+"/UserBackground/"+$+"/"+e}function A(){return Y+"/Info"}function F(e,t){return Y+"/Lang/0/"+(t?"Admin":"App")+"/"+V.a.encodeURI(e)+"/"+J+"/"}function N(){return Y+"/Raw/"+$+"/"+ne+"/ContactsVcf/"}function R(){return Y+"/Raw/"+$+"/"+ne+"/ContactsCsv/"}function _(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Y+"SocialGoogle"+(""!==ne?"/"+$+"/"+ne+"/":"")+(e?"&xauth=1":"")}function I(){return Y+"SocialTwitter"+(""!==ne?"/"+$+"/"+ne+"/":"")}function P(){return Y+"SocialFacebook"+(""!==ne?"/"+$+"/"+ne+"/":"")}function L(e){return ee+e}function M(){return L("css/images/empty-contact.png")}function D(e){return L("sounds/"+e)}function k(){return L("css/images/icom-message-notification.png")}function O(){return L("js/min/openpgp.min.js")}function x(){return L("js/min/openpgp.worker.min.js")}function U(e){var t=Q;return"@custom"===e.substr(-7)&&(e=i.i(j.trim)(e.substring(0,e.length-7)),t=Z),t+"themes/"+V.a.encodeURI(e)+"/images/preview.png"}function H(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"INBOX";return W+"mailbox/"+e}function B(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return W+"settings"+(e?"/"+e:"")}function G(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";t=i.i(j.isNormal)(t)?i.i(j.pInt)(t):1,n=i.i(j.pString)(n);var a=W+"mailbox/";if(""!==e){var r=i.i(j.pInt)(o);a+=V.a.encodeURI(e)+(01&&void 0!==arguments[1]?arguments[1]:"";return{template:t?{element:t}:" ",viewModel:{createViewModel:function(t,n){return t=t||{},t.element=null,n&&n.element&&(t.component=n,t.element=r()(n.element),i.i(c.i18nToNodes)(t.element),!i.i(l.isUnd)(t.inline)&&s.a.unwrap(t.inline)&&t.element.css("display","inline-block")),new e(t)}}}}},function(e,t,i){"use strict";var n=i(0),o=i.n(n),a=i(5),r=i.n(a),s=i(4),l=i.n(s),c=i(6),u=i.n(c),d=i(1),p=i(20),h=i(23),f=i(14),m=i(198),g=i(10),b=i(28),y=i(40),v=i(16),S=function(e){function t(){o()(this,t);var i=r()(this,e.call(this));return i.oRequests={},i}return l()(t,e),t.prototype.folders=function(e){this.defaultRequest(e,"Folders",{SentFolder:g.settingsGet("SentFolder"),DraftFolder:g.settingsGet("DraftFolder"),SpamFolder:g.settingsGet("SpamFolder"),TrashFolder:g.settingsGet("TrashFolder"),ArchiveFolder:g.settingsGet("ArchiveFolder")},null,"",["Folders"])},t.prototype.login=function(e,t,i,n,o,a,r,s){this.defaultRequest(e,"Login",{Email:t,Login:i,Password:n,Language:a||"",AdditionalCode:r||"",AdditionalCodeSignMe:s?"1":"0",SignMe:o?"1":"0"})},t.prototype.getTwoFactor=function(e){this.defaultRequest(e,"GetTwoFactorInfo")},t.prototype.createTwoFactor=function(e){this.defaultRequest(e,"CreateTwoFactorSecret")},t.prototype.clearTwoFactor=function(e){this.defaultRequest(e,"ClearTwoFactorInfo")},t.prototype.showTwoFactorSecret=function(e){this.defaultRequest(e,"ShowTwoFactorSecret")},t.prototype.testTwoFactor=function(e,t){this.defaultRequest(e,"TestTwoFactorInfo",{Code:t})},t.prototype.enableTwoFactor=function(e,t){this.defaultRequest(e,"EnableTwoFactor",{Enable:t?"1":"0"})},t.prototype.clearTwoFactorInfo=function(e){this.defaultRequest(e,"ClearTwoFactorInfo")},t.prototype.contactsSync=function(e){this.defaultRequest(e,"ContactsSync",null,p.n)},t.prototype.saveContactsSyncData=function(e,t,i,n,o){this.defaultRequest(e,"SaveContactsSyncData",{Enable:t?"1":"0",Url:i,User:n,Password:o})},t.prototype.accountSetup=function(e,t,i){var n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];this.defaultRequest(e,"AccountSetup",{Email:t,Password:i,New:n?"1":"0"})},t.prototype.accountDelete=function(e,t){this.defaultRequest(e,"AccountDelete",{EmailToDelete:t})},t.prototype.accountsAndIdentitiesSortOrder=function(e,t,i){this.defaultRequest(e,"AccountsAndIdentitiesSortOrder",{Accounts:t,Identities:i})},t.prototype.identityUpdate=function(e,t,i,n,o,a,r,s){this.defaultRequest(e,"IdentityUpdate",{Id:t,Email:i,Name:n,ReplyTo:o,Bcc:a,Signature:r,SignatureInsertBefore:s?"1":"0"})},t.prototype.identityDelete=function(e,t){this.defaultRequest(e,"IdentityDelete",{IdToDelete:t})},t.prototype.accountsAndIdentities=function(e){this.defaultRequest(e,"AccountsAndIdentities")},t.prototype.accountsCounts=function(e){this.defaultRequest(e,"AccountsCounts")},t.prototype.filtersSave=function(e,t,n,o){this.defaultRequest(e,"FiltersSave",{Raw:n,RawIsActive:i.i(d.boolToAjax)(o),Filters:u.a.map(t,function(e){return e.toJson()})})},t.prototype.filtersGet=function(e){this.defaultRequest(e,"Filters",{})},t.prototype.templates=function(e){this.defaultRequest(e,"Templates",{})},t.prototype.templateGetById=function(e,t){this.defaultRequest(e,"TemplateGetByID",{ID:t})},t.prototype.templateDelete=function(e,t){this.defaultRequest(e,"TemplateDelete",{IdToDelete:t})},t.prototype.templateSetup=function(e,t,i,n){this.defaultRequest(e,"TemplateSetup",{ID:t,Name:i,Body:n})},t.prototype.messageList=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:20,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"",s=arguments.length>6&&void 0!==arguments[6]&&arguments[6];t=i.i(d.pString)(t);var l=i.i(h.g)(t),c=b.a.threadsAllowed()&&y.a.useThreads(),u=i.i(h.c)()===t?i.i(h.w)(t):"";return""===l||""!==a&&-1!==a.indexOf("is:")?this.defaultRequest(e,"MessageList",{Folder:t,Offset:n,Limit:o,Search:a,UidNext:u,UseThreads:c?"1":"0",ThreadUid:c?r:""},""===a?p.f:p.o,"",s?[]:["MessageList"]):this.defaultRequest(e,"MessageList",{},""===a?p.f:p.o,"MessageList/"+i.i(f.J)()+"/"+m.a([t,n,o,a,b.a.projectHash(),l,u,c?"1":"0",c?r:""].join(String.fromCharCode(0))),s?[]:["MessageList"])},t.prototype.messageUploadAttachments=function(e,t){this.defaultRequest(e,"MessageUploadAttachments",{Attachments:t},999e3)},t.prototype.message=function(e,t,n){return t=i.i(d.pString)(t),n=i.i(d.pInt)(n),!!(i.i(h.d)(t)&&02&&void 0!==arguments[2]?arguments[2]:[],o=!0,a=[];i.i(d.isArray)(n)&&03&&void 0!==arguments[3]?arguments[3]:null;this.defaultRequest(e,"MessageSetSeenToAll",{Folder:t,SetAction:i?"1":"0",ThreadUids:n?n.join(","):""})},t.prototype.saveMessage=function(e,t,i,n,o,a,r,s,l,c,u,d,h,f,m,g,b){this.defaultRequest(e,"SaveMessage",{IdentityID:t,MessageFolder:i,MessageUid:n,DraftFolder:o,To:a,Cc:r,Bcc:s,ReplyTo:l,Subject:c,TextIsHtml:u?"1":"0",Text:d,DraftInfo:f,InReplyTo:m,References:g,MarkAsImportant:b?"1":"0",Attachments:h},p.p)},t.prototype.sendReadReceiptMessage=function(e,t,i,n,o,a){this.defaultRequest(e,"SendReadReceiptMessage",{MessageFolder:t,MessageUid:i,ReadReceipt:n,Subject:o,Text:a})},t.prototype.sendMessage=function(e,t,i,n,o,a,r,s,l,c,u,d,h,f,m,g,b,y,v){this.defaultRequest(e,"SendMessage",{IdentityID:t,MessageFolder:i,MessageUid:n,SentFolder:o,To:a,Cc:r,Bcc:s,ReplyTo:l,Subject:c,TextIsHtml:u?"1":"0",Text:d,DraftInfo:f,InReplyTo:m,References:g,Dsn:b?"1":"0",ReadReceiptRequest:y?"1":"0",MarkAsImportant:v?"1":"0",Attachments:h},p.q)},t.prototype.saveSystemFolders=function(e,t){this.defaultRequest(e,"SystemFoldersUpdate",t)},t.prototype.saveSettings=function(e,t){this.defaultRequest(e,"SettingsUpdate",t)},t.prototype.saveSettingsHelper=function(e,t,i){var n=this;return function(o){var a;n.saveSettings(i||null,(a={},a[e]=t?t(o):o,a))}},t.prototype.changePassword=function(e,t,i){this.defaultRequest(e,"ChangePassword",{PrevPassword:t,NewPassword:i})},t.prototype.folderClear=function(e,t){this.defaultRequest(e,"FolderClear",{Folder:t})},t.prototype.folderSetSubscribe=function(e,t,i){this.defaultRequest(e,"FolderSubscribe",{Folder:t,Subscribe:i?"1":"0"})},t.prototype.folderSetCheckable=function(e,t,i){this.defaultRequest(e,"FolderCheckable",{Folder:t,Checkable:i?"1":"0"})},t.prototype.messagesMove=function(e,t,i,n,o,a){this.defaultRequest(e,"MessageMove",{FromFolder:t,ToFolder:i,Uids:n.join(","),MarkAsRead:a?"1":"0",Learning:o||""},null,"",["MessageList"])},t.prototype.messagesCopy=function(e,t,i,n){this.defaultRequest(e,"MessageCopy",{FromFolder:t,ToFolder:i,Uids:n.join(",")})},t.prototype.messagesDelete=function(e,t,i){this.defaultRequest(e,"MessageDelete",{Folder:t,Uids:i.join(",")},null,"",["MessageList"])},t.prototype.appDelayStart=function(e){this.defaultRequest(e,"AppDelayStart")},t.prototype.quota=function(e){this.defaultRequest(e,"Quota")},t.prototype.contacts=function(e,t,i,n){this.defaultRequest(e,"Contacts",{Offset:t,Limit:i,Search:n},null,"",["Contacts"])},t.prototype.contactSave=function(e,t,n,o){this.defaultRequest(e,"ContactSave",{RequestUid:t,Uid:i.i(d.trim)(n),Properties:o})},t.prototype.contactsDelete=function(e,t){this.defaultRequest(e,"ContactsDelete",{Uids:t.join(",")})},t.prototype.suggestions=function(e,t,i){this.defaultRequest(e,"Suggestions",{Query:t,Page:i},null,"",["Suggestions"])},t.prototype.clearUserBackground=function(e){this.defaultRequest(e,"ClearUserBackground")},t.prototype.facebookUser=function(e){this.defaultRequest(e,"SocialFacebookUserInformation")},t.prototype.facebookDisconnect=function(e){this.defaultRequest(e,"SocialFacebookDisconnect")},t.prototype.twitterUser=function(e){this.defaultRequest(e,"SocialTwitterUserInformation")},t.prototype.twitterDisconnect=function(e){this.defaultRequest(e,"SocialTwitterDisconnect")},t.prototype.googleUser=function(e){this.defaultRequest(e,"SocialGoogleUserInformation")},t.prototype.googleDisconnect=function(e){this.defaultRequest(e,"SocialGoogleDisconnect")},t.prototype.socialUsers=function(e){this.defaultRequest(e,"SocialUsers")},t}(i(115).a);t.a=new S},function(e,t){e.exports=window.key},function(e,t,i){"use strict";i.d(t,"l",function(){return n}),i.d(t,"i",function(){return o}),i.d(t,"h",function(){return a}),i.d(t,"f",function(){return r}),i.d(t,"o",function(){return s}),i.d(t,"q",function(){return l}),i.d(t,"p",function(){return c}),i.d(t,"n",function(){return u}),i.d(t,"g",function(){return d}),i.d(t,"k",function(){return p}),i.d(t,"a",function(){return h}),i.d(t,"c",function(){return f}),i.d(t,"b",function(){return m}),i.d(t,"m",function(){return g}),i.d(t,"e",function(){return b}),i.d(t,"d",function(){return y}),i.d(t,"j",function(){return v});var n=20,o=[10,20,30,50,100],a=50,r=3e4,s=3e5,l=3e5,c=2e5,u=2e5,d="__UNUSE__",p="rlcsc",h=143,f=25,m=4190,g=15,b=7,y=10,v="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAuCAYAAABXuSs3AAAHHklEQVRoQ7VZW08bVxCeXRuwIbTGXIwNtBBaqjwgVUiR8lDlbza9qe1DpVZ9aNQ/0KpPeaJK07SpcuEeCEmUAObm21bfrL9lONjexSYrWfbunj37zXdmvpkz9oIgCKTD0Wg0xPd94TDP83Q0zvWa50vzklSrdanVanqf4/D84GBGr+F+Op3S8fqoJxLOdnZgTvsO/nYhenHA+UC7CWF1uXwkb9++ldPTUwVerVbVqFQqpR8YPjQ0JCMjI5LNDijoRgP3PQVu5+5Eor2XGLg7IV4GkIdHJ/LmzRs5ODiIwNbrdR0O0GCcq4Xz4eFhmZyclP7+tDQaIik/BG5XKQn4SwG3zJTLZXn9+rUclI8UHD5YVoDDN8bSzXhONwL48fFxGR4eilzFZT1uFRIB5yT8BqCdnR3Z3d0VP9Un6XRawYJpggVrZBv38ME4XKtUKnLt2jUplUoy1PR/l3U7T6sVSAQcgMAkj8PDQ9ne3pajoyMRL7zeKsYZWHgWYDGmv78/mmdwcFA+mJlSgziHDWrERrsjEXDXegTi1tZW+DLxI2bxIrqFNYTXyDyCFweMAHCwb8e4RnTNuOsqe3t7sra21pTD0Kct666E8XlcZyzw9/RUUXK5nK5oUinUQI6TQ3cynO/v78vq6qrKXCNwlTiJJpyNGc3nZHp6uqV2dwrQWOCtZBDAV1ZWwsQk7f0wiQn5kffbAu/0/KWBYzIC1+XukfGx0RGZmppKlC2tIV0Bh4aDcZW7HhkfH8urLLZL7T2pihvlkMNnz56FiadHxicL41IsFpN41bkxsYxbRdFo9jwB8KdPn14J8KnSpBQKhQs63nPmbCVRcBUAR2Lq1VVmpksyMTFxAXjcEsQybiegESionjx5osCZOeNe1O4+EhCAX7bQSgQcxRHTMgAgcz5+/Dis/hL4uHU3/B4YGNASGHIKxuEql0k+l05AeIAF1vPnz5VxFFmdDlaJrMtZITJeSsXCOTlMunKxjLtMYOKNjQ158eJFuAuKkUOb5sEwgff19SkJUBVkThZUbnXZrtCKBQ6gbnWIkjZpyne3ejAWoGnA7Icz6irvBLgbOMicCM6TkxPx/LAkbXfgWcsazuE2kFRsKD5Z+CiqDumKncpZvieWcS6dDVD8xiYCNflpJdwcdwJOf9airLmVQ7DPzMxIYWLsXGXoVqLt5k0M3K3JUVPDZdbWNzsCp48TPFdvdnZWUz32nDha7bJ63kgAJPzSdRks9/Kf9xMJAQ1gq2NpaUmy2Yz4zar4nQC3xb99AQwCcGzLAAwuhG8YiWvcOKts+r4GOe5nMhm5efOm9lUA3E3vSZJRrKvE0fnPv//Jy5cvo5cTHIPQbSjhOoqq69evS19f6lxDKK4+sVhigZPtKJqbrQeqxd5+WR4+fKgqgT0k2XX3nhiPgETWXFhYkFzuPZ2yVq1GTSOXpE47/VjgNnD4m4GG7/LhsTx69EiwD4Vr2MwIIxgbAH18fKx1yfz8vEogNvGtWnCuhLZa9UTAreVWFsHy/b/+Vrbdl7E5REMQD2jDoUbByty+/ZnU64GkU2HzyJLhktU1cLv8nARgkYS2d3ajAgwG8qU2oLmDZ92CMaOjo7K4uCiZgbDWaRWgnZhPxLhrMUCvr69riwKZk1LHF7XqrWAO9hJxH6ozNzcnCx/PqztZg9mf6SQMscCtm2C5ke4BGMlHWTUp36036AJajDVrFMzBrhhWslQsSrFYiOqVpMriNYIgqFRq2j3FAb/zffT6zuxFXxsNzs3NTXn16lW4gYiW96w1FyedF+83xG/2FNGCRpU4NjamMsn+OZ9xE5RXqdaDdPpib6RWCzuwKF9RxqI2AVNQBwQYJoK0wdBejnqtEikP3pfP51XjUTESl12FqJEKxsEorARYDD44ONTeID7YpsEnrRvQfWAI2e8WfDaTUSIwJ0iBCmFOtOUAHvVMPp/TPwvYFVYFIuP8l+DBgwdaa2Miqwa0GgYwfeMltovbDfh6c1vIgMYcliSsKv4IWFr6VDHxvldvBAH+1sA+cnl5WYOPmmr9ir+1l9I0Cgz0yjhXjfJJ0JROnmezWbl165ayr/5fqwcBNr7IfhjMqKcvESSM4eRcCasQ3bDNObmKPLdGUGpZsN24cUNLBm9zazu4d++e6qpNBFaTuUS26U5dpuR1CxyA7J9ddrMRqlz4pwLLYawymPd++/2PADt2ugcGwq9gCCdhQ96C6xWwa6j1ceuq+I0EhW0i8MAIVJfeL3d/DVD8EKi12P6/2S2jV/EccVB54O/ejz/9HGCpoBBMta5rXMXLu53D1XAwjhXwvvv+h4BAXVe4bOu3O3ChxF08LiZFG3fel199G9CH3fLyqv24NcB44MRhpdK788U3CpyKwsCw590xmfSpzsBt0Fqc3ud3vtZigxWcVZCklVpSiN0w3q5E/h9TGMIUuA3+EQAAAABJRU5ErkJggg=="},function(e,t){var i=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},function(e,t,i){var n=i(139),o=i(58);e.exports=function(e){return n(o(e))}},function(e,t,i){"use strict";function n(e,t){e=i.i(I.trim)(e),t(B&&""!==e?P.A(e):"",e)}function o(e,t){return e+"#"+t}function a(e,t){H[o(e,t)]=!0}function r(e,t){return!0===H[o(e,t)]}function s(e,t){x[o(e,t)]=!0}function l(e,t){return!!x[o(e,t)]&&(x[o(e,t)]=null,!0)}function c(){x={}}function u(){return""===U?"INBOX":U}function d(e){return""!==e&&M[e]?M[e]:""}function p(e,t){M[e]=t,"INBOX"!==t&&""!==U||(U=t)}function h(e){return""!==e&&D[e]?D[e]:""}function f(e,t){""!==e&&(D[e]=t)}function m(e){return""!==e&&k[e]?k[e]:""}function g(e,t){k[e]=t}function b(e){return""!==e&&L[e]?L[e]:null}function y(e,t){L[e]=t}function v(e){y(e,null)}function S(e,t){return O[e]&&O[e][t]?O[e][t]:null}function w(e,t,i){O[e]||(O[e]={}),O[e][t]=i}function T(e){O[e]={}}function C(e){if(e){var t=e.uid,n=S(e.folderFullNameRaw,t);if(n&&01&&void 0!==arguments[1]?arguments[1]:[];i.i(h.isArray)(g[e])&&p.a.each(g[e],function(e){e.apply(void 0,t)})}function a(e){return m.settingsGet(e)}function r(e,t,i,n){f.data.__APP__&&f.data.__APP__.remote().defaultRequest(e,"Plugin"+t,i,n)}function s(e,t,i,n){b.push([e,t,i,n])}function l(e,t,i,n){y.push([e,t,i,n])}function c(e){var t=i(9);p.a.each(e?y:b,function(e){t.addSettingsViewModel(e[0],e[1],e[2],e[3])})}function u(e,t){var n=m.settingsGet("Plugins");return n=n&&!i.i(h.isUnd)(n[e])?n[e]:null,n?i.i(h.isUnd)(n[t])?null:n[t]:null}t.e=n,t.a=o,t.f=a,t.h=r,t.c=s,t.d=l,t.b=c,t.g=u;var d=i(6),p=i.n(d),h=i(1),f=i(7),m=i(10),g={},b=[],y=[]},function(e,t,i){"use strict";var n=i(0),o=i.n(n),a=i(5),r=i.n(a),s=i(4),l=i.n(s),c=i(2),u=i(3),d=i(7),p=i(1),h=i(10),f=function(e){function t(){o()(this,t);var n=r()(this,e.call(this));n.currentAudio=c.a.observable(""),n.focusedState=c.a.observable(u.Focused.None);var a=h.appSettingsGet("mobile");return n.focusedState.subscribe(function(e){switch(e){case u.Focused.MessageList:i.i(d.keyScope)(u.KeyState.MessageList),a&&i.i(d.leftPanelDisabled)(!0);break;case u.Focused.MessageView:i.i(d.keyScope)(u.KeyState.MessageView),a&&i.i(d.leftPanelDisabled)(!0);break;case u.Focused.FolderList:i.i(d.keyScope)(u.KeyState.FolderList),a&&i.i(d.leftPanelDisabled)(!1)}}),n.projectHash=c.a.observable(""),n.threadsAllowed=c.a.observable(!1),n.composeInEdit=c.a.observable(!1),n.contactsAutosave=c.a.observable(!1),n.useLocalProxyForExternalImages=c.a.observable(!1),n.contactsIsAllowed=c.a.observable(!1),n.attachmentsActions=c.a.observableArray([]),n.devEmail="",n.devPassword="",n}return l()(t,e),t.prototype.populate=function(){e.prototype.populate.call(this),this.projectHash(h.settingsGet("ProjectHash")),this.contactsAutosave(!!h.settingsGet("ContactsAutosave")),this.useLocalProxyForExternalImages(!!h.settingsGet("UseLocalProxyForExternalImages")),this.contactsIsAllowed(!!h.settingsGet("ContactsIsAllowed"));var t=h.appSettingsGet("attachmentsActions");this.attachmentsActions(i.i(p.isNonEmptyArray)(t)?t:[]),this.devEmail=h.settingsGet("DevEmail"),this.devPassword=h.settingsGet("DevPassword")},t}(i(117).a);t.a=new f},function(e,t,i){"use strict";function n(e,t,o){i.i(s.isObject)(e)?(o=t||null,t=null,r.a.each(e,function(e,t){n(t,e,o)})):(i.i(s.isUnd)(c[e])&&(c[e]=[]),c[e].push([t,o]))}function o(e,t){l.a("rl-pub",[e,t]),i.i(s.isUnd)(c[e])||r.a.each(c[e],function(e){e[0]&&e[0].apply(e[1]||null,t||[])})}t.b=n,t.a=o;var a=i(6),r=i.n(a),s=i(1),l=i(27),c={}},function(e,t,i){"use strict";var n=i(0),o=i.n(n),a=i(2),r=i(6),s=i.n(r),l=i(3),c=i(20),u=i(1),d=i(23),p=i(35),h=function(){function e(){o()(this,e),this.displaySpecSetting=a.a.observable(!0),this.sentFolder=a.a.observable(""),this.draftFolder=a.a.observable(""),this.spamFolder=a.a.observable(""),this.trashFolder=a.a.observable(""),this.archiveFolder=a.a.observable(""),this.namespace="",this.folderList=a.a.observableArray([]),this.folderList.optimized=a.a.observable(!1),this.folderList.error=a.a.observable(""),this.foldersLoading=a.a.observable(!1),this.foldersCreating=a.a.observable(!1),this.foldersDeleting=a.a.observable(!1),this.foldersRenaming=a.a.observable(!1),this.foldersInboxUnreadCount=a.a.observable(0),this.currentFolder=a.a.observable(null).extend({toggleSubscribeProperty:[this,"selected"]}),this.computers(),this.subscribers()}return e.prototype.computers=function(){var e=this;this.draftFolderNotEnabled=a.a.computed(function(){return""===e.draftFolder()||c.g===e.draftFolder()}),this.foldersListWithSingleInboxRootFolder=a.a.computed(function(){return!s.a.find(e.folderList(),function(e){return e&&!e.isSystemFolder()&&e.visible()})}),this.currentFolderFullNameRaw=a.a.computed(function(){return e.currentFolder()?e.currentFolder().fullNameRaw:""}),this.currentFolderFullName=a.a.computed(function(){return e.currentFolder()?e.currentFolder().fullName:""}),this.currentFolderFullNameHash=a.a.computed(function(){return e.currentFolder()?e.currentFolder().fullNameHash:""}),this.foldersChanging=a.a.computed(function(){var t=e.foldersLoading(),i=e.foldersCreating(),n=e.foldersDeleting(),o=e.foldersRenaming();return t||i||n||o}),this.folderListSystemNames=a.a.computed(function(){var t=[i.i(d.c)()],n=e.folderList(),o=e.sentFolder(),a=e.draftFolder(),r=e.spamFolder(),s=e.trashFolder(),l=e.archiveFolder();return i.i(u.isArray)(n)&&0t.interval&&(t.isSystemFolder()||t.subScribed()&&t.checkable())&&o.push([t.interval,t.fullNameRaw]),t&&0t[0]?1:0}),s.a.find(o,function(n){var o=i.i(d.d)(n[1]);return o&&(o.interval=t,e.push(n[1])),5<=e.length}),s.a.uniq(e)},e}();t.a=new h},function(e,t,i){e.exports=!i(43)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,i){var n=i(33),o=i(51);e.exports=i(31)?function(e,t,i){return n.f(e,t,o(1,i))}:function(e,t,i){return e[t]=i,e}},function(e,t,i){var n=i(41),o=i(85),a=i(69),r=Object.defineProperty;t.f=i(31)?Object.defineProperty:function(e,t,i){if(n(e),t=a(t,!0),n(i),o)try{return r(e,t,i)}catch(e){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(e[t]=i.value),e}},function(e,t,i){var n=i(67)("wks"),o=i(52),a=i(21).Symbol,r="function"==typeof a;(e.exports=function(e){return n[e]||(n[e]=r&&a[e]||(r?a:o)("Symbol."+e))}).store=n},function(e,t,i){"use strict";function n(){return w(),v||b()()}function o(){return T(),S||0}function a(e){return n().clone().subtract(e,"days").format("YYYY.MM.DD")}function r(e){var t=n();if(e&&t)switch(!0){case 4>=t.diff(e,"hours"):return e.fromNow();case t.format("L")===e.format("L"):return i.i(y.i18n)("MESSAGE_LIST/TODAY_AT",{TIME:e.format("LT")});case t.clone().subtract(1,"days").format("L")===e.format("L"):return i.i(y.i18n)("MESSAGE_LIST/YESTERDAY_AT",{TIME:e.format("LT")});case t.year()===e.year():return e.format("D MMM.")}return e?e.format("LL"):""}function s(e,t){var i=null,n="",a=o();if(e=00&&void 0!==arguments[0]?arguments[0]:"";o()(this,e),this.sModelName="",this.disposables=[],this.sModelName=t||""}return e.prototype.regDisposables=function(e){var t=this;i.i(a.isArray)(e)?e.forEach(function(e){t.disposables.push(e)}):e&&this.disposables.push(e)},e.prototype.onDestroy=function(){i.i(a.disposeObject)(this)},e}()},function(e,t,i){"use strict";function n(e,t,i,n,o){var a={};return Object.keys(n).forEach(function(e){a[e]=n[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce(function(i,n){return n(e,t,i)||i},a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(t,"__esModule",{value:!0}),i.d(t,"ComposePopupView",function(){return ne}),i.d(t,"default",function(){return ne});var o,a,r,s,l,c,u,d,p,h,f=i(15),m=i.n(f),g=i(0),b=i.n(g),y=i(5),v=i.n(y),S=i(4),w=i.n(S),T=i(11),C=i.n(T),E=i(6),A=i.n(E),F=i(12),N=i.n(F),R=i(2),_=i(19),I=i.n(_),P=i(99),L=i.n(P),M=i(3),D=i(1),k=i(20),O=i(7),x=i(14),U=i(8),H=i(35),B=i(23),G=i(75),K=i(28),V=i(40),j=i(97),z=i(46),q=i(30),W=i(49),Y=i(39),$=i(54),J=i(18),X=i(10),Z=i(29),Q=i(202),ee=i(16),te=i(9),ie=i(13),ne=(o=i.i(te.popup)({name:"View/Popup/Compose",templateID:"PopupsCompose"}),a=i.i(te.command)(function(e){return e.canBeSentOrSaved()}),r=i.i(te.command)(function(e){return e.canBeSentOrSaved()}),s=i.i(te.command)(function(e){return e.isDraftFolderMessage()}),l=i.i(te.command)(function(e){return e.canBeSentOrSaved()}),c=i.i(te.command)(function(e){return e.allowContacts}),u=i.i(te.command)(function(e){return e.dropboxEnabled()}),d=i.i(te.command)(function(e){return e.driveEnabled()}),o((h=function(e){function t(){b()(this,t);var n=v()(this,e.call(this)),o=function(e,t,n,o){if(t&&e&&t[n]()&&(o||e[n]())){var a=t[n](),r=i.i(D.trim)(e[n]()).split(/[,]/);r=A.a.filter(r,function(e){return(e=i.i(D.trim)(e))&&i.i(D.trim)(a)!==e}),o&&r.push(a),e[n](r.join(","))}};return n.oLastMessage=null,n.oEditor=null,n.aDraftInfo=null,n.sInReplyTo="",n.bFromDraft=!1,n.sReferences="",n.sLastFocusedField="to",n.resizerTrigger=A.a.bind(n.resizerTrigger,n),n.allowContacts=!!K.a.contactsIsAllowed(),n.allowFolders=!!X.capa(M.Capa.Folders),n.bSkipNextHide=!1,n.composeInEdit=K.a.composeInEdit,n.editorDefaultType=V.a.editorDefaultType,n.capaOpenPGP=W.a.capaOpenPGP,n.identitiesDropdownTrigger=R.a.observable(!1),n.to=R.a.observable(""),n.to.focused=R.a.observable(!1),n.cc=R.a.observable(""),n.cc.focused=R.a.observable(!1),n.bcc=R.a.observable(""),n.bcc.focused=R.a.observable(!1),n.replyTo=R.a.observable(""),n.replyTo.focused=R.a.observable(!1),R.a.computed(function(){switch(!0){case n.to.focused():n.sLastFocusedField="to";break;case n.cc.focused():n.sLastFocusedField="cc";break;case n.bcc.focused():n.sLastFocusedField="bcc"}}).extend({notify:"always"}),n.subject=R.a.observable(""),n.subject.focused=R.a.observable(!1),n.isHtml=R.a.observable(!1),n.requestDsn=R.a.observable(!1),n.requestReadReceipt=R.a.observable(!1),n.markAsImportant=R.a.observable(!1),n.sendError=R.a.observable(!1),n.sendSuccessButSaveError=R.a.observable(!1),n.savedError=R.a.observable(!1),n.sendButtonSuccess=R.a.computed(function(){return!n.sendError()&&!n.sendSuccessButSaveError()}),n.sendErrorDesc=R.a.observable(""),n.savedErrorDesc=R.a.observable(""),n.sendError.subscribe(function(e){e||n.sendErrorDesc("")}),n.savedError.subscribe(function(e){e||n.savedErrorDesc("")}),n.sendSuccessButSaveError.subscribe(function(e){e||n.savedErrorDesc("")}),n.savedTime=R.a.observable(0),n.savedTimeText=R.a.computed(function(){return 0a[e.email][1])&&(n=a[e.email][0],i=a[e.email][1])};if(A.a.each(o,function(e,t){a[e.email()]=[e,t]}),t)switch(e){case M.ComposeType.Empty:break;case M.ComposeType.Reply:case M.ComposeType.ReplyAll:case M.ComposeType.Forward:case M.ComposeType.ForwardAsAttachment:A.a.each(A.a.union(t.to,t.cc,t.bcc),r),n||A.a.each(t.deliveredTo,r);break;case M.ComposeType.Draft:A.a.each(A.a.union(t.from,t.replyTo),r)}return n||o[0]||null},t.prototype.selectIdentity=function(e){e&&e.item&&(this.currentIdentity(e.item),this.setSignatureFromIdentity(e.item))},t.prototype.sendMessageResponse=function(e,t){var n=!1,o="";this.sending(!1),M.StorageResultType.Success===e&&t&&t.Result&&(n=!0,this.modalVisibility()&&i.i(D.delegateRun)(this,"closeCommand")),this.modalVisibility()&&!n&&(t&&M.Notification.CantSaveMessage===t.ErrorCode?(this.sendSuccessButSaveError(!0),this.savedErrorDesc(i.i(D.trim)(i.i(U.i18n)("COMPOSE/SAVED_ERROR_ON_SEND")))):(o=i.i(U.getNotification)(t&&t.ErrorCode?t.ErrorCode:M.Notification.CantSendMessage,t&&t.ErrorMessage?t.ErrorMessage:""),this.sendError(!0),this.sendErrorDesc(o||i.i(U.getNotification)(M.Notification.CantSendMessage)))),this.reloadDraftFolder()},t.prototype.saveMessageResponse=function(e,t){var n=!1;if(this.saving(!1),M.StorageResultType.Success===e&&t&&t.Result&&t.Result.NewFolder&&t.Result.NewUid){if(n=!0,this.bFromDraft){var o=Y.a.message();o&&this.draftFolder()===o.folderFullNameRaw&&this.draftUid()===o.uid&&Y.a.message(null)}this.draftFolder(t.Result.NewFolder),this.draftUid(t.Result.NewUid),this.savedTime(C.a.Math.round((new C.a.Date).getTime()/1e3)),this.bFromDraft&&i.i(B.b)(this.draftFolder(),"")}n||(this.savedError(!0),this.savedErrorDesc(i.i(U.getNotification)(M.Notification.CantSaveMessage))),this.reloadDraftFolder()},t.prototype.onHide=function(){this.autosaveStop(),this.bSkipNextHide||(K.a.composeInEdit(!1),this.reset()),this.bSkipNextHide=!1,this.to.focused(!1),i.i(te.routeOn)()},t.prototype.editor=function(e){var t=this;e&&(!this.oEditor&&this.composeEditorArea()?this.oEditor=new G.HtmlEditor(this.composeEditorArea(),null,function(){e(t.oEditor),t.resizerTrigger()},function(e){t.isHtml(!!e)}):this.oEditor&&(e(this.oEditor),this.resizerTrigger()))},t.prototype.converSignature=function(e){var t=10,n="",o=[],a=/{{MOMENT:([^}]+)}}/g;if(e=e.replace(/[\r]/g,""),""!==(n=this.oLastMessage?this.emailArrayToStringLineHelper(this.oLastMessage.from,!0):"")&&(e=e.replace(/{{FROM-FULL}}/g,n),-1===n.indexOf(" ")&&01&&void 0!==arguments[1]&&arguments[1];e&&this.editor(function(n){var o=!1,a=e.signature();""!==a&&":HTML:"===a.substr(0,6)&&(o=!0,a=a.substr(6)),n.setSignature(t.converSignature(a),o,!!e.signatureInsertBefore(),i)})},t.prototype.onShow=function(e,t,n,o,a,r,s){var l=this;i.i(te.routeOff)(),this.autosaveStart(),K.a.composeInEdit()?(e=e||M.ComposeType.Empty,M.ComposeType.Empty!==e?i.i(te.showScreenPopup)(i(73),[i.i(U.i18n)("COMPOSE/DISCARD_UNSAVED_DATA"),function(){l.initOnShow(e,t,n,o,a,r,s)},null,null,null,!1]):(this.addEmailsTo(this.to,n),this.addEmailsTo(this.cc,o),this.addEmailsTo(this.bcc,a),i.i(D.isNormal)(r)&&""!==r&&""===this.subject()&&this.subject(r))):this.initOnShow(e,t,n,o,a,r,s)},t.prototype.onWarmUp=function(){this.modalVisibility&&!this.modalVisibility()&&this.editor(function(e){return e.modeToggle(!1)})},t.prototype.addEmailsTo=function(e,t){if(i.i(D.isNonEmptyArray)(t)){var n=i.i(D.trim)(e()),o=A.a.uniq(A.a.compact(A.a.map(t,function(e){return e?e.toLine(!1):null})));e(n+(""===n?"":", ")+i.i(D.trim)(o.join(", ")))}},t.prototype.emailArrayToStringLineHelper=function(e,t){return t=!!t,A.a.map(e,function(e){return e.toLine(t)}).join(", ")},t.prototype.initOnShow=function(e,t,n,o,a,r,s){var l=this;K.a.composeInEdit(!0);var c="",u="",d="",p="",h="",f="",m="",g=null,b=null,y=null,v={},S=z.a.email(),w=e||M.ComposeType.Empty;if((t=t||null)&&i.i(D.isNormal)(t)&&(y=i.i(D.isArray)(t)&&1===t.length?t[0]:i.i(D.isArray)(t)?null:t),this.oLastMessage=y,null!==S&&(v[S]=!0),this.reset(),(g=this.findIdentityByMessage(w,y))&&(v[g.email()]=!0),i.i(D.isNonEmptyArray)(n)&&this.to(this.emailArrayToStringLineHelper(n)),i.i(D.isNonEmptyArray)(o)&&this.cc(this.emailArrayToStringLineHelper(o)),i.i(D.isNonEmptyArray)(a)&&this.bcc(this.emailArrayToStringLineHelper(a)),""!==w&&y){p=i.i(H.format)(y.dateTimeStampInUTC(),"FULL"),h=y.subject(),b=y.aDraftInfo;var T=N()(y.body).clone();T&&(i.i(D.clearBqSwitcher)(T),f=T.html());var C=null;switch(w){case M.ComposeType.Empty:break;case M.ComposeType.Reply:this.to(this.emailArrayToStringLineHelper(y.replyEmails(v))),this.subject(i.i(D.replySubjectAdd)("Re",h)),this.prepearMessageAttachments(y,w),this.aDraftInfo=["reply",y.uid,y.folderFullNameRaw],this.sInReplyTo=y.sMessageId,this.sReferences=i.i(D.trim)(this.sInReplyTo+" "+y.sReferences);break;case M.ComposeType.ReplyAll:C=y.replyAllEmails(v),this.to(this.emailArrayToStringLineHelper(C[0])),this.cc(this.emailArrayToStringLineHelper(C[1])),this.subject(i.i(D.replySubjectAdd)("Re",h)),this.prepearMessageAttachments(y,w),this.aDraftInfo=["reply",y.uid,y.folderFullNameRaw],this.sInReplyTo=y.sMessageId,this.sReferences=i.i(D.trim)(this.sInReplyTo+" "+y.references());break;case M.ComposeType.Forward:case M.ComposeType.ForwardAsAttachment:this.subject(i.i(D.replySubjectAdd)("Fwd",h)),this.prepearMessageAttachments(y,w),this.aDraftInfo=["forward",y.uid,y.folderFullNameRaw],this.sInReplyTo=y.sMessageId,this.sReferences=i.i(D.trim)(this.sInReplyTo+" "+y.sReferences);break;case M.ComposeType.Draft:this.to(this.emailArrayToStringLineHelper(y.to)),this.cc(this.emailArrayToStringLineHelper(y.cc)),this.bcc(this.emailArrayToStringLineHelper(y.bcc)),this.replyTo(this.emailArrayToStringLineHelper(y.replyTo)),this.bFromDraft=!0,this.draftFolder(y.folderFullNameRaw),this.draftUid(y.uid),this.subject(h),this.prepearMessageAttachments(y,w),this.aDraftInfo=i.i(D.isNonEmptyArray)(b)&&3===b.length?b:null,this.sInReplyTo=y.sInReplyTo,this.sReferences=y.sReferences;break;case M.ComposeType.EditAsNew:this.to(this.emailArrayToStringLineHelper(y.to)),this.cc(this.emailArrayToStringLineHelper(y.cc)),this.bcc(this.emailArrayToStringLineHelper(y.bcc)),this.replyTo(this.emailArrayToStringLineHelper(y.replyTo)),this.subject(h),this.prepearMessageAttachments(y,w),this.aDraftInfo=i.i(D.isNonEmptyArray)(b)&&3===b.length?b:null,this.sInReplyTo=y.sInReplyTo,this.sReferences=y.sReferences}switch(w){case M.ComposeType.Reply:case M.ComposeType.ReplyAll:c=y.fromToLine(!1,!0),m=i.i(U.i18n)("COMPOSE/REPLY_MESSAGE_TITLE",{DATETIME:p,EMAIL:c}),f=" "+m+":"+i.i(D.trim)(f)+" ";break;case M.ComposeType.Forward:c=y.fromToLine(!1,!0),u=y.toToLine(!1,!0),d=y.ccToLine(!1,!0),f=" "+i.i(U.i18n)("COMPOSE/FORWARD_MESSAGE_TOP_TITLE")+" "+i.i(U.i18n)("COMPOSE/FORWARD_MESSAGE_TOP_FROM")+": "+c+" "+i.i(U.i18n)("COMPOSE/FORWARD_MESSAGE_TOP_TO")+": "+u+(0 "+i.i(U.i18n)("COMPOSE/FORWARD_MESSAGE_TOP_CC")+": "+d:"")+" "+i.i(U.i18n)("COMPOSE/FORWARD_MESSAGE_TOP_SENT")+": "+i.i(D.encodeHtml)(p)+" "+i.i(U.i18n)("COMPOSE/FORWARD_MESSAGE_TOP_SUBJECT")+": "+i.i(D.encodeHtml)(h)+" "+i.i(D.trim)(f)+" ";break;case M.ComposeType.ForwardAsAttachment:f=""}this.editor(function(e){e.setHtml(f,!1),(M.EditorDefaultType.PlainForced===l.editorDefaultType()||!y.isHtml()&&M.EditorDefaultType.HtmlForced!==l.editorDefaultType())&&e.modeToggle(!1),g&&M.ComposeType.Draft!==w&&M.ComposeType.EditAsNew!==w&&l.setSignatureFromIdentity(g,!0),l.setFocusInPopup()})}else M.ComposeType.Empty===w?(this.subject(i.i(D.isNormal)(r)?""+r:""),f=i.i(D.isNormal)(s)?""+s:"",this.editor(function(e){e.setHtml(f,!1),M.EditorDefaultType.Html!==l.editorDefaultType()&&M.EditorDefaultType.HtmlForced!==l.editorDefaultType()&&e.modeToggle(!1),g&&l.setSignatureFromIdentity(g,!0),l.setFocusInPopup()})):i.i(D.isNonEmptyArray)(t)?(A.a.each(t,function(e){l.addMessageAsAttachment(e)}),this.editor(function(e){e.setHtml("",!1),M.EditorDefaultType.Html!==l.editorDefaultType()&&M.EditorDefaultType.HtmlForced!==l.editorDefaultType()&&e.modeToggle(!1),g&&M.ComposeType.Draft!==w&&M.ComposeType.EditAsNew!==w&&l.setSignatureFromIdentity(g,!0),l.setFocusInPopup()})):this.setFocusInPopup();var E=this.getAttachmentsDownloadsForUpload();i.i(D.isNonEmptyArray)(E)&&J.a.messageUploadAttachments(this.onMessageUploadAttachments,E),g&&this.currentIdentity(g),this.resizerTrigger()},t.prototype.onMessageUploadAttachments=function(e,t){var i=this;M.StorageResultType.Success===e&&t&&t.Result?this.viewModelVisibility()||A.a.each(t.Result,function(e,t){var n=i.getAttachmentById(e);n&&(n.tempName(t),n.waiting(!1).uploading(!1).complete(!0))}):this.setMessageAttachmentFailedDownloadText()},t.prototype.setFocusInPopup=function(){var e=this;O.bMobileDevice||A.a.delay(function(){""===e.to()?e.to.focused(!0):e.oEditor&&(e.to.focused()||e.oEditor.focus())},M.Magics.Time100ms)},t.prototype.onShowWithDelay=function(){this.resizerTrigger()},t.prototype.tryToClosePopup=function(){var e=this,t=i(73);!i.i(te.isPopupVisible)(t)&&this.modalVisibility()&&(this.bSkipNextHide||this.isEmptyForm()&&!this.draftUid()?i.i(D.delegateRun)(this,"closeCommand"):i.i(te.showScreenPopup)(t,[i.i(U.i18n)("POPUPS_ASK/DESC_WANT_CLOSE_THIS_WINDOW"),function(){e.modalVisibility()&&i.i(D.delegateRun)(e,"closeCommand")}]))},t.prototype.onBuild=function(){var e=this;this.initUploader(),I()("ctrl+q, command+q, ctrl+w, command+w",M.KeyState.Compose,D.noopFalse),I()("`",M.KeyState.Compose,function(){return!(e.oEditor&&!e.oEditor.hasFocus()&&!i.i(D.inFocus)())||(e.identitiesDropdownTrigger(!0),!1)}),I()("ctrl+`",M.KeyState.Compose,function(){return e.identitiesDropdownTrigger(!0),!1}),I()("esc, ctrl+down, command+down",M.KeyState.Compose,function(){return e.skipCommand(),!1}),this.allowFolders&&I()("ctrl+s, command+s",M.KeyState.Compose,function(){return e.saveCommand(),!1}),X.appSettingsGet("allowCtrlEnterOnCompose")&&I()("ctrl+enter, command+enter",M.KeyState.Compose,function(){return e.sendCommand(),!1}),I()("shift+esc",M.KeyState.Compose,function(){return e.modalVisibility()&&e.tryToClosePopup(),!1}),Z.b("window.resize.real",this.resizerTrigger),Z.b("window.resize.real",A.a.debounce(this.resizerTrigger,M.Magics.Time50ms)),$.a.appendDropbox(),this.driveEnabled()&&N.a.getScript("https://apis.google.com/js/api.js",function(){C.a.gapi&&e.driveVisible(!0)}),C.a.setInterval(function(){e.modalVisibility()&&e.oEditor&&e.oEditor.resize()},M.Magics.Time5s)},t.prototype.driveCallback=function(e,t){var i=this;if(t&&C.a.XMLHttpRequest&&C.a.google&&t[C.a.google.picker.Response.ACTION]===C.a.google.picker.Action.PICKED&&t[C.a.google.picker.Response.DOCUMENTS]&&t[C.a.google.picker.Response.DOCUMENTS][0]&&t[C.a.google.picker.Response.DOCUMENTS][0].id){var n=new C.a.XMLHttpRequest;n.open("GET","https://www.googleapis.com/drive/v2/files/"+t[C.a.google.picker.Response.DOCUMENTS][0].id),n.setRequestHeader("Authorization","Bearer "+e),n.addEventListener("load",function(){if(n&&n.responseText){var t=C.a.JSON.parse(n.responseText),o=function(e,i,n){e&&e.exportLinks&&(e.exportLinks[i]?(t.downloadUrl=e.exportLinks[i],t.title=e.title+"."+n,t.mimeType=i):e.exportLinks["application/pdf"]&&(t.downloadUrl=e.exportLinks["application/pdf"],t.title=e.title+".pdf",t.mimeType="application/pdf"))};if(t&&!t.downloadUrl&&t.mimeType&&t.exportLinks)switch(t.mimeType.toString().toLowerCase()){case"application/vnd.google-apps.document":o(t,"application/vnd.openxmlformats-officedocument.wordprocessingml.document","docx");break;case"application/vnd.google-apps.spreadsheet":o(t,"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","xlsx");break;case"application/vnd.google-apps.drawing":o(t,"image/png","png");break;case"application/vnd.google-apps.presentation":o(t,"application/vnd.openxmlformats-officedocument.presentationml.presentation","pptx");break;default:o(t,"application/pdf","pdf")}t&&t.downloadUrl&&i.addDriveAttachment(t,e)}}),n.send()}},t.prototype.driveCreatePiker=function(e){var t=this;C.a.gapi&&e&&e.access_token&&C.a.gapi.load("picker",{callback:function(){C.a.google&&C.a.google.picker&&(new C.a.google.picker.PickerBuilder).addView(C.a.google.picker.ViewId.DOCS).setAppId(X.settingsGet("GoogleClientID")).setOAuthToken(e.access_token).setCallback(A.a.bind(t.driveCallback,t,e.access_token)).enableFeature(C.a.google.picker.Feature.NAV_HIDDEN).build().setVisible(!0)}})},t.prototype.driveOpenPopup=function(){var e=this;C.a.gapi&&C.a.gapi.load("auth",{callback:function(){var t=C.a.gapi.auth.getToken(),i=function(t){if(t&&!t.error){var i=C.a.gapi.auth.getToken();return i&&e.driveCreatePiker(i),!0}return!1};t?e.driveCreatePiker(t):C.a.gapi.auth.authorize({client_id:X.settingsGet("GoogleClientID"),scope:"https://www.googleapis.com/auth/drive.readonly",immediate:!0},function(e){i(e)||C.a.gapi.auth.authorize({client_id:X.settingsGet("GoogleClientID"),scope:"https://www.googleapis.com/auth/drive.readonly",immediate:!1},i)})}})},t.prototype.getAttachmentById=function(e){return A.a.find(this.attachments(),function(t){return t&&e===t.id})},t.prototype.cancelAttachmentHelper=function(e,t){var n=this;return function(){var o=A.a.find(n.attachments(),function(t){return t&&t.id===e});o&&(n.attachments.remove(o),i.i(D.delegateRunOnDestroy)(o),t&&t.cancel(e))}},t.prototype.initUploader=function(){var e=this;if(this.composeUploaderButton()){var t={},n=i.i(D.pInt)(X.settingsGet("AttachmentLimit")),o=new L.a({action:i.i(x.p)(),name:"uploader",queueSize:2,multipleSizeLimit:50,clickElement:this.composeUploaderButton(),dragAndDropElement:this.composeUploaderDropPlace()});o?(o.on("onDragEnter",function(){e.dragAndDropOver(!0)}).on("onDragLeave",function(){e.dragAndDropOver(!1)}).on("onBodyDragEnter",function(){e.attachmentsPlace(!0),e.dragAndDropVisible(!0)}).on("onBodyDragLeave",function(){e.dragAndDropVisible(!1)}).on("onProgress",function(i,n,o){var a=t[i];a||(a=e.getAttachmentById(i))&&(t[i]=a),a&&a.progress(C.a.Math.floor(n/o*100))}).on("onSelect",function(t,a){e.dragAndDropOver(!1);var r=i.i(D.isUnd)(a.FileName)?"":a.FileName.toString(),s=i.i(D.isNormal)(a.Size)?i.i(D.pInt)(a.Size):null,l=new Q.a(t,r,s);return l.cancel=e.cancelAttachmentHelper(t,o),e.attachments.push(l),e.attachmentsPlace(!0),!(00&&void 0!==arguments[0])||arguments[0]?0===this.attachments().length:0===this.attachmentsInReady().length;return 0===this.to().length&&0===this.cc().length&&0===this.bcc().length&&0===this.replyTo().length&&0===this.subject().length&&e&&(!this.oEditor||""===this.oEditor.getData())},t.prototype.reset=function(){this.to(""),this.cc(""),this.bcc(""),this.replyTo(""),this.subject(""),this.requestDsn(!1),this.requestReadReceipt(!1),this.markAsImportant(!1),this.attachmentsPlace(!1),this.aDraftInfo=null,this.sInReplyTo="",this.bFromDraft=!1,this.sReferences="",this.sendError(!1),this.sendSuccessButSaveError(!1),this.savedError(!1),this.savedTime(0),this.emptyToError(!1),this.attachmentsInProcessError(!1),this.showCc(!1),this.showBcc(!1),this.showReplyTo(!1),i.i(D.delegateRunOnDestroy)(this.attachments()),this.attachments([]),this.dragAndDropOver(!1),this.dragAndDropVisible(!1),this.draftFolder(""),this.draftUid(""),this.sending(!1),this.saving(!1),this.oEditor&&this.oEditor.clear(!1)},t.prototype.getAttachmentsDownloadsForUpload=function(){return A.a.map(A.a.filter(this.attachments(),function(e){return e&&""===e.tempName()}),function(e){return e.id})},t.prototype.resizerTrigger=function(){this.resizer(!this.resizer())},t}(ie.a),n(h.prototype,"sendCommand",[a],m()(h.prototype,"sendCommand"),h.prototype),n(h.prototype,"saveCommand",[r],m()(h.prototype,"saveCommand"),h.prototype),n(h.prototype,"deleteCommand",[s],m()(h.prototype,"deleteCommand"),h.prototype),n(h.prototype,"skipCommand",[l],m()(h.prototype,"skipCommand"),h.prototype),n(h.prototype,"contactsCommand",[c],m()(h.prototype,"contactsCommand"),h.prototype),n(h.prototype,"dropboxCommand",[u],m()(h.prototype,"dropboxCommand"),h.prototype),n(h.prototype,"driveCommand",[d],m()(h.prototype,"driveCommand"),h.prototype),p=h))||p)},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),i.d(t,"EmailModel",function(){return r}),i.d(t,"default",function(){return r});var n=i(0),o=i.n(n),a=i(1),r=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"none",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";o()(this,e),this.email="",this.name="",this.dkimStatus="",this.dkimValue="",this.email=t,this.name=i,this.dkimStatus=n,this.dkimValue=a,this.clearDuplicateName()}return e.newInstanceFromJson=function(t){var i=new e;return i.initByJson(t)?i:null},e.splitHelper=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:";",i=0,n=0,o=!1,a="",r="";for(n=(e=e.replace(/[\r\n]+/g,"; ").replace(/[\s]+/g," ")).length;i0&&void 0!==arguments[0]&&arguments[0]?"":this.name)+"#"+this.email+"#"},e.prototype.clearDuplicateName=function(){this.name===this.email&&(this.name="")},e.prototype.search=function(e){return-1<(this.name+" "+this.email).toLowerCase().indexOf(e.toLowerCase())},e.prototype.parse=function(e){this.clear(),e=i.i(a.trim)(e);var t=/(?:"([^"]+)")? ?[<]?(.*?@[^>,]+)>?,? ?/g.exec(e);t?(this.name=t[1]||"",this.email=t[2]||"",this.clearDuplicateName()):/^[^@]+@[^@]+$/.test(e)&&(this.name="",this.email=e)},e.prototype.initByJson=function(e){var t=!1;return e&&"Object/Email"===e["@Object"]&&(this.name=i.i(a.trim)(e.Name),this.email=i.i(a.trim)(e.Email),this.dkimStatus=i.i(a.trim)(e.DkimStatus||""),this.dkimValue=i.i(a.trim)(e.DkimValue||""),t=""!==this.email,this.clearDuplicateName()),t},e.prototype.toLine=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o="";return""!==this.email&&(e&&""!==this.name?o=t?'")+'" target="_blank" tabindex="-1">'+i.i(a.encodeHtml)(this.name)+" ":n?i.i(a.encodeHtml)(this.name):this.name:(o=this.email,""!==this.name?t?o=i.i(a.encodeHtml)('"'+this.name+'" <')+'")+'" target="_blank" tabindex="-1">'+i.i(a.encodeHtml)(o)+" "+i.i(a.encodeHtml)(">"):(o='"'+this.name+'" <'+o+">",n&&(o=i.i(a.encodeHtml)(o))):t&&(o=''+i.i(a.encodeHtml)(this.email)+" "))),o},e.prototype.mailsoParse=function(e){if(""===(e=i.i(a.trim)(e)))return!1;for(var t=function(e,t,n){var o=(e=i.i(a.pString)(e)).length;return 0>t&&(t+=o),o=void 0===n?o:0>n?n+o:n+t,!(t>=e.length||0>t||t>o)&&e.slice(t,o)},n=function(e,t,n,o){return e=i.i(a.pString)(e),0>n&&(n+=e.length),0>(o=void 0!==o?o:e.length)&&(o=o+e.length-n),e.slice(0,n)+t.substr(0,o)+t.slice(o)+e.slice(n+o)},o="",r="",s="",l=!1,c=!1,u=!1,d=null,p=0,h=0,f=0;f":c&&(r=t(e,p+1,(h=f)-p-1),e=n(e,"",p,h-p+1),h=0,f=0,p=0,c=!1);break;case"(":l||c||u||(u=!0,p=f);break;case")":u&&(s=t(e,p+1,(h=f)-p-1),e=n(e,"",p,h-p+1),h=0,f=0,p=0,u=!1);break;case"\\":f+=1}f+=1}return 0===r.length&&((d=e.match(/[^@\s]+@\S+/i))&&d[0]?r=d[0]:o=e),0]+$/,""),o=i.i(a.trim)(o).replace(/^["']+/,"").replace(/["']+$/,""),s=i.i(a.trim)(s).replace(/^[(]+/,"").replace(/[)]+$/,""),o=o.replace(/\\\\(.)/g,"$1"),s=s.replace(/\\\\(.)/g,"$1"),this.name=o,this.email=r,this.clearDuplicateName(),!0},e}()},function(e,t,i){"use strict";var n=i(0),o=i.n(n),a=i(11),r=i.n(a),s=i(6),l=i.n(s),c=i(2),u=i(12),d=i.n(u),p=i(3),h=i(1),f=i(23),m=i(20),g=i(7),b=i(14),y=i(8),v=i(35),S=i(179),w=i(209),T=i(9),C=i(28),E=i(46),A=i(30),F=i(49),N=i(40),R=i(121),_=i(16),I=i(18),P=function(){function e(){o()(this,e),this.staticMessage=new w.a,this.messageList=c.a.observableArray([]).extend({rateLimit:0}),this.messageListCount=c.a.observable(0),this.messageListSearch=c.a.observable(""),this.messageListThreadUid=c.a.observable(""),this.messageListPage=c.a.observable(1),this.messageListPageBeforeThread=c.a.observable(1),this.messageListError=c.a.observable(""),this.messageListEndFolder=c.a.observable(""),this.messageListEndSearch=c.a.observable(""),this.messageListEndThreadUid=c.a.observable(""),this.messageListEndPage=c.a.observable(1),this.messageListLoading=c.a.observable(!1),this.messageListIsNotCompleted=c.a.observable(!1),this.messageListCompleteLoadingThrottle=c.a.observable(!1).extend({throttle:200}),this.messageListCompleteLoadingThrottleForAnimation=c.a.observable(!1).extend({specialThrottle:700}),this.messageListDisableAutoSelect=c.a.observable(!1).extend({falseTimeout:500}),this.selectorMessageSelected=c.a.observable(null),this.selectorMessageFocused=c.a.observable(null),this.message=c.a.observable(null),this.message.viewTrigger=c.a.observable(!1),this.messageError=c.a.observable(""),this.messageCurrentLoading=c.a.observable(!1),this.messageLoadingThrottle=c.a.observable(!1).extend({throttle:p.Magics.Time50ms}),this.messageFullScreenMode=c.a.observable(!1),this.messagesBodiesDom=c.a.observable(null),this.messageActiveDom=c.a.observable(null),this.computers(),this.subscribers(),this.onMessageResponse=l.a.bind(this.onMessageResponse,this),this.purgeMessageBodyCacheThrottle=l.a.throttle(this.purgeMessageBodyCache,p.Magics.Time30s)}return e.prototype.computers=function(){var e=this;this.messageLoading=c.a.computed(function(){return e.messageCurrentLoading()}),this.messageListEndHash=c.a.computed(function(){return e.messageListEndFolder()+"|"+e.messageListEndSearch()+"|"+e.messageListEndThreadUid()+"|"+e.messageListEndPage()}),this.messageListPageCount=c.a.computed(function(){var t=r.a.Math.ceil(e.messageListCount()/N.a.messagesPerPage());return 0>=t?1:t}),this.mainMessageListSearch=c.a.computed({read:this.messageListSearch,write:function(t){i.i(T.setHash)(i.i(b.j)(A.a.currentFolderFullNameHash(),1,i.i(h.trim)(t.toString()),e.messageListThreadUid()))}}),this.messageListCompleteLoading=c.a.computed(function(){var t=e.messageListLoading(),i=e.messageListIsNotCompleted();return t||i}),this.isMessageSelected=c.a.computed(function(){return null!==e.message()}),this.messageListChecked=c.a.computed(function(){return l.a.filter(e.messageList(),function(e){return e.checked()})}).extend({rateLimit:0}),this.hasCheckedMessages=c.a.computed(function(){return 0i.data("rl-cache-count")&&(i.addClass("rl-cache-purge"),e+=1)}),02&&void 0!==arguments[2]?arguments[2]:"",a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];t=l.a.map(t,function(e){return i.i(h.pInt)(e)});var r=0,s=this.messageList(),c=this.message(),u=A.a.trashFolder(),d=A.a.spamFolder(),m=i.i(f.d)(e),g=""===o?null:i.i(f.d)(o||""),y=A.a.currentFolderFullNameRaw()===e?l.a.filter(s,function(e){return e&&-1 ').insertBefore(e).on("click.rlBlockquoteSwitcher",function(){e.toggleClass("hidden-bq"),i.i(h.windowResize)()}).after(" ").before(" "))})}},e.prototype.initOpenPgpControls=function(e,t){e&&e.find&&e.find(".b-plain-openpgp:not(.inited)").each(function(){F.a.initMessageBodyControls(d()(this),t)})},e.prototype.setMessage=function(e,t){var n=!1,o=null,a="",r="",s="",c=!1,u=this.messagesBodiesDom(),m=this.selectorMessageSelected(),b=this.message();if(e&&b&&e.Result&&"Object/Message"===e.Result["@Object"]&&b.folderFullNameRaw===e.Result.Folder){var y=b.threads();if(b.uid!==e.Result.Uid&&1').text(r)).html():T&&b.isPgpEncrypted()?g.$div.append(d()(' ').text(r)).html():""+s+" ",g.$div.empty(),b.isPgpSigned(c),b.isPgpEncrypted(T)}else s=""+s+" ";else S=!1,s=""+s+" ";g.data.iMessageBodyCacheCount+=1,(o=d()('
').hide().addClass("rl-cache-class")).data("rl-cache-count",g.data.iMessageBodyCacheCount),o.html(i.i(h.findEmailAndLinks)(s)).addClass("b-text-part "+(S?"html":"plain")),b.isHtml(!!S),b.hasImages(!!e.Result.HasExternals),b.body=o,b.body&&u.append(b.body),b.storeDataInDom(),e.Result.HasInternals&&b.showInternalImages(!0),b.hasImages()&&N.a.showImages()&&b.showExternalImages(!0),this.purgeMessageBodyCacheThrottle()}this.messageActiveDom(b.body),this.hideMessageBodies(),o&&(this.initOpenPgpControls(o,b),this.initBlockquoteSwitcher(o)),b.body.show()}i.i(f.a)(b),(b.unseen()||b.hasUnseenSubMessage())&&i.i(_.a)().messageListAction(b.folderFullNameRaw,p.MessageSetAction.SetSeen,[b]),n&&(b=this.message(),m&&b&&(b.folderFullNameRaw!==m.folderFullNameRaw||b.uid!==m.uid)?(this.selectorMessageSelected(null),1===this.messageList().length&&this.selectorMessageFocused(null)):!m&&b&&(m=l.a.find(this.messageList(),function(e){return e&&e.folderFullNameRaw===b.folderFullNameRaw&&e.uid===b.uid}))&&(this.selectorMessageSelected(m),this.selectorMessageFocused(m))),i.i(h.windowResize)()}}},e.prototype.selectMessage=function(e){e?(this.message(this.staticMessage.populateByMessageListItem(e)),this.populateMessageBody(this.message())):this.message(null)},e.prototype.selectMessageByFolderAndUid=function(e,t){e&&t?(this.message(this.staticMessage.populateByMessageListItem(null)),this.message().folderFullNameRaw=e,this.message().uid=t,this.populateMessageBody(this.message())):this.message(null)},e.prototype.populateMessageBody=function(e){e&&I.a.message(this.onMessageResponse,e.folderFullNameRaw,e.uid)&&this.messageCurrentLoading(!0)},e.prototype.onMessageResponse=function(e,t,n){this.hideMessageBodies(),this.messageCurrentLoading(!1),p.StorageResultType.Success===e&&t&&t.Result?this.setMessage(t,n):p.StorageResultType.Unload===e?(this.message(null),this.messageError("")):p.StorageResultType.Abort!==e&&(this.message(null),this.messageError(t&&t.ErrorCode?i.i(y.getNotification)(t.ErrorCode):i.i(y.getNotification)(p.Notification.UnknownError)))},e.prototype.calculateMessageListHash=function(e){return l.a.map(e,function(e){return e.hash+"_"+e.threadsLen()+"_"+e.flagHash()}).join("|")},e.prototype.setMessageList=function(e,t){if(e&&e.Result&&"Collection/MessageCollection"===e.Result["@Object"]&&e.Result["@Collection"]&&i.i(h.isArray)(e.Result["@Collection"])){var n=0,o=!1,a=[],s=i.i(v.momentNowUnix)(),c=i.i(h.pInt)(e.Result.MessageResultCount),u=i.i(h.pInt)(e.Result.Offset),d=i.i(f.d)(i.i(h.isNormal)(e.Result.Folder)?e.Result.Folder:"");d&&!t&&(d.interval=s,i.i(f.b)(e.Result.Folder,e.Result.FolderHash),i.i(h.isNormal)(e.Result.MessageCount)&&d.messageCountAll(e.Result.MessageCount),i.i(h.isNormal)(e.Result.MessageUnseenCount)&&(i.i(h.pInt)(d.messageCountUnread())!==i.i(h.pInt)(e.Result.MessageUnseenCount)&&(o=!0),d.messageCountUnread(e.Result.MessageUnseenCount)),this.initUidNextAndNewMessages(d.fullNameRaw,e.Result.UidNext,e.Result.NewMessages)),o&&d&&i.i(f.e)(d.fullNameRaw),l.a.each(e.Result["@Collection"],function(e){if(e&&"Object/Message"===e["@Object"]){var o=w.a.newInstanceFromJson(e);o&&(i.i(f.u)(o.folderFullNameRaw,o.uid)&&5>=n&&(n+=1,o.newForAnimation(!0)),o.deleted(!1),t?i.i(f.a)(o):i.i(f.n)(o),a.push(o))}}),this.messageListCount(c),this.messageListSearch(i.i(h.isNormal)(e.Result.Search)?e.Result.Search:""),this.messageListPage(r.a.Math.ceil(u/N.a.messagesPerPage()+1)),this.messageListThreadUid(i.i(h.isNormal)(e.Result.ThreadUid)?i.i(h.pString)(e.Result.ThreadUid):""),this.messageListEndFolder(i.i(h.isNormal)(e.Result.Folder)?e.Result.Folder:""),this.messageListEndSearch(this.messageListSearch()),this.messageListEndThreadUid(this.messageListThreadUid()),this.messageListEndPage(this.messageListPage()),this.messageListDisableAutoSelect(!0),this.messageList(a),this.messageListIsNotCompleted(!1),i.i(f.v)(),d&&(t||o||N.a.useThreads())&&i.i(_.a)().folderInformation(d.fullNameRaw,a)}else this.messageListCount(0),this.messageList([]),this.messageListError(i.i(y.getNotification)(e&&e.ErrorCode?e.ErrorCode:p.Notification.CantGetMessageList))},e}();t.a=new P},function(e,t,i){"use strict";var n=i(0),o=i.n(n),a=i(11),r=i.n(a),s=i(2),l=i(20),c=i(3),u=i(7),d=i(1),p=i(29),h=i(10),f=function(){function e(){o()(this,e),this.iAutoLogoutTimer=0,this.layout=s.a.observable(c.Layout.SidePreview).extend({limitedList:[c.Layout.SidePreview,c.Layout.BottomPreview,c.Layout.NoPreview]}),this.editorDefaultType=s.a.observable(c.EditorDefaultType.Html).extend({limitedList:[c.EditorDefaultType.Html,c.EditorDefaultType.Plain,c.EditorDefaultType.HtmlForced,c.EditorDefaultType.PlainForced]}),this.messagesPerPage=s.a.observable(l.l).extend({limitedList:l.i}),this.showImages=s.a.observable(!1),this.useCheckboxesInList=s.a.observable(!0),this.useThreads=s.a.observable(!1),this.replySameFolder=s.a.observable(!1),this.autoLogout=s.a.observable(c.Magics.Time30mInMin),this.computers(),this.subscribers()}return e.prototype.computers=function(){var e=this;this.usePreviewPane=s.a.computed(function(){return c.Layout.NoPreview!==e.layout()})},e.prototype.subscribers=function(){this.layout.subscribe(function(e){u.$html.toggleClass("rl-no-preview-pane",c.Layout.NoPreview===e),u.$html.toggleClass("rl-side-preview-pane",c.Layout.SidePreview===e),u.$html.toggleClass("rl-bottom-preview-pane",c.Layout.BottomPreview===e),p.a("layout",[e])})},e.prototype.populate=function(){var e=this;this.layout(i.i(d.pInt)(h.settingsGet("Layout"))),this.editorDefaultType(h.settingsGet("EditorDefaultType")),this.autoLogout(i.i(d.pInt)(h.settingsGet("AutoLogout"))),this.messagesPerPage(h.settingsGet("MPP")),this.showImages(!!h.settingsGet("ShowImages")),this.useCheckboxesInList(!!h.settingsGet("UseCheckboxesInList")),this.useThreads(!!h.settingsGet("UseThreads")),this.replySameFolder(!!h.settingsGet("ReplySameFolder")),p.b("rl.auto-logout-refresh",function(){r.a.clearTimeout(e.iAutoLogoutTimer),0 ').attr("title",i.i(u.i18n)("MESSAGE/PGP_ENCRYPTED_MESSAGE_DESC")).on("click",e.domControlEncryptedClickHelper(this,t,l,r)):a&&(s=c()('
').attr("title",i.i(u.i18n)("MESSAGE/PGP_SIGNED_MESSAGE_DESC")).on("click",e.domControlSignedClickHelper(this,t,l))),s&&t.before(s).before("
")}}},e}();t.a=new f},function(e,t,i){var n=i(89),o=i(59);e.exports=Object.keys||function(e){return n(e,o)}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var i=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++i+n).toString(36))}},function(e,t,i){"use strict";var n=i(0),o=i.n(n),a=i(2),r=i(1),s=i(10),l=function(){function e(){o()(this,e),this.languages=a.a.observableArray([]),this.languagesAdmin=a.a.observableArray([]),this.language=a.a.observable("").extend({limitedList:this.languages}).extend({reversible:!0}),this.languageAdmin=a.a.observable("").extend({limitedList:this.languagesAdmin}).extend({reversible:!0}),this.userLanguage=a.a.observable(""),this.userLanguageAdmin=a.a.observable("")}return e.prototype.populate=function(){var e=s.appSettingsGet("languages"),t=s.appSettingsGet("languagesAdmin");this.languages(i.i(r.isArray)(e)?e:[]),this.languagesAdmin(i.i(r.isArray)(t)?t:[]),this.language(s.settingsGet("Language")),this.languageAdmin(s.settingsGet("LanguageAdmin")),this.userLanguage(s.settingsGet("UserLanguage")),this.userLanguageAdmin(s.settingsGet("UserLanguageAdmin"))},e}();t.a=new l},function(e,t,i){"use strict";var n=i(0),o=i.n(n),a=i(11),r=i.n(a),s=i(2),l=i(12),c=i.n(l),u=i(10),d=function(){function e(){var t=this;o()(this,e),this.google={},this.twitter={},this.facebook={},this.dropbox={},this.google.enabled=s.a.observable(!1),this.google.clientID=s.a.observable(""),this.google.clientSecret=s.a.observable(""),this.google.apiKey=s.a.observable(""),this.google.loading=s.a.observable(!1),this.google.userName=s.a.observable(""),this.google.loggined=s.a.computed(function(){return""!==t.google.userName()}),this.google.capa={},this.google.capa.auth=s.a.observable(!1),this.google.capa.authFast=s.a.observable(!1),this.google.capa.drive=s.a.observable(!1),this.google.capa.preview=s.a.observable(!1),this.google.require={},this.google.require.clientSettings=s.a.computed(function(){return t.google.enabled()&&(t.google.capa.auth()||t.google.capa.drive())}),this.google.require.apiKeySettings=s.a.computed(function(){return t.google.enabled()&&t.google.capa.drive()}),this.facebook.enabled=s.a.observable(!1),this.facebook.appID=s.a.observable(""),this.facebook.appSecret=s.a.observable(""),this.facebook.loading=s.a.observable(!1),this.facebook.userName=s.a.observable(""),this.facebook.supported=s.a.observable(!1),this.facebook.loggined=s.a.computed(function(){return""!==t.facebook.userName()}),this.twitter.enabled=s.a.observable(!1),this.twitter.consumerKey=s.a.observable(""),this.twitter.consumerSecret=s.a.observable(""),this.twitter.loading=s.a.observable(!1),this.twitter.userName=s.a.observable(""),this.twitter.loggined=s.a.computed(function(){return""!==t.twitter.userName()}),this.dropbox.enabled=s.a.observable(!1),this.dropbox.apiKey=s.a.observable("")}return e.prototype.populate=function(){this.google.enabled(!!u.settingsGet("AllowGoogleSocial")),this.google.clientID(u.settingsGet("GoogleClientID")),this.google.clientSecret(u.settingsGet("GoogleClientSecret")),this.google.apiKey(u.settingsGet("GoogleApiKey")),this.google.capa.auth(!!u.settingsGet("AllowGoogleSocialAuth")),this.google.capa.authFast(!!u.settingsGet("AllowGoogleSocialAuthFast")),this.google.capa.drive(!!u.settingsGet("AllowGoogleSocialDrive")),this.google.capa.preview(!!u.settingsGet("AllowGoogleSocialPreview")),this.facebook.enabled(!!u.settingsGet("AllowFacebookSocial")),this.facebook.appID(u.settingsGet("FacebookAppID")),this.facebook.appSecret(u.settingsGet("FacebookAppSecret")),this.facebook.supported(!!u.settingsGet("SupportedFacebookSocial")),this.twitter.enabled=s.a.observable(!!u.settingsGet("AllowTwitterSocial")),this.twitter.consumerKey=s.a.observable(u.settingsGet("TwitterConsumerKey")),this.twitter.consumerSecret=s.a.observable(u.settingsGet("TwitterConsumerSecret")),this.dropbox.enabled(!!u.settingsGet("AllowDropboxSocial")),this.dropbox.apiKey(u.settingsGet("DropboxApiKey"))},e.prototype.appendDropbox=function(){if(!r.a.Dropbox&&this.dropbox.enabled()&&this.dropbox.apiKey()&&!r.a.document.getElementById("dropboxjs")){var e=r.a.document.createElement("script");e.type="text/javascript",e.src="https://www.dropbox.com/static/api/2/dropins.js",c()(e).attr("id","dropboxjs").attr("data-app-key",this.dropbox.apiKey()),r.a.document.body.appendChild(e)}},e}();t.a=new d},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i.n(n),a=i(5),r=i.n(a),s=i(4),l=i.n(s),c=i(17),u=function(e){function t(){return o()(this,t),r()(this,e.apply(this,arguments))}return l()(t,e),t}(i(77).a);t.default=i.i(c.a)(u,"CheckboxComponent")},,function(e,t,i){"use strict";var n=i(0),o=i.n(n),a=i(2),r=i(1),s=i(10),l=function(){function e(){o()(this,e),this.themes=a.a.observableArray([]),this.themeBackgroundName=a.a.observable(""),this.themeBackgroundHash=a.a.observable(""),this.theme=a.a.observable("").extend({limitedList:this.themes})}return e.prototype.populate=function(){var e=s.appSettingsGet("themes");this.themes(i.i(r.isArray)(e)?e:[]),this.theme(s.settingsGet("Theme")),this.themeBackgroundName(s.settingsGet("UserBackgroundName")),this.themeBackgroundHash(s.settingsGet("UserBackgroundHash"))},e}();t.a=new l},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){e.exports={}},function(e,t){e.exports=!0},function(e,t,i){var n=i(41),o=i(145),a=i(59),r=i(66)("IE_PROTO"),s=function(){},l=function(){var e,t=i(84)("iframe"),n=a.length;for(t.style.display="none",i(138).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("