diff --git a/extensions/mail/mail.min.css b/extensions/mail/mail.min.css index 2bc9eb659..68bb14ad8 100644 --- a/extensions/mail/mail.min.css +++ b/extensions/mail/mail.min.css @@ -4,4 +4,4 @@ * Copyright Ilia Rostovtsev * Licensed under MIT (https://github.com/authentic-theme/authentic-theme/blob/master/LICENSE) */ -aside .fancytree-statusnode-nodata span.fancytree-expander,aside .fancytree-statusnode-nodata span.fancytree-icon,aside span.fancytree-node span.fancytree-icon,aside span.fancytree-node span.fancytree-icon:after{display:none}aside .fancytree-container.fancytree-treefocus span.fancytree-node.fancytree-active,aside .fancytree-container.fancytree-treefocus span.fancytree-node.fancytree-focused{border-color:transparent;background-color:transparent}aside ul.fancytree-container{font-size:14px;margin-top:0 !important;padding-top:2px;border-style:none;background-color:transparent}aside#sidebar .fancytree-container ul[role="group"]{margin-left:8px}aside ul.fancytree-container mark{padding-right:0;padding-left:0}aside span.fancytree-node{cursor:pointer;border-radius:0}aside span.fancytree-title{margin-left:-4px}aside span.fancytree-title .label{font-size:65%;line-height:8px;position:absolute;margin-top:-1px;margin-left:3px;padding-right:4px;padding-left:3px;border-radius:10px}aside span.fancytree-node.fancytree-active{font-weight:500;background-color:transparent}aside span.fancytree-node span.fancytree-expander:after{color:#e8433f}aside span.fancytree-node span.fancytree-expander:after,aside span.fancytree-node span.fancytree-icon:after,aside span.fancytree-node.fancytree-active span.fancytree-icon:after{font-family:Authentic;font-size:14px}aside span.fancytree-node{margin-top:0;margin-bottom:0;padding-top:2px;padding-bottom:2px}aside span.fancytree-node.fancytree-has-children span.fancytree-expander:after{content:"\f088"}aside span.fancytree-node.fancytree-expanded.fancytree-has-children span.fancytree-expander:after{content:"\f085"}aside .fancytree-statusnode-nodata{text-align:center}aside .fancytree-statusnode-nodata .fancytree-title{margin-left:0}aside span.fancytree-expander{margin-top:1px}aside table.fancytree-ext-table.fancytree-treefocus tbody tr.fancytree-focused span.fancytree-title{outline:0}aside .fancytree-container.fancytree-treefocus span.fancytree-node:not(.fancytree-active):hover{background:0}aside [data-mail-folders] .mCustomScrollBox{height:42vh}aside [data-mail-folders] .mCustomScrollBox+.mCSB_scrollTools{right:8px}@media(pointer:coarse),(-moz-touch-enabled:1){aside [data-mail-folders] .mCustomScrollBox+.mCSB_scrollTools{right:16px}}aside .mCustomScrollBox{padding-bottom:0}aside [data-mail-folders] .mCustomScrollBox+.mCSB_scrollTools+.mCSB_scrollTools.mCSB_scrollTools_horizontal{bottom:-12px !important}aside>.mCSB_scrollTools{visibility:hidden}aside span.fancytree-node span.fancytree-expander:after,aside span.fancytree-title{color:rgb(245 240 255 / 98%)}aside .fancytree-container .fancytree-node.fancytree-active span.fancytree-title,aside .fancytree-container.fancytree-treefocus span.fancytree-node:hover .fancytree-title,aside .fancytree-container.fancytree-treefocus span.fancytree-node:not(.fancytree-active):hover,aside span.fancytree-node.fancytree-active span.fancytree-expander:after{color:#fff}.mailbox .container-fluid .panel-body{background-color:#fff;overflow:visible}html[data-bgs="nightRider"] .mailbox .container-fluid .panel-body{background-color:#27282c}.mailbox .mail-list-srow span,.mailbox .mail-list-trow-container{display:block}.mailbox .mail-list-mrow{float:left}.mailbox .mail-list-mrow.mail-list-mrow-subject i{margin-right:5px;opacity:.5}.mailbox .row-messages{overflow-x:auto}.mailbox .row-messages table td:nth-child(5){line-height:24px;overflow:hidden;padding-top:0;padding-bottom:4px !important}.mailbox .mail-list-mrow.mail-list-mrow-subject{width:auto;height:20px;margin-right:4px;margin-top:-2px}.mailbox .mail-list-mrow.mail-list-mrow-preview{display:flex;float:unset;overflow:hidden;height:20px;opacity:.7}.mailbox tr[data-unread="1"] span{font-weight:600}.mailbox .mail-list-trow-from a,.mailbox .mail-list-trow-to a{color:initial}.mailbox .mail-list-trow-to i{margin:0 3px;color:#0d770d}.mailbox tr span.mail-list-mrow-preview{font-weight:300}.mailbox .mail-list-trow-flag-security{font-size:11px;visibility:hidden;margin:2px 10px 0 4px;cursor:help;border:1px solid transparent}.mailbox .mail-list-trow-flag-security:hover{border-color:rgba(103,103,103,0.21);border-radius:2px}.mailbox tr:hover .mail-list-trow-flag-security{visibility:visible}.mailbox .tooltip-inner{max-width:none}.mailbox .tooltip-inner .table.table-message-details{width:auto;max-width:20vw;margin:10px !important}.mailbox .tooltip-inner .table.table-message-details tbody tr td:first-child{text-align:right;vertical-align:top;white-space:nowrap;opacity:.6}.mailbox .tooltip-inner .table.table-message-details tbody tr td:last-child{padding-left:15px;text-align:left;white-space:nowrap}.mailbox tr span.mail-list-frow-container,.mailbox tr span.mail-list-srow-container{display:block;padding:0 5px}.mailbox tr span.mail-list-frow-container{padding:0 2px 0 15px}.mailbox .mail-list-trow-flags,.mailbox tr span.mail-list-mrow-date,.mailbox tr span.mail-list-brow-size{white-space:nowrap}.mailbox .mail-list-brow-size{text-align:right}.mailbox .row-messages table td{font-size:13.8px;letter-spacing:.1px;vertical-align:middle}.mailbox .mail-list-mrow.mail-list-mrow-preview{font-size:13px}.mailbox .row-messages table:not(.table-message-details) td:nth-child(1),.mailbox .row-messages table:not(.table-message-details) td:nth-child(2),.mailbox .row-messages table:not(.table-message-details) td:nth-child(3){min-width:34px;width:34px;text-align:center !important}.mailbox .row-messages table td.ui_checked_checkbox:nth-child(1){width:41px !important;min-width:41px !important;max-width:41px !important}.mailbox .row-messages table td:nth-child(4) span.mail-list-drow-container,.mailbox .row-messages table td:nth-child(5) span.mail-list-drow-container{white-space:nowrap}.mailbox .row-messages table td:nth-child(5){width:100%}.mailbox .row-messages table td span.mail-list-srow-container{margin-top:1px}.mailbox .row-messages table td:nth-child(4) span.mail-list-drow-container span{margin-top:0}.mailbox .row-messages table td:nth-child(6){width:.5%;text-align:right !important}.mailbox .row-messages table td:nth-child(6) i{font-size:16px;padding:0 5px 0 0}.mailbox .row-messages table td:nth-child(6) i:first-child+i{font-size:15px}.mailbox .row-messages table td:nth-child(3) i{font-size:17px}.mailbox .row-messages table td:nth-child(6) i:last-child{font-size:18px !important}.mailbox .row-messages table td:nth-child(3) i.fa-star-o{color:rgba(170,170,170,0.425)}.mailbox .row-messages table td:nth-child(3) i.fa-star,.mailbox .row-messages table td:nth-child(3) i.fa-star-o:hover{color:#eabd35}.mailbox .row-messages table td:nth-child(3) i.fa-star:hover{color:rgba(170,170,170,0.425)}.mailbox .row-messages table td.ui_checked_checkbox+td .star,.mailbox .row-messages table td.ui_checked_checkbox+td+td .star{cursor:default;margin-top:-1px}.mailbox .row-messages table td:nth-child(7){width:.5%}.mailbox .row-messages table td:nth-child(7) span{float:right !important}.mailbox .row-controls .col-xs-6:last-child,.mailbox .row-controls .dropdown-sort .dropdown-menu a{text-align:right}.mailbox .mail-list-avatar{display:inline-block;min-width:28px;min-height:30px}.mailbox .mail-list-avatar img{border-radius:50%;width:30px;height:30px}.mailbox .row-messages table:not(.table-message-details) td[data-blank="1"],.mailbox .mail-list-avatar[data-blank="1"] img[src*="d=blank"]{min-width:1px;max-width:1px;width:1px;height:1px}.mailbox .row-messages table:not(.table-message-details) td[data-blank="1"]+td i{text-align:left}.mailbox .mail-list-avatar img[src*="d=blank"]{visibility:hidden}.mailbox .row-controls [class*="dropdown"]>span.btn,.mailbox .row-controls [class*="dropdown"]>button{display:inline-block}.mailbox .row-controls .dropdown-select>button>.caret,.mailbox .row-controls .dropdown-search>button>.fa::before{position:relative;top:-1px}.mailbox .row-messages .table-striped>tbody>tr{background-color:#f9f9f9}.mailbox .row.row-controls [data-refresh="1"]{font-size:17.5px !important;height:32px;margin-left:4px;padding:0 9px !important}.mailbox .mail-controls:not(.hidden)~*{display:none}.mailbox .mail-controls{display:inline-block;margin-right:4px;margin-left:4px}.mailbox .row [data-form-control="delete"],.mailbox .row [data-form-control="forward"]{margin-left:-1px;padding:8px 12px !important}.mailbox .row [data-form-control="delete"]{float:left;margin-left:0}.mailbox .row [data-form-control="delete"]:before{color:rgba(169,68,65,0.9)}.mailbox .row [data-form-control="forward"]{float:left;margin-right:5px}.mailbox .row .dropdown-menu li>a,.mailbox .row .dropdown-menu>li>span{font-size:13.8px;cursor:pointer}.mailbox .row-controls .dropdown-search li>span,.mailbox .row-controls .dropdown-move li>span,.mailbox .row-controls .dropdown-select>span.btn{cursor:default}.mailbox .row-controls .dropdown-menu>li.divider{margin-top:5px;margin-bottom:5px}.mailbox .row .dropdown-more{margin-left:4px}.mailbox .row-controls .dropdown-select button{padding:5px 10px !important}.mailbox .row-controls .dropdown-select>span:first-child{padding:5px 9px 4px 13px !important}.mailbox .awcheckbox[data-select="1"] label::before{border-width:2px;border-radius:2px}.mailbox .panel-mail .row.text-center i.fa2-email-open{font-size:21px;opacity:.4}.mailbox .row-controls .mail-controls .fa-trash{padding:8px 13px !important}.mailbox .row-controls .dropdown-more button{padding:5px 11px !important}.mailbox .row-controls .dropdown-sort button{padding:5px 9px !important}.mailbox .row-controls .dropdown-sort>button.dropdown-toggle,.mailbox .row-controls .dropdown-sort>span:first-child{font-size:13px;line-height:18px;padding:6px 9px !important;text-transform:lowercase}html[data-bgs="nightRider"] .mailbox .row-controls .dropdown-select>span:first-child,html[data-bgs="nightRider"] .mailbox .row-controls .dropdown-sort>span:first-child{margin-right:-1px}.mailbox .row-controls .dropdown-sort{margin-left:4px}.mailbox .row-controls .dropdown-sort .dropdown-toggle{line-height:18px}.mailbox .row-controls .dropdown-sort .dropdown-menu a i{font-size:13px;float:left;margin-top:3px}.mailbox .row-controls .dropdown-search .dropdown-menu li:first-child,.mailbox .row-controls .dropdown-search .pull-left,.mailbox .row-controls .dropdown-move .dropdown-menu li:first-child,.mailbox .row-controls .dropdown-move .pull-left{margin-top:5px}.mailbox .row-controls .dropdown-search li>span:hover,.mailbox .row-controls .dropdown-move li>span:hover{background-color:transparent}.mailbox .row-controls .dropdown-search li>span.show:first-child:not([data-form-action-type="submit"]):not([data-form-action-type="simple"]){display:flex !important}.mailbox .row-controls .dropdown-search li>span .select2{width:100% !important}.mailbox .row-controls .dropdown-move li>span .select2{width:25vw !important;min-width:100%;max-width:25vw}.mailbox .row-controls .dropdown-search .pull-right,.mailbox .row-controls .dropdown-move .pull-right{margin-bottom:9px}.mailbox .row-controls .dropdown-search .dropdown-menu li>span,.mailbox .row-controls .dropdown-move .dropdown-menu li>span{padding:5px 15px}.mailbox span.select2-dropdown.select2-content.h34.select2-dropdown--below{font-size:13.8px}.mailbox .select2-dropdown.select2-content.h34 .select2-search input{font-size:13.8px;height:27px;padding:2px 3px 4px 6px}.mailbox span.select2-dropdown.select2-content.h34.select2-dropdown--below .select2-results__option:empty{display:none}.mailbox .row-controls li{font-size:13.8px;letter-spacing:.1px}.mailbox .row-controls .dropdown-search .search-clear:focus,.mailbox .row-controls .dropdown-search .search-clear:active,.mailbox .row-controls .dropdown-search .search-clear:hover{text-decoration:line-through}.mailbox .row-controls .dropdown-search li span.awcheckbox label:not(.lawobject),.mailbox .row-controls .dropdown-move li span.awcheckbox label:not(.lawobject){font-weight:400;padding-top:2px;padding-left:10px}.mailbox[data-browser="firefox"] .table-mail-listing .ui_checked_columns .ui_checked_checkbox .awcheckbox label::after{top:7px}.mailbox .row-controls .open:not(.dropdown-select) span.awobject label{font-weight:400;padding-left:5px}.mailbox .row-controls .dropdown-search.open [data-form-action-advanced="1"]:not(.show){display:none !important}.mailbox .row-controls .dropdown-search.open [data-form-action-type="simple"]{margin-top:10px;margin-bottom:8px}.mailbox .row-controls .dropdown-search.open [data-form-action-type="simple"] button{margin-left:-36px;text-decoration:none}.mailbox .row-controls .dropdown-search.open [data-form-action="search"]:not([data-form-action-type="simple"]){padding-left:18px;padding-right:16px}.mailbox .row-controls .dropdown-search.open [data-toggle-type="1"]{padding:0}.mailbox .row-controls .dropdown-search.open [data-toggle-type="1"] i{padding:10px 12px}.mailbox .row-controls .dropdown-search.open ul{min-width:50vh}.mailbox .row-controls .dropdown-search.open input:not(.iawobject){width:100%}.mailbox .row-controls .dropdown-search.open [data-form-action="search"] input[data-search-mail="1"]{min-height:36px;font-size:15px !important}.mailbox .row-controls .dropdown-search.open [data-form-action="search"] .col-xs-3{padding-left:2px}.mailbox .row-controls .dropdown-search.open [data-form-action="search"] .col-xs-3 label{font-weight:400;margin-top:8px;opacity:.8}.mailbox .row-controls .dropdown-search.open [data-form-action="search"] .col-xs-9{padding-right:0}.mailbox .row-controls .dropdown-search.open [data-form-action="search"] .col-xs-9 input:not(.iawobject){border-top-color:transparent !important;border-right-color:transparent !important;border-left-color:transparent !important;padding-left:6px;font-size:14px}.mailbox .row-controls .dropdown-search.open [data-form-action="search"] span.awobject label{font-weight:400;line-height:17px}.mailbox .row-controls .dropdown-search.open [data-form-action="search"] .col-xs-9 span.awobject{margin-left:15px;margin-top:7px;vertical-align:text-top}.mailbox .row-controls .dropdown-search.open [data-form-action="search"] .col-xs-9 span.awobject:first-child{margin-left:5px}.mailbox .row-controls .dropdown-search.open [data-form-action="search"] .col-xs-9 select{width:100%}.mailbox .row .dropdown-search{margin-left:4px}.mailbox .row-controls .dropdown-search.open .select2-content.select2-selection--single[aria-expanded="false"],.mailbox .row-controls .dropdown-search.open .select2-content[aria-expanded="false"]{border-top-color:transparent !important;border-right-color:transparent !important;border-left-color:transparent !important}.mailbox .row-controls .dropdown-search.open [data-form-action-type="search-in"]{padding-top:10px}.mailbox .row-controls .dropdown-search.open [data-form-action-type="limit"] input[type="number"]{width:50px;vertical-align:text-top;margin-top:-5px}.mailbox .row-controls .dropdown-search.open [data-form-action-type="limit"] input[type="number"]::-webkit-outer-spin-button,.mailbox .row-controls .dropdown-search.open [data-form-action-type="limit"] input[type="number"]::-webkit-inner-spin-button{opacity:1}.mailbox .row-controls .dropdown-search.open [data-form-action-type="attach"]:not([data-form-action-type="simple"]){padding:20px 20px 0 20px}.mailbox .row-controls .dropdown-search.open [data-form-action-type="submit"]{padding-bottom:42px}.mailbox .row-controls .dropdown-search.open [data-form-action-type="submit"] button{float:left}.mailbox .row-controls .dropdown-search.open [data-form-action-type="submit"] button.btn-primary{float:right}.mailbox .row-controls .mail-selected-count{display:inline-block;margin-left:10px}.mailbox .row-controls .pagination-title{color:#222}.mailbox .row-controls .pagination-title[href]:hover{margin-right:-9px;margin-left:-9px;padding:7px 8px;border:1px solid #e2e2e2 !important;background:#f2f2f2 !important}.mailbox .row-controls .pagination-title+a,.mailbox .row-controls .pagination-title+a~a{font-size:16px !important;line-height:15px;margin-top:-3px;margin-left:-1px;padding:8px 16px 8px 9px !important}.mailbox .row-controls .pagination-title+a{margin-left:20px}.mailbox .row-controls .pagination-title+a.disabled,.mailbox .row-controls .pagination-title+a~a.disabled{opacity:.5}.mailbox .row.row-quota div{margin-top:6px}.ql-container-toolbar-bottom+.ql-toolbar.ql-snow,.ql-container-toolbar-bottom.ql-container.ql-snow{border:0}.ql-container-toolbar-bottom+.ql-toolbar.ql-snow{-webkit-box-shadow:0 4px 5px 0 rgba(0,0,0,0.14),0 1px 10px 0 rgba(0,0,0,0.12),0 2px 4px -1px rgba(0,0,0,0.2);box-shadow:0 4px 5px 0 rgba(0,0,0,0.14),0 1px 10px 0 rgba(0,0,0,0.12),0 2px 4px -1px rgba(0,0,0,0.2);margin-left:15px;margin-right:15px}.ql-compose-container .ql-toolbar.ql-snow .ql-formats{margin-right:14px}form.compose button.btn{display:inline-block !important}form.compose button.btn.hidden{display:none !important}form.compose .compose-controls{margin:12px 5px 0 15px}form.compose .compose-controls>button>span>span:first-child{padding-left:6px;padding-right:6px}form.compose .compose-controls .dropdown-menu a{font-size:13px}form.compose .form-e .form-group .flex{display:flex;flex-wrap:wrap}form.compose .form-e .form-group .flex>.col-xs-1{flex:1;width:auto}form.compose .form-e .form-group .flex.attachments>.col-xs-1,form.compose .form-e .form-group .flex.attachments>.col-xs-11{height:auto;min-height:30px}form.compose .form-e .form-group .flex.attachments>.col-xs-11 .bootstrap-tagsinput{margin-top:3px;vertical-align:-webkit-baseline-middle;vertical-align:-moz-middle-with-baseline;width:100%}form.compose .form-e .form-group .flex.attachments>.col-xs-11 .bootstrap-tagsinput .tag{white-space:pre-wrap;word-break:break-all;vertical-align:middle !important}form.compose .form-e .form-group .flex.attachments>.col-xs-11 .bootstrap-tagsinput .tag>i{margin-left:-5px;margin-right:5px;float:left;margin-top:1px}form.compose .form-e .form-group .flex.attachments>.col-xs-11 .bootstrap-tagsinput>input{display:none}form.compose .bootstrap-tagsinput .label{padding-top:3px;padding-bottom:4px;padding-left:12px;margin-top:-3px;display:inline-block;text-align:justify;white-space:nowrap !important;overflow:hidden;text-overflow:ellipsis;max-width:80ch;direction:rtl;border-radius:50px}form.compose .bootstrap-tagsinput .tag [data-role='remove'],form.compose .bootstrap-tagsinput .label.recipient:not(:hover){background-color:transparent !important}form.compose .autocomplete-selected{background:#eee}form.compose .form-e .form-group .col-xs-11 .bootstrap-tagsinput .label.recipient{border:1px solid rgba(170,170,170,0.2) !important;border-radius:50px;margin-top:4px;margin-bottom:-3px;padding:3px 8px 3px 8px;font-size:100% !important}form.compose .form-e .form-group .col-xs-11 .bootstrap-tagsinput .label.recipient.error{background-color:rgba(206,130,0,0.2) !important;color:rgba(191,131,0,0.8) !important}form.compose .form-e .form-group .col-xs-11 .bootstrap-tagsinput .label.recipient+.label.recipient{margin-top:0}form.compose .form-e .form-group.to .bootstrap-tagsinput>input,form.compose .form-e .form-group.cc .bootstrap-tagsinput>input,form.compose .form-e .form-group.bcc .bootstrap-tagsinput>input{display:inline;position:relative;margin-top:1px !important;width:100%}form.compose .form-e .form-group.to .bootstrap-tagsinput,form.compose .form-e .form-group.cc .bootstrap-tagsinput,form.compose .form-e .form-group.bcc .bootstrap-tagsinput{width:100%;padding:0}form.compose .form-e .form-group .cc.btn-inverse,form.compose .form-e .form-group .bcc.btn-inverse{margin-top:1.5px}form.compose .form-e .form-group.to .bootstrap-tagsinput>.label.recipient+input,form.compose .form-e .form-group.cc .bootstrap-tagsinput>.label.recipient+input,form.compose .form-e .form-group.bcc .bootstrap-tagsinput>.label.recipient+input{margin-top:-10px !important;width:auto}[data-browser="safari"] form.compose .form-e .form-group.to .bootstrap-tagsinput>.label.recipient+input,[data-browser="safari"] form.compose .form-e .form-group.cc .bootstrap-tagsinput>.label.recipient+input,[data-browser="safari"] form.compose .form-e .form-group.bcc .bootstrap-tagsinput>.label.recipient+input{margin-top:-2px !important}@media(max-width:785px){form.compose .bootstrap-tagsinput .label{max-width:70ch}}@media(max-width:725px){form.compose .bootstrap-tagsinput .label{max-width:60ch}}@media(max-width:665px){form.compose .bootstrap-tagsinput .label{max-width:50ch}}@media(max-width:605px){form.compose .bootstrap-tagsinput .label{max-width:40ch}}@media(max-width:545px){form.compose .bootstrap-tagsinput .label{max-width:30ch}}@media(min-width:240px) and (max-width:545px){form.compose .bootstrap-tagsinput .label{max-width:35ch}}@media(min-width:120px) and (max-width:240px){form.compose .bootstrap-tagsinput .label{max-width:25ch}}@-moz-document url-prefix(){.mailbox .row-messages table td span.mail-list-srow-container{margin-top:-2px}form.compose .bootstrap-tagsinput .label{margin-top:-2px}form.compose .form-e .form-group .flex.attachments>.col-xs-11 .bootstrap-tagsinput .tag>i{margin-top:0}form.compose .form-e .form-group .col-xs-11 .bootstrap-tagsinput .label.recipient{margin-top:3.5px}form.compose .form-e .form-group.to .bootstrap-tagsinput>.label.recipient+input,form.compose .form-e .form-group.cc .bootstrap-tagsinput>.label.recipient+input,form.compose .form-e .form-group.bcc .bootstrap-tagsinput>.label.recipient+input{margin-top:-9px !important}.mailbox .row-controls .dropdown-more>button>.fa::before,.mailbox .row-controls .dropdown-move>button>.fa::before,.mailbox .row-controls .dropdown-sort>button>.fa::before{position:relative;top:-1px}}form.compose .form-e .form-group .col-xs-11{flex:85%;width:auto}form.compose .form-e .form-group .col-xs-1{white-space:nowrap}form.compose .form-e .form-group .col-xs-1,form.compose .form-e .form-group .col-xs-11{min-height:31px;border-bottom:1px solid #e8e8e8;padding:1px 0}form.compose .form-e .form-group{padding:0 15px;margin-bottom:0}form.compose .form-e .form-group .col-xs-1 label,form.compose .form-e .form-group .col-xs-11 label{margin-top:5px;font-weight:600}form.compose .form-e .form-group .col-xs-1 *,form.compose .form-e .form-group .col-xs-11 *{border:0 !important}form.compose .form-e .form-group .col-xs-11 input{color:#333;width:100%;padding-bottom:2px}@-moz-document url-prefix(){form.compose .form-e .form-group .col-xs-11 input{padding-bottom:3px}form.compose .compose-controls>.btn{padding-top:4px !important;padding-bottom:6px !important}}form.compose .form-e .recipients-control+input[name="from"],form.compose .form-e .form-group .col-xs-11 .c-from-input-group{padding-right:50px}form.compose .form-e .form-group .col-xs-11 .c-from-input-group .ltgt{float:left;font-weight:500;padding:5px 0;margin-right:-7px;position:relative}form.compose .form-e .form-group .col-xs-11 .c-from-input-group input{max-width:40%;float:left;border:0 !important}form.compose .form-e .form-group .col-xs-11 .c-from-input-group input[name="real"]{margin-right:10px;padding-right:0}form.compose .form-e .form-group .col-xs-11 .c-from-input-group input[name="user"]{text-align:right !important;padding-right:0 !important;font-weight:500;margin-right:1px}form.compose .form-e .form-group .col-xs-11 .c-from-input-group .input-group-addon{padding-left:0;background-color:transparent !important;font-size:12px;color:#333;font-weight:500;padding:5px 0;line-height:unset;float:left;cursor:not-allowed}html[data-bgs="nightRider"] form.compose .form-e .form-group .col-xs-11 .c-from-input-group .input-group-addon{color:rgba(153,159,165,0.75)}form.compose .form-e .form-group .col-xs-11 select{box-shadow:none !important;line-height:19px}form.compose .form-e .recipients-control{position:absolute;right:0;top:1px}form.compose .form-e .recipients-control>button{font-size:12px !important;padding-left:5px !important;padding-right:5px !important}.ql-editor b,.ql-editor strong{font-weight:bold}.ql-editor blockquote{font-size:inherit}form.compose .form-e .ql-toolbar{width:fit-content;padding:6px 8px}form.compose .compose-controls .dropdown-toggle .caret{vertical-align:12% !important}form.compose .compose-controls .dropdown-menu,.ql-toolbar .dropup .dropdown-menu{top:auto !important}.ql-toolbar .dropup .dropdown-menu,form.compose .compose-controls:not(.pull-right) .dropdown-menu{min-width:36px}form.compose .dropdown-menu.scheduled span:not(.awcheckbox){white-space:nowrap;opacity:.85;cursor:pointer;text-decoration:none;border-bottom:1px dotted}form.compose .dropdown-menu.scheduled span.awcheckbox{margin-top:-1px;margin-right:4px}form.compose .dropdown-menu.scheduled>li{padding-bottom:1px}form.compose .compose-controls .dropdown-menu li>a{text-align:left;padding-left:15px;padding-bottom:4px}form.compose .compose-controls .dropdown-menu.scheduled li>a{margin-top:-8px}form.compose .compose-controls .dropdown-menu.scheduled li>a:hover{background-color:transparent !important;cursor:default}form.compose .compose-controls .dropdown-menu.scheduled input[type="time"]:hover,form.compose .compose-controls .dropdown-menu.scheduled input[type="time"]:focus,form.compose .compose-controls .dropdown-menu.scheduled input[type="time"]:active{border-color:initial !important}form.compose .compose-controls .dropdown-menu.scheduled input[type="time"]{background-color:transparent;padding-top:12px;line-height:14px;padding-left:0;margin-left:0;margin-right:-1px;font-size:12px !important;border-width:0 !important;border-bottom:1px dotted !important;opacity:.70;letter-spacing:-0.2px;vertical-align:bottom}@-moz-document url-prefix(){form.compose .compose-controls .dropdown-menu.scheduled input[type="time"]{margin-left:-2px;letter-spacing:-0.5px}}form.compose .compose-controls .dropdown-menu.scheduled input[type="time"]::-webkit-inner-spin-button,form.compose .compose-controls .dropdown-menu.scheduled input[type="time"]::-webkit-clear-button{display:none}form.compose .compose-controls .dropdown-menu.scheduled span[data-i] input{position:absolute;visibility:hidden;width:1px}form.compose .compose-controls .dropdown-menu,.ql-compose+.ql-snow .ql-picker.ql-expanded .ql-picker-options{bottom:100%;top:unset}form.compose .compose-controls ul.dropdown-menu+button{margin-left:16px}form.compose .compose-controls ul.dropdown-menu+button,form.compose .compose-controls ul.dropdown-menu+button~button{padding-left:8px !important;padding-right:8px !important}form.compose .compose-controls .dropup.more-options{float:left}form.compose .compose-controls .dropup.more-options>button{border:0;padding-right:4px !important;padding-left:4px !important}form.compose .compose-controls .dropup.more-options .dropdown-submenu>a:after{padding-right:10px;border-width:4px 0 4px 4px}form.compose .compose-controls .dropup.more-options .dropdown-submenu:hover a:after{margin-right:1px;transform:scaleX(-1)}form.compose .compose-controls .dropup.more-options .dropdown-submenu li a{text-align:right}form.compose .compose-controls .dropup.more-options .dropdown-submenu>ul>li>a{text-align:right}form.compose .compose-controls .dropup.more-options .dropdown-submenu>ul{margin-bottom:-32px}form.compose .compose-controls .dropup.more-options .dropdown-submenu>ul[data-type="priority"]{min-width:160px}form.compose .compose-controls .dropup.more-options .dropdown-submenu ul>li>a,form.compose .compose-controls .dropup.more-options>ul>li>a{padding:5px 15px 5px 17px;height:auto}form.compose .compose-controls .dropup.more-options .dropdown-submenu ul>li>a .awobject{float:left;margin-right:10px}form.compose .compose-controls .dropup.more-options .dropdown-menu[data-other]{min-width:260px}form.compose .compose-controls .dropup.more-options .dropdown-menu .menu-group label{display:block;font-size:12px;font-weight:600}form.compose .compose-controls .dropup.more-options .dropdown-menu .menu-group>div+div{margin-top:6px}form.compose .compose-controls .dropup.more-options .dropdown-menu li[data-encrypt-container] .menu-group select{min-width:92%;font-size:12px}form.compose .compose-controls .dropup.more-options .dropdown-menu li[data-encrypt-container]{width:220px;text-align:left;padding:5px 0 12px 16px}.jspCompose.jsPanel[maximized] .jsPanel-ftr.active{pointer-events:none}.jspCompose.jsPanel .jsPanel-hdr{height:32px;padding-top:2px}.jspCompose.jsPanel .jsPanel-ftr{background-color:#fff;border-top:0}.ql-compose-container textarea{border:0;resize:none;padding:12px 15px;margin-bottom:-5px;color:#000 !important}@-moz-document url-prefix(){.ql-compose-container textarea{margin-bottom:-1px}}.ql-compose-container .file-input-wrapper,.ql-compose.hidden+.ql-toolbar,.ql-disabled+.ql-toolbar{display:none}.ql-compose-container .ql-tooltip.ql-editing input[type="text"]{padding:0 5px 2px 5px}.jspCompose[maximized] .jsPanel-titlebar,.jspCompose .jsPanel-resizeit-handle{pointer-events:none}.jspCompose .jsPanel-titlebar .jsPanel-title{font-size:81%}.jspCompose .jsPanel-controlbar{margin-top:-4px}.jspCompose.jsPanel .jsPanel-hdr{border:0;height:36px}.jspCompose.jsPanel .jsPanel-headerbar{min-height:42px}.compose_backdrop~._xcustom_window_modal{z-index:999999}.compose_backdrop~._xcustom_window_modal+.modal-backdrop{z-index:999998}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value='0.75em']::before{font-size:10px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value='1.2em']::before{font-size:18px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value='1.5em']::before{font-size:24px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value='2.5em']::before{font-size:32px}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=initial]::before{font-family:inherit}.ql-snow .ql-picker.ql-expanded .ql-picker-label{color:#777}.jspCompose .ql-toolbar.ql-snow[data-mode="advanced"] .ql-formats{margin-right:7.5px}.jspCompose .ql-compose-container .ql-snow .ql-formats:empty{display:none}.jspCompose .ql-compose-container .ql-snow .ql-picker.ql-size .ql-picker-item[data-value="0.75em"]::before{font-size:.75em}.jspCompose .ql-compose-container .ql-snow .ql-picker.ql-size .ql-picker-item::before{font-size:1em}.jspCompose .ql-compose-container .ql-snow .ql-picker.ql-size .ql-picker-item[data-value="1.15em"]::before{font-size:1.15em}.jspCompose .ql-compose-container .ql-snow .ql-picker.ql-size .ql-picker-item[data-value="1.3em"]::before{font-size:1.3em}.fancytree-loader{overflow:hidden;-webkit-animation:move 1s linear infinite;animation:move 1s linear infinite;background-image:linear-gradient(-45deg,rgba(200,200,200,0.25) 25%,transparent 25%,transparent 50%,rgba(200,200,200,0.25) 50%,rgba(200,200,200,0.25) 75%,transparent 75%,transparent);-webkit-background-size:50px 50px;background-size:50px 50px}html[data-bgs="nightRider"] .fancytree-loader{background-image:linear-gradient(-45deg,rgba(100,100,100,0.25) 25%,transparent 25%,transparent 50%,rgba(100,100,100,0.25) 50%,rgba(100,100,100,0.25) 75%,transparent 75%,transparent)}@-webkit-keyframes move{0%{background-position:0 0}100%{background-position:50px 50px}}@keyframes move{0%{background-position:0 0}100%{background-position:50px 50px}}@media(max-width:680px){.mailbox .row-messages table:not(.table-message-details) td:nth-child(1) .awobject{padding:0;margin:0 0 0 10px}.mailbox .row-messages table:not(.table-message-details) td:nth-child(3) i,.mailbox .row-messages table:not(.table-message-details) td:nth-child(3){min-width:0;margin:0 4px 0 0}.mailbox .row-messages table:not(.table-message-details) td:nth-child(2),.mailbox .row-messages table:not(.table-message-details) td:nth-child(2) img,.mailbox .row-messages table:not(.table-message-details) td:nth-child(2) span{width:0;min-width:0}.mailbox .row-messages table:not(.table-message-details) td:nth-child(5) span,.mailbox .row-messages table:not(.table-message-details) td:nth-child(5){display:none}.mailbox .row-controls .pagination-title{white-space:nowrap;margin:0}}@media(max-width:768px){.mailbox .mail-list-mrow.mail-list-mrow-preview,.mailbox .row-messages table:not(.table-message-details) td:nth-child(6){display:none}.mailbox .row-messages table:not(.table-message-details) td:nth-child(1),.mailbox .row-messages table:not(.table-message-details) td:nth-child(2),.mailbox .row-messages table:not(.table-message-details) td:nth-child(3){padding:0 !important}.mailbox .row-messages table td.ui_checked_checkbox:nth-child(1){width:34px !important;min-width:34px !important;max-width:34px !important;text-align:center !important}.mailbox .mail-list-mrow{overflow:hidden;white-space:nowrap}.mailbox .mail-list-mrow.mail-list-mrow-subject{max-width:40vw}.mailbox .mail-list-avatar{display:inline-block;min-width:25px;margin-right:2px;margin-left:-6px}.mailbox .row-messages table td:nth-child(3) i[class*="fa-star"]{font-size:15px}}aside [data-compose="1"]{width:92%;margin:10px 0 10px 10px;background-color:transparent}html:not([data-theme="white"]) aside [data-compose="1"]{color:rgba(255,255,255,0.75);border-color:rgba(215,215,215,0.2);background-color:transparent !important}html[data-theme="blue"] aside [data-compose="1"]{color:rgb(245 240 255 / 98%)}html:not([data-theme="white"]) aside [data-compose="1"].active,html:not([data-theme="white"]) aside [data-compose="1"]:active,html:not([data-theme="white"]) aside [data-compose="1"]:focus,html:not([data-theme="white"]) aside [data-compose="1"]:hover{color:rgba(255,255,255,0.85) !important;border-color:rgba(215,215,215,0.35) !important;background-color:rgb(185 165 220 / 15%) !important}html[data-bgs="nightRider"] form.compose .bootstrap-tagsinput>input:not(.x):not(.x):not(.x):not(.x):not(.x):not(.x):not(.x):not(.x):not(.x):not(.x):not(.x){background-color:transparent !important}html[data-bgs="nightRider"] .mailbox .panel-mail .table>thead>tr[class*="hl-"]>th,html[data-bgs="nightRider"] .mailbox .panel-mail .table>tbody>tr[class*="hl-"]>th,html[data-bgs="nightRider"] .mailbox .panel-mail .table>tfoot>tr[class*="hl-"]>th,html[data-bgs="nightRider"] .mailbox .panel-mail .table>thead>tr[class*="hl-"]>td,html[data-bgs="nightRider"] .mailbox .panel-mail .table>tbody>tr[class*="hl-"]>td,html[data-bgs="nightRider"] .mailbox .panel-mail .table>tfoot>tr[class*="hl-"]>td{border-top:1px solid #4f} +aside .fancytree-statusnode-nodata span.fancytree-expander,aside .fancytree-statusnode-nodata span.fancytree-icon,aside span.fancytree-node span.fancytree-icon,aside span.fancytree-node span.fancytree-icon:after{display:none}aside .fancytree-container.fancytree-treefocus span.fancytree-node.fancytree-active,aside .fancytree-container.fancytree-treefocus span.fancytree-node.fancytree-focused{border-color:transparent;background-color:transparent}aside ul.fancytree-container{font-size:14px;margin-top:0 !important;margin-bottom:14px !important;padding-top:2px;border-style:none;background-color:transparent}aside#sidebar .fancytree-container ul[role="group"]{margin-left:8px}aside ul.fancytree-container mark{padding-right:0;padding-left:0}aside span.fancytree-node{cursor:pointer;border-radius:0}aside span.fancytree-title{margin-left:-4px}aside span.fancytree-title .label{font-size:65%;line-height:8px;position:absolute;margin-top:-1px;margin-left:3px;padding-right:4px;padding-left:3px;border-radius:10px}aside span.fancytree-node.fancytree-active{font-weight:500;background-color:transparent}aside span.fancytree-node span.fancytree-expander:after{color:#e8433f}aside span.fancytree-node span.fancytree-expander:after,aside span.fancytree-node span.fancytree-icon:after,aside span.fancytree-node.fancytree-active span.fancytree-icon:after{font-family:Authentic;font-size:14px}aside span.fancytree-node{margin-top:0;margin-bottom:0;padding-top:2px;padding-bottom:2px}aside span.fancytree-node.fancytree-has-children span.fancytree-expander:after{content:"\f088"}aside span.fancytree-node.fancytree-expanded.fancytree-has-children span.fancytree-expander:after{content:"\f085"}aside .fancytree-statusnode-nodata{text-align:center}aside .fancytree-statusnode-nodata .fancytree-title{margin-left:0}aside span.fancytree-expander{margin-top:1px}aside table.fancytree-ext-table.fancytree-treefocus tbody tr.fancytree-focused span.fancytree-title{outline:0}aside .fancytree-container.fancytree-treefocus span.fancytree-node:not(.fancytree-active):hover{background:0}aside [data-mail-folders]{margin-bottom:-15px}aside [data-mail-folders] .mCSB_scrollTools_horizontal .mCSB_draggerContainer{margin-top:-7px;margin-bottom:0}aside [data-mail-folders] .mCSB_scrollTools_horizontal .mCSB_draggerContainer .mCSB_dragger_bar{margin-top:0;margin-bottom:0}aside [data-mail-folders] .mCustomScrollBox+.mCSB_scrollTools{right:8px}@media(pointer:coarse),(-moz-touch-enabled:1){aside [data-mail-folders] .mCustomScrollBox+.mCSB_scrollTools{right:16px}}aside .mCustomScrollBox{padding-bottom:0}aside [data-mail-folders] .mCustomScrollBox+.mCSB_scrollTools+.mCSB_scrollTools.mCSB_scrollTools_horizontal{bottom:-12px !important}aside>.mCSB_scrollTools{visibility:hidden}aside span.fancytree-node span.fancytree-expander:after,aside span.fancytree-title{color:rgb(245 240 255 / 98%)}aside .fancytree-container .fancytree-node.fancytree-active span.fancytree-title,aside .fancytree-container.fancytree-treefocus span.fancytree-node:hover .fancytree-title,aside .fancytree-container.fancytree-treefocus span.fancytree-node:not(.fancytree-active):hover,aside span.fancytree-node.fancytree-active span.fancytree-expander:after{color:#fff}.mailbox .container-fluid .panel-body{background-color:#fff;overflow:visible}html[data-bgs="nightRider"] .mailbox .container-fluid .panel-body{background-color:#27282c}.mailbox .mail-list-srow span,.mailbox .mail-list-trow-container{display:block}.mailbox .mail-list-mrow{float:left}.mailbox .mail-list-mrow.mail-list-mrow-subject i{margin-right:5px;opacity:.5}.mailbox .row-messages{overflow-x:auto}.mailbox .row-messages table td:nth-child(5){line-height:24px;overflow:hidden;padding-top:0;padding-bottom:4px !important}.mailbox .mail-list-mrow.mail-list-mrow-subject{width:auto;height:20px;margin-right:4px;margin-top:-2px}.mailbox .mail-list-mrow.mail-list-mrow-preview{display:flex;float:unset;overflow:hidden;height:20px;opacity:.7}.mailbox tr[data-unread="1"] span{font-weight:600}.mailbox .mail-list-trow-from a,.mailbox .mail-list-trow-to a{color:initial}.mailbox .mail-list-trow-to i{margin:0 3px;color:#0d770d}.mailbox tr span.mail-list-mrow-preview{font-weight:300}.mailbox .mail-list-trow-flag-security{font-size:11px;visibility:hidden;margin:2px 10px 0 4px;cursor:help;border:1px solid transparent}.mailbox .mail-list-trow-flag-security:hover{border-color:rgba(103,103,103,0.21);border-radius:2px}.mailbox tr:hover .mail-list-trow-flag-security{visibility:visible}.mailbox .tooltip-inner{max-width:none}.mailbox .tooltip-inner .table.table-message-details{width:auto;max-width:20vw;margin:10px !important}.mailbox .tooltip-inner .table.table-message-details tbody tr td:first-child{text-align:right;vertical-align:top;white-space:nowrap;opacity:.6}.mailbox .tooltip-inner .table.table-message-details tbody tr td:last-child{padding-left:15px;text-align:left;white-space:nowrap}.mailbox tr span.mail-list-frow-container,.mailbox tr span.mail-list-srow-container{display:block;padding:0 5px}.mailbox tr span.mail-list-frow-container{padding:0 2px 0 15px}.mailbox .mail-list-trow-flags,.mailbox tr span.mail-list-mrow-date,.mailbox tr span.mail-list-brow-size{white-space:nowrap}.mailbox .mail-list-brow-size{text-align:right}.mailbox .row-messages table td{font-size:13.8px;letter-spacing:.1px;vertical-align:middle}.mailbox .mail-list-mrow.mail-list-mrow-preview{font-size:13px}.mailbox .row-messages table:not(.table-message-details) td:nth-child(1),.mailbox .row-messages table:not(.table-message-details) td:nth-child(2),.mailbox .row-messages table:not(.table-message-details) td:nth-child(3){min-width:34px;width:34px;text-align:center !important}.mailbox .row-messages table td.ui_checked_checkbox:nth-child(1){width:41px !important;min-width:41px !important;max-width:41px !important}.mailbox .row-messages table td:nth-child(4) span.mail-list-drow-container,.mailbox .row-messages table td:nth-child(5) span.mail-list-drow-container{white-space:nowrap}.mailbox .row-messages table td:nth-child(5){width:100%}.mailbox .row-messages table td span.mail-list-srow-container{margin-top:1px}.mailbox .row-messages table td:nth-child(4) span.mail-list-drow-container span{margin-top:0}.mailbox .row-messages table td:nth-child(6){width:.5%;text-align:right !important}.mailbox .row-messages table td:nth-child(6) i{font-size:16px;padding:0 5px 0 0}.mailbox .row-messages table td:nth-child(6) i:first-child+i{font-size:15px}.mailbox .row-messages table td:nth-child(3) i{font-size:17px}.mailbox .row-messages table td:nth-child(6) i:last-child{font-size:18px !important}.mailbox .row-messages table td:nth-child(3) i.fa-star-o{color:rgba(170,170,170,0.425)}.mailbox .row-messages table td:nth-child(3) i.fa-star,.mailbox .row-messages table td:nth-child(3) i.fa-star-o:hover{color:#eabd35}.mailbox .row-messages table td:nth-child(3) i.fa-star:hover{color:rgba(170,170,170,0.425)}.mailbox .row-messages table td.ui_checked_checkbox+td .star,.mailbox .row-messages table td.ui_checked_checkbox+td+td .star{cursor:default;margin-top:-1px}.mailbox .row-messages table td:nth-child(7){width:.5%}.mailbox .row-messages table td:nth-child(7) span{float:right !important}.mailbox .row-controls .col-xs-6:last-child,.mailbox .row-controls .dropdown-sort .dropdown-menu a{text-align:right}.mailbox .mail-list-avatar{display:inline-block;min-width:28px;min-height:30px}.mailbox .mail-list-avatar img{border-radius:50%;width:30px;height:30px}.mailbox .row-messages table:not(.table-message-details) td[data-blank="1"],.mailbox .mail-list-avatar[data-blank="1"] img[src*="d=blank"]{min-width:1px;max-width:1px;width:1px;height:1px}.mailbox .row-messages table:not(.table-message-details) td[data-blank="1"]+td i{text-align:left}.mailbox .mail-list-avatar img[src*="d=blank"]{visibility:hidden}.mailbox .row-controls [class*="dropdown"]>span.btn,.mailbox .row-controls [class*="dropdown"]>button{display:inline-block}.mailbox .row-controls .dropdown-select>button>.caret,.mailbox .row-controls .dropdown-search>button>.fa::before{position:relative;top:-1px}.mailbox .row-messages .table-striped>tbody>tr{background-color:#f9f9f9}.mailbox .row.row-controls [data-refresh="1"]{font-size:17.5px !important;height:32px;margin-left:4px;padding:0 9px !important}.mailbox .mail-controls:not(.hidden)~*{display:none}.mailbox .mail-controls{display:inline-block;margin-right:4px;margin-left:4px}.mailbox .row [data-form-control="delete"],.mailbox .row [data-form-control="forward"]{margin-left:-1px;padding:8px 12px !important}.mailbox .row [data-form-control="delete"]{float:left;margin-left:0}.mailbox .row [data-form-control="delete"]:before{color:rgba(169,68,65,0.9)}.mailbox .row [data-form-control="forward"]{float:left;margin-right:5px}.mailbox .row .dropdown-menu li>a,.mailbox .row .dropdown-menu>li>span{font-size:13.8px;cursor:pointer}.mailbox .row-controls .dropdown-search li>span,.mailbox .row-controls .dropdown-move li>span,.mailbox .row-controls .dropdown-select>span.btn{cursor:default}.mailbox .row-controls .dropdown-menu>li.divider{margin-top:5px;margin-bottom:5px}.mailbox .row .dropdown-more{margin-left:4px}.mailbox .row-controls .dropdown-select button{padding:5px 10px !important}.mailbox .row-controls .dropdown-select>span:first-child{padding:5px 9px 4px 13px !important}.mailbox .awcheckbox[data-select="1"] label::before{border-width:2px;border-radius:2px}.mailbox .panel-mail .row.text-center i.fa2-email-open{font-size:21px;opacity:.4}.mailbox .row-controls .mail-controls .fa-trash{padding:8px 13px !important}.mailbox .row-controls .dropdown-more button{padding:5px 11px !important}.mailbox .row-controls .dropdown-sort button{padding:5px 9px !important}.mailbox .row-controls .dropdown-sort>button.dropdown-toggle,.mailbox .row-controls .dropdown-sort>span:first-child{font-size:13px;line-height:18px;padding:6px 9px !important;text-transform:lowercase}html[data-bgs="nightRider"] .mailbox .row-controls .dropdown-select>span:first-child,html[data-bgs="nightRider"] .mailbox .row-controls .dropdown-sort>span:first-child{margin-right:-1px}.mailbox .row-controls .dropdown-sort{margin-left:4px}.mailbox .row-controls .dropdown-sort .dropdown-toggle{line-height:18px}.mailbox .row-controls .dropdown-sort .dropdown-menu a i{font-size:13px;float:left;margin-top:3px}.mailbox .row-controls .dropdown-search .dropdown-menu li:first-child,.mailbox .row-controls .dropdown-search .pull-left,.mailbox .row-controls .dropdown-move .dropdown-menu li:first-child,.mailbox .row-controls .dropdown-move .pull-left{margin-top:5px}.mailbox .row-controls .dropdown-search li>span:hover,.mailbox .row-controls .dropdown-move li>span:hover{background-color:transparent}.mailbox .row-controls .dropdown-search li>span.show:first-child:not([data-form-action-type="submit"]):not([data-form-action-type="simple"]){display:flex !important}.mailbox .row-controls .dropdown-search li>span .select2{width:100% !important}.mailbox .row-controls .dropdown-move li>span .select2{width:25vw !important;min-width:100%;max-width:25vw}.mailbox .row-controls .dropdown-search .pull-right,.mailbox .row-controls .dropdown-move .pull-right{margin-bottom:9px}.mailbox .row-controls .dropdown-search .dropdown-menu li>span,.mailbox .row-controls .dropdown-move .dropdown-menu li>span{padding:5px 15px}.mailbox span.select2-dropdown.select2-content.h34.select2-dropdown--below{font-size:13.8px}.mailbox .select2-dropdown.select2-content.h34 .select2-search input{font-size:13.8px;height:27px;padding:2px 3px 4px 6px}.mailbox span.select2-dropdown.select2-content.h34.select2-dropdown--below .select2-results__option:empty{display:none}.mailbox .row-controls li{font-size:13.8px;letter-spacing:.1px}.mailbox .row-controls .dropdown-search .search-clear:focus,.mailbox .row-controls .dropdown-search .search-clear:active,.mailbox .row-controls .dropdown-search .search-clear:hover{text-decoration:line-through}.mailbox .row-controls .dropdown-search li span.awcheckbox label:not(.lawobject),.mailbox .row-controls .dropdown-move li span.awcheckbox label:not(.lawobject){font-weight:400;padding-top:2px;padding-left:10px}.mailbox[data-browser="firefox"] .table-mail-listing .ui_checked_columns .ui_checked_checkbox .awcheckbox label::after{top:7px}.mailbox .row-controls .open:not(.dropdown-select) span.awobject label{font-weight:400;padding-left:5px}.mailbox .row-controls .dropdown-search.open [data-form-action-advanced="1"]:not(.show){display:none !important}.mailbox .row-controls .dropdown-search.open [data-form-action-type="simple"]{margin-top:10px;margin-bottom:8px}.mailbox .row-controls .dropdown-search.open [data-form-action-type="simple"] button{margin-left:-36px;text-decoration:none}.mailbox .row-controls .dropdown-search.open [data-form-action="search"]:not([data-form-action-type="simple"]){padding-left:18px;padding-right:16px}.mailbox .row-controls .dropdown-search.open [data-toggle-type="1"]{padding:0}.mailbox .row-controls .dropdown-search.open [data-toggle-type="1"] i{padding:10px 12px}.mailbox .row-controls .dropdown-search.open ul{min-width:50vh}.mailbox .row-controls .dropdown-search.open input:not(.iawobject){width:100%}.mailbox .row-controls .dropdown-search.open [data-form-action="search"] input[data-search-mail="1"]{min-height:36px;font-size:15px !important}.mailbox .row-controls .dropdown-search.open [data-form-action="search"] .col-xs-3{padding-left:2px}.mailbox .row-controls .dropdown-search.open [data-form-action="search"] .col-xs-3 label{font-weight:400;margin-top:8px;opacity:.8}.mailbox .row-controls .dropdown-search.open [data-form-action="search"] .col-xs-9{padding-right:0}.mailbox .row-controls .dropdown-search.open [data-form-action="search"] .col-xs-9 input:not(.iawobject){border-top-color:transparent !important;border-right-color:transparent !important;border-left-color:transparent !important;padding-left:6px;font-size:14px}.mailbox .row-controls .dropdown-search.open [data-form-action="search"] span.awobject label{font-weight:400;line-height:17px}.mailbox .row-controls .dropdown-search.open [data-form-action="search"] .col-xs-9 span.awobject{margin-left:15px;margin-top:7px;vertical-align:text-top}.mailbox .row-controls .dropdown-search.open [data-form-action="search"] .col-xs-9 span.awobject:first-child{margin-left:5px}.mailbox .row-controls .dropdown-search.open [data-form-action="search"] .col-xs-9 select{width:100%}.mailbox .row .dropdown-search{margin-left:4px}.mailbox .row-controls .dropdown-search.open .select2-content.select2-selection--single[aria-expanded="false"],.mailbox .row-controls .dropdown-search.open .select2-content[aria-expanded="false"]{border-top-color:transparent !important;border-right-color:transparent !important;border-left-color:transparent !important}.mailbox .row-controls .dropdown-search.open [data-form-action-type="search-in"]{padding-top:10px}.mailbox .row-controls .dropdown-search.open [data-form-action-type="limit"] input[type="number"]{width:50px;vertical-align:text-top;margin-top:-5px}.mailbox .row-controls .dropdown-search.open [data-form-action-type="limit"] input[type="number"]::-webkit-outer-spin-button,.mailbox .row-controls .dropdown-search.open [data-form-action-type="limit"] input[type="number"]::-webkit-inner-spin-button{opacity:1}.mailbox .row-controls .dropdown-search.open [data-form-action-type="attach"]:not([data-form-action-type="simple"]){padding:20px 20px 0 20px}.mailbox .row-controls .dropdown-search.open [data-form-action-type="submit"]{padding-bottom:42px}.mailbox .row-controls .dropdown-search.open [data-form-action-type="submit"] button{float:left}.mailbox .row-controls .dropdown-search.open [data-form-action-type="submit"] button.btn-primary{float:right}.mailbox .row-controls .mail-selected-count{display:inline-block;margin-left:10px}.mailbox .row-controls .pagination-title{color:#222}.mailbox .row-controls .pagination-title[href]:hover{margin-right:-9px;margin-left:-9px;padding:7px 8px;border:1px solid #e2e2e2 !important;background:#f2f2f2 !important}.mailbox .row-controls .pagination-title+a,.mailbox .row-controls .pagination-title+a~a{font-size:16px !important;line-height:15px;margin-top:-3px;margin-left:-1px;padding:8px 16px 8px 9px !important}.mailbox .row-controls .pagination-title+a{margin-left:20px}.mailbox .row-controls .pagination-title+a.disabled,.mailbox .row-controls .pagination-title+a~a.disabled{opacity:.5}.mailbox .row.row-quota div{margin-top:6px}.ql-container-toolbar-bottom+.ql-toolbar.ql-snow,.ql-container-toolbar-bottom.ql-container.ql-snow{border:0}.ql-container-toolbar-bottom+.ql-toolbar.ql-snow{-webkit-box-shadow:0 4px 5px 0 rgba(0,0,0,0.14),0 1px 10px 0 rgba(0,0,0,0.12),0 2px 4px -1px rgba(0,0,0,0.2);box-shadow:0 4px 5px 0 rgba(0,0,0,0.14),0 1px 10px 0 rgba(0,0,0,0.12),0 2px 4px -1px rgba(0,0,0,0.2);margin-left:15px;margin-right:15px}.ql-compose-container .ql-toolbar.ql-snow .ql-formats{margin-right:14px}form.compose button.btn{display:inline-block !important}form.compose button.btn.hidden{display:none !important}form.compose .compose-controls{margin:12px 5px 0 15px}form.compose .compose-controls>button>span>span:first-child{padding-left:6px;padding-right:6px}form.compose .compose-controls .dropdown-menu a{font-size:13px}form.compose .form-e .form-group .flex{display:flex;flex-wrap:wrap}form.compose .form-e .form-group .flex>.col-xs-1{flex:1;width:auto}form.compose .form-e .form-group .flex.attachments>.col-xs-1,form.compose .form-e .form-group .flex.attachments>.col-xs-11{height:auto;min-height:30px}form.compose .form-e .form-group .flex.attachments>.col-xs-11 .bootstrap-tagsinput{margin-top:3px;vertical-align:-webkit-baseline-middle;vertical-align:-moz-middle-with-baseline;width:100%}form.compose .form-e .form-group .flex.attachments>.col-xs-11 .bootstrap-tagsinput .tag{white-space:pre-wrap;word-break:break-all;vertical-align:middle !important}form.compose .form-e .form-group .flex.attachments>.col-xs-11 .bootstrap-tagsinput .tag>i{margin-left:-5px;margin-right:5px;float:left;margin-top:1px}form.compose .form-e .form-group .flex.attachments>.col-xs-11 .bootstrap-tagsinput>input{display:none}form.compose .bootstrap-tagsinput .label{padding-top:3px;padding-bottom:4px;padding-left:12px;margin-top:-3px;display:inline-block;text-align:justify;white-space:nowrap !important;overflow:hidden;text-overflow:ellipsis;max-width:80ch;direction:rtl;border-radius:50px}form.compose .bootstrap-tagsinput .tag [data-role='remove'],form.compose .bootstrap-tagsinput .label.recipient:not(:hover){background-color:transparent !important}form.compose .autocomplete-selected{background:#eee}form.compose .form-e .form-group .col-xs-11 .bootstrap-tagsinput .label.recipient{border:1px solid rgba(170,170,170,0.2) !important;border-radius:50px;margin-top:4px;margin-bottom:-3px;padding:3px 8px 3px 8px;font-size:100% !important}form.compose .form-e .form-group .col-xs-11 .bootstrap-tagsinput .label.recipient.error{background-color:rgba(206,130,0,0.2) !important;color:rgba(191,131,0,0.8) !important}form.compose .form-e .form-group .col-xs-11 .bootstrap-tagsinput .label.recipient+.label.recipient{margin-top:0}form.compose .form-e .form-group.to .bootstrap-tagsinput>input,form.compose .form-e .form-group.cc .bootstrap-tagsinput>input,form.compose .form-e .form-group.bcc .bootstrap-tagsinput>input{display:inline;position:relative;margin-top:1px !important;width:100%}form.compose .form-e .form-group.to .bootstrap-tagsinput,form.compose .form-e .form-group.cc .bootstrap-tagsinput,form.compose .form-e .form-group.bcc .bootstrap-tagsinput{width:100%;padding:0}form.compose .form-e .form-group .cc.btn-inverse,form.compose .form-e .form-group .bcc.btn-inverse{margin-top:1.5px}form.compose .form-e .form-group.to .bootstrap-tagsinput>.label.recipient+input,form.compose .form-e .form-group.cc .bootstrap-tagsinput>.label.recipient+input,form.compose .form-e .form-group.bcc .bootstrap-tagsinput>.label.recipient+input{margin-top:-10px !important;width:auto}[data-browser="safari"] form.compose .form-e .form-group.to .bootstrap-tagsinput>.label.recipient+input,[data-browser="safari"] form.compose .form-e .form-group.cc .bootstrap-tagsinput>.label.recipient+input,[data-browser="safari"] form.compose .form-e .form-group.bcc .bootstrap-tagsinput>.label.recipient+input{margin-top:-2px !important}@media(max-width:785px){form.compose .bootstrap-tagsinput .label{max-width:70ch}}@media(max-width:725px){form.compose .bootstrap-tagsinput .label{max-width:60ch}}@media(max-width:665px){form.compose .bootstrap-tagsinput .label{max-width:50ch}}@media(max-width:605px){form.compose .bootstrap-tagsinput .label{max-width:40ch}}@media(max-width:545px){form.compose .bootstrap-tagsinput .label{max-width:30ch}}@media(min-width:240px) and (max-width:545px){form.compose .bootstrap-tagsinput .label{max-width:35ch}}@media(min-width:120px) and (max-width:240px){form.compose .bootstrap-tagsinput .label{max-width:25ch}}@-moz-document url-prefix(){.mailbox .row-messages table td span.mail-list-srow-container{margin-top:-2px}form.compose .bootstrap-tagsinput .label{margin-top:-2px}form.compose .form-e .form-group .flex.attachments>.col-xs-11 .bootstrap-tagsinput .tag>i{margin-top:0}form.compose .form-e .form-group .col-xs-11 .bootstrap-tagsinput .label.recipient{margin-top:3.5px}form.compose .form-e .form-group.to .bootstrap-tagsinput>.label.recipient+input,form.compose .form-e .form-group.cc .bootstrap-tagsinput>.label.recipient+input,form.compose .form-e .form-group.bcc .bootstrap-tagsinput>.label.recipient+input{margin-top:-9px !important}.mailbox .row-controls .dropdown-more>button>.fa::before,.mailbox .row-controls .dropdown-move>button>.fa::before,.mailbox .row-controls .dropdown-sort>button>.fa::before{position:relative;top:-1px}}form.compose .form-e .form-group .col-xs-11{flex:85%;width:auto}form.compose .form-e .form-group .col-xs-1{white-space:nowrap}form.compose .form-e .form-group .col-xs-1,form.compose .form-e .form-group .col-xs-11{min-height:31px;border-bottom:1px solid #e8e8e8;padding:1px 0}form.compose .form-e .form-group{padding:0 15px;margin-bottom:0}form.compose .form-e .form-group .col-xs-1 label,form.compose .form-e .form-group .col-xs-11 label{margin-top:5px;font-weight:600}form.compose .form-e .form-group .col-xs-1 *,form.compose .form-e .form-group .col-xs-11 *{border:0 !important}form.compose .form-e .form-group .col-xs-11 input{color:#333;width:100%;padding-bottom:2px}@-moz-document url-prefix(){form.compose .form-e .form-group .col-xs-11 input{padding-bottom:3px}form.compose .compose-controls>.btn{padding-top:4px !important;padding-bottom:6px !important}}form.compose .form-e .recipients-control+input[name="from"],form.compose .form-e .form-group .col-xs-11 .c-from-input-group{padding-right:50px}form.compose .form-e .form-group .col-xs-11 .c-from-input-group .ltgt{float:left;font-weight:500;padding:5px 0;margin-right:-7px;position:relative}form.compose .form-e .form-group .col-xs-11 .c-from-input-group input{max-width:40%;float:left;border:0 !important}form.compose .form-e .form-group .col-xs-11 .c-from-input-group input[name="real"]{margin-right:10px;padding-right:0}form.compose .form-e .form-group .col-xs-11 .c-from-input-group input[name="user"]{text-align:right !important;padding-right:0 !important;font-weight:500;margin-right:1px}form.compose .form-e .form-group .col-xs-11 .c-from-input-group .input-group-addon{padding-left:0;background-color:transparent !important;font-size:12px;color:#333;font-weight:500;padding:5px 0;line-height:unset;float:left;cursor:not-allowed}html[data-bgs="nightRider"] form.compose .form-e .form-group .col-xs-11 .c-from-input-group .input-group-addon{color:rgba(153,159,165,0.75)}form.compose .form-e .form-group .col-xs-11 select{box-shadow:none !important;line-height:19px}form.compose .form-e .recipients-control{position:absolute;right:0;top:1px}form.compose .form-e .recipients-control>button{font-size:12px !important;padding-left:5px !important;padding-right:5px !important}.ql-editor b,.ql-editor strong{font-weight:bold}.ql-editor blockquote{font-size:inherit}form.compose .form-e .ql-toolbar{width:fit-content;padding:6px 8px}form.compose .compose-controls .dropdown-toggle .caret{vertical-align:12% !important}form.compose .compose-controls .dropdown-menu,.ql-toolbar .dropup .dropdown-menu{top:auto !important}.ql-toolbar .dropup .dropdown-menu,form.compose .compose-controls:not(.pull-right) .dropdown-menu{min-width:36px}form.compose .dropdown-menu.scheduled span:not(.awcheckbox){white-space:nowrap;opacity:.85;cursor:pointer;text-decoration:none;border-bottom:1px dotted}form.compose .dropdown-menu.scheduled span.awcheckbox{margin-top:-1px;margin-right:4px}form.compose .dropdown-menu.scheduled>li{padding-bottom:1px}form.compose .compose-controls .dropdown-menu li>a{text-align:left;padding-left:15px;padding-bottom:4px}form.compose .compose-controls .dropdown-menu.scheduled li>a{margin-top:-8px}form.compose .compose-controls .dropdown-menu.scheduled li>a:hover{background-color:transparent !important;cursor:default}form.compose .compose-controls .dropdown-menu.scheduled input[type="time"]:hover,form.compose .compose-controls .dropdown-menu.scheduled input[type="time"]:focus,form.compose .compose-controls .dropdown-menu.scheduled input[type="time"]:active{border-color:initial !important}form.compose .compose-controls .dropdown-menu.scheduled input[type="time"]{background-color:transparent;padding-top:12px;line-height:14px;padding-left:0;margin-left:0;margin-right:-1px;font-size:12px !important;border-width:0 !important;border-bottom:1px dotted !important;opacity:.70;letter-spacing:-0.2px;vertical-align:bottom}@-moz-document url-prefix(){form.compose .compose-controls .dropdown-menu.scheduled input[type="time"]{margin-left:-2px;letter-spacing:-0.5px}}form.compose .compose-controls .dropdown-menu.scheduled input[type="time"]::-webkit-inner-spin-button,form.compose .compose-controls .dropdown-menu.scheduled input[type="time"]::-webkit-clear-button{display:none}form.compose .compose-controls .dropdown-menu.scheduled span[data-i] input{position:absolute;visibility:hidden;width:1px}form.compose .compose-controls .dropdown-menu,.ql-compose+.ql-snow .ql-picker.ql-expanded .ql-picker-options{bottom:100%;top:unset}form.compose .compose-controls ul.dropdown-menu+button{margin-left:16px}form.compose .compose-controls ul.dropdown-menu+button,form.compose .compose-controls ul.dropdown-menu+button~button{padding-left:8px !important;padding-right:8px !important}form.compose .compose-controls .dropup.more-options{float:left}form.compose .compose-controls .dropup.more-options>button{border:0;padding-right:4px !important;padding-left:4px !important}form.compose .compose-controls .dropup.more-options .dropdown-submenu>a:after{padding-right:10px;border-width:4px 0 4px 4px}form.compose .compose-controls .dropup.more-options .dropdown-submenu:hover a:after{margin-right:1px;transform:scaleX(-1)}form.compose .compose-controls .dropup.more-options .dropdown-submenu li a{text-align:right}form.compose .compose-controls .dropup.more-options .dropdown-submenu>ul>li>a{text-align:right}form.compose .compose-controls .dropup.more-options .dropdown-submenu>ul{margin-bottom:-32px}form.compose .compose-controls .dropup.more-options .dropdown-submenu>ul[data-type="priority"]{min-width:160px}form.compose .compose-controls .dropup.more-options .dropdown-submenu ul>li>a,form.compose .compose-controls .dropup.more-options>ul>li>a{padding:5px 15px 5px 17px;height:auto}form.compose .compose-controls .dropup.more-options .dropdown-submenu ul>li>a .awobject{float:left;margin-right:10px}form.compose .compose-controls .dropup.more-options .dropdown-menu[data-other]{min-width:260px}form.compose .compose-controls .dropup.more-options .dropdown-menu .menu-group label{display:block;font-size:12px;font-weight:600}form.compose .compose-controls .dropup.more-options .dropdown-menu .menu-group>div+div{margin-top:6px}form.compose .compose-controls .dropup.more-options .dropdown-menu li[data-encrypt-container] .menu-group select{min-width:92%;font-size:12px}form.compose .compose-controls .dropup.more-options .dropdown-menu li[data-encrypt-container]{width:220px;text-align:left;padding:5px 0 12px 16px}.jspCompose.jsPanel[maximized] .jsPanel-ftr.active{pointer-events:none}.jspCompose.jsPanel .jsPanel-hdr{height:32px;padding-top:2px}.jspCompose.jsPanel .jsPanel-ftr{background-color:#fff;border-top:0}.ql-compose-container textarea{border:0;resize:none;padding:12px 15px;margin-bottom:-5px;color:#000 !important}@-moz-document url-prefix(){.ql-compose-container textarea{margin-bottom:-1px}}.ql-compose-container .file-input-wrapper,.ql-compose.hidden+.ql-toolbar,.ql-disabled+.ql-toolbar{display:none}.ql-compose-container .ql-tooltip.ql-editing input[type="text"]{padding:0 5px 2px 5px}.jspCompose[maximized] .jsPanel-titlebar,.jspCompose .jsPanel-resizeit-handle{pointer-events:none}.jspCompose .jsPanel-titlebar .jsPanel-title{font-size:81%}.jspCompose .jsPanel-controlbar{margin-top:-4px}.jspCompose.jsPanel .jsPanel-hdr{border:0;height:36px}.jspCompose.jsPanel .jsPanel-headerbar{min-height:42px}.compose_backdrop~._xcustom_window_modal{z-index:999999}.compose_backdrop~._xcustom_window_modal+.modal-backdrop{z-index:999998}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value='0.75em']::before{font-size:10px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value='1.2em']::before{font-size:18px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value='1.5em']::before{font-size:24px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value='2.5em']::before{font-size:32px}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=initial]::before{font-family:inherit}.ql-snow .ql-picker.ql-expanded .ql-picker-label{color:#777}.jspCompose .ql-toolbar.ql-snow[data-mode="advanced"] .ql-formats{margin-right:7.5px}.jspCompose .ql-compose-container .ql-snow .ql-formats:empty{display:none}.jspCompose .ql-compose-container .ql-snow .ql-picker.ql-size .ql-picker-item[data-value="0.75em"]::before{font-size:.75em}.jspCompose .ql-compose-container .ql-snow .ql-picker.ql-size .ql-picker-item::before{font-size:1em}.jspCompose .ql-compose-container .ql-snow .ql-picker.ql-size .ql-picker-item[data-value="1.15em"]::before{font-size:1.15em}.jspCompose .ql-compose-container .ql-snow .ql-picker.ql-size .ql-picker-item[data-value="1.3em"]::before{font-size:1.3em}.fancytree-loader{overflow:hidden;-webkit-animation:move 1s linear infinite;animation:move 1s linear infinite;background-image:linear-gradient(-45deg,rgba(200,200,200,0.25) 25%,transparent 25%,transparent 50%,rgba(200,200,200,0.25) 50%,rgba(200,200,200,0.25) 75%,transparent 75%,transparent);-webkit-background-size:50px 50px;background-size:50px 50px}html[data-bgs="nightRider"] .fancytree-loader{background-image:linear-gradient(-45deg,rgba(100,100,100,0.25) 25%,transparent 25%,transparent 50%,rgba(100,100,100,0.25) 50%,rgba(100,100,100,0.25) 75%,transparent 75%,transparent)}@-webkit-keyframes move{0%{background-position:0 0}100%{background-position:50px 50px}}@keyframes move{0%{background-position:0 0}100%{background-position:50px 50px}}@media(max-width:680px){.mailbox .row-messages table:not(.table-message-details) td:nth-child(1) .awobject{padding:0;margin:0 0 0 10px}.mailbox .row-messages table:not(.table-message-details) td:nth-child(3) i,.mailbox .row-messages table:not(.table-message-details) td:nth-child(3){min-width:0;margin:0 4px 0 0}.mailbox .row-messages table:not(.table-message-details) td:nth-child(2),.mailbox .row-messages table:not(.table-message-details) td:nth-child(2) img,.mailbox .row-messages table:not(.table-message-details) td:nth-child(2) span{width:0;min-width:0}.mailbox .row-messages table:not(.table-message-details) td:nth-child(5) span,.mailbox .row-messages table:not(.table-message-details) td:nth-child(5){display:none}.mailbox .row-controls .pagination-title{white-space:nowrap;margin:0}}@media(max-width:768px){.mailbox .mail-list-mrow.mail-list-mrow-preview,.mailbox .row-messages table:not(.table-message-details) td:nth-child(6){display:none}.mailbox .row-messages table:not(.table-message-details) td:nth-child(1),.mailbox .row-messages table:not(.table-message-details) td:nth-child(2),.mailbox .row-messages table:not(.table-message-details) td:nth-child(3){padding:0 !important}.mailbox .row-messages table td.ui_checked_checkbox:nth-child(1){width:34px !important;min-width:34px !important;max-width:34px !important;text-align:center !important}.mailbox .mail-list-mrow{overflow:hidden;white-space:nowrap}.mailbox .mail-list-mrow.mail-list-mrow-subject{max-width:40vw}.mailbox .mail-list-avatar{display:inline-block;min-width:25px;margin-right:2px;margin-left:-6px}.mailbox .row-messages table td:nth-child(3) i[class*="fa-star"]{font-size:15px}}aside [data-compose="1"]{width:92%;margin:10px 0 10px 10px;background-color:transparent}html:not([data-theme="white"]) aside [data-compose="1"]{color:rgba(255,255,255,0.75);border-color:rgba(215,215,215,0.2);background-color:transparent !important}html[data-theme="blue"] aside [data-compose="1"]{color:rgb(245 240 255 / 98%)}html:not([data-theme="white"]) aside [data-compose="1"].active,html:not([data-theme="white"]) aside [data-compose="1"]:active,html:not([data-theme="white"]) aside [data-compose="1"]:focus,html:not([data-theme="white"]) aside [data-compose="1"]:hover{color:rgba(255,255,255,0.85) !important;border-color:rgba(215,215,215,0.35) !important;background-color:rgb(185 165 220 / 15%) !important}html[data-bgs="nightRider"] form.compose .bootstrap-tagsinput>input:not(.x):not(.x):not(.x):not(.x):not(.x):not(.x):not(.x):not(.x):not(.x):not(.x):not(.x){background-color:transparent !important}html[data-bgs="nightRider"] .mailbox .panel-mail .table>thead>tr[class*="hl-"]>th,html[data-bgs="nightRider"] .mailbox .panel-mail .table>tbody>tr[class*="hl-"]>th,html[data-bgs="nightRider"] .mailbox .panel-mail .table>tfoot>tr[class*="hl-"]>th,html[data-bgs="nightRider"] .mailbox .panel-mail .table>thead>tr[class*="hl-"]>td,html[data-bgs="nightRider"] .mailbox .panel-mail .table>tbody>tr[class*="hl-"]>td,html[data-bgs="nightRider"] .mailbox .panel-mail .table>tfoot>tr[class*="hl-"]>td{border-top:1px solid #4f} diff --git a/extensions/mail/mail.min.css.gz b/extensions/mail/mail.min.css.gz index 655e09e06..dfd3c107a 100644 Binary files a/extensions/mail/mail.min.css.gz and b/extensions/mail/mail.min.css.gz differ diff --git a/extensions/mail/mail.min.js b/extensions/mail/mail.min.js index 1cd35453a..1fa3b9c6a 100644 --- a/extensions/mail/mail.min.js +++ b/extensions/mail/mail.min.js @@ -1 +1 @@ -'use strict';var _slicedToArray=function(){function sliceIterator(arr,i){var _arr=[];var _n=true;var _d=false;var _e=undefined;try{for(var _i=arr[Symbol.iterator](),_s;!(_n=(_s=_i.next()).done);_n=true){_arr.push(_s.value);if(i&&_arr.length===i)break;}}catch(err){_d=true;_e=err;}finally{try{if(!_n&&_i["return"])_i["return"]();}finally{if(_d)throw _e;}}return _arr;}return function(arr,i){if(Array.isArray(arr)){return arr;}else if(Symbol.iterator in Object(arr)){return sliceIterator(arr,i);}else{throw new TypeError("Invalid attempt to destructure non-iterable instance");}};}();var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};function _defineProperty(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}var mail=function(){var _={path:{origin:v___location_origin,prefix:v___location_prefix,extensions:v___server_extensions_path,css:v___server_css_path,js:v___server_js_path},variable:{switch:function _switch(){return $t_uri_webmail;},module:{name:function name(){return'mailbox';},link:function link(){var prefix=v___location_prefix;return prefix?prefix+'/'+v___module:'/'+this.name();}},locale:{short:config_portable_theme_locale_format_short}},platform:{mac:window.navigator.platform==='MacIntel'},pjax:{fetch:plugins.pjax.page.link.get},fetch:{options:{headers:{'x-requested-with':'XMLHttpRequest'}}},load:load,sdata:session.server.data,mavailable:core.moduleAvailable,lang:theme_language,notification:{post:plugins.messenger.post,hideAll:plugins.messenger.toast.hideAll},file_chooser:plugins.chooser.file,button:{progress:snippets.progressive_button,lock:snippets.button_lock},rows:page_table_rows_control,document_title:theme_title_generate,update_mdata:core.updateModuleData,uri_param:uri_parse_param,error:connection_error,error_quota:theme_error_disk_quota_exceeded,event:{generate:event_generate},navigation:{reset:plugins.navigation.reset},plugin:{json_to_query:Convert.json_to_query,serialized_to_json:Convert.serialized_to_json,nice_size:Convert.nice_size,html_escape:Convert.htmlEscape,html_strip:Convert.htmlStrip,quote_escape:Convert.quoteEscape,arr_prepend:Convert.arrPrepend,quill_toolip:quill_toolbar_tooltip,setup_modifier:theme_modifiers_replace_for_mac,timestamp:snippets.datetime.locale,offset_adjust:page.handle.content.offset,preloader:{hide:page.handle.content.preloader.hide},dayjs:dayjs,select:function select(data){var size=arguments.length>1&&arguments[1]!==undefined?arguments[1]:'34';if(Array.isArray(data)){data[0].select2(data[1]);return;}data.select2({minimumResultsForSearch:5,containerCssClass:'select2-content heighter-'+size,dropdownCssClass:'select2-content h'+size});data.next('.select2').addClass('select2-content-container');data.on('select2:open',function(){$('.select2-container').off('click.container').on('click.container',function(event){event.stopPropagation();});});},scroll:function scroll(target,options){if(typeof target==='string'){$(target).mCustomScrollbar(options);}else{$(target[0]).mCustomScrollbar('scrollTo',target[1],{scrollOffset:[$(target[0]),3,4]});}},arialabel:function arialabel(){var arialabel='aria-label';document.querySelectorAll('[data-tooltip="mailbox"]:not('+arialabel+')').forEach(function(t){return t.setAttribute(arialabel,t.getAttribute('data-title'));});},tooltip:function tooltip(target){var $target=target||$('[data-tooltip="mailbox"]');$target.tooltip({html:true,trigger:'hover',container:'body',sanitize:false,delay:{show:600,hide:30}});}}},$$={$:{layout:{container:'container-fluid',controls:'mail-controls',panel:'panel-mail panel-body',row:{controls:'row row-controls',messages:'row row-messages colorify',quota:'row row-quota',centered:'row text-center'},column:{3:'col-xs-3',4:'col-xs-4',6:'col-xs-6',8:'col-xs-8',9:'col-xs-9',12:'col-xs-12'},button:{link:'btn btn-link text-decoration-none',transparent:{plain:'btn btn-transparent',link:'btn btn-link btn-transparent'},default:'btn btn-default',primary:'btn btn-primary',block:{default:'btn btn-default btn-block',transparent:'btn btn-transparent btn-block'},dropdown:{default:'btn btn-default dropdown-toggle'}}},tree:{container:'data-mail-folders',active:'fancytree-active',loader:'fancytree-loader',title:'fancytree-title',bubble:'label label-danger'},controls:{compose:{button:'[data-compose]',icon:'fa-fw fa-plus'},select:{dropdown:'dropdown-select',checkbox:'[data-select] input',menus:'[data-select-mass]'},delete:'btn btn-default fa fa-trash',forward:'btn btn-default fa fa-forward',search:{link:'[data-href^="sort.cgi"]',clear:{link:'search-clear text-danger',icon:'fa-fw fa-times-circle-o'},dropdown:'dropdown-search',icon:'fa-search',data:{form:{action:'data-form-action',type:'data-form-action-type',advanced:'data-form-action-advanced'}},button:{type:'[data-toggle-type="1"]'},caret:{down:'fa-caret-down',up:'fa-caret-up'},submit:'[data-search-submit]'},move:{dropdown:'dropdown-move',checkbox:'[data-copy-only]',icon:'fa-folder-move',submit:'[data-transfer-submit]'},more:{dropdown:'dropdown-more',icon:'fa-dots-vertical',menu:{read:'[data-form-action="markas1"]',unread:'[data-form-action="markas0"]',special:'[data-form-action="markas2"]',spam:'[data-form-action="razor"]',ham:'[data-form-action="ham"]',black:'[data-form-action="black"]',white:'[data-form-action="white"]'}},sort:{dropdown:'dropdown-sort',icon:'fa-fw fa-sort'},counter:'mail-selected-count',refresh:{button:'btn btn-lg btn-default fa fa-refresh-mdi'},pagination:'pagination-title',settings:'btn btn-default fa fa-cog'},messages:{checkbox:'input[data-check]',flag:'mail-list-trow-flag-security',special:{star:'star',starred:'fa-star star',unstarred:'fa-star-o star'},row:{empty:'fa fa-fw fa-1_50x fa-inbox'}},compose:{button:{inverse:'btn-inverse',submit:'btn-primary',schedule:'btn-info'},hidden:'hidden',panel:{content:'jsPanel-content',container:'jspCompose',container_shown:'jspShown',backdrop:'compose_backdrop'},editor:{compose:'ql-compose',composer:'data-composer',scheduled:'scheduled',content:'ql-editor',toolbar:'ql-toolbar',disabled:'ql-disabled',tb_bold:'ql-bold',tb_link:'ql-link',tb_image:'ql-image',controls:{compose:'compose-controls',more:'more-options',extra:{attach:'e-attachment',link:'e-ql-link',image:'e-ql-image',html:'e-html',discard:'e-discard'}}},form:{header:'form-head',recipients:{control:'recipients-control',fields:'recipients-control-fields'},name:{tattach:'tattachments',scheduled:'scheduled'}},icons:{upload:{server:'fa fa-fw fa-download-cloud',attach:'fa2 fa2-attach'}}},notification:{danger:'exclamation-triangle',error:'exclamation-circle',success:'check-circle',type:{search:'search',scheduled:'clock',trash:'- fa2 fa2-trash'}},class:{events_none:'pointer-events-none'},template:{compose:function compose(data){var hidden=' class="'+data.class.hidden+'"',empty=String(),status={server_file:empty,abook:empty,crypt:empty,sign:empty,dsn:empty,del:empty,menu:{server_file:empty,encrypt:empty,options:empty}},value={server_file:data.toggle.more.server_file,crypt:data.toggle.more.crypt[0],sign:data.toggle.more.sign[0],abook:data.toggle.more.abook,dsn:data.toggle.more.dsn,del:data.toggle.more.del};value.server_file===null&&(status.server_file=hidden);if(value.server_file===null){status.menu.server_file=hidden;}value.crypt===null&&(status.crypt=hidden);value.sign===null&&(status.sign=hidden);if(value.crypt===null&&value.sign===null){status.menu.encrypt=hidden;}value.abook===null&&(status.abook=hidden);value.dsn===null&&(status.dsn=hidden);value.del===null&&(status.del=hidden);if(value.abook===null&&value.dsn===null&&value.del===null){status.menu.options=hidden;}var toolbar=void 0;if(data.toolbar_mode==='basic'){toolbar='\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ';}else if(data.toolbar_mode==='advanced'){toolbar='\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ';}else{toolbar='\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ';}return'\n
\n
\n
\n
\n
\n
\n \n
\n
\n \n \n \n \n '+(_typeof(data.from)==='object'?'
\n \n <\n @'+data.from.dom+'>\n \n
':data.from)+'\n
\n
\n
\n
\n
\n
\n \n
\n
\n '+data.to+'\n
\n
\n
\n
\n
\n
\n
\n \n
\n
\n '+data.cc+'\n
\n
\n
\n
\n
\n
\n \n
\n
\n '+data.bcc+'\n
\n
\n
\n
\n
\n
\n
\n \n
\n
\n '+data.subject+'\n
\n
\n
\n
\n \n
\n
\n
\n
\n \n
'+data.body+'
\n
'+toolbar+'
\n
\n
\n \n \n \n \n \n \n \n
\n
\n \n \n
\n
\n \n \n \n \n \n \n '+data.language._options+'\n \n \n \n \n \n
\n \n \n
\n ';},html:{tags:{br:'
'}}}},create:{$:function $(classes,data){var type=arguments.length>2&&arguments[2]!==undefined?arguments[2]:'div';var content=arguments.length>3&&arguments[3]!==undefined?arguments[3]:String();var tooltip=arguments.length>4&&arguments[4]!==undefined?arguments[4]:String();var attributes=this._attributes(data);classes=this._classes(classes);if(tooltip){tooltip='data-tooltip="mailbox" data-placement="bottom" data-title="'+tooltip+'"';}return'<'+type+' '+attributes+' '+tooltip+' class="'+classes+'">'+content+'';},icon:function icon(classes){var attributes=arguments.length>1&&arguments[1]!==undefined?arguments[1]:String();var attribute=this._attributes(attributes),icon=this._classes(classes);return'';},button:function button(classes,data,content,icon,tooltip){icon=this._classes(icon);return this.$(classes,data,'button',(icon?'  ':'')+content+'',tooltip);},input:function input(){var name=arguments.length>0&&arguments[0]!==undefined?arguments[0]:String();var placeholder=arguments.length>1&&arguments[1]!==undefined?arguments[1]:String();var value=arguments.length>2&&arguments[2]!==undefined?arguments[2]:String();var type=arguments.length>3&&arguments[3]!==undefined?arguments[3]:'text';var attributes=arguments.length>4&&arguments[4]!==undefined?arguments[4]:String();var attribute=this._attributes(attributes),id=name;if((typeof name==='undefined'?'undefined':_typeof(name))==='object'){id=name[1];name=name[0];}return'';},textarea:function textarea(){var name=arguments.length>0&&arguments[0]!==undefined?arguments[0]:String();var placeholder=arguments.length>1&&arguments[1]!==undefined?arguments[1]:String();var value=arguments.length>2&&arguments[2]!==undefined?arguments[2]:String();var attributes=arguments.length>3&&arguments[3]!==undefined?arguments[3]:String();var attribute=this._attributes(attributes),id=name;if((typeof name==='undefined'?'undefined':_typeof(name))==='object'){id=name[1];name=name[0];}return'';},label:function label(){var target=arguments.length>0&&arguments[0]!==undefined?arguments[0]:String();var content=arguments.length>1&&arguments[1]!==undefined?arguments[1]:String();var attributes=arguments.length>2&&arguments[2]!==undefined?arguments[2]:String();var attribute=this._attributes(attributes);return'';},select:function select(data){var attributes=arguments.length>1&&arguments[1]!==undefined?arguments[1]:String();var name=arguments.length>2&&arguments[2]!==undefined?arguments[2]:String();var attribute=this._attributes(attributes),select='';return select;},checkbox:function checkbox(){var attributes=arguments.length>0&&arguments[0]!==undefined?arguments[0]:String();var name=arguments.length>1&&arguments[1]!==undefined?arguments[1]:String();var value=arguments.length>2&&arguments[2]!==undefined?arguments[2]:String();var label=arguments.length>3&&arguments[3]!==undefined?arguments[3]:' ';var checked=arguments.length>4&&arguments[4]!==undefined?arguments[4]:String();var attribute=this._attributes(attributes),checkbox=String(),id=name+'-'+Math.floor(Math.random()*9e10);!label&&(label=' ');checked&&(checked='checked');checkbox+='';checkbox+='';checkbox+='';checkbox+='';return checkbox;},radio:function radio(){var attributes=arguments.length>0&&arguments[0]!==undefined?arguments[0]:String();var name=arguments.length>1&&arguments[1]!==undefined?arguments[1]:String();var value=arguments.length>2&&arguments[2]!==undefined?arguments[2]:String();var label=arguments.length>3&&arguments[3]!==undefined?arguments[3]:' ';var id=arguments.length>4&&arguments[4]!==undefined?arguments[4]:String();var checked=arguments.length>5&&arguments[5]!==undefined?arguments[5]:String();var attribute=this._attributes(attributes),checkbox=String();checkbox+='';checkbox+='';checkbox+='';checkbox+='';return checkbox;},dropdown:function dropdown(classes,data,button,icon,tooltip,cbfunc){var dropdown=String();classes=this._classes(classes);dropdown+='
';if(button){if(/<[a-z][\s\S]*>/i.test(button)){dropdown+=this.$('layout.button.default',false,'span',button);}else{dropdown+=this.button('layout.button.default',false,button);}}dropdown+=this.button('layout.button.dropdown.default',{'toggle':'dropdown'},'',false,tooltip);dropdown+='';dropdown+='
';if(typeof cbfunc==='function'){dropdown=cbfunc(dropdown);}return data[0].length?dropdown:String();},_attributes:function _attributes(data){var attributes=String();if(Array.isArray(data)){attributes=data.join(' ');}else if(data){attributes=Object.entries(data).map(function(_ref5){var _ref6=_slicedToArray(_ref5,2),k=_ref6[0],v=_ref6[1];return attributes+=(k.startsWith('data-')?k:'data-'+k)+'='+v+' ';}).slice(-1)[0];}return attributes;},_classes:function _classes(classes){return classes?classes.split('.').reduce(function(a,b){return a?a[b]:undefined;},$$.$):String();}},selector:function selector(_selector){_selector=this.create._classes(_selector);return _selector.startsWith('[')?_selector:"."+_selector.replace(/\s+/g,".");},element:function element(_element){return _element?$(this.selector(_element)):String();}};var config={d:{},set:function set(config){this.d=config;}},bundles={loaded:false,get:function get(config){if((typeof config==='undefined'?'undefined':_typeof(config))!=='object'||(typeof config==='undefined'?'undefined':_typeof(config))==='object'&&config.d&&!config.d.u){return;}this.loaded=true;var bundles=['jquery.jspanel','quill:min'];config.d.u.html_edit_mode==='advanced'&&(bundles=_.plugin.arr_prepend('highlight/highlight:min',bundles));_.load.bundle(bundles,1);}},compose=function(){var xtarget={};xtarget.send='send_mail.cgi';xtarget.reply='reply_mail.cgi';!bundles.loaded&&bundles.get(config);var message=function message(){var form=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;var inline=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var types=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var path=_.path.prefix,cmodule=_.variable.module.name(),prefix=path+'/'+cmodule;xtarget.getSize=path+'/xhr.cgi?xhr-get_size=1&xhr-get_size_nodir=1&xhr-get_size_path=';xtarget.delete=prefix+'/delete_mail.cgi?confirm=1&delete=1&noredirect=1';xtarget.schedule=path+'/schedule/save.cgi';xtarget.addressBook=prefix+'/export.cgi?fmt=csv&dup=0&incgr=1';if((typeof form==='undefined'?'undefined':_typeof(form))==='object'&&form.length){form=$(form).serialize()+'&reply=1';types.new=0;}else{form='new=1';types.new=1;}if(types.reply_all){form+='&rall=1';}else if(types.forward){form+='&forward=1';}fetch(prefix+'/'+xtarget.reply+'?'+form,_.fetch.options).then(function(rs){return rs.text();}).then(function(rs){var $form=$(rs).find('[action*="'+xtarget.send+'"]'),generate={timestamp:function timestamp(){return _.plugin.dayjs().valueOf()*1e2;},random:function random(){return Math.floor(Math.random()*9e14);}},id=generate.timestamp(),form_data_lost=$form.find(':checkbox:not(:checked)').attr('value','0').prop('checked',true).map(function(){return this.name;}).get(),form_data=$form.serialize(),$form_textarea=$(rs).find('textarea[name="body"]'),toolbar_mode=$form_textarea.data('html-mode'),signature=$.trim(_.plugin.quote_escape($form_textarea.text()));if(config.d.u.html_edit==2&&signature){signature=''+($$.$.template.html.tags.br.repeat(2)+signature);}if(form_data){form_data=_.plugin.serialized_to_json(form_data);var data={visible:{},hidden:{}},classes=$$.$.compose,toggle={recipients:function recipients(id,data,data_visible){if((typeof data==='undefined'?'undefined':_typeof(data))==='object'){var target=data[0],state=data[1],rcs='.'+classes.form.recipients.control,rcsf='.'+classes.form.recipients.fields,rc=target.querySelector(rcs),rf=target.querySelector(rcsf);rc.querySelector('.'+id).classList.toggle(classes.button.inverse,!state);rf.querySelector('.'+id).classList.toggle(classes.hidden,state);return;}else if(data==='rc'){return!data_visible[id]?String():' '+classes.button.inverse;}else if(data==='rf'){return data_visible[id]?String():' '+classes.hidden;}},attachments:function attachments(panel){var a=panel.querySelector('[name="'+classes.form.name.tattach+'"]'),l=a.previousSibling.querySelectorAll('.tag').length;a.parentNode.parentNode.classList.toggle(classes.hidden,!l);adjust.contenteditable(panel);},backdrop:function backdrop(panel,show){var body=$('body'),re_zi=99999,compose_backdrop=classes.panel.backdrop;if(show){panel[0].dataset.zIndex=panel[0].style.zIndex;panel[0].style.zIndex=re_zi+1;panel[0].setAttribute('maximized',1);body.append('');}else{if(panel[0]){panel[0].style.zIndex=panel[0].dataset.zIndex;panel[0].removeAttribute('maximized');delete panel[0].dataset.zIndex;}body.find('.modal-backdrop.'+compose_backdrop).remove();}},formatting:function formatting(target,status){var es=classes.editor.composer,eb=target.querySelectorAll('['+es+'-h]'),ed=target.querySelectorAll('['+es+']');eb.forEach(function(b){b.classList.toggle(classes.hidden,!status);});ed.forEach(function(e){if(e.getAttribute(es)==='text'){e.classList.toggle(classes.hidden,status);}else{e.classList.toggle(classes.hidden,!status);}});adjust.contenteditable(target);}},adjust={contenteditable:function contenteditable(panel){var target=panel.querySelector('.'+classes.panel.content),container=target?target.offsetHeight:window.innerHeight/4,top_block=panel.querySelector('.'+classes.form.header).offsetHeight,editor_toolbar=panel.querySelector('.'+classes.editor.toolbar).offsetHeight,editor=panel.querySelector('['+classes.editor.composer+']:not(.'+classes.hidden+')'),offset=50+editor_toolbar,height=container-top_block-offset+'px';editor.style.height=height;}},check={field:function field(_field,object){var value=object[_field];if(value&&!isNaN(value)){value=~~value;}return typeof value==='undefined'?null:value;}},element={input:function input(str,data){var readonly=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var no_escape=arguments.length>3&&arguments[3]!==undefined?arguments[3]:false;var type=arguments.length>4&&arguments[4]!==undefined?arguments[4]:'text';var value=(typeof data==='undefined'?'undefined':_typeof(data))==='object'?data[str]:data;if(readonly){readonly=['readonly'];}if(!no_escape){value=_.plugin.html_escape(value);}return $$.create.input([str,'c-'+str+'-'+id],String(),value,type,readonly);},select:{},type:{time:function time(){var ct=new Date(),format=function format(s){return('0'+s).substr(-2);},round=function round(m){var r=Math.ceil(m/10)*10;return r===60?r-5:r;},h=format(ct.getHours()),m=round(format(ct.getMinutes()));return'';},date:function date(){var ct=new Date(),y=ct.getFullYear(),m=ct.getMonth()+1,d=ct.getDate();return'';}},composer:function composer(target){var panel=target,paneled=panel.header?true:false,config_html={allowed:parseInt(data.hidden.html_edit),initial:parseInt(data.hidden.html_edit_config)},config_update=function config_update(option,value){_.update_mdata("/uconfig.cgi?mailbox","/uconfig_save.cgi",_defineProperty({},option,value));},qs=Quill.import('attributors/style/size'),qf=Quill.import('attributors/style/font');qs.whitelist=["0.75em","1.15em","1.3em"];Quill.register(qs,true);qf.whitelist=["monospace"];Quill.register(qf,true);target=target[0];var asb=target.querySelector('.'+classes.form.header),ccs=target.querySelectorAll('.'+classes.editor.controls.compose),rcs=target.querySelector('.'+classes.form.recipients.control),qtg=target.querySelector('.'+classes.editor.compose),tcm=target.querySelector('['+classes.editor.composer+'="text"]'),editor={this:new Quill(qtg,{modules:{syntax:(typeof hljs==='undefined'?'undefined':_typeof(hljs))==='object',imageDrop:true,imageResize:{modules:['DisplaySize','Resize']},clipboard:{matchVisual:false},toolbar:target.querySelector('#tb-'+id)},bounds:target,theme:'snow'}),get:{text:function text(){return tcm.value;},html:function html(){return editor.this.root.innerHTML;},data:function data(){return config_html.allowed?editor.get.html():editor.get.text();}},convert:function convert(){var he=editor.this,te=he.root.parentElement.previousElementSibling;if(config_html.allowed){he.setText(te.value);}else{te.value=he.getText();}},maximized:function maximized(){return target.hasAttribute('maximized');}},title_update=function title_update(ds){var sf=asb.querySelector('[name="subject"]'),ud=function ud(){sf.dispatchEvent(new Event('input'));},us=function us(tg,df){if(paneled){tg.style.opacity=df?0.7:1;}},du=function du(tg){if(ds===1){tg.textContent=_.lang('mail_composer_draft_saving');us(tg,true);}else if(ds===-1){tg.textContent=_.lang('mail_composer_draft_saved');us(tg,true);setTimeout(function(){us(tg);ud();},2e3);}};if(paneled){var pt=panel.header.title[0],pti=pt.textContent;if(ds){du(pt,pti);}else{sf.addEventListener('input',function(){pt.textContent=this.value||pti;});ud();}}};paneled&&target.classList.add(classes.panel.container,classes.panel.container_shown);adjust.contenteditable(target);title_update();var ctl_tgl=ccs[0].querySelector('.'+classes.editor.controls.extra.html);ctl_tgl.addEventListener('click',function(){var st=parseInt(config_html.allowed)||0,ia=parseInt(config_html.initial)||0,sg=+!st,co=sg?2:ia===1?1:0;toggle.formatting(target,sg);config_html.allowed=sg;config_update('html_edit',co);editor.convert();});var from_from=target.querySelector('input[name="from"]:not(disabled)'),from_name=target.querySelector('input[name="real"]'),from_user=target.querySelector('input[name="user"]');if(from_name&&from_user){$.fn.eW=function(text,font){if(!$.fn.eW.fakeEl){$.fn.eW.fakeEl=$('').hide().appendTo(document.body);}$.fn.eW.fakeEl.text(text||this.val()||this.text()||this.attr('placeholder')).css('font',font||this.css('font'));return $.fn.eW.fakeEl.width()+7;};[from_name,from_user].forEach(function(i,n){i.addEventListener('input',function(){$(this).css({width:parseInt($(this).eW()+(!n&&3))});});i.dispatchEvent(new Event('input'));});}var from_focus=from_from||from_name;if(from_focus){from_focus.focus();from_focus.setSelectionRange(-1,-1);}setTimeout(function(){var tb=editor.this.options.modules.toolbar.container,upload_list=[],server_list=[],priority=null,server_attach_previous=null,attachments=target.querySelector('[name="'+classes.form.name.tattach+'"]'),content=target.querySelector('.'+classes.editor.content),ctl_att=ccs[0].querySelector('.'+classes.editor.controls.extra.attach),ctl_lnk=ccs[0].querySelector('.'+classes.editor.controls.extra.link),ctl_img=ccs[0].querySelector('.'+classes.editor.controls.extra.image),ctl_dis=ccs[1].querySelector('.'+classes.editor.controls.extra.discard),submit=target.querySelector('button[type="submit"]'),to_=target.querySelector('input[name="to"]'),cc_=target.querySelector('input[name="cc"]'),bcc_=target.querySelector('input[name="bcc"]'),$more_options=$(target).find('.'+classes.editor.controls.more),scheduled={target:target.querySelector('[name="'+classes.form.name.scheduled+'"]'),container:target.querySelector('.'+classes.editor.scheduled),events:function events(){this.container.addEventListener('click',function(event){event.stopPropagation();});this.checkbox().addEventListener('click',function(){var s=submit,t=s.querySelector('span').querySelector('span'),ct=_.lang('mail_composer_schedule'),c=this.checked,sb=classes.button.submit,sc=classes.button.schedule,d=s.nextElementSibling,st=language._send;s.classList.toggle(sc,c);s.classList.toggle(sb,!c);d.classList.toggle(sc,c);d.classList.toggle(sb,!c);t.textContent=c?ct:st;});this.datepicker();},status:function status(){return this.target.checked;},checkbox:function checkbox(){return this.container.querySelector('[type="checkbox"]');},holder:function holder(){return this.container.querySelector('[data-t]');},datepicker:function datepicker(){var tag=this.holder(),input=tag.previousSibling;tag.addEventListener('click',function(){$(input).datepicker('show');});$(input).datepicker({language:_.sdata("language"),todayHighlight:true,autoclose:true,startDate:"0d"}).on("changeDate",function(l){var today=_.lang('global_today').toLowerCase(),tomorrow=_.lang('global_tomorrow').toLowerCase(),label=today,now=new Date(),y=now.getFullYear(),m=now.getMonth()+1,d=now.getDate(),py=l.date.getFullYear(),pm=l.date.getMonth()+1,pd=l.date.getDate(),date=l.dates[0],date_=py+'-'+pm+'-'+pd,date_formatted=dayjs(date).format(_.variable.locale.short);this.dataset.value=date_;if(y===py&&m===pm&&(d===pd||d+1===pd)){if(d+1===pd){label=tomorrow;}}else{label=date_formatted;}tag.textContent=label;});}},draft={timeout:{update:null,discard:null},data:[],reset:function reset(){var folder=this.data[0];this.data=[];if(folder){this.data.push(folder);}},test:function test(){return this.data.length>=1;},save:function save(){this.terminate();this.timeout.update=setTimeout(function(){submit.dispatchEvent(new Event('click'));},2e3);},terminate:function terminate(){typeof this.timeout.update==='number'&&clearTimeout(this.timeout.update);},purge:function purge(id,folder,message){fetch(xtarget.delete+'&id='+id+'&folder='+folder+'&d='+message,_.fetch.options).then(function(r){r.text().then(function(){draft.refresh();});});},refresh:function refresh(){if(this.test()&&folders.check(this.data[0])){folders.refresh();}},clean:function clean(){this.test()&&this.purge(this.data[0],this.data[1],this.data[3]);this.reset();this.terminate();},control:{discard:function discard(){editor.maximized()&&panel.normalize();draft.timeout.discard=setTimeout(function(){draft.test()&&draft.purge(draft.data[0],draft.data[1],draft.data[3]);draft.reset();draft.terminate();paneled&&panel.close();},5e3);},undo:function undo(){target.classList.remove(classes.hidden);typeof draft.timeout.discard==='number'&&clearTimeout(draft.timeout.discard);}}},add_attachment=function add_attachment(type,id,filedata,size,update){var icon=type==='server'?classes.icons.upload.server:classes.icons.upload.attach,name=filedata.name.split("/").pop()||filedata.name;$(attachments).tagsinput('add','[i class="'+icon+'"][/i]'+name+' [em]('+_.plugin.nice_size(size)+')[/em]');var tags=attachments.previousSibling.querySelectorAll('.tag'),last=tags[tags.length-1];last.dataset.reference=id;if(type==='server'){server_list[id]=filedata.name;}else{upload_list[id]=filedata.file;}if(update){adjust.contenteditable(target);toggle.attachments(target);}};editor.this.keyboard.addBinding({key:'7',shiftKey:true,ctrlKey:!_.platform.mac,metaKey:_.platform.mac},function(range,context){var currentFormat=this.quill.getFormat(range.index);if(currentFormat.list==='ordered'){this.quill.format('list',false);}else{this.quill.format('list','ordered');}});editor.this.keyboard.addBinding({key:'8',shiftKey:true,ctrlKey:!_.platform.mac,metaKey:_.platform.mac},function(range,context){var currentFormat=this.quill.getFormat(range.index);if(currentFormat.list==='bullet'){this.quill.format('list',false);}else{this.quill.format('list','bullet');}});editor.this.keyboard.addBinding({key:'9',shiftKey:true,ctrlKey:!_.platform.mac,metaKey:_.platform.mac},function(range,context){var currentFormat=this.quill.getFormat(range.index);if(currentFormat.blockquote){this.quill.format('blockquote',false);}else{this.quill.format('blockquote',true);}});ctl_lnk.addEventListener('click',function(){tb.querySelector('.'+classes.editor.tb_link).dispatchEvent(new Event('click'));});ctl_img.addEventListener('click',function(){tb.querySelector('.'+classes.editor.tb_image).dispatchEvent(new Event('click'));});ctl_dis.addEventListener('click',function(){draft.control.discard();var undo={cancel:{label:_.lang('global_undo'),action:function action(){draft.control.undo();}}};_.notification.post([$$.$.notification.type.trash,_.lang('mail_composer_discarded_draft')],10,"warning",'discard-'+id,1,['bottom','center'],undo);target.classList.add(classes.hidden);});rcs.querySelectorAll('button').forEach(function(b){b.addEventListener('click',function(){var enabled=b.classList.contains(classes.button.inverse),type=b.classList.contains("bcc")?'bcc':'cc';toggle.recipients(type,[target,enabled]);adjust.contenteditable(target);});});ctl_att.addEventListener('click',function(){var form=target.querySelector('form'),xu=document.createElement('input');xu.type="file";xu.setAttribute('multiple',1);xu.classList.add(classes.hidden);xu=form.appendChild(xu);xu.click();xu.addEventListener('change',function(){Array.from(this.files).forEach(function(file,i,arr){var fuid=generate.random()+i,size=file.size,name=file.name,last=i===arr.length-1;add_attachment('upload',fuid,{name:name,file:file},size,last);last&&xu.remove();});});});$more_options.find('.dropdown-menu').on("click.bs.dropdown",function(event){var type=this.dataset.type,etarget=event.target,action=etarget.dataset.value;if(action==='server-attach'){var error={read:_.lang('mail_composer_server_attach_error_read'),dir:_.lang('mail_composer_server_attach_error_dir')};_.file_chooser({file:server_attach_previous}).then(function(file){if(file){var suid=generate.random();fetch(xtarget.getSize+file,_.fetch.options).then(function(r){r.text().then(function(rs){var s=rs.split('|'),size=s[1].replace(/\s+/g,String());if(size==-1||size==-2){var _message=size==-1?error.read:error.dir;_.notification.post([$$.$.notification.danger,_message],10,"error",0,1,['bottom','center']);}else{add_attachment('server',suid,{name:file},size,true);}});});}server_attach_previous=file;});return;}event.stopPropagation();if(type==='priority'){var _check=etarget.closest('ul').querySelector('i');_check.remove();etarget.appendChild(_check);priority=action?~~action:null;}if(type==='options'){var cb=etarget.querySelector('input[type="checkbox"]');cb&&(cb.checked^=1);}});$(attachments).tagsinput({allowDuplicates:true,confirmKeys:[13],delimiter:'\\000'});$(attachments).on('itemRemoved',function(event){var item=event.item[1];if(item){delete upload_list[item];delete server_list[item];}toggle.attachments(target);});_.plugin.tooltip($(ctl_att).add(ctl_img).add(ctl_att).add(ctl_lnk).add(ctl_tgl).add(ctl_dis));_.plugin.quill_toolip($(editor.this.root).parent().parent()[0]);asb.addEventListener('input',function(){draft.save();});asb.querySelectorAll('input').forEach(function(input){input.addEventListener('keydown',function(event){if(event.keyCode===13){event.preventDefault();return;}draft.save();});});editor.this.on('text-change',function(){draft.save();});tcm.addEventListener('input',function(){draft.save();});scheduled.events();fetch(xtarget.addressBook,_.fetch.options).then(function(rs){return rs.text();}).then(function(d){[to_,cc_,bcc_].forEach(function(input){var tags=$(input).tagsinput({confirmKeys:[13,32],addOnBlur:false,cancelConfirmKeysOnEmpty:false,tagClass:'label recipient'});var a=_.lang('theme_xhred_global_alias'),b=d.match(/"(.*)","(.*)"/gm);if(b){var book=[];b.map(function(en){var gr=en.match(/"-","(.*)"/),em=en.match(/"(.*)","(.*)"/);if(gr){book.push(a+" <"+em[2]+">");}else if(em){book.push(em[2]+" <"+em[1]+">");}});!$.isEmptyObject(book)&&tags[0].$input.autocomplete({lookup:book,autoSelectFirst:true,position:'relative',appendTo:tags[0].$container,onSelect:function onSelect(m){$(input).tagsinput('add',m.value);this.value=String();}});}$(input).on('itemAdded itemRemoved',function(event){var email=event.item,contact=void 0;if(email){contact=email.match(/<(.*)>/);if(contact){email=contact[1];}if(!event.item.startsWith(a)&&event.type==='itemAdded'&&!/.+@.+\..+/.test(email)){$(event.target.previousSibling).find('.recipient').last().addClass('error');}}adjust.contenteditable(target);});tags[0].$input.on('keydown blur',function(event){var value=this.value;if(event.keyCode===9||event.type==='blur'&&event.relatedTarget){$(this).trigger(_.event.generate('keypress',32));adjust.contenteditable(target);if(value){event.preventDefault();}}});});});submit.addEventListener('click',function(event){var _this=this;event.preventDefault();var form=this.closest('form'),form_data=new FormData(form),trusted=event.isTrusted||~~submit.dataset.isTrusted,draft_status=!trusted;this.dataset.isTrusted=0;if(trusted){draft.terminate();}form_data.append('body',editor.get.data());var pri_key='pri';priority?form_data.set(pri_key,priority):form_data.delete(pri_key);Object.entries(data.hidden).forEach(function(e){var key=e[0],value=e[1];if(!form_data.has(key)){form_data.set(key,value);}});var fsus=Object.values(upload_list);fsus.length&&fsus.forEach(function(f,i){form_data.set('attach'+i,f);});var ssus=Object.values(server_list);ssus.length&&ssus.forEach(function(f,i){form_data.set('file'+i,f);});form_data.set('html_edit',config_html.allowed);form_data.set('spell',0);draft_status&&(form_data.set('new',0),form_data.set('enew',1),form_data.set('save',1),title_update(1));var schedule={date:{get:function get(d){var date=this.value,t=scheduled.container.querySelector('[name="date"]');if(t){date=t.dataset.value.split('-');}return d==='y'?~~date[0]:d==='m'?~~date[1]:~~date[2];}},time:{value:scheduled.container.querySelector('[type="time"]').value,get:function get(t){var time=['12','00'];if(this.value){time=this.value.split(':');}return t==='h'?~~time[0]:~~time[1];}}};if(scheduled.status()&&!draft_status){var m={body:'mail',is_html:config_html.allowed,delete_after:1,enabled:1,status:1,mode:1,hour:schedule.time.get('h'),min:schedule.time.get('m'),day:schedule.date.get('d'),month:schedule.date.get('m'),year:schedule.date.get('y')};Object.entries(m).forEach(function(e,i){if(i){form_data.set(e[0],e[1]);}else{form_data.set(e[1],form_data.get(e[0]));form_data.delete(e[0]);}});}var xhr=new XMLHttpRequest(),link=scheduled.status()&&!draft_status?xtarget.schedule:form.getAttribute('action');xhr.open("POST",link);xhr.setRequestHeader('x-requested-with','XMLHttpRequest');xhr.upload.onprogress=function(e){!draft_status&&(_.button.progress(_this,Math.ceil(e.loaded/e.total*100)),_.button.lock(_this,true));};xhr.onload=function(e){var rs=e.target.responseText,status=String(),error=String(),error_container=false,parser=new DOMParser(),_g=function _g(param){return _.uri_param(param,e.target.responseURL);},_d={id:_g('id'),folder:{index:_g('folder'),type:_g('folder_type'),id:_g('folder_id')},input:{id:form.querySelector('[name="id"]'),folder:form.querySelector('[name="folder"]')}};if(draft_status){title_update(-1);draft.data=[_d.folder.id,_d.folder.index,_d.input.id&&_d.input.id.value,_d.id];if(_d.folder.type==2||_d.folder.type==4){if(_d.input.id){draft.purge.apply(null,draft.data);}else{draft.refresh();}}else{draft.refresh();}_d.input.id&&_d.input.id.remove();_d.input.folder&&_d.input.folder.remove();form.insertAdjacentHTML('beforeend',element.input('id',_d.id,false,false,'hidden'));form.insertAdjacentHTML('beforeend',element.input('folder',_d.folder.index,false,false,'hidden'));}else{rs=parser.parseFromString(rs,'text/html');if(rs){rs=rs.querySelector('.panel-body'),error_container=rs.querySelector('h3');if(error_container){error=error_container.innerHTML.replace(/\s:/,': ');if(!_.error_quota(error_container.innerHTML)){_.notification.post([$$.$.notification.danger,error],10,"error",0,1,['bottom','center']);}_.button.progress(_this,0);_.button.lock(_this,false);}else{status=rs.innerHTML;_.notification.post([scheduled.status()?$$.$.notification.type.scheduled:$$.$.notification.success,status],10,"success",0,1,['bottom','center']);paneled&&panel.close();draft.clean();}}}};xhr.onerror=function(e){_.button.progress(_this,0);_.button.lock(_this,false);_.error({responseText:e.target.responseText,status:xhr.status,readyState:xhr.readyState,_errConnectionReset:xhr.status===0?true:false},1);};xhr.send(form_data);});target.addEventListener('keydown',function(e){var meta=_.platform.mac?e.metaKey:e.ctrlKey,enter=e.keyCode===13;if(meta&&enter){submit.dataset.isTrusted=1;submit.dispatchEvent(new Event('click'));}});},3e2);}},language={},template={};Object.entries(form_data).filter(function(f){['from','real','to','cc','bcc','subject','body'].includes(f[0])?data.visible[f[0]]=f[1]:data.hidden[f[0]]=f[1];});Object.entries(data.visible).forEach(function(e){var id=e[0];language[id]=$form.find('[name='+id+']').parent().prev().text();});Object.entries(data.hidden).forEach(function(e){var id=e[0];if(['crypt','sign'].includes(id)){language[id]=$form.find('[name='+id+']').parent().prev().text();}else if(['pri'].includes(id)){var _data={};$form.find('[name='+id+'] option').map(function(ix){_data[ix]=this.innerText;});language[id]={label:$form.find('[name='+id+']').parent().prev().text(),data:_data};}});language._attachments=_.lang('global_attachments');language._send=_.lang('mail_composer_send');language._scheduled=_.lang('mail_composer_scheduled').replace(/%1/,''+element.type.date()+''+_.lang('global_today').toLowerCase()+'').replace(/%2/,element.type.time());language._attach=_.lang('mail_composer_attach');language._insert_link=_.plugin.setup_modifier(_.lang('editor_tb_link').replace('%cmd',_.platform.mac?'Meta':'Ctrl'));language._insert_picture=_.lang('editor_tb_image');language._toggle=_.lang('mail_composer_toggle');language._discard=_.lang('mail_composer_discard');language._server_attach=_.lang('mail_composer_server_attach');language._notifications=_.lang('global_notifications');language._notifications_dsn=_.lang('mail_composer_notifications_dsn');language._notifications_del=_.lang('mail_composer_notifications_del');language._encrypt=_.lang('global_encrypt');language._options=_.lang('global_options');language._addrecipients=_.lang('mail_composer_addrecipients');language._default=_.lang('global_default');language._fixed_width=_.lang('editor_tb_font_fixed_width');language._name=_.lang('mail_composer_real_name');language._username=_.lang('mail_composer_username');language._paragraph=_.lang('global_paragraph');language._heading=_.lang('global_heading');language._font_size={small:_.lang('global_small'),normal:_.lang('global_normal'),medium:_.lang('global_medium'),large:_.lang('global_large')};var from_name=$form[0].querySelector('input[name="real"]'),from_user=$form[0].querySelector('input[name="user"]'),from_dom=$form[0].querySelector('input[name="dom"]'),from_composable=void 0;if(from_dom){from_composable={name:from_name.value,user:from_user.value,dom:from_dom.value};}element.select.from=$form[0].querySelector('select[name="from"]');element.select.sign=$form[0].querySelector('select[name="sign"]');element.select.crypt=$form[0].querySelector('select[name="crypt"]');if(element.select.from){element.select.from=element.select.from.outerHTML;}if(element.select.sign){element.select.sign=element.select.sign.outerHTML;}if(element.select.crypt){element.select.crypt=element.select.crypt.outerHTML;}template.form=$$.$.template.compose({prefix:prefix,target:{send:xtarget.send},charset:data.hidden.charset,id:id,class:classes,language:language,status:{text:~~data.hidden.html_edit?classes.hidden:String(),html:~~data.hidden.html_edit?String():classes.hidden,module:{schedule:_.mavailable('schedule')?String():classes.hidden}},toggle:{recipients:{cc:toggle.recipients('cc','rc',data.visible),bcc:toggle.recipients('bcc','rc',data.visible),ccf:toggle.recipients('cc','rf',data.visible),bccf:toggle.recipients('bcc','rf',data.visible)},more:{server_file:check.field('file0',data.hidden),abook:check.field('abook',data.hidden),dsn:check.field('dsn',data.hidden),del:check.field('del',data.hidden),sign:[check.field('sign',data.hidden),element.select.sign],crypt:[check.field('crypt',data.hidden),element.select.crypt],pri:check.field('pri',data.hidden)}},from:from_composable||element.select.from||element.input('from',data.visible,!~~config.d.g.edit_from),to:element.input('to',data.visible),cc:element.input('cc',data.visible),bcc:element.input('bcc',data.visible),subject:element.input('subject',data.visible),attachments:element.input(classes.form.name.tattach,data.visible,false,true),body:types.new==1?signature:data.visible.body,signature:signature,toolbar_mode:toolbar_mode});if(inline){var inlne_form=inline.append(template.form);element.composer(inlne_form);}else{var composers=$('.'+classes.panel.container+' .'+classes.editor.compose).length,window_width=window.innerWidth,small_window_width=window_width<640,window_height=window.innerHeight,small_window_height=window_height<640,small_window=small_window_width||small_window_height,ioffset=-15,offset=composers?ioffset*5*composers:ioffset,position=small_window?{}:{my:"right-bottom",at:"right-bottom",offsetX:offset,offsetY:offset},panel=$.jsPanel({position:position,theme:"#eaeaea",onwindowresize:true,panelSize:{width:small_window?window_width+4*ioffset:600,height:small_window?window_height+4*ioffset:600},headerTitle:_.lang('mail_new_message'),content:template.form,maximizedMargin:{top:small_window?-1*ioffset:window_height*0.03,bottom:small_window?-1*ioffset:window_height*0.03,left:small_window?-1*ioffset:window_height*0.1,right:small_window?-1*ioffset:window_height*0.1},footerToolbar:function footerToolbar(){},dblclicks:{title:"maximize"},onminimized:function onminimized(){toggle.backdrop(this);},onclosed:function onclosed(){toggle.backdrop(this);},onnormalized:function onnormalized(){adjust.contenteditable(this[0]);toggle.backdrop(this);},onmaximized:function onmaximized(){adjust.contenteditable(this[0]);toggle.backdrop(this,1);},callback:function callback(){element.composer(this);if(small_window){this.maximize();}}});panel.header.title.addClass('plain');}}});};return{message:message};}();var messages=function(){var fetching={state:false,initial:true,abort:function abort(){if(this.pending()===true&&this.initial===false){this.state.abort();}},pending:function pending(){if(typeof this.state.state==="function"&&this.state.state()==="pending"){return true;}return false;}};var get=function get(data){loader.start();fetching.abort();fetching.state=$.post(_.path.extensions+'/mail/messages.cgi?'+_.plugin.json_to_query(data),function(data){render(data);loader.end();_.document_title(0,_.lang('titles_mail'));config.set(data[0].config);fetching.initial=false;!bundles.loaded&&bundles.get(config);});},loader={target:$$.selector('tree.active'),start:function start(){$(this.target).addClass($$.$.tree.loader);},end:function end(){$(this.target).removeClass($$.$.tree.loader);}},preview_length=function preview_length(){return parseInt($(window).width()/10);},storage={target:'['+$$.$.tree.container+']',counter:$$.selector('controls.counter'),get:function get(){var status=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var data=$(this.target).data('messages')||{};if(!status){data=Object.keys(data);}return data;},set:function set(id,state,status,starred,data){var storage=this.get(1);state?storage[id]=[+status,+starred]:delete storage[id];$(this.target).data('messages',storage);var selected_count=Object.keys(storage).length;$(this.counter).text((selected_count?selected_count+' '+_.lang('global_selected'):String()).toLowerCase());var controls=$$.selector('layout.controls');$(controls).toggleClass('hidden',!selected_count);},restore:function restore(){var data=this.get(),checkboxes=$$.$.messages.checkbox;$(checkboxes).filter(function(i,t){data.includes(t.value)&&$(t).prop('checked',1);}).promise().done(function(){$(checkboxes).trigger('change');});},reset:function reset(){var checkboxes=$$.$.messages.checkbox;$(this.target).data('messages',{});$(checkboxes+':checked').prop('checked',0).trigger('change');}},status={action:function action(_action){var string=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;_action=parseInt(_action.replace(/^\D+/g,''));if(string){return _action?'read':'unread';}return _action;},set:function set(action,messages){var $messages=$($$.$.messages.checkbox).filter(function(i,c){return messages.includes(c.value);}),$targets=$messages.parent().parents('td').parents('tr');$targets.attr('data-unread',+!this.action(action));},write:function write(data){var messages=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var folder_index=data[1].searched_folder_index||data[1].folder_index;if(messages){var action=this.action(data[0],1);messages='&d='+messages.join('&d=');$.post(_.path.extensions+'/mail/message.cgi?folder='+folder_index+'&mark='+action+messages+'');}else{var _action2=this.action(data[0],1),server=data[1],_messages=storage.get(1),starred={read:[],unread:[]};$.each(_messages,function(i,o){if(o[1]===1){o[0]===1?starred.unread.push(i):starred.read.push(i);delete _messages[i];}});submit(server,_defineProperty({},data[0],1),Object.keys(_messages),0,1);var link=_.path.extensions+'/mail/message.cgi?folder='+folder_index+'&mark=starred&state='+_action2+'';starred.read.length&&$.post(link+('&d='+starred.read.join('&d='))+'');starred.unread.length&&$.post(link+''+('&d='+starred.unread.join('&d='))+'');}}},events=function events(data){var button={compose:$$.$.controls.compose.button,search:$$.element('controls.search.dropdown'),refresh:$$.element('controls.refresh.button'),delete:$$.element('controls.delete'),forward:$$.element('controls.forward'),special:{star:$$.selector('messages.special.star'),starred:$$.selector('messages.special.starred'),unstarred:$$.selector('messages.special.unstarred')}},dropdown={mark:{read:$$.element('controls.more.menu.read'),unread:$$.element('controls.more.menu.unread'),special:$$.element('controls.more.menu.special'),spam:$$.element('controls.more.menu.spam'),ham:$$.element('controls.more.menu.ham'),black:$$.element('controls.more.menu.black'),white:$$.element('controls.more.menu.white')},select:$$.selector('controls.select.dropdown'),move:$$.element('controls.move.dropdown'),search:$$.element('controls.search.dropdown')},checkbox=$($$.$.controls.select.checkbox),checkboxes=$$.$.messages.checkbox,flags=$$.selector('messages.flag'),evt={click:'click',change:'change',keyup:'keyup',shown_bs_drpd:'shown.bs.dropdown'};checkbox.off(evt.change).on(evt.change,function(){var $this=$(this),state=$this.is(':checked');$(checkboxes).prop('checked',state).trigger(evt.change);}).parent().parent().off(evt.click).on(evt.click,function(event){var $input=$(this).find('input');!$(event.target).is($input)&&$input.prop('checked',!$input.is(':checked')).trigger(evt.change);});$(flags).off(evt.click).on(evt.click,function(event){event.stopPropagation();});$(dropdown.select).find($$.$.controls.select.menus).off(evt.click).on(evt.click,function(event){var _$=$(event.target).data('type'),$_=$(checkboxes),$__=evt.change,__$='checked';if(_$===5||_$===4){$_.prop(__$,_$&1).trigger($__);}else if(_$===3){$_.prop(__$,function(){return!this.checked;}).trigger($__);}else if(_$===2||_$===1){$_.prop(__$,function(){return+$(this).parents('tr').attr('data-unread')===(_$&1);}).trigger($__);}else if(_$===0){$_.prop(__$,function(){return+$(this).parents('tr').attr('data-starred')===+!(_$&1);}).trigger($__);}});$(checkboxes).off(evt.change).on(evt.change,function(){var $this=$(this),$row=$this.parents('td').parent('tr'),state=$this.is(':checked'),id=$this.val(),checked=checkboxes+':checked',status=$row.attr('data-unread'),starred=$row.attr('data-starred');storage.set(id,state,status,starred,data);$(checked).length===$(checkboxes).length?checkbox.prop('checked',1):checkbox.prop('checked',0);});button.delete.off(evt.click).on(evt.click,function(){submit(data,{'delete':1},storage.get(),1,1);});var $dropdown_move_select=dropdown.move.find('select');$dropdown_move_select.find('option').map(function(i,o){o.value<=-1&&o.remove();});_.plugin.select($dropdown_move_select);$dropdown_move_select.on(evt.change,function(){var _this2=this;setTimeout(function(){$($$.$.controls.move.submit).toggleClass('disabled',!_this2.value).trigger('focus');});});dropdown.move.find('li').off(evt.click).on(evt.click,function(event){event.stopPropagation();var $target=$(event.target),$submit=$($$.$.controls.move.submit),$copy=$($$.$.controls.move.checkbox),copy=$copy.is(':checked');if($target.is($copy)){$submit.text(copy?_.lang('global_copy'):_.lang('global_move'));}if($target.is('button:not(.disabled)')){var _submit2;var action=copy,target=parseInt($dropdown_move_select.val());submit(data,(_submit2={},_defineProperty(_submit2,(action?'copy':'move')+'1',1),_defineProperty(_submit2,'mfolder1',target),_submit2),storage.get(),+!action||(data.searched_folder_index||data.folder_index)===target,1);dropdown.move.removeClass('open');}});dropdown.move.off(evt.shown_bs_drpd).on(evt.shown_bs_drpd,function(){_.plugin.select([$dropdown_move_select,'open']);});button.forward.off(evt.click).on(evt.click,function(){var messages_ids=storage.get().map(function(message_id){return encodeURIComponent(message_id);}),messages_link='&mailforward='+messages_ids.join("&mailforward="),reply=_.path.origin+_.path.prefix+"/mailbox/reply_mail.cgi?folder=",data=JSON.parse(fetching.state.responseText)[0];_.pjax.fetch(reply+data.folder_index+messages_link);});var $dropdown_search_select=dropdown.search.find('select'),$dropdown_search_simple=dropdown.search.find('[data-search-mail]'),$dropdown_search_advanced_all=dropdown.search.find('[name="search-wordsin"]');if(data&&$dropdown_search_select.length){$dropdown_search_select[0].value=data.searched_folder_index||data.folder_index;}_.plugin.select($dropdown_search_select);button.search.find('li').off(evt.click+' '+evt.keyup).on(evt.click+' '+evt.keyup,function(event){event.stopPropagation();var $target=$(event.target),$advanced_form=dropdown.search.find('['+$$.$.controls.search.data.form.advanced+']'),advanced_form_hidden=function advanced_form_hidden(){return window.getComputedStyle($advanced_form[0]).display==='none';};if(event.keyCode===27){button.search.trigger('click');return;}if((event.keyCode===32||event.keyCode===9||event.keyCode===13||event.type==='click')&&$target.is($($$.selector('controls.search.caret.down')).add($$.selector('controls.search.button.type')))){var $caret=$target.is('i')?$target:$target.find('i');$caret.toggleClass($$.$.controls.search.caret.up);$advanced_form.toggleClass('show');$dropdown_search_simple[0].disabled=!advanced_form_hidden();var focus_target=advanced_form_hidden()?$dropdown_search_simple:$advanced_form[0].querySelector('input');focus_target.focus();if(advanced_form_hidden()){$dropdown_search_simple.val($dropdown_search_advanced_all.val());$dropdown_search_advanced_all.val(String());}else{$dropdown_search_advanced_all.val($dropdown_search_simple.val());$dropdown_search_simple.val(String());}return;}if(event.type==='keyup'&&event.keyCode===13&&$target.is('[type="text"], [type="number"]')||event.type==='click'&&$target.is('button:not(.disabled)')){var simple_query={folder:parseInt($dropdown_search_select[0].value),search:$dropdown_search_simple[0].value};if(advanced_form_hidden()){if(simple_query.search){$.post(_.path.prefix+'/'+_.variable.module.name()+'/mail_search.cgi?returned_format=json&json-error=1&simple=1&'+_.plugin.json_to_query(simple_query),function(data){messages.get(data);});}}else{var $elements_input=$advanced_form.find('input[type="text"]').filter(function(i,v){return v.value;}),$elements_radios_status=$advanced_form.find('input[name="status"]'),$elements_limit=$advanced_form.find('input[name^="limit"]'),$elements_attach=$advanced_form.find('input[name="attach"]'),query={};query.all=1;query.dest_def=1;query.folder=simple_query.folder;for(var i=0;i<$elements_input.length;i++){var value=$elements_input[i].value,special=$elements_input[i].name.includes('words'),name=$elements_input[i].name.replace('search-',String());if(value){query['what_'+i]=value;if(special){query['field_'+i]='all';query['neg_'+i]=~~$elements_input[i].name.includes('out');}else{query['field_'+i]=name;query['neg_'+i]=0;}}}query.status_def=0;for(var _i=0;_i<$elements_radios_status.length;_i++){var $this=$elements_radios_status[_i],_value=$this.value,def=_value==-1?1:0;if($this.checked){query.status_def=def;if(!def){query.status=_value;}}}for(var _i2=0;_i2<$elements_limit.length;_i2++){var _$this=$elements_limit[_i2],_name=_$this.name;if(_$this.checked&&_$this.name==='limit_def'||_$this.name!=='limit_def'){query[_name]=_$this.value;}}query.attach=~~$elements_attach[0].checked;$.post(_.path.prefix+'/'+_.variable.module.name()+'/mail_search.cgi?returned_format=json&json-error=1&'+_.plugin.json_to_query(query),function(data){messages.get(data);});}}});dropdown.search.off(evt.shown_bs_drpd).on(evt.shown_bs_drpd,function(){$dropdown_search_simple.trigger('focus');});button.refresh.off(evt.click).on(evt.click,function(){$$.element('tree.active').click();});$(button.special.star).off(evt.click).on(evt.click,function(event){event.stopImmediatePropagation();var $this=$(this),$row=$(event.target).parents('td').parent('tr'),target=$$.$.messages.special,id=$row.find('input[value]').val(),state=$(event.target).is($(button.special.starred))?1:0,unread=+$row.attr('data-unread'),text=_.lang('global_'+(state?'unstarred':'starred')+'');$row.attr('data-starred',+!state);submit(data,_defineProperty({},'markas'+(state?1:2)+'',1),[id]);$this.removeClass(target[state?'starred':'unstarred']).addClass(target[state?'unstarred':'starred']).attr('data-original-title',text).next().remove();status.write([(+!unread).toString(),data],[id]);});dropdown.mark.read.add(dropdown.mark.unread).off(evt.click).on(evt.click,function(){var action=$(this).data('form-action'),messages=storage.get();status.write([action,data]);status.set(action,messages);});dropdown.mark.spam.add(dropdown.mark.ham).add(dropdown.mark.black).add(dropdown.mark.white).off(evt.click).on(evt.click,function(){var action=$(this).data('form-action'),messages=storage.get(),refetch=/razor|black/.test(action);submit(data,_defineProperty({},action,1),messages,+refetch,1);});$($$.$.controls.search.link).off(evt.click).on(evt.click,function(){var link=this.getAttribute('data-href');fetch(link,_.fetch.options).then(function(response){return response.json();}).then(function(data){messages.get(data);});});$(folders.data.selector.navigation).off(evt.click,button.compose).on(evt.click,button.compose,function(){compose.message();});},submit=function submit(data,actions,messages){var refetch=arguments.length>3&&arguments[3]!==undefined?arguments[3]:0;var reset=arguments.length>4&&arguments[4]!==undefined?arguments[4]:0;var form=data.form_list,target=_.variable.module.link()+('/'+form.target+'?'),hidden=form.hidden,searched_index=data.searched_folder_index,mail_system=parseInt(data.mail_system);hidden=_.plugin.json_to_query(hidden)+'&noredirect=1&';if(searched_index&&(mail_system===2||mail_system===4)){hidden=hidden.replace(/folder=\d+/,'folder='+searched_index);}actions=_.plugin.json_to_query(actions);messages='&d='+messages.join('&d=');refetch&&(loader.start(),_.notification.hideAll());$.post(target+hidden+actions+encodeURI(messages),function(){if(reset){storage.reset();}if(refetch||data.folder_counts_allowed){fetching.abort();$.post(_.path.extensions+'/mail/messages.cgi?'+hidden+'show_body_len='+preview_length()+'',function(data){render(data);loader.end();});}});},row=function row(text,icon){var row=String(),centered_row=$$.create.$('layout.row.centered');row=$(centered_row).append((icon?$$.create.icon(icon):String())+'
'+text+'
');return row;},render=function render(source){var container=$$.element('layout.container'),data=source[0],messages_list=data.list.messages&&data.form_list.buttons?data.list.messages.replace(/�/g,''):String();if(data.error){var errors=data.error.error;for(var i=0;i128?1:0;if(!messages_list_available&&data.searched){_.notification.post([$$.$.notification.type.search,_.lang('mail_search_empty')],5,"info",0,1,['bottom','center']);return;}container.empty().append($$.create.$('layout.panel'));var panel=container.find($$.selector('layout.panel'));if(messages_list_available){var _$$$create$$,_$$$create$$2,_$$$create$$3,_$$$create$$4,_$$$create$$5,_$$$create$$6,_$$$create$$7,_$$$create$$8,_$$$create$$9,_$$$create$$10,_$$$create$$11;var controls={select:data.form_list.buttons.select,submit:data.form_list.buttons.submit},pagination={link:data.pagination_arrow_last||data.pagination_arrow_first||String(),title:data.pagination_arrow_last?_.lang('mail_pagination_last'):data.pagination_arrow_first?_.lang('mail_pagination_first'):false};panel.append($$.create.$('layout.row.controls')).find($$.selector('layout.row.controls')).append($$.create.$('layout.column.6'),$$.create.$('layout.column.6')).find($$.selector('layout.column.6')).first().append($$.create.dropdown('controls.select.dropdown',[[controls.select.all,controls.select.none,controls.select.invert,controls.select.read,controls.select.unread,controls.select.special],3],$$.create.checkbox({select:1}),String(),_.lang('global_select')));var $form_controls=$($$.create.$('layout.controls',{'form-controls':1},'div'));Object.entries(controls.submit).map(function(_ref7){var _ref8=_slicedToArray(_ref7,2),type=_ref8[0],data=_ref8[1];var _iteratorNormalCompletion3=true;var _didIteratorError3=false;var _iteratorError3=undefined;try{for(var _iterator3=data.entries()[Symbol.iterator](),_step3;!(_iteratorNormalCompletion3=(_step3=_iterator3.next()).done);_iteratorNormalCompletion3=true){var _ref9=_step3.value;var _ref10=_slicedToArray(_ref9,2);var _i3=_ref10[0];var v=_ref10[1];if(type==='buttons'){$form_controls.append($$.create.$('controls.'+v[0],{'form-control':v[0]},'span',String(),_.lang('global_'+v[0]+'')));}else if(type==='dropdowns'){var _iteratorNormalCompletion4=true;var _didIteratorError4=false;var _iteratorError4=undefined;try{for(var _iterator4=v.entries()[Symbol.iterator](),_step4;!(_iteratorNormalCompletion4=(_step4=_iterator4.next()).done);_iteratorNormalCompletion4=true){var _ref11=_step4.value;var _ref12=_slicedToArray(_ref11,2);var di=_ref12[0];var dd=_ref12[1];var entries=[];var _iteratorNormalCompletion5=true;var _didIteratorError5=false;var _iteratorError5=undefined;try{for(var _iterator5=v[1].entries()[Symbol.iterator](),_step5;!(_iteratorNormalCompletion5=(_step5=_iterator5.next()).done);_iteratorNormalCompletion5=true){var _ref13=_step5.value;var _ref14=_slicedToArray(_ref13,2);var index=_ref14[0];var _data2=_ref14[1];_data2[0]&&entries.push($$.create.$(0,{'form-action':_data2[0]},'span',_data2[1]));}}catch(err){_didIteratorError5=true;_iteratorError5=err;}finally{try{if(!_iteratorNormalCompletion5&&_iterator5.return){_iterator5.return();}}finally{if(_didIteratorError5){throw _iteratorError5;}}}if(typeof dd==="string"){$form_controls.append($$.create.dropdown('controls.'+dd+'.dropdown',[entries,2],0,dd,_.lang('mail_'+dd+'')||_.lang('global_'+dd+'')));}}}catch(err){_didIteratorError4=true;_iteratorError4=err;}finally{try{if(!_iteratorNormalCompletion4&&_iterator4.return){_iterator4.return();}}finally{if(_didIteratorError4){throw _iteratorError4;}}}}}}catch(err){_didIteratorError3=true;_iteratorError3=err;}finally{try{if(!_iteratorNormalCompletion3&&_iterator3.return){_iterator3.return();}}finally{if(_didIteratorError3){throw _iteratorError3;}}}});panel.find($$.selector('layout.column.6')).first().append($form_controls,$$.create.$('controls.refresh.button',{'refresh':1},'button',String(),_.lang('global_refresh')),$$.create.dropdown('controls.sort.dropdown',[[data.list.sort.date,data.list.sort.from,data.list.sort.size,data.list.sort.subject,data.list.sort.spam],5],data.list.sorted,'sort',_.lang('global_sort'),function(dd){if(dd&&dd.match(/:first'),content=$(this.container+' >>:first');if(container.height()>content.height()){container.css('height',content.height());}},init:function init(source){if(this.fetched===0){this.load();return;}if($(data.selector.navigation+' '+this.container).length===0){$(data.selector.navigation).prepend('
  • ');$(data.selector.navigation).prepend('
  • '+$$.create.$('layout.button.block.transparent',{'compose':1},'span',$$.create.icon('controls.compose.icon')+" "+_.lang('mail_new_message'))+'
  • ');}else{return;}data.plugin.tree(source);_.plugin.scroll(this.container,data.options.scroll);this.container_adjust();},expand:function expand(node){var expanded=node.isExpanded();!expanded&&node.toggleExpanded();},load:function load(){this.fetched=1;_.load.bundle(data.file.fancytree,1,_.variable.switch()?[get]:0,1);},reload:function reload(source){var _this4=this;var tree=data.plugin.tree('get');tree.$container.empty();tree.reload(source);setTimeout(function(){_this4.adjust();},1e2);},node:function node(){return data.plugin.tree('node');},adjust:function adjust(){var $_=this.node();if($_&&$_.li&&$($_.li).length){_.plugin.scroll([this.container,$($_.li)]);}this.container_adjust();}};var get=function get(key){key=key?'?key='+key.replace(/&/g,'%26'):String();$.post(_.path.extensions+'/mail/folders.cgi'+key+'',function(source){if(!!key){_tree.reload(source);}else{_tree.init(source);}});};var set=function set(key){var _this5=this;var tree=data.plugin.tree('get');if((typeof key==='undefined'?'undefined':_typeof(key))==='object'){var search={id:key.searched_folder_id,file:key.searched_folder_file},id=key.folder_id;if(search.file&&search.id!=null&&key.mail_system!=2&&key.mail_system!=4){key=search.file;}else{key=search.id||id;}}if((typeof tree==='undefined'?'undefined':_typeof(tree))==='object'&&typeof tree.activateKey==='function'){tree.activateKey(false);tree.activateKey(key);}else{setTimeout(function(){_this5.set(key);},1e2);}};var refresh=function refresh(){var node=_tree.node();node.span.click();};var update=function update(data){var allowed=data.folder_counts_allowed,unread_count=data.unread,$node_titles=$($$.selector('tree.title')),active_node=$$.selector('tree.active'),node_bubble=$$.selector('tree.bubble'),$active_node_title=$(active_node).find($$.selector('tree.title')),$active_node_bubble=$(active_node).find(node_bubble);if(allowed){if(unread_count){if($active_node_bubble.length){$active_node_bubble.text(unread_count);}else{$active_node_title.append($$.create.$('tree.bubble',false,'span',unread_count));}}else{$active_node_bubble.remove();}}else{$node_titles.find(node_bubble).remove();}};var check=function check(folder){var node=_tree.node();if(node&&node.key===folder){return true;}return false;};var adjust=function adjust(){_tree.adjust();};return{get:get,set:set,refresh:refresh,update:update,check:check,adjust:adjust,data:data};}();return{folders:{get:folders.get,set:folders.set,refresh:folders.refresh,update:folders.update,check:folders.check,adjust:folders.adjust},messages:{get:messages.get,sort:messages.sort,events:messages.events},compose:compose.message};}(); +'use strict';var _slicedToArray=function(){function sliceIterator(arr,i){var _arr=[];var _n=true;var _d=false;var _e=undefined;try{for(var _i=arr[Symbol.iterator](),_s;!(_n=(_s=_i.next()).done);_n=true){_arr.push(_s.value);if(i&&_arr.length===i)break;}}catch(err){_d=true;_e=err;}finally{try{if(!_n&&_i["return"])_i["return"]();}finally{if(_d)throw _e;}}return _arr;}return function(arr,i){if(Array.isArray(arr)){return arr;}else if(Symbol.iterator in Object(arr)){return sliceIterator(arr,i);}else{throw new TypeError("Invalid attempt to destructure non-iterable instance");}};}();var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};function _defineProperty(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}var mail=function(){var _={path:{origin:v___location_origin,prefix:v___location_prefix,extensions:v___server_extensions_path,css:v___server_css_path,js:v___server_js_path},variable:{switch:function _switch(){return $t_uri_webmail;},module:{name:function name(){return'mailbox';},link:function link(){var prefix=v___location_prefix;return prefix?prefix+'/'+v___module:'/'+this.name();}},locale:{short:config_portable_theme_locale_format_short}},platform:{mac:window.navigator.platform==='MacIntel'},pjax:{fetch:plugins.pjax.page.link.get},fetch:{options:{headers:{'x-requested-with':'XMLHttpRequest'}}},load:load,sdata:session.server.data,mavailable:core.moduleAvailable,lang:theme_language,notification:{post:plugins.messenger.post,hideAll:plugins.messenger.toast.hideAll},file_chooser:plugins.chooser.file,button:{progress:snippets.progressive_button,lock:snippets.button_lock},rows:page_table_rows_control,document_title:theme_title_generate,update_mdata:core.updateModuleData,uri_param:uri_parse_param,error:connection_error,error_quota:theme_error_disk_quota_exceeded,event:{generate:event_generate},navigation:{reset:plugins.navigation.reset},plugin:{json_to_query:Convert.json_to_query,serialized_to_json:Convert.serialized_to_json,nice_size:Convert.nice_size,html_escape:Convert.htmlEscape,html_strip:Convert.htmlStrip,quote_escape:Convert.quoteEscape,arr_prepend:Convert.arrPrepend,quill_toolip:quill_toolbar_tooltip,setup_modifier:theme_modifiers_replace_for_mac,timestamp:snippets.datetime.locale,offset_adjust:page.handle.content.offset,preloader:{hide:page.handle.content.preloader.hide},dayjs:dayjs,select:function select(data){var size=arguments.length>1&&arguments[1]!==undefined?arguments[1]:'34';if(Array.isArray(data)){data[0].select2(data[1]);return;}data.select2({minimumResultsForSearch:5,containerCssClass:'select2-content heighter-'+size,dropdownCssClass:'select2-content h'+size});data.next('.select2').addClass('select2-content-container');data.on('select2:open',function(){$('.select2-container').off('click.container').on('click.container',function(event){event.stopPropagation();});});},scroll:function scroll(target,options){if(typeof target==='string'){$(target).mCustomScrollbar(options);}else{$(target[0]).mCustomScrollbar('scrollTo',target[1],{scrollOffset:[$(target[0]),3,4]});}},arialabel:function arialabel(){var arialabel='aria-label';document.querySelectorAll('[data-tooltip="mailbox"]:not('+arialabel+')').forEach(function(t){return t.setAttribute(arialabel,t.getAttribute('data-title'));});},tooltip:function tooltip(target){var $target=target||$('[data-tooltip="mailbox"]');$target.tooltip({html:true,trigger:'hover',container:'body',sanitize:false,delay:{show:600,hide:30}});}}},$$={$:{layout:{container:'container-fluid',controls:'mail-controls',panel:'panel-mail panel-body',row:{controls:'row row-controls',messages:'row row-messages colorify',quota:'row row-quota',centered:'row text-center'},column:{3:'col-xs-3',4:'col-xs-4',6:'col-xs-6',8:'col-xs-8',9:'col-xs-9',12:'col-xs-12'},button:{link:'btn btn-link text-decoration-none',transparent:{plain:'btn btn-transparent',link:'btn btn-link btn-transparent'},default:'btn btn-default',primary:'btn btn-primary',block:{default:'btn btn-default btn-block',transparent:'btn btn-transparent btn-block'},dropdown:{default:'btn btn-default dropdown-toggle'}}},tree:{container:'data-mail-folders',active:'fancytree-active',loader:'fancytree-loader',title:'fancytree-title',bubble:'label label-danger'},controls:{compose:{button:'[data-compose]',icon:'fa-fw fa-plus'},select:{dropdown:'dropdown-select',checkbox:'[data-select] input',menus:'[data-select-mass]'},delete:'btn btn-default fa fa-trash',forward:'btn btn-default fa fa-forward',search:{link:'[data-href^="sort.cgi"]',clear:{link:'search-clear text-danger',icon:'fa-fw fa-times-circle-o'},dropdown:'dropdown-search',icon:'fa-search',data:{form:{action:'data-form-action',type:'data-form-action-type',advanced:'data-form-action-advanced'}},button:{type:'[data-toggle-type="1"]'},caret:{down:'fa-caret-down',up:'fa-caret-up'},submit:'[data-search-submit]'},move:{dropdown:'dropdown-move',checkbox:'[data-copy-only]',icon:'fa-folder-move',submit:'[data-transfer-submit]'},more:{dropdown:'dropdown-more',icon:'fa-dots-vertical',menu:{read:'[data-form-action="markas1"]',unread:'[data-form-action="markas0"]',special:'[data-form-action="markas2"]',spam:'[data-form-action="razor"]',ham:'[data-form-action="ham"]',black:'[data-form-action="black"]',white:'[data-form-action="white"]'}},sort:{dropdown:'dropdown-sort',icon:'fa-fw fa-sort'},counter:'mail-selected-count',refresh:{button:'btn btn-lg btn-default fa fa-refresh-mdi'},pagination:'pagination-title',settings:'btn btn-default fa fa-cog'},messages:{checkbox:'input[data-check]',flag:'mail-list-trow-flag-security',special:{star:'star',starred:'fa-star star',unstarred:'fa-star-o star'},row:{empty:'fa fa-fw fa-1_50x fa-inbox'}},compose:{button:{inverse:'btn-inverse',submit:'btn-primary',schedule:'btn-info'},hidden:'hidden',panel:{content:'jsPanel-content',container:'jspCompose',container_shown:'jspShown',backdrop:'compose_backdrop'},editor:{compose:'ql-compose',composer:'data-composer',scheduled:'scheduled',content:'ql-editor',toolbar:'ql-toolbar',disabled:'ql-disabled',tb_bold:'ql-bold',tb_link:'ql-link',tb_image:'ql-image',controls:{compose:'compose-controls',more:'more-options',extra:{attach:'e-attachment',link:'e-ql-link',image:'e-ql-image',html:'e-html',discard:'e-discard'}}},form:{header:'form-head',recipients:{control:'recipients-control',fields:'recipients-control-fields'},name:{tattach:'tattachments',scheduled:'scheduled'}},icons:{upload:{server:'fa fa-fw fa-download-cloud',attach:'fa2 fa2-attach'}}},notification:{danger:'exclamation-triangle',error:'exclamation-circle',success:'check-circle',type:{search:'search',scheduled:'clock',trash:'- fa2 fa2-trash'}},class:{events_none:'pointer-events-none'},template:{compose:function compose(data){var hidden=' class="'+data.class.hidden+'"',empty=String(),status={server_file:empty,abook:empty,crypt:empty,sign:empty,dsn:empty,del:empty,menu:{server_file:empty,encrypt:empty,options:empty}},value={server_file:data.toggle.more.server_file,crypt:data.toggle.more.crypt[0],sign:data.toggle.more.sign[0],abook:data.toggle.more.abook,dsn:data.toggle.more.dsn,del:data.toggle.more.del};value.server_file===null&&(status.server_file=hidden);if(value.server_file===null){status.menu.server_file=hidden;}value.crypt===null&&(status.crypt=hidden);value.sign===null&&(status.sign=hidden);if(value.crypt===null&&value.sign===null){status.menu.encrypt=hidden;}value.abook===null&&(status.abook=hidden);value.dsn===null&&(status.dsn=hidden);value.del===null&&(status.del=hidden);if(value.abook===null&&value.dsn===null&&value.del===null){status.menu.options=hidden;}var toolbar=void 0;if(data.toolbar_mode==='basic'){toolbar='\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ';}else if(data.toolbar_mode==='advanced'){toolbar='\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ';}else{toolbar='\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ';}return'\n
    \n
    \n
    \n
    \n
    \n
    \n \n
    \n
    \n \n \n \n \n '+(_typeof(data.from)==='object'?'
    \n \n <\n @'+data.from.dom+'>\n \n
    ':data.from)+'\n
    \n
    \n
    \n
    \n
    \n
    \n \n
    \n
    \n '+data.to+'\n
    \n
    \n
    \n
    \n
    \n
    \n
    \n \n
    \n
    \n '+data.cc+'\n
    \n
    \n
    \n
    \n
    \n
    \n \n
    \n
    \n '+data.bcc+'\n
    \n
    \n
    \n
    \n
    \n
    \n
    \n \n
    \n
    \n '+data.subject+'\n
    \n
    \n
    \n
    \n \n
    \n
    \n
    \n
    \n \n
    '+data.body+'
    \n
    '+toolbar+'
    \n
    \n
    \n \n \n \n \n \n \n \n
    \n
    \n \n \n
    \n
    \n \n \n \n \n \n \n '+data.language._options+'\n \n \n \n \n \n
    \n \n \n
    \n ';},html:{tags:{br:'
    '}}}},create:{$:function $(classes,data){var type=arguments.length>2&&arguments[2]!==undefined?arguments[2]:'div';var content=arguments.length>3&&arguments[3]!==undefined?arguments[3]:String();var tooltip=arguments.length>4&&arguments[4]!==undefined?arguments[4]:String();var attributes=this._attributes(data);classes=this._classes(classes);if(tooltip){tooltip='data-tooltip="mailbox" data-placement="bottom" data-title="'+tooltip+'"';}return'<'+type+' '+attributes+' '+tooltip+' class="'+classes+'">'+content+'';},icon:function icon(classes){var attributes=arguments.length>1&&arguments[1]!==undefined?arguments[1]:String();var attribute=this._attributes(attributes),icon=this._classes(classes);return'';},button:function button(classes,data,content,icon,tooltip){icon=this._classes(icon);return this.$(classes,data,'button',(icon?'  ':'')+content+'',tooltip);},input:function input(){var name=arguments.length>0&&arguments[0]!==undefined?arguments[0]:String();var placeholder=arguments.length>1&&arguments[1]!==undefined?arguments[1]:String();var value=arguments.length>2&&arguments[2]!==undefined?arguments[2]:String();var type=arguments.length>3&&arguments[3]!==undefined?arguments[3]:'text';var attributes=arguments.length>4&&arguments[4]!==undefined?arguments[4]:String();var attribute=this._attributes(attributes),id=name;if((typeof name==='undefined'?'undefined':_typeof(name))==='object'){id=name[1];name=name[0];}return'';},textarea:function textarea(){var name=arguments.length>0&&arguments[0]!==undefined?arguments[0]:String();var placeholder=arguments.length>1&&arguments[1]!==undefined?arguments[1]:String();var value=arguments.length>2&&arguments[2]!==undefined?arguments[2]:String();var attributes=arguments.length>3&&arguments[3]!==undefined?arguments[3]:String();var attribute=this._attributes(attributes),id=name;if((typeof name==='undefined'?'undefined':_typeof(name))==='object'){id=name[1];name=name[0];}return'';},label:function label(){var target=arguments.length>0&&arguments[0]!==undefined?arguments[0]:String();var content=arguments.length>1&&arguments[1]!==undefined?arguments[1]:String();var attributes=arguments.length>2&&arguments[2]!==undefined?arguments[2]:String();var attribute=this._attributes(attributes);return'';},select:function select(data){var attributes=arguments.length>1&&arguments[1]!==undefined?arguments[1]:String();var name=arguments.length>2&&arguments[2]!==undefined?arguments[2]:String();var attribute=this._attributes(attributes),select='';return select;},checkbox:function checkbox(){var attributes=arguments.length>0&&arguments[0]!==undefined?arguments[0]:String();var name=arguments.length>1&&arguments[1]!==undefined?arguments[1]:String();var value=arguments.length>2&&arguments[2]!==undefined?arguments[2]:String();var label=arguments.length>3&&arguments[3]!==undefined?arguments[3]:' ';var checked=arguments.length>4&&arguments[4]!==undefined?arguments[4]:String();var attribute=this._attributes(attributes),checkbox=String(),id=name+'-'+Math.floor(Math.random()*9e10);!label&&(label=' ');checked&&(checked='checked');checkbox+='';checkbox+='';checkbox+='';checkbox+='';return checkbox;},radio:function radio(){var attributes=arguments.length>0&&arguments[0]!==undefined?arguments[0]:String();var name=arguments.length>1&&arguments[1]!==undefined?arguments[1]:String();var value=arguments.length>2&&arguments[2]!==undefined?arguments[2]:String();var label=arguments.length>3&&arguments[3]!==undefined?arguments[3]:' ';var id=arguments.length>4&&arguments[4]!==undefined?arguments[4]:String();var checked=arguments.length>5&&arguments[5]!==undefined?arguments[5]:String();var attribute=this._attributes(attributes),checkbox=String();checkbox+='';checkbox+='';checkbox+='';checkbox+='';return checkbox;},dropdown:function dropdown(classes,data,button,icon,tooltip,cbfunc){var dropdown=String();classes=this._classes(classes);dropdown+='
    ';if(button){if(/<[a-z][\s\S]*>/i.test(button)){dropdown+=this.$('layout.button.default',false,'span',button);}else{dropdown+=this.button('layout.button.default',false,button);}}dropdown+=this.button('layout.button.dropdown.default',{'toggle':'dropdown'},'',false,tooltip);dropdown+='';dropdown+='
    ';if(typeof cbfunc==='function'){dropdown=cbfunc(dropdown);}return data[0].length?dropdown:String();},_attributes:function _attributes(data){var attributes=String();if(Array.isArray(data)){attributes=data.join(' ');}else if(data){attributes=Object.entries(data).map(function(_ref5){var _ref6=_slicedToArray(_ref5,2),k=_ref6[0],v=_ref6[1];return attributes+=(k.startsWith('data-')?k:'data-'+k)+'='+v+' ';}).slice(-1)[0];}return attributes;},_classes:function _classes(classes){return classes?classes.split('.').reduce(function(a,b){return a?a[b]:undefined;},$$.$):String();}},selector:function selector(_selector){_selector=this.create._classes(_selector);return _selector.startsWith('[')?_selector:"."+_selector.replace(/\s+/g,".");},element:function element(_element){return _element?$(this.selector(_element)):String();}};var config={d:{},set:function set(config){this.d=config;}},bundles={loaded:false,get:function get(config){if((typeof config==='undefined'?'undefined':_typeof(config))!=='object'||(typeof config==='undefined'?'undefined':_typeof(config))==='object'&&config.d&&!config.d.u){return;}this.loaded=true;var bundles=['jquery.jspanel','quill:min'];config.d.u.html_edit_mode==='advanced'&&(bundles=_.plugin.arr_prepend('highlight/highlight:min',bundles));_.load.bundle(bundles,1);}},compose=function(){var xtarget={};xtarget.send='send_mail.cgi';xtarget.reply='reply_mail.cgi';!bundles.loaded&&bundles.get(config);var message=function message(){var form=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;var inline=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var types=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var path=_.path.prefix,cmodule=_.variable.module.name(),prefix=path+'/'+cmodule;xtarget.getSize=path+'/xhr.cgi?xhr-get_size=1&xhr-get_size_nodir=1&xhr-get_size_path=';xtarget.delete=prefix+'/delete_mail.cgi?confirm=1&delete=1&noredirect=1';xtarget.schedule=path+'/schedule/save.cgi';xtarget.addressBook=prefix+'/export.cgi?fmt=csv&dup=0&incgr=1';if((typeof form==='undefined'?'undefined':_typeof(form))==='object'&&form.length){form=$(form).serialize()+'&reply=1';types.new=0;}else{form='new=1';types.new=1;}if(types.reply_all){form+='&rall=1';}else if(types.forward){form+='&forward=1';}fetch(prefix+'/'+xtarget.reply+'?'+form,_.fetch.options).then(function(rs){return rs.text();}).then(function(rs){var $form=$(rs).find('[action*="'+xtarget.send+'"]'),generate={timestamp:function timestamp(){return _.plugin.dayjs().valueOf()*1e2;},random:function random(){return Math.floor(Math.random()*9e14);}},id=generate.timestamp(),form_data_lost=$form.find(':checkbox:not(:checked)').attr('value','0').prop('checked',true).map(function(){return this.name;}).get(),form_data=$form.serialize(),$form_textarea=$(rs).find('textarea[name="body"]'),toolbar_mode=$form_textarea.data('html-mode'),signature=$.trim(_.plugin.quote_escape($form_textarea.text()));if(config.d.u.html_edit==2&&signature){signature=''+($$.$.template.html.tags.br.repeat(2)+signature);}if(form_data){form_data=_.plugin.serialized_to_json(form_data);var data={visible:{},hidden:{}},classes=$$.$.compose,toggle={recipients:function recipients(id,data,data_visible){if((typeof data==='undefined'?'undefined':_typeof(data))==='object'){var target=data[0],state=data[1],rcs='.'+classes.form.recipients.control,rcsf='.'+classes.form.recipients.fields,rc=target.querySelector(rcs),rf=target.querySelector(rcsf);rc.querySelector('.'+id).classList.toggle(classes.button.inverse,!state);rf.querySelector('.'+id).classList.toggle(classes.hidden,state);return;}else if(data==='rc'){return!data_visible[id]?String():' '+classes.button.inverse;}else if(data==='rf'){return data_visible[id]?String():' '+classes.hidden;}},attachments:function attachments(panel){var a=panel.querySelector('[name="'+classes.form.name.tattach+'"]'),l=a.previousSibling.querySelectorAll('.tag').length;a.parentNode.parentNode.classList.toggle(classes.hidden,!l);adjust.contenteditable(panel);},backdrop:function backdrop(panel,show){var body=$('body'),re_zi=99999,compose_backdrop=classes.panel.backdrop;if(show){panel[0].dataset.zIndex=panel[0].style.zIndex;panel[0].style.zIndex=re_zi+1;panel[0].setAttribute('maximized',1);body.append('');}else{if(panel[0]){panel[0].style.zIndex=panel[0].dataset.zIndex;panel[0].removeAttribute('maximized');delete panel[0].dataset.zIndex;}body.find('.modal-backdrop.'+compose_backdrop).remove();}},formatting:function formatting(target,status){var es=classes.editor.composer,eb=target.querySelectorAll('['+es+'-h]'),ed=target.querySelectorAll('['+es+']');eb.forEach(function(b){b.classList.toggle(classes.hidden,!status);});ed.forEach(function(e){if(e.getAttribute(es)==='text'){e.classList.toggle(classes.hidden,status);}else{e.classList.toggle(classes.hidden,!status);}});adjust.contenteditable(target);}},adjust={contenteditable:function contenteditable(panel){var target=panel.querySelector('.'+classes.panel.content),container=target?target.offsetHeight:window.innerHeight/4,top_block=panel.querySelector('.'+classes.form.header).offsetHeight,editor_toolbar=panel.querySelector('.'+classes.editor.toolbar).offsetHeight,editor=panel.querySelector('['+classes.editor.composer+']:not(.'+classes.hidden+')'),offset=50+editor_toolbar,height=container-top_block-offset+'px';editor.style.height=height;}},check={field:function field(_field,object){var value=object[_field];if(value&&!isNaN(value)){value=~~value;}return typeof value==='undefined'?null:value;}},element={input:function input(str,data){var readonly=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var no_escape=arguments.length>3&&arguments[3]!==undefined?arguments[3]:false;var type=arguments.length>4&&arguments[4]!==undefined?arguments[4]:'text';var value=(typeof data==='undefined'?'undefined':_typeof(data))==='object'?data[str]:data;if(readonly){readonly=['readonly'];}if(!no_escape){value=_.plugin.html_escape(value);}return $$.create.input([str,'c-'+str+'-'+id],String(),value,type,readonly);},select:{},type:{time:function time(){var ct=new Date(),format=function format(s){return('0'+s).substr(-2);},round=function round(m){var r=Math.ceil(m/10)*10;return r===60?r-5:r;},h=format(ct.getHours()),m=round(format(ct.getMinutes()));return'';},date:function date(){var ct=new Date(),y=ct.getFullYear(),m=ct.getMonth()+1,d=ct.getDate();return'';}},composer:function composer(target){var panel=target,paneled=panel.header?true:false,config_html={allowed:parseInt(data.hidden.html_edit),initial:parseInt(data.hidden.html_edit_config)},config_update=function config_update(option,value){_.update_mdata("/uconfig.cgi?mailbox","/uconfig_save.cgi",_defineProperty({},option,value));},qs=Quill.import('attributors/style/size'),qf=Quill.import('attributors/style/font');qs.whitelist=["0.75em","1.15em","1.3em"];Quill.register(qs,true);qf.whitelist=["monospace"];Quill.register(qf,true);target=target[0];var asb=target.querySelector('.'+classes.form.header),ccs=target.querySelectorAll('.'+classes.editor.controls.compose),rcs=target.querySelector('.'+classes.form.recipients.control),qtg=target.querySelector('.'+classes.editor.compose),tcm=target.querySelector('['+classes.editor.composer+'="text"]'),editor={this:new Quill(qtg,{modules:{syntax:(typeof hljs==='undefined'?'undefined':_typeof(hljs))==='object',imageDrop:true,imageResize:{modules:['DisplaySize','Resize']},clipboard:{matchVisual:false},toolbar:target.querySelector('#tb-'+id)},bounds:target,theme:'snow'}),get:{text:function text(){return tcm.value;},html:function html(){return editor.this.root.innerHTML;},data:function data(){return config_html.allowed?editor.get.html():editor.get.text();}},convert:function convert(){var he=editor.this,te=he.root.parentElement.previousElementSibling;if(config_html.allowed){he.setText(te.value);}else{te.value=he.getText();}},maximized:function maximized(){return target.hasAttribute('maximized');}},title_update=function title_update(ds){var sf=asb.querySelector('[name="subject"]'),ud=function ud(){sf.dispatchEvent(new Event('input'));},us=function us(tg,df){if(paneled){tg.style.opacity=df?0.7:1;}},du=function du(tg){if(ds===1){tg.textContent=_.lang('mail_composer_draft_saving');us(tg,true);}else if(ds===-1){tg.textContent=_.lang('mail_composer_draft_saved');us(tg,true);setTimeout(function(){us(tg);ud();},2e3);}};if(paneled){var pt=panel.header.title[0],pti=pt.textContent;if(ds){du(pt,pti);}else{sf.addEventListener('input',function(){pt.textContent=this.value||pti;});ud();}}};paneled&&target.classList.add(classes.panel.container,classes.panel.container_shown);adjust.contenteditable(target);title_update();var ctl_tgl=ccs[0].querySelector('.'+classes.editor.controls.extra.html);ctl_tgl.addEventListener('click',function(){var st=parseInt(config_html.allowed)||0,ia=parseInt(config_html.initial)||0,sg=+!st,co=sg?2:ia===1?1:0;toggle.formatting(target,sg);config_html.allowed=sg;config_update('html_edit',co);editor.convert();});var from_from=target.querySelector('input[name="from"]:not(disabled)'),from_name=target.querySelector('input[name="real"]'),from_user=target.querySelector('input[name="user"]');if(from_name&&from_user){$.fn.eW=function(text,font){if(!$.fn.eW.fakeEl){$.fn.eW.fakeEl=$('').hide().appendTo(document.body);}$.fn.eW.fakeEl.text(text||this.val()||this.text()||this.attr('placeholder')).css('font',font||this.css('font'));return $.fn.eW.fakeEl.width()+7;};[from_name,from_user].forEach(function(i,n){i.addEventListener('input',function(){$(this).css({width:parseInt($(this).eW()+(!n&&3))});});i.dispatchEvent(new Event('input'));});}var from_focus=from_from||from_name;if(from_focus){from_focus.focus();from_focus.setSelectionRange(-1,-1);}setTimeout(function(){var tb=editor.this.options.modules.toolbar.container,upload_list=[],server_list=[],priority=null,server_attach_previous=null,attachments=target.querySelector('[name="'+classes.form.name.tattach+'"]'),content=target.querySelector('.'+classes.editor.content),ctl_att=ccs[0].querySelector('.'+classes.editor.controls.extra.attach),ctl_lnk=ccs[0].querySelector('.'+classes.editor.controls.extra.link),ctl_img=ccs[0].querySelector('.'+classes.editor.controls.extra.image),ctl_dis=ccs[1].querySelector('.'+classes.editor.controls.extra.discard),submit=target.querySelector('button[type="submit"]'),to_=target.querySelector('input[name="to"]'),cc_=target.querySelector('input[name="cc"]'),bcc_=target.querySelector('input[name="bcc"]'),$more_options=$(target).find('.'+classes.editor.controls.more),scheduled={target:target.querySelector('[name="'+classes.form.name.scheduled+'"]'),container:target.querySelector('.'+classes.editor.scheduled),events:function events(){this.container.addEventListener('click',function(event){event.stopPropagation();});this.checkbox().addEventListener('click',function(){var s=submit,t=s.querySelector('span').querySelector('span'),ct=_.lang('mail_composer_schedule'),c=this.checked,sb=classes.button.submit,sc=classes.button.schedule,d=s.nextElementSibling,st=language._send;s.classList.toggle(sc,c);s.classList.toggle(sb,!c);d.classList.toggle(sc,c);d.classList.toggle(sb,!c);t.textContent=c?ct:st;});this.datepicker();},status:function status(){return this.target.checked;},checkbox:function checkbox(){return this.container.querySelector('[type="checkbox"]');},holder:function holder(){return this.container.querySelector('[data-t]');},datepicker:function datepicker(){var tag=this.holder(),input=tag.previousSibling;tag.addEventListener('click',function(){$(input).datepicker('show');});$(input).datepicker({language:_.sdata("language"),todayHighlight:true,autoclose:true,startDate:"0d"}).on("changeDate",function(l){var today=_.lang('global_today').toLowerCase(),tomorrow=_.lang('global_tomorrow').toLowerCase(),label=today,now=new Date(),y=now.getFullYear(),m=now.getMonth()+1,d=now.getDate(),py=l.date.getFullYear(),pm=l.date.getMonth()+1,pd=l.date.getDate(),date=l.dates[0],date_=py+'-'+pm+'-'+pd,date_formatted=dayjs(date).format(_.variable.locale.short);this.dataset.value=date_;if(y===py&&m===pm&&(d===pd||d+1===pd)){if(d+1===pd){label=tomorrow;}}else{label=date_formatted;}tag.textContent=label;});}},draft={timeout:{update:null,discard:null},data:[],reset:function reset(){var folder=this.data[0];this.data=[];if(folder){this.data.push(folder);}},test:function test(){return this.data.length>=1;},save:function save(){this.terminate();this.timeout.update=setTimeout(function(){submit.dispatchEvent(new Event('click'));},2e3);},terminate:function terminate(){typeof this.timeout.update==='number'&&clearTimeout(this.timeout.update);},purge:function purge(id,folder,message){fetch(xtarget.delete+'&id='+id+'&folder='+folder+'&d='+message,_.fetch.options).then(function(r){r.text().then(function(){draft.refresh();});});},refresh:function refresh(){if(this.test()&&folders.check(this.data[0])){folders.refresh();}},clean:function clean(){this.test()&&this.purge(this.data[0],this.data[1],this.data[3]);this.reset();this.terminate();},control:{discard:function discard(){editor.maximized()&&panel.normalize();draft.timeout.discard=setTimeout(function(){draft.test()&&draft.purge(draft.data[0],draft.data[1],draft.data[3]);draft.reset();draft.terminate();paneled&&panel.close();},5e3);},undo:function undo(){target.classList.remove(classes.hidden);typeof draft.timeout.discard==='number'&&clearTimeout(draft.timeout.discard);}}},add_attachment=function add_attachment(type,id,filedata,size,update){var icon=type==='server'?classes.icons.upload.server:classes.icons.upload.attach,name=filedata.name.split("/").pop()||filedata.name;$(attachments).tagsinput('add','[i class="'+icon+'"][/i]'+name+' [em]('+_.plugin.nice_size(size)+')[/em]');var tags=attachments.previousSibling.querySelectorAll('.tag'),last=tags[tags.length-1];last.dataset.reference=id;if(type==='server'){server_list[id]=filedata.name;}else{upload_list[id]=filedata.file;}if(update){adjust.contenteditable(target);toggle.attachments(target);}};editor.this.keyboard.addBinding({key:'7',shiftKey:true,ctrlKey:!_.platform.mac,metaKey:_.platform.mac},function(range,context){var currentFormat=this.quill.getFormat(range.index);if(currentFormat.list==='ordered'){this.quill.format('list',false);}else{this.quill.format('list','ordered');}});editor.this.keyboard.addBinding({key:'8',shiftKey:true,ctrlKey:!_.platform.mac,metaKey:_.platform.mac},function(range,context){var currentFormat=this.quill.getFormat(range.index);if(currentFormat.list==='bullet'){this.quill.format('list',false);}else{this.quill.format('list','bullet');}});editor.this.keyboard.addBinding({key:'9',shiftKey:true,ctrlKey:!_.platform.mac,metaKey:_.platform.mac},function(range,context){var currentFormat=this.quill.getFormat(range.index);if(currentFormat.blockquote){this.quill.format('blockquote',false);}else{this.quill.format('blockquote',true);}});ctl_lnk.addEventListener('click',function(){tb.querySelector('.'+classes.editor.tb_link).dispatchEvent(new Event('click'));});ctl_img.addEventListener('click',function(){tb.querySelector('.'+classes.editor.tb_image).dispatchEvent(new Event('click'));});ctl_dis.addEventListener('click',function(){draft.control.discard();var undo={cancel:{label:_.lang('global_undo'),action:function action(){draft.control.undo();}}};_.notification.post([$$.$.notification.type.trash,_.lang('mail_composer_discarded_draft')],10,"warning",'discard-'+id,1,['bottom','center'],undo);target.classList.add(classes.hidden);});rcs.querySelectorAll('button').forEach(function(b){b.addEventListener('click',function(){var enabled=b.classList.contains(classes.button.inverse),type=b.classList.contains("bcc")?'bcc':'cc';toggle.recipients(type,[target,enabled]);adjust.contenteditable(target);});});ctl_att.addEventListener('click',function(){var form=target.querySelector('form'),xu=document.createElement('input');xu.type="file";xu.setAttribute('multiple',1);xu.classList.add(classes.hidden);xu=form.appendChild(xu);xu.click();xu.addEventListener('change',function(){Array.from(this.files).forEach(function(file,i,arr){var fuid=generate.random()+i,size=file.size,name=file.name,last=i===arr.length-1;add_attachment('upload',fuid,{name:name,file:file},size,last);last&&xu.remove();});});});$more_options.find('.dropdown-menu').on("click.bs.dropdown",function(event){var type=this.dataset.type,etarget=event.target,action=etarget.dataset.value;if(action==='server-attach'){var error={read:_.lang('mail_composer_server_attach_error_read'),dir:_.lang('mail_composer_server_attach_error_dir')};_.file_chooser({file:server_attach_previous}).then(function(file){if(file){var suid=generate.random();fetch(xtarget.getSize+file,_.fetch.options).then(function(r){r.text().then(function(rs){var s=rs.split('|'),size=s[1].replace(/\s+/g,String());if(size==-1||size==-2){var _message=size==-1?error.read:error.dir;_.notification.post([$$.$.notification.danger,_message],10,"error",0,1,['bottom','center']);}else{add_attachment('server',suid,{name:file},size,true);}});});}server_attach_previous=file;});return;}event.stopPropagation();if(type==='priority'){var _check=etarget.closest('ul').querySelector('i');_check.remove();etarget.appendChild(_check);priority=action?~~action:null;}if(type==='options'){var cb=etarget.querySelector('input[type="checkbox"]');cb&&(cb.checked^=1);}});$(attachments).tagsinput({allowDuplicates:true,confirmKeys:[13],delimiter:'\\000'});$(attachments).on('itemRemoved',function(event){var item=event.item[1];if(item){delete upload_list[item];delete server_list[item];}toggle.attachments(target);});_.plugin.tooltip($(ctl_att).add(ctl_img).add(ctl_att).add(ctl_lnk).add(ctl_tgl).add(ctl_dis));_.plugin.quill_toolip($(editor.this.root).parent().parent()[0]);asb.addEventListener('input',function(){draft.save();});asb.querySelectorAll('input').forEach(function(input){input.addEventListener('keydown',function(event){if(event.keyCode===13){event.preventDefault();return;}draft.save();});});editor.this.on('text-change',function(){draft.save();});tcm.addEventListener('input',function(){draft.save();});scheduled.events();fetch(xtarget.addressBook,_.fetch.options).then(function(rs){return rs.text();}).then(function(d){[to_,cc_,bcc_].forEach(function(input){var tags=$(input).tagsinput({confirmKeys:[13,32],addOnBlur:false,cancelConfirmKeysOnEmpty:false,tagClass:'label recipient'});var a=_.lang('theme_xhred_global_alias'),b=d.match(/"(.*)","(.*)"/gm);if(b){var book=[];b.map(function(en){var gr=en.match(/"-","(.*)"/),em=en.match(/"(.*)","(.*)"/);if(gr){book.push(a+" <"+em[2]+">");}else if(em){book.push(em[2]+" <"+em[1]+">");}});!$.isEmptyObject(book)&&tags[0].$input.autocomplete({lookup:book,autoSelectFirst:true,position:'relative',appendTo:tags[0].$container,onSelect:function onSelect(m){$(input).tagsinput('add',m.value);this.value=String();}});}$(input).on('itemAdded itemRemoved',function(event){var email=event.item,contact=void 0;if(email){contact=email.match(/<(.*)>/);if(contact){email=contact[1];}if(!event.item.startsWith(a)&&event.type==='itemAdded'&&!/.+@.+\..+/.test(email)){$(event.target.previousSibling).find('.recipient').last().addClass('error');}}adjust.contenteditable(target);});tags[0].$input.on('keydown blur',function(event){var value=this.value;if(event.keyCode===9||event.type==='blur'&&event.relatedTarget){$(this).trigger(_.event.generate('keypress',32));adjust.contenteditable(target);if(value){event.preventDefault();}}});});});submit.addEventListener('click',function(event){var _this=this;event.preventDefault();var form=this.closest('form'),form_data=new FormData(form),trusted=event.isTrusted||~~submit.dataset.isTrusted,draft_status=!trusted;this.dataset.isTrusted=0;if(trusted){draft.terminate();}form_data.append('body',editor.get.data());var pri_key='pri';priority?form_data.set(pri_key,priority):form_data.delete(pri_key);Object.entries(data.hidden).forEach(function(e){var key=e[0],value=e[1];if(!form_data.has(key)){form_data.set(key,value);}});var fsus=Object.values(upload_list);fsus.length&&fsus.forEach(function(f,i){form_data.set('attach'+i,f);});var ssus=Object.values(server_list);ssus.length&&ssus.forEach(function(f,i){form_data.set('file'+i,f);});form_data.set('html_edit',config_html.allowed);form_data.set('spell',0);draft_status&&(form_data.set('new',0),form_data.set('enew',1),form_data.set('save',1),title_update(1));var schedule={date:{get:function get(d){var date=this.value,t=scheduled.container.querySelector('[name="date"]');if(t){date=t.dataset.value.split('-');}return d==='y'?~~date[0]:d==='m'?~~date[1]:~~date[2];}},time:{value:scheduled.container.querySelector('[type="time"]').value,get:function get(t){var time=['12','00'];if(this.value){time=this.value.split(':');}return t==='h'?~~time[0]:~~time[1];}}};if(scheduled.status()&&!draft_status){var m={body:'mail',is_html:config_html.allowed,delete_after:1,enabled:1,status:1,mode:1,hour:schedule.time.get('h'),min:schedule.time.get('m'),day:schedule.date.get('d'),month:schedule.date.get('m'),year:schedule.date.get('y')};Object.entries(m).forEach(function(e,i){if(i){form_data.set(e[0],e[1]);}else{form_data.set(e[1],form_data.get(e[0]));form_data.delete(e[0]);}});}var xhr=new XMLHttpRequest(),link=scheduled.status()&&!draft_status?xtarget.schedule:form.getAttribute('action');xhr.open("POST",link);xhr.setRequestHeader('x-requested-with','XMLHttpRequest');xhr.upload.onprogress=function(e){!draft_status&&(_.button.progress(_this,Math.ceil(e.loaded/e.total*100)),_.button.lock(_this,true));};xhr.onload=function(e){var rs=e.target.responseText,status=String(),error=String(),error_container=false,parser=new DOMParser(),_g=function _g(param){return _.uri_param(param,e.target.responseURL);},_d={id:_g('id'),folder:{index:_g('folder'),type:_g('folder_type'),id:_g('folder_id')},input:{id:form.querySelector('[name="id"]'),folder:form.querySelector('[name="folder"]')}};if(draft_status){title_update(-1);draft.data=[_d.folder.id,_d.folder.index,_d.input.id&&_d.input.id.value,_d.id];if(_d.folder.type==2||_d.folder.type==4){if(_d.input.id){draft.purge.apply(null,draft.data);}else{draft.refresh();}}else{draft.refresh();}_d.input.id&&_d.input.id.remove();_d.input.folder&&_d.input.folder.remove();form.insertAdjacentHTML('beforeend',element.input('id',_d.id,false,false,'hidden'));form.insertAdjacentHTML('beforeend',element.input('folder',_d.folder.index,false,false,'hidden'));}else{rs=parser.parseFromString(rs,'text/html');if(rs){rs=rs.querySelector('.panel-body'),error_container=rs.querySelector('h3');if(error_container){error=error_container.innerHTML.replace(/\s:/,': ');if(!_.error_quota(error_container.innerHTML)){_.notification.post([$$.$.notification.danger,error],10,"error",0,1,['bottom','center']);}_.button.progress(_this,0);_.button.lock(_this,false);}else{status=rs.innerHTML;_.notification.post([scheduled.status()?$$.$.notification.type.scheduled:$$.$.notification.success,status],10,"success",0,1,['bottom','center']);paneled&&panel.close();draft.clean();}}}};xhr.onerror=function(e){_.button.progress(_this,0);_.button.lock(_this,false);_.error({responseText:e.target.responseText,status:xhr.status,readyState:xhr.readyState,_errConnectionReset:xhr.status===0?true:false},1);};xhr.send(form_data);});target.addEventListener('keydown',function(e){var meta=_.platform.mac?e.metaKey:e.ctrlKey,enter=e.keyCode===13;if(meta&&enter){submit.dataset.isTrusted=1;submit.dispatchEvent(new Event('click'));}});},3e2);}},language={},template={};Object.entries(form_data).filter(function(f){['from','real','to','cc','bcc','subject','body'].includes(f[0])?data.visible[f[0]]=f[1]:data.hidden[f[0]]=f[1];});Object.entries(data.visible).forEach(function(e){var id=e[0];language[id]=$form.find('[name='+id+']').parent().prev().text();});Object.entries(data.hidden).forEach(function(e){var id=e[0];if(['crypt','sign'].includes(id)){language[id]=$form.find('[name='+id+']').parent().prev().text();}else if(['pri'].includes(id)){var _data={};$form.find('[name='+id+'] option').map(function(ix){_data[ix]=this.innerText;});language[id]={label:$form.find('[name='+id+']').parent().prev().text(),data:_data};}});language._attachments=_.lang('global_attachments');language._send=_.lang('mail_composer_send');language._scheduled=_.lang('mail_composer_scheduled').replace(/%1/,''+element.type.date()+''+_.lang('global_today').toLowerCase()+'').replace(/%2/,element.type.time());language._attach=_.lang('mail_composer_attach');language._insert_link=_.plugin.setup_modifier(_.lang('editor_tb_link').replace('%cmd',_.platform.mac?'Meta':'Ctrl'));language._insert_picture=_.lang('editor_tb_image');language._toggle=_.lang('mail_composer_toggle');language._discard=_.lang('mail_composer_discard');language._server_attach=_.lang('mail_composer_server_attach');language._notifications=_.lang('global_notifications');language._notifications_dsn=_.lang('mail_composer_notifications_dsn');language._notifications_del=_.lang('mail_composer_notifications_del');language._encrypt=_.lang('global_encrypt');language._options=_.lang('global_options');language._addrecipients=_.lang('mail_composer_addrecipients');language._default=_.lang('global_default');language._fixed_width=_.lang('editor_tb_font_fixed_width');language._name=_.lang('mail_composer_real_name');language._username=_.lang('mail_composer_username');language._paragraph=_.lang('global_paragraph');language._heading=_.lang('global_heading');language._font_size={small:_.lang('global_small'),normal:_.lang('global_normal'),medium:_.lang('global_medium'),large:_.lang('global_large')};var from_name=$form[0].querySelector('input[name="real"]'),from_user=$form[0].querySelector('input[name="user"]'),from_dom=$form[0].querySelector('input[name="dom"]'),from_composable=void 0;if(from_dom){from_composable={name:from_name.value,user:from_user.value,dom:from_dom.value};}element.select.from=$form[0].querySelector('select[name="from"]');element.select.sign=$form[0].querySelector('select[name="sign"]');element.select.crypt=$form[0].querySelector('select[name="crypt"]');if(element.select.from){element.select.from=element.select.from.outerHTML;}if(element.select.sign){element.select.sign=element.select.sign.outerHTML;}if(element.select.crypt){element.select.crypt=element.select.crypt.outerHTML;}template.form=$$.$.template.compose({prefix:prefix,target:{send:xtarget.send},charset:data.hidden.charset,id:id,class:classes,language:language,status:{text:~~data.hidden.html_edit?classes.hidden:String(),html:~~data.hidden.html_edit?String():classes.hidden,module:{schedule:_.mavailable('schedule')?String():classes.hidden}},toggle:{recipients:{cc:toggle.recipients('cc','rc',data.visible),bcc:toggle.recipients('bcc','rc',data.visible),ccf:toggle.recipients('cc','rf',data.visible),bccf:toggle.recipients('bcc','rf',data.visible)},more:{server_file:check.field('file0',data.hidden),abook:check.field('abook',data.hidden),dsn:check.field('dsn',data.hidden),del:check.field('del',data.hidden),sign:[check.field('sign',data.hidden),element.select.sign],crypt:[check.field('crypt',data.hidden),element.select.crypt],pri:check.field('pri',data.hidden)}},from:from_composable||element.select.from||element.input('from',data.visible,!~~config.d.g.edit_from),to:element.input('to',data.visible),cc:element.input('cc',data.visible),bcc:element.input('bcc',data.visible),subject:element.input('subject',data.visible),attachments:element.input(classes.form.name.tattach,data.visible,false,true),body:types.new==1?signature:data.visible.body,signature:signature,toolbar_mode:toolbar_mode});if(inline){var inlne_form=inline.append(template.form);element.composer(inlne_form);}else{var composers=$('.'+classes.panel.container+' .'+classes.editor.compose).length,window_width=window.innerWidth,small_window_width=window_width<640,window_height=window.innerHeight,small_window_height=window_height<640,small_window=small_window_width||small_window_height,ioffset=-15,offset=composers?ioffset*5*composers:ioffset,position=small_window?{}:{my:"right-bottom",at:"right-bottom",offsetX:offset,offsetY:offset},panel=$.jsPanel({position:position,theme:"#eaeaea",onwindowresize:true,panelSize:{width:small_window?window_width+4*ioffset:600,height:small_window?window_height+4*ioffset:600},headerTitle:_.lang('mail_new_message'),content:template.form,maximizedMargin:{top:small_window?-1*ioffset:window_height*0.03,bottom:small_window?-1*ioffset:window_height*0.03,left:small_window?-1*ioffset:window_height*0.1,right:small_window?-1*ioffset:window_height*0.1},footerToolbar:function footerToolbar(){},dblclicks:{title:"maximize"},onminimized:function onminimized(){toggle.backdrop(this);},onclosed:function onclosed(){toggle.backdrop(this);},onnormalized:function onnormalized(){adjust.contenteditable(this[0]);toggle.backdrop(this);},onmaximized:function onmaximized(){adjust.contenteditable(this[0]);toggle.backdrop(this,1);},callback:function callback(){element.composer(this);if(small_window){this.maximize();}}});panel.header.title.addClass('plain');}}});};return{message:message};}();var messages=function(){var fetching={state:false,initial:true,abort:function abort(){if(this.pending()===true&&this.initial===false){this.state.abort();}},pending:function pending(){if(typeof this.state.state==="function"&&this.state.state()==="pending"){return true;}return false;}};var get=function get(data){loader.start();fetching.abort();fetching.state=$.post(_.path.extensions+'/mail/messages.cgi?'+_.plugin.json_to_query(data),function(data){render(data);loader.end();_.document_title(0,_.lang('titles_mail'));config.set(data[0].config);fetching.initial=false;!bundles.loaded&&bundles.get(config);});},loader={target:$$.selector('tree.active'),start:function start(){$(this.target).addClass($$.$.tree.loader);},end:function end(){$(this.target).removeClass($$.$.tree.loader);}},preview_length=function preview_length(){return parseInt($(window).width()/10);},storage={target:'['+$$.$.tree.container+']',counter:$$.selector('controls.counter'),get:function get(){var status=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var data=$(this.target).data('messages')||{};if(!status){data=Object.keys(data);}return data;},set:function set(id,state,status,starred,data){var storage=this.get(1);state?storage[id]=[+status,+starred]:delete storage[id];$(this.target).data('messages',storage);var selected_count=Object.keys(storage).length;$(this.counter).text((selected_count?selected_count+' '+_.lang('global_selected'):String()).toLowerCase());var controls=$$.selector('layout.controls');$(controls).toggleClass('hidden',!selected_count);},restore:function restore(){var data=this.get(),checkboxes=$$.$.messages.checkbox;$(checkboxes).filter(function(i,t){data.includes(t.value)&&$(t).prop('checked',1);}).promise().done(function(){$(checkboxes).trigger('change');});},reset:function reset(){var checkboxes=$$.$.messages.checkbox;$(this.target).data('messages',{});$(checkboxes+':checked').prop('checked',0).trigger('change');}},status={action:function action(_action){var string=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;_action=parseInt(_action.replace(/^\D+/g,''));if(string){return _action?'read':'unread';}return _action;},set:function set(action,messages){var $messages=$($$.$.messages.checkbox).filter(function(i,c){return messages.includes(c.value);}),$targets=$messages.parent().parents('td').parents('tr');$targets.attr('data-unread',+!this.action(action));},write:function write(data){var messages=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var folder_index=data[1].searched_folder_index||data[1].folder_index;if(messages){var action=this.action(data[0],1);messages='&d='+messages.join('&d=');$.post(_.path.extensions+'/mail/message.cgi?folder='+folder_index+'&mark='+action+messages+'');}else{var _action2=this.action(data[0],1),server=data[1],_messages=storage.get(1),starred={read:[],unread:[]};$.each(_messages,function(i,o){if(o[1]===1){o[0]===1?starred.unread.push(i):starred.read.push(i);delete _messages[i];}});submit(server,_defineProperty({},data[0],1),Object.keys(_messages),0,1);var link=_.path.extensions+'/mail/message.cgi?folder='+folder_index+'&mark=starred&state='+_action2+'';starred.read.length&&$.post(link+('&d='+starred.read.join('&d='))+'');starred.unread.length&&$.post(link+''+('&d='+starred.unread.join('&d='))+'');}}},events=function events(data){var button={compose:$$.$.controls.compose.button,search:$$.element('controls.search.dropdown'),refresh:$$.element('controls.refresh.button'),delete:$$.element('controls.delete'),forward:$$.element('controls.forward'),special:{star:$$.selector('messages.special.star'),starred:$$.selector('messages.special.starred'),unstarred:$$.selector('messages.special.unstarred')}},dropdown={mark:{read:$$.element('controls.more.menu.read'),unread:$$.element('controls.more.menu.unread'),special:$$.element('controls.more.menu.special'),spam:$$.element('controls.more.menu.spam'),ham:$$.element('controls.more.menu.ham'),black:$$.element('controls.more.menu.black'),white:$$.element('controls.more.menu.white')},select:$$.selector('controls.select.dropdown'),move:$$.element('controls.move.dropdown'),search:$$.element('controls.search.dropdown')},checkbox=$($$.$.controls.select.checkbox),checkboxes=$$.$.messages.checkbox,flags=$$.selector('messages.flag'),evt={click:'click',change:'change',keyup:'keyup',shown_bs_drpd:'shown.bs.dropdown'};checkbox.off(evt.change).on(evt.change,function(){var $this=$(this),state=$this.is(':checked');$(checkboxes).prop('checked',state).trigger(evt.change);}).parent().parent().off(evt.click).on(evt.click,function(event){var $input=$(this).find('input');!$(event.target).is($input)&&$input.prop('checked',!$input.is(':checked')).trigger(evt.change);});$(flags).off(evt.click).on(evt.click,function(event){event.stopPropagation();});$(dropdown.select).find($$.$.controls.select.menus).off(evt.click).on(evt.click,function(event){var _$=$(event.target).data('type'),$_=$(checkboxes),$__=evt.change,__$='checked';if(_$===5||_$===4){$_.prop(__$,_$&1).trigger($__);}else if(_$===3){$_.prop(__$,function(){return!this.checked;}).trigger($__);}else if(_$===2||_$===1){$_.prop(__$,function(){return+$(this).parents('tr').attr('data-unread')===(_$&1);}).trigger($__);}else if(_$===0){$_.prop(__$,function(){return+$(this).parents('tr').attr('data-starred')===+!(_$&1);}).trigger($__);}});$(checkboxes).off(evt.change).on(evt.change,function(){var $this=$(this),$row=$this.parents('td').parent('tr'),state=$this.is(':checked'),id=$this.val(),checked=checkboxes+':checked',status=$row.attr('data-unread'),starred=$row.attr('data-starred');storage.set(id,state,status,starred,data);$(checked).length===$(checkboxes).length?checkbox.prop('checked',1):checkbox.prop('checked',0);});button.delete.off(evt.click).on(evt.click,function(){submit(data,{'delete':1},storage.get(),1,1);});var $dropdown_move_select=dropdown.move.find('select');$dropdown_move_select.find('option').map(function(i,o){o.value<=-1&&o.remove();});_.plugin.select($dropdown_move_select);$dropdown_move_select.on(evt.change,function(){var _this2=this;setTimeout(function(){$($$.$.controls.move.submit).toggleClass('disabled',!_this2.value).trigger('focus');});});dropdown.move.find('li').off(evt.click).on(evt.click,function(event){event.stopPropagation();var $target=$(event.target),$submit=$($$.$.controls.move.submit),$copy=$($$.$.controls.move.checkbox),copy=$copy.is(':checked');if($target.is($copy)){$submit.text(copy?_.lang('global_copy'):_.lang('global_move'));}if($target.is('button:not(.disabled)')){var _submit2;var action=copy,target=parseInt($dropdown_move_select.val());submit(data,(_submit2={},_defineProperty(_submit2,(action?'copy':'move')+'1',1),_defineProperty(_submit2,'mfolder1',target),_submit2),storage.get(),+!action||(data.searched_folder_index||data.folder_index)===target,1);dropdown.move.removeClass('open');}});dropdown.move.off(evt.shown_bs_drpd).on(evt.shown_bs_drpd,function(){_.plugin.select([$dropdown_move_select,'open']);});button.forward.off(evt.click).on(evt.click,function(){var messages_ids=storage.get().map(function(message_id){return encodeURIComponent(message_id);}),messages_link='&mailforward='+messages_ids.join("&mailforward="),reply=_.path.origin+_.path.prefix+"/mailbox/reply_mail.cgi?folder=",data=JSON.parse(fetching.state.responseText)[0];_.pjax.fetch(reply+data.folder_index+messages_link);});var $dropdown_search_select=dropdown.search.find('select'),$dropdown_search_simple=dropdown.search.find('[data-search-mail]'),$dropdown_search_advanced_all=dropdown.search.find('[name="search-wordsin"]');if(data&&$dropdown_search_select.length){$dropdown_search_select[0].value=data.searched_folder_index||data.folder_index;}_.plugin.select($dropdown_search_select);button.search.find('li').off(evt.click+' '+evt.keyup).on(evt.click+' '+evt.keyup,function(event){event.stopPropagation();var $target=$(event.target),$advanced_form=dropdown.search.find('['+$$.$.controls.search.data.form.advanced+']'),advanced_form_hidden=function advanced_form_hidden(){return window.getComputedStyle($advanced_form[0]).display==='none';};if(event.keyCode===27){button.search.trigger('click');return;}if((event.keyCode===32||event.keyCode===9||event.keyCode===13||event.type==='click')&&$target.is($($$.selector('controls.search.caret.down')).add($$.selector('controls.search.button.type')))){var $caret=$target.is('i')?$target:$target.find('i');$caret.toggleClass($$.$.controls.search.caret.up);$advanced_form.toggleClass('show');$dropdown_search_simple[0].disabled=!advanced_form_hidden();var focus_target=advanced_form_hidden()?$dropdown_search_simple:$advanced_form[0].querySelector('input');focus_target.focus();if(advanced_form_hidden()){$dropdown_search_simple.val($dropdown_search_advanced_all.val());$dropdown_search_advanced_all.val(String());}else{$dropdown_search_advanced_all.val($dropdown_search_simple.val());$dropdown_search_simple.val(String());}return;}if(event.type==='keyup'&&event.keyCode===13&&$target.is('[type="text"], [type="number"]')||event.type==='click'&&$target.is('button:not(.disabled)')){var simple_query={folder:parseInt($dropdown_search_select[0].value),search:$dropdown_search_simple[0].value};if(advanced_form_hidden()){if(simple_query.search){$.post(_.path.prefix+'/'+_.variable.module.name()+'/mail_search.cgi?returned_format=json&json-error=1&simple=1&'+_.plugin.json_to_query(simple_query),function(data){messages.get(data);});}}else{var $elements_input=$advanced_form.find('input[type="text"]').filter(function(i,v){return v.value;}),$elements_radios_status=$advanced_form.find('input[name="status"]'),$elements_limit=$advanced_form.find('input[name^="limit"]'),$elements_attach=$advanced_form.find('input[name="attach"]'),query={};query.all=1;query.dest_def=1;query.folder=simple_query.folder;for(var i=0;i<$elements_input.length;i++){var value=$elements_input[i].value,special=$elements_input[i].name.includes('words'),name=$elements_input[i].name.replace('search-',String());if(value){query['what_'+i]=value;if(special){query['field_'+i]='all';query['neg_'+i]=~~$elements_input[i].name.includes('out');}else{query['field_'+i]=name;query['neg_'+i]=0;}}}query.status_def=0;for(var _i=0;_i<$elements_radios_status.length;_i++){var $this=$elements_radios_status[_i],_value=$this.value,def=_value==-1?1:0;if($this.checked){query.status_def=def;if(!def){query.status=_value;}}}for(var _i2=0;_i2<$elements_limit.length;_i2++){var _$this=$elements_limit[_i2],_name=_$this.name;if(_$this.checked&&_$this.name==='limit_def'||_$this.name!=='limit_def'){query[_name]=_$this.value;}}query.attach=~~$elements_attach[0].checked;$.post(_.path.prefix+'/'+_.variable.module.name()+'/mail_search.cgi?returned_format=json&json-error=1&'+_.plugin.json_to_query(query),function(data){messages.get(data);});}}});dropdown.search.off(evt.shown_bs_drpd).on(evt.shown_bs_drpd,function(){$dropdown_search_simple.trigger('focus');});button.refresh.off(evt.click).on(evt.click,function(){$$.element('tree.active').click();});$(button.special.star).off(evt.click).on(evt.click,function(event){event.stopImmediatePropagation();var $this=$(this),$row=$(event.target).parents('td').parent('tr'),target=$$.$.messages.special,id=$row.find('input[value]').val(),state=$(event.target).is($(button.special.starred))?1:0,unread=+$row.attr('data-unread'),text=_.lang('global_'+(state?'unstarred':'starred')+'');$row.attr('data-starred',+!state);submit(data,_defineProperty({},'markas'+(state?1:2)+'',1),[id]);$this.removeClass(target[state?'starred':'unstarred']).addClass(target[state?'unstarred':'starred']).attr('data-original-title',text).next().remove();status.write([(+!unread).toString(),data],[id]);});dropdown.mark.read.add(dropdown.mark.unread).off(evt.click).on(evt.click,function(){var action=$(this).data('form-action'),messages=storage.get();status.write([action,data]);status.set(action,messages);});dropdown.mark.spam.add(dropdown.mark.ham).add(dropdown.mark.black).add(dropdown.mark.white).off(evt.click).on(evt.click,function(){var action=$(this).data('form-action'),messages=storage.get(),refetch=/razor|black/.test(action);submit(data,_defineProperty({},action,1),messages,+refetch,1);});$($$.$.controls.search.link).off(evt.click).on(evt.click,function(){var link=this.getAttribute('data-href');fetch(link,_.fetch.options).then(function(response){return response.json();}).then(function(data){messages.get(data);});});$(folders.data.selector.navigation).off(evt.click,button.compose).on(evt.click,button.compose,function(){compose.message();});},submit=function submit(data,actions,messages){var refetch=arguments.length>3&&arguments[3]!==undefined?arguments[3]:0;var reset=arguments.length>4&&arguments[4]!==undefined?arguments[4]:0;var form=data.form_list,target=_.variable.module.link()+('/'+form.target+'?'),hidden=form.hidden,searched_index=data.searched_folder_index,mail_system=parseInt(data.mail_system);hidden=_.plugin.json_to_query(hidden)+'&noredirect=1&';if(searched_index&&(mail_system===2||mail_system===4)){hidden=hidden.replace(/folder=\d+/,'folder='+searched_index);}actions=_.plugin.json_to_query(actions);messages='&d='+messages.join('&d=');refetch&&(loader.start(),_.notification.hideAll());$.post(target+hidden+actions+encodeURI(messages),function(){if(reset){storage.reset();}if(refetch||data.folder_counts_allowed){fetching.abort();$.post(_.path.extensions+'/mail/messages.cgi?'+hidden+'show_body_len='+preview_length()+'',function(data){render(data);loader.end();});}});},row=function row(text,icon){var row=String(),centered_row=$$.create.$('layout.row.centered');row=$(centered_row).append((icon?$$.create.icon(icon):String())+'
    '+text+'
    ');return row;},render=function render(source){var container=$$.element('layout.container'),data=source[0],messages_list=data.list.messages&&data.form_list.buttons?data.list.messages.replace(/�/g,''):String();if(data.error){var errors=data.error.error;for(var i=0;i128?1:0;if(!messages_list_available&&data.searched){_.notification.post([$$.$.notification.type.search,_.lang('mail_search_empty')],5,"info",0,1,['bottom','center']);return;}container.empty().append($$.create.$('layout.panel'));var panel=container.find($$.selector('layout.panel'));if(messages_list_available){var _$$$create$$,_$$$create$$2,_$$$create$$3,_$$$create$$4,_$$$create$$5,_$$$create$$6,_$$$create$$7,_$$$create$$8,_$$$create$$9,_$$$create$$10,_$$$create$$11;var controls={select:data.form_list.buttons.select,submit:data.form_list.buttons.submit},pagination={link:data.pagination_arrow_last||data.pagination_arrow_first||String(),title:data.pagination_arrow_last?_.lang('mail_pagination_last'):data.pagination_arrow_first?_.lang('mail_pagination_first'):false};panel.append($$.create.$('layout.row.controls')).find($$.selector('layout.row.controls')).append($$.create.$('layout.column.6'),$$.create.$('layout.column.6')).find($$.selector('layout.column.6')).first().append($$.create.dropdown('controls.select.dropdown',[[controls.select.all,controls.select.none,controls.select.invert,controls.select.read,controls.select.unread,controls.select.special],3],$$.create.checkbox({select:1}),String(),_.lang('global_select')));var $form_controls=$($$.create.$('layout.controls',{'form-controls':1},'div'));Object.entries(controls.submit).map(function(_ref7){var _ref8=_slicedToArray(_ref7,2),type=_ref8[0],data=_ref8[1];var _iteratorNormalCompletion3=true;var _didIteratorError3=false;var _iteratorError3=undefined;try{for(var _iterator3=data.entries()[Symbol.iterator](),_step3;!(_iteratorNormalCompletion3=(_step3=_iterator3.next()).done);_iteratorNormalCompletion3=true){var _ref9=_step3.value;var _ref10=_slicedToArray(_ref9,2);var _i3=_ref10[0];var v=_ref10[1];if(type==='buttons'){$form_controls.append($$.create.$('controls.'+v[0],{'form-control':v[0]},'span',String(),_.lang('global_'+v[0]+'')));}else if(type==='dropdowns'){var _iteratorNormalCompletion4=true;var _didIteratorError4=false;var _iteratorError4=undefined;try{for(var _iterator4=v.entries()[Symbol.iterator](),_step4;!(_iteratorNormalCompletion4=(_step4=_iterator4.next()).done);_iteratorNormalCompletion4=true){var _ref11=_step4.value;var _ref12=_slicedToArray(_ref11,2);var di=_ref12[0];var dd=_ref12[1];var entries=[];var _iteratorNormalCompletion5=true;var _didIteratorError5=false;var _iteratorError5=undefined;try{for(var _iterator5=v[1].entries()[Symbol.iterator](),_step5;!(_iteratorNormalCompletion5=(_step5=_iterator5.next()).done);_iteratorNormalCompletion5=true){var _ref13=_step5.value;var _ref14=_slicedToArray(_ref13,2);var index=_ref14[0];var _data2=_ref14[1];_data2[0]&&entries.push($$.create.$(0,{'form-action':_data2[0]},'span',_data2[1]));}}catch(err){_didIteratorError5=true;_iteratorError5=err;}finally{try{if(!_iteratorNormalCompletion5&&_iterator5.return){_iterator5.return();}}finally{if(_didIteratorError5){throw _iteratorError5;}}}if(typeof dd==="string"){$form_controls.append($$.create.dropdown('controls.'+dd+'.dropdown',[entries,2],0,dd,_.lang('mail_'+dd+'')||_.lang('global_'+dd+'')));}}}catch(err){_didIteratorError4=true;_iteratorError4=err;}finally{try{if(!_iteratorNormalCompletion4&&_iterator4.return){_iterator4.return();}}finally{if(_didIteratorError4){throw _iteratorError4;}}}}}}catch(err){_didIteratorError3=true;_iteratorError3=err;}finally{try{if(!_iteratorNormalCompletion3&&_iterator3.return){_iterator3.return();}}finally{if(_didIteratorError3){throw _iteratorError3;}}}});panel.find($$.selector('layout.column.6')).first().append($form_controls,$$.create.$('controls.refresh.button',{'refresh':1},'button',String(),_.lang('global_refresh')),$$.create.dropdown('controls.sort.dropdown',[[data.list.sort.date,data.list.sort.from,data.list.sort.size,data.list.sort.subject,data.list.sort.spam],5],data.list.sorted,'sort',_.lang('global_sort'),function(dd){if(dd&&dd.match(/:first'),content=$(this.container+' >>:first');if(container.height()>content.height()){container.css('height',content.height());}},init:function init(source){if(this.fetched===0){this.load();return;}if($(data.selector.navigation+' '+this.container).length===0){$(data.selector.navigation).prepend('
  • ');$(data.selector.navigation).prepend('
  • '+$$.create.$('layout.button.block.transparent',{'compose':1},'span',$$.create.icon('controls.compose.icon')+" "+_.lang('mail_new_message'))+'
  • ');}else{return;}data.plugin.tree(source);_.plugin.scroll(this.container,data.options.scroll);this.container_adjust();},expand:function expand(node){var expanded=node.isExpanded();!expanded&&node.toggleExpanded();},load:function load(){this.fetched=1;_.load.bundle(data.file.fancytree,1,_.variable.switch()?[get]:0,1);},reload:function reload(source){var _this4=this;var tree=data.plugin.tree('get');tree.$container.empty();tree.reload(source);setTimeout(function(){_this4.adjust();},1e2);},node:function node(){return data.plugin.tree('node');},adjust:function adjust(){var $_=this.node();if($_&&$_.li&&$($_.li).length){_.plugin.scroll([this.container,$($_.li)]);}this.container_adjust();}};var get=function get(key){key=key?'?key='+key.replace(/&/g,'%26'):String();$.post(_.path.extensions+'/mail/folders.cgi'+key+'',function(source){if(!!key){_tree.reload(source);}else{_tree.init(source);}});};var set=function set(key){var _this5=this;var tree=data.plugin.tree('get');if((typeof key==='undefined'?'undefined':_typeof(key))==='object'){var search={id:key.searched_folder_id,file:key.searched_folder_file},id=key.folder_id;if(search.file&&search.id!=null&&key.mail_system!=2&&key.mail_system!=4){key=search.file;}else{key=search.id||id;}}if((typeof tree==='undefined'?'undefined':_typeof(tree))==='object'&&typeof tree.activateKey==='function'){tree.activateKey(false);tree.activateKey(key);}else{setTimeout(function(){_this5.set(key);},1e2);}};var refresh=function refresh(){var node=_tree.node();node.span.click();};var update=function update(data){var allowed=data.folder_counts_allowed,unread_count=data.unread,$node_titles=$($$.selector('tree.title')),active_node=$$.selector('tree.active'),node_bubble=$$.selector('tree.bubble'),$active_node_title=$(active_node).find($$.selector('tree.title')),$active_node_bubble=$(active_node).find(node_bubble);if(allowed){if(unread_count){if($active_node_bubble.length){$active_node_bubble.text(unread_count);}else{$active_node_title.append($$.create.$('tree.bubble',false,'span',unread_count));}}else{$active_node_bubble.remove();}}else{$node_titles.find(node_bubble).remove();}};var check=function check(folder){var node=_tree.node();if(node&&node.key===folder){return true;}return false;};var adjust=function adjust(){_tree.adjust();};return{get:get,set:set,refresh:refresh,update:update,check:check,adjust:adjust,data:data};}();return{folders:{get:folders.get,set:folders.set,refresh:folders.refresh,update:folders.update,check:folders.check,adjust:folders.adjust},messages:{get:messages.get,sort:messages.sort,events:messages.events},compose:compose.message};}(); diff --git a/extensions/mail/mail.min.js.gz b/extensions/mail/mail.min.js.gz index 21e7ee16a..4baa4a765 100644 Binary files a/extensions/mail/mail.min.js.gz and b/extensions/mail/mail.min.js.gz differ diff --git a/extensions/mail/mail.src.js b/extensions/mail/mail.src.js index 37728e253..606379526 100644 --- a/extensions/mail/mail.src.js +++ b/extensions/mail/mail.src.js @@ -3472,7 +3472,7 @@ const mail = (function() { toggleEffect: false, }, scroll: { - axis: 'xy', + axis: 'x', theme: 'minimal', keyboard: false, scrollInertia: 300, diff --git a/unauthenticated/css/bundle.min.css.gz b/unauthenticated/css/bundle.min.css.gz index e16c1fd0b..d07bffb52 100644 Binary files a/unauthenticated/css/bundle.min.css.gz and b/unauthenticated/css/bundle.min.css.gz differ diff --git a/unauthenticated/js/bundle.min.js b/unauthenticated/js/bundle.min.js index d636b2ae0..d8deaf725 100644 --- a/unauthenticated/js/bundle.min.js +++ b/unauthenticated/js/bundle.min.js @@ -96,7 +96,7 @@ if(typeof jQuery==="undefined"){throw new Error("Bootstrap's JavaScript requires * Copyright 2014 Manos Malihutsakis * Licensed under MIT */ -!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e:e(jQuery)}(function(e){function t(t){var r=t||window.event,l=s.call(arguments,1),c=0,f=0,u=0,h=0,m=0,p=0;if(t=e.event.fix(r),t.type="mousewheel","detail"in r&&(u=-1*r.detail),"wheelDelta"in r&&(u=r.wheelDelta),"wheelDeltaY"in r&&(u=r.wheelDeltaY),"wheelDeltaX"in r&&(f=-1*r.wheelDeltaX),"axis"in r&&r.axis===r.HORIZONTAL_AXIS&&(f=-1*u,u=0),c=0===u?f:u,"deltaY"in r&&(u=-1*r.deltaY,c=u),"deltaX"in r&&(f=r.deltaX,0===u&&(c=-1*f)),0!==u||0!==f){if(1===r.deltaMode){var g=e.data(this,"mousewheel-line-height");c*=g,u*=g,f*=g}else if(2===r.deltaMode){var v=e.data(this,"mousewheel-page-height");c*=v,u*=v,f*=v}if(h=Math.max(Math.abs(u),Math.abs(f)),(!n||n>h)&&(n=h,a(r,h)&&(n/=40)),a(r,h)&&(c/=40,f/=40,u/=40),c=Math[c>=1?"floor":"ceil"](c/n),f=Math[f>=1?"floor":"ceil"](f/n),u=Math[u>=1?"floor":"ceil"](u/n),d.settings.normalizeOffset&&this.getBoundingClientRect){var x=this.getBoundingClientRect();m=t.clientX-x.left,p=t.clientY-x.top}return t.deltaX=f,t.deltaY=u,t.deltaFactor=n,t.offsetX=m,t.offsetY=p,t.deltaMode=0,l.unshift(t,c,f,u),o&&clearTimeout(o),o=setTimeout(i,200),(e.event.dispatch||e.event.handle).apply(this,l)}}function i(){n=null}function a(e,t){return d.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120===0}var o,n,r=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],l="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],s=Array.prototype.slice;if(e.event.fixHooks)for(var c=r.length;c;)e.event.fixHooks[r[--c]]=e.event.mouseHooks;var d=e.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var i=l.length;i;)this.addEventListener(l[--i],t,!1);else this.onmousewheel=t;e.data(this,"mousewheel-line-height",d.getLineHeight(this)),e.data(this,"mousewheel-page-height",d.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var i=l.length;i;)this.removeEventListener(l[--i],t,!1);else this.onmousewheel=null;e.removeData(this,"mousewheel-line-height"),e.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var i=e(t),a=i["offsetParent"in e.fn?"offsetParent":"parent"]();return a.length||(a=e("body")),parseInt(a.css("fontSize"),10)||parseInt(i.css("fontSize"),10)||16},getPageHeight:function(t){return e(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})});(function(e){if(typeof define==="function"&&define.amd){define(["jquery"],e)}else if(typeof module!=="undefined"&&module.exports){module.exports=e}else{e(jQuery,window,document)}})(function(e){(function(t){var i=typeof define==="function"&&define.amd,a=typeof module!=="undefined"&&module.exports,o="https:"==document.location.protocol?"https:":"http:",n="cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js";if(!i){if(a){require("jquery-mousewheel")(e)}else{e.event.special.mousewheel||e("head").append(decodeURI("%3Cscript src="+o+"//"+n+"%3E%3C/script%3E"))}}t()})(function(){var t="mCustomScrollbar",i="mCS",a=".mCustomScrollbar",o={setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:950,autoDraggerLength:true,alwaysShowScrollbar:0,snapOffset:0,mouseWheel:{enable:true,scrollAmount:"auto",axis:"y",deltaFactor:"auto",disableOver:["select","option","keygen","datalist","textarea"]},scrollButtons:{scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:true,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,documentTouchScroll:true,advanced:{autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:true,updateOnImageLoad:"auto",autoUpdateTimeout:60},theme:"light",callbacks:{onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:true}},n=0,r={},s=window.attachEvent&&!window.addEventListener?1:0,c=false,d,f=["mCSB_dragger_onDrag","mCSB_scrollTools_onDrag","mCS_img_loaded","mCS_disabled","mCS_destroyed","mCS_no_scrollbar","mCS-autoHide","mCS-dir-rtl","mCS_no_scrollbar_y","mCS_no_scrollbar_x","mCS_y_hidden","mCS_x_hidden","mCSB_draggerContainer","mCSB_buttonUp","mCSB_buttonDown","mCSB_buttonLeft","mCSB_buttonRight"],u={init:function(t){var t=e.extend(true,{},o,t),l=m.call(this);if(t.live){var s=t.liveSelector||this.selector||a,c=e(s);if(t.live==="off"){g(s);return}r[s]=setTimeout(function(){c.mCustomScrollbar(t);if(t.live==="once"&&c.length){g(s)}},500)}else{g(s)}t.setWidth=t.set_width?t.set_width:t.setWidth;t.setHeight=t.set_height?t.set_height:t.setHeight;t.axis=t.horizontalScroll?"x":v(t.axis);t.scrollInertia=t.scrollInertia>0&&t.scrollInertia<17?17:t.scrollInertia;if(typeof t.mouseWheel!=="object"&&t.mouseWheel==true){t.mouseWheel={enable:true,scrollAmount:"auto",axis:"y",preventDefault:false,deltaFactor:"auto",normalizeDelta:false,invert:false}}t.mouseWheel.scrollAmount=!t.mouseWheelPixels?t.mouseWheel.scrollAmount:t.mouseWheelPixels;t.mouseWheel.normalizeDelta=!t.advanced.normalizeMouseWheelDelta?t.mouseWheel.normalizeDelta:t.advanced.normalizeMouseWheelDelta;t.scrollButtons.scrollType=x(t.scrollButtons.scrollType);p(t);return e(l).each(function(){var a=e(this);if(!a.data(i)){a.data(i,{idx:++n,opt:t,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:false,tweenRunning:false,sequential:{},langDir:a.css("direction"),cbOffsets:null,trigger:null,poll:{size:{o:0,n:0},img:{o:0,n:0},change:{o:0,n:0}}});var o=a.data(i),r=o.opt,l=a.data("mcs-axis"),s=a.data("mcs-scrollbar-position"),c=a.data("mcs-theme");if(l){r.axis=l}if(s){r.scrollbarPosition=s}if(c){r.theme=c;p(r)}_.call(this);if(o&&r.callbacks.onCreate&&typeof r.callbacks.onCreate==="function"){r.callbacks.onCreate.call(this)}e("#mCSB_"+o.idx+"_container img:not(."+f[2]+")").addClass(f[2]);u.update.call(null,a)}})},update:function(t,a){var o=t||m.call(this);return e(o).each(function(){var t=e(this);if(t.data(i)){var o=t.data(i),n=o.opt,r=e("#mCSB_"+o.idx+"_container"),l=e("#mCSB_"+o.idx),s=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")];if(!r.length){return}if(o.tweenRunning){J(t)}if(a&&o&&n.callbacks.onBeforeUpdate&&typeof n.callbacks.onBeforeUpdate==="function"){n.callbacks.onBeforeUpdate.call(this)}if(t.hasClass(f[3])){t.removeClass(f[3])}if(t.hasClass(f[4])){t.removeClass(f[4])}l.css("max-height","none");if(l.height()!==t.height()){l.css("max-height",t.height())}b.call(this);if(n.axis!=="y"&&!n.advanced.autoExpandHorizontalScroll){r.css("width",S(r))}o.overflowed=k.call(this);I.call(this);if(n.autoDraggerLength){y.call(this)}B.call(this);O.call(this);var c=[Math.abs(r[0].offsetTop),Math.abs(r[0].offsetLeft)];if(n.axis!=="x"){if(!o.overflowed[0]){M.call(this);if(n.axis==="y"){D.call(this)}else if(n.axis==="yx"&&o.overflowed[1]){K(t,c[1].toString(),{dir:"x",dur:0,overwrite:"none"})}}else if(s[0].height()>s[0].parent().height()){M.call(this)}else{K(t,c[0].toString(),{dir:"y",dur:0,overwrite:"none"});o.contentReset.y=null}}if(n.axis!=="y"){if(!o.overflowed[1]){M.call(this);if(n.axis==="x"){D.call(this)}else if(n.axis==="yx"&&o.overflowed[0]){K(t,c[0].toString(),{dir:"y",dur:0,overwrite:"none"})}}else if(s[1].width()>s[1].parent().width()){M.call(this)}else{K(t,c[1].toString(),{dir:"x",dur:0,overwrite:"none"});o.contentReset.x=null}}if(a&&o){if(a===2&&n.callbacks.onImageLoad&&typeof n.callbacks.onImageLoad==="function"){n.callbacks.onImageLoad.call(this)}else if(a===3&&n.callbacks.onSelectorChange&&typeof n.callbacks.onSelectorChange==="function"){n.callbacks.onSelectorChange.call(this)}else if(n.callbacks.onUpdate&&typeof n.callbacks.onUpdate==="function"){n.callbacks.onUpdate.call(this)}}Z.call(this)}})},scrollTo:function(t,a){if(typeof t=="undefined"||t==null){return}var o=m.call(this);return e(o).each(function(){var o=e(this);if(o.data(i)){var n=o.data(i),r=n.opt,l={trigger:"external",scrollInertia:r.scrollInertia,scrollOffset:0,scrollOffsetEdge:true,scrollEasing:"mcsEaseInOut",moveDragger:false,timeout:60,callbacks:true,onStart:true,onUpdate:true,onComplete:true},s=e.extend(true,{},l,a),c=V.call(this,t),d=s.scrollInertia>0&&s.scrollInertia<17?17:s.scrollInertia;c[0]=Q.call(this,c[0],"y");c[1]=Q.call(this,c[1],"x");if(s.moveDragger){c[0]*=n.scrollRatio.y;c[1]*=n.scrollRatio.x}s.dur=le()?0:d;setTimeout(function(){if(c[0]!==null&&typeof c[0]!=="undefined"&&r.axis!=="x"&&n.overflowed[0]){s.dir="y";s.overwrite="all";var i=c[0];if(s.scrollOffset!==0&&typeof s.scrollOffset=="object"){var a=s.scrollOffset[0],l=parseInt(a.height()),d=s.scrollOffset[1],f=s.scrollOffset[2],u=parseInt(l/d),h=parseInt(l/f);i=i-u;var m=t.offset().top-a.offset().top;function p(t,i){var a=e(t),o=i,n=o.scrollTop()+50,r=n+o.height(),l=a.offset().top,s=l+a.height();return s<=r&&l>=n}if(p(t,a)&&l-m>h){s.scrollOffsetEdge=false}}s.scrollOffsetEdge&&K(o,i.toString(),s)}if(c[1]!==null&&typeof c[1]!=="undefined"&&r.axis!=="y"&&n.overflowed[1]){s.dir="x";s.overwrite="none";K(o,c[1].toString(),s)}},s.timeout)}})},stop:function(){var t=m.call(this);return e(t).each(function(){var t=e(this);if(t.data(i)){J(t)}})},disable:function(t){var a=m.call(this);return e(a).each(function(){var a=e(this);if(a.data(i)){var o=a.data(i);Z.call(this,"remove");D.call(this);if(t){M.call(this)}I.call(this,true);a.addClass(f[3])}})},destroy:function(){var a=m.call(this);return e(a).each(function(){var o=e(this);if(o.data(i)){var n=o.data(i),r=n.opt,l=e("#mCSB_"+n.idx),s=e("#mCSB_"+n.idx+"_container"),c=e(".mCSB_"+n.idx+"_scrollbar");if(r.live){g(r.liveSelector||e(a).selector)}Z.call(this,"remove");D.call(this);M.call(this);o.removeData(i);ie(this,"mcs");c.remove();s.find("img."+f[2]).removeClass(f[2]);l.replaceWith(s.contents());o.removeClass(t+" _"+i+"_"+n.idx+" "+f[6]+" "+f[7]+" "+f[5]+" "+f[3]).addClass(f[4])}})}},m=function(){return typeof e(this)!=="object"||e(this).length<1?a:this},p=function(t){var i=["rounded","rounded-dark","rounded-dots","rounded-dots-dark"],a=["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"],o=["minimal","minimal-dark"],n=["minimal","minimal-dark"],r=["minimal","minimal-dark"];t.autoDraggerLength=e.inArray(t.theme,i)>-1?false:t.autoDraggerLength;t.autoExpandScrollbar=e.inArray(t.theme,a)>-1?false:t.autoExpandScrollbar;t.scrollButtons.enable=e.inArray(t.theme,o)>-1?false:t.scrollButtons.enable;t.autoHideScrollbar=e.inArray(t.theme,n)>-1?true:t.autoHideScrollbar;t.scrollbarPosition=e.inArray(t.theme,r)>-1?"outside":t.scrollbarPosition},g=function(e){if(r[e]){clearTimeout(r[e]);ie(r,e)}},v=function(e){return e==="yx"||e==="xy"||e==="auto"?"yx":e==="x"||e==="horizontal"?"x":"y"},x=function(e){return e==="stepped"||e==="pixels"||e==="step"||e==="click"?"stepped":"stepless"},_=function(){var a=e(this),o=a.data(i),n=o.opt,r=n.autoExpandScrollbar?" "+f[1]+"_expand":"",l=["
    ","
    "],s=n.axis==="yx"?"mCSB_vertical_horizontal":n.axis==="x"?"mCSB_horizontal":"mCSB_vertical",c=n.axis==="yx"?l[0]+l[1]:n.axis==="x"?l[1]:l[0],d=n.axis==="yx"?"
    ":"",u=n.autoHideScrollbar?" "+f[6]:"",h=n.axis!=="x"&&o.langDir==="rtl"?" "+f[7]:"";if(n.setWidth){a.css("width",n.setWidth)}if(n.setHeight){a.css("height",n.setHeight)}n.setLeft=n.axis!=="y"&&o.langDir==="rtl"?"989999px":n.setLeft;a.addClass(t+" _"+i+"_"+o.idx+u+h).wrapInner("
    ");var m=e("#mCSB_"+o.idx),p=e("#mCSB_"+o.idx+"_container");if(n.axis!=="y"&&!n.advanced.autoExpandHorizontalScroll){p.css("width",S(p))}if(n.scrollbarPosition==="outside"){if(a.css("position")==="static"){a.css("position","relative")}a.css("overflow","visible");m.addClass("mCSB_outside").after(c)}else{m.addClass("mCSB_inside").append(c);p.wrap(d)}C.call(this);var g=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")];g[0].css("min-height",g[0].height());g[1].css("min-width",g[1].width())},S=function(t){var i=[t[0].scrollWidth,Math.max.apply(Math,t.children().map(function(){return e(this).outerWidth(true)}).get())],a=t.parent().width();return i[0]>a?i[0]:i[1]>a?i[1]:"100%"},b=function(){var t=e(this),a=t.data(i),o=a.opt,n=e("#mCSB_"+a.idx+"_container");if(o.advanced.autoExpandHorizontalScroll&&o.axis!=="y"){n.css({width:"auto","min-width":0,"overflow-x":"scroll"});var r=Math.ceil(n[0].scrollWidth);if(o.advanced.autoExpandHorizontalScroll===3||o.advanced.autoExpandHorizontalScroll!==2&&r>n.parent().width()){n.css({width:r,"min-width":"100%","overflow-x":"inherit"})}else{n.css({"overflow-x":"inherit",position:"absolute"}).wrap("
    ").css({width:Math.ceil(n[0].getBoundingClientRect().right+.4)-Math.floor(n[0].getBoundingClientRect().left),"min-width":"100%",position:"relative"}).unwrap()}}},C=function(){var t=e(this),a=t.data(i),o=a.opt,n=e(".mCSB_"+a.idx+"_scrollbar:first"),r=!ne(o.scrollButtons.tabindex)?"":"tabindex='"+o.scrollButtons.tabindex+"'",l=["","","",""],s=[o.axis==="x"?l[2]:l[0],o.axis==="x"?l[3]:l[1],l[2],l[3]];if(o.scrollButtons.enable){n.prepend(s[0]).append(s[1]).next(".mCSB_scrollTools").prepend(s[2]).append(s[3])}},y=function(){var t=e(this),a=t.data(i),o=e("#mCSB_"+a.idx),n=e("#mCSB_"+a.idx+"_container"),r=[e("#mCSB_"+a.idx+"_dragger_vertical"),e("#mCSB_"+a.idx+"_dragger_horizontal")],c=o.height()/n.outerHeight(false),d=o.width()/n.outerWidth(false);ratio=[Math.min(c,1),Math.min(d,1)],l=[parseInt(r[0].css("min-height")),Math.round(ratio[0]*r[0].parent().height()),parseInt(r[1].css("min-width")),Math.round(ratio[1]*r[1].parent().width())],h=s&&l[1]r){r=s}if(c>l){l=c}return[r>o.height(),l>o.width()]},M=function(){var t=e(this),a=t.data(i),o=a.opt,n=e("#mCSB_"+a.idx),r=e("#mCSB_"+a.idx+"_container"),l=[e("#mCSB_"+a.idx+"_dragger_vertical"),e("#mCSB_"+a.idx+"_dragger_horizontal")];J(t);if(o.axis!=="x"&&!a.overflowed[0]||o.axis==="y"&&a.overflowed[0]){l[0].add(r).css("top",0);K(t,"_resetY")}if(o.axis!=="y"&&!a.overflowed[1]||o.axis==="x"&&a.overflowed[1]){var s=dx=0;if(a.langDir==="rtl"){s=n.width()-r.outerWidth(false);dx=Math.abs(s/a.scrollRatio.x)}r.css("left",s);l[1].css("left",dx);K(t,"_resetX")}},O=function(){var t=e(this),a=t.data(i),o=a.opt;if(!a.bindEvents){W.call(this);if(o.contentTouchScroll){R.call(this)}L.call(this);if(o.mouseWheel.enable){function n(){r=setTimeout(function(){if(!e.event.special.mousewheel){n()}else{clearTimeout(r);A.call(t[0])}},100)}var r;n()}Y.call(this);j.call(this);if(o.advanced.autoScrollOnFocus){X.call(this)}if(o.scrollButtons.enable){F.call(this)}if(o.keyboard.enable){q.call(this)}a.bindEvents=true}},D=function(){var t=e(this),a=t.data(i),o=a.opt,n=i+"_"+a.idx,r=".mCSB_"+a.idx+"_scrollbar",l=e("#mCSB_"+a.idx+",#mCSB_"+a.idx+"_container,#mCSB_"+a.idx+"_container_wrapper,"+r+" ."+f[12]+",#mCSB_"+a.idx+"_dragger_vertical,#mCSB_"+a.idx+"_dragger_horizontal,"+r+">a"),s=e("#mCSB_"+a.idx+"_container");if(o.advanced.releaseDraggableSelectors){l.add(e(o.advanced.releaseDraggableSelectors))}if(o.advanced.extraDraggableSelectors){l.add(e(o.advanced.extraDraggableSelectors))}if(a.bindEvents){var c=H()?top.document:document;e(document).add(e(c)).unbind("."+n);l.each(function(){e(this).unbind("."+n)});clearTimeout(t[0]._focusTimeout);ie(t[0],"_focusTimeout");clearTimeout(a.sequential.step);ie(a.sequential,"step");clearTimeout(s[0].onCompleteTimeout);ie(s[0],"onCompleteTimeout");a.bindEvents=false}},I=function(t){var a=e(this),o=a.data(i),n=o.opt,r=e("#mCSB_"+o.idx+"_container_wrapper"),l=r.length?r:e("#mCSB_"+o.idx+"_container"),s=[e("#mCSB_"+o.idx+"_scrollbar_vertical"),e("#mCSB_"+o.idx+"_scrollbar_horizontal")],c=[s[0].find(".mCSB_dragger"),s[1].find(".mCSB_dragger")];if(n.axis!=="x"){if(o.overflowed[0]&&!t){s[0].add(c[0]).add(s[0].children("a")).css("display","block");l.removeClass(f[8]+" "+f[10])}else{if(n.alwaysShowScrollbar){if(n.alwaysShowScrollbar!==2){c[0].css("display","none")}l.removeClass(f[10])}else{s[0].css("display","none");l.addClass(f[10])}l.addClass(f[8])}}if(n.axis!=="y"){if(o.overflowed[1]&&!t){s[1].add(c[1]).add(s[1].children("a")).css("display","block");l.removeClass(f[9]+" "+f[11])}else{if(n.alwaysShowScrollbar){if(n.alwaysShowScrollbar!==2){c[1].css("display","none")}l.removeClass(f[11])}else{s[1].css("display","none");l.addClass(f[11])}l.addClass(f[9])}}if(!o.overflowed[0]&&!o.overflowed[1]){a.addClass(f[5])}else{a.removeClass(f[5])}},E=function(t){var i=t.type,a=t.target.ownerDocument!==document&&frameElement!==null?[e(frameElement).offset().top,e(frameElement).offset().left]:null,o=H()&&t.target.ownerDocument!==top.document&&frameElement!==null?[e(t.view.frameElement).offset().top,e(t.view.frameElement).offset().left]:[0,0];switch(i){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":return a?[t.originalEvent.pageY-a[0]+o[0],t.originalEvent.pageX-a[1]+o[1],false]:[t.originalEvent.pageY,t.originalEvent.pageX,false];break;case"touchstart":case"touchmove":case"touchend":var n=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0],r=t.originalEvent.touches.length||t.originalEvent.changedTouches.length;return t.target.ownerDocument!==document?[n.screenY,n.screenX,r>1]:[n.pageY,n.pageX,r>1];break;default:return a?[t.pageY-a[0]+o[0],t.pageX-a[1]+o[1],false]:[t.pageY,t.pageX,false]}},W=function(){var t=e(this),a=t.data(i),o=a.opt,n=i+"_"+a.idx,r=["mCSB_"+a.idx+"_dragger_vertical","mCSB_"+a.idx+"_dragger_horizontal"],l=e("#mCSB_"+a.idx+"_container"),d=e("#"+r[0]+",#"+r[1]),f,u,h,m=o.advanced.releaseDraggableSelectors?d.add(e(o.advanced.releaseDraggableSelectors)):d,p=H()?top.document:document,g=o.advanced.extraDraggableSelectors?e(p).add(e(o.advanced.extraDraggableSelectors)):e(p);d.bind("contextmenu."+n,function(e){e.preventDefault()}).bind("mousedown."+n+" touchstart."+n+" pointerdown."+n+" MSPointerDown."+n,function(i){i.stopImmediatePropagation();i.preventDefault();if(!ae(i)){return}c=true;if(s){document.onselectstart=function(){return false}}P.call(l,false);J(t);f=e(this);var a=f.offset(),n=E(i)[0]-a.top,r=E(i)[1]-a.left,d=f.height()+a.top,m=f.width()+a.left;if(n0&&r0){u=n;h=r}T(f,"active",o.autoExpandScrollbar)}).bind("touchmove."+n,function(e){e.stopImmediatePropagation();e.preventDefault();var t=f.offset(),i=E(e)[0]-t.top,a=E(e)[1]-t.left;v(u,h,i,a)});e(document).add(g).bind("mousemove."+n+" pointermove."+n+" MSPointerMove."+n,function(e){if(f){var t=f.offset(),i=E(e)[0]-t.top,a=E(e)[1]-t.left;if(u===i&&h===a){return}v(u,h,i,a)}}).add(m).bind("mouseup."+n+" touchend."+n+" pointerup."+n+" MSPointerUp."+n,function(e){if(f){T(f,"active",o.autoExpandScrollbar);f=null}c=false;if(s){document.onselectstart=null}P.call(l,true)});function v(e,i,n,s){l[0].idleTimer=o.scrollInertia<233?250:0;if(f.attr("id")===r[1]){var c="x",d=(f[0].offsetLeft-i+s)*a.scrollRatio.x}else{var c="y",d=(f[0].offsetTop-e+n)*a.scrollRatio.y}K(t,d.toString(),{dir:c,drag:true})}},R=function(){var t=e(this),a=t.data(i),o=a.opt,n=i+"_"+a.idx,r=e("#mCSB_"+a.idx),l=e("#mCSB_"+a.idx+"_container"),s=[e("#mCSB_"+a.idx+"_dragger_vertical"),e("#mCSB_"+a.idx+"_dragger_horizontal")],f,u,h,m,p,g=[],v=[],x,w,_,S,b,C,y=0,B,T=o.axis==="yx"?"none":"all",k=[],M,O,D=l.find("iframe"),I=["touchstart."+n+" pointerdown."+n+" MSPointerDown."+n,"touchmove."+n+" pointermove."+n+" MSPointerMove."+n,"touchend."+n+" pointerup."+n+" MSPointerUp."+n],W=document.body.style.touchAction!==undefined&&document.body.style.touchAction!=="";l.bind(I[0],function(e){R(e)}).bind(I[1],function(e){L(e)});r.bind(I[0],function(e){A(e)}).bind(I[2],function(e){z(e)});if(D.length){D.each(function(){e(this).bind("load",function(){if(H(this)){e(this.contentDocument||this.contentWindow.document).bind(I[0],function(e){R(e);A(e)}).bind(I[1],function(e){L(e)}).bind(I[2],function(e){z(e)})}})})}function R(e){if(!oe(e)||c||E(e)[2]){d=0;return}d=1;M=0;O=0;f=1;t.removeClass("mCS_touch_action");var i=l.offset();u=E(e)[0]-i.top;h=E(e)[1]-i.left;k=[E(e)[0],E(e)[1]]}function L(e){if(!oe(e)||c||E(e)[2]){return}if(!o.documentTouchScroll){e.preventDefault()}e.stopImmediatePropagation();if(O&&!M){return}if(f){w=ee();var i=r.offset(),n=E(e)[0]-i.top,d=E(e)[1]-i.left,m="mcsLinearOut";g.push(n);v.push(d);k[2]=Math.abs(E(e)[0]-k[0]);k[3]=Math.abs(E(e)[1]-k[1]);if(a.overflowed[0]){var p=s[0].parent().height()-s[0].height(),x=u-n>0&&n-u>-(p*a.scrollRatio.y)&&(k[3]*20&&d-h>-(_*a.scrollRatio.x)&&(k[2]*230){return}b=1e3/(_-x);var s="mcsEaseOut",d=b<2.5,u=d?[g[g.length-2],v[v.length-2]]:[0,0];S=d?[i-u[0],n-u[1]]:[i-m,n-p];var h=[Math.abs(S[0]),Math.abs(S[1])];b=d?[Math.abs(S[0]/4),Math.abs(S[1]/4)]:[b,b];var y=[Math.abs(l[0].offsetTop)-S[0]*P(h[0]/b[0],b[0]),Math.abs(l[0].offsetLeft)-S[1]*P(h[1]/b[1],b[1])];C=o.axis==="yx"?[y[0],y[1]]:o.axis==="x"?[null,y[1]]:[y[0],null];B=[h[0]*4+o.scrollInertia,h[1]*4+o.scrollInertia];var k=parseInt(o.contentTouchScroll)||0;C[0]=h[0]>k?C[0]:0;C[1]=h[1]>k?C[1]:0;if(a.overflowed[0]){U(C[0],B[0],s,"y",T,false)}if(a.overflowed[1]){U(C[1],B[1],s,"x",T,false)}}function P(e,t){var i=[t*1.5,t*2,t/1.5,t/2];if(e>90){return t>4?i[0]:i[3]}else if(e>60){return t>3?i[3]:i[2]}else if(e>30){return t>8?i[1]:t>6?i[0]:t>4?t:i[2]}else{return t>8?t:i[3]}}function U(e,i,a,o,n,r){if(!e){return}K(t,e.toString(),{dur:i,scrollEasing:a,dir:o,overwrite:n,drag:r})}},L=function(){var t=e(this),a=t.data(i),o=a.opt,n=a.sequential,r=i+"_"+a.idx,l=e("#mCSB_"+a.idx+"_container"),s=l.parent(),f;l.bind("mousedown."+r,function(e){if(d){return}if(!f){f=1;c=true}}).add(document).bind("mousemove."+r,function(e){if(!d&&f&&u()){var t=l.offset(),i=E(e)[0]-t.top+l[0].offsetTop,r=E(e)[1]-t.left+l[0].offsetLeft;if(i>0&&i0&&rs.height()){h("on",40)}}if(o.axis!=="y"&&a.overflowed[1]){if(r<0){h("on",37)}else if(r>s.width()){h("on",39)}}}}}).bind("mouseup."+r+" dragend."+r,function(e){if(d){return}if(f){f=0;h("off",null)}c=false});function u(){return window.getSelection?window.getSelection().toString():document.selection&&document.selection.type!="Control"?document.selection.createRange().text:0}function h(e,i,a){n.type=a&&f?"stepped":"stepless";n.scrollAmount=10;N(t,e,i,"mcsLinearOut",a?60:null)}},A=function(){if(!e(this).data(i)){return}var t=e(this),a=t.data(i),o=a.opt,n=i+"_"+a.idx,r=e("#mCSB_"+a.idx),l=[e("#mCSB_"+a.idx+"_dragger_vertical"),e("#mCSB_"+a.idx+"_dragger_horizontal")],c=e("#mCSB_"+a.idx+"_container").find("iframe");if(c.length){c.each(function(){e(this).bind("load",function(){if(H(this)){e(this.contentDocument||this.contentWindow.document).bind("mousewheel."+n,function(e,t){d(e,t)})}})})}r.bind("mousewheel."+n,function(e,t){d(e,t)});function d(i,n){e(i.target).closest(".mCustomScrollbar").trigger("mcswheel",n);J(t);if(!o.mouseWheel||!o.mouseWheel.enable){return}if(U(t,i.target)){return}var c=o.mouseWheel.deltaFactor!=="auto"?parseInt(o.mouseWheel.deltaFactor):s&&i.deltaFactor<100?100:i.deltaFactor||100,d=o.scrollInertia;if(o.axis==="yx"){if(i.deltaX!==0){o.mouseWheel.axis="x"}else if(i.deltaY!==0){o.mouseWheel.axis="y"}}if(o.axis==="x"||o.mouseWheel.axis==="x"){var f="x",u=[Math.ceil(c*a.scrollRatio.x),parseInt(o.mouseWheel.scrollAmount)],h=o.mouseWheel.scrollAmount!=="auto"?u[1]:u[0]>=r.width()?r.width()*.9:u[0],m=Math.abs(e("#mCSB_"+a.idx+"_container")[0].offsetLeft),p=l[1][0].offsetLeft,g=l[1].parent().width()-l[1].width(),v=i.deltaY||n}else{var f="y",u=[Math.ceil(c*a.scrollRatio.y),parseInt(o.mouseWheel.scrollAmount)],h=o.mouseWheel.scrollAmount!=="auto"?u[1]:u[0]>=r.height()?r.height()*.9:u[0],m=Math.abs(e("#mCSB_"+a.idx+"_container")[0].offsetTop),p=l[0][0].offsetTop,g=l[0].parent().height()-l[0].height(),v=i.deltaY||n}if(f==="y"&&!a.overflowed[0]||f==="x"&&!a.overflowed[1]){return}if(o.mouseWheel.invert||i.webkitDirectionInvertedFromDevice){v=-v}if(o.mouseWheel.normalizeDelta){v=v<0?-1:1}if(v>0&&p!==0||v<0&&p!==g||o.mouseWheel.preventDefault){i.stopImmediatePropagation();i.preventDefault()}if(i.deltaFactor<5&&!o.mouseWheel.normalizeDelta){h=i.deltaFactor;d=17}K(t,(m-v*h).toString(),{dir:f,dur:d})}},z=new Object,H=function(t){var i=false,a=false,o=null;if(t===undefined){a="#empty"}else if(e(t).attr("id")!==undefined){a=e(t).attr("id")}if(a!==false&&z[a]!==undefined){return z[a]}if(!t){try{var n=top.document;o=n.body.innerHTML}catch(e){}i=o!==null}else{try{var n=t.contentDocument||t.contentWindow.document;o=n.body.innerHTML}catch(e){}i=o!==null}if(a!==false){z[a]=i}return i},P=function(e){var t=this.find("iframe");if(!t.length){return}var i=!e?"none":"auto";t.css("pointer-events",i)},U=function(t,a){var o=a.nodeName.toLowerCase(),n=t.data(i).opt.mouseWheel.disableOver,r=["select","textarea"];return e.inArray(o,n)>-1&&!(e.inArray(o,r)>-1&&!e(a).is(":focus"))},Y=function(){var t=e(this),a=t.data(i),o=i+"_"+a.idx,n=e("#mCSB_"+a.idx+"_container"),r=n.parent(),l=e(".mCSB_"+a.idx+"_scrollbar ."+f[12]),s;l.bind("mousedown."+o+" touchstart."+o+" pointerdown."+o+" MSPointerDown."+o,function(t){c=true;if(!e(t.target).hasClass("mCSB_dragger")){s=1}}).bind("touchend."+o+" pointerup."+o+" MSPointerUp."+o,function(e){c=false}).bind("click."+o,function(i){if(!s){return}s=0;if(e(i.target).hasClass(f[12])||e(i.target).hasClass("mCSB_draggerRail")){J(t);var o=e(this),l=o.find(".mCSB_dragger");if(o.parent(".mCSB_scrollTools_horizontal").length>0){if(!a.overflowed[1]){return}var c="x",d=i.pageX>l.offset().left?-1:1,u=Math.abs(n[0].offsetLeft)-d*(r.width()*.9)}else{if(!a.overflowed[0]){return}var c="y",d=i.pageY>l.offset().top?-1:1,u=Math.abs(n[0].offsetTop)-d*(r.height()*.9)}K(t,u.toString(),{dir:c,scrollEasing:"mcsEaseInOut"})}})},X=function(){var t=e(this),a=t.data(i),o=a.opt,n=i+"_"+a.idx,r=e("#mCSB_"+a.idx+"_container"),l=r.parent();r.bind("focusin."+n,function(i){var a=e(document.activeElement),n=r.find(".mCustomScrollBox").length,s=0;if(!a.is(o.advanced.autoScrollOnFocus)){return}J(t);clearTimeout(t[0]._focusTimeout);t[0]._focusTimer=n?(s+17)*n:0;t[0]._focusTimeout=setTimeout(function(){var e=[re(a)[0],re(a)[1]],i=[r[0].offsetTop,r[0].offsetLeft],n=[i[0]+e[0]>=0&&i[0]+e[0]=0&&i[0]+e[1]a");s.bind("contextmenu."+r,function(e){e.preventDefault()}).bind("mousedown."+r+" touchstart."+r+" pointerdown."+r+" MSPointerDown."+r+" mouseup."+r+" touchend."+r+" pointerup."+r+" MSPointerUp."+r+" mouseout."+r+" pointerout."+r+" MSPointerOut."+r+" click."+r,function(i){i.preventDefault();if(!ae(i)){return}var r=e(this).attr("class");n.type=o.scrollButtons.scrollType;switch(i.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if(n.type==="stepped"){return}c=true;a.tweenRunning=false;l("on",r);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if(n.type==="stepped"){return}c=false;if(n.dir){l("off",r)}break;case"click":if(n.type!=="stepped"||a.tweenRunning){return}l("on",r);break}function l(e,i){n.scrollAmount=o.scrollButtons.scrollAmount;N(t,e,i)}})},q=function(){var t=e(this),a=t.data(i),o=a.opt,n=a.sequential,r=i+"_"+a.idx,l=e("#mCSB_"+a.idx),s=e("#mCSB_"+a.idx+"_container"),c=s.parent(),d="input,textarea,select,datalist,keygen,[contenteditable='true']",f=s.find("iframe"),u=["blur."+r+" keydown."+r+" keyup."+r];if(f.length){f.each(function(){e(this).bind("load",function(){if(H(this)){e(this.contentDocument||this.contentWindow.document).bind(u[0],function(e){h(e)})}})})}l.attr("tabindex","0").bind(u[0],function(e){h(e)});function h(i){switch(i.type){case"blur":if(a.tweenRunning&&n.dir){m("off",null)}break;case"keydown":case"keyup":var r=i.keyCode?i.keyCode:i.which,l="on";if(o.axis!=="x"&&(r===38||r===40)||o.axis!=="y"&&(r===37||r===39)){if((r===38||r===40)&&!a.overflowed[0]||(r===37||r===39)&&!a.overflowed[1]){return}if(i.type==="keyup"){l="off"}if(!e(document.activeElement).is(d)){i.preventDefault();i.stopImmediatePropagation();m(l,r)}}else if(r===33||r===34){if(a.overflowed[0]||a.overflowed[1]){i.preventDefault();i.stopImmediatePropagation()}if(i.type==="keyup"){J(t);var f=r===34?-1:1;if(o.axis==="x"||o.axis==="yx"&&a.overflowed[1]&&!a.overflowed[0]){var u="x",h=Math.abs(s[0].offsetLeft)-f*(c.width()*.9)}else{var u="y",h=Math.abs(s[0].offsetTop)-f*(c.height()*.9)}K(t,h.toString(),{dir:u,scrollEasing:"mcsEaseInOut"})}}else if(r===35||r===36){if(!e(document.activeElement).is(d)){if(a.overflowed[0]||a.overflowed[1]){i.preventDefault();i.stopImmediatePropagation()}if(i.type==="keyup"){if(o.axis==="x"||o.axis==="yx"&&a.overflowed[1]&&!a.overflowed[0]){var u="x",h=r===35?Math.abs(c.width()-s.outerWidth(false)):0}else{var u="y",h=r===35?Math.abs(c.height()-s.outerHeight(false)):0}K(t,h.toString(),{dir:u,scrollEasing:"mcsEaseInOut"})}}}break}function m(e,i){n.type=o.keyboard.scrollType;n.scrollAmount=o.keyboard.scrollAmount;if(n.type==="stepped"&&a.tweenRunning){return}N(t,e,i)}}},N=function(t,a,o,n,r){var l=t.data(i),s=l.opt,c=l.sequential,d=e("#mCSB_"+l.idx+"_container"),u=c.type==="stepped"?true:false,h=s.scrollInertia<26?26:s.scrollInertia,m=s.scrollInertia<1?17:s.scrollInertia;switch(a){case"on":c.dir=[o===f[16]||o===f[15]||o===39||o===37?"x":"y",o===f[13]||o===f[15]||o===38||o===37?-1:1];J(t);if(ne(o)&&c.type==="stepped"){return}p(u);break;case"off":g();if(u||l.tweenRunning&&c.dir){p(true)}break}function p(e){if(s.snapAmount){c.scrollAmount=!(s.snapAmount instanceof Array)?s.snapAmount:c.dir[0]==="x"?s.snapAmount[1]:s.snapAmount[0]}var i=c.type!=="stepped",a=r?r:!e?1e3/60:i?h/1.5:m,o=!e?2.5:i?7.5:40,f=[Math.abs(d[0].offsetTop),Math.abs(d[0].offsetLeft)],u=[l.scrollRatio.y>10?10:l.scrollRatio.y,l.scrollRatio.x>10?10:l.scrollRatio.x],g=c.dir[0]==="x"?f[1]+c.dir[1]*(u[1]*o):f[0]+c.dir[1]*(u[0]*o),v=c.dir[0]==="x"?f[1]+c.dir[1]*parseInt(c.scrollAmount):f[0]+c.dir[1]*parseInt(c.scrollAmount),x=c.scrollAmount!=="auto"?v:g,w=n?n:!e?"mcsLinear":i?"mcsLinearOut":"mcsEaseInOut",_=!e?false:true;if(e&&a<17){x=c.dir[0]==="x"?f[1]:f[0]}K(t,x.toString(),{dir:c.dir[0],scrollEasing:w,dur:a,onComplete:_});if(e){c.dir=false;return}clearTimeout(c.step);c.step=setTimeout(function(){p()},a)}function g(){clearTimeout(c.step);ie(c,"step");J(t)}},V=function(t){var a=e(this).data(i).opt,o=[];if(typeof t==="function"){t=t()}if(!(t instanceof Array)){o[0]=t.y?t.y:t.x||a.axis==="x"?null:t;o[1]=t.x?t.x:t.y||a.axis==="y"?null:t}else{o=t.length>1?[t[0],t[1]]:a.axis==="x"?[null,t[0]]:[t[0],null]}if(typeof o[0]==="function"){o[0]=o[0]()}if(typeof o[1]==="function"){o[1]=o[1]()}return o},Q=function(t,a){if(t==null||typeof t=="undefined"){return}var o=e(this),n=o.data(i),r=n.opt,l=e("#mCSB_"+n.idx+"_container"),s=l.parent(),c=typeof t;if(!a){a=r.axis==="x"?"x":"y"}var d=a==="x"?l.outerWidth(false)-s.width():l.outerHeight(false)-s.height(),f=a==="x"?l[0].offsetLeft:l[0].offsetTop,h=a==="x"?"left":"top";switch(c){case"function":return t();break;case"object":var m=t.jquery?t:e(t);if(!m.length){return}return a==="x"?re(m)[1]:re(m)[0];break;case"string":case"number":if(ne(t)){return Math.abs(t)}else if(t.indexOf("%")!==-1){return Math.abs(d*parseInt(t)/100)}else if(t.indexOf("-=")!==-1){return Math.abs(f-parseInt(t.split("-=")[1]))}else if(t.indexOf("+=")!==-1){var p=f+parseInt(t.split("+=")[1]);return p>=0?0:Math.abs(p)}else if(t.indexOf("px")!==-1&&ne(t.split("px")[0])){return Math.abs(t.split("px")[0])}else{if(t==="top"||t==="left"){return 0}else if(t==="bottom"){return Math.abs(s.height()-l.outerHeight(false))}else if(t==="right"){return Math.abs(s.width()-l.outerWidth(false))}else if(t==="first"||t==="last"){var m=l.find(":"+t);return a==="x"?re(m)[1]:re(m)[0]}else{if(e(t).length){return a==="x"?re(e(t))[1]:re(e(t))[0]}else{l.css(h,t);u.update.call(null,o[0]);return}}}break}},Z=function(t){var a=e(this),o=a.data(i),n=o.opt,r=e("#mCSB_"+o.idx+"_container");if(t){clearTimeout(r[0].autoUpdate);ie(r[0],"autoUpdate");return}l();function l(){clearTimeout(r[0].autoUpdate);if(a.parents("html").length===0){a=null;return}r[0].autoUpdate=setTimeout(function(){if(n.advanced.updateOnSelectorChange){o.poll.change.n=c();if(o.poll.change.n!==o.poll.change.o){o.poll.change.o=o.poll.change.n;d(3);return}}if(n.advanced.updateOnContentResize){o.poll.size.n=a[0].scrollHeight+a[0].scrollWidth+r[0].offsetHeight+a[0].offsetHeight+a[0].offsetWidth;if(o.poll.size.n!==o.poll.size.o){o.poll.size.o=o.poll.size.n;d(1);return}}if(n.advanced.updateOnImageLoad){if(!(n.advanced.updateOnImageLoad==="auto"&&n.axis==="y")){o.poll.img.n=r.find("img").length;if(o.poll.img.n!==o.poll.img.o){o.poll.img.o=o.poll.img.n;r.find("img").each(function(){s(this)});return}}}if(n.advanced.updateOnSelectorChange||n.advanced.updateOnContentResize||n.advanced.updateOnImageLoad){l()}},n.advanced.autoUpdateTimeout)}function s(t){if(e(t).hasClass(f[2])){d();return}var i=new Image;function a(e,t){return function(){return t.apply(e,arguments)}}function o(){this.onload=null;e(t).addClass(f[2]);d(2)}i.onload=a(i,o);i.src=t.src}function c(){if(n.advanced.updateOnSelectorChange===true){n.advanced.updateOnSelectorChange="*"}var e=0,t=r.find(n.advanced.updateOnSelectorChange);if(n.advanced.updateOnSelectorChange&&t.length>0){t.each(function(){e+=this.offsetHeight+this.offsetWidth})}return e}function d(e){clearTimeout(r[0].autoUpdate);u.update.call(null,a[0],e)}},G=function(e,t,i){return Math.round(e/t)*t-i},J=function(t){var a=t.data(i),o=e("#mCSB_"+a.idx+"_container,#mCSB_"+a.idx+"_container_wrapper,#mCSB_"+a.idx+"_dragger_vertical,#mCSB_"+a.idx+"_dragger_horizontal");o.each(function(){te.call(this)})},K=function(t,a,o){var n=t.data(i),r=n.opt,l={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:false,dur:r.scrollInertia,overwrite:"all",callbacks:true,onStart:true,onUpdate:true,onComplete:true},o=e.extend(l,o),s=[o.dur,o.drag?0:o.dur],c=e("#mCSB_"+n.idx),d=e("#mCSB_"+n.idx+"_container"),f=d.parent(),u=r.callbacks.onTotalScrollOffset?V.call(t,r.callbacks.onTotalScrollOffset):[0,0],h=r.callbacks.onTotalScrollBackOffset?V.call(t,r.callbacks.onTotalScrollBackOffset):[0,0];n.trigger=o.trigger;if(f.scrollTop()!==0||f.scrollLeft()!==0){e(".mCSB_"+n.idx+"_scrollbar").css("visibility","visible");f.scrollTop(0).scrollLeft(0)}if(a==="_resetY"&&!n.contentReset.y){if(y("onOverflowYNone")){r.callbacks.onOverflowYNone.call(t[0])}n.contentReset.y=1}if(a==="_resetX"&&!n.contentReset.x){if(y("onOverflowXNone")){r.callbacks.onOverflowXNone.call(t[0])}n.contentReset.x=1}if(a==="_resetY"||a==="_resetX"){return}if((n.contentReset.y||!t[0].mcs)&&n.overflowed[0]){if(y("onOverflowY")){r.callbacks.onOverflowY.call(t[0])}n.contentReset.x=null}if((n.contentReset.x||!t[0].mcs)&&n.overflowed[1]){if(y("onOverflowX")){r.callbacks.onOverflowX.call(t[0])}n.contentReset.x=null}if(r.snapAmount){var m=!(r.snapAmount instanceof Array)?r.snapAmount:o.dir==="x"?r.snapAmount[1]:r.snapAmount[0];a=G(a,m,r.snapOffset)}switch(o.dir){case"x":var p=e("#mCSB_"+n.idx+"_dragger_horizontal"),g="left",v=d[0].offsetLeft,x=[c.width()-d.outerWidth(false),p.parent().width()-p.width()],w=[a,a===0?0:a/n.scrollRatio.x],_=u[1],S=h[1],b=_>0?_/n.scrollRatio.x:0,C=S>0?S/n.scrollRatio.x:0;break;case"y":var p=e("#mCSB_"+n.idx+"_dragger_vertical"),g="top",v=d[0].offsetTop,x=[c.height()-d.outerHeight(false),p.parent().height()-p.height()],w=[a,a===0?0:a/n.scrollRatio.y],_=u[0],S=h[0],b=_>0?_/n.scrollRatio.y:0,C=S>0?S/n.scrollRatio.y:0;break}if(w[1]<0||w[0]===0&&w[1]===0){w=[0,0]}else if(w[1]>=x[1]){w=[x[0],x[1]]}else{w[0]=-w[0]}if(!t[0].mcs){k();if(y("onInit")){r.callbacks.onInit.call(t[0])}}clearTimeout(d[0].onCompleteTimeout);$(p[0],g,Math.round(w[1]),s[1],o.scrollEasing);if(!n.tweenRunning&&(v===0&&w[0]>=0||v===x[0]&&w[0]<=x[0])){return}$(d[0],g,Math.round(w[0]),s[0],o.scrollEasing,o.overwrite,{onStart:function(){if(o.callbacks&&o.onStart&&!n.tweenRunning){if(y("onScrollStart")){k();r.callbacks.onScrollStart.call(t[0])}n.tweenRunning=true;T(p);n.cbOffsets=B()}},onUpdate:function(){if(o.callbacks&&o.onUpdate){if(y("whileScrolling")){k();r.callbacks.whileScrolling.apply(t[0],[{options:o,delta:v-w[0]}])}}},onComplete:function(){if(o.callbacks&&o.onComplete){if(r.axis==="yx"){clearTimeout(d[0].onCompleteTimeout)}var e=d[0].idleTimer||0;d[0].onCompleteTimeout=setTimeout(function(){if(y("onScroll")){k();r.callbacks.onScroll.call(t[0])}if(y("onTotalScroll")&&w[1]>=x[1]-b&&n.cbOffsets[0]){k();r.callbacks.onTotalScroll.call(t[0])}if(y("onTotalScrollBack")&&w[1]<=C&&n.cbOffsets[1]){k();r.callbacks.onTotalScrollBack.call(t[0])}n.tweenRunning=false;d[0].idleTimer=0;T(p,"hide")},e)}}});function y(e){return n&&r.callbacks[e]&&typeof r.callbacks[e]==="function"}function B(){return[r.callbacks.alwaysTriggerOffsets||v>=x[0]+_,r.callbacks.alwaysTriggerOffsets||v<=-S]}function k(){var e=[d[0].offsetTop,d[0].offsetLeft],i=[p[0].offsetTop,p[0].offsetLeft],a=[d.outerHeight(false),d.outerWidth(false)],n=[c.height(),c.width()];t[0].mcs={content:d,top:e[0],left:e[1],draggerTop:i[0],draggerLeft:i[1],topPct:Math.round(100*Math.abs(e[0])/(Math.abs(a[0])-n[0])),leftPct:Math.round(100*Math.abs(e[1])/(Math.abs(a[1])-n[1])),direction:o.dir}}},$=function(e,t,i,a,o,n,r){if(!e._mTween){e._mTween={top:{},left:{}}}var r=r||{},l=r.onStart||function(){},s=r.onUpdate||function(){},c=r.onComplete||function(){},d=ee(),f,u=0,h=e.offsetTop,m=e.style,p,g=e._mTween[t];if(t==="left"){h=e.offsetLeft}var v=i-h;g.stop=0;if(n!=="none"){S()}_();function x(){if(g.stop){return}if(!u){l.call()}u=ee()-d;w();if(u>=g.time){g.time=u>g.time?u+f-(u-g.time):u+f-1;if(g.time0){g.currVal=b(g.time,h,v,a,o);m[t]=Math.round(g.currVal)+"px"}else{m[t]=i+"px"}s.call()}function _(){f=1e3/60;g.time=u+f;p=!window.requestAnimationFrame?function(e){w();return setTimeout(e,.01)}:window.requestAnimationFrame;g.id=p(x)}function S(){if(g.id==null){return}if(!window.requestAnimationFrame){clearTimeout(g.id)}else{window.cancelAnimationFrame(g.id)}g.id=null}function b(e,t,i,a,o){switch(o){case"linear":case"mcsLinear":return i*e/a+t;break;case"mcsLinearOut":e/=a;e--;return i*Math.sqrt(1-e*e)+t;break;case"easeInOutSmooth":e/=a/2;if(e<1)return i/2*e*e+t;e--;return-i/2*(e*(e-2)-1)+t;break;case"easeInOutStrong":e/=a/2;if(e<1)return i/2*Math.pow(2,10*(e-1))+t;e--;return i/2*(-Math.pow(2,-10*e)+2)+t;break;case"easeInOut":case"mcsEaseInOut":e/=a/2;if(e<1)return i/2*e*e*e+t;e-=2;return i/2*(e*e*e+2)+t;break;case"easeOutSmooth":e/=a;e--;return-i*(e*e*e*e-1)+t;break;case"easeOutStrong":return i*(-Math.pow(2,-10*e/a)+1)+t;break;case"easeOut":case"mcsEaseOut":default:var n=(e/=a)*e,r=n*e;return t+i*(.499999999999997*r*n+-2.5*n*n+5.5*r+-6.5*n+4*e)}}},ee=function(){if(window.performance&&window.performance.now){return window.performance.now()}else{if(window.performance&&window.performance.webkitNow){return window.performance.webkitNow()}else{if(Date.now){return Date.now()}else{return(new Date).getTime()}}}},te=function(){var e=this;if(!e._mTween){e._mTween={top:{},left:{}}}var t=["top","left"];for(var i=0;i=0&&n[0]+re(i)[0]=0&&n[1]+re(i)[1]=0&&s[1]-l[1]*c[1][0]<0&&s[1]+n[1]-l[1]*c[1][1]>=0},mcsOverflow:e.expr[":"].mcsOverflow||function(t){var a=e(t).data(i);if(!a){return}return a.overflowed[0]||a.overflowed[1]}})})})}); +!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e:e(jQuery)}(function(e){function t(t){var r=t||window.event,l=s.call(arguments,1),c=0,f=0,u=0,h=0,m=0,p=0;if(t=e.event.fix(r),t.type="mousewheel","detail"in r&&(u=-1*r.detail),"wheelDelta"in r&&(u=r.wheelDelta),"wheelDeltaY"in r&&(u=r.wheelDeltaY),"wheelDeltaX"in r&&(f=-1*r.wheelDeltaX),"axis"in r&&r.axis===r.HORIZONTAL_AXIS&&(f=-1*u,u=0),c=0===u?f:u,"deltaY"in r&&(u=-1*r.deltaY,c=u),"deltaX"in r&&(f=r.deltaX,0===u&&(c=-1*f)),0!==u||0!==f){if(1===r.deltaMode){var g=e.data(this,"mousewheel-line-height");c*=g,u*=g,f*=g}else if(2===r.deltaMode){var v=e.data(this,"mousewheel-page-height");c*=v,u*=v,f*=v}if(h=Math.max(Math.abs(u),Math.abs(f)),(!n||n>h)&&(n=h,a(r,h)&&(n/=40)),a(r,h)&&(c/=40,f/=40,u/=40),c=Math[c>=1?"floor":"ceil"](c/n),f=Math[f>=1?"floor":"ceil"](f/n),u=Math[u>=1?"floor":"ceil"](u/n),d.settings.normalizeOffset&&this.getBoundingClientRect){var x=this.getBoundingClientRect();m=t.clientX-x.left,p=t.clientY-x.top}return t.deltaX=f,t.deltaY=u,t.deltaFactor=n,t.offsetX=m,t.offsetY=p,t.deltaMode=0,l.unshift(t,c,f,u),o&&clearTimeout(o),o=setTimeout(i,200),(e.event.dispatch||e.event.handle).apply(this,l)}}function i(){n=null}function a(e,t){return d.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120===0}var o,n,r=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],l="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],s=Array.prototype.slice;if(e.event.fixHooks)for(var c=r.length;c;)e.event.fixHooks[r[--c]]=e.event.mouseHooks;var d=e.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var i=l.length;i;)this.addEventListener(l[--i],t,!1);else this.onmousewheel=t;e.data(this,"mousewheel-line-height",d.getLineHeight(this)),e.data(this,"mousewheel-page-height",d.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var i=l.length;i;)this.removeEventListener(l[--i],t,!1);else this.onmousewheel=null;e.removeData(this,"mousewheel-line-height"),e.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var i=e(t),a=i["offsetParent"in e.fn?"offsetParent":"parent"]();return a.length||(a=e("body")),parseInt(a.css("fontSize"),10)||parseInt(i.css("fontSize"),10)||16},getPageHeight:function(t){return e(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})});(function(e){if(typeof define==="function"&&define.amd){define(["jquery"],e)}else if(typeof module!=="undefined"&&module.exports){module.exports=e}else{e(jQuery,window,document)}})(function(e){(function(t){var i=typeof define==="function"&&define.amd,a=typeof module!=="undefined"&&module.exports,o="https:"==document.location.protocol?"https:":"http:",n="cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js";if(!i){if(a){require("jquery-mousewheel")(e)}else{e.event.special.mousewheel||e("head").append(decodeURI("%3Cscript src="+o+"//"+n+"%3E%3C/script%3E"))}}t()})(function(){var t="mCustomScrollbar",i="mCS",a=".mCustomScrollbar",o={setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:950,autoDraggerLength:true,alwaysShowScrollbar:0,snapOffset:0,mouseWheel:{enable:true,scrollAmount:"auto",axis:"y",deltaFactor:"auto",disableOver:["select","option","keygen","datalist","textarea"]},scrollButtons:{scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:true,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,documentTouchScroll:true,advanced:{autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:true,updateOnImageLoad:"auto",autoUpdateTimeout:60},theme:"light",callbacks:{onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:true}},n=0,r={},s=window.attachEvent&&!window.addEventListener?1:0,c=false,d,f=["mCSB_dragger_onDrag","mCSB_scrollTools_onDrag","mCS_img_loaded","mCS_disabled","mCS_destroyed","mCS_no_scrollbar","mCS-autoHide","mCS-dir-rtl","mCS_no_scrollbar_y","mCS_no_scrollbar_x","mCS_y_hidden","mCS_x_hidden","mCSB_draggerContainer","mCSB_buttonUp","mCSB_buttonDown","mCSB_buttonLeft","mCSB_buttonRight"],u={init:function(t){var t=e.extend(true,{},o,t),l=m.call(this);if(t.live){var s=t.liveSelector||this.selector||a,c=e(s);if(t.live==="off"){g(s);return}r[s]=setTimeout(function(){c.mCustomScrollbar(t);if(t.live==="once"&&c.length){g(s)}},500)}else{g(s)}t.setWidth=t.set_width?t.set_width:t.setWidth;t.setHeight=t.set_height?t.set_height:t.setHeight;t.axis=t.horizontalScroll?"x":v(t.axis);t.scrollInertia=t.scrollInertia>0&&t.scrollInertia<17?17:t.scrollInertia;if(typeof t.mouseWheel!=="object"&&t.mouseWheel==true){t.mouseWheel={enable:true,scrollAmount:"auto",axis:"y",preventDefault:false,deltaFactor:"auto",normalizeDelta:false,invert:false}}t.mouseWheel.scrollAmount=!t.mouseWheelPixels?t.mouseWheel.scrollAmount:t.mouseWheelPixels;t.mouseWheel.normalizeDelta=!t.advanced.normalizeMouseWheelDelta?t.mouseWheel.normalizeDelta:t.advanced.normalizeMouseWheelDelta;t.scrollButtons.scrollType=x(t.scrollButtons.scrollType);p(t);return e(l).each(function(){var a=e(this);if(!a.data(i)){a.data(i,{idx:++n,opt:t,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:false,tweenRunning:false,sequential:{},langDir:a.css("direction"),cbOffsets:null,trigger:null,poll:{size:{o:0,n:0},img:{o:0,n:0},change:{o:0,n:0}}});var o=a.data(i),r=o.opt,l=a.data("mcs-axis"),s=a.data("mcs-scrollbar-position"),c=a.data("mcs-theme");if(l){r.axis=l}if(s){r.scrollbarPosition=s}if(c){r.theme=c;p(r)}_.call(this);if(o&&r.callbacks.onCreate&&typeof r.callbacks.onCreate==="function"){r.callbacks.onCreate.call(this)}e("#mCSB_"+o.idx+"_container img:not(."+f[2]+")").addClass(f[2]);u.update.call(null,a)}})},update:function(t,a){var o=t||m.call(this);return e(o).each(function(){var t=e(this);if(t.data(i)){var o=t.data(i),n=o.opt,r=e("#mCSB_"+o.idx+"_container"),l=e("#mCSB_"+o.idx),s=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")];if(!r.length){return}if(o.tweenRunning){J(t)}if(a&&o&&n.callbacks.onBeforeUpdate&&typeof n.callbacks.onBeforeUpdate==="function"){n.callbacks.onBeforeUpdate.call(this)}if(t.hasClass(f[3])){t.removeClass(f[3])}if(t.hasClass(f[4])){t.removeClass(f[4])}l.css("max-height","none");if(l.height()!==t.height()){l.css("max-height",t.height())}b.call(this);if(n.axis!=="y"&&!n.advanced.autoExpandHorizontalScroll){r.css("width",S(r))}o.overflowed=k.call(this);I.call(this);if(n.autoDraggerLength){y.call(this)}B.call(this);O.call(this);var c=[Math.abs(r[0].offsetTop),Math.abs(r[0].offsetLeft)];if(n.axis!=="x"){if(!o.overflowed[0]){M.call(this);if(n.axis==="y"){D.call(this)}else if(n.axis==="yx"&&o.overflowed[1]){K(t,c[1].toString(),{dir:"x",dur:0,overwrite:"none"})}}else if(s[0].height()>s[0].parent().height()){M.call(this)}else{K(t,c[0].toString(),{dir:"y",dur:0,overwrite:"none"});o.contentReset.y=null}}if(n.axis!=="y"){if(!o.overflowed[1]){M.call(this);if(n.axis==="x"){D.call(this)}else if(n.axis==="yx"&&o.overflowed[0]){K(t,c[0].toString(),{dir:"y",dur:0,overwrite:"none"})}}else if(s[1].width()>s[1].parent().width()){M.call(this)}else{K(t,c[1].toString(),{dir:"x",dur:0,overwrite:"none"});o.contentReset.x=null}}if(a&&o){if(a===2&&n.callbacks.onImageLoad&&typeof n.callbacks.onImageLoad==="function"){n.callbacks.onImageLoad.call(this)}else if(a===3&&n.callbacks.onSelectorChange&&typeof n.callbacks.onSelectorChange==="function"){n.callbacks.onSelectorChange.call(this)}else if(n.callbacks.onUpdate&&typeof n.callbacks.onUpdate==="function"){n.callbacks.onUpdate.call(this)}}Z.call(this)}})},scrollTo:function(t,a){if(typeof t=="undefined"||t==null){return}var o=m.call(this);return e(o).each(function(){var o=e(this);if(o.data(i)){var n=o.data(i),r=n.opt,l={trigger:"external",scrollInertia:r.scrollInertia,scrollOffset:0,scrollOffsetEdge:true,scrollEasing:"mcsEaseInOut",moveDragger:false,timeout:60,callbacks:true,onStart:true,onUpdate:true,onComplete:true},s=e.extend(true,{},l,a),c=V.call(this,t),d=s.scrollInertia>0&&s.scrollInertia<17?17:s.scrollInertia;c[0]=Q.call(this,c[0],"y");c[1]=Q.call(this,c[1],"x");if(s.moveDragger){c[0]*=n.scrollRatio.y;c[1]*=n.scrollRatio.x}s.dur=le()?0:d;setTimeout(function(){if(c[0]!==null&&typeof c[0]!=="undefined"&&r.axis!=="x"&&n.overflowed[0]){s.dir="y";s.overwrite="all";var i=c[0];if(s.scrollOffset!==0&&typeof s.scrollOffset=="object"){var a=s.scrollOffset[0],l=parseInt(a.height()),d=s.scrollOffset[1],f=s.scrollOffset[2],u=parseInt(l/d),h=parseInt(l/f);i=i-u;var m=t.offset().top-a.offset().top;function p(t,i){var a=e(t),o=i,n=o.scrollTop()+50,r=n+o.height(),l=a.offset().top,s=l+a.height();return s<=r&&l>=n}if(p(t,a)&&l-m>h){s.scrollOffsetEdge=false}}s.scrollOffsetEdge&&K(o,i.toString(),s)}if(c[1]!==null&&typeof c[1]!=="undefined"&&r.axis!=="y"&&n.overflowed[1]){s.dir="x";s.overwrite="none";K(o,c[1].toString(),s)}},s.timeout)}})},stop:function(){var t=m.call(this);return e(t).each(function(){var t=e(this);if(t.data(i)){J(t)}})},disable:function(t){var a=m.call(this);return e(a).each(function(){var a=e(this);if(a.data(i)){var o=a.data(i);Z.call(this,"remove");D.call(this);if(t){M.call(this)}I.call(this,true);a.addClass(f[3])}})},destroy:function(){var a=m.call(this);return e(a).each(function(){var o=e(this);if(o.data(i)){var n=o.data(i),r=n.opt,l=e("#mCSB_"+n.idx),s=e("#mCSB_"+n.idx+"_container"),c=e(".mCSB_"+n.idx+"_scrollbar");if(r.live){g(r.liveSelector||e(a).selector)}Z.call(this,"remove");D.call(this);M.call(this);o.removeData(i);ie(this,"mcs");c.remove();s.find("img."+f[2]).removeClass(f[2]);l.replaceWith(s.contents());o.removeClass(t+" _"+i+"_"+n.idx+" "+f[6]+" "+f[7]+" "+f[5]+" "+f[3]).addClass(f[4])}})}},m=function(){return typeof e(this)!=="object"||e(this).length<1?a:this},p=function(t){var i=["rounded","rounded-dark","rounded-dots","rounded-dots-dark"],a=["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"],o=["minimal","minimal-dark"],n=["minimal","minimal-dark"],r=["minimal","minimal-dark"];t.autoDraggerLength=e.inArray(t.theme,i)>-1?false:t.autoDraggerLength;t.autoExpandScrollbar=e.inArray(t.theme,a)>-1?false:t.autoExpandScrollbar;t.scrollButtons.enable=e.inArray(t.theme,o)>-1?false:t.scrollButtons.enable;t.autoHideScrollbar=e.inArray(t.theme,n)>-1?true:t.autoHideScrollbar;t.scrollbarPosition=e.inArray(t.theme,r)>-1?"outside":t.scrollbarPosition},g=function(e){if(r[e]){clearTimeout(r[e]);ie(r,e)}},v=function(e){return e==="yx"||e==="xy"||e==="auto"?"yx":e==="x"||e==="horizontal"?"x":"y"},x=function(e){return e==="stepped"||e==="pixels"||e==="step"||e==="click"?"stepped":"stepless"},_=function(){var a=e(this),o=a.data(i),n=o.opt,r=n.autoExpandScrollbar?" "+f[1]+"_expand":"",l=["
    ","
    "],s=n.axis==="yx"?"mCSB_vertical_horizontal":n.axis==="x"?"mCSB_horizontal":"mCSB_vertical",c=n.axis==="yx"?l[0]+l[1]:n.axis==="x"?l[1]:l[0],d=n.axis==="yx"?"
    ":"",u=n.autoHideScrollbar?" "+f[6]:"",h=n.axis!=="x"&&o.langDir==="rtl"?" "+f[7]:"";if(n.setWidth){a.css("width",n.setWidth)}if(n.setHeight){a.css("height",n.setHeight)}n.setLeft=n.axis!=="y"&&o.langDir==="rtl"?"989999px":n.setLeft;a.addClass(t+" _"+i+"_"+o.idx+u+h).wrapInner("
    ");var m=e("#mCSB_"+o.idx),p=e("#mCSB_"+o.idx+"_container");if(n.axis!=="y"&&!n.advanced.autoExpandHorizontalScroll){p.css("width",S(p))}if(n.scrollbarPosition==="outside"){if(a.css("position")==="static"){a.css("position","relative")}a.css("overflow","visible");m.addClass("mCSB_outside").after(c)}else{m.addClass("mCSB_inside").append(c);p.wrap(d)}C.call(this);var g=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")];g[0].css("min-height",g[0].height());g[1].css("min-width",g[1].width())},S=function(t){var i=[t[0].scrollWidth,Math.max.apply(Math,t.children().map(function(){return e(this).outerWidth(true)}).get())],a=t.parent().width();return i[0]>a?i[0]:i[1]>a?i[1]:"100%"},b=function(){var t=e(this),a=t.data(i),o=a.opt,n=e("#mCSB_"+a.idx+"_container");if(o.advanced.autoExpandHorizontalScroll&&o.axis!=="y"){n.css({width:"auto","min-width":0,"overflow-x":"scroll"});var r=Math.ceil(n[0].scrollWidth);if(o.advanced.autoExpandHorizontalScroll===3||o.advanced.autoExpandHorizontalScroll!==2&&r>n.parent().width()){n.css({width:r,"min-width":"100%","overflow-x":"inherit"})}else{n.css({"overflow-x":"inherit",position:"absolute"}).wrap("
    ").css({width:Math.ceil(n[0].getBoundingClientRect().right+.4)-Math.floor(n[0].getBoundingClientRect().left),"min-width":"100%",position:"relative"}).unwrap()}}},C=function(){var t=e(this),a=t.data(i),o=a.opt,n=e(".mCSB_"+a.idx+"_scrollbar:first"),r=!ne(o.scrollButtons.tabindex)?"":"tabindex='"+o.scrollButtons.tabindex+"'",l=["","","",""],s=[o.axis==="x"?l[2]:l[0],o.axis==="x"?l[3]:l[1],l[2],l[3]];if(o.scrollButtons.enable){n.prepend(s[0]).append(s[1]).next(".mCSB_scrollTools").prepend(s[2]).append(s[3])}},y=function(){var t=e(this),a=t.data(i),o=e("#mCSB_"+a.idx),n=e("#mCSB_"+a.idx+"_container"),r=[e("#mCSB_"+a.idx+"_dragger_vertical"),e("#mCSB_"+a.idx+"_dragger_horizontal")],c=o.height()/n.outerHeight(false),d=o.width()/n.outerWidth(false);ratio=[Math.min(c,1),Math.min(d,1)],l=[parseInt(r[0].css("min-height")),Math.round(ratio[0]*r[0].parent().height()),parseInt(r[1].css("min-width")),Math.round(ratio[1]*r[1].parent().width())],h=s&&l[1]Math.round(r)){r=s}if(Math.round(c)>Math.round(l)){l=c}return[r>o.height(),l>o.width()]},M=function(){var t=e(this),a=t.data(i),o=a.opt,n=e("#mCSB_"+a.idx),r=e("#mCSB_"+a.idx+"_container"),l=[e("#mCSB_"+a.idx+"_dragger_vertical"),e("#mCSB_"+a.idx+"_dragger_horizontal")];J(t);if(o.axis!=="x"&&!a.overflowed[0]||o.axis==="y"&&a.overflowed[0]){l[0].add(r).css("top",0);K(t,"_resetY")}if(o.axis!=="y"&&!a.overflowed[1]||o.axis==="x"&&a.overflowed[1]){var s=dx=0;if(a.langDir==="rtl"){s=n.width()-r.outerWidth(false);dx=Math.abs(s/a.scrollRatio.x)}r.css("left",s);l[1].css("left",dx);K(t,"_resetX")}},O=function(){var t=e(this),a=t.data(i),o=a.opt;if(!a.bindEvents){W.call(this);if(o.contentTouchScroll){R.call(this)}L.call(this);if(o.mouseWheel.enable){function n(){r=setTimeout(function(){if(!e.event.special.mousewheel){n()}else{clearTimeout(r);A.call(t[0])}},100)}var r;n()}Y.call(this);j.call(this);if(o.advanced.autoScrollOnFocus){X.call(this)}if(o.scrollButtons.enable){F.call(this)}if(o.keyboard.enable){q.call(this)}a.bindEvents=true}},D=function(){var t=e(this),a=t.data(i),o=a.opt,n=i+"_"+a.idx,r=".mCSB_"+a.idx+"_scrollbar",l=e("#mCSB_"+a.idx+",#mCSB_"+a.idx+"_container,#mCSB_"+a.idx+"_container_wrapper,"+r+" ."+f[12]+",#mCSB_"+a.idx+"_dragger_vertical,#mCSB_"+a.idx+"_dragger_horizontal,"+r+">a"),s=e("#mCSB_"+a.idx+"_container");if(o.advanced.releaseDraggableSelectors){l.add(e(o.advanced.releaseDraggableSelectors))}if(o.advanced.extraDraggableSelectors){l.add(e(o.advanced.extraDraggableSelectors))}if(a.bindEvents){var c=H()?top.document:document;e(document).add(e(c)).unbind("."+n);l.each(function(){e(this).unbind("."+n)});clearTimeout(t[0]._focusTimeout);ie(t[0],"_focusTimeout");clearTimeout(a.sequential.step);ie(a.sequential,"step");clearTimeout(s[0].onCompleteTimeout);ie(s[0],"onCompleteTimeout");a.bindEvents=false}},I=function(t){var a=e(this),o=a.data(i),n=o.opt,r=e("#mCSB_"+o.idx+"_container_wrapper"),l=r.length?r:e("#mCSB_"+o.idx+"_container"),s=[e("#mCSB_"+o.idx+"_scrollbar_vertical"),e("#mCSB_"+o.idx+"_scrollbar_horizontal")],c=[s[0].find(".mCSB_dragger"),s[1].find(".mCSB_dragger")];if(n.axis!=="x"){if(o.overflowed[0]&&!t){s[0].add(c[0]).add(s[0].children("a")).css("display","block");l.removeClass(f[8]+" "+f[10])}else{if(n.alwaysShowScrollbar){if(n.alwaysShowScrollbar!==2){c[0].css("display","none")}l.removeClass(f[10])}else{s[0].css("display","none");l.addClass(f[10])}l.addClass(f[8])}}if(n.axis!=="y"){if(o.overflowed[1]&&!t){s[1].add(c[1]).add(s[1].children("a")).css("display","block");l.removeClass(f[9]+" "+f[11])}else{if(n.alwaysShowScrollbar){if(n.alwaysShowScrollbar!==2){c[1].css("display","none")}l.removeClass(f[11])}else{s[1].css("display","none");l.addClass(f[11])}l.addClass(f[9])}}if(!o.overflowed[0]&&!o.overflowed[1]){a.addClass(f[5])}else{a.removeClass(f[5])}},E=function(t){var i=t.type,a=t.target.ownerDocument!==document&&frameElement!==null?[e(frameElement).offset().top,e(frameElement).offset().left]:null,o=H()&&t.target.ownerDocument!==top.document&&frameElement!==null?[e(t.view.frameElement).offset().top,e(t.view.frameElement).offset().left]:[0,0];switch(i){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":return a?[t.originalEvent.pageY-a[0]+o[0],t.originalEvent.pageX-a[1]+o[1],false]:[t.originalEvent.pageY,t.originalEvent.pageX,false];break;case"touchstart":case"touchmove":case"touchend":var n=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0],r=t.originalEvent.touches.length||t.originalEvent.changedTouches.length;return t.target.ownerDocument!==document?[n.screenY,n.screenX,r>1]:[n.pageY,n.pageX,r>1];break;default:return a?[t.pageY-a[0]+o[0],t.pageX-a[1]+o[1],false]:[t.pageY,t.pageX,false]}},W=function(){var t=e(this),a=t.data(i),o=a.opt,n=i+"_"+a.idx,r=["mCSB_"+a.idx+"_dragger_vertical","mCSB_"+a.idx+"_dragger_horizontal"],l=e("#mCSB_"+a.idx+"_container"),d=e("#"+r[0]+",#"+r[1]),f,u,h,m=o.advanced.releaseDraggableSelectors?d.add(e(o.advanced.releaseDraggableSelectors)):d,p=H()?top.document:document,g=o.advanced.extraDraggableSelectors?e(p).add(e(o.advanced.extraDraggableSelectors)):e(p);d.bind("contextmenu."+n,function(e){e.preventDefault()}).bind("mousedown."+n+" touchstart."+n+" pointerdown."+n+" MSPointerDown."+n,function(i){i.stopImmediatePropagation();i.preventDefault();if(!ae(i)){return}c=true;if(s){document.onselectstart=function(){return false}}P.call(l,false);J(t);f=e(this);var a=f.offset(),n=E(i)[0]-a.top,r=E(i)[1]-a.left,d=f.height()+a.top,m=f.width()+a.left;if(n0&&r0){u=n;h=r}T(f,"active",o.autoExpandScrollbar)}).bind("touchmove."+n,function(e){e.stopImmediatePropagation();e.preventDefault();var t=f.offset(),i=E(e)[0]-t.top,a=E(e)[1]-t.left;v(u,h,i,a)});e(document).add(g).bind("mousemove."+n+" pointermove."+n+" MSPointerMove."+n,function(e){if(f){var t=f.offset(),i=E(e)[0]-t.top,a=E(e)[1]-t.left;if(u===i&&h===a){return}v(u,h,i,a)}}).add(m).bind("mouseup."+n+" touchend."+n+" pointerup."+n+" MSPointerUp."+n,function(e){if(f){T(f,"active",o.autoExpandScrollbar);f=null}c=false;if(s){document.onselectstart=null}P.call(l,true)});function v(e,i,n,s){l[0].idleTimer=o.scrollInertia<233?250:0;if(f.attr("id")===r[1]){var c="x",d=(f[0].offsetLeft-i+s)*a.scrollRatio.x}else{var c="y",d=(f[0].offsetTop-e+n)*a.scrollRatio.y}K(t,d.toString(),{dir:c,drag:true})}},R=function(){var t=e(this),a=t.data(i),o=a.opt,n=i+"_"+a.idx,r=e("#mCSB_"+a.idx),l=e("#mCSB_"+a.idx+"_container"),s=[e("#mCSB_"+a.idx+"_dragger_vertical"),e("#mCSB_"+a.idx+"_dragger_horizontal")],f,u,h,m,p,g=[],v=[],x,w,_,S,b,C,y=0,B,T=o.axis==="yx"?"none":"all",k=[],M,O,D=l.find("iframe"),I=["touchstart."+n+" pointerdown."+n+" MSPointerDown."+n,"touchmove."+n+" pointermove."+n+" MSPointerMove."+n,"touchend."+n+" pointerup."+n+" MSPointerUp."+n],W=document.body.style.touchAction!==undefined&&document.body.style.touchAction!=="";l.bind(I[0],function(e){R(e)}).bind(I[1],function(e){L(e)});r.bind(I[0],function(e){A(e)}).bind(I[2],function(e){z(e)});if(D.length){D.each(function(){e(this).bind("load",function(){if(H(this)){e(this.contentDocument||this.contentWindow.document).bind(I[0],function(e){R(e);A(e)}).bind(I[1],function(e){L(e)}).bind(I[2],function(e){z(e)})}})})}function R(e){if(!oe(e)||c||E(e)[2]){d=0;return}d=1;M=0;O=0;f=1;t.removeClass("mCS_touch_action");var i=l.offset();u=E(e)[0]-i.top;h=E(e)[1]-i.left;k=[E(e)[0],E(e)[1]]}function L(e){if(!oe(e)||c||E(e)[2]){return}if(!o.documentTouchScroll){e.preventDefault()}e.stopImmediatePropagation();if(O&&!M){return}if(f){w=ee();var i=r.offset(),n=E(e)[0]-i.top,d=E(e)[1]-i.left,m="mcsLinearOut";g.push(n);v.push(d);k[2]=Math.abs(E(e)[0]-k[0]);k[3]=Math.abs(E(e)[1]-k[1]);if(a.overflowed[0]){var p=s[0].parent().height()-s[0].height(),x=u-n>0&&n-u>-(p*a.scrollRatio.y)&&(k[3]*20&&d-h>-(_*a.scrollRatio.x)&&(k[2]*230){return}b=1e3/(_-x);var s="mcsEaseOut",d=b<2.5,u=d?[g[g.length-2],v[v.length-2]]:[0,0];S=d?[i-u[0],n-u[1]]:[i-m,n-p];var h=[Math.abs(S[0]),Math.abs(S[1])];b=d?[Math.abs(S[0]/4),Math.abs(S[1]/4)]:[b,b];var y=[Math.abs(l[0].offsetTop)-S[0]*P(h[0]/b[0],b[0]),Math.abs(l[0].offsetLeft)-S[1]*P(h[1]/b[1],b[1])];C=o.axis==="yx"?[y[0],y[1]]:o.axis==="x"?[null,y[1]]:[y[0],null];B=[h[0]*4+o.scrollInertia,h[1]*4+o.scrollInertia];var k=parseInt(o.contentTouchScroll)||0;C[0]=h[0]>k?C[0]:0;C[1]=h[1]>k?C[1]:0;if(a.overflowed[0]){U(C[0],B[0],s,"y",T,false)}if(a.overflowed[1]){U(C[1],B[1],s,"x",T,false)}}function P(e,t){var i=[t*1.5,t*2,t/1.5,t/2];if(e>90){return t>4?i[0]:i[3]}else if(e>60){return t>3?i[3]:i[2]}else if(e>30){return t>8?i[1]:t>6?i[0]:t>4?t:i[2]}else{return t>8?t:i[3]}}function U(e,i,a,o,n,r){if(!e){return}K(t,e.toString(),{dur:i,scrollEasing:a,dir:o,overwrite:n,drag:r})}},L=function(){var t=e(this),a=t.data(i),o=a.opt,n=a.sequential,r=i+"_"+a.idx,l=e("#mCSB_"+a.idx+"_container"),s=l.parent(),f;l.bind("mousedown."+r,function(e){if(d){return}if(!f){f=1;c=true}}).add(document).bind("mousemove."+r,function(e){if(!d&&f&&u()){var t=l.offset(),i=E(e)[0]-t.top+l[0].offsetTop,r=E(e)[1]-t.left+l[0].offsetLeft;if(i>0&&i0&&rs.height()){h("on",40)}}if(o.axis!=="y"&&a.overflowed[1]){if(r<0){h("on",37)}else if(r>s.width()){h("on",39)}}}}}).bind("mouseup."+r+" dragend."+r,function(e){if(d){return}if(f){f=0;h("off",null)}c=false});function u(){return window.getSelection?window.getSelection().toString():document.selection&&document.selection.type!="Control"?document.selection.createRange().text:0}function h(e,i,a){n.type=a&&f?"stepped":"stepless";n.scrollAmount=10;N(t,e,i,"mcsLinearOut",a?60:null)}},A=function(){if(!e(this).data(i)){return}var t=e(this),a=t.data(i),o=a.opt,n=i+"_"+a.idx,r=e("#mCSB_"+a.idx),l=[e("#mCSB_"+a.idx+"_dragger_vertical"),e("#mCSB_"+a.idx+"_dragger_horizontal")],c=e("#mCSB_"+a.idx+"_container").find("iframe");if(c.length){c.each(function(){e(this).bind("load",function(){if(H(this)){e(this.contentDocument||this.contentWindow.document).bind("mousewheel."+n,function(e,t){d(e,t)})}})})}r.bind("mousewheel."+n,function(e,t){d(e,t)});function d(i,n){e(i.target).closest(".mCustomScrollbar").trigger("mcswheel",n);J(t);if(!o.mouseWheel||!o.mouseWheel.enable){return}if(U(t,i.target)){return}var c=o.mouseWheel.deltaFactor!=="auto"?parseInt(o.mouseWheel.deltaFactor):s&&i.deltaFactor<100?100:i.deltaFactor||100,d=o.scrollInertia;if(o.axis==="yx"){if(i.deltaX!==0){o.mouseWheel.axis="x"}else if(i.deltaY!==0){o.mouseWheel.axis="y"}}if(o.axis==="x"||o.mouseWheel.axis==="x"){var f="x",u=[Math.ceil(c*a.scrollRatio.x),parseInt(o.mouseWheel.scrollAmount)],h=o.mouseWheel.scrollAmount!=="auto"?u[1]:u[0]>=r.width()?r.width()*.9:u[0],m=Math.abs(e("#mCSB_"+a.idx+"_container")[0].offsetLeft),p=l[1][0].offsetLeft,g=l[1].parent().width()-l[1].width(),v=i.deltaY||n}else{var f="y",u=[Math.ceil(c*a.scrollRatio.y),parseInt(o.mouseWheel.scrollAmount)],h=o.mouseWheel.scrollAmount!=="auto"?u[1]:u[0]>=r.height()?r.height()*.9:u[0],m=Math.abs(e("#mCSB_"+a.idx+"_container")[0].offsetTop),p=l[0][0].offsetTop,g=l[0].parent().height()-l[0].height(),v=i.deltaY||n}if(f==="y"&&!a.overflowed[0]||f==="x"&&!a.overflowed[1]){return}if(o.mouseWheel.invert||i.webkitDirectionInvertedFromDevice){v=-v}if(o.mouseWheel.normalizeDelta){v=v<0?-1:1}if(v>0&&p!==0||v<0&&p!==g||o.mouseWheel.preventDefault){i.stopImmediatePropagation();i.preventDefault()}if(i.deltaFactor<5&&!o.mouseWheel.normalizeDelta){h=i.deltaFactor;d=17}K(t,(m-v*h).toString(),{dir:f,dur:d})}},z=new Object,H=function(t){var i=false,a=false,o=null;if(t===undefined){a="#empty"}else if(e(t).attr("id")!==undefined){a=e(t).attr("id")}if(a!==false&&z[a]!==undefined){return z[a]}if(!t){try{var n=top.document;o=n.body.innerHTML}catch(e){}i=o!==null}else{try{var n=t.contentDocument||t.contentWindow.document;o=n.body.innerHTML}catch(e){}i=o!==null}if(a!==false){z[a]=i}return i},P=function(e){var t=this.find("iframe");if(!t.length){return}var i=!e?"none":"auto";t.css("pointer-events",i)},U=function(t,a){var o=a.nodeName.toLowerCase(),n=t.data(i).opt.mouseWheel.disableOver,r=["select","textarea"];return e.inArray(o,n)>-1&&!(e.inArray(o,r)>-1&&!e(a).is(":focus"))},Y=function(){var t=e(this),a=t.data(i),o=i+"_"+a.idx,n=e("#mCSB_"+a.idx+"_container"),r=n.parent(),l=e(".mCSB_"+a.idx+"_scrollbar ."+f[12]),s;l.bind("mousedown."+o+" touchstart."+o+" pointerdown."+o+" MSPointerDown."+o,function(t){c=true;if(!e(t.target).hasClass("mCSB_dragger")){s=1}}).bind("touchend."+o+" pointerup."+o+" MSPointerUp."+o,function(e){c=false}).bind("click."+o,function(i){if(!s){return}s=0;if(e(i.target).hasClass(f[12])||e(i.target).hasClass("mCSB_draggerRail")){J(t);var o=e(this),l=o.find(".mCSB_dragger");if(o.parent(".mCSB_scrollTools_horizontal").length>0){if(!a.overflowed[1]){return}var c="x",d=i.pageX>l.offset().left?-1:1,u=Math.abs(n[0].offsetLeft)-d*(r.width()*.9)}else{if(!a.overflowed[0]){return}var c="y",d=i.pageY>l.offset().top?-1:1,u=Math.abs(n[0].offsetTop)-d*(r.height()*.9)}K(t,u.toString(),{dir:c,scrollEasing:"mcsEaseInOut"})}})},X=function(){var t=e(this),a=t.data(i),o=a.opt,n=i+"_"+a.idx,r=e("#mCSB_"+a.idx+"_container"),l=r.parent();r.bind("focusin."+n,function(i){var a=e(document.activeElement),n=r.find(".mCustomScrollBox").length,s=0;if(!a.is(o.advanced.autoScrollOnFocus)){return}J(t);clearTimeout(t[0]._focusTimeout);t[0]._focusTimer=n?(s+17)*n:0;t[0]._focusTimeout=setTimeout(function(){var e=[re(a)[0],re(a)[1]],i=[r[0].offsetTop,r[0].offsetLeft],n=[i[0]+e[0]>=0&&i[0]+e[0]=0&&i[0]+e[1]a");s.bind("contextmenu."+r,function(e){e.preventDefault()}).bind("mousedown."+r+" touchstart."+r+" pointerdown."+r+" MSPointerDown."+r+" mouseup."+r+" touchend."+r+" pointerup."+r+" MSPointerUp."+r+" mouseout."+r+" pointerout."+r+" MSPointerOut."+r+" click."+r,function(i){i.preventDefault();if(!ae(i)){return}var r=e(this).attr("class");n.type=o.scrollButtons.scrollType;switch(i.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if(n.type==="stepped"){return}c=true;a.tweenRunning=false;l("on",r);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if(n.type==="stepped"){return}c=false;if(n.dir){l("off",r)}break;case"click":if(n.type!=="stepped"||a.tweenRunning){return}l("on",r);break}function l(e,i){n.scrollAmount=o.scrollButtons.scrollAmount;N(t,e,i)}})},q=function(){var t=e(this),a=t.data(i),o=a.opt,n=a.sequential,r=i+"_"+a.idx,l=e("#mCSB_"+a.idx),s=e("#mCSB_"+a.idx+"_container"),c=s.parent(),d="input,textarea,select,datalist,keygen,[contenteditable='true']",f=s.find("iframe"),u=["blur."+r+" keydown."+r+" keyup."+r];if(f.length){f.each(function(){e(this).bind("load",function(){if(H(this)){e(this.contentDocument||this.contentWindow.document).bind(u[0],function(e){h(e)})}})})}l.attr("tabindex","0").bind(u[0],function(e){h(e)});function h(i){switch(i.type){case"blur":if(a.tweenRunning&&n.dir){m("off",null)}break;case"keydown":case"keyup":var r=i.keyCode?i.keyCode:i.which,l="on";if(o.axis!=="x"&&(r===38||r===40)||o.axis!=="y"&&(r===37||r===39)){if((r===38||r===40)&&!a.overflowed[0]||(r===37||r===39)&&!a.overflowed[1]){return}if(i.type==="keyup"){l="off"}if(!e(document.activeElement).is(d)){i.preventDefault();i.stopImmediatePropagation();m(l,r)}}else if(r===33||r===34){if(a.overflowed[0]||a.overflowed[1]){i.preventDefault();i.stopImmediatePropagation()}if(i.type==="keyup"){J(t);var f=r===34?-1:1;if(o.axis==="x"||o.axis==="yx"&&a.overflowed[1]&&!a.overflowed[0]){var u="x",h=Math.abs(s[0].offsetLeft)-f*(c.width()*.9)}else{var u="y",h=Math.abs(s[0].offsetTop)-f*(c.height()*.9)}K(t,h.toString(),{dir:u,scrollEasing:"mcsEaseInOut"})}}else if(r===35||r===36){if(!e(document.activeElement).is(d)){if(a.overflowed[0]||a.overflowed[1]){i.preventDefault();i.stopImmediatePropagation()}if(i.type==="keyup"){if(o.axis==="x"||o.axis==="yx"&&a.overflowed[1]&&!a.overflowed[0]){var u="x",h=r===35?Math.abs(c.width()-s.outerWidth(false)):0}else{var u="y",h=r===35?Math.abs(c.height()-s.outerHeight(false)):0}K(t,h.toString(),{dir:u,scrollEasing:"mcsEaseInOut"})}}}break}function m(e,i){n.type=o.keyboard.scrollType;n.scrollAmount=o.keyboard.scrollAmount;if(n.type==="stepped"&&a.tweenRunning){return}N(t,e,i)}}},N=function(t,a,o,n,r){var l=t.data(i),s=l.opt,c=l.sequential,d=e("#mCSB_"+l.idx+"_container"),u=c.type==="stepped"?true:false,h=s.scrollInertia<26?26:s.scrollInertia,m=s.scrollInertia<1?17:s.scrollInertia;switch(a){case"on":c.dir=[o===f[16]||o===f[15]||o===39||o===37?"x":"y",o===f[13]||o===f[15]||o===38||o===37?-1:1];J(t);if(ne(o)&&c.type==="stepped"){return}p(u);break;case"off":g();if(u||l.tweenRunning&&c.dir){p(true)}break}function p(e){if(s.snapAmount){c.scrollAmount=!(s.snapAmount instanceof Array)?s.snapAmount:c.dir[0]==="x"?s.snapAmount[1]:s.snapAmount[0]}var i=c.type!=="stepped",a=r?r:!e?1e3/60:i?h/1.5:m,o=!e?2.5:i?7.5:40,f=[Math.abs(d[0].offsetTop),Math.abs(d[0].offsetLeft)],u=[l.scrollRatio.y>10?10:l.scrollRatio.y,l.scrollRatio.x>10?10:l.scrollRatio.x],g=c.dir[0]==="x"?f[1]+c.dir[1]*(u[1]*o):f[0]+c.dir[1]*(u[0]*o),v=c.dir[0]==="x"?f[1]+c.dir[1]*parseInt(c.scrollAmount):f[0]+c.dir[1]*parseInt(c.scrollAmount),x=c.scrollAmount!=="auto"?v:g,w=n?n:!e?"mcsLinear":i?"mcsLinearOut":"mcsEaseInOut",_=!e?false:true;if(e&&a<17){x=c.dir[0]==="x"?f[1]:f[0]}K(t,x.toString(),{dir:c.dir[0],scrollEasing:w,dur:a,onComplete:_});if(e){c.dir=false;return}clearTimeout(c.step);c.step=setTimeout(function(){p()},a)}function g(){clearTimeout(c.step);ie(c,"step");J(t)}},V=function(t){var a=e(this).data(i).opt,o=[];if(typeof t==="function"){t=t()}if(!(t instanceof Array)){o[0]=t.y?t.y:t.x||a.axis==="x"?null:t;o[1]=t.x?t.x:t.y||a.axis==="y"?null:t}else{o=t.length>1?[t[0],t[1]]:a.axis==="x"?[null,t[0]]:[t[0],null]}if(typeof o[0]==="function"){o[0]=o[0]()}if(typeof o[1]==="function"){o[1]=o[1]()}return o},Q=function(t,a){if(t==null||typeof t=="undefined"){return}var o=e(this),n=o.data(i),r=n.opt,l=e("#mCSB_"+n.idx+"_container"),s=l.parent(),c=typeof t;if(!a){a=r.axis==="x"?"x":"y"}var d=a==="x"?l.outerWidth(false)-s.width():l.outerHeight(false)-s.height(),f=a==="x"?l[0].offsetLeft:l[0].offsetTop,h=a==="x"?"left":"top";switch(c){case"function":return t();break;case"object":var m=t.jquery?t:e(t);if(!m.length){return}return a==="x"?re(m)[1]:re(m)[0];break;case"string":case"number":if(ne(t)){return Math.abs(t)}else if(t.indexOf("%")!==-1){return Math.abs(d*parseInt(t)/100)}else if(t.indexOf("-=")!==-1){return Math.abs(f-parseInt(t.split("-=")[1]))}else if(t.indexOf("+=")!==-1){var p=f+parseInt(t.split("+=")[1]);return p>=0?0:Math.abs(p)}else if(t.indexOf("px")!==-1&&ne(t.split("px")[0])){return Math.abs(t.split("px")[0])}else{if(t==="top"||t==="left"){return 0}else if(t==="bottom"){return Math.abs(s.height()-l.outerHeight(false))}else if(t==="right"){return Math.abs(s.width()-l.outerWidth(false))}else if(t==="first"||t==="last"){var m=l.find(":"+t);return a==="x"?re(m)[1]:re(m)[0]}else{if(e(t).length){return a==="x"?re(e(t))[1]:re(e(t))[0]}else{l.css(h,t);u.update.call(null,o[0]);return}}}break}},Z=function(t){var a=e(this),o=a.data(i),n=o.opt,r=e("#mCSB_"+o.idx+"_container");if(t){clearTimeout(r[0].autoUpdate);ie(r[0],"autoUpdate");return}l();function l(){clearTimeout(r[0].autoUpdate);if(a.parents("html").length===0){a=null;return}r[0].autoUpdate=setTimeout(function(){if(n.advanced.updateOnSelectorChange){o.poll.change.n=c();if(o.poll.change.n!==o.poll.change.o){o.poll.change.o=o.poll.change.n;d(3);return}}if(n.advanced.updateOnContentResize){o.poll.size.n=a[0].scrollHeight+a[0].scrollWidth+r[0].offsetHeight+a[0].offsetHeight+a[0].offsetWidth;if(o.poll.size.n!==o.poll.size.o){o.poll.size.o=o.poll.size.n;d(1);return}}if(n.advanced.updateOnImageLoad){if(!(n.advanced.updateOnImageLoad==="auto"&&n.axis==="y")){o.poll.img.n=r.find("img").length;if(o.poll.img.n!==o.poll.img.o){o.poll.img.o=o.poll.img.n;r.find("img").each(function(){s(this)});return}}}if(n.advanced.updateOnSelectorChange||n.advanced.updateOnContentResize||n.advanced.updateOnImageLoad){l()}},n.advanced.autoUpdateTimeout)}function s(t){if(e(t).hasClass(f[2])){d();return}var i=new Image;function a(e,t){return function(){return t.apply(e,arguments)}}function o(){this.onload=null;e(t).addClass(f[2]);d(2)}i.onload=a(i,o);i.src=t.src}function c(){if(n.advanced.updateOnSelectorChange===true){n.advanced.updateOnSelectorChange="*"}var e=0,t=r.find(n.advanced.updateOnSelectorChange);if(n.advanced.updateOnSelectorChange&&t.length>0){t.each(function(){e+=this.offsetHeight+this.offsetWidth})}return e}function d(e){clearTimeout(r[0].autoUpdate);u.update.call(null,a[0],e)}},G=function(e,t,i){return Math.round(e/t)*t-i},J=function(t){var a=t.data(i),o=e("#mCSB_"+a.idx+"_container,#mCSB_"+a.idx+"_container_wrapper,#mCSB_"+a.idx+"_dragger_vertical,#mCSB_"+a.idx+"_dragger_horizontal");o.each(function(){te.call(this)})},K=function(t,a,o){var n=t.data(i),r=n.opt,l={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:false,dur:r.scrollInertia,overwrite:"all",callbacks:true,onStart:true,onUpdate:true,onComplete:true},o=e.extend(l,o),s=[o.dur,o.drag?0:o.dur],c=e("#mCSB_"+n.idx),d=e("#mCSB_"+n.idx+"_container"),f=d.parent(),u=r.callbacks.onTotalScrollOffset?V.call(t,r.callbacks.onTotalScrollOffset):[0,0],h=r.callbacks.onTotalScrollBackOffset?V.call(t,r.callbacks.onTotalScrollBackOffset):[0,0];n.trigger=o.trigger;if(f.scrollTop()!==0||f.scrollLeft()!==0){e(".mCSB_"+n.idx+"_scrollbar").css("visibility","visible");f.scrollTop(0).scrollLeft(0)}if(a==="_resetY"&&!n.contentReset.y){if(y("onOverflowYNone")){r.callbacks.onOverflowYNone.call(t[0])}n.contentReset.y=1}if(a==="_resetX"&&!n.contentReset.x){if(y("onOverflowXNone")){r.callbacks.onOverflowXNone.call(t[0])}n.contentReset.x=1}if(a==="_resetY"||a==="_resetX"){return}if((n.contentReset.y||!t[0].mcs)&&n.overflowed[0]){if(y("onOverflowY")){r.callbacks.onOverflowY.call(t[0])}n.contentReset.x=null}if((n.contentReset.x||!t[0].mcs)&&n.overflowed[1]){if(y("onOverflowX")){r.callbacks.onOverflowX.call(t[0])}n.contentReset.x=null}if(r.snapAmount){var m=!(r.snapAmount instanceof Array)?r.snapAmount:o.dir==="x"?r.snapAmount[1]:r.snapAmount[0];a=G(a,m,r.snapOffset)}switch(o.dir){case"x":var p=e("#mCSB_"+n.idx+"_dragger_horizontal"),g="left",v=d[0].offsetLeft,x=[c.width()-d.outerWidth(false),p.parent().width()-p.width()],w=[a,a===0?0:a/n.scrollRatio.x],_=u[1],S=h[1],b=_>0?_/n.scrollRatio.x:0,C=S>0?S/n.scrollRatio.x:0;break;case"y":var p=e("#mCSB_"+n.idx+"_dragger_vertical"),g="top",v=d[0].offsetTop,x=[c.height()-d.outerHeight(false),p.parent().height()-p.height()],w=[a,a===0?0:a/n.scrollRatio.y],_=u[0],S=h[0],b=_>0?_/n.scrollRatio.y:0,C=S>0?S/n.scrollRatio.y:0;break}if(w[1]<0||w[0]===0&&w[1]===0){w=[0,0]}else if(w[1]>=x[1]){w=[x[0],x[1]]}else{w[0]=-w[0]}if(!t[0].mcs){k();if(y("onInit")){r.callbacks.onInit.call(t[0])}}clearTimeout(d[0].onCompleteTimeout);$(p[0],g,Math.round(w[1]),s[1],o.scrollEasing);if(!n.tweenRunning&&(v===0&&w[0]>=0||v===x[0]&&w[0]<=x[0])){return}$(d[0],g,Math.round(w[0]),s[0],o.scrollEasing,o.overwrite,{onStart:function(){if(o.callbacks&&o.onStart&&!n.tweenRunning){if(y("onScrollStart")){k();r.callbacks.onScrollStart.call(t[0])}n.tweenRunning=true;T(p);n.cbOffsets=B()}},onUpdate:function(){if(o.callbacks&&o.onUpdate){if(y("whileScrolling")){k();r.callbacks.whileScrolling.apply(t[0],[{options:o,delta:v-w[0]}])}}},onComplete:function(){if(o.callbacks&&o.onComplete){if(r.axis==="yx"){clearTimeout(d[0].onCompleteTimeout)}var e=d[0].idleTimer||0;d[0].onCompleteTimeout=setTimeout(function(){if(y("onScroll")){k();r.callbacks.onScroll.call(t[0])}if(y("onTotalScroll")&&w[1]>=x[1]-b&&n.cbOffsets[0]){k();r.callbacks.onTotalScroll.call(t[0])}if(y("onTotalScrollBack")&&w[1]<=C&&n.cbOffsets[1]){k();r.callbacks.onTotalScrollBack.call(t[0])}n.tweenRunning=false;d[0].idleTimer=0;T(p,"hide")},e)}}});function y(e){return n&&r.callbacks[e]&&typeof r.callbacks[e]==="function"}function B(){return[r.callbacks.alwaysTriggerOffsets||v>=x[0]+_,r.callbacks.alwaysTriggerOffsets||v<=-S]}function k(){var e=[d[0].offsetTop,d[0].offsetLeft],i=[p[0].offsetTop,p[0].offsetLeft],a=[d.outerHeight(false),d.outerWidth(false)],n=[c.height(),c.width()];t[0].mcs={content:d,top:e[0],left:e[1],draggerTop:i[0],draggerLeft:i[1],topPct:Math.round(100*Math.abs(e[0])/(Math.abs(a[0])-n[0])),leftPct:Math.round(100*Math.abs(e[1])/(Math.abs(a[1])-n[1])),direction:o.dir}}},$=function(e,t,i,a,o,n,r){if(!e._mTween){e._mTween={top:{},left:{}}}var r=r||{},l=r.onStart||function(){},s=r.onUpdate||function(){},c=r.onComplete||function(){},d=ee(),f,u=0,h=e.offsetTop,m=e.style,p,g=e._mTween[t];if(t==="left"){h=e.offsetLeft}var v=i-h;g.stop=0;if(n!=="none"){S()}_();function x(){if(g.stop){return}if(!u){l.call()}u=ee()-d;w();if(u>=g.time){g.time=u>g.time?u+f-(u-g.time):u+f-1;if(g.time0){g.currVal=b(g.time,h,v,a,o);m[t]=Math.round(g.currVal)+"px"}else{m[t]=i+"px"}s.call()}function _(){f=1e3/60;g.time=u+f;p=!window.requestAnimationFrame?function(e){w();return setTimeout(e,.01)}:window.requestAnimationFrame;g.id=p(x)}function S(){if(g.id==null){return}if(!window.requestAnimationFrame){clearTimeout(g.id)}else{window.cancelAnimationFrame(g.id)}g.id=null}function b(e,t,i,a,o){switch(o){case"linear":case"mcsLinear":return i*e/a+t;break;case"mcsLinearOut":e/=a;e--;return i*Math.sqrt(1-e*e)+t;break;case"easeInOutSmooth":e/=a/2;if(e<1)return i/2*e*e+t;e--;return-i/2*(e*(e-2)-1)+t;break;case"easeInOutStrong":e/=a/2;if(e<1)return i/2*Math.pow(2,10*(e-1))+t;e--;return i/2*(-Math.pow(2,-10*e)+2)+t;break;case"easeInOut":case"mcsEaseInOut":e/=a/2;if(e<1)return i/2*e*e*e+t;e-=2;return i/2*(e*e*e+2)+t;break;case"easeOutSmooth":e/=a;e--;return-i*(e*e*e*e-1)+t;break;case"easeOutStrong":return i*(-Math.pow(2,-10*e/a)+1)+t;break;case"easeOut":case"mcsEaseOut":default:var n=(e/=a)*e,r=n*e;return t+i*(.499999999999997*r*n+-2.5*n*n+5.5*r+-6.5*n+4*e)}}},ee=function(){if(window.performance&&window.performance.now){return window.performance.now()}else{if(window.performance&&window.performance.webkitNow){return window.performance.webkitNow()}else{if(Date.now){return Date.now()}else{return(new Date).getTime()}}}},te=function(){var e=this;if(!e._mTween){e._mTween={top:{},left:{}}}var t=["top","left"];for(var i=0;i=0&&n[0]+re(i)[0]=0&&n[1]+re(i)[1]=0&&s[1]-l[1]*c[1][0]<0&&s[1]+n[1]-l[1]*c[1][1]>=0},mcsOverflow:e.expr[":"].mcsOverflow||function(t){var a=e(t).data(i);if(!a){return}return a.overflowed[0]||a.overflowed[1]}})})})}); /*! * jQuery Autocomplete v1.3.0 * https://github.com/devbridge/jQuery-Autocomplete diff --git a/unauthenticated/js/bundle.min.js.gz b/unauthenticated/js/bundle.min.js.gz index 7506f1c82..f0a65ff38 100644 Binary files a/unauthenticated/js/bundle.min.js.gz and b/unauthenticated/js/bundle.min.js.gz differ